sqllogictest
Artifact Content
Not logged in

Artifact 8b568000ab5e0d73b27f543c8fd0023ca0c63272:


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 II rowsort
SELECT + 76 AS col2, 76 AS col1
----
76
76

query I rowsort
SELECT 61 - - 95
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2
SELECT + CAST( + - COUNT( * ) AS SIGNED ) * - SUM( ALL 20 ) + 33 + - 11 - 8 + - 74 + + 93
----
53

skipif mysql # not compatible
query I rowsort label-2
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * - SUM ( ALL 20 ) + 33 + - 11 - 8 + - 74 + + 93
----
53

query I rowsort
SELECT 6 * + + 93
----
558

query I rowsort
SELECT 12 + 95
----
107

query II rowsort
SELECT + 40, + 56 * 38 * + 26 AS col2
----
40
55328

query I rowsort
SELECT ALL 69 - - 24
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7
SELECT SUM( - - 96 ) DIV + 17 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7
SELECT SUM ( - - 96 ) / + 17 AS col0
----
5

query I rowsort
SELECT 22 * + - 99 AS col0
----
-2178

query II rowsort
SELECT ALL 39 * 80 * - + 9 AS col1, 99
----
-28080
99

query I rowsort
SELECT - 98 - 85 col2
----
-183

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

skipif mysql # not compatible
query I rowsort label-11
SELECT SUM ( + 96 )
----
96

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

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

query I rowsort
SELECT ALL - 38 * + 14 * - + 72
----
38304

query I rowsort
SELECT 92 * 87 AS col2
----
8004

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-15
SELECT + ( + 62 ) + + COUNT( * ) DIV 70 * + - ( - 80 ), 51 - 47 + + 70 - CASE 68 WHEN COUNT( * ) THEN NULL ELSE 16 + COUNT( * ) * - 20 END * MAX( DISTINCT - 12 * + 45 ) * 35 AS col1
----
62
-75526

skipif mysql # not compatible
query II rowsort label-15
SELECT + ( + 62 ) + + COUNT ( * ) / 70 * + - ( - 80 ), 51 - 47 + + 70 - CASE 68 WHEN COUNT ( * ) THEN NULL ELSE 16 + COUNT ( * ) * - 20 END * MAX ( DISTINCT - 12 * + 45 ) * 35 AS col1
----
62
-75526

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

query I rowsort
SELECT DISTINCT - 94 * - 55 AS col1
----
5170

onlyif mysql # DIV for integer division: 
query I rowsort label-18
SELECT 40 + + 45 + + 16 DIV + 86
----
85

skipif mysql # not compatible
query I rowsort label-18
SELECT 40 + + 45 + + 16 / + 86
----
85

query I rowsort
SELECT - 57 * + + 55 * - - 67
----
-210045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-20
SELECT CAST( NULL AS SIGNED ) - + CASE + 25 WHEN - 76 THEN NULL WHEN - CASE - 67 WHEN + CASE - - 77 WHEN - MIN( DISTINCT - COALESCE ( 20, + 76 ) ) * - CASE CASE 63 WHEN + MIN( DISTINCT 49 ) THEN 10 - + 23 * - 63 WHEN 22 THEN ( + 66 ) END WHEN + 38 * - 32 THEN NULL WHEN 12 THEN CASE COUNT( * ) WHEN - 2 THEN NULL ELSE 92 * 1 + 26 * COUNT( * ) END * 19 + - 82 ELSE 20 * 72 END + + 45 THEN NULL WHEN 76 * + 4 THEN 35 - CASE + NULLIF ( 59, + MIN( 7 ) + MIN( 34 ) * 48 ) WHEN + 4 - 31 * 85 THEN - 12 END ELSE NULL END THEN + 13 END / + 91 + - ( COUNT( * ) ) THEN 15 + + ( + 88 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-20
SELECT CAST ( NULL AS INTEGER ) - + CASE + 25 WHEN - 76 THEN NULL WHEN - CASE - 67 WHEN + CASE - - 77 WHEN - MIN ( DISTINCT - COALESCE ( 20, + 76 ) ) * - CASE CASE 63 WHEN + MIN ( DISTINCT 49 ) THEN 10 - + 23 * - 63 WHEN 22 THEN ( + 66 ) END WHEN + 38 * - 32 THEN NULL WHEN 12 THEN CASE COUNT ( * ) WHEN - 2 THEN NULL ELSE 92 * 1 + 26 * COUNT ( * ) END * 19 + - 82 ELSE 20 * 72 END + + 45 THEN NULL WHEN 76 * + 4 THEN 35 - CASE + NULLIF ( 59, + MIN ( 7 ) + MIN ( 34 ) * 48 ) WHEN + 4 - 31 * 85 THEN - 12 END ELSE NULL END THEN + 13 END / + 91 + - ( COUNT ( * ) ) THEN 15 + + ( + 88 ) ELSE NULL END
----
NULL

query II rowsort
SELECT - + 17, - 4 AS col2
----
-17
-4

query I rowsort
SELECT DISTINCT 75 + + + 97
----
172

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-24
SELECT ALL - + 80 + - 16 + - + 91 AS col0, + 87 * + - 8 + - - COALESCE ( ( 53 ), - - MAX( 27 ) DIV - 29 )
----
-187
-643

skipif mysql # not compatible
query II rowsort label-24
SELECT ALL - + 80 + - 16 + - + 91 AS col0, + 87 * + - 8 + - - COALESCE ( ( 53 ), - - MAX ( 27 ) / - 29 )
----
-187
-643

query I rowsort
SELECT ALL + - 68 + + 75 AS col2
----
7

query I rowsort
SELECT ALL - - 88 + + 54
----
142

query I rowsort
SELECT - 90 + - 62 * - 98
----
5986

query I rowsort
SELECT - 59 * - 96 AS col2
----
5664

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-30
SELECT 45 + - 10 * CASE + CAST( NULL AS SIGNED ) WHEN 30 - CAST( - COUNT( * ) AS SIGNED ) / + - 27 THEN + NULLIF ( + 21, 3 * 39 - 33 ) WHEN + ( + CAST( NULL AS DECIMAL ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-30
SELECT 45 + - 10 * CASE + CAST ( NULL AS INTEGER ) WHEN 30 - CAST ( - COUNT ( * ) AS INTEGER ) / + - 27 THEN + NULLIF ( + 21, 3 * 39 - 33 ) WHEN + ( + CAST ( NULL AS REAL ) ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-31
SELECT SUM( - - 40 ) DIV - COUNT( * ) + + 52 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-31
SELECT SUM ( - - 40 ) / - COUNT ( * ) + + 52 AS col1
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT DISTINCT + 83 * + - 30 * COUNT( * ) AS col1
----
-2490

skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT + 83 * + - 30 * COUNT ( * ) AS col1
----
-2490

query I rowsort
SELECT DISTINCT + 10 + - 37 AS col1
----
-27

query II rowsort
SELECT ALL - 35, 14 AS col0
----
-35
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-36
SELECT + 63 DIV + COUNT( * ) + - ( CASE + + 76 WHEN - 7 THEN NULL ELSE 90 END ), - 67 + + - 34 AS col0
----
-27
-101

skipif mysql # not compatible
query II rowsort label-36
SELECT + 63 / + COUNT ( * ) + - ( CASE + + 76 WHEN - 7 THEN NULL ELSE 90 END ), - 67 + + - 34 AS col0
----
-27
-101

query I rowsort
SELECT 80 + + + 68
----
148

query I rowsort
SELECT DISTINCT - 20 * - 60 AS col0
----
1200

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

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

query I rowsort
SELECT 77 * + - 6 col0
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT + 12 * + - 62 + + 48 + + MIN( ALL - - 5 )
----
-691

skipif mysql # not compatible
query I rowsort label-41
SELECT + 12 * + - 62 + + 48 + + MIN ( ALL - - 5 )
----
-691

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT ( + 23 ) + + MIN( DISTINCT + 66 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-42
SELECT ( + 23 ) + + MIN ( DISTINCT + 66 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT COUNT( DISTINCT 62 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-43
SELECT COUNT ( DISTINCT 62 ) AS col0
----
1

query II rowsort
SELECT DISTINCT + 57 AS col0, 20 AS col1
----
57
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-45
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, 68 * - 62 + - 89
----
NULL
-4305

skipif mysql # not compatible
query II rowsort label-45
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, 68 * - 62 + - 89
----
NULL
-4305

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT - 62 * 16 + - COUNT( * ) - + MIN( + 89 ) * ( + - 55 ) + - 14 AS col2
----
3888

skipif mysql # not compatible
query I rowsort label-47
SELECT - 62 * 16 + - COUNT ( * ) - + MIN ( + 89 ) * ( + - 55 ) + - 14 AS col2
----
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT + + MIN( + 17 ) + - + 96 / CASE - 26 WHEN + + 44 THEN - - ( - COUNT( * ) ) + + + 36 WHEN - SUM( ALL + - 64 ) THEN 87 WHEN 32 THEN NULL END * - 67 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-48
SELECT + + MIN ( + 17 ) + - + 96 / CASE - 26 WHEN + + 44 THEN - - ( - COUNT ( * ) ) + + + 36 WHEN - SUM ( ALL + - 64 ) THEN 87 WHEN 32 THEN NULL END * - 67 col0
----
NULL

query I rowsort
SELECT ALL 75 * - - 72
----
5400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-50
SELECT ALL + 19 col2, CAST( NULL AS SIGNED ) col0
----
19
NULL

skipif mysql # not compatible
query II rowsort label-50
SELECT ALL + 19 col2, CAST ( NULL AS INTEGER ) col0
----
19
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT + NULLIF ( 11, - + 12 ) * - - 89 + + COUNT( * ) + + - 60 * - 29
----
2720

skipif mysql # not compatible
query I rowsort label-51
SELECT + NULLIF ( 11, - + 12 ) * - - 89 + + COUNT ( * ) + + - 60 * - 29
----
2720

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-53
SELECT - - 52 * 99 + - + CAST( CAST( 70 AS DECIMAL ) AS SIGNED ) col0
----
5078

skipif mysql # not compatible
query I rowsort label-53
SELECT - - 52 * 99 + - + CAST ( CAST ( 70 AS REAL ) AS INTEGER ) col0
----
5078

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-54
SELECT + 71 DIV CAST( - 83 AS SIGNED ) * + + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-54
SELECT + 71 / CAST ( - 83 AS INTEGER ) * + + 61 AS col1
----
0

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

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

query I rowsort
SELECT ALL + 16 + - 53
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT DISTINCT - COUNT( * ) + - CASE + + 33 WHEN 74 THEN - - 68 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT - COUNT ( * ) + - CASE + + 33 WHEN 74 THEN - - 68 END AS col0
----
NULL

query I rowsort
SELECT + - 35 + + 16 AS col2
----
-19

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

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

query I rowsort
SELECT + + 60 + + - 70 + - ( - 82 ) * - - 89
----
7288

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT DISTINCT + 22 + + - MIN( DISTINCT - + 54 ) * + - COUNT( * ) * - - 24 col2
----
-1274

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT + 22 + + - MIN ( DISTINCT - + 54 ) * + - COUNT ( * ) * - - 24 col2
----
-1274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-63
SELECT + + COALESCE ( + COUNT( * ), - 59 * + 19 - + SUM( DISTINCT - 19 ) * + 40 - + 34 DIV + + 44 * + COALESCE ( 8, 31 ) + 48, - ( + 63 ) ) - + 29 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-63
SELECT + + COALESCE ( + COUNT ( * ), - 59 * + 19 - + SUM ( DISTINCT - 19 ) * + 40 - + 34 / + + 44 * + COALESCE ( 8, 31 ) + 48, - ( + 63 ) ) - + 29 AS col1
----
-28

query I rowsort
SELECT - 57 + - 21 + + 10 * ( + 28 )
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT DISTINCT CASE - ( - 77 ) WHEN + - 14 * + + 19 - + ( - 54 ) THEN NULL WHEN + - 78 / - COUNT( * ) THEN - 55 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT CASE - ( - 77 ) WHEN + - 14 * + + 19 - + ( - 54 ) THEN NULL WHEN + - 78 / - COUNT ( * ) THEN - 55 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-66
SELECT ALL + 97 * - - 65 col0, + 71 DIV + + COUNT( * )
----
6305
71

skipif mysql # not compatible
query II rowsort label-66
SELECT ALL + 97 * - - 65 col0, + 71 / + + COUNT ( * )
----
6305
71

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT - SUM( ALL - 33 ) + + - 89
----
-56

skipif mysql # not compatible
query I rowsort label-67
SELECT - SUM ( ALL - 33 ) + + - 89
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT ALL CASE - 13 WHEN - 90 + - 19 THEN - 76 - - + ( - 60 ) WHEN 46 THEN + ( + 83 ) + - - COALESCE ( + 35, 36 + + 93 * COUNT( ALL ( - 91 ) ) ) * - 63 END * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL CASE - 13 WHEN - 90 + - 19 THEN - 76 - - + ( - 60 ) WHEN 46 THEN + ( + 83 ) + - - COALESCE ( + 35, 36 + + 93 * COUNT ( ALL ( - 91 ) ) ) * - 63 END * - 69
----
NULL

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

skipif mysql # not compatible
query I rowsort label-69
SELECT - 41 + 93 + CAST ( NULL AS INTEGER ) / + 5 * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( - + 48, 3 ) * + 65
----
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT ALL NULLIF ( 15, COUNT( * ) )
----
15

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL NULLIF ( 15, COUNT ( * ) )
----
15

query I rowsort
SELECT DISTINCT + 79 - 74
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-73
SELECT - ( + 60 ) DIV - 6 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-73
SELECT - ( + 60 ) / - 6 AS col2
----
10

query I rowsort
SELECT 34 * - + 71 * - - 82 + + 48 AS col2
----
-197900

query I rowsort
SELECT - 75 * + - ( ( 96 ) )
----
7200

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

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

query II rowsort
SELECT ( - + 83 ) col2, 79 * 25 + + + 42
----
-83
2017

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

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT - 45 * MAX( 20 ) * + 89
----
-80100

skipif mysql # not compatible
query I rowsort label-79
SELECT - 45 * MAX ( 20 ) * + 89
----
-80100

query I rowsort
SELECT DISTINCT - 90 * + 27
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT + MAX( + - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-81
SELECT + MAX ( + - 35 ) AS col2
----
-35

query II rowsort
SELECT ALL + - 58 * - 42 * - 66 * - 30 + 54 AS col0, - 50
----
4823334
-50

query II rowsort
SELECT - 33 - - ( - 38 ) col0, - 25 * 43
----
-71
-1075

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT - - 5 * + MAX( ALL + - ( + 98 ) )
----
-490

skipif mysql # not compatible
query I rowsort label-84
SELECT - - 5 * + MAX ( ALL + - ( + 98 ) )
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT COUNT( * ) * - CASE 22 WHEN 21 * + 58 * COUNT( * ) THEN NULL WHEN - - COUNT( * ) THEN + + 58 / - 40 + + COUNT( * ) ELSE NULL END + - 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-85
SELECT COUNT ( * ) * - CASE 22 WHEN 21 * + 58 * COUNT ( * ) THEN NULL WHEN - - COUNT ( * ) THEN + + 58 / - 40 + + COUNT ( * ) ELSE NULL END + - 20 AS col2
----
NULL

query I rowsort
SELECT + + COALESCE ( - 93, 9 ) AS col2
----
-93

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

skipif mysql # not compatible
query I rowsort label-87
SELECT + + 25 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT ALL - 26 * + 29 + - 13 - - 99 + 44 * - NULLIF ( + - 54, - - 6 - + CASE 29 WHEN - 96 + COUNT( * ) + - 47 THEN - 60 - 32 * - COUNT( * ) WHEN - 54 + 78 / 42 THEN SUM( ALL - 96 ) * 25 END + MIN( ALL - 96 ) * + 74 ) * COUNT( * ) + 1
----
1709

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL - 26 * + 29 + - 13 - - 99 + 44 * - NULLIF ( + - 54, - - 6 - + CASE 29 WHEN - 96 + COUNT ( * ) + - 47 THEN - 60 - 32 * - COUNT ( * ) WHEN - 54 + 78 / 42 THEN SUM ( ALL - 96 ) * 25 END + MIN ( ALL - 96 ) * + 74 ) * COUNT ( * ) + 1
----
1709

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-89
SELECT + - NULLIF ( + 6, - + 78 * 85 DIV + + 69 * + CASE NULLIF ( - 48, - ( - - COUNT( * ) ) ) WHEN + - CASE - 88 WHEN 38 THEN 32 WHEN 28 - + 36 * MIN( ALL - 23 ) THEN 29 * - 32 + - 96 ELSE + 30 * 18 END * ( + 99 * 9 - NULLIF ( 35, 13 + + 45 * COUNT( * ) ) ) THEN MIN( ALL + 61 ) - - 5 ELSE 92 END ) - + 73 DIV - 74
----
-6

skipif mysql # not compatible
query I rowsort label-89
SELECT + - NULLIF ( + 6, - + 78 * 85 / + + 69 * + CASE NULLIF ( - 48, - ( - - COUNT ( * ) ) ) WHEN + - CASE - 88 WHEN 38 THEN 32 WHEN 28 - + 36 * MIN ( ALL - 23 ) THEN 29 * - 32 + - 96 ELSE + 30 * 18 END * ( + 99 * 9 - NULLIF ( 35, 13 + + 45 * COUNT ( * ) ) ) THEN MIN ( ALL + 61 ) - - 5 ELSE 92 END ) - + 73 / - 74
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-90
SELECT ALL 36 * - - 0 + + COUNT( + 90 ) + 92 + - 72 / - 37 - - 13 + 37 - - CAST( NULL AS SIGNED ) * - 91 * COUNT( * ) * 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL 36 * - - 0 + + COUNT ( + 90 ) + 92 + - 72 / - 37 - - 13 + 37 - - CAST ( NULL AS INTEGER ) * - 91 * COUNT ( * ) * 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT ALL - + MAX( DISTINCT 70 ) * 95 * 69 + 39
----
-458811

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL - + MAX ( DISTINCT 70 ) * 95 * 69 + 39
----
-458811

query II rowsort
SELECT - 63 + + 88, + 10 AS col0
----
25
10

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

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

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

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

query I rowsort
SELECT + 46 - + + 76 AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-96
SELECT ALL - 60 * CAST( - MAX( DISTINCT 35 ) AS SIGNED )
----
2100

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL - 60 * CAST ( - MAX ( DISTINCT 35 ) AS INTEGER )
----
2100

query I rowsort
SELECT + NULLIF ( - 97, - 55 * 31 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT + + CASE + - 80 WHEN MAX( DISTINCT + ( 79 ) ) * - 99 + + 95 - - 65 THEN NULL ELSE - - 91 END * - - 75 - + ( 58 ) * COALESCE ( 14, COUNT( * ) + 69, ( 31 ) * - 85 )
----
6013

skipif mysql # not compatible
query I rowsort label-98
SELECT + + CASE + - 80 WHEN MAX ( DISTINCT + ( 79 ) ) * - 99 + + 95 - - 65 THEN NULL ELSE - - 91 END * - - 75 - + ( 58 ) * COALESCE ( 14, COUNT ( * ) + 69, ( 31 ) * - 85 )
----
6013

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT ALL NULLIF ( - + CASE + + 32 WHEN - + 11 THEN - 56 * 90 - + - ( - 52 ) ELSE - - 25 - + COUNT( * ) + - 55 * - ( MIN( - 80 ) ) END, - COUNT( * ) ) AS col2
----
4376

skipif mysql # not compatible
query I rowsort label-99
SELECT ALL NULLIF ( - + CASE + + 32 WHEN - + 11 THEN - 56 * 90 - + - ( - 52 ) ELSE - - 25 - + COUNT ( * ) + - 55 * - ( MIN ( - 80 ) ) END, - COUNT ( * ) ) AS col2
----
4376

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT + COUNT( * ) + - - COUNT( * ) * + 54 * - - 7
----
379

skipif mysql # not compatible
query I rowsort label-100
SELECT + COUNT ( * ) + - - COUNT ( * ) * + 54 * - - 7
----
379

query II rowsort
SELECT - 62 AS col2, - 44 AS col2
----
-62
-44

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

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

query I rowsort
SELECT + 82 + 51 AS col0
----
133

query I rowsort
SELECT ALL + 75 * + - 80 * + 72 * - 47 * - 47 AS col2
----
-954288000

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

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

query I rowsort
SELECT ALL 16 * + + 37
----
592

onlyif mysql # aggregate syntax: 
query II rowsort label-107
SELECT 5 + - ( + COUNT( * ) ), ( 50 ) col2
----
4
50

skipif mysql # not compatible
query II rowsort label-107
SELECT 5 + - ( + COUNT ( * ) ), ( 50 ) col2
----
4
50

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT DISTINCT MIN( DISTINCT + 25 ) + + - 33 * - COUNT( * ) + 66
----
124

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT MIN ( DISTINCT + 25 ) + + - 33 * - COUNT ( * ) + 66
----
124

query I rowsort
SELECT ALL - 3 + - 56 AS col1
----
-59

query I rowsort
SELECT - ( - - 32 ) * 46 + - - 48 + 34
----
-1390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-111
SELECT + 53 DIV 92 * - - COUNT( DISTINCT + 55 ) + 15
----
15

skipif mysql # not compatible
query I rowsort label-111
SELECT + 53 / 92 * - - COUNT ( DISTINCT + 55 ) + 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT - ( + + 87 ) * - + 25 + - 71 - + - CASE 51 WHEN - 41 THEN NULL WHEN - - CASE + + 13 WHEN - COALESCE ( CASE - 96 WHEN 0 THEN NULL WHEN + 33 THEN 74 ELSE NULL END, 33 + 65 * - 48 ) THEN - COUNT( * ) ELSE NULL END * 47 THEN - COUNT( * ) / + 28 END * 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-112
SELECT - ( + + 87 ) * - + 25 + - 71 - + - CASE 51 WHEN - 41 THEN NULL WHEN - - CASE + + 13 WHEN - COALESCE ( CASE - 96 WHEN 0 THEN NULL WHEN + 33 THEN 74 ELSE NULL END, 33 + 65 * - 48 ) THEN - COUNT ( * ) ELSE NULL END * 47 THEN - COUNT ( * ) / + 28 END * 52 AS col0
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-114
SELECT + 26 / COUNT ( * ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-115
SELECT NULLIF ( + 54, 16 ) + - CASE - COUNT( DISTINCT + 51 ) WHEN + COUNT( * ) THEN + COALESCE ( - - 43, - COUNT( * ), - 83 * COALESCE ( + 60, + 74 * - 66 ) * 76 - + 80 * ( 33 * + 76 ) ) * + 69 + + 77 / 15 ELSE NULL END + COUNT( - CAST( 13 AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-115
SELECT NULLIF ( + 54, 16 ) + - CASE - COUNT ( DISTINCT + 51 ) WHEN + COUNT ( * ) THEN + COALESCE ( - - 43, - COUNT ( * ), - 83 * COALESCE ( + 60, + 74 * - 66 ) * 76 - + 80 * ( 33 * + 76 ) ) * + 69 + + 77 / 15 ELSE NULL END + COUNT ( - CAST ( 13 AS INTEGER ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-116
SELECT + 70 / ( 26 ) + - + 61 + + CASE + SUM( DISTINCT - 38 ) WHEN 83 * - - CAST( - - 28 AS SIGNED ) / 28 THEN 65 + + - 98 END * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-116
SELECT + 70 / ( 26 ) + - + 61 + + CASE + SUM ( DISTINCT - 38 ) WHEN 83 * - - CAST ( - - 28 AS INTEGER ) / 28 THEN 65 + + - 98 END * 65
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-117
SELECT + COUNT( * ) DIV - 15 * 4 - + - 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-117
SELECT + COUNT ( * ) / - 15 * 4 - + - 6 AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-118
SELECT COUNT( * ) + - + NULLIF ( - ( + - 67 ), + 69 DIV + COUNT( * ) ) + + ( - 59 ) + - 94 DIV + + ( - 79 )
----
-124

skipif mysql # not compatible
query I rowsort label-118
SELECT COUNT ( * ) + - + NULLIF ( - ( + - 67 ), + 69 / + COUNT ( * ) ) + + ( - 59 ) + - 94 / + + ( - 79 )
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-119
SELECT ALL + 16 + - 65 * + CAST( NULL AS SIGNED ) AS col0, - CASE - - 72 WHEN + 50 THEN - + 14 WHEN + 42 * + - CASE - 1 WHEN 19 THEN NULL WHEN CASE + COUNT( * ) WHEN 52 * + 83 THEN 33 WHEN + 0 THEN NULL ELSE NULL END - 19 THEN - COUNT( DISTINCT + 38 ) END THEN NULL END + 43
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-119
SELECT ALL + 16 + - 65 * + CAST ( NULL AS INTEGER ) AS col0, - CASE - - 72 WHEN + 50 THEN - + 14 WHEN + 42 * + - CASE - 1 WHEN 19 THEN NULL WHEN CASE + COUNT ( * ) WHEN 52 * + 83 THEN 33 WHEN + 0 THEN NULL ELSE NULL END - 19 THEN - COUNT ( DISTINCT + 38 ) END THEN NULL END + 43
----
NULL
NULL

query I rowsort
SELECT - + 15 * 5 + - + ( 55 )
----
-130

onlyif mysql # DIV for integer division: 
query II rowsort label-121
SELECT DISTINCT - 46 DIV 17 DIV 16, - 61 AS col1
----
0
-61

skipif mysql # not compatible
query II rowsort label-121
SELECT DISTINCT - 46 / 17 / 16, - 61 AS col1
----
0
-61

query I rowsort
SELECT DISTINCT 24 * - 60
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT - 94 + SUM( + 34 )
----
-60

skipif mysql # not compatible
query I rowsort label-123
SELECT - 94 + SUM ( + 34 )
----
-60

query I rowsort
SELECT ALL + 55 + - + 73 * - 61 * - 93 AS col1
----
-414074

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-126
SELECT + ( + 42 ) + - 73, 40 AS col2, + + 67 * COUNT( * ) AS col1
----
-31
40
67

skipif mysql # not compatible
query III rowsort label-126
SELECT + ( + 42 ) + - 73, 40 AS col2, + + 67 * COUNT ( * ) AS col1
----
-31
40
67

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT 58 * - + 29 - + - 70 + + 89 - + SUM( 52 ) + + 52 AS col1
----
-1523

skipif mysql # not compatible
query I rowsort label-127
SELECT 58 * - + 29 - + - 70 + + 89 - + SUM ( 52 ) + + 52 AS col1
----
-1523

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

query I rowsort
SELECT DISTINCT + 61 * + 89
----
5429

query II rowsort
SELECT ALL + 61 AS col1, 26
----
61
26

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT 95 + - - 14 + 13 * COALESCE ( - 62, + 65, + 41 ) + - + NULLIF ( - 53, 40 + + + 46 * - + 2 + + NULLIF ( 81, COUNT( * ) / 65 + SUM( ALL + 13 ) ) )
----
-644

skipif mysql # not compatible
query I rowsort label-131
SELECT 95 + - - 14 + 13 * COALESCE ( - 62, + 65, + 41 ) + - + NULLIF ( - 53, 40 + + + 46 * - + 2 + + NULLIF ( 81, COUNT ( * ) / 65 + SUM ( ALL + 13 ) ) )
----
-644

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

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

query I rowsort
SELECT 90 * - - ( 72 ) AS col0
----
6480

query II rowsort
SELECT 96 + - 86, 61 AS col1
----
10
61

query I rowsort
SELECT DISTINCT 18 * - + 16
----
-288

onlyif mysql # aggregate syntax: 
query II rowsort label-136
SELECT 80 * - - 35 * + 2 * - 46 AS col2, COUNT( * )
----
-257600
1

skipif mysql # not compatible
query II rowsort label-136
SELECT 80 * - - 35 * + 2 * - 46 AS col2, COUNT ( * )
----
-257600
1

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ( MIN( - 18 ) ) * - 18 AS col1
----
324

skipif mysql # not compatible
query I rowsort label-137
SELECT ( MIN ( - 18 ) ) * - 18 AS col1
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT COUNT( * ) + 48 + - 75 * - 26 * + 92 * - 77 + 80 + - 86 AS col1
----
-13813757

skipif mysql # not compatible
query I rowsort label-138
SELECT COUNT ( * ) + 48 + - 75 * - 26 * + 92 * - 77 + 80 + - 86 AS col1
----
-13813757

query I rowsort
SELECT ALL ( 69 ) + - 96 AS col2
----
-27

query I rowsort
SELECT ( + 30 ) * - 91 * - 64
----
174720

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT DISTINCT SUM( DISTINCT - 87 ) + 58 * + - 6 - + 17 + + 94
----
-358

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT SUM ( DISTINCT - 87 ) + 58 * + - 6 - + 17 + + 94
----
-358

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL 68 + SUM( DISTINCT + 29 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL 68 + SUM ( DISTINCT + 29 ) AS col1
----
97

query I rowsort
SELECT ALL 12 + + 70
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT ALL - - 22 * - COALESCE ( - 76, COUNT( * ) ) AS col2
----
1672

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL - - 22 * - COALESCE ( - 76, COUNT ( * ) ) AS col2
----
1672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-145
SELECT DISTINCT - 17 + ( - COUNT( * ) ) - 68 + - + CAST( 53 AS SIGNED ) DIV - - 93, 90 + + 16 AS col0
----
-86
106

skipif mysql # not compatible
query II rowsort label-145
SELECT DISTINCT - 17 + ( - COUNT ( * ) ) - 68 + - + CAST ( 53 AS INTEGER ) / - - 93, 90 + + 16 AS col0
----
-86
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-146
SELECT DISTINCT - - COALESCE ( 28, + + CASE + - NULLIF ( + COUNT( * ), - - NULLIF ( 16, + - 43 + + CASE COUNT( * ) WHEN - 24 * - + 37 * + 58 THEN NULL WHEN + 34 * 78 - + 49 THEN NULL ELSE 14 END * - 50 ) ) WHEN 58 * + 53 + + 48 THEN - 13 WHEN + CAST( NULL AS SIGNED ) + COUNT( * ) THEN NULL ELSE NULL END ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT - - COALESCE ( 28, + + CASE + - NULLIF ( + COUNT ( * ), - - NULLIF ( 16, + - 43 + + CASE COUNT ( * ) WHEN - 24 * - + 37 * + 58 THEN NULL WHEN + 34 * 78 - + 49 THEN NULL ELSE 14 END * - 50 ) ) WHEN 58 * + 53 + + 48 THEN - 13 WHEN + CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN NULL ELSE NULL END ) AS col1
----
28

query I rowsort
SELECT DISTINCT + - 9 + + 81
----
72

query I rowsort
SELECT + 18 - + NULLIF ( + 79, + 2 ) * 82 col0
----
-6460

query II rowsort
SELECT 61 * + 70 AS col0, 1 * 98 AS col1
----
4270
98

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT MAX( - - 6 ) + - - 71
----
77

skipif mysql # not compatible
query I rowsort label-150
SELECT MAX ( - - 6 ) + - - 71
----
77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-152
SELECT 53 DIV 43 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-152
SELECT 53 / 43 AS col0
----
1

query I rowsort
SELECT 40 * - - 66 col1
----
2640

query II rowsort
SELECT 84 + 84 AS col1, - 87 AS col0
----
168
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-155
SELECT DISTINCT - - 29 DIV + NULLIF ( - 61, - 3 ) DIV + - COUNT( * ) - + 2 + 25 * + MIN( DISTINCT - 71 ) col0
----
-1777

skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT - - 29 / + NULLIF ( - 61, - 3 ) / + - COUNT ( * ) - + 2 + 25 * + MIN ( DISTINCT - 71 ) col0
----
-1777

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT DISTINCT 42 DIV + 94 col2
----
0

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT 42 / + 94 col2
----
0

query I rowsort
SELECT ALL - - 54 * 84
----
4536

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT DISTINCT - - 37 DIV + 1 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-158
SELECT DISTINCT - - 37 / + 1 AS col2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-159
SELECT DISTINCT + 93 * 81 * + COUNT( * ) AS col0, 21 AS col2
----
7533
21

skipif mysql # not compatible
query II rowsort label-159
SELECT DISTINCT + 93 * 81 * + COUNT ( * ) AS col0, 21 AS col2
----
7533
21

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-161
SELECT - 83 * 32 * - - ( MIN( + 59 ) ) AS col1, 68 AS col0
----
-156704
68

skipif mysql # not compatible
query II rowsort label-161
SELECT - 83 * 32 * - - ( MIN ( + 59 ) ) AS col1, 68 AS col0
----
-156704
68

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT ALL CASE - 89 WHEN - 39 * - COALESCE ( + MAX( - 4 ), - COALESCE ( + - 32, 5 - - + 63, 30 * + - 38 * - - 59 ) ) THEN NULL ELSE ( 17 ) END
----
17

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL CASE - 89 WHEN - 39 * - COALESCE ( + MAX ( - 4 ), - COALESCE ( + - 32, 5 - - + 63, 30 * + - 38 * - - 59 ) ) THEN NULL ELSE ( 17 ) END
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-163
SELECT - CASE 80 WHEN - 42 THEN 93 * CAST( NULL AS SIGNED ) + 86 * - - 48 WHEN - ( - - 1 ) THEN NULL WHEN + 74 + - 63 THEN NULL END - - 92 + + - 22 + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-163
SELECT - CASE 80 WHEN - 42 THEN 93 * CAST ( NULL AS INTEGER ) + 86 * - - 48 WHEN - ( - - 1 ) THEN NULL WHEN + 74 + - 63 THEN NULL END - - 92 + + - 22 + 92 AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT DISTINCT + 21 + 91 - + 63 DIV - - ( + + 73 ) AS col2
----
112

skipif mysql # not compatible
query I rowsort label-165
SELECT DISTINCT + 21 + 91 - + 63 / - - ( + + 73 ) AS col2
----
112

query II rowsort
SELECT DISTINCT 16 AS col2, + 26
----
16
26

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT ALL COALESCE ( + + 52, - + SUM( DISTINCT + ( 59 ) ) ) + 77 + - + 19 * - 97 AS col0
----
1972

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL COALESCE ( + + 52, - + SUM ( DISTINCT + ( 59 ) ) ) + 77 + - + 19 * - 97 AS col0
----
1972

query I rowsort
SELECT + 5 * + - 63 AS col1
----
-315

onlyif mysql # DIV for integer division: 
query I rowsort label-169
SELECT DISTINCT - 31 DIV + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-169
SELECT DISTINCT - 31 / + 83 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-170
SELECT - CAST( 82 AS SIGNED ) + - 58 DIV - 15 + - + COUNT( * ) * - 69 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-170
SELECT - CAST ( 82 AS INTEGER ) + - 58 / - 15 + - + COUNT ( * ) * - 69 AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-171
SELECT - MAX( ALL - - CAST( - + 92 AS SIGNED ) ), 13 AS col2
----
92
13

skipif mysql # not compatible
query II rowsort label-171
SELECT - MAX ( ALL - - CAST ( - + 92 AS INTEGER ) ), 13 AS col2
----
92
13

query I rowsort
SELECT ALL 63 * 28
----
1764

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT + CASE 50 WHEN + COUNT( * ) THEN NULL ELSE 30 END * 97 * COUNT( * ) + COUNT( * ) col1
----
2911

skipif mysql # not compatible
query I rowsort label-175
SELECT + CASE 50 WHEN + COUNT ( * ) THEN NULL ELSE 30 END * 97 * COUNT ( * ) + COUNT ( * ) col1
----
2911

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT + 63 + + + SUM( ALL + 22 ) col0
----
85

skipif mysql # not compatible
query I rowsort label-176
SELECT + 63 + + + SUM ( ALL + 22 ) col0
----
85

query I rowsort
SELECT DISTINCT + - ( + 12 ) AS col1
----
-12

query II rowsort
SELECT + 54 AS col0, 70
----
54
70

query I rowsort
SELECT ALL + - COALESCE ( - 82, - 42 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT ( ( + + 78 ) ) * 24 + - + SUM( DISTINCT - 34 ) + - 14 + - + 58 * + 3 + 93 + 13 + - + 0
----
1824

skipif mysql # not compatible
query I rowsort label-180
SELECT ( ( + + 78 ) ) * 24 + - + SUM ( DISTINCT - 34 ) + - 14 + - + 58 * + 3 + 93 + 13 + - + 0
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT - 12 + + COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-181
SELECT - 12 + + COUNT ( * ) AS col1
----
-11

query I rowsort
SELECT ALL 82 * - - 8
----
656

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-184
SELECT DISTINCT 30 * + 88 * - 56 + + ( - COUNT( * ) ) * + 4 DIV - - 77 AS col1
----
-147840

skipif mysql # not compatible
query I rowsort label-184
SELECT DISTINCT 30 * + 88 * - 56 + + ( - COUNT ( * ) ) * + 4 / - - 77 AS col1
----
-147840

query II rowsort
SELECT + 22, + 51 AS col1
----
22
51

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT ALL + NULLIF ( - 34, NULLIF ( + CASE 43 WHEN - - ( - 4 ) * 55 THEN NULL WHEN - MAX( 79 ) + + SUM( - 98 ) THEN + - COUNT( * ) END, 38 ) * + 58 * COUNT( * ) + ( + 40 ) * + 35 ) * + COALESCE ( 79, - 70 * CASE + 3 WHEN 0 THEN 67 WHEN 49 / NULLIF ( - ( COUNT( ALL - 29 ) ), ( + 22 ) * - 52 ) THEN - 34 + 47 END + 68 ) AS col2
----
-2686

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL + NULLIF ( - 34, NULLIF ( + CASE 43 WHEN - - ( - 4 ) * 55 THEN NULL WHEN - MAX ( 79 ) + + SUM ( - 98 ) THEN + - COUNT ( * ) END, 38 ) * + 58 * COUNT ( * ) + ( + 40 ) * + 35 ) * + COALESCE ( 79, - 70 * CASE + 3 WHEN 0 THEN 67 WHEN 49 / NULLIF ( - ( COUNT ( ALL - 29 ) ), ( + 22 ) * - 52 ) THEN - 34 + 47 END + 68 ) AS col2
----
-2686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-187
SELECT + CASE + 1 WHEN - - 92 - 39 * + + 90 THEN - 21 ELSE - - CAST( NULL AS SIGNED ) + + - 26 + - COALESCE ( 36, 23 ) END * 27 - - COUNT( * ) + + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-187
SELECT + CASE + 1 WHEN - - 92 - 39 * + + 90 THEN - 21 ELSE - - CAST ( NULL AS INTEGER ) + + - 26 + - COALESCE ( 36, 23 ) END * 27 - - COUNT ( * ) + + - 67
----
NULL

query I rowsort
SELECT ( 18 ) * 35 + - - 48 * - 52 + + 26 AS col0
----
-1840

query I rowsort
SELECT - 89 * + 64 col1
----
-5696

onlyif mysql # DIV for integer division: 
query I rowsort label-190
SELECT ALL + 16 DIV - 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL + 16 / - 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-191
SELECT COUNT( * ) AS col2, + 65 + + SUM( DISTINCT ( + 34 ) )
----
1
99

skipif mysql # not compatible
query II rowsort label-191
SELECT COUNT ( * ) AS col2, + 65 + + SUM ( DISTINCT ( + 34 ) )
----
1
99

query I rowsort
SELECT DISTINCT 36 * - 45 + + 98 + - - 51 AS col1
----
-1471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-193
SELECT DISTINCT 5 * COUNT( * ) + + CAST( NULL AS SIGNED ) / - + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-193
SELECT DISTINCT 5 * COUNT ( * ) + + CAST ( NULL AS INTEGER ) / - + 75
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL - 71 + + + MAX( DISTINCT + 6 )
----
-65

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL - 71 + + + MAX ( DISTINCT + 6 )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-196
SELECT ALL + COUNT( * ) DIV - + CAST( - 62 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL + COUNT ( * ) / - + CAST ( - 62 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-197
SELECT DISTINCT NULLIF ( + + MIN( CASE + 4 WHEN + + 76 + + - NULLIF ( + - ( + 93 ), - 5 + 84 + 39 ) - + CAST( NULL AS SIGNED ) THEN - - NULLIF ( + 0, + 67 ) WHEN + 64 + - 25 THEN + 91 END ), COUNT( * ) * - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT NULLIF ( + + MIN ( CASE + 4 WHEN + + 76 + + - NULLIF ( + - ( + 93 ), - 5 + 84 + 39 ) - + CAST ( NULL AS INTEGER ) THEN - - NULLIF ( + 0, + 67 ) WHEN + 64 + - 25 THEN + 91 END ), COUNT ( * ) * - 82 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-198
SELECT SUM ( ALL 79 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-199
SELECT - CAST( NULL AS DECIMAL ), - MIN( DISTINCT - 37 ) + 25 AS col2
----
NULL
62

skipif mysql # not compatible
query II rowsort label-199
SELECT - CAST ( NULL AS REAL ), - MIN ( DISTINCT - 37 ) + 25 AS col2
----
NULL
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-200
SELECT ALL - NULLIF ( 22, CAST( + 6 AS SIGNED ) ) + - 93 - - ( + 74 ) + - 2 + + 4 + + + 16
----
-23

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL - NULLIF ( 22, CAST ( + 6 AS INTEGER ) ) + - 93 - - ( + 74 ) + - 2 + + 4 + + + 16
----
-23

query I rowsort
SELECT - 93 * 38 col2
----
-3534

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT - 99 + 44 * - 52 - NULLIF ( + - COUNT( * ), - 82 * - 74 )
----
-2386

skipif mysql # not compatible
query I rowsort label-202
SELECT - 99 + 44 * - 52 - NULLIF ( + - COUNT ( * ), - 82 * - 74 )
----
-2386

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL + ( - COUNT( * ) ) + 44 + COUNT( * ) * - 6 * - COUNT( * ) + + 13
----
62

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL + ( - COUNT ( * ) ) + 44 + COUNT ( * ) * - 6 * - COUNT ( * ) + + 13
----
62

query II rowsort
SELECT + 51 + - 59 col1, 17 AS col1
----
-8
17

query I rowsort
SELECT - 63 * + 62 AS col0
----
-3906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-207
SELECT DISTINCT - NULLIF ( - 68, - CASE + 97 WHEN + + COUNT( * ) + - + 75 THEN - ( + 18 ) WHEN 67 THEN - - CASE + 35 WHEN + MAX( 59 ) THEN - ( 22 ) WHEN 95 THEN + CAST( NULL AS SIGNED ) ELSE NULL END ELSE NULL END * - COUNT( * ) + 78 ) - + 89
----
-21

skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT - NULLIF ( - 68, - CASE + 97 WHEN + + COUNT ( * ) + - + 75 THEN - ( + 18 ) WHEN 67 THEN - - CASE + 35 WHEN + MAX ( 59 ) THEN - ( 22 ) WHEN 95 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END ELSE NULL END * - COUNT ( * ) + 78 ) - + 89
----
-21

query II rowsort
SELECT - NULLIF ( - + 29, - 24 + - 61 ) AS col0, 15 * - 75
----
29
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL - 17 - + + 74 * - COUNT( - - 0 ) + + - 87 * - 89
----
7800

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - 17 - + + 74 * - COUNT ( - - 0 ) + + - 87 * - 89
----
7800

query I rowsort
SELECT DISTINCT + CASE 8 WHEN - - 88 * - 7 THEN + 16 * - 4 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-211
SELECT - + 67, MAX( DISTINCT - 30 ) col1
----
-67
-30

skipif mysql # not compatible
query II rowsort label-211
SELECT - + 67, MAX ( DISTINCT - 30 ) col1
----
-67
-30

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

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

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

skipif mysql # not compatible
query II rowsort label-213
SELECT - COUNT ( * ) AS col1, 4 col0
----
-1
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-214
SELECT ALL + 67 DIV + + COUNT( * ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL + 67 / + + COUNT ( * ) AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-215
SELECT + MIN( DISTINCT - 26 ) / + CASE + + NULLIF ( 10, + 92 * - + 97 - - + CAST( NULL AS SIGNED ) ) WHEN 97 + CAST( + ( + + COUNT( * ) ) AS SIGNED ) * COUNT( * ) * 16 * + CAST( NULL AS SIGNED ) + - 21 THEN + 15 END + ( COUNT( * ) ) * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-215
SELECT + MIN ( DISTINCT - 26 ) / + CASE + + NULLIF ( 10, + 92 * - + 97 - - + CAST ( NULL AS INTEGER ) ) WHEN 97 + CAST ( + ( + + COUNT ( * ) ) AS INTEGER ) * COUNT ( * ) * 16 * + CAST ( NULL AS INTEGER ) + - 21 THEN + 15 END + ( COUNT ( * ) ) * 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT - + 45 * - NULLIF ( + 72, 35 / + COUNT( * ) + + + ( + - 62 ) * COUNT( - + 54 ) ) * + + 75 * - 40 * - - 23
----
-223560000

skipif mysql # not compatible
query I rowsort label-216
SELECT - + 45 * - NULLIF ( + 72, 35 / + COUNT ( * ) + + + ( + - 62 ) * COUNT ( - + 54 ) ) * + + 75 * - 40 * - - 23
----
-223560000

query II rowsort
SELECT + + 47, + 56 AS col1
----
47
56

query II rowsort
SELECT + 22 col2, + 95 AS col1
----
22
95

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-221
SELECT - + 96 DIV - - 49
----
-1

skipif mysql # not compatible
query I rowsort label-221
SELECT - + 96 / - - 49
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT DISTINCT + 74 * SUM( 47 ) * + - 78 AS col1
----
-271284

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT + 74 * SUM ( 47 ) * + - 78 AS col1
----
-271284

query I rowsort
SELECT ALL - - 83 * + 77 + + ( + - 97 ) AS col1
----
6294

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-224
SELECT + 58 + - CASE + 45 WHEN ( + 26 ) THEN + - 90 * + 52 + + CAST( - MAX( + - 67 ) AS DECIMAL ) + + ( - 87 ) * - - 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-224
SELECT + 58 + - CASE + 45 WHEN ( + 26 ) THEN + - 90 * + 52 + + CAST ( - MAX ( + - 67 ) AS REAL ) + + ( - 87 ) * - - 59 END
----
NULL

query I rowsort
SELECT + + 46 * - 89
----
-4094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-226
SELECT + 72 DIV COALESCE ( - + MAX( DISTINCT + 33 ), - + 86 * 47, 19 + - 80 + - AVG ( DISTINCT 97 ) * + + CASE + - 50 WHEN + 58 THEN 90 + + - 30 WHEN - COUNT( * ) THEN - 94 END * 27 ) DIV 37 + 18 * - CAST( - 34 AS SIGNED )
----
612

skipif mysql # not compatible
query I rowsort label-226
SELECT + 72 / COALESCE ( - + MAX ( DISTINCT + 33 ), - + 86 * 47, 19 + - 80 + - AVG ( DISTINCT 97 ) * + + CASE + - 50 WHEN + 58 THEN 90 + + - 30 WHEN - COUNT ( * ) THEN - 94 END * 27 ) / 37 + 18 * - CAST ( - 34 AS INTEGER )
----
612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-227
SELECT DISTINCT + 58 + - + SUM( + CAST( 10 AS SIGNED ) ) - 66
----
-18

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT + 58 + - + SUM ( + CAST ( 10 AS INTEGER ) ) - 66
----
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-228
SELECT ALL 24 + 23 AS col1, 15 DIV - 61 AS col2
----
47
0

skipif mysql # not compatible
query II rowsort label-228
SELECT ALL 24 + 23 AS col1, 15 / - 61 AS col2
----
47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT ALL 47 + - - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL 47 + - - COUNT ( * )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-230
SELECT DISTINCT 59 + + ( + - 6 ) + + 22 + + COUNT( * ) - 43 * + 17 * - COUNT( * ) / - 53 + 59 + 95 + - 99 * - CAST( NULL AS SIGNED ) * - 27 * + + ( 5 ) * 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT DISTINCT 59 + + ( + - 6 ) + + 22 + + COUNT ( * ) - 43 * + 17 * - COUNT ( * ) / - 53 + 59 + 95 + - 99 * - CAST ( NULL AS INTEGER ) * - 27 * + + ( 5 ) * 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-231
SELECT ALL 18 * 3 AS col1, ( + + COUNT( * ) ) AS col2
----
54
1

skipif mysql # not compatible
query II rowsort label-231
SELECT ALL 18 * 3 AS col1, ( + + COUNT ( * ) ) AS col2
----
54
1

query I rowsort
SELECT NULLIF ( + 34, - 62 ) * + 31
----
1054

query I rowsort
SELECT 21 * + - COALESCE ( - 15, - 62, - + 88 ) + + + 10 col1
----
325

query I rowsort
SELECT ALL 94 + + - 79 + 40 col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT DISTINCT MAX( DISTINCT 47 ) * + + 73 - + 22 - + - 15 + - + 5 - + 3 * - MAX( + + 47 ) * - 24 + - 3 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT MAX ( DISTINCT 47 ) * + + 73 - + 22 - + - 15 + - + 5 - + 3 * - MAX ( + + 47 ) * - 24 + - 3 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-236
SELECT ALL 11 + - - 34 * + 7 - - COALESCE ( + 73, - NULLIF ( - + 2, - + 97 + + SUM( DISTINCT - 43 ) ) ) + + - MIN( DISTINCT + + 91 ) DIV 40 AS col1
----
320

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL 11 + - - 34 * + 7 - - COALESCE ( + 73, - NULLIF ( - + 2, - + 97 + + SUM ( DISTINCT - 43 ) ) ) + + - MIN ( DISTINCT + + 91 ) / 40 AS col1
----
320

query I rowsort
SELECT 31 * - + 98
----
-3038

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT ALL 81 + - 6 * + 90 - + COUNT( * )
----
-460

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL 81 + - 6 * + 90 - + COUNT ( * )
----
-460

query I rowsort
SELECT DISTINCT 10 - - - 48
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-240
SELECT DISTINCT + ( + - COUNT( * ) ) DIV - COALESCE ( CAST( NULL AS SIGNED ), + 97 + 71 DIV + 9 * 77 ) + 91 * - 88 * - ( - 16 ) * - + 44 col2
----
5637632

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT + ( + - COUNT ( * ) ) / - COALESCE ( CAST ( NULL AS INTEGER ), + 97 + 71 / + 9 * 77 ) + 91 * - 88 * - ( - 16 ) * - + 44 col2
----
5637632

query I rowsort
SELECT 30 * 98
----
2940

onlyif mysql # aggregate syntax: 
query II rowsort label-242
SELECT ALL + 41 - + + MIN( 58 ) AS col1, - 19 AS col2
----
-17
-19

skipif mysql # not compatible
query II rowsort label-242
SELECT ALL + 41 - + + MIN ( 58 ) AS col1, - 19 AS col2
----
-17
-19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-243
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + 70 AS col2, - COUNT( * ) - + 97
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-243
SELECT DISTINCT CAST ( NULL AS REAL ) * + 70 AS col2, - COUNT ( * ) - + 97
----
NULL
-98

query I rowsort
SELECT + 71 + - + 12 + 78 AS col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT - + MIN( + + COALESCE ( NULLIF ( + 47, - - 30 ), - 77 ) )
----
-47

skipif mysql # not compatible
query I rowsort label-245
SELECT - + MIN ( + + COALESCE ( NULLIF ( + 47, - - 30 ), - 77 ) )
----
-47

query I rowsort
SELECT + 54 - - 48
----
102

query I rowsort
SELECT - - ( - 48 )
----
-48

query I rowsort
SELECT ALL + - 35 * + 16
----
-560

query II rowsort
SELECT DISTINCT - ( - 96 ), + 26 AS col2
----
96
26

query I rowsort
SELECT - COALESCE ( + + 33, - 20 * - 83, 29 - + CASE + ( 18 ) WHEN + - 93 THEN + 45 + + 10 - - 34 + + - 90 * - - 33 ELSE ( + COALESCE ( 67, - 70 ) ) - 64 * 19 END ) + + 19 * 3
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT + SUM( + 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-251
SELECT + SUM ( + 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT + 27 * 80 * - + COUNT( * )
----
-2160

skipif mysql # not compatible
query I rowsort label-252
SELECT + 27 * 80 * - + COUNT ( * )
----
-2160

query I rowsort
SELECT ALL + 16 * + 89 AS col0
----
1424

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT DISTINCT - COUNT( DISTINCT + 28 ) * - 71 * - 60 AS col0
----
-4260

skipif mysql # not compatible
query I rowsort label-254
SELECT DISTINCT - COUNT ( DISTINCT + 28 ) * - 71 * - 60 AS col0
----
-4260

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT COUNT( * ) * + 44 * - 50
----
-2200

skipif mysql # not compatible
query I rowsort label-255
SELECT COUNT ( * ) * + 44 * - 50
----
-2200

query I rowsort
SELECT 99 * + 18
----
1782

query II rowsort
SELECT + 65, 85 + 44 AS col1
----
65
129

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

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

query II rowsort
SELECT ALL - 79, + 58 * - 50 + - 95 AS col0
----
-79
-2995

query I rowsort
SELECT DISTINCT + 27 - - 77 * 29
----
2260

query I rowsort
SELECT NULLIF ( - 13, + AVG ( ALL 61 ) ) * + 23 * - 45 AS col1
----
13455

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

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

query I rowsort
SELECT NULLIF ( + 68, 22 * - 23 - 30 + - 72 ) + - - 83
----
151

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

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

query I rowsort
SELECT DISTINCT ( - 5 ) * 59
----
-295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-266
SELECT ALL 28 - - CASE + - CASE + + CAST( - 17 AS SIGNED ) WHEN 44 * - - ( - 63 ) / - + COUNT( * ) THEN 44 WHEN - + 56 THEN + - 5 ELSE NULL END WHEN - 64 THEN NULL ELSE COALESCE ( + ( 27 ), COUNT( * ) ) + - 76 END
----
-21

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL 28 - - CASE + - CASE + + CAST ( - 17 AS INTEGER ) WHEN 44 * - - ( - 63 ) / - + COUNT ( * ) THEN 44 WHEN - + 56 THEN + - 5 ELSE NULL END WHEN - 64 THEN NULL ELSE COALESCE ( + ( 27 ), COUNT ( * ) ) + - 76 END
----
-21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-267
SELECT CAST( 66 AS SIGNED ) + - CASE + 17 WHEN + - 44 THEN - 47 ELSE 22 DIV - 94 END + + 57 - + + 78 + - - ( + - 40 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-267
SELECT CAST ( 66 AS INTEGER ) + - CASE + 17 WHEN + - 44 THEN - 47 ELSE 22 / - 94 END + + 57 - + + 78 + - - ( + - 40 ) AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-268
SELECT ALL CAST( 52 AS SIGNED ) * 66
----
3432

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL CAST ( 52 AS INTEGER ) * 66
----
3432

query II rowsort
SELECT 93, 34 AS col2
----
93
34

query II rowsort
SELECT - 42, 41 AS col1
----
-42
41

onlyif mysql # DIV for integer division: 
query I rowsort label-271
SELECT + 43 DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-271
SELECT + 43 / - 98 AS col0
----
0

query I rowsort
SELECT 84 * - 96
----
-8064

onlyif mysql # DIV for integer division: 
query I rowsort label-273
SELECT 15 DIV - 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-273
SELECT 15 / - 69 AS col2
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( - 35, - 88 / - + 76 )
----
35

query II rowsort
SELECT ALL - 4 AS col1, 56 * 81 AS col0
----
-4
4536

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-276
SELECT ALL - MAX( ALL + 13 ) DIV + 30, 61 + + 47 + - 80 col2
----
0
28

skipif mysql # not compatible
query II rowsort label-276
SELECT ALL - MAX ( ALL + 13 ) / + 30, 61 + + 47 + - 80 col2
----
0
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-277
SELECT - 18 * - + 9 DIV + 1, - 96 * + MAX( ALL - 17 ) AS col0
----
162
1632

skipif mysql # not compatible
query II rowsort label-277
SELECT - 18 * - + 9 / + 1, - 96 * + MAX ( ALL - 17 ) AS col0
----
162
1632

query II rowsort
SELECT ALL 67 col0, ( 15 ) AS col2
----
67
15

onlyif mysql # DIV for integer division: 
query I rowsort label-279
SELECT - 75 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-279
SELECT - 75 / 85
----
0

query I rowsort
SELECT ALL + 24 + + + 3 + - 22
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT + ( - 12 ) - - COUNT( * ) - - - NULLIF ( - + 19, - 59 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-281
SELECT + ( - 12 ) - - COUNT ( * ) - - - NULLIF ( - + 19, - 59 ) AS col2
----
8

query II rowsort
SELECT - - 55 * - 28 * + + 73 AS col1, - 69 + + 61
----
-112420
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT DISTINCT + 70 * MIN( - 87 ) + - 30 * 77
----
-8400

skipif mysql # not compatible
query I rowsort label-284
SELECT DISTINCT + 70 * MIN ( - 87 ) + - 30 * 77
----
-8400

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

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

query II rowsort
SELECT DISTINCT + + 3 * - + 16 + + 44 * - 29 AS col1, + ( + - 26 ) + - 70
----
-1324
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT DISTINCT 93 * + 57 + + COUNT( * ) * - 92
----
5209

skipif mysql # not compatible
query I rowsort label-287
SELECT DISTINCT 93 * + 57 + + COUNT ( * ) * - 92
----
5209

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

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

query I rowsort
SELECT NULLIF ( - + 72, - 29 ) AS col0
----
-72

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-292
SELECT DISTINCT - CAST( + + COUNT( * ) AS SIGNED ) * - 36 + ( - 2 ) - - + 20
----
54

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT - CAST ( + + COUNT ( * ) AS INTEGER ) * - 36 + ( - 2 ) - - + 20
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-293
SELECT DISTINCT + COUNT( * ) * - + NULLIF ( - 65, 61 * - 89 * + + 69 ) - + 48 + + 66 DIV - + 87 * 31 * + MAX( + 39 ) * - 26 col1
----
17

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT + COUNT ( * ) * - + NULLIF ( - 65, 61 * - 89 * + + 69 ) - + 48 + + 66 / - + 87 * 31 * + MAX ( + 39 ) * - 26 col1
----
17

query I rowsort
SELECT ALL - 86 * - ( - 48 ) col2
----
-4128

query I rowsort
SELECT - 99 + + 72 AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-296
SELECT DISTINCT - CASE + COUNT( * ) WHEN + + 64 THEN NULL ELSE + CAST( NULL AS SIGNED ) - 65 END * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT - CASE + COUNT ( * ) WHEN + + 64 THEN NULL ELSE + CAST ( NULL AS INTEGER ) - 65 END * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT ALL + 13 * - COALESCE ( + 3, - 24, - COUNT( * ), - - 72 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL + 13 * - COALESCE ( + 3, - 24, - COUNT ( * ), - - 72 ) AS col2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-298
SELECT ALL 87 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL 87 / 90
----
0

query I rowsort
SELECT + 93 * + + 86
----
7998

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT MAX( ALL + 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-302
SELECT MAX ( ALL + 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT ALL + 89 * - + COUNT( + 44 ) * - 10 + + 88 col1
----
978

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL + 89 * - + COUNT ( + 44 ) * - 10 + + 88 col1
----
978

query II rowsort
SELECT DISTINCT + ( 39 ) AS col0, + 3 AS col2
----
39
3

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT + - 8 - - 15 * - - 84 + - - 70 + - 1 * COUNT( * ) AS col2
----
1321

skipif mysql # not compatible
query I rowsort label-305
SELECT + - 8 - - 15 * - - 84 + - - 70 + - 1 * COUNT ( * ) AS col2
----
1321

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT DISTINCT COUNT( - + 95 ) + + 13 * - + 87 * + 24 * - + 0 - - COUNT( * ) + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-306
SELECT DISTINCT COUNT ( - + 95 ) + + 13 * - + 87 * + 24 * - + 0 - - COUNT ( * ) + COUNT ( * )
----
3

query I rowsort
SELECT ALL + COALESCE ( - 99, - 64 ) + 65 + - 11 * + 22 AS col2
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT - 69 + - NULLIF ( ( - 84 ), 6 * + COUNT( * ) ) * + 62 AS col2
----
5139

skipif mysql # not compatible
query I rowsort label-308
SELECT - 69 + - NULLIF ( ( - 84 ), 6 * + COUNT ( * ) ) * + 62 AS col2
----
5139

onlyif mysql # aggregate syntax: 
query II rowsort label-309
SELECT - + ( 85 ) AS col1, COUNT( * ) + + 48 + - 68 * + - 52 AS col0
----
-85
3585

skipif mysql # not compatible
query II rowsort label-309
SELECT - + ( 85 ) AS col1, COUNT ( * ) + + 48 + - 68 * + - 52 AS col0
----
-85
3585

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT + 96 + - COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-310
SELECT + 96 + - COUNT ( * ) AS col0
----
95

query I rowsort
SELECT NULLIF ( + 40, 78 * 8 ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-312
SELECT DISTINCT - CAST( 67 AS SIGNED ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-312
SELECT DISTINCT - CAST ( 67 AS INTEGER ) AS col1
----
-67

query I rowsort
SELECT + - 7 + - + 9 * - 54 + 58 + + + 86 + + + 43 * + - 64
----
-2129

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT + + 32 + - - COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-314
SELECT + + 32 + - - COUNT ( * ) AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-315
SELECT DISTINCT + 68 DIV 70 * + - 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT + 68 / 70 * + - 1 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-316
SELECT ALL - 66 DIV + - 6 - - - 51 + + 15
----
-25

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL - 66 / + - 6 - - - 51 + + 15
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-317
SELECT ALL + 82 / + 94 - - ( - - 95 ) - NULLIF ( + 89, + 27 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-317
SELECT ALL + 82 / + 94 - - ( - - 95 ) - NULLIF ( + 89, + 27 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-319
SELECT CAST( NULL AS SIGNED ) AS col0, - 59 AS col1
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-319
SELECT CAST ( NULL AS INTEGER ) AS col0, - 59 AS col1
----
NULL
-59

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-322
SELECT - COALESCE ( - - MAX( DISTINCT + + 89 ), + COUNT( * ) * - + 99 DIV + ( - - 20 ) * 97 * + 47 + + - 55 * - - 49 + - 71 * 79, ( - 9 ) ) * 41 + - 50
----
-3699

skipif mysql # not compatible
query I rowsort label-322
SELECT - COALESCE ( - - MAX ( DISTINCT + + 89 ), + COUNT ( * ) * - + 99 / + ( - - 20 ) * 97 * + 47 + + - 55 * - - 49 + - 71 * 79, ( - 9 ) ) * 41 + - 50
----
-3699

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

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

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

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

query I rowsort
SELECT + 47 * + 74
----
3478

query I rowsort
SELECT DISTINCT 87 * - - 41 AS col0
----
3567

query I rowsort
SELECT DISTINCT 25 * 66 - + + 28 AS col2
----
1622

query II rowsort
SELECT ALL + 5, 76 col2
----
5
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-329
SELECT - 17 * 92 DIV - + 34 AS col2, - COUNT( * ) AS col2
----
46
-1

skipif mysql # not compatible
query II rowsort label-329
SELECT - 17 * 92 / - + 34 AS col2, - COUNT ( * ) AS col2
----
46
-1

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

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

query I rowsort
SELECT ( 88 ) AS col1
----
88

query I rowsort
SELECT + 4 + 37
----
41

query I rowsort
SELECT 27 * 24 - 79 + - 53 AS col0
----
516

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT - 86 - + CASE + COUNT( * ) WHEN 31 THEN 98 END * - - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-334
SELECT - 86 - + CASE + COUNT ( * ) WHEN 31 THEN 98 END * - - 15 AS col1
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-337
SELECT NULLIF ( - - 23, 56 * - + CASE 9 WHEN NULLIF ( 14, + 69 * - + 0 + + + 79 ) THEN + + 82 ELSE + + 96 - + + ( - NULLIF ( 46, - 4 - 18 ) ) - + - CASE CAST( NULL AS DECIMAL ) WHEN 1 + - CAST( + 38 AS SIGNED ) THEN NULL ELSE + 98 END / 71 END ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-337
SELECT NULLIF ( - - 23, 56 * - + CASE 9 WHEN NULLIF ( 14, + 69 * - + 0 + + + 79 ) THEN + + 82 ELSE + + 96 - + + ( - NULLIF ( 46, - 4 - 18 ) ) - + - CASE CAST ( NULL AS REAL ) WHEN 1 + - CAST ( + 38 AS INTEGER ) THEN NULL ELSE + 98 END / 71 END ) AS col0
----
23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-339
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + - 89 + 31 + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + - 89 + 31 + 87 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-340
SELECT ALL 53 * + 69 + + 61 col1, COUNT( * )
----
3718
1

skipif mysql # not compatible
query II rowsort label-340
SELECT ALL 53 * + 69 + + 61 col1, COUNT ( * )
----
3718
1

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT - 0 + + + SUM( + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-341
SELECT - 0 + + + SUM ( + 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT DISTINCT - SUM( - - 67 ) * + + COUNT( * ) * + 80 AS col2
----
-5360

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT - SUM ( - - 67 ) * + + COUNT ( * ) * + 80 AS col2
----
-5360

query I rowsort
SELECT + 50 + - 57 AS col0
----
-7

query I rowsort
SELECT ALL - 16 + 43
----
27

query I rowsort
SELECT ALL + 41 + 25
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT ALL 55 * - + 76 * + COUNT( * ) + + - 41
----
-4221

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL 55 * - + 76 * + COUNT ( * ) + + - 41
----
-4221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-347
SELECT ALL + - CAST( + 62 AS SIGNED ) - MIN( - + 65 )
----
3

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL + - CAST ( + 62 AS INTEGER ) - MIN ( - + 65 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-348
SELECT SUM( DISTINCT 32 ) - + 67, COUNT( * ) + 61 * - 90 AS col2
----
-35
-5489

skipif mysql # not compatible
query II rowsort label-348
SELECT SUM ( DISTINCT 32 ) - + 67, COUNT ( * ) + 61 * - 90 AS col2
----
-35
-5489

onlyif mysql # aggregate syntax: 
query II rowsort label-349
SELECT - 83 - 27 + - 55 AS col0, - 79 + - + ( + MAX( 74 ) ) AS col2
----
-165
-153

skipif mysql # not compatible
query II rowsort label-349
SELECT - 83 - 27 + - 55 AS col0, - 79 + - + ( + MAX ( 74 ) ) AS col2
----
-165
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-350
SELECT ALL + 90 * - CAST( NULL AS SIGNED ) + + COUNT( * ) + + COALESCE ( - + COUNT( * ), - 32 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL + 90 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + COALESCE ( - + COUNT ( * ), - 32 ) col1
----
NULL

query II rowsort
SELECT - 93 col1, - 11 + - - 80 + - 34 + + + 21 AS col1
----
-93
56

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-353
SELECT DISTINCT - 76 AS col1, COUNT( * ) DIV + 86
----
-76
0

skipif mysql # not compatible
query II rowsort label-353
SELECT DISTINCT - 76 AS col1, COUNT ( * ) / + 86
----
-76
0

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT COUNT( * ) * + COUNT( * ) * + 61 * + 49 AS col0
----
2989

skipif mysql # not compatible
query I rowsort label-354
SELECT COUNT ( * ) * + COUNT ( * ) * + 61 * + 49 AS col0
----
2989

query I rowsort
SELECT ALL + 85 * + 51 AS col1
----
4335

onlyif mysql # aggregate syntax: 
query II rowsort label-356
SELECT ALL - 89, + 46 * - 99 + - COUNT( * ) col0
----
-89
-4555

skipif mysql # not compatible
query II rowsort label-356
SELECT ALL - 89, + 46 * - 99 + - COUNT ( * ) col0
----
-89
-4555

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

query I rowsort
SELECT NULLIF ( + + 17, - 21 ) * + - 23
----
-391

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-359
SELECT DISTINCT NULLIF ( - 33, - - COUNT( * ) ) DIV + 60 + - 53 * ( - COUNT( * ) ) DIV + 79 + 1 AS col0, COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-359
SELECT DISTINCT NULLIF ( - 33, - - COUNT ( * ) ) / + 60 + - 53 * ( - COUNT ( * ) ) / + 79 + 1 AS col0, COUNT ( * ) AS col0
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-360
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) * - - 51 * 55, SUM( 14 ) col0
----
NULL
14

skipif mysql # not compatible
query II rowsort label-360
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) * - - 51 * 55, SUM ( 14 ) col0
----
NULL
14

onlyif mysql # aggregate syntax: 
query II rowsort label-361
SELECT 32 * 6 + COUNT( * ) - - + ( 12 ) * + 82 * 84, - 37 col0
----
82849
-37

skipif mysql # not compatible
query II rowsort label-361
SELECT 32 * 6 + COUNT ( * ) - - + ( 12 ) * + 82 * 84, - 37 col0
----
82849
-37

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

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

query I rowsort
SELECT DISTINCT - 50 + + 50
----
0

query I rowsort
SELECT DISTINCT - COALESCE ( 51, 93 )
----
-51

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

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

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

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL 54 + + + 81 - + 74 + + ( - COUNT ( * ) ) / 1 AS col0
----
60

query II rowsort
SELECT DISTINCT - + 63 AS col0, 42
----
-63
42

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT + - 23 * + + COUNT( ALL - + 26 ) * 85 + COUNT( * ) + + 73 + 47
----
-1834

skipif mysql # not compatible
query I rowsort label-368
SELECT + - 23 * + + COUNT ( ALL - + 26 ) * 85 + COUNT ( * ) + + 73 + 47
----
-1834

query I rowsort
SELECT ALL + CASE ( ( + 31 ) ) WHEN 76 THEN NULL WHEN 92 THEN + ( - 68 ) ELSE - 94 END AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT ( + 45 ) + - + COALESCE ( - - COUNT( * ), - + 70 / + COUNT( * ) ) + - CASE - 9 WHEN - + 29 THEN + 59 * + MAX( ALL - 38 ) - + + 18 + - 69 + - + 62 ELSE NULL END * - - 90 + 97 + 53 * + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-370
SELECT ( + 45 ) + - + COALESCE ( - - COUNT ( * ), - + 70 / + COUNT ( * ) ) + - CASE - 9 WHEN - + 29 THEN + 59 * + MAX ( ALL - 38 ) - + + 18 + - 69 + - + 62 ELSE NULL END * - - 90 + 97 + 53 * + 91 AS col2
----
NULL

query I rowsort
SELECT ALL + + 9 + - + 59 * - - 10 AS col1
----
-581

query I rowsort
SELECT - 73 * + 68
----
-4964

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-373
SELECT DISTINCT NULLIF ( - + COUNT( * ), + COUNT( * ) ) DIV 24 AS col2, NULLIF ( 89, ( - 76 ) ) DIV 39 + + COALESCE ( - - 94, + + 54 + - 17 ) DIV + - 10 + - 4 + + COUNT( ALL - 14 ) * - 54
----
0
-65

skipif mysql # not compatible
query II rowsort label-373
SELECT DISTINCT NULLIF ( - + COUNT ( * ), + COUNT ( * ) ) / 24 AS col2, NULLIF ( 89, ( - 76 ) ) / 39 + + COALESCE ( - - 94, + + 54 + - 17 ) / + - 10 + - 4 + + COUNT ( ALL - 14 ) * - 54
----
0
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-374
SELECT - 87 - NULLIF ( CAST( NULL AS SIGNED ), + COALESCE ( - 75, 69 * 83 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-374
SELECT - 87 - NULLIF ( CAST ( NULL AS INTEGER ), + COALESCE ( - 75, 69 * 83 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 42 * - 47 * + 78
----
153972

query I rowsort
SELECT NULLIF ( 11, - 41 / + + 95 + + 64 ) AS col2
----
11

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

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL - CAST ( NULL AS INTEGER ) * 96 AS col0
----
NULL

query I rowsort
SELECT + 53 + 32 AS col2
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-379
SELECT 56 * - - 29 * - COUNT( * ) + + - 80 col1, + 44 * COUNT( * ) AS col1
----
-1704
44

skipif mysql # not compatible
query II rowsort label-379
SELECT 56 * - - 29 * - COUNT ( * ) + + - 80 col1, + 44 * COUNT ( * ) AS col1
----
-1704
44

query I rowsort
SELECT 87 + + 12 AS col1
----
99

query I rowsort
SELECT + 36 - - 62 - + + 84 AS col1
----
14

query II rowsort
SELECT - 32, 35 AS col0
----
-32
35

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

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

query I rowsort
SELECT 18 * 71
----
1278

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT ALL 70 * SUM( + 73 ) col2
----
5110

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL 70 * SUM ( + 73 ) col2
----
5110

query I rowsort
SELECT ALL + ( - 20 ) * 17 col0
----
-340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-388
SELECT ALL + CAST( ( + 67 ) AS SIGNED ) * 98
----
6566

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL + CAST ( ( + 67 ) AS INTEGER ) * 98
----
6566

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-389
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2, + 24 AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-389
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, + 24 AS col2
----
NULL
24

onlyif mysql # DIV for integer division: 
query I rowsort label-390
SELECT 55 DIV + - 89 + - 85
----
-85

skipif mysql # not compatible
query I rowsort label-390
SELECT 55 / + - 89 + - 85
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-391
SELECT + MAX( DISTINCT + 36 ) DIV 87 + + + 14
----
14

skipif mysql # not compatible
query I rowsort label-391
SELECT + MAX ( DISTINCT + 36 ) / 87 + + + 14
----
14

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

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

query I rowsort
SELECT ( 42 ) * + 94 col0
----
3948

query I rowsort
SELECT ALL 98 * + 93 + - 26 AS col2
----
9088

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT DISTINCT + COUNT( * ) * - 86 * - MAX( 11 ) * + 17 * 4 + + 3 + + - 66
----
64265

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT + COUNT ( * ) * - 86 * - MAX ( 11 ) * + 17 * 4 + + 3 + + - 66
----
64265

onlyif mysql # aggregate syntax: 
query II rowsort label-396
SELECT + MIN( - 23 ) col0, + COUNT( 1 )
----
-23
1

skipif mysql # not compatible
query II rowsort label-396
SELECT + MIN ( - 23 ) col0, + COUNT ( 1 )
----
-23
1

onlyif mysql # DIV for integer division: 
query II rowsort label-397
SELECT ALL 22 DIV - + 19, - 49 + + 44 * 90 AS col2
----
-1
3911

skipif mysql # not compatible
query II rowsort label-397
SELECT ALL 22 / - + 19, - 49 + + 44 * 90 AS col2
----
-1
3911

query I rowsort
SELECT + 54 * + 20 * + 94 + - - 81 - 21 + 89 AS col0
----
101669

onlyif mysql # aggregate syntax: 
query II rowsort label-399
SELECT DISTINCT COUNT( * ) * 99 + + 46 AS col1, - 12 + - 65 - + + 42 * ( - 53 ) * 59 + COUNT( * ) col2
----
145
131258

skipif mysql # not compatible
query II rowsort label-399
SELECT DISTINCT COUNT ( * ) * 99 + + 46 AS col1, - 12 + - 65 - + + 42 * ( - 53 ) * 59 + COUNT ( * ) col2
----
145
131258

query I rowsort
SELECT + + 52 * - 2 * + 25
----
-2600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-401
SELECT ALL + 41 / - - 9 + CAST( NULL AS SIGNED ) + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL + 41 / - - 9 + CAST ( NULL AS INTEGER ) + - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT + - 35 + + 31 - - COUNT( * ) + - + 62 * - - 98 * + - 67
----
407089

skipif mysql # not compatible
query I rowsort label-402
SELECT + - 35 + + 31 - - COUNT ( * ) + - + 62 * - - 98 * + - 67
----
407089

query I rowsort
SELECT 77 * - + 5 - 53 + - 29
----
-467

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT ALL + SUM( DISTINCT 3 )
----
3

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL + SUM ( DISTINCT 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT - 74 * + SUM( + + 50 ) + ( + + 66 ) + + - 72 + - 72 + + 15 * + 78
----
-2608

skipif mysql # not compatible
query I rowsort label-405
SELECT - 74 * + SUM ( + + 50 ) + ( + + 66 ) + + - 72 + - 72 + + 15 * + 78
----
-2608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-406
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) + + + COUNT( * ) DIV + + COALESCE ( + 11, - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) + + + COUNT ( * ) / + + COALESCE ( + 11, - 1 )
----
1

query I rowsort
SELECT 80 * + + 0 * + 12 + - - 62
----
62

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

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

query I rowsort
SELECT DISTINCT + + NULLIF ( + - 67, 74 * + 36 )
----
-67

query I rowsort
SELECT DISTINCT - 72 * 55
----
-3960

onlyif mysql # aggregate syntax: 
query II rowsort label-411
SELECT ALL - 14 - 48, + COALESCE ( - COUNT( * ), + 3, + 82 ) * - 0 * - 53 AS col0
----
-62
0

skipif mysql # not compatible
query II rowsort label-411
SELECT ALL - 14 - 48, + COALESCE ( - COUNT ( * ), + 3, + 82 ) * - 0 * - 53 AS col0
----
-62
0

query I rowsort
SELECT ALL 59 * - 76 + + 12 + + 20 + + - 19 * - 2
----
-4414

query I rowsort
SELECT + - 34 * - - 16 AS col0
----
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT CASE + 64 WHEN 39 THEN + + MAX( + + NULLIF ( - + NULLIF ( + 8, - - COALESCE ( 47, + - 49 ) ), + 99 ) ) WHEN - 24 * + 31 + + ( + - MAX( 80 ) ) THEN + - ( + 88 ) WHEN 84 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-414
SELECT CASE + 64 WHEN 39 THEN + + MAX ( + + NULLIF ( - + NULLIF ( + 8, - - COALESCE ( 47, + - 49 ) ), + 99 ) ) WHEN - 24 * + 31 + + ( + - MAX ( 80 ) ) THEN + - ( + 88 ) WHEN 84 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - + 95 * - 88 * + 74
----
618640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-416
SELECT ALL COALESCE ( COALESCE ( - 45, - ( 60 ), - 99 + - 82 ), + 78 + + + COALESCE ( - 26, - + 7 + + + 73 * - 33 * + + COUNT( * ) ) + + CAST( NULL AS SIGNED ) * - COUNT( * ) * + + COUNT( * ) + - COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL COALESCE ( COALESCE ( - 45, - ( 60 ), - 99 + - 82 ), + 78 + + + COALESCE ( - 26, - + 7 + + + 73 * - 33 * + + COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + + COUNT ( * ) + - COUNT ( * ) )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-417
SELECT - 34 + + MAX( - - ( - 61 ) ) DIV + 64 * - - ( COUNT( * ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-417
SELECT - 34 + + MAX ( - - ( - 61 ) ) / + 64 * - - ( COUNT ( * ) ) AS col2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-418
SELECT ALL + 73 DIV - ( - ( + 61 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL + 73 / - ( - ( + 61 ) ) col1
----
1

query I rowsort
SELECT DISTINCT + 40 * 61 + - - 75 AS col2
----
2515

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

skipif mysql # not compatible
query I rowsort label-420
SELECT - 92 * - COUNT ( * )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-421
SELECT ALL COALESCE ( 31, - 59 ) DIV + 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL COALESCE ( 31, - 59 ) / + 58 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT DISTINCT + NULLIF ( + COUNT( ( 41 ) ), 4 ) * + - COUNT( * ) * + 56 - - + 56
----
0

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT + NULLIF ( + COUNT ( ( 41 ) ), 4 ) * + - COUNT ( * ) * + 56 - - + 56
----
0

query I rowsort
SELECT - 76 * + 21 AS col1
----
-1596

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT + 88 - + 92 DIV + 79 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-425
SELECT + 88 - + 92 / + 79 AS col2
----
87

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

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

query I rowsort
SELECT - 46 * 73
----
-3358

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT ALL - 96 / CASE + 10 WHEN - 50 THEN 20 + + + COUNT( * ) WHEN + 23 * 30 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL - 96 / CASE + 10 WHEN - 50 THEN 20 + + + COUNT ( * ) WHEN + 23 * 30 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-429
SELECT + 64 + 17 + + COUNT( * ) AS col0, + 25 + + + 70 - - + CAST( NULL AS SIGNED ) * + + 43 + 20
----
82
NULL

skipif mysql # not compatible
query II rowsort label-429
SELECT + 64 + 17 + + COUNT ( * ) AS col0, + 25 + + + 70 - - + CAST ( NULL AS INTEGER ) * + + 43 + 20
----
82
NULL

query I rowsort
SELECT ALL + CASE + ( - 17 ) WHEN + 67 + - 84 * - + 35 * 93 * - 42 THEN + 86 * + 45 * + 44 * 10 ELSE NULL END AS col1
----
NULL

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

query I rowsort
SELECT ( - - 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ALL 74 * - 7 + + NULLIF ( - + COUNT( DISTINCT + - 61 ), - 72 + + + 38 )
----
-519

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL 74 * - 7 + + NULLIF ( - + COUNT ( DISTINCT + - 61 ), - 72 + + + 38 )
----
-519

query II rowsort
SELECT + + ( - 50 ) * - 74, - 60 AS col0
----
3700
-60

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

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

query I rowsort
SELECT DISTINCT + 93 * + 27 - 79 AS col2
----
2432

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT + MAX( 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-437
SELECT + MAX ( 18 ) AS col0
----
18

query II rowsort
SELECT + 46 * - 61 + - - NULLIF ( + - 76, 37 * + - 76 ) AS col0, + 57 * - COALESCE ( - 49, + - 78 ) * - 47 AS col0
----
-2882
-131271

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT ALL - 34 * - - COUNT( * ) - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL - 34 * - - COUNT ( * ) - COUNT ( * )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-440
SELECT DISTINCT 25 * + 38 + - - 4 - + + 60 DIV - - 81
----
954

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT 25 * + 38 + - - 4 - + + 60 / - - 81
----
954

query II rowsort
SELECT ALL + + 99 AS col2, 95 AS col0
----
99
95

onlyif mysql # DIV for integer division: 
query I rowsort label-442
SELECT DISTINCT 4 DIV + 41 * + + ( - 22 )
----
0

skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT 4 / + 41 * + + ( - 22 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-443
SELECT + 73 + 39 DIV + - 91 * - 5
----
73

skipif mysql # not compatible
query I rowsort label-443
SELECT + 73 + 39 / + - 91 * - 5
----
73

query I rowsort
SELECT ALL + + 43 AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-445
SELECT + - CAST( - 64 AS SIGNED ) * - 89 AS col2
----
-5696

skipif mysql # not compatible
query I rowsort label-445
SELECT + - CAST ( - 64 AS INTEGER ) * - 89 AS col2
----
-5696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-446
SELECT + CASE CASE - CASE + COUNT( * ) WHEN - COUNT( ALL - 90 ) - - 75 * - 33 * + CAST( NULL AS SIGNED ) THEN + - COUNT( * ) * + - COUNT( * ) * + - 73 END WHEN + CAST( NULL AS SIGNED ) + + 16 * - - COALESCE ( ( - + 34 ), + 99 + - - 16 ) THEN - - 50 * - SUM( DISTINCT + + 76 ) + - AVG ( 65 ) - 49 END WHEN - NULLIF ( + 2, - 44 ) - 15 THEN 92 * - 41 + + 74 WHEN - 58 THEN 50 WHEN CASE - 78 WHEN - MAX( DISTINCT + 30 ) THEN NULL WHEN 63 THEN + 75 ELSE NULL END + - 37 THEN NULL WHEN 34 THEN NULL WHEN + 31 * 72 + 38 THEN NULL ELSE 54 * + 1 END AS col0
----
54

skipif mysql # not compatible
query I rowsort label-446
SELECT + CASE CASE - CASE + COUNT ( * ) WHEN - COUNT ( ALL - 90 ) - - 75 * - 33 * + CAST ( NULL AS INTEGER ) THEN + - COUNT ( * ) * + - COUNT ( * ) * + - 73 END WHEN + CAST ( NULL AS INTEGER ) + + 16 * - - COALESCE ( ( - + 34 ), + 99 + - - 16 ) THEN - - 50 * - SUM ( DISTINCT + + 76 ) + - AVG ( 65 ) - 49 END WHEN - NULLIF ( + 2, - 44 ) - 15 THEN 92 * - 41 + + 74 WHEN - 58 THEN 50 WHEN CASE - 78 WHEN - MAX ( DISTINCT + 30 ) THEN NULL WHEN 63 THEN + 75 ELSE NULL END + - 37 THEN NULL WHEN 34 THEN NULL WHEN + 31 * 72 + 38 THEN NULL ELSE 54 * + 1 END AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT + - 68, 15 * ( - ( COUNT( * ) ) ) AS col2
----
-68
-15

skipif mysql # not compatible
query II rowsort label-447
SELECT + - 68, 15 * ( - ( COUNT ( * ) ) ) AS col2
----
-68
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-448
SELECT + - 24 DIV + 23 + + 76 DIV + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-448
SELECT + - 24 / + 23 + + 76 / + COUNT ( * )
----
75

query I rowsort
SELECT ALL 93 * + 43
----
3999

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-451
SELECT ALL ( + CAST( - - 65 AS SIGNED ) ) AS col0, - COUNT( + 95 ) - - - ( 9 )
----
65
-10

skipif mysql # not compatible
query II rowsort label-451
SELECT ALL ( + CAST ( - - 65 AS INTEGER ) ) AS col0, - COUNT ( + 95 ) - - - ( 9 )
----
65
-10

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

skipif mysql # not compatible
query I rowsort label-452
SELECT + - CAST ( NULL AS REAL ) - - 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT ALL CASE + - 62 WHEN + COUNT( * ) THEN NULL ELSE + + 11 + - 89 * + COUNT( * ) END
----
-78

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL CASE + - 62 WHEN + COUNT ( * ) THEN NULL ELSE + + 11 + - 89 * + COUNT ( * ) END
----
-78

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

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

query I rowsort
SELECT + 88 + 88 + 16 + - + 56 + - + 2 * - - 71
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-456
SELECT ALL 59 + + CASE - + 95 WHEN - MIN( DISTINCT + 33 ) + - + 84 THEN 49 END AS col2, + 99 + + - 64 AS col2
----
NULL
35

skipif mysql # not compatible
query II rowsort label-456
SELECT ALL 59 + + CASE - + 95 WHEN - MIN ( DISTINCT + 33 ) + - + 84 THEN 49 END AS col2, + 99 + + - 64 AS col2
----
NULL
35

query I rowsort
SELECT - 70 - + - 23
----
-47

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

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

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

query I rowsort
SELECT ALL + 37 + 38 + + + 68 col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT - COUNT( * ) + + + 68 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-461
SELECT - COUNT ( * ) + + + 68 AS col1
----
67

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-463
SELECT ALL - 74 + - CAST( NULL AS SIGNED ) * - 93 - - 0 + - NULLIF ( COUNT( * ), + - 87 * + + NULLIF ( + 4, + COUNT( * ) ) + - 71 ) * 9 - - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL - 74 + - CAST ( NULL AS INTEGER ) * - 93 - - 0 + - NULLIF ( COUNT ( * ), + - 87 * + + NULLIF ( + 4, + COUNT ( * ) ) + - 71 ) * 9 - - 93 AS col2
----
NULL

query I rowsort
SELECT - 87 + + 5
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-465
SELECT ALL 93 + 4 - + ( + 32 ) + + - 11 + - - 84 + 50 + - 14 + + - CAST( NULL AS SIGNED ) * - 72 * 51 * - 34 + + 62 * + MIN( - + 74 ) * + ( 37 ) + COUNT( * ) * + ( + 62 ) + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL 93 + 4 - + ( + 32 ) + + - 11 + - - 84 + 50 + - 14 + + - CAST ( NULL AS INTEGER ) * - 72 * 51 * - 34 + + 62 * + MIN ( - + 74 ) * + ( 37 ) + COUNT ( * ) * + ( + 62 ) + + 62
----
NULL

query I rowsort
SELECT DISTINCT - 92 * - 45
----
4140

query I rowsort
SELECT ALL + 29 * - 30 AS col0
----
-870

onlyif mysql # DIV for integer division: 
query I rowsort label-468
SELECT COALESCE ( - - 48, - + 21 ) DIV + 38 + - - 23 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-468
SELECT COALESCE ( - - 48, - + 21 ) / + 38 + - - 23 AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-469
SELECT DISTINCT - SUM( ALL + 74 ) - + CAST( NULL AS SIGNED ) - + - 75 - + 43 + - - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-469
SELECT DISTINCT - SUM ( ALL + 74 ) - + CAST ( NULL AS INTEGER ) - + - 75 - + 43 + - - 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-470
SELECT DISTINCT - MIN( DISTINCT 61 ) DIV - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT - MIN ( DISTINCT 61 ) / - 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT DISTINCT - 47 - + - SUM( DISTINCT 82 )
----
35

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT - 47 - + - SUM ( DISTINCT 82 )
----
35

query I rowsort
SELECT 78 * 33 + - 54 + - + 73 + 79 + - + 92 + 57
----
2491

query I rowsort
SELECT 62 * - ( 1 )
----
-62

query I rowsort
SELECT ALL - - 23 * + + 56 - - - 7 AS col0
----
1281

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

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

query I rowsort
SELECT ALL - - 31 + + 57 * 53
----
3052

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT 51 * - COUNT( * ) * 85 + 62 * + - 8 col0
----
-4831

skipif mysql # not compatible
query I rowsort label-477
SELECT 51 * - COUNT ( * ) * 85 + 62 * + - 8 col0
----
-4831

query I rowsort
SELECT ALL - 82 + + 22 * 64
----
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT 62 + COUNT( * ) + + COUNT( * ) - - 72 * - 70
----
-4976

skipif mysql # not compatible
query I rowsort label-479
SELECT 62 + COUNT ( * ) + + COUNT ( * ) - - 72 * - 70
----
-4976

query II rowsort
SELECT + + CASE + + 89 WHEN + ( 61 ) THEN - + ( 61 ) * - - NULLIF ( 77, + 66 + + 77 ) - + 63 + 76 + + - 24 / - + 90 WHEN 97 THEN NULL WHEN 13 / + - 77 THEN NULL END AS col0, 73
----
NULL
73

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL - ( - - COUNT( DISTINCT + 13 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL - ( - - COUNT ( DISTINCT + 13 ) ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-482
SELECT ALL 22 DIV - + 53
----
0

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL 22 / - + 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT ALL - NULLIF ( 84, COUNT( * ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL - NULLIF ( 84, COUNT ( * ) ) AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-484
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) + + 25 + ( + - 64 ) + + + 76 * 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) + + 25 + ( + - 64 ) + + + 76 * 95 AS col0
----
NULL

query II rowsort
SELECT - 91 col1, 32
----
-91
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT 24 * + 84 * - + COUNT( 22 ) AS col2
----
-2016

skipif mysql # not compatible
query I rowsort label-487
SELECT 24 * + 84 * - + COUNT ( 22 ) AS col2
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT NULLIF ( + 96, ( 51 ) - - NULLIF ( - 51, - - ( - 12 ) / - + 73 ) * 71 + - - COALESCE ( 42, 77, + COUNT( * ) ) * 91 ) * + 35 + + + 28 + MAX( - 98 ) / + - CASE + 85 WHEN 61 THEN - 35 * - - 60 + SUM( - 43 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-488
SELECT NULLIF ( + 96, ( 51 ) - - NULLIF ( - 51, - - ( - 12 ) / - + 73 ) * 71 + - - COALESCE ( 42, 77, + COUNT ( * ) ) * 91 ) * + 35 + + + 28 + MAX ( - 98 ) / + - CASE + 85 WHEN 61 THEN - 35 * - - 60 + SUM ( - 43 ) END AS col1
----
NULL

query I rowsort
SELECT 69 + + 99
----
168

query I rowsort
SELECT ALL 53 + - 49
----
4

query I rowsort
SELECT ALL 5 + - 54 col0
----
-49

query I rowsort
SELECT 59 * - 98
----
-5782

query I rowsort
SELECT DISTINCT 52 * 40 * + - 35 * + 44 AS col2
----
-3203200

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT 49 - + COUNT( * ) * - + SUM( DISTINCT - 98 )
----
-49

skipif mysql # not compatible
query I rowsort label-494
SELECT 49 - + COUNT ( * ) * - + SUM ( DISTINCT - 98 )
----
-49

query I rowsort
SELECT 84 * - 68
----
-5712

query I rowsort
SELECT 68 + + ( - 20 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-497
SELECT 3 / - SUM( + 22 ) * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-497
SELECT 3 / - SUM ( + 22 ) * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT 74 * + COUNT( * ) * - + 56 AS col0
----
-4144

skipif mysql # not compatible
query I rowsort label-498
SELECT 74 * + COUNT ( * ) * - + 56 AS col0
----
-4144

query I rowsort
SELECT DISTINCT - 61 * + 81 AS col2
----
-4941

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

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

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL - - COUNT ( DISTINCT + 70 ) AS col1
----
1

query I rowsort
SELECT ( + 1 ) - - 39 * + + 41 AS col2
----
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT - - 70 * + - 98 * + COUNT( ALL + 6 ) - + 41 AS col1
----
-6901

skipif mysql # not compatible
query I rowsort label-503
SELECT - - 70 * + - 98 * + COUNT ( ALL + 6 ) - + 41 AS col1
----
-6901

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

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

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

skipif mysql # not compatible
query II rowsort label-505
SELECT COUNT ( * ) AS col0, 79 AS col1
----
1
79

query I rowsort
SELECT ALL - + NULLIF ( 28, 59 ) AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-507
SELECT ALL CAST( NULL AS SIGNED ) * + NULLIF ( + COUNT( * ), + ( + ( + 1 ) ) ) / 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL CAST ( NULL AS INTEGER ) * + NULLIF ( + COUNT ( * ), + ( + ( + 1 ) ) ) / 6 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-508
SELECT - 64 DIV + - 19
----
3

skipif mysql # not compatible
query I rowsort label-508
SELECT - 64 / + - 19
----
3

query I rowsort
SELECT + 4 * 77 + + - 50
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT 88 * 86 + + CASE - 37 WHEN - 44 * + + 93 - NULLIF ( - 84, - + 70 + - - NULLIF ( + - 89, + 94 ) - 34 ) + + ( + 39 ) * 68 * - - 17 * - - NULLIF ( 33, + 30 + - 76 * - 15 ) - + AVG ( ALL 84 ) + - ( ( 77 ) ) - COUNT( * ) * + COALESCE ( + 71, 57 ) THEN - 77 - + 0 ELSE 73 END
----
7641

skipif mysql # not compatible
query I rowsort label-510
SELECT 88 * 86 + + CASE - 37 WHEN - 44 * + + 93 - NULLIF ( - 84, - + 70 + - - NULLIF ( + - 89, + 94 ) - 34 ) + + ( + 39 ) * 68 * - - 17 * - - NULLIF ( 33, + 30 + - 76 * - 15 ) - + AVG ( ALL 84 ) + - ( ( 77 ) ) - COUNT ( * ) * + COALESCE ( + 71, 57 ) THEN - 77 - + 0 ELSE 73 END
----
7641

query I rowsort
SELECT 66 - + 80 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT DISTINCT + 52 + + COUNT( + 22 )
----
53

skipif mysql # not compatible
query I rowsort label-512
SELECT DISTINCT + 52 + + COUNT ( + 22 )
----
53

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

skipif mysql # not compatible
query I rowsort label-513
SELECT MAX ( + 7 )
----
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-514
SELECT DISTINCT - - 53 + 18 + - 41 / - CAST( NULL AS DECIMAL ) + + 47 + CAST( NULL AS DECIMAL ) * 1 + + + 6 + - 92 * - - 31 / 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT - - 53 + 18 + - 41 / - CAST ( NULL AS REAL ) + + 47 + CAST ( NULL AS REAL ) * 1 + + + 6 + - 92 * - - 31 / 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT - 81 * - + 78 * + ( + 96 ) * + 91 + + - COUNT( * )
----
55194047

skipif mysql # not compatible
query I rowsort label-515
SELECT - 81 * - + 78 * + ( + 96 ) * + 91 + + - COUNT ( * )
----
55194047

onlyif mysql # aggregate syntax: 
query II rowsort label-516
SELECT 45 * + - 35 + - - 5 * - 61 * - NULLIF ( 48, + + 90 ) + - COUNT( * ) + + 49 - 22 AS col0, COUNT( * ) * + + COUNT( 71 )
----
13091
1

skipif mysql # not compatible
query II rowsort label-516
SELECT 45 * + - 35 + - - 5 * - 61 * - NULLIF ( 48, + + 90 ) + - COUNT ( * ) + + 49 - 22 AS col0, COUNT ( * ) * + + COUNT ( 71 )
----
13091
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-518
SELECT 69 * 82, - CAST( NULL AS SIGNED ) AS col2
----
5658
NULL

skipif mysql # not compatible
query II rowsort label-518
SELECT 69 * 82, - CAST ( NULL AS INTEGER ) AS col2
----
5658
NULL

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

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

query I rowsort
SELECT ALL + 37 + 5 AS col0
----
42

query I rowsort
SELECT 49 - 5
----
44

query II rowsort
SELECT - 51 AS col2, 5 AS col1
----
-51
5

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-524
SELECT ALL COUNT( * ) AS col0, CAST( 87 AS SIGNED ) * - - 38 AS col0
----
1
3306

skipif mysql # not compatible
query II rowsort label-524
SELECT ALL COUNT ( * ) AS col0, CAST ( 87 AS INTEGER ) * - - 38 AS col0
----
1
3306

onlyif mysql # aggregate syntax: 
query II rowsort label-525
SELECT - 58 * + COUNT( * ) col2, 46
----
-58
46

skipif mysql # not compatible
query II rowsort label-525
SELECT - 58 * + COUNT ( * ) col2, 46
----
-58
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-526
SELECT ALL CASE - - 24 WHEN + - CASE 76 WHEN - - 77 THEN 71 ELSE + 18 * 53 * CAST( + 1 AS SIGNED ) END * 30 + COALESCE ( - 51, COUNT( * ) * - 11 + - 15 ) + 63 THEN + CAST( + 7 AS SIGNED ) + - 17 - + - 84 + 10 + - CAST( + + 88 AS SIGNED ) * 4 WHEN - 24 THEN NULL ELSE 2 + + COALESCE ( + 97, - 82 * + 60 + 56 ) END AS col0
----
99

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL CASE - - 24 WHEN + - CASE 76 WHEN - - 77 THEN 71 ELSE + 18 * 53 * CAST ( + 1 AS INTEGER ) END * 30 + COALESCE ( - 51, COUNT ( * ) * - 11 + - 15 ) + 63 THEN + CAST ( + 7 AS INTEGER ) + - 17 - + - 84 + 10 + - CAST ( + + 88 AS INTEGER ) * 4 WHEN - 24 THEN NULL ELSE 2 + + COALESCE ( + 97, - 82 * + 60 + 56 ) END AS col0
----
99

query I rowsort
SELECT + 57 - + - 2
----
59

query II rowsort
SELECT - 23 AS col0, ( + 32 ) * 63 * + - 95
----
-23
-191520

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT DISTINCT MAX( 60 ) * - - 36
----
2160

skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT MAX ( 60 ) * - - 36
----
2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-530
SELECT ALL 15 * - CAST( + 9 AS SIGNED )
----
-135

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL 15 * - CAST ( + 9 AS INTEGER )
----
-135

query I rowsort
SELECT ALL NULLIF ( - 24, 60 / + 40 )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-532
SELECT DISTINCT 72 AS col0, 93 DIV - COUNT( * ) - + ( - 44 ) col1
----
72
-49

skipif mysql # not compatible
query II rowsort label-532
SELECT DISTINCT 72 AS col0, 93 / - COUNT ( * ) - + ( - 44 ) col1
----
72
-49

query II rowsort
SELECT ALL + 56, + 52 + + - 78 AS col1
----
56
-26

query II rowsort
SELECT - ( - 3 ) * + 30 + + 55 * 51 * - - 35 AS col0, + 69
----
98265
69

query II rowsort
SELECT DISTINCT + - 27 AS col2, 28
----
-27
28

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT - 71 * - SUM( 29 ) col2
----
2059

skipif mysql # not compatible
query I rowsort label-536
SELECT - 71 * - SUM ( 29 ) col2
----
2059

query I rowsort
SELECT DISTINCT + + 68 * - 22 * - 0 + - + CASE - 94 WHEN - - 23 THEN + 49 + 34 ELSE NULL END + - 71 / - 60 / - - 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT + + COUNT( * ) + - + 71 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-538
SELECT + + COUNT ( * ) + - + 71 AS col1
----
-70

query I rowsort
SELECT ALL - 64 * + ( - 66 ) + + 30 + - ( + + 28 ) AS col2
----
4226

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT CASE + 37 WHEN + - 10 THEN NULL WHEN + 60 / - 68 * 12 THEN - 95 - + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-540
SELECT CASE + 37 WHEN + - 10 THEN NULL WHEN + 60 / - 68 * 12 THEN - 95 - + - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT + + 74 * - - COUNT( + - 83 ) + + - 30
----
44

skipif mysql # not compatible
query I rowsort label-541
SELECT + + 74 * - - COUNT ( + - 83 ) + + - 30
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT + - 99 * + + COUNT( * ) * 72 * 53 + - 87 AS col2
----
-377871

skipif mysql # not compatible
query I rowsort label-542
SELECT + - 99 * + + COUNT ( * ) * 72 * 53 + - 87 AS col2
----
-377871

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT - COUNT( ALL + 95 ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-543
SELECT - COUNT ( ALL + 95 ) + + COUNT ( * )
----
0

query II rowsort
SELECT + 92 AS col2, - 25 AS col0
----
92
-25

query I rowsort
SELECT - 1 + + 28
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT MIN( - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-546
SELECT MIN ( - 2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-547
SELECT - 35 + - 8 col1, - COUNT( CAST( NULL AS SIGNED ) )
----
-43
0

skipif mysql # not compatible
query II rowsort label-547
SELECT - 35 + - 8 col1, - COUNT ( CAST ( NULL AS INTEGER ) )
----
-43
0

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT - MIN( DISTINCT + 53 ) + + 10 col1
----
-43

skipif mysql # not compatible
query I rowsort label-548
SELECT - MIN ( DISTINCT + 53 ) + + 10 col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-549
SELECT DISTINCT NULLIF ( + AVG ( + CAST( NULL AS SIGNED ) ), - + ( 20 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT NULLIF ( + AVG ( + CAST ( NULL AS INTEGER ) ), - + ( 20 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-550
SELECT - ( 66 ) + + CAST( + + 24 AS SIGNED ) DIV 53 DIV + 56 DIV - 50
----
-66

skipif mysql # not compatible
query I rowsort label-550
SELECT - ( 66 ) + + CAST ( + + 24 AS INTEGER ) / 53 / + 56 / - 50
----
-66

query I rowsort
SELECT ALL + 70 * - 87
----
-6090

query II rowsort
SELECT ALL ( 82 ) AS col0, 83 + - 72 AS col0
----
82
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-553
SELECT - NULLIF ( COALESCE ( - 35, - + 26, + 83 * + - 74 + - MAX( ALL + CAST( NULL AS SIGNED ) ) ), 95 + - 95 ) * 50 AS col2
----
1750

skipif mysql # not compatible
query I rowsort label-553
SELECT - NULLIF ( COALESCE ( - 35, - + 26, + 83 * + - 74 + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) ), 95 + - 95 ) * 50 AS col2
----
1750

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

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

query I rowsort
SELECT ALL + 70 * - 98 * + + 33
----
-226380

query I rowsort
SELECT ALL NULLIF ( + ( + 64 ), 55 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-557
SELECT - - CASE + + 41 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN 91 THEN 22 WHEN + 37 THEN + COUNT( DISTINCT 44 ) ELSE + 67 * + 38 - 49 END
----
2497

skipif mysql # not compatible
query I rowsort label-557
SELECT - - CASE + + 41 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN 91 THEN 22 WHEN + 37 THEN + COUNT ( DISTINCT 44 ) ELSE + 67 * + 38 - 49 END
----
2497

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-558
SELECT ALL - - 29 + - ( 2 ) DIV - 89 * + COUNT( * ) AS col2, ( - 12 ) + - 10 - - 97
----
29
75

skipif mysql # not compatible
query II rowsort label-558
SELECT ALL - - 29 + - ( 2 ) / - 89 * + COUNT ( * ) AS col2, ( - 12 ) + - 10 - - 97
----
29
75

query I rowsort
SELECT - - NULLIF ( + + 30, + 45 * 14 ) - + + ( + - 25 )
----
55

query I rowsort
SELECT - + 46 - + 44 + + - 97 col0
----
-187

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

skipif mysql # not compatible
query I rowsort label-561
SELECT DISTINCT + COUNT ( * ) + 10 AS col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-562
SELECT ALL - COUNT( * ) DIV - 30 + + 61 * + + COUNT( * ) * + COUNT( * ) + - 92 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL - COUNT ( * ) / - 30 + + 61 * + + COUNT ( * ) * + COUNT ( * ) + - 92 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT DISTINCT 48 * 66 + - - 70 * NULLIF ( + + 34, - + 18 + - + 5 ) + - CASE 85 WHEN - + 13 THEN NULL ELSE 43 + - COUNT( * ) END
----
5506

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT 48 * 66 + - - 70 * NULLIF ( + + 34, - + 18 + - + 5 ) + - CASE 85 WHEN - + 13 THEN NULL ELSE 43 + - COUNT ( * ) END
----
5506

query I rowsort
SELECT + - 5 - + 93 AS col1
----
-98

query I rowsort
SELECT + + 89 * - 69 col2
----
-6141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-566
SELECT DISTINCT - 10 DIV - 78 + 83 * - COALESCE ( COALESCE ( COUNT( * ), + + 95 ), - 88 ) + 20
----
-63

skipif mysql # not compatible
query I rowsort label-566
SELECT DISTINCT - 10 / - 78 + 83 * - COALESCE ( COALESCE ( COUNT ( * ), + + 95 ), - 88 ) + 20
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-567
SELECT SUM( DISTINCT - 22 ) AS col2, - 27 AS col1
----
-22
-27

skipif mysql # not compatible
query II rowsort label-567
SELECT SUM ( DISTINCT - 22 ) AS col2, - 27 AS col1
----
-22
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-568
SELECT COALESCE ( + CAST( + + MAX( + 72 ) AS SIGNED ), + 69 ) AS col0, - 7 col2
----
72
-7

skipif mysql # not compatible
query II rowsort label-568
SELECT COALESCE ( + CAST ( + + MAX ( + 72 ) AS INTEGER ), + 69 ) AS col0, - 7 col2
----
72
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-569
SELECT + 72 * - NULLIF ( CAST( - 29 AS SIGNED ), + + 98 ) AS col2
----
2088

skipif mysql # not compatible
query I rowsort label-569
SELECT + 72 * - NULLIF ( CAST ( - 29 AS INTEGER ), + + 98 ) AS col2
----
2088

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-570
SELECT ALL 23 DIV 11 - - 47 * + + 83 - + 61, + 88 + - COUNT( * ) AS col0
----
3842
87

skipif mysql # not compatible
query II rowsort label-570
SELECT ALL 23 / 11 - - 47 * + + 83 - + 61, + 88 + - COUNT ( * ) AS col0
----
3842
87

query I rowsort
SELECT + NULLIF ( 26, + 2 ) * 10 + - 71
----
189

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-573
SELECT + CAST( NULL AS SIGNED ) col1, 81 + + - 37 + - 7 * + CAST( - - 83 AS SIGNED )
----
NULL
-537

skipif mysql # not compatible
query II rowsort label-573
SELECT + CAST ( NULL AS INTEGER ) col1, 81 + + - 37 + - 7 * + CAST ( - - 83 AS INTEGER )
----
NULL
-537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-574
SELECT CAST( - - 36 AS SIGNED ) * COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-574
SELECT CAST ( - - 36 AS INTEGER ) * COUNT ( * ) AS col0
----
36

query I rowsort
SELECT ALL + 46 * - + 15
----
-690

query II rowsort
SELECT DISTINCT - 36, + 0 * - 61 AS col1
----
-36
0

query I rowsort
SELECT ( - 20 ) + + + 24 AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-578
SELECT + 51 AS col2, - ( - 48 ) * + 5 + - 81 * + 78 - + CAST( NULL AS SIGNED )
----
51
NULL

skipif mysql # not compatible
query II rowsort label-578
SELECT + 51 AS col2, - ( - 48 ) * + 5 + - 81 * + 78 - + CAST ( NULL AS INTEGER )
----
51
NULL

query I rowsort
SELECT - NULLIF ( - 8, - + 49 ) * 12 + + 72
----
168

query I rowsort
SELECT 88 * + 70 AS col1
----
6160

onlyif mysql # DIV for integer division: 
query II rowsort label-581
SELECT 58 + 22 + - - 8 AS col1, 4 DIV + + 48
----
88
0

skipif mysql # not compatible
query II rowsort label-581
SELECT 58 + 22 + - - 8 AS col1, 4 / + + 48
----
88
0

query I rowsort
SELECT DISTINCT 93 * - 84
----
-7812

query I rowsort
SELECT DISTINCT 51 * - 86
----
-4386

onlyif mysql # DIV for integer division: 
query I rowsort label-584
SELECT ALL - 11 DIV + - 91 * - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL - 11 / + - 91 * - 29 AS col2
----
0

query I rowsort
SELECT 84 + + 78
----
162

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

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

query I rowsort
SELECT + 79 * 63 + + 24 * - 34 + - + 68
----
4093

query I rowsort
SELECT 3 + 35 + + 24 * 28 col1
----
710

query I rowsort
SELECT 12 + 86 * 15 + - - 90 + - 60
----
1332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-590
SELECT ALL - AVG ( + + ( 38 ) ) + + - CAST( NULL AS SIGNED ) - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL - AVG ( + + ( 38 ) ) + + - CAST ( NULL AS INTEGER ) - 41 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-591
SELECT 83 + 1 + - 21 DIV - + 49 * - - 46 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-591
SELECT 83 + 1 + - 21 / - + 49 * - - 46 AS col2
----
84

query II rowsort
SELECT 26 - - + 9 + - 54 AS col1, 74 + + 51 AS col2
----
-19
125

query II rowsort
SELECT - - 13 AS col0, - 31
----
13
-31

query I rowsort
SELECT - 75 + - 88 + - 17 col0
----
-180

onlyif mysql # aggregate syntax: 
query II rowsort label-595
SELECT ALL + - 89 + - - 18 * - - COUNT( * ) * + 73 AS col1, 99 + - 67 - - - 72
----
1225
-40

skipif mysql # not compatible
query II rowsort label-595
SELECT ALL + - 89 + - - 18 * - - COUNT ( * ) * + 73 AS col1, 99 + - 67 - - - 72
----
1225
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-596
SELECT ALL - 78 * - 72 DIV - COUNT( * )
----
-5616

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL - 78 * - 72 / - COUNT ( * )
----
-5616

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ALL COUNT( - 67 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL COUNT ( - 67 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + + ( - 94 ) + + - 82 AS col1
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT + COALESCE ( - 57, - 22, - MAX( DISTINCT - 44 ) ) + COUNT( * ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-599
SELECT + COALESCE ( - 57, - 22, - MAX ( DISTINCT - 44 ) ) + COUNT ( * ) col2
----
-56

query I rowsort
SELECT ALL + - NULLIF ( - 11, - 39 ) + + + 43 AS col1
----
54

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

query I rowsort
SELECT - 77 * - 82 AS col2
----
6314

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT 75 * COUNT( * ) * + 77 * 43
----
248325

skipif mysql # not compatible
query I rowsort label-603
SELECT 75 * COUNT ( * ) * + 77 * 43
----
248325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-604
SELECT - 0 DIV - - 97 * - 48 + NULLIF ( - 40, + NULLIF ( SUM( 35 ), - COUNT( * ) * + 82 ) * 73 + + 11 * - 90 ) + + 73 + - 99 DIV - 53 + - COALESCE ( COUNT( * ), 33 + - - 50 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-604
SELECT - 0 / - - 97 * - 48 + NULLIF ( - 40, + NULLIF ( SUM ( 35 ), - COUNT ( * ) * + 82 ) * 73 + + 11 * - 90 ) + + 73 + - 99 / - 53 + - COALESCE ( COUNT ( * ), 33 + - - 50 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT DISTINCT + COUNT( DISTINCT - + 59 ) - + + 50 + 94 * + + 83 * - ( - - 60 )
----
-468169

skipif mysql # not compatible
query I rowsort label-605
SELECT DISTINCT + COUNT ( DISTINCT - + 59 ) - + + 50 + 94 * + + 83 * - ( - - 60 )
----
-468169

query I rowsort
SELECT ALL - 13 * + 81 * + - ( - - 5 ) AS col1
----
5265

onlyif mysql # DIV for integer division: 
query I rowsort label-607
SELECT ALL - + 4 DIV - 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL - + 4 / - 81 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-608
SELECT ALL + COUNT( * ) - + NULLIF ( - 88, - + 65 ) + - 5 - - COUNT( * ) * + 59 + - 94 DIV + 34
----
141

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL + COUNT ( * ) - + NULLIF ( - 88, - + 65 ) + - 5 - - COUNT ( * ) * + 59 + - 94 / + 34
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-609
SELECT DISTINCT 62 * + CAST( NULL AS SIGNED ) + - - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-609
SELECT DISTINCT 62 * + CAST ( NULL AS INTEGER ) + - - 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL - ( + COALESCE ( - 55, - 45, 54 * - - COUNT( * ) + + MAX( DISTINCT + 21 ) + + 67, COUNT( * ) ) ) * - 12 * - 98
----
64680

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL - ( + COALESCE ( - 55, - 45, 54 * - - COUNT ( * ) + + MAX ( DISTINCT + 21 ) + + 67, COUNT ( * ) ) ) * - 12 * - 98
----
64680

query I rowsort
SELECT + 0 * + 87 + 82 + + - 54
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT 62 DIV + - 45 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-612
SELECT 62 / + - 45 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT ( - 22 ) * - - 83 + - - NULLIF ( 96, - COUNT( * ) ) + + COUNT( * ) AS col0
----
-1729

skipif mysql # not compatible
query I rowsort label-613
SELECT ( - 22 ) * - - 83 + - - NULLIF ( 96, - COUNT ( * ) ) + + COUNT ( * ) AS col0
----
-1729

query I rowsort
SELECT ALL + 87 * - - 70
----
6090

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT 97 * - MIN( - 79 ) AS col1
----
7663

skipif mysql # not compatible
query I rowsort label-615
SELECT 97 * - MIN ( - 79 ) AS col1
----
7663

query I rowsort
SELECT 68 * 47 col2
----
3196

query I rowsort
SELECT 79 * + + 78 + + 89 * 68
----
12214

query I rowsort
SELECT ALL + 15 + - - 24
----
39

query I rowsort
SELECT DISTINCT 75 * + 82 * - 38 AS col0
----
-233700

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT ALL 93 + + ( + 98 ) + COUNT( * ) + 25
----
217

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL 93 + + ( + 98 ) + COUNT ( * ) + 25
----
217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-621
SELECT + COUNT( * ) * + NULLIF ( + CASE - 48 WHEN 74 THEN + - 25 / - + MIN( ALL 2 ) * + 92 + + CASE - CAST( - + ( - + 90 ) AS SIGNED ) WHEN + - 78 THEN NULL ELSE 5 * + - 5 * - 39 - - + 1 END WHEN 31 + + 1 THEN NULL WHEN 42 THEN NULL ELSE NULL END, - 51 * + - 31 * + 1 - - 39 + + ( + - 65 ) ) - + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-621
SELECT + COUNT ( * ) * + NULLIF ( + CASE - 48 WHEN 74 THEN + - 25 / - + MIN ( ALL 2 ) * + 92 + + CASE - CAST ( - + ( - + 90 ) AS INTEGER ) WHEN + - 78 THEN NULL ELSE 5 * + - 5 * - 39 - - + 1 END WHEN 31 + + 1 THEN NULL WHEN 42 THEN NULL ELSE NULL END, - 51 * + - 31 * + 1 - - 39 + + ( + - 65 ) ) - + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 83 * + - 47 AS col0
----
-3901

query I rowsort
SELECT ALL 74 * 44 * - + 57 AS col2
----
-185592

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT ALL COALESCE ( + COUNT( * ), + 20, - 35 + - + 46 ) + 14
----
15

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL COALESCE ( + COUNT ( * ), + 20, - 35 + - + 46 ) + 14
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-625
SELECT ALL - CAST( NULL AS SIGNED ) + - COUNT( * ) - ( 31 ) + - 50 * + 36 - - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL - CAST ( NULL AS INTEGER ) + - COUNT ( * ) - ( 31 ) + - 50 * + 36 - - 54 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT ALL + COUNT( * ) + - 35 * - 95
----
3326

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL + COUNT ( * ) + - 35 * - 95
----
3326

onlyif mysql # DIV for integer division: 
query I rowsort label-628
SELECT DISTINCT - 86 DIV + 34 + 37 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT - 86 / + 34 + 37 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT ALL - 69 + - - 73 * + - 31 + + CASE - 30 WHEN - + ( - + 15 ) THEN NULL ELSE - - MIN( DISTINCT + + 33 ) END + 31 + - 88 * - ( COUNT( * ) ) + 89 * + 90 * - + 79 AS col2
----
-634970

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL - 69 + - - 73 * + - 31 + + CASE - 30 WHEN - + ( - + 15 ) THEN NULL ELSE - - MIN ( DISTINCT + + 33 ) END + 31 + - 88 * - ( COUNT ( * ) ) + 89 * + 90 * - + 79 AS col2
----
-634970

onlyif mysql # DIV for integer division: 
query I rowsort label-630
SELECT 20 DIV + - 75 * - 97 * - + 47 * - 15 col1
----
0

skipif mysql # not compatible
query I rowsort label-630
SELECT 20 / + - 75 * - 97 * - + 47 * - 15 col1
----
0

query I rowsort
SELECT - 9 * + + ( - 26 )
----
234

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

skipif mysql # not compatible
query I rowsort label-632
SELECT DISTINCT ( SUM ( DISTINCT - 33 ) )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT COUNT( * ) - - + 10 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-633
SELECT COUNT ( * ) - - + 10 AS col0
----
11

query I rowsort
SELECT - + NULLIF ( - - 37, - 28 ) AS col2
----
-37

query I rowsort
SELECT ALL - 34 * + - 82 + + 58 * + 27 AS col0
----
4354

query I rowsort
SELECT - 75 + + ( ( + + ( + 28 ) ) ) AS col0
----
-47

query I rowsort
SELECT 89 * + ( - 59 ) AS col0
----
-5251

query I rowsort
SELECT DISTINCT - + 44 * - 31 * + 55 AS col0
----
75020

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT ALL - ( - CASE CASE 71 WHEN - 33 * + + 76 + - - 39 THEN NULL ELSE - + COUNT( - + ( - + 21 ) ) END WHEN - 70 * + 90 - + + 98 THEN - 22 END ) * CASE + 51 WHEN - + COUNT( ALL - 39 ) THEN NULL ELSE + 54 - + COUNT( * ) + + COALESCE ( - 88, + - 46, - 74 ) + + COALESCE ( - COUNT( * ), 26 + + COUNT( * ) * + ( + ( 41 ) ) * + 35 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL - ( - CASE CASE 71 WHEN - 33 * + + 76 + - - 39 THEN NULL ELSE - + COUNT ( - + ( - + 21 ) ) END WHEN - 70 * + 90 - + + 98 THEN - 22 END ) * CASE + 51 WHEN - + COUNT ( ALL - 39 ) THEN NULL ELSE + 54 - + COUNT ( * ) + + COALESCE ( - 88, + - 46, - 74 ) + + COALESCE ( - COUNT ( * ), 26 + + COUNT ( * ) * + ( + ( 41 ) ) * + 35 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT ( 13 ) * + COUNT( DISTINCT + - 29 )
----
13

skipif mysql # not compatible
query I rowsort label-640
SELECT ( 13 ) * + COUNT ( DISTINCT + - 29 )
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT DISTINCT + COALESCE ( COUNT( 53 ), - 17 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT + COALESCE ( COUNT ( 53 ), - 17 ) AS col0
----
1

query I rowsort
SELECT + 10 * - + ( + 69 ) + + 7
----
-683

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-644
SELECT - 59 DIV - 74 * ( CAST( + - 24 AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-644
SELECT - 59 / - 74 * ( CAST ( + - 24 AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT - COUNT( 61 ) * + 6 + COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-645
SELECT - COUNT ( 61 ) * + 6 + COUNT ( * ) AS col2
----
-5

query II rowsort
SELECT + 95 AS col2, 62 AS col1
----
95
62

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

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

query I rowsort
SELECT ALL + 11 * + 43 AS col2
----
473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-649
SELECT - 5 * - CAST( + 6 AS SIGNED ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-649
SELECT - 5 * - CAST ( + 6 AS INTEGER ) AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-650
SELECT ALL 3 * + - COUNT( * ) + - - 60 + - 24 - + 68 AS col2, COUNT( * ) DIV + CAST( + 88 AS SIGNED )
----
-35
0

skipif mysql # not compatible
query II rowsort label-650
SELECT ALL 3 * + - COUNT ( * ) + - - 60 + - 24 - + 68 AS col2, COUNT ( * ) / + CAST ( + 88 AS INTEGER )
----
-35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT DISTINCT 34 * ( - - COUNT( * ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT 34 * ( - - COUNT ( * ) ) AS col1
----
34

query I rowsort
SELECT ALL + 40 * + - 99 * + 77 * + 51 * - 70 + + - ( - 87 ) AS col2
----
1088564487

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-653
SELECT + 75 * - + 77 * - ( - 15 ) * - + CAST( + 71 AS SIGNED ) AS col2, 38 * + 65
----
6150375
2470

skipif mysql # not compatible
query II rowsort label-653
SELECT + 75 * - + 77 * - ( - 15 ) * - + CAST ( + 71 AS INTEGER ) AS col2, 38 * + 65
----
6150375
2470

query I rowsort
SELECT - 86 + - 41 col2
----
-127

query I rowsort
SELECT + 69 - - 94
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT - 39 + 48 * + COUNT( DISTINCT + 7 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-656
SELECT - 39 + 48 * + COUNT ( DISTINCT + 7 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT + 45 * MIN( - + 83 ) * - + ( + 49 ) - - 35 - - + COUNT( * ) AS col0
----
183051

skipif mysql # not compatible
query I rowsort label-657
SELECT + 45 * MIN ( - + 83 ) * - + ( + 49 ) - - 35 - - + COUNT ( * ) AS col0
----
183051

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT ALL ( - COALESCE ( - 53, + NULLIF ( COUNT( + + 89 ), - + 98 ) * - 79, - 80 ) ) + + 23
----
76

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL ( - COALESCE ( - 53, + NULLIF ( COUNT ( + + 89 ), - + 98 ) * - 79, - 80 ) ) + + 23
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT COUNT( - 52 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-659
SELECT COUNT ( - 52 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT 58 * - - 51 + - COUNT( * ) * - - 84 * 69 AS col2
----
-2838

skipif mysql # not compatible
query I rowsort label-660
SELECT 58 * - - 51 + - COUNT ( * ) * - - 84 * 69 AS col2
----
-2838

query I rowsort
SELECT DISTINCT + 56 * + - 69 - - 37 + - - 59 AS col0
----
-3768

query I rowsort
SELECT ALL 49 - ( - CASE + 62 WHEN - 90 THEN - 54 + - - 53 ELSE + + 64 END ) AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT + 93 + - 26 + - COUNT( * ) + + - 85 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-663
SELECT + 93 + - 26 + - COUNT ( * ) + + - 85 AS col1
----
-19

query I rowsort
SELECT + + 1 * 48 - - - 14 * - - 22 * + NULLIF ( + 58, + 59 ) AS col1
----
-17816

query I rowsort
SELECT ALL 99 * + 63
----
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT DISTINCT - CASE + + 97 WHEN + COUNT( * ) * - 16 THEN + COUNT( * ) * + - 71 * 23 + + 70 ELSE + 73 + - 31 END AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT - CASE + + 97 WHEN + COUNT ( * ) * - 16 THEN + COUNT ( * ) * + - 71 * 23 + + 70 ELSE + 73 + - 31 END AS col0
----
-42

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT + SUM( + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-669
SELECT + SUM ( + 99 ) AS col2
----
99

query II rowsort
SELECT ALL - NULLIF ( + + 80, + + 67 ) AS col1, 27
----
-80
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-671
SELECT CAST( NULL AS SIGNED ), 46 * - 33 AS col0
----
NULL
-1518

skipif mysql # not compatible
query II rowsort label-671
SELECT CAST ( NULL AS INTEGER ), 46 * - 33 AS col0
----
NULL
-1518

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-672
SELECT COUNT( * ) DIV COUNT( * ) * + 76 + + - 51 - NULLIF ( ( + ( + 32 ) ), 58 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-672
SELECT COUNT ( * ) / COUNT ( * ) * + 76 + + - 51 - NULLIF ( ( + ( + 32 ) ), 58 ) AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-673
SELECT CAST( 83 AS SIGNED ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-673
SELECT CAST ( 83 AS INTEGER ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-674
SELECT + 90 AS col2, 13 + - SUM( DISTINCT + - 84 ) - - COUNT( * ) + + 68 * + ( + 79 ) AS col1
----
90
5470

skipif mysql # not compatible
query II rowsort label-674
SELECT + 90 AS col2, 13 + - SUM ( DISTINCT + - 84 ) - - COUNT ( * ) + + 68 * + ( + 79 ) AS col1
----
90
5470

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT ALL + NULLIF ( + + 42, + 99 + - COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL + NULLIF ( + + 42, + 99 + - COUNT ( * ) )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-676
SELECT CAST( - MAX( DISTINCT 74 ) AS SIGNED ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-676
SELECT CAST ( - MAX ( DISTINCT 74 ) AS INTEGER ) AS col0
----
-74

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-678
SELECT ALL 43 DIV - 64 * - + 17 + 30, 76 AS col0
----
30
76

skipif mysql # not compatible
query II rowsort label-678
SELECT ALL 43 / - 64 * - + 17 + 30, 76 AS col0
----
30
76

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

query I rowsort
SELECT ( - 65 ) AS col2
----
-65

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

onlyif mysql # DIV for integer division: 
query I rowsort label-682
SELECT - ( 12 ) DIV + + 6
----
-2

skipif mysql # not compatible
query I rowsort label-682
SELECT - ( 12 ) / + + 6
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT - 45 + - - 89 + + - NULLIF ( + - 6, 64 ) + ( - + SUM( DISTINCT + + 33 ) ) - + - 39
----
56

skipif mysql # not compatible
query I rowsort label-683
SELECT - 45 + - - 89 + + - NULLIF ( + - 6, 64 ) + ( - + SUM ( DISTINCT + + 33 ) ) - + - 39
----
56

query II rowsort
SELECT ALL 23 * + 61 * - - 6 * + 17 + - ( + - 10 ) AS col2, 45 + 58 AS col2
----
143116
103

query I rowsort
SELECT COALESCE ( - 61, - + 66 ) AS col1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-686
SELECT - 9 DIV + 17
----
0

skipif mysql # not compatible
query I rowsort label-686
SELECT - 9 / + 17
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-687
SELECT ALL + 81 DIV - - 94 * 45 DIV COUNT( * ) AS col2, - COUNT( * )
----
0
-1

skipif mysql # not compatible
query II rowsort label-687
SELECT ALL + 81 / - - 94 * 45 / COUNT ( * ) AS col2, - COUNT ( * )
----
0
-1

query I rowsort
SELECT ALL 94 * - 60 - + 83 * + 79 * + 7 + - NULLIF ( - 59, 25 ) * 31 + + + 89
----
-49621

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

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

query I rowsort
SELECT ALL + 11 * - 5
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-691
SELECT - - 36 - CAST( + + 97 AS SIGNED ) col0
----
-61

skipif mysql # not compatible
query I rowsort label-691
SELECT - - 36 - CAST ( + + 97 AS INTEGER ) col0
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-692
SELECT ALL - + COUNT( * ) * - SUM( DISTINCT 80 ) * - 75 - - 3 DIV 39
----
-6000

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL - + COUNT ( * ) * - SUM ( DISTINCT 80 ) * - 75 - - 3 / 39
----
-6000

query II rowsort
SELECT DISTINCT 83 AS col2, - ( 38 ) AS col0
----
83
-38

query I rowsort
SELECT - 66 * + + 41 * + 11 AS col0
----
-29766

query I rowsort
SELECT NULLIF ( - 76, + + 64 + 49 )
----
-76

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

query II rowsort
SELECT ALL 83 AS col2, 15 + + 73
----
83
88

query II rowsort
SELECT ALL 23 * - 41, + 0 AS col2
----
-943
0

query I rowsort
SELECT + COALESCE ( + + 96, + + 29 + + 3 ) AS col0
----
96

query I rowsort
SELECT + NULLIF ( 72, + + 51 ) * - 88 * - 48
----
304128

query II rowsort
SELECT ALL + 29 + + + 24, 16 AS col1
----
53
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT COUNT( DISTINCT - 60 ) * 25 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-703
SELECT COUNT ( DISTINCT - 60 ) * 25 AS col0
----
25

query II rowsort
SELECT ALL 81 + 40, 62 AS col0
----
121
62

query I rowsort
SELECT 87 + - 50 col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT 32 * - COALESCE ( - 20, - 32 * COUNT( * ) - + 69 * + NULLIF ( - 85, + 35 * + + 90 ) + - - 51 - CASE 43 WHEN + NULLIF ( - 91, - COUNT( * ) ) THEN + 10 + COUNT( * ) WHEN 94 THEN NULL WHEN COUNT( * ) THEN NULL ELSE NULL END )
----
640

skipif mysql # not compatible
query I rowsort label-706
SELECT 32 * - COALESCE ( - 20, - 32 * COUNT ( * ) - + 69 * + NULLIF ( - 85, + 35 * + + 90 ) + - - 51 - CASE 43 WHEN + NULLIF ( - 91, - COUNT ( * ) ) THEN + 10 + COUNT ( * ) WHEN 94 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE NULL END )
----
640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-707
SELECT ALL COALESCE ( - + MAX( DISTINCT + 54 ), + 87 * - 49, - 92 DIV - 15 ) * 60 + + 30 * - 89 + - + 66
----
-5976

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL COALESCE ( - + MAX ( DISTINCT + 54 ), + 87 * - 49, - 92 / - 15 ) * 60 + + 30 * - 89 + - + 66
----
-5976

query I rowsort
SELECT DISTINCT 80 - + 5 + + + 11 + + 94
----
180

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-709
SELECT 85 * + + 58 - CAST( + ( + 77 ) AS SIGNED ) + - + 94 DIV - - 73 AS col1
----
4852

skipif mysql # not compatible
query I rowsort label-709
SELECT 85 * + + 58 - CAST ( + ( + 77 ) AS INTEGER ) + - + 94 / - - 73 AS col1
----
4852

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

query I rowsort
SELECT DISTINCT ( - 85 ) * + + 29
----
-2465

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-712
SELECT + 42 * + 33 + - COALESCE ( + COUNT( * ), + 28 ) DIV + ( 97 ) * - COUNT( * ), 19 AS col0
----
1386
19

skipif mysql # not compatible
query II rowsort label-712
SELECT + 42 * + 33 + - COALESCE ( + COUNT ( * ), + 28 ) / + ( 97 ) * - COUNT ( * ), 19 AS col0
----
1386
19

query I rowsort
SELECT 75 * 70 AS col1
----
5250

query I rowsort
SELECT + 75 * 0 + + - 51 * + 87
----
-4437

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT - 54 * + 16 + COALESCE ( + 38, + - ( - + 74 ) ) DIV 91 * + - COALESCE ( - 88, + 95, + 90 + - 74 ) * - + 99 AS col1
----
-864

skipif mysql # not compatible
query I rowsort label-715
SELECT - 54 * + 16 + COALESCE ( + 38, + - ( - + 74 ) ) / 91 * + - COALESCE ( - 88, + 95, + 90 + - 74 ) * - + 99 AS col1
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT - 84 - 49 * + CASE SUM( + + ( + - 49 ) ) WHEN - + 61 - + COUNT( * ) THEN ( - + COALESCE ( + - 9, - COUNT( * ), + COUNT( * ) ) ) WHEN - - 10 + + - 26 THEN NULL WHEN - NULLIF ( + COALESCE ( - + 26, - COUNT( * ) * 86 * - + 11 + + 33 + + 97 * + + 10 * + - MIN( ALL - 78 ) * - 93 + ( + - 12 ) + AVG ( + - 67 ) * - - 75 ), 51 ) + - 1 THEN NULL ELSE NULL END * 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-716
SELECT - 84 - 49 * + CASE SUM ( + + ( + - 49 ) ) WHEN - + 61 - + COUNT ( * ) THEN ( - + COALESCE ( + - 9, - COUNT ( * ), + COUNT ( * ) ) ) WHEN - - 10 + + - 26 THEN NULL WHEN - NULLIF ( + COALESCE ( - + 26, - COUNT ( * ) * 86 * - + 11 + + 33 + + 97 * + + 10 * + - MIN ( ALL - 78 ) * - 93 + ( + - 12 ) + AVG ( + - 67 ) * - - 75 ), 51 ) + - 1 THEN NULL ELSE NULL END * 75 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-717
SELECT ALL + COUNT( * ) DIV + + NULLIF ( + + 8, - CAST( + - 50 AS SIGNED ) ) + + CAST( ( + - 83 ) AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL + COUNT ( * ) / + + NULLIF ( + + 8, - CAST ( + - 50 AS INTEGER ) ) + + CAST ( ( + - 83 ) AS INTEGER )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-718
SELECT + 50 DIV - COUNT( * ), CASE COUNT( * ) WHEN 47 THEN + - ( CAST( - + 73 AS SIGNED ) ) - - - 91 ELSE - 51 - - 43 * + 16 + + 51 END * 70 AS col1
----
-50
48160

skipif mysql # not compatible
query II rowsort label-718
SELECT + 50 / - COUNT ( * ), CASE COUNT ( * ) WHEN 47 THEN + - ( CAST ( - + 73 AS INTEGER ) ) - - - 91 ELSE - 51 - - 43 * + 16 + + 51 END * 70 AS col1
----
-50
48160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-719
SELECT DISTINCT - 13 * + 89 + ( COUNT( * ) ) DIV + 95
----
-1157

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT - 13 * + 89 + ( COUNT ( * ) ) / + 95
----
-1157

query I rowsort
SELECT 75 + - - 19 AS col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-721
SELECT ALL - - MIN( - 75 ) DIV - 55 col1
----
1

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL - - MIN ( - 75 ) / - 55 col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-722
SELECT - 86 DIV + 57 + - 16 * - 81 * + COALESCE ( - - 25, - - 66 DIV - 33 + - 40 )
----
32399

skipif mysql # not compatible
query I rowsort label-722
SELECT - 86 / + 57 + - 16 * - 81 * + COALESCE ( - - 25, - - 66 / - 33 + - 40 )
----
32399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-723
SELECT DISTINCT - CASE + 28 WHEN 92 + - 21 + + 82 * - - CASE 32 WHEN - 67 THEN NULL ELSE - COALESCE ( + - 48, - 36 * 15 + + 82 ) END THEN - + 25 + - 18 END + + 46 * + 80 + + - 63 + 64 - 55 * + COUNT( * ) - + 97 * ( + 60 ) + 78 * - CAST( NULL AS SIGNED ) * - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT - CASE + 28 WHEN 92 + - 21 + + 82 * - - CASE 32 WHEN - 67 THEN NULL ELSE - COALESCE ( + - 48, - 36 * 15 + + 82 ) END THEN - + 25 + - 18 END + + 46 * + 80 + + - 63 + 64 - 55 * + COUNT ( * ) - + 97 * ( + 60 ) + 78 * - CAST ( NULL AS INTEGER ) * - 23 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-724
SELECT CAST( NULL AS SIGNED ) + + 1, 75 + 42 - 11 * + 95 + - + 98 * - 41 AS col1, + 47 AS col0
----
NULL
3090
47

skipif mysql # not compatible
query III rowsort label-724
SELECT CAST ( NULL AS INTEGER ) + + 1, 75 + 42 - 11 * + 95 + - + 98 * - 41 AS col1, + 47 AS col0
----
NULL
3090
47

query I rowsort
SELECT - + 31 col1
----
-31

query II rowsort
SELECT DISTINCT - - 20 + 71, NULLIF ( 28, - 10 ) AS col2
----
91
28

query I rowsort
SELECT DISTINCT + 0 * - 20 * + + 72
----
0

query I rowsort
SELECT ALL 18 + 59 * - COALESCE ( - 52, - + 98 )
----
3086

query II rowsort
SELECT - 89 col2, 90 AS col0
----
-89
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-730
SELECT - 46, 69 DIV - 10 * + COUNT( * ) col2
----
-46
-6

skipif mysql # not compatible
query II rowsort label-730
SELECT - 46, 69 / - 10 * + COUNT ( * ) col2
----
-46
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-731
SELECT ALL - MAX( DISTINCT - 51 ) + - + 81 + + + CAST( NULL AS SIGNED ) + + - 80 * - 48 * + + 76 * - 60 * 94 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL - MAX ( DISTINCT - 51 ) + - + 81 + + + CAST ( NULL AS INTEGER ) + + - 80 * - 48 * + + 76 * - 60 * 94 col0
----
NULL

query I rowsort
SELECT ALL + 98 + + 21
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT MIN( ALL - + 32 ) * 35 AS col1
----
-1120

skipif mysql # not compatible
query I rowsort label-733
SELECT MIN ( ALL - + 32 ) * 35 AS col1
----
-1120

query I rowsort
SELECT 84 + + 50 - - 58 + + 67 * + 2
----
326

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

skipif mysql # not compatible
query II rowsort label-735
SELECT - 54 AS col0, COUNT ( * ) AS col1
----
-54
1

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

skipif mysql # not compatible
query I rowsort label-736
SELECT + MAX ( + 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT + COUNT( - 33 ) / - + COALESCE ( COUNT( * ), MAX( DISTINCT 23 ) / + 88 * - 71, - - ( - + COUNT( * ) ) * + - 58 * - + 87 * + COUNT( * ) + + 22 + + 96, + - 35 + + 4 ) + SUM( + + 84 ) + + 29 + CASE + 82 WHEN 45 THEN 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT + COUNT ( - 33 ) / - + COALESCE ( COUNT ( * ), MAX ( DISTINCT 23 ) / + 88 * - 71, - - ( - + COUNT ( * ) ) * + - 58 * - + 87 * + COUNT ( * ) + + 22 + + 96, + - 35 + + 4 ) + SUM ( + + 84 ) + + 29 + CASE + 82 WHEN 45 THEN 70 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT - 71 * - 55 - - COUNT( + 48 ) + + 24 AS col0
----
3930

skipif mysql # not compatible
query I rowsort label-738
SELECT - 71 * - 55 - - COUNT ( + 48 ) + + 24 AS col0
----
3930

query I rowsort
SELECT 32 * + 37
----
1184

query I rowsort
SELECT DISTINCT - 80 * + 36
----
-2880

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-742
SELECT 22 DIV + - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-742
SELECT 22 / + - 76 AS col2
----
0

query I rowsort
SELECT 90 * 78 + - 8 AS col2
----
7012

onlyif mysql # DIV for integer division: 
query I rowsort label-744
SELECT DISTINCT 98 DIV 37 * 75 * - 9 AS col2
----
-1350

skipif mysql # not compatible
query I rowsort label-744
SELECT DISTINCT 98 / 37 * 75 * - 9 AS col2
----
-1350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-745
SELECT - 21 DIV ( + ( + 36 ) ) + - COALESCE ( - + COUNT( * ), - 7 )
----
1

skipif mysql # not compatible
query I rowsort label-745
SELECT - 21 / ( + ( + 36 ) ) + - COALESCE ( - + COUNT ( * ), - 7 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-746
SELECT 12 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-746
SELECT 12 / - 98
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-747
SELECT COUNT( * ) * 86 DIV + 54
----
1

skipif mysql # not compatible
query I rowsort label-747
SELECT COUNT ( * ) * 86 / + 54
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-748
SELECT CASE 26 WHEN - 14 THEN 8 * 11 + 38 / + 67 - + CAST( NULL AS SIGNED ) + 73 / 5 WHEN + 74 * + 12 + + 98 THEN - + 83 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-748
SELECT CASE 26 WHEN - 14 THEN 8 * 11 + 38 / + 67 - + CAST ( NULL AS INTEGER ) + 73 / 5 WHEN + 74 * + 12 + + 98 THEN - + 83 END AS col1
----
NULL

query I rowsort
SELECT - 73 * - + 18 * - 22 - + 78
----
-28986

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT DISTINCT 60 * + 59 - + ( + CASE WHEN NOT + COUNT( * ) IS NOT NULL THEN - 74 / - 16 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT 60 * + 59 - + ( + CASE WHEN NOT + COUNT ( * ) IS NOT NULL THEN - 74 / - 16 END ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + - 0, 31 AS col2
----
0
31

query I rowsort
SELECT ALL - - ( + + 21 ) * + 91 * - 85
----
-162435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-754
SELECT ALL CAST( NULL AS SIGNED ) + ( + - 12 ) + + + 49 + 87 * + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL CAST ( NULL AS INTEGER ) + ( + - 12 ) + + + 49 + 87 * + + 18
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT + + 43 - + SUM( DISTINCT - 65 ) + - 89
----
19

skipif mysql # not compatible
query I rowsort label-756
SELECT + + 43 - + SUM ( DISTINCT - 65 ) + - 89
----
19

query I rowsort
SELECT - NULLIF ( - 83, ( + NULLIF ( + 32, - - 6 * ( - + 91 ) * - 92 ) ) )
----
83

query I rowsort
SELECT - 78 - + 75
----
-153

query I rowsort
SELECT - ( 60 ) AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-760
SELECT - 35 DIV + COALESCE ( 24, COUNT( * ) * 6 + 18 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-760
SELECT - 35 / + COALESCE ( 24, COUNT ( * ) * 6 + 18 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-761
SELECT ALL - 66 - + CAST( NULL AS SIGNED ) + - - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL - 66 - + CAST ( NULL AS INTEGER ) + - - 80
----
NULL

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

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

query I rowsort
SELECT - 52 * + + 76
----
-3952

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

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

query I rowsort
SELECT ALL - 93 * - + 25 * 81 * - - 70 AS col1
----
13182750

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT + 5 - COUNT( * ) - COUNT( * ) * + 32
----
-28

skipif mysql # not compatible
query I rowsort label-766
SELECT + 5 - COUNT ( * ) - COUNT ( * ) * + 32
----
-28

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

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL - ( + COUNT ( * ) ) - - - 55 AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-768
SELECT - 93 * 92 DIV + - 73 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-768
SELECT - 93 * 92 / + - 73 AS col2
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-769
SELECT ALL + CASE - - COALESCE ( + + CASE - COUNT( * ) WHEN SUM( DISTINCT - COALESCE ( - 93, + 79, + 71 ) ) + - - 48 THEN NULL WHEN + 9 * + 62 THEN + CAST( NULL AS SIGNED ) ELSE NULL END, + COUNT( * ) ) WHEN 86 THEN COUNT( * ) - + + 79 - + - COUNT( ALL - 49 ) / + - COUNT( * ) / ( - COUNT( + + 33 ) ) + + ( - 65 ) + - CAST( NULL AS SIGNED ) * + 56 - - SUM( + 21 ) + - - CASE - NULLIF ( - 30, - 64 ) WHEN - + 99 * 79 THEN + AVG ( ( + 89 ) ) + + 33 END * - 91 / 0 WHEN 38 * 95 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL + CASE - - COALESCE ( + + CASE - COUNT ( * ) WHEN SUM ( DISTINCT - COALESCE ( - 93, + 79, + 71 ) ) + - - 48 THEN NULL WHEN + 9 * + 62 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END, + COUNT ( * ) ) WHEN 86 THEN COUNT ( * ) - + + 79 - + - COUNT ( ALL - 49 ) / + - COUNT ( * ) / ( - COUNT ( + + 33 ) ) + + ( - 65 ) + - CAST ( NULL AS INTEGER ) * + 56 - - SUM ( + 21 ) + - - CASE - NULLIF ( - 30, - 64 ) WHEN - + 99 * 79 THEN + AVG ( ( + 89 ) ) + + 33 END * - 91 / 0 WHEN 38 * 95 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + 62 * - + 52 col1
----
-3224

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-771
SELECT 22 * - CAST( NULL AS SIGNED ) - - CAST( + + 83 AS SIGNED ) AS col2, 2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-771
SELECT 22 * - CAST ( NULL AS INTEGER ) - - CAST ( + + 83 AS INTEGER ) AS col2, 2
----
NULL
2

onlyif mysql # DIV for integer division: 
query I rowsort label-772
SELECT DISTINCT - ( + 22 ) DIV 44 + ( + 25 ) col2
----
25

skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT - ( + 22 ) / 44 + ( + 25 ) col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT + 15 DIV + 74 * + 79 * 55
----
0

skipif mysql # not compatible
query I rowsort label-773
SELECT + 15 / + 74 * + 79 * 55
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT + MAX( - + 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-775
SELECT + MAX ( - + 66 ) AS col2
----
-66

query I rowsort
SELECT - - ( 3 ) * COALESCE ( 88, + 45 ) - + - 91 - - - 81
----
274

query I rowsort
SELECT DISTINCT + - 88 col1
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-778
SELECT ALL + - 80 * + 35 + + 69 + - COUNT( * ) AS col2, + 2
----
-2732
2

skipif mysql # not compatible
query II rowsort label-778
SELECT ALL + - 80 * + 35 + + 69 + - COUNT ( * ) AS col2, + 2
----
-2732
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT ALL COUNT( * ) * + 0 + + - 71 + 33
----
-38

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL COUNT ( * ) * + 0 + + - 71 + 33
----
-38

query I rowsort
SELECT ALL + 73 * + 96 + 60 + - ( - 84 )
----
7152

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

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

query I rowsort
SELECT + + 97 + 90 col0
----
187

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT DISTINCT + ( - + 56 ) AS col0, ( + NULLIF ( + 24, + COUNT( * ) ) ) * - + 97 + COUNT( * ) + - + 42 - 15 * + + COUNT( DISTINCT - 60 )
----
-56
-2384

skipif mysql # not compatible
query II rowsort label-784
SELECT DISTINCT + ( - + 56 ) AS col0, ( + NULLIF ( + 24, + COUNT ( * ) ) ) * - + 97 + COUNT ( * ) + - + 42 - 15 * + + COUNT ( DISTINCT - 60 )
----
-56
-2384

query I rowsort
SELECT + - 23 + - 96 AS col1
----
-119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-786
SELECT ALL 16 * - NULLIF ( - COUNT( ALL + + COALESCE ( + 23, - 14 ) ), + 96 ) + + + 87 * COUNT( * ) AS col1, - 76 DIV 48 col1
----
103
-1

skipif mysql # not compatible
query II rowsort label-786
SELECT ALL 16 * - NULLIF ( - COUNT ( ALL + + COALESCE ( + 23, - 14 ) ), + 96 ) + + + 87 * COUNT ( * ) AS col1, - 76 / 48 col1
----
103
-1

query I rowsort
SELECT DISTINCT - COALESCE ( + - 11, 60, - 49 )
----
11

query I rowsort
SELECT - - ( 55 )
----
55

query I rowsort
SELECT DISTINCT - 79 * - 1 + 46 AS col1
----
125

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-790
SELECT - 35 + + - 21 - COUNT( * ) * - 19 * CAST( NULL AS DECIMAL ) - 8 + - + 45 * + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-790
SELECT - 35 + + - 21 - COUNT ( * ) * - 19 * CAST ( NULL AS REAL ) - 8 + - + 45 * + 53 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 0 * - - 1 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT ALL MIN( ALL 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL MIN ( ALL 94 ) AS col2
----
94

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

skipif mysql # not compatible
query I rowsort label-793
SELECT + COUNT ( * ) / - ( + 67 )
----
0

query I rowsort
SELECT - 29 * + 86 AS col1
----
-2494

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT DISTINCT COALESCE ( + + NULLIF ( - - 72, + - ( 43 ) - + - SUM( - 47 ) ), + 9, + - 86 )
----
72

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT COALESCE ( + + NULLIF ( - - 72, + - ( 43 ) - + - SUM ( - 47 ) ), + 9, + - 86 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-796
SELECT DISTINCT 48, - 5 * - CASE + + 31 WHEN + - 30 THEN + CAST( NULL AS SIGNED ) - + 53 WHEN + 5 + - + 91 THEN - 28 + - SUM( DISTINCT - 53 ) END AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-796
SELECT DISTINCT 48, - 5 * - CASE + + 31 WHEN + - 30 THEN + CAST ( NULL AS INTEGER ) - + 53 WHEN + 5 + - + 91 THEN - 28 + - SUM ( DISTINCT - 53 ) END AS col1
----
48
NULL

query I rowsort
SELECT ALL + ( + 41 ) - + 34 + - 33 AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-798
SELECT - 69 * + COALESCE ( NULLIF ( 62, COUNT( * ) DIV - 64 ), + CAST( NULL AS SIGNED ) DIV 88 + + COUNT( * ) + 55 ) col1
----
-4278

skipif mysql # not compatible
query I rowsort label-798
SELECT - 69 * + COALESCE ( NULLIF ( 62, COUNT ( * ) / - 64 ), + CAST ( NULL AS INTEGER ) / 88 + + COUNT ( * ) + 55 ) col1
----
-4278

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT ALL + COUNT( * ) * - ( - - 70 ) * - - 70
----
-4900

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL + COUNT ( * ) * - ( - - 70 ) * - - 70
----
-4900

onlyif mysql # DIV for integer division: 
query I rowsort label-800
SELECT + 57 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-800
SELECT + 57 / + 71
----
0

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

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

query I rowsort
SELECT - 39 * + + 28
----
-1092

query I rowsort
SELECT - 51 + - ( 58 ) AS col2
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT - 9 - - + 26 * - MAX( + NULLIF ( + 6, - 16 ) )
----
-165

skipif mysql # not compatible
query I rowsort label-804
SELECT - 9 - - + 26 * - MAX ( + NULLIF ( + 6, - 16 ) )
----
-165

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT + 25 * - 79 + - 37 + + ( COUNT( * ) ) + - COUNT( DISTINCT + + 14 ) AS col0
----
-2012

skipif mysql # not compatible
query I rowsort label-806
SELECT + 25 * - 79 + - 37 + + ( COUNT ( * ) ) + - COUNT ( DISTINCT + + 14 ) AS col0
----
-2012

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

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT DISTINCT - MIN( + NULLIF ( - + 36, 63 ) )
----
36

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT - MIN ( + NULLIF ( - + 36, 63 ) )
----
36

query I rowsort
SELECT DISTINCT - NULLIF ( 77, - 20 )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-810
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + 29 - - + 71 * - 76 + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + 29 - - + 71 * - 76 + 87
----
NULL

query I rowsort
SELECT 62 * + - 34 - - NULLIF ( + 1, COALESCE ( + 21, + AVG ( DISTINCT 63 ) * + ( 6 ) ) ) + + 94 + 9 col2
----
-2004

query I rowsort
SELECT ALL - + 51 + - + 33
----
-84

query I rowsort
SELECT ALL - - ( - - 20 )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT + - ( - 38 ) DIV + 88 + + 31
----
31

skipif mysql # not compatible
query I rowsort label-814
SELECT + - ( - 38 ) / + 88 + + 31
----
31

query I rowsort
SELECT + COALESCE ( ( - ( - - 70 ) ), 53 ) AS col2
----
-70

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

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

query I rowsort
SELECT - 97 * - 84 AS col0
----
8148

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-818
SELECT 50 + - 44 + + 38 * + + CAST( - 71 AS SIGNED ) - 77 - + ( - 35 ) * + 95 DIV - - 94 + - 41 * 49 * + ( + - 79 ) AS col0
----
155977

skipif mysql # not compatible
query I rowsort label-818
SELECT 50 + - 44 + + 38 * + + CAST ( - 71 AS INTEGER ) - 77 - + ( - 35 ) * + 95 / - - 94 + - 41 * 49 * + ( + - 79 ) AS col0
----
155977

query I rowsort
SELECT DISTINCT - 74 + 68
----
-6

query I rowsort
SELECT ALL 49 + - 95
----
-46

query I rowsort
SELECT 29 * 28
----
812

query II rowsort
SELECT ALL - 88, 75 AS col0
----
-88
75

query I rowsort
SELECT DISTINCT + 13 - - - 56
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT ALL + 80 - - 74 DIV 87 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL + 80 - - 74 / 87 AS col2
----
80

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

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

query I rowsort
SELECT - - 98 col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-827
SELECT ALL NULLIF ( + SUM( DISTINCT + 71 ), + ( - 24 ) ) DIV - + 2
----
-35

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL NULLIF ( + SUM ( DISTINCT + 71 ), + ( - 24 ) ) / - + 2
----
-35

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

skipif mysql # not compatible
query I rowsort label-828
SELECT CAST ( NULL AS INTEGER ) / + 42 AS col2
----
NULL

query II rowsort
SELECT - 39 AS col0, - 53 AS col2
----
-39
-53

query II rowsort
SELECT ALL 41 AS col1, 27 - - 72 AS col1
----
41
99

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

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

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

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

query I rowsort
SELECT 31 - + 43 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-834
SELECT ALL 7 AS col2, - 34 * + - COUNT( * ) * - - 12
----
7
408

skipif mysql # not compatible
query II rowsort label-834
SELECT ALL 7 AS col2, - 34 * + - COUNT ( * ) * - - 12
----
7
408

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

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

query I rowsort
SELECT ( - 3 ) * - + CASE 26 WHEN + ( - - 59 ) THEN 28 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-837
SELECT 64 AS col0, 74 * CAST( NULL AS SIGNED ) * + AVG ( 15 )
----
64
NULL

skipif mysql # not compatible
query II rowsort label-837
SELECT 64 AS col0, 74 * CAST ( NULL AS INTEGER ) * + AVG ( 15 )
----
64
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-838
SELECT ( - 86 ) DIV COUNT( * ) * 0 + 4 * 71 AS col1
----
284

skipif mysql # not compatible
query I rowsort label-838
SELECT ( - 86 ) / COUNT ( * ) * 0 + 4 * 71 AS col1
----
284

query I rowsort
SELECT 63 + - - 82
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-840
SELECT DISTINCT 39 + - 96 * 47 * 64 DIV - 86 AS col1
----
3396

skipif mysql # not compatible
query I rowsort label-840
SELECT DISTINCT 39 + - 96 * 47 * 64 / - 86 AS col1
----
3396

onlyif mysql # DIV for integer division: 
query II rowsort label-841
SELECT ( + - 7 ) DIV + 65 * 3, - 67 AS col0
----
0
-67

skipif mysql # not compatible
query II rowsort label-841
SELECT ( + - 7 ) / + 65 * 3, - 67 AS col0
----
0
-67

query I rowsort
SELECT ALL - 32 + 87 AS col0
----
55

query II rowsort
SELECT - 31 col2, 40
----
-31
40

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

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

query I rowsort
SELECT 33 * + + 70 + - + 31
----
2279

onlyif mysql # DIV for integer division: 
query I rowsort label-846
SELECT - 16 DIV ( + 6 ) * + 9 - + - 22 col2
----
4

skipif mysql # not compatible
query I rowsort label-846
SELECT - 16 / ( + 6 ) * + 9 - + - 22 col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-847
SELECT - 51 DIV SUM( - 52 ) * - - 90 + + SUM( CAST( - ( + 41 ) AS SIGNED ) ) + + 0 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-847
SELECT - 51 / SUM ( - 52 ) * - - 90 + + SUM ( CAST ( - ( + 41 ) AS INTEGER ) ) + + 0 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-848
SELECT - 53, + COUNT( * ) * + 14 AS col1
----
-53
14

skipif mysql # not compatible
query II rowsort label-848
SELECT - 53, + COUNT ( * ) * + 14 AS col1
----
-53
14

query II rowsort
SELECT - 75, 32 AS col1
----
-75
32

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL + - 24 + - 70 + 41 + + + 51 * NULLIF ( COUNT( * ), 52 - + + COUNT( * ) + COUNT( * ) + + + ( + + 81 ) + + COUNT( * ) * 52 ) + - COUNT( * ) * - + 14 * + COALESCE ( + + COUNT( * ), + NULLIF ( + COUNT( - 61 ), - 50 + - + ( - 66 ) ) + + + 12, + 2, - - 45 ) * - + 35
----
-492

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL + - 24 + - 70 + 41 + + + 51 * NULLIF ( COUNT ( * ), 52 - + + COUNT ( * ) + COUNT ( * ) + + + ( + + 81 ) + + COUNT ( * ) * 52 ) + - COUNT ( * ) * - + 14 * + COALESCE ( + + COUNT ( * ), + NULLIF ( + COUNT ( - 61 ), - 50 + - + ( - 66 ) ) + + + 12, + 2, - - 45 ) * - + 35
----
-492

query II rowsort
SELECT ALL - + 78 AS col2, 51
----
-78
51

query II rowsort
SELECT ALL - + 61 AS col2, - 71 - - + 47 AS col2
----
-61
-24

query I rowsort
SELECT + 40 * + 81 - - ( - 84 ) AS col2
----
3156

query I rowsort
SELECT ALL + 84 - 66 AS col1
----
18

query II rowsort
SELECT + 82 AS col1, - 93 + - 86
----
82
-179

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT + 48 * - - 69 + + - COUNT( * )
----
3311

skipif mysql # not compatible
query I rowsort label-857
SELECT + 48 * - - 69 + + - COUNT ( * )
----
3311

query II rowsort
SELECT + 60 AS col2, + 77 + - + 99 AS col2
----
60
-22

query I rowsort
SELECT ALL + 34 * + 8 * - - NULLIF ( - 84, 74 + - 57 + 48 ) AS col1
----
-22848

onlyif mysql # DIV for integer division: 
query I rowsort label-860
SELECT DISTINCT + 62 DIV + NULLIF ( 28, - 29 )
----
2

skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT + 62 / + NULLIF ( 28, - 29 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT 31 + - - ( + - COUNT( * ) ) + + 97 * - + 11 * - 17 * - 36 * - 60
----
39180270

skipif mysql # not compatible
query I rowsort label-861
SELECT 31 + - - ( + - COUNT ( * ) ) + + 97 * - + 11 * - 17 * - 36 * - 60
----
39180270

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT ALL NULLIF ( - 79, - ( 27 ) ) + COUNT( * ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL NULLIF ( - 79, - ( 27 ) ) + COUNT ( * ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT COUNT( * ) + + NULLIF ( + 32, + + 13 * - - 17 ) + + 88 col0
----
121

skipif mysql # not compatible
query I rowsort label-863
SELECT COUNT ( * ) + + NULLIF ( + 32, + + 13 * - - 17 ) + + 88 col0
----
121

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

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

query I rowsort
SELECT ALL + COALESCE ( + + ( + 94 ), - 18 ) + - 66
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT - MIN( DISTINCT - - 40 ) col2
----
-40

skipif mysql # not compatible
query I rowsort label-866
SELECT - MIN ( DISTINCT - - 40 ) col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT DISTINCT ( + COUNT( * ) ) + 80 * 30 AS col2
----
2401

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT ( + COUNT ( * ) ) + 80 * 30 AS col2
----
2401

onlyif mysql # aggregate syntax: 
query II rowsort label-868
SELECT + 73 + + 43 AS col0, + COUNT( * ) AS col1
----
116
1

skipif mysql # not compatible
query II rowsort label-868
SELECT + 73 + + 43 AS col0, + COUNT ( * ) AS col1
----
116
1

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT + NULLIF ( - COUNT( * ), 27 * 4 - 21 / + 29 * - 48 * + ( + 25 ) + + - 60 ) * - + 61
----
61

skipif mysql # not compatible
query I rowsort label-869
SELECT + NULLIF ( - COUNT ( * ), 27 * 4 - 21 / + 29 * - 48 * + ( + 25 ) + + - 60 ) * - + 61
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT ALL 82 + 23 * + - CASE - ( ( - ( - - 36 ) ) ) WHEN - COUNT( * ) THEN - SUM( 42 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL 82 + 23 * + - CASE - ( ( - ( - - 36 ) ) ) WHEN - COUNT ( * ) THEN - SUM ( 42 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-871
SELECT + + COUNT( - 29 ) + COUNT( * ) col2, 77 + + - 78
----
2
-1

skipif mysql # not compatible
query II rowsort label-871
SELECT + + COUNT ( - 29 ) + COUNT ( * ) col2, 77 + + - 78
----
2
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-873
SELECT ALL - 79 * + SUM( DISTINCT - COALESCE ( 22, COALESCE ( 92, 5 ) ) ) + + 44 + + 30 * - COUNT( * ) DIV + 53 * + + 36 - - - 31 AS col1
----
1751

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL - 79 * + SUM ( DISTINCT - COALESCE ( 22, COALESCE ( 92, 5 ) ) ) + + 44 + + 30 * - COUNT ( * ) / + 53 * + + 36 - - - 31 AS col1
----
1751

onlyif mysql # aggregate syntax: 
query II rowsort label-874
SELECT ALL + MAX( - 12 ), - 28 AS col1
----
-12
-28

skipif mysql # not compatible
query II rowsort label-874
SELECT ALL + MAX ( - 12 ), - 28 AS col1
----
-12
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-875
SELECT + CASE CAST( - + ( - 72 ) AS SIGNED ) WHEN + 93 / + + CAST( + 75 AS SIGNED ) * 44 THEN - - 70 WHEN - ( + 64 ) THEN NULL WHEN - MAX( - - 91 ) * + - 64 * - - 88 * + + 63 THEN NULL ELSE SUM( ALL - - NULLIF ( - - 9, - 15 ) ) END, + 70 AS col0
----
9
70

skipif mysql # not compatible
query II rowsort label-875
SELECT + CASE CAST ( - + ( - 72 ) AS INTEGER ) WHEN + 93 / + + CAST ( + 75 AS INTEGER ) * 44 THEN - - 70 WHEN - ( + 64 ) THEN NULL WHEN - MAX ( - - 91 ) * + - 64 * - - 88 * + + 63 THEN NULL ELSE SUM ( ALL - - NULLIF ( - - 9, - 15 ) ) END, + 70 AS col0
----
9
70

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

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL + CAST ( - MIN ( 47 ) AS INTEGER ) AS col0
----
-47

query I rowsort
SELECT DISTINCT + 31 * + 92 - - + 13
----
2865

query I rowsort
SELECT DISTINCT + 10 col2
----
10

query I rowsort
SELECT ALL - + 9 * 99 * + 53 * 0 + 88
----
88

query I rowsort
SELECT ALL + 88 * + - 71 - - 21 AS col2
----
-6227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-881
SELECT + - 38 * - + 75 + - - 49 + + 40 * + 65 * + 53 + - + 31 DIV 82 * - 53 + + - COUNT( * ) AS col0
----
140698

skipif mysql # not compatible
query I rowsort label-881
SELECT + - 38 * - + 75 + - - 49 + + 40 * + 65 * + 53 + - + 31 / 82 * - 53 + + - COUNT ( * ) AS col0
----
140698

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT + SUM( 19 ) * 45
----
855

skipif mysql # not compatible
query I rowsort label-882
SELECT + SUM ( 19 ) * 45
----
855

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-883
SELECT - 42 * - CAST( NULL AS SIGNED ) AS col0, 69
----
NULL
69

skipif mysql # not compatible
query II rowsort label-883
SELECT - 42 * - CAST ( NULL AS INTEGER ) AS col0, 69
----
NULL
69

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT DISTINCT - 30 * - COUNT( * ) col1
----
30

skipif mysql # not compatible
query I rowsort label-884
SELECT DISTINCT - 30 * - COUNT ( * ) col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT + + 8 * - 16 * COALESCE ( - - MIN( DISTINCT + 76 ), - 62, NULLIF ( + ( + NULLIF ( 11, - 72 + - 11 ) ), + - MAX( DISTINCT 58 ) ) * - 74 * 75 ) AS col1
----
-9728

skipif mysql # not compatible
query I rowsort label-885
SELECT + + 8 * - 16 * COALESCE ( - - MIN ( DISTINCT + 76 ), - 62, NULLIF ( + ( + NULLIF ( 11, - 72 + - 11 ) ), + - MAX ( DISTINCT 58 ) ) * - 74 * 75 ) AS col1
----
-9728

query I rowsort
SELECT ALL - 3 * 33 AS col1
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-887
SELECT - 17 DIV - 71 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-887
SELECT - 17 / - 71 * + COUNT ( * )
----
0

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

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

query I rowsort
SELECT ALL + 12 * + 21 + + 99
----
351

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

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

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

query II rowsort
SELECT + 96, - ( - 84 ) * + 36 * + 10 * - - ( + + 45 ) + - 72 AS col1
----
96
1360728

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT DISTINCT + 18 * - COUNT( * ) + + 51 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT + 18 * - COUNT ( * ) + + 51 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT ALL - COUNT( * ) * 32 + COUNT( * ) - - COUNT( * ) * 24 * + 57 * - 23 * 69 * + - 26 + + 22 AS col1
----
56446407

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL - COUNT ( * ) * 32 + COUNT ( * ) - - COUNT ( * ) * 24 * + 57 * - 23 * 69 * + - 26 + + 22 AS col1
----
56446407

query I rowsort
SELECT - 34 - - 33 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT - 10 - COALESCE ( 67, - - 18, - COUNT( * ) * COUNT( * ) ) * + 48 col2
----
-3226

skipif mysql # not compatible
query I rowsort label-896
SELECT - 10 - COALESCE ( 67, - - 18, - COUNT ( * ) * COUNT ( * ) ) * + 48 col2
----
-3226

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT ALL - 4 * - 49 * SUM( ALL - - 89 ) AS col2
----
17444

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL - 4 * - 49 * SUM ( ALL - - 89 ) AS col2
----
17444

query I rowsort
SELECT DISTINCT - 31 + + ( - + 71 )
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-899
SELECT ALL + ( - NULLIF ( + + COUNT( * ), - COUNT( * ) ) ) + - ( - COALESCE ( + 6, + - ( 28 ) ) ) DIV - - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL + ( - NULLIF ( + + COUNT ( * ), - COUNT ( * ) ) ) + - ( - COALESCE ( + 6, + - ( 28 ) ) ) / - - COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT DISTINCT - 86 * + + 84 * - SUM( ALL 57 ) AS col0
----
411768

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT - 86 * + + 84 * - SUM ( ALL 57 ) AS col0
----
411768

query I rowsort
SELECT DISTINCT + 31 + + + 71 AS col0
----
102

query I rowsort
SELECT DISTINCT + 59 + - + 20
----
39

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

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 6 AS col2
----
NULL

query I rowsort
SELECT ALL ( - + 94 ) AS col1
----
-94

query I rowsort
SELECT DISTINCT - 86 * - - 96 AS col1
----
-8256

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT - 44 * + MIN( ALL - - 2 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-907
SELECT - 44 * + MIN ( ALL - - 2 ) AS col0
----
-88

query I rowsort
SELECT - COALESCE ( + + ( - 17 ), 73, + - 1 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-909
SELECT ALL CAST( NULL AS SIGNED ) col0, - 80 AS col0
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-909
SELECT ALL CAST ( NULL AS INTEGER ) col0, - 80 AS col0
----
NULL
-80

query I rowsort
SELECT ALL + 14 - 86 * 82 * + 50
----
-352586

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

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT - + 30 + CASE + + 19 WHEN + + 9 THEN NULL WHEN - 39 + - CASE + 79 WHEN + 55 * - 12 THEN + + 76 WHEN - 58 THEN NULL ELSE NULL END * AVG ( + 48 ) THEN + 29 * + 16 + COUNT( * ) + + 76 + - 51 END * - 73 * + 63 * SUM( DISTINCT - 81 ) + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-912
SELECT - + 30 + CASE + + 19 WHEN + + 9 THEN NULL WHEN - 39 + - CASE + 79 WHEN + 55 * - 12 THEN + + 76 WHEN - 58 THEN NULL ELSE NULL END * AVG ( + 48 ) THEN + 29 * + 16 + COUNT ( * ) + + 76 + - 51 END * - 73 * + 63 * SUM ( DISTINCT - 81 ) + 98
----
NULL

query I rowsort
SELECT + + 25 * + 56 AS col1
----
1400

onlyif mysql # DIV for integer division: 
query I rowsort label-914
SELECT ALL + 19 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL + 19 / - 85
----
0

query II rowsort
SELECT DISTINCT 43 AS col0, 16 * 20 AS col1
----
43
320

query II rowsort
SELECT + - 83, - 60 AS col0
----
-83
-60

query II rowsort
SELECT ALL + 17 col0, - 11 * - + 5 AS col2
----
17
55

query I rowsort
SELECT + + 23 * + 4 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT + + 12 + + - 99 * 0 + - - COUNT( DISTINCT + - 57 ) col2
----
13

skipif mysql # not compatible
query I rowsort label-919
SELECT + + 12 + + - 99 * 0 + - - COUNT ( DISTINCT + - 57 ) col2
----
13

query II rowsort
SELECT 67, ( - 32 ) AS col0
----
67
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-921
SELECT DISTINCT + 74 * + SUM( + + 27 ) AS col2, + 71 AS col1
----
1998
71

skipif mysql # not compatible
query II rowsort label-921
SELECT DISTINCT + 74 * + SUM ( + + 27 ) AS col2, + 71 AS col1
----
1998
71

onlyif mysql # DIV for integer division: 
query I rowsort label-922
SELECT + + 63 * 41 DIV - 80 + 98 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-922
SELECT + + 63 * 41 / - 80 + 98 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT 46 * + - 65 * 27 - + COALESCE ( + COUNT( * ), + 49 )
----
-80731

skipif mysql # not compatible
query I rowsort label-923
SELECT 46 * + - 65 * 27 - + COALESCE ( + COUNT ( * ), + 49 )
----
-80731

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

skipif mysql # not compatible
query I rowsort label-924
SELECT + COUNT ( * ) / - 83 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-925
SELECT + 46 + + 82, + CASE + + NULLIF ( + + 2, - 24 ) WHEN - - MIN( 57 ) - + ( MAX( ALL - 57 ) ) - - COUNT( * ) THEN - + 89 WHEN - 61 + COUNT( * ) THEN NULL WHEN - + 25 * + - 16 THEN - + ( 25 ) ELSE 6 - - - 99 END AS col1
----
128
-93

skipif mysql # not compatible
query II rowsort label-925
SELECT + 46 + + 82, + CASE + + NULLIF ( + + 2, - 24 ) WHEN - - MIN ( 57 ) - + ( MAX ( ALL - 57 ) ) - - COUNT ( * ) THEN - + 89 WHEN - 61 + COUNT ( * ) THEN NULL WHEN - + 25 * + - 16 THEN - + ( 25 ) ELSE 6 - - - 99 END AS col1
----
128
-93

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

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

query I rowsort
SELECT ( - - COALESCE ( + - ( - 18 ), + - 64, - 24 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT 8 * + - CASE ( - 57 ) WHEN - 66 THEN 17 * 65 + - + ( + 44 ) + - + 69 WHEN - + COUNT( ALL 62 ) THEN NULL END - - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-929
SELECT 8 * + - CASE ( - 57 ) WHEN - 66 THEN 17 * 65 + - + ( + 44 ) + - + 69 WHEN - + COUNT ( ALL 62 ) THEN NULL END - - 53
----
NULL

query I rowsort
SELECT ALL - 72 * - 5 AS col2
----
360

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

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

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

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

query I rowsort
SELECT ALL 93 + + 31 - - 58 AS col2
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT DISTINCT - 0 + + MAX( - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT - 0 + + MAX ( - 1 )
----
-1

query I rowsort
SELECT ALL 45 * 28 AS col2
----
1260

query I rowsort
SELECT 66 + 10 AS col1
----
76

query II rowsort
SELECT 46 * 2 AS col1, 72 AS col1
----
92
72

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT 82 * COUNT( * ) * + 78 * - MIN( ALL - 28 ) AS col0
----
179088

skipif mysql # not compatible
query I rowsort label-938
SELECT 82 * COUNT ( * ) * + 78 * - MIN ( ALL - 28 ) AS col0
----
179088

query I rowsort
SELECT - 47 + 6 AS col1
----
-41

query I rowsort
SELECT ALL - 57 * 18 * - 39 col2
----
40014

query II rowsort
SELECT DISTINCT - 46 - - 96, - 63 * + 81 col2
----
50
-5103

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

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

query I rowsort
SELECT 52 * 71
----
3692

query II rowsort
SELECT ALL - 97 * + 63 AS col0, - 76
----
-6111
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-945
SELECT - COUNT( - - CAST( - - 37 AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-945
SELECT - COUNT ( - - CAST ( - - 37 AS INTEGER ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-946
SELECT ( 51 ) + - NULLIF ( + - 52, + - 93 ) * 95 DIV 90 + + 99
----
204

skipif mysql # not compatible
query I rowsort label-946
SELECT ( 51 ) + - NULLIF ( + - 52, + - 93 ) * 95 / 90 + + 99
----
204

query I rowsort
SELECT 29 + 12 AS col0
----
41

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

skipif mysql # not compatible
query I rowsort label-948
SELECT 88 / - ( + COUNT ( * ) ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT 19 + 89 + MAX( DISTINCT + 13 ) col1
----
121

skipif mysql # not compatible
query I rowsort label-949
SELECT 19 + 89 + MAX ( DISTINCT + 13 ) col1
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-950
SELECT DISTINCT - 14 + - + 34 AS col1, SUM( DISTINCT - 19 ) * + + 21 - 14
----
-48
-413

skipif mysql # not compatible
query II rowsort label-950
SELECT DISTINCT - 14 + - + 34 AS col1, SUM ( DISTINCT - 19 ) * + + 21 - 14
----
-48
-413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-951
SELECT DISTINCT - + CASE 91 WHEN 81 * + 8 + 16 + + - COALESCE ( - + 39, - - ( 36 ) ) * + 57 * + 83 * ( + 72 ) + - - 93 * - CASE - ( 61 ) WHEN - COALESCE ( + 49, + + 0 ) * 98 THEN 95 WHEN + + COUNT( * ) + 3 + 61 THEN NULL END + + CAST( 17 AS SIGNED ) - + 92 * - 56 * - CAST( NULL AS SIGNED ) THEN NULL WHEN + + COALESCE ( + + COUNT( * ), + 36 + 98 + - + COALESCE ( - 29, 43, - 11 ) + - 81 - 12 * 7 * 2 ) * + 70 THEN NULL ELSE + 37 END
----
-37

skipif mysql # not compatible
query I rowsort label-951
SELECT DISTINCT - + CASE 91 WHEN 81 * + 8 + 16 + + - COALESCE ( - + 39, - - ( 36 ) ) * + 57 * + 83 * ( + 72 ) + - - 93 * - CASE - ( 61 ) WHEN - COALESCE ( + 49, + + 0 ) * 98 THEN 95 WHEN + + COUNT ( * ) + 3 + 61 THEN NULL END + + CAST ( 17 AS INTEGER ) - + 92 * - 56 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN + + COALESCE ( + + COUNT ( * ), + 36 + 98 + - + COALESCE ( - 29, 43, - 11 ) + - 81 - 12 * 7 * 2 ) * + 70 THEN NULL ELSE + 37 END
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT ALL + 81 + COUNT( * ) + - 25 + + 8 * + 98 - + 20
----
821

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL + 81 + COUNT ( * ) + - 25 + + 8 * + 98 - + 20
----
821

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL - COUNT( * ) + + - 62
----
-63

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - COUNT ( * ) + + - 62
----
-63

query I rowsort
SELECT DISTINCT + ( + + 85 ) + - - 84 AS col0
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-955
SELECT DISTINCT + 89 * 77 + - 90 DIV + 71
----
6852

skipif mysql # not compatible
query I rowsort label-955
SELECT DISTINCT + 89 * 77 + - 90 / + 71
----
6852

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT - 75 DIV + - 84 + + - 90 + + 85
----
-5

skipif mysql # not compatible
query I rowsort label-956
SELECT - 75 / + - 84 + + - 90 + + 85
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT 41 * SUM( 5 ) AS col0, 19 + + - 21 * + 71 AS col0
----
205
-1472

skipif mysql # not compatible
query II rowsort label-957
SELECT 41 * SUM ( 5 ) AS col0, 19 + + - 21 * + 71 AS col0
----
205
-1472

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT 12 * - CASE 82 WHEN MAX( ALL - 60 ) + + - COUNT( * ) THEN - + 56 + - 30 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-958
SELECT 12 * - CASE 82 WHEN MAX ( ALL - 60 ) + + - COUNT ( * ) THEN - + 56 + - 30 END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-959
SELECT CAST( + + 99 AS SIGNED ) + - 49 * - + 13 * 99
----
63162

skipif mysql # not compatible
query I rowsort label-959
SELECT CAST ( + + 99 AS INTEGER ) + - 49 * - + 13 * 99
----
63162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-960
SELECT 31 DIV - + MAX( 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-960
SELECT 31 / - + MAX ( 21 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-961
SELECT ALL - ( + CAST( - 7 AS SIGNED ) ) + 76 + - - 6 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL - ( + CAST ( - 7 AS INTEGER ) ) + 76 + - - 6 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT COUNT( * ) * + 11 * + 80
----
880

skipif mysql # not compatible
query I rowsort label-962
SELECT COUNT ( * ) * + 11 * + 80
----
880

query I rowsort
SELECT ALL 75 + 66 AS col2
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-964
SELECT DISTINCT 34 DIV - 15 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-964
SELECT DISTINCT 34 / - 15 AS col1
----
-2

query I rowsort
SELECT DISTINCT 4 - + + 30 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT COUNT( * ) * - NULLIF ( + 65, + + 67 )
----
-65

skipif mysql # not compatible
query I rowsort label-966
SELECT COUNT ( * ) * - NULLIF ( + 65, + + 67 )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT DISTINCT ( - 55 ) DIV - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT ( - 55 ) / - 93 AS col2
----
0

query I rowsort
SELECT ALL 39 - - COALESCE ( - 97, + 65 + + + 53 ) AS col1
----
-58

query II rowsort
SELECT 95 AS col2, + 77
----
95
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-970
SELECT 82 * + CAST( MAX( + 76 ) AS SIGNED ) AS col2
----
6232

skipif mysql # not compatible
query I rowsort label-970
SELECT 82 * + CAST ( MAX ( + 76 ) AS INTEGER ) AS col2
----
6232

onlyif mysql # aggregate syntax: 
query II rowsort label-971
SELECT ALL 33 * + SUM( DISTINCT - 67 ) AS col0, COUNT( * ) * - NULLIF ( + + 53, + - 66 ) * + COALESCE ( - 42, 96 )
----
-2211
2226

skipif mysql # not compatible
query II rowsort label-971
SELECT ALL 33 * + SUM ( DISTINCT - 67 ) AS col0, COUNT ( * ) * - NULLIF ( + + 53, + - 66 ) * + COALESCE ( - 42, 96 )
----
-2211
2226

query I rowsort
SELECT 56 - - 6 * + CASE 7 WHEN - 92 * - 42 THEN + + 26 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-973
SELECT - 26 AS col1, + 1 + 34 - + CASE - 15 WHEN + - ( + + 80 ) - + CAST( NULL AS SIGNED ) * - 59 THEN - 5 * + + 54 ELSE NULL END * - + 98 * 57 col2
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-973
SELECT - 26 AS col1, + 1 + 34 - + CASE - 15 WHEN + - ( + + 80 ) - + CAST ( NULL AS INTEGER ) * - 59 THEN - 5 * + + 54 ELSE NULL END * - + 98 * 57 col2
----
-26
NULL

query I rowsort
SELECT ALL 79 * - 3
----
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-975
SELECT + 45 DIV + + 59 * + - 38 + + 59 + 36 * + 38 + 6 AS col1
----
1433

skipif mysql # not compatible
query I rowsort label-975
SELECT + 45 / + + 59 * + - 38 + + 59 + 36 * + 38 + 6 AS col1
----
1433

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

onlyif mysql # aggregate syntax: 
query II rowsort label-977
SELECT ALL + COUNT( * ) AS col0, 33 * - 95 * - 99 + - 23 AS col2
----
1
310342

skipif mysql # not compatible
query II rowsort label-977
SELECT ALL + COUNT ( * ) AS col0, 33 * - 95 * - 99 + - 23 AS col2
----
1
310342

query I rowsort
SELECT ALL - 17 * + - 51 AS col1
----
867

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT DISTINCT 37 * - ( + COUNT( * ) ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT 37 * - ( + COUNT ( * ) ) col1
----
-37

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

query I rowsort
SELECT ALL NULLIF ( - 0, - - 69 + + - 37 + 15 )
----
0

query I rowsort
SELECT 67 * + 48 AS col1
----
3216

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT - 95 * - - 92 + + COUNT( * )
----
-8739

skipif mysql # not compatible
query I rowsort label-983
SELECT - 95 * - - 92 + + COUNT ( * )
----
-8739

query II rowsort
SELECT ALL 95, 16 AS col2
----
95
16

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT - 52 + - SUM( ALL + 13 ) + + 10
----
-55

skipif mysql # not compatible
query I rowsort label-985
SELECT - 52 + - SUM ( ALL + 13 ) + + 10
----
-55

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-987
SELECT ALL - COUNT( * ) + CAST( NULL AS DECIMAL ) + + - 76 col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT - - COUNT( + - 11 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-988
SELECT - - COUNT ( + - 11 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL + COUNT( * ) + + 60
----
61

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL + COUNT ( * ) + + 60
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-990
SELECT 60 / + ( - CAST( NULL AS SIGNED ) ) + 71 * + 9 / 48 * - + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT 60 / + ( - CAST ( NULL AS INTEGER ) ) + 71 * + 9 / 48 * - + 49 AS col0
----
NULL

query I rowsort
SELECT ALL + - 89 * - - 96 + - 64
----
-8608

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT - 10 * 23 + - 21 - + - 6 - 23 * - + 25 + - COUNT( * ) AS col2
----
329

skipif mysql # not compatible
query I rowsort label-992
SELECT - 10 * 23 + - 21 - + - 6 - 23 * - + 25 + - COUNT ( * ) AS col2
----
329

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-993
SELECT - 33 DIV COUNT( * ) + + 15
----
-18

skipif mysql # not compatible
query I rowsort label-993
SELECT - 33 / COUNT ( * ) + + 15
----
-18

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

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

query I rowsort
SELECT DISTINCT + ( - - 51 ) AS col1
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-996
SELECT - 11 + - 62 - - ( 47 ) AS col0, 30 DIV - - 88
----
-26
0

skipif mysql # not compatible
query II rowsort label-996
SELECT - 11 + - 62 - - ( 47 ) AS col0, 30 / - - 88
----
-26
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-997
SELECT ALL + CASE WHEN NOT NULL IS NOT NULL THEN + CAST( - 81 AS SIGNED ) WHEN NOT NULL NOT BETWEEN NULL AND 15 * 92 - - 64 THEN NULL ELSE NULL END AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL + CASE WHEN NOT NULL IS NOT NULL THEN + CAST ( - 81 AS INTEGER ) WHEN NOT NULL NOT BETWEEN NULL AND 15 * 92 - - 64 THEN NULL ELSE NULL END AS col0
----
-81

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

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

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

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

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

query I rowsort
SELECT DISTINCT 93 * - 95
----
-8835

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

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL + 59 * + 86 - COUNT ( * ) + + + ( - 58 )
----
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT + COUNT( * ) + + + 99 col1
----
100

skipif mysql # not compatible
query I rowsort label-1003
SELECT + COUNT ( * ) + + + 99 col1
----
100

query I rowsort
SELECT - 45 * - 2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT + CASE - COUNT( * ) WHEN - 84 + - ( 63 ) THEN + 42 WHEN - 82 + 36 THEN + ( 54 ) END * - + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1005
SELECT + CASE - COUNT ( * ) WHEN - 84 + - ( 63 ) THEN + 42 WHEN - 82 + 36 THEN + ( 54 ) END * - + 2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1007
SELECT + CASE ( CAST( NULL AS SIGNED ) ) WHEN + + 21 THEN + 88 WHEN - 78 THEN NULL ELSE 62 END * 50 AS col2
----
3100

skipif mysql # not compatible
query I rowsort label-1007
SELECT + CASE ( CAST ( NULL AS INTEGER ) ) WHEN + + 21 THEN + 88 WHEN - 78 THEN NULL ELSE 62 END * 50 AS col2
----
3100

query I rowsort
SELECT ALL 92 * - - 57
----
5244

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT + 50 * 17 - - COUNT( - ( + 3 ) ) col2
----
851

skipif mysql # not compatible
query I rowsort label-1009
SELECT + 50 * 17 - - COUNT ( - ( + 3 ) ) col2
----
851

query II rowsort
SELECT DISTINCT + 95 AS col1, - 52 + + 7
----
95
-45

query I rowsort
SELECT + 74 + + 64
----
138

query II rowsort
SELECT ALL + 36 col2, + 40
----
36
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1013
SELECT MAX( DISTINCT + 35 ) AS col1, 85 + + COUNT( * ) * - 32 AS col0
----
35
53

skipif mysql # not compatible
query II rowsort label-1013
SELECT MAX ( DISTINCT + 35 ) AS col1, 85 + + COUNT ( * ) * - 32 AS col0
----
35
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1014
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 98 DIV - + ( + 64 ) - + 31 AS col0
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-1014
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 98 / - + ( + 64 ) - + 31 AS col0
----
NULL
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1015
SELECT ALL MIN( DISTINCT + 27 ) / COUNT( * ) * CAST( NULL AS SIGNED ) + + ( + + 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL MIN ( DISTINCT + 27 ) / COUNT ( * ) * CAST ( NULL AS INTEGER ) + + ( + + 68 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1016
SELECT + 28 col1, 52 * - - 63 - - 81 DIV 29 + - + 80
----
28
3198

skipif mysql # not compatible
query II rowsort label-1016
SELECT + 28 col1, 52 * - - 63 - - 81 / 29 + - + 80
----
28
3198

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1018
SELECT ALL ( - 26 ) DIV - 87 + 71 + 24 - - + 31 AS col1
----
126

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL ( - 26 ) / - 87 + 71 + 24 - - + 31 AS col1
----
126

query I rowsort
SELECT DISTINCT + ( - 48 ) AS col0
----
-48

query I rowsort
SELECT ALL 49 + - 51 * + 20
----
-971

query II rowsort
SELECT - 29 AS col2, - 49 + + - 64
----
-29
-113

query II rowsort
SELECT ALL 51 AS col2, - 16 + + + ( + 49 ) * - 69
----
51
-3397

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT + + 0 + + - 56 * + 87 * COUNT( * ) * + 21 AS col2
----
-102312

skipif mysql # not compatible
query I rowsort label-1023
SELECT + + 0 + + - 56 * + 87 * COUNT ( * ) * + 21 AS col2
----
-102312

query I rowsort
SELECT + 36 * 30 + 25 - + 86
----
1019

query I rowsort
SELECT ALL + 45 + - 17
----
28

query I rowsort
SELECT DISTINCT + 86 + - - 90
----
176

onlyif mysql # aggregate syntax: 
query II rowsort label-1027
SELECT + - COUNT( DISTINCT 65 ) * + + 43 * - MAX( DISTINCT - 30 ) + + 12 AS col2, + 41 col1
----
-1278
41

skipif mysql # not compatible
query II rowsort label-1027
SELECT + - COUNT ( DISTINCT 65 ) * + + 43 * - MAX ( DISTINCT - 30 ) + + 12 AS col2, + 41 col1
----
-1278
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1028
SELECT - 95 + + 18 DIV COUNT( * ) * 30 AS col1
----
445

skipif mysql # not compatible
query I rowsort label-1028
SELECT - 95 + + 18 / COUNT ( * ) * 30 AS col1
----
445

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT ALL 69 + - + COALESCE ( MIN( ALL - 62 ), + 24 ) AS col2
----
131

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL 69 + - + COALESCE ( MIN ( ALL - 62 ), + 24 ) AS col2
----
131

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

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

query II rowsort
SELECT 60 AS col2, + 22 AS col1
----
60
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT + ( + SUM( + 59 ) ) * + - 22 AS col1
----
-1298

skipif mysql # not compatible
query I rowsort label-1032
SELECT + ( + SUM ( + 59 ) ) * + - 22 AS col1
----
-1298

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

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

query I rowsort
SELECT DISTINCT - ( - 51 ) + - 27
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1035
SELECT CAST( + 49 AS SIGNED ), NULLIF ( 51, - COUNT( * ) ) AS col2
----
49
51

skipif mysql # not compatible
query II rowsort label-1035
SELECT CAST ( + 49 AS INTEGER ), NULLIF ( 51, - COUNT ( * ) ) AS col2
----
49
51

query I rowsort
SELECT ALL + 58 * - 56
----
-3248

onlyif mysql # DIV for integer division: 
query I rowsort label-1037
SELECT ALL ( + 64 ) DIV 52 * - 86
----
-86

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL ( + 64 ) / 52 * - 86
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-1038
SELECT DISTINCT - 48 DIV + 83 - 77 + + - ( 25 )
----
-102

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT - 48 / + 83 - 77 + + - ( 25 )
----
-102

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

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

query I rowsort
SELECT DISTINCT + 68 * + 97
----
6596

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

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

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

skipif mysql # not compatible
query I rowsort label-1042
SELECT + 45 / - 81
----
0

query I rowsort
SELECT - 51 * + + 37
----
-1887

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT ( MAX( ALL - - 66 ) ) col1
----
66

skipif mysql # not compatible
query I rowsort label-1044
SELECT ( MAX ( ALL - - 66 ) ) col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1045
SELECT - NULLIF ( - NULLIF ( - 69, + + 8 ), - 66 * - COUNT( * ) ) * CASE + 75 WHEN 50 / + - 31 * NULLIF ( - 97, + 48 / - - AVG ( + 58 ) * - COUNT( DISTINCT + NULLIF ( + 44, + 26 ) ) * - 8 + 13 * + + CAST( + + 53 AS SIGNED ) + + ( 14 ) ) - 82 * - - CASE - - AVG ( 91 ) WHEN + CASE - 84 WHEN - AVG ( 7 ) + 26 THEN + 60 + - 22 END THEN - - 44 WHEN - + 54 * + 2 + 35 + 38 THEN - COUNT( 89 ) ELSE NULL END THEN 37 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1045
SELECT - NULLIF ( - NULLIF ( - 69, + + 8 ), - 66 * - COUNT ( * ) ) * CASE + 75 WHEN 50 / + - 31 * NULLIF ( - 97, + 48 / - - AVG ( + 58 ) * - COUNT ( DISTINCT + NULLIF ( + 44, + 26 ) ) * - 8 + 13 * + + CAST ( + + 53 AS INTEGER ) + + ( 14 ) ) - 82 * - - CASE - - AVG ( 91 ) WHEN + CASE - 84 WHEN - AVG ( 7 ) + 26 THEN + 60 + - 22 END THEN - - 44 WHEN - + 54 * + 2 + 35 + 38 THEN - COUNT ( 89 ) ELSE NULL END THEN 37 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + + 57, + 46 + - 95 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT DISTINCT + SUM( ALL - 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT + SUM ( ALL - 29 ) AS col2
----
-29

query I rowsort
SELECT ( - CASE + 57 WHEN + 80 * 27 THEN 73 WHEN 55 THEN NULL ELSE - 92 END ) col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1049
SELECT - 50 DIV + - NULLIF ( COUNT( * ), + NULLIF ( - 6, - - 42 * - 9 ) DIV - + 36 * + 48 + - 84 )
----
50

skipif mysql # not compatible
query I rowsort label-1049
SELECT - 50 / + - NULLIF ( COUNT ( * ), + NULLIF ( - 6, - - 42 * - 9 ) / - + 36 * + 48 + - 84 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1050
SELECT ALL - 24 / + + 46 * + CAST( NULL AS SIGNED ) * + + COALESCE ( - COALESCE ( + ( 58 ), + - 80 * 36 - + 42 + 39 + + 9 / 99 / + 3 + + + 63, + + 0, + - 81 ), - - 12 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL - 24 / + + 46 * + CAST ( NULL AS INTEGER ) * + + COALESCE ( - COALESCE ( + ( 58 ), + - 80 * 36 - + 42 + 39 + + 9 / 99 / + 3 + + + 63, + + 0, + - 81 ), - - 12 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT ALL 79 * - COUNT( * ) * - + 68
----
5372

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL 79 * - COUNT ( * ) * - + 68
----
5372

query I rowsort
SELECT DISTINCT + 67 * - - 15 + - 3
----
1002

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT ALL - 3 * + - 77 + - COUNT( * ) * - + 70 AS col1
----
301

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL - 3 * + - 77 + - COUNT ( * ) * - + 70 AS col1
----
301

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1054
SELECT - + 45 - 54, 95 AS col0, COALESCE ( 39, + 20, - CAST( 66 AS SIGNED ) ) AS col0
----
-99
95
39

skipif mysql # not compatible
query III rowsort label-1054
SELECT - + 45 - 54, 95 AS col0, COALESCE ( 39, + 20, - CAST ( 66 AS INTEGER ) ) AS col0
----
-99
95
39

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

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

query I rowsort
SELECT 71 * - + 37 + - 94 col0
----
-2721

query I rowsort
SELECT DISTINCT + + 89 * - 5 * + 81
----
-36045

query I rowsort
SELECT ALL - 74 * 60 + + + ( - 21 ) AS col0
----
-4461

query I rowsort
SELECT ALL 76 * - 87 + + 44 AS col1
----
-6568

query I rowsort
SELECT ALL 0 + + 12 + 52
----
64

query I rowsort
SELECT + 84 + + 7 * - 31 + 10 * 25 + - ( + 98 ) + + - 15 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1062
SELECT DISTINCT ( 6 ) DIV - - CAST( + 78 AS SIGNED ) + + 87 + MAX( + 6 ) AS col1, NULLIF ( + + 73, 91 ) + - - 75 col1
----
93
148

skipif mysql # not compatible
query II rowsort label-1062
SELECT DISTINCT ( 6 ) / - - CAST ( + 78 AS INTEGER ) + + 87 + MAX ( + 6 ) AS col1, NULLIF ( + + 73, 91 ) + - - 75 col1
----
93
148

query I rowsort
SELECT - ( - ( + 20 ) ) AS col1
----
20

query I rowsort
SELECT 45 + + - 75
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1065
SELECT + COALESCE ( - - 96, + ( + - CAST( NULL AS SIGNED ) ) ) * - 36 AS col0
----
-3456

skipif mysql # not compatible
query I rowsort label-1065
SELECT + COALESCE ( - - 96, + ( + - CAST ( NULL AS INTEGER ) ) ) * - 36 AS col0
----
-3456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1066
SELECT + CAST( 97 AS SIGNED ) + 49 * + COUNT( * ) * - + 61 AS col0
----
-2892

skipif mysql # not compatible
query I rowsort label-1066
SELECT + CAST ( 97 AS INTEGER ) + 49 * + COUNT ( * ) * - + 61 AS col0
----
-2892

query II rowsort
SELECT 41 * + - 5 * + 14 col2, ( 14 ) + + + 83 AS col1
----
-2870
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1068
SELECT ALL CAST( + 93 AS SIGNED ) * - 36 AS col0, NULLIF ( - 18, + 12 * + - 79 ) * 56 + - + 81 - 42 + - 99 * + 37 + + - 57 * - NULLIF ( 57, + 20 ) - - 45 * 68
----
-3348
1515

skipif mysql # not compatible
query II rowsort label-1068
SELECT ALL CAST ( + 93 AS INTEGER ) * - 36 AS col0, NULLIF ( - 18, + 12 * + - 79 ) * 56 + - + 81 - 42 + - 99 * + 37 + + - 57 * - NULLIF ( 57, + 20 ) - - 45 * 68
----
-3348
1515

query I rowsort
SELECT 82 * - + ( - + 40 ) + - + 30
----
3250

query I rowsort
SELECT ( + + 26 ) * 0 * + 6
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1071
SELECT 76 * ( CAST( - + 94 AS SIGNED ) )
----
-7144

skipif mysql # not compatible
query I rowsort label-1071
SELECT 76 * ( CAST ( - + 94 AS INTEGER ) )
----
-7144

onlyif mysql # aggregate syntax: 
query II rowsort label-1072
SELECT 82 * + 13 - NULLIF ( + 7, + 15 * 69 + + 92 + + - ( + + ( - - 78 ) ) + - - 54 * + - 65 ) + - 31 * + + NULLIF ( 48, COUNT( * ) ) AS col1, MIN( ALL - 16 ) * + + 61 + + 3 * 43 + + 89 AS col0
----
-429
-758

skipif mysql # not compatible
query II rowsort label-1072
SELECT 82 * + 13 - NULLIF ( + 7, + 15 * 69 + + 92 + + - ( + + ( - - 78 ) ) + - - 54 * + - 65 ) + - 31 * + + NULLIF ( 48, COUNT ( * ) ) AS col1, MIN ( ALL - 16 ) * + + 61 + + 3 * 43 + + 89 AS col0
----
-429
-758

query II rowsort
SELECT ALL - 1 AS col2, - 93
----
-1
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT DISTINCT - 10 * - 77 * COUNT( * ) AS col1
----
770

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT - 10 * - 77 * COUNT ( * ) AS col1
----
770

onlyif mysql # DIV for integer division: 
query I rowsort label-1075
SELECT DISTINCT 15 DIV - 43 col2
----
0

skipif mysql # not compatible
query I rowsort label-1075
SELECT DISTINCT 15 / - 43 col2
----
0

query I rowsort
SELECT ALL - 92 + + ( + COALESCE ( - 97, 72 ) )
----
-189

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT DISTINCT + 38 + COUNT( * ) * MIN( ALL + 41 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT + 38 + COUNT ( * ) * MIN ( ALL + 41 ) AS col2
----
79

query I rowsort
SELECT ALL - 80 + - 88 AS col1
----
-168

query I rowsort
SELECT 74 * + COALESCE ( + 44, - + 4, - 35 ) + 18
----
3274

query II rowsort
SELECT DISTINCT - 24 AS col1, - 77
----
-24
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1082
SELECT DISTINCT - 39 col0, - COUNT( * ) + + 64 AS col0
----
-39
63

skipif mysql # not compatible
query II rowsort label-1082
SELECT DISTINCT - 39 col0, - COUNT ( * ) + + 64 AS col0
----
-39
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT DISTINCT - 86 + - + COUNT( * ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT - 86 + - + COUNT ( * ) col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT - 54 + - - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-1084
SELECT - 54 + - - COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT ALL SUM( + COALESCE ( 40, + 24 + - 74 ) )
----
40

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL SUM ( + COALESCE ( 40, + 24 + - 74 ) )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1086
SELECT - 98, COUNT( * ) * + - CAST( - - 17 AS SIGNED ) + 9 AS col0
----
-98
-8

skipif mysql # not compatible
query II rowsort label-1086
SELECT - 98, COUNT ( * ) * + - CAST ( - - 17 AS INTEGER ) + 9 AS col0
----
-98
-8

query II rowsort
SELECT DISTINCT - 8, - 69 AS col0
----
-8
-69

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1089
SELECT - 30 + - 62 - + SUM( DISTINCT - 23 ) + + + ( + 94 ) AS col2, - 74
----
25
-74

skipif mysql # not compatible
query II rowsort label-1089
SELECT - 30 + - 62 - + SUM ( DISTINCT - 23 ) + + + ( + 94 ) AS col2, - 74
----
25
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT CASE - - 79 WHEN - + 69 THEN NULL WHEN - 37 THEN - 68 ELSE + 16 END * - COUNT( DISTINCT + 35 ) + - 50 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1090
SELECT CASE - - 79 WHEN - + 69 THEN NULL WHEN - 37 THEN - 68 ELSE + 16 END * - COUNT ( DISTINCT + 35 ) + - 50 AS col2
----
-66

query I rowsort
SELECT ALL - - 19 * - 33
----
-627

query I rowsort
SELECT DISTINCT - + 69 * 44 + - 95 AS col1
----
-3131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1093
SELECT ALL 16 DIV - MAX( ( 73 ) ) * - - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL 16 / - MAX ( ( 73 ) ) * - - 75 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1094
SELECT MAX( ALL + - 13 ) + + 75 * + CASE - - COUNT( * ) WHEN 2 * - ( - CAST( - - 39 AS DECIMAL ) ) * 37 THEN + 23 WHEN + CAST( NULL AS SIGNED ) * 32 + + ( - + NULLIF ( - 69, 40 / - 78 * + + 8 * 17 ) ) THEN NULL WHEN 81 * - 46 THEN + 64 + - - 1 END * - 79 + + 1 - + - 0 AS col0, + 81 + - 31 - - ( - + 55 ) * + 44 AS col0
----
NULL
-2370

skipif mysql # not compatible
query II rowsort label-1094
SELECT MAX ( ALL + - 13 ) + + 75 * + CASE - - COUNT ( * ) WHEN 2 * - ( - CAST ( - - 39 AS REAL ) ) * 37 THEN + 23 WHEN + CAST ( NULL AS INTEGER ) * 32 + + ( - + NULLIF ( - 69, 40 / - 78 * + + 8 * 17 ) ) THEN NULL WHEN 81 * - 46 THEN + 64 + - - 1 END * - 79 + + 1 - + - 0 AS col0, + 81 + - 31 - - ( - + 55 ) * + 44 AS col0
----
NULL
-2370

onlyif mysql # DIV for integer division: 
query I rowsort label-1095
SELECT DISTINCT 34 * ( + 96 ) DIV + ( 48 ) + 87 AS col2
----
155

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT 34 * ( + 96 ) / + ( 48 ) + 87 AS col2
----
155

query I rowsort
SELECT ALL 69 * - + 14 AS col1
----
-966

query I rowsort
SELECT 75 * + + 53
----
3975

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT ALL 33 * + - COUNT( * ) * - 64 AS col2
----
2112

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL 33 * + - COUNT ( * ) * - 64 AS col2
----
2112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1099
SELECT CASE - + 89 WHEN + 42 THEN - + 95 WHEN + 94 THEN + ( + - COALESCE ( NULLIF ( + - 65, + CAST( NULL AS SIGNED ) ), - - 81 ) ) * + + 62 + - 40 END * 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1099
SELECT CASE - + 89 WHEN + 42 THEN - + 95 WHEN + 94 THEN + ( + - COALESCE ( NULLIF ( + - 65, + CAST ( NULL AS INTEGER ) ), - - 81 ) ) * + + 62 + - 40 END * 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT ALL 9 * 30 * COUNT( * ) AS col0
----
270

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL 9 * 30 * COUNT ( * ) AS col0
----
270

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT DISTINCT - MAX( ALL - 89 ) + + - 78 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT - MAX ( ALL - 89 ) + + - 78 AS col1
----
11

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1104
SELECT DISTINCT - ( - 13 ), 55 * COUNT( * ) AS col2
----
13
55

skipif mysql # not compatible
query II rowsort label-1104
SELECT DISTINCT - ( - 13 ), 55 * COUNT ( * ) AS col2
----
13
55

query I rowsort
SELECT DISTINCT 77 + + - 84
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT DISTINCT - CASE + - 91 WHEN - 67 THEN NULL WHEN + MIN( ALL + 8 ) THEN COUNT( * ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT - CASE + - 91 WHEN - 67 THEN NULL WHEN + MIN ( ALL + 8 ) THEN COUNT ( * ) ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT ALL - - SUM( - - 66 ) + ( 86 ) AS col0
----
152

skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL - - SUM ( - - 66 ) + ( 86 ) AS col0
----
152

query I rowsort
SELECT ALL + 57 * + 81
----
4617

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1109
SELECT + + 58 * 65 * - CAST( NULL AS SIGNED ) + 85 AS col0, - COALESCE ( 73, - - 20 + 51 )
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-1109
SELECT + + 58 * 65 * - CAST ( NULL AS INTEGER ) + 85 AS col0, - COALESCE ( 73, - - 20 + 51 )
----
NULL
-73

query I rowsort
SELECT + NULLIF ( - 73, - 50 ) AS col2
----
-73

query I rowsort
SELECT + 92 * ( 77 ) - 0
----
7084

query II rowsort
SELECT - 61 * + + 0, 92 AS col2
----
0
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT - - NULLIF ( - + COALESCE ( 85, - + ( 3 ) ), - - 84 * COUNT( * ) - - 28 + 44 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-1113
SELECT - - NULLIF ( - + COALESCE ( 85, - + ( 3 ) ), - - 84 * COUNT ( * ) - - 28 + 44 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT ALL + 92 * - SUM( - 76 )
----
6992

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL + 92 * - SUM ( - 76 )
----
6992

onlyif mysql # DIV for integer division: 
query I rowsort label-1115
SELECT ALL + + 4 DIV 49 * - + 8
----
0

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL + + 4 / 49 * - + 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT + + COUNT( DISTINCT 39 ) * + 92 - + - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-1116
SELECT + + COUNT ( DISTINCT 39 ) * + 92 - + - COUNT ( * )
----
93

query I rowsort
SELECT - ( - - NULLIF ( + + 87, - 61 * + 39 + - 70 + 48 ) ) * - - 40 col2
----
-3480

query I rowsort
SELECT - 17 - + + 71
----
-88

query I rowsort
SELECT + 29 * 54
----
1566

query II rowsort
SELECT - 84 AS col0, 28 * + 24 AS col1
----
-84
672

query I rowsort
SELECT DISTINCT - 37 * - + 21 AS col1
----
777

query I rowsort
SELECT - 81 + 59
----
-22

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

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

query II rowsort
SELECT - 95 AS col1, 35
----
-95
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT ALL + SUM( - 17 ) + + SUM( DISTINCT - 33 )
----
-50

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL + SUM ( - 17 ) + + SUM ( DISTINCT - 33 )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1126
SELECT ALL 63 + + COUNT( * ) DIV 50 + + 84 AS col0
----
147

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL 63 + + COUNT ( * ) / 50 + + 84 AS col0
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1127
SELECT DISTINCT + 19 + - 59 + 40 + - CAST( NULL AS SIGNED ) + 64 + - + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT + 19 + - 59 + 40 + - CAST ( NULL AS INTEGER ) + 64 + - + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT ALL NULLIF ( - 79, + + NULLIF ( 65, - 3 * COUNT( * ) + + 86 + + COUNT( * ) + - COUNT( * ) + - - 23 + 9 + 76 ) ) col2
----
-79

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL NULLIF ( - 79, + + NULLIF ( 65, - 3 * COUNT ( * ) + + 86 + + COUNT ( * ) + - COUNT ( * ) + - - 23 + 9 + 76 ) ) col2
----
-79

query I rowsort
SELECT - 39 + 65 AS col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-1130
SELECT - 61 AS col2, - MIN( + 22 ) AS col0
----
-61
-22

skipif mysql # not compatible
query II rowsort label-1130
SELECT - 61 AS col2, - MIN ( + 22 ) AS col0
----
-61
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-1131
SELECT + 21 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-1131
SELECT + 21 / 95
----
0

query I rowsort
SELECT ( - 35 ) AS col2
----
-35

query I rowsort
SELECT + NULLIF ( ( - + 89 ), + 2 )
----
-89

query II rowsort
SELECT - 9 + - 96 * + 75 AS col1, 95 AS col0
----
-7209
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1135
SELECT ALL SUM( + ( - 6 ) ) * - 48 + NULLIF ( + 11, - - 21 * 36 ) AS col2, ( - + 10 )
----
299
-10

skipif mysql # not compatible
query II rowsort label-1135
SELECT ALL SUM ( + ( - 6 ) ) * - 48 + NULLIF ( + 11, - - 21 * 36 ) AS col2, ( - + 10 )
----
299
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1136
SELECT ALL CAST( + - 77 AS SIGNED ) * 16 + - + 38 AS col2
----
-1270

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL CAST ( + - 77 AS INTEGER ) * 16 + - + 38 AS col2
----
-1270

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

skipif mysql # not compatible
query I rowsort label-1137
SELECT - CAST ( NULL AS INTEGER ) * - 43 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1138
SELECT - CAST( - 65 AS SIGNED ) * - 46 + + 17 - - - 3 * ( + 24 ) + - COUNT( * )
----
-3046

skipif mysql # not compatible
query I rowsort label-1138
SELECT - CAST ( - 65 AS INTEGER ) * - 46 + + 17 - - - 3 * ( + 24 ) + - COUNT ( * )
----
-3046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1139
SELECT ALL + 18 * - - 99 + - - CAST( - CAST( - 86 AS SIGNED ) AS SIGNED ) + - MAX( DISTINCT 5 ) AS col0
----
1863

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL + 18 * - - 99 + - - CAST ( - CAST ( - 86 AS INTEGER ) AS INTEGER ) + - MAX ( DISTINCT 5 ) AS col0
----
1863

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1141
SELECT - 40 * - 12 - - MIN( 33 ) - + - 0 + + COUNT( * ) + - + ( + + 0 ) + + - 70 * + - COALESCE ( - CAST( - CASE 20 WHEN + 44 THEN 60 WHEN COUNT( * ) * + + CASE + 1 WHEN + 75 - - 95 THEN + 46 WHEN + + 5 THEN + 56 ELSE - 6 END + 0 THEN NULL END AS SIGNED ), 80, - - 95 * - - 86 + - 16 + - + 74 DIV - 0 ) + - + 1 DIV + 83
----
6114

skipif mysql # not compatible
query I rowsort label-1141
SELECT - 40 * - 12 - - MIN ( 33 ) - + - 0 + + COUNT ( * ) + - + ( + + 0 ) + + - 70 * + - COALESCE ( - CAST ( - CASE 20 WHEN + 44 THEN 60 WHEN COUNT ( * ) * + + CASE + 1 WHEN + 75 - - 95 THEN + 46 WHEN + + 5 THEN + 56 ELSE - 6 END + 0 THEN NULL END AS INTEGER ), 80, - - 95 * - - 86 + - 16 + - + 74 / - 0 ) + - + 1 / + 83
----
6114

query I rowsort
SELECT ALL + ( + + 99 ) * + 84
----
8316

query I rowsort
SELECT + ( + 99 ) + + 19 AS col0
----
118

query I rowsort
SELECT + 36 + + 28
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT + MAX( + 28 ) * CASE AVG ( - 62 ) WHEN + 41 THEN + + 37 * + - 93 ELSE - 95 END + - 56 + - 49
----
-2765

skipif mysql # not compatible
query I rowsort label-1145
SELECT + MAX ( + 28 ) * CASE AVG ( - 62 ) WHEN + 41 THEN + + 37 * + - 93 ELSE - 95 END + - 56 + - 49
----
-2765

query I rowsort
SELECT DISTINCT - 39 * + 16 * - 90 - 52 AS col1
----
56108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1147
SELECT ALL + 53, + ( - + ( + + NULLIF ( + - ( + 39 ), - 65 - 58 ) ) ) * - COUNT( * ) * 86 * ( + ( - 5 ) ) AS col0, - CAST( NULL AS SIGNED ) col2
----
53
16770
NULL

skipif mysql # not compatible
query III rowsort label-1147
SELECT ALL + 53, + ( - + ( + + NULLIF ( + - ( + 39 ), - 65 - 58 ) ) ) * - COUNT ( * ) * 86 * ( + ( - 5 ) ) AS col0, - CAST ( NULL AS INTEGER ) col2
----
53
16770
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1148
SELECT COALESCE ( 63, - 50 DIV - CASE 36 WHEN - 33 THEN NULLIF ( 4, ( ( + + COALESCE ( - - 17, 97, CASE - 61 WHEN - + 58 THEN NULL WHEN - - ( + 15 ) * - 91 + + 94 + - + 56 + - MAX( DISTINCT + 59 ) * - ( - 60 ) + 90 + 55 THEN - + 78 END - + 64 ) ) ) + NULLIF ( + 72, + 63 ) ) WHEN - 75 * 98 THEN NULL ELSE 2 END + 44 )
----
63

skipif mysql # not compatible
query I rowsort label-1148
SELECT COALESCE ( 63, - 50 / - CASE 36 WHEN - 33 THEN NULLIF ( 4, ( ( + + COALESCE ( - - 17, 97, CASE - 61 WHEN - + 58 THEN NULL WHEN - - ( + 15 ) * - 91 + + 94 + - + 56 + - MAX ( DISTINCT + 59 ) * - ( - 60 ) + 90 + 55 THEN - + 78 END - + 64 ) ) ) + NULLIF ( + 72, + 63 ) ) WHEN - 75 * 98 THEN NULL ELSE 2 END + 44 )
----
63

query I rowsort
SELECT DISTINCT + - 51 AS col2
----
-51

query I rowsort
SELECT ALL - 96 * + 62
----
-5952

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT - 73 * ( 11 ) + - - 27 + + + 46 DIV 56 AS col2
----
-776

skipif mysql # not compatible
query I rowsort label-1152
SELECT - 73 * ( 11 ) + - - 27 + + + 46 / 56 AS col2
----
-776

query II rowsort
SELECT ALL 6 AS col1, ( - 53 ) AS col2
----
6
-53

query I rowsort
SELECT DISTINCT - 52 * 59 AS col1
----
-3068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1155
SELECT + MAX( ALL - 6 ) DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-1155
SELECT + MAX ( ALL - 6 ) / 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1156
SELECT - CAST( 87 AS SIGNED ) * - 74 + 81
----
6519

skipif mysql # not compatible
query I rowsort label-1156
SELECT - CAST ( 87 AS INTEGER ) * - 74 + 81
----
6519

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL + 19 * + + COALESCE ( 10, - ( 93 ), - COUNT( * ), ( - + COUNT( + 94 ) ) + 44 ) AS col2
----
190

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL + 19 * + + COALESCE ( 10, - ( 93 ), - COUNT ( * ), ( - + COUNT ( + 94 ) ) + 44 ) AS col2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT - ( + ( - MAX( ALL CASE + 95 WHEN - 88 THEN 14 END ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1158
SELECT - ( + ( - MAX ( ALL CASE + 95 WHEN - 88 THEN 14 END ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT COUNT( DISTINCT + 97 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1159
SELECT COUNT ( DISTINCT + 97 ) AS col1
----
1

query II rowsort
SELECT - 83 AS col1, + 87 * + 36 AS col0
----
-83
3132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1161
SELECT ALL CAST( NULL AS SIGNED ) + + + ( + 60 ) + - 20 * + + 14 * + 24 * + 17 * - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL CAST ( NULL AS INTEGER ) + + + ( + 60 ) + - 20 * + + 14 * + 24 * + 17 * - 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT + 75 * + 79 * + - CASE - 23 WHEN + NULLIF ( + 50, + COUNT( * ) ) THEN 26 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1162
SELECT + 75 * + 79 * + - CASE - 23 WHEN + NULLIF ( + 50, + COUNT ( * ) ) THEN 26 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1163
SELECT - CAST( + 72 AS SIGNED ) + - 70 AS col2
----
-142

skipif mysql # not compatible
query I rowsort label-1163
SELECT - CAST ( + 72 AS INTEGER ) + - 70 AS col2
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1164
SELECT DISTINCT + CASE - COUNT( * ) WHEN + 62 THEN - + 9 DIV 2 - - NULLIF ( + 90, AVG ( - + 71 ) * + CAST( + - 30 AS SIGNED ) ) ELSE - 59 END * + 95 * + 52
----
-291460

skipif mysql # not compatible
query I rowsort label-1164
SELECT DISTINCT + CASE - COUNT ( * ) WHEN + 62 THEN - + 9 / 2 - - NULLIF ( + 90, AVG ( - + 71 ) * + CAST ( + - 30 AS INTEGER ) ) ELSE - 59 END * + 95 * + 52
----
-291460

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT DISTINCT - 78 + - 45 * COUNT( * )
----
-123

skipif mysql # not compatible
query I rowsort label-1165
SELECT DISTINCT - 78 + - 45 * COUNT ( * )
----
-123

query I rowsort
SELECT ALL + 24 + - 45 + - - 82 * - - 5 * - 39 AS col1
----
-16011

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT - 21 + - - COUNT( * ) * - 72 * 97 col1
----
-7005

skipif mysql # not compatible
query I rowsort label-1167
SELECT - 21 + - - COUNT ( * ) * - 72 * 97 col1
----
-7005

query I rowsort
SELECT ALL - 61 + 38
----
-23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1170
SELECT - 59 col0, CAST( AVG ( DISTINCT + 66 ) AS SIGNED ) AS col2
----
-59
66

skipif mysql # not compatible
query II rowsort label-1170
SELECT - 59 col0, CAST ( AVG ( DISTINCT + 66 ) AS INTEGER ) AS col2
----
-59
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1171
SELECT 35 AS col1, NULLIF ( + COUNT( * ), 55 + - 93 * - - 69 )
----
35
1

skipif mysql # not compatible
query II rowsort label-1171
SELECT 35 AS col1, NULLIF ( + COUNT ( * ), 55 + - 93 * - - 69 )
----
35
1

query I rowsort
SELECT - COALESCE ( + + 95, - 93 ) * - 63 AS col1
----
5985

query I rowsort
SELECT - 15 + 46 AS col2
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1174
SELECT DISTINCT + 88 * - + CAST( NULL AS DECIMAL ) * + - 83 * + + 63 * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT + 88 * - + CAST ( NULL AS REAL ) * + - 83 * + + 63 * - 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1175
SELECT ALL CAST( NULL AS SIGNED ), + MAX( DISTINCT + 54 ) AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-1175
SELECT ALL CAST ( NULL AS INTEGER ), + MAX ( DISTINCT + 54 ) AS col2
----
NULL
54

query II rowsort
SELECT - 16 col2, 86 * + 69 AS col0
----
-16
5934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1177
SELECT ALL 91 + 56 - + MAX( + - 24 ) + + 85 * - 38 * - - 40 + ( + ( - 15 ) ) + - CAST( + CASE + - MAX( DISTINCT + + 57 ) WHEN + CAST( + 6 AS SIGNED ) THEN NULL ELSE 18 END AS SIGNED )
----
-129062

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL 91 + 56 - + MAX ( + - 24 ) + + 85 * - 38 * - - 40 + ( + ( - 15 ) ) + - CAST ( + CASE + - MAX ( DISTINCT + + 57 ) WHEN + CAST ( + 6 AS INTEGER ) THEN NULL ELSE 18 END AS INTEGER )
----
-129062

query I rowsort
SELECT DISTINCT + 7 * + - 95 AS col0
----
-665

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1179
SELECT ALL + 31 DIV COUNT( * ) * - - 32 - - 62
----
1054

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL + 31 / COUNT ( * ) * - - 32 - - 62
----
1054

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1180
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) - - 26 DIV - ( 83 ) + + 90 col0
----
89

skipif mysql # not compatible
query I rowsort label-1180
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) - - 26 / - ( 83 ) + + 90 col0
----
89

query II rowsort
SELECT ALL + - 68 AS col2, 85 AS col2
----
-68
85

query II rowsort
SELECT - 32 AS col0, + 53 col2
----
-32
53

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

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

query II rowsort
SELECT ALL - - 90 AS col1, 79
----
90
79

query II rowsort
SELECT DISTINCT - + 99, - 46 AS col1
----
-99
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1186
SELECT + COALESCE ( 48, - AVG ( - 6 ), - + SUM( ALL - + 99 ) * - COALESCE ( - 54, + 63 ) + + 47 ) DIV + 2
----
24

skipif mysql # not compatible
query I rowsort label-1186
SELECT + COALESCE ( 48, - AVG ( - 6 ), - + SUM ( ALL - + 99 ) * - COALESCE ( - 54, + 63 ) + + 47 ) / + 2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT ALL + 74 * COUNT( DISTINCT - - 77 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL + 74 * COUNT ( DISTINCT - - 77 ) AS col0
----
74

query II rowsort
SELECT DISTINCT - - 52 AS col0, - 11
----
52
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1189
SELECT DISTINCT - 47 DIV + - 74 - 84 * + + 41
----
-3444

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT - 47 / + - 74 - 84 * + + 41
----
-3444

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1190
SELECT + 1 * 55, 68 + CAST( - 24 AS SIGNED ) * + 3 AS col0
----
55
-4

skipif mysql # not compatible
query II rowsort label-1190
SELECT + 1 * 55, 68 + CAST ( - 24 AS INTEGER ) * + 3 AS col0
----
55
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT - NULLIF ( - - 54, + 28 ) - - + COUNT( 94 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-1192
SELECT - NULLIF ( - - 54, + 28 ) - - + COUNT ( 94 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT SUM( - - 21 ) * + 42
----
882

skipif mysql # not compatible
query I rowsort label-1193
SELECT SUM ( - - 21 ) * + 42
----
882

query I rowsort
SELECT 35 * 99
----
3465

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

skipif mysql # not compatible
query II rowsort label-1195
SELECT + COUNT ( * ), ( - CAST ( NULL AS INTEGER ) ) AS col1
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT 65 DIV 81 DIV ( - - 32 )
----
0

skipif mysql # not compatible
query I rowsort label-1196
SELECT 65 / 81 / ( - - 32 )
----
0

query I rowsort
SELECT + + 81 col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1198
SELECT ALL 20 + COUNT( * ) * - + CAST( NULL AS SIGNED ) * + 36 - 57 + - 52 * - - 67 / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL 20 + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + 36 - 57 + - 52 * - - 67 / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1199
SELECT DISTINCT - - COUNT( * ), - ( + 3 ) AS col1
----
1
-3

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

query I rowsort
SELECT ALL + 73 + - - 8
----
81

query I rowsort
SELECT 14 + - - 37 col1
----
51

query I rowsort
SELECT DISTINCT 52 + - 79 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL + ( + 28 ) + + COUNT( * )
----
29

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT ALL COUNT( 88 ) + - - 48 * - + 83
----
-3983

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL COUNT ( 88 ) + - - 48 * - + 83
----
-3983

query I rowsort
SELECT ALL 46 + 41 + + - 55
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1206
SELECT DISTINCT COUNT( * ) * + 84 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT COUNT ( * ) * + 84 / - 93
----
0

query I rowsort
SELECT ALL 51 + - 67 * 71
----
-4706

query I rowsort
SELECT 75 * - 53
----
-3975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1209
SELECT 81 DIV 37 * - ( - COUNT( * ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1209
SELECT 81 / 37 * - ( - COUNT ( * ) ) AS col0
----
2

query I rowsort
SELECT ALL + ( - 5 ) - - 69 - + 65
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1211
SELECT 16 - - + 65 + - CAST( + COUNT( * ) AS SIGNED ) + + 76 + 11 * + 36 AS col0, 39 - - 37 - + CASE + 13 WHEN COUNT( * ) + - 2 * + + 2 THEN + 60 * - CASE - 47 WHEN + + 57 + - - 21 THEN - + COUNT( * ) * + - 13 ELSE - 45 END - 41 * + 39 WHEN + + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS col0
----
552
NULL

skipif mysql # not compatible
query II rowsort label-1211
SELECT 16 - - + 65 + - CAST ( + COUNT ( * ) AS INTEGER ) + + 76 + 11 * + 36 AS col0, 39 - - 37 - + CASE + 13 WHEN COUNT ( * ) + - 2 * + + 2 THEN + 60 * - CASE - 47 WHEN + + 57 + - - 21 THEN - + COUNT ( * ) * + - 13 ELSE - 45 END - 41 * + 39 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col0
----
552
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1212
SELECT 19 DIV - 47 * - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1212
SELECT 19 / - 47 * - 58 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1213
SELECT MAX( DISTINCT - CAST( + ( + 32 ) AS SIGNED ) ) + 79 + + 24 * 5
----
167

skipif mysql # not compatible
query I rowsort label-1213
SELECT MAX ( DISTINCT - CAST ( + ( + 32 ) AS INTEGER ) ) + 79 + + 24 * 5
----
167

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

skipif mysql # not compatible
query I rowsort label-1214
SELECT + CAST ( NULL AS REAL ) * + + COUNT ( * ) * + 14
----
NULL

query I rowsort
SELECT + 58 + - 42 - - 95 AS col2
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1216
SELECT 9 / + + 51 + 57 + - 31 * - COUNT( * ) * - CAST( NULL AS SIGNED ) * + - 3 - 17 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1216
SELECT 9 / + + 51 + 57 + - 31 * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + - 3 - 17 col2
----
NULL

query I rowsort
SELECT ALL + + 2 * + - 64 * + + 58 AS col1
----
-7424

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

query I rowsort
SELECT ALL + - 77 * + - 39 * 50
----
150150

onlyif mysql # aggregate syntax: 
query II rowsort label-1220
SELECT - 80 * 26, - 45 * + COUNT( * ) * - - 51 AS col2
----
-2080
-2295

skipif mysql # not compatible
query II rowsort label-1220
SELECT - 80 * 26, - 45 * + COUNT ( * ) * - - 51 AS col2
----
-2080
-2295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1221
SELECT DISTINCT 50 * 40 * - 76 + + 46 * + 62, CAST( - ( + CAST( 34 AS SIGNED ) ) AS SIGNED ) * SUM( + 37 ) AS col2
----
-149148
-1258

skipif mysql # not compatible
query II rowsort label-1221
SELECT DISTINCT 50 * 40 * - 76 + + 46 * + 62, CAST ( - ( + CAST ( 34 AS INTEGER ) ) AS INTEGER ) * SUM ( + 37 ) AS col2
----
-149148
-1258

query II rowsort
SELECT DISTINCT - ( - 67 ) col0, 41
----
67
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1223
SELECT - 98 * - - ( + 59 ) - SUM( - + 42 ) DIV + 2 AS col2
----
-5761

skipif mysql # not compatible
query I rowsort label-1223
SELECT - 98 * - - ( + 59 ) - SUM ( - + 42 ) / + 2 AS col2
----
-5761

query I rowsort
SELECT ALL - + ( + - 78 ) * + 13 * 2 + + 65
----
2093

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT + 47 * + - 9 * + COUNT( * )
----
-423

skipif mysql # not compatible
query I rowsort label-1225
SELECT + 47 * + - 9 * + COUNT ( * )
----
-423

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

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL - + COUNT ( DISTINCT 5 ) AS col1
----
-1

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

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

query I rowsort
SELECT ALL - - 85 + - 4 + + 17 AS col0
----
98

query I rowsort
SELECT ALL + - 22 + - ( + + 90 ) AS col0
----
-112

query I rowsort
SELECT ALL 70 * - 96 AS col2
----
-6720

query I rowsort
SELECT DISTINCT 5 * + - 56 AS col2
----
-280

query II rowsort
SELECT - 38 AS col2, 69 * + 43 * 39
----
-38
115713

query I rowsort
SELECT 75 * - 76
----
-5700

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

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

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

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

query I rowsort
SELECT ALL - 6 * + 46 * + - ( + + 34 )
----
9384

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT 91 + COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-1237
SELECT 91 + COUNT ( * ) AS col0
----
92

query I rowsort
SELECT DISTINCT 98 - + 51 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT DISTINCT NULLIF ( - 27, - CASE + ( + 37 ) WHEN 63 / - - MIN( + + 22 ) * + 47 THEN - 60 END - - + 0 * 0 * - - 11 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-1239
SELECT DISTINCT NULLIF ( - 27, - CASE + ( + 37 ) WHEN 63 / - - MIN ( + + 22 ) * + 47 THEN - 60 END - - + 0 * 0 * - - 11 ) AS col2
----
-27

query I rowsort
SELECT ALL CASE - 0 WHEN - 32 THEN NULL ELSE - 74 END AS col0
----
-74

query I rowsort
SELECT ALL 33 - + + 56
----
-23

query II rowsort
SELECT DISTINCT 63 col2, 94 - - 40 - - 32 * - 73 * - 25 AS col1
----
63
58534

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1243
SELECT 16 + 22 + - COUNT( * ) + - - COUNT( * ) DIV - 88 * 87 * + + 22 * - + 46 * 98 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-1243
SELECT 16 + 22 + - COUNT ( * ) + - - COUNT ( * ) / - 88 * 87 * + + 22 * - + 46 * 98 AS col1
----
37

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

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT 62 - + COUNT ( * ) * 81 AS col0
----
-19

query I rowsort
SELECT + 32 + + 9 AS col2
----
41

query I rowsort
SELECT ALL 97 * ( - - 89 )
----
8633

query I rowsort
SELECT + 2 * 27 col2
----
54

query II rowsort
SELECT 95 AS col1, + 52
----
95
52

query I rowsort
SELECT DISTINCT + 91 * + - 29
----
-2639

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1250
SELECT + 56 * + CAST( + COUNT( * ) AS DECIMAL ) + - CASE 74 WHEN + 44 * - - 8 THEN NULL WHEN + - COUNT( * ) THEN 75 + - - 80 * + + 3 / - ( - 23 ) + + - 64 WHEN 33 THEN + 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1250
SELECT + 56 * + CAST ( + COUNT ( * ) AS REAL ) + - CASE 74 WHEN + 44 * - - 8 THEN NULL WHEN + - COUNT ( * ) THEN 75 + - - 80 * + + 3 / - ( - 23 ) + + - 64 WHEN 33 THEN + 2 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1251
SELECT - + COUNT( * ) AS col2, + 96 * - - 70
----
-1
6720

skipif mysql # not compatible
query II rowsort label-1251
SELECT - + COUNT ( * ) AS col2, + 96 * - - 70
----
-1
6720

query I rowsort
SELECT DISTINCT + 47 * + 13
----
611

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1254
SELECT ALL - - CASE + COUNT( * ) WHEN 19 + + 7 + + COUNT( * ) THEN - 16 WHEN 42 THEN 11 * + 34 * - 18 WHEN - - 36 * ( - 75 ) THEN NULL ELSE NULL END * + - 33 + - CAST( - + 68 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1254
SELECT ALL - - CASE + COUNT ( * ) WHEN 19 + + 7 + + COUNT ( * ) THEN - 16 WHEN 42 THEN 11 * + 34 * - 18 WHEN - - 36 * ( - 75 ) THEN NULL ELSE NULL END * + - 33 + - CAST ( - + 68 AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1256
SELECT - + 53 DIV - - 28 + + 41
----
40

skipif mysql # not compatible
query I rowsort label-1256
SELECT - + 53 / - - 28 + + 41
----
40

query I rowsort
SELECT + 58 - 64
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT + 72 * + MIN( - + 57 )
----
-4104

skipif mysql # not compatible
query I rowsort label-1258
SELECT + 72 * + MIN ( - + 57 )
----
-4104

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT + COUNT( DISTINCT - 59 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1259
SELECT + COUNT ( DISTINCT - 59 ) col2
----
1

query II rowsort
SELECT DISTINCT - 39 * + + 73 + - 47, 82 + + 94 AS col0
----
-2894
176

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT ALL - ( - 74 ) * + + ( + 79 ) + - 90 - + ( - COUNT( * ) ) + 35 * - 67 * + 64
----
-144323

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL - ( - 74 ) * + + ( + 79 ) + - 90 - + ( - COUNT ( * ) ) + 35 * - 67 * + 64
----
-144323

query I rowsort
SELECT DISTINCT - 23 * 88 + + 72
----
-1952

query I rowsort
SELECT ALL + 53 * + 33 + 36 + 50 AS col1
----
1835

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT NULLIF ( - COUNT( * ), - 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-1264
SELECT NULLIF ( - COUNT ( * ), - 53 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL 62 * - MIN( DISTINCT + 76 ) + + ( + 8 ) AS col2
----
-4704

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL 62 * - MIN ( DISTINCT + 76 ) + + ( + 8 ) AS col2
----
-4704

query I rowsort
SELECT + 99 + - 21 + 6
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1267
SELECT - COUNT( * ) * + 53 AS col1, 36 DIV - ( - 16 )
----
-53
2

skipif mysql # not compatible
query II rowsort label-1267
SELECT - COUNT ( * ) * + 53 AS col1, 36 / - ( - 16 )
----
-53
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT - ( + + COUNT( 49 ) ) + + 83 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-1268
SELECT - ( + + COUNT ( 49 ) ) + + 83 AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-1269
SELECT DISTINCT MAX( 25 ), 20 + - 60 - + 85 * + - 30 col2
----
25
2510

skipif mysql # not compatible
query II rowsort label-1269
SELECT DISTINCT MAX ( 25 ), 20 + - 60 - + 85 * + - 30 col2
----
25
2510

query I rowsort
SELECT + 24 * - ( - 23 ) + - 41
----
511

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

query I rowsort
SELECT DISTINCT + 20 * 35
----
700

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1273
SELECT ALL + 48 / + CASE + 1 WHEN + + CAST( NULL AS DECIMAL ) * - 90 * - + 11 THEN 17 END * - NULLIF ( 50, + 42 - 43 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL + 48 / + CASE + 1 WHEN + + CAST ( NULL AS REAL ) * - 90 * - + 11 THEN 17 END * - NULLIF ( 50, + 42 - 43 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 18, + 89 * - 5 + - + 12 )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-1275
SELECT DISTINCT + COUNT( * ) * + 63 AS col2, + 87 AS col1
----
63
87

skipif mysql # not compatible
query II rowsort label-1275
SELECT DISTINCT + COUNT ( * ) * + 63 AS col2, + 87 AS col1
----
63
87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT ALL + ( - + COUNT( * ) ) * - 43 * - + COUNT( * ) * 7 * + + 78
----
-23478

skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL + ( - + COUNT ( * ) ) * - 43 * - + COUNT ( * ) * 7 * + + 78
----
-23478

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1278
SELECT - 3 DIV - COUNT( * ) AS col2, 35
----
3
35

skipif mysql # not compatible
query II rowsort label-1278
SELECT - 3 / - COUNT ( * ) AS col2, 35
----
3
35

query II rowsort
SELECT - 26 + 8, - 94 * - 72 AS col2
----
-18
6768

query I rowsort
SELECT DISTINCT - + 69 * + 62
----
-4278

query I rowsort
SELECT + - 23 * 99 col2
----
-2277

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT ALL - 18 + - ( SUM( + - 19 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL - 18 + - ( SUM ( + - 19 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1283
SELECT DISTINCT + + 56 + - - COUNT( * ) * + NULLIF ( + 70, - - 39 DIV + 52 + - + 87 - 8 ) DIV MIN( ALL - 73 ) col0
----
56

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT + + 56 + - - COUNT ( * ) * + NULLIF ( + 70, - - 39 / + 52 + - + 87 - 8 ) / MIN ( ALL - 73 ) col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1284
SELECT DISTINCT COUNT( * ) * + + 72 DIV 29 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT COUNT ( * ) * + + 72 / 29 AS col0
----
2

query I rowsort
SELECT ALL - 37 + - 39 + - 80
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT + 76 - 64 + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-1286
SELECT + 76 - 64 + COUNT ( * )
----
13

query I rowsort
SELECT ALL 46 + + + 21 AS col0
----
67

query II rowsort
SELECT - + 63 + - 13 AS col0, 10
----
-76
10

query II rowsort
SELECT + 90 * - 7 * + ( + + ( + NULLIF ( - + 84, + + 4 ) ) ), - ( + 25 ) + + - 77 AS col0
----
52920
-102

query I rowsort
SELECT DISTINCT - 35 * + 33
----
-1155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1291
SELECT ALL NULLIF ( + 68, - 10 ) DIV + ( 22 ) * COUNT( * ) + + 37 + - 97 * - - 57 * - 12
----
66388

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL NULLIF ( + 68, - 10 ) / + ( 22 ) * COUNT ( * ) + + 37 + - 97 * - - 57 * - 12
----
66388

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1292
SELECT ALL + 28 DIV - 40 + - MIN( + + 53 ) - + 46 * - - COUNT( * ) + + 37 AS col2, + 64
----
-62
64

skipif mysql # not compatible
query II rowsort label-1292
SELECT ALL + 28 / - 40 + - MIN ( + + 53 ) - + 46 * - - COUNT ( * ) + + 37 AS col2, + 64
----
-62
64

query I rowsort
SELECT + 56 + 97 * - 20
----
-1884

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1295
SELECT ALL + 99 DIV + 67 + + ( 25 )
----
26

skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL + 99 / + 67 + + ( 25 )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-1296
SELECT DISTINCT + 19 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT + 19 / 77
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1297
SELECT DISTINCT 1 DIV + 90 - + 33 - + + 23 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT 1 / + 90 - + 33 - + + 23 AS col2
----
-56

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

skipif mysql # not compatible
query I rowsort label-1298
SELECT + CAST ( NULL AS INTEGER ) + 5 + - - ( 79 )
----
NULL

query I rowsort
SELECT - 22 * - 34
----
748

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

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

query I rowsort
SELECT ( - - 2 ) AS col0
----
2

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

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

query I rowsort
SELECT ( - 73 ) AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1304
SELECT ( + + CASE - 47 WHEN - CAST( NULL AS SIGNED ) * + + COUNT( * ) - AVG ( - - 13 ) + 46 * - - 3 THEN - 82 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1304
SELECT ( + + CASE - 47 WHEN - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) - AVG ( - - 13 ) + 46 * - - 3 THEN - 82 END )
----
NULL

query II rowsort
SELECT DISTINCT + 26 AS col2, + 48 * - 55 AS col2
----
26
-2640

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT + 63 * COUNT( 29 )
----
63

skipif mysql # not compatible
query I rowsort label-1307
SELECT + 63 * COUNT ( 29 )
----
63

query I rowsort
SELECT DISTINCT 86 * - 50 AS col0
----
-4300

query I rowsort
SELECT - 56 + + 62
----
6

query I rowsort
SELECT ALL + 43 * + NULLIF ( - + 81, + 0 )
----
-3483

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT - 38 * - 98 * + - MIN( + 80 ) + - + MIN( - - 45 )
----
-297965

skipif mysql # not compatible
query I rowsort label-1311
SELECT - 38 * - 98 * + - MIN ( + 80 ) + - + MIN ( - - 45 )
----
-297965

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1312
SELECT 16 + - 73 DIV + COALESCE ( + 65, 65 ) + + 91 + + - COUNT( * ) - - 17 + - COUNT( * ) + + 78 * + - 18 * 16 + + 39 + + - 67
----
-22371

skipif mysql # not compatible
query I rowsort label-1312
SELECT 16 + - 73 / + COALESCE ( + 65, 65 ) + + 91 + + - COUNT ( * ) - - 17 + - COUNT ( * ) + + 78 * + - 18 * 16 + + 39 + + - 67
----
-22371

query I rowsort
SELECT 19 - 34
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1314
SELECT ALL - CASE 74 WHEN + 74 THEN - CASE - 83 WHEN 67 THEN + 50 ELSE 93 + ( COUNT( * ) ) END + + 60 END + - 88 DIV + ( 70 ) col2
----
33

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL - CASE 74 WHEN + 74 THEN - CASE - 83 WHEN 67 THEN + 50 ELSE 93 + ( COUNT ( * ) ) END + + 60 END + - 88 / + ( 70 ) col2
----
33

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

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

query I rowsort
SELECT DISTINCT - 54 + 16
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT ALL 37 + - ( - CASE 45 WHEN 95 * - SUM( ALL - ( 39 ) ) + - 52 THEN 53 * 73 + CASE 46 WHEN + 23 THEN - 97 / + 60 ELSE NULL END WHEN 13 * 83 THEN 98 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL 37 + - ( - CASE 45 WHEN 95 * - SUM ( ALL - ( 39 ) ) + - 52 THEN 53 * 73 + CASE 46 WHEN + 23 THEN - 97 / + 60 ELSE NULL END WHEN 13 * 83 THEN 98 END ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL - COUNT ( * ) + + 14 * COUNT ( * ) AS col1
----
13

query I rowsort
SELECT ALL + 81 * 34 AS col1
----
2754

query I rowsort
SELECT DISTINCT - ( 68 ) + - 44
----
-112

query I rowsort
SELECT 31 * 47 AS col2
----
1457

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT DISTINCT + 54 + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT + 54 + COUNT ( * )
----
55

query I rowsort
SELECT 44 * - 58
----
-2552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1325
SELECT 50 DIV - MIN( 51 )
----
0

skipif mysql # not compatible
query I rowsort label-1325
SELECT 50 / - MIN ( 51 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1326
SELECT ALL 95 DIV ( - 47 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL 95 / ( - 47 ) col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1327
SELECT ALL + ( CASE CAST( + 83 AS SIGNED ) WHEN - 45 THEN 32 END ) + 20 * + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL + ( CASE CAST ( + 83 AS INTEGER ) WHEN - 45 THEN 32 END ) + 20 * + 69 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT MAX( 6 ) * COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1329
SELECT MAX ( 6 ) * COUNT ( * ) AS col0
----
6

query I rowsort
SELECT ALL + 74 - CASE + 12 - + 17 * - 92 WHEN COALESCE ( ( + 36 ), - 64 ) THEN + 56 END
----
NULL

query I rowsort
SELECT 56 * 54
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT ALL MIN( ALL + 41 ) * 31 AS col0
----
1271

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL MIN ( ALL + 41 ) * 31 AS col0
----
1271

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT + 66 * - 15 - 55 * - COUNT( * )
----
-935

skipif mysql # not compatible
query I rowsort label-1333
SELECT + 66 * - 15 - 55 * - COUNT ( * )
----
-935

query I rowsort
SELECT ( - 37 ) * 5 col0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT ALL + 47 * + MAX( 66 )
----
3102

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL + 47 * + MAX ( 66 )
----
3102

query I rowsort
SELECT ( + 8 ) * 11
----
88

query I rowsort
SELECT + 15 * - 48 + + 58
----
-662

query I rowsort
SELECT - 28 * + 40 - - 82
----
-1038

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

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

query I rowsort
SELECT 26 * 23 AS col0
----
598

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1341
SELECT NULLIF ( 84, CAST( - COUNT( * ) AS DECIMAL ) * COUNT( * ) + 20 / - 26 ) * - 44 col2
----
-3696

skipif mysql # not compatible
query I rowsort label-1341
SELECT NULLIF ( 84, CAST ( - COUNT ( * ) AS REAL ) * COUNT ( * ) + 20 / - 26 ) * - 44 col2
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT ALL COUNT( * ) + 57 * - 1
----
-56

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL COUNT ( * ) + 57 * - 1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT ALL 74 + COUNT( * ) * 22 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL 74 + COUNT ( * ) * 22 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT 9 + COUNT( * ) * + 22 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1344
SELECT 9 + COUNT ( * ) * + 22 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT DISTINCT COUNT( * ) + CASE WHEN ( NULL ) IS NOT NULL THEN - 13 WHEN 30 < NULL THEN 53 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT COUNT ( * ) + CASE WHEN ( NULL ) IS NOT NULL THEN - 13 WHEN 30 < NULL THEN 53 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL ( 43 ) * - ( 7 + 81 )
----
-3784

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT ALL 38 + + ( + 80 + ( + 29 + - 24 ) ) DIV 64 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL 38 + + ( + 80 + ( + 29 + - 24 ) ) / 64 AS col2
----
39

query I rowsort
SELECT DISTINCT + 94 * + 29 AS col1
----
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL - 40 + COALESCE ( + 69, - COUNT( * ) * - 27, 82 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL - 40 + COALESCE ( + 69, - COUNT ( * ) * - 27, 82 ) AS col1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1350
SELECT ALL + + 68 + + CAST( 59 AS SIGNED )
----
127

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL + + 68 + + CAST ( 59 AS INTEGER )
----
127

query I rowsort
SELECT ALL 5 * 56 AS col0
----
280

query I rowsort
SELECT - 75 + - ( - 56 - 31 ) * - 41 AS col1
----
-3642

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT 31 * MAX( 84 + + 1 ) AS col1
----
2635

skipif mysql # not compatible
query I rowsort label-1353
SELECT 31 * MAX ( 84 + + 1 ) AS col1
----
2635

query I rowsort
SELECT - 49 + + 34
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT DISTINCT 23 * - ( MAX( 21 ) - - 70 * NULLIF ( 28, - 39 * + 95 ) )
----
-45563

skipif mysql # not compatible
query I rowsort label-1355
SELECT DISTINCT 23 * - ( MAX ( 21 ) - - 70 * NULLIF ( 28, - 39 * + 95 ) )
----
-45563

query I rowsort
SELECT ALL + 35 + 89 AS col0
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1357
SELECT NULLIF ( 46, 78 ) - COUNT( * ) DIV + 13 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1357
SELECT NULLIF ( 46, 78 ) - COUNT ( * ) / + 13 AS col0
----
46

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

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT - COUNT ( * ) + - 10 AS col2
----
-11

query I rowsort
SELECT DISTINCT ( + 45 ) AS col1
----
45

query I rowsort
SELECT DISTINCT + 16 - 77 * 65 AS col2
----
-4989

query I rowsort
SELECT DISTINCT - 52 * NULLIF ( 97 + 11 * + 52, + 80 ) AS col2
----
-34788

query I rowsort
SELECT 80 - + 20 * - 50
----
1080

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

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL - - 84 / - COUNT ( * ) AS col2
----
-84

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

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

query I rowsort
SELECT 13 * 55 AS col0
----
715

query I rowsort
SELECT DISTINCT - 92 * 55 AS col1
----
-5060

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1367
SELECT + ( 83 ) * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1367
SELECT + ( 83 ) * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1368
SELECT ALL - CAST( - 3 AS SIGNED ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL - CAST ( - 3 AS INTEGER ) AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT 53 DIV - 68 + ( - ( 69 ) - + 4 * 20 ) AS col0
----
-149

skipif mysql # not compatible
query I rowsort label-1369
SELECT 53 / - 68 + ( - ( 69 ) - + 4 * 20 ) AS col0
----
-149

query I rowsort
SELECT DISTINCT - 33 * 97 AS col0
----
-3201

query I rowsort
SELECT 91 * - - 61 * 34 col2
----
188734

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT CASE - - 61 WHEN SUM( - 5 ) THEN 99 END * - 98 + - 26 * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1372
SELECT CASE - - 61 WHEN SUM ( - 5 ) THEN 99 END * - 98 + - 26 * 29
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1373
SELECT + 74 / 74 + - CAST( NULL AS SIGNED ) * + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT + 74 / 74 + - CAST ( NULL AS INTEGER ) * + 15 AS col1
----
NULL

query I rowsort
SELECT + 16 + 99
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT + 92 + + MAX( 85 ) AS col1
----
177

skipif mysql # not compatible
query I rowsort label-1375
SELECT + 92 + + MAX ( 85 ) AS col1
----
177

query I rowsort
SELECT ALL + ( - + 85 ) * 41 AS col0
----
-3485

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

skipif mysql # not compatible
query I rowsort label-1377
SELECT - ( ( 11 ) ) * CAST ( NULL AS INTEGER ) + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT ALL + MIN( + 5 ) * SUM( DISTINCT 38 + - 49 ) + + 20 * 78 AS col2
----
1505

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL + MIN ( + 5 ) * SUM ( DISTINCT 38 + - 49 ) + + 20 * 78 AS col2
----
1505

query I rowsort
SELECT DISTINCT 33 * - - 95 AS col2
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT DISTINCT - COUNT( * ) * - 45 * 83 + 46 * SUM( - 50 + - 82 )
----
-2337

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT - COUNT ( * ) * - 45 * 83 + 46 * SUM ( - 50 + - 82 )
----
-2337

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

skipif mysql # not compatible
query I rowsort label-1381
SELECT + MAX ( 28 )
----
28

query I rowsort
SELECT ALL - 80 * 31 + + 32
----
-2448

query I rowsort
SELECT ALL 67 * 51 + - 4 AS col1
----
3413

query I rowsort
SELECT ALL 20 + - 84 AS col2
----
-64

query I rowsort
SELECT DISTINCT ( + 73 ) + + 63 col2
----
136

query I rowsort
SELECT + 7 * + 13 + - 80 * 21
----
-1589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1387
SELECT ALL + 81 + + 82 - 12 * + MIN( + 81 DIV + 85 ) AS col2
----
163

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL + 81 + + 82 - 12 * + MIN ( + 81 / + 85 ) AS col2
----
163

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

skipif mysql # not compatible
query I rowsort label-1388
SELECT + CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 95 + - 65 AS col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1390
SELECT DISTINCT 35 DIV + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT 35 / + 67 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1391
SELECT DISTINCT + COUNT( * ) DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT DISTINCT + COUNT ( * ) / + 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT ALL 53 * + COALESCE ( ( 30 ), + 27 + 41 ) * + MAX( 73 + ( ( 71 ) ) ) AS col0
----
228960

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL 53 * + COALESCE ( ( 30 ), + 27 + 41 ) * + MAX ( 73 + ( ( 71 ) ) ) AS col0
----
228960

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT - NULLIF ( + - 71, 19 * ( CASE 48 WHEN 39 / SUM( ALL 73 * 75 ) + - ( - 76 ) THEN NULL WHEN 12 THEN + 69 ELSE NULL END ) )
----
71

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT - NULLIF ( + - 71, 19 * ( CASE 48 WHEN 39 / SUM ( ALL 73 * 75 ) + - ( - 76 ) THEN NULL WHEN 12 THEN + 69 ELSE NULL END ) )
----
71

query I rowsort
SELECT ALL + - 23 * - 83
----
1909

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT + + 18 + - MAX( + 86 )
----
-68

skipif mysql # not compatible
query I rowsort label-1395
SELECT + + 18 + - MAX ( + 86 )
----
-68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT + - NULLIF ( - ( 49 ), 39 * - 90 ) + + COUNT( * ) * 10
----
59

skipif mysql # not compatible
query I rowsort label-1397
SELECT + - NULLIF ( - ( 49 ), 39 * - 90 ) + + COUNT ( * ) * 10
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT - + MIN( + 32 ) + - 12 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-1398
SELECT - + MIN ( + 32 ) + - 12 AS col0
----
-44

query I rowsort
SELECT ALL 42 * - 18 * 60 + 10 * - 13
----
-45490

query I rowsort
SELECT - 94 + ( 63 ) + 63 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT DISTINCT SUM( DISTINCT - 34 ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-1401
SELECT DISTINCT SUM ( DISTINCT - 34 ) col1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT DISTINCT - ( - - ( 84 ) ) DIV + 14 col0
----
-6

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT - ( - - ( 84 ) ) / + 14 col0
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT ALL - 84 * - + SUM( - - 74 ) col1
----
6216

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL - 84 * - + SUM ( - - 74 ) col1
----
6216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1405
SELECT + 70 DIV - + 49 + + + 66 * - COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1405
SELECT + 70 / - + 49 + + + 66 * - COUNT ( * ) AS col0
----
-67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT - 92 * + COALESCE ( - 95, COUNT( ALL 72 ), COALESCE ( - 19, 32 + 95 ) * + 63 ) AS col2
----
8740

skipif mysql # not compatible
query I rowsort label-1407
SELECT - 92 * + COALESCE ( - 95, COUNT ( ALL 72 ), COALESCE ( - 19, 32 + 95 ) * + 63 ) AS col2
----
8740

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT - MIN( ALL - - 60 ) * 65 - 31 AS col2
----
-3931

skipif mysql # not compatible
query I rowsort label-1409
SELECT - MIN ( ALL - - 60 ) * 65 - 31 AS col2
----
-3931

query I rowsort
SELECT - ( + + 7 ) * 66 - - 55 * ( - 19 - + 52 ) AS col1
----
-4367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1411
SELECT ALL + CAST( + - 39 AS SIGNED ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL + CAST ( + - 39 AS INTEGER ) AS col1
----
-39

query I rowsort
SELECT ALL + 63 * + ( + 25 ) + 5 AS col1
----
1580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1413
SELECT - 26 * - COALESCE ( - 33, 31 * CASE + CASE - 39 WHEN MAX( DISTINCT 72 ) THEN + 20 / 94 END WHEN 61 * - CAST( NULL AS SIGNED ) THEN + 45 * + NULLIF ( + 86 * - 82, + 57 * ( 72 ) + + 23 ) ELSE NULL END, 88 + + 3 * 98 ) * COUNT( * ) - 48 col0
----
-906

skipif mysql # not compatible
query I rowsort label-1413
SELECT - 26 * - COALESCE ( - 33, 31 * CASE + CASE - 39 WHEN MAX ( DISTINCT 72 ) THEN + 20 / 94 END WHEN 61 * - CAST ( NULL AS INTEGER ) THEN + 45 * + NULLIF ( + 86 * - 82, + 57 * ( 72 ) + + 23 ) ELSE NULL END, 88 + + 3 * 98 ) * COUNT ( * ) - 48 col0
----
-906

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT ALL + MIN( + 88 ) * - + 78 + + COUNT( * )
----
-6863

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL + MIN ( + 88 ) * - + 78 + + COUNT ( * )
----
-6863

query I rowsort
SELECT - 33 * - ( + - COALESCE ( - 17, + 11 ) ) * 70 AS col1
----
39270

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT ALL - NULLIF ( 67, 64 ) * - CASE - 90 WHEN 98 + MIN( + 71 ) THEN - MIN( ALL 83 ) * ( 64 + 49 ) END + - 65 * 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL - NULLIF ( 67, 64 ) * - CASE - 90 WHEN 98 + MIN ( + 71 ) THEN - MIN ( ALL 83 ) * ( 64 + 49 ) END + - 65 * 68 AS col1
----
NULL

query I rowsort
SELECT ALL 63 * + 87 + + 80
----
5561

query II rowsort
SELECT DISTINCT + 83 col1, 23 * ( 31 )
----
83
713

query I rowsort
SELECT 58 * - 21 + + + 28 AS col2
----
-1190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1420
SELECT CASE - 52 WHEN + 9 THEN NULL ELSE 21 + + COUNT( * ) DIV - COUNT( * ) END AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1420
SELECT CASE - 52 WHEN + 9 THEN NULL ELSE 21 + + COUNT ( * ) / - COUNT ( * ) END AS col1
----
20

query I rowsort
SELECT + CASE - + 27 WHEN - 71 THEN - AVG ( DISTINCT - 47 ) END * + 88 - - NULLIF ( 19, + 12 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1422
SELECT ALL + 91 * 43 * - - CASE - 37 WHEN SUM( 59 ) * 49 + - CAST( NULL AS SIGNED ) THEN 76 END + COUNT( * ) - 31 * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL + 91 * 43 * - - CASE - 37 WHEN SUM ( 59 ) * 49 + - CAST ( NULL AS INTEGER ) THEN 76 END + COUNT ( * ) - 31 * 4
----
NULL

query II rowsort
SELECT 50 AS col2, 86 - - - 12
----
50
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT - CASE - 36 WHEN - 89 + 89 THEN NULL WHEN - 57 THEN NULL ELSE MIN( DISTINCT + 81 ) END + + 7 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-1424
SELECT - CASE - 36 WHEN - 89 + 89 THEN NULL WHEN - 57 THEN NULL ELSE MIN ( DISTINCT + 81 ) END + + 7 AS col2
----
-74

query I rowsort
SELECT ALL 23 * + 98 * + - 61 col2
----
-137494

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1426
SELECT ALL - 7 DIV + + SUM( + 89 ) * 9 + - 93 * + 15
----
-1395

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL - 7 / + + SUM ( + 89 ) * 9 + - 93 * + 15
----
-1395

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1427
SELECT ALL 4, - ( + - CAST( NULL AS SIGNED ) ) + 18 col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-1427
SELECT ALL 4, - ( + - CAST ( NULL AS INTEGER ) ) + 18 col1
----
4
NULL

query I rowsort
SELECT + - 63 * + 62
----
-3906

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT ALL - 58 * + COUNT( * ) * 10 AS col2
----
-580

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL - 58 * + COUNT ( * ) * 10 AS col2
----
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT + - COUNT( * ) + - - 12
----
11

skipif mysql # not compatible
query I rowsort label-1430
SELECT + - COUNT ( * ) + - - 12
----
11

query I rowsort
SELECT - 86 * 81 * + 51 col0
----
-355266

query I rowsort
SELECT + 56 * - + 10 AS col2
----
-560

query I rowsort
SELECT - ( + - 64 ) - - 52 AS col2
----
116

query I rowsort
SELECT + 9 + - 21 AS col2
----
-12

query I rowsort
SELECT - COALESCE ( + - 19, + 99 ) AS col0
----
19

query I rowsort
SELECT ALL 53 * 78
----
4134

query I rowsort
SELECT + + 37 + 4 AS col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1438
SELECT ALL + - COUNT( * ) DIV - + 83 + + 81 + + 97 DIV + MIN( 27 + 91 * + 95 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL + - COUNT ( * ) / - + 83 + + 81 + + 97 / + MIN ( 27 + 91 * + 95 ) AS col1
----
81

query I rowsort
SELECT + - 62 + - 64
----
-126

query I rowsort
SELECT ALL - 51 * 49 AS col0
----
-2499

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1441
SELECT ALL COUNT( * ) + - NULLIF ( + 89, + + 59 ) DIV - 65
----
2

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL COUNT ( * ) + - NULLIF ( + 89, + + 59 ) / - 65
----
2

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

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

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

query I rowsort
SELECT 19 + - 74 + - 70 AS col2
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT ( - 71 ) + - - COUNT( * ) * CASE + 89 WHEN 48 THEN - 67 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1445
SELECT ( - 71 ) + - - COUNT ( * ) * CASE + 89 WHEN 48 THEN - 67 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1446
SELECT 39 * - 51 * + CAST( 71 AS SIGNED )
----
-141219

skipif mysql # not compatible
query I rowsort label-1446
SELECT 39 * - 51 * + CAST ( 71 AS INTEGER )
----
-141219

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT COUNT( * ) + - 45 * ( COUNT( DISTINCT + ( + 16 ) ) )
----
-44

skipif mysql # not compatible
query I rowsort label-1447
SELECT COUNT ( * ) + - 45 * ( COUNT ( DISTINCT + ( + 16 ) ) )
----
-44

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1449
SELECT ALL CASE - COUNT( * ) WHEN - + CAST( - 65 AS SIGNED ) THEN NULL WHEN + 34 - + 15 THEN + 87 END + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL CASE - COUNT ( * ) WHEN - + CAST ( - 65 AS INTEGER ) THEN NULL WHEN + 34 - + 15 THEN + 87 END + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1450
SELECT 26 * + + COUNT( * ) * - 63 DIV - CASE COUNT( * ) WHEN COUNT( - 33 ) - - MIN( + 8 ) THEN NULL ELSE 31 END + 93 * + 48 col2
----
4516

skipif mysql # not compatible
query I rowsort label-1450
SELECT 26 * + + COUNT ( * ) * - 63 / - CASE COUNT ( * ) WHEN COUNT ( - 33 ) - - MIN ( + 8 ) THEN NULL ELSE 31 END + 93 * + 48 col2
----
4516

query I rowsort
SELECT 35 * - 71 * + 47 col1
----
-116795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1452
SELECT 54 DIV MIN( ALL 39 ) DIV + 50 + COALESCE ( COUNT( * ), 92 ) + 10
----
11

skipif mysql # not compatible
query I rowsort label-1452
SELECT 54 / MIN ( ALL 39 ) / + 50 + COALESCE ( COUNT ( * ), 92 ) + 10
----
11

query I rowsort
SELECT ALL + 54 * 29 AS col1
----
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT NULLIF ( 86, + + NULLIF ( 3, 19 * - 44 + + 48 * + COUNT( * ) ) / 22 + + 32 ) * - 8 AS col2
----
-688

skipif mysql # not compatible
query I rowsort label-1454
SELECT NULLIF ( 86, + + NULLIF ( 3, 19 * - 44 + + 48 * + COUNT ( * ) ) / 22 + + 32 ) * - 8 AS col2
----
-688

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT NULLIF ( - - 77, - - COUNT( * ) * + 14 + + 80 ) * MAX( ( 69 ) ) + + NULLIF ( - 34, + CASE - 44 WHEN 12 THEN NULL WHEN - 79 THEN NULL ELSE COALESCE ( - ( - COUNT( * ) ), 51 ) END / - AVG ( + 24 ) ) AS col2
----
5279

skipif mysql # not compatible
query I rowsort label-1455
SELECT NULLIF ( - - 77, - - COUNT ( * ) * + 14 + + 80 ) * MAX ( ( 69 ) ) + + NULLIF ( - 34, + CASE - 44 WHEN 12 THEN NULL WHEN - 79 THEN NULL ELSE COALESCE ( - ( - COUNT ( * ) ), 51 ) END / - AVG ( + 24 ) ) AS col2
----
5279

onlyif mysql # aggregate syntax: 
query II rowsort label-1456
SELECT ALL - 81 * - + 97, COUNT( 64 ) AS col0
----
7857
1

skipif mysql # not compatible
query II rowsort label-1456
SELECT ALL - 81 * - + 97, COUNT ( 64 ) AS col0
----
7857
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1457
SELECT + + 1 * - ( + 53 ) * + 2 * + 63 + - 5 * CASE - 54 + + CAST( NULL AS SIGNED ) WHEN 33 THEN - 25 ELSE - 30 * 9 + + 73 END
----
-5693

skipif mysql # not compatible
query I rowsort label-1457
SELECT + + 1 * - ( + 53 ) * + 2 * + 63 + - 5 * CASE - 54 + + CAST ( NULL AS INTEGER ) WHEN 33 THEN - 25 ELSE - 30 * 9 + + 73 END
----
-5693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1458
SELECT ALL + 78 - 61 - - COUNT( * ) * + 43 * ( 41 DIV - COALESCE ( COUNT( * ), - 91 ) )
----
-1746

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL + 78 - 61 - - COUNT ( * ) * + 43 * ( 41 / - COALESCE ( COUNT ( * ), - 91 ) )
----
-1746

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1459
SELECT ALL + - MIN( ALL 1 ) - - 8 + 38 / - CASE 94 * - 97 WHEN + 2 THEN 34 ELSE 61 END / + SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL + - MIN ( ALL 1 ) - - 8 + 38 / - CASE 94 * - 97 WHEN + 2 THEN 34 ELSE 61 END / + SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT + COUNT( * ) / + - CASE + - 22 WHEN + 22 THEN - 74 END - COALESCE ( COUNT( * ), 18 ) * 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1460
SELECT + COUNT ( * ) / + - CASE + - 22 WHEN + 22 THEN - 74 END - COALESCE ( COUNT ( * ), 18 ) * 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT + - 0 * - COUNT( * ) + MIN( ALL CASE 70 WHEN 53 THEN 35 * + 35 ELSE 80 END ) + + ( + ( + 38 ) + 78 )
----
196

skipif mysql # not compatible
query I rowsort label-1461
SELECT + - 0 * - COUNT ( * ) + MIN ( ALL CASE 70 WHEN 53 THEN 35 * + 35 ELSE 80 END ) + + ( + ( + 38 ) + 78 )
----
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1462
SELECT - CAST( 99 AS SIGNED ) * + - ( + - 57 ) - 17
----
-5660

skipif mysql # not compatible
query I rowsort label-1462
SELECT - CAST ( 99 AS INTEGER ) * + - ( + - 57 ) - 17
----
-5660

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

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

query I rowsort
SELECT ALL + - 98 * + - 84
----
8232

query I rowsort
SELECT ALL 60 + + 56 * - CASE + NULLIF ( - 43, 57 ) WHEN - 31 THEN NULL ELSE ( - CASE - ( - 71 ) WHEN - 68 / 29 THEN NULL ELSE - 59 END ) * + 40 END * CASE + ( 24 ) * 19 WHEN + 81 * + 18 THEN - 88 ELSE 57 * - 5 END
----
37665660

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

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

query I rowsort
SELECT ALL + 84 + - 99
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT 19 * + - COUNT( * ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-1468
SELECT 19 * + - COUNT ( * ) col1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-1469
SELECT DISTINCT + 67 DIV - 11
----
-6

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT + 67 / - 11
----
-6

query I rowsort
SELECT ( - 41 ) * + 25
----
-1025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1471
SELECT ALL 47 AS col0, + CAST( NULL AS SIGNED ) col1
----
47
NULL

skipif mysql # not compatible
query II rowsort label-1471
SELECT ALL 47 AS col0, + CAST ( NULL AS INTEGER ) col1
----
47
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1472
SELECT DISTINCT CAST( + ( + - 51 ) AS SIGNED ) - - + ( - ( 95 ) ) col2
----
-146

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT CAST ( + ( + - 51 ) AS INTEGER ) - - + ( - ( 95 ) ) col2
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-1473
SELECT 18 + - - 70 DIV 35 + - 0
----
20

skipif mysql # not compatible
query I rowsort label-1473
SELECT 18 + - - 70 / 35 + - 0
----
20

query I rowsort
SELECT ALL - 82 * + 68 * + 25 - + 79 * + 54 + 34 * 30 AS col1
----
-142646

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT DISTINCT CASE + 76 WHEN ( 78 ) THEN - 80 WHEN + COUNT( * ) * + 39 + + 95 THEN + COUNT( * ) - - 16 END * - MIN( + 44 * 84 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT CASE + 76 WHEN ( 78 ) THEN - 80 WHEN + COUNT ( * ) * + 39 + + 95 THEN + COUNT ( * ) - - 16 END * - MIN ( + 44 * 84 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT MIN( + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-1476
SELECT MIN ( + 30 )
----
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT COUNT( * ) * - - 79 col0
----
79

skipif mysql # not compatible
query I rowsort label-1478
SELECT COUNT ( * ) * - - 79 col0
----
79

query I rowsort
SELECT ( - 47 ) * 9 + - - 7 + 62 * 23 * + 52
----
73736

query I rowsort
SELECT DISTINCT + 69 * + 9 AS col1
----
621

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

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

query I rowsort
SELECT + 41 * - ( - ( 95 ) ) AS col1
----
3895

query I rowsort
SELECT + - ( 3 ) * 19 + + 5 AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1484
SELECT 93 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-1484
SELECT 93 / 99
----
0

query I rowsort
SELECT ALL + 75 + + - 84
----
-9

query I rowsort
SELECT - 78 * - 9
----
702

onlyif mysql # aggregate syntax: 
query II rowsort label-1487
SELECT DISTINCT 47 * - ( + - 35 ) AS col2, 13 + + MAX( DISTINCT 25 ) AS col1
----
1645
38

skipif mysql # not compatible
query II rowsort label-1487
SELECT DISTINCT 47 * - ( + - 35 ) AS col2, 13 + + MAX ( DISTINCT 25 ) AS col1
----
1645
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1488
SELECT DISTINCT + 84 + - COUNT( * ) + CAST( NULL AS SIGNED ) + - + SUM( DISTINCT 62 ) * CASE + 50 WHEN 71 THEN - ( - 18 ) WHEN - 19 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT + 84 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + - + SUM ( DISTINCT 62 ) * CASE + 50 WHEN 71 THEN - ( - 18 ) WHEN - 19 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 73 * + 28
----
-2044

query I rowsort
SELECT ALL 74 + - 42 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1491
SELECT DISTINCT - + CASE - 54 WHEN 53 THEN 12 + + 11 WHEN COUNT( * ) THEN NULL ELSE 49 DIV COUNT( * ) END DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT - + CASE - 54 WHEN 53 THEN 12 + + 11 WHEN COUNT ( * ) THEN NULL ELSE 49 / COUNT ( * ) END / 54
----
0

query I rowsort
SELECT ALL + 34 + 70 + - 55 * + - 1 col2
----
159

query I rowsort
SELECT ALL + CASE + 61 WHEN + ( - + 9 ) * + 65 THEN NULL ELSE ( - 69 ) + - 63 END AS col2
----
-132

query I rowsort
SELECT - + 98 col2
----
-98

query II rowsort
SELECT - 25, - 91 + + 59 AS col0
----
-25
-32

query I rowsort
SELECT - 81 + + 37 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT ALL MIN( 51 )
----
51

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL MIN ( 51 )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1498
SELECT - 57 + - 89, NULLIF ( 20, + + COUNT( * ) ) AS col0
----
-146
20

skipif mysql # not compatible
query II rowsort label-1498
SELECT - 57 + - 89, NULLIF ( 20, + + COUNT ( * ) ) AS col0
----
-146
20

query I rowsort
SELECT ALL + ( ( + 9 ) ) + - - 40 + + 31
----
80

query I rowsort
SELECT - 33 + + 42
----
9

query II rowsort
SELECT - 39, 4 + 7 AS col0
----
-39
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1502
SELECT DISTINCT 41, 52 * - 87 - + 82 + - CAST( 19 AS SIGNED ) * 57 AS col0
----
41
-5689

skipif mysql # not compatible
query II rowsort label-1502
SELECT DISTINCT 41, 52 * - 87 - + 82 + - CAST ( 19 AS INTEGER ) * 57 AS col0
----
41
-5689

query I rowsort
SELECT DISTINCT - ( - 89 ) - + 25
----
64

query I rowsort
SELECT ALL + 54 * + ( + 69 ) AS col2
----
3726

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT + 3 + 53 + 36 * CASE + 83 WHEN + - CASE 33 WHEN - ( 7 ) THEN - 15 END + + 60 THEN ( 37 ) * - COUNT( * ) WHEN + 41 THEN + 87 ELSE 38 END AS col2
----
1424

skipif mysql # not compatible
query I rowsort label-1505
SELECT + 3 + 53 + 36 * CASE + 83 WHEN + - CASE 33 WHEN - ( 7 ) THEN - 15 END + + 60 THEN ( 37 ) * - COUNT ( * ) WHEN + 41 THEN + 87 ELSE 38 END AS col2
----
1424

onlyif mysql # aggregate syntax: 
query II rowsort label-1506
SELECT 25 AS col1, 68 * - COUNT( * ) * + 43 + - 35 + - 34
----
25
-2993

skipif mysql # not compatible
query II rowsort label-1506
SELECT 25 AS col1, 68 * - COUNT ( * ) * + 43 + - 35 + - 34
----
25
-2993

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1507
SELECT + 80 + - 49 - + 45 * + ( + ( + - 58 ) ) * - ( 54 ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT + 80 + - 49 - + 45 * + ( + ( + - 58 ) ) * - ( 54 ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT - 67 + + MAX( + - 14 )
----
-81

skipif mysql # not compatible
query I rowsort label-1508
SELECT - 67 + + MAX ( + - 14 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT 64 * + COUNT( * ) + + 51 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-1509
SELECT 64 * + COUNT ( * ) + + 51 AS col0
----
115

query I rowsort
SELECT ALL 55 * - - 99
----
5445

onlyif mysql # DIV for integer division: 
query I rowsort label-1511
SELECT + 61 DIV - + 29
----
-2

skipif mysql # not compatible
query I rowsort label-1511
SELECT + 61 / - + 29
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1512
SELECT DISTINCT - ( - COUNT( * ) ) DIV + CASE ( AVG ( 58 ) ) WHEN + 58 THEN 83 ELSE NULL END
----
0

skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT - ( - COUNT ( * ) ) / + CASE ( AVG ( 58 ) ) WHEN + 58 THEN 83 ELSE NULL END
----
0

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

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

query I rowsort
SELECT DISTINCT - 40 * + 64 * - 10 AS col2
----
25600

onlyif mysql # aggregate syntax: 
query II rowsort label-1515
SELECT - 17 * - COUNT( ALL - ( + - 67 ) ) AS col0, SUM( + ( 24 ) ) AS col0
----
17
24

skipif mysql # not compatible
query II rowsort label-1515
SELECT - 17 * - COUNT ( ALL - ( + - 67 ) ) AS col0, SUM ( + ( 24 ) ) AS col0
----
17
24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1517
SELECT + + 1 + - ( - + 56 ) - + + CASE - NULLIF ( + COUNT( * ), 85 + 15 ) WHEN - 73 THEN + 3 WHEN 63 + + 51 THEN ( 61 ) + + 99 ELSE CAST( NULL AS SIGNED ) END * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1517
SELECT + + 1 + - ( - + 56 ) - + + CASE - NULLIF ( + COUNT ( * ), 85 + 15 ) WHEN - 73 THEN + 3 WHEN 63 + + 51 THEN ( 61 ) + + 99 ELSE CAST ( NULL AS INTEGER ) END * + 6
----
NULL

query II rowsort
SELECT DISTINCT + - 74, 55 col2
----
-74
55

query I rowsort
SELECT ALL + ( - ( 93 ) ) * + - 6 + - 35
----
523

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT + - COALESCE ( ( 47 ), - NULLIF ( + COUNT( * ), - - NULLIF ( 35, - 77 * + 28 ) ) * - 24, - 84 + - 44 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1520
SELECT + - COALESCE ( ( 47 ), - NULLIF ( + COUNT ( * ), - - NULLIF ( 35, - 77 * + 28 ) ) * - 24, - 84 + - 44 ) AS col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1521
SELECT - ( 36 ) * + + 24 - 35 + + 23 DIV 9 + + COUNT( * ) * 89 col1
----
-808

skipif mysql # not compatible
query I rowsort label-1521
SELECT - ( 36 ) * + + 24 - 35 + + 23 / 9 + + COUNT ( * ) * 89 col1
----
-808

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

query I rowsort
SELECT ALL 36 * 27 AS col1
----
972

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT DISTINCT COUNT( * ) * 82 + - 47 - + 36 + + 56 - 61 col1
----
-6

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT COUNT ( * ) * 82 + - 47 - + 36 + + 56 - 61 col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1525
SELECT - 57, + COALESCE ( + CASE 26 WHEN - + ( - 88 ) * 9 THEN COUNT( * ) ELSE NULL END, + 91, + 47 ) AS col1
----
-57
91

skipif mysql # not compatible
query II rowsort label-1525
SELECT - 57, + COALESCE ( + CASE 26 WHEN - + ( - 88 ) * 9 THEN COUNT ( * ) ELSE NULL END, + 91, + 47 ) AS col1
----
-57
91

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

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

query I rowsort
SELECT ALL - ( + 50 ) * 44 + + 36
----
-2164

onlyif mysql # DIV for integer division: 
query I rowsort label-1528
SELECT + + 58 + + 34 + - COALESCE ( - - 6, + NULLIF ( - ( - 16 ), 72 ) * + 61 + 33 ) * + 13 DIV + 94
----
92

skipif mysql # not compatible
query I rowsort label-1528
SELECT + + 58 + + 34 + - COALESCE ( - - 6, + NULLIF ( - ( - 16 ), 72 ) * + 61 + 33 ) * + 13 / + 94
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1529
SELECT DISTINCT + COUNT( * ) * - 94 * - CAST( - 98 AS SIGNED ) + - 37 + - 51
----
-9300

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT + COUNT ( * ) * - 94 * - CAST ( - 98 AS INTEGER ) + - 37 + - 51
----
-9300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1530
SELECT - - 69 * - 51 + - 71 + 2 * 22 * 82 * - NULLIF ( + CASE ( 11 ) WHEN - CAST( - 53 AS SIGNED ) / 53 THEN + 52 ELSE NULL END * CAST( NULL AS SIGNED ), 44 * + 71 ) * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1530
SELECT - - 69 * - 51 + - 71 + 2 * 22 * 82 * - NULLIF ( + CASE ( 11 ) WHEN - CAST ( - 53 AS INTEGER ) / 53 THEN + 52 ELSE NULL END * CAST ( NULL AS INTEGER ), 44 * + 71 ) * + 29
----
NULL

query I rowsort
SELECT - - 25 * + 25
----
625

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1532
SELECT ALL + 4 * 80 + 75 + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL + 4 * 80 + 75 + - - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT - + 13 AS col0, - 88 * + ( 68 ) AS col2
----
-13
-5984

query II rowsort
SELECT 4, 90 col1
----
4
90

query I rowsort
SELECT + 81 * - 80 AS col2
----
-6480

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT ALL 46 * - - 89 * - COUNT( DISTINCT - 59 ) * + 7
----
-28658

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL 46 * - - 89 * - COUNT ( DISTINCT - 59 ) * + 7
----
-28658

query I rowsort
SELECT DISTINCT ( - - 16 ) AS col1
----
16

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

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

query II rowsort
SELECT - 10 * - 91, - 27 - 5 col2
----
910
-32

query II rowsort
SELECT - ( 98 ) AS col0, 4 AS col0
----
-98
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT - 27 + - MAX( DISTINCT 34 ) * - 12 + ( - 49 ) AS col1
----
332

skipif mysql # not compatible
query I rowsort label-1541
SELECT - 27 + - MAX ( DISTINCT 34 ) * - 12 + ( - 49 ) AS col1
----
332

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT + 15 * 73 * - + COUNT( * )
----
-1095

skipif mysql # not compatible
query I rowsort label-1542
SELECT + 15 * 73 * - + COUNT ( * )
----
-1095

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1544
SELECT - AVG ( DISTINCT NULLIF ( - 21, + - 54 ) ) * + CAST( NULL AS SIGNED ), + 29 AS col0
----
NULL
29

skipif mysql # not compatible
query II rowsort label-1544
SELECT - AVG ( DISTINCT NULLIF ( - 21, + - 54 ) ) * + CAST ( NULL AS INTEGER ), + 29 AS col0
----
NULL
29

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

query I rowsort
SELECT ALL - 22 * - + 58
----
1276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1547
SELECT DISTINCT COALESCE ( COUNT( * ), - - 5 DIV + 11 )
----
1

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT COALESCE ( COUNT ( * ), - - 5 / + 11 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1548
SELECT DISTINCT - 5 * + CAST( + CASE + + 63 WHEN - COUNT( * ) THEN - 56 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT - 5 * + CAST ( + CASE + + 63 WHEN - COUNT ( * ) THEN - 56 ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT ALL - 32 * - 98 * COUNT( * )
----
3136

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL - 32 * - 98 * COUNT ( * )
----
3136

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1551
SELECT - COUNT( * ) + + + 33, 3 * 83 * - 42 AS col1
----
32
-10458

skipif mysql # not compatible
query II rowsort label-1551
SELECT - COUNT ( * ) + + + 33, 3 * 83 * - 42 AS col1
----
32
-10458

onlyif mysql # aggregate syntax: 
query II rowsort label-1552
SELECT DISTINCT - COUNT( * ) * - 30 AS col1, + 72 * 9 * 56
----
30
36288

skipif mysql # not compatible
query II rowsort label-1552
SELECT DISTINCT - COUNT ( * ) * - 30 AS col1, + 72 * 9 * 56
----
30
36288

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

skipif mysql # not compatible
query I rowsort label-1553
SELECT - - 36 + + 57 * COUNT ( * ) AS col0
----
93

query I rowsort
SELECT - - COALESCE ( + 54, + - 76 ) * 20 + - 80
----
1000

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT DISTINCT 33 DIV - + 25 + + 7 + 40
----
46

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT 33 / - + 25 + + 7 + 40
----
46

query I rowsort
SELECT - 37 - - 7
----
-30

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

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

query I rowsort
SELECT DISTINCT + 67 + 36 * + 2 AS col1
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-1559
SELECT + - COUNT( * ) * + 57 + + COUNT( * ) col1, 78 AS col0
----
-56
78

skipif mysql # not compatible
query II rowsort label-1559
SELECT + - COUNT ( * ) * + 57 + + COUNT ( * ) col1, 78 AS col0
----
-56
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1560
SELECT COUNT( * ) - + 36 AS col0, + 98 + - 38 * - 97
----
-35
3784

skipif mysql # not compatible
query II rowsort label-1560
SELECT COUNT ( * ) - + 36 AS col0, + 98 + - 38 * - 97
----
-35
3784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1561
SELECT - 99 * - + 21 - - COALESCE ( - 63, - COUNT( * ) - + 16 ) DIV + 10
----
2073

skipif mysql # not compatible
query I rowsort label-1561
SELECT - 99 * - + 21 - - COALESCE ( - 63, - COUNT ( * ) - + 16 ) / + 10
----
2073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1562
SELECT - CAST( NULL AS SIGNED ) * + 58 - - 94 + + - 4 + COUNT( * ) + + - 76 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1562
SELECT - CAST ( NULL AS INTEGER ) * + 58 - - 94 + + - 4 + COUNT ( * ) + + - 76 col0
----
NULL

query II rowsort
SELECT DISTINCT 27 AS col0, + ( 61 )
----
27
61

query II rowsort
SELECT - 89 col0, - 24
----
-89
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1565
SELECT ( + 77 ) + - 80 - CAST( - 53 AS SIGNED ) + - + 11 * - + CAST( + - MIN( DISTINCT 53 ) AS SIGNED ) + - 57 * 80 AS col0
----
-5093

skipif mysql # not compatible
query I rowsort label-1565
SELECT ( + 77 ) + - 80 - CAST ( - 53 AS INTEGER ) + - + 11 * - + CAST ( + - MIN ( DISTINCT 53 ) AS INTEGER ) + - 57 * 80 AS col0
----
-5093

query I rowsort
SELECT 73 * - - 83 AS col2
----
6059

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

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

query I rowsort
SELECT DISTINCT 85 * + 94
----
7990

query I rowsort
SELECT 79 + - 58 + - 16 * + 46 + 30
----
-685

onlyif mysql # aggregate syntax: 
query II rowsort label-1570
SELECT - 66 AS col0, - 4 * - + 6 * - + MIN( - 33 ) col2
----
-66
792

skipif mysql # not compatible
query II rowsort label-1570
SELECT - 66 AS col0, - 4 * - + 6 * - + MIN ( - 33 ) col2
----
-66
792

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT - COALESCE ( + 68, - - COUNT( * ) + - 52 * + 12 * ( - NULLIF ( COUNT( DISTINCT + 89 ), + SUM( 59 ) + + 98 ) ) + COUNT( * ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-1571
SELECT - COALESCE ( + 68, - - COUNT ( * ) + - 52 * + 12 * ( - NULLIF ( COUNT ( DISTINCT + 89 ), + SUM ( 59 ) + + 98 ) ) + COUNT ( * ) ) AS col1
----
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT ALL - SUM( ALL + COALESCE ( - 34, - ( - + 64 ) * - 52 + 30 + - - 56 + 27 ) )
----
34

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL - SUM ( ALL + COALESCE ( - 34, - ( - + 64 ) * - 52 + 30 + - - 56 + 27 ) )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1574
SELECT + CAST( + ( + 82 ) AS SIGNED ) AS col1, 80 AS col2
----
82
80

skipif mysql # not compatible
query II rowsort label-1574
SELECT + CAST ( + ( + 82 ) AS INTEGER ) AS col1, 80 AS col2
----
82
80

query I rowsort
SELECT ALL + 18 + - 22
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1576
SELECT + COALESCE ( + + 23, - + COALESCE ( + 53, + AVG ( ALL + 39 ) * + ( - COUNT( * ) ) DIV + 38, COUNT( * ) ) * - 18 )
----
23

skipif mysql # not compatible
query I rowsort label-1576
SELECT + COALESCE ( + + 23, - + COALESCE ( + 53, + AVG ( ALL + 39 ) * + ( - COUNT ( * ) ) / + 38, COUNT ( * ) ) * - 18 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ALL + 38 + - 82 + + 36 * 93 * + COUNT( * ) AS col1
----
3304

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL + 38 + - 82 + + 36 * 93 * + COUNT ( * ) AS col1
----
3304

query I rowsort
SELECT DISTINCT - 29 col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1579
SELECT 16 + 10 DIV - ( + 25 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-1579
SELECT 16 + 10 / - ( + 25 ) AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1580
SELECT - - 18 * + CAST( - - NULLIF ( + 61, + COUNT( * ) / 91 / + 97 * - + 44 ) AS SIGNED ) + + NULLIF ( - 53 - 36, - COUNT( * ) ) AS col1
----
1009

skipif mysql # not compatible
query I rowsort label-1580
SELECT - - 18 * + CAST ( - - NULLIF ( + 61, + COUNT ( * ) / 91 / + 97 * - + 44 ) AS INTEGER ) + + NULLIF ( - 53 - 36, - COUNT ( * ) ) AS col1
----
1009

query I rowsort
SELECT ALL + 3 - 2 * + - 65
----
133

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

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

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

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

query I rowsort
SELECT - + 32 * - - 35 + + 11 + 51
----
-1058

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1585
SELECT ALL - + CAST( NULL AS SIGNED ) col0, 52 AS col1
----
NULL
52

skipif mysql # not compatible
query II rowsort label-1585
SELECT ALL - + CAST ( NULL AS INTEGER ) col0, 52 AS col1
----
NULL
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT 27 + - NULLIF ( - COUNT( * ), + NULLIF ( AVG ( ( + 28 ) ), + COUNT( * ) ) / 41 )
----
28

skipif mysql # not compatible
query I rowsort label-1586
SELECT 27 + - NULLIF ( - COUNT ( * ), + NULLIF ( AVG ( ( + 28 ) ), + COUNT ( * ) ) / 41 )
----
28

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

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

query II rowsort
SELECT ALL 46 * - 79 AS col2, + 94 AS col0
----
-3634
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1589
SELECT 38 * COUNT( * ) AS col0, + COUNT( * ) * + + 35 * - 21 + - + 11 + + + 57 * 17 DIV 53 AS col2
----
38
-728

skipif mysql # not compatible
query II rowsort label-1589
SELECT 38 * COUNT ( * ) AS col0, + COUNT ( * ) * + + 35 * - 21 + - + 11 + + + 57 * 17 / 53 AS col2
----
38
-728

query I rowsort
SELECT 45 + 50
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1591
SELECT COALESCE ( + + 56, - AVG ( 44 ) ) DIV 79 * - ( - + COUNT( * ) ) + - 22 + + 74 + COUNT( * ) * + 15 * 50
----
802

skipif mysql # not compatible
query I rowsort label-1591
SELECT COALESCE ( + + 56, - AVG ( 44 ) ) / 79 * - ( - + COUNT ( * ) ) + - 22 + + 74 + COUNT ( * ) * + 15 * 50
----
802

query I rowsort
SELECT DISTINCT 4 * - 28 AS col2
----
-112

query I rowsort
SELECT DISTINCT - 50 * ( + 1 ) AS col1
----
-50

query I rowsort
SELECT 54 * 94
----
5076

query II rowsort
SELECT ALL 32 + - 69 AS col2, 19
----
-37
19

query II rowsort
SELECT ALL 3 + + 21, + 71 AS col1
----
24
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1597
SELECT 44 * + NULLIF ( + + ( + COUNT( * ) ), 13 / + - MAX( DISTINCT + ( - CAST( - 50 AS SIGNED ) ) ) + + 62 )
----
44

skipif mysql # not compatible
query I rowsort label-1597
SELECT 44 * + NULLIF ( + + ( + COUNT ( * ) ), 13 / + - MAX ( DISTINCT + ( - CAST ( - 50 AS INTEGER ) ) ) + + 62 )
----
44

query I rowsort
SELECT ALL 96 + - + ( - 8 ) AS col2
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-1599
SELECT ( 27 ) DIV + + 61
----
0

skipif mysql # not compatible
query I rowsort label-1599
SELECT ( 27 ) / + + 61
----
0

query I rowsort
SELECT DISTINCT ( - 6 ) + + 54 AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1601
SELECT + - 53 / COUNT( * ) + + 43 * + - CAST( NULL AS SIGNED ) * + MAX( ALL - - 23 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1601
SELECT + - 53 / COUNT ( * ) + + 43 * + - CAST ( NULL AS INTEGER ) * + MAX ( ALL - - 23 ) col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1602
SELECT - SUM ( + 59 )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1603
SELECT ALL - - ( - 66 ) + - AVG ( DISTINCT - - 59 ) * 8 * + 78 * - - AVG ( ALL + 9 ) + + 80 + + NULLIF ( MIN( - 26 ), 69 + 95 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL - - ( - 66 ) + - AVG ( DISTINCT - - 59 ) * 8 * + 78 * - - AVG ( ALL + 9 ) + + 80 + + NULLIF ( MIN ( - 26 ), 69 + 95 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1604
SELECT - 69 / - 63 + MIN( DISTINCT + 96 ) * + 33 / + CASE + CAST( NULL AS SIGNED ) WHEN + - COUNT( * ) THEN + 91 * + CASE 44 WHEN 82 THEN + 48 * - 22 + + CASE - 15 WHEN 32 THEN + COUNT( * ) WHEN 94 THEN NULL ELSE - COALESCE ( 44, + COUNT( * ) ) + MAX( + 59 ) END END WHEN 69 * + 34 THEN + 52 / 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1604
SELECT - 69 / - 63 + MIN ( DISTINCT + 96 ) * + 33 / + CASE + CAST ( NULL AS INTEGER ) WHEN + - COUNT ( * ) THEN + 91 * + CASE 44 WHEN 82 THEN + 48 * - 22 + + CASE - 15 WHEN 32 THEN + COUNT ( * ) WHEN 94 THEN NULL ELSE - COALESCE ( 44, + COUNT ( * ) ) + MAX ( + 59 ) END END WHEN 69 * + 34 THEN + 52 / 58 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1605
SELECT + + 76 * + + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * ( - 37 )
----
0

skipif mysql # not compatible
query I rowsort label-1605
SELECT + + 76 * + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * ( - 37 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT DISTINCT - 65 DIV - 35
----
1

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - 65 / - 35
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1608
SELECT + - CAST( + + COUNT( * ) AS SIGNED ), + 52 * + + 29 AS col2
----
-1
1508

skipif mysql # not compatible
query II rowsort label-1608
SELECT + - CAST ( + + COUNT ( * ) AS INTEGER ), + 52 * + + 29 AS col2
----
-1
1508

query I rowsort
SELECT DISTINCT + + 9 AS col1
----
9

query I rowsort
SELECT - - 42 * - 16 + - 48
----
-720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1611
SELECT - NULLIF ( COUNT( * ), - MAX( - 39 ) * - 33 * 62 ) DIV + 67 + 16 * 57
----
912

skipif mysql # not compatible
query I rowsort label-1611
SELECT - NULLIF ( COUNT ( * ), - MAX ( - 39 ) * - 33 * 62 ) / + 67 + 16 * 57
----
912

query I rowsort
SELECT ALL + - 36 * - 16
----
576

query I rowsort
SELECT - ( + 22 ) * + 8 AS col1
----
-176

query I rowsort
SELECT + + 74 * - 14 + 38 AS col2
----
-998

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT 44 * 63 + 70 * 82 + + 36 + + COUNT( * ) + ( - + ( - - 8 ) ) - + NULLIF ( + 77, + 45 ) * 18 * - 0
----
8541

skipif mysql # not compatible
query I rowsort label-1615
SELECT 44 * 63 + 70 * 82 + + 36 + + COUNT ( * ) + ( - + ( - - 8 ) ) - + NULLIF ( + 77, + 45 ) * 18 * - 0
----
8541

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT COUNT( * ) * 30 - ( - 37 ) + - 47 + + COALESCE ( + COUNT( * ), - COALESCE ( 7, + - ( - 82 ) + 91 * + COUNT( * ) ) * 25, + 69 + + 19 ) * - 20 * - CASE - 7 WHEN + 56 THEN NULLIF ( + ( + NULLIF ( 72, + 68 ) ), 72 ) WHEN - 7 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1616
SELECT COUNT ( * ) * 30 - ( - 37 ) + - 47 + + COALESCE ( + COUNT ( * ), - COALESCE ( 7, + - ( - 82 ) + 91 * + COUNT ( * ) ) * 25, + 69 + + 19 ) * - 20 * - CASE - 7 WHEN + 56 THEN NULLIF ( + ( + NULLIF ( 72, + 68 ) ), 72 ) WHEN - 7 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT + ( CASE - CASE + 79 WHEN 71 + 72 * - + ( + 28 ) * - COUNT( * ) + 28 / ( 10 * 90 + 49 ) THEN NULL WHEN 1 THEN + 0 / COUNT( * ) WHEN + 5 THEN NULL ELSE NULL END WHEN MAX( 25 ) * 72 THEN NULL WHEN + COUNT( * ) * 3 + - 61 * 11 THEN + 16 + + ( - COUNT( * ) ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1617
SELECT + ( CASE - CASE + 79 WHEN 71 + 72 * - + ( + 28 ) * - COUNT ( * ) + 28 / ( 10 * 90 + 49 ) THEN NULL WHEN 1 THEN + 0 / COUNT ( * ) WHEN + 5 THEN NULL ELSE NULL END WHEN MAX ( 25 ) * 72 THEN NULL WHEN + COUNT ( * ) * 3 + - 61 * 11 THEN + 16 + + ( - COUNT ( * ) ) END ) AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - COALESCE ( 27, + 78 + 14 ), - 93 )
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-1619
SELECT - 75 DIV + 69
----
-1

skipif mysql # not compatible
query I rowsort label-1619
SELECT - 75 / + 69
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT - ( 23 ) * + + 21 * 85 + + ( - 35 ) - + COUNT( + - 88 ) AS col2
----
-41091

skipif mysql # not compatible
query I rowsort label-1620
SELECT - ( 23 ) * + + 21 * 85 + + ( - 35 ) - + COUNT ( + - 88 ) AS col2
----
-41091

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1622
SELECT DISTINCT - 67 * - 49 + - CAST( + 97 AS SIGNED ) DIV - - CAST( - 97 AS SIGNED ) AS col1
----
3284

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT - 67 * - 49 + - CAST ( + 97 AS INTEGER ) / - - CAST ( - 97 AS INTEGER ) AS col1
----
3284

query I rowsort
SELECT ALL + 84 * - - 82 * + ( - 22 ) + + - 99 col1
----
-151635

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT ALL + CASE + COUNT( DISTINCT + 93 ) WHEN + 10 * + + COALESCE ( - 45, - + 69 ) + 47 THEN - + 2 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL + CASE + COUNT ( DISTINCT + 93 ) WHEN + 10 * + + COALESCE ( - 45, - + 69 ) + 47 THEN - + 2 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1625
SELECT - NULLIF ( 88, - - 61 ) DIV COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-1625
SELECT - NULLIF ( 88, - - 61 ) / COUNT ( * )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL COUNT( * ) * 60 + - + 93
----
-33

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL COUNT ( * ) * 60 + - + 93
----
-33

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

query I rowsort
SELECT 64 * - - ( + 79 ) - 70 AS col2
----
4986

onlyif mysql # DIV for integer division: 
query I rowsort label-1629
SELECT ALL + 73 DIV + 1
----
73

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL + 73 / + 1
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT - SUM( DISTINCT 75 ) + + 38 * ( + - 56 ) * - 97 * + + NULLIF ( + COALESCE ( + + 90, + 35 ), + 56 + + 64 ) - COUNT( * ) AS col2
----
18577364

skipif mysql # not compatible
query I rowsort label-1631
SELECT - SUM ( DISTINCT 75 ) + + 38 * ( + - 56 ) * - 97 * + + NULLIF ( + COALESCE ( + + 90, + 35 ), + 56 + + 64 ) - COUNT ( * ) AS col2
----
18577364

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT + CASE + CASE - + 96 WHEN + 52 THEN + 15 END WHEN + 93 - - 43 THEN + NULLIF ( + 80, + + 20 * - 18 ) ELSE 11 + 97 * 53 END * COUNT( * )
----
5152

skipif mysql # not compatible
query I rowsort label-1632
SELECT + CASE + CASE - + 96 WHEN + 52 THEN + 15 END WHEN + 93 - - 43 THEN + NULLIF ( + 80, + + 20 * - 18 ) ELSE 11 + 97 * 53 END * COUNT ( * )
----
5152

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT ALL + 1 + CASE - MIN( ALL + NULLIF ( + 42, - + COALESCE ( + 99, ( - + 77 ) ) ) ) WHEN 8 THEN 25 WHEN 99 THEN + 64 * 33 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL + 1 + CASE - MIN ( ALL + NULLIF ( + 42, - + COALESCE ( + 99, ( - + 77 ) ) ) ) WHEN 8 THEN 25 WHEN 99 THEN + 64 * 33 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT - 79 + + COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-1634
SELECT - 79 + + COUNT ( * ) AS col0
----
-78

query I rowsort
SELECT - NULLIF ( - 98, + - 15 ) AS col2
----
98

query I rowsort
SELECT ALL 49 * + + 47 AS col2
----
2303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1637
SELECT - CASE COUNT( - + 56 ) WHEN 18 THEN NULL WHEN CASE 74 WHEN - MAX( DISTINCT - 13 ) THEN - + 56 * - NULLIF ( 96, 91 * + 42 ) WHEN 80 * 2 - - 92 THEN 30 * 47 + 63 * - COALESCE ( - 47 DIV COALESCE ( SUM( - 61 ), 72 * COUNT( * ) + - 84 ) + COUNT( * ), 54 ) WHEN CAST( NULL AS SIGNED ) THEN NULL END DIV ( + ( - MIN( DISTINCT - 50 ) ) * + 24 ) THEN 51 WHEN 66 DIV - 89 + + COUNT( * ) THEN NULL WHEN - 86 + + 62 THEN NULL ELSE + MIN( + 9 ) END + ( - 93 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1637
SELECT - CASE COUNT ( - + 56 ) WHEN 18 THEN NULL WHEN CASE 74 WHEN - MAX ( DISTINCT - 13 ) THEN - + 56 * - NULLIF ( 96, 91 * + 42 ) WHEN 80 * 2 - - 92 THEN 30 * 47 + 63 * - COALESCE ( - 47 / COALESCE ( SUM ( - 61 ), 72 * COUNT ( * ) + - 84 ) + COUNT ( * ), 54 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL END / ( + ( - MIN ( DISTINCT - 50 ) ) * + 24 ) THEN 51 WHEN 66 / - 89 + + COUNT ( * ) THEN NULL WHEN - 86 + + 62 THEN NULL ELSE + MIN ( + 9 ) END + ( - 93 ) col1
----
NULL

query I rowsort
SELECT ALL + 1 + + 92 AS col2
----
93

query I rowsort
SELECT + ( + 74 ) + - 33 col2
----
41

query I rowsort
SELECT ALL 56 + - 90 * COALESCE ( + 79, - 91 ) - - 50
----
-7004

query I rowsort
SELECT + 30 + + 60
----
90

query I rowsort
SELECT + + 91 + - 71 + 26 + + + 6 AS col0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-1643
SELECT + COUNT( * ) AS col2, + 40 * - 92 * + - 20 AS col0
----
1
73600

skipif mysql # not compatible
query II rowsort label-1643
SELECT + COUNT ( * ) AS col2, + 40 * - 92 * + - 20 AS col0
----
1
73600

query I rowsort
SELECT + - 16 + - - 72
----
56

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1646
SELECT - - COUNT( * ) AS col2, - 43 * 61
----
1
-2623

skipif mysql # not compatible
query II rowsort label-1646
SELECT - - COUNT ( * ) AS col2, - 43 * 61
----
1
-2623

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1648
SELECT ALL + COUNT( * ) - + CAST( - - CAST( - 19 AS SIGNED ) AS SIGNED ) - CAST( NULL AS SIGNED ) * 10 * + 92 - - 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL + COUNT ( * ) - + CAST ( - - CAST ( - 19 AS INTEGER ) AS INTEGER ) - CAST ( NULL AS INTEGER ) * 10 * + 92 - - 31 AS col0
----
NULL

query I rowsort
SELECT + + 30 * - 37 + 64 * 20
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1650
SELECT + CAST( + CAST( + 23 AS SIGNED ) AS SIGNED ) * COUNT( DISTINCT - 33 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1650
SELECT + CAST ( + CAST ( + 23 AS INTEGER ) AS INTEGER ) * COUNT ( DISTINCT - 33 ) AS col1
----
23

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

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

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

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

query I rowsort
SELECT + 42 * + ( + - 74 ) AS col2
----
-3108

query II rowsort
SELECT DISTINCT + 42 * - 49 - - 85 AS col0, 77
----
-1973
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1655
SELECT 4 DIV + 16 + + + 75 - - - 77 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1655
SELECT 4 / + 16 + + + 75 - - - 77 AS col1
----
-2

query I rowsort
SELECT + + 29 * + 96 AS col1
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT ALL 69 / + 14 * CASE MIN( + + 71 ) WHEN + AVG ( + 99 ) * + ( + + 14 ) + - 72 + + 76 THEN COUNT( - 67 ) * + 13 WHEN ( - 95 ) THEN NULL END * 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL 69 / + 14 * CASE MIN ( + + 71 ) WHEN + AVG ( + 99 ) * + ( + + 14 ) + - 72 + + 76 THEN COUNT ( - 67 ) * + 13 WHEN ( - 95 ) THEN NULL END * 60 AS col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT ALL 25 / + CASE - + COALESCE ( - + 4, + + 63 ) WHEN + MIN( 14 ) + 25 THEN - COUNT( * ) + 16 END * + + 39 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL 25 / + CASE - + COALESCE ( - + 4, + + 63 ) WHEN + MIN ( 14 ) + 25 THEN - COUNT ( * ) + 16 END * + + 39 + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1661
SELECT DISTINCT + 40 DIV - 4 + + + 18 + - + 31
----
-23

skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT + 40 / - 4 + + + 18 + - + 31
----
-23

query II rowsort
SELECT DISTINCT + 86 AS col2, + 60 col0
----
86
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1663
SELECT DISTINCT 68 * + 19 * + - 71 + + - 60 DIV 26 AS col1
----
-91734

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT 68 * + 19 * + - 71 + + - 60 / 26 AS col1
----
-91734

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT ALL + 77 * MIN( ALL + 50 )
----
3850

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL + 77 * MIN ( ALL + 50 )
----
3850

query I rowsort
SELECT ( ( - 38 ) ) AS col0
----
-38

query I rowsort
SELECT ALL - 41 * - 53 + 93 AS col0
----
2266

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1667
SELECT + 40 col1, + CAST( + 63 AS SIGNED ) * - 70 * 5
----
40
-22050

skipif mysql # not compatible
query II rowsort label-1667
SELECT + 40 col1, + CAST ( + 63 AS INTEGER ) * - 70 * 5
----
40
-22050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1668
SELECT DISTINCT NULLIF ( 70, - 6 ) * 91 + - 9 + 83, 53 + + COALESCE ( + 68, 54, - - NULLIF ( + 82, - NULLIF ( - 25, COUNT( * ) ) ) ) * + CAST( MAX( - 80 ) AS SIGNED ) AS col0
----
6444
-5387

skipif mysql # not compatible
query II rowsort label-1668
SELECT DISTINCT NULLIF ( 70, - 6 ) * 91 + - 9 + 83, 53 + + COALESCE ( + 68, 54, - - NULLIF ( + 82, - NULLIF ( - 25, COUNT ( * ) ) ) ) * + CAST ( MAX ( - 80 ) AS INTEGER ) AS col0
----
6444
-5387

query I rowsort
SELECT DISTINCT 5 * 81 + + 20
----
425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1670
SELECT + 99 * - 81 + 98 + - ( - COALESCE ( 17, - CAST( + 30 AS SIGNED ) * - 74 + + - 45 ) ) + - 15 * + 95 AS col2
----
-9329

skipif mysql # not compatible
query I rowsort label-1670
SELECT + 99 * - 81 + 98 + - ( - COALESCE ( 17, - CAST ( + 30 AS INTEGER ) * - 74 + + - 45 ) ) + - 15 * + 95 AS col2
----
-9329

onlyif mysql # aggregate syntax: 
query III rowsort label-1671
SELECT ALL + COUNT( * ) AS col2, 67 AS col2, - 57
----
1
67
-57

skipif mysql # not compatible
query III rowsort label-1671
SELECT ALL + COUNT ( * ) AS col2, 67 AS col2, - 57
----
1
67
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT COALESCE ( + COUNT( * ), 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1672
SELECT COALESCE ( + COUNT ( * ), 68 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT DISTINCT 42 * - MIN( 32 ) * - - 13 - - - 57 + 82 + + - 64 + - + MAX( ALL 27 ) * 37 * - COUNT( 95 ) * 77 AS col2
----
59412

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT 42 * - MIN ( 32 ) * - - 13 - - - 57 + 82 + + - 64 + - + MAX ( ALL 27 ) * 37 * - COUNT ( 95 ) * 77 AS col2
----
59412

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT - 55 DIV - 13 col2
----
4

skipif mysql # not compatible
query I rowsort label-1674
SELECT - 55 / - 13 col2
----
4

query I rowsort
SELECT ALL 61 - + + 41 * 60
----
-2399

onlyif mysql # aggregate syntax: 
query II rowsort label-1676
SELECT DISTINCT 12, + COUNT( DISTINCT - 49 ) + + - MIN( DISTINCT - + ( + ( 24 ) ) ) AS col0
----
12
25

skipif mysql # not compatible
query II rowsort label-1676
SELECT DISTINCT 12, + COUNT ( DISTINCT - 49 ) + + - MIN ( DISTINCT - + ( + ( 24 ) ) ) AS col0
----
12
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT ALL + 69 - COUNT( * ) * + 63
----
6

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL + 69 - COUNT ( * ) * + 63
----
6

query II rowsort
SELECT - 66 AS col2, 24 AS col1
----
-66
24

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

skipif mysql # not compatible
query I rowsort label-1679
SELECT + 24 / 84
----
0

query II rowsort
SELECT - - 45, + 81 col1
----
45
81

query II rowsort
SELECT - 71 AS col0, 99 AS col2
----
-71
99

query I rowsort
SELECT ALL + - 19 - - 7 AS col0
----
-12

query II rowsort
SELECT - 93 AS col0, - 81 * - ( + 63 ) col2
----
-93
5103

query II rowsort
SELECT - - 22 AS col1, COALESCE ( + + 27, 18 ) col2
----
22
27

query I rowsort
SELECT DISTINCT - + 7 * 98 AS col0
----
-686

query I rowsort
SELECT 56 - + 20 col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1687
SELECT ALL + 99 AS col2, - CAST( - 96 AS SIGNED )
----
99
96

skipif mysql # not compatible
query II rowsort label-1687
SELECT ALL + 99 AS col2, - CAST ( - 96 AS INTEGER )
----
99
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT DISTINCT + + MIN( - 6 ) * + + 7
----
-42

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT + + MIN ( - 6 ) * + + 7
----
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT + 40 * 69 * + 74 * COUNT( * ) AS col2
----
204240

skipif mysql # not compatible
query I rowsort label-1690
SELECT + 40 * 69 * + 74 * COUNT ( * ) AS col2
----
204240

query I rowsort
SELECT ALL + 13 * + 77 * - 57 + 80 + - - 16
----
-56961

query I rowsort
SELECT + 97 + - 53 * 81
----
-4196

query II rowsort
SELECT - - 71 AS col1, + 8 col2
----
71
8

query II rowsort
SELECT ALL - 14, - 32 AS col2
----
-14
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1695
SELECT - COUNT( * ) DIV - + MAX( DISTINCT - 31 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1695
SELECT - COUNT ( * ) / - + MAX ( DISTINCT - 31 ) col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1696
SELECT DISTINCT - COUNT( * ) DIV - 74 * 69 * - 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT - COUNT ( * ) / - 74 * 69 * - 32 AS col2
----
0

query I rowsort
SELECT ALL 59 + + 77
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT DISTINCT + ( - COUNT( * ) ) + 55 * + NULLIF ( - 52, ( - + COUNT( * ) ) ) * - 76 - 89 + - + 71 AS col1
----
217199

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT + ( - COUNT ( * ) ) + 55 * + NULLIF ( - 52, ( - + COUNT ( * ) ) ) * - 76 - 89 + - + 71 AS col1
----
217199

query I rowsort
SELECT - 33 * 91 + + - 31
----
-3034

query II rowsort
SELECT ALL + 45 + 23 AS col1, 76 * 80
----
68
6080

onlyif mysql # aggregate syntax: 
query II rowsort label-1701
SELECT ALL COUNT( * ) * + + 96 AS col1, COUNT( * ) * 84 * - 38
----
96
-3192

skipif mysql # not compatible
query II rowsort label-1701
SELECT ALL COUNT ( * ) * + + 96 AS col1, COUNT ( * ) * 84 * - 38
----
96
-3192

query I rowsort
SELECT ALL 86 + 91
----
177

onlyif mysql # aggregate syntax: 
query II rowsort label-1703
SELECT DISTINCT 21 + + - 74, ( MAX( DISTINCT 73 ) ) + - COUNT( * ) - - 39 AS col0
----
-53
111

skipif mysql # not compatible
query II rowsort label-1703
SELECT DISTINCT 21 + + - 74, ( MAX ( DISTINCT 73 ) ) + - COUNT ( * ) - - 39 AS col0
----
-53
111

query I rowsort
SELECT DISTINCT 85 - - 38
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT DISTINCT + COUNT( * ) - + 36 + + 85 * + 43 AS col2
----
3620

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT + COUNT ( * ) - + 36 + + 85 * + 43 AS col2
----
3620

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT DISTINCT - COUNT( * ) * 33 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT - COUNT ( * ) * 33 AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1707
SELECT DISTINCT 72 * + 68 AS col2, - CAST( NULL AS SIGNED ) * - 56 * COUNT( DISTINCT - 41 ) * + + 14 + - ( + - ( + COUNT( * ) ) ) / + + 32 AS col2
----
4896
NULL

skipif mysql # not compatible
query II rowsort label-1707
SELECT DISTINCT 72 * + 68 AS col2, - CAST ( NULL AS INTEGER ) * - 56 * COUNT ( DISTINCT - 41 ) * + + 14 + - ( + - ( + COUNT ( * ) ) ) / + + 32 AS col2
----
4896
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT 1 + - NULLIF ( + 28, - - COUNT( * ) ) * COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-1708
SELECT 1 + - NULLIF ( + 28, - - COUNT ( * ) ) * COUNT ( * )
----
-27

query I rowsort
SELECT - 22 - + ( - 43 ) * + - 80 col2
----
-3462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1710
SELECT ALL SUM( DISTINCT 89 ) - + - CAST( NULL AS SIGNED ) * + + 44 * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL SUM ( DISTINCT 89 ) - + - CAST ( NULL AS INTEGER ) * + + 44 * 75
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1713
SELECT ALL + COUNT( * ) * - - ( - 57 ) * 26 - - 49 AS col1, + 32 AS col1
----
-1433
32

skipif mysql # not compatible
query II rowsort label-1713
SELECT ALL + COUNT ( * ) * - - ( - 57 ) * 26 - - 49 AS col1, + 32 AS col1
----
-1433
32

query II rowsort
SELECT 70 + 39 AS col0, 99 * + 30 * + 19 AS col1
----
109
56430

onlyif mysql # aggregate syntax: 
query II rowsort label-1715
SELECT COUNT( * ) + + 73 AS col1, - ( 87 ) * + - ( + - 94 ) + + 91 + - COALESCE ( - 46, - 99 ) col0
----
74
-8041

skipif mysql # not compatible
query II rowsort label-1715
SELECT COUNT ( * ) + + 73 AS col1, - ( 87 ) * + - ( + - 94 ) + + 91 + - COALESCE ( - 46, - 99 ) col0
----
74
-8041

query I rowsort
SELECT DISTINCT - COALESCE ( - + 87, - 15 ) AS col0
----
87

query I rowsort
SELECT + 29 + - + 9 + - + 53 * - 91
----
4843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1718
SELECT DISTINCT - 26 DIV + SUM( + 50 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT - 26 / + SUM ( + 50 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1719
SELECT 96 * - + 4 DIV + + 94 DIV - 9 * + - COUNT( * ), - COUNT( * ) - + + 44 * - - 6 AS col0
----
0
-265

skipif mysql # not compatible
query II rowsort label-1719
SELECT 96 * - + 4 / + + 94 / - 9 * + - COUNT ( * ), - COUNT ( * ) - + + 44 * - - 6 AS col0
----
0
-265

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT 39 + + - CASE + 14 WHEN ( + + 39 ) THEN NULL WHEN + MAX( - 41 ) * + + 44 * - 99 / - SUM( + 1 ) THEN NULL ELSE COUNT( * ) END + 58 * + 9 * 65
----
33968

skipif mysql # not compatible
query I rowsort label-1720
SELECT 39 + + - CASE + 14 WHEN ( + + 39 ) THEN NULL WHEN + MAX ( - 41 ) * + + 44 * - 99 / - SUM ( + 1 ) THEN NULL ELSE COUNT ( * ) END + 58 * + 9 * 65
----
33968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1721
SELECT ALL + + 12 DIV + CASE - 55 WHEN - + COUNT( * ) * + - 52 * - 95 THEN NULL WHEN + + ( - MIN( DISTINCT + - 51 ) ) THEN NULL ELSE 65 * + ( + 74 ) * - 68 END * - COUNT( + 1 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL + + 12 / + CASE - 55 WHEN - + COUNT ( * ) * + - 52 * - 95 THEN NULL WHEN + + ( - MIN ( DISTINCT + - 51 ) ) THEN NULL ELSE 65 * + ( + 74 ) * - 68 END * - COUNT ( + 1 ) AS col1
----
0

query II rowsort
SELECT DISTINCT - + 0 + - 8 AS col1, 63 * - 20 AS col1
----
-8
-1260

query I rowsort
SELECT ALL + 2 * 28 + - + 47 + 5 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT ALL - COUNT( * ) * - + 30 * - 62 + 51 + + 84
----
-1725

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL - COUNT ( * ) * - + 30 * - 62 + 51 + + 84
----
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT 73 * - - 32 * - - COUNT( ALL + 97 ) col2
----
2336

skipif mysql # not compatible
query I rowsort label-1725
SELECT 73 * - - 32 * - - COUNT ( ALL + 97 ) col2
----
2336

onlyif mysql # aggregate syntax: 
query II rowsort label-1726
SELECT COUNT( DISTINCT ( + + ( + 66 ) ) ) AS col1, - ( ( - 36 ) ) + 93 AS col2
----
1
129

skipif mysql # not compatible
query II rowsort label-1726
SELECT COUNT ( DISTINCT ( + + ( + 66 ) ) ) AS col1, - ( ( - 36 ) ) + 93 AS col2
----
1
129

query I rowsort
SELECT 63 * - 5 AS col1
----
-315

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

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

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

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL 74 * CAST ( NULL AS INTEGER ) * - 54
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1730
SELECT COALESCE ( + 18, + 20 * + - 43 DIV + 59, - COUNT( * ) ) * 33 + + 6 * + - 57 AS col2
----
252

skipif mysql # not compatible
query I rowsort label-1730
SELECT COALESCE ( + 18, + 20 * + - 43 / + 59, - COUNT ( * ) ) * 33 + + 6 * + - 57 AS col2
----
252

query II rowsort
SELECT DISTINCT ( 20 ) * 25 - + 9 AS col0, 59
----
491
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1732
SELECT + 90 * - + NULLIF ( + 24, COUNT( * ) ) + 38 + 38 DIV + - 25
----
-2123

skipif mysql # not compatible
query I rowsort label-1732
SELECT + 90 * - + NULLIF ( + 24, COUNT ( * ) ) + 38 + 38 / + - 25
----
-2123

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

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

query I rowsort
SELECT ALL 26 * + 7
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1735
SELECT + COALESCE ( ( - 41 ), - 5 ) * + - CASE - MAX( ALL + 81 ) WHEN + - CAST( NULL AS SIGNED ) THEN NULL WHEN 40 THEN + 87 * + 87 - 95 * + 11 + - 11 + 13 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1735
SELECT + COALESCE ( ( - 41 ), - 5 ) * + - CASE - MAX ( ALL + 81 ) WHEN + - CAST ( NULL AS INTEGER ) THEN NULL WHEN 40 THEN + 87 * + 87 - 95 * + 11 + - 11 + 13 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT ALL + 42 * ( + COALESCE ( 41, - 7 * + 17 + + 33 * + + 94 * + + COUNT( * ), - - 12 ) ) col0
----
1722

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL + 42 * ( + COALESCE ( 41, - 7 * + 17 + + 33 * + + 94 * + + COUNT ( * ), - - 12 ) ) col0
----
1722

query I rowsort
SELECT DISTINCT 73 * NULLIF ( 34, - + 25 ) * + + 91 AS col1
----
225862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1738
SELECT - 46 * - CAST( - 61 AS SIGNED ) + + - 4 AS col2
----
-2810

skipif mysql # not compatible
query I rowsort label-1738
SELECT - 46 * - CAST ( - 61 AS INTEGER ) + + - 4 AS col2
----
-2810

query II rowsort
SELECT ALL + 52 AS col0, - 13 + 9 AS col2
----
52
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1740
SELECT 29 * + + 38 + + + 3 + - 87 + - CASE - + 73 WHEN - - CAST( NULL AS SIGNED ) * 45 + + 40 * + 42 - - - 3 THEN + + 29 * + NULLIF ( - 64, + 53 * + MAX( 44 ) ) END + - 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1740
SELECT 29 * + + 38 + + + 3 + - 87 + - CASE - + 73 WHEN - - CAST ( NULL AS INTEGER ) * 45 + + 40 * + 42 - - - 3 THEN + + 29 * + NULLIF ( - 64, + 53 * + MAX ( 44 ) ) END + - 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1741
SELECT + + 54 * - - 91 * + ( 82 ) * - + ( - - 19 ) + + + COALESCE ( 79, - - 4 ), + COUNT( * ) * - 82 col0
----
-7655933
-82

skipif mysql # not compatible
query II rowsort label-1741
SELECT + + 54 * - - 91 * + ( 82 ) * - + ( - - 19 ) + + + COALESCE ( 79, - - 4 ), + COUNT ( * ) * - 82 col0
----
-7655933
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-1742
SELECT DISTINCT 11 AS col0, COALESCE ( - + 9, 38 ) DIV - + 78
----
11
0

skipif mysql # not compatible
query II rowsort label-1742
SELECT DISTINCT 11 AS col0, COALESCE ( - + 9, 38 ) / - + 78
----
11
0

query I rowsort
SELECT - NULLIF ( ( 40 ), 97 * + ( - 80 ) ) AS col0
----
-40

query II rowsort
SELECT DISTINCT + 67 AS col0, + 66
----
67
66

query I rowsort
SELECT + 13 * - 35
----
-455

query I rowsort
SELECT + 52 - - + 80
----
132

query I rowsort
SELECT ALL - 96 * + - 27 AS col1
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT ALL 96 + - 54 + + CASE + - 8 WHEN + 25 THEN - 61 ELSE NULL END * - 23 / 56 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL 96 + - 54 + + CASE + - 8 WHEN + 25 THEN - 61 ELSE NULL END * - 23 / 56 / COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT - + 52 * - + 1 + CASE 67 WHEN ( 85 ) THEN NULL WHEN + COUNT( * ) THEN + COUNT( * ) END + - 5 + - - MIN( DISTINCT 38 ) + + 36 * + 50 - + 15 * + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT - + 52 * - + 1 + CASE 67 WHEN ( 85 ) THEN NULL WHEN + COUNT ( * ) THEN + COUNT ( * ) END + - 5 + - - MIN ( DISTINCT 38 ) + + 36 * + 50 - + 15 * + 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1751
SELECT - COUNT( * ), ( - 15 ) + + + 73 + 19 * 54 * ( + COUNT( * ) ) + + COUNT( * ) + + + COUNT( DISTINCT 41 ) + - 68 * + + 77 + - 70 AS col0
----
-1
-4220

skipif mysql # not compatible
query II rowsort label-1751
SELECT - COUNT ( * ), ( - 15 ) + + + 73 + 19 * 54 * ( + COUNT ( * ) ) + + COUNT ( * ) + + + COUNT ( DISTINCT 41 ) + - 68 * + + 77 + - 70 AS col0
----
-1
-4220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1752
SELECT ALL - - 97 + + 42 + + - 93 * + 92 * CAST( - ( - 86 ) AS SIGNED ) AS col2
----
-735677

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL - - 97 + + 42 + + - 93 * + 92 * CAST ( - ( - 86 ) AS INTEGER ) AS col2
----
-735677

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

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

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

query I rowsort
SELECT DISTINCT 81 + - 0 AS col2
----
81

query II rowsort
SELECT ALL 99 + - 87 + - 64, 1 + + - 74 AS col0
----
-52
-73

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

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

query I rowsort
SELECT DISTINCT ( 7 ) AS col0
----
7

query I rowsort
SELECT + 93 + + 34 AS col0
----
127

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1761
SELECT 19 * - - 94 + + + 80 - - + 78 * + ( + - 79 ) * 65 col1, + ( 98 ) DIV + COUNT( * )
----
-398664
98

skipif mysql # not compatible
query II rowsort label-1761
SELECT 19 * - - 94 + + + 80 - - + 78 * + ( + - 79 ) * 65 col1, + ( 98 ) / + COUNT ( * )
----
-398664
98

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

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

query I rowsort
SELECT ALL - 56 * 21
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT - COUNT( * ) + + + 57
----
56

skipif mysql # not compatible
query I rowsort label-1764
SELECT - COUNT ( * ) + + + 57
----
56

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

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

query I rowsort
SELECT + 78 * - 66 AS col2
----
-5148

query I rowsort
SELECT ALL + CASE 18 WHEN - 88 THEN - 54 ELSE NULL END
----
NULL

query I rowsort
SELECT NULLIF ( - 80, + 72 )
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-1769
SELECT - SUM( + + 17 ) - + COUNT( * ) + - 48, + CASE - 67 WHEN 75 THEN NULL ELSE - 49 END AS col2
----
-66
-49

skipif mysql # not compatible
query II rowsort label-1769
SELECT - SUM ( + + 17 ) - + COUNT ( * ) + - 48, + CASE - 67 WHEN 75 THEN NULL ELSE - 49 END AS col2
----
-66
-49

query I rowsort
SELECT DISTINCT 83 * - + 9 + - 84 AS col2
----
-831

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL - 14 * - 45 + + - COUNT( * )
----
629

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL - 14 * - 45 + + - COUNT ( * )
----
629

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT DISTINCT + ( + 99 ) * + COUNT( * ) + + 0 + 22 + + 80 * + 56 AS col1
----
4601

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT + ( + 99 ) * + COUNT ( * ) + + 0 + 22 + + 80 * + 56 AS col1
----
4601

query I rowsort
SELECT DISTINCT + + CASE + 43 WHEN 36 THEN + 10 END * ( + 29 ) + - 97 + - 44
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT - 29 * - 77 - + + MIN( DISTINCT + 66 ) + + - 7 * 36
----
1915

skipif mysql # not compatible
query I rowsort label-1775
SELECT - 29 * - 77 - + + MIN ( DISTINCT + 66 ) + + - 7 * 36
----
1915

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT ALL + NULLIF ( COUNT( * ), + + 82 * - - COUNT( * ) ) * 74 + - - 33 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL + NULLIF ( COUNT ( * ), + + 82 * - - COUNT ( * ) ) * 74 + - - 33 AS col2
----
107

query II rowsort
SELECT - + 62 + + NULLIF ( - - 33, + 79 ) AS col1, 42
----
-29
42

query I rowsort
SELECT + + 56 - - 78
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT ALL + COUNT( * ) * 36 + - 77 + - 58
----
-99

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL + COUNT ( * ) * 36 + - 77 + - 58
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1780
SELECT + 73 + + 44 + 75 + + 11 AS col0, 91 / 78 * + CASE - 77 WHEN - 45 THEN NULL WHEN - ( 44 ) + CAST( NULL AS SIGNED ) THEN - 96 - - CASE WHEN NOT - MAX( 93 ) BETWEEN ( COUNT( * ) * - 18 + - COALESCE ( - ( ( - 32 ) ), - 33 + 67 / 10, ( NULLIF ( ( - CAST( - 43 AS SIGNED ) ), CASE COUNT( * ) WHEN + ( - 19 ) * 47 THEN 59 END + 54 ) ), 84 + - CASE + 35 WHEN 38 THEN NULL ELSE 26 * - NULLIF ( 41, MAX( CAST( NULL AS SIGNED ) ) ) END ) * 21 ) AND 26 + 13 * + ( - MIN( DISTINCT 28 ) ) THEN NULL ELSE ( COUNT( * ) ) END END * 45 AS col1
----
203
NULL

skipif mysql # not compatible
query II rowsort label-1780
SELECT + 73 + + 44 + 75 + + 11 AS col0, 91 / 78 * + CASE - 77 WHEN - 45 THEN NULL WHEN - ( 44 ) + CAST ( NULL AS INTEGER ) THEN - 96 - - CASE WHEN NOT - MAX ( 93 ) BETWEEN ( COUNT ( * ) * - 18 + - COALESCE ( - ( ( - 32 ) ), - 33 + 67 / 10, ( NULLIF ( ( - CAST ( - 43 AS INTEGER ) ), CASE COUNT ( * ) WHEN + ( - 19 ) * 47 THEN 59 END + 54 ) ), 84 + - CASE + 35 WHEN 38 THEN NULL ELSE 26 * - NULLIF ( 41, MAX ( CAST ( NULL AS INTEGER ) ) ) END ) * 21 ) AND 26 + 13 * + ( - MIN ( DISTINCT 28 ) ) THEN NULL ELSE ( COUNT ( * ) ) END END * 45 AS col1
----
203
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT + 86 + + 31 * COUNT( * )
----
117

skipif mysql # not compatible
query I rowsort label-1781
SELECT + 86 + + 31 * COUNT ( * )
----
117

query I rowsort
SELECT ALL NULLIF ( - 2, - 90 * - 35 * 12 / - + 72 ) AS col2
----
-2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1784
SELECT ALL MIN( DISTINCT 13 ) + + 89 - - + ( 98 ) * - 53 * SUM( + 54 ) + 75 AS col2, - 23 AS col2
----
-280299
-23

skipif mysql # not compatible
query II rowsort label-1784
SELECT ALL MIN ( DISTINCT 13 ) + + 89 - - + ( 98 ) * - 53 * SUM ( + 54 ) + 75 AS col2, - 23 AS col2
----
-280299
-23

query I rowsort
SELECT DISTINCT 87 + 6 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL CASE + 26 WHEN - NULLIF ( + CASE + 63 WHEN + 78 THEN 67 * 62 + - 87 * 21 * - COUNT( * ) END, + 48 ) THEN NULL ELSE - 26 END
----
-26

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL CASE + 26 WHEN - NULLIF ( + CASE + 63 WHEN + 78 THEN 67 * 62 + - 87 * 21 * - COUNT ( * ) END, + 48 ) THEN NULL ELSE - 26 END
----
-26

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

skipif mysql # not compatible
query II rowsort label-1787
SELECT CAST ( + 13 AS INTEGER ), COUNT ( * ) AS col1
----
13
1

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

query II rowsort
SELECT - 51 + ( 8 ) AS col2, - 40 AS col1
----
-43
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1790
SELECT 10, CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-1790
SELECT 10, CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT ALL 27 * + - ( - + MAX( - 18 ) )
----
-486

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL 27 * + - ( - + MAX ( - 18 ) )
----
-486

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1792
SELECT ( - MIN( DISTINCT - - 62 ) ) DIV - + 67 + - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1792
SELECT ( - MIN ( DISTINCT - - 62 ) ) / - + 67 + - + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 62 * - 95 AS col1
----
-5890

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1795
SELECT 98 DIV + 21
----
4

skipif mysql # not compatible
query I rowsort label-1795
SELECT 98 / + 21
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT SUM( - ( - - 24 ) ) - - 9
----
-15

skipif mysql # not compatible
query I rowsort label-1796
SELECT SUM ( - ( - - 24 ) ) - - 9
----
-15

query II rowsort
SELECT 83, - 44 AS col0
----
83
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT 79 * - CASE - 59 WHEN + + SUM( 13 ) * + 90 + + ( + 49 ) + + ( + 88 ) + - 91 THEN 59 WHEN + - 86 THEN 31 * 1 / - 33 ELSE NULL END * + 39 + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1798
SELECT 79 * - CASE - 59 WHEN + + SUM ( 13 ) * + 90 + + ( + 49 ) + + ( + 88 ) + - 91 THEN 59 WHEN + - 86 THEN 31 * 1 / - 33 ELSE NULL END * + 39 + 8
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT 88 DIV + + 77
----
1

skipif mysql # not compatible
query I rowsort label-1799
SELECT 88 / + + 77
----
1

query II rowsort
SELECT + 57 AS col0, 71 col1
----
57
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT 33 * + MIN( 99 )
----
3267

skipif mysql # not compatible
query I rowsort label-1801
SELECT 33 * + MIN ( 99 )
----
3267

onlyif mysql # DIV for integer division: 
query I rowsort label-1802
SELECT DISTINCT 14 + - 82 DIV NULLIF ( 99, + 48 )
----
14

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT 14 + - 82 / NULLIF ( 99, + 48 )
----
14

query I rowsort
SELECT 7 - 85
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT DISTINCT MAX( DISTINCT 49 ) + - 85
----
-36

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT MAX ( DISTINCT 49 ) + - 85
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1805
SELECT ALL + 41 + COUNT( * ) - - MIN( ALL + 9 ) DIV - + 65
----
42

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL + 41 + COUNT ( * ) - - MIN ( ALL + 9 ) / - + 65
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT ALL - - COUNT( * ) + + - ( + 32 ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL - - COUNT ( * ) + + - ( + 32 ) col1
----
-31

query I rowsort
SELECT + 90 + + 80 * + 23 AS col2
----
1930

query II rowsort
SELECT + - 15 AS col2, 81
----
-15
81

query II rowsort
SELECT ALL - + 65 AS col1, + 84 col2
----
-65
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT - 1 * 95 + + + COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-1810
SELECT - 1 * 95 + + + COUNT ( * ) AS col1
----
-94

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

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL + + ( + + COUNT ( * ) ) + + + 0 * 5 * + COUNT ( * ) col0
----
1

query I rowsort
SELECT - 17 + - 78
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT ALL - COUNT( * ) + CASE SUM( DISTINCT + + 51 ) WHEN + 4 THEN - 35 WHEN 6 * + 8 + 72 THEN NULL END + + 89 / + MIN( DISTINCT - 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL - COUNT ( * ) + CASE SUM ( DISTINCT + + 51 ) WHEN + 4 THEN - 35 WHEN 6 * + 8 + 72 THEN NULL END + + 89 / + MIN ( DISTINCT - 74 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT DISTINCT - + 64 + + 83 * COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT - + 64 + + 83 * COUNT ( * ) AS col2
----
19

query I rowsort
SELECT DISTINCT + - 93 * - + 53 AS col1
----
4929

query I rowsort
SELECT ALL - 44 - 98
----
-142

query I rowsort
SELECT + 6 * - - 62 AS col2
----
372

query I rowsort
SELECT ALL 3 - 52
----
-49

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1820
SELECT 39 AS col0, + COUNT( ALL - 37 )
----
39
1

skipif mysql # not compatible
query II rowsort label-1820
SELECT 39 AS col0, + COUNT ( ALL - 37 )
----
39
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT SUM( 39 ) - + ( + 67 ) * + 98 * - + 88
----
577847

skipif mysql # not compatible
query I rowsort label-1821
SELECT SUM ( 39 ) - + ( + 67 ) * + 98 * - + 88
----
577847

query I rowsort
SELECT DISTINCT + 73 * - 64
----
-4672

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT ALL 51 DIV + 38 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL 51 / + 38 AS col1
----
1

query II rowsort
SELECT ALL 34 AS col2, - 23 col0
----
34
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1825
SELECT COUNT( DISTINCT - 69 ) + 65 DIV 76 * - - 64 * + 52
----
1

skipif mysql # not compatible
query I rowsort label-1825
SELECT COUNT ( DISTINCT - 69 ) + 65 / 76 * - - 64 * + 52
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1826
SELECT CAST( NULL AS SIGNED ) * 60 * 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT CAST ( NULL AS INTEGER ) * 60 * 35 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1828
SELECT ALL 55 * NULLIF ( 43, + 90 - - - CAST( 97 AS SIGNED ) * + - 55 + - - 42 ) AS col1
----
2365

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL 55 * NULLIF ( 43, + 90 - - - CAST ( 97 AS INTEGER ) * + - 55 + - - 42 ) AS col1
----
2365

query I rowsort
SELECT DISTINCT 14 + - 39 - 23 + + 57 + + 31 AS col0
----
40

query I rowsort
SELECT DISTINCT 73 + - - 52
----
125

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL COUNT( * ) + 26 * + 53 AS col1
----
1379

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL COUNT ( * ) + 26 * + 53 AS col1
----
1379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1833
SELECT ALL 8 + - 80 - - + 7 + - 73 + + - CAST( - COUNT( - - 40 ) AS SIGNED ) + + 11 * - ( MIN( DISTINCT + 97 ) ) + + 82
----
-1122

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL 8 + - 80 - - + 7 + - 73 + + - CAST ( - COUNT ( - - 40 ) AS INTEGER ) + + 11 * - ( MIN ( DISTINCT + 97 ) ) + + 82
----
-1122

query I rowsort
SELECT ALL - + ( + - 7 ) + - 13 + + 83 + - 57 * 86 + - 4 AS col2
----
-4829

query II rowsort
SELECT DISTINCT - - 31 AS col1, - 74 AS col0
----
31
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT - 5 + + CASE + 64 WHEN - SUM( - 14 ) THEN NULL ELSE + 18 END * + COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1836
SELECT - 5 + + CASE + 64 WHEN - SUM ( - 14 ) THEN NULL ELSE + 18 END * + COUNT ( * ) AS col0
----
13

query I rowsort
SELECT DISTINCT - 67 + + 68
----
1

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

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

query II rowsort
SELECT + + 16, - 96 col1
----
16
-96

query II rowsort
SELECT + - 60, - 53 col0
----
-60
-53

query I rowsort
SELECT - ( 2 ) * - + COALESCE ( 17, 99 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1842
SELECT ALL 15 DIV + 95 + - COUNT( * ) * + 86 AS col2
----
-86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL + SUM( ALL - 19 ) - + 28 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL + SUM ( ALL - 19 ) - + 28 AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1844
SELECT DISTINCT 47 * - 88 * CAST( NULL AS SIGNED ) * + 40 AS col0, - 13
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-1844
SELECT DISTINCT 47 * - 88 * CAST ( NULL AS INTEGER ) * + 40 AS col0, - 13
----
NULL
-13

query I rowsort
SELECT ALL - + 78 - + 74
----
-152

query I rowsort
SELECT DISTINCT - 60 col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1847
SELECT ALL - + 99 * - - CAST( NULL AS SIGNED ) col0, 85 * + 24 + 50 * 86 * + 40 * + SUM( 69 )
----
NULL
11870040

skipif mysql # not compatible
query II rowsort label-1847
SELECT ALL - + 99 * - - CAST ( NULL AS INTEGER ) col0, 85 * + 24 + 50 * 86 * + 40 * + SUM ( 69 )
----
NULL
11870040

query I rowsort
SELECT 19 + - - 83
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT - COUNT( * ) + - + 42 + - + 91
----
-134

skipif mysql # not compatible
query I rowsort label-1849
SELECT - COUNT ( * ) + - + 42 + - + 91
----
-134

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

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

query I rowsort
SELECT - 62 * - 49 * + 2 AS col2
----
6076

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT - - COUNT( + 62 ) + 92 + - 1
----
92

skipif mysql # not compatible
query I rowsort label-1852
SELECT - - COUNT ( + 62 ) + 92 + - 1
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1853
SELECT - NULLIF ( ( - 55 ), 93 ) + 58 * + 7 DIV - COUNT( * ) AS col0
----
-351

skipif mysql # not compatible
query I rowsort label-1853
SELECT - NULLIF ( ( - 55 ), 93 ) + 58 * + 7 / - COUNT ( * ) AS col0
----
-351

query I rowsort
SELECT ALL - 96 * - - 54
----
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT - 16 + - COUNT( * ) * 14
----
-30

skipif mysql # not compatible
query I rowsort label-1855
SELECT - 16 + - COUNT ( * ) * 14
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1856
SELECT DISTINCT - 15 DIV + 13 * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT - 15 / + 13 * + COUNT ( * )
----
-1

query I rowsort
SELECT - 80 * - ( 21 )
----
1680

onlyif mysql # aggregate syntax: 
query II rowsort label-1858
SELECT + 86 + + + COUNT( * ), 7 AS col2
----
87
7

skipif mysql # not compatible
query II rowsort label-1858
SELECT + 86 + + + COUNT ( * ), 7 AS col2
----
87
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1859
SELECT - 97 DIV - - 25 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1859
SELECT - 97 / - - 25 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT DISTINCT - 79 + CASE - 13 WHEN + 14 - - AVG ( ALL CAST( NULL AS SIGNED ) ) * + - SUM( DISTINCT - 39 ) THEN NULL WHEN 57 THEN + COUNT( * ) + - + 84 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT - 79 + CASE - 13 WHEN + 14 - - AVG ( ALL CAST ( NULL AS INTEGER ) ) * + - SUM ( DISTINCT - 39 ) THEN NULL WHEN 57 THEN + COUNT ( * ) + - + 84 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 88, 6 * + 16 - + 77 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT + 38 + - COUNT( * ) + + NULLIF ( + 17, 56 + - ( COUNT( DISTINCT 78 ) ) * 46 )
----
54

skipif mysql # not compatible
query I rowsort label-1862
SELECT + 38 + - COUNT ( * ) + + NULLIF ( + 17, 56 + - ( COUNT ( DISTINCT 78 ) ) * 46 )
----
54

query I rowsort
SELECT ALL - 25 * + 11
----
-275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1864
SELECT + 43 + 29 * COUNT( * ) + - 95 + - + 30 DIV - 15 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1864
SELECT + 43 + 29 * COUNT ( * ) + - 95 + - + 30 / - 15 AS col2
----
-21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1866
SELECT ALL + 61 + + CAST( CAST( - 5 AS SIGNED ) AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL + 61 + + CAST ( CAST ( - 5 AS INTEGER ) AS INTEGER )
----
56

query I rowsort
SELECT DISTINCT ( + 24 ) AS col1
----
24

query I rowsort
SELECT ALL - 41 * 75 + + - 82 AS col0
----
-3157

query I rowsort
SELECT + NULLIF ( - 39, - NULLIF ( + 32, 9 ) )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT + COUNT( * ) * - COALESCE ( + 3, + + 94 + + - 76 ) + 42 - 58 * + CASE 6 WHEN + MIN( ALL + 5 ) * - SUM( DISTINCT 29 ) + + ( - COUNT( * ) ) / - - 52 * + 84 THEN - 14 WHEN 21 THEN 74 WHEN 84 THEN NULL END * + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT + COUNT ( * ) * - COALESCE ( + 3, + + 94 + + - 76 ) + 42 - 58 * + CASE 6 WHEN + MIN ( ALL + 5 ) * - SUM ( DISTINCT 29 ) + + ( - COUNT ( * ) ) / - - 52 * + 84 THEN - 14 WHEN 21 THEN 74 WHEN 84 THEN NULL END * + 82 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT - + 15 DIV + + NULLIF ( 64, 64 - - ( 5 ) + 76 + - 36 ) + + + 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1871
SELECT - + 15 / + + NULLIF ( 64, 64 - - ( 5 ) + 76 + - 36 ) + + + 2 AS col0
----
2

query I rowsort
SELECT DISTINCT + 58 * - - 35 + - + 1 + 73 * - - 82 + + 19 AS col2
----
8034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1873
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1, 0 * + 30 + + 65 AS col2
----
NULL
65

skipif mysql # not compatible
query II rowsort label-1873
SELECT ALL COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1, 0 * + 30 + + 65 AS col2
----
NULL
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT + - 69 + + + COUNT( * ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-1874
SELECT + - 69 + + + COUNT ( * ) AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1875
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 54 / 65 + + CASE - + 48 WHEN + 46 / - 38 THEN + 80 WHEN - 41 - + 74 - - CASE COUNT( * ) WHEN - 94 THEN + 87 END + + 81 THEN + - ( 88 ) * - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 54 / 65 + + CASE - + 48 WHEN + 46 / - 38 THEN + 80 WHEN - 41 - + 74 - - CASE COUNT ( * ) WHEN - 94 THEN + 87 END + + 81 THEN + - ( 88 ) * - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL - 19 * + 0 + + + 89 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT DISTINCT + 65 * 14 + - + 74 * - COUNT( * ) + + 23 - 85 * + 5 - 62 + + + ( - 61 )
----
459

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT + 65 * 14 + - + 74 * - COUNT ( * ) + + 23 - 85 * + 5 - 62 + + + ( - 61 )
----
459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1878
SELECT + 79 * + 48 + CASE - CAST( NULL AS SIGNED ) WHEN + 60 * AVG ( DISTINCT - 65 ) + - 34 THEN CASE - CAST( NULL AS SIGNED ) WHEN + 26 * + - 7 * - 97 + + 26 + + 34 + + + COUNT( * ) - ( + 72 ) * CASE - 61 WHEN - COUNT( * ) + + COUNT( * ) THEN - ( - 2 ) * + AVG ( - 3 ) + - MIN( 77 ) * 24 END THEN 95 / - 61 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1878
SELECT + 79 * + 48 + CASE - CAST ( NULL AS INTEGER ) WHEN + 60 * AVG ( DISTINCT - 65 ) + - 34 THEN CASE - CAST ( NULL AS INTEGER ) WHEN + 26 * + - 7 * - 97 + + 26 + + 34 + + + COUNT ( * ) - ( + 72 ) * CASE - 61 WHEN - COUNT ( * ) + + COUNT ( * ) THEN - ( - 2 ) * + AVG ( - 3 ) + - MIN ( 77 ) * 24 END THEN 95 / - 61 END END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT + + COUNT ( DISTINCT 87 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1880
SELECT ALL + 36 * + 98 * - - 1 * + CASE - - 81 WHEN - - 0 THEN - 80 - 15 - - 71 * ( + + 2 ) WHEN - CAST( 68 AS SIGNED ) THEN NULL ELSE NULL END - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) + + 99 + COUNT( * ) + - 52 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL + 36 * + 98 * - - 1 * + CASE - - 81 WHEN - - 0 THEN - 80 - 15 - - 71 * ( + + 2 ) WHEN - CAST ( 68 AS INTEGER ) THEN NULL ELSE NULL END - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) + + 99 + COUNT ( * ) + - 52 / COUNT ( * )
----
NULL

query I rowsort
SELECT - + 92 * + + 70 * 5 AS col0
----
-32200

onlyif mysql # aggregate syntax: 
query II rowsort label-1882
SELECT + - 23 * - - 66 AS col0, - COUNT( * ) * + - 27 + - 25 + - 6 * + - 45 * - 48 + + 42
----
-1518
-12916

skipif mysql # not compatible
query II rowsort label-1882
SELECT + - 23 * - - 66 AS col0, - COUNT ( * ) * + - 27 + - 25 + - 6 * + - 45 * - 48 + + 42
----
-1518
-12916

onlyif mysql # DIV for integer division: 
query I rowsort label-1883
SELECT ALL 4 DIV ( ( + 1 ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL 4 / ( ( + 1 ) ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT + NULLIF ( - NULLIF ( - ( - MAX( ALL 66 ) ), + 45 * - ( + - 7 ) * ( 93 ) + - 75 / + 93 * - 77 ), + - 67 ) * - - MAX( - + 72 ) - - 42 - - 87 * + NULLIF ( + 81, - 88 )
----
11841

skipif mysql # not compatible
query I rowsort label-1884
SELECT + NULLIF ( - NULLIF ( - ( - MAX ( ALL 66 ) ), + 45 * - ( + - 7 ) * ( 93 ) + - 75 / + 93 * - 77 ), + - 67 ) * - - MAX ( - + 72 ) - - 42 - - 87 * + NULLIF ( + 81, - 88 )
----
11841

query II rowsort
SELECT ALL CASE + 3 WHEN + 44 THEN + ( + - 96 ) + 43 ELSE NULL END AS col2, - 58 * - - 26
----
NULL
-1508

query I rowsort
SELECT DISTINCT 39 * - 34
----
-1326

query I rowsort
SELECT ALL + 65 + + 49 + - - 98 * - 69 * + 26 + + + 14
----
-175684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1888
SELECT + CASE COUNT( * ) WHEN 58 THEN + 18 ELSE + MAX( ALL + - CAST( NULL AS SIGNED ) ) END + MIN( DISTINCT + - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT + CASE COUNT ( * ) WHEN 58 THEN + 18 ELSE + MAX ( ALL + - CAST ( NULL AS INTEGER ) ) END + MIN ( DISTINCT + - 89 )
----
NULL

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

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

query I rowsort
SELECT + 56 * - 16 * - 94 AS col1
----
84224

query I rowsort
SELECT DISTINCT - CASE 47 WHEN + - 84 THEN + + ( - 19 ) END + - ( ( - ( + 11 ) ) ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1893
SELECT ALL - 66 + 79 DIV - + COUNT( * ) + - COUNT( ALL - - 19 ) * + 43
----
-188

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL - 66 + 79 / - + COUNT ( * ) + - COUNT ( ALL - - 19 ) * + 43
----
-188

query I rowsort
SELECT - 26 - 10 + - - 75
----
39

query I rowsort
SELECT ALL NULLIF ( - 28, NULLIF ( + 82, - 52 ) )
----
-28

query I rowsort
SELECT - 96 * - - 32
----
-3072

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

skipif mysql # not compatible
query II rowsort label-1897
SELECT - 11, + COUNT ( * ) / + 68 col1
----
-11
0

query II rowsort
SELECT 50, 84 * - 24 AS col2
----
50
-2016

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

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

query I rowsort
SELECT ALL + 9 * 73 AS col0
----
657

query I rowsort
SELECT - + 3 * + 64 * 72 AS col0
----
-13824

query II rowsort
SELECT ALL + 41, 68 AS col2
----
41
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1903
SELECT DISTINCT + - ( COUNT( * ) ) DIV 43 - - 22 * NULLIF ( + ( - 8 ), - 66 ) DIV + 96 + + 94 - - 39 DIV 46
----
93

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT + - ( COUNT ( * ) ) / 43 - - 22 * NULLIF ( + ( - 8 ), - 66 ) / + 96 + + 94 - - 39 / 46
----
93

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

skipif mysql # not compatible
query I rowsort label-1904
SELECT - CAST ( NULL AS INTEGER ) * 48 - + 96
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1905
SELECT DISTINCT 76 DIV - 47
----
-1

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT 76 / - 47
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1906
SELECT DISTINCT + 82, - COUNT( + 45 ) * + + 82 AS col0
----
82
-82

skipif mysql # not compatible
query II rowsort label-1906
SELECT DISTINCT + 82, - COUNT ( + 45 ) * + + 82 AS col0
----
82
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1907
SELECT - - 77 + - CASE 32 WHEN + 99 * - 57 THEN + 17 + 1 + 67 * - ( - - CAST( NULL AS SIGNED ) ) * - NULLIF ( - 73, 50 - + 65 ) + MAX( DISTINCT - + 33 ) WHEN COUNT( ALL 29 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT - - 77 + - CASE 32 WHEN + 99 * - 57 THEN + 17 + 1 + 67 * - ( - - CAST ( NULL AS INTEGER ) ) * - NULLIF ( - 73, 50 - + 65 ) + MAX ( DISTINCT - + 33 ) WHEN COUNT ( ALL 29 ) THEN NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT - 23 * + + 81 + - + 91 AS col2
----
-1954

query I rowsort
SELECT DISTINCT 65 * + 61 * - 87
----
-344955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1911
SELECT + 11 * 36 + - 61 * - ( + CASE - SUM( DISTINCT 53 ) WHEN - 56 / - + 20 + - ( - COUNT( * ) ) + - 86 * 28 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN + + COUNT( * ) + - 31 END ) / - 71 * + COALESCE ( + 74, 49 ) - + NULLIF ( + 66, 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1911
SELECT + 11 * 36 + - 61 * - ( + CASE - SUM ( DISTINCT 53 ) WHEN - 56 / - + 20 + - ( - COUNT ( * ) ) + - 86 * 28 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN + + COUNT ( * ) + - 31 END ) / - 71 * + COALESCE ( + 74, 49 ) - + NULLIF ( + 66, 71 ) AS col2
----
NULL

query I rowsort
SELECT + ( - 75 ) * 50
----
-3750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1913
SELECT ALL CAST( - - 35 AS SIGNED ) * - 29 AS col2, + COUNT( * ) col0
----
-1015
1

skipif mysql # not compatible
query II rowsort label-1913
SELECT ALL CAST ( - - 35 AS INTEGER ) * - 29 AS col2, + COUNT ( * ) col0
----
-1015
1

query I rowsort
SELECT - 53 + 16 AS col0
----
-37

query I rowsort
SELECT ALL + 30 * 33
----
990

query I rowsort
SELECT ALL - - ( - 65 ) AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1917
SELECT CASE 79 WHEN + + AVG ( 52 ) + + 46 + 24 + + 34 * - 18 THEN - 78 ELSE + - COUNT( * ) END * - CAST( + 71 AS SIGNED ) col1
----
71

skipif mysql # not compatible
query I rowsort label-1917
SELECT CASE 79 WHEN + + AVG ( 52 ) + + 46 + 24 + + 34 * - 18 THEN - 78 ELSE + - COUNT ( * ) END * - CAST ( + 71 AS INTEGER ) col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT ALL 98 + 32 * - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL 98 + 32 * - COUNT ( * )
----
66

query I rowsort
SELECT DISTINCT 57 + ( - 37 ) + 41
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1920
SELECT 72 + - - COALESCE ( 76, - COUNT( * ) * - 33 * + + 45 ) DIV - 67
----
71

skipif mysql # not compatible
query I rowsort label-1920
SELECT 72 + - - COALESCE ( 76, - COUNT ( * ) * - 33 * + + 45 ) / - 67
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1921
SELECT ALL 44 + - 77 DIV 11 col0
----
37

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL 44 + - 77 / 11 col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1922
SELECT CAST( NULL AS SIGNED ) + - NULLIF ( + 78, - 19 * + 54 ) + COUNT( * ) + 7 * - 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT CAST ( NULL AS INTEGER ) + - NULLIF ( + 78, - 19 * + 54 ) + COUNT ( * ) + 7 * - 79 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL COUNT ( * ) + + + 35 AS col1
----
36

query I rowsort
SELECT ALL - 61 * + 7 AS col0
----
-427

onlyif mysql # aggregate syntax: 
query II rowsort label-1925
SELECT ALL ( - - 84 ) + - - 43 + + - 48 * - + MAX( ( - 74 ) ) AS col2, 98 + 33 * 57
----
-3425
1979

skipif mysql # not compatible
query II rowsort label-1925
SELECT ALL ( - - 84 ) + - - 43 + + - 48 * - + MAX ( ( - 74 ) ) AS col2, 98 + 33 * 57
----
-3425
1979

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT DISTINCT COUNT( * ) + + + ( + COUNT( DISTINCT - 68 ) ) + 54 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT COUNT ( * ) + + + ( + COUNT ( DISTINCT - 68 ) ) + 54 AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1927
SELECT 42 + - 80 DIV + 85 * - ( - 89 )
----
42

skipif mysql # not compatible
query I rowsort label-1927
SELECT 42 + - 80 / + 85 * - ( - 89 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1928
SELECT ALL SUM( DISTINCT + 35 ) * - - 1 * + CASE - 10 WHEN - 28 THEN COALESCE ( MIN( + + 93 ), + 28 * + 17 - + CAST( NULL AS SIGNED ) + - - CAST( + 33 AS DECIMAL ) * 74 ) + - 22 WHEN + SUM( DISTINCT 31 ) THEN NULL END + 25 - 48 / 57 * 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL SUM ( DISTINCT + 35 ) * - - 1 * + CASE - 10 WHEN - 28 THEN COALESCE ( MIN ( + + 93 ), + 28 * + 17 - + CAST ( NULL AS INTEGER ) + - - CAST ( + 33 AS REAL ) * 74 ) + - 22 WHEN + SUM ( DISTINCT 31 ) THEN NULL END + 25 - 48 / 57 * 28 AS col1
----
NULL

query II rowsort
SELECT 51 + + + 38 col1, - 89 AS col1
----
89
-89

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

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

query I rowsort
SELECT ALL + - ( - 32 ) * - 67
----
-2144

onlyif mysql # DIV for integer division: 
query I rowsort label-1932
SELECT ALL + 86 DIV - 69
----
-1

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + 86 / - 69
----
-1

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

query I rowsort
SELECT ALL + 37 * + - 86 AS col2
----
-3182

query I rowsort
SELECT DISTINCT - + ( 0 ) AS col0
----
0

query I rowsort
SELECT ALL + 76 * - 85 + + 36 AS col1
----
-6424

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

skipif mysql # not compatible
query I rowsort label-1937
SELECT 94 * COUNT ( * ) + - + 57 AS col2
----
37

query II rowsort
SELECT - 41 - - 19, 64 + + + 18 AS col2
----
-22
82

query I rowsort
SELECT ALL + + 12 * + 4 AS col1
----
48

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1941
SELECT + 51 * + + 88 AS col0, - 12 DIV - ( - - ( + 69 ) )
----
4488
0

skipif mysql # not compatible
query II rowsort label-1941
SELECT + 51 * + + 88 AS col0, - 12 / - ( - - ( + 69 ) )
----
4488
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1942
SELECT ALL + 85 + COUNT( * ) DIV 75 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL + 85 + COUNT ( * ) / 75 AS col2
----
85

query I rowsort
SELECT ( 27 ) * 38
----
1026

query I rowsort
SELECT 72 * + 46 AS col0
----
3312

onlyif mysql # DIV for integer division: 
query I rowsort label-1945
SELECT - 0 * - 70 + + - 20 DIV + 5
----
-4

skipif mysql # not compatible
query I rowsort label-1945
SELECT - 0 * - 70 + + - 20 / + 5
----
-4

query II rowsort
SELECT DISTINCT - 59 AS col1, 3
----
-59
3

query I rowsort
SELECT ALL COALESCE ( - 26, - + 74 ) + - 21
----
-47

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1949
SELECT ALL + 66 - + 32 * + NULLIF ( - + 49, + NULLIF ( + + CAST( + AVG ( ALL - 64 ) AS SIGNED ), - 4 ) ) - - 53 * - 45
----
-751

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + 66 - + 32 * + NULLIF ( - + 49, + NULLIF ( + + CAST ( + AVG ( ALL - 64 ) AS INTEGER ), - 4 ) ) - - 53 * - 45
----
-751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1950
SELECT ( + - CAST( + COUNT( * ) AS SIGNED ) ) * + 69 + + COUNT( * ) + 70 + + - NULLIF ( - 93, - COUNT( DISTINCT 8 ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-1950
SELECT ( + - CAST ( + COUNT ( * ) AS INTEGER ) ) * + 69 + + COUNT ( * ) + 70 + + - NULLIF ( - 93, - COUNT ( DISTINCT 8 ) ) AS col1
----
95

query I rowsort
SELECT - 86 * - - ( + 6 ) + + 54 + 48 + + 34 + 77 AS col2
----
-303

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

skipif mysql # not compatible
query I rowsort label-1952
SELECT CAST ( NULL AS INTEGER ) / + CAST ( + 13 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT - MIN( - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-1953
SELECT - MIN ( - 16 )
----
16

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

skipif mysql # not compatible
query I rowsort label-1954
SELECT - MIN ( DISTINCT 71 )
----
-71

query II rowsort
SELECT DISTINCT 54 AS col1, 30 AS col1
----
54
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1956
SELECT ALL 31 DIV - COUNT( DISTINCT + - 91 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL 31 / - COUNT ( DISTINCT + - 91 ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT NULLIF ( COUNT( * ), 19 ) - 0 col1
----
1

skipif mysql # not compatible
query I rowsort label-1957
SELECT NULLIF ( COUNT ( * ), 19 ) - 0 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT ALL + 1 * 4 + + 76 * - - COUNT( * ) * - 8
----
-604

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL + 1 * 4 + + 76 * - - COUNT ( * ) * - 8
----
-604

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) + + 3
----
2

skipif mysql # not compatible
query I rowsort label-1959
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) + + 3
----
2

query I rowsort
SELECT 29 + + + 16 AS col2
----
45

query I rowsort
SELECT ALL - ( - 92 ) * - 88
----
-8096

query I rowsort
SELECT ALL + 57 * - - 84
----
4788

query I rowsort
SELECT + 32 * + 37
----
1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1964
SELECT ALL 2 * COALESCE ( - - 73, + COALESCE ( + 74, + COUNT( * ) DIV - 72 DIV 67 + + 47 + COUNT( * ) * - 82 * + 58 ), COALESCE ( - 2, ( CAST( CASE WHEN + 8 >= - 93 + - 44 * 1 THEN + 74 ELSE 34 END AS SIGNED ) ) + 81, + 16 ) )
----
146

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL 2 * COALESCE ( - - 73, + COALESCE ( + 74, + COUNT ( * ) / - 72 / 67 + + 47 + COUNT ( * ) * - 82 * + 58 ), COALESCE ( - 2, ( CAST ( CASE WHEN + 8 >= - 93 + - 44 * 1 THEN + 74 ELSE 34 END AS INTEGER ) ) + 81, + 16 ) )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT COUNT( * ) + + MAX( 75 ) * + 10 AS col1
----
751

skipif mysql # not compatible
query I rowsort label-1965
SELECT COUNT ( * ) + + MAX ( 75 ) * + 10 AS col1
----
751

onlyif mysql # aggregate syntax: 
query II rowsort label-1966
SELECT CASE 3 WHEN - 67 THEN + + COUNT( * ) END - - - 86 AS col2, - 77
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-1966
SELECT CASE 3 WHEN - 67 THEN + + COUNT ( * ) END - - - 86 AS col2, - 77
----
NULL
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1967
SELECT - 59 - - 0 + - - 32 DIV + 33 * COUNT( ( + 81 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-1967
SELECT - 59 - - 0 + - - 32 / + 33 * COUNT ( ( + 81 ) )
----
-59

query I rowsort
SELECT - 68 * - + CASE + 84 WHEN - 78 * - 67 THEN NULL ELSE - 23 END
----
-1564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1969
SELECT ALL - COUNT( + 1 ) * + + 52 DIV - 83 * + 26 + - - 63 * 78 + - + 42 - MIN( ALL + 46 ) AS col2
----
4826

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL - COUNT ( + 1 ) * + + 52 / - 83 * + 26 + - - 63 * 78 + - + 42 - MIN ( ALL + 46 ) AS col2
----
4826

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

query I rowsort
SELECT ALL + + 64 * - 25 AS col1
----
-1600

query I rowsort
SELECT - + 19 * + + 39 * + ( - 19 )
----
14079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1973
SELECT ALL - 29 * + + 88 + - CAST( - 53 AS SIGNED ) + + + MIN( DISTINCT - 71 ) col0
----
-2570

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL - 29 * + + 88 + - CAST ( - 53 AS INTEGER ) + + + MIN ( DISTINCT - 71 ) col0
----
-2570

onlyif mysql # aggregate syntax: 
query II rowsort label-1974
SELECT DISTINCT - + 34 * - 81 + - - 25, + COUNT( * ) AS col2
----
2779
1

skipif mysql # not compatible
query II rowsort label-1974
SELECT DISTINCT - + 34 * - 81 + - - 25, + COUNT ( * ) AS col2
----
2779
1

query I rowsort
SELECT + 88 + + + 60
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1976
SELECT + + CASE - + 95 WHEN 7 / + 35 * + CAST( NULL AS SIGNED ) + + COALESCE ( - 32, 36 ) + + MAX( 99 ) + - 56 + + 61 - + 99 - - 38 THEN 66 * - MAX( + + 26 ) + - 42 ELSE NULL END * - 80 + - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1976
SELECT + + CASE - + 95 WHEN 7 / + 35 * + CAST ( NULL AS INTEGER ) + + COALESCE ( - 32, 36 ) + + MAX ( 99 ) + - 56 + + 61 - + 99 - - 38 THEN 66 * - MAX ( + + 26 ) + - 42 ELSE NULL END * - 80 + - 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1977
SELECT 90 AS col2, + 88 * + COUNT( * ) AS col0
----
90
88

skipif mysql # not compatible
query II rowsort label-1977
SELECT 90 AS col2, + 88 * + COUNT ( * ) AS col0
----
90
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT ALL - - 72 * - 1 * - NULLIF ( + 41, + 50 * - 57 ) + - CASE - - 91 WHEN 64 THEN + 94 WHEN - 39 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL - - 72 * - 1 * - NULLIF ( + 41, + 50 * - 57 ) + - CASE - - 91 WHEN 64 THEN + 94 WHEN - 39 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT - MIN( ALL 75 ) * - COALESCE ( - + 17, + ( - 11 ) ) AS col0
----
-1275

skipif mysql # not compatible
query I rowsort label-1979
SELECT - MIN ( ALL 75 ) * - COALESCE ( - + 17, + ( - 11 ) ) AS col0
----
-1275

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1981
SELECT ALL - 8 * + - CASE + ( - - 94 ) WHEN - 72 * - 48 / 66 THEN - - 88 * - AVG ( ALL + ( + CAST( + + 47 AS SIGNED ) ) ) + 2 END + ( + + 12 ) + 94 + 65 / + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL - 8 * + - CASE + ( - - 94 ) WHEN - 72 * - 48 / 66 THEN - - 88 * - AVG ( ALL + ( + CAST ( + + 47 AS INTEGER ) ) ) + 2 END + ( + + 12 ) + 94 + 65 / + + 73
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1982
SELECT ALL - 61 * - ( 13 ) * + COUNT( * ) DIV COUNT( * ) AS col2
----
793

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL - 61 * - ( 13 ) * + COUNT ( * ) / COUNT ( * ) AS col2
----
793

query II rowsort
SELECT DISTINCT + 68 AS col1, - 4
----
68
-4

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ALL - COUNT( * ) * 85 - - - 84
----
-169

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL - COUNT ( * ) * 85 - - - 84
----
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1987
SELECT - 83 * - 37 + + 51 + + 79 * 18 * + - 12 * + CAST( NULL AS SIGNED ), MAX( + - 88 ) - + + 1 * 26 AS col0
----
NULL
-114

skipif mysql # not compatible
query II rowsort label-1987
SELECT - 83 * - 37 + + 51 + + 79 * 18 * + - 12 * + CAST ( NULL AS INTEGER ), MAX ( + - 88 ) - + + 1 * 26 AS col0
----
NULL
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1988
SELECT - CAST( + MIN( DISTINCT + + 65 ) AS SIGNED ) + + 22 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1988
SELECT - CAST ( + MIN ( DISTINCT + + 65 ) AS INTEGER ) + + 22 AS col1
----
-43

query I rowsort
SELECT ALL + ( - 94 ) AS col1
----
-94

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

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

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

query I rowsort
SELECT + 73 + - ( - 80 )
----
153

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1994
SELECT + COALESCE ( CAST( NULL AS SIGNED ), 92 ) + + 57 - 15
----
134

skipif mysql # not compatible
query I rowsort label-1994
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), 92 ) + + 57 - 15
----
134

query I rowsort
SELECT - 61 * + - 4 * 89 AS col1
----
21716

query II rowsort
SELECT ALL 50 AS col1, + 48
----
50
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1997
SELECT - 63 * - CAST( - 75 AS SIGNED ) * - - 69 + + 41 + 62 * 59 AS col0
----
-322326

skipif mysql # not compatible
query I rowsort label-1997
SELECT - 63 * - CAST ( - 75 AS INTEGER ) * - - 69 + + 41 + 62 * 59 AS col0
----
-322326

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT ALL 25 * + - MIN( ALL - - 46 ) AS col1
----
-1150

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL 25 * + - MIN ( ALL - - 46 ) AS col1
----
-1150

query I rowsort
SELECT + 31 * - + 95 AS col0
----
-2945

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

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

query II rowsort
SELECT DISTINCT 10, 55 AS col1
----
10
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT DISTINCT - COUNT( * ) * - - CASE + 22 WHEN 16 THEN NULL WHEN - + MIN( DISTINCT + 72 ) + - 43 + - + MAX( + 16 ) * + 17 + + + COUNT( ALL + ( + 96 ) ) THEN ( 55 ) / - 67 * + - 50 + - 65 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT - COUNT ( * ) * - - CASE + 22 WHEN 16 THEN NULL WHEN - + MIN ( DISTINCT + 72 ) + - 43 + - + MAX ( + 16 ) * + 17 + + + COUNT ( ALL + ( + 96 ) ) THEN ( 55 ) / - 67 * + - 50 + - 65 END AS col0
----
NULL

query I rowsort
SELECT + - 92 * - 16
----
1472

onlyif mysql # aggregate syntax: 
query II rowsort label-2004
SELECT ALL - 18 AS col2, + 4 + + + 74 + - - 35 + COUNT( * ) * + 9
----
-18
122

skipif mysql # not compatible
query II rowsort label-2004
SELECT ALL - 18 AS col2, + 4 + + + 74 + - - 35 + COUNT ( * ) * + 9
----
-18
122

query II rowsort
SELECT 12, - COALESCE ( + 93, 50 * - 22 ) - COALESCE ( - 54, + 24 ) AS col2
----
12
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-2006
SELECT + 30 + - CASE + COALESCE ( SUM( + 16 ), + + ( - - 80 ) ) WHEN 76 / - 62 THEN NULL WHEN - ( 98 ) / - 95 + + 67 THEN + 55 ELSE NULL END, 71 AS col0
----
NULL
71

skipif mysql # not compatible
query II rowsort label-2006
SELECT + 30 + - CASE + COALESCE ( SUM ( + 16 ), + + ( - - 80 ) ) WHEN 76 / - 62 THEN NULL WHEN - ( 98 ) / - 95 + + 67 THEN + 55 ELSE NULL END, 71 AS col0
----
NULL
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT + 74 * - 69 + COUNT( * ) col2
----
-5105

skipif mysql # not compatible
query I rowsort label-2007
SELECT + 74 * - 69 + COUNT ( * ) col2
----
-5105

onlyif mysql # aggregate syntax: 
query II rowsort label-2008
SELECT + COUNT( * ) + 64 AS col0, 42
----
65
42

skipif mysql # not compatible
query II rowsort label-2008
SELECT + COUNT ( * ) + 64 AS col0, 42
----
65
42

query I rowsort
SELECT ALL 27 + + - 40
----
-13

query I rowsort
SELECT - NULLIF ( + 54, - 46 ) AS col1
----
-54

query I rowsort
SELECT + + 23 + + NULLIF ( - CASE - 23 WHEN 18 THEN - 55 * + 6 + - 22 * - + 85 END, + 49 + - 10 + + + 8 ) + 82 AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( 25 ) + 16 AS col1
----
41

query I rowsort
SELECT ALL - 54 * - ( - 37 )
----
-1998

query I rowsort
SELECT + 19 + - ( - - 43 ) col0
----
-24

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

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL 89 + - 74 + COUNT ( * ) * 19
----
34

query I rowsort
SELECT + 76 - - 25
----
101

query I rowsort
SELECT + 46 * - - 32
----
1472

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

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL 16 * - + COUNT ( + 58 ) AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2019
SELECT DISTINCT 70 DIV - 23 + - + 22 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT 70 / - 23 + - + 22 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-2020
SELECT ALL + 5, COUNT( * ) * + 3 AS col2
----
5
3

skipif mysql # not compatible
query II rowsort label-2020
SELECT ALL + 5, COUNT ( * ) * + 3 AS col2
----
5
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2022
SELECT CAST( + - SUM( + 5 ) AS SIGNED ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-2022
SELECT CAST ( + - SUM ( + 5 ) AS INTEGER ) AS col2
----
-5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2024
SELECT ALL 10 DIV + 35 - - 31
----
31

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL 10 / + 35 - - 31
----
31

query I rowsort
SELECT ALL - 98 * + + 57 * 0 - + 55
----
-55

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ALL - COALESCE ( - + COUNT( * ), COUNT( DISTINCT + ( + 47 ) ), - 36 - - 33 - - 56 ) * + + 75 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL - COALESCE ( - + COUNT ( * ), COUNT ( DISTINCT + ( + 47 ) ), - 36 - - 33 - - 56 ) * + + 75 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ALL + MAX( DISTINCT 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL + MAX ( DISTINCT 8 ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT COALESCE ( + - 56, + COUNT( * ), - 10 * - 17 + + COUNT( * ) + + + ( COUNT( ALL - - 5 ) ) )
----
-56

skipif mysql # not compatible
query I rowsort label-2032
SELECT COALESCE ( + - 56, + COUNT ( * ), - 10 * - 17 + + COUNT ( * ) + + + ( COUNT ( ALL - - 5 ) ) )
----
-56

query II rowsort
SELECT ALL + 3 * - 25 AS col2, + 54 AS col0
----
-75
54

query I rowsort
SELECT NULLIF ( + + 76, + 79 )
----
76

query I rowsort
SELECT ALL ( 10 )
----
10

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

query I rowsort
SELECT - 78 + + 59 col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2038
SELECT ALL + ( + 3 ) DIV - MIN( ALL + 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL + ( + 3 ) / - MIN ( ALL + 2 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT 92 + - COUNT( * ) + + 88 * + 32 col2
----
2907

skipif mysql # not compatible
query I rowsort label-2039
SELECT 92 + - COUNT ( * ) + + 88 * + 32 col2
----
2907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2040
SELECT - NULLIF ( + 77, + + COALESCE ( - + 12, 43 * 69 + + NULLIF ( 73, + CASE + + COUNT( * ) WHEN 66 * + - 1 THEN NULL WHEN - - 71 - + ( - ( + CAST( NULL AS SIGNED ) ) ) + + 55 THEN - CASE - 85 WHEN + MAX( ALL + 40 ) / ( 91 ) + 96 / 29 THEN NULL WHEN 23 THEN 18 * 59 END END ) ) + - COALESCE ( 37 + - 95, + CAST( 88 AS SIGNED ), 86 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-2040
SELECT - NULLIF ( + 77, + + COALESCE ( - + 12, 43 * 69 + + NULLIF ( 73, + CASE + + COUNT ( * ) WHEN 66 * + - 1 THEN NULL WHEN - - 71 - + ( - ( + CAST ( NULL AS INTEGER ) ) ) + + 55 THEN - CASE - 85 WHEN + MAX ( ALL + 40 ) / ( 91 ) + 96 / 29 THEN NULL WHEN 23 THEN 18 * 59 END END ) ) + - COALESCE ( 37 + - 95, + CAST ( 88 AS INTEGER ), 86 ) )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2041
SELECT ALL + CAST( NULL AS SIGNED ) + + + CASE - - MIN( DISTINCT + 84 ) WHEN - ( - ( + 73 ) ) + + + 18 THEN - + COUNT( * ) * - 20 * CAST( - 94 AS SIGNED ) - - - 98 + - CAST( + 69 AS DECIMAL ) + + NULLIF ( + + 47, + 64 ) * - 20 END - + 23 + 86 * - 13 + 46 * - COUNT( * ) * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL + CAST ( NULL AS INTEGER ) + + + CASE - - MIN ( DISTINCT + 84 ) WHEN - ( - ( + 73 ) ) + + + 18 THEN - + COUNT ( * ) * - 20 * CAST ( - 94 AS INTEGER ) - - - 98 + - CAST ( + 69 AS REAL ) + + NULLIF ( + + 47, + 64 ) * - 20 END - + 23 + 86 * - 13 + 46 * - COUNT ( * ) * 16
----
NULL

query I rowsort
SELECT DISTINCT - 91 * 2 * 77
----
-14014

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT ALL - + COUNT( * ) + - 95 + + 78 * - 52
----
-4152

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL - + COUNT ( * ) + - 95 + + 78 * - 52
----
-4152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2044
SELECT CAST( + - 86 AS SIGNED ) - - 64 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2044
SELECT CAST ( + - 86 AS INTEGER ) - - 64 AS col1
----
-22

query II rowsort
SELECT DISTINCT - 47 + 82 AS col0, 34 * 79 AS col2
----
35
2686

query I rowsort
SELECT ALL + + ( - + 88 ) + - 22 AS col0
----
-110

query I rowsort
SELECT 61 + 48 AS col1
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2048
SELECT ALL - 14 + - + 63, - CAST( NULL AS SIGNED ) AS col2
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-2048
SELECT ALL - 14 + - + 63, - CAST ( NULL AS INTEGER ) AS col2
----
-77
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2049
SELECT ALL - COUNT( - - 70 ) * - 45 + 20 * + - ( - COUNT( * ) ) * + COUNT( * ) + - 27, ( 95 ) AS col1
----
38
95

skipif mysql # not compatible
query II rowsort label-2049
SELECT ALL - COUNT ( - - 70 ) * - 45 + 20 * + - ( - COUNT ( * ) ) * + COUNT ( * ) + - 27, ( 95 ) AS col1
----
38
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT ALL - CASE + + MIN( - - 9 ) WHEN - + 71 + + 6 THEN NULL WHEN - + 21 THEN + + 13 * - 99 ELSE + 5 + - ( + - COUNT( * ) ) END col1
----
-6

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL - CASE + + MIN ( - - 9 ) WHEN - + 71 + + 6 THEN NULL WHEN - + 21 THEN + + 13 * - 99 ELSE + 5 + - ( + - COUNT ( * ) ) END col1
----
-6

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2052
SELECT ALL COUNT( * ) - 56 + - COUNT( * ) DIV + COALESCE ( + - 15, 20 )
----
-55

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL COUNT ( * ) - 56 + - COUNT ( * ) / + COALESCE ( + - 15, 20 )
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-2053
SELECT ALL + 73 - 95 AS col2, 95 * 91 * + ( - - COUNT( * ) )
----
-22
8645

skipif mysql # not compatible
query II rowsort label-2053
SELECT ALL + 73 - 95 AS col2, 95 * 91 * + ( - - COUNT ( * ) )
----
-22
8645

query II rowsort
SELECT ALL - 46 AS col0, 31 * - 24
----
-46
-744

query I rowsort
SELECT ALL 16 * + 52 AS col0
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT COALESCE ( - 89, + - COUNT( * ) ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-2056
SELECT COALESCE ( - 89, + - COUNT ( * ) ) * - 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2057
SELECT ALL CASE + 69 WHEN 53 THEN MIN( + 62 ) END * + CAST( - 32 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL CASE + 69 WHEN 53 THEN MIN ( + 62 ) END * + CAST ( - 32 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT COUNT( DISTINCT 29 ) + - - NULLIF ( + - MIN( ALL + 60 ), - + ( - 48 ) * + COUNT( * ) + - + MIN( ALL - + 26 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-2058
SELECT COUNT ( DISTINCT 29 ) + - - NULLIF ( + - MIN ( ALL + 60 ), - + ( - 48 ) * + COUNT ( * ) + - + MIN ( ALL - + 26 ) )
----
-59

query II rowsort
SELECT + 72, + 44 AS col1
----
72
44

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

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

query I rowsort
SELECT ALL 62 * 78 AS col0
----
4836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2062
SELECT 7 * + COUNT( * ) + - 77 DIV 21
----
4

skipif mysql # not compatible
query I rowsort label-2062
SELECT 7 * + COUNT ( * ) + - 77 / 21
----
4

query I rowsort
SELECT ALL 80 * 45 col2
----
3600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2064
SELECT - 74 * NULLIF ( - + COUNT( * ), + 43 + + 83 * + CAST( NULL AS SIGNED ) * MAX( - - 15 ) ) + 34
----
108

skipif mysql # not compatible
query I rowsort label-2064
SELECT - 74 * NULLIF ( - + COUNT ( * ), + 43 + + 83 * + CAST ( NULL AS INTEGER ) * MAX ( - - 15 ) ) + 34
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT ALL - MIN( DISTINCT - 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL - MIN ( DISTINCT - 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2066
SELECT COUNT( * ) + 3 + - CASE + + 28 WHEN + 72 + 84 THEN NULL WHEN + 36 THEN + 35 ELSE + + COUNT( * ) - - 63 * 29 END AS col1, 10 DIV 10 DIV - 69
----
-1824
0

skipif mysql # not compatible
query II rowsort label-2066
SELECT COUNT ( * ) + 3 + - CASE + + 28 WHEN + 72 + 84 THEN NULL WHEN + 36 THEN + 35 ELSE + + COUNT ( * ) - - 63 * 29 END AS col1, 10 / 10 / - 69
----
-1824
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2067
SELECT CAST( NULL AS SIGNED ) + - + CASE + 9 WHEN + 70 THEN + 7 WHEN COUNT( * ) * + 47 THEN + 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT CAST ( NULL AS INTEGER ) + - + CASE + 9 WHEN + 70 THEN + 7 WHEN COUNT ( * ) * + 47 THEN + 22 END
----
NULL

query I rowsort
SELECT NULLIF ( - 22, + - 16 * + 56 ) * 1 + - 48
----
-70

query I rowsort
SELECT ALL - 72 * - 31
----
2232

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

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

query I rowsort
SELECT COALESCE ( + 94, + ( 98 ), 2 + + 60 - - + 8 ) * + 41
----
3854

query I rowsort
SELECT ALL + 72 + - 31 + - 13 AS col0
----
28

query I rowsort
SELECT ALL - - ( - 69 ) + + 30 - 56
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2074
SELECT ALL - - 70 + - CAST( - 32 AS SIGNED ) + + 30
----
132

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL - - 70 + - CAST ( - 32 AS INTEGER ) + + 30
----
132

query I rowsort
SELECT ALL 48 + + 45
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2076
SELECT DISTINCT 53 * + COALESCE ( CAST( NULL AS SIGNED ), 93 - + ( + + 58 ) )
----
1855

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT 53 * + COALESCE ( CAST ( NULL AS INTEGER ), 93 - + ( + + 58 ) )
----
1855

onlyif mysql # DIV for integer division: 
query I rowsort label-2077
SELECT - 92 DIV 47 + + - 62 * 44
----
-2729

skipif mysql # not compatible
query I rowsort label-2077
SELECT - 92 / 47 + + - 62 * 44
----
-2729

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT ALL - 68 + - COUNT( * ) + + - 17 + + 29 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL - 68 + - COUNT ( * ) + + - 17 + + 29 AS col0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2079
SELECT 63 * CAST( CAST( + 33 AS SIGNED ) AS SIGNED ) * 42 + 68
----
87386

skipif mysql # not compatible
query I rowsort label-2079
SELECT 63 * CAST ( CAST ( + 33 AS INTEGER ) AS INTEGER ) * 42 + 68
----
87386

onlyif mysql # DIV for integer division: 
query I rowsort label-2080
SELECT + 58 DIV + + COALESCE ( - + 19, + 37 ) + 16
----
13

skipif mysql # not compatible
query I rowsort label-2080
SELECT + 58 / + + COALESCE ( - + 19, + 37 ) + 16
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2081
SELECT ALL + + CAST( COUNT( * ) AS SIGNED ) DIV - + ( - + 24 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL + + CAST ( COUNT ( * ) AS INTEGER ) / - + ( - + 24 ) AS col2
----
0

query II rowsort
SELECT + 3, + 33 AS col0
----
3
33

query I rowsort
SELECT ALL - 2 - - - 75
----
-77

query I rowsort
SELECT 86 * + 83 * - 31 * + 80 + + 72
----
-17702168

query I rowsort
SELECT DISTINCT + + COALESCE ( 50, - 4 ) - 94 + 8 * + - 71 AS col1
----
-612

query I rowsort
SELECT 63 + - + 53 AS col2
----
10

query II rowsort
SELECT DISTINCT + 37 AS col2, + 28 AS col1
----
37
28

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2089
SELECT DISTINCT - ( - + 27 ) AS col0, 22 DIV MIN( 54 )
----
27
0

skipif mysql # not compatible
query II rowsort label-2089
SELECT DISTINCT - ( - + 27 ) AS col0, 22 / MIN ( 54 )
----
27
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2090
SELECT COUNT( * ) DIV 51 AS col0, + 53
----
0
53

skipif mysql # not compatible
query II rowsort label-2090
SELECT COUNT ( * ) / 51 AS col0, + 53
----
0
53

query I rowsort
SELECT ALL - ( + 31 ) col2
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2092
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + + 33 DIV + 45, + 54 + 73 - + - COUNT( * ) AS col1
----
-1
128

skipif mysql # not compatible
query II rowsort label-2092
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + + 33 / + 45, + 54 + 73 - + - COUNT ( * ) AS col1
----
-1
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT ALL 82 * + 40 * + + 82 + - + CAST( NULL AS SIGNED ) * + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL 82 * + 40 * + + 82 + - + CAST ( NULL AS INTEGER ) * + 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT COUNT( ALL - 78 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2094
SELECT COUNT ( ALL - 78 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL + 7 * - CASE ( + 9 ) WHEN - - 70 * - 57 THEN + 60 END + 42 * - COUNT( * ) / 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + 7 * - CASE ( + 9 ) WHEN - - 70 * - 57 THEN + 60 END + 42 * - COUNT ( * ) / 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT + SUM( 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-2096
SELECT + SUM ( 11 ) AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2097
SELECT + 55 DIV - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2097
SELECT + 55 / - 98 AS col1
----
0

query I rowsort
SELECT ALL 19 * + 18 + + + 26 AS col0
----
368

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

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

query I rowsort
SELECT + NULLIF ( - 38, + 74 ) * - - 8
----
-304

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2102
SELECT ALL + NULLIF ( + - 6, + ( - 87 ) * + 69 * - - SUM( 19 ) * + 89 - 52 ) AS col2, 84 + - - 23
----
-6
107

skipif mysql # not compatible
query II rowsort label-2102
SELECT ALL + NULLIF ( + - 6, + ( - 87 ) * + 69 * - - SUM ( 19 ) * + 89 - 52 ) AS col2, 84 + - - 23
----
-6
107

query I rowsort
SELECT ALL - 66 - + NULLIF ( + 15, - ( 92 ) ) AS col2
----
-81

query I rowsort
SELECT + + 92 + + 33 + - 10 AS col2
----
115

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2106
SELECT DISTINCT + ( 76 ) * - 11 + + 23 * - - 36 * + ( - 89 ) * - CASE + 71 WHEN + + ( 78 ) THEN - COUNT( ALL + CAST( - 39 AS DECIMAL ) ) * + 65 * - 70 * ( + + MAX( DISTINCT 96 ) ) * - 28 WHEN - 82 THEN - - CASE - CAST( - 82 AS DECIMAL ) WHEN 35 + 10 THEN 53 + - 10 ELSE 80 END END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT + ( 76 ) * - 11 + + 23 * - - 36 * + ( - 89 ) * - CASE + 71 WHEN + + ( 78 ) THEN - COUNT ( ALL + CAST ( - 39 AS REAL ) ) * + 65 * - 70 * ( + + MAX ( DISTINCT 96 ) ) * - 28 WHEN - 82 THEN - - CASE - CAST ( - 82 AS REAL ) WHEN 35 + 10 THEN 53 + - 10 ELSE 80 END END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2107
SELECT ALL + 14 * ( + + 10 ) DIV - 77 + MIN( + ( 93 ) ) - 82 DIV + 36 - + - 50 * + 93 AS col2
----
4740

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL + 14 * ( + + 10 ) / - 77 + MIN ( + ( 93 ) ) - 82 / + 36 - + - 50 * + 93 AS col2
----
4740

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT + 3 * + COUNT( * ) * 86
----
258

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT + 3 * + COUNT ( * ) * 86
----
258

query I rowsort
SELECT DISTINCT 67 * 8 * - 54
----
-28944

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT + 51 + - 5 + + COUNT( * ) * 72
----
118

skipif mysql # not compatible
query I rowsort label-2110
SELECT + 51 + - 5 + + COUNT ( * ) * 72
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2111
SELECT + 69 * 20 * + 44 * - CASE - + 32 WHEN - 92 - CAST( NULL AS SIGNED ) THEN NULL WHEN - + 27 + + 74 * - 26 * - 37 + + - MIN( DISTINCT 98 ) THEN NULL WHEN + 24 THEN - - 36 ELSE NULL END * 72 * SUM( ALL 40 ) + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT + 69 * 20 * + 44 * - CASE - + 32 WHEN - 92 - CAST ( NULL AS INTEGER ) THEN NULL WHEN - + 27 + + 74 * - 26 * - 37 + + - MIN ( DISTINCT 98 ) THEN NULL WHEN + 24 THEN - - 36 ELSE NULL END * 72 * SUM ( ALL 40 ) + 3 AS col2
----
NULL

query I rowsort
SELECT - 74 * - 84 AS col1
----
6216

onlyif mysql # DIV for integer division: 
query I rowsort label-2113
SELECT DISTINCT - ( - 6 ) DIV + - 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT - ( - 6 ) / + - 49 AS col0
----
0

query I rowsort
SELECT - 45 * - - 5 col1
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT - MIN( 1 ) * + + 50 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-2115
SELECT - MIN ( 1 ) * + + 50 AS col2
----
-50

query I rowsort
SELECT DISTINCT CASE WHEN NOT + 73 IS NOT NULL THEN 35 + + 15 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2117
SELECT ALL - COUNT( * ) + - 42 + + 90 * - 59 + + - 23 * - + 69 * 50 * + - COUNT( * ) + - COALESCE ( 98, + - 71 + - - CAST( 55 AS SIGNED ), + + COUNT( * ) ) / - CASE 53 WHEN - 94 + - CAST( 36 AS SIGNED ) THEN NULL WHEN + 76 THEN - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL - COUNT ( * ) + - 42 + + 90 * - 59 + + - 23 * - + 69 * 50 * + - COUNT ( * ) + - COALESCE ( 98, + - 71 + - - CAST ( 55 AS INTEGER ), + + COUNT ( * ) ) / - CASE 53 WHEN - 94 + - CAST ( 36 AS INTEGER ) THEN NULL WHEN + 76 THEN - 79 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2118
SELECT DISTINCT CAST( NULL AS SIGNED ) / - COUNT( + 17 ) + + CAST( - 32 AS SIGNED ) col2, 47 AS col0
----
NULL
47

skipif mysql # not compatible
query II rowsort label-2118
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - COUNT ( + 17 ) + + CAST ( - 32 AS INTEGER ) col2, 47 AS col0
----
NULL
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2119
SELECT DISTINCT 3 DIV - + 30 + + + 54 col0
----
54

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT 3 / - + 30 + + + 54 col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT DISTINCT + MAX( ALL 45 ) * - 19
----
-855

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT + MAX ( ALL 45 ) * - 19
----
-855

query I rowsort
SELECT ( - + 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT - MIN( + + 44 ) + + 42 col1
----
-2

skipif mysql # not compatible
query I rowsort label-2122
SELECT - MIN ( + + 44 ) + + 42 col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2123
SELECT + 28 DIV - - 40 - 88 DIV - + 91
----
0

skipif mysql # not compatible
query I rowsort label-2123
SELECT + 28 / - - 40 - 88 / - + 91
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2125
SELECT ( + CASE 21 WHEN + - ( + CAST( NULL AS SIGNED ) ) THEN NULL WHEN COUNT( * ) THEN COUNT( * ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT ( + CASE 21 WHEN + - ( + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN COUNT ( * ) THEN COUNT ( * ) END ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT ALL 84 * - COUNT( * ) + + 29 col2
----
-55

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL 84 * - COUNT ( * ) + + 29 col2
----
-55

query I rowsort
SELECT ALL 86 * + + 7
----
602

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2129
SELECT + - 54, + CAST( - + 33 AS SIGNED ) AS col1
----
-54
-33

skipif mysql # not compatible
query II rowsort label-2129
SELECT + - 54, + CAST ( - + 33 AS INTEGER ) AS col1
----
-54
-33

query I rowsort
SELECT + - 98 col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT DISTINCT - 80 * + - 91 - - ( - COUNT( * ) ) AS col1
----
7279

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT - 80 * + - 91 - - ( - COUNT ( * ) ) AS col1
----
7279

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT ALL CASE + + 63 WHEN - - 3 THEN ( + ( CASE - 44 WHEN - - COUNT( * ) + 35 * 23 THEN + 41 END ) ) / + 61 + - + ( + + ( + 17 ) ) * + SUM( 4 ) END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL CASE + + 63 WHEN - - 3 THEN ( + ( CASE - 44 WHEN - - COUNT ( * ) + 35 * 23 THEN + 41 END ) ) / + 61 + - + ( + + ( + 17 ) ) * + SUM ( 4 ) END * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2133
SELECT + CAST( - 24 AS SIGNED ) + + - 98
----
-122

skipif mysql # not compatible
query I rowsort label-2133
SELECT + CAST ( - 24 AS INTEGER ) + + - 98
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2134
SELECT ALL 86 * - 41 - - ( - + COUNT( * ) ) - + + 54 - + CASE + 98 WHEN - 2 THEN 56 WHEN - - MIN( ALL + 81 ) THEN - 82 + + ( + 8 ) + - + 53 ELSE 90 DIV + 37 END + MAX( 91 ) AS col0
----
-3492

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL 86 * - 41 - - ( - + COUNT ( * ) ) - + + 54 - + CASE + 98 WHEN - 2 THEN 56 WHEN - - MIN ( ALL + 81 ) THEN - 82 + + ( + 8 ) + - + 53 ELSE 90 / + 37 END + MAX ( 91 ) AS col0
----
-3492

onlyif mysql # aggregate syntax: 
query II rowsort label-2135
SELECT + 15 AS col2, 98 + - COALESCE ( 47, - 98 + - + 47 ) + + COUNT( ALL + 76 ) col2
----
15
52

skipif mysql # not compatible
query II rowsort label-2135
SELECT + 15 AS col2, 98 + - COALESCE ( 47, - 98 + - + 47 ) + + COUNT ( ALL + 76 ) col2
----
15
52

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

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

query I rowsort
SELECT + 10 + - - 37
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT DISTINCT ( + - MIN( DISTINCT ( - - 8 ) ) ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT ( + - MIN ( DISTINCT ( - - 8 ) ) ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2139
SELECT ALL 5, - 99 * - COUNT( ALL - - 49 ) * + 96 - SUM( + 89 ) * - - 82 - - 14 AS col0
----
5
2220

skipif mysql # not compatible
query II rowsort label-2139
SELECT ALL 5, - 99 * - COUNT ( ALL - - 49 ) * + 96 - SUM ( + 89 ) * - - 82 - - 14 AS col0
----
5
2220

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT + ( - COUNT( * ) ) + 69
----
68

skipif mysql # not compatible
query I rowsort label-2140
SELECT + ( - COUNT ( * ) ) + 69
----
68

query I rowsort
SELECT + 57 * - + 77 col2
----
-4389

onlyif mysql # aggregate syntax: 
query II rowsort label-2142
SELECT ALL 39 * - 57 * - COALESCE ( - 10, + 14, - CASE + NULLIF ( - 89, + 70 ) WHEN - COALESCE ( + 94, + 32 * - 94 + + 32 + + 27 / + + ( + MIN( ALL + 33 ) ) / - 67, 17 ) THEN + 78 * + 74 + + - 98 WHEN - 78 THEN NULL ELSE NULL END ) AS col2, 3 * - 21 AS col0
----
-22230
-63

skipif mysql # not compatible
query II rowsort label-2142
SELECT ALL 39 * - 57 * - COALESCE ( - 10, + 14, - CASE + NULLIF ( - 89, + 70 ) WHEN - COALESCE ( + 94, + 32 * - 94 + + 32 + + 27 / + + ( + MIN ( ALL + 33 ) ) / - 67, 17 ) THEN + 78 * + 74 + + - 98 WHEN - 78 THEN NULL ELSE NULL END ) AS col2, 3 * - 21 AS col0
----
-22230
-63

query I rowsort
SELECT - 51 * 25 AS col0
----
-1275

onlyif mysql # DIV for integer division: 
query I rowsort label-2144
SELECT DISTINCT 68 DIV 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT 68 / 93 AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2146
SELECT 88, 62 + + - ( SUM( - + 78 ) ) + + ( 55 ) * 31 + + 74 * + 83 * + - CAST( NULL AS SIGNED ) AS col1
----
88
NULL

skipif mysql # not compatible
query II rowsort label-2146
SELECT 88, 62 + + - ( SUM ( - + 78 ) ) + + ( 55 ) * 31 + + 74 * + 83 * + - CAST ( NULL AS INTEGER ) AS col1
----
88
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2147
SELECT DISTINCT CASE CAST( NULL AS SIGNED ) WHEN - MAX( DISTINCT - 49 ) THEN - 10 * - 40 END + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT CASE CAST ( NULL AS INTEGER ) WHEN - MAX ( DISTINCT - 49 ) THEN - 10 * - 40 END + 10
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT DISTINCT - 31 + + + COUNT( * ) + COUNT( * ) * + 10
----
-20

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT - 31 + + + COUNT ( * ) + COUNT ( * ) * + 10
----
-20

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

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

query I rowsort
SELECT ( 40 ) * + 54 + - 57 + - 8 + + COALESCE ( - - 22, CASE - 46 WHEN + 69 THEN - + 6 * + 88 WHEN - - 53 THEN NULL END ) AS col2
----
2117

query II rowsort
SELECT DISTINCT - 40 + CASE - - 1 WHEN - 43 + - 8 / + 4 THEN - 18 END * + - 45 / 31 AS col1, 82 + + - 78 AS col0
----
NULL
4

query II rowsort
SELECT 88 AS col1, + 76 AS col2
----
88
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT + 61 DIV + - 78 + + 74
----
74

skipif mysql # not compatible
query I rowsort label-2154
SELECT + 61 / + - 78 + + 74
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2155
SELECT ALL - 13 + - - 50 * COALESCE ( - 30, + CAST( + 39 AS SIGNED ), 88 ) col2
----
-1513

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL - 13 + - - 50 * COALESCE ( - 30, + CAST ( + 39 AS INTEGER ), 88 ) col2
----
-1513

onlyif mysql # DIV for integer division: 
query I rowsort label-2156
SELECT 57 DIV 61 * - ( + 16 )
----
0

skipif mysql # not compatible
query I rowsort label-2156
SELECT 57 / 61 * - ( + 16 )
----
0

query II rowsort
SELECT DISTINCT - 93 AS col2, 85 + + - 96
----
-93
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2158
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, 98
----
NULL
98

skipif mysql # not compatible
query II rowsort label-2158
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 98
----
NULL
98

query I rowsort
SELECT 67 * 41 AS col0
----
2747

query I rowsort
SELECT ALL + 78 - + ( + 89 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT 25 * 8 - + + ( + COUNT( * ) ) AS col0
----
199

skipif mysql # not compatible
query I rowsort label-2161
SELECT 25 * 8 - + + ( + COUNT ( * ) ) AS col0
----
199

query II rowsort
SELECT + - 82 AS col0, 20 + + 96
----
-82
116

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

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

query II rowsort
SELECT ALL - + 37, 16 AS col1
----
-37
16

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

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

query II rowsort
SELECT - 88 AS col2, 3 + 11 - - 14
----
-88
28

query II rowsort
SELECT ALL - + 64 AS col0, 56 + - ( - 95 ) + 97 * - - 74 * + 36 * - + 58 AS col1
----
-64
-14987513

onlyif mysql # DIV for integer division: 
query II rowsort label-2168
SELECT 92 - - 7, + 24 DIV - 77 - + + 36 col1
----
99
-36

skipif mysql # not compatible
query II rowsort label-2168
SELECT 92 - - 7, + 24 / - 77 - + + 36 col1
----
99
-36

query II rowsort
SELECT ALL - - 4 AS col2, 53 AS col2
----
4
53

query I rowsort
SELECT ALL - + ( + - 80 ) col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2171
SELECT ALL 87 / - - COUNT( * ) - + SUM( + 92 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL 87 / - - COUNT ( * ) - + SUM ( + 92 ) * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 30 * + - 23 * - - 72 - - 11 AS col2, + 46 + 71
----
-49669
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT + 97 - - 35 * + COUNT( * ) * 29
----
1112

skipif mysql # not compatible
query I rowsort label-2173
SELECT + 97 - - 35 * + COUNT ( * ) * 29
----
1112

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

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

query I rowsort
SELECT NULLIF ( + 10, 99 ) + + 51
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2176
SELECT - 29, COUNT( * ) + + 12 AS col0
----
-29
13

skipif mysql # not compatible
query II rowsort label-2176
SELECT - 29, COUNT ( * ) + + 12 AS col0
----
-29
13

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

skipif mysql # not compatible
query I rowsort label-2177
SELECT + COUNT ( * ) / + + 84
----
0

query I rowsort
SELECT DISTINCT 89 + - 54 * - 57
----
3167

onlyif mysql # aggregate syntax: 
query II rowsort label-2179
SELECT ALL 92 + 27 AS col1, + COUNT( * ) * - COUNT( * )
----
119
-1

skipif mysql # not compatible
query II rowsort label-2179
SELECT ALL 92 + 27 AS col1, + COUNT ( * ) * - COUNT ( * )
----
119
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2180
SELECT COUNT( * ) + + MAX( ALL - 14 ) DIV - - 71
----
1

skipif mysql # not compatible
query I rowsort label-2180
SELECT COUNT ( * ) + + MAX ( ALL - 14 ) / - - 71
----
1

query I rowsort
SELECT 35 * + 42
----
1470

query I rowsort
SELECT 70 * 87
----
6090

query I rowsort
SELECT ALL 2 - 3
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2184
SELECT ALL COUNT( * ) DIV - 8 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL COUNT ( * ) / - 8 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2185
SELECT ALL - SUM( ALL 83 ) AS col0, + 7 AS col0
----
-83
7

skipif mysql # not compatible
query II rowsort label-2185
SELECT ALL - SUM ( ALL 83 ) AS col0, + 7 AS col0
----
-83
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT 14 DIV 59 - + 89
----
-89

skipif mysql # not compatible
query I rowsort label-2186
SELECT 14 / 59 - + 89
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-2187
SELECT + 11 * - + 44 DIV + 1 + - + 31
----
-515

skipif mysql # not compatible
query I rowsort label-2187
SELECT + 11 * - + 44 / + 1 + - + 31
----
-515

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2188
SELECT CAST( + CASE + 98 WHEN + 76 - + 17 THEN NULL WHEN - 43 * - + 79 THEN + 2 END AS SIGNED ) / 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2188
SELECT CAST ( + CASE + 98 WHEN + 76 - + 17 THEN NULL WHEN - 43 * - + 79 THEN + 2 END AS INTEGER ) / 38
----
NULL

query I rowsort
SELECT 7 + + 79
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-2190
SELECT - COUNT( * ) + - - 33 AS col0, 82 AS col1
----
32
82

skipif mysql # not compatible
query II rowsort label-2190
SELECT - COUNT ( * ) + - - 33 AS col0, 82 AS col1
----
32
82

query I rowsort
SELECT 83 * - - 61
----
5063

query I rowsort
SELECT - + NULLIF ( - - 33, - 91 / + 76 ) * + + 23 + - 0 + - 49 AS col0
----
-808

query I rowsort
SELECT DISTINCT - + 77 * 31 + CASE 71 WHEN - 78 THEN - - 8 ELSE - - 13 END AS col0
----
-2374

onlyif mysql # aggregate syntax: 
query II rowsort label-2194
SELECT + 12 * 36, COUNT( * ) + 93 - 29 AS col2
----
432
65

skipif mysql # not compatible
query II rowsort label-2194
SELECT + 12 * 36, COUNT ( * ) + 93 - 29 AS col2
----
432
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2195
SELECT ( 61 ) * + COUNT( * ) * 8 / - + 13 + + CAST( NULL AS SIGNED ) + + 30 - 51 * - 14 * + + AVG ( ALL + 68 ) / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT ( 61 ) * + COUNT ( * ) * 8 / - + 13 + + CAST ( NULL AS INTEGER ) + + 30 - 51 * - 14 * + + AVG ( ALL + 68 ) / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT ALL + 33 + + - 21 * 49 - COUNT( * ) + + 36 + - 0
----
-961

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL + 33 + + - 21 * 49 - COUNT ( * ) + + 36 + - 0
----
-961

query I rowsort
SELECT + ( + COALESCE ( + 60, + 23 ) )
----
60

query I rowsort
SELECT + 95 + - 25
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT ALL + 31 * - COUNT( * ) + - MAX( DISTINCT + + 18 ) * - 76 col2
----
1337

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL + 31 * - COUNT ( * ) + - MAX ( DISTINCT + + 18 ) * - 76 col2
----
1337

query I rowsort
SELECT ALL - - 72 + - 59 + + 52 * - 65 AS col0
----
-3367

query I rowsort
SELECT ALL 69 + + 20
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT ALL + ( + COUNT( * ) ) + - 69
----
-68

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL + ( + COUNT ( * ) ) + - 69
----
-68

query II rowsort
SELECT 40 AS col2, - 22
----
40
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT - 80 + + 13 + - MIN( ALL 61 ) + + COUNT( * ) * + SUM( ALL ( 33 ) ) + + - 76 col1
----
-171

skipif mysql # not compatible
query I rowsort label-2204
SELECT - 80 + + 13 + - MIN ( ALL 61 ) + + COUNT ( * ) * + SUM ( ALL ( 33 ) ) + + - 76 col1
----
-171

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

skipif mysql # not compatible
query I rowsort label-2205
SELECT - 38 / + + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT DISTINCT NULLIF ( + ( + 68 ), AVG ( + 60 ) * + COUNT( * ) )
----
68

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT NULLIF ( + ( + 68 ), AVG ( + 60 ) * + COUNT ( * ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT DISTINCT + 13 - 40 - + COUNT( DISTINCT + 46 ) * + - ( + - 79 ) * - 92 AS col0
----
7241

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT + 13 - 40 - + COUNT ( DISTINCT + 46 ) * + - ( + - 79 ) * - 92 AS col0
----
7241

query I rowsort
SELECT ALL 44 * - 50 AS col0
----
-2200

onlyif mysql # DIV for integer division: 
query I rowsort label-2209
SELECT - COALESCE ( - - 98, + + 78 ) DIV + 71
----
-1

skipif mysql # not compatible
query I rowsort label-2209
SELECT - COALESCE ( - - 98, + + 78 ) / + 71
----
-1

query I rowsort
SELECT ALL + 23 * - 54
----
-1242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2211
SELECT DISTINCT - CAST( - 78 AS SIGNED ) * - 40 * 6 AS col1
----
-18720

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT - CAST ( - 78 AS INTEGER ) * - 40 * 6 AS col1
----
-18720

query I rowsort
SELECT ALL + 96 - + - 55 AS col1
----
151

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2214
SELECT + NULLIF ( 75, 71 * + 4 + - 79 + + 68 ), - NULLIF ( - NULLIF ( 22, - 11 ), - AVG ( - + 90 ) ) * CAST( NULL AS SIGNED ) AS col2
----
75
NULL

skipif mysql # not compatible
query II rowsort label-2214
SELECT + NULLIF ( 75, 71 * + 4 + - 79 + + 68 ), - NULLIF ( - NULLIF ( 22, - 11 ), - AVG ( - + 90 ) ) * CAST ( NULL AS INTEGER ) AS col2
----
75
NULL

query II rowsort
SELECT - 50 AS col2, - 45 + - 80 * - 13
----
-50
995

onlyif mysql # DIV for integer division: 
query I rowsort label-2216
SELECT + 75 DIV + 39 + + 54 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-2216
SELECT + 75 / + 39 + + 54 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT ALL 33 * + COUNT( * ) + - + 52 + + 65
----
46

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL 33 * + COUNT ( * ) + - + 52 + + 65
----
46

query I rowsort
SELECT DISTINCT + 31 * + + 62 AS col1
----
1922

onlyif mysql # DIV for integer division: 
query I rowsort label-2219
SELECT DISTINCT + 20 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT + 20 / 45
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2220
SELECT ALL + CAST( NULL AS SIGNED ) * - + 45 * + + 92 * + 28 + - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 45 * + + 92 * + 28 + - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT COALESCE ( - + 99, 51 ) * 49 - 38
----
-4889

query II rowsort
SELECT NULLIF ( + 44, 52 ) AS col0, + 43 AS col0
----
44
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT - MAX( ALL - 53 ) * - - 53
----
2809

skipif mysql # not compatible
query I rowsort label-2223
SELECT - MAX ( ALL - 53 ) * - - 53
----
2809

query I rowsort
SELECT + 9 * - - 50 AS col2
----
450

query I rowsort
SELECT + 32 - - + 77 AS col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT ALL + + ( - + ( + + 0 ) ) * + 75 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL + + ( - + ( + + 0 ) ) * + 75 * + COUNT ( * )
----
0

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

query I rowsort
SELECT ALL + 8 * - 47 + + 38 AS col1
----
-338

onlyif mysql # aggregate syntax: 
query III rowsort label-2229
SELECT SUM( + 89 ) AS col2, 96 - - MAX( ALL - - 87 ) + 75 + - 73, + - ( - 93 ) AS col2
----
89
185
93

skipif mysql # not compatible
query III rowsort label-2229
SELECT SUM ( + 89 ) AS col2, 96 - - MAX ( ALL - - 87 ) + 75 + - 73, + - ( - 93 ) AS col2
----
89
185
93

query I rowsort
SELECT - 45 - + 0 + + 9 col2
----
-36

query I rowsort
SELECT DISTINCT NULLIF ( - 98, 61 ) AS col2
----
-98

query I rowsort
SELECT ALL + 27 - + 44 + 77 AS col1
----
60

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

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

query II rowsort
SELECT DISTINCT ( + 87 ) AS col0, - 94 * - + 69 AS col1
----
87
6486

query I rowsort
SELECT DISTINCT NULLIF ( - 66, 12 + + 98 - NULLIF ( - - 64, + + 86 ) * - 16 / + ( + 21 ) ) AS col1
----
-66

query I rowsort
SELECT - ( + + 82 ) * - 15 + - 64 col1
----
1166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT - AVG ( ALL - 13 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT - AVG ( ALL - 13 ) + - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT - 90 + - 44
----
-134

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2240
SELECT ALL + 92 DIV CAST( 54 AS SIGNED ) * - + CAST( 93 AS SIGNED ) - + + 11
----
-104

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL + 92 / CAST ( 54 AS INTEGER ) * - + CAST ( 93 AS INTEGER ) - + + 11
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2241
SELECT - ( - CAST( 98 AS SIGNED ) ) + ( - 75 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2241
SELECT - ( - CAST ( 98 AS INTEGER ) ) + ( - 75 ) AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT ALL + 19 * - CAST( - - 46 AS SIGNED ) AS col0
----
-874

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL + 19 * - CAST ( - - 46 AS INTEGER ) AS col0
----
-874

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2243
SELECT - 19 DIV 91 * 12 * COUNT( * ) DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2243
SELECT - 19 / 91 * 12 * COUNT ( * ) / - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT DISTINCT COALESCE ( - 58, + + COUNT( * ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT COALESCE ( - 58, + + COUNT ( * ) ) AS col0
----
-58

query I rowsort
SELECT ALL - 2 + + - 20 AS col0
----
-22

query I rowsort
SELECT - - 96 + + 80 + + 70 AS col1
----
246

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2248
SELECT ALL - - 56 DIV - 32 + - 28
----
-29

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL - - 56 / - 32 + - 28
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-2249
SELECT + - 47 * - - 2 + + ( + - ( - + 57 ) ) + NULLIF ( + 49, - + 77 * + 93 + 18 ) + + 74 + 11 AS col2, MIN( ALL - - 42 ) * - 77 * + - NULLIF ( + 60, + MIN( ( + 31 ) ) ) + ( 60 ) * - 62
----
97
190320

skipif mysql # not compatible
query II rowsort label-2249
SELECT + - 47 * - - 2 + + ( + - ( - + 57 ) ) + NULLIF ( + 49, - + 77 * + 93 + 18 ) + + 74 + 11 AS col2, MIN ( ALL - - 42 ) * - 77 * + - NULLIF ( + 60, + MIN ( ( + 31 ) ) ) + ( 60 ) * - 62
----
97
190320

query I rowsort
SELECT - 67 + + ( - + 99 ) AS col0
----
-166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2251
SELECT - - 62 DIV 30 - - MAX( - 84 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-2251
SELECT - - 62 / 30 - - MAX ( - 84 ) AS col2
----
-82

query I rowsort
SELECT + 50 - - + 85
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-2253
SELECT 95 DIV - - 48 + + 52
----
53

skipif mysql # not compatible
query I rowsort label-2253
SELECT 95 / - - 48 + + 52
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT ALL + ( + NULLIF ( ( COUNT( * ) ), 19 ) ) * + SUM( + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL + ( + NULLIF ( ( COUNT ( * ) ), 19 ) ) * + SUM ( + 73 )
----
73

query I rowsort
SELECT + + 20 + ( ( 12 ) ) AS col0
----
32

query I rowsort
SELECT ALL + + 74 col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2257
SELECT COUNT( * ) * - AVG ( - + NULLIF ( + + 25, 21 ) ) + + CASE + + 58 WHEN - - 38 + + 85 * 64 THEN NULL WHEN + + MIN( ALL + 52 ) + ( - + 42 ) THEN - + 73 WHEN - ( 60 ) THEN 49 * 88 / - 41 / + ( + 53 ) ELSE NULL END AS col1, 53 + - 39 + - + MAX( ALL 99 ) * - + 45
----
NULL
4469

skipif mysql # not compatible
query II rowsort label-2257
SELECT COUNT ( * ) * - AVG ( - + NULLIF ( + + 25, 21 ) ) + + CASE + + 58 WHEN - - 38 + + 85 * 64 THEN NULL WHEN + + MIN ( ALL + 52 ) + ( - + 42 ) THEN - + 73 WHEN - ( 60 ) THEN 49 * 88 / - 41 / + ( + 53 ) ELSE NULL END AS col1, 53 + - 39 + - + MAX ( ALL 99 ) * - + 45
----
NULL
4469

query I rowsort
SELECT DISTINCT - - NULLIF ( + 62, + 0 + - + 52 )
----
62

query I rowsort
SELECT DISTINCT 92 - - - 20 AS col2
----
72

query I rowsort
SELECT 80 + 37 AS col0
----
117

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2261
SELECT 51 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT 51 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 68 * - 60 AS col1
----
4080

onlyif mysql # DIV for integer division: 
query I rowsort label-2263
SELECT ALL 91 DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL 91 / + 47
----
1

query I rowsort
SELECT DISTINCT + 5 * + 45
----
225

query I rowsort
SELECT 86 * + + 86 AS col0
----
7396

onlyif mysql # aggregate syntax: 
query II rowsort label-2266
SELECT - 38 col0, ( 30 ) * + 94 * MAX( 97 ) AS col2
----
-38
273540

skipif mysql # not compatible
query II rowsort label-2266
SELECT - 38 col0, ( 30 ) * + 94 * MAX ( 97 ) AS col2
----
-38
273540

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT COUNT( * ) * 74 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT COUNT ( * ) * 74 AS col2
----
74

query I rowsort
SELECT 11 + + 26 AS col0
----
37

query II rowsort
SELECT - 4 AS col2, + 61 col0
----
-4
61

query I rowsort
SELECT 12 + + 53
----
65

query I rowsort
SELECT DISTINCT 54 + 82
----
136

query I rowsort
SELECT DISTINCT + - 0 + + 55 + 12 * + 86
----
1087

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL - MAX( 64 ) + + - ( + 59 ) AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL - MAX ( 64 ) + + - ( + 59 ) AS col0
----
-123

query I rowsort
SELECT 92 * + 72 * + + 23 * - 32 AS col0
----
-4875264

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2275
SELECT + 20 + 13 + - - 16 AS col2, - CAST( NULL AS SIGNED ) * + 36 AS col1
----
49
NULL

skipif mysql # not compatible
query II rowsort label-2275
SELECT + 20 + 13 + - - 16 AS col2, - CAST ( NULL AS INTEGER ) * + 36 AS col1
----
49
NULL

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

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

query I rowsort
SELECT ALL + - 8 + 76
----
68

query I rowsort
SELECT + 87 * - 44 * 78 + - 69 AS col0
----
-298653

onlyif mysql # aggregate syntax: 
query II rowsort label-2279
SELECT DISTINCT - - 95 * - + COUNT( * ) * - - COUNT( * ), + 70 - + 34 AS col1
----
-95
36

skipif mysql # not compatible
query II rowsort label-2279
SELECT DISTINCT - - 95 * - + COUNT ( * ) * - - COUNT ( * ), + 70 - + 34 AS col1
----
-95
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2280
SELECT - 14 DIV 81 * + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2280
SELECT - 14 / 81 * + - COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2281
SELECT ALL + + CAST( + - 38 AS SIGNED ) * + COALESCE ( + ( + SUM( + + 90 ) ), - + 39, + 22 )
----
-3420

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL + + CAST ( + - 38 AS INTEGER ) * + COALESCE ( + ( + SUM ( + + 90 ) ), - + 39, + 22 )
----
-3420

query I rowsort
SELECT ALL 67 - 20
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2283
SELECT + CAST( NULL AS SIGNED ) * 68 + - 31 - + 81 + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2283
SELECT + CAST ( NULL AS INTEGER ) * 68 + - 31 - + 81 + - 83
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2284
SELECT COUNT( * ) DIV - + ( - 50 ) + + - 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-2284
SELECT COUNT ( * ) / - + ( - 50 ) + + - 60 AS col1
----
-60

query I rowsort
SELECT 41 * + - 47
----
-1927

onlyif mysql # aggregate syntax: 
query III rowsort label-2286
SELECT 37 AS col1, 28 AS col1, SUM( DISTINCT + 85 )
----
37
28
85

skipif mysql # not compatible
query III rowsort label-2286
SELECT 37 AS col1, 28 AS col1, SUM ( DISTINCT + 85 )
----
37
28
85

query I rowsort
SELECT 54 * + + 52
----
2808

query II rowsort
SELECT ALL - 90 AS col1, 69 AS col2
----
-90
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2289
SELECT DISTINCT - CASE + 64 WHEN COALESCE ( - + CAST( + 86 AS SIGNED ), - 96, - COUNT( 29 ) / + COUNT( * ) * - 26 ) THEN NULL WHEN - CASE + + 33 WHEN - - 94 * + 75 / 75 / - + 39 THEN NULL ELSE + + CASE CAST( NULL AS SIGNED ) WHEN - 88 THEN 84 WHEN + - 24 THEN + COUNT( ALL + - 23 ) END END / - - 42 THEN + 73 WHEN - CAST( NULL AS SIGNED ) / + 33 THEN + + 92 + AVG ( + 33 ) + - AVG ( - 60 ) ELSE CAST( NULL AS DECIMAL ) + 69 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT - CASE + 64 WHEN COALESCE ( - + CAST ( + 86 AS INTEGER ), - 96, - COUNT ( 29 ) / + COUNT ( * ) * - 26 ) THEN NULL WHEN - CASE + + 33 WHEN - - 94 * + 75 / 75 / - + 39 THEN NULL ELSE + + CASE CAST ( NULL AS INTEGER ) WHEN - 88 THEN 84 WHEN + - 24 THEN + COUNT ( ALL + - 23 ) END END / - - 42 THEN + 73 WHEN - CAST ( NULL AS INTEGER ) / + 33 THEN + + 92 + AVG ( + 33 ) + - AVG ( - 60 ) ELSE CAST ( NULL AS REAL ) + 69 END col0
----
NULL

query II rowsort
SELECT ALL - 35 AS col2, ( - 28 ) * + - 11 + - - 47 + 22 * - 88 AS col0
----
-35
-1581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2291
SELECT + 4 * + COALESCE ( COUNT( * ), + CAST( - 45 AS SIGNED ) ) * + + 99 - 86 * 88
----
-7172

skipif mysql # not compatible
query I rowsort label-2291
SELECT + 4 * + COALESCE ( COUNT ( * ), + CAST ( - 45 AS INTEGER ) ) * + + 99 - 86 * 88
----
-7172

query I rowsort
SELECT ALL - ( - 20 ) AS col2
----
20

query I rowsort
SELECT DISTINCT - 9 * - 5
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-2294
SELECT 37, + 56 DIV - 87 DIV 63 * - - 71 * - 31 * + + 35 AS col1
----
37
0

skipif mysql # not compatible
query II rowsort label-2294
SELECT 37, + 56 / - 87 / 63 * - - 71 * - 31 * + + 35 AS col1
----
37
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT MIN( - 29 ) + - 29 - - 64 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2296
SELECT MIN ( - 29 ) + - 29 - - 64 AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2297
SELECT COUNT( * ) - + - COUNT( - 40 ) - + - COUNT( * ) * + 96 DIV + + 53 + 56 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-2297
SELECT COUNT ( * ) - + - COUNT ( - 40 ) - + - COUNT ( * ) * + 96 / + + 53 + 56 AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT 76 DIV 27 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2298
SELECT 76 / 27 AS col1
----
2

query I rowsort
SELECT - 65 * - 57 * - 53 - 72
----
-196437

query II rowsort
SELECT 67 AS col1, 10 + + - 40 AS col1
----
67
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT ALL COALESCE ( - + 12, - 64 + + + 58 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL COALESCE ( - + 12, - 64 + + + 58 ) + + - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2303
SELECT COUNT( * ) DIV - 47 * - - 77 * + + 11
----
0

skipif mysql # not compatible
query I rowsort label-2303
SELECT COUNT ( * ) / - 47 * - - 77 * + + 11
----
0

query I rowsort
SELECT 4 + - 11 + 59 AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT DISTINCT 36 DIV 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT 36 / 79 AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2307
SELECT + COALESCE ( + + COUNT( * ), 78 * - 9 * - 62, + - CAST( NULL AS SIGNED ) * + - 86 * 36 + + 97 - + COUNT( * ) * + - 40 - - 67 + + 81 ) + - - NULLIF ( - 63, SUM( 66 ) ) AS col2, COUNT( * ) col1
----
-62
1

skipif mysql # not compatible
query II rowsort label-2307
SELECT + COALESCE ( + + COUNT ( * ), 78 * - 9 * - 62, + - CAST ( NULL AS INTEGER ) * + - 86 * 36 + + 97 - + COUNT ( * ) * + - 40 - - 67 + + 81 ) + - - NULLIF ( - 63, SUM ( 66 ) ) AS col2, COUNT ( * ) col1
----
-62
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2308
SELECT - 91 AS col0, 83 / + 12 * + - NULLIF ( - CAST( NULL AS DECIMAL ), + COUNT( * ) + - + COUNT( * ) + + 84 + + 86 * + 65 * - + 43 )
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-2308
SELECT - 91 AS col0, 83 / + 12 * + - NULLIF ( - CAST ( NULL AS REAL ), + COUNT ( * ) + - + COUNT ( * ) + + 84 + + 86 * + 65 * - + 43 )
----
-91
NULL

query I rowsort
SELECT 7 + - + 98 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT - CASE 45 WHEN + 99 + COUNT( * ) * - 24 THEN ( - 46 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT - CASE 45 WHEN + 99 + COUNT ( * ) * - 24 THEN ( - 46 ) END
----
NULL

query II rowsort
SELECT ALL 47 AS col2, - 38 AS col1
----
47
-38

query II rowsort
SELECT - 85 - - - COALESCE ( 18, + + 60 ) * - 98 + 68, 77 AS col2
----
1747
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2313
SELECT 76 + + 87 DIV 17
----
81

skipif mysql # not compatible
query I rowsort label-2313
SELECT 76 + + 87 / 17
----
81

query I rowsort
SELECT DISTINCT - + 38 col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT - 9 * + 84 * - - MIN( ALL 82 ) + 42 * - 74 + + 91 AS col0
----
-65009

skipif mysql # not compatible
query I rowsort label-2315
SELECT - 9 * + 84 * - - MIN ( ALL 82 ) + 42 * - 74 + + 91 AS col0
----
-65009

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2317
SELECT + - 24 DIV 43 + + CAST( - 51 AS SIGNED ) DIV + + COUNT( * ) - + 21
----
-72

skipif mysql # not compatible
query I rowsort label-2317
SELECT + - 24 / 43 + + CAST ( - 51 AS INTEGER ) / + + COUNT ( * ) - + 21
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT - + 54 * 5 * + + COUNT( * ) - - 82 AS col0
----
-188

skipif mysql # not compatible
query I rowsort label-2318
SELECT - + 54 * 5 * + + COUNT ( * ) - - 82 AS col0
----
-188

query I rowsort
SELECT - + 37 - 30 + + - 49 AS col2
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2320
SELECT ALL + 4, - 79 / - ( + COUNT( ALL - CASE - 46 WHEN + - 66 + + 12 + 70 THEN - 45 ELSE + 28 END ) ) * 74 + CAST( NULL AS SIGNED ) - - 5 AS col2
----
4
NULL

skipif mysql # not compatible
query II rowsort label-2320
SELECT ALL + 4, - 79 / - ( + COUNT ( ALL - CASE - 46 WHEN + - 66 + + 12 + 70 THEN - 45 ELSE + 28 END ) ) * 74 + CAST ( NULL AS INTEGER ) - - 5 AS col2
----
4
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2321
SELECT CASE 46 WHEN - 7 THEN - MAX( 20 ) * + 89 END * - + COALESCE ( + - AVG ( ALL - - ( + + 61 ) ), + - AVG ( DISTINCT 32 ) ) * + 79 + - + 20 + + 49 / - CAST( 64 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT CASE 46 WHEN - 7 THEN - MAX ( 20 ) * + 89 END * - + COALESCE ( + - AVG ( ALL - - ( + + 61 ) ), + - AVG ( DISTINCT 32 ) ) * + 79 + - + 20 + + 49 / - CAST ( 64 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2322
SELECT - COALESCE ( + - 13, - COUNT( * ) DIV + MAX( - 40 ) + - 70 * 46 * - + 85 + - - 51 ) * + 83 AS col0
----
1079

skipif mysql # not compatible
query I rowsort label-2322
SELECT - COALESCE ( + - 13, - COUNT ( * ) / + MAX ( - 40 ) + - 70 * 46 * - + 85 + - - 51 ) * + 83 AS col0
----
1079

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

skipif mysql # not compatible
query I rowsort label-2323
SELECT + 25 / - COUNT ( * ) + + ( + COUNT ( * ) )
----
-24

query I rowsort
SELECT - 86 + + 98
----
12

query I rowsort
SELECT - 38 * - 3 * - + 55 AS col2
----
-6270

onlyif mysql # aggregate syntax: 
query II rowsort label-2326
SELECT DISTINCT + ( - COUNT( * ) ), MIN( 52 ) AS col2
----
-1
52

skipif mysql # not compatible
query II rowsort label-2326
SELECT DISTINCT + ( - COUNT ( * ) ), MIN ( 52 ) AS col2
----
-1
52

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

skipif mysql # not compatible
query I rowsort label-2327
SELECT - 67 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 32 + + 29 + - - 86 * 8 AS col0
----
749

query II rowsort
SELECT ALL 31 + 48 + 80, 49 * - 90 * 36 - + 88 AS col2
----
159
-158848

query I rowsort
SELECT ALL CASE 19 WHEN 1 * - ( 54 ) THEN NULL ELSE 56 END + - - 68 + - 57
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2331
SELECT - COUNT( DISTINCT + 48 ) AS col0, - 80
----
-1
-80

skipif mysql # not compatible
query II rowsort label-2331
SELECT - COUNT ( DISTINCT + 48 ) AS col0, - 80
----
-1
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT ALL CASE - + 77 WHEN + COUNT( * ) THEN + ( + 10 ) WHEN - 17 + 82 * 27 - + COUNT( + - 81 ) + + COUNT( * ) THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL CASE - + 77 WHEN + COUNT ( * ) THEN + ( + 10 ) WHEN - 17 + 82 * 27 - + COUNT ( + - 81 ) + + COUNT ( * ) THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT + 72 * + COUNT( * ) * + + 98 AS col0
----
7056

skipif mysql # not compatible
query I rowsort label-2333
SELECT + 72 * + COUNT ( * ) * + + 98 AS col0
----
7056

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT ALL MAX( ALL - 47 ) * + + 43 * - - 4
----
-8084

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL MAX ( ALL - 47 ) * + + 43 * - - 4
----
-8084

query I rowsort
SELECT + 89 + - 56 * - - 84 * 42 col0
----
-197479

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL - 70 + 52 * + - COUNT( * ) + + 96
----
-26

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL - 70 + 52 * + - COUNT ( * ) + + 96
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT - - 65 - - SUM( DISTINCT - 56 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-2337
SELECT - - 65 - - SUM ( DISTINCT - 56 ) AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2338
SELECT + + CAST( - CASE 77 WHEN ( - - 4 ) * + + 32 + - 2 + + 18 THEN - 56 + 12 * 65 / + 15 ELSE NULL END AS SIGNED ) * - 64 + - - 93 * + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2338
SELECT + + CAST ( - CASE 77 WHEN ( - - 4 ) * + + 32 + - 2 + + 18 THEN - 56 + 12 * 65 / + 15 ELSE NULL END AS INTEGER ) * - 64 + - - 93 * + 71 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2339
SELECT COALESCE ( 33, + COUNT( * ) * AVG ( + 88 ) DIV + 71 - + 34, + 23 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2339
SELECT COALESCE ( 33, + COUNT ( * ) * AVG ( + 88 ) / + 71 - + 34, + 23 ) AS col2
----
33

query I rowsort
SELECT DISTINCT + CASE - - 15 WHEN - ( + 50 ) THEN 95 WHEN AVG ( + 36 ) - - 79 THEN NULL END
----
NULL

query I rowsort
SELECT + - ( + 66 ) + + 40 + + - 33 * 4 - + 5 * + 27 AS col2
----
-293

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT + CASE - 9 WHEN + ( + 43 ) THEN NULL WHEN NULLIF ( COUNT( DISTINCT + + 57 ), - ( - + COUNT( * ) ) ) THEN NULL WHEN - - NULLIF ( + ( + 83 ), 29 ) THEN 35 END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2343
SELECT + CASE - 9 WHEN + ( + 43 ) THEN NULL WHEN NULLIF ( COUNT ( DISTINCT + + 57 ), - ( - + COUNT ( * ) ) ) THEN NULL WHEN - - NULLIF ( + ( + 83 ), 29 ) THEN 35 END - + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - 38 * - 15, + 9 + - 88 AS col1
----
570
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-2345
SELECT ALL - 27 DIV + + COALESCE ( 24, 28 + + 14 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL - 27 / + + COALESCE ( 24, 28 + + 14 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2346
SELECT - + 8 * - 86 AS col2, - 14 * - NULLIF ( - - 98, + ( - COUNT( * ) ) * + 53 )
----
688
1372

skipif mysql # not compatible
query II rowsort label-2346
SELECT - + 8 * - 86 AS col2, - 14 * - NULLIF ( - - 98, + ( - COUNT ( * ) ) * + 53 )
----
688
1372

query I rowsort
SELECT + 76 * + + 44
----
3344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2348
SELECT 92 / + 18 + - 2 + + CASE - COUNT( * ) WHEN + 99 THEN NULL WHEN - 25 THEN - 72 ELSE 23 * + + SUM( + 22 ) - + + COUNT( * ) * + MAX( ALL + + 15 ) / + CASE - 2 WHEN + - 1 THEN + - 87 + + - 34 / + SUM( ALL + 4 ) * + CAST( NULL AS SIGNED ) END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT 92 / + 18 + - 2 + + CASE - COUNT ( * ) WHEN + 99 THEN NULL WHEN - 25 THEN - 72 ELSE 23 * + + SUM ( + 22 ) - + + COUNT ( * ) * + MAX ( ALL + + 15 ) / + CASE - 2 WHEN + - 1 THEN + - 87 + + - 34 / + SUM ( ALL + 4 ) * + CAST ( NULL AS INTEGER ) END END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - CASE - 21 WHEN + - 96 THEN NULL ELSE + 88 END * 90
----
-7920

query I rowsort
SELECT DISTINCT + - COALESCE ( - 64, - - 8 + - 53 ) AS col2
----
64

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

query I rowsort
SELECT ( - 36 ) AS col2
----
-36

query I rowsort
SELECT - ( 36 ) * - - 5
----
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-2354
SELECT + 96 * + 28 DIV - + 7 - - - 66
----
-450

skipif mysql # not compatible
query I rowsort label-2354
SELECT + 96 * + 28 / - + 7 - - - 66
----
-450

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT ALL + 64 DIV + 52
----
1

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + 64 / + 52
----
1

query I rowsort
SELECT DISTINCT + COALESCE ( 43, + + 86 ) * 36 AS col2
----
1548

query I rowsort
SELECT - 8 * - 33 AS col2
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2358
SELECT DISTINCT 89 * + + COUNT( DISTINCT 25 ) * + 4 + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2358
SELECT DISTINCT 89 * + + COUNT ( DISTINCT 25 ) * + 4 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT ALL + COUNT( * ) * 65 + - ( 56 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL + COUNT ( * ) * 65 + - ( 56 ) AS col1
----
9

query I rowsort
SELECT DISTINCT + 47 * 40 AS col2
----
1880

query II rowsort
SELECT + 92, - 14 * - + 86 AS col2
----
92
1204

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT - 49 + - 1 + + - 55 + - 48 DIV + + 59
----
-105

skipif mysql # not compatible
query I rowsort label-2362
SELECT - 49 + - 1 + + - 55 + - 48 / + + 59
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2363
SELECT ALL MIN( 31 ) * + + CAST( 92 AS SIGNED ) * - ( 69 ) * - 18 + + + 31 - + 78 + + - COUNT( * ) * - 73 col1, + 44 AS col0
----
3542210
44

skipif mysql # not compatible
query II rowsort label-2363
SELECT ALL MIN ( 31 ) * + + CAST ( 92 AS INTEGER ) * - ( 69 ) * - 18 + + + 31 - + 78 + + - COUNT ( * ) * - 73 col1, + 44 AS col0
----
3542210
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT NULLIF ( + CAST( + AVG ( ALL - 75 ) AS SIGNED ), 14 )
----
-75

skipif mysql # not compatible
query I rowsort label-2364
SELECT NULLIF ( + CAST ( + AVG ( ALL - 75 ) AS INTEGER ), 14 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT COUNT( - 94 ) * - 55 * + 85 + + 17 AS col2
----
-4658

skipif mysql # not compatible
query I rowsort label-2365
SELECT COUNT ( - 94 ) * - 55 * + 85 + + 17 AS col2
----
-4658

query I rowsort
SELECT NULLIF ( + + 34, 58 - - NULLIF ( - 20, - 73 ) ) AS col0
----
34

query II rowsort
SELECT - 3, - 26 col0
----
-3
-26

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2369
SELECT + 91 - COUNT( ALL 49 ) + + ( 19 ) DIV + - 73 AS col1, - COALESCE ( + 14, + COALESCE ( + MAX( ALL - ( + 63 ) ), - 45 * COUNT( * ) + + 39 - 53 - - + COUNT( * ) * - 24, + MIN( DISTINCT - 33 ) * 68 ) ) AS col1
----
90
-14

skipif mysql # not compatible
query II rowsort label-2369
SELECT + 91 - COUNT ( ALL 49 ) + + ( 19 ) / + - 73 AS col1, - COALESCE ( + 14, + COALESCE ( + MAX ( ALL - ( + 63 ) ), - 45 * COUNT ( * ) + + 39 - 53 - - + COUNT ( * ) * - 24, + MIN ( DISTINCT - 33 ) * 68 ) ) AS col1
----
90
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT - MAX( + 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2370
SELECT - MAX ( + 55 ) AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2371
SELECT ALL 47 * + MIN( DISTINCT + - 1 ) + + + 8 * + 57 - + 93 DIV + - 65 AS col1
----
410

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL 47 * + MIN ( DISTINCT + - 1 ) + + + 8 * + 57 - + 93 / + - 65 AS col1
----
410

query II rowsort
SELECT DISTINCT + 64, 31 + 37 AS col2
----
64
68

query I rowsort
SELECT ALL - ( + 41 ) col0
----
-41

query I rowsort
SELECT ALL - NULLIF ( 76, + + ( + + 62 ) * + - 2 )
----
-76

query I rowsort
SELECT - - ( + 62 ) AS col1
----
62

query I rowsort
SELECT + 24 * + + 87 AS col0
----
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT 5 * + - 71 * - + ( - 5 ) + 96 + + 74 * + 76 * - + COUNT( * ) AS col1
----
-7303

skipif mysql # not compatible
query I rowsort label-2377
SELECT 5 * + - 71 * - + ( - 5 ) + 96 + + 74 * + 76 * - + COUNT ( * ) AS col1
----
-7303

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

skipif mysql # not compatible
query I rowsort label-2378
SELECT - COUNT ( * ) + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT DISTINCT CASE + MIN( DISTINCT + - 58 ) WHEN + ( - 84 ) THEN + 12 * - - 43 ELSE NULL END * 98 + - NULLIF ( + CASE 96 WHEN + 69 + + AVG ( 21 ) THEN - + 76 + - MAX( DISTINCT - ( - - 74 ) ) * + 92 ELSE + 34 * + 47 END, - 93 ) + - 48 AS col0, + 5
----
NULL
5

skipif mysql # not compatible
query II rowsort label-2379
SELECT DISTINCT CASE + MIN ( DISTINCT + - 58 ) WHEN + ( - 84 ) THEN + 12 * - - 43 ELSE NULL END * 98 + - NULLIF ( + CASE 96 WHEN + 69 + + AVG ( 21 ) THEN - + 76 + - MAX ( DISTINCT - ( - - 74 ) ) * + 92 ELSE + 34 * + 47 END, - 93 ) + - 48 AS col0, + 5
----
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT COUNT( * ) + MIN( DISTINCT 99 ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-2380
SELECT COUNT ( * ) + MIN ( DISTINCT 99 ) AS col1
----
100

query I rowsort
SELECT 97 + + + 1 AS col0
----
98

query I rowsort
SELECT 85 * - + 61
----
-5185

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2383
SELECT 28 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2383
SELECT 28 * - CAST ( NULL AS REAL ) AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT + + 17 * - 12
----
-204

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

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

query I rowsort
SELECT DISTINCT + - 4 + + 6
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2388
SELECT ALL 68 + + COALESCE ( - COUNT( * ), + 34 + + COUNT( * ) + + 14 * - CAST( - + 79 AS SIGNED ) * - 6 * - - 3 ) - - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL 68 + + COALESCE ( - COUNT ( * ), + 34 + + COUNT ( * ) + + 14 * - CAST ( - + 79 AS INTEGER ) * - 6 * - - 3 ) - - COUNT ( * )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2389
SELECT + COALESCE ( - 99, + 25 + 24 ) DIV - 8 + 63
----
75

skipif mysql # not compatible
query I rowsort label-2389
SELECT + COALESCE ( - 99, + 25 + 24 ) / - 8 + 63
----
75

query I rowsort
SELECT 60 + - 82
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2391
SELECT CASE 12 WHEN - 40 THEN COUNT( * ) * + MAX( DISTINCT 4 ) ELSE - COALESCE ( + 3, - + 32, + 5 ) + - ( - 3 ) * - + 18 DIV 91 END DIV + 64 - + - 57 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-2391
SELECT CASE 12 WHEN - 40 THEN COUNT ( * ) * + MAX ( DISTINCT 4 ) ELSE - COALESCE ( + 3, - + 32, + 5 ) + - ( - 3 ) * - + 18 / 91 END / + 64 - + - 57 AS col2
----
57

query I rowsort
SELECT ALL 21 + + 62
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2393
SELECT + 29 * - - MIN( DISTINCT - 92 ) + + CAST( 30 AS SIGNED ) AS col0
----
-2638

skipif mysql # not compatible
query I rowsort label-2393
SELECT + 29 * - - MIN ( DISTINCT - 92 ) + + CAST ( 30 AS INTEGER ) AS col0
----
-2638

query I rowsort
SELECT ( - ( - 10 ) ) + - 58 col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2395
SELECT ALL 85 * + 68 * 98 * - CAST( - 33 AS SIGNED ) * + - COUNT( * ) AS col2
----
-18692520

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL 85 * + 68 * 98 * - CAST ( - 33 AS INTEGER ) * + - COUNT ( * ) AS col2
----
-18692520

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2396
SELECT ( - - 39 ) + COUNT( * ) + - - 69, + 72 DIV - 84 + + COALESCE ( + 52, - 50 + + + 82 ) + + 59 * - 5 AS col1
----
109
-243

skipif mysql # not compatible
query II rowsort label-2396
SELECT ( - - 39 ) + COUNT ( * ) + - - 69, + 72 / - 84 + + COALESCE ( + 52, - 50 + + + 82 ) + + 59 * - 5 AS col1
----
109
-243

query I rowsort
SELECT ALL - CASE - + 0 WHEN - 50 THEN NULL WHEN + 24 / 17 THEN NULL WHEN - 89 * - - 86 - - - 60 / + 35 THEN - 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2398
SELECT DISTINCT COUNT( * ) + 48 AS col1, + 90 + - 56 * 97 col0
----
49
-5342

skipif mysql # not compatible
query II rowsort label-2398
SELECT DISTINCT COUNT ( * ) + 48 AS col1, + 90 + - 56 * 97 col0
----
49
-5342

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL - CASE - 63 WHEN - COUNT( * ) THEN - 22 WHEN + + 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL - CASE - 63 WHEN - COUNT ( * ) THEN - 22 WHEN + + 36 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2400
SELECT ( CASE + 54 WHEN + 68 / 9 + ( + NULLIF ( + CAST( AVG ( - 86 ) AS SIGNED ), + 76 ) ) * - - 91 THEN + - 65 WHEN + - 29 * - 94 + - 12 + - ( + CAST( + 45 AS SIGNED ) ) * + 51 THEN + - 84 / + + 2 * - 29 / + ( 38 ) - + 0 / 40 / - - 62 * + + ( - 56 ) ELSE NULL END ) * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT ( CASE + 54 WHEN + 68 / 9 + ( + NULLIF ( + CAST ( AVG ( - 86 ) AS INTEGER ), + 76 ) ) * - - 91 THEN + - 65 WHEN + - 29 * - 94 + - 12 + - ( + CAST ( + 45 AS INTEGER ) ) * + 51 THEN + - 84 / + + 2 * - 29 / + ( 38 ) - + 0 / 40 / - - 62 * + + ( - 56 ) ELSE NULL END ) * 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT ALL + 16 DIV 33 col0
----
0

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL + 16 / 33 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT 39 + - ( MAX( ALL + 91 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-2402
SELECT 39 + - ( MAX ( ALL + 91 ) )
----
-52

query I rowsort
SELECT 10 * 34 AS col2
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT ALL + + COUNT( ALL + + 24 ) - 34
----
-33

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL + + COUNT ( ALL + + 24 ) - 34
----
-33

query I rowsort
SELECT ALL - + 98 col1
----
-98

query II rowsort
SELECT DISTINCT 21 * + - 75 AS col2, + 24 * 45
----
-1575
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT - 65 + 96 / MAX( + ( CASE WHEN NOT NULL IS NULL THEN 6 WHEN 37 <> - 98 * - 47 THEN NULL ELSE NULL END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2407
SELECT - 65 + 96 / MAX ( + ( CASE WHEN NOT NULL IS NULL THEN 6 WHEN 37 <> - 98 * - 47 THEN NULL ELSE NULL END ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2408
SELECT 74 DIV - + 91
----
0

skipif mysql # not compatible
query I rowsort label-2408
SELECT 74 / - + 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT - 22 - + MIN( ALL - 82 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-2409
SELECT - 22 - + MIN ( ALL - 82 ) AS col0
----
60

query I rowsort
SELECT + 31 * - 10
----
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT - SUM( - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-2411
SELECT - SUM ( - 56 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2412
SELECT ALL - COUNT( * ) + + 24 DIV - 27 * + SUM( 26 ) + - + 39 DIV 22 * COALESCE ( + COUNT( ALL 98 ), - CAST( - COUNT( * ) AS SIGNED ), + - 79 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL - COUNT ( * ) + + 24 / - 27 * + SUM ( 26 ) + - + 39 / 22 * COALESCE ( + COUNT ( ALL 98 ), - CAST ( - COUNT ( * ) AS INTEGER ), + - 79 ) AS col1
----
-2

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

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

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

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

query I rowsort
SELECT DISTINCT - + 52 + 28
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-2416
SELECT ALL 11 + - + 56 AS col1, + 49 * - 59 * + ( + + COUNT( * ) ) * + + 88 * + 81
----
-45
-20607048

skipif mysql # not compatible
query II rowsort label-2416
SELECT ALL 11 + - + 56 AS col1, + 49 * - 59 * + ( + + COUNT ( * ) ) * + + 88 * + 81
----
-45
-20607048

query II rowsort
SELECT ALL - 84 + - 70 AS col0, 42
----
-154
42

query II rowsort
SELECT ALL - 46 * + 99 * + 33 * 17 * + 63 AS col2, 44
----
-160952022
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT 70 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-2419
SELECT 70 / + 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT ALL - ( + 98 ) * + - COUNT( * ) * - 55 + - 53 + - COUNT( * ) * - 33 * - COALESCE ( 34, 80 ) * + - 28 + COUNT( * ) + - NULLIF ( 99, - 28 * 76 ) + COUNT( - ( 17 ) ) + - 51 + - 12 AS col1
----
25813

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL - ( + 98 ) * + - COUNT ( * ) * - 55 + - 53 + - COUNT ( * ) * - 33 * - COALESCE ( 34, 80 ) * + - 28 + COUNT ( * ) + - NULLIF ( 99, - 28 * 76 ) + COUNT ( - ( 17 ) ) + - 51 + - 12 AS col1
----
25813

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT DISTINCT MAX( DISTINCT - 25 ) * - COUNT( + 8 ) - - 49 + CASE - - CASE - 48 WHEN + + 71 THEN NULL WHEN - - ( 43 ) * + NULLIF ( - - 98, 11 ) * 94 / - 24 + 35 THEN NULL ELSE - 74 - - - 67 / - 75 * COUNT( * ) * - - COALESCE ( + 25, + COUNT( * ) + - 75 ) * + 12 - 2 + - 44 * - 16 + + 0 END WHEN 3 THEN - 80 - 79 * - 18 * 55 WHEN - 13 THEN NULL WHEN 79 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT MAX ( DISTINCT - 25 ) * - COUNT ( + 8 ) - - 49 + CASE - - CASE - 48 WHEN + + 71 THEN NULL WHEN - - ( 43 ) * + NULLIF ( - - 98, 11 ) * 94 / - 24 + 35 THEN NULL ELSE - 74 - - - 67 / - 75 * COUNT ( * ) * - - COALESCE ( + 25, + COUNT ( * ) + - 75 ) * + 12 - 2 + - 44 * - 16 + + 0 END WHEN 3 THEN - 80 - 79 * - 18 * 55 WHEN - 13 THEN NULL WHEN 79 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2422
SELECT DISTINCT 8 DIV - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT 8 / - 64 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT COALESCE ( 56, - + 13 / 24 ) * + - 45 + - MIN( CASE - 36 WHEN - 87 THEN + 45 WHEN - + 4 THEN 76 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2423
SELECT COALESCE ( 56, - + 13 / 24 ) * + - 45 + - MIN ( CASE - 36 WHEN - 87 THEN + 45 WHEN - + 4 THEN 76 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT MAX( ( 82 ) ) col0
----
82

skipif mysql # not compatible
query I rowsort label-2424
SELECT MAX ( ( 82 ) ) col0
----
82

query I rowsort
SELECT 20 * - 16
----
-320

onlyif mysql # DIV for integer division: 
query I rowsort label-2426
SELECT DISTINCT 72 DIV 5
----
14

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT 72 / 5
----
14

query II rowsort
SELECT + 49 * - 30 + - 92 col2, 81
----
-1562
81

query I rowsort
SELECT 4 + + - 85 - + - 84
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL - NULLIF ( - + NULLIF ( + 90, + 13 + - ( - COALESCE ( - MAX( - - 17 ), 30, + 82 ) ) * 75 ), - 14 * + 87 + 0 / + COUNT( * ) )
----
90

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL - NULLIF ( - + NULLIF ( + 90, + 13 + - ( - COALESCE ( - MAX ( - - 17 ), 30, + 82 ) ) * 75 ), - 14 * + 87 + 0 / + COUNT ( * ) )
----
90

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

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

query I rowsort
SELECT ( - + 18 ) * + 53
----
-954

query I rowsort
SELECT ALL 13 * - 52
----
-676

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

skipif mysql # not compatible
query I rowsort label-2433
SELECT + CAST ( NULL AS INTEGER ) * + 37 + - 2 AS col1
----
NULL

query I rowsort
SELECT + 93 + 80 * - 18 + - 93 * + - 74 AS col1
----
5535

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

query I rowsort
SELECT - - 54 * - 66
----
-3564

query I rowsort
SELECT - ( - 42 ) AS col0
----
42

query I rowsort
SELECT DISTINCT - 46 + - - 71
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT ALL + - 79 + - ( - + CAST( - 37 AS SIGNED ) ) AS col1
----
-116

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL + - 79 + - ( - + CAST ( - 37 AS INTEGER ) ) AS col1
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT + + 33 + + 27 + - 88 - - 77 * + 25 * - - MAX( 98 ) * 5 / COUNT( * ) + - ( + CASE - + 45 WHEN - - 82 THEN NULL WHEN NULLIF ( + 17, + CASE WHEN NOT COALESCE ( - + ( + 79 ), + + 59 ) IS NULL THEN 56 END * MIN( - 38 ) * ( - + COALESCE ( - - COUNT( * ), - - COUNT( * ), 73 + + + 29 ) ) ) THEN - 82 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2440
SELECT + + 33 + + 27 + - 88 - - 77 * + 25 * - - MAX ( 98 ) * 5 / COUNT ( * ) + - ( + CASE - + 45 WHEN - - 82 THEN NULL WHEN NULLIF ( + 17, + CASE WHEN NOT COALESCE ( - + ( + 79 ), + + 59 ) IS NULL THEN 56 END * MIN ( - 38 ) * ( - + COALESCE ( - - COUNT ( * ), - - COUNT ( * ), 73 + + + 29 ) ) ) THEN - 82 ELSE NULL END ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2441
SELECT DISTINCT - CAST ( + ( + - SUM ( DISTINCT + 72 ) ) AS INTEGER )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2442
SELECT + - 58 + + CAST( 78 AS SIGNED ) AS col2, - CAST( - 46 AS SIGNED ) * + 12
----
20
552

skipif mysql # not compatible
query II rowsort label-2442
SELECT + - 58 + + CAST ( 78 AS INTEGER ) AS col2, - CAST ( - 46 AS INTEGER ) * + 12
----
20
552

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL + 5 + + - 24 + + + 17 + - - 57 * - - SUM( DISTINCT - 67 )
----
-3821

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL + 5 + + - 24 + + + 17 + - - 57 * - - SUM ( DISTINCT - 67 )
----
-3821

query I rowsort
SELECT - 3 + 33
----
30

query II rowsort
SELECT - 21 + 23, - 11 AS col0
----
2
-11

query II rowsort
SELECT 16 col1, 73 AS col1
----
16
73

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

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL MAX ( ALL - 56 )
----
-56

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

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL + 6 - + COUNT ( * ) AS col2
----
5

query I rowsort
SELECT DISTINCT + NULLIF ( - + 17, 33 )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT - 45 DIV + - ( + 64 ) + + 78 * - 12
----
-936

skipif mysql # not compatible
query I rowsort label-2450
SELECT - 45 / + - ( + 64 ) + + 78 * - 12
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT DISTINCT + ( + + COUNT( ALL - 64 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT + ( + + COUNT ( ALL - 64 ) )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT - COUNT( * ) + + 83 * ( + COUNT( * ) ) * - 99 AS col0
----
-8218

skipif mysql # not compatible
query I rowsort label-2453
SELECT - COUNT ( * ) + + 83 * ( + COUNT ( * ) ) * - 99 AS col0
----
-8218

onlyif mysql # DIV for integer division: 
query I rowsort label-2454
SELECT 43 DIV + 54 + - 97 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-2454
SELECT 43 / + 54 + - 97 AS col0
----
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT ALL - NULLIF ( 3, - 42 ) * + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL - NULLIF ( 3, - 42 ) * + COUNT ( * )
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2457
SELECT 43 DIV 63 + + - 49 * - + 68 * + + 85 + 14 AS col1, - 0 - + 72 AS col1
----
283234
-72

skipif mysql # not compatible
query II rowsort label-2457
SELECT 43 / 63 + + - 49 * - + 68 * + + 85 + 14 AS col1, - 0 - + 72 AS col1
----
283234
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT DISTINCT + MAX( DISTINCT + - ( + 22 ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT + MAX ( DISTINCT + - ( + 22 ) ) AS col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2459
SELECT ALL + CAST( - ( + 85 ) AS SIGNED ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL + CAST ( - ( + 85 ) AS INTEGER ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-2460
SELECT + 60 + 56, + COUNT( * ) AS col0
----
116
1

skipif mysql # not compatible
query II rowsort label-2460
SELECT + 60 + 56, + COUNT ( * ) AS col0
----
116
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2461
SELECT + - 49 DIV + 65 * - - SUM( DISTINCT + 41 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2461
SELECT + - 49 / + 65 * - - SUM ( DISTINCT + 41 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2462
SELECT DISTINCT + - 2 DIV + + 22 AS col0, + 90 + + - ( CASE 29 WHEN - 57 - + + 55 * 42 THEN NULL WHEN 78 + + 21 + 89 * + 6 * - 42 * + ( - 66 ) + + - 58 THEN - - COUNT( * ) * - - 61 * - COUNT( DISTINCT + - 18 ) - + 37 END ) * + ( 12 ) * COUNT( * ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2462
SELECT DISTINCT + - 2 / + + 22 AS col0, + 90 + + - ( CASE 29 WHEN - 57 - + + 55 * 42 THEN NULL WHEN 78 + + 21 + 89 * + 6 * - 42 * + ( - 66 ) + + - 58 THEN - - COUNT ( * ) * - - 61 * - COUNT ( DISTINCT + - 18 ) - + 37 END ) * + ( 12 ) * COUNT ( * ) AS col1
----
0
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT ALL - 32 * COUNT( * ) * - 76 + - - 50
----
2482

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL - 32 * COUNT ( * ) * - 76 + - - 50
----
2482

query I rowsort
SELECT - - 5 * + 42
----
210

query I rowsort
SELECT + + 25 + + 84
----
109

query I rowsort
SELECT ALL 43 * 80 * - 99
----
-340560

query II rowsort
SELECT + 12 AS col0, - 18 * + + COALESCE ( + + 18, + 71 + 79 * + 27 * + + 59 + 25, - 40 )
----
12
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT ALL - - 60 * + COUNT( * ) + - CASE + NULLIF ( COUNT( ALL - ( - 51 ) ), - COUNT( ALL + - ( - + 66 ) ) ) WHEN - COUNT( * ) THEN + 59 * - 43 + + + 76 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL - - 60 * + COUNT ( * ) + - CASE + NULLIF ( COUNT ( ALL - ( - 51 ) ), - COUNT ( ALL + - ( - + 66 ) ) ) WHEN - COUNT ( * ) THEN + 59 * - 43 + + + 76 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT ALL + + 94 * + - COUNT( * ) + + 45 + - 32 + - 41 AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL + + 94 * + - COUNT ( * ) + + 45 + - 32 + - 41 AS col1
----
-122

query II rowsort
SELECT DISTINCT + 86 * - 54, 58 * + + 61 AS col0
----
-4644
3538

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT ALL 27 * + COUNT( * ) + + - COUNT( * ) + - 43 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL 27 * + COUNT ( * ) + + - COUNT ( * ) + - 43 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT ALL 10 * - COUNT( * ) * - 24
----
240

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL 10 * - COUNT ( * ) * - 24
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ALL - COALESCE ( + 74, - - COUNT( * ) ) * - COUNT( * ) + + + 52 + + 65 * - ( + - 7 ) + - COUNT( * )
----
580

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL - COALESCE ( + 74, - - COUNT ( * ) ) * - COUNT ( * ) + + + 52 + + 65 * - ( + - 7 ) + - COUNT ( * )
----
580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2475
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( - - 99 ) * + ( - - COALESCE ( + - 92, + COUNT( * ) * + COALESCE ( - 91, + 84 * 39 ) ) ) * + MIN( DISTINCT - - 81 ) / + - ( + ( - + 93 ) ) + - 91 + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( - - 99 ) * + ( - - COALESCE ( + - 92, + COUNT ( * ) * + COALESCE ( - 91, + 84 * 39 ) ) ) * + MIN ( DISTINCT - - 81 ) / + - ( + ( - + 93 ) ) + - 91 + 7
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2476
SELECT ALL 35 * + CASE + 98 WHEN - + COUNT( * ) THEN COUNT( * ) ELSE - 16 * - 96 + 18 DIV 50 + + - ( + SUM( - 6 ) ) END + 30 AS col1
----
54000

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL 35 * + CASE + 98 WHEN - + COUNT ( * ) THEN COUNT ( * ) ELSE - 16 * - 96 + 18 / 50 + + - ( + SUM ( - 6 ) ) END + 30 AS col1
----
54000

query I rowsort
SELECT + - 3 * + ( + 9 ) + + 20 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-2478
SELECT ALL CASE 21 WHEN - - 2 - - 64 THEN - 57 * + 12 / 23 + - ( - COUNT( * ) ) ELSE NULL END AS col0, 72 + - 15 AS col1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-2478
SELECT ALL CASE 21 WHEN - - 2 - - 64 THEN - 57 * + 12 / 23 + - ( - COUNT ( * ) ) ELSE NULL END AS col0, 72 + - 15 AS col1
----
NULL
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT + + 29 - + COUNT( * ) * - 63 * - ( + 26 ) + - 7 AS col1
----
-1616

skipif mysql # not compatible
query I rowsort label-2479
SELECT + + 29 - + COUNT ( * ) * - 63 * - ( + 26 ) + - 7 AS col1
----
-1616

onlyif mysql # DIV for integer division: 
query I rowsort label-2480
SELECT ALL 73 DIV - 22
----
-3

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL 73 / - 22
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2481
SELECT DISTINCT 68 - - CAST( - - 38 AS SIGNED ) - - 15 DIV + 25 * - - NULLIF ( - 72, - + 31 + + - MAX( - + 82 ) ) + 34 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT 68 - - CAST ( - - 38 AS INTEGER ) - - 15 / + 25 * - - NULLIF ( - 72, - + 31 + + - MAX ( - + 82 ) ) + 34 AS col1
----
140

query I rowsort
SELECT DISTINCT + 1 * - + 26 AS col2
----
-26

query I rowsort
SELECT ALL 62 * + 54
----
3348

query I rowsort
SELECT - ( 39 ) AS col0
----
-39

query I rowsort
SELECT - 67 * - - ( + 49 )
----
-3283

query I rowsort
SELECT - 26 * ( - + 95 )
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL CASE - 43 WHEN + 91 * + AVG ( DISTINCT - 71 ) * MAX( ALL - 72 ) * 52 / - 8 + - 98 * + + 44 + + 24 * + AVG ( + 88 ) THEN + 16 + + + 67 + COUNT( * ) * + 60 WHEN - - 61 + - 18 / + 60 THEN NULL WHEN - COUNT( - 41 ) THEN NULL ELSE - COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL CASE - 43 WHEN + 91 * + AVG ( DISTINCT - 71 ) * MAX ( ALL - 72 ) * 52 / - 8 + - 98 * + + 44 + + 24 * + AVG ( + 88 ) THEN + 16 + + + 67 + COUNT ( * ) * + 60 WHEN - - 61 + - 18 / + 60 THEN NULL WHEN - COUNT ( - 41 ) THEN NULL ELSE - COUNT ( * ) END AS col1
----
-1

query I rowsort
SELECT DISTINCT COALESCE ( + + 71, - NULLIF ( ( 49 ), + - 58 ) ) AS col2
----
71

query II rowsort
SELECT + 31 * - + 90 AS col2, ( - 90 ) AS col1
----
-2790
-90

query I rowsort
SELECT DISTINCT 37 * 31
----
1147

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT DISTINCT - CASE 55 WHEN - 68 * - MAX( + 85 ) THEN + + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2491
SELECT DISTINCT - CASE 55 WHEN - 68 * - MAX ( + 85 ) THEN + + 97 END
----
NULL

query II rowsort
SELECT DISTINCT - 66 * ( + - 23 ), 68 AS col2
----
1518
68

query I rowsort
SELECT 49 * 43
----
2107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2494
SELECT - 96 * 91 + + 93 + CASE - 97 WHEN 50 - - + 76 + - COALESCE ( + 30, + + 86 / - 49 + - COUNT( * ) * + - 4 * - 76 - + - 91 * 45 / + + 37 * + COUNT( * ) + - 72, + - 36 * - - 45 * - 59 * - COALESCE ( ( - + 99 ), - + ( + 12 ), + 76 * + - 54 ) ) - - 53 THEN + CAST( + 97 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2494
SELECT - 96 * 91 + + 93 + CASE - 97 WHEN 50 - - + 76 + - COALESCE ( + 30, + + 86 / - 49 + - COUNT ( * ) * + - 4 * - 76 - + - 91 * 45 / + + 37 * + COUNT ( * ) + - 72, + - 36 * - - 45 * - 59 * - COALESCE ( ( - + 99 ), - + ( + 12 ), + 76 * + - 54 ) ) - - 53 THEN + CAST ( + 97 AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - - 13 + 98
----
111

query I rowsort
SELECT ALL + - 0 + + 58 AS col2
----
58

query I rowsort
SELECT ALL - - ( - 24 ) + 12 AS col0
----
-12

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2499
SELECT ALL 55 + - CAST( NULL AS DECIMAL ) + 8 - - - 83 * - + AVG ( - 28 ) + + 63 * - + 11 + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL 55 + - CAST ( NULL AS REAL ) + 8 - - - 83 * - + AVG ( - 28 ) + + 63 * - + 11 + + 84
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2501
SELECT ALL - - COALESCE ( - + 70, 37 * + 35 + + 70 - - 98 + + 31 - - 26 * + - 73 + + 55 * 46 * ( + + 57 ) + - 46 * - + 57 DIV + CAST( - 34 AS SIGNED ) DIV 74 * 52, - 27 * - NULLIF ( - 71, - 92 + 20 + 55 ) + 59 )
----
-70

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL - - COALESCE ( - + 70, 37 * + 35 + + 70 - - 98 + + 31 - - 26 * + - 73 + + 55 * 46 * ( + + 57 ) + - 46 * - + 57 / + CAST ( - 34 AS INTEGER ) / 74 * 52, - 27 * - NULLIF ( - 71, - 92 + 20 + 55 ) + 59 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ALL + + 33 + 95 * - MIN( + 49 ) + 40 AS col1
----
-4582

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL + + 33 + 95 * - MIN ( + 49 ) + 40 AS col1
----
-4582

query II rowsort
SELECT DISTINCT - 63 + + 21, 9 * - 72 AS col2
----
-42
-648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2504
SELECT 58 * + 50 * CAST( NULL AS SIGNED ) - + 65 - - + 45 + - 39 * - - 48 * - 32 / + 29 + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT 58 * + 50 * CAST ( NULL AS INTEGER ) - + 65 - - + 45 + - 39 * - - 48 * - 32 / + 29 + + 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT DISTINCT 62 * + CAST( 40 AS SIGNED ) / + CASE + 91 WHEN - NULLIF ( + 68, + + 87 + + COUNT( * ) * - + 4 + - + COUNT( * ) ) THEN - 2 ELSE - + 10 + MIN( DISTINCT + - 84 ) + - 41 * + + 76 + - - 30 + COUNT( * ) / AVG ( ALL CASE - + 79 WHEN - 28 * - 18 THEN - - 13 WHEN 24 THEN + 90 END ) * 86 + - - 72 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT 62 * + CAST ( 40 AS INTEGER ) / + CASE + 91 WHEN - NULLIF ( + 68, + + 87 + + COUNT ( * ) * - + 4 + - + COUNT ( * ) ) THEN - 2 ELSE - + 10 + MIN ( DISTINCT + - 84 ) + - 41 * + + 76 + - - 30 + COUNT ( * ) / AVG ( ALL CASE - + 79 WHEN - 28 * - 18 THEN - - 13 WHEN 24 THEN + 90 END ) * 86 + - - 72 END AS col2
----
NULL

query I rowsort
SELECT + 40 * - + 62 * - 8
----
19840

query I rowsort
SELECT DISTINCT + 42 - - 44 AS col1
----
86

query I rowsort
SELECT DISTINCT 21 * + 34
----
714

query I rowsort
SELECT DISTINCT 85 - + - 80 AS col0
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2510
SELECT COALESCE ( + MIN( + 42 ), + 66 DIV 33, - - 87 ) * 68
----
2856

skipif mysql # not compatible
query I rowsort label-2510
SELECT COALESCE ( + MIN ( + 42 ), + 66 / 33, - - 87 ) * 68
----
2856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2511
SELECT SUM( ALL - 6 ) + + COALESCE ( + 10, - 82 DIV - + CASE 81 WHEN - - 71 - - + 79 THEN NULL ELSE - - COUNT( * ) * 73 END, - COUNT( * ) * - 84 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2511
SELECT SUM ( ALL - 6 ) + + COALESCE ( + 10, - 82 / - + CASE 81 WHEN - - 71 - - + 79 THEN NULL ELSE - - COUNT ( * ) * 73 END, - COUNT ( * ) * - 84 ) AS col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2512
SELECT ( 90 ) DIV - + 22 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-2512
SELECT ( 90 ) / - + 22 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT 20 + - COUNT( + 77 ) + - + 62 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2513
SELECT 20 + - COUNT ( + 77 ) + - + 62 AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2514
SELECT ALL CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) + + 17 + - 73 / + NULLIF ( - 43, - - ( - - COUNT( ALL CAST( NULL AS SIGNED ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL CAST ( CAST ( NULL AS REAL ) AS INTEGER ) + + 17 + - 73 / + NULLIF ( - 43, - - ( - - COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2515
SELECT CAST( NULL AS SIGNED ) + - - COALESCE ( - 57, + - 66 + - - 30 ) * - 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT CAST ( NULL AS INTEGER ) + - - COALESCE ( - 57, + - 66 + - - 30 ) * - 55 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2516
SELECT ALL 37 AS col2, + 4 DIV + 23 AS col2
----
37
0

skipif mysql # not compatible
query II rowsort label-2516
SELECT ALL 37 AS col2, + 4 / + 23 AS col2
----
37
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2518
SELECT ( - + 47 ) DIV 29 + + 65 + + COUNT( * ) + + 75
----
140

skipif mysql # not compatible
query I rowsort label-2518
SELECT ( - + 47 ) / 29 + + 65 + + COUNT ( * ) + + 75
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2519
SELECT ALL CAST( NULL AS SIGNED ) + - - 86 + + 28 - + 56 * - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL CAST ( NULL AS INTEGER ) + - - 86 + + 28 - + 56 * - 91 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2520
SELECT ( NULLIF ( + CAST( NULL AS SIGNED ), + ( + 16 ) + + COUNT( * ) + COUNT( * ) + - 57 * + 99 ) ) * + 88 + + - AVG ( 63 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT ( NULLIF ( + CAST ( NULL AS INTEGER ), + ( + 16 ) + + COUNT ( * ) + COUNT ( * ) + - 57 * + 99 ) ) * + 88 + + - AVG ( 63 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 77 + + 7
----
84

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

query I rowsort
SELECT DISTINCT 60 + + 87 AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL - COUNT( * ) + 28
----
27

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL - COUNT ( * ) + 28
----
27

query II rowsort
SELECT + 9 + - COALESCE ( - 4, 31 ) AS col2, - 13 * - 75
----
13
975

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

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL - SUM ( - 4 )
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT 53 * - ( - + 24 ) * - + ( - 68 ) + + COALESCE ( + COUNT( * ), NULLIF ( + 19, + - 61 ) + + - COUNT( * ) )
----
86497

skipif mysql # not compatible
query I rowsort label-2528
SELECT 53 * - ( - + 24 ) * - + ( - 68 ) + + COALESCE ( + COUNT ( * ), NULLIF ( + 19, + - 61 ) + + - COUNT ( * ) )
----
86497

query I rowsort
SELECT ALL - 67 - + 49
----
-116

query II rowsort
SELECT - 47 AS col2, - 23
----
-47
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2531
SELECT - 58 + + + CAST( NULL AS DECIMAL ) - + - 79 / + + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2531
SELECT - 58 + + + CAST ( NULL AS REAL ) - + - 79 / + + 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL + 76 * - 26 + - 87 * COUNT( * ) AS col2
----
-2063

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL + 76 * - 26 + - 87 * COUNT ( * ) AS col2
----
-2063

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT - COALESCE ( SUM( ALL 50 ), - 37, - - 52 * - + 28 + 71 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-2533
SELECT - COALESCE ( SUM ( ALL 50 ), - 37, - - 52 * - + 28 + 71 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2534
SELECT + COUNT( * ), COALESCE ( 65, + 28 ) * + + COUNT( ALL + ( 16 ) ) col1
----
1
65

skipif mysql # not compatible
query II rowsort label-2534
SELECT + COUNT ( * ), COALESCE ( 65, + 28 ) * + + COUNT ( ALL + ( 16 ) ) col1
----
1
65

query II rowsort
SELECT ALL - 9 col1, 10
----
-9
10

query I rowsort
SELECT ALL + 15 * + 30
----
450

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2538
SELECT DISTINCT 10 AS col1, - 32 - + 74 * CAST( + 26 AS SIGNED ) * 89
----
10
-171268

skipif mysql # not compatible
query II rowsort label-2538
SELECT DISTINCT 10 AS col1, - 32 - + 74 * CAST ( + 26 AS INTEGER ) * 89
----
10
-171268

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT 79 DIV + 50 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2539
SELECT 79 / + 50 AS col1
----
1

query I rowsort
SELECT 14 * - - 88 * - + 8 * - 41 * + + 93 AS col0
----
37580928

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT COUNT( * ) + + - 80 + - COALESCE ( + ( 13 ), - - 75 + + 84, + COUNT( * ) * + 93 + 89 )
----
-92

skipif mysql # not compatible
query I rowsort label-2541
SELECT COUNT ( * ) + + - 80 + - COALESCE ( + ( 13 ), - - 75 + + 84, + COUNT ( * ) * + 93 + 89 )
----
-92

query I rowsort
SELECT 4 * 93 * + 4
----
1488

query I rowsort
SELECT 40 + - - 95
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-2544
SELECT ALL MIN( ALL 51 ) AS col0, + 64 * 27 AS col1
----
51
1728

skipif mysql # not compatible
query II rowsort label-2544
SELECT ALL MIN ( ALL 51 ) AS col0, + 64 * 27 AS col1
----
51
1728

onlyif mysql # aggregate syntax: 
query II rowsort label-2545
SELECT COUNT( * ) * + 21 AS col1, 21 * + 69
----
21
1449

skipif mysql # not compatible
query II rowsort label-2545
SELECT COUNT ( * ) * + 21 AS col1, 21 * + 69
----
21
1449

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

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL ( - COUNT ( * ) ) + - 56 AS col2
----
-57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2548
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 80 + - - MIN( - 90 ) + + 37 + + 6 * + COUNT( * ) * - - CAST( - 73 AS DECIMAL ) - + COUNT( * ) / + 50 - 26 + 92 + - 83 + - 61 * - - 36 * + ( + CAST( + 98 AS SIGNED ) ) * 62 - + + 72 + 63 * - 44 + 33 / COUNT( * ) * + + 34 * + 94 + 60 * + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 80 + - - MIN ( - 90 ) + + 37 + + 6 * + COUNT ( * ) * - - CAST ( - 73 AS REAL ) - + COUNT ( * ) / + 50 - 26 + 92 + - 83 + - 61 * - - 36 * + ( + CAST ( + 98 AS INTEGER ) ) * 62 - + + 72 + 63 * - 44 + 33 / COUNT ( * ) * + + 34 * + 94 + 60 * + 13 AS col1
----
NULL

query I rowsort
SELECT + 43 - 37 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL + CASE + 54 WHEN + + 14 THEN MAX( + 33 ) WHEN + 87 THEN NULL ELSE 91 END + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL + CASE + 54 WHEN + + 14 THEN MAX ( + 33 ) WHEN + 87 THEN NULL ELSE 91 END + COUNT ( * ) AS col2
----
92

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

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

query I rowsort
SELECT - 25 * - 49 AS col1
----
1225

query I rowsort
SELECT - COALESCE ( 79, + 16 )
----
-79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT COUNT( * ) * + 64 - MAX( DISTINCT - - COALESCE ( + 88, + + 20 + - 51 * 29 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-2555
SELECT COUNT ( * ) * + 64 - MAX ( DISTINCT - - COALESCE ( + 88, + + 20 + - 51 * 29 ) )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2556
SELECT DISTINCT - SUM( - 18 ) DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT - SUM ( - 18 ) / - 44
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2557
SELECT ALL + MAX( - 2 ) * 70 - + ( + 83 ) * + 97 - - + 76, - 53 AS col0
----
-8115
-53

skipif mysql # not compatible
query II rowsort label-2557
SELECT ALL + MAX ( - 2 ) * 70 - + ( + 83 ) * + 97 - - + 76, - 53 AS col0
----
-8115
-53

query I rowsort
SELECT + + 60 * 86 * - 58 * - 19 col1
----
5686320

query II rowsort
SELECT ALL 90 * + 95, + 46 AS col2
----
8550
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2560
SELECT + + MAX( + + CAST( - 87 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) + 93
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2561
SELECT - + 10 DIV 51 * 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2561
SELECT - + 10 / 51 * 37 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT + + MAX( + - ( 85 ) ) * + ( NULLIF ( + 83, - 75 ) ) col1
----
-7055

skipif mysql # not compatible
query I rowsort label-2562
SELECT + + MAX ( + - ( 85 ) ) * + ( NULLIF ( + 83, - 75 ) ) col1
----
-7055

query I rowsort
SELECT ALL - 36 * - 53
----
1908

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2564
SELECT ALL + - CAST( ( + - 7 ) AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL + - CAST ( ( + - 7 ) AS INTEGER )
----
7

query I rowsort
SELECT + - CASE + 68 WHEN + + 31 THEN + 10 WHEN + 93 THEN - 73 END * - 69 + - 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT DISTINCT + CASE ( 71 ) WHEN 47 + COUNT( * ) THEN NULL WHEN + 88 - 70 THEN + 52 / + - 23 - + - COUNT( 74 ) + - 95 / - NULLIF ( + 15, + 41 + - 87 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT + CASE ( 71 ) WHEN 47 + COUNT ( * ) THEN NULL WHEN + 88 - 70 THEN + 52 / + - 23 - + - COUNT ( 74 ) + - 95 / - NULLIF ( + 15, + 41 + - 87 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2567
SELECT ALL - 97 * - CAST( - 72 AS SIGNED ), 69 + - 5 AS col1
----
-6984
64

skipif mysql # not compatible
query II rowsort label-2567
SELECT ALL - 97 * - CAST ( - 72 AS INTEGER ), 69 + - 5 AS col1
----
-6984
64

query I rowsort
SELECT - 27 * 63
----
-1701

query I rowsort
SELECT ALL - 88 * + 56
----
-4928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2570
SELECT + 38 * + ( - 86 ) DIV COUNT( * ) + + 14 * + 52 * 12
----
5468

skipif mysql # not compatible
query I rowsort label-2570
SELECT + 38 * + ( - 86 ) / COUNT ( * ) + + 14 * + 52 * 12
----
5468

query I rowsort
SELECT ALL - 52 + + 27 col2
----
-25

query I rowsort
SELECT DISTINCT - 80 * 45 AS col0
----
-3600

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT - 43 + + COUNT( - 43 ) + + 52 col2
----
10

skipif mysql # not compatible
query I rowsort label-2574
SELECT - 43 + + COUNT ( - 43 ) + + 52 col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2575
SELECT ALL - 25 DIV 56 DIV - COALESCE ( + - 77, COUNT( CAST( + + 86 AS SIGNED ) ) ) * - 3
----
0

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL - 25 / 56 / - COALESCE ( + - 77, COUNT ( CAST ( + + 86 AS INTEGER ) ) ) * - 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT - MIN( 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-2576
SELECT - MIN ( 86 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT - 49 + 58 - - COUNT( * ) + - + 14 * - COUNT( * ) - - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-2577
SELECT - 49 + 58 - - COUNT ( * ) + - + 14 * - COUNT ( * ) - - COUNT ( * )
----
25

query I rowsort
SELECT DISTINCT ( + 11 ) col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2579
SELECT ALL - 26 DIV - 18 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - 26 / - 18 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2580
SELECT - 25 + COUNT( * ) DIV - COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2580
SELECT - 25 + COUNT ( * ) / - COUNT ( * ) AS col1
----
-26

query I rowsort
SELECT + 31 - - + 59 * - 30 col2
----
-1739

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

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL CAST ( + - 31 AS INTEGER ) AS col2
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT ALL + 90 + - COUNT( * ) + + 48
----
137

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL + 90 + - COUNT ( * ) + + 48
----
137

query I rowsort
SELECT ALL + 53 + + 4
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT DISTINCT CASE - 96 WHEN + 97 * - 13 THEN NULL WHEN COUNT( * ) THEN + - 45 * 73 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT CASE - 96 WHEN + 97 * - 13 THEN NULL WHEN COUNT ( * ) THEN + - 45 * 73 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT ALL 89 + + + NULLIF ( - SUM( ALL + 3 ), 18 - - 12 - + 89 * 24 - + COUNT( * ) ) + + + COUNT( * ) * + 33 * - + 69 * - + 65
----
148091

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL 89 + + + NULLIF ( - SUM ( ALL + 3 ), 18 - - 12 - + 89 * 24 - + COUNT ( * ) ) + + + COUNT ( * ) * + 33 * - + 69 * - + 65
----
148091

query I rowsort
SELECT - 95 + - 88 + 71 * + 80
----
5497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2589
SELECT - 77 + COUNT( * ) / + ( 37 ) * + CAST( NULL AS SIGNED ) / - 7 + 9 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2589
SELECT - 77 + COUNT ( * ) / + ( 37 ) * + CAST ( NULL AS INTEGER ) / - 7 + 9 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2590
SELECT ALL - COUNT( * ), - ( - 93 ) DIV + + 43 + 36 AS col2
----
-1
38

skipif mysql # not compatible
query II rowsort label-2590
SELECT ALL - COUNT ( * ), - ( - 93 ) / + + 43 + 36 AS col2
----
-1
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT DISTINCT - - MAX( - 18 ) * + 50
----
-900

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT - - MAX ( - 18 ) * + 50
----
-900

query I rowsort
SELECT ALL + - 1 - 11
----
-12

query I rowsort
SELECT - + 20 * 44 AS col0
----
-880

query I rowsort
SELECT + + 14 * + 84
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT ALL + + MIN( + + 95 ) col0
----
95

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL + + MIN ( + + 95 ) col0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2596
SELECT + - 40 + MAX( - - 1 ), 65 * - 92 AS col2
----
-39
-5980

skipif mysql # not compatible
query II rowsort label-2596
SELECT + - 40 + MAX ( - - 1 ), 65 * - 92 AS col2
----
-39
-5980

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

query I rowsort
SELECT DISTINCT - 26 * + 48 AS col1
----
-1248

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

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

query I rowsort
SELECT ALL - 93 * ( - 75 ) AS col1
----
6975

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT SUM( - 94 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-2602
SELECT SUM ( - 94 ) AS col2
----
-94

query I rowsort
SELECT + + 55 * - COALESCE ( + 38, + 40 )
----
-2090

query I rowsort
SELECT ALL 13 * - 9 * 49
----
-5733

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT + MAX( + 75 ) + - 36
----
39

skipif mysql # not compatible
query I rowsort label-2605
SELECT + MAX ( + 75 ) + - 36
----
39

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

query I rowsort
SELECT + 15 * - + 94 * + 96 * 72 * 16
----
-155934720

query I rowsort
SELECT - 21 * + 1 * + + 29
----
-609

query I rowsort
SELECT DISTINCT 38 * - 2 * 46 AS col2
----
-3496

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT DISTINCT COUNT( * ) + SUM( ALL ( - - 29 ) ) + + 53 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT COUNT ( * ) + SUM ( ALL ( - - 29 ) ) + + 53 AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2611
SELECT DISTINCT 91 + 87 DIV + 64 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT 91 + 87 / + 64 AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2612
SELECT ALL 69, - CAST( 19 AS SIGNED ) AS col2
----
69
-19

skipif mysql # not compatible
query II rowsort label-2612
SELECT ALL 69, - CAST ( 19 AS INTEGER ) AS col2
----
69
-19

query I rowsort
SELECT ALL 26 + 53 * - 32
----
-1670

query I rowsort
SELECT 20 * - 15
----
-300

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

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

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

query I rowsort
SELECT 68 * + + 74 AS col1
----
5032

query II rowsort
SELECT ALL 88, 79 AS col0
----
88
79

query II rowsort
SELECT - 92 AS col1, + 91
----
-92
91

query I rowsort
SELECT 58 * + - 23 * - 74
----
98716

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT ALL MAX( + 48 ) * - - 77 * 52
----
192192

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL MAX ( + 48 ) * - - 77 * 52
----
192192

query I rowsort
SELECT ALL - 22 - - - 30 AS col1
----
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ( + + 50 ) - - SUM( ALL - + 58 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2624
SELECT ( + + 50 ) - - SUM ( ALL - + 58 ) AS col1
----
-8

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

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

query I rowsort
SELECT - 28 - + + 9
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-2627
SELECT 49 DIV - 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2627
SELECT 49 / - 99 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2628
SELECT DISTINCT + ( - 15 ) DIV 29
----
0

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT + ( - 15 ) / 29
----
0

query II rowsort
SELECT - 65 AS col2, 24 AS col1
----
-65
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT DISTINCT + + 57 DIV 23 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2630
SELECT DISTINCT + + 57 / 23 AS col0
----
2

query I rowsort
SELECT DISTINCT - 97 * + + 26
----
-2522

query I rowsort
SELECT - 11 * 7 + - 33 - - + ( - + 43 )
----
-153

query I rowsort
SELECT ALL - 53 * - + 4 * + 49 * + 45
----
467460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2634
SELECT 97 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT 97 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL - COUNT( * ) * - COUNT( * ) + - 47
----
-46

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + - 47
----
-46

query II rowsort
SELECT 15 AS col2, + 0 * + + 12
----
15
0

onlyif mysql # aggregate syntax: 
query III rowsort label-2637
SELECT ALL - 87 col1, 56, - COUNT( * ) AS col2
----
-87
56
-1

skipif mysql # not compatible
query III rowsort label-2637
SELECT ALL - 87 col1, 56, - COUNT ( * ) AS col2
----
-87
56
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2638
SELECT + 57 col2, 82 DIV COUNT( DISTINCT - - 79 ) AS col2, ( + ( - + 37 ) ) col0
----
57
82
-37

skipif mysql # not compatible
query III rowsort label-2638
SELECT + 57 col2, 82 / COUNT ( DISTINCT - - 79 ) AS col2, ( + ( - + 37 ) ) col0
----
57
82
-37

query I rowsort
SELECT - ( 45 ) + - 70 + 74 AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2640
SELECT ALL 86 + - COUNT( * ) * + 45 / - 1 * - 50 * 40 * + CAST( NULL AS DECIMAL ) AS col1, - 19 + - 34 AS col2
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-2640
SELECT ALL 86 + - COUNT ( * ) * + 45 / - 1 * - 50 * 40 * + CAST ( NULL AS REAL ) AS col1, - 19 + - 34 AS col2
----
NULL
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT ALL CASE 61 WHEN + 38 THEN - - 45 * + 38 * - + 59 + + 0 + - 53 - + 57 * + + AVG ( + 10 ) + - + 38 + + + 51 * - + 49 ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL CASE 61 WHEN + 38 THEN - - 45 * + 38 * - + 59 + + 0 + - 53 - + 57 * + + AVG ( + 10 ) + - + 38 + + + 51 * - + 49 ELSE NULL END * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2642
SELECT COUNT( * ) DIV + CAST( 77 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2642
SELECT COUNT ( * ) / + CAST ( 77 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT + ( 7 ) + 51
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT NULLIF ( - 28, 3 * 33 ) + + - CASE - 80 WHEN + + 71 * 71 THEN NULL WHEN + COUNT( * ) THEN 43 + 13 * - 80 ELSE + + 59 END * 69
----
-4099

skipif mysql # not compatible
query I rowsort label-2644
SELECT NULLIF ( - 28, 3 * 33 ) + + - CASE - 80 WHEN + + 71 * 71 THEN NULL WHEN + COUNT ( * ) THEN 43 + 13 * - 80 ELSE + + 59 END * 69
----
-4099

query I rowsort
SELECT ALL NULLIF ( 46, - 70 * 41 ) + 22 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT COUNT( * ) * 78 * - MAX( - 68 )
----
5304

skipif mysql # not compatible
query I rowsort label-2646
SELECT COUNT ( * ) * 78 * - MAX ( - 68 )
----
5304

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT COUNT( * ) + + COUNT( * ) + + 35 * - COUNT( * ) + + 9 * + ( + + SUM( DISTINCT - 38 ) )
----
-375

skipif mysql # not compatible
query I rowsort label-2647
SELECT COUNT ( * ) + + COUNT ( * ) + + 35 * - COUNT ( * ) + + 9 * + ( + + SUM ( DISTINCT - 38 ) )
----
-375

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2648
SELECT ALL 20 * - 17 col2, CAST( NULL AS DECIMAL ) * - + 19 - 80 * COUNT( * )
----
-340
NULL

skipif mysql # not compatible
query II rowsort label-2648
SELECT ALL 20 * - 17 col2, CAST ( NULL AS REAL ) * - + 19 - 80 * COUNT ( * )
----
-340
NULL

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

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

query I rowsort
SELECT ALL 13 - 32 * - 92 AS col1
----
2957

query I rowsort
SELECT DISTINCT ( + 68 ) * + 4 + + + 2 col2
----
274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2652
SELECT 55 - CAST( 66 AS SIGNED ) DIV - - 90 + - SUM( + 62 )
----
-7

skipif mysql # not compatible
query I rowsort label-2652
SELECT 55 - CAST ( 66 AS INTEGER ) / - - 90 + - SUM ( + 62 )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2653
SELECT CAST( + 64 AS SIGNED ) + + - 3
----
61

skipif mysql # not compatible
query I rowsort label-2653
SELECT CAST ( + 64 AS INTEGER ) + + - 3
----
61

query II rowsort
SELECT ALL 77 - - + 3 AS col1, - 57 * 64 * + 44
----
80
-160512

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT COUNT( * ) + MAX( ALL + + ( 84 ) ) + + 56 * - 76 + - + 38 - - 33 * - - 88 AS col0
----
-1305

skipif mysql # not compatible
query I rowsort label-2655
SELECT COUNT ( * ) + MAX ( ALL + + ( 84 ) ) + + 56 * - 76 + - + 38 - - 33 * - - 88 AS col0
----
-1305

query II rowsort
SELECT 74 + 6, 50 AS col0
----
80
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2657
SELECT ALL 56 * + CAST( NULL AS SIGNED ) * 91 + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL 56 * + CAST ( NULL AS INTEGER ) * 91 + - 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT 63 - - 7 DIV - 97 + - - 48
----
111

skipif mysql # not compatible
query I rowsort label-2658
SELECT 63 - - 7 / - 97 + - - 48
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ALL + 92 * 41 * + COUNT( * ) * + 25 AS col0
----
94300

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL + 92 * 41 * + COUNT ( * ) * + 25 AS col0
----
94300

query I rowsort
SELECT DISTINCT + ( + 66 ) * + 17 AS col2
----
1122

onlyif mysql # aggregate syntax: 
query II rowsort label-2661
SELECT DISTINCT - ( - COUNT( * ) ) AS col2, 65 + - 97 col1
----
1
-32

skipif mysql # not compatible
query II rowsort label-2661
SELECT DISTINCT - ( - COUNT ( * ) ) AS col2, 65 + - 97 col1
----
1
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-2662
SELECT 13 DIV - - 9 + 16 + + 45
----
62

skipif mysql # not compatible
query I rowsort label-2662
SELECT 13 / - - 9 + 16 + + 45
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT ALL - - MAX( 82 ) * - 59 + + 20
----
-4818

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL - - MAX ( 82 ) * - 59 + + 20
----
-4818

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2664
SELECT COUNT( * ) * - COALESCE ( - + 96, 47 ) + 63 + + 53 - + 94 DIV + NULLIF ( 5, + - 12 ) AS col1
----
194

skipif mysql # not compatible
query I rowsort label-2664
SELECT COUNT ( * ) * - COALESCE ( - + 96, 47 ) + 63 + + 53 - + 94 / + NULLIF ( 5, + - 12 ) AS col1
----
194

query I rowsort
SELECT - NULLIF ( - 43, + 63 ) + 12 + - + 75 * 86
----
-6395

onlyif mysql # DIV for integer division: 
query II rowsort label-2666
SELECT ALL + 16 DIV + - 62 AS col1, 80 DIV - - 71
----
0
1

skipif mysql # not compatible
query II rowsort label-2666
SELECT ALL + 16 / + - 62 AS col1, 80 / - - 71
----
0
1

query I rowsort
SELECT DISTINCT - 62 * 80 * 96 + - - 53 * CASE - ( ( 47 ) ) WHEN - AVG ( DISTINCT - - 82 ) THEN + + 97 - + + 74 WHEN - 3 - + 69 THEN NULL END + - + 85 col1
----
NULL

query I rowsort
SELECT DISTINCT - 7 * + - 29 * + ( + 60 ) + - 24 AS col0
----
12156

query I rowsort
SELECT - 44 * + 18 AS col0
----
-792

query I rowsort
SELECT DISTINCT + ( CASE - 38 WHEN + 42 THEN - 50 / 22 - 52 ELSE NULL END ) * 88 * - + ( - 68 ) - + 3
----
NULL

query I rowsort
SELECT - 8 - + + 16 col0
----
-24

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

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

query II rowsort
SELECT + 19, + 22 AS col2
----
19
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT DISTINCT + COUNT( * ) * 74 * - ( - - 55 ) AS col2
----
-4070

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT + COUNT ( * ) * 74 * - ( - - 55 ) AS col2
----
-4070

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

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

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

query I rowsort
SELECT DISTINCT + 22 - + 92 AS col2
----
-70

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2680
SELECT ALL + 4 DIV 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL + 4 / 45 AS col0
----
0

query I rowsort
SELECT + ( + ( + + 90 ) ) * - + 53 + 18
----
-4752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2682
SELECT COUNT( * ) AS col1, - 48 + + MAX( DISTINCT - CAST( + 28 AS SIGNED ) )
----
1
-76

skipif mysql # not compatible
query II rowsort label-2682
SELECT COUNT ( * ) AS col1, - 48 + + MAX ( DISTINCT - CAST ( + 28 AS INTEGER ) )
----
1
-76

query I rowsort
SELECT DISTINCT 71 * + + CASE + ( + 16 ) WHEN - + 96 THEN 67 ELSE - 22 END
----
-1562

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT - CASE + 51 WHEN + 33 * - 88 * + - SUM( + + 87 ) + 50 THEN - 22 END + + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT - CASE + 51 WHEN + 33 * - 88 * + - SUM ( + + 87 ) + 50 THEN - 22 END + + - COUNT ( * ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT ALL - COUNT( ALL - - COALESCE ( - 22, - 51 * 20 + + + 6 * + + 71 + + 24, 55 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL - COUNT ( ALL - - COALESCE ( - 22, - 51 * 20 + + + 6 * + + 71 + + 24, 55 ) ) AS col1
----
-1

query II rowsort
SELECT - 61 AS col2, + 27 * + ( + - 37 ) AS col2
----
-61
-999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2688
SELECT ALL 76 + 11 + + 18 * - 33 - - 85 + - 36 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL 76 + 11 + + 18 * - 33 - - 85 + - 36 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2689
SELECT + 46 * + - CASE - 32 WHEN - 38 THEN NULL WHEN + COALESCE ( - 27, - COUNT( * ) DIV SUM( DISTINCT - 95 ) * + 89 * + 13 + COALESCE ( - MIN( DISTINCT - ( - 17 ) ), + 24 ) ) THEN + ( 88 ) ELSE + 37 END DIV + COUNT( * ) - - 3
----
-1699

skipif mysql # not compatible
query I rowsort label-2689
SELECT + 46 * + - CASE - 32 WHEN - 38 THEN NULL WHEN + COALESCE ( - 27, - COUNT ( * ) / SUM ( DISTINCT - 95 ) * + 89 * + 13 + COALESCE ( - MIN ( DISTINCT - ( - 17 ) ), + 24 ) ) THEN + ( 88 ) ELSE + 37 END / + COUNT ( * ) - - 3
----
-1699

query I rowsort
SELECT ALL 90 + 17 + 12 - 25 + - 11 - + NULLIF ( - - 42, - 3 ) AS col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT DISTINCT + 39 + + 21 + + 30 * - 94 / - 10 * - 6 + CAST( NULL AS SIGNED ) + - 57 / - ( 7 ) + + + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT + 39 + + 21 + + 30 * - 94 / - 10 * - 6 + CAST ( NULL AS INTEGER ) + - 57 / - ( 7 ) + + + 96 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL ( 44 ) + 3
----
47

query I rowsort
SELECT + + 31 - + 1 AS col2
----
30

query I rowsort
SELECT + COALESCE ( - 39, 96 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT ALL + NULLIF ( NULLIF ( + - 80, + COUNT( * ) * 70 - AVG ( ALL - 96 ) ), 84 * - ( 50 ) ) + - 83 + - + COUNT( * ) AS col1
----
-164

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL + NULLIF ( NULLIF ( + - 80, + COUNT ( * ) * 70 - AVG ( ALL - 96 ) ), 84 * - ( 50 ) ) + - 83 + - + COUNT ( * ) AS col1
----
-164

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

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

query I rowsort
SELECT ALL + 76 + + + 85 + 54 + 70 - + 97
----
188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2699
SELECT ALL + COUNT( * ) DIV 63 + 33 + 24 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL + COUNT ( * ) / 63 + 33 + 24 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT - ( COUNT( * ) ) * + 5 - - 9 - - 67 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2700
SELECT - ( COUNT ( * ) ) * + 5 - - 9 - - 67 AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2701
SELECT - + 43 DIV - 75 - - 70 + + + 74 - COUNT( * ) + - 35 - + 69 - + 88 * 8 * + - ( - + 40 ), - 21 * + 99 AS col0
----
-28121
-2079

skipif mysql # not compatible
query II rowsort label-2701
SELECT - + 43 / - 75 - - 70 + + + 74 - COUNT ( * ) + - 35 - + 69 - + 88 * 8 * + - ( - + 40 ), - 21 * + 99 AS col0
----
-28121
-2079

query I rowsort
SELECT + 56 * - 31
----
-1736

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT - 13 * + 20 * - - SUM( ALL + 25 ) + 19 AS col2
----
-6481

skipif mysql # not compatible
query I rowsort label-2703
SELECT - 13 * + 20 * - - SUM ( ALL + 25 ) + 19 AS col2
----
-6481

query I rowsort
SELECT - 50 * + 20 + 83
----
-917

query II rowsort
SELECT ( - - 21 ) AS col1, + 96 AS col1
----
21
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL + MIN( DISTINCT 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL + MIN ( DISTINCT 62 ) AS col0
----
62

query II rowsort
SELECT - 14 * 6, + 32 * + 13 col1
----
-84
416

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT + ( - 94 ) * COUNT( * ) - - 25
----
-69

skipif mysql # not compatible
query I rowsort label-2708
SELECT + ( - 94 ) * COUNT ( * ) - - 25
----
-69

query I rowsort
SELECT ALL + COALESCE ( - NULLIF ( + COALESCE ( - 45, 50 ), + + 37 * - - 49 ), - 58 - + - 82 )
----
45

query I rowsort
SELECT ALL - 63 * 84
----
-5292

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT + COUNT( * ) * CASE + 45 WHEN + 9 THEN NULL WHEN + COUNT( 63 ) + + 37 + + 86 THEN 14 WHEN - NULLIF ( 5, - + 83 ) + + 58 THEN NULL END + - + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT + COUNT ( * ) * CASE + 45 WHEN + 9 THEN NULL WHEN + COUNT ( 63 ) + + 37 + + 86 THEN 14 WHEN - NULLIF ( 5, - + 83 ) + + 58 THEN NULL END + - + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT ALL + SUM( + 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL + SUM ( + 43 ) AS col1
----
43

query I rowsort
SELECT ( 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-2714
SELECT ALL + 0 * + - 39 AS col2, + SUM( 31 )
----
0
31

skipif mysql # not compatible
query II rowsort label-2714
SELECT ALL + 0 * + - 39 AS col2, + SUM ( 31 )
----
0
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT - COALESCE ( 68, - COUNT( * ), - 67 * 46 ) + 72 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2715
SELECT - COALESCE ( 68, - COUNT ( * ), - 67 * 46 ) + 72 AS col2
----
4

query I rowsort
SELECT DISTINCT + 91 * 32
----
2912

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2717
SELECT ALL CAST( - 28 AS SIGNED ) AS col2, 87 AS col0
----
-28
87

skipif mysql # not compatible
query II rowsort label-2717
SELECT ALL CAST ( - 28 AS INTEGER ) AS col2, 87 AS col0
----
-28
87

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

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

query I rowsort
SELECT ALL + - NULLIF ( 84, + 49 / + - 58 ) * + 40 * 4 + - + 64 + 79
----
-13425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2720
SELECT - COALESCE ( - 50, - CASE + 20 WHEN - COALESCE ( + 92, - - 70 ) * 30 THEN - + 78 WHEN 96 THEN NULL ELSE NULL END, + CASE - 83 WHEN 76 * + - MIN( - 25 ) / - COUNT( * ) + - 17 + - 33 * - 21 * 38 * + - ( - 47 ) * + COUNT( * ) THEN - 92 END + + 68 * + COUNT( * ) + - COALESCE ( + 56, + 19 * + 45 ) - + 18 / + CAST( + 60 AS SIGNED ) ) - + CASE - 7 WHEN ( 11 ) * 5 THEN + ( + 62 ) / CAST( NULL AS SIGNED ) + 79 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT - COALESCE ( - 50, - CASE + 20 WHEN - COALESCE ( + 92, - - 70 ) * 30 THEN - + 78 WHEN 96 THEN NULL ELSE NULL END, + CASE - 83 WHEN 76 * + - MIN ( - 25 ) / - COUNT ( * ) + - 17 + - 33 * - 21 * 38 * + - ( - 47 ) * + COUNT ( * ) THEN - 92 END + + 68 * + COUNT ( * ) + - COALESCE ( + 56, + 19 * + 45 ) - + 18 / + CAST ( + 60 AS INTEGER ) ) - + CASE - 7 WHEN ( 11 ) * 5 THEN + ( + 62 ) / CAST ( NULL AS INTEGER ) + 79 END AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 10 * - + 5 + + 56 AS col1
----
106

query I rowsort
SELECT DISTINCT - - 37 + + 57 * - ( - + 37 ) * 31 AS col0
----
65416

query I rowsort
SELECT - + ( - - 88 ) + + 10 AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2725
SELECT ALL - 66 + CAST( + 57 AS SIGNED ) * - 73 AS col0, + COUNT( - 36 ) * - + 92
----
-4227
-92

skipif mysql # not compatible
query II rowsort label-2725
SELECT ALL - 66 + CAST ( + 57 AS INTEGER ) * - 73 AS col0, + COUNT ( - 36 ) * - + 92
----
-4227
-92

query I rowsort
SELECT - - 60 + ( CASE ( - 85 ) WHEN + 51 - - 35 THEN 93 * + + 15 - 88 WHEN - 77 THEN NULL END ) + - 87 * - - ( + + 16 ) + - - 43 / - 86
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2727
SELECT - + 85 + 66 DIV 20 * - - 86
----
173

skipif mysql # not compatible
query I rowsort label-2727
SELECT - + 85 + 66 / 20 * - - 86
----
173

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

skipif mysql # not compatible
query I rowsort label-2728
SELECT - + MAX ( - 58 )
----
58

query I rowsort
SELECT ALL - - 95 + 5 AS col0
----
100

query I rowsort
SELECT DISTINCT + + 33 + - 23 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2731
SELECT DISTINCT - 72 + 46 + - 97 * + - NULLIF ( - CASE + ( 55 ) WHEN + 10 + 1 THEN + ( + - 9 ) WHEN ( + + 70 ) THEN - 57 ELSE + - CASE - 74 WHEN COUNT( * ) / - + COUNT( * ) * + 9 * + COUNT( * ) * + 78 * - 32 + 22 THEN + ( - 22 ) WHEN + COUNT( * ) * - COUNT( 83 ) + - - 53 + - 35 + + CAST( NULL AS SIGNED ) / - - 82 THEN - 34 END END, - COALESCE ( - CASE + + 77 WHEN + 36 * 3 + - + CAST( MIN( - 36 ) AS SIGNED ) THEN + 24 ELSE NULL END, - 42 ) * ( 12 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT - 72 + 46 + - 97 * + - NULLIF ( - CASE + ( 55 ) WHEN + 10 + 1 THEN + ( + - 9 ) WHEN ( + + 70 ) THEN - 57 ELSE + - CASE - 74 WHEN COUNT ( * ) / - + COUNT ( * ) * + 9 * + COUNT ( * ) * + 78 * - 32 + 22 THEN + ( - 22 ) WHEN + COUNT ( * ) * - COUNT ( 83 ) + - - 53 + - 35 + + CAST ( NULL AS INTEGER ) / - - 82 THEN - 34 END END, - COALESCE ( - CASE + + 77 WHEN + 36 * 3 + - + CAST ( MIN ( - 36 ) AS INTEGER ) THEN + 24 ELSE NULL END, - 42 ) * ( 12 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT COUNT( * ) + 65 + 35
----
101

skipif mysql # not compatible
query I rowsort label-2732
SELECT COUNT ( * ) + 65 + 35
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2733
SELECT - + ( + 46 ) AS col0, + 78 + + CAST( NULL AS SIGNED ) - + COALESCE ( - 88, + 20, - + 66 ) AS col1
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-2733
SELECT - + ( + 46 ) AS col0, + 78 + + CAST ( NULL AS INTEGER ) - + COALESCE ( - 88, + 20, - + 66 ) AS col1
----
-46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT NULLIF ( + COUNT( NULLIF ( + 31, - 38 ) ), + - 24 ) * + + 63 * 93 * - - 8
----
46872

skipif mysql # not compatible
query I rowsort label-2734
SELECT NULLIF ( + COUNT ( NULLIF ( + 31, - 38 ) ), + - 24 ) * + + 63 * 93 * - - 8
----
46872

query II rowsort
SELECT 58 AS col1, 44
----
58
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2736
SELECT + 96 DIV 40 + - 78
----
-76

skipif mysql # not compatible
query I rowsort label-2736
SELECT + 96 / 40 + - 78
----
-76

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

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

query I rowsort
SELECT ALL 97 * - 56 AS col0
----
-5432

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT 39 * + 85 * + SUM( - NULLIF ( - 63, - - 68 / + 39 ) ) * - + 3
----
-626535

skipif mysql # not compatible
query I rowsort label-2739
SELECT 39 * + 85 * + SUM ( - NULLIF ( - 63, - - 68 / + 39 ) ) * - + 3
----
-626535

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT DISTINCT 14 * + + NULLIF ( + - 92, SUM( + 4 ) ) AS col2
----
-1288

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT 14 * + + NULLIF ( + - 92, SUM ( + 4 ) ) AS col2
----
-1288

query I rowsort
SELECT DISTINCT 26 - + 32
----
-6

query I rowsort
SELECT ALL - 76 * 63
----
-4788

query I rowsort
SELECT ALL 61 * 99 AS col0
----
6039

query I rowsort
SELECT DISTINCT 96 * - + 66
----
-6336

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2746
SELECT 83 DIV 80 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2746
SELECT 83 / 80 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2747
SELECT + 32 * 92 + + 76 * SUM( DISTINCT - 3 ) AS col0, - ( + 3 ) * + 92
----
2716
-276

skipif mysql # not compatible
query II rowsort label-2747
SELECT + 32 * 92 + + 76 * SUM ( DISTINCT - 3 ) AS col0, - ( + 3 ) * + 92
----
2716
-276

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2749
SELECT COUNT( 63 ) DIV + + 97 AS col0, 55 AS col1
----
0
55

skipif mysql # not compatible
query II rowsort label-2749
SELECT COUNT ( 63 ) / + + 97 AS col0, 55 AS col1
----
0
55

query I rowsort
SELECT ALL - 32 + - 75 AS col0
----
-107

query I rowsort
SELECT ALL + 30 + 12 AS col0
----
42

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

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

query I rowsort
SELECT DISTINCT - 14 * 37 AS col1
----
-518

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2754
SELECT DISTINCT - - 85 + COUNT( * ) * - 29 * + 43 + - ( + + 29 ) DIV 81
----
-1162

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT - - 85 + COUNT ( * ) * - 29 * + 43 + - ( + + 29 ) / 81
----
-1162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2755
SELECT COUNT( * ) - - 78 + - 4 - - - COUNT( * ) + 23 DIV - + 62 - - SUM( - - ( - 65 ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2755
SELECT COUNT ( * ) - - 78 + - 4 - - - COUNT ( * ) + 23 / - + 62 - - SUM ( - - ( - 65 ) ) AS col1
----
9

query I rowsort
SELECT 41 * + 78 AS col1
----
3198

query I rowsort
SELECT ALL - 70 + 47
----
-23

query I rowsort
SELECT 28 * + - 2 AS col0
----
-56

query I rowsort
SELECT - ( - 60 ) AS col2
----
60

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

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

query I rowsort
SELECT DISTINCT - 36 + 59 * 57
----
3327

query I rowsort
SELECT 90 + - 33
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT ALL + COUNT( * ) + + + 69 + 97 AS col1
----
167

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL + COUNT ( * ) + + + 69 + 97 AS col1
----
167

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT + COUNT( * ) * - ( + + 12 ) * + + COUNT( - NULLIF ( + - 10, - 85 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-2766
SELECT + COUNT ( * ) * - ( + + 12 ) * + + COUNT ( - NULLIF ( + - 10, - 85 ) )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2767
SELECT ALL - + 43 - 75 * - + 11 + + + 74 + + 59 DIV - COALESCE ( + ( - 78 ), 52, - COUNT( * ) ) * + + 37 * - CAST( + 66 AS SIGNED ) col1
----
856

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL - + 43 - 75 * - + 11 + + + 74 + + 59 / - COALESCE ( + ( - 78 ), 52, - COUNT ( * ) ) * + + 37 * - CAST ( + 66 AS INTEGER ) col1
----
856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2768
SELECT + ( - 56 ) * + ( + CAST( NULL AS SIGNED ) ) * NULLIF ( + ( + AVG ( - 13 ) ), - + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT + ( - 56 ) * + ( + CAST ( NULL AS INTEGER ) ) * NULLIF ( + ( + AVG ( - 13 ) ), - + 94 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2769
SELECT ALL - + SUM( ALL + - 13 ) / - CASE - + 43 WHEN + 58 / COUNT( * ) / - 59 * 71 * - COUNT( * ) * - - COUNT( * ) + 80 - COUNT( * ) * 79 * + 80 THEN NULL WHEN + ( CAST( NULL AS SIGNED ) ) THEN + 12 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - + SUM ( ALL + - 13 ) / - CASE - + 43 WHEN + 58 / COUNT ( * ) / - 59 * 71 * - COUNT ( * ) * - - COUNT ( * ) + 80 - COUNT ( * ) * 79 * + 80 THEN NULL WHEN + ( CAST ( NULL AS INTEGER ) ) THEN + 12 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2770
SELECT - 11 - - + ( AVG ( DISTINCT - 89 ) ) * + + CAST( NULL AS SIGNED ) * - 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2770
SELECT - 11 - - + ( AVG ( DISTINCT - 89 ) ) * + + CAST ( NULL AS INTEGER ) * - 15 col0
----
NULL

query I rowsort
SELECT 66 * + 33
----
2178

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

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

query I rowsort
SELECT 33 + - 82 * - 17
----
1427

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT 39 DIV 27
----
1

skipif mysql # not compatible
query I rowsort label-2774
SELECT 39 / 27
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2775
SELECT 44, + NULLIF ( - ( 19 ), - + 41 ) DIV + 98 * + 84 + 48 col2
----
44
48

skipif mysql # not compatible
query II rowsort label-2775
SELECT 44, + NULLIF ( - ( 19 ), - + 41 ) / + 98 * + 84 + 48 col2
----
44
48

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2777
SELECT ALL 67 DIV + 44
----
1

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL 67 / + 44
----
1

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

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

query I rowsort
SELECT 74 * + 1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2780
SELECT DISTINCT - 9 AS col1, - ( - 27 ) - - - COUNT( * ) * - 72
----
-9
99

skipif mysql # not compatible
query II rowsort label-2780
SELECT DISTINCT - 9 AS col1, - ( - 27 ) - - - COUNT ( * ) * - 72
----
-9
99

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL COUNT ( * ) * + 49 + - COUNT ( * ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT COUNT( DISTINCT 83 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2784
SELECT COUNT ( DISTINCT 83 ) col2
----
1

query I rowsort
SELECT ALL 71 * + - 52 * + + 42 AS col2
----
-155064

onlyif mysql # aggregate syntax: 
query II rowsort label-2786
SELECT ALL COALESCE ( - SUM( - - 64 ), + - MAX( DISTINCT 51 ) ) + - 23 AS col2, ( - MAX( - + 49 ) ) AS col0
----
-87
49

skipif mysql # not compatible
query II rowsort label-2786
SELECT ALL COALESCE ( - SUM ( - - 64 ), + - MAX ( DISTINCT 51 ) ) + - 23 AS col2, ( - MAX ( - + 49 ) ) AS col0
----
-87
49

query I rowsort
SELECT + 65 * - + 65 + 35
----
-4190

query I rowsort
SELECT DISTINCT 82 + 34 * - 38 AS col0
----
-1210

query II rowsort
SELECT - 69 AS col0, - 14
----
-69
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT 97 + - MIN( DISTINCT 16 ) * 91
----
-1359

skipif mysql # not compatible
query I rowsort label-2790
SELECT 97 + - MIN ( DISTINCT 16 ) * 91
----
-1359

query I rowsort
SELECT 43 + - 31 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT + + 74 * 33 + - 76 + - - COUNT( ALL - - 31 )
----
2367

skipif mysql # not compatible
query I rowsort label-2792
SELECT + + 74 * 33 + - 76 + - - COUNT ( ALL - - 31 )
----
2367

onlyif mysql # DIV for integer division: 
query I rowsort label-2793
SELECT - - 38 DIV 18 * - 2
----
-4

skipif mysql # not compatible
query I rowsort label-2793
SELECT - - 38 / 18 * - 2
----
-4

query I rowsort
SELECT ALL 66 + + 89 + - 21 AS col2
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-2795
SELECT DISTINCT + - 70 DIV + + ( + 40 ) + 86 col0
----
85

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT + - 70 / + + ( + 40 ) + 86 col0
----
85

query I rowsort
SELECT ALL - - 8 - + 54 + - 11 * + 96 AS col0
----
-1102

query I rowsort
SELECT + 99 * - + 56 * + 26 - 62 AS col1
----
-144206

query II rowsort
SELECT DISTINCT + 9 AS col1, - 79 AS col2
----
9
-79

query I rowsort
SELECT ALL - - 32 * 11 AS col2
----
352

query II rowsort
SELECT 95, 64 AS col2
----
95
64

query I rowsort
SELECT + 99 * + + 72
----
7128

query I rowsort
SELECT + 8 + + + 94 - 68
----
34

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2804
SELECT ALL + COUNT( * ) AS col2, CAST( - ( CASE - - 50 WHEN + - 75 THEN + 78 + + MAX( 38 ) - - - 90 * - + 48 WHEN 91 * - 80 THEN + COUNT( * ) + - MIN( ALL + ( + - CAST( NULL AS SIGNED ) ) ) END ) AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2804
SELECT ALL + COUNT ( * ) AS col2, CAST ( - ( CASE - - 50 WHEN + - 75 THEN + 78 + + MAX ( 38 ) - - - 90 * - + 48 WHEN 91 * - 80 THEN + COUNT ( * ) + - MIN ( ALL + ( + - CAST ( NULL AS INTEGER ) ) ) END ) AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT - 62 * + SUM( ALL - + 41 )
----
2542

skipif mysql # not compatible
query I rowsort label-2805
SELECT - 62 * + SUM ( ALL - + 41 )
----
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT - 79 + + 19 * + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-2806
SELECT - 79 + + 19 * + COUNT ( * )
----
-60

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

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

query II rowsort
SELECT ALL ( 96 ), 60 * - 62 * - 50 AS col0
----
96
186000

query II rowsort
SELECT ALL + 49 * - 92 AS col2, - 48
----
-4508
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT - COUNT( * ) + - COALESCE ( + 42, - 28 ) + + 6 - 10
----
-47

skipif mysql # not compatible
query I rowsort label-2810
SELECT - COUNT ( * ) + - COALESCE ( + 42, - 28 ) + + 6 - 10
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2811
SELECT - NULLIF ( - 55, + + ( - 75 ) - 61 * - + AVG ( 76 ) ) DIV 97 + 51
----
51

skipif mysql # not compatible
query I rowsort label-2811
SELECT - NULLIF ( - 55, + + ( - 75 ) - 61 * - + AVG ( 76 ) ) / 97 + 51
----
51

query I rowsort
SELECT - 8 + + 99 + + + ( + + 95 ) * + 44 * - - 43
----
179831

query I rowsort
SELECT ALL - 13 + 46 AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2814
SELECT DISTINCT + 59 / - - CAST( NULL AS SIGNED ) / - - 26 * + - 35 / - 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT + 59 / - - CAST ( NULL AS INTEGER ) / - - 26 * + - 35 / - 8 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2815
SELECT - NULLIF ( 43, + + 94 ) DIV 45 + + 93
----
93

skipif mysql # not compatible
query I rowsort label-2815
SELECT - NULLIF ( 43, + + 94 ) / 45 + + 93
----
93

query I rowsort
SELECT DISTINCT + 59 * 7 AS col2
----
413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2817
SELECT - ( - 27 ) DIV - - CAST( NULLIF ( - 31, - 54 * - ( + COUNT( * ) ) + + 70 + - 17 ) AS SIGNED ) + - + 53 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-2817
SELECT - ( - 27 ) / - - CAST ( NULLIF ( - 31, - 54 * - ( + COUNT ( * ) ) + + 70 + - 17 ) AS INTEGER ) + - + 53 AS col2
----
-53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT DISTINCT 68 * 7 * 26 + + COUNT( * ) + - + 5 * - - 83 + 80
----
12042

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT 68 * 7 * 26 + + COUNT ( * ) + - + 5 * - - 83 + 80
----
12042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2820
SELECT ALL 11 * 65 * CASE 34 WHEN - - CAST( NULL AS SIGNED ) * + 27 * 62 + - + 21 - 79 + - + CAST( COUNT( * ) AS SIGNED ) + 71 * AVG ( + - 56 ) * - 35 THEN - 0 WHEN ( 7 ) + CAST( - MIN( DISTINCT - 74 ) AS SIGNED ) THEN NULL WHEN + 67 * + 79 + + COALESCE ( 15, + 71 * 41, - 73 ) / - 45 + + COUNT( * ) THEN NULL WHEN - 88 * - + 67 - + 65 THEN NULL END + 30 + COALESCE ( - 31, 93 - - - 86 / 58 + + - 92 + + 47, + COUNT( * ) ) / - ( 93 ) - + - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL 11 * 65 * CASE 34 WHEN - - CAST ( NULL AS INTEGER ) * + 27 * 62 + - + 21 - 79 + - + CAST ( COUNT ( * ) AS INTEGER ) + 71 * AVG ( + - 56 ) * - 35 THEN - 0 WHEN ( 7 ) + CAST ( - MIN ( DISTINCT - 74 ) AS INTEGER ) THEN NULL WHEN + 67 * + 79 + + COALESCE ( 15, + 71 * 41, - 73 ) / - 45 + + COUNT ( * ) THEN NULL WHEN - 88 * - + 67 - + 65 THEN NULL END + 30 + COALESCE ( - 31, 93 - - - 86 / 58 + + - 92 + + 47, + COUNT ( * ) ) / - ( 93 ) - + - 75 AS col2
----
NULL

query I rowsort
SELECT - ( - 69 ) * - 0
----
0

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

skipif mysql # not compatible
query I rowsort label-2822
SELECT - MIN ( DISTINCT - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT ALL COUNT( * ) * + 48 * COUNT( * ) + - - 5
----
53

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL COUNT ( * ) * + 48 * COUNT ( * ) + - - 5
----
53

query I rowsort
SELECT ALL - 63 * - - 11 - 90 * 72 AS col1
----
-7173

query I rowsort
SELECT ALL + + ( - - 72 ) col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT DISTINCT + 59 * + MIN( DISTINCT + ( + 21 ) )
----
1239

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT + 59 * + MIN ( DISTINCT + ( + 21 ) )
----
1239

query I rowsort
SELECT + - 48 - - 44 + - 28 + + 77
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL MAX( DISTINCT 99 ) * - - 49 + - 91
----
4760

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL MAX ( DISTINCT 99 ) * - - 49 + - 91
----
4760

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

query I rowsort
SELECT ALL CASE + 39 WHEN - 44 THEN - 7 + + 30 + + 55 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2831
SELECT - + COUNT( 17 ) + COALESCE ( - + 68, - + 98 * + 80 + - SUM( + + CAST( NULL AS SIGNED ) ), 64 )
----
-69

skipif mysql # not compatible
query I rowsort label-2831
SELECT - + COUNT ( 17 ) + COALESCE ( - + 68, - + 98 * + 80 + - SUM ( + + CAST ( NULL AS INTEGER ) ), 64 )
----
-69

query I rowsort
SELECT + + 21 * + 11 col1
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2833
SELECT DISTINCT ( - MAX( ALL - COALESCE ( - 56, 44, COALESCE ( 43, + 65 + + - 25, - 60 * 7 ) + - - 86 * + 46, 22 DIV + 83 + + - ( - 51 ) + 92 - - - ( - CAST( NULL AS SIGNED ) ) ) ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT ( - MAX ( ALL - COALESCE ( - 56, 44, COALESCE ( 43, + 65 + + - 25, - 60 * 7 ) + - - 86 * + 46, 22 / + 83 + + - ( - 51 ) + 92 - - - ( - CAST ( NULL AS INTEGER ) ) ) ) ) AS col2
----
-56

query I rowsort
SELECT + 38 * + 64
----
2432

query I rowsort
SELECT DISTINCT + 72 * + 87
----
6264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2836
SELECT - 32 * - CAST( + + 85 AS SIGNED ) AS col0
----
2720

skipif mysql # not compatible
query I rowsort label-2836
SELECT - 32 * - CAST ( + + 85 AS INTEGER ) AS col0
----
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT - NULLIF ( NULLIF ( + 14, - 0 ), + + CASE + COUNT( * ) WHEN - 42 + + 58 + 66 + 54 / 55 * 56 + - COUNT( * ) + - + COUNT( * ) / 62 - + - 90 + + ( + - ( + NULLIF ( + + 31, + 77 ) ) ) THEN + 76 WHEN - 4 + + 31 THEN NULL END ) * + COUNT( * ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-2837
SELECT - NULLIF ( NULLIF ( + 14, - 0 ), + + CASE + COUNT ( * ) WHEN - 42 + + 58 + 66 + 54 / 55 * 56 + - COUNT ( * ) + - + COUNT ( * ) / 62 - + - 90 + + ( + - ( + NULLIF ( + + 31, + 77 ) ) ) THEN + 76 WHEN - 4 + + 31 THEN NULL END ) * + COUNT ( * ) AS col2
----
-14

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

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

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

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

query I rowsort
SELECT ALL - 18 + + 26
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2841
SELECT ALL + COUNT( * ) + + ( 33 ) DIV + NULLIF ( - COUNT( * ), - CASE + MAX( ALL + + 16 ) WHEN + 70 THEN NULL ELSE + - 49 END * - - CASE - CAST( NULL AS SIGNED ) WHEN ( - 38 ) THEN 29 + 2 END )
----
-32

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL + COUNT ( * ) + + ( 33 ) / + NULLIF ( - COUNT ( * ), - CASE + MAX ( ALL + + 16 ) WHEN + 70 THEN NULL ELSE + - 49 END * - - CASE - CAST ( NULL AS INTEGER ) WHEN ( - 38 ) THEN 29 + 2 END )
----
-32

query I rowsort
SELECT ALL 96 * - 86
----
-8256

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2843
SELECT DISTINCT 64 DIV + 11 + + 75 * + + 75 + + COUNT( * ) - - NULLIF ( + + MAX( ALL + 95 ), + + 88 + + - 66 ) DIV 41, - COUNT( * ) col1
----
5633
-1

skipif mysql # not compatible
query II rowsort label-2843
SELECT DISTINCT 64 / + 11 + + 75 * + + 75 + + COUNT ( * ) - - NULLIF ( + + MAX ( ALL + 95 ), + + 88 + + - 66 ) / 41, - COUNT ( * ) col1
----
5633
-1

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

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

query I rowsort
SELECT 55 * - 44 + + NULLIF ( 3, - 47 * - 19 * + 67 * + 13 + - CASE + 78 WHEN 61 THEN + - ( - 18 ) END )
----
-2417

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT - 18 + - - COALESCE ( + COUNT( * ), 69 ) - + 49 * + 67 + COUNT( * ) AS col2
----
-3299

skipif mysql # not compatible
query I rowsort label-2846
SELECT - 18 + - - COALESCE ( + COUNT ( * ), 69 ) - + 49 * + 67 + COUNT ( * ) AS col2
----
-3299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2847
SELECT ALL 38 DIV + 14 + + MIN( ALL 55 )
----
57

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL 38 / + 14 + + MIN ( ALL 55 )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2848
SELECT - 95 + COUNT( * ) + + 79 + - 78 DIV + + MAX( DISTINCT 41 )
----
-16

skipif mysql # not compatible
query I rowsort label-2848
SELECT - 95 + COUNT ( * ) + + 79 + - 78 / + + MAX ( DISTINCT 41 )
----
-16

query I rowsort
SELECT - 12 * - 36
----
432

query I rowsort
SELECT ALL + 10 * + 79 AS col1
----
790

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2851
SELECT 12 AS col2, - NULLIF ( + 78, - - 16 * 13 + 86 ) * + - 21 + + + COALESCE ( - ( + 54 ), - - 94 * + 13 - - MAX( - + 51 ) - + 44 DIV COUNT( * ), 66 ) + + 74
----
12
1658

skipif mysql # not compatible
query II rowsort label-2851
SELECT 12 AS col2, - NULLIF ( + 78, - - 16 * 13 + 86 ) * + - 21 + + + COALESCE ( - ( + 54 ), - - 94 * + 13 - - MAX ( - + 51 ) - + 44 / COUNT ( * ), 66 ) + + 74
----
12
1658

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2852
SELECT + 58 DIV 7 + COUNT( * ) AS col0, 56 col1
----
9
56

skipif mysql # not compatible
query II rowsort label-2852
SELECT + 58 / 7 + COUNT ( * ) AS col0, 56 col1
----
9
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT - 49 * - - 65 - NULLIF ( 24, + - 12 + + AVG ( DISTINCT + 42 ) * + 25 * + + 49 + - MAX( - 36 ) * - AVG ( - 63 ) * - COALESCE ( 67, - 45 * 59 ) ) + + 45 + - COUNT( * ) * 55 * + COUNT( * ) + - + 77
----
-3296

skipif mysql # not compatible
query I rowsort label-2853
SELECT - 49 * - - 65 - NULLIF ( 24, + - 12 + + AVG ( DISTINCT + 42 ) * + 25 * + + 49 + - MAX ( - 36 ) * - AVG ( - 63 ) * - COALESCE ( 67, - 45 * 59 ) ) + + 45 + - COUNT ( * ) * 55 * + COUNT ( * ) + - + 77
----
-3296

query I rowsort
SELECT + 65 + 87
----
152

query I rowsort
SELECT ALL - - 37 * - 71
----
-2627

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT NULLIF ( + MIN( - + 87 ), - 27 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-2856
SELECT NULLIF ( + MIN ( - + 87 ), - 27 ) AS col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2857
SELECT ALL COALESCE ( + COUNT( * ), 59 * - 92 ) DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL COALESCE ( + COUNT ( * ), 59 * - 92 ) / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT + - COALESCE ( + - 52, - - 29 + - + COUNT( * ) )
----
52

skipif mysql # not compatible
query I rowsort label-2858
SELECT + - COALESCE ( + - 52, - - 29 + - + COUNT ( * ) )
----
52

query II rowsort
SELECT + ( + - ( + 94 ) ) AS col0, + 88 AS col1
----
-94
88

query I rowsort
SELECT 75 + - - 41 AS col2
----
116

query II rowsort
SELECT - 33, + ( + 65 ) AS col2
----
-33
65

onlyif mysql # aggregate syntax: 
query II rowsort label-2862
SELECT - 65 * - 24 + COUNT( * ) AS col1, - 67
----
1561
-67

skipif mysql # not compatible
query II rowsort label-2862
SELECT - 65 * - 24 + COUNT ( * ) AS col1, - 67
----
1561
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2863
SELECT ALL - 23, - 2 DIV + ( - + COUNT( + 18 ) ) AS col0
----
-23
2

skipif mysql # not compatible
query II rowsort label-2863
SELECT ALL - 23, - 2 / + ( - + COUNT ( + 18 ) ) AS col0
----
-23
2

query I rowsort
SELECT NULLIF ( - 9, 15 * + + 98 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2865
SELECT ALL - 45 + + + 15 * + COALESCE ( + 80, - 36 + - 9 + + 21 + + 40 + + + COUNT( * ), 96 * - - CAST( NULL AS SIGNED ) )
----
1155

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - 45 + + + 15 * + COALESCE ( + 80, - 36 + - 9 + + 21 + + 40 + + + COUNT ( * ), 96 * - - CAST ( NULL AS INTEGER ) )
----
1155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2866
SELECT + 52 * - CAST( - MAX( + 63 ) AS SIGNED ) + 51 + - + COUNT( * )
----
3326

skipif mysql # not compatible
query I rowsort label-2866
SELECT + 52 * - CAST ( - MAX ( + 63 ) AS INTEGER ) + 51 + - + COUNT ( * )
----
3326

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2868
SELECT ALL - CAST( 25 AS SIGNED ) * 60
----
-1500

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL - CAST ( 25 AS INTEGER ) * 60
----
-1500

query I rowsort
SELECT DISTINCT 56 + 23
----
79

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT ALL 91 + 89 DIV - 81 col1
----
90

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL 91 + 89 / - 81 col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2872
SELECT CASE + MIN( ALL + CAST( NULL AS SIGNED ) ) WHEN 13 THEN + + 72 + 33 ELSE NULL END - 80 + - COUNT( * ) * - 65 * 93 + + + NULLIF ( - 43, 32 ) * 52 + + ( - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT CASE + MIN ( ALL + CAST ( NULL AS INTEGER ) ) WHEN 13 THEN + + 72 + 33 ELSE NULL END - 80 + - COUNT ( * ) * - 65 * 93 + + + NULLIF ( - 43, 32 ) * 52 + + ( - 81 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2873
SELECT 67 DIV + 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2873
SELECT 67 / + 84 AS col0
----
0

query I rowsort
SELECT ALL 84 + - - NULLIF ( + - 77, - 56 / - - 24 )
----
7

query II rowsort
SELECT 73 * + 51 AS col0, - 88 * + + 91 col0
----
3723
-8008

query II rowsort
SELECT ALL 55 + - + 60 AS col0, ( + - 8 )
----
-5
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT ALL - 87 + + MIN( + + 97 )
----
10

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL - 87 + + MIN ( + + 97 )
----
10

query II rowsort
SELECT 93 + - 79 AS col1, - 81 * 6 * - + 68 - - + 4 - - + ( - - 50 ) AS col1
----
14
33102

onlyif mysql # DIV for integer division: 
query I rowsort label-2879
SELECT ALL 48 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL 48 / + 72
----
0

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

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

query I rowsort
SELECT DISTINCT 83 * - 77 col1
----
-6391

query I rowsort
SELECT 12 + + 49 AS col0
----
61

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

skipif mysql # not compatible
query I rowsort label-2883
SELECT 83 / 91
----
0

query I rowsort
SELECT DISTINCT - 69 - + 45 - 47 col1
----
-161

query I rowsort
SELECT DISTINCT - CASE 9 WHEN 4 - + 93 THEN + 47 END AS col2
----
NULL

query I rowsort
SELECT ALL 33 * - 19 AS col1
----
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT - ( + 72 ) * - + 53 * COUNT( * ) * + 50
----
190800

skipif mysql # not compatible
query I rowsort label-2887
SELECT - ( + 72 ) * - + 53 * COUNT ( * ) * + 50
----
190800

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2889
SELECT 10 * - 91 AS col0, + 19 DIV - 81
----
-910
0

skipif mysql # not compatible
query II rowsort label-2889
SELECT 10 * - 91 AS col0, + 19 / - 81
----
-910
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2890
SELECT + 52 - + 22 AS col1, COUNT( ALL - ( - 61 ) )
----
30
1

skipif mysql # not compatible
query II rowsort label-2890
SELECT + 52 - + 22 AS col1, COUNT ( ALL - ( - 61 ) )
----
30
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2891
SELECT 89 * + 59 AS col1, - COUNT( * ) AS col0
----
5251
-1

skipif mysql # not compatible
query II rowsort label-2891
SELECT 89 * + 59 AS col1, - COUNT ( * ) AS col0
----
5251
-1

query I rowsort
SELECT ALL - + 9 * - 29 AS col1
----
261

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

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

query II rowsort
SELECT DISTINCT - - 84 * - 94 * 12 + 75 AS col0, 68
----
-94677
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT - ( - - 19 ) + + COUNT( * ) + - 6 * - ( - 35 ) + 37 * + 6 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT - ( - - 19 ) + + COUNT ( * ) + - 6 * - ( - 35 ) + 37 * + 6 AS col0
----
-6

query I rowsort
SELECT DISTINCT - + 37 col0
----
-37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT + 11 * - SUM( ALL + 21 ) AS col1
----
-231

skipif mysql # not compatible
query I rowsort label-2898
SELECT + 11 * - SUM ( ALL + 21 ) AS col1
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2899
SELECT ALL - + ( - + ( + 85 ) ) + - 88 * 87 + - 99 + 58 * + CAST( NULL AS SIGNED ) * + + 55 * - 16 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL - + ( - + ( + 85 ) ) + - 88 * 87 + - 99 + 58 * + CAST ( NULL AS INTEGER ) * + + 55 * - 16 col2
----
NULL

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

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

query II rowsort
SELECT 59 * 43, 18 AS col2
----
2537
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT - ( - SUM( + 68 ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2902
SELECT - ( - SUM ( + 68 ) ) AS col2
----
68

query I rowsort
SELECT ALL - 17 + 55 col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-2904
SELECT 48 * 66 DIV - 80
----
-39

skipif mysql # not compatible
query I rowsort label-2904
SELECT 48 * 66 / - 80
----
-39

query I rowsort
SELECT 58 * - - 8 * ( + 63 ) * + + 91
----
2660112

query I rowsort
SELECT 93 + - 75 + + + 58 AS col0
----
76

query I rowsort
SELECT ALL NULLIF ( 36, - 32 * 28 )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2908
SELECT ALL 85 + COUNT( * ) * + + 10 AS col2, 39 - - + 24
----
95
63

skipif mysql # not compatible
query II rowsort label-2908
SELECT ALL 85 + COUNT ( * ) * + + 10 AS col2, 39 - - + 24
----
95
63

query I rowsort
SELECT ALL 43 * 64 * - 77 col1
----
-211904

query I rowsort
SELECT DISTINCT + 0 + + - 45 + - 98 + - 76 * + 35 + 19 * - 37 * 61
----
-45686

query II rowsort
SELECT - 65 AS col1, + 28
----
-65
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2912
SELECT DISTINCT 96 - 51 + 12 DIV + - NULLIF ( COALESCE ( - MAX( DISTINCT - 16 ), + 68 ), 58 ) + 93 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT 96 - 51 + 12 / + - NULLIF ( COALESCE ( - MAX ( DISTINCT - 16 ), + 68 ), 58 ) + 93 AS col2
----
138

query I rowsort
SELECT ALL - 28 * - + 45 * + 18 * 26 * + 62 AS col0
----
36560160

query I rowsort
SELECT 67 + + 25
----
92

query I rowsort
SELECT 73 * - 15 * + 65
----
-71175

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

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

query I rowsort
SELECT DISTINCT 42 * 34 AS col1
----
1428

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

query II rowsort
SELECT ALL 33 col0, 60 - + + 64 + - 70 AS col0
----
33
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT + MIN( + ( - 82 ) ) + 38
----
-44

skipif mysql # not compatible
query I rowsort label-2920
SELECT + MIN ( + ( - 82 ) ) + 38
----
-44

query I rowsort
SELECT DISTINCT - 10 * - 5
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2922
SELECT ALL ( + CASE 85 WHEN + SUM( + 51 ) THEN + ( - + 59 ) * 17 + 38 * - 32 * 90 + 23 + - + 86 / + COALESCE ( + + COALESCE ( 28, CAST( 85 AS SIGNED ) + - 26 + - CAST( - 61 AS SIGNED ) * 93 + 51 + + 36 * + + CASE 80 WHEN - 49 / - 61 THEN - AVG ( - 51 ) WHEN + - COUNT( * ) THEN NULL ELSE NULL END - - 4 * - 18 - - 19 ), + CAST( + 96 AS SIGNED ) * + + COUNT( * ) ) WHEN - + 28 THEN NULL WHEN + - ( - 76 ) THEN NULL END ) - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL ( + CASE 85 WHEN + SUM ( + 51 ) THEN + ( - + 59 ) * 17 + 38 * - 32 * 90 + 23 + - + 86 / + COALESCE ( + + COALESCE ( 28, CAST ( 85 AS INTEGER ) + - 26 + - CAST ( - 61 AS INTEGER ) * 93 + 51 + + 36 * + + CASE 80 WHEN - 49 / - 61 THEN - AVG ( - 51 ) WHEN + - COUNT ( * ) THEN NULL ELSE NULL END - - 4 * - 18 - - 19 ), + CAST ( + 96 AS INTEGER ) * + + COUNT ( * ) ) WHEN - + 28 THEN NULL WHEN + - ( - 76 ) THEN NULL END ) - 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT DISTINCT COUNT( * ) / - CASE + 29 WHEN + SUM( 47 ) THEN + 57 WHEN - 36 THEN + 41 * + + ( + - 65 ) - 13 + 64 * + + 83 + - COUNT( * ) + + 16 / - 59 * + 32 * 43 / - 52 * 73 * 82 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT COUNT ( * ) / - CASE + 29 WHEN + SUM ( 47 ) THEN + 57 WHEN - 36 THEN + 41 * + + ( + - 65 ) - 13 + 64 * + + 83 + - COUNT ( * ) + + 16 / - 59 * + 32 * 43 / - 52 * 73 * 82 END AS col2
----
NULL

query I rowsort
SELECT + 36 * 60
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT + 53 - COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-2925
SELECT + 53 - COUNT ( * ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT ALL MIN( ALL 33 ) * 95
----
3135

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL MIN ( ALL 33 ) * 95
----
3135

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT 56 DIV + 36 - 85 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-2927
SELECT 56 / + 36 - 85 AS col0
----
-84

query I rowsort
SELECT + 41 * + 9
----
369

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT + NULLIF ( - MIN( - 23 ), 85 - - 46 / 90 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2929
SELECT + NULLIF ( - MIN ( - 23 ), 85 - - 46 / 90 ) AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2930
SELECT + 5 + + 29 DIV 47 col0
----
5

skipif mysql # not compatible
query I rowsort label-2930
SELECT + 5 + + 29 / 47 col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2931
SELECT ALL NULLIF ( - 37, CAST( NULL AS SIGNED ) - - NULLIF ( + 30, + 18 * 96 ) ) * COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL NULLIF ( - 37, CAST ( NULL AS INTEGER ) - - NULLIF ( + 30, + 18 * 96 ) ) * COUNT ( * ) AS col1
----
-37

query I rowsort
SELECT NULLIF ( 90, + 83 + AVG ( 79 ) ) col1
----
90

query I rowsort
SELECT + 11 * 12
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT - ( 90 ) DIV 44 + 27 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2934
SELECT - ( 90 ) / 44 + 27 AS col2
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT ALL MIN( ALL + 27 ) * CASE + COUNT( * ) WHEN 88 THEN NULL WHEN COUNT( * ) THEN + COUNT( * ) ELSE NULL END + - ( MIN( DISTINCT + 49 ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL MIN ( ALL + 27 ) * CASE + COUNT ( * ) WHEN 88 THEN NULL WHEN COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END + - ( MIN ( DISTINCT + 49 ) ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL CASE COUNT( - 10 ) WHEN 91 THEN COUNT( * ) * - 69 WHEN 66 THEN NULL WHEN 19 THEN 81 ELSE NULL END * 60 + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL CASE COUNT ( - 10 ) WHEN 91 THEN COUNT ( * ) * - 69 WHEN 66 THEN NULL WHEN 19 THEN 81 ELSE NULL END * 60 + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2938
SELECT COALESCE ( + 42, - COALESCE ( + COUNT( * ), + 26 DIV 14 + - 6 * - CAST( NULL AS SIGNED ) ), + 18 * + CAST( - 89 AS SIGNED ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-2938
SELECT COALESCE ( + 42, - COALESCE ( + COUNT ( * ), + 26 / 14 + - 6 * - CAST ( NULL AS INTEGER ) ), + 18 * + CAST ( - 89 AS INTEGER ) ) AS col0
----
42

query I rowsort
SELECT 94 * - 59 + - 24 AS col1
----
-5570

query I rowsort
SELECT - 33 * - 9
----
297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2941
SELECT ALL 28 * 62 + CAST( 93 AS SIGNED ) AS col1
----
1829

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL 28 * 62 + CAST ( 93 AS INTEGER ) AS col1
----
1829

query I rowsort
SELECT + NULLIF ( - 29, + 6 ) + 75
----
46

query I rowsort
SELECT + 97 + + 28 * 78
----
2281

onlyif mysql # DIV for integer division: 
query I rowsort label-2944
SELECT DISTINCT 71 * 71 + - 48 DIV 79 AS col1
----
5041

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT 71 * 71 + - 48 / 79 AS col1
----
5041

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT COALESCE ( - CASE WHEN NOT 79 >= 47 THEN + 94 - 1 END, 30 + 10 ) * - COALESCE ( + 92, - SUM( ALL 4 ) + + 35 ) + 38 AS col1
----
-3642

skipif mysql # not compatible
query I rowsort label-2946
SELECT COALESCE ( - CASE WHEN NOT 79 >= 47 THEN + 94 - 1 END, 30 + 10 ) * - COALESCE ( + 92, - SUM ( ALL 4 ) + + 35 ) + 38 AS col1
----
-3642

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ALL ( 19 ) * 23 + COUNT( * )
----
438

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL ( 19 ) * 23 + COUNT ( * )
----
438

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL + 95 * NULLIF ( NULLIF ( COUNT( * ), 4 + - 47 * + 86 ) * 18, 42 ) AS col0
----
1710

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL + 95 * NULLIF ( NULLIF ( COUNT ( * ), 4 + - 47 * + 86 ) * 18, 42 ) AS col0
----
1710

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2949
SELECT DISTINCT ( + AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT ( + AVG ( DISTINCT - CAST ( NULL AS REAL ) ) ) col0
----
NULL

query I rowsort
SELECT DISTINCT + 14 * 81
----
1134

query I rowsort
SELECT ALL ( - 26 ) AS col0
----
-26

query I rowsort
SELECT - 43 + + 18
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT ALL + 96 * - MIN( 48 ) AS col0
----
-4608

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL + 96 * - MIN ( 48 ) AS col0
----
-4608

query I rowsort
SELECT - COALESCE ( 98, 13, + 35 * - 46 ) * 96
----
-9408

query I rowsort
SELECT - 19 + 66
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2956
SELECT - COALESCE ( ( 98 ), + 9 ) DIV CASE WHEN NOT + AVG ( ALL 82 ) * COALESCE ( 41, 21 + AVG ( ALL + ( - 70 ) + + 33 ), + 23 ) BETWEEN ( 86 * - COUNT( * ) ) AND ( NULL ) THEN NULL WHEN NOT NULL IS NULL THEN + 75 ELSE + 88 DIV 95 - - 66 END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2956
SELECT - COALESCE ( ( 98 ), + 9 ) / CASE WHEN NOT + AVG ( ALL 82 ) * COALESCE ( 41, 21 + AVG ( ALL + ( - 70 ) + + 33 ), + 23 ) BETWEEN ( 86 * - COUNT ( * ) ) AND ( NULL ) THEN NULL WHEN NOT NULL IS NULL THEN + 75 ELSE + 88 / 95 - - 66 END AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2957
SELECT - 96 + + COALESCE ( COUNT( * ), + 95, + CAST( NULL AS SIGNED ) )
----
-95

skipif mysql # not compatible
query I rowsort label-2957
SELECT - 96 + + COALESCE ( COUNT ( * ), + 95, + CAST ( NULL AS INTEGER ) )
----
-95

query I rowsort
SELECT ALL ( - 34 )
----
-34

query I rowsort
SELECT - 7 + + 79 * ( 7 ) AS col2
----
546

query I rowsort
SELECT - 13 + ( 85 )
----
72

query I rowsort
SELECT + 72 * - 65
----
-4680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT - CAST( AVG ( ALL 64 ) AS SIGNED ) + 43
----
-21

skipif mysql # not compatible
query I rowsort label-2962
SELECT - CAST ( AVG ( ALL 64 ) AS INTEGER ) + 43
----
-21

query I rowsort
SELECT + 89 + - 69 * - 44
----
3125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2964
SELECT DISTINCT CASE - 78 WHEN - CAST( NULL AS SIGNED ) / 45 THEN NULL ELSE - 37 - - 65 END
----
28

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT CASE - 78 WHEN - CAST ( NULL AS INTEGER ) / 45 THEN NULL ELSE - 37 - - 65 END
----
28

query I rowsort
SELECT ALL NULLIF ( - 71, 11 / 97 - - ( + 80 + + 66 ) ) AS col1
----
-71

query I rowsort
SELECT - 77 * + 27
----
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT DISTINCT SUM( - 84 ) * 6 AS col1
----
-504

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT SUM ( - 84 ) * 6 AS col1
----
-504

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT + 29 + MIN( DISTINCT 1 )
----
30

skipif mysql # not compatible
query I rowsort label-2970
SELECT + 29 + MIN ( DISTINCT 1 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT - MIN( - 27 ) * 96 AS col2
----
2592

skipif mysql # not compatible
query I rowsort label-2971
SELECT - MIN ( - 27 ) * 96 AS col2
----
2592

query I rowsort
SELECT + 63 * 18
----
1134

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

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL 51 + COUNT ( * ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT - + COUNT( DISTINCT + 77 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2974
SELECT - + COUNT ( DISTINCT + 77 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2975
SELECT + - 24 + - 2 * CASE 61 * COUNT( * ) WHEN 34 + + 56 * - 98 THEN 92 - - 38 ELSE - 82 DIV 83 END
----
-24

skipif mysql # not compatible
query I rowsort label-2975
SELECT + - 24 + - 2 * CASE 61 * COUNT ( * ) WHEN 34 + + 56 * - 98 THEN 92 - - 38 ELSE - 82 / 83 END
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2976
SELECT ALL + 16 DIV - COUNT( * ) + - 58 * - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL + 16 / - COUNT ( * ) + - 58 * - COUNT ( * )
----
42

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2978
SELECT ALL + 52 DIV - 61 + 85 * 54
----
4590

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL + 52 / - 61 + 85 * 54
----
4590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2979
SELECT + COUNT( * ) DIV + CAST( AVG ( COALESCE ( + CAST( + 30 AS SIGNED ), 3 ) ) + + ( COUNT( * ) ) DIV - COUNT( 80 ) AS SIGNED ) + SUM( ALL - 18 ) col2
----
-18

skipif mysql # not compatible
query I rowsort label-2979
SELECT + COUNT ( * ) / + CAST ( AVG ( COALESCE ( + CAST ( + 30 AS INTEGER ), 3 ) ) + + ( COUNT ( * ) ) / - COUNT ( 80 ) AS INTEGER ) + SUM ( ALL - 18 ) col2
----
-18

query I rowsort
SELECT + 93 + + 28 * 95 AS col1
----
2753

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2981
SELECT ALL MAX( DISTINCT - 97 ) DIV 15 + - 64 * + 93
----
-5958

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL MAX ( DISTINCT - 97 ) / 15 + - 64 * + 93
----
-5958

query I rowsort
SELECT + + 86 * + 19 AS col1
----
1634

query I rowsort
SELECT + 50 - 14
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2984
SELECT ALL + 42 * - SUM( ALL - 22 DIV 47 + + 69 )
----
-2898

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL + 42 * - SUM ( ALL - 22 / 47 + + 69 )
----
-2898

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL 79 * + + COUNT( * ) col1
----
79

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL 79 * + + COUNT ( * ) col1
----
79

query I rowsort
SELECT ALL 61 * + 17 - - 36 * - 11 AS col2
----
641

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL - 87 * - - MAX( ALL + 69 ) * 3 - - 88
----
-17921

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL - 87 * - - MAX ( ALL + 69 ) * 3 - - 88
----
-17921

query I rowsort
SELECT ALL 32 * - 72 * 14
----
-32256

query I rowsort
SELECT - 2 - 45
----
-47

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

query I rowsort
SELECT NULLIF ( - 23, - 19 )
----
-23

query I rowsort
SELECT + 31 - + 58 + 30
----
3

query I rowsort
SELECT 12 * - 24
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT 18 DIV + COALESCE ( + 50, + 63, 62 ) * + 10
----
0

skipif mysql # not compatible
query I rowsort label-2995
SELECT 18 / + COALESCE ( + 50, + 63, 62 ) * + 10
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2996
SELECT DISTINCT + 83 DIV + COUNT( * ) DIV + COUNT( ALL 34 * 82 )
----
83

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT + 83 / + COUNT ( * ) / + COUNT ( ALL 34 * 82 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL + SUM( 86 ) * - 35
----
-3010

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL + SUM ( 86 ) * - 35
----
-3010

query I rowsort
SELECT 2 * - - 90 col1
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2999
SELECT ALL COUNT( DISTINCT + NULLIF ( + 45, + CAST( NULL AS SIGNED ) DIV 98 + + 34 ) ) DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL COUNT ( DISTINCT + NULLIF ( + 45, + CAST ( NULL AS INTEGER ) / 98 + + 34 ) ) / 73
----
0

query I rowsort
SELECT DISTINCT + ( ( + 92 ) ) * - 9
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL + 65 * MIN( DISTINCT 53 )
----
3445

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL + 65 * MIN ( DISTINCT 53 )
----
3445

query I rowsort
SELECT 27 * 0 * 31
----
0

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

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

query I rowsort
SELECT ALL - 93 + + 35
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3005
SELECT - MIN( 69 ) DIV - 30
----
2

skipif mysql # not compatible
query I rowsort label-3005
SELECT - MIN ( 69 ) / - 30
----
2

query I rowsort
SELECT + 5 + + - 62
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3007
SELECT ALL - 22 DIV + COUNT( ALL 28 )
----
-22

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL - 22 / + COUNT ( ALL 28 )
----
-22

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

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

query I rowsort
SELECT ALL - 78 + 77
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3010
SELECT DISTINCT COALESCE ( 67, + COUNT( * ) DIV - 9 )
----
67

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT COALESCE ( 67, + COUNT ( * ) / - 9 )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT - CAST( + 2 AS SIGNED ) - - 73 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-3011
SELECT - CAST ( + 2 AS INTEGER ) - - 73 AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3012
SELECT 18 DIV 13 * - COUNT( + 34 * - 49 ) + + 8 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3012
SELECT 18 / 13 * - COUNT ( + 34 * - 49 ) + + 8 AS col0
----
7

query I rowsort
SELECT DISTINCT - - COALESCE ( 26, + 91 * + 61 ) + 69
----
95

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

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL + 37 + - COUNT ( * ) AS col1
----
36

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3016
SELECT + 48 + CAST( NULL AS SIGNED ) + - MAX( 5 ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT + 48 + CAST ( NULL AS INTEGER ) + - MAX ( 5 ) * 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT DISTINCT - COUNT( 12 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT - COUNT ( 12 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT ALL - - ( + NULLIF ( 48, COUNT( * ) * + 26 ) )
----
48

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL - - ( + NULLIF ( 48, COUNT ( * ) * + 26 ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT DISTINCT - CASE - - AVG ( - 26 ) WHEN 7 THEN 85 WHEN + COUNT( * ) THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT - CASE - - AVG ( - 26 ) WHEN 7 THEN 85 WHEN + COUNT ( * ) THEN NULL ELSE NULL END col1
----
NULL

query II rowsort
SELECT 58, 23 * 84 AS col0
----
58
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ( + COUNT( * ) ) * NULLIF ( 15, + 30 * 49 ) * - 92 AS col1
----
-1380

skipif mysql # not compatible
query I rowsort label-3021
SELECT ( + COUNT ( * ) ) * NULLIF ( 15, + 30 * 49 ) * - 92 AS col1
----
-1380

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT + 88 * - NULLIF ( 71, MIN( ALL COALESCE ( - ( + 95 ), + 68, 25 * ( 50 ) ) ) * 2 ) + + 72 * 68
----
-1352

skipif mysql # not compatible
query I rowsort label-3022
SELECT + 88 * - NULLIF ( 71, MIN ( ALL COALESCE ( - ( + 95 ), + 68, 25 * ( 50 ) ) ) * 2 ) + + 72 * 68
----
-1352

onlyif mysql # DIV for integer division: 
query I rowsort label-3023
SELECT 76 DIV - + 59 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3023
SELECT 76 / - + 59 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3024
SELECT 83 + - + ( - COALESCE ( NULLIF ( + 80, CAST( NULL AS SIGNED ) ), 11 ) ) + ( 70 + ( 63 ) * + CASE 16 WHEN - ( COUNT( * ) ) THEN + 47 + 92 WHEN - 19 + + 46 * 46 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT 83 + - + ( - COALESCE ( NULLIF ( + 80, CAST ( NULL AS INTEGER ) ), 11 ) ) + ( 70 + ( 63 ) * + CASE 16 WHEN - ( COUNT ( * ) ) THEN + 47 + 92 WHEN - 19 + + 46 * 46 THEN NULL END ) AS col1
----
NULL

query I rowsort
SELECT 87 * 29 - 91
----
2432

query I rowsort
SELECT DISTINCT 19 * - 96
----
-1824

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3029
SELECT 97 * MAX( ALL - 32 ) DIV 83 + + NULLIF ( 13, 89 * 69 )
----
-24

skipif mysql # not compatible
query I rowsort label-3029
SELECT 97 * MAX ( ALL - 32 ) / 83 + + NULLIF ( 13, 89 * 69 )
----
-24

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

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

query II rowsort
SELECT DISTINCT - 44 AS col1, + 60
----
-44
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT ( - - COUNT( * ) ) + - 78 + + 29
----
-48

skipif mysql # not compatible
query I rowsort label-3033
SELECT ( - - COUNT ( * ) ) + - 78 + + 29
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3034
SELECT - 33 AS col2, + MIN( DISTINCT - + 12 )
----
-33
-12

skipif mysql # not compatible
query II rowsort label-3034
SELECT - 33 AS col2, + MIN ( DISTINCT - + 12 )
----
-33
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3035
SELECT CAST( NULL AS SIGNED ) + 72 + - ( 0 ) - - 80 * CASE SUM( DISTINCT 26 ) WHEN 56 * + 88 THEN SUM( ALL + ( 47 ) ) * - 51 - - 38 END * - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT CAST ( NULL AS INTEGER ) + 72 + - ( 0 ) - - 80 * CASE SUM ( DISTINCT 26 ) WHEN 56 * + 88 THEN SUM ( ALL + ( 47 ) ) * - 51 - - 38 END * - 5 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3036
SELECT 46 + - + ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 31 + + - 63 * + 59
----
-3686

query I rowsort
SELECT + CASE + + 12 WHEN + 52 + 51 * + 81 THEN 14 END
----
NULL

query I rowsort
SELECT + 3 * + - 91
----
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-3040
SELECT ALL 72 + - + 89 + + 10 + 52 * 64 DIV + NULLIF ( 32, 68 )
----
97

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL 72 + - + 89 + + 10 + 52 * 64 / + NULLIF ( 32, 68 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT DISTINCT - + MIN( + 74 ) + + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT - + MIN ( + 74 ) + + COUNT ( * )
----
-73

query I rowsort
SELECT ALL + + 87 + + 45 AS col1
----
132

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

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

query I rowsort
SELECT ALL - 27 + + 30
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3045
SELECT - COUNT( * ) * - ( + - COUNT( * ) ) * ( + 55 * 49 ) + - ( + MAX( DISTINCT 74 ) ) DIV 20
----
-2698

skipif mysql # not compatible
query I rowsort label-3045
SELECT - COUNT ( * ) * - ( + - COUNT ( * ) ) * ( + 55 * 49 ) + - ( + MAX ( DISTINCT 74 ) ) / 20
----
-2698

query I rowsort
SELECT DISTINCT + 99 + 5
----
104

query I rowsort
SELECT ALL - + 8 - 57 + - - 3
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT + 5 * + - CASE - 29 WHEN + 97 + + COUNT( 78 ) THEN 23 / - 21 WHEN 26 THEN 51 * 28 + 30 WHEN + 88 THEN ( 65 ) * 41 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT + 5 * + - CASE - 29 WHEN + 97 + + COUNT ( 78 ) THEN 23 / - 21 WHEN 26 THEN 51 * 28 + 30 WHEN + 88 THEN ( 65 ) * 41 END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3050
SELECT - 28 + + COUNT( * ) * - ( + SUM( ALL CAST( + 8 AS SIGNED ) ) ) DIV 72
----
-28

skipif mysql # not compatible
query I rowsort label-3050
SELECT - 28 + + COUNT ( * ) * - ( + SUM ( ALL CAST ( + 8 AS INTEGER ) ) ) / 72
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3051
SELECT ALL + 50 * 51 - + COUNT( * ) + 76 DIV 22
----
2552

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL + 50 * 51 - + COUNT ( * ) + 76 / 22
----
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT 59 * + 97 * ( COUNT( * ) ) - 63
----
5660

skipif mysql # not compatible
query I rowsort label-3052
SELECT 59 * + 97 * ( COUNT ( * ) ) - 63
----
5660

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL + 85 * COUNT( * ) - - 90
----
175

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL + 85 * COUNT ( * ) - - 90
----
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3054
SELECT - 55 * 87 DIV COALESCE ( - 72, 70 + 79 * NULLIF ( + 2, - 61 * COALESCE ( 85, + 93, MIN( 12 ) + - 89 ) ), - 80 )
----
66

skipif mysql # not compatible
query I rowsort label-3054
SELECT - 55 * 87 / COALESCE ( - 72, 70 + 79 * NULLIF ( + 2, - 61 * COALESCE ( 85, + 93, MIN ( 12 ) + - 89 ) ), - 80 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT DISTINCT + 92 * - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT + 92 * - COUNT ( * )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT 67 * CAST( NULL AS SIGNED ) / - 23 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT 67 * CAST ( NULL AS INTEGER ) / - 23 col2
----
NULL

query I rowsort
SELECT - 20 + - 25 + 85 AS col2
----
40

query I rowsort
SELECT DISTINCT - 82 * - 36
----
2952

query I rowsort
SELECT - 67 - 38 * + ( 57 ) col0
----
-2233

query I rowsort
SELECT + 73 * 70
----
5110

query I rowsort
SELECT - 84 * - 44
----
3696

query I rowsort
SELECT ALL - 92 * 11 AS col0
----
-1012

query I rowsort
SELECT ALL 52 * 47 + - 88 AS col0
----
2356

query I rowsort
SELECT + 54 * + 54
----
2916

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT ALL - CASE + - 15 WHEN 99 THEN - + COALESCE ( 6, 64 ) WHEN 44 + 51 THEN NULL ELSE 93 - - 32 END * ( - COUNT( 48 ) ) + COALESCE ( - 5 + - 63 * 15, - NULLIF ( 71, + 24 ) + + 7 ) * + 81
----
-76825

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL - CASE + - 15 WHEN 99 THEN - + COALESCE ( 6, 64 ) WHEN 44 + 51 THEN NULL ELSE 93 - - 32 END * ( - COUNT ( 48 ) ) + COALESCE ( - 5 + - 63 * 15, - NULLIF ( 71, + 24 ) + + 7 ) * + 81
----
-76825

query I rowsort
SELECT - 18 - - 55 + 13
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-3067
SELECT + 71 DIV - + 9 col2, 35 AS col0
----
-7
35

skipif mysql # not compatible
query II rowsort label-3067
SELECT + 71 / - + 9 col2, 35 AS col0
----
-7
35

query I rowsort
SELECT ALL - 31 + - - 71
----
40

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

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

query I rowsort
SELECT + - 51 - + 74 * + + 27 AS col1
----
-2049

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT - - 81 + + COUNT( * ) * - ( - + 81 ) + 69 * - 39
----
-2529

skipif mysql # not compatible
query I rowsort label-3071
SELECT - - 81 + + COUNT ( * ) * - ( - + 81 ) + 69 * - 39
----
-2529

query I rowsort
SELECT + + 76 * + - 83
----
-6308

query I rowsort
SELECT ALL + 70 - + - ( + - 0 ) AS col1
----
70

query I rowsort
SELECT + CASE 55 WHEN - - 25 * + ( 71 ) * 25 + 97 * 71 THEN - 69 END * - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT + + ( + 9 ) + - + COUNT( * ) * - + 50 col0
----
59

skipif mysql # not compatible
query I rowsort label-3075
SELECT + + ( + 9 ) + - + COUNT ( * ) * - + 50 col0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3076
SELECT + COUNT( * ) + + 44 + - 21 * + + 11 * NULLIF ( 89, + 46 ) + 9 DIV - 13 AS col0
----
-20514

skipif mysql # not compatible
query I rowsort label-3076
SELECT + COUNT ( * ) + + 44 + - 21 * + + 11 * NULLIF ( 89, + 46 ) + 9 / - 13 AS col0
----
-20514

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3077
SELECT + COUNT( * ) + + 31 * 68 DIV - NULLIF ( 95, 88 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3077
SELECT + COUNT ( * ) + + 31 * 68 / - NULLIF ( 95, 88 ) AS col0
----
-21

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

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

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

skipif mysql # not compatible
query I rowsort label-3079
SELECT + COUNT ( * ) + + + 76 * - 31 AS col0
----
-2355

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

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

query I rowsort
SELECT ALL - 94 * - - ( - 98 )
----
9212

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3082
SELECT + 5 DIV + COUNT( * ) AS col0, - 46 * - 4
----
5
184

skipif mysql # not compatible
query II rowsort label-3082
SELECT + 5 / + COUNT ( * ) AS col0, - 46 * - 4
----
5
184

query I rowsort
SELECT - CASE WHEN NULL IS NOT NULL THEN NULL ELSE - 75 END * - 82 AS col0
----
-6150

query I rowsort
SELECT - 79 + - 69 * 84
----
-5875

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3086
SELECT - 97 * + CAST( + 94 AS SIGNED ) * + 56 AS col2
----
-510608

skipif mysql # not compatible
query I rowsort label-3086
SELECT - 97 * + CAST ( + 94 AS INTEGER ) * + 56 AS col2
----
-510608

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT ALL + NULLIF ( CASE + COUNT( * ) WHEN + - 1 + + - 20 THEN + AVG ( DISTINCT - ( + 14 ) ) ELSE NULL END, 14 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL + NULLIF ( CASE + COUNT ( * ) WHEN + - 1 + + - 20 THEN + AVG ( DISTINCT - ( + 14 ) ) ELSE NULL END, 14 ) AS col0
----
NULL

query I rowsort
SELECT - 43 + + 91 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT - 61 * CASE + + 2 WHEN + - COUNT( * ) THEN + + COUNT( * ) + 48 / 76 WHEN 39 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT - 61 * CASE + + 2 WHEN + - COUNT ( * ) THEN + + COUNT ( * ) + 48 / 76 WHEN 39 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT ALL 79 * - CASE - + 59 WHEN + 44 THEN - CASE + 87 WHEN 63 * COUNT( * ) THEN - 89 WHEN - 89 - 86 THEN - AVG ( DISTINCT - 50 ) ELSE NULL END WHEN + CASE WHEN ( 24 ) IS NULL THEN 14 ELSE NULL END + NULLIF ( - 16, COALESCE ( 46, 15 * + 8 ) ) THEN - COUNT( * ) * + COUNT( * ) + + 10 END / COUNT( * ) + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL 79 * - CASE - + 59 WHEN + 44 THEN - CASE + 87 WHEN 63 * COUNT ( * ) THEN - 89 WHEN - 89 - 86 THEN - AVG ( DISTINCT - 50 ) ELSE NULL END WHEN + CASE WHEN ( 24 ) IS NULL THEN 14 ELSE NULL END + NULLIF ( - 16, COALESCE ( 46, 15 * + 8 ) ) THEN - COUNT ( * ) * + COUNT ( * ) + + 10 END / COUNT ( * ) + - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL - COUNT( * ) * + COALESCE ( + 2, - - COUNT( * ) * - 46 ) + + 95 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL - COUNT ( * ) * + COALESCE ( + 2, - - COUNT ( * ) * - 46 ) + + 95 AS col0
----
93

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

skipif mysql # not compatible
query I rowsort label-3092
SELECT - 31 * - COUNT ( - 17 ) / - ( - COUNT ( * ) )
----
31

query I rowsort
SELECT ALL - 68 * + 52 + 3 - 4 AS col2
----
-3537

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT ALL + CASE - 97 WHEN + + 17 THEN + 85 - 49 WHEN AVG ( DISTINCT 15 ) THEN - 95 + + MIN( + 78 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL + CASE - 97 WHEN + + 17 THEN + 85 - 49 WHEN AVG ( DISTINCT 15 ) THEN - 95 + + MIN ( + 78 ) END
----
NULL

query I rowsort
SELECT - 19 + - NULLIF ( - + NULLIF ( 12, + 40 + - 20 ), 10 ) + 68 AS col0
----
61

query I rowsort
SELECT NULLIF ( 4, + - 61 ) AS col1
----
4

query I rowsort
SELECT ALL + 69 * + 1 + - 17
----
52

query I rowsort
SELECT - 95 + - 73 * 18 AS col1
----
-1409

query I rowsort
SELECT 61 * + - 6 - ( + 73 ) AS col1
----
-439

query I rowsort
SELECT - 53 * 99 + - 44
----
-5291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3101
SELECT ALL + CASE + + 33 WHEN - 35 THEN + CASE - + 66 WHEN 4 THEN 3 WHEN - 36 THEN 92 * 0 + COUNT( * ) WHEN 34 * 73 + + 94 * 96 THEN 94 - + 52 ELSE NULL END ELSE NULL END * 92 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL + CASE + + 33 WHEN - 35 THEN + CASE - + 66 WHEN 4 THEN 3 WHEN - 36 THEN 92 * 0 + COUNT ( * ) WHEN 34 * 73 + + 94 * 96 THEN 94 - + 52 ELSE NULL END ELSE NULL END * 92 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 62 * - + 66 * 53 + + 7 AS col1
----
-216869

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3103
SELECT 65, + SUM( - 71 ) * - - 65 DIV - COUNT( * ) + 4 AS col1
----
65
4619

skipif mysql # not compatible
query II rowsort label-3103
SELECT 65, + SUM ( - 71 ) * - - 65 / - COUNT ( * ) + 4 AS col1
----
65
4619

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL NULLIF ( - + COUNT( * ), + MIN( DISTINCT + 47 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL NULLIF ( - + COUNT ( * ), + MIN ( DISTINCT + 47 ) ) AS col2
----
-1

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

query I rowsort
SELECT ALL - + 83 * + 88 - + 15
----
-7319

query I rowsort
SELECT - 60 * - 46 col2
----
2760

query I rowsort
SELECT + NULLIF ( - + 41, + 76 + - 39 ) + + 51 * + 22 AS col2
----
1081

onlyif mysql # aggregate syntax: 
query II rowsort label-3109
SELECT DISTINCT 9 AS col0, 43 * + 21 * - 88 + + COUNT( * ) AS col2
----
9
-79463

skipif mysql # not compatible
query II rowsort label-3109
SELECT DISTINCT 9 AS col0, 43 * + 21 * - 88 + + COUNT ( * ) AS col2
----
9
-79463

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT + - COUNT( * ) + - 45 col2
----
-46

skipif mysql # not compatible
query I rowsort label-3110
SELECT + - COUNT ( * ) + - 45 col2
----
-46

query I rowsort
SELECT ALL - 58 * - 9 + 11 AS col1
----
533

query I rowsort
SELECT + - 95 * + 12 * - 48 + - - 1 + - 2 AS col1
----
54719

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3114
SELECT ALL - - 61 * + COALESCE ( - CAST( + - MAX( - 27 ) AS SIGNED ), - SUM( DISTINCT ( + 3 ) ) ) * ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL - - 61 * + COALESCE ( - CAST ( + - MAX ( - 27 ) AS INTEGER ), - SUM ( DISTINCT ( + 3 ) ) ) * ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

query I rowsort
SELECT 67 - + + 92
----
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL MIN( 63 )
----
63

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL MIN ( 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ALL CASE 21 WHEN COUNT( - - 31 ) * - - COALESCE ( 13, MAX( ALL ( + 20 ) ) * + 71 ) + 45 / 95 THEN 93 * - 56 ELSE NULL END + + ( MAX( DISTINCT + 68 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL CASE 21 WHEN COUNT ( - - 31 ) * - - COALESCE ( 13, MAX ( ALL ( + 20 ) ) * + 71 ) + 45 / 95 THEN 93 * - 56 ELSE NULL END + + ( MAX ( DISTINCT + 68 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3120
SELECT 63 col2, CASE + - 94 WHEN - 30 * - 48 * - COUNT( * ) + + ( 43 - 3 ) * - MAX( 76 / 98 ) THEN NULL ELSE + COUNT( * ) END * + 47 + + 13 AS col0
----
63
60

skipif mysql # not compatible
query II rowsort label-3120
SELECT 63 col2, CASE + - 94 WHEN - 30 * - 48 * - COUNT ( * ) + + ( 43 - 3 ) * - MAX ( 76 / 98 ) THEN NULL ELSE + COUNT ( * ) END * + 47 + + 13 AS col0
----
63
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3121
SELECT DISTINCT 45, - 73 * - - ( - 49 ) * + 84 - MIN( DISTINCT - 50 ) * + 52 AS col2
----
45
303068

skipif mysql # not compatible
query II rowsort label-3121
SELECT DISTINCT 45, - 73 * - - ( - 49 ) * + 84 - MIN ( DISTINCT - 50 ) * + 52 AS col2
----
45
303068

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

skipif mysql # not compatible
query I rowsort label-3122
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) * 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3123
SELECT ALL MAX( DISTINCT 27 ) * - CASE WHEN ( NULL ) BETWEEN - CAST( - 86 AS SIGNED ) AND + 46 + + 97 THEN COUNT( * ) END * - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL MAX ( DISTINCT 27 ) * - CASE WHEN ( NULL ) BETWEEN - CAST ( - 86 AS INTEGER ) AND + 46 + + 97 THEN COUNT ( * ) END * - 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL 67 + - + COUNT( ALL - 18 )
----
66

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL 67 + - + COUNT ( ALL - 18 )
----
66

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

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 98
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3126
SELECT 29 * - CASE 69 WHEN - COUNT( * ) * - 84 + - - 98 THEN - 35 ELSE 4 DIV 95 + 9 END * 30 + 73 AS col1
----
-7757

skipif mysql # not compatible
query I rowsort label-3126
SELECT 29 * - CASE 69 WHEN - COUNT ( * ) * - 84 + - - 98 THEN - 35 ELSE 4 / 95 + 9 END * 30 + 73 AS col1
----
-7757

query I rowsort
SELECT DISTINCT 61 + - 26 * - + 51 * + 1 AS col0
----
1387

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

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

query I rowsort
SELECT COALESCE ( + 1, - 91, - 31, 27 + - - 27 * - 43 ) * + 67 AS col1
----
67

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3132
SELECT + 25 AS col1, - 80 - + + COUNT( * ) AS col1
----
25
-81

skipif mysql # not compatible
query II rowsort label-3132
SELECT + 25 AS col1, - 80 - + + COUNT ( * ) AS col1
----
25
-81

query I rowsort
SELECT DISTINCT NULLIF ( 29, - 61 ) * + 10 * - 33 col1
----
-9570

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3135
SELECT 43 DIV - + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3135
SELECT 43 / - + 67 AS col0
----
0

query I rowsort
SELECT DISTINCT - ( - 80 ) AS col1
----
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT ALL COUNT( * ) - 80 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL COUNT ( * ) - 80 AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3139
SELECT 24 AS col1, COALESCE ( 56, + 44, - 83 + + + CAST( NULL AS SIGNED ) )
----
24
56

skipif mysql # not compatible
query II rowsort label-3139
SELECT 24 AS col1, COALESCE ( 56, + 44, - 83 + + + CAST ( NULL AS INTEGER ) )
----
24
56

query II rowsort
SELECT 61 AS col0, + 23 AS col0
----
61
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3141
SELECT + 58 - 57 + - COUNT( * ) + + COUNT( * ) DIV - + 97 * COUNT( * ) * MIN( ALL 53 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3141
SELECT + 58 - 57 + - COUNT ( * ) + + COUNT ( * ) / - + 97 * COUNT ( * ) * MIN ( ALL 53 ) AS col0
----
0

query I rowsort
SELECT - - ( - 23 ) AS col2
----
-23

query II rowsort
SELECT - + 31, ( + 97 ) - + 27 AS col1
----
-31
70

query I rowsort
SELECT 47 * + 23 AS col0
----
1081

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3145
SELECT + COUNT( * ), ( + - COUNT( * ) ) * + 69 AS col1, 97 + + COUNT( * ) + + 91 DIV 32 AS col2
----
1
-69
100

skipif mysql # not compatible
query III rowsort label-3145
SELECT + COUNT ( * ), ( + - COUNT ( * ) ) * + 69 AS col1, 97 + + COUNT ( * ) + + 91 / 32 AS col2
----
1
-69
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3146
SELECT 44 DIV - - 99 * + 14 * - COUNT( * ) * + + 80 + 32 + 91
----
123

skipif mysql # not compatible
query I rowsort label-3146
SELECT 44 / - - 99 * + 14 * - COUNT ( * ) * + + 80 + 32 + 91
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-3147
SELECT 5 + + + 46 + - + 92 + 59 DIV + 26 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-3147
SELECT 5 + + + 46 + - + 92 + 59 / + 26 AS col2
----
-39

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3149
SELECT 36 + 27 * 13 - + CASE - 77 WHEN + ( 34 ) THEN - 79 WHEN 0 THEN NULL WHEN COALESCE ( 57, + 52, + AVG ( + CAST( 62 AS SIGNED ) ) + COUNT( * ) * - ( 27 ) ) + - MAX( 43 ) THEN + 77 * + 55 ELSE NULL END * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT 36 + 27 * 13 - + CASE - 77 WHEN + ( 34 ) THEN - 79 WHEN 0 THEN NULL WHEN COALESCE ( 57, + 52, + AVG ( + CAST ( 62 AS INTEGER ) ) + COUNT ( * ) * - ( 27 ) ) + - MAX ( 43 ) THEN + 77 * + 55 ELSE NULL END * 48
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3150
SELECT - - 95 AS col1, 80 DIV + - 56
----
95
-1

skipif mysql # not compatible
query II rowsort label-3150
SELECT - - 95 AS col1, 80 / + - 56
----
95
-1

query I rowsort
SELECT ALL - 3 + - CASE + - 78 WHEN 18 THEN - 40 * - 43 - 52 + 86 ELSE - 20 + 16 END + - 65
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3152
SELECT DISTINCT + - 54 DIV + 30 + - - 67 + + + 70
----
136

skipif mysql # not compatible
query I rowsort label-3152
SELECT DISTINCT + - 54 / + 30 + - - 67 + + + 70
----
136

query I rowsort
SELECT DISTINCT - + ( + 91 ) + 73 * + 97 + - + 50 AS col2
----
6940

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT DISTINCT COUNT( * ) * + + 68
----
68

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT COUNT ( * ) * + + 68
----
68

query I rowsort
SELECT ALL - 78 + 37 * + 47 AS col0
----
1661

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

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

query I rowsort
SELECT ALL 8 + - 3 AS col1
----
5

query I rowsort
SELECT 21 + 90 AS col1
----
111

query I rowsort
SELECT 34 * 35 + + 77 + CASE ( - 26 ) WHEN + 26 THEN NULL ELSE - 9 END * + 95
----
412

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT COUNT( * ) * + NULLIF ( - 47, + MAX( DISTINCT - 81 ) + 42 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-3160
SELECT COUNT ( * ) * + NULLIF ( - 47, + MAX ( DISTINCT - 81 ) + 42 ) AS col1
----
-47

query I rowsort
SELECT ( - 42 ) * - + 15
----
630

query II rowsort
SELECT ALL - ( - 25 ) col2, 53
----
25
53

query I rowsort
SELECT DISTINCT ( ( 58 ) ) - 93
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-3164
SELECT ( - COUNT( * ) ) * - 78, NULLIF ( - 74, 73 + + 32 ) * 89 + 14 * - 52 AS col1
----
78
-7314

skipif mysql # not compatible
query II rowsort label-3164
SELECT ( - COUNT ( * ) ) * - 78, NULLIF ( - 74, 73 + + 32 ) * 89 + 14 * - 52 AS col1
----
78
-7314

query I rowsort
SELECT ( 70 ) - + ( - 47 ) * + + 79 * + COALESCE ( 12, 78 + - 94 ) AS col1
----
44626

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3166
SELECT DISTINCT CAST( NULL AS DECIMAL ) - + 34 * + 67 * - 54 + - 66 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT CAST ( NULL AS REAL ) - + 34 * + 67 * - 54 + - 66 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT MAX( DISTINCT - 40 ) * - MIN( ALL - + 87 ) AS col1
----
-3480

skipif mysql # not compatible
query I rowsort label-3167
SELECT MAX ( DISTINCT - 40 ) * - MIN ( ALL - + 87 ) AS col1
----
-3480

query I rowsort
SELECT NULLIF ( + 10, - 53 ) * - 24 AS col2
----
-240

query I rowsort
SELECT 0 - 91
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3170
SELECT DISTINCT - - COUNT( - 33 ) AS col2, - ( - 38 ) AS col1
----
1
38

skipif mysql # not compatible
query II rowsort label-3170
SELECT DISTINCT - - COUNT ( - 33 ) AS col2, - ( - 38 ) AS col1
----
1
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT DISTINCT + 80 * - 85 + - - NULLIF ( ( CAST( NULL AS SIGNED ) ), - 82 + 55 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT + 80 * - 85 + - - NULLIF ( ( CAST ( NULL AS INTEGER ) ), - 82 + 55 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3172
SELECT DISTINCT - - 23 DIV 48 DIV + - COUNT( * ) * 32
----
0

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT - - 23 / 48 / + - COUNT ( * ) * 32
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3173
SELECT + + 12 * - 60 * + 92 + - 58 DIV COUNT( * ) * 51 AS col2
----
-69198

skipif mysql # not compatible
query I rowsort label-3173
SELECT + + 12 * - 60 * + 92 + - 58 / COUNT ( * ) * 51 AS col2
----
-69198

onlyif mysql # DIV for integer division: 
query II rowsort label-3174
SELECT - 96 DIV + + 46 col1, - 99 AS col0
----
-2
-99

skipif mysql # not compatible
query II rowsort label-3174
SELECT - 96 / + + 46 col1, - 99 AS col0
----
-2
-99

query I rowsort
SELECT + 5 + - 8 * 56 AS col1
----
-443

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT + + 92 * + + COUNT( * ) col2
----
92

skipif mysql # not compatible
query I rowsort label-3176
SELECT + + 92 * + + COUNT ( * ) col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT - + 87 + - CASE - 56 WHEN - 22 THEN + 75 / - CASE 30 WHEN COUNT( * ) THEN - COUNT( * ) END WHEN 16 * 84 + ( 41 + 57 ) * 24 THEN - 62 + + 73 END / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3177
SELECT - + 87 + - CASE - 56 WHEN - 22 THEN + 75 / - CASE 30 WHEN COUNT ( * ) THEN - COUNT ( * ) END WHEN 16 * 84 + ( 41 + 57 ) * 24 THEN - 62 + + 73 END / COUNT ( * ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3179
SELECT - + COUNT( * ) * 75 - - 81 + 0 + 66 * + ( - CAST( + COUNT( * ) AS SIGNED ) ) + - CASE WHEN 22 IS NULL THEN + 24 * MAX( 67 ) ELSE - 27 END AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3179
SELECT - + COUNT ( * ) * 75 - - 81 + 0 + 66 * + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) + - CASE WHEN 22 IS NULL THEN + 24 * MAX ( 67 ) ELSE - 27 END AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT - - COALESCE ( + + 89, COUNT( * ) * 89, - - COUNT( * ) * + - 82 - + 12 + 58 + COUNT( * ) * + MAX( ALL + 60 ), + 63 ) * COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3180
SELECT - - COALESCE ( + + 89, COUNT ( * ) * 89, - - COUNT ( * ) * + - 82 - + 12 + 58 + COUNT ( * ) * + MAX ( ALL + 60 ), + 63 ) * COUNT ( * ) AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3181
SELECT ALL + 15 * + + 2 + COALESCE ( - 44, - 92, + COUNT( * ) * + COALESCE ( CAST( NULL AS SIGNED ), 82 ) * - MIN( DISTINCT + 3 + + 59 ) - 77 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL + 15 * + + 2 + COALESCE ( - 44, - 92, + COUNT ( * ) * + COALESCE ( CAST ( NULL AS INTEGER ), 82 ) * - MIN ( DISTINCT + 3 + + 59 ) - 77 ) * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 64 + 49 AS col1, 54
----
113
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3183
SELECT ALL 69 + - 81 * + - 40 + - - ( CAST( NULL AS SIGNED ) ), 48 AS col2
----
NULL
48

skipif mysql # not compatible
query II rowsort label-3183
SELECT ALL 69 + - 81 * + - 40 + - - ( CAST ( NULL AS INTEGER ) ), 48 AS col2
----
NULL
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3184
SELECT - 12 DIV - - 93 + 7 + - - 86 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3184
SELECT - 12 / - - 93 + 7 + - - 86 AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3185
SELECT ALL + CAST( - + 73 AS SIGNED ) + + 89 col2, - MIN( DISTINCT - 99 )
----
16
99

skipif mysql # not compatible
query II rowsort label-3185
SELECT ALL + CAST ( - + 73 AS INTEGER ) + + 89 col2, - MIN ( DISTINCT - 99 )
----
16
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT DISTINCT SUM( ALL + 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT SUM ( ALL + 84 ) AS col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3187
SELECT - 90 DIV 44 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3187
SELECT - 90 / 44 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3188
SELECT ALL + COALESCE ( 51, + 21 * 69 + 16, 7 + - 12 * COUNT( * ) ) - 83 DIV 79
----
50

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL + COALESCE ( 51, + 21 * 69 + 16, 7 + - 12 * COUNT ( * ) ) - 83 / 79
----
50

query I rowsort
SELECT - 78 - 95
----
-173

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

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

query I rowsort
SELECT - 96 + + 14 AS col2
----
-82

query I rowsort
SELECT - 54 - NULLIF ( + 62, COALESCE ( - 3, - + ( - 47 ) + 65 ) * + 44 ) * - 22 col0
----
1310

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT ALL - ( CASE - SUM( + 89 ) WHEN + 62 + ( - 50 ) THEN - + 74 END ) * - 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL - ( CASE - SUM ( + 89 ) WHEN + 62 + ( - 50 ) THEN - + 74 END ) * - 2 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3195
SELECT ALL 60 * MIN( + 73 ), CAST( NULL AS SIGNED ) * - 33 - + 24 AS col0
----
4380
NULL

skipif mysql # not compatible
query II rowsort label-3195
SELECT ALL 60 * MIN ( + 73 ), CAST ( NULL AS INTEGER ) * - 33 - + 24 AS col0
----
4380
NULL

query I rowsort
SELECT DISTINCT + ( - + 63 ) AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3197
SELECT ALL + 12 * + + NULLIF ( CAST( + 5 AS SIGNED ), - COALESCE ( 77, - 66 + + - 15 * CAST( COUNT( 82 ) AS DECIMAL ) ) ) col0
----
60

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL + 12 * + + NULLIF ( CAST ( + 5 AS INTEGER ), - COALESCE ( 77, - 66 + + - 15 * CAST ( COUNT ( 82 ) AS REAL ) ) ) col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3198
SELECT + COALESCE ( - 45, + NULLIF ( - + COALESCE ( + 13, + 22 ), 11 * + CAST( NULL AS SIGNED ) ) * 58, + ( + SUM( - 26 ) ) + 43 )
----
-45

skipif mysql # not compatible
query I rowsort label-3198
SELECT + COALESCE ( - 45, + NULLIF ( - + COALESCE ( + 13, + 22 ), 11 * + CAST ( NULL AS INTEGER ) ) * 58, + ( + SUM ( - 26 ) ) + 43 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT - MIN( DISTINCT + 20 ) * - 54
----
1080

skipif mysql # not compatible
query I rowsort label-3199
SELECT - MIN ( DISTINCT + 20 ) * - 54
----
1080

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3201
SELECT + - 87 * - 48 + - + COALESCE ( - + 0, + 71 ) * + 52, CAST( NULL AS SIGNED ) + - - 42 + + 45 AS col1
----
4176
NULL

skipif mysql # not compatible
query II rowsort label-3201
SELECT + - 87 * - 48 + - + COALESCE ( - + 0, + 71 ) * + 52, CAST ( NULL AS INTEGER ) + - - 42 + + 45 AS col1
----
4176
NULL

query I rowsort
SELECT + 67 * - 68 AS col0
----
-4556

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT ALL 21 * + 94 + 7 + COUNT( - 2 ) AS col1
----
1982

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL 21 * + 94 + 7 + COUNT ( - 2 ) AS col1
----
1982

query II rowsort
SELECT + 39, 44 AS col2
----
39
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT + COUNT( DISTINCT - - 35 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3205
SELECT + COUNT ( DISTINCT - - 35 ) AS col1
----
1

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3208
SELECT + - 16 * 45 DIV - 4 AS col1, 74 AS col2
----
180
74

skipif mysql # not compatible
query II rowsort label-3208
SELECT + - 16 * 45 / - 4 AS col1, 74 AS col2
----
180
74

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3210
SELECT ALL COUNT( * ) * - 17 + 1 + + - 67 * + + 34 * + - 7 * - 2 + 18 / + CASE + 5 * + 50 WHEN 34 + + 72 THEN CAST( NULL AS SIGNED ) + 63 * 80 WHEN - 31 / + 73 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL COUNT ( * ) * - 17 + 1 + + - 67 * + + 34 * + - 7 * - 2 + 18 / + CASE + 5 * + 50 WHEN 34 + + 72 THEN CAST ( NULL AS INTEGER ) + 63 * 80 WHEN - 31 / + 73 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3211
SELECT + + 32, - 51 + - ( + 42 ) + + 66 * - + COALESCE ( - SUM( DISTINCT + - 5 ), + ( 14 ) ) AS col0
----
32
-423

skipif mysql # not compatible
query II rowsort label-3211
SELECT + + 32, - 51 + - ( + 42 ) + + 66 * - + COALESCE ( - SUM ( DISTINCT + - 5 ), + ( 14 ) ) AS col0
----
32
-423

onlyif mysql # aggregate syntax: 
query II rowsort label-3212
SELECT - COUNT( * ) * - 80 - + 51 AS col1, 70 AS col1
----
29
70

skipif mysql # not compatible
query II rowsort label-3212
SELECT - COUNT ( * ) * - 80 - + 51 AS col1, 70 AS col1
----
29
70

query II rowsort
SELECT ALL - NULLIF ( + - 37, + 60 ), 89 col2
----
37
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT DISTINCT - NULLIF ( 62, - - 79 ) * - + 36 * COUNT( ALL 25 ) col1
----
2232

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT - NULLIF ( 62, - - 79 ) * - + 36 * COUNT ( ALL 25 ) col1
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT ALL MIN( ALL + 25 ) * 16 + + 89
----
489

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL MIN ( ALL + 25 ) * 16 + + 89
----
489

query II rowsort
SELECT 70, 18 * - 54 AS col2
----
70
-972

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3217
SELECT + + 89 - - 37 + + - 11 - + 85 * + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3217
SELECT + + 89 - - 37 + + - 11 - + 85 * + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT - 14 - 63 * + 69 + - 34
----
-4395

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL - NULLIF ( - COUNT( * ), + + 2 ) - + 85 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL - NULLIF ( - COUNT ( * ), + + 2 ) - + 85 AS col2
----
-84

query I rowsort
SELECT + 78 + + - 93 + - 32
----
-47

query I rowsort
SELECT - 84 * 35 AS col2
----
-2940

query I rowsort
SELECT + 55 + - ( 91 ) AS col0
----
-36

query I rowsort
SELECT DISTINCT - 89 * - 26
----
2314

onlyif mysql # aggregate syntax: 
query II rowsort label-3224
SELECT ALL 37 * + 65 AS col2, - 64 * COUNT( * )
----
2405
-64

skipif mysql # not compatible
query II rowsort label-3224
SELECT ALL 37 * + 65 AS col2, - 64 * COUNT ( * )
----
2405
-64

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3226
SELECT ALL CAST( + 79 AS SIGNED ) AS col1, + 87 AS col0
----
79
87

skipif mysql # not compatible
query II rowsort label-3226
SELECT ALL CAST ( + 79 AS INTEGER ) AS col1, + 87 AS col0
----
79
87

query I rowsort
SELECT - 1 + 15 + + 30 * - 15
----
-436

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT + 12 * + COUNT( * ) * 46
----
552

skipif mysql # not compatible
query I rowsort label-3228
SELECT + 12 * + COUNT ( * ) * 46
----
552

query I rowsort
SELECT - 18 * 85
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT - CASE - MAX( - + 95 ) WHEN 28 THEN + 14 / 21 + - ( - 12 ) WHEN + 51 + + 83 THEN 56 / 96 END + - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3230
SELECT - CASE - MAX ( - + 95 ) WHEN 28 THEN + 14 / 21 + - ( - 12 ) WHEN + 51 + + 83 THEN 56 / 96 END + - 27 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3231
SELECT + SUM( ALL - + 42 ), 73 * CAST( 97 AS SIGNED ) - + - NULLIF ( + ( - - 19 ), CASE - 30 WHEN + 61 + + 40 THEN + 94 + - 34 ELSE + AVG ( DISTINCT 86 ) END - - 73 * CASE + 67 WHEN - 11 + + MAX( DISTINCT ( 61 ) ) * + COUNT( 98 ) THEN 77 ELSE NULL END ) AS col2
----
-42
7100

skipif mysql # not compatible
query II rowsort label-3231
SELECT + SUM ( ALL - + 42 ), 73 * CAST ( 97 AS INTEGER ) - + - NULLIF ( + ( - - 19 ), CASE - 30 WHEN + 61 + + 40 THEN + 94 + - 34 ELSE + AVG ( DISTINCT 86 ) END - - 73 * CASE + 67 WHEN - 11 + + MAX ( DISTINCT ( 61 ) ) * + COUNT ( 98 ) THEN 77 ELSE NULL END ) AS col2
----
-42
7100

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT - COUNT( * ) + CASE 22 WHEN - 24 + - 31 - COUNT( * ) + - 60 / - - 83 THEN + 3 END * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT - COUNT ( * ) + CASE 22 WHEN - 24 + - 31 - COUNT ( * ) + - 60 / - - 83 THEN + 3 END * - 77
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3234
SELECT DISTINCT 32 DIV 11 * 89 + - COUNT( * ) + MIN( DISTINCT 44 )
----
221

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT 32 / 11 * 89 + - COUNT ( * ) + MIN ( DISTINCT 44 )
----
221

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3235
SELECT ALL - 22 DIV + 73 * - COUNT( * ) - + 98 AS col1, 63 + 0 DIV - ( - + ( ( - 43 ) ) ) + 61 AS col1
----
-98
124

skipif mysql # not compatible
query II rowsort label-3235
SELECT ALL - 22 / + 73 * - COUNT ( * ) - + 98 AS col1, 63 + 0 / - ( - + ( ( - 43 ) ) ) + 61 AS col1
----
-98
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3236
SELECT ALL + 61 DIV 66 + + 32 + - + MIN( DISTINCT ( - 22 ) ) + + 30 AS col2, - 27
----
84
-27

skipif mysql # not compatible
query II rowsort label-3236
SELECT ALL + 61 / 66 + + 32 + - + MIN ( DISTINCT ( - 22 ) ) + + 30 AS col2, - 27
----
84
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT DISTINCT - 89 * - - COALESCE ( + MIN( DISTINCT + 27 ), - MIN( ALL 21 ) ) AS col2
----
-2403

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT - 89 * - - COALESCE ( + MIN ( DISTINCT + 27 ), - MIN ( ALL 21 ) ) AS col2
----
-2403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3238
SELECT DISTINCT + MIN( DISTINCT CAST( NULL AS SIGNED ) ) + - 40 * + 47 * 30 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + - 40 * + 47 * 30 col0
----
NULL

query I rowsort
SELECT + + CASE 84 WHEN 17 THEN - + 10 - 60 * CASE 97 WHEN - - 86 THEN + - 4 + + 11 ELSE 91 END END
----
NULL

query II rowsort
SELECT + - 74 * + 43 * + 58 + + 49, 17 AS col2
----
-184507
17

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

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

query I rowsort
SELECT + 85 * 64 - + + 17
----
5423

query II rowsort
SELECT DISTINCT - ( - + 68 ) AS col0, + 93
----
68
93

query I rowsort
SELECT ALL + 79 + - 6
----
73

query I rowsort
SELECT - 18 * - 98 + - 5 + + 14 + 97 * 4 + + 86
----
2247

query I rowsort
SELECT DISTINCT + + 48 + - 96
----
-48

query I rowsort
SELECT ALL - 24 + + 76
----
52

query I rowsort
SELECT - 6 * + - 33 + - 18
----
180

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT DISTINCT + ( + + MIN( - + 90 ) ) - 32 + + 99 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT + ( + + MIN ( - + 90 ) ) - 32 + + 99 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT - 43 * COUNT( * ) * + - 50 AS col1
----
2150

skipif mysql # not compatible
query I rowsort label-3251
SELECT - 43 * COUNT ( * ) * + - 50 AS col1
----
2150

query I rowsort
SELECT 5 * + + 66 AS col0
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT 20 * NULLIF ( + - 82, + 99 / - - COUNT( * ) ) + 49 AS col2
----
-1591

skipif mysql # not compatible
query I rowsort label-3253
SELECT 20 * NULLIF ( + - 82, + 99 / - - COUNT ( * ) ) + 49 AS col2
----
-1591

onlyif mysql # DIV for integer division: 
query I rowsort label-3254
SELECT 11 DIV - - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3254
SELECT 11 / - - 68 AS col2
----
0

query I rowsort
SELECT ALL 61 - - - ( - 24 ) AS col0
----
85

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3257
SELECT DISTINCT 96 * SUM( ALL + 6 ) * - + CAST( NULL AS DECIMAL ) * - - 99 * + 3 * + 49 * + 26 AS col0, + ( + 97 )
----
NULL
97

skipif mysql # not compatible
query II rowsort label-3257
SELECT DISTINCT 96 * SUM ( ALL + 6 ) * - + CAST ( NULL AS REAL ) * - - 99 * + 3 * + 49 * + 26 AS col0, + ( + 97 )
----
NULL
97

query I rowsort
SELECT 46 * 44
----
2024

onlyif mysql # DIV for integer division: 
query I rowsort label-3259
SELECT NULLIF ( - 45, 28 ) DIV - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3259
SELECT NULLIF ( - 45, 28 ) / - 74 AS col1
----
0

query II rowsort
SELECT ALL 20, - 85 * 80 AS col0
----
20
-6800

query I rowsort
SELECT 71 * - - 92 AS col1
----
6532

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT DISTINCT ( + - ( + - 13 ) ) + + NULLIF ( + 43, 67 ) * - + COUNT( * ) * COUNT( DISTINCT 20 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT ( + - ( + - 13 ) ) + + NULLIF ( + 43, 67 ) * - + COUNT ( * ) * COUNT ( DISTINCT 20 ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT MIN( - 59 ) * 68 + - ( + CASE + - 46 WHEN - 99 + + 11 THEN - - 33 WHEN 69 THEN + COUNT( 76 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT MIN ( - 59 ) * 68 + - ( + CASE + - 46 WHEN - 99 + + 11 THEN - - 33 WHEN 69 THEN + COUNT ( 76 ) END ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 40 + + + 51 AS col2
----
11

query I rowsort
SELECT DISTINCT 82 * - 5
----
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL COUNT( * ) + + - COALESCE ( 31, - 27 ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL COUNT ( * ) + + - COALESCE ( 31, - 27 ) col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT ALL - + ( + COUNT( * ) ) + - 68 + - 51 + + COUNT( + - 53 ) * - + 43 AS col1
----
-163

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL - + ( + COUNT ( * ) ) + - 68 + - 51 + + COUNT ( + - 53 ) * - + 43 AS col1
----
-163

query I rowsort
SELECT DISTINCT + 2 + 90 AS col2
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT ALL - - SUM( - + 47 ) + - + 18 * - 24 + + 55 col0
----
440

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL - - SUM ( - + 47 ) + - + 18 * - 24 + + 55 col0
----
440

query I rowsort
SELECT + 25 * + 69
----
1725

query I rowsort
SELECT ALL + 8 + 35
----
43

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3275
SELECT DISTINCT + + 45 DIV + 85 + + + 65 * + SUM( DISTINCT 22 ) * 3
----
4290

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT + + 45 / + 85 + + + 65 * + SUM ( DISTINCT 22 ) * 3
----
4290

query I rowsort
SELECT - 74 * + 71 AS col1
----
-5254

query I rowsort
SELECT 95 * + 4 AS col0
----
380

query I rowsort
SELECT ALL + 84 * - - 83 AS col1
----
6972

query I rowsort
SELECT DISTINCT - CASE + + ( + 80 ) WHEN 23 THEN NULL WHEN + 16 + - 59 THEN NULL WHEN - 87 * - 27 THEN 23 * - + 66 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ALL + + MIN( + 87 ) - 82 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL + + MIN ( + 87 ) - 82 AS col1
----
5

query I rowsort
SELECT ALL - 92 * - - 46 * + 19 AS col2
----
-80408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3282
SELECT + 41 - COALESCE ( - COALESCE ( - CAST( NULL AS SIGNED ), - COALESCE ( - 32, 20 ) ), + 60 + 71, + ( COUNT( * ) ) / 28 ) + + CAST( NULL AS SIGNED ) * + 80 * 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3282
SELECT + 41 - COALESCE ( - COALESCE ( - CAST ( NULL AS INTEGER ), - COALESCE ( - 32, 20 ) ), + 60 + 71, + ( COUNT ( * ) ) / 28 ) + + CAST ( NULL AS INTEGER ) * + 80 * 9 AS col2
----
NULL

query II rowsort
SELECT 61 AS col2, 23 col2
----
61
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT ALL - MIN( DISTINCT + 86 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL - MIN ( DISTINCT + 86 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT 21 + - + 6 + - COUNT( - CASE ( + 86 ) WHEN - 22 + + - 1 THEN - 87 ELSE NULL END ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3285
SELECT 21 + - + 6 + - COUNT ( - CASE ( + 86 ) WHEN - 22 + + - 1 THEN - 87 ELSE NULL END ) AS col2
----
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT 27 * - COUNT( * ) * - + 34 AS col0
----
918

skipif mysql # not compatible
query I rowsort label-3287
SELECT 27 * - COUNT ( * ) * - + 34 AS col0
----
918

query II rowsort
SELECT 42 AS col2, 20 * 34
----
42
680

query I rowsort
SELECT 40 * + 95 AS col2
----
3800

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

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL SUM ( - - 25 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3291
SELECT COUNT( * ) - + 68 + - 20 * + ( - COALESCE ( + COALESCE ( - COUNT( * ), CAST( NULL AS SIGNED ), - 95 + - 37 ), - 9 * + 84 - + COALESCE ( MAX( - 15 ), + 86 * - ( - ( - 89 ) ) + 50 * 11 ) ) ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-3291
SELECT COUNT ( * ) - + 68 + - 20 * + ( - COALESCE ( + COALESCE ( - COUNT ( * ), CAST ( NULL AS INTEGER ), - 95 + - 37 ), - 9 * + 84 - + COALESCE ( MAX ( - 15 ), + 86 * - ( - ( - 89 ) ) + 50 * 11 ) ) ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL 37 * + SUM( DISTINCT + 66 ) AS col1
----
2442

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL 37 * + SUM ( DISTINCT + 66 ) AS col1
----
2442

onlyif mysql # DIV for integer division: 
query I rowsort label-3293
SELECT 20 + - + 34 DIV ( + 4 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3293
SELECT 20 + - + 34 / ( + 4 ) AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3294
SELECT 56 - CASE - + 56 WHEN - NULLIF ( - + 93, 53 * - - 36 ) * - 71 + - 45 * + ( - 65 ) + - NULLIF ( 46 + - 81, + 67 ) THEN 30 / - NULLIF ( + 37, + CASE WHEN - 14 > NULL THEN 53 * 41 + CAST( NULL AS SIGNED ) WHEN + 94 <> 58 * - CASE - 45 WHEN COUNT( * ) THEN 37 / - 69 WHEN + 78 / + 73 THEN - 55 * 29 + + 38 ELSE NULL END THEN NULL ELSE + 61 END * - 51 ) WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT 56 - CASE - + 56 WHEN - NULLIF ( - + 93, 53 * - - 36 ) * - 71 + - 45 * + ( - 65 ) + - NULLIF ( 46 + - 81, + 67 ) THEN 30 / - NULLIF ( + 37, + CASE WHEN - 14 > NULL THEN 53 * 41 + CAST ( NULL AS INTEGER ) WHEN + 94 <> 58 * - CASE - 45 WHEN COUNT ( * ) THEN 37 / - 69 WHEN + 78 / + 73 THEN - 55 * 29 + + 38 ELSE NULL END THEN NULL ELSE + 61 END * - 51 ) WHEN + COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 83, 91 ) AS col0
----
83

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

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

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

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

query I rowsort
SELECT 46 + 39 * 30 AS col2
----
1216

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

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL 36 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 65 + - 98
----
-33

query I rowsort
SELECT ALL 41 + + 45 + 60 * - - 27 * - 45 AS col1
----
-72814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3302
SELECT + ( CAST( NULL AS SIGNED ) ) * 38 / + COALESCE ( + 96, COUNT( * ) - - 82 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3302
SELECT + ( CAST ( NULL AS INTEGER ) ) * 38 / + COALESCE ( + 96, COUNT ( * ) - - 82 ) AS col1
----
NULL

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

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

query I rowsort
SELECT + 60 + - 78
----
-18

query I rowsort
SELECT ALL - 40 + - + 62 * - 59 + - 22
----
3596

query I rowsort
SELECT + ( + 4 ) + - 24 col0
----
-20

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

query I rowsort
SELECT ALL - NULLIF ( + + 25, + 82 * 1 * + NULLIF ( - 0, 87 ) ) * + - 75 - - 23
----
1898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3309
SELECT + 27 * + AVG ( ALL 15 ) / + - COALESCE ( - 14, + COUNT( * ) + 3 + - + 53, 70 + SUM( DISTINCT + 91 ), 20 * 63 ) + CAST( NULL AS SIGNED ) * - 77 + NULLIF ( + 7, COUNT( * ) + COUNT( * ) * 24 ) / 77 + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT + 27 * + AVG ( ALL 15 ) / + - COALESCE ( - 14, + COUNT ( * ) + 3 + - + 53, 70 + SUM ( DISTINCT + 91 ), 20 * 63 ) + CAST ( NULL AS INTEGER ) * - 77 + NULLIF ( + 7, COUNT ( * ) + COUNT ( * ) * 24 ) / 77 + 61
----
NULL

query I rowsort
SELECT ALL + 94 * - 75 - + - 58 - + 54 AS col1
----
-7046

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT ALL + + CASE 0 WHEN + 9 THEN NULL ELSE - ( - 37 ) * + 95 * 63 * + ( 90 ) - 84 + - - COUNT( * ) + - 9 * 90 + NULLIF ( 59, 32 + COUNT( * ) ) * + 31 END
----
19930986

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + + CASE 0 WHEN + 9 THEN NULL ELSE - ( - 37 ) * + 95 * 63 * + ( 90 ) - 84 + - - COUNT ( * ) + - 9 * 90 + NULLIF ( 59, 32 + COUNT ( * ) ) * + 31 END
----
19930986

query I rowsort
SELECT DISTINCT + NULLIF ( 24, + + 41 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3313
SELECT + + 64 AS col0, - 31 + - + COUNT( * ) * 23 - - 2 AS col0
----
64
-52

skipif mysql # not compatible
query II rowsort label-3313
SELECT + + 64 AS col0, - 31 + - + COUNT ( * ) * 23 - - 2 AS col0
----
64
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT DISTINCT 37 * + - CASE + CASE - 78 WHEN 57 / + - 47 + ( + 16 ) + 74 THEN + ( - COUNT( * ) ) END WHEN COUNT( * ) THEN - 3 * COUNT( * ) + - ( - 34 ) * - 45 WHEN CAST( NULL AS SIGNED ) - 64 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT 37 * + - CASE + CASE - 78 WHEN 57 / + - 47 + ( + 16 ) + 74 THEN + ( - COUNT ( * ) ) END WHEN COUNT ( * ) THEN - 3 * COUNT ( * ) + - ( - 34 ) * - 45 WHEN CAST ( NULL AS INTEGER ) - 64 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT + + 32 * - ( + CASE 32 WHEN - 37 THEN + 26 ELSE NULL END ) * - COUNT( * ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT + + 32 * - ( + CASE 32 WHEN - 37 THEN + 26 ELSE NULL END ) * - COUNT ( * ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3316
SELECT - 51 * - + 14 + ( CAST( - CAST( - 49 AS SIGNED ) AS SIGNED ) ) * + - 19
----
-217

skipif mysql # not compatible
query I rowsort label-3316
SELECT - 51 * - + 14 + ( CAST ( - CAST ( - 49 AS INTEGER ) AS INTEGER ) ) * + - 19
----
-217

onlyif mysql # DIV for integer division: 
query I rowsort label-3317
SELECT - 34 DIV 28 * + 84 DIV - 59 + 60
----
61

skipif mysql # not compatible
query I rowsort label-3317
SELECT - 34 / 28 * + 84 / - 59 + 60
----
61

query I rowsort
SELECT ( - 59 ) AS col1
----
-59

query I rowsort
SELECT + 38 + 46
----
84

query I rowsort
SELECT - + 77 * - 27 + - 4
----
2075

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL + + ( - - CASE - 73 WHEN + + ( - + COUNT( * ) ) THEN NULL ELSE 21 * + MAX( ALL 21 ) END ) / - CASE - 66 WHEN + 71 THEN 32 / + COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE NULL END * 27 + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL + + ( - - CASE - 73 WHEN + + ( - + COUNT ( * ) ) THEN NULL ELSE 21 * + MAX ( ALL 21 ) END ) / - CASE - 66 WHEN + 71 THEN 32 / + COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE NULL END * 27 + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ALL + - ( + + ( + - COALESCE ( - + 51, + MIN( ALL + 60 ) ) ) ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL + - ( + + ( + - COALESCE ( - + 51, + MIN ( ALL + 60 ) ) ) ) AS col0
----
-51

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

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

query II rowsort
SELECT DISTINCT + 30 * + 82 col0, 33 AS col0
----
2460
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3325
SELECT - COUNT( * ) * - - 12 AS col1, - CASE + + 75 WHEN + 83 * + 89 / - COUNT( - ( 56 ) ) - - ( 19 ) + COALESCE ( - ( - 3 ), 30 + - 73, 30 + + 58 * AVG ( ALL ( + NULLIF ( + 46, 2 ) ) * 81 ) ) * 7 THEN NULL WHEN - 47 THEN NULL ELSE CAST( + 87 AS SIGNED ) END
----
-12
-87

skipif mysql # not compatible
query II rowsort label-3325
SELECT - COUNT ( * ) * - - 12 AS col1, - CASE + + 75 WHEN + 83 * + 89 / - COUNT ( - ( 56 ) ) - - ( 19 ) + COALESCE ( - ( - 3 ), 30 + - 73, 30 + + 58 * AVG ( ALL ( + NULLIF ( + 46, 2 ) ) * 81 ) ) * 7 THEN NULL WHEN - 47 THEN NULL ELSE CAST ( + 87 AS INTEGER ) END
----
-12
-87

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3327
SELECT - COALESCE ( - CASE + CASE - 87 WHEN - + 8 THEN NULL WHEN + + 38 * - 98 + - 81 - + COUNT( * ) THEN - 8 * - ( COUNT( ALL - 72 ) ) WHEN 76 THEN - 28 ELSE NULL END WHEN + 16 THEN - 78 * - 17 END, + 5 - NULLIF ( + ( 93 ), 37 * 88 - + 11 ), + 46 * + 9 ) + - 21 DIV + 68
----
88

skipif mysql # not compatible
query I rowsort label-3327
SELECT - COALESCE ( - CASE + CASE - 87 WHEN - + 8 THEN NULL WHEN + + 38 * - 98 + - 81 - + COUNT ( * ) THEN - 8 * - ( COUNT ( ALL - 72 ) ) WHEN 76 THEN - 28 ELSE NULL END WHEN + 16 THEN - 78 * - 17 END, + 5 - NULLIF ( + ( 93 ), 37 * 88 - + 11 ), + 46 * + 9 ) + - 21 / + 68
----
88

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

query II rowsort
SELECT ALL + 85 * + + 36 AS col2, + 51
----
3060
51

query I rowsort
SELECT DISTINCT - ( - + 77 ) * + 20
----
1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3331
SELECT - 72 / + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT - 72 / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 12 + 90
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT ALL + 58 + + + 1 + + 83 - 64 DIV - 16 - + + 87 + + 62 * - 1 * - 43 AS col1
----
2725

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL + 58 + + + 1 + + 83 - 64 / - 16 - + + 87 + + 62 * - 1 * - 43 AS col1
----
2725

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

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

query I rowsort
SELECT ALL - 94 + - ( 61 ) AS col2
----
-155

query I rowsort
SELECT DISTINCT + 67 * + + 46
----
3082

onlyif mysql # aggregate syntax: 
query II rowsort label-3337
SELECT ALL 30 + - 48, 10 * 99 * + COUNT( ALL + 76 ) AS col0
----
-18
990

skipif mysql # not compatible
query II rowsort label-3337
SELECT ALL 30 + - 48, 10 * 99 * + COUNT ( ALL + 76 ) AS col0
----
-18
990

onlyif mysql # aggregate syntax: 
query II rowsort label-3338
SELECT - SUM( + 92 ), ( 63 ) + 52 AS col0
----
-92
115

skipif mysql # not compatible
query II rowsort label-3338
SELECT - SUM ( + 92 ), ( 63 ) + 52 AS col0
----
-92
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3339
SELECT DISTINCT + 40 + - + 69 - - MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) / 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT + 40 + - + 69 - - MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) / 16
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3340
SELECT - CASE - - 97 WHEN + + ( + 89 ) THEN - - 65 END + + 38 + COUNT( * ) * + 26, 39 * + - 50 * - ( - 98 ) AS col0
----
NULL
-191100

skipif mysql # not compatible
query II rowsort label-3340
SELECT - CASE - - 97 WHEN + + ( + 89 ) THEN - - 65 END + + 38 + COUNT ( * ) * + 26, 39 * + - 50 * - ( - 98 ) AS col0
----
NULL
-191100

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

skipif mysql # not compatible
query I rowsort label-3341
SELECT + CAST ( NULL AS REAL ) + 41 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3342
SELECT - + NULLIF ( - CASE - 26 WHEN SUM( DISTINCT - CASE - 64 WHEN - 28 * 20 THEN CAST( + - 1 AS SIGNED ) WHEN + - 68 THEN NULL END ) THEN NULL ELSE + 12 - + COALESCE ( - CASE 78 WHEN - COUNT( * ) * - CASE - 49 / CASE 31 * + 11 WHEN 57 THEN + 0 WHEN + 81 + NULLIF ( - 28, 57 + 19 ) THEN - 39 / - ( 92 ) WHEN 43 + 86 THEN NULL ELSE NULL END WHEN + 43 * - 49 THEN + 70 - 41 / + 98 WHEN 88 THEN NULL WHEN + ( + 87 ) - 92 THEN NULL END THEN NULL WHEN 37 / + 11 THEN - COUNT( * ) * + 53 + + 3 END, + NULLIF ( 64, + 81 - 70 ), COUNT( * ) ) END, + 14 + - 6 * ( - 32 * - 11 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-3342
SELECT - + NULLIF ( - CASE - 26 WHEN SUM ( DISTINCT - CASE - 64 WHEN - 28 * 20 THEN CAST ( + - 1 AS INTEGER ) WHEN + - 68 THEN NULL END ) THEN NULL ELSE + 12 - + COALESCE ( - CASE 78 WHEN - COUNT ( * ) * - CASE - 49 / CASE 31 * + 11 WHEN 57 THEN + 0 WHEN + 81 + NULLIF ( - 28, 57 + 19 ) THEN - 39 / - ( 92 ) WHEN 43 + 86 THEN NULL ELSE NULL END WHEN + 43 * - 49 THEN + 70 - 41 / + 98 WHEN 88 THEN NULL WHEN + ( + 87 ) - 92 THEN NULL END THEN NULL WHEN 37 / + 11 THEN - COUNT ( * ) * + 53 + + 3 END, + NULLIF ( 64, + 81 - 70 ), COUNT ( * ) ) END, + 14 + - 6 * ( - 32 * - 11 ) )
----
-52

query I rowsort
SELECT ALL - 94 - + 11 + - - 51 AS col0
----
-54

query I rowsort
SELECT + 67 * - + ( 97 )
----
-6499

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT + 11 - - COUNT( * ) col2
----
12

skipif mysql # not compatible
query I rowsort label-3345
SELECT + 11 - - COUNT ( * ) col2
----
12

query I rowsort
SELECT ALL + NULLIF ( + + 64, - 13 ) - + + 51 AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3347
SELECT DISTINCT - ( + + 5 ) * COUNT( * ) AS col2, 79
----
-5
79

skipif mysql # not compatible
query II rowsort label-3347
SELECT DISTINCT - ( + + 5 ) * COUNT ( * ) AS col2, 79
----
-5
79

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3350
SELECT - + COUNT( * ) DIV + 42 + + + 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3350
SELECT - + COUNT ( * ) / + 42 + + + 89 AS col1
----
89

query II rowsort
SELECT + + 87 * 62 AS col2, - 42
----
5394
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3352
SELECT - + ( + 74 ) * - MIN( + - 62 ) + - CAST( NULL AS SIGNED ) + + + NULLIF ( + - 5, + 58 * + + COUNT( * ) + 70 * + 76 + COUNT( * ) ) + ( - 68 ) + - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT - + ( + 74 ) * - MIN ( + - 62 ) + - CAST ( NULL AS INTEGER ) + + + NULLIF ( + - 5, + 58 * + + COUNT ( * ) + 70 * + 76 + COUNT ( * ) ) + ( - 68 ) + - 27 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT NULLIF ( 42, - + COUNT( * ) * + 48 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3353
SELECT NULLIF ( 42, - + COUNT ( * ) * + 48 ) AS col2
----
42

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

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

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

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

query I rowsort
SELECT ( - - 34 )
----
34

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

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

query I rowsort
SELECT + 96 + 48
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT ( CASE + COUNT( * ) WHEN + - ( + SUM( - 44 ) ) THEN + 38 WHEN + COUNT( DISTINCT - - 32 ) * + 81 THEN - + 62 + CAST( - + 37 AS SIGNED ) * + 56 WHEN + 98 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT ( CASE + COUNT ( * ) WHEN + - ( + SUM ( - 44 ) ) THEN + 38 WHEN + COUNT ( DISTINCT - - 32 ) * + 81 THEN - + 62 + CAST ( - + 37 AS INTEGER ) * + 56 WHEN + 98 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT DISTINCT - 73 * - 75 * + + 42 + - + SUM( DISTINCT 78 )
----
229872

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT - 73 * - 75 * + + 42 + - + SUM ( DISTINCT 78 )
----
229872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3361
SELECT COALESCE ( - NULLIF ( - 68, + 55 + + - COUNT( DISTINCT 28 ) + - + 68 ), - CAST( + + 80 AS SIGNED ), COUNT( * ) * NULLIF ( + - 6, - + MAX( ALL 91 ) / 99 ) + 67 )
----
68

skipif mysql # not compatible
query I rowsort label-3361
SELECT COALESCE ( - NULLIF ( - 68, + 55 + + - COUNT ( DISTINCT 28 ) + - + 68 ), - CAST ( + + 80 AS INTEGER ), COUNT ( * ) * NULLIF ( + - 6, - + MAX ( ALL 91 ) / 99 ) + 67 )
----
68

query I rowsort
SELECT DISTINCT 46 * ( + ( - 73 ) ) + 71 + + 67
----
-3220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3363
SELECT ALL 15 * + COUNT( * ) * - + 43 + - - 45 + - 66 DIV COUNT( * ) * + 55 AS col0
----
-4230

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL 15 * + COUNT ( * ) * - + 43 + - - 45 + - 66 / COUNT ( * ) * + 55 AS col0
----
-4230

query II rowsort
SELECT NULLIF ( - 2, + 26 ) AS col0, + 44 AS col2
----
-2
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT 71 * SUM( DISTINCT - - 51 ) * + 35 * + 9 AS col2
----
1140615

skipif mysql # not compatible
query I rowsort label-3366
SELECT 71 * SUM ( DISTINCT - - 51 ) * + 35 * + 9 AS col2
----
1140615

query I rowsort
SELECT DISTINCT - 81 * 9
----
-729

query II rowsort
SELECT - 75 AS col0, 44
----
-75
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT 55 + COUNT( * ) + - 32 * + + 98 col1
----
-3080

skipif mysql # not compatible
query I rowsort label-3369
SELECT 55 + COUNT ( * ) + - 32 * + + 98 col1
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT 90 - + COALESCE ( - - COUNT( * ), - + 95 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3370
SELECT 90 - + COALESCE ( - - COUNT ( * ), - + 95 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT ALL - 91 * - COUNT( + 17 ) * - 89
----
-8099

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL - 91 * - COUNT ( + 17 ) * - 89
----
-8099

query II rowsort
SELECT ALL 98 AS col2, - 47 AS col0
----
98
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3373
SELECT 32 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT 32 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT ALL CASE 23 WHEN 56 THEN + NULLIF ( 28, + + SUM( DISTINCT + 25 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL CASE 23 WHEN 56 THEN + NULLIF ( 28, + + SUM ( DISTINCT + 25 ) ) END
----
NULL

query II rowsort
SELECT DISTINCT + 27 AS col1, + 13 * - + 4 + - 38 AS col1
----
27
-90

query I rowsort
SELECT + 45 + - 86
----
-41

query II rowsort
SELECT - + 78 col1, 45
----
-78
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3378
SELECT 80 DIV - - COUNT( * ) - 70
----
10

skipif mysql # not compatible
query I rowsort label-3378
SELECT 80 / - - COUNT ( * ) - 70
----
10

query I rowsort
SELECT - 68 * 70 * 32
----
-152320

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL - 5 * + + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL - 5 * + + COUNT ( * )
----
-5

query I rowsort
SELECT DISTINCT - + ( 60 ) * 19 AS col1
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ALL - - 84 + - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - - 84 + - COUNT ( * )
----
83

query I rowsort
SELECT DISTINCT - - 26 col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3384
SELECT 20 DIV + - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-3384
SELECT 20 / + - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3385
SELECT 57 * 41 * 49 + - 1, 18 * 9 + + MIN( + ( - 23 ) ) + + - 60 AS col1
----
114512
79

skipif mysql # not compatible
query II rowsort label-3385
SELECT 57 * 41 * 49 + - 1, 18 * 9 + + MIN ( + ( - 23 ) ) + + - 60 AS col1
----
114512
79

query I rowsort
SELECT ALL 84 + - ( - 63 ) AS col0
----
147

query I rowsort
SELECT COALESCE ( + - 76, + - 15 * + 20 ) + 49 * + 77 col1
----
3697

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3388
SELECT COUNT( * ) + COUNT( * ) * MIN( ALL - + 25 ), + COALESCE ( - 84, + + 30 DIV - 61 ) * - - 56 col0
----
-24
-4704

skipif mysql # not compatible
query II rowsort label-3388
SELECT COUNT ( * ) + COUNT ( * ) * MIN ( ALL - + 25 ), + COALESCE ( - 84, + + 30 / - 61 ) * - - 56 col0
----
-24
-4704

onlyif mysql # aggregate syntax: 
query II rowsort label-3389
SELECT + 67 * 29 - 76 + - + MAX( DISTINCT - 25 ) + + COUNT( * ) * + 50 * - - ( - 88 ) AS col1, 45
----
-2508
45

skipif mysql # not compatible
query II rowsort label-3389
SELECT + 67 * 29 - 76 + - + MAX ( DISTINCT - 25 ) + + COUNT ( * ) * + 50 * - - ( - 88 ) AS col1, 45
----
-2508
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3390
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 72 + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 72 + 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3391
SELECT ALL 54 * + COUNT( * ) * + CAST( + ( + 40 ) AS SIGNED ) * - COUNT( * ) + COUNT( DISTINCT - ( - 44 ) ) AS col2, - 68 * 86 AS col0
----
-2159
-5848

skipif mysql # not compatible
query II rowsort label-3391
SELECT ALL 54 * + COUNT ( * ) * + CAST ( + ( + 40 ) AS INTEGER ) * - COUNT ( * ) + COUNT ( DISTINCT - ( - 44 ) ) AS col2, - 68 * 86 AS col0
----
-2159
-5848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3392
SELECT ALL 25 + NULLIF ( - + CAST( NULL AS SIGNED ), - + 9 ) / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL 25 + NULLIF ( - + CAST ( NULL AS INTEGER ), - + 9 ) / + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 83 + - 4
----
79

query I rowsort
SELECT 81 + + 11 - - 76
----
168

query II rowsort
SELECT ( + 85 ) + - ( - ( 49 ) ) AS col2, - 13 + - 84
----
134
-97

query I rowsort
SELECT DISTINCT 53 * - 11 * 82
----
-47806

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT 32 * ( 11 ) + + + COUNT( * ) + - + COUNT( * )
----
352

skipif mysql # not compatible
query I rowsort label-3397
SELECT 32 * ( 11 ) + + + COUNT ( * ) + - + COUNT ( * )
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT ALL 71 - - 98 * - 71 + + 21 * - 14 + + - COUNT( * ) AS col1
----
-7182

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL 71 - - 98 * - 71 + + 21 * - 14 + + - COUNT ( * ) AS col1
----
-7182

query I rowsort
SELECT 71 * + 63 AS col2
----
4473

query I rowsort
SELECT DISTINCT 6 - + 16 AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3401
SELECT ALL - 61 DIV NULLIF ( + + 48, 37 + + MAX( 19 ) * + 64 - - + 32 )
----
-1

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL - 61 / NULLIF ( + + 48, 37 + + MAX ( 19 ) * + 64 - - + 32 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3402
SELECT CASE - 83 WHEN - MIN( 45 ) THEN NULL WHEN 57 THEN + 64 - 95 ELSE 76 END * + 59 + + - 6 AS col0, + 9 + + + 64 AS col2
----
4478
73

skipif mysql # not compatible
query II rowsort label-3402
SELECT CASE - 83 WHEN - MIN ( 45 ) THEN NULL WHEN 57 THEN + 64 - 95 ELSE 76 END * + 59 + + - 6 AS col0, + 9 + + + 64 AS col2
----
4478
73

query I rowsort
SELECT ALL - 11 * - 84 AS col1
----
924

onlyif mysql # DIV for integer division: 
query I rowsort label-3404
SELECT ALL 85 DIV 59
----
1

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL 85 / 59
----
1

query I rowsort
SELECT - 25 + - 94
----
-119

onlyif mysql # aggregate syntax: 
query II rowsort label-3406
SELECT - 69 * + 41 col1, COUNT( * ) + - 62 AS col0
----
-2829
-61

skipif mysql # not compatible
query II rowsort label-3406
SELECT - 69 * + 41 col1, COUNT ( * ) + - 62 AS col0
----
-2829
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT 46 + - SUM( - 55 ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-3407
SELECT 46 + - SUM ( - 55 ) AS col1
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3408
SELECT ALL - 9 * + CAST( NULL AS SIGNED ) AS col0, + 58 + 21
----
NULL
79

skipif mysql # not compatible
query II rowsort label-3408
SELECT ALL - 9 * + CAST ( NULL AS INTEGER ) AS col0, + 58 + 21
----
NULL
79

query I rowsort
SELECT ALL + - 61 * - - 10
----
-610

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3410
SELECT + CAST( - - 46 AS SIGNED ) DIV + - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3410
SELECT + CAST ( - - 46 AS INTEGER ) / + - 79 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3411
SELECT 95 - - 73 / CAST( NULL AS SIGNED ) / + 28 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT 95 - - 73 / CAST ( NULL AS INTEGER ) / + 28 * - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 65 * + 30 * 7 AS col0
----
-13650

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL + MAX( ALL - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL + MAX ( ALL - 65 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3414
SELECT ALL CAST( - 93 AS SIGNED ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL CAST ( - 93 AS INTEGER ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL - COUNT( * ) + 91 * + SUM( - 98 ) * 35 - + - 43 - + 94 + + 75 AS col2
----
-312107

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL - COUNT ( * ) + 91 * + SUM ( - 98 ) * 35 - + - 43 - + 94 + + 75 AS col2
----
-312107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT ALL ( + - 67 ) * - 90 + + - 36 + + CAST( + - 53 AS SIGNED ) AS col0
----
5941

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL ( + - 67 ) * - 90 + + - 36 + + CAST ( + - 53 AS INTEGER ) AS col0
----
5941

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT DISTINCT + 44 * + MAX( ALL - + ( + COALESCE ( + - 97, - 79 ) ) ) + 72 + - + 96 * + + 11 * ( + - 81 ) + - 21 + - 16 * 41 + + 22
----
89221

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT + 44 * + MAX ( ALL - + ( + COALESCE ( + - 97, - 79 ) ) ) + 72 + - + 96 * + + 11 * ( + - 81 ) + - 21 + - 16 * 41 + + 22
----
89221

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT 65 * + COUNT( - + 42 )
----
65

skipif mysql # not compatible
query I rowsort label-3418
SELECT 65 * + COUNT ( - + 42 )
----
65

query I rowsort
SELECT ALL 63 * 74 + + 86
----
4748

query I rowsort
SELECT 36 * + 33
----
1188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3421
SELECT DISTINCT 38 * - + 99 + + MIN( ALL 93 ) + + CASE - - CAST( NULL AS SIGNED ) WHEN + - 71 + - 10 THEN + 45 * - CASE + 38 WHEN + + 93 THEN NULL ELSE CAST( NULL AS SIGNED ) END + - 8 + 75 WHEN 36 THEN NULL END * 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT 38 * - + 99 + + MIN ( ALL 93 ) + + CASE - - CAST ( NULL AS INTEGER ) WHEN + - 71 + - 10 THEN + 45 * - CASE + 38 WHEN + + 93 THEN NULL ELSE CAST ( NULL AS INTEGER ) END + - 8 + 75 WHEN 36 THEN NULL END * 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL - 35 / + - 69 / - CASE AVG ( DISTINCT + - 44 ) WHEN - 59 * 51 THEN NULL WHEN - 64 / + 38 + + 59 - - 90 + - + 39 * + - ( ( 45 ) ) + + 29 THEN - COUNT( * ) END * NULLIF ( + 23, COUNT( * ) + - 0 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL - 35 / + - 69 / - CASE AVG ( DISTINCT + - 44 ) WHEN - 59 * 51 THEN NULL WHEN - 64 / + 38 + + 59 - - 90 + - + 39 * + - ( ( 45 ) ) + + 29 THEN - COUNT ( * ) END * NULLIF ( + 23, COUNT ( * ) + - 0 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3423
SELECT DISTINCT 75 * - + 70 + + - CAST( - 87 AS SIGNED ) DIV 83
----
-5249

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT 75 * - + 70 + + - CAST ( - 87 AS INTEGER ) / 83
----
-5249

query I rowsort
SELECT ALL + NULLIF ( - 85, - - 50 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-3425
SELECT + COUNT( * ) col1, MIN( ALL 13 ) AS col0
----
1
13

skipif mysql # not compatible
query II rowsort label-3425
SELECT + COUNT ( * ) col1, MIN ( ALL 13 ) AS col0
----
1
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT SUM( + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-3426
SELECT SUM ( + 31 )
----
31

query I rowsort
SELECT ALL 71 / + - 85 * + - CASE + 57 WHEN + 70 THEN NULL WHEN + 79 THEN + + 31 + + ( - 29 ) + + ( + NULLIF ( 38, - 32 ) ) * + 88 * - 94 * 62 WHEN 31 * + 35 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT + NULLIF ( ( + - MIN( DISTINCT - 79 ) ), 40 * - COUNT( * ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3428
SELECT + NULLIF ( ( + - MIN ( DISTINCT - 79 ) ), 40 * - COUNT ( * ) ) AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3429
SELECT + CAST( NULL AS SIGNED ) + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3429
SELECT + CAST ( NULL AS INTEGER ) + - 0
----
NULL

query I rowsort
SELECT DISTINCT 0 * + 21 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT + CASE - - 69 WHEN - COUNT( * ) + + + CAST( NULL AS SIGNED ) / - + 31 * - COUNT( * ) + + COUNT( * ) THEN - 38 END * + 21 - - AVG ( DISTINCT 72 ) * + COUNT( * ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT + CASE - - 69 WHEN - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) / - + 31 * - COUNT ( * ) + + COUNT ( * ) THEN - 38 END * + 21 - - AVG ( DISTINCT 72 ) * + COUNT ( * ) * - 5
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3432
SELECT - NULLIF ( + SUM( 38 ), + + 93 * - - 15 ) AS col1, SUM( ALL - - ( ( + 34 ) ) ) DIV + 1 AS col1
----
-38
34

skipif mysql # not compatible
query II rowsort label-3432
SELECT - NULLIF ( + SUM ( 38 ), + + 93 * - - 15 ) AS col1, SUM ( ALL - - ( ( + 34 ) ) ) / + 1 AS col1
----
-38
34

query I rowsort
SELECT + 44 + + 72
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT + + COUNT( * ) * COUNT( * ) + 95 + + 85 + + - COUNT( * ) * + 35
----
146

skipif mysql # not compatible
query I rowsort label-3434
SELECT + + COUNT ( * ) * COUNT ( * ) + 95 + + 85 + + - COUNT ( * ) * + 35
----
146

query I rowsort
SELECT + + 43 * - + 70 * + 50
----
-150500

query I rowsort
SELECT + 27 + + 39 AS col2
----
66

onlyif mysql # DIV for integer division: 
query II rowsort label-3437
SELECT ALL 59 + 35 DIV - 74, 44 col1
----
59
44

skipif mysql # not compatible
query II rowsort label-3437
SELECT ALL 59 + 35 / - 74, 44 col1
----
59
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ALL - COUNT( * ) + 60 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL - COUNT ( * ) + 60 AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3439
SELECT ALL - - COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) + + - 56 + - ( - - 53 ) * + 23 AS col0, 62
----
-1275
62

skipif mysql # not compatible
query II rowsort label-3439
SELECT ALL - - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) + + - 56 + - ( - - 53 ) * + 23 AS col0, 62
----
-1275
62

onlyif mysql # DIV for integer division: 
query II rowsort label-3440
SELECT ALL + 39 + 26 + - 78, + 90 DIV 97 AS col2
----
-13
0

skipif mysql # not compatible
query II rowsort label-3440
SELECT ALL + 39 + 26 + - 78, + 90 / 97 AS col2
----
-13
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT ALL 86 DIV ( + 58 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL 86 / ( + 58 ) AS col1
----
1

query I rowsort
SELECT - - 17 * - 62 * - - 50 * + 2 AS col2
----
-105400

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL + COUNT( ALL - 50 )
----
1

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL + COUNT ( ALL - 50 )
----
1

query I rowsort
SELECT + + 47 + + + 37
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT - + 42 * MAX( DISTINCT 24 ) AS col1
----
-1008

skipif mysql # not compatible
query I rowsort label-3445
SELECT - + 42 * MAX ( DISTINCT 24 ) AS col1
----
-1008

onlyif mysql # aggregate syntax: 
query II rowsort label-3446
SELECT ALL - 36 + - 87 + - ( COUNT( * ) ) + + 74, + COUNT( * ) AS col0
----
-50
1

skipif mysql # not compatible
query II rowsort label-3446
SELECT ALL - 36 + - 87 + - ( COUNT ( * ) ) + + 74, + COUNT ( * ) AS col0
----
-50
1

query I rowsort
SELECT ALL + + 16 + - 41 col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3448
SELECT CAST( NULL AS SIGNED ) col2, + 81 - - 2 AS col0
----
NULL
83

skipif mysql # not compatible
query II rowsort label-3448
SELECT CAST ( NULL AS INTEGER ) col2, + 81 - - 2 AS col0
----
NULL
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3449
SELECT AVG ( + - CAST( NULL AS SIGNED ) ) * + 27 + + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3449
SELECT AVG ( + - CAST ( NULL AS INTEGER ) ) * + 27 + + 52 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3450
SELECT + NULLIF ( - 33, + 27 / - 58 * CAST( + AVG ( ALL - + 77 ) AS SIGNED ) ) * CAST( + 0 AS SIGNED ) * + COUNT( * ) + - + 13 AS col1, + 0 + - 95 col0
----
-13
-95

skipif mysql # not compatible
query II rowsort label-3450
SELECT + NULLIF ( - 33, + 27 / - 58 * CAST ( + AVG ( ALL - + 77 ) AS INTEGER ) ) * CAST ( + 0 AS INTEGER ) * + COUNT ( * ) + - + 13 AS col1, + 0 + - 95 col0
----
-13
-95

query I rowsort
SELECT ALL + ( - 46 ) col2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3452
SELECT ALL - 80 DIV ( + COUNT( * ) ) + SUM( 22 )
----
-58

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL - 80 / ( + COUNT ( * ) ) + SUM ( 22 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL COUNT( * ) * + ( + - ( - ( 16 ) ) ) * - + 96 AS col2
----
-1536

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL COUNT ( * ) * + ( + - ( - ( 16 ) ) ) * - + 96 AS col2
----
-1536

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT - COUNT( * ) + + 58 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3454
SELECT - COUNT ( * ) + + 58 AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3455
SELECT ALL COUNT( * ) DIV - 60 - + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL COUNT ( * ) / - 60 - + + COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3456
SELECT + 59 DIV + 60 + 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3456
SELECT + 59 / + 60 + 16 AS col2
----
16

onlyif mysql # DIV for integer division: 
query II rowsort label-3457
SELECT ( + 35 ), + 9 DIV 92 AS col0
----
35
0

skipif mysql # not compatible
query II rowsort label-3457
SELECT ( + 35 ), + 9 / 92 AS col0
----
35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT + MIN( DISTINCT ( + - CASE 91 WHEN + - 26 THEN + + 70 ELSE NULL END ) ) * - COUNT( * ) + - 54 * COUNT( * ) + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT + MIN ( DISTINCT ( + - CASE 91 WHEN + - 26 THEN + + 70 ELSE NULL END ) ) * - COUNT ( * ) + - 54 * COUNT ( * ) + - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT - COUNT( * ) * + 52 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-3459
SELECT - COUNT ( * ) * + 52 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query III rowsort label-3460
SELECT ALL + 35 AS col0, 81 AS col0, COUNT( * ) + - - 86 AS col1
----
35
81
87

skipif mysql # not compatible
query III rowsort label-3460
SELECT ALL + 35 AS col0, 81 AS col0, COUNT ( * ) + - - 86 AS col1
----
35
81
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3461
SELECT ( 56 ) AS col1, COUNT( * ) AS col1
----
56
1

skipif mysql # not compatible
query II rowsort label-3461
SELECT ( 56 ) AS col1, COUNT ( * ) AS col1
----
56
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3462
SELECT DISTINCT + 42 AS col1, - COUNT( * ) + 71
----
42
70

skipif mysql # not compatible
query II rowsort label-3462
SELECT DISTINCT + 42 AS col1, - COUNT ( * ) + 71
----
42
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL + MAX( ALL - 15 ) * + 35 + + - 50
----
-575

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL + MAX ( ALL - 15 ) * + 35 + + - 50
----
-575

onlyif mysql # DIV for integer division: 
query I rowsort label-3464
SELECT DISTINCT + 87 DIV - 62 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT + 87 / - 62 AS col1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3465
SELECT DISTINCT + CASE + - 40 WHEN + CAST( NULL AS DECIMAL ) THEN + 49 + + ( 78 ) + - - 90 - - ( ( NULLIF ( 60, - 69 ) ) ) * + + 68 / 7 ELSE - AVG ( - CAST( NULL AS DECIMAL ) ) END * - 86 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT + CASE + - 40 WHEN + CAST ( NULL AS REAL ) THEN + 49 + + ( 78 ) + - - 90 - - ( ( NULLIF ( 60, - 69 ) ) ) * + + 68 / 7 ELSE - AVG ( - CAST ( NULL AS REAL ) ) END * - 86 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT DISTINCT + 78 * + COUNT( * ) * - - ( - 5 )
----
-390

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT + 78 * + COUNT ( * ) * - - ( - 5 )
----
-390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT - CAST( NULL AS SIGNED ) * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT - CAST ( NULL AS INTEGER ) * - 76
----
NULL

query II rowsort
SELECT DISTINCT + 38 AS col0, 92 AS col1
----
38
92

query I rowsort
SELECT ALL + 60 * - 32 AS col0
----
-1920

onlyif mysql # DIV for integer division: 
query I rowsort label-3470
SELECT + + 64 + - - ( + + 21 ) + 32 DIV - 89 + + 59 * - 24
----
-1331

skipif mysql # not compatible
query I rowsort label-3470
SELECT + + 64 + - - ( + + 21 ) + 32 / - 89 + + 59 * - 24
----
-1331

query I rowsort
SELECT - CASE + 98 WHEN 94 THEN - 52 + - ( + - 84 ) WHEN - + 17 * + 64 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - - 95 * - 58 * + 55 * - - 16
----
-4848800

onlyif mysql # aggregate syntax: 
query II rowsort label-3473
SELECT + - CASE + 62 WHEN + 30 * - 37 THEN - 33 WHEN 47 THEN - 84 + - ( - 36 ) ELSE - ( + 40 ) END + + 76 AS col2, COALESCE ( + + 91, - - 60 + - 80 + 90 * COUNT( * ), 60 * 45 - CASE 84 WHEN + 97 THEN COUNT( * ) ELSE NULL END * COUNT( * ) ) - 51 * + 80 AS col0
----
116
-3989

skipif mysql # not compatible
query II rowsort label-3473
SELECT + - CASE + 62 WHEN + 30 * - 37 THEN - 33 WHEN 47 THEN - 84 + - ( - 36 ) ELSE - ( + 40 ) END + + 76 AS col2, COALESCE ( + + 91, - - 60 + - 80 + 90 * COUNT ( * ), 60 * 45 - CASE 84 WHEN + 97 THEN COUNT ( * ) ELSE NULL END * COUNT ( * ) ) - 51 * + 80 AS col0
----
116
-3989

onlyif mysql # aggregate syntax: 
query II rowsort label-3474
SELECT ALL - 96 col2, + NULLIF ( + SUM( - 7 ), 72 + - - 96 ) AS col2
----
-96
-7

skipif mysql # not compatible
query II rowsort label-3474
SELECT ALL - 96 col2, + NULLIF ( + SUM ( - 7 ), 72 + - - 96 ) AS col2
----
-96
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3475
SELECT - + COUNT( * ), 88 DIV - ( + COUNT( * ) ) AS col1
----
-1
-88

skipif mysql # not compatible
query II rowsort label-3475
SELECT - + COUNT ( * ), 88 / - ( + COUNT ( * ) ) AS col1
----
-1
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3476
SELECT + COUNT( * ) / + - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * - 91 + + ( AVG ( - 19 ) ) + 41 + - + 62 * + 0 / 5, ( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) + + 53 + - 84 + COUNT( * ) * COUNT( * ) * 13 * 29
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3476
SELECT + COUNT ( * ) / + - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 91 + + ( AVG ( - 19 ) ) + 41 + - + 62 * + 0 / 5, ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + + 53 + - 84 + COUNT ( * ) * COUNT ( * ) * 13 * 29
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT + 90 * COALESCE ( 94, - + 92 ) - 15 * - - 34 + 6 * - + COUNT( ALL 19 ) + + COUNT( * ) + 38
----
7983

skipif mysql # not compatible
query I rowsort label-3477
SELECT + 90 * COALESCE ( 94, - + 92 ) - 15 * - - 34 + 6 * - + COUNT ( ALL 19 ) + + COUNT ( * ) + 38
----
7983

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT ALL + - CAST( + - 7 AS SIGNED ) * 96 / - 81 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL + - CAST ( + - 7 AS INTEGER ) * 96 / - 81 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL 4 * + 4 col2, - 73 + + 37
----
16
-36

query I rowsort
SELECT DISTINCT + 1 + 52
----
53

query I rowsort
SELECT DISTINCT - 26 + - 33 AS col2
----
-59

query I rowsort
SELECT DISTINCT 35 * - 90 * 71
----
-223650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3483
SELECT - - 93 + COALESCE ( SUM( - 69 ), - 59 - - + 74 * 86 * + - 9 + ( - + 1 ) + 4 - + - CAST( NULL AS SIGNED ) )
----
24

skipif mysql # not compatible
query I rowsort label-3483
SELECT - - 93 + COALESCE ( SUM ( - 69 ), - 59 - - + 74 * 86 * + - 9 + ( - + 1 ) + 4 - + - CAST ( NULL AS INTEGER ) )
----
24

query I rowsort
SELECT + + 71 + 72 * + 82 AS col2
----
5975

query I rowsort
SELECT ALL + ( 98 ) AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3486
SELECT + 36 + ( + 85 ) DIV - 78 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3486
SELECT + 36 + ( + 85 ) / - 78 AS col1
----
35

query II rowsort
SELECT ALL - 32 + + 1, + 28 AS col1
----
-31
28

query I rowsort
SELECT + - ( + + 7 ) * - 63 col1
----
441

onlyif mysql # aggregate syntax: 
query II rowsort label-3489
SELECT - + 12 AS col0, - 22 - COUNT( + 38 )
----
-12
-23

skipif mysql # not compatible
query II rowsort label-3489
SELECT - + 12 AS col0, - 22 - COUNT ( + 38 )
----
-12
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT DISTINCT CASE + - 50 WHEN 41 THEN NULL WHEN NULLIF ( 91, - 20 ) THEN - 39 * + + 53 * COUNT( + 53 ) ELSE + 73 * + COUNT( * ) + - 47 END - + + 12
----
14

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT CASE + - 50 WHEN 41 THEN NULL WHEN NULLIF ( 91, - 20 ) THEN - 39 * + + 53 * COUNT ( + 53 ) ELSE + 73 * + COUNT ( * ) + - 47 END - + + 12
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT DISTINCT MAX( DISTINCT - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT MAX ( DISTINCT - 75 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT ALL + 63 * + 67 * + COUNT( * )
----
4221

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL + 63 * + 67 * + COUNT ( * )
----
4221

query I rowsort
SELECT DISTINCT + 54 * - 91 AS col2
----
-4914

onlyif mysql # DIV for integer division: 
query I rowsort label-3494
SELECT DISTINCT 60 DIV - 58 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT 60 / - 58 AS col1
----
-1

query II rowsort
SELECT ALL 95 * - + 31 AS col0, - 38 AS col0
----
-2945
-38

query I rowsort
SELECT DISTINCT 30 * - 68
----
-2040

query II rowsort
SELECT 9 * - 54, 32 col0
----
-486
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT ALL - MAX( ALL + 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL - MAX ( ALL + 39 )
----
-39

query I rowsort
SELECT ALL 36 * - 9
----
-324

query I rowsort
SELECT 96 * 20
----
1920

query I rowsort
SELECT DISTINCT 53 * + + 37
----
1961

query I rowsort
SELECT 6 - + 93 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-3503
SELECT 9 * - COUNT( * ), 48 * - 67 AS col2
----
-9
-3216

skipif mysql # not compatible
query II rowsort label-3503
SELECT 9 * - COUNT ( * ), 48 * - 67 AS col2
----
-9
-3216

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3504
SELECT ( COUNT( * ) ) + + NULLIF ( - 24, - CAST( NULL AS DECIMAL ) + 27 ) DIV - 63 * + 50 * + 28 col0
----
1

skipif mysql # not compatible
query I rowsort label-3504
SELECT ( COUNT ( * ) ) + + NULLIF ( - 24, - CAST ( NULL AS REAL ) + 27 ) / - 63 * + 50 * + 28 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3505
SELECT CAST( - 57 AS SIGNED ) * 69 AS col1
----
-3933

skipif mysql # not compatible
query I rowsort label-3505
SELECT CAST ( - 57 AS INTEGER ) * 69 AS col1
----
-3933

query I rowsort
SELECT + 59 * 19 + + 59
----
1180

query I rowsort
SELECT - 96 * 48 + + 35 AS col1
----
-4573

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT - - 76 * + 69 + + + MIN( DISTINCT + + 8 ) AS col0
----
5252

skipif mysql # not compatible
query I rowsort label-3508
SELECT - - 76 * + 69 + + + MIN ( DISTINCT + + 8 ) AS col0
----
5252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3509
SELECT COALESCE ( + 26, + COUNT( * ), + 78 DIV + + MAX( + 57 ) + + MIN( DISTINCT + 58 ) * - 32, ( + + 35 ) * 42 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3509
SELECT COALESCE ( + 26, + COUNT ( * ), + 78 / + + MAX ( + 57 ) + + MIN ( DISTINCT + 58 ) * - 32, ( + + 35 ) * 42 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT ALL + - 17 * + COUNT( 23 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL + - 17 * + COUNT ( 23 ) AS col2
----
-17

query I rowsort
SELECT ALL 18 + 33 + + - 79 AS col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3512
SELECT ALL + 88 + - - 67 col0, CAST( - 68 AS SIGNED ) AS col0
----
155
-68

skipif mysql # not compatible
query II rowsort label-3512
SELECT ALL + 88 + - - 67 col0, CAST ( - 68 AS INTEGER ) AS col0
----
155
-68

query I rowsort
SELECT ALL - - 42 * - 15 col0
----
-630

query I rowsort
SELECT ALL - - 25 * + 8 * + 86 AS col0
----
17200

query I rowsort
SELECT ALL - 97 + - 3 AS col2
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3516
SELECT ALL - + 75 + + + 82 / CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) * + + SUM( DISTINCT 14 ) - + ( COUNT( DISTINCT + 30 ) ) * 91 + + + 69 / - MAX( - NULLIF ( + + 82, + CAST( NULL AS SIGNED ) ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3516
SELECT ALL - + 75 + + + 82 / CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * + + SUM ( DISTINCT 14 ) - + ( COUNT ( DISTINCT + 30 ) ) * 91 + + + 69 / - MAX ( - NULLIF ( + + 82, + CAST ( NULL AS INTEGER ) ) )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT + 28 + CASE - 95 WHEN 46 THEN + 91 + - + 60 ELSE + COUNT( DISTINCT - - 32 ) END AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3517
SELECT + 28 + CASE - 95 WHEN 46 THEN + 91 + - + 60 ELSE + COUNT ( DISTINCT - - 32 ) END AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3518
SELECT ( - 66 ) + + 59 DIV 67 - - SUM( DISTINCT 15 ) * + + 97 AS col2, 69 AS col0
----
1389
69

skipif mysql # not compatible
query II rowsort label-3518
SELECT ( - 66 ) + + 59 / 67 - - SUM ( DISTINCT 15 ) * + + 97 AS col2, 69 AS col0
----
1389
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT DISTINCT - MAX( + - ( - 55 ) ) + + 20
----
-35

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT - MAX ( + - ( - 55 ) ) + + 20
----
-35

query I rowsort
SELECT DISTINCT ( + - 65 )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-3521
SELECT 62 + + - COALESCE ( + 56, - ( - + 39 ) DIV + + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-3521
SELECT 62 + + - COALESCE ( + 56, - ( - + 39 ) / + + 6 )
----
6

query I rowsort
SELECT 49 * + + NULLIF ( + 53, 48 * + 45 * + 85 + - ( + 74 ) )
----
2597

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3523
SELECT 93 * 38 AS col2, + CAST( NULL AS SIGNED )
----
3534
NULL

skipif mysql # not compatible
query II rowsort label-3523
SELECT 93 * 38 AS col2, + CAST ( NULL AS INTEGER )
----
3534
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3524
SELECT ALL - 45 DIV + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL - 45 / + 93 AS col2
----
0

query I rowsort
SELECT DISTINCT - 34 - - 70 + - 17
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT - CASE 76 WHEN 54 - - - 40 THEN - + CASE WHEN 93 <= ( + + SUM( 27 ) ) THEN + 84 + - 10 END * + 21 * + - 7 + - + 7 + - 77 ELSE + + 0 * - 32 + + 42 END
----
-42

skipif mysql # not compatible
query I rowsort label-3526
SELECT - CASE 76 WHEN 54 - - - 40 THEN - + CASE WHEN 93 <= ( + + SUM ( 27 ) ) THEN + 84 + - 10 END * + 21 * + - 7 + - + 7 + - 77 ELSE + + 0 * - 32 + + 42 END
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-3527
SELECT ALL SUM( DISTINCT + 26 ) - + + 30 AS col2, + COALESCE ( - 54, - NULLIF ( - MAX( ALL + - 60 ), + 82 ) * + 6 + 96 * CASE COUNT( + + 64 ) WHEN + + COALESCE ( 51, + 55, + 62 ) THEN 27 ELSE + 96 + + 58 END ) col0
----
-4
-54

skipif mysql # not compatible
query II rowsort label-3527
SELECT ALL SUM ( DISTINCT + 26 ) - + + 30 AS col2, + COALESCE ( - 54, - NULLIF ( - MAX ( ALL + - 60 ), + 82 ) * + 6 + 96 * CASE COUNT ( + + 64 ) WHEN + + COALESCE ( 51, + 55, + 62 ) THEN 27 ELSE + 96 + + 58 END ) col0
----
-4
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3528
SELECT CASE + - 4 WHEN - + 0 / - 54 * + ( - + CAST( NULL AS DECIMAL ) ) + + + 83 THEN NULL WHEN 53 THEN NULL WHEN - 29 THEN NULL WHEN + COUNT( * ) - + + 66 + + + 97 THEN + 64 + - 47 ELSE - 47 * 57 END * - + ( + 46 ) AS col0
----
123234

skipif mysql # not compatible
query I rowsort label-3528
SELECT CASE + - 4 WHEN - + 0 / - 54 * + ( - + CAST ( NULL AS REAL ) ) + + + 83 THEN NULL WHEN 53 THEN NULL WHEN - 29 THEN NULL WHEN + COUNT ( * ) - + + 66 + + + 97 THEN + 64 + - 47 ELSE - 47 * 57 END * - + ( + 46 ) AS col0
----
123234

query II rowsort
SELECT - 46 col0, 60 * - 41 + + 72
----
-46
-2388

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3530
SELECT CAST( + 31 AS SIGNED ) + - 46 - + - CAST( NULL AS SIGNED ) - + AVG ( + 63 ) * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT CAST ( + 31 AS INTEGER ) + - 46 - + - CAST ( NULL AS INTEGER ) - + AVG ( + 63 ) * CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 71 + - + 25
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT ALL - COALESCE ( + + 79, - COUNT( * ) * + NULLIF ( - 47, - - 3 * - 79 + - + ( + 41 ) + COALESCE ( + 84, + - 2 ) * + 15 ) * - 93 )
----
-79

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL - COALESCE ( + + 79, - COUNT ( * ) * + NULLIF ( - 47, - - 3 * - 79 + - + ( + 41 ) + COALESCE ( + 84, + - 2 ) * + 15 ) * - 93 )
----
-79

query I rowsort
SELECT ALL 12 + - 83
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT MAX( 35 ) col0
----
35

skipif mysql # not compatible
query I rowsort label-3534
SELECT MAX ( 35 ) col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL 88 + - COUNT( * ) * 62
----
26

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL 88 + - COUNT ( * ) * 62
----
26

query I rowsort
SELECT 80 * - 36 AS col1
----
-2880

query I rowsort
SELECT 15 + + 68
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3538
SELECT ALL 6 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL 6 / CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 79 AS col1, 75 AS col2
----
79
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT MAX( ALL - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-3540
SELECT MAX ( ALL - 92 )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-3541
SELECT 42 DIV 41 * + - 55 * 38 + + 7 AS col1
----
-2083

skipif mysql # not compatible
query I rowsort label-3541
SELECT 42 / 41 * + - 55 * 38 + + 7 AS col1
----
-2083

query II rowsort
SELECT + - 67 AS col1, 89 AS col2
----
-67
89

query II rowsort
SELECT DISTINCT - 51 * - ( + 67 ), - 22 AS col1
----
3417
-22

query I rowsort
SELECT ALL 63 + - - 53
----
116

query I rowsort
SELECT DISTINCT - - 52 + 89 AS col0
----
141

query I rowsort
SELECT DISTINCT 7 * 5 AS col0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3547
SELECT ( - NULLIF ( - 53, CASE + 15 WHEN + 83 THEN NULL WHEN 35 + + 43 THEN - 29 WHEN - 38 THEN - - 68 ELSE NULL END ) ) DIV - + 50
----
-1

skipif mysql # not compatible
query I rowsort label-3547
SELECT ( - NULLIF ( - 53, CASE + 15 WHEN + 83 THEN NULL WHEN 35 + + 43 THEN - 29 WHEN - 38 THEN - - 68 ELSE NULL END ) ) / - + 50
----
-1

query I rowsort
SELECT ALL - 1 + - 31
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL + 32 + + COUNT( DISTINCT - 12 )
----
33

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL + 32 + + COUNT ( DISTINCT - 12 )
----
33

query I rowsort
SELECT DISTINCT - + COALESCE ( - + NULLIF ( + 19, - 26 * - 41 * 63 ), - + 23 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL - - MIN( - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL - - MIN ( - 23 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3552
SELECT - + CASE - + 42 WHEN - 46 * + 30 / - - 81 / + 56 + - 12 THEN + 85 * - 44 + - CAST( NULL AS SIGNED ) + + - 2 * - 44 * + 91 * + 56 WHEN - 97 THEN NULL WHEN - NULLIF ( - NULLIF ( + 91, 15 * + 68 ), + CASE ( 10 ) WHEN - COUNT( * ) + 41 THEN NULL ELSE CAST( NULL AS SIGNED ) END / ( 77 * ( 72 ) ) ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT - + CASE - + 42 WHEN - 46 * + 30 / - - 81 / + 56 + - 12 THEN + 85 * - 44 + - CAST ( NULL AS INTEGER ) + + - 2 * - 44 * + 91 * + 56 WHEN - 97 THEN NULL WHEN - NULLIF ( - NULLIF ( + 91, 15 * + 68 ), + CASE ( 10 ) WHEN - COUNT ( * ) + 41 THEN NULL ELSE CAST ( NULL AS INTEGER ) END / ( 77 * ( 72 ) ) ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - ( + 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL - - 47 * + 69 + - 75 + - COUNT( * ) + 41
----
3208

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL - - 47 * + 69 + - 75 + - COUNT ( * ) + 41
----
3208

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT 64 DIV - 6 + - - 58
----
48

skipif mysql # not compatible
query I rowsort label-3555
SELECT 64 / - 6 + - - 58
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3556
SELECT - CASE - 66 WHEN + - 39 THEN - 54 WHEN + + 77 * + - 85 THEN CASE + MIN( - 1 ) WHEN + 18 THEN + + ( - 55 ) DIV - 55 WHEN - MIN( DISTINCT - + 48 ) * + 37 + CAST( NULL AS SIGNED ) - - 32 - ( SUM( DISTINCT - 51 ) ) DIV + 2 THEN 56 + 47 * COUNT( * ) END ELSE - 53 - - 37 END
----
16

skipif mysql # not compatible
query I rowsort label-3556
SELECT - CASE - 66 WHEN + - 39 THEN - 54 WHEN + + 77 * + - 85 THEN CASE + MIN ( - 1 ) WHEN + 18 THEN + + ( - 55 ) / - 55 WHEN - MIN ( DISTINCT - + 48 ) * + 37 + CAST ( NULL AS INTEGER ) - - 32 - ( SUM ( DISTINCT - 51 ) ) / + 2 THEN 56 + 47 * COUNT ( * ) END ELSE - 53 - - 37 END
----
16

query I rowsort
SELECT ALL - 55 * - 97 AS col0
----
5335

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT - MIN( 85 ) * 94 * 30 - - + 50 * + COUNT( * ) * - 48 AS col2
----
-242100

skipif mysql # not compatible
query I rowsort label-3558
SELECT - MIN ( 85 ) * 94 * 30 - - + 50 * + COUNT ( * ) * - 48 AS col2
----
-242100

query I rowsort
SELECT + 8 * 7 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT - COUNT( * ) + 30 * CASE WHEN + 47 > - 65 THEN NULL ELSE 54 + COUNT( * ) END + - 53 - + + 81 - - + 90 + 40 * 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3560
SELECT - COUNT ( * ) + 30 * CASE WHEN + 47 > - 65 THEN NULL ELSE 54 + COUNT ( * ) END + - 53 - + + 81 - - + 90 + 40 * 18 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 63 * + + 22 AS col2, + 98 AS col0
----
-1386
98

query I rowsort
SELECT ALL NULLIF ( + 13, + ( 47 ) + 7 )
----
13

query I rowsort
SELECT + 66 * + 56 AS col1
----
3696

query I rowsort
SELECT ALL NULLIF ( 40, - 38 )
----
40

query I rowsort
SELECT + 43 * 99 AS col1
----
4257

onlyif mysql # DIV for integer division: 
query I rowsort label-3566
SELECT DISTINCT + 18 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT + 18 / - 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3567
SELECT - COALESCE ( 57, - 63 * - 81 ) DIV + + MIN( + 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-3567
SELECT - COALESCE ( 57, - 63 * - 81 ) / + + MIN ( + 51 )
----
-1

query I rowsort
SELECT DISTINCT + 19 + + 85 * - 48 AS col2
----
-4061

query I rowsort
SELECT + 76 * + 92 * + + 85 AS col0
----
594320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3570
SELECT CAST( NULL AS SIGNED ) * 93 - - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT CAST ( NULL AS INTEGER ) * 93 - - 85 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 0 * - 82 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT + NULLIF ( - 3, + COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-3572
SELECT + NULLIF ( - 3, + COUNT ( * ) )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3573
SELECT ALL - 91 * - - ( COUNT( * ) ) + 37 AS col0, COUNT( * )
----
-54
1

skipif mysql # not compatible
query II rowsort label-3573
SELECT ALL - 91 * - - ( COUNT ( * ) ) + 37 AS col0, COUNT ( * )
----
-54
1

query I rowsort
SELECT + 41 * + + 75 AS col1
----
3075

onlyif mysql # aggregate syntax: 
query II rowsort label-3575
SELECT DISTINCT - 94 * COUNT( * ) col2, - 51 AS col1
----
-94
-51

skipif mysql # not compatible
query II rowsort label-3575
SELECT DISTINCT - 94 * COUNT ( * ) col2, - 51 AS col1
----
-94
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT ALL + ( 7 ) DIV 94 col2
----
0

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL + ( 7 ) / 94 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT DISTINCT + 53 * - - 14 * - COUNT( * ) + - CASE + 71 WHEN + COUNT( * ) THEN NULL WHEN - 7 + 49 - + + 31 + - - COUNT( * ) * - 36 * - 88 * + CASE + 9 WHEN + 10 THEN MAX( + ( - 49 ) ) * + 11 * + 9 END * + 23 * COUNT( * ) THEN - 2 + 26 * + ( 56 ) ELSE NULL END + COUNT( ALL 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT + 53 * - - 14 * - COUNT ( * ) + - CASE + 71 WHEN + COUNT ( * ) THEN NULL WHEN - 7 + 49 - + + 31 + - - COUNT ( * ) * - 36 * - 88 * + CASE + 9 WHEN + 10 THEN MAX ( + ( - 49 ) ) * + 11 * + 9 END * + 23 * COUNT ( * ) THEN - 2 + 26 * + ( 56 ) ELSE NULL END + COUNT ( ALL 29 )
----
NULL

query I rowsort
SELECT - CASE WHEN 35 IS NULL THEN 56 ELSE - 39 END + - 10
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT ALL 41 DIV 16
----
2

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL 41 / 16
----
2

query I rowsort
SELECT + 11 + 50
----
61

query I rowsort
SELECT + + 89 * - 37 AS col0
----
-3293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3582
SELECT + + CAST( - 20 AS SIGNED ) * 95
----
-1900

skipif mysql # not compatible
query I rowsort label-3582
SELECT + + CAST ( - 20 AS INTEGER ) * 95
----
-1900

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT COUNT( * ) * - COALESCE ( + 95, - 37, COUNT( * ) ) + - 72 * - NULLIF ( - 94, - COUNT( * ) )
----
-6863

skipif mysql # not compatible
query I rowsort label-3583
SELECT COUNT ( * ) * - COALESCE ( + 95, - 37, COUNT ( * ) ) + - 72 * - NULLIF ( - 94, - COUNT ( * ) )
----
-6863

query I rowsort
SELECT DISTINCT + ( 66 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3585
SELECT DISTINCT COUNT( + + 39 ), + 93 AS col1
----
1
93

skipif mysql # not compatible
query II rowsort label-3585
SELECT DISTINCT COUNT ( + + 39 ), + 93 AS col1
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT DISTINCT + COUNT( * ) * - + COALESCE ( - 77, - COUNT( * ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-3586
SELECT DISTINCT + COUNT ( * ) * - + COALESCE ( - 77, - COUNT ( * ) ) AS col1
----
77

query I rowsort
SELECT - 96 + + 57 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-3588
SELECT ALL NULLIF ( - + COUNT( * ), - 57 ) AS col0, + 85 col1
----
-1
85

skipif mysql # not compatible
query II rowsort label-3588
SELECT ALL NULLIF ( - + COUNT ( * ), - 57 ) AS col0, + 85 col1
----
-1
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT - CAST( NULL AS SIGNED ) + + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3589
SELECT - CAST ( NULL AS INTEGER ) + + - 33
----
NULL

query I rowsort
SELECT ALL ( - 35 ) AS col2
----
-35

query I rowsort
SELECT ALL 37 + - - 74
----
111

query I rowsort
SELECT ALL + 14 * 13
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT ALL + 5 + - COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL + 5 + - COUNT ( * ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT DISTINCT + 32 * - + COUNT( * ) * + 40 AS col0
----
-1280

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT + 32 * - + COUNT ( * ) * + 40 AS col0
----
-1280

query I rowsort
SELECT - 1 - + + 45 AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3596
SELECT ALL - COUNT( * ) + - 91 DIV - + CAST( - MAX( ALL + 3 ) AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL - COUNT ( * ) + - 91 / - + CAST ( - MAX ( ALL + 3 ) AS INTEGER )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3597
SELECT - 65 + COUNT( * ) + + CAST( NULL AS SIGNED ) + 23 + + 96 * - 41 * 83 + - - 15 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT - 65 + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 23 + + 96 * - 41 * 83 + - - 15 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3598
SELECT ALL CASE - AVG ( DISTINCT + + 94 ) WHEN + CASE - 6 WHEN - 55 + - 44 THEN NULL ELSE - CAST( NULL AS SIGNED ) END * + - ( 55 ) THEN NULL ELSE + + 21 DIV + 69 END
----
0

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL CASE - AVG ( DISTINCT + + 94 ) WHEN + CASE - 6 WHEN - 55 + - 44 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END * + - ( 55 ) THEN NULL ELSE + + 21 / + 69 END
----
0

query I rowsort
SELECT - 16 * - - 91 + + + 66 + + 85
----
-1305

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL 59 * - COUNT( * ) * - 67 AS col2
----
3953

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL 59 * - COUNT ( * ) * - 67 AS col2
----
3953

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3601
SELECT DISTINCT + COALESCE ( + + 99, + 70 - + COALESCE ( + MAX( ALL 52 ), - AVG ( - - 94 ) + - - 9, ( 50 ) * - 95 ) * + 88 + - 81 + 3 * + + 48 * - + 60 ) * 69 DIV + 32
----
213

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT + COALESCE ( + + 99, + 70 - + COALESCE ( + MAX ( ALL 52 ), - AVG ( - - 94 ) + - - 9, ( 50 ) * - 95 ) * + 88 + - 81 + 3 * + + 48 * - + 60 ) * 69 / + 32
----
213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3602
SELECT ALL + MAX( DISTINCT - 82 ) DIV - CAST( - + 60 AS SIGNED ) - + 78 col0
----
-79

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL + MAX ( DISTINCT - 82 ) / - CAST ( - + 60 AS INTEGER ) - + 78 col0
----
-79

query I rowsort
SELECT - + 79 + 88 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT + - COUNT( * ) + + ( + 69 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3604
SELECT + - COUNT ( * ) + + ( + 69 ) AS col0
----
68

query I rowsort
SELECT - + ( + ( + + 12 ) ) * + 7
----
-84

query I rowsort
SELECT DISTINCT - + 6 * + + 97 AS col1
----
-582

query I rowsort
SELECT ALL + 49 * - 79
----
-3871

query I rowsort
SELECT ALL - + 92 col0
----
-92

query I rowsort
SELECT ALL - - 75 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT ALL + + 63 * + 75 * + 1 + 84 - + + MIN( DISTINCT - 16 ) AS col2
----
4825

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL + + 63 * + 75 * + 1 + 84 - + + MIN ( DISTINCT - 16 ) AS col2
----
4825

query I rowsort
SELECT ( + 79 ) * + 67 AS col2
----
5293

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT NULLIF ( - 49, - 84 ) * + - COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3612
SELECT NULLIF ( - 49, - 84 ) * + - COUNT ( * ) AS col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3613
SELECT ALL - 22 DIV - - COUNT( * ) + - 15 col0
----
-37

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL - 22 / - - COUNT ( * ) + - 15 col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-3614
SELECT 58 DIV + 76 * - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT 58 / + 76 * - 64 AS col1
----
0

query I rowsort
SELECT - 90 * + 35
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT DISTINCT 59 + - 49 - SUM( ( + 22 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT 59 + - 49 - SUM ( ( + 22 ) )
----
-12

query I rowsort
SELECT CASE + 37 WHEN + + 66 THEN - 62 + + - 18 END - - 62 * - 41 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT ALL + 45 DIV + 33 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL + 45 / + 33 AS col0
----
1

query I rowsort
SELECT DISTINCT - 91 + 24 * 66
----
1493

query II rowsort
SELECT - 39 AS col0, + 10 + 28 AS col2
----
-39
38

query I rowsort
SELECT ALL 25 * + 88
----
2200

onlyif mysql # aggregate syntax: 
query II rowsort label-3622
SELECT - 96 AS col1, COUNT( * ) * 69 + + 61 * - 18 AS col0
----
-96
-1029

skipif mysql # not compatible
query II rowsort label-3622
SELECT - 96 AS col1, COUNT ( * ) * 69 + + 61 * - 18 AS col0
----
-96
-1029

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL + 73 + + + 43 * + COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL + 73 + + + 43 * + COUNT ( * )
----
116

query I rowsort
SELECT ALL 89 * 79 * 11 col0
----
77341

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT COUNT( - 23 ) * - ( + 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-3625
SELECT COUNT ( - 23 ) * - ( + 61 )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3626
SELECT NULLIF ( 39, COUNT( * ) DIV + + 88 * 53 + + COALESCE ( - - CASE - 28 WHEN - - 5 * CASE + 98 WHEN - 86 THEN + + NULLIF ( - COUNT( * ), 2 * + + COUNT( * ) * + - 12 ) END * - + 96 * - + 81 - + 66 + + 58 + + CASE 84 + 90 WHEN 76 * 40 THEN + COALESCE ( + 57, 67 * 29 + + NULLIF ( 4, - 35 + COUNT( * ) * - COUNT( * ) ) ) * COUNT( * ) END DIV - 67 THEN SUM( ALL ( - 79 ) ) + - 55 * 38 END, NULLIF ( - COUNT( DISTINCT ( 41 ) ), NULLIF ( 24, 62 ) + - COUNT( * ) ) DIV + 22, + 63 ) ) + + COALESCE ( + 86, 16 + + ( 78 ) ) DIV + 28
----
42

skipif mysql # not compatible
query I rowsort label-3626
SELECT NULLIF ( 39, COUNT ( * ) / + + 88 * 53 + + COALESCE ( - - CASE - 28 WHEN - - 5 * CASE + 98 WHEN - 86 THEN + + NULLIF ( - COUNT ( * ), 2 * + + COUNT ( * ) * + - 12 ) END * - + 96 * - + 81 - + 66 + + 58 + + CASE 84 + 90 WHEN 76 * 40 THEN + COALESCE ( + 57, 67 * 29 + + NULLIF ( 4, - 35 + COUNT ( * ) * - COUNT ( * ) ) ) * COUNT ( * ) END / - 67 THEN SUM ( ALL ( - 79 ) ) + - 55 * 38 END, NULLIF ( - COUNT ( DISTINCT ( 41 ) ), NULLIF ( 24, 62 ) + - COUNT ( * ) ) / + 22, + 63 ) ) + + COALESCE ( + 86, 16 + + ( 78 ) ) / + 28
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ALL 83 + NULLIF ( + - COUNT( * ), - 82 / + 22 * - - COUNT( * ) + + 83 - 95 * - 13 * - 25 ) + + - ( + 61 )
----
21

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL 83 + NULLIF ( + - COUNT ( * ), - 82 / + 22 * - - COUNT ( * ) + + 83 - 95 * - 13 * - 25 ) + + - ( + 61 )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3628
SELECT - 62 AS col0, - COUNT( ALL - 91 ) AS col2
----
-62
-1

skipif mysql # not compatible
query II rowsort label-3628
SELECT - 62 AS col0, - COUNT ( ALL - 91 ) AS col2
----
-62
-1

query II rowsort
SELECT ALL 64 AS col0, 43 * - 43
----
64
-1849

query I rowsort
SELECT COALESCE ( + 40, 40, + 19, 94 ) * + - 80 AS col0
----
-3200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3631
SELECT ALL 17, 86 * - + 93 * + CAST( NULL AS DECIMAL ) + + + COUNT( * ) / 89 + + 59 + + COUNT( * ) * + + 73 * - 57 + - 23 / CAST( NULL AS SIGNED ) AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-3631
SELECT ALL 17, 86 * - + 93 * + CAST ( NULL AS REAL ) + + + COUNT ( * ) / 89 + + 59 + + COUNT ( * ) * + + 73 * - 57 + - 23 / CAST ( NULL AS INTEGER ) AS col2
----
17
NULL

query II rowsort
SELECT DISTINCT 69, 90 AS col0
----
69
90

query I rowsort
SELECT ALL + 83 * 48
----
3984

query II rowsort
SELECT 99 AS col1, - 33 * - 77 AS col1
----
99
2541

query I rowsort
SELECT DISTINCT 82 - + + 81
----
1

query I rowsort
SELECT DISTINCT + 57 - + + 23 AS col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3637
SELECT + + COUNT( * ) AS col0, - 34 + + 15 DIV ( 76 ) AS col0
----
1
-34

skipif mysql # not compatible
query II rowsort label-3637
SELECT + + COUNT ( * ) AS col0, - 34 + + 15 / ( 76 ) AS col0
----
1
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3638
SELECT + MAX( + 61 ) * + 27 + - COUNT( * ) * - CAST( NULL AS SIGNED ) * - 0 - + CAST( ( - 5 ) AS DECIMAL ) * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT + MAX ( + 61 ) * + 27 + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 0 - + CAST ( ( - 5 ) AS REAL ) * + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + ( - NULLIF ( - 69, + ( + 17 ) ) )
----
-69

query I rowsort
SELECT - 29 * ( 94 )
----
-2726

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL + COUNT( * ) * 10 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL + COUNT ( * ) * 10 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT + + 36 * + 20 - - COUNT( * )
----
721

skipif mysql # not compatible
query I rowsort label-3642
SELECT + + 36 * + 20 - - COUNT ( * )
----
721

onlyif mysql # DIV for integer division: 
query II rowsort label-3643
SELECT ALL - 52, + 94 DIV - + 51 AS col0
----
-52
-1

skipif mysql # not compatible
query II rowsort label-3643
SELECT ALL - 52, + 94 / - + 51 AS col0
----
-52
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT - COUNT( * ) * 27 - + 64 - + MAX( DISTINCT - 94 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3644
SELECT - COUNT ( * ) * 27 - + 64 - + MAX ( DISTINCT - 94 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT DISTINCT + + MAX( - 4 ) * 2 + + - 70
----
-78

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT + + MAX ( - 4 ) * 2 + + - 70
----
-78

query I rowsort
SELECT ALL + 76 + + 90
----
166

query I rowsort
SELECT NULLIF ( + COALESCE ( 4, - + 84 + - + 42 + - + 41, 30 ), - - 64 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL - + 48 + - - 17 + 77 + 22 * 48 + COUNT( * ) * + - 34 - + + 93 + - COUNT( * ) - + ( 76 ) + + 82
----
980

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL - + 48 + - - 17 + 77 + 22 * 48 + COUNT ( * ) * + - 34 - + + 93 + - COUNT ( * ) - + ( 76 ) + + 82
----
980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3649
SELECT DISTINCT - 4 + - - 68 AS col2, - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + 94 col2
----
64
NULL

skipif mysql # not compatible
query II rowsort label-3649
SELECT DISTINCT - 4 + - - 68 AS col2, - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + 94 col2
----
64
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT DISTINCT 84 + + ( - CAST( - + 36 AS SIGNED ) ) + - 60
----
60

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT 84 + + ( - CAST ( - + 36 AS INTEGER ) ) + - 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT 93 + + COUNT( - 49 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3651
SELECT 93 + + COUNT ( - 49 ) AS col1
----
94

query I rowsort
SELECT ALL - 87 + + 95 * - 36 AS col2
----
-3507

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT COUNT( * ) + - 95
----
-94

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT COUNT ( * ) + - 95
----
-94

query I rowsort
SELECT ALL ( - 99 ) + + - 23
----
-122

query I rowsort
SELECT ( + 90 ) * 81 AS col1
----
7290

onlyif mysql # DIV for integer division: 
query I rowsort label-3656
SELECT ( 48 ) DIV + 32 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3656
SELECT ( 48 ) / + 32 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT 87 * - 64 * + 25 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT 87 * - 64 * + 25 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3658
SELECT DISTINCT 24 DIV + - 50 AS col1, + 11 * + 96
----
0
1056

skipif mysql # not compatible
query II rowsort label-3658
SELECT DISTINCT 24 / + - 50 AS col1, + 11 * + 96
----
0
1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3659
SELECT 5 + - + 65 + - 82 * 40 DIV + 42 AS col0, 3 * - 27 + COUNT( * ) * 42 * ( - - 98 )
----
-138
4035

skipif mysql # not compatible
query II rowsort label-3659
SELECT 5 + - + 65 + - 82 * 40 / + 42 AS col0, 3 * - 27 + COUNT ( * ) * 42 * ( - - 98 )
----
-138
4035

query I rowsort
SELECT DISTINCT 77 * + - 66 * 17
----
-86394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3661
SELECT ALL NULLIF ( + - 53, - CAST( 22 AS SIGNED ) ) * + ( - + 16 ) AS col0
----
848

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL NULLIF ( + - 53, - CAST ( 22 AS INTEGER ) ) * + ( - + 16 ) AS col0
----
848

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ( - 50 ) - + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-3662
SELECT ( - 50 ) - + COUNT ( * )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3663
SELECT 43 DIV + + 1, COUNT( * ) * - - 53 - + + COALESCE ( + 37, - - 28 DIV 90 - COUNT( * ) * + CAST( NULL AS SIGNED ), - 0 ) * 63 + - - 39 AS col1
----
43
-2239

skipif mysql # not compatible
query II rowsort label-3663
SELECT 43 / + + 1, COUNT ( * ) * - - 53 - + + COALESCE ( + 37, - - 28 / 90 - COUNT ( * ) * + CAST ( NULL AS INTEGER ), - 0 ) * 63 + - - 39 AS col1
----
43
-2239

onlyif mysql # aggregate syntax: 
query II rowsort label-3664
SELECT 14 + + SUM( DISTINCT + + 88 ) AS col1, - 30
----
102
-30

skipif mysql # not compatible
query II rowsort label-3664
SELECT 14 + + SUM ( DISTINCT + + 88 ) AS col1, - 30
----
102
-30

query I rowsort
SELECT 46 + + 58 * + 71 AS col1
----
4164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3666
SELECT - 80 * + SUM( ALL + - 15 ) + - - 60 + - MAX( + + COALESCE ( + - CAST( + - 21 AS SIGNED ), - 99 + - - 20 + + 49 * - 93 * 13 ) ) AS col0
----
1239

skipif mysql # not compatible
query I rowsort label-3666
SELECT - 80 * + SUM ( ALL + - 15 ) + - - 60 + - MAX ( + + COALESCE ( + - CAST ( + - 21 AS INTEGER ), - 99 + - - 20 + + 49 * - 93 * 13 ) ) AS col0
----
1239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3667
SELECT ALL + + MAX( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL + + MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3668
SELECT + 92 DIV + - NULLIF ( + - COUNT( * ), COUNT( * ) * + + 77 * - COUNT( ALL - 70 ) ) + + ( - 75 ) * - 96 + + + 80 + - + 24 AS col2
----
7348

skipif mysql # not compatible
query I rowsort label-3668
SELECT + 92 / + - NULLIF ( + - COUNT ( * ), COUNT ( * ) * + + 77 * - COUNT ( ALL - 70 ) ) + + ( - 75 ) * - 96 + + + 80 + - + 24 AS col2
----
7348

query I rowsort
SELECT - - 77 * 24 * + - 39 AS col2
----
-72072

query I rowsort
SELECT + - ( + - 44 )
----
44

query I rowsort
SELECT + 4 * - 45 + + - 63 * - 10 + - 75 col1
----
375

query II rowsort
SELECT ALL - 10 * 30 + + - 47 AS col1, + 14 - - 82 col0
----
-347
96

query I rowsort
SELECT + + NULLIF ( - ( + 82 ), + 84 ) AS col2
----
-82

query I rowsort
SELECT + - ( + + 80 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3675
SELECT ALL + 95 * - ( + 35 ) + ( - 56 ) AS col1, + ( + COUNT( * ) )
----
-3381
1

skipif mysql # not compatible
query II rowsort label-3675
SELECT ALL + 95 * - ( + 35 ) + ( - 56 ) AS col1, + ( + COUNT ( * ) )
----
-3381
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3676
SELECT - + 51 * 25, MAX( + 10 ) DIV + - 97 + 4 AS col2
----
-1275
4

skipif mysql # not compatible
query II rowsort label-3676
SELECT - + 51 * 25, MAX ( + 10 ) / + - 97 + 4 AS col2
----
-1275
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3677
SELECT ALL + 81 * + + CASE + COALESCE ( 17, - + 10 + + 15 ) WHEN + - ( - + 27 ) THEN + 92 ELSE + + 85 DIV + - 93 * 97 * - + 6 END + ( - 36 ) * - 61 - - 63 - + COUNT( * ) + 42 DIV - 61 * + - 99 + - COUNT( * ) + - 23
----
2234

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL + 81 * + + CASE + COALESCE ( 17, - + 10 + + 15 ) WHEN + - ( - + 27 ) THEN + 92 ELSE + + 85 / + - 93 * 97 * - + 6 END + ( - 36 ) * - 61 - - 63 - + COUNT ( * ) + 42 / - 61 * + - 99 + - COUNT ( * ) + - 23
----
2234

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT - - MAX( 46 ) * 6 + + 12
----
288

skipif mysql # not compatible
query I rowsort label-3678
SELECT - - MAX ( 46 ) * 6 + + 12
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT ALL - 57 * + 18 + + COUNT( * ) * + 48 * + MAX( DISTINCT 43 ) col0
----
1038

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL - 57 * + 18 + + COUNT ( * ) * + 48 * + MAX ( DISTINCT 43 ) col0
----
1038

query I rowsort
SELECT + 78 - NULLIF ( 29, 35 )
----
49

query I rowsort
SELECT - 84 * + 49 * + 72
----
-296352

onlyif mysql # aggregate syntax: 
query II rowsort label-3682
SELECT COUNT( * ), - 90 AS col2
----
1
-90

skipif mysql # not compatible
query II rowsort label-3682
SELECT COUNT ( * ), - 90 AS col2
----
1
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT - 60 * - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-3683
SELECT - 60 * - COUNT ( * )
----
60

query I rowsort
SELECT DISTINCT + COALESCE ( - 23, - 51 * + + 35 ) * + 18
----
-414

query I rowsort
SELECT DISTINCT - 1 * + 55 * - 66 * - 28
----
-101640

query I rowsort
SELECT - 24 - - 10 * - NULLIF ( + 57, - 60 ) AS col0
----
-594

query I rowsort
SELECT DISTINCT - 11 * + 66
----
-726

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL + 56 - - - COUNT( ALL - 68 ) * - 82 * - + 82
----
-6668

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL + 56 - - - COUNT ( ALL - 68 ) * - 82 * - + 82
----
-6668

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3689
SELECT DISTINCT 63 AS col0, + CAST( NULL AS SIGNED )
----
63
NULL

skipif mysql # not compatible
query II rowsort label-3689
SELECT DISTINCT 63 AS col0, + CAST ( NULL AS INTEGER )
----
63
NULL

query I rowsort
SELECT ALL ( - 15 ) AS col0
----
-15

query I rowsort
SELECT - 65 + - 66
----
-131

onlyif mysql # aggregate syntax: 
query II rowsort label-3692
SELECT 24 AS col2, COUNT( * )
----
24
1

skipif mysql # not compatible
query II rowsort label-3692
SELECT 24 AS col2, COUNT ( * )
----
24
1

query I rowsort
SELECT + 47 - 77
----
-30

query I rowsort
SELECT - 58 * 37 * - 13 AS col0
----
27898

onlyif mysql # DIV for integer division: 
query I rowsort label-3695
SELECT + 64 + + 96 * - 15 + - - 34 DIV + + ( - 44 )
----
-1376

skipif mysql # not compatible
query I rowsort label-3695
SELECT + 64 + + 96 * - 15 + - - 34 / + + ( - 44 )
----
-1376

query II rowsort
SELECT ALL 80 AS col1, + 15 col2
----
80
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3697
SELECT - MAX( NULLIF ( + 31, + CAST( NULL AS SIGNED ) / - ( - - 72 ) ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-3697
SELECT - MAX ( NULLIF ( + 31, + CAST ( NULL AS INTEGER ) / - ( - - 72 ) ) ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-3698
SELECT - 11 AS col1, COUNT( * )
----
-11
1

skipif mysql # not compatible
query II rowsort label-3698
SELECT - 11 AS col1, COUNT ( * )
----
-11
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT - - SUM( + - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-3699
SELECT - - SUM ( + - 14 )
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT 59 col2, COUNT( * ) * 58 AS col1
----
59
58

skipif mysql # not compatible
query II rowsort label-3700
SELECT 59 col2, COUNT ( * ) * 58 AS col1
----
59
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL + 62 * 9 + + COUNT( ALL - 49 )
----
559

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL + 62 * 9 + + COUNT ( ALL - 49 )
----
559

query I rowsort
SELECT + + 56 * 70 AS col0
----
3920

query I rowsort
SELECT DISTINCT - 28 + + 90 AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3704
SELECT ALL + ( + CAST( 23 AS SIGNED ) ) AS col2, + 90 AS col1
----
23
90

skipif mysql # not compatible
query II rowsort label-3704
SELECT ALL + ( + CAST ( 23 AS INTEGER ) ) AS col2, + 90 AS col1
----
23
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT + CAST( NULL AS SIGNED ) / + - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT + CAST ( NULL AS INTEGER ) / + - 18 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3706
SELECT - 64 * + COUNT( * ) + + CAST( NULL AS SIGNED ) * + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT - 64 * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3707
SELECT DISTINCT + 70 DIV + - COUNT( * ) + + 54
----
-16

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT + 70 / + - COUNT ( * ) + + 54
----
-16

query I rowsort
SELECT DISTINCT + CASE - 96 WHEN + - 45 THEN 39 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3709
SELECT DISTINCT - + MAX( + 75 ) DIV - - 24 + - 83 * 37 AS col0
----
-3074

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT - + MAX ( + 75 ) / - - 24 + - 83 * 37 AS col0
----
-3074

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3710
SELECT ALL - + NULLIF ( 91, + - 0 ) DIV 43 + - 31 * CASE + 9 WHEN + 37 + - 14 DIV - COUNT( * ) THEN - - COUNT( ALL + 52 ) END + 22, 35 DIV - 88 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3710
SELECT ALL - + NULLIF ( 91, + - 0 ) / 43 + - 31 * CASE + 9 WHEN + 37 + - 14 / - COUNT ( * ) THEN - - COUNT ( ALL + 52 ) END + 22, 35 / - 88 AS col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT + 36 * + + COUNT( * ) * + - 46 AS col0
----
-1656

skipif mysql # not compatible
query I rowsort label-3711
SELECT + 36 * + + COUNT ( * ) * + - 46 AS col0
----
-1656

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL - 83 * - COUNT( DISTINCT - 65 ) + 56 - - 5 * - 0 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL - 83 * - COUNT ( DISTINCT - 65 ) + 56 - - 5 * - 0 AS col1
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3713
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) / + CASE - 20 WHEN - 12 THEN - ( + CAST( MAX( 91 ) AS SIGNED ) ) WHEN - + MAX( 73 ) THEN NULL ELSE COUNT( * ) END - - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) / + CASE - 20 WHEN - 12 THEN - ( + CAST ( MAX ( 91 ) AS INTEGER ) ) WHEN - + MAX ( 73 ) THEN NULL ELSE COUNT ( * ) END - - 89
----
NULL

query I rowsort
SELECT + ( - - COALESCE ( 29, + 92, - COALESCE ( 39, + 5 ) * + 58 ) ) AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT 23 DIV - 92 * + + 42 - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-3715
SELECT 23 / - 92 * + + 42 - 98 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT + COUNT( * ) * + 56 + - 35
----
21

skipif mysql # not compatible
query I rowsort label-3716
SELECT + COUNT ( * ) * + 56 + - 35
----
21

query I rowsort
SELECT ( + + 57 ) AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT + CAST( - AVG ( DISTINCT + 55 ) AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-3718
SELECT + CAST ( - AVG ( DISTINCT + 55 ) AS INTEGER )
----
-55

query II rowsort
SELECT ( - 81 ) AS col2, + 88
----
-81
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3720
SELECT ALL + CASE + 16 WHEN + 17 THEN 94 WHEN - SUM( + + 57 ) THEN + 5 + - NULLIF ( - COALESCE ( - COUNT( * ), 20 * + 29 ), + 63 ) * 30 WHEN + CAST( 12 AS DECIMAL ) * + 80 * 8 + 67 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL + CASE + 16 WHEN + 17 THEN 94 WHEN - SUM ( + + 57 ) THEN + 5 + - NULLIF ( - COALESCE ( - COUNT ( * ), 20 * + 29 ), + 63 ) * 30 WHEN + CAST ( 12 AS REAL ) * + 80 * 8 + 67 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT - 1 + 37 * NULLIF ( + - COUNT( DISTINCT + 77 ), + - 24 / - COUNT( * ) ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3721
SELECT - 1 + 37 * NULLIF ( + - COUNT ( DISTINCT + 77 ), + - 24 / - COUNT ( * ) ) AS col1
----
-38

query I rowsort
SELECT NULLIF ( 65, 76 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT - 77 + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-3723
SELECT - 77 + COUNT ( * )
----
-76

query I rowsort
SELECT ALL + 71 * + 34 - + - 38
----
2452

onlyif mysql # DIV for integer division: 
query II rowsort label-3725
SELECT ALL + 52 DIV + 27, + 57 + + 36 col0
----
1
93

skipif mysql # not compatible
query II rowsort label-3725
SELECT ALL + 52 / + 27, + 57 + + 36 col0
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL COALESCE ( 47, + + 95, + CASE 68 WHEN COUNT( * ) + - 3 - + + 63 * - 15 THEN - 94 * + - 22 - 61 + + 63 + MIN( DISTINCT + 85 ) - + 24 * NULLIF ( - + 40, + 90 + + COUNT( * ) ) * - + 40 - 70 * - - 13 - 24 END ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL COALESCE ( 47, + + 95, + CASE 68 WHEN COUNT ( * ) + - 3 - + + 63 * - 15 THEN - 94 * + - 22 - 61 + + 63 + MIN ( DISTINCT + 85 ) - + 24 * NULLIF ( - + 40, + 90 + + COUNT ( * ) ) * - + 40 - 70 * - - 13 - 24 END ) AS col2
----
47

query I rowsort
SELECT - 71 * 47 col2
----
-3337

query I rowsort
SELECT + 41 * - 95
----
-3895

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT + COUNT( * ) * + COUNT( * ) + 61 * - + 35
----
-2134

skipif mysql # not compatible
query I rowsort label-3729
SELECT + COUNT ( * ) * + COUNT ( * ) + 61 * - + 35
----
-2134

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT - MIN( DISTINCT + 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3730
SELECT - MIN ( DISTINCT + 35 ) AS col0
----
-35

query I rowsort
SELECT - 23 + + 40 * - 53
----
-2143

query I rowsort
SELECT 69 * 82
----
5658

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT ALL - 53 * 77 * - - COUNT( * ) * + - COUNT( ALL 63 ) * + + 25
----
102025

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL - 53 * 77 * - - COUNT ( * ) * + - COUNT ( ALL 63 ) * + + 25
----
102025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3734
SELECT - COUNT( - 80 ) + - 85 DIV - + CAST( - 81 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-3734
SELECT - COUNT ( - 80 ) + - 85 / - + CAST ( - 81 AS INTEGER )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT ALL + - 17 + - 74 DIV + 40
----
-18

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL + - 17 + - 74 / + 40
----
-18

query I rowsort
SELECT + 48 * - - CASE - 5 WHEN + 17 THEN 21 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - + ( - + 8 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3738
SELECT 78 + NULLIF ( - + 38, 11 ) + 0 + + - COUNT( + - 78 ) * + 79 * - COALESCE ( + NULLIF ( CAST( NULL AS SIGNED ), 21 + - 65 + CASE + ( - - 22 ) WHEN - 66 THEN NULL WHEN 92 + - 45 THEN + AVG ( ALL 79 ) WHEN - ( - + 90 ) + 56 THEN 9 * ( 58 * - 79 ) ELSE + 32 END * - CASE 33 WHEN + COUNT( * ) THEN NULL ELSE COUNT( * ) END ), 77 - 26 ) * 69 AS col1
----
278041

skipif mysql # not compatible
query I rowsort label-3738
SELECT 78 + NULLIF ( - + 38, 11 ) + 0 + + - COUNT ( + - 78 ) * + 79 * - COALESCE ( + NULLIF ( CAST ( NULL AS INTEGER ), 21 + - 65 + CASE + ( - - 22 ) WHEN - 66 THEN NULL WHEN 92 + - 45 THEN + AVG ( ALL 79 ) WHEN - ( - + 90 ) + 56 THEN 9 * ( 58 * - 79 ) ELSE + 32 END * - CASE 33 WHEN + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END ), 77 - 26 ) * 69 AS col1
----
278041

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3739
SELECT ALL COUNT( * ) + + + 5 + + CAST( NULL AS SIGNED ) / - + 21 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL COUNT ( * ) + + + 5 + + CAST ( NULL AS INTEGER ) / - + 21 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3740
SELECT - 84 + - 68 AS col2, 36 + 88 DIV - - COUNT( * )
----
-152
124

skipif mysql # not compatible
query II rowsort label-3740
SELECT - 84 + - 68 AS col2, 36 + 88 / - - COUNT ( * )
----
-152
124

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT ALL + + COUNT( * ) + - 6 - - - 83 + + + 53 * 27
----
1343

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL + + COUNT ( * ) + - 6 - - - 83 + + + 53 * 27
----
1343

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT + 33 DIV 82 + + 44 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3742
SELECT + 33 / 82 + + 44 AS col2
----
44

query I rowsort
SELECT ALL 37 + + 20 AS col2
----
57

query II rowsort
SELECT ALL + 23 - 3 AS col0, + 53
----
20
53

query I rowsort
SELECT ALL - 54 * + - NULLIF ( + 49, 73 ) AS col2
----
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT - COUNT( * ) * + 53 + + 29 * 71
----
2006

skipif mysql # not compatible
query I rowsort label-3746
SELECT - COUNT ( * ) * + 53 + + 29 * 71
----
2006

query I rowsort
SELECT 99 * 20 * - ( - 26 )
----
51480

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT COUNT( * ) * - - CASE + 32 WHEN - ( - 55 ) * - 75 + COUNT( ALL 26 ) - + ( - - 94 ) + 30 THEN - - 23 * + 74 + + MAX( ALL - 62 ) + 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT COUNT ( * ) * - - CASE + 32 WHEN - ( - 55 ) * - 75 + COUNT ( ALL 26 ) - + ( - - 94 ) + 30 THEN - - 23 * + 74 + + MAX ( ALL - 62 ) + 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT DISTINCT - MIN( 83 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT - MIN ( 83 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT ALL COUNT( * ) * - ( + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL COUNT ( * ) * - ( + COUNT ( * ) ) AS col0
----
-1

query II rowsort
SELECT DISTINCT - 60, + 45 AS col0
----
-60
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3752
SELECT ALL - 99 AS col0, + 6 + + 0 + COUNT( * ) AS col1
----
-99
7

skipif mysql # not compatible
query II rowsort label-3752
SELECT ALL - 99 AS col0, + 6 + + 0 + COUNT ( * ) AS col1
----
-99
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT ALL SUM( 1 ) * + 66 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL SUM ( 1 ) * + 66 AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3754
SELECT 92 AS col2, - CAST( 35 AS SIGNED ) + - 79
----
92
-114

skipif mysql # not compatible
query II rowsort label-3754
SELECT 92 AS col2, - CAST ( 35 AS INTEGER ) + - 79
----
92
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT COUNT( * ) * - - CASE + + COUNT( * ) WHEN + - COUNT( * ) * + + 46 THEN NULL ELSE + 59 + CASE - 68 WHEN 40 * - 97 + - 11 THEN - + 35 - - 77 ELSE + - 85 END END AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3755
SELECT COUNT ( * ) * - - CASE + + COUNT ( * ) WHEN + - COUNT ( * ) * + + 46 THEN NULL ELSE + 59 + CASE - 68 WHEN 40 * - 97 + - 11 THEN - + 35 - - 77 ELSE + - 85 END END AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT DISTINCT ( - + COUNT( * ) ) * + + COUNT( * ) * - 87
----
87

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT ( - + COUNT ( * ) ) * + + COUNT ( * ) * - 87
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3757
SELECT 63 * + COUNT( * ) DIV + - 78 AS col0, - COUNT( * ) * + 78 AS col1
----
0
-78

skipif mysql # not compatible
query II rowsort label-3757
SELECT 63 * + COUNT ( * ) / + - 78 AS col0, - COUNT ( * ) * + 78 AS col1
----
0
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-3758
SELECT 69 DIV - 39
----
-1

skipif mysql # not compatible
query I rowsort label-3758
SELECT 69 / - 39
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3759
SELECT ALL + 94 DIV 85 * - 64, - 32 AS col1
----
-64
-32

skipif mysql # not compatible
query II rowsort label-3759
SELECT ALL + 94 / 85 * - 64, - 32 AS col1
----
-64
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3760
SELECT + MAX( DISTINCT 47 ) DIV - 87 + + ( + 72 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3760
SELECT + MAX ( DISTINCT 47 ) / - 87 + + ( + 72 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL + 34 + - 11 + + ( + 15 ) + + + MAX( - 40 ) + - + 15 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + 34 + - 11 + + ( + 15 ) + + + MAX ( - 40 ) + - + 15 AS col2
----
-17

query I rowsort
SELECT - + ( 30 ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT SUM( ALL + - 29 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-3763
SELECT SUM ( ALL + - 29 ) AS col1
----
-29

query I rowsort
SELECT 14 + - CASE + 68 WHEN + + 55 * - ( 11 ) THEN NULL WHEN - COALESCE ( + - 5, - 4, 50 ) THEN + 7 * - 30 - - 94 - - 83 END - + + ( - - 36 ) - + 97 + - 50 * - 85
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3765
SELECT + 6 - - COUNT( + 47 ), + 72 AS col0
----
7
72

skipif mysql # not compatible
query II rowsort label-3765
SELECT + 6 - - COUNT ( + 47 ), + 72 AS col0
----
7
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3766
SELECT - 55 * + 20 + + CASE CAST( NULL AS SIGNED ) WHEN + 73 THEN - - 41 ELSE - - 58 END + + + 95 * + 92 + - 50 AS col1
----
7648

skipif mysql # not compatible
query I rowsort label-3766
SELECT - 55 * + 20 + + CASE CAST ( NULL AS INTEGER ) WHEN + 73 THEN - - 41 ELSE - - 58 END + + + 95 * + 92 + - 50 AS col1
----
7648

query I rowsort
SELECT ALL - 7 + - - 92 - + + 93 col2
----
-8

query I rowsort
SELECT ALL 42 * + 81
----
3402

query I rowsort
SELECT ALL + - 77 - - 41 AS col2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT DISTINCT + - 60 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT + - 60 * + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL - + NULLIF ( + + COUNT( * ), + 88 + - 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL - + NULLIF ( + + COUNT ( * ), + 88 + - 30 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3772
SELECT CAST( NULL AS SIGNED ) * + COALESCE ( + 31, 87 / 39 ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT CAST ( NULL AS INTEGER ) * + COALESCE ( + 31, 87 / 39 ) * 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ALL 55 * - COUNT( * ) - + 17
----
-72

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL 55 * - COUNT ( * ) - + 17
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3774
SELECT ALL CAST( NULL AS SIGNED ) * 62 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL CAST ( NULL AS INTEGER ) * 62 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3775
SELECT COUNT( * ) DIV 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3775
SELECT COUNT ( * ) / 74 AS col2
----
0

query I rowsort
SELECT DISTINCT + 52 * + - 41 * - + 68
----
144976

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT COUNT( - 4 ) * - + NULLIF ( - 57, + - 69 ) * - 46 - - 86
----
-2536

skipif mysql # not compatible
query I rowsort label-3777
SELECT COUNT ( - 4 ) * - + NULLIF ( - 57, + - 69 ) * - 46 - - 86
----
-2536

query II rowsort
SELECT 18 + + - 71 + - 32 + - 98 AS col0, 84 col0
----
-183
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT MIN( ALL + - 10 ) - 90 - + NULLIF ( - 39, - 12 * SUM( + 84 ) + + + 20 + 13 )
----
-61

skipif mysql # not compatible
query I rowsort label-3779
SELECT MIN ( ALL + - 10 ) - 90 - + NULLIF ( - 39, - 12 * SUM ( + 84 ) + + + 20 + 13 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3780
SELECT + COUNT( + + 81 ) * + 23 + SUM( + 87 ) - + 72, + 0 col1
----
38
0

skipif mysql # not compatible
query II rowsort label-3780
SELECT + COUNT ( + + 81 ) * + 23 + SUM ( + 87 ) - + 72, + 0 col1
----
38
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3781
SELECT ALL + ( - 3 ) AS col0, COUNT( * ) * - CAST( - 25 AS SIGNED )
----
-3
25

skipif mysql # not compatible
query II rowsort label-3781
SELECT ALL + ( - 3 ) AS col0, COUNT ( * ) * - CAST ( - 25 AS INTEGER )
----
-3
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3782
SELECT DISTINCT - ( + + MIN( - 35 ) ) + - - 15 + CASE - 13 WHEN 86 * - COUNT( DISTINCT 82 ) / CASE - - COUNT( ALL - + 22 ) WHEN - 1 * - 67 + - 17 * + 18 THEN NULL ELSE 48 + + ( 91 ) END + + COUNT( * ) / - 76 THEN NULL WHEN - + 41 THEN 81 * 30 - + - CASE 16 WHEN CASE 50 WHEN + 57 / + 73 + + 23 THEN 68 WHEN 82 + 32 THEN NULL END THEN NULL ELSE ( - 4 ) END * 34 + - 73 / + 94 WHEN 84 THEN CAST( NULL AS DECIMAL ) * 48 - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT - ( + + MIN ( - 35 ) ) + - - 15 + CASE - 13 WHEN 86 * - COUNT ( DISTINCT 82 ) / CASE - - COUNT ( ALL - + 22 ) WHEN - 1 * - 67 + - 17 * + 18 THEN NULL ELSE 48 + + ( 91 ) END + + COUNT ( * ) / - 76 THEN NULL WHEN - + 41 THEN 81 * 30 - + - CASE 16 WHEN CASE 50 WHEN + 57 / + 73 + + 23 THEN 68 WHEN 82 + 32 THEN NULL END THEN NULL ELSE ( - 4 ) END * 34 + - 73 / + 94 WHEN 84 THEN CAST ( NULL AS REAL ) * 48 - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3783
SELECT ALL CAST( - 91 AS SIGNED ) + + 16 col2
----
-75

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL CAST ( - 91 AS INTEGER ) + + 16 col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3784
SELECT 78 col1, COALESCE ( 80, 64, - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) * 16 ) + 83 AS col0
----
78
163

skipif mysql # not compatible
query II rowsort label-3784
SELECT 78 col1, COALESCE ( 80, 64, - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) * 16 ) + 83 AS col0
----
78
163

query II rowsort
SELECT - + 51 AS col0, 82 AS col1
----
-51
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT 8 * + COUNT( * ) + + + 93
----
101

skipif mysql # not compatible
query I rowsort label-3786
SELECT 8 * + COUNT ( * ) + + + 93
----
101

query I rowsort
SELECT ALL + NULLIF ( + - 89, 28 ) + + + 13
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-3788
SELECT - COUNT( * ), 98 AS col2
----
-1
98

skipif mysql # not compatible
query II rowsort label-3788
SELECT - COUNT ( * ), 98 AS col2
----
-1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT + + COUNT( * ) + - + 64 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-3789
SELECT + + COUNT ( * ) + - + 64 AS col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3790
SELECT + ( + COUNT( * ) ) * + 58 * + 14 - 29 + - + 53 DIV COUNT( ALL + - 0 )
----
730

skipif mysql # not compatible
query I rowsort label-3790
SELECT + ( + COUNT ( * ) ) * + 58 * + 14 - 29 + - + 53 / COUNT ( ALL + - 0 )
----
730

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL + 78 * - 17 * COUNT( * ) AS col2
----
-1326

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL + 78 * - 17 * COUNT ( * ) AS col2
----
-1326

query I rowsort
SELECT + - 67 + - 31 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT DISTINCT - 56 - + - 47 + + ( - - COALESCE ( - NULLIF ( 71, 21 - 31 ), - - MIN( 36 ) - COUNT( * ), - 36 ) ) + + + 96 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT - 56 - + - 47 + + ( - - COALESCE ( - NULLIF ( 71, 21 - 31 ), - - MIN ( 36 ) - COUNT ( * ), - 36 ) ) + + + 96 AS col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-3794
SELECT ALL - COUNT( * ), 30 + ( + + 65 ) col1
----
-1
95

skipif mysql # not compatible
query II rowsort label-3794
SELECT ALL - COUNT ( * ), 30 + ( + + 65 ) col1
----
-1
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT + CASE 38 WHEN - 63 THEN NULL WHEN + COUNT( * ) + - 33 THEN 8 WHEN 81 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3795
SELECT + CASE 38 WHEN - 63 THEN NULL WHEN + COUNT ( * ) + - 33 THEN 8 WHEN 81 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3796
SELECT ALL - ( + + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL - ( + + CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 28 - - 76 + - + 19 AS col1
----
85

query I rowsort
SELECT - - 17 * - 26 AS col1
----
-442

query I rowsort
SELECT + 32 + + + 44 + + + 24
----
100

query I rowsort
SELECT - 2 + 13
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3801
SELECT - CAST( NULL AS SIGNED ) + + 37 AS col0, - 41 + + 23
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-3801
SELECT - CAST ( NULL AS INTEGER ) + + 37 AS col0, - 41 + + 23
----
NULL
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3802
SELECT ALL 54 AS col2, CAST( NULL AS DECIMAL ) col1
----
54
NULL

skipif mysql # not compatible
query II rowsort label-3802
SELECT ALL 54 AS col2, CAST ( NULL AS REAL ) col1
----
54
NULL

query I rowsort
SELECT + + 40 + + 42
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL + COUNT( + 62 ) * 84 - + + 65
----
19

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL + COUNT ( + 62 ) * 84 - + + 65
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT COUNT( * ) * - 50
----
-50

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT COUNT ( * ) * - 50
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3806
SELECT ALL + CAST( 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL + CAST ( 42 AS INTEGER )
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3807
SELECT - 78 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3807
SELECT - 78 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + CASE - 18 WHEN - AVG ( 80 ) THEN + 97 END * + + 28
----
NULL

query I rowsort
SELECT ( + - ( - 95 ) )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-3810
SELECT + ( + 78 ) AS col0, - COALESCE ( ( 22 ), + SUM( - COALESCE ( - 75, + + 25, - 60 * - 19 ) ) )
----
78
-22

skipif mysql # not compatible
query II rowsort label-3810
SELECT + ( + 78 ) AS col0, - COALESCE ( ( 22 ), + SUM ( - COALESCE ( - 75, + + 25, - 60 * - 19 ) ) )
----
78
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3811
SELECT - 72 + 53 col1, COUNT( * ) * 70 + + 26 DIV ( + 17 ) + 31 + - 76 AS col1
----
-19
26

skipif mysql # not compatible
query II rowsort label-3811
SELECT - 72 + 53 col1, COUNT ( * ) * 70 + + 26 / ( + 17 ) + 31 + - 76 AS col1
----
-19
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL + SUM( ALL 70 )
----
70

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + SUM ( ALL 70 )
----
70

query I rowsort
SELECT ( - + 80 ) AS col2
----
-80

query I rowsort
SELECT - 42 * - 30
----
1260

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT - 65 DIV + - 29
----
2

skipif mysql # not compatible
query I rowsort label-3815
SELECT - 65 / + - 29
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3816
SELECT ALL - COUNT( * ) * - + ( + - 2 ) + 49 DIV - + 68 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL - COUNT ( * ) * - + ( + - 2 ) + 49 / - + 68 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3817
SELECT ( - + MAX( DISTINCT CAST( NULL AS SIGNED ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT ( - + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT + SUM( + + ( 32 ) )
----
32

skipif mysql # not compatible
query I rowsort label-3818
SELECT + SUM ( + + ( 32 ) )
----
32

query I rowsort
SELECT - 12 * + ( + 31 ) AS col0
----
-372

query I rowsort
SELECT - 29 + + 39 col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3821
SELECT DISTINCT - 18 * - MAX( 95 ) + - COALESCE ( - 29, - COUNT( * ) DIV + + CASE + COUNT( * ) WHEN + 89 + SUM( - 34 ) THEN + + 89 ELSE MIN( DISTINCT + - 81 ) END + + NULLIF ( - 98, 46 + - 51 * - 99 ) + 83 - + 13 + + 24, - + 85 * + 39 ) * + - ( CASE - 21 WHEN 56 * + 34 THEN NULL WHEN 5 * - COUNT( * ) THEN 74 ELSE + 61 END ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT - 18 * - MAX ( 95 ) + - COALESCE ( - 29, - COUNT ( * ) / + + CASE + COUNT ( * ) WHEN + 89 + SUM ( - 34 ) THEN + + 89 ELSE MIN ( DISTINCT + - 81 ) END + + NULLIF ( - 98, 46 + - 51 * - 99 ) + 83 - + 13 + + 24, - + 85 * + 39 ) * + - ( CASE - 21 WHEN 56 * + 34 THEN NULL WHEN 5 * - COUNT ( * ) THEN 74 ELSE + 61 END ) AS col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3822
SELECT DISTINCT 58 * + 80, - 31 * + - SUM( ALL + + CASE + 44 WHEN - + NULLIF ( + 42, 15 + + 35 + + 47 * + ( + 58 ) * - + 35 + - 84 ) THEN NULL ELSE - CAST( NULL AS SIGNED ) - - 54 END ) * - 97 + + 6 AS col1
----
4640
NULL

skipif mysql # not compatible
query II rowsort label-3822
SELECT DISTINCT 58 * + 80, - 31 * + - SUM ( ALL + + CASE + 44 WHEN - + NULLIF ( + 42, 15 + + 35 + + 47 * + ( + 58 ) * - + 35 + - 84 ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) - - 54 END ) * - 97 + + 6 AS col1
----
4640
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3823
SELECT - 64 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-3823
SELECT - 64 / 98
----
0

query II rowsort
SELECT DISTINCT + ( 94 ), + 96 col1
----
94
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT COALESCE ( ( + COUNT( * ) ), + 9 * + COALESCE ( - 1, - SUM( DISTINCT - 32 ) ) * - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3825
SELECT COALESCE ( ( + COUNT ( * ) ), + 9 * + COALESCE ( - 1, - SUM ( DISTINCT - 32 ) ) * - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT + + COUNT( * ) + NULLIF ( + 5, - 18 )
----
6

skipif mysql # not compatible
query I rowsort label-3826
SELECT + + COUNT ( * ) + NULLIF ( + 5, - 18 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL + COUNT( * ) * - 31 - COUNT( ALL 79 )
----
-32

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + COUNT ( * ) * - 31 - COUNT ( ALL 79 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3828
SELECT ALL + - CAST( NULL AS SIGNED ) * + 26 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL + - CAST ( NULL AS INTEGER ) * + 26 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 13 - 1 col2
----
12

query I rowsort
SELECT + + COALESCE ( 26, - 54 - - 5, + + 63 ) - + 24 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3831
SELECT ALL 3 * CAST( + - 80 AS SIGNED ) * - 22
----
5280

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL 3 * CAST ( + - 80 AS INTEGER ) * - 22
----
5280

onlyif mysql # aggregate syntax: 
query II rowsort label-3832
SELECT + 91 * + COUNT( * ) AS col1, 44 AS col0
----
91
44

skipif mysql # not compatible
query II rowsort label-3832
SELECT + 91 * + COUNT ( * ) AS col1, 44 AS col0
----
91
44

query I rowsort
SELECT - 30 * - 64 col1
----
1920

query I rowsort
SELECT DISTINCT 88 * - 54 + - + 52 + 23
----
-4781

query I rowsort
SELECT ALL - 6 * + + 24 AS col0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT DISTINCT 45 * - ( COUNT( - + 69 ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT 45 * - ( COUNT ( - + 69 ) ) AS col0
----
-45

query I rowsort
SELECT + 66 + 14 AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3838
SELECT ALL COUNT( * ) / + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL COUNT ( * ) / + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT + 42 + + - COUNT( ALL + 55 ) + - 81 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-3839
SELECT + 42 + + - COUNT ( ALL + 55 ) + - 81 AS col0
----
-40

query I rowsort
SELECT 53 * NULLIF ( - NULLIF ( + - 2, + + 49 + + 80 ), - - 10 * 41 ) AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT 63 * - COUNT( * ) * + COUNT( - 35 ) * ( + + COUNT( * ) ) * 82
----
-5166

skipif mysql # not compatible
query I rowsort label-3841
SELECT 63 * - COUNT ( * ) * + COUNT ( - 35 ) * ( + + COUNT ( * ) ) * 82
----
-5166

onlyif mysql # DIV for integer division: 
query I rowsort label-3842
SELECT - 96 DIV 60 + + + ( 31 ) col1
----
30

skipif mysql # not compatible
query I rowsort label-3842
SELECT - 96 / 60 + + + ( 31 ) col1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3843
SELECT ALL - 7 * + - CAST( NULL AS SIGNED ) * 34 * - - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL - 7 * + - CAST ( NULL AS INTEGER ) * 34 * - - 9
----
NULL

query I rowsort
SELECT 53 + - - 13 + + 44 * 91
----
4070

query I rowsort
SELECT ALL 94 + - ( + 42 ) AS col1
----
52

query I rowsort
SELECT ALL + 35 + + 71 + - 76
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT + 45 * + COUNT( ALL 4 ) + + 20
----
65

skipif mysql # not compatible
query I rowsort label-3847
SELECT + 45 * + COUNT ( ALL 4 ) + + 20
----
65

query II rowsort
SELECT 3 AS col2, 71 * 51 - 82 + + + 2 + - 95 + ( - 83 ) AS col2
----
3
3363

query II rowsort
SELECT + 77 AS col2, + 9
----
77
9

query I rowsort
SELECT 81 + 37
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3851
SELECT 17 * + + 93 + + COALESCE ( + SUM( + 10 ), ( + - 26 ) + 60 - + 96 * - ( - 94 ), - CAST( + ( - 10 ) AS SIGNED ) ) * + 64 * - + 38 - - - ( 82 ) + - - ( + 18 ) - 66 AS col2
----
-22869

skipif mysql # not compatible
query I rowsort label-3851
SELECT 17 * + + 93 + + COALESCE ( + SUM ( + 10 ), ( + - 26 ) + 60 - + 96 * - ( - 94 ), - CAST ( + ( - 10 ) AS INTEGER ) ) * + 64 * - + 38 - - - ( 82 ) + - - ( + 18 ) - 66 AS col2
----
-22869

query I rowsort
SELECT + 99 * + + 29 + + - ( - 50 )
----
2921

query I rowsort
SELECT 60 + 19 + - - 97 + + 98 + + 43 - + + 91
----
226

query I rowsort
SELECT ALL - 61 - + + 75 AS col0
----
-136

query II rowsort
SELECT ALL - 81, + 70 AS col1
----
-81
70

query I rowsort
SELECT + 82 * - - 16 * + 40 * - - 34 + - - 52 AS col0
----
1784372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3857
SELECT + 84 * + - CAST( - + COUNT( * ) AS SIGNED ) * 84 AS col0, - CAST( + - COALESCE ( - - 20, + 14 ) AS SIGNED ) AS col2
----
7056
20

skipif mysql # not compatible
query II rowsort label-3857
SELECT + 84 * + - CAST ( - + COUNT ( * ) AS INTEGER ) * 84 AS col0, - CAST ( + - COALESCE ( - - 20, + 14 ) AS INTEGER ) AS col2
----
7056
20

query II rowsort
SELECT ALL - 58 col1, - ( 40 ) col2
----
-58
-40

query I rowsort
SELECT 47 + - 10 * - + 75
----
797

query I rowsort
SELECT - ( - + 46 ) AS col1
----
46

query I rowsort
SELECT DISTINCT - 76 * + 31 AS col2
----
-2356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT 40 + CAST( NULL AS SIGNED ) - - 68 + - 4 - + + 32 * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT 40 + CAST ( NULL AS INTEGER ) - - 68 + - 4 - + + 32 * 10
----
NULL

query I rowsort
SELECT ALL - + 98 + 80 AS col2
----
-18

query I rowsort
SELECT ALL + 63 + + 44 col0
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3865
SELECT 44 + - - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3865
SELECT 44 + - - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3866
SELECT ALL CAST( - 17 AS SIGNED ) + - + 49 + 99 * - 94 * + 18 + MAX( - 39 ) col0
----
-167613

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL CAST ( - 17 AS INTEGER ) + - + 49 + 99 * - 94 * + 18 + MAX ( - 39 ) col0
----
-167613

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT MAX( - 85 ) + - 30 + - - 94
----
-21

skipif mysql # not compatible
query I rowsort label-3867
SELECT MAX ( - 85 ) + - 30 + - - 94
----
-21

query I rowsort
SELECT 34 + 94 col2
----
128

query I rowsort
SELECT DISTINCT 48 * - + 25 AS col1
----
-1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3870
SELECT COUNT( - CAST( NULL AS SIGNED ) ) DIV COALESCE ( + 80, - - COUNT( * ) + - + 36 ) DIV + - 53 - - 18
----
18

skipif mysql # not compatible
query I rowsort label-3870
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) / COALESCE ( + 80, - - COUNT ( * ) + - + 36 ) / + - 53 - - 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT ALL - 3 - - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL - 3 - - COUNT ( * )
----
-2

query I rowsort
SELECT ( - 40 ) + + + 46 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT COUNT( * ) * - - COALESCE ( 20, - + COUNT( * ) * + 45 * + + 52 + + + 74 )
----
20

skipif mysql # not compatible
query I rowsort label-3873
SELECT COUNT ( * ) * - - COALESCE ( 20, - + COUNT ( * ) * + 45 * + + 52 + + + 74 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT COUNT( * ) * - - 55 + - 2
----
53

skipif mysql # not compatible
query I rowsort label-3874
SELECT COUNT ( * ) * - - 55 + - 2
----
53

query I rowsort
SELECT ALL 41 - 11 col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3876
SELECT DISTINCT - - 18 * - 4 * - 62 * + 99 * - CAST( + - 61 AS SIGNED ) + - 22 * + 31 + + 17, 95 + + 20 col1
----
26957431
115

skipif mysql # not compatible
query II rowsort label-3876
SELECT DISTINCT - - 18 * - 4 * - 62 * + 99 * - CAST ( + - 61 AS INTEGER ) + - 22 * + 31 + + 17, 95 + + 20 col1
----
26957431
115

query II rowsort
SELECT DISTINCT 98 * 90, - ( - 5 ) col0
----
8820
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT NULLIF ( + - 92, + CASE - 48 WHEN + + 63 * - + 95 * 94 + + + 30 + - 27 + + 96 THEN - 32 WHEN + 57 + - - 36 * + 80 THEN COUNT( ALL + 22 ) * + - 87 * - COALESCE ( - 12, - - COUNT( * ) * 84 - + 27 + + 9 + - COALESCE ( + 53, + 43 / 21, 80 / - AVG ( 75 ) ) ) WHEN 35 * 32 - 59 THEN NULL ELSE NULL END / 79 ) * + 72 AS col0
----
-6624

skipif mysql # not compatible
query I rowsort label-3878
SELECT NULLIF ( + - 92, + CASE - 48 WHEN + + 63 * - + 95 * 94 + + + 30 + - 27 + + 96 THEN - 32 WHEN + 57 + - - 36 * + 80 THEN COUNT ( ALL + 22 ) * + - 87 * - COALESCE ( - 12, - - COUNT ( * ) * 84 - + 27 + + 9 + - COALESCE ( + 53, + 43 / 21, 80 / - AVG ( 75 ) ) ) WHEN 35 * 32 - 59 THEN NULL ELSE NULL END / 79 ) * + 72 AS col0
----
-6624

query I rowsort
SELECT ALL + 99 * + - 76
----
-7524

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT + COUNT( ALL + - COALESCE ( + 38, 88, 60 + + 58 * + 65, - 36 * NULLIF ( + ( + 98 ), ( - + 85 ) ) ) ) * - COUNT( * ) - - 4 + + - COUNT( * ) + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-3880
SELECT + COUNT ( ALL + - COALESCE ( + 38, 88, 60 + + 58 * + 65, - 36 * NULLIF ( + ( + 98 ), ( - + 85 ) ) ) ) * - COUNT ( * ) - - 4 + + - COUNT ( * ) + + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT 83 + COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3881
SELECT 83 + COUNT ( * ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT + ( - CASE 81 WHEN 32 * - - COUNT( * ) * + + 36 - - 12 - 88 / - + 79 / + 52 THEN - 85 + - + 76 * - 16 + + 64 WHEN + + 68 THEN NULL WHEN - 33 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT + ( - CASE 81 WHEN 32 * - - COUNT ( * ) * + + 36 - - 12 - 88 / - + 79 / + 52 THEN - 85 + - + 76 * - 16 + + 64 WHEN + + 68 THEN NULL WHEN - 33 THEN NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3883
SELECT 85 DIV 88 AS col0, + 58 + + + COUNT( * )
----
0
59

skipif mysql # not compatible
query II rowsort label-3883
SELECT 85 / 88 AS col0, + 58 + + + COUNT ( * )
----
0
59

query I rowsort
SELECT - 82 * 48 + 15
----
-3921

query I rowsort
SELECT DISTINCT + 6 + + 73 AS col1
----
79

query I rowsort
SELECT DISTINCT + + ( - - 47 ) + + + 21
----
68

query I rowsort
SELECT + 6 + - + 13 AS col1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3888
SELECT + NULLIF ( + + 99, 4 ) DIV + + MAX( - 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-3888
SELECT + NULLIF ( + + 99, 4 ) / + + MAX ( - 52 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT 31 * - CASE - + 30 WHEN 18 / 38 / - - 89 + COUNT( - 4 ) THEN 12 WHEN + COUNT( * ) + - - 23 * + COUNT( * ) THEN + 84 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT 31 * - CASE - + 30 WHEN 18 / 38 / - - 89 + COUNT ( - 4 ) THEN 12 WHEN + COUNT ( * ) + - - 23 * + COUNT ( * ) THEN + 84 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3890
SELECT - COUNT( * ) DIV + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3890
SELECT - COUNT ( * ) / + 72 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3891
SELECT DISTINCT + 61 DIV - 15 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT + 61 / - 15 AS col2
----
-4

query I rowsort
SELECT ALL NULLIF ( + 71, - 27 )
----
71

query I rowsort
SELECT - 13 * + + 97 * - + 7 * 10
----
88270

query II rowsort
SELECT 41 AS col0, + 96 * + 2 * + 12 * - 67
----
41
-154368

query I rowsort
SELECT ALL 1 - - 99 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT DISTINCT CASE + 87 WHEN + - 40 - MAX( 0 ) THEN - 3 WHEN - - 54 - + 55 THEN - MAX( - 29 ) ELSE + 83 END
----
83

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT CASE + 87 WHEN + - 40 - MAX ( 0 ) THEN - 3 WHEN - - 54 - + 55 THEN - MAX ( - 29 ) ELSE + 83 END
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3897
SELECT - 77 + SUM( + + 43 ) * CAST( 7 AS SIGNED ) AS col1
----
224

skipif mysql # not compatible
query I rowsort label-3897
SELECT - 77 + SUM ( + + 43 ) * CAST ( 7 AS INTEGER ) AS col1
----
224

onlyif mysql # aggregate syntax: 
query II rowsort label-3898
SELECT - COUNT( * ) AS col2, ( - + 87 ) * - - 86
----
-1
-7482

skipif mysql # not compatible
query II rowsort label-3898
SELECT - COUNT ( * ) AS col2, ( - + 87 ) * - - 86
----
-1
-7482

query I rowsort
SELECT ALL NULLIF ( - 0, - 10 )
----
0

query I rowsort
SELECT - 53 + 43 + ( - COALESCE ( 67, 80 ) )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3901
SELECT ALL COUNT( * ) * - 58 - - 63, + CAST( NULL AS SIGNED ) / 3 AS col1
----
5
NULL

skipif mysql # not compatible
query II rowsort label-3901
SELECT ALL COUNT ( * ) * - 58 - - 63, + CAST ( NULL AS INTEGER ) / 3 AS col1
----
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT ( MIN( - - 97 ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3902
SELECT ( MIN ( - - 97 ) ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT DISTINCT + 90 * - + CASE + 47 WHEN + COUNT( * ) THEN - - 4 + 74 + - + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT + 90 * - + CASE + 47 WHEN + COUNT ( * ) THEN - - 4 + 74 + - + 52 END
----
NULL

query II rowsort
SELECT ALL + 39, - ( + 35 ) * + 90 AS col1
----
39
-3150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3905
SELECT + CASE - - 98 WHEN 52 THEN NULL WHEN ( + + ( - AVG ( - 91 ) ) ) / 32 THEN NULL ELSE - - 34 * - - 65 END + - + ( - - COUNT( * ) ) * 84, MAX( DISTINCT + NULLIF ( - CAST( NULL AS SIGNED ), 56 + - - 39 + + 41 ) ) AS col0
----
2126
NULL

skipif mysql # not compatible
query II rowsort label-3905
SELECT + CASE - - 98 WHEN 52 THEN NULL WHEN ( + + ( - AVG ( - 91 ) ) ) / 32 THEN NULL ELSE - - 34 * - - 65 END + - + ( - - COUNT ( * ) ) * 84, MAX ( DISTINCT + NULLIF ( - CAST ( NULL AS INTEGER ), 56 + - - 39 + + 41 ) ) AS col0
----
2126
NULL

query I rowsort
SELECT ALL + 72 * - 32 AS col1
----
-2304

query I rowsort
SELECT ALL + + ( - + 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT + + MAX( + - 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3908
SELECT + + MAX ( + - 51 ) AS col1
----
-51

query I rowsort
SELECT + + ( 10 ) + 33 + 32 AS col0
----
75

query I rowsort
SELECT - 32 * + 9 - - 20
----
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT + 57 + - + 31 * - ( SUM( + 12 ) ) * - 2 AS col0
----
-687

skipif mysql # not compatible
query I rowsort label-3911
SELECT + 57 + - + 31 * - ( SUM ( + 12 ) ) * - 2 AS col0
----
-687

onlyif mysql # DIV for integer division: 
query I rowsort label-3912
SELECT ALL 27 DIV - + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL 27 / - + 81 AS col0
----
0

query II rowsort
SELECT DISTINCT + + 31, 87 AS col0
----
31
87

query I rowsort
SELECT - 71 + + + 1 AS col2
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT DISTINCT - 51 DIV - - 2
----
-25

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT - 51 / - - 2
----
-25

query I rowsort
SELECT + - 82 * + 85 * - 8
----
55760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3917
SELECT DISTINCT + 25 * 22 DIV - - COUNT( * ) + - ( 86 ) + - 58 + - 23 col2
----
383

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT + 25 * 22 / - - COUNT ( * ) + - ( 86 ) + - 58 + - 23 col2
----
383

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL + COUNT( + - 4 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + COUNT ( + - 4 ) AS col0
----
1

query II rowsort
SELECT DISTINCT + - 98 AS col2, 14 + - 83
----
-98
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT + - COUNT( * ) + + + 82
----
81

skipif mysql # not compatible
query I rowsort label-3920
SELECT + - COUNT ( * ) + + + 82
----
81

query I rowsort
SELECT ALL + 11 * + 74 + - + 67 + 37
----
784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3922
SELECT + 86 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT + 86 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3923
SELECT + - 88 * - CAST( 91 AS SIGNED ) AS col2
----
8008

skipif mysql # not compatible
query I rowsort label-3923
SELECT + - 88 * - CAST ( 91 AS INTEGER ) AS col2
----
8008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3924
SELECT DISTINCT 43 + CAST( NULL AS SIGNED ) * - + COALESCE ( + CASE + ( + - 72 ) WHEN - NULLIF ( + ( 97 ), + ( CAST( NULL AS SIGNED ) ) / - + 81 * - 88 ) * AVG ( - 46 ) + 12 + - + 65 * - 32 * - + 54 * + + 20 * - COUNT( * ) - + CASE + + 32 WHEN + 1 + 10 THEN + 68 * - 14 WHEN CAST( NULL AS SIGNED ) * - + 18 * + + 61 + - ( - 57 ) + + 8 THEN - 55 END * - 15 THEN NULL WHEN + 50 THEN 57 END, - 97 + 67, 95 + - NULLIF ( - COALESCE ( 85, 36 * - 64 ), 13 * + COUNT( * ) + + 92 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT 43 + CAST ( NULL AS INTEGER ) * - + COALESCE ( + CASE + ( + - 72 ) WHEN - NULLIF ( + ( 97 ), + ( CAST ( NULL AS INTEGER ) ) / - + 81 * - 88 ) * AVG ( - 46 ) + 12 + - + 65 * - 32 * - + 54 * + + 20 * - COUNT ( * ) - + CASE + + 32 WHEN + 1 + 10 THEN + 68 * - 14 WHEN CAST ( NULL AS INTEGER ) * - + 18 * + + 61 + - ( - 57 ) + + 8 THEN - 55 END * - 15 THEN NULL WHEN + 50 THEN 57 END, - 97 + 67, 95 + - NULLIF ( - COALESCE ( 85, 36 * - 64 ), 13 * + COUNT ( * ) + + 92 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT - COUNT( * ) + - + 61 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3925
SELECT - COUNT ( * ) + - + 61 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT DISTINCT COUNT( - - 22 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT COUNT ( - - 22 ) AS col1
----
1

query I rowsort
SELECT ALL - 3 - - + 62 AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3928
SELECT - ( + 73 ) * 12 + - 21 AS col0, CAST( NULL AS SIGNED ) / 38 * + + CAST( NULL AS SIGNED ) + COALESCE ( + - NULLIF ( + - COALESCE ( - 34, + + 29, 33 * - 62 / NULLIF ( - 78, + + 57 ) / - 70 - 35 - + ( 39 ) + - - ( - + 60 ) + + + 30 * - COUNT( * ) * + + 55 ), - + CASE + MAX( 26 ) WHEN 56 THEN + COUNT( * ) END ), 56, - CASE - 27 WHEN 9 THEN 27 * 0 WHEN 81 THEN 91 END ) + 13 * CAST( NULL AS DECIMAL )
----
-897
NULL

skipif mysql # not compatible
query II rowsort label-3928
SELECT - ( + 73 ) * 12 + - 21 AS col0, CAST ( NULL AS INTEGER ) / 38 * + + CAST ( NULL AS INTEGER ) + COALESCE ( + - NULLIF ( + - COALESCE ( - 34, + + 29, 33 * - 62 / NULLIF ( - 78, + + 57 ) / - 70 - 35 - + ( 39 ) + - - ( - + 60 ) + + + 30 * - COUNT ( * ) * + + 55 ), - + CASE + MAX ( 26 ) WHEN 56 THEN + COUNT ( * ) END ), 56, - CASE - 27 WHEN 9 THEN 27 * 0 WHEN 81 THEN 91 END ) + 13 * CAST ( NULL AS REAL )
----
-897
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT - CAST( - 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-3929
SELECT - CAST ( - 6 AS INTEGER )
----
6

query I rowsort
SELECT - 30 * 32 * + 62
----
-59520

onlyif mysql # DIV for integer division: 
query I rowsort label-3931
SELECT - 47 DIV + 7
----
-6

skipif mysql # not compatible
query I rowsort label-3931
SELECT - 47 / + 7
----
-6

query I rowsort
SELECT DISTINCT - 58 * 77
----
-4466

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3933
SELECT ALL - COUNT( * ) DIV - + MIN( 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL - COUNT ( * ) / - + MIN ( 94 ) AS col2
----
0

query I rowsort
SELECT DISTINCT ( + + 57 )
----
57

query I rowsort
SELECT - ( 70 ) * + - 34 AS col1
----
2380

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT DISTINCT + COALESCE ( - COUNT( * ), + - 74 + + + 20, + 53 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT + COALESCE ( - COUNT ( * ), + - 74 + + + 20, + 53 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3937
SELECT ALL + 32 AS col2, - 2 DIV 42 * + - 87 AS col0
----
32
0

skipif mysql # not compatible
query II rowsort label-3937
SELECT ALL + 32 AS col2, - 2 / 42 * + - 87 AS col0
----
32
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT - COUNT( * ) + - 63 + - - COUNT( * ) * - ( - ( - COUNT( * ) ) ) + - MIN( ALL + - 22 ) * + - 65 + NULLIF ( + ( 76 ), - 4 )
----
-1419

skipif mysql # not compatible
query I rowsort label-3938
SELECT - COUNT ( * ) + - 63 + - - COUNT ( * ) * - ( - ( - COUNT ( * ) ) ) + - MIN ( ALL + - 22 ) * + - 65 + NULLIF ( + ( 76 ), - 4 )
----
-1419

query II rowsort
SELECT + 28, + 59 AS col0
----
28
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT - - CAST( NULL AS SIGNED ) * 20 * 21 + - - 8 + - - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT - - CAST ( NULL AS INTEGER ) * 20 * 21 + - - 8 + - - 21
----
NULL

query II rowsort
SELECT ALL + 33 col2, + 80 * - 89 AS col1
----
33
-7120

query I rowsort
SELECT DISTINCT 16 * - 79 AS col0
----
-1264

query I rowsort
SELECT ALL + - 92 * + 65
----
-5980

onlyif mysql # DIV for integer division: 
query I rowsort label-3944
SELECT ALL + 50 DIV - 98 + - 12 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL + 50 / - 98 + - 12 AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3945
SELECT DISTINCT - 14 DIV 76 * - 29 + + 81 * + COUNT( * ) - + MIN( ALL - 88 ) AS col1, 78 AS col1
----
169
78

skipif mysql # not compatible
query II rowsort label-3945
SELECT DISTINCT - 14 / 76 * - 29 + + 81 * + COUNT ( * ) - + MIN ( ALL - 88 ) AS col1, 78 AS col1
----
169
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3946
SELECT ALL - - NULLIF ( - 13, - - NULLIF ( 1, CAST( + 75 AS SIGNED ) ) ) DIV 2 + + + 47 + COUNT( * ) DIV + 50 + - 29 * - + 95 + + 30 + + + 91 * - 98 + 51, + COUNT( * ) AS col2
----
-6041
1

skipif mysql # not compatible
query II rowsort label-3946
SELECT ALL - - NULLIF ( - 13, - - NULLIF ( 1, CAST ( + 75 AS INTEGER ) ) ) / 2 + + + 47 + COUNT ( * ) / + 50 + - 29 * - + 95 + + 30 + + + 91 * - 98 + 51, + COUNT ( * ) AS col2
----
-6041
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3947
SELECT - 70 DIV + COALESCE ( 92, 69 - + COUNT( * ) + - 79 )
----
0

skipif mysql # not compatible
query I rowsort label-3947
SELECT - 70 / + COALESCE ( 92, 69 - + COUNT ( * ) + - 79 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT - COUNT( - COALESCE ( - 22, + 73 ) ) - + 57 + 57 + - - 53 - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-3948
SELECT - COUNT ( - COALESCE ( - 22, + 73 ) ) - + 57 + 57 + - - 53 - COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT NULLIF ( + - COUNT( * ), - + 57 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3949
SELECT NULLIF ( + - COUNT ( * ), - + 57 ) AS col1
----
-1

query III rowsort
SELECT 50 AS col2, ( + 74 ) * + 20 * + 68 - - ( + 55 ) - 66 - + 82 AS col0, NULLIF ( 40, 81 )
----
50
100547
40

query II rowsort
SELECT + 19 AS col0, - 57 + 53
----
19
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3952
SELECT 15 + - 21 - - 94 * + CAST( 3 AS SIGNED ) AS col1
----
276

skipif mysql # not compatible
query I rowsort label-3952
SELECT 15 + - 21 - - 94 * + CAST ( 3 AS INTEGER ) AS col1
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT + SUM( ALL - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-3953
SELECT + SUM ( ALL - 15 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3954
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - MAX( DISTINCT - 48 ) / 38 + - 64 * + 56 * + + ( + - MIN( 39 ) ) - - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - MAX ( DISTINCT - 48 ) / 38 + - 64 * + 56 * + + ( + - MIN ( 39 ) ) - - 44 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3955
SELECT ALL 2 / + ( - + SUM( ALL - 76 ) ) * + CAST( NULL AS SIGNED ) * + MAX( DISTINCT NULLIF ( + 2, + 9 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL 2 / + ( - + SUM ( ALL - 76 ) ) * + CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT NULLIF ( + 2, + 9 ) )
----
NULL

query I rowsort
SELECT DISTINCT 66 * + + 55 * - 51 col0
----
-185130

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT ( 2 ) - + MIN( - - 23 ) - - - 32 - + 26 * - 26
----
623

skipif mysql # not compatible
query I rowsort label-3957
SELECT ( 2 ) - + MIN ( - - 23 ) - - - 32 - + 26 * - 26
----
623

query I rowsort
SELECT DISTINCT 30 * + + 17
----
510

query I rowsort
SELECT NULLIF ( 66, 68 ) + - 67 AS col2
----
-1

query I rowsort
SELECT ALL 65 * + - 92 * - - 29 AS col1
----
-173420

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT MIN( DISTINCT + - 54 ) - + + 37
----
-91

skipif mysql # not compatible
query I rowsort label-3961
SELECT MIN ( DISTINCT + - 54 ) - + + 37
----
-91

query I rowsort
SELECT 62 * 48 AS col0
----
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT 87 * + + SUM( + + 91 ) AS col0
----
7917

skipif mysql # not compatible
query I rowsort label-3963
SELECT 87 * + + SUM ( + + 91 ) AS col0
----
7917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3964
SELECT 77 + COUNT( * ) * + COALESCE ( ( - + CAST( - 71 AS SIGNED ) ), - 64 + + - 22, + 63 DIV - SUM( + 99 ) + + ( + + 90 ) + + 84 )
----
148

skipif mysql # not compatible
query I rowsort label-3964
SELECT 77 + COUNT ( * ) * + COALESCE ( ( - + CAST ( - 71 AS INTEGER ) ), - 64 + + - 22, + 63 / - SUM ( + 99 ) + + ( + + 90 ) + + 84 )
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT ALL - 12 * - COALESCE ( 14, - + ( MAX( - - 97 ) ) ) * 39
----
6552

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL - 12 * - COALESCE ( 14, - + ( MAX ( - - 97 ) ) ) * 39
----
6552

query I rowsort
SELECT + ( - - 70 ) AS col2
----
70

query I rowsort
SELECT 60 + - + 77
----
-17

query I rowsort
SELECT DISTINCT + + 32 + - + 18 * 44 AS col0
----
-760

query II rowsort
SELECT ALL - 62 + + 26 AS col1, + 78 AS col0
----
-36
78

query I rowsort
SELECT ALL 48 * + 1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3971
SELECT DISTINCT + CASE 36 WHEN + - 5 + 10 THEN + + NULLIF ( 31, - 69 ) ELSE - + 86 END * CAST( - MAX( - - 10 ) AS SIGNED ) + + 8
----
868

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT + CASE 36 WHEN + - 5 + 10 THEN + + NULLIF ( 31, - 69 ) ELSE - + 86 END * CAST ( - MAX ( - - 10 ) AS INTEGER ) + + 8
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT DISTINCT + MIN( - + 11 ) + 17 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT + MIN ( - + 11 ) + 17 AS col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3973
SELECT 9 + + 23 * - 69 * - ( + 54 ) - COUNT( ALL 0 ) AS col1, SUM( DISTINCT ( - 2 ) )
----
85706
-2

skipif mysql # not compatible
query II rowsort label-3973
SELECT 9 + + 23 * - 69 * - ( + 54 ) - COUNT ( ALL 0 ) AS col1, SUM ( DISTINCT ( - 2 ) )
----
85706
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3974
SELECT - - COUNT( * ) / + 81 * - 26 + - - 84 + + 43 + + 85 + 77 + 8 / COUNT( ALL + 88 ) + + COUNT( * ) * - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT - - COUNT ( * ) / + 81 * - 26 + - - 84 + + 43 + + 85 + 77 + 8 / COUNT ( ALL + 88 ) + + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 86 * + 36 AS col0
----
3096

query I rowsort
SELECT ALL - 44 * - + 23
----
1012

query I rowsort
SELECT - 93 * ( + 60 ) + - CASE WHEN NULL NOT BETWEEN ( NULL ) AND ( - 71 ) THEN - 21 ELSE - 6 END * 48
----
-5292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3978
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 99 col0, 87 + + CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
NULL
86

skipif mysql # not compatible
query II rowsort label-3978
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 99 col0, 87 + + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
NULL
86

query I rowsort
SELECT DISTINCT - ( + 32 ) AS col0
----
-32

query I rowsort
SELECT ALL - ( - - 40 ) col2
----
-40

query I rowsort
SELECT 33 + 61 * - 68 AS col1
----
-4115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3982
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, + 63 * + COUNT( * )
----
NULL
63

skipif mysql # not compatible
query II rowsort label-3982
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, + 63 * + COUNT ( * )
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT 12 * + 28 + - COUNT( * )
----
335

skipif mysql # not compatible
query I rowsort label-3983
SELECT 12 * + 28 + - COUNT ( * )
----
335

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT DISTINCT 83 DIV 60 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT 83 / 60 AS col1
----
1

query I rowsort
SELECT ALL 18 * + 19 * 15 AS col2
----
5130

query I rowsort
SELECT 68 + - ( 86 ) AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT DISTINCT + 40 DIV + 18
----
2

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT + 40 / + 18
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3988
SELECT ALL COUNT( * ), 13 AS col2
----
1
13

skipif mysql # not compatible
query II rowsort label-3988
SELECT ALL COUNT ( * ), 13 AS col2
----
1
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3989
SELECT DISTINCT + 31 DIV + - 22
----
-1

skipif mysql # not compatible
query I rowsort label-3989
SELECT DISTINCT + 31 / + - 22
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ALL COUNT( + + 50 ) * + ( + COUNT( - 10 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL COUNT ( + + 50 ) * + ( + COUNT ( - 10 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT ALL 82 + + COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL 82 + + COUNT ( * ) AS col0
----
83

query II rowsort
SELECT - 14 AS col2, 19
----
-14
19

onlyif mysql # aggregate syntax: 
query II rowsort label-3993
SELECT 3 + + - ( + 40 ) * - 87 col0, - COUNT( * ) * + + 3 * 36
----
3483
-108

skipif mysql # not compatible
query II rowsort label-3993
SELECT 3 + + - ( + 40 ) * - 87 col0, - COUNT ( * ) * + + 3 * 36
----
3483
-108

query I rowsort
SELECT ALL 76 * ( - 36 ) AS col1
----
-2736

query II rowsort
SELECT - 69 AS col2, - ( + 12 ) AS col2
----
-69
-12

query I rowsort
SELECT ( + 47 ) + - 55
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT - COUNT( ALL - + 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-3997
SELECT - COUNT ( ALL - + 85 )
----
-1

query I rowsort
SELECT 87 * 71 AS col2
----
6177

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT 22 + - COALESCE ( + - 24, - 46 + - 83, - 99 DIV 30 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3999
SELECT 22 + - COALESCE ( + - 24, - 46 + - 83, - 99 / 30 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-4000
SELECT - 23 AS col0, COUNT( * ) * + 30 * + 88 * 79 + + 63 AS col0
----
-23
208623

skipif mysql # not compatible
query II rowsort label-4000
SELECT - 23 AS col0, COUNT ( * ) * + 30 * + 88 * 79 + + 63 AS col0
----
-23
208623

query II rowsort
SELECT + 40 AS col1, 92 * + - 81 * + 28 * 64 AS col2
----
40
-13353984

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT ALL COUNT( - + 13 ) + - + 53 col0
----
-52

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL COUNT ( - + 13 ) + - + 53 col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - MIN( DISTINCT + + 43 ) * + + 97 * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT + + 43 ) * + + 97 * + 89
----
NULL

query II rowsort
SELECT ALL - 0 * - 38 * - - 40 AS col0, + 65 * - 29 - + 85
----
0
-1970

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT - COUNT( DISTINCT + + 44 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4005
SELECT - COUNT ( DISTINCT + + 44 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4006
SELECT ALL MAX( + 53 ) + 62 AS col1, 0 * - 91
----
115
0

skipif mysql # not compatible
query II rowsort label-4006
SELECT ALL MAX ( + 53 ) + 62 AS col1, 0 * - 91
----
115
0

query I rowsort
SELECT DISTINCT - - 64 col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4008
SELECT + - 50 DIV ( CAST( - + 75 AS SIGNED ) ) * + 96 + + 50 + + COALESCE ( + 88, + 85 DIV + 58 + - 25 ) * + MAX( ALL + - 12 ) + 64
----
-942

skipif mysql # not compatible
query I rowsort label-4008
SELECT + - 50 / ( CAST ( - + 75 AS INTEGER ) ) * + 96 + + 50 + + COALESCE ( + 88, + 85 / + 58 + - 25 ) * + MAX ( ALL + - 12 ) + 64
----
-942

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4009
SELECT ALL + 39 * 81 DIV COUNT( * ) + - + 68
----
3091

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL + 39 * 81 / COUNT ( * ) + - + 68
----
3091

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT + ( COALESCE ( COUNT( * ), + COALESCE ( - ( + 59 ), + 52, + 48 * + 45 * + 67 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4010
SELECT + ( COALESCE ( COUNT ( * ), + COALESCE ( - ( + 59 ), + 52, + 48 * + 45 * + 67 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT DISTINCT - + 12 * + + ( COUNT( * ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT - + 12 * + + ( COUNT ( * ) ) AS col1
----
-12

query I rowsort
SELECT - 92 * + 71 + 49 AS col1
----
-6483

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4013
SELECT ALL + 24 DIV COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + 24 / COUNT ( * )
----
24

query I rowsort
SELECT - - 18 * - 18 + 85 * + - 64 AS col1
----
-5764

query II rowsort
SELECT + 32 AS col2, - 42 * - 73 AS col0
----
32
3066

query I rowsort
SELECT ALL + - 89 col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT - + 43 * + COUNT( * ) + + - MIN( - + 25 ) + + 38 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4017
SELECT - + 43 * + COUNT ( * ) + + - MIN ( - + 25 ) + + 38 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT MAX( - 95 ) col1
----
-95

skipif mysql # not compatible
query I rowsort label-4018
SELECT MAX ( - 95 ) col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT - ( + 79 ) + ( - - ( - COUNT( * ) ) )
----
-80

skipif mysql # not compatible
query I rowsort label-4019
SELECT - ( + 79 ) + ( - - ( - COUNT ( * ) ) )
----
-80

query II rowsort
SELECT - 30 * + 40, 78 AS col2
----
-1200
78

query I rowsort
SELECT ALL - 44 * 75 col1
----
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT DISTINCT - 26 * + COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT - 26 * + COUNT ( * ) AS col2
----
-26

query I rowsort
SELECT DISTINCT + 99 + + 73
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT ALL - 45 + - CAST( + 84 AS SIGNED ) AS col1
----
-129

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL - 45 + - CAST ( + 84 AS INTEGER ) AS col1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT - COUNT( ALL + 62 ) * 9
----
-9

skipif mysql # not compatible
query I rowsort label-4025
SELECT - COUNT ( ALL + 62 ) * 9
----
-9

query I rowsort
SELECT ALL ( - 33 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT DISTINCT + COUNT( * ) + 84 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT + COUNT ( * ) + 84 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL COUNT( * ) + + COUNT( * ) + - 54
----
-52

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL COUNT ( * ) + + COUNT ( * ) + - 54
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4029
SELECT DISTINCT CASE + + CAST( NULL AS SIGNED ) WHEN + 74 THEN 89 * - 75 END, + 45 AS col0
----
NULL
45

skipif mysql # not compatible
query II rowsort label-4029
SELECT DISTINCT CASE + + CAST ( NULL AS INTEGER ) WHEN + 74 THEN 89 * - 75 END, + 45 AS col0
----
NULL
45

query I rowsort
SELECT ALL ( + ( 31 ) )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4031
SELECT DISTINCT 82 + - + 30 AS col1, + CAST( NULL AS SIGNED ) AS col1
----
52
NULL

skipif mysql # not compatible
query II rowsort label-4031
SELECT DISTINCT 82 + - + 30 AS col1, + CAST ( NULL AS INTEGER ) AS col1
----
52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL + - 10 / + CASE + 0 WHEN + + 40 * ( - - COUNT( * ) ) THEN NULL WHEN - NULLIF ( + NULLIF ( 89, - 53 ), 57 * ( + + 61 ) ) THEN - 56 - + 32 END + - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL + - 10 / + CASE + 0 WHEN + + 40 * ( - - COUNT ( * ) ) THEN NULL WHEN - NULLIF ( + NULLIF ( 89, - 53 ), 57 * ( + + 61 ) ) THEN - 56 - + 32 END + - 57 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4033
SELECT + + 40 DIV - + 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4033
SELECT + + 40 / - + 68 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT ALL - 71 * CAST( 12 AS SIGNED ) + 80 + - 82 + 3 + - 79
----
-930

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL - 71 * CAST ( 12 AS INTEGER ) + 80 + - 82 + 3 + - 79
----
-930

onlyif mysql # aggregate syntax: 
query II rowsort label-4035
SELECT ALL - 60 + COUNT( * ) + 90 + NULLIF ( + CASE - 93 WHEN 36 THEN NULL WHEN + 73 + - 78 + 68 THEN + COUNT( * ) + + - COUNT( * ) + + 87 ELSE NULL END, 80 ) - + 50 * 9 * + COUNT( * ), ( - 51 ) AS col2
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-4035
SELECT ALL - 60 + COUNT ( * ) + 90 + NULLIF ( + CASE - 93 WHEN 36 THEN NULL WHEN + 73 + - 78 + 68 THEN + COUNT ( * ) + + - COUNT ( * ) + + 87 ELSE NULL END, 80 ) - + 50 * 9 * + COUNT ( * ), ( - 51 ) AS col2
----
NULL
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT DISTINCT 48 + - MAX( DISTINCT + - 64 ) - + 57 * - NULLIF ( + + 73, + - 52 - + + COUNT( * ) )
----
4273

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT 48 + - MAX ( DISTINCT + - 64 ) - + 57 * - NULLIF ( + + 73, + - 52 - + + COUNT ( * ) )
----
4273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4037
SELECT DISTINCT MIN( DISTINCT 95 ) * + 87 * - 41 + - - 86 - + 29 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT MIN ( DISTINCT 95 ) * + 87 * - 41 + - - 86 - + 29 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - - 80 + - 85 AS col0
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4039
SELECT + 97 - CAST( NULL AS DECIMAL ) / + 75 + + AVG ( - - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT + 97 - CAST ( NULL AS REAL ) / + 75 + + AVG ( - - 30 )
----
NULL

query I rowsort
SELECT ALL - 87 col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT + ( COALESCE ( - 6, - COUNT( * ) - - MIN( DISTINCT + 35 ) ) ) * 9
----
-54

skipif mysql # not compatible
query I rowsort label-4041
SELECT + ( COALESCE ( - 6, - COUNT ( * ) - - MIN ( DISTINCT + 35 ) ) ) * 9
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT + ( - 3 ) * NULLIF ( + + COUNT( * ), + - 29 + - - 75 )
----
-3

skipif mysql # not compatible
query I rowsort label-4042
SELECT + ( - 3 ) * NULLIF ( + + COUNT ( * ), + - 29 + - - 75 )
----
-3

query I rowsort
SELECT + 54 + - + 98 AS col1
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4044
SELECT - + 8 DIV 6 + + COUNT( * ) * + 34 * + 36 AS col1
----
1223

skipif mysql # not compatible
query I rowsort label-4044
SELECT - + 8 / 6 + + COUNT ( * ) * + 34 * + 36 AS col1
----
1223

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT + CASE - NULLIF ( + COUNT( * ), + NULLIF ( + 75, + 44 ) ) WHEN 55 THEN - 29 + + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4045
SELECT + CASE - NULLIF ( + COUNT ( * ), + NULLIF ( + 75, + 44 ) ) WHEN 55 THEN - 29 + + - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT + - 72 * 26 * + + COUNT( * )
----
-1872

skipif mysql # not compatible
query I rowsort label-4046
SELECT + - 72 * 26 * + + COUNT ( * )
----
-1872

query I rowsort
SELECT ALL + - ( - 71 )
----
71

query I rowsort
SELECT + ( - - 61 )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4049
SELECT - ( - ( + 51 ) ) * MAX( 71 ) + 4 DIV - 20 * - 44 AS col0
----
3621

skipif mysql # not compatible
query I rowsort label-4049
SELECT - ( - ( + 51 ) ) * MAX ( 71 ) + 4 / - 20 * - 44 AS col0
----
3621

query I rowsort
SELECT ALL + ( - - 41 ) col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4051
SELECT - ( CASE - + ( 93 ) WHEN 78 * - ( 17 ) THEN NULL ELSE ( + 25 ) END ) DIV + MIN( + 40 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4051
SELECT - ( CASE - + ( 93 ) WHEN 78 * - ( 17 ) THEN NULL ELSE ( + 25 ) END ) / + MIN ( + 40 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT + ( - + COUNT( * ) ) * + ( - 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-4052
SELECT + ( - + COUNT ( * ) ) * + ( - 64 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT ALL COALESCE ( NULLIF ( - 41, + 33 ), - 82 - + 76 * 13 + + 47 * - 62 * + COUNT( * ), - - NULLIF ( - + COUNT( * ), 34 ) ) * - + 74 * - + 46 + + ( - + 88 ) * - + 49 + 72 AS col1
----
-135180

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL COALESCE ( NULLIF ( - 41, + 33 ), - 82 - + 76 * 13 + + 47 * - 62 * + COUNT ( * ), - - NULLIF ( - + COUNT ( * ), 34 ) ) * - + 74 * - + 46 + + ( - + 88 ) * - + 49 + 72 AS col1
----
-135180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4054
SELECT + 65 + + COUNT( * ) + - CAST( NULL AS SIGNED ) + + 37 + + - 37 * 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4054
SELECT + 65 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + 37 + + - 37 * 27 AS col1
----
NULL

query I rowsort
SELECT - 70 - 15 AS col2
----
-85

query I rowsort
SELECT - 47 * - 42
----
1974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4057
SELECT NULLIF ( - + CAST( - 68 AS SIGNED ), 10 / - - 33 * - 56 + + COALESCE ( + - ( + 71 ), + NULLIF ( - 73, - COALESCE ( - + 55, + 19 ) ) + - 82 ) + 99 * 57 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4057
SELECT NULLIF ( - + CAST ( - 68 AS INTEGER ), 10 / - - 33 * - 56 + + COALESCE ( + - ( + 71 ), + NULLIF ( - 73, - COALESCE ( - + 55, + 19 ) ) + - 82 ) + 99 * 57 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT - 35 + + SUM( - 13 ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-4058
SELECT - 35 + + SUM ( - 13 ) col2
----
-48

query I rowsort
SELECT ALL CASE + 39 WHEN + 21 THEN + 74 / - 34 * + 70 + - 52 * - 75 WHEN + 25 THEN - 78 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4060
SELECT DISTINCT COUNT( * ) * + + 67 * + 99 * + 69 + + - 59 + + CAST( NULL AS SIGNED ) + + + COUNT( * ) * - COUNT( * ) * - - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT COUNT ( * ) * + + 67 * + 99 * + 69 + + - 59 + + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * - COUNT ( * ) * - - 55
----
NULL

query I rowsort
SELECT DISTINCT + 5 * 54 AS col2
----
270

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4062
SELECT ALL + - 83 * - - CAST( NULL AS DECIMAL ) * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL + - 83 * - - CAST ( NULL AS REAL ) * 83
----
NULL

query I rowsort
SELECT - + 95 + - 52 + + + 50 * - 52 - COALESCE ( + - 35, + 56 - + - 18 * + 18 + + 41 ) * - 24 AS col2
----
-3587

query I rowsort
SELECT DISTINCT + 72 * - 25
----
-1800

query I rowsort
SELECT - 81 + + - 26 - + + 96 + - 16 AS col1
----
-219

query II rowsort
SELECT ALL 98 AS col2, - ( + 48 ) AS col1
----
98
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT - 95 + + COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4067
SELECT - 95 + + COUNT ( * ) AS col1
----
-94

query I rowsort
SELECT 45 * 48
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT COUNT( * ) + + 37 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4069
SELECT COUNT ( * ) + + 37 AS col1
----
38

query I rowsort
SELECT - 52 * + - 89 AS col0
----
4628

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT ALL 0 * + COUNT( * ) * - 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL 0 * + COUNT ( * ) * - 52 AS col2
----
0

query I rowsort
SELECT ALL + ( 39 ) col1
----
39

query II rowsort
SELECT ALL + 27, + 73 AS col0
----
27
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4074
SELECT DISTINCT - 29 DIV - MAX( 65 ) AS col2, + 46 * - - 91
----
0
4186

skipif mysql # not compatible
query II rowsort label-4074
SELECT DISTINCT - 29 / - MAX ( 65 ) AS col2, + 46 * - - 91
----
0
4186

query I rowsort
SELECT + 88 * 22 * - 91 + + 10 AS col1
----
-176166

onlyif mysql # aggregate syntax: 
query II rowsort label-4076
SELECT - 27 - - ( - COUNT( * ) ) AS col2, 18 * - 1 * + 9
----
-28
-162

skipif mysql # not compatible
query II rowsort label-4076
SELECT - 27 - - ( - COUNT ( * ) ) AS col2, 18 * - 1 * + 9
----
-28
-162

query I rowsort
SELECT ALL 71 * - ( + + 4 ) AS col1
----
-284

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT MIN( 51 ) * 61 * 80 AS col2
----
248880

skipif mysql # not compatible
query I rowsort label-4078
SELECT MIN ( 51 ) * 61 * 80 AS col2
----
248880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - 59 col2
----
NULL

query II rowsort
SELECT - 11 AS col2, 89 * + 16 + + 73 - + 68 col1
----
-11
1429

query I rowsort
SELECT ( - - 41 ) * - 31 AS col1
----
-1271

query I rowsort
SELECT ALL 1 + + 26
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4083
SELECT 60 AS col2, ( - MIN( CAST( 63 AS SIGNED ) ) ) + 66 + - - 35 + + 97 - - - 40 * - 72 + - 45 DIV 40 * + 48
----
60
2967

skipif mysql # not compatible
query II rowsort label-4083
SELECT 60 AS col2, ( - MIN ( CAST ( 63 AS INTEGER ) ) ) + 66 + - - 35 + + 97 - - - 40 * - 72 + - 45 / 40 * + 48
----
60
2967

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL + 53 * + + 15 * + COUNT( * ) * + COUNT( * ) * - 85
----
-67575

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL + 53 * + + 15 * + COUNT ( * ) * + COUNT ( * ) * - 85
----
-67575

query I rowsort
SELECT DISTINCT 31 + + ( ( + 60 ) ) col0
----
91

query I rowsort
SELECT ( - 23 ) * - 38
----
874

query I rowsort
SELECT ALL 65 + - + 84
----
-19

query I rowsort
SELECT 62 + ( - 95 ) AS col2
----
-33

query II rowsort
SELECT 60, - 75 AS col0
----
60
-75

query I rowsort
SELECT + 19 * + + 94 + 5 + + 95 + - + ( 95 )
----
1791

query I rowsort
SELECT 13 + - - 40
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4092
SELECT DISTINCT 53 + - COUNT( * ) DIV + 21 * - 4
----
53

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT 53 + - COUNT ( * ) / + 21 * - 4
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4093
SELECT 22 + + ( - CAST( + COUNT( DISTINCT - + 68 ) AS SIGNED ) ) + + 85 + + + COUNT( * ) + - 17
----
90

skipif mysql # not compatible
query I rowsort label-4093
SELECT 22 + + ( - CAST ( + COUNT ( DISTINCT - + 68 ) AS INTEGER ) ) + + 85 + + + COUNT ( * ) + - 17
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT DISTINCT - MIN( - - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT - MIN ( - - 43 )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4095
SELECT DISTINCT - 35 AS col1, + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-35
1

skipif mysql # not compatible
query II rowsort label-4095
SELECT DISTINCT - 35 AS col1, + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-35
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4096
SELECT DISTINCT 17 - + - COALESCE ( + 66, 31, - 0 * + 53 + + - 32 ) + - ( - ( + + CAST( - 71 AS SIGNED ) ) )
----
12

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT 17 - + - COALESCE ( + 66, 31, - 0 * + 53 + + - 32 ) + - ( - ( + + CAST ( - 71 AS INTEGER ) ) )
----
12

query II rowsort
SELECT DISTINCT 16 AS col2, - 98 AS col0
----
16
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT DISTINCT COUNT( * ) * + ( - - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT COUNT ( * ) * + ( - - 21 )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4099
SELECT ALL - ( + 8 ) DIV + COALESCE ( + MIN( DISTINCT 17 ), + + 8 ) AS col1, 85 AS col1
----
0
85

skipif mysql # not compatible
query II rowsort label-4099
SELECT ALL - ( + 8 ) / + COALESCE ( + MIN ( DISTINCT 17 ), + + 8 ) AS col1, 85 AS col1
----
0
85

query I rowsort
SELECT - 87 * - 36 AS col0
----
3132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4101
SELECT ALL COUNT( * ) AS col0, - COALESCE ( - COUNT( * ), COUNT( * ), + MAX( 75 ) ) * 18 DIV CASE - 4 WHEN + - 3 THEN NULL WHEN + MIN( DISTINCT - 71 ) DIV + - 3 THEN - - 85 WHEN + 12 * 1 * - 65 THEN + COUNT( * ) * + COUNT( * ) + - + 58 + - 28 WHEN - - COALESCE ( - - 37, + 69 + + + 5 ) THEN NULL ELSE + ( - 8 ) * - COUNT( * ) + - 85 + + 37 END * - 85 * 41 + ( 93 )
----
1
93

skipif mysql # not compatible
query II rowsort label-4101
SELECT ALL COUNT ( * ) AS col0, - COALESCE ( - COUNT ( * ), COUNT ( * ), + MAX ( 75 ) ) * 18 / CASE - 4 WHEN + - 3 THEN NULL WHEN + MIN ( DISTINCT - 71 ) / + - 3 THEN - - 85 WHEN + 12 * 1 * - 65 THEN + COUNT ( * ) * + COUNT ( * ) + - + 58 + - 28 WHEN - - COALESCE ( - - 37, + 69 + + + 5 ) THEN NULL ELSE + ( - 8 ) * - COUNT ( * ) + - 85 + + 37 END * - 85 * 41 + ( 93 )
----
1
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4102
SELECT COUNT( * ), + MIN( DISTINCT - 30 ) - + 9 AS col2
----
1
-39

skipif mysql # not compatible
query II rowsort label-4102
SELECT COUNT ( * ), + MIN ( DISTINCT - 30 ) - + 9 AS col2
----
1
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT - - 81 AS col1, - SUM( - 59 ) AS col1
----
81
59

skipif mysql # not compatible
query II rowsort label-4103
SELECT - - 81 AS col1, - SUM ( - 59 ) AS col1
----
81
59

query II rowsort
SELECT 30, - NULLIF ( - + 95, - 41 ) * + 62 * 26 AS col2
----
30
153140

onlyif mysql # aggregate syntax: 
query II rowsort label-4105
SELECT 55 AS col1, - COUNT( * )
----
55
-1

skipif mysql # not compatible
query II rowsort label-4105
SELECT 55 AS col1, - COUNT ( * )
----
55
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4106
SELECT ALL 87 AS col0, - COUNT( * ) AS col2
----
87
-1

skipif mysql # not compatible
query II rowsort label-4106
SELECT ALL 87 AS col0, - COUNT ( * ) AS col2
----
87
-1

query II rowsort
SELECT ALL + 86 col1, - 81 AS col1
----
86
-81

query I rowsort
SELECT ALL - ( + - 13 ) col0
----
13

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4109
SELECT ALL + 28 * - + 32 * + + CAST( + 33 AS DECIMAL ) + + 22 - - ( - CAST( NULL AS SIGNED ) ) * ( 85 ) + + - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL + 28 * - + 32 * + + CAST ( + 33 AS REAL ) + + 22 - - ( - CAST ( NULL AS INTEGER ) ) * ( 85 ) + + - 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT ( MIN( DISTINCT + - 77 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-4110
SELECT ( MIN ( DISTINCT + - 77 ) )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4111
SELECT ALL + + 38 * + 25 + 83 * + MIN( DISTINCT - + 67 ) * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL + + 38 * + 25 + 83 * + MIN ( DISTINCT - + 67 ) * - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - ( 21 ) * 43 + + - 71 + 25 col0
----
-949

query I rowsort
SELECT - 12 + - + 70
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT ALL + MIN( + - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL + MIN ( + - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL - + MAX( - + 29 ) + + 92 - - 10 * 16 * + 1 * + 9 * - + COUNT( DISTINCT - 22 ) AS col0
----
-1319

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL - + MAX ( - + 29 ) + + 92 - - 10 * 16 * + 1 * + 9 * - + COUNT ( DISTINCT - 22 ) AS col0
----
-1319

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT + ( + 15 ) - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4116
SELECT + ( + 15 ) - COUNT ( * )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4117
SELECT + 34 DIV - 32 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4117
SELECT + 34 / - 32 AS col0
----
-1

query II rowsort
SELECT - 67 AS col1, - 43 AS col1
----
-67
-43

query I rowsort
SELECT ( + 47 ) * - + 13 AS col0
----
-611

query I rowsort
SELECT + 61 + + 5 * - 43 AS col2
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL 38 * + - ( + + 34 ) + - COUNT( * )
----
-1293

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL 38 * + - ( + + 34 ) + - COUNT ( * )
----
-1293

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4122
SELECT DISTINCT 47 * - - 82 + COUNT( * ) + + + 46 - 2 * + 33 DIV + COALESCE ( - + 1, - - 30 * - 86, + 32 ) AS col1
----
3967

skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT 47 * - - 82 + COUNT ( * ) + + + 46 - 2 * + 33 / + COALESCE ( - + 1, - - 30 * - 86, + 32 ) AS col1
----
3967

query II rowsort
SELECT ALL - COALESCE ( + 97, + - 76 ) AS col0, 96 AS col0
----
-97
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4124
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * - COUNT( + - 53 ) + - + ( + + 52 ) + - COUNT( * ) * - + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( + - 53 ) + - + ( + + 52 ) + - COUNT ( * ) * - + 60
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4125
SELECT DISTINCT 3 * - 91 + + NULLIF ( + COALESCE ( + COALESCE ( + 77, - 48 ), COUNT( * ) + + COALESCE ( - 74, - - 97 DIV - - 11 DIV + COALESCE ( + ( 71 ), 31 + + - ( - + 30 ), + - ( + ( + + 49 ) ) ) DIV 89 + MIN( ALL + + 56 ) + 66 ), + COUNT( ALL + 0 ) - + 0 + + 56 * 8 ), - 74 + - 23 * - ( + 58 ) + + COUNT( * ) + - 34 - - - 58 * - CASE 38 * - 77 WHEN + 62 DIV 79 THEN NULL ELSE - NULLIF ( 46, 18 ) END ) DIV 36
----
-271

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT 3 * - 91 + + NULLIF ( + COALESCE ( + COALESCE ( + 77, - 48 ), COUNT ( * ) + + COALESCE ( - 74, - - 97 / - - 11 / + COALESCE ( + ( 71 ), 31 + + - ( - + 30 ), + - ( + ( + + 49 ) ) ) / 89 + MIN ( ALL + + 56 ) + 66 ), + COUNT ( ALL + 0 ) - + 0 + + 56 * 8 ), - 74 + - 23 * - ( + 58 ) + + COUNT ( * ) + - 34 - - - 58 * - CASE 38 * - 77 WHEN + 62 / 79 THEN NULL ELSE - NULLIF ( 46, 18 ) END ) / 36
----
-271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT CAST( NULL AS SIGNED ) + - 83 + - ( + 7 ) * - - 92 * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT CAST ( NULL AS INTEGER ) + - 83 + - ( + 7 ) * - - 92 * + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL COALESCE ( - - 68, - COUNT( - 5 ) + + 4 + - - 48 ) * 34 * 70 + ( - + 7 ) * + + 15 AS col1
----
161735

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL COALESCE ( - - 68, - COUNT ( - 5 ) + + 4 + - - 48 ) * 34 * 70 + ( - + 7 ) * + + 15 AS col1
----
161735

query I rowsort
SELECT DISTINCT - 5 * + + 99
----
-495

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4129
SELECT DISTINCT + 51 - 27 - 4 * + COUNT( * ) + + 97 + - - 53 DIV + 8, 72 + + + COUNT( * ) col1
----
123
73

skipif mysql # not compatible
query II rowsort label-4129
SELECT DISTINCT + 51 - 27 - 4 * + COUNT ( * ) + + 97 + - - 53 / + 8, 72 + + + COUNT ( * ) col1
----
123
73

query I rowsort
SELECT DISTINCT 99 - - COALESCE ( + + 17, + 72, 49 )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT - 34 * COUNT( * ) * - 29
----
986

skipif mysql # not compatible
query I rowsort label-4131
SELECT - 34 * COUNT ( * ) * - 29
----
986

query I rowsort
SELECT DISTINCT 63 - + - 40 col2
----
103

query I rowsort
SELECT DISTINCT - ( - 93 )
----
93

query I rowsort
SELECT DISTINCT - 90 * - + 99 col1
----
8910

onlyif mysql # aggregate syntax: 
query II rowsort label-4135
SELECT DISTINCT - 79 * 15 AS col0, - COUNT( * ) * 58
----
-1185
-58

skipif mysql # not compatible
query II rowsort label-4135
SELECT DISTINCT - 79 * 15 AS col0, - COUNT ( * ) * 58
----
-1185
-58

query I rowsort
SELECT + 43 + - 94 AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT - + CAST( 62 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-4137
SELECT - + CAST ( 62 AS INTEGER )
----
-62

query I rowsort
SELECT ALL - 96 + + - 25 AS col0
----
-121

query I rowsort
SELECT + + 16 * + 18 * 69 AS col2
----
19872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4140
SELECT - + CAST( NULL AS SIGNED ) + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT - + CAST ( NULL AS INTEGER ) + + 3
----
NULL

query I rowsort
SELECT DISTINCT + 77 + - 55 - - - 44 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL - 55 + NULLIF ( 44, COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL - 55 + NULLIF ( 44, COUNT ( * ) )
----
-11

query I rowsort
SELECT - 59 * - + 87
----
5133

query I rowsort
SELECT ALL 29 + - - 58
----
87

query II rowsort
SELECT - 76 col2, 99
----
-76
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT DISTINCT MAX( DISTINCT 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT MAX ( DISTINCT 66 ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4147
SELECT ALL - 99 + CAST( NULL AS DECIMAL ) + + MAX( DISTINCT + 76 ) + - - CASE CAST( - 12 AS SIGNED ) WHEN - - CAST( + 37 AS DECIMAL ) - - 12 THEN 14 / + 72 WHEN - 19 * - - 54 + + 64 THEN NULL ELSE - + 42 + - 36 END * + + 94 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL - 99 + CAST ( NULL AS REAL ) + + MAX ( DISTINCT + 76 ) + - - CASE CAST ( - 12 AS INTEGER ) WHEN - - CAST ( + 37 AS REAL ) - - 12 THEN 14 / + 72 WHEN - 19 * - - 54 + + 64 THEN NULL ELSE - + 42 + - 36 END * + + 94 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4148
SELECT + 48 - ( 73 ) * + ( 39 ) * + 59 * + 60 * - COUNT( * ) AS col2, CAST( NULL AS SIGNED )
----
10078428
NULL

skipif mysql # not compatible
query II rowsort label-4148
SELECT + 48 - ( 73 ) * + ( 39 ) * + 59 * + 60 * - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER )
----
10078428
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4149
SELECT ALL + NULLIF ( 70, - 4 * - - CAST( NULL AS SIGNED ) + - 55 )
----
70

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL + NULLIF ( 70, - 4 * - - CAST ( NULL AS INTEGER ) + - 55 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT - 48 + + COALESCE ( + SUM( - + 55 ), ( + 67 ), 43 )
----
-103

skipif mysql # not compatible
query I rowsort label-4150
SELECT - 48 + + COALESCE ( + SUM ( - + 55 ), ( + 67 ), 43 )
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-4151
SELECT - 6 DIV 3 col1
----
-2

skipif mysql # not compatible
query I rowsort label-4151
SELECT - 6 / 3 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT - COUNT( * ) * 27 * + COUNT( * ) * - MIN( ALL 14 ) * + 80
----
30240

skipif mysql # not compatible
query I rowsort label-4152
SELECT - COUNT ( * ) * 27 * + COUNT ( * ) * - MIN ( ALL 14 ) * + 80
----
30240

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ( MIN( ALL 50 ) )
----
50

skipif mysql # not compatible
query I rowsort label-4153
SELECT ( MIN ( ALL 50 ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL + MAX( ALL + + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL + MAX ( ALL + + 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT - 12 + - 60 * - + COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4155
SELECT - 12 + - 60 * - + COUNT ( * ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4156
SELECT - 88 * + - 11 * 49 AS col1, - MAX( ALL - 32 )
----
47432
32

skipif mysql # not compatible
query II rowsort label-4156
SELECT - 88 * + - 11 * 49 AS col1, - MAX ( ALL - 32 )
----
47432
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT NULLIF ( 88, + 44 ) * - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT NULLIF ( 88, + 44 ) * - COUNT ( * )
----
-88

query II rowsort
SELECT ALL + 86 AS col1, - 45 + - 98 AS col2
----
86
-143

query II rowsort
SELECT ALL + 57 col1, - 11 AS col2
----
57
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4160
SELECT + 40 DIV + + 58
----
0

skipif mysql # not compatible
query I rowsort label-4160
SELECT + 40 / + + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT - 52 * - 11 * + - MAX( 6 )
----
-3432

skipif mysql # not compatible
query I rowsort label-4161
SELECT - 52 * - 11 * + - MAX ( 6 )
----
-3432

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT DISTINCT + NULLIF ( - ( 75 ), + 40 ) * + 21 + - - COUNT( * )
----
-1574

skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT + NULLIF ( - ( 75 ), + 40 ) * + 21 + - - COUNT ( * )
----
-1574

query I rowsort
SELECT ALL - 65 * + 73 AS col0
----
-4745

query I rowsort
SELECT + 34 + + 64
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4165
SELECT DISTINCT - 94 * 25 * + 74 * + + 36 - - + 34 / - CAST( NULL AS SIGNED ) + 55 - + - 69 AS col0, + 4
----
NULL
4

skipif mysql # not compatible
query II rowsort label-4165
SELECT DISTINCT - 94 * 25 * + 74 * + + 36 - - + 34 / - CAST ( NULL AS INTEGER ) + 55 - + - 69 AS col0, + 4
----
NULL
4

query I rowsort
SELECT DISTINCT - - CASE - - 71 WHEN 62 THEN + + 47 + + 9 END * - 48 * + 54
----
NULL

query II rowsort
SELECT ALL + 0, 62 AS col1
----
0
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4168
SELECT ALL - CAST( - + 29 AS SIGNED ) * 6 - 74
----
100

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL - CAST ( - + 29 AS INTEGER ) * 6 - 74
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-4169
SELECT DISTINCT - - 58 * + + 77 + + + 66, + COUNT( ALL + 60 ) * + 45 + - 15 + + 9 * 14 * - + 0 col0
----
4532
30

skipif mysql # not compatible
query II rowsort label-4169
SELECT DISTINCT - - 58 * + + 77 + + + 66, + COUNT ( ALL + 60 ) * + 45 + - 15 + + 9 * 14 * - + 0 col0
----
4532
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT ALL + CAST( + 86 AS SIGNED ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL + CAST ( + 86 AS INTEGER ) AS col0
----
86

query I rowsort
SELECT + - 6 * + 11
----
-66

query II rowsort
SELECT ALL + 20 * + + 85 + + + 70 + 75 col2, NULLIF ( 40, - - 21 )
----
1845
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT 95 * + + MAX( DISTINCT + 51 ) / + - CASE + 6 WHEN + - 6 THEN - - 69 END - SUM( + + 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4173
SELECT 95 * + + MAX ( DISTINCT + 51 ) / + - CASE + 6 WHEN + - 6 THEN - - 69 END - SUM ( + + 56 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4174
SELECT - + 66 AS col0, - 77 DIV - 75
----
-66
1

skipif mysql # not compatible
query II rowsort label-4174
SELECT - + 66 AS col0, - 77 / - 75
----
-66
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4175
SELECT ALL - 50 DIV - 95 + - 61 - - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL - 50 / - 95 + - 61 - - COUNT ( * )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4176
SELECT + 7 DIV 52 * 57 + - 36 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-4176
SELECT + 7 / 52 * 57 + - 36 AS col1
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-4177
SELECT ALL - 18 AS col2, 8 DIV - 18
----
-18
0

skipif mysql # not compatible
query II rowsort label-4177
SELECT ALL - 18 AS col2, 8 / - 18
----
-18
0

query I rowsort
SELECT DISTINCT + 17 * - 75 AS col0
----
-1275

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT + - 54 - + 87 * COUNT( ALL + 74 ) AS col1
----
-141

skipif mysql # not compatible
query I rowsort label-4179
SELECT + - 54 - + 87 * COUNT ( ALL + 74 ) AS col1
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4180
SELECT + 35, + CAST( NULL AS SIGNED ) AS col1
----
35
NULL

skipif mysql # not compatible
query II rowsort label-4180
SELECT + 35, + CAST ( NULL AS INTEGER ) AS col1
----
35
NULL

query I rowsort
SELECT + + 79 - 61 + + 99 * CASE - + 6 WHEN - 51 THEN + 9 END - + COALESCE ( + + ( - - 95 ), + 91 )
----
NULL

query I rowsort
SELECT ALL + 73 + 53 AS col2
----
126

query I rowsort
SELECT DISTINCT 22 * + + 94
----
2068

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL - ( - 98 ) + ( - 55 ) + MAX( DISTINCT + ( + 0 ) )
----
43

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL - ( - 98 ) + ( - 55 ) + MAX ( DISTINCT + ( + 0 ) )
----
43

query I rowsort
SELECT ALL 43 + 50 * - + 60
----
-2957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT + CAST( + 61 AS SIGNED ) * + 11 col2
----
671

skipif mysql # not compatible
query I rowsort label-4186
SELECT + CAST ( + 61 AS INTEGER ) * + 11 col2
----
671

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT - 30 - - - COUNT( * ) + - 96
----
-127

skipif mysql # not compatible
query I rowsort label-4187
SELECT - 30 - - - COUNT ( * ) + - 96
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4188
SELECT DISTINCT MIN( ALL + CAST( NULL AS SIGNED ) ), 97 + - 23 col1
----
NULL
74

skipif mysql # not compatible
query II rowsort label-4188
SELECT DISTINCT MIN ( ALL + CAST ( NULL AS INTEGER ) ), 97 + - 23 col1
----
NULL
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT - 7 - - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-4189
SELECT - 7 - - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ALL COALESCE ( + + 26, + COUNT( * ) ) col1
----
26

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL COALESCE ( + + 26, + COUNT ( * ) ) col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT + MAX( DISTINCT 6 ) + 65 col2
----
71

skipif mysql # not compatible
query I rowsort label-4191
SELECT + MAX ( DISTINCT 6 ) + 65 col2
----
71

query I rowsort
SELECT - 71 + - - 27 * 7 * - - 68 + 7 AS col1
----
12788

query I rowsort
SELECT ALL + ( - 14 ) AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4194
SELECT 16 + + CASE + NULLIF ( 76, + 36 + 31 * - + COUNT( * ) ) WHEN - SUM( ALL + CAST( + 30 AS SIGNED ) ) THEN NULL WHEN + 66 * + + 94 + - 95 * + - 75 * NULLIF ( + 29, - - 31 ) THEN 37 * + 36 + - ( + 76 ) / - COUNT( * ) WHEN 32 + + 40 THEN 91 ELSE NULL END - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4194
SELECT 16 + + CASE + NULLIF ( 76, + 36 + 31 * - + COUNT ( * ) ) WHEN - SUM ( ALL + CAST ( + 30 AS INTEGER ) ) THEN NULL WHEN + 66 * + + 94 + - 95 * + - 75 * NULLIF ( + 29, - - 31 ) THEN 37 * + 36 + - ( + 76 ) / - COUNT ( * ) WHEN 32 + + 40 THEN 91 ELSE NULL END - 72
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4195
SELECT ALL + COALESCE ( - 41, + - 7, + 49 + - 13 ) * + 52 * + 15 AS col0, + 40 + 0 - - + SUM( + 6 ) * - + NULLIF ( - MIN( DISTINCT + 79 ), - + 87 * + 97 - 28 )
----
-31980
514

skipif mysql # not compatible
query II rowsort label-4195
SELECT ALL + COALESCE ( - 41, + - 7, + 49 + - 13 ) * + 52 * + 15 AS col0, + 40 + 0 - - + SUM ( + 6 ) * - + NULLIF ( - MIN ( DISTINCT + 79 ), - + 87 * + 97 - 28 )
----
-31980
514

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL SUM( + + 93 ) * ( 73 ) AS col0
----
6789

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL SUM ( + + 93 ) * ( 73 ) AS col0
----
6789

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4197
SELECT - 12 / 33 + + 1 + - 81 * + 80 * - 52 * + 68 + 82 * + CAST( NULL AS SIGNED ) * + 8 + + + SUM( DISTINCT - 87 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT - 12 / 33 + + 1 + - 81 * + 80 * - 52 * + 68 + 82 * + CAST ( NULL AS INTEGER ) * + 8 + + + SUM ( DISTINCT - 87 ) AS col1
----
NULL

query I rowsort
SELECT 47 * 66
----
3102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4199
SELECT - CAST( NULL AS SIGNED ) * + 82 * + + ( - 63 ) + + CASE + 99 WHEN - + COUNT( * ) THEN + 63 * + 14 * + COUNT( * ) + COUNT( * ) + 48 - + + AVG ( - 65 ) + 98 / - NULLIF ( ( + - 85 ), + 60 ) / 29 / + 21 * + 24 * + 48 / + 4 END + - - 77 AS col1, - 60
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-4199
SELECT - CAST ( NULL AS INTEGER ) * + 82 * + + ( - 63 ) + + CASE + 99 WHEN - + COUNT ( * ) THEN + 63 * + 14 * + COUNT ( * ) + COUNT ( * ) + 48 - + + AVG ( - 65 ) + 98 / - NULLIF ( ( + - 85 ), + 60 ) / 29 / + 21 * + 24 * + 48 / + 4 END + - - 77 AS col1, - 60
----
NULL
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4200
SELECT DISTINCT + + 99 DIV - 52 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT + + 99 / - 52 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4201
SELECT DISTINCT + ( + COUNT( * ) ) + + 62 DIV + ( + 73 ) * - + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT + ( + COUNT ( * ) ) + + 62 / + ( + 73 ) * - + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL - 4 + + 10
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4203
SELECT ( 47 ) / + - 9 + CASE - - COUNT( * ) WHEN - + 55 * - MIN( - 39 ) + + 32 THEN - CAST( NULL AS DECIMAL ) END * - ( 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT ( 47 ) / + - 9 + CASE - - COUNT ( * ) WHEN - + 55 * - MIN ( - 39 ) + + 32 THEN - CAST ( NULL AS REAL ) END * - ( 45 )
----
NULL

query I rowsort
SELECT ALL + - 32 + 64 + - 0 + + 72 * + + 10 * + - ( + 75 ) AS col1
----
-53968

query I rowsort
SELECT 65 * + 54 - - 73
----
3583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4206
SELECT COUNT( * ) * 69 + + ( - 31 ) col2, CAST( NULL AS SIGNED )
----
38
NULL

skipif mysql # not compatible
query II rowsort label-4206
SELECT COUNT ( * ) * 69 + + ( - 31 ) col2, CAST ( NULL AS INTEGER )
----
38
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4207
SELECT DISTINCT - - 19 + + 65 / + - CAST( NULL AS SIGNED ) / + 42 * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT - - 19 + + 65 / + - CAST ( NULL AS INTEGER ) / + 42 * + 14
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 71, + 40 ) AS col1
----
71

query I rowsort
SELECT ALL + - ( 15 ) * 66
----
-990

onlyif mysql # aggregate syntax: 
query II rowsort label-4210
SELECT + 28 + ( + SUM( - 11 ) ), - 56 col2
----
17
-56

skipif mysql # not compatible
query II rowsort label-4210
SELECT + 28 + ( + SUM ( - 11 ) ), - 56 col2
----
17
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT ALL + + 77 * 66 * - 31 - COUNT( * ) AS col1
----
-157543

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL + + 77 * 66 * - 31 - COUNT ( * ) AS col1
----
-157543

query I rowsort
SELECT ALL + COALESCE ( - 58, - 55 ) col1
----
-58

query I rowsort
SELECT ALL + + 52 - - + 42
----
94

query I rowsort
SELECT 84 * - - 9
----
756

query I rowsort
SELECT - ( + 68 ) AS col1
----
-68

query I rowsort
SELECT DISTINCT + + 2 - - + 94 col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL - MAX( + ( + 53 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL - MAX ( + ( + 53 ) )
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4218
SELECT ALL COUNT( * ) DIV + + MIN( DISTINCT 84 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL COUNT ( * ) / + + MIN ( DISTINCT 84 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT DISTINCT MIN( DISTINCT 46 ) * + 59
----
2714

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT MIN ( DISTINCT 46 ) * + 59
----
2714

onlyif mysql # DIV for integer division: 
query I rowsort label-4220
SELECT ALL + 64 DIV - 23 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL + 64 / - 23 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4221
SELECT DISTINCT 88 AS col1, COALESCE ( - - 43, - + CASE + 88 WHEN + 77 THEN - + ( + 15 ) * - - 82 + - 34 * - + 10 + - - CASE - - 13 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN COALESCE ( - 12, + 25, - NULLIF ( - CAST( NULL AS SIGNED ), + CASE CAST( NULL AS SIGNED ) WHEN + 33 THEN NULL WHEN - COUNT( * ) / 16 THEN COALESCE ( - 92, CAST( - - 49 AS SIGNED ), ( - 64 ), 88 + + 33 / COUNT( * ) ) - AVG ( DISTINCT - 6 ) / CASE + 85 WHEN + 11 + - - ( 64 ) * 43 THEN - MIN( ALL + 43 ) END END ) ) + - ( - ( - 66 ) ) * 45 THEN NULL WHEN 86 + 49 THEN NULL ELSE + 90 END END * - 39 ) AS col2
----
88
43

skipif mysql # not compatible
query II rowsort label-4221
SELECT DISTINCT 88 AS col1, COALESCE ( - - 43, - + CASE + 88 WHEN + 77 THEN - + ( + 15 ) * - - 82 + - 34 * - + 10 + - - CASE - - 13 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN COALESCE ( - 12, + 25, - NULLIF ( - CAST ( NULL AS INTEGER ), + CASE CAST ( NULL AS INTEGER ) WHEN + 33 THEN NULL WHEN - COUNT ( * ) / 16 THEN COALESCE ( - 92, CAST ( - - 49 AS INTEGER ), ( - 64 ), 88 + + 33 / COUNT ( * ) ) - AVG ( DISTINCT - 6 ) / CASE + 85 WHEN + 11 + - - ( 64 ) * 43 THEN - MIN ( ALL + 43 ) END END ) ) + - ( - ( - 66 ) ) * 45 THEN NULL WHEN 86 + 49 THEN NULL ELSE + 90 END END * - 39 ) AS col2
----
88
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT DISTINCT COUNT( * ) * - NULLIF ( - 34, + 9 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT COUNT ( * ) * - NULLIF ( - 34, + 9 ) AS col1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4223
SELECT CAST( NULL AS SIGNED ) / + CAST( + + 19 AS SIGNED ), + CASE 29 WHEN 95 THEN + 75 * - ( + 3 ) ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4223
SELECT CAST ( NULL AS INTEGER ) / + CAST ( + + 19 AS INTEGER ), + CASE 29 WHEN 95 THEN + 75 * - ( + 3 ) ELSE NULL END
----
NULL
NULL

query I rowsort
SELECT 96 - - 9
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT ALL 23 DIV + 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL 23 / + 59 AS col1
----
0

query II rowsort
SELECT 47 + - ( - 45 ) AS col2, 35
----
92
35

query I rowsort
SELECT ALL ( + 73 ) + - + 50 AS col2
----
23

query I rowsort
SELECT ALL + + 96 * + 14 + + - NULLIF ( - 28, - COALESCE ( - + 74, + 85 ) * - 44 - - ( + + 62 ) ) * 69 AS col0
----
3276

query I rowsort
SELECT - 96 * - 0 - + 74 AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT ALL ( COUNT( * ) ) + ( + COUNT( * ) ) - - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL ( COUNT ( * ) ) + ( + COUNT ( * ) ) - - COUNT ( * ) AS col1
----
3

query I rowsort
SELECT ALL 70 + + 12 AS col0
----
82

query I rowsort
SELECT DISTINCT 84 + + - 86 col2
----
-2

query I rowsort
SELECT - CASE - + ( + - AVG ( - + 10 ) ) WHEN - 81 THEN + 18 ELSE NULL END + + 14 + 78
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4234
SELECT ALL + + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT + 62 * + - 14 * 47 AS col1, 20
----
-40796
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + - ( - 6 ) * + - 71 * COALESCE ( + 87, - - 0, + 65 * + ( + + ( + 72 ) ) ) + - - MIN( 88 )
----
-36974

skipif mysql # not compatible
query I rowsort label-4236
SELECT + - ( - 6 ) * + - 71 * COALESCE ( + 87, - - 0, + 65 * + ( + + ( + 72 ) ) ) + - - MIN ( 88 )
----
-36974

query I rowsort
SELECT + - ( ( - + 82 ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL + 17 + - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL + 17 + - COUNT ( * )
----
16

query II rowsort
SELECT 29 * - + 55 + + + 29 AS col0, + 8
----
-1566
8

query I rowsort
SELECT DISTINCT - + 77 AS col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4241
SELECT DISTINCT + + 50 - - COUNT( * ) - - 31 + ( - - COUNT( * ) ) * 51 DIV NULLIF ( - COUNT( * ), - + 67 ) * + 25, + 74 + + 86 AS col2
----
-1193
160

skipif mysql # not compatible
query II rowsort label-4241
SELECT DISTINCT + + 50 - - COUNT ( * ) - - 31 + ( - - COUNT ( * ) ) * 51 / NULLIF ( - COUNT ( * ), - + 67 ) * + 25, + 74 + + 86 AS col2
----
-1193
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT + + 24 * - ( - 40 ) + - COUNT( * ) AS col2
----
959

skipif mysql # not compatible
query I rowsort label-4242
SELECT + + 24 * - ( - 40 ) + - COUNT ( * ) AS col2
----
959

query II rowsort
SELECT DISTINCT + 42, 5 - + 84 AS col2
----
42
-79

query I rowsort
SELECT ALL - 7 * 71 - 83 * + 77 AS col0
----
-6888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4245
SELECT - CASE + CAST( 10 AS DECIMAL ) WHEN - ( + + CASE - - 53 WHEN - COUNT( * ) + + ( COUNT( ALL - 64 ) ) + + 27 + + - 55 THEN - 54 ELSE NULL END ) * - 69 / COALESCE ( 2, - COALESCE ( 72, - 55 ) * ( + 88 ) / 6 + - MAX( + 0 ) + 30, - 2, 50 ) THEN - 10 WHEN 92 THEN COUNT( * ) * CAST( + 63 AS SIGNED ) + + 7 WHEN + 83 + - 32 * - + AVG ( ALL + - CAST( NULL AS SIGNED ) ) THEN 20 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT - CASE + CAST ( 10 AS REAL ) WHEN - ( + + CASE - - 53 WHEN - COUNT ( * ) + + ( COUNT ( ALL - 64 ) ) + + 27 + + - 55 THEN - 54 ELSE NULL END ) * - 69 / COALESCE ( 2, - COALESCE ( 72, - 55 ) * ( + 88 ) / 6 + - MAX ( + 0 ) + 30, - 2, 50 ) THEN - 10 WHEN 92 THEN COUNT ( * ) * CAST ( + 63 AS INTEGER ) + + 7 WHEN + 83 + - 32 * - + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) THEN 20 END AS col0
----
NULL

query I rowsort
SELECT ALL + - 49 * + CASE - 45 WHEN - 84 THEN - 32 ELSE NULL END + + 19 AS col2
----
NULL

query II rowsort
SELECT ALL + 68 * - + NULLIF ( - 5, + 41 ) AS col1, - 51 AS col2
----
340
-51

query I rowsort
SELECT 87 * 38
----
3306

query II rowsort
SELECT - 23 col2, + 21 * - - 95 AS col0
----
-23
1995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4250
SELECT COUNT( * ) + 57 AS col0, - COUNT( * ) + 8 + + 30 + + 17 * ( - + CAST( NULL AS SIGNED ) ) / + 28 + - 32 col1
----
58
NULL

skipif mysql # not compatible
query II rowsort label-4250
SELECT COUNT ( * ) + 57 AS col0, - COUNT ( * ) + 8 + + 30 + + 17 * ( - + CAST ( NULL AS INTEGER ) ) / + 28 + - 32 col1
----
58
NULL

query II rowsort
SELECT ALL 83 AS col1, 69
----
83
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4252
SELECT ALL 34 AS col0, COUNT( * ) + + 42 * - - 8 AS col0
----
34
337

skipif mysql # not compatible
query II rowsort label-4252
SELECT ALL 34 AS col0, COUNT ( * ) + + 42 * - - 8 AS col0
----
34
337

onlyif mysql # aggregate syntax: 
query II rowsort label-4253
SELECT ALL COUNT( * ) AS col0, + 89 AS col1
----
1
89

skipif mysql # not compatible
query II rowsort label-4253
SELECT ALL COUNT ( * ) AS col0, + 89 AS col1
----
1
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4254
SELECT DISTINCT CASE - COUNT( * ) WHEN - 41 THEN + 11 WHEN CAST( - 56 AS SIGNED ) / - ( 67 ) + + ( ( - 46 ) ) THEN - 43 * - 68 - 91 * - - ( - + 89 ) ELSE - ( 9 ) * + 19 / COALESCE ( + 79, 85 - - - 77 * - - 34 ) + COUNT( * ) + - 97 + - 34 + - + 43 - 42 + CASE - - COUNT( * ) WHEN 95 THEN + - CAST( - COALESCE ( + COUNT( DISTINCT - - 9 ), COALESCE ( 18, COUNT( * ) ) * 6 + CAST( NULL AS SIGNED ) * + 43, 97, 23 + + COUNT( * ) / CAST( COUNT( DISTINCT 56 ) * 77 + + 81 AS SIGNED ) ) AS SIGNED ) + - 58 END / - 32 * - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT CASE - COUNT ( * ) WHEN - 41 THEN + 11 WHEN CAST ( - 56 AS INTEGER ) / - ( 67 ) + + ( ( - 46 ) ) THEN - 43 * - 68 - 91 * - - ( - + 89 ) ELSE - ( 9 ) * + 19 / COALESCE ( + 79, 85 - - - 77 * - - 34 ) + COUNT ( * ) + - 97 + - 34 + - + 43 - 42 + CASE - - COUNT ( * ) WHEN 95 THEN + - CAST ( - COALESCE ( + COUNT ( DISTINCT - - 9 ), COALESCE ( 18, COUNT ( * ) ) * 6 + CAST ( NULL AS INTEGER ) * + 43, 97, 23 + + COUNT ( * ) / CAST ( COUNT ( DISTINCT 56 ) * 77 + + 81 AS INTEGER ) ) AS INTEGER ) + - 58 END / - 32 * - 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT + 24 * - - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4255
SELECT + 24 * - - COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT - MAX( - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-4256
SELECT - MAX ( - 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL CASE - 27 WHEN + + 87 + - COUNT( * ) * + - COUNT( + - 7 ) THEN + 57 WHEN + + 61 - - + 17 THEN - 94 / - CASE 97 WHEN + 69 + + 1 THEN + COUNT( * ) ELSE NULL END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL CASE - 27 WHEN + + 87 + - COUNT ( * ) * + - COUNT ( + - 7 ) THEN + 57 WHEN + + 61 - - + 17 THEN - 94 / - CASE 97 WHEN + 69 + + 1 THEN + COUNT ( * ) ELSE NULL END ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 12 + - 70 AS col2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4259
SELECT DISTINCT 82 DIV 39 * - 72 AS col2
----
-144

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT 82 / 39 * - 72 AS col2
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT + 94 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT + 94 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT ALL 99 * COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL 99 * COUNT ( * )
----
99

query I rowsort
SELECT + 81 + 45 AS col2
----
126

query I rowsort
SELECT DISTINCT - 73 * - + 53 + + 43
----
3912

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT DISTINCT - COUNT( + NULLIF ( + + 77, 69 ) ) * 48 - + 59 + 7 + - ( SUM( ALL - + 40 ) ) * - 92 * + - 10
----
36700

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT - COUNT ( + NULLIF ( + + 77, 69 ) ) * 48 - + 59 + 7 + - ( SUM ( ALL - + 40 ) ) * - 92 * + - 10
----
36700

onlyif mysql # aggregate syntax: 
query II rowsort label-4265
SELECT + COUNT( * ), 54 - + 88 AS col1
----
1
-34

skipif mysql # not compatible
query II rowsort label-4265
SELECT + COUNT ( * ), 54 - + 88 AS col1
----
1
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4266
SELECT ALL + ( + - 79 ) * + + ( CAST( + ( 98 ) AS SIGNED ) ) * - COUNT( * ) + + 49 - COUNT( * ) + 58 DIV - 74 + - 29 * - 66 - 18 AS col0
----
9686

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL + ( + - 79 ) * + + ( CAST ( + ( 98 ) AS INTEGER ) ) * - COUNT ( * ) + + 49 - COUNT ( * ) + 58 / - 74 + - 29 * - 66 - 18 AS col0
----
9686

query I rowsort
SELECT DISTINCT 98 * + 89
----
8722

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT - 38 * NULLIF ( 92, + ( + - COUNT( * ) ) ) + - 72 AS col2
----
-3568

skipif mysql # not compatible
query I rowsort label-4268
SELECT - 38 * NULLIF ( 92, + ( + - COUNT ( * ) ) ) + - 72 AS col2
----
-3568

onlyif mysql # DIV for integer division: 
query I rowsort label-4269
SELECT + 56 DIV + 70 + - - 12
----
12

skipif mysql # not compatible
query I rowsort label-4269
SELECT + 56 / + 70 + - - 12
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4270
SELECT + + 2 DIV ( - 24 )
----
0

skipif mysql # not compatible
query I rowsort label-4270
SELECT + + 2 / ( - 24 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT DISTINCT 95 DIV - 23 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT 95 / - 23 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT ALL 89 * + 5 * - ( + CASE - COUNT( * ) WHEN COUNT( * ) / - 7 THEN 1 * - - 58 + + 74 WHEN - 65 THEN COALESCE ( - 61, - 10 - - COUNT( * ), - 97 * + 57, - 80 / + 88 + + CAST( NULL AS SIGNED ) ) * ( - - 63 ) ELSE NULL END ) + 93 + 20 - + + 24 * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL 89 * + 5 * - ( + CASE - COUNT ( * ) WHEN COUNT ( * ) / - 7 THEN 1 * - - 58 + + 74 WHEN - 65 THEN COALESCE ( - 61, - 10 - - COUNT ( * ), - 97 * + 57, - 80 / + 88 + + CAST ( NULL AS INTEGER ) ) * ( - - 63 ) ELSE NULL END ) + 93 + 20 - + + 24 * 15
----
NULL

query II rowsort
SELECT + 52 AS col2, - 65 * 7 AS col2
----
52
-455

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4274
SELECT + ( - 18 ) * + 41 + - - CAST( CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT + ( - 18 ) * + 41 + - - CAST ( CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query II rowsort
SELECT ALL + 47, 71 AS col1
----
47
71

query II rowsort
SELECT + 54 * 92 AS col2, 72 + 25 * 69 AS col1
----
4968
1797

query I rowsort
SELECT + + 6 + - 70 * - - 61 * - + 19 * 46 * + 52 AS col0
----
194062966

query II rowsort
SELECT - + 0 - + - 23 col2, 13
----
23
13

query I rowsort
SELECT DISTINCT 2 * + 79 + + 2
----
160

onlyif mysql # DIV for integer division: 
query II rowsort label-4280
SELECT + ( - 91 ) AS col0, 96 DIV + 97 * + ( + 74 ) AS col2
----
-91
0

skipif mysql # not compatible
query II rowsort label-4280
SELECT + ( - 91 ) AS col0, 96 / + 97 * + ( + 74 ) AS col2
----
-91
0

query I rowsort
SELECT - - 25 + + ( - 58 ) AS col1
----
-33

query I rowsort
SELECT + + 56 * NULLIF ( - 99, + 9 ) AS col2
----
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT + CASE 7 WHEN - + COUNT( * ) * + COUNT( * ) THEN 98 - - 46 WHEN + 16 - + NULLIF ( + - 92, - + 52 + - 55 + - - 71 + - 7 ) THEN NULL END + + 62 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT + CASE 7 WHEN - + COUNT ( * ) * + COUNT ( * ) THEN 98 - - 46 WHEN + 16 - + NULLIF ( + - 92, - + 52 + - 55 + - - 71 + - 7 ) THEN NULL END + + 62 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT DISTINCT 68 * + COUNT( * ) * 82
----
5576

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT 68 * + COUNT ( * ) * 82
----
5576

query II rowsort
SELECT ALL - 5 AS col2, + 71 + + ( - 21 ) col0
----
-5
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT - ( NULLIF ( COUNT( * ), 91 * - - MIN( DISTINCT + 17 ) + - - 41 * + 30 * - 49 * ( - + 42 ) * + 58 + - 75 ) ) + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4286
SELECT - ( NULLIF ( COUNT ( * ), 91 * - - MIN ( DISTINCT + 17 ) + - - 41 * + 30 * - 49 * ( - + 42 ) * + 58 + - 75 ) ) + + COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4287
SELECT - 54 DIV - 33 AS col0, - 96
----
1
-96

skipif mysql # not compatible
query II rowsort label-4287
SELECT - 54 / - 33 AS col0, - 96
----
1
-96

query II rowsort
SELECT - 72 + - - 83 AS col2, 13 + - 13 col0
----
11
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4289
SELECT ALL ( ( + CASE - 42 WHEN 64 THEN NULL WHEN - 30 THEN + + CAST( + COUNT( * ) AS SIGNED ) WHEN - 49 * - 69 * - 32 * - 21 THEN - - NULLIF ( 23, + ( - + 49 ) ) END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL ( ( + CASE - 42 WHEN 64 THEN NULL WHEN - 30 THEN + + CAST ( + COUNT ( * ) AS INTEGER ) WHEN - 49 * - 69 * - 32 * - 21 THEN - - NULLIF ( 23, + ( - + 49 ) ) END ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT - 45 * + 67 + SUM( + 58 ) + 92 - - + 42 * - 70 AS col2
----
-5805

skipif mysql # not compatible
query I rowsort label-4290
SELECT - 45 * + 67 + SUM ( + 58 ) + 92 - - + 42 * - 70 AS col2
----
-5805

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL MIN( DISTINCT - 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL MIN ( DISTINCT - 90 ) AS col1
----
-90

query II rowsort
SELECT ALL ( + + 79 ) AS col1, + 68
----
79
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4293
SELECT + COUNT( * ) DIV - + 71 * + 77
----
0

skipif mysql # not compatible
query I rowsort label-4293
SELECT + COUNT ( * ) / - + 71 * + 77
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT - 24 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-4294
SELECT - 24 / 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT + COUNT( * ) * + 78 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4295
SELECT + COUNT ( * ) * + 78 AS col1
----
78

query I rowsort
SELECT - 41 + - 71 * + 49 * + 61
----
-212260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4297
SELECT - 88 DIV - 85 AS col2, CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-4297
SELECT - 88 / - 85 AS col2, CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT - 94 + + 91 + + MIN( + - 14 )
----
-17

skipif mysql # not compatible
query I rowsort label-4298
SELECT - 94 + + 91 + + MIN ( + - 14 )
----
-17

query I rowsort
SELECT ALL - 74 + + 25
----
-49

query I rowsort
SELECT DISTINCT + COALESCE ( + 92, - ( 40 ) ) * + + 89 AS col2
----
8188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4301
SELECT ALL - NULLIF ( - + CASE - 89 WHEN + CAST( NULL AS SIGNED ) + COUNT( * ) THEN 62 * 39 END, + 97 ) + + 73 * - - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL - NULLIF ( - + CASE - 89 WHEN + CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN 62 * 39 END, + 97 ) + + 73 * - - 5 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4302
SELECT DISTINCT CAST( + 91 AS SIGNED ) AS col0, - 45
----
91
-45

skipif mysql # not compatible
query II rowsort label-4302
SELECT DISTINCT CAST ( + 91 AS INTEGER ) AS col0, - 45
----
91
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL + CASE - 42 WHEN 9 THEN NULL ELSE + 81 * 95 + - CASE - 4 WHEN MAX( ALL - - 95 ) * + NULLIF ( + - COALESCE ( - ( - - 23 ), + - 25 * + 71, + 35 / - COALESCE ( + - COALESCE ( AVG ( DISTINCT + + ( - + 88 ) ), + 5, 43 ), MIN( 72 ) ) - - CASE + + CASE - + 70 WHEN ( + + 11 ) THEN + 14 WHEN - NULLIF ( - 49, + 25 * - 27 / + ( - 82 ) ) * + 52 + 84 + COUNT( DISTINCT + NULLIF ( - ( + 89 ), 93 ) ) + 33 + + 31 * 87 THEN 56 WHEN COUNT( * ) / 60 THEN + 14 END WHEN - NULLIF ( + 36, + 48 * + 63 ) THEN 63 * 50 WHEN + 16 THEN NULL WHEN - 4 THEN MAX( ALL 74 ) * + 91 END + 85 + 11 ), - 55 ) / 18 + - COUNT( * ) - 3 THEN 36 END - - 57 END + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + CASE - 42 WHEN 9 THEN NULL ELSE + 81 * 95 + - CASE - 4 WHEN MAX ( ALL - - 95 ) * + NULLIF ( + - COALESCE ( - ( - - 23 ), + - 25 * + 71, + 35 / - COALESCE ( + - COALESCE ( AVG ( DISTINCT + + ( - + 88 ) ), + 5, 43 ), MIN ( 72 ) ) - - CASE + + CASE - + 70 WHEN ( + + 11 ) THEN + 14 WHEN - NULLIF ( - 49, + 25 * - 27 / + ( - 82 ) ) * + 52 + 84 + COUNT ( DISTINCT + NULLIF ( - ( + 89 ), 93 ) ) + 33 + + 31 * 87 THEN 56 WHEN COUNT ( * ) / 60 THEN + 14 END WHEN - NULLIF ( + 36, + 48 * + 63 ) THEN 63 * 50 WHEN + 16 THEN NULL WHEN - 4 THEN MAX ( ALL 74 ) * + 91 END + 85 + 11 ), - 55 ) / 18 + - COUNT ( * ) - 3 THEN 36 END - - 57 END + 72
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4304
SELECT ALL - COUNT( * ) + 85 AS col0, CASE + - ( + - 54 ) WHEN - + 8 DIV - + COUNT( * ) + - + COUNT( DISTINCT + 17 ) * - 51 THEN + 57 ELSE + + COUNT( * ) END DIV - 29 + - + 12 - - COUNT( * ) AS col0
----
84
-11

skipif mysql # not compatible
query II rowsort label-4304
SELECT ALL - COUNT ( * ) + 85 AS col0, CASE + - ( + - 54 ) WHEN - + 8 / - + COUNT ( * ) + - + COUNT ( DISTINCT + 17 ) * - 51 THEN + 57 ELSE + + COUNT ( * ) END / - 29 + - + 12 - - COUNT ( * ) AS col0
----
84
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL ( ( COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL ( ( COUNT ( * ) ) ) AS col0
----
1

query I rowsort
SELECT - 22 - - 39
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4307
SELECT + - 72 * 36 * 29 + COUNT( * ) * 84 AS col0, COUNT( * ) AS col2
----
-75084
1

skipif mysql # not compatible
query II rowsort label-4307
SELECT + - 72 * 36 * 29 + COUNT ( * ) * 84 AS col0, COUNT ( * ) AS col2
----
-75084
1

query II rowsort
SELECT + 14 + + + 46 col1, 58
----
60
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4309
SELECT DISTINCT ( + + 76 ) DIV - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT ( + + 76 ) / - 98 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4310
SELECT - CASE 66 WHEN - 43 + + 70 THEN NULL WHEN + 12 THEN + 31 END - - COUNT( * ), + 80 * 84 * 15 * 53 AS col0
----
NULL
5342400

skipif mysql # not compatible
query II rowsort label-4310
SELECT - CASE 66 WHEN - 43 + + 70 THEN NULL WHEN + 12 THEN + 31 END - - COUNT ( * ), + 80 * 84 * 15 * 53 AS col0
----
NULL
5342400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT DISTINCT + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4312
SELECT ALL MIN( ALL + 35 ) DIV + COUNT( * ) - + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL MIN ( ALL + 35 ) / + COUNT ( * ) - + COUNT ( * )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4313
SELECT - + 51 / + - 4 * - COALESCE ( - 80, - 1 ) / ( - 40 ) * + + 57 + + 44 * - - 43 - - COUNT( * ) - - 55 * - - ( + - MAX( + + 79 ) ) + - - CAST( NULL AS SIGNED ) / + + 96 / + 1 * 92 + - COALESCE ( - 45, + 91 * - 7, + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4313
SELECT - + 51 / + - 4 * - COALESCE ( - 80, - 1 ) / ( - 40 ) * + + 57 + + 44 * - - 43 - - COUNT ( * ) - - 55 * - - ( + - MAX ( + + 79 ) ) + - - CAST ( NULL AS INTEGER ) / + + 96 / + 1 * 92 + - COALESCE ( - 45, + 91 * - 7, + 91 )
----
NULL

query I rowsort
SELECT + + 46 * - 4 AS col0
----
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4315
SELECT + COUNT( DISTINCT + 7 ) * + CAST( NULL AS SIGNED ) + + 93 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT + COUNT ( DISTINCT + 7 ) * + CAST ( NULL AS INTEGER ) + + 93 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT ALL + + CASE + ( 22 ) WHEN + + 50 * - 8 * - + 66 + 21 + - - 12 / + 65 - - + 66 + 64 * - + COUNT( ALL - - 68 ) - + 35 * + 45 * 86 THEN NULL WHEN + - 65 / - NULLIF ( 35, - 88 ) THEN - 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL + + CASE + ( 22 ) WHEN + + 50 * - 8 * - + 66 + 21 + - - 12 / + 65 - - + 66 + 64 * - + COUNT ( ALL - - 68 ) - + 35 * + 45 * 86 THEN NULL WHEN + - 65 / - NULLIF ( 35, - 88 ) THEN - 64 END
----
NULL

query I rowsort
SELECT + 74 * + 31
----
2294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4318
SELECT + 44 * + COALESCE ( CAST( - + ( + + COALESCE ( - 75, + MIN( ALL - 97 ), + 96 ) ) AS SIGNED ), + + ( + 45 ) ) AS col1
----
3300

skipif mysql # not compatible
query I rowsort label-4318
SELECT + 44 * + COALESCE ( CAST ( - + ( + + COALESCE ( - 75, + MIN ( ALL - 97 ), + 96 ) ) AS INTEGER ), + + ( + 45 ) ) AS col1
----
3300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4319
SELECT ALL 13 DIV - COUNT( ALL 75 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL 13 / - COUNT ( ALL 75 ) AS col2
----
-13

query I rowsort
SELECT ALL + - NULLIF ( - + 44, 26 / - 94 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT + - ( - + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4321
SELECT + - ( - + COUNT ( * ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT DISTINCT COALESCE ( + + 96, - - 6 ) * 75 * 77 DIV - 63
----
-8800

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT COALESCE ( + + 96, - - 6 ) * 75 * 77 / - 63
----
-8800

onlyif mysql # aggregate syntax: 
query II rowsort label-4323
SELECT DISTINCT + 60 + - COUNT( * ) + + - 31 + + - 16 AS col1, + 14
----
12
14

skipif mysql # not compatible
query II rowsort label-4323
SELECT DISTINCT + 60 + - COUNT ( * ) + + - 31 + + - 16 AS col1, + 14
----
12
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4324
SELECT ALL COALESCE ( - + 80, ( - CAST( NULL AS SIGNED ) ) * + COUNT( * ), + - COUNT( * ) + - 16 ) + 86 - COUNT( - 42 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL COALESCE ( - + 80, ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ), + - COUNT ( * ) + - 16 ) + 86 - COUNT ( - 42 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT CASE + 90 WHEN CASE + NULLIF ( + + COUNT( * ), - 88 * + - 90 / + 40 ) WHEN COUNT( * ) * - - 92 THEN NULL WHEN - 85 THEN NULL WHEN + 31 * COUNT( * ) THEN + 42 ELSE NULL END THEN - SUM( + + 1 ) END + - 80 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT CASE + 90 WHEN CASE + NULLIF ( + + COUNT ( * ), - 88 * + - 90 / + 40 ) WHEN COUNT ( * ) * - - 92 THEN NULL WHEN - 85 THEN NULL WHEN + 31 * COUNT ( * ) THEN + 42 ELSE NULL END THEN - SUM ( + + 1 ) END + - 80 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT ALL 6 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL 6 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 41 * + 68
----
2788

query I rowsort
SELECT ALL 24 + + 77
----
101

query I rowsort
SELECT ( - + 24 ) + 7
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4330
SELECT ALL + 42 + + + 50 + + CAST( NULL AS SIGNED ) * - 38 * - ( + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL + 42 + + + 50 + + CAST ( NULL AS INTEGER ) * - 38 * - ( + 79 )
----
NULL

query I rowsort
SELECT ALL 70 + NULLIF ( - 89, + 65 * 91 * + - 3 ) + - + 79 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL + 15 + - COUNT( * ) * + COUNT( * ) + 67
----
81

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL + 15 + - COUNT ( * ) * + COUNT ( * ) + 67
----
81

query I rowsort
SELECT 41 + 35 * - + 89 AS col1
----
-3074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4334
SELECT 50 + + + CAST( 48 AS SIGNED ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4334
SELECT 50 + + + CAST ( 48 AS INTEGER ) AS col1
----
98

query II rowsort
SELECT 57 * - 86 * + 98 * - - 23 AS col1, 9 AS col0
----
-11049108
9

query I rowsort
SELECT 31 + 16
----
47

query I rowsort
SELECT 66 - + 72
----
-6

query I rowsort
SELECT ALL + 53 * + 97 AS col0
----
5141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT 47 * CAST( - 6 AS SIGNED ) col1
----
-282

skipif mysql # not compatible
query I rowsort label-4339
SELECT 47 * CAST ( - 6 AS INTEGER ) col1
----
-282

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4340
SELECT - COUNT( * ), ( 34 ) * + + 4 * + ( + + 20 ) * 91 * CASE 29 WHEN - + CAST( NULL AS DECIMAL ) - + 67 * - 79 + 14 + + MAX( - 95 ) THEN NULL ELSE + 92 END - - 56 AS col2
----
-1
22771896

skipif mysql # not compatible
query II rowsort label-4340
SELECT - COUNT ( * ), ( 34 ) * + + 4 * + ( + + 20 ) * 91 * CASE 29 WHEN - + CAST ( NULL AS REAL ) - + 67 * - 79 + 14 + + MAX ( - 95 ) THEN NULL ELSE + 92 END - - 56 AS col2
----
-1
22771896

query I rowsort
SELECT 17 + 21
----
38

query I rowsort
SELECT ALL - + 10 - + 57
----
-67

query II rowsort
SELECT DISTINCT 70 AS col1, 20 AS col1
----
70
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4344
SELECT ALL - COUNT( * ) AS col1, - ( - + 51 ) - 63 + + COUNT( * ) + - 83 + + CAST( + - 7 AS SIGNED ) * - 99 * + + MIN( ALL 6 ) - 4 AS col1
----
-1
4060

skipif mysql # not compatible
query II rowsort label-4344
SELECT ALL - COUNT ( * ) AS col1, - ( - + 51 ) - 63 + + COUNT ( * ) + - 83 + + CAST ( + - 7 AS INTEGER ) * - 99 * + + MIN ( ALL 6 ) - 4 AS col1
----
-1
4060

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT DISTINCT - MIN( - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT - MIN ( - 40 )
----
40

query II rowsort
SELECT DISTINCT - + 57, - ( - ( + 93 ) ) + 76 AS col1
----
-57
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT + - ( COUNT( * ) ) * - 17 + 27 + + + 74 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-4347
SELECT + - ( COUNT ( * ) ) * - 17 + 27 + + + 74 AS col1
----
118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4348
SELECT - - 62 / - COUNT( * ) + 42 + 39 - + 41 * + 8 * + 48 / - 66 * - NULLIF ( + CAST( NULL AS DECIMAL ), - 31 ) * + - 73 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4348
SELECT - - 62 / - COUNT ( * ) + 42 + 39 - + 41 * + 8 * + 48 / - 66 * - NULLIF ( + CAST ( NULL AS REAL ), - 31 ) * + - 73 + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT + 83 AS col0, 50 AS col0
----
83
50

query I rowsort
SELECT ALL + 45 * - 41 * - 64 * - 14 + + 17
----
-1653103

query I rowsort
SELECT + 81 + - + 9 + - 93 col0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-4352
SELECT + - COUNT( * ) AS col0, 97 AS col1
----
-1
97

skipif mysql # not compatible
query II rowsort label-4352
SELECT + - COUNT ( * ) AS col0, 97 AS col1
----
-1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT ALL + 84 * + ( - SUM( 70 ) ) * - 19 AS col1
----
111720

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL + 84 * + ( - SUM ( 70 ) ) * - 19 AS col1
----
111720

query I rowsort
SELECT NULLIF ( 27, + 19 ) + + + 24 AS col0
----
51

query I rowsort
SELECT - 47 + 1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * - + ( + 63 ) * + 39 - + COUNT( * )
----
-2458

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * - + ( + 63 ) * + 39 - + COUNT ( * )
----
-2458

onlyif mysql # aggregate syntax: 
query II rowsort label-4357
SELECT ALL - 46 + 38 - + 62 * + + 54 AS col0, + COUNT( * ) col1
----
-3356
1

skipif mysql # not compatible
query II rowsort label-4357
SELECT ALL - 46 + 38 - + 62 * + + 54 AS col0, + COUNT ( * ) col1
----
-3356
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4358
SELECT COUNT( * ) DIV - 1, - MIN( - 90 ) + - - 87 AS col2
----
-1
177

skipif mysql # not compatible
query II rowsort label-4358
SELECT COUNT ( * ) / - 1, - MIN ( - 90 ) + - - 87 AS col2
----
-1
177

query I rowsort
SELECT 22 + + 13 - + NULLIF ( + 40, + 53 ) AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4360
SELECT ALL CAST( + - ( - 60 ) AS SIGNED ) + + + COUNT( * ) col2
----
61

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL CAST ( + - ( - 60 ) AS INTEGER ) + + + COUNT ( * ) col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT ALL SUM( DISTINCT - 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL SUM ( DISTINCT - 39 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-4362
SELECT COUNT( * ) + + COUNT( * ), NULLIF ( - - 2, - 23 ) + 57 AS col0
----
2
59

skipif mysql # not compatible
query II rowsort label-4362
SELECT COUNT ( * ) + + COUNT ( * ), NULLIF ( - - 2, - 23 ) + 57 AS col0
----
2
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT COUNT( * ) * - NULLIF ( + - SUM( DISTINCT + - 10 ), - 56 ) * + NULLIF ( + 39, 20 * + + 79 + - 53 + + 18 + - 40 ) + 42
----
-348

skipif mysql # not compatible
query I rowsort label-4363
SELECT COUNT ( * ) * - NULLIF ( + - SUM ( DISTINCT + - 10 ), - 56 ) * + NULLIF ( + 39, 20 * + + 79 + - 53 + + 18 + - 40 ) + 42
----
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT CASE - + COUNT( * ) WHEN + 61 THEN - + 33 WHEN - + COUNT( * ) THEN NULL WHEN + 54 THEN 52 ELSE - NULLIF ( - 27, - 32 ) END + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT CASE - + COUNT ( * ) WHEN + 61 THEN - + 33 WHEN - + COUNT ( * ) THEN NULL WHEN + 54 THEN 52 ELSE - NULLIF ( - 27, - 32 ) END + - 57
----
NULL

query II rowsort
SELECT DISTINCT 52 * + 32 AS col1, - 46 * + 45 col1
----
1664
-2070

query II rowsort
SELECT ALL 10 - + 98, - 58 AS col0
----
-88
-58

query I rowsort
SELECT DISTINCT 69 * - - 72
----
4968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT ALL - CAST( - - 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - CAST ( - - 83 AS INTEGER )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4369
SELECT ALL 50 DIV + 37
----
1

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL 50 / + 37
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT + ( + CAST( + 44 AS SIGNED ) ) * 58 * - 70 + + 16 AS col2
----
-178624

skipif mysql # not compatible
query I rowsort label-4370
SELECT + ( + CAST ( + 44 AS INTEGER ) ) * 58 * - 70 + + 16 AS col2
----
-178624

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT ( - COALESCE ( - 82, - 65 ) ) + - 87 * + SUM( - 29 )
----
2605

skipif mysql # not compatible
query I rowsort label-4371
SELECT ( - COALESCE ( - 82, - 65 ) ) + - 87 * + SUM ( - 29 )
----
2605

query I rowsort
SELECT 38 * - 35 + + 46
----
-1284

onlyif mysql # DIV for integer division: 
query I rowsort label-4373
SELECT ALL + 80 DIV + 28 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL + 80 / + 28 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4374
SELECT + SUM( DISTINCT - + ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT + SUM ( DISTINCT - + ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

query II rowsort
SELECT - 65 * + - 73, ( - - 92 ) * + 84 AS col1
----
4745
7728

query I rowsort
SELECT DISTINCT 35 * 15 * - - 92 + - 44 col1
----
48256

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT - 79 * + COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-4377
SELECT - 79 * + COUNT ( * ) AS col2
----
-79

query I rowsort
SELECT + 19 * + 29 * + + 39 * - - 45 - + 46 AS col2
----
966959

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT DISTINCT + 55 * ( + + COUNT( ALL + 41 ) ) - - 18 col1
----
73

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT + 55 * ( + + COUNT ( ALL + 41 ) ) - - 18 col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4380
SELECT ALL - - COUNT( * ) * - 2 DIV + MAX( - 31 ) + + - 53 AS col2, CAST( NULL AS SIGNED )
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-4380
SELECT ALL - - COUNT ( * ) * - 2 / + MAX ( - 31 ) + + - 53 AS col2, CAST ( NULL AS INTEGER )
----
-53
NULL

query I rowsort
SELECT - + 11 * - 2
----
22

query I rowsort
SELECT DISTINCT + CASE + + 5 WHEN + 8 THEN NULL ELSE - 14 END AS col0
----
-14

query I rowsort
SELECT ALL + ( - - 15 ) AS col1
----
15

query I rowsort
SELECT ALL + 96 * - + 64 + - 77 * 97
----
-13613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4385
SELECT DISTINCT + 70 * + MAX( DISTINCT CAST( - - 74 AS SIGNED ) ) AS col0
----
5180

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT + 70 * + MAX ( DISTINCT CAST ( - - 74 AS INTEGER ) ) AS col0
----
5180

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4386
SELECT + 33, + 2 DIV 12 - + 80 + - + COUNT( * ) - 6 * - - 45 + - - ( 22 ) col2
----
33
-329

skipif mysql # not compatible
query II rowsort label-4386
SELECT + 33, + 2 / 12 - + 80 + - + COUNT ( * ) - 6 * - - 45 + - - ( 22 ) col2
----
33
-329

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL + 80 * + COUNT( * ) + COUNT( * ) + - - COUNT( - ( 72 ) ) * COUNT( * ) * - 42
----
39

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL + 80 * + COUNT ( * ) + COUNT ( * ) + - - COUNT ( - ( 72 ) ) * COUNT ( * ) * - 42
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4388
SELECT DISTINCT 76 * - MIN( ALL + 94 ) - + - 90 + - COUNT( * ) + + 95 - - + 40 DIV 17 DIV 40 * - COUNT( * ) AS col1, 44 DIV - COUNT( * ) AS col0
----
-6960
-44

skipif mysql # not compatible
query II rowsort label-4388
SELECT DISTINCT 76 * - MIN ( ALL + 94 ) - + - 90 + - COUNT ( * ) + + 95 - - + 40 / 17 / 40 * - COUNT ( * ) AS col1, 44 / - COUNT ( * ) AS col0
----
-6960
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL + MIN( + 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL + MIN ( + 92 ) AS col0
----
92

query I rowsort
SELECT 79 * + + 95 + + 33 AS col0
----
7538

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT MIN( DISTINCT + COALESCE ( + 88, - + 30 / + 60 ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-4391
SELECT MIN ( DISTINCT + COALESCE ( + 88, - + 30 / + 60 ) ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT + ( MIN( ALL - - 98 ) ) * + + 82 * + 64
----
514304

skipif mysql # not compatible
query I rowsort label-4392
SELECT + ( MIN ( ALL - - 98 ) ) * + + 82 * + 64
----
514304

query I rowsort
SELECT ALL + 52 * 6 AS col2
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT - COUNT( * ) + NULLIF ( + 30, + 0 )
----
29

skipif mysql # not compatible
query I rowsort label-4394
SELECT - COUNT ( * ) + NULLIF ( + 30, + 0 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4395
SELECT + ( 58 ) DIV 10
----
5

skipif mysql # not compatible
query I rowsort label-4395
SELECT + ( 58 ) / 10
----
5

query I rowsort
SELECT - 99 + + 61 * + - 11
----
-770

onlyif mysql # DIV for integer division: 
query I rowsort label-4397
SELECT ALL 11 - 93 DIV 70 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL 11 - 93 / 70 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL COALESCE ( + 46, - 73 * COUNT( * ) * + + 41 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL COALESCE ( + 46, - 73 * COUNT ( * ) * + + 41 ) AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT DISTINCT 4 DIV - 18
----
0

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT 4 / - 18
----
0

query I rowsort
SELECT ALL ( - COALESCE ( 61, 19 ) ) AS col0
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4401
SELECT + 38 + - 92 + - 61 DIV COUNT( * ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-4401
SELECT + 38 + - 92 + - 61 / COUNT ( * ) AS col1
----
-115

query I rowsort
SELECT ALL + COALESCE ( - 75, + 96, - + 1 )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4403
SELECT DISTINCT 82 * + - 61 + - + 2 * + CAST( 41 AS SIGNED ) * + - 33 AS col1
----
-2296

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT 82 * + - 61 + - + 2 * + CAST ( 41 AS INTEGER ) * + - 33 AS col1
----
-2296

query II rowsort
SELECT + 51 + + 79 + + + 70, - 95 - 30 * - - 18 * 6 AS col0
----
200
-3335

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4405
SELECT - MAX( - - 47 ) + - 56 DIV - 82
----
-47

skipif mysql # not compatible
query I rowsort label-4405
SELECT - MAX ( - - 47 ) + - 56 / - 82
----
-47

query I rowsort
SELECT + + 33 * 22 col0
----
726

query I rowsort
SELECT + - 64 + + 38 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT + - MIN( ALL - 99 ) - - 62 * + - 96 AS col1
----
-5853

skipif mysql # not compatible
query I rowsort label-4408
SELECT + - MIN ( ALL - 99 ) - - 62 * + - 96 AS col1
----
-5853

query I rowsort
SELECT ALL ( - 47 ) col1
----
-47

query I rowsort
SELECT + + 89 + 59
----
148

query I rowsort
SELECT + + 83 + + 1 col1
----
84

query I rowsort
SELECT ALL + 78 * + 68
----
5304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT - CAST( - 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-4413
SELECT - CAST ( - 15 AS INTEGER )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT + SUM( - 9 ) * 21 * - 56 AS col0
----
10584

skipif mysql # not compatible
query I rowsort label-4414
SELECT + SUM ( - 9 ) * 21 * - 56 AS col0
----
10584

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4415
SELECT DISTINCT 66 + + 11 + - 93 AS col1, + CASE CASE - NULLIF ( + 77, - 42 ) WHEN COUNT( * ) + AVG ( ALL + 13 ) THEN 68 WHEN + 90 + - - 40 THEN - - CAST( + ( - AVG ( ALL - ( + ( + - 63 ) ) ) ) AS DECIMAL ) + + + 83 END WHEN - 87 THEN 76 / COUNT( * ) END AS col0
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-4415
SELECT DISTINCT 66 + + 11 + - 93 AS col1, + CASE CASE - NULLIF ( + 77, - 42 ) WHEN COUNT ( * ) + AVG ( ALL + 13 ) THEN 68 WHEN + 90 + - - 40 THEN - - CAST ( + ( - AVG ( ALL - ( + ( + - 63 ) ) ) ) AS REAL ) + + + 83 END WHEN - 87 THEN 76 / COUNT ( * ) END AS col0
----
-16
NULL

query I rowsort
SELECT DISTINCT 5 * - 97
----
-485

query I rowsort
SELECT ALL 80 + - 98 * + 74 + - 11 + - 62
----
-7245

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT ALL + COUNT( * ) + ( + - 84 ) * + 84
----
-7055

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL + COUNT ( * ) + ( + - 84 ) * + 84
----
-7055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT + ( + 68 ) + - - 22 + + + CAST( + - 43 AS SIGNED ) + + 94 * + CASE 65 WHEN + 96 + + 9 THEN + 69 * - + 77 END / + 16 + - - 49 - - 26 + 85 * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT + ( + 68 ) + - - 22 + + + CAST ( + - 43 AS INTEGER ) + + 94 * + CASE 65 WHEN + 96 + + 9 THEN + 69 * - + 77 END / + 16 + - - 49 - - 26 + 85 * - 11
----
NULL

query I rowsort
SELECT DISTINCT - 59 + 92
----
33

query I rowsort
SELECT + 67 + - 55 * 24 + 79 * + 45 + 80 * + 13 * 13 * - - 34
----
461982

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT SUM( DISTINCT 80 )
----
80

skipif mysql # not compatible
query I rowsort label-4422
SELECT SUM ( DISTINCT 80 )
----
80

query I rowsort
SELECT + 20 * + ( - + 14 ) - - 30
----
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT + MIN( + - 32 ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-4424
SELECT + MIN ( + - 32 ) col0
----
-32

query I rowsort
SELECT ALL + ( - 75 ) AS col1
----
-75

query I rowsort
SELECT - 12 * + - 89 * - + 61 AS col2
----
-65148

query I rowsort
SELECT - - 7 + + + 41 AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4428
SELECT ALL - ( - CAST( 49 AS SIGNED ) ) * ( 65 )
----
3185

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - ( - CAST ( 49 AS INTEGER ) ) * ( 65 )
----
3185

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ( - NULLIF ( - COUNT( ALL 76 ), - - 35 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4429
SELECT ( - NULLIF ( - COUNT ( ALL 76 ), - - 35 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL - 63 * + MIN( 94 ) + 51 + + 72
----
-5799

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL - 63 * + MIN ( 94 ) + 51 + + 72
----
-5799

onlyif mysql # DIV for integer division: 
query I rowsort label-4431
SELECT DISTINCT 13 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT 13 / - 69
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4432
SELECT ALL + CAST( + - 88 AS SIGNED ) * 95 + - 43 * + COUNT( * ) col1
----
-8403

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL + CAST ( + - 88 AS INTEGER ) * 95 + - 43 * + COUNT ( * ) col1
----
-8403

onlyif mysql # aggregate syntax: 
query II rowsort label-4433
SELECT - COUNT( * ) * 97 + 33 + 48, 37 AS col0
----
-16
37

skipif mysql # not compatible
query II rowsort label-4433
SELECT - COUNT ( * ) * 97 + 33 + 48, 37 AS col0
----
-16
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT ALL 48 * - - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL 48 * - - COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT ALL 72 * + - 12 - + ( + + COUNT( * ) )
----
-865

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL 72 * + - 12 - + ( + + COUNT ( * ) )
----
-865

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL + SUM( - 86 ) * - 26 * 5 col0
----
11180

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL + SUM ( - 86 ) * - 26 * 5 col0
----
11180

query I rowsort
SELECT + 47 * 97
----
4559

query I rowsort
SELECT + 90 * + - ( ( - + NULLIF ( - 41, + 82 ) ) ) + - 41 col1
----
-3731

query I rowsort
SELECT NULLIF ( 49, + 80 ) col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT - COUNT( * ) + - COUNT( * ) + + - 24 * + 19 + + + 87
----
-371

skipif mysql # not compatible
query I rowsort label-4440
SELECT - COUNT ( * ) + - COUNT ( * ) + + - 24 * + 19 + + + 87
----
-371

query I rowsort
SELECT - ( 13 ) * + - 25
----
325

query I rowsort
SELECT ALL + ( - + 95 ) AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT - CAST( NULL AS SIGNED ) + - - 59 * 45 * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT - CAST ( NULL AS INTEGER ) + - - 59 * 45 * 75
----
NULL

query I rowsort
SELECT COALESCE ( + + 79, + 2 ) AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4445
SELECT ALL - 21 * CASE - 11 WHEN 83 / + ( 25 ) - - 71 * 60 THEN NULL WHEN - 87 THEN NULL WHEN + 83 + 26 * - 76 THEN + - 2 + 31 - - 61 + CASE ( + ( 89 ) ) WHEN - - 77 THEN - - 15 + + COUNT( * ) + + 73 * - 81 * - 23 ELSE NULL END + + COUNT( * ) + CAST( - 30 AS DECIMAL ) * - + 75 / + NULLIF ( - + 10, - AVG ( + 20 ) ) * - + 76 * SUM( DISTINCT - 82 ) * - 51 + 84 WHEN - COALESCE ( + + 42, 63, + 90 ) + - SUM( - 94 ) THEN + 53 * - + 0 * + 26 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL - 21 * CASE - 11 WHEN 83 / + ( 25 ) - - 71 * 60 THEN NULL WHEN - 87 THEN NULL WHEN + 83 + 26 * - 76 THEN + - 2 + 31 - - 61 + CASE ( + ( 89 ) ) WHEN - - 77 THEN - - 15 + + COUNT ( * ) + + 73 * - 81 * - 23 ELSE NULL END + + COUNT ( * ) + CAST ( - 30 AS REAL ) * - + 75 / + NULLIF ( - + 10, - AVG ( + 20 ) ) * - + 76 * SUM ( DISTINCT - 82 ) * - 51 + 84 WHEN - COALESCE ( + + 42, 63, + 90 ) + - SUM ( - 94 ) THEN + 53 * - + 0 * + 26 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4446
SELECT COUNT( * ), + 67 + + 30 + - - 35 AS col0
----
1
132

skipif mysql # not compatible
query II rowsort label-4446
SELECT COUNT ( * ), + 67 + + 30 + - - 35 AS col0
----
1
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL - COUNT( * ) * - - 10 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - COUNT ( * ) * - - 10 AS col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4448
SELECT DISTINCT - 40 DIV - - 12
----
-3

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT - 40 / - - 12
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4449
SELECT ALL 64, + 60 * COUNT( * ) + + COALESCE ( ( + ( + + 1 ) ), - 28 ) * + - MAX( DISTINCT CAST( NULL AS DECIMAL ) ) AS col2
----
64
NULL

skipif mysql # not compatible
query II rowsort label-4449
SELECT ALL 64, + 60 * COUNT ( * ) + + COALESCE ( ( + ( + + 1 ) ), - 28 ) * + - MAX ( DISTINCT CAST ( NULL AS REAL ) ) AS col2
----
64
NULL

query I rowsort
SELECT - 22 * + ( + 92 )
----
-2024

query I rowsort
SELECT ALL - + 11 * + 44
----
-484

query I rowsort
SELECT - COALESCE ( - - 66, + 2 * 35 )
----
-66

query II rowsort
SELECT - 56 col0, 9
----
-56
9

query I rowsort
SELECT - 97 * + + 8 AS col0
----
-776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4455
SELECT + 72 + - COUNT( * ) - + 67 / 50 * - - CAST( NULL AS SIGNED ) / - MIN( + + 30 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4455
SELECT + 72 + - COUNT ( * ) - + 67 / 50 * - - CAST ( NULL AS INTEGER ) / - MIN ( + + 30 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL + NULLIF ( 67, - + ( ( - AVG ( 36 ) ) ) + + SUM( ALL - - 27 ) ) * + - 52 AS col1
----
-3484

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL + NULLIF ( 67, - + ( ( - AVG ( 36 ) ) ) + + SUM ( ALL - - 27 ) ) * + - 52 AS col1
----
-3484

query I rowsort
SELECT ALL 68 + + 30
----
98

query I rowsort
SELECT DISTINCT - - 94 + - + 72 AS col2
----
22

query I rowsort
SELECT ALL ( 88 ) col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4460
SELECT - COUNT( * ), - 6 DIV + 42 * - 74 * + - ( - ( + 88 ) ) * NULLIF ( 8, - COALESCE ( - 32, - 62, + - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) ) ) AS col2, - 40 AS col2
----
-1
0
-40

skipif mysql # not compatible
query III rowsort label-4460
SELECT - COUNT ( * ), - 6 / + 42 * - 74 * + - ( - ( + 88 ) ) * NULLIF ( 8, - COALESCE ( - 32, - 62, + - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) ) ) AS col2, - 40 AS col2
----
-1
0
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT ALL + MIN( ALL 54 ) + - - 39 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL + MIN ( ALL 54 ) + - - 39 AS col1
----
93

query II rowsort
SELECT - 96 AS col0, - 92 AS col0
----
-96
-92

query I rowsort
SELECT + 18 + - 33 col0
----
-15

query I rowsort
SELECT 20 * - 78 * 27
----
-42120

query I rowsort
SELECT ALL 57 * + ( - 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT - SUM( 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT - SUM ( 51 )
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4467
SELECT - 60 DIV ( - 35 ) + + 53 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4467
SELECT - 60 / ( - 35 ) + + 53 AS col0
----
54

query I rowsort
SELECT ALL 84 - 68 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT 99 * + - 53 * + + COUNT( * ) AS col1
----
-5247

skipif mysql # not compatible
query I rowsort label-4469
SELECT 99 * + - 53 * + + COUNT ( * ) AS col1
----
-5247

query I rowsort
SELECT ALL 72 * - NULLIF ( 66, + AVG ( ALL - 74 ) + ( - + AVG ( - + 68 ) ) )
----
-4752

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT DISTINCT ( + - 87 ) - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT ( + - 87 ) - COUNT ( * )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT 50 * + COUNT( * ) col0
----
50

skipif mysql # not compatible
query I rowsort label-4472
SELECT 50 * + COUNT ( * ) col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4473
SELECT 69 DIV + COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4473
SELECT 69 / + COUNT ( * ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT ALL CASE - 59 WHEN - + ( - + 54 ) * + + 69 THEN + 40 WHEN 73 + 77 THEN NULL ELSE - 72 END / - - 82 + - 83 + 34 + 71 + CASE + 97 WHEN + + 48 THEN COUNT( * ) + + COUNT( * ) * - 77 END + - 9 * + + 61 * 72 * - + CASE + + ( 74 ) WHEN + COUNT( * ) - + 96 + + 45 + - COUNT( * ) * - COUNT( * ) / + 53 * + 96 * + 89 * MIN( ALL + - 71 ) THEN NULL WHEN - 67 THEN + COUNT( * ) * + COUNT( * ) + 91 ELSE + 79 END * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL CASE - 59 WHEN - + ( - + 54 ) * + + 69 THEN + 40 WHEN 73 + 77 THEN NULL ELSE - 72 END / - - 82 + - 83 + 34 + 71 + CASE + 97 WHEN + + 48 THEN COUNT ( * ) + + COUNT ( * ) * - 77 END + - 9 * + + 61 * 72 * - + CASE + + ( 74 ) WHEN + COUNT ( * ) - + 96 + + 45 + - COUNT ( * ) * - COUNT ( * ) / + 53 * + 96 * + 89 * MIN ( ALL + - 71 ) THEN NULL WHEN - 67 THEN + COUNT ( * ) * + COUNT ( * ) + 91 ELSE + 79 END * + 65
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT CASE - NULLIF ( + 62, + 3 + + 98 ) WHEN - ( + 3 ) + + + 58 THEN - - 95 ELSE NULL END * COALESCE ( - CAST( NULL AS SIGNED ), 20 * - NULLIF ( 9, + + 67 ) + - 65 / + 43 + 94, 11, + - 98 ) + + 99 + + 47 - - + 6 * + 76 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT CASE - NULLIF ( + 62, + 3 + + 98 ) WHEN - ( + 3 ) + + + 58 THEN - - 95 ELSE NULL END * COALESCE ( - CAST ( NULL AS INTEGER ), 20 * - NULLIF ( 9, + + 67 ) + - 65 / + 43 + 94, 11, + - 98 ) + + 99 + + 47 - - + 6 * + 76 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT DISTINCT 93 * 69 DIV - ( + 20 )
----
-320

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT 93 * 69 / - ( + 20 )
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL 52 * + - MIN( ALL 71 ) * ( + 85 ) AS col1
----
-313820

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL 52 * + - MIN ( ALL 71 ) * ( + 85 ) AS col1
----
-313820

query I rowsort
SELECT + 4 * - + 2 + 9
----
1

query I rowsort
SELECT 94 * + 94 AS col1
----
8836

query I rowsort
SELECT - 73 + 7 + + 0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4481
SELECT ALL + + 96 + 46 * + 67 * + - 35 + COALESCE ( + 18, + + COUNT( * ), - + ( + 7 ) + - - CAST( NULL AS SIGNED ) + + - 27 + + 32 ) * - 4
----
-107846

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL + + 96 + 46 * + 67 * + - 35 + COALESCE ( + 18, + + COUNT ( * ), - + ( + 7 ) + - - CAST ( NULL AS INTEGER ) + + - 27 + + 32 ) * - 4
----
-107846

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT 97 + + 13 * + ( + - 76 ) * + COUNT( * ) - + 65
----
-956

skipif mysql # not compatible
query I rowsort label-4482
SELECT 97 + + 13 * + ( + - 76 ) * + COUNT ( * ) - + 65
----
-956

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT - 0 + + - 2 + COUNT( * ) + - 7 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4483
SELECT - 0 + + - 2 + COUNT ( * ) + - 7 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4484
SELECT + COUNT( * ) + + ( 35 ) * COUNT( * ) * - 54 * + COALESCE ( - COUNT( * ), MAX( DISTINCT 28 ) ) + - + 59 * 97 * - ( - + 54 ) AS col2, 22 - 50 AS col0
----
-307151
-28

skipif mysql # not compatible
query II rowsort label-4484
SELECT + COUNT ( * ) + + ( 35 ) * COUNT ( * ) * - 54 * + COALESCE ( - COUNT ( * ), MAX ( DISTINCT 28 ) ) + - + 59 * 97 * - ( - + 54 ) AS col2, 22 - 50 AS col0
----
-307151
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT MAX( + 53 ) + + COUNT( * ) col1
----
54

skipif mysql # not compatible
query I rowsort label-4485
SELECT MAX ( + 53 ) + + COUNT ( * ) col1
----
54

query I rowsort
SELECT ALL - - 92 + - - 96 AS col2
----
188

query I rowsort
SELECT + 49 + 2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT DISTINCT - 68 * + NULLIF ( + 49, COUNT( * ) ) AS col2
----
-3332

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - 68 * + NULLIF ( + 49, COUNT ( * ) ) AS col2
----
-3332

onlyif mysql # aggregate syntax: 
query II rowsort label-4489
SELECT 45 + - 40 AS col0, ( - COUNT( * ) ) AS col0
----
5
-1

skipif mysql # not compatible
query II rowsort label-4489
SELECT 45 + - 40 AS col0, ( - COUNT ( * ) ) AS col0
----
5
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT DISTINCT + COUNT( * ) - + - SUM( DISTINCT 0 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT + COUNT ( * ) - + - SUM ( DISTINCT 0 ) * COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT CASE - 10 WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN + 64 + + 40 THEN - + 73 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT CASE - 10 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 64 + + 40 THEN - + 73 END AS col1
----
NULL

query I rowsort
SELECT ALL + - ( + + 72 ) - - - 80
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4493
SELECT - + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4493
SELECT - + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4494
SELECT COUNT( * ) + 71 - + 37 AS col0, 44
----
35
44

skipif mysql # not compatible
query II rowsort label-4494
SELECT COUNT ( * ) + 71 - + 37 AS col0, 44
----
35
44

query I rowsort
SELECT DISTINCT 13 * 7
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT SUM( ALL 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4496
SELECT SUM ( ALL 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4497
SELECT - COUNT( * ) * + 15 DIV 76 + - - 86
----
86

skipif mysql # not compatible
query I rowsort label-4497
SELECT - COUNT ( * ) * + 15 / 76 + - - 86
----
86

query I rowsort
SELECT 60 * - 65 AS col1
----
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT 20 * COUNT( * ) + + - 99 * + - 97 + - + 35
----
9588

skipif mysql # not compatible
query I rowsort label-4499
SELECT 20 * COUNT ( * ) + + - 99 * + - 97 + - + 35
----
9588

query I rowsort
SELECT 66 - - - 99 - - CASE 55 WHEN + 56 * - + 68 + - - 61 THEN + 31 WHEN 53 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4501
SELECT COUNT( * ) + 8 + + 49 AS col0, - 83
----
58
-83

skipif mysql # not compatible
query II rowsort label-4501
SELECT COUNT ( * ) + 8 + + 49 AS col0, - 83
----
58
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT + SUM( 59 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4502
SELECT + SUM ( 59 ) AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT DISTINCT - CAST( + 32 AS SIGNED ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT - CAST ( + 32 AS INTEGER ) AS col0
----
-32

query I rowsort
SELECT ALL 88 * - 51
----
-4488

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT 56 + + 12 + 97 - 21 DIV - - 49
----
165

skipif mysql # not compatible
query I rowsort label-4505
SELECT 56 + + 12 + 97 - 21 / - - 49
----
165

query II rowsort
SELECT + 92 AS col1, 54
----
92
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4507
SELECT DISTINCT - 39 + + COUNT( * ) + 1 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT - 39 + + COUNT ( * ) + 1 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 0 * - 68 + + COALESCE ( + 69, + - 29 * 9 + 76, + + 27 * + + ( - - 31 ) ) * - 73 AS col2, - 58 AS col1
----
-5037
-58

query II rowsort
SELECT 85 + 20 - + - 70 AS col2, - 78 * - + 2
----
175
156

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4510
SELECT 91 + - 26 * CAST( - 83 AS SIGNED ) DIV - - 29
----
165

skipif mysql # not compatible
query I rowsort label-4510
SELECT 91 + - 26 * CAST ( - 83 AS INTEGER ) / - - 29
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT MIN( DISTINCT + - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-4511
SELECT MIN ( DISTINCT + - 45 )
----
-45

query I rowsort
SELECT + NULLIF ( 92, 47 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT 59 * - + COUNT( * ) + - 67
----
-126

skipif mysql # not compatible
query I rowsort label-4513
SELECT 59 * - + COUNT ( * ) + - 67
----
-126

query I rowsort
SELECT ALL - 65 + - - 65 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4515
SELECT ALL + 91 + - COUNT( * ) - CAST( NULL AS SIGNED ) + 54 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL + 91 + - COUNT ( * ) - CAST ( NULL AS INTEGER ) + 54 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4516
SELECT + - MAX( DISTINCT + 25 ) * + 56, + 58 AS col1
----
-1400
58

skipif mysql # not compatible
query II rowsort label-4516
SELECT + - MAX ( DISTINCT + 25 ) * + 56, + 58 AS col1
----
-1400
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT DISTINCT 72 + MIN( DISTINCT - + 62 ), 77 AS col2
----
10
77

skipif mysql # not compatible
query II rowsort label-4517
SELECT DISTINCT 72 + MIN ( DISTINCT - + 62 ), 77 AS col2
----
10
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4518
SELECT ALL - + NULLIF ( - - 83, - CAST( - COUNT( * ) AS SIGNED ) + - 93 - + - CAST( NULL AS DECIMAL ) * + COUNT( * ) * - - MAX( ALL 7 ) ) * + - 74
----
6142

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL - + NULLIF ( - - 83, - CAST ( - COUNT ( * ) AS INTEGER ) + - 93 - + - CAST ( NULL AS REAL ) * + COUNT ( * ) * - - MAX ( ALL 7 ) ) * + - 74
----
6142

query I rowsort
SELECT ALL 90 + + + 95
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT + 59 * COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-4520
SELECT + 59 * COUNT ( * )
----
59

query I rowsort
SELECT - 29 * + 18
----
-522

query II rowsort
SELECT 5 AS col1, NULLIF ( 40, + 19 )
----
5
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT + CASE - 69 WHEN 88 THEN - + 78 + + COUNT( * ) END * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT + CASE - 69 WHEN 88 THEN - + 78 + + COUNT ( * ) END * + 47
----
NULL

query II rowsort
SELECT 42 AS col1, 15
----
42
15

query I rowsort
SELECT ALL + 39 * 91 * + + 58
----
205842

onlyif mysql # aggregate syntax: 
query II rowsort label-4526
SELECT ALL - 70, 17 + + 3 + + + 4 - - 84 * + CASE + COUNT( * ) WHEN - - MIN( 39 ) THEN + 17 ELSE NULL END col0
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-4526
SELECT ALL - 70, 17 + + 3 + + + 4 - - 84 * + CASE + COUNT ( * ) WHEN - - MIN ( 39 ) THEN + 17 ELSE NULL END col0
----
-70
NULL

query I rowsort
SELECT - + 14 col0
----
-14

query I rowsort
SELECT - + 94 * + 41 AS col0
----
-3854

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL + MIN( + - 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL + MIN ( + - 63 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT MIN( + 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4530
SELECT MIN ( + 23 ) AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4531
SELECT ALL + 24 col0, - CAST( NULL AS SIGNED ) * 0 + + 91 + + ( - MAX( - - 33 ) )
----
24
NULL

skipif mysql # not compatible
query II rowsort label-4531
SELECT ALL + 24 col0, - CAST ( NULL AS INTEGER ) * 0 + + 91 + + ( - MAX ( - - 33 ) )
----
24
NULL

query I rowsort
SELECT - 45 * + 61 + - + 13
----
-2758

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4533
SELECT - MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT - MAX ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + + 22 * + 68 * + - 24 AS col1, + 49 AS col1
----
-35904
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT + 7 + CAST( 36 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-4535
SELECT + 7 + CAST ( 36 AS INTEGER )
----
43

query I rowsort
SELECT - 24 * + - ( + - 18 ) AS col1
----
-432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4537
SELECT - 83 + - ( CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT - 83 + - ( CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4538
SELECT - 6 + + - 64 + - - 40 + 8 / - + COUNT( * ) - ( + + CAST( NULL AS SIGNED ) ), 9 + - 88 AS col1
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-4538
SELECT - 6 + + - 64 + - - 40 + 8 / - + COUNT ( * ) - ( + + CAST ( NULL AS INTEGER ) ), 9 + - 88 AS col1
----
NULL
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4539
SELECT + SUM( ALL + 70 ) AS col1, 77 + 36 AS col2
----
70
113

skipif mysql # not compatible
query II rowsort label-4539
SELECT + SUM ( ALL + 70 ) AS col1, 77 + 36 AS col2
----
70
113

onlyif mysql # aggregate syntax: 
query II rowsort label-4540
SELECT ALL + ( - 40 ), - 36 + 45 * + - CASE COUNT( * ) WHEN 54 THEN + - 72 + + + ( 67 ) END AS col0
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-4540
SELECT ALL + ( - 40 ), - 36 + 45 * + - CASE COUNT ( * ) WHEN 54 THEN + - 72 + + + ( 67 ) END AS col0
----
-40
NULL

query I rowsort
SELECT ( - ( 51 ) ) AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4542
SELECT ALL COUNT( * ) DIV - + 85 AS col2, 60 AS col2
----
0
60

skipif mysql # not compatible
query II rowsort label-4542
SELECT ALL COUNT ( * ) / - + 85 AS col2, 60 AS col2
----
0
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4543
SELECT DISTINCT MAX( ALL + + 48 ) * - 12 + + 81 * - CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) + + + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT MAX ( ALL + + 48 ) * - 12 + + 81 * - CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) + + + 37 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT DISTINCT + 81 / - ( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT + 81 / - ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4545
SELECT CASE ( + + 44 ) WHEN - 79 + - 66 THEN NULL WHEN + 72 THEN + 38 * SUM( 99 ) END AS col0, CAST( NULL AS SIGNED ) - + + 89
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4545
SELECT CASE ( + + 44 ) WHEN - 79 + - 66 THEN NULL WHEN + 72 THEN + 38 * SUM ( 99 ) END AS col0, CAST ( NULL AS INTEGER ) - + + 89
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL 52 * - 76 + - 22 * - 43 * - COUNT( * ) AS col0
----
-4898

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL 52 * - 76 + - 22 * - 43 * - COUNT ( * ) AS col0
----
-4898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4547
SELECT NULLIF ( - COUNT( * ), - - CAST( 84 AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4547
SELECT NULLIF ( - COUNT ( * ), - - CAST ( 84 AS INTEGER ) ) AS col1
----
-1

query I rowsort
SELECT + NULLIF ( ( - 6 ), + + 37 ) AS col2
----
-6

query I rowsort
SELECT + 93 * 8
----
744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4550
SELECT COALESCE ( + - 47, - 94 * + CAST( NULL AS SIGNED ) * COUNT( DISTINCT 18 ) - + 2 * + ( - CAST( NULL AS SIGNED ) ) - 38 + + COALESCE ( + 34, ( + + NULLIF ( 11, - - 84 * + 8 + + 70 ) ) ), - 32 + - 97 )
----
-47

skipif mysql # not compatible
query I rowsort label-4550
SELECT COALESCE ( + - 47, - 94 * + CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT 18 ) - + 2 * + ( - CAST ( NULL AS INTEGER ) ) - 38 + + COALESCE ( + 34, ( + + NULLIF ( 11, - - 84 * + 8 + + 70 ) ) ), - 32 + - 97 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT DISTINCT + NULLIF ( + 65, + COUNT( * ) )
----
65

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT + NULLIF ( + 65, + COUNT ( * ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT - MAX( DISTINCT + 30 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4552
SELECT - MAX ( DISTINCT + 30 ) AS col2
----
-30

query I rowsort
SELECT ALL 0 * + - 22 + - 34 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT DISTINCT + 22 * - 73 + COUNT( DISTINCT - 34 ) + 35
----
-1570

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT + 22 * - 73 + COUNT ( DISTINCT - 34 ) + 35
----
-1570

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT + - 73 * - COUNT( * ) * - 61 col2
----
-4453

skipif mysql # not compatible
query I rowsort label-4555
SELECT + - 73 * - COUNT ( * ) * - 61 col2
----
-4453

query I rowsort
SELECT + - 29 + - 51 + + 49 - + 96 * + 19
----
-1855

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT CASE - 46 WHEN - + COUNT( * ) THEN + - 23 WHEN - - 58 + + + COUNT( DISTINCT - 65 ) * + 76 + + 34 THEN + 83 + - 4 + + 95 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT CASE - 46 WHEN - + COUNT ( * ) THEN + - 23 WHEN - - 58 + + + COUNT ( DISTINCT - 65 ) * + 76 + + 34 THEN + 83 + - 4 + + 95 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4558
SELECT + 7 + - - MIN( ALL + NULLIF ( - 36, - + 90 ) ) col0, + 32 - - + COUNT( * ) DIV + 79 + - + 79 * - 90
----
-29
7142

skipif mysql # not compatible
query II rowsort label-4558
SELECT + 7 + - - MIN ( ALL + NULLIF ( - 36, - + 90 ) ) col0, + 32 - - + COUNT ( * ) / + 79 + - + 79 * - 90
----
-29
7142

query I rowsort
SELECT ALL 51 * - - 23 AS col1
----
1173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4560
SELECT + COUNT( * ) + - COALESCE ( - 67, - COUNT( * ) + + COUNT( * ) - - 66 DIV - COUNT( * ), - 70 )
----
68

skipif mysql # not compatible
query I rowsort label-4560
SELECT + COUNT ( * ) + - COALESCE ( - 67, - COUNT ( * ) + + COUNT ( * ) - - 66 / - COUNT ( * ), - 70 )
----
68

query I rowsort
SELECT + + 46 * - 39 AS col0
----
-1794

query I rowsort
SELECT + 34 + - 24 * - 93 AS col1
----
2266

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT + - ( - - 51 ) * + - ( - MAX( DISTINCT 22 ) )
----
-1122

skipif mysql # not compatible
query I rowsort label-4563
SELECT + - ( - - 51 ) * + - ( - MAX ( DISTINCT 22 ) )
----
-1122

query II rowsort
SELECT + - 72 * 35, - 38 AS col0
----
-2520
-38

query I rowsort
SELECT ALL + 66 * 64 + + 53 AS col1
----
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT - MAX( ALL - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4566
SELECT - MAX ( ALL - 7 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT - ( + CASE ( 23 ) WHEN + 36 THEN + 61 + - + CAST( NULL AS SIGNED ) + + 67 * - + 66 WHEN - 86 THEN NULL ELSE + 7 END ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4567
SELECT - ( + CASE ( 23 ) WHEN + 36 THEN + 61 + - + CAST ( NULL AS INTEGER ) + + 67 * - + 66 WHEN - 86 THEN NULL ELSE + 7 END ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT + COUNT( * ) * + ( 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4568
SELECT + COUNT ( * ) * + ( 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4569
SELECT - COALESCE ( SUM( DISTINCT 43 ), - 76 * + SUM( DISTINCT - 85 ) ) * 60 DIV + - 60 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4569
SELECT - COALESCE ( SUM ( DISTINCT 43 ), - 76 * + SUM ( DISTINCT - 85 ) ) * 60 / + - 60 AS col2
----
43

query I rowsort
SELECT ALL NULLIF ( - 85, - 6 ) AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4571
SELECT DISTINCT CASE + ( + - COALESCE ( COUNT( * ), + + ( + 59 ), - - 80 / + 26 ) ) WHEN ( 11 ) * 85 THEN 46 / - 94 + + - SUM( ALL 15 ) + 10 ELSE - ( + 46 ) * + + 6 + + CAST( NULL AS SIGNED ) + - - 41 END AS col0, - CASE - CASE + - COUNT( * ) WHEN - ( 60 ) + ( 61 ) * - - ( COUNT( + - 66 ) ) * + 54 * - ( - 71 ) / + + 74 THEN NULL WHEN - SUM( DISTINCT + 69 ) * 32 THEN 38 ELSE + 19 END WHEN 55 + 98 + + + 92 * - - 1 THEN NULL ELSE - COUNT( * ) END * + MIN( ALL - 14 ) * 13 AS col0
----
NULL
-182

skipif mysql # not compatible
query II rowsort label-4571
SELECT DISTINCT CASE + ( + - COALESCE ( COUNT ( * ), + + ( + 59 ), - - 80 / + 26 ) ) WHEN ( 11 ) * 85 THEN 46 / - 94 + + - SUM ( ALL 15 ) + 10 ELSE - ( + 46 ) * + + 6 + + CAST ( NULL AS INTEGER ) + - - 41 END AS col0, - CASE - CASE + - COUNT ( * ) WHEN - ( 60 ) + ( 61 ) * - - ( COUNT ( + - 66 ) ) * + 54 * - ( - 71 ) / + + 74 THEN NULL WHEN - SUM ( DISTINCT + 69 ) * 32 THEN 38 ELSE + 19 END WHEN 55 + 98 + + + 92 * - - 1 THEN NULL ELSE - COUNT ( * ) END * + MIN ( ALL - 14 ) * 13 AS col0
----
NULL
-182

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4572
SELECT ALL ( + - 65 ) + + + 44 + - + 15 + - 92 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL ( + - 65 ) + + + 44 + - + 15 + - 92 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4573
SELECT ALL + 94 + - 38 * + - CASE + COUNT( ALL + 36 ) WHEN 37 * 35 THEN + + 23 END AS col0, - 11 DIV + 59 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4573
SELECT ALL + 94 + - 38 * + - CASE + COUNT ( ALL + 36 ) WHEN 37 * 35 THEN + + 23 END AS col0, - 11 / + 59 AS col0
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4574
SELECT - CASE + COALESCE ( + ( 41 ), - ( 76 ) * - 31 * + + 62 + + - 83 + 4 + + 84 / + COUNT( * ) + - ( + + 28 ) * 52, + 46 ) WHEN + MIN( ALL + 86 ) THEN - - 49 * 65 * + - 64 - - + 19 + + + 97 WHEN NULLIF ( - 18, + + 87 ) * MAX( + 68 ) - + - 49 THEN CASE - 93 WHEN 22 - - 53 + - - 87 THEN NULL ELSE + 85 END * - + CAST( NULL AS SIGNED ) * + - 62 / 50 * + 94 WHEN - 44 + - + ( - ( - 24 ) ) THEN 77 ELSE NULL END + 44 AS col1, 74 AS col1
----
NULL
74

skipif mysql # not compatible
query II rowsort label-4574
SELECT - CASE + COALESCE ( + ( 41 ), - ( 76 ) * - 31 * + + 62 + + - 83 + 4 + + 84 / + COUNT ( * ) + - ( + + 28 ) * 52, + 46 ) WHEN + MIN ( ALL + 86 ) THEN - - 49 * 65 * + - 64 - - + 19 + + + 97 WHEN NULLIF ( - 18, + + 87 ) * MAX ( + 68 ) - + - 49 THEN CASE - 93 WHEN 22 - - 53 + - - 87 THEN NULL ELSE + 85 END * - + CAST ( NULL AS INTEGER ) * + - 62 / 50 * + 94 WHEN - 44 + - + ( - ( - 24 ) ) THEN 77 ELSE NULL END + 44 AS col1, 74 AS col1
----
NULL
74

query I rowsort
SELECT DISTINCT 76 + 50
----
126

query I rowsort
SELECT DISTINCT + 76 + 24
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT + CAST( - 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-4577
SELECT + CAST ( - 10 AS INTEGER )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT ALL 73 / - 87 * CAST( NULL AS SIGNED ) + - 17 + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL 73 / - 87 * CAST ( NULL AS INTEGER ) + - 17 + 4
----
NULL

query I rowsort
SELECT + 86 * 93 * 79 + + 19 AS col1
----
631861

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4580
SELECT COALESCE ( + CAST( - 87 AS SIGNED ), + 82 ) DIV 90 * - 16 + + 32 - + 51
----
-19

skipif mysql # not compatible
query I rowsort label-4580
SELECT COALESCE ( + CAST ( - 87 AS INTEGER ), + 82 ) / 90 * - 16 + + 32 - + 51
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT 58 * 93 - - - 75 * + + 82 + - + COALESCE ( NULLIF ( - - 11, - COALESCE ( + 41, + COUNT( * ) - + + 50, 16 - 20 ) * 17 * - + 89 * + COUNT( + - 65 ) / - COUNT( * ) + + - 8 ), - - SUM( DISTINCT 19 ) - - 61 )
----
-767

skipif mysql # not compatible
query I rowsort label-4581
SELECT 58 * 93 - - - 75 * + + 82 + - + COALESCE ( NULLIF ( - - 11, - COALESCE ( + 41, + COUNT ( * ) - + + 50, 16 - 20 ) * 17 * - + 89 * + COUNT ( + - 65 ) / - COUNT ( * ) + + - 8 ), - - SUM ( DISTINCT 19 ) - - 61 )
----
-767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4582
SELECT DISTINCT 17 / + CAST( NULL AS SIGNED ) * + 27 * + 0 + - AVG ( ALL - ( - 74 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT 17 / + CAST ( NULL AS INTEGER ) * + 27 * + 0 + - AVG ( ALL - ( - 74 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4583
SELECT ALL - COALESCE ( + + ( 86 ), - 94 + COUNT( * ) - - COALESCE ( - 95, - 38 * 60 - + COUNT( * ) * + + 19 * + 61 + 38 ) DIV + - 57, - 43 ), + 76 AS col0
----
-86
76

skipif mysql # not compatible
query II rowsort label-4583
SELECT ALL - COALESCE ( + + ( 86 ), - 94 + COUNT ( * ) - - COALESCE ( - 95, - 38 * 60 - + COUNT ( * ) * + + 19 * + 61 + 38 ) / + - 57, - 43 ), + 76 AS col0
----
-86
76

query I rowsort
SELECT DISTINCT - 77 + - 69
----
-146

query I rowsort
SELECT 94 * + 44
----
4136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4586
SELECT ALL - COUNT( * ) DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL - COUNT ( * ) / - 52
----
0

query I rowsort
SELECT ALL - 59 - + 7 * 49 AS col1
----
-402

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL - NULLIF ( ( COUNT( ALL - 6 ) ), + 98 * COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL - NULLIF ( ( COUNT ( ALL - 6 ) ), + 98 * COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT - 53 * ( + COUNT( * ) ) + 65 * CASE WHEN NOT ( 12 * 9 ) = ( NULL ) THEN 52 ELSE 60 * + 54 END AS col1
----
210547

skipif mysql # not compatible
query I rowsort label-4589
SELECT - 53 * ( + COUNT ( * ) ) + 65 * CASE WHEN NOT ( 12 * 9 ) = ( NULL ) THEN 52 ELSE 60 * + 54 END AS col1
----
210547

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT 81 * COALESCE ( - ( MAX( ( + 61 ) ) ), + CASE 85 WHEN + 49 THEN + CASE 60 WHEN - 29 * - 77 THEN + COUNT( * ) END + - 59 END )
----
-4941

skipif mysql # not compatible
query I rowsort label-4590
SELECT 81 * COALESCE ( - ( MAX ( ( + 61 ) ) ), + CASE 85 WHEN + 49 THEN + CASE 60 WHEN - 29 * - 77 THEN + COUNT ( * ) END + - 59 END )
----
-4941

query I rowsort
SELECT 84 * 53 AS col0
----
4452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4592
SELECT ALL - 32 DIV + COALESCE ( 70 * + NULLIF ( - 90, 4 - + 48 ), + 1, + COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL - 32 / + COALESCE ( 70 * + NULLIF ( - 90, 4 - + 48 ), + 1, + COUNT ( * ) ) AS col0
----
0

query I rowsort
SELECT 26 + + 2 col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4594
SELECT ALL - CAST( - 71 AS SIGNED ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL - CAST ( - 71 AS INTEGER ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT COUNT( * ) * COUNT( * ) + - 37 * 96 AS col2
----
-3551

skipif mysql # not compatible
query I rowsort label-4595
SELECT COUNT ( * ) * COUNT ( * ) + - 37 * 96 AS col2
----
-3551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4596
SELECT DISTINCT CAST( NULL AS SIGNED ) * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT COUNT( * ) * - 43 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4597
SELECT COUNT ( * ) * - 43 AS col0
----
-43

query I rowsort
SELECT ALL - ( + 46 ) col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT 15 - + COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4599
SELECT 15 - + COUNT ( * ) AS col1
----
14

query I rowsort
SELECT 51 * COALESCE ( 83, 62, - 62 ) AS col2
----
4233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT 25 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT 25 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT 41 DIV 28 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4602
SELECT 41 / 28 AS col2
----
1

query I rowsort
SELECT 76 * 39
----
2964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4604
SELECT DISTINCT 30 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT 30 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 89 + 54 col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT DISTINCT + 53 + + SUM( + ( 16 ) + - 92 )
----
-23

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT + 53 + + SUM ( + ( 16 ) + - 92 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT 66 + + COUNT( ( + 56 ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4607
SELECT 66 + + COUNT ( ( + 56 ) ) AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4608
SELECT DISTINCT 82 + + CASE 25 WHEN - 82 THEN NULL WHEN CASE - 5 WHEN - COALESCE ( CAST( 74 AS SIGNED ), ( - 50 ) ) THEN - 14 END + 6 / - 43 THEN NULL WHEN - 11 + - 44 THEN 50 * COUNT( * ) ELSE 0 END
----
82

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT 82 + + CASE 25 WHEN - 82 THEN NULL WHEN CASE - 5 WHEN - COALESCE ( CAST ( 74 AS INTEGER ), ( - 50 ) ) THEN - 14 END + 6 / - 43 THEN NULL WHEN - 11 + - 44 THEN 50 * COUNT ( * ) ELSE 0 END
----
82

query I rowsort
SELECT DISTINCT 94 * - 8 AS col1
----
-752

onlyif mysql # DIV for integer division: 
query I rowsort label-4610
SELECT 79 DIV 29 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4610
SELECT 79 / 29 AS col1
----
2

query I rowsort
SELECT 50 * 51
----
2550

query I rowsort
SELECT ALL 29 * - 26
----
-754

onlyif mysql # DIV for integer division: 
query I rowsort label-4613
SELECT 56 DIV 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4613
SELECT 56 / 85 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT 1 + MAX( - 49 + 97 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4614
SELECT 1 + MAX ( - 49 + 97 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT DISTINCT COUNT( * ) + 79 * MIN( ALL + ( - 27 ) + COALESCE ( 67, ( 34 ), 0 ) ) AS col2
----
3161

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT COUNT ( * ) + 79 * MIN ( ALL + ( - 27 ) + COALESCE ( 67, ( 34 ), 0 ) ) AS col2
----
3161

query I rowsort
SELECT DISTINCT 28 - + 71 col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4617
SELECT DISTINCT 87 - 50 DIV 90
----
87

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT 87 - 50 / 90
----
87

query I rowsort
SELECT DISTINCT - 45 * 94
----
-4230

query I rowsort
SELECT 9 * 64 + + 92
----
668

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT COUNT( * ) * 12 - - 95
----
107

skipif mysql # not compatible
query I rowsort label-4620
SELECT COUNT ( * ) * 12 - - 95
----
107

query I rowsort
SELECT - NULLIF ( - 78, - 90 / 89 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT - COUNT( * ) - - 48
----
47

skipif mysql # not compatible
query I rowsort label-4622
SELECT - COUNT ( * ) - - 48
----
47

query I rowsort
SELECT ALL - 51 - + 5 col2
----
-56

query I rowsort
SELECT + - 66 col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT - 66 * COUNT( * ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4625
SELECT - 66 * COUNT ( * ) AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT ALL - MIN( CAST( NULL AS SIGNED ) ) * + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL - MIN ( CAST ( NULL AS INTEGER ) ) * + 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ( + 89 ) - + 95 * + MAX( 67 ) col1
----
-6276

skipif mysql # not compatible
query I rowsort label-4627
SELECT ( + 89 ) - + 95 * + MAX ( 67 ) col1
----
-6276

query I rowsort
SELECT DISTINCT - - 68 AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4629
SELECT + ( - 83 ) * CAST( - 22 AS SIGNED ) AS col2
----
1826

skipif mysql # not compatible
query I rowsort label-4629
SELECT + ( - 83 ) * CAST ( - 22 AS INTEGER ) AS col2
----
1826

query I rowsort
SELECT ALL + - ( + 24 ) + - 54
----
-78

query I rowsort
SELECT 68 + - CASE + 89 + - 10 * + ( - 29 * ( + 49 ) ) WHEN - 31 THEN - 36 * 29 END * 41 AS col1
----
NULL

query I rowsort
SELECT - 25 - + 57 * + 88
----
-5041

query I rowsort
SELECT 14 + - 35 * - 91 AS col2
----
3199

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT + - ( - COUNT( * ) ) * ( - 78 * - 42 ) - 48
----
3228

skipif mysql # not compatible
query I rowsort label-4634
SELECT + - ( - COUNT ( * ) ) * ( - 78 * - 42 ) - 48
----
3228

query I rowsort
SELECT - 82 + 35 AS col0
----
-47

query I rowsort
SELECT ALL - 5 + + NULLIF ( 78 + 66, 69 ) * 78
----
11227

query I rowsort
SELECT - + 91 col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT DISTINCT - 93 + + - 60 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT - 93 + + - 60 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 60 + + 11
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL COUNT( DISTINCT + 11 )
----
1

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL COUNT ( DISTINCT + 11 )
----
1

query I rowsort
SELECT 69 + - 96 AS col1
----
-27

query I rowsort
SELECT DISTINCT - 94 + + 85
----
-9

query I rowsort
SELECT 59 * - 27 * - 82 AS col2
----
130626

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT 95 * + NULLIF ( SUM( DISTINCT + 51 ), 77 * 80 )
----
4845

skipif mysql # not compatible
query I rowsort label-4644
SELECT 95 * + NULLIF ( SUM ( DISTINCT + 51 ), 77 * 80 )
----
4845

query I rowsort
SELECT ( + - 98 ) + 45 * 83 AS col1
----
3637

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT DISTINCT 41 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT 41 / 32
----
1

query I rowsort
SELECT ALL - 77 - + - 58
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) * - ( NULLIF ( - COALESCE ( 63, 5 / - 6 ), 45 * - 76 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * - ( NULLIF ( - COALESCE ( 63, 5 / - 6 ), 45 * - 76 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 75 * 47 * + 88 AS col1
----
310200

query I rowsort
SELECT ALL ( - 42 ) - - 75 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT - COUNT( - 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-4651
SELECT - COUNT ( - 49 )
----
-1

query I rowsort
SELECT + 57 + + + 1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4653
SELECT + 16 / + + CASE 82 WHEN + 40 THEN 52 * - 96 + CASE - 77 WHEN 51 * 83 THEN CAST( - COUNT( * ) AS SIGNED ) END * - 9 ELSE MIN( DISTINCT 20 ) END * - CASE + AVG ( 18 ) WHEN AVG ( DISTINCT 9 ) + CAST( COALESCE ( 85, 70 ) AS DECIMAL ) THEN - 74 * + 89 ELSE + CASE WHEN NOT - 16 <> 99 / 75 THEN - 90 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT + 16 / + + CASE 82 WHEN + 40 THEN 52 * - 96 + CASE - 77 WHEN 51 * 83 THEN CAST ( - COUNT ( * ) AS INTEGER ) END * - 9 ELSE MIN ( DISTINCT 20 ) END * - CASE + AVG ( 18 ) WHEN AVG ( DISTINCT 9 ) + CAST ( COALESCE ( 85, 70 ) AS REAL ) THEN - 74 * + 89 ELSE + CASE WHEN NOT - 16 <> 99 / 75 THEN - 90 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL COUNT( * ) * + 96 * NULLIF ( 92, 39 )
----
8832

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL COUNT ( * ) * + 96 * NULLIF ( 92, 39 )
----
8832

query I rowsort
SELECT + 34 * - 0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4656
SELECT ALL 39 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL 39 * CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - 4 * - ( - 19 ) AS col1
----
-76

query I rowsort
SELECT 32 * - 93 + ( ( ( COALESCE ( 24, 78 * 70 ) ) ) ) * 15
----
-2616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4659
SELECT + ( ( CASE WHEN NOT NULL NOT BETWEEN 50 AND ( MAX( ( 23 ) ) + ( + 69 + + 36 ) * AVG ( ALL + 91 DIV + CAST( - 77 AS SIGNED ) ) ) THEN 68 * 93 + 40 ELSE + 99 + 3 END ) ) DIV 77 - 16
----
-15

skipif mysql # not compatible
query I rowsort label-4659
SELECT + ( ( CASE WHEN NOT NULL NOT BETWEEN 50 AND ( MAX ( ( 23 ) ) + ( + 69 + + 36 ) * AVG ( ALL + 91 / + CAST ( - 77 AS INTEGER ) ) ) THEN 68 * 93 + 40 ELSE + 99 + 3 END ) ) / 77 - 16
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4660
SELECT + 84 DIV 20 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4660
SELECT + 84 / 20 AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4661
SELECT - - 9 DIV COUNT( * ) * MAX( DISTINCT + 74 * + 72 ) + + 94 + 34
----
48080

skipif mysql # not compatible
query I rowsort label-4661
SELECT - - 9 / COUNT ( * ) * MAX ( DISTINCT + 74 * + 72 ) + + 94 + 34
----
48080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4662
SELECT - CAST( NULL AS SIGNED ) * 59 - - 75 * 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4662
SELECT - CAST ( NULL AS INTEGER ) * 59 - - 75 * 41 AS col1
----
NULL

query I rowsort
SELECT + + 17 * - 77
----
-1309

query I rowsort
SELECT ALL - 11 * + NULLIF ( 0, 53 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT + - COUNT( * ) + 82 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-4665
SELECT + - COUNT ( * ) + 82 AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4666
SELECT ALL + + CASE 57 WHEN - 47 THEN COUNT( * ) + - 77 * ( AVG ( ALL 51 ) ) ELSE 49 / + 22 + CAST( NULL AS SIGNED ) * + 35 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL + + CASE 57 WHEN - 47 THEN COUNT ( * ) + - 77 * ( AVG ( ALL 51 ) ) ELSE 49 / + 22 + CAST ( NULL AS INTEGER ) * + 35 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT + + 25 + - MAX( DISTINCT + 38 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4667
SELECT + + 25 + - MAX ( DISTINCT + 38 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT ALL + - NULLIF ( 91, + 38 / + COUNT( * ) ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL + - NULLIF ( 91, + 38 / + COUNT ( * ) ) AS col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4669
SELECT DISTINCT + - CAST( - - 58 AS SIGNED ) * SUM( CASE 7 WHEN 63 + 0 * 61 THEN 47 * - 18 ELSE NULL END + ( - 35 + 99 ) ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT + - CAST ( - - 58 AS INTEGER ) * SUM ( CASE 7 WHEN 63 + 0 * 61 THEN 47 * - 18 ELSE NULL END + ( - 35 + 99 ) ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - + 99 * - 11 + CASE 54 WHEN 61 THEN 47 WHEN - 59 THEN NULL WHEN 98 THEN NULL ELSE NULL END col1
----
NULL

query I rowsort
SELECT + NULLIF ( - + 2, 45 )
----
-2

query I rowsort
SELECT - 0 * + 55 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT + 40 * - + COUNT( * ) - - 22 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4673
SELECT + 40 * - + COUNT ( * ) - - 22 AS col1
----
-18

query I rowsort
SELECT - + 84 + + + 77 + + 9 * 9 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL + 79 * 52 + + ( - MIN( DISTINCT 7 ) )
----
4101

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL + 79 * 52 + + ( - MIN ( DISTINCT 7 ) )
----
4101

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT - - 9 + + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4676
SELECT - - 9 + + + COUNT ( * )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4677
SELECT ALL + CAST( NULL AS SIGNED ) * + 73 * 1 + - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL + CAST ( NULL AS INTEGER ) * + 73 * 1 + - 39 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4678
SELECT + + 40 DIV + - 47
----
0

skipif mysql # not compatible
query I rowsort label-4678
SELECT + + 40 / + - 47
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4679
SELECT ALL + 15 * + CAST( 98 AS SIGNED ) + + 50 * MAX( ALL + 7 * 78 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL + 15 * + CAST ( 98 AS INTEGER ) + + 50 * MAX ( ALL + 7 * 78 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT DISTINCT - ( COUNT( * ) ) * - 63 + + 80 AS col1
----
143

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT - ( COUNT ( * ) ) * - 63 + + 80 AS col1
----
143

query I rowsort
SELECT - COALESCE ( 38, - 94 )
----
-38

query I rowsort
SELECT ALL - 50 * - - 84 + + 76 AS col0
----
-4124

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT + ( + ( + COUNT( 68 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4683
SELECT + ( + ( + COUNT ( 68 ) ) )
----
1

query I rowsort
SELECT ALL 59 * + 70 * - 66
----
-272580

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL + SUM( - 54 ) * 36 AS col1
----
-1944

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL + SUM ( - 54 ) * 36 AS col1
----
-1944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4686
SELECT - NULLIF ( + 54, - SUM( DISTINCT 65 ) ) DIV 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT - NULLIF ( + 54, - SUM ( DISTINCT 65 ) ) / 94 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4687
SELECT ALL + 35 DIV MIN( ALL + 1 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL + 35 / MIN ( ALL + 1 ) AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4688
SELECT + 18 - + 12 + + - COUNT( * ) DIV 99 col1
----
6

skipif mysql # not compatible
query I rowsort label-4688
SELECT + 18 - + 12 + + - COUNT ( * ) / 99 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT + CASE - + 42 WHEN + + CASE - ( - 12 ) WHEN 60 / + ( ( 72 ) * 79 ) THEN NULL WHEN - 66 THEN NULL WHEN 98 + - 83 / 88 THEN 37 END THEN - 89 END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT + CASE - + 42 WHEN + + CASE - ( - 12 ) WHEN 60 / + ( ( 72 ) * 79 ) THEN NULL WHEN - 66 THEN NULL WHEN 98 + - 83 / 88 THEN 37 END THEN - 89 END - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT - CAST( NULL AS SIGNED ) * - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT - CAST ( NULL AS INTEGER ) * - 87
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4691
SELECT ALL + 35 DIV - 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL + 35 / - 77 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4692
SELECT 4 AS col2, + 60 + + COUNT( * ) AS col2
----
4
61

skipif mysql # not compatible
query II rowsort label-4692
SELECT 4 AS col2, + 60 + + COUNT ( * ) AS col2
----
4
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4693
SELECT - 30 AS col1, - MIN( DISTINCT + 51 ) + - 63
----
-30
-114

skipif mysql # not compatible
query II rowsort label-4693
SELECT - 30 AS col1, - MIN ( DISTINCT + 51 ) + - 63
----
-30
-114

query I rowsort
SELECT - 76 * ( + - 35 )
----
2660

query I rowsort
SELECT DISTINCT ( + ( + 8 ) )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4696
SELECT DISTINCT - 63 * COALESCE ( + 63, ( 0 ) DIV 55 + 59 ) AS col0
----
-3969

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT - 63 * COALESCE ( + 63, ( 0 ) / 55 + 59 ) AS col0
----
-3969

query II rowsort
SELECT 21 col2, + 65 AS col0
----
21
65

query I rowsort
SELECT ALL - 45 * + 21 * CASE + 15 WHEN 86 THEN NULL WHEN 72 THEN 91 WHEN ( - 55 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT - COUNT( * ) - - COALESCE ( + + COUNT( * ), - CASE - 29 WHEN 60 + + ( 28 ) THEN NULL ELSE 2 * + COUNT( * ) END * + 61 )
----
0

skipif mysql # not compatible
query I rowsort label-4699
SELECT - COUNT ( * ) - - COALESCE ( + + COUNT ( * ), - CASE - 29 WHEN 60 + + ( 28 ) THEN NULL ELSE 2 * + COUNT ( * ) END * + 61 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT ALL - 72 * COUNT( * ) * + ( 96 )
----
-6912

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL - 72 * COUNT ( * ) * + ( 96 )
----
-6912

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4701
SELECT DISTINCT CASE + 26 WHEN 27 THEN - CAST( NULL AS DECIMAL ) + - 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT CASE + 26 WHEN 27 THEN - CAST ( NULL AS REAL ) + - 48 END
----
NULL

query I rowsort
SELECT ALL ( - - 0 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4703
SELECT ALL + NULLIF ( - + NULLIF ( 11, - 28 + CAST( NULL AS SIGNED ) ), 58 ) * + 15
----
-165

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL + NULLIF ( - + NULLIF ( 11, - 28 + CAST ( NULL AS INTEGER ) ), 58 ) * + 15
----
-165

query I rowsort
SELECT + 10 * - + ( - - 27 )
----
-270

query II rowsort
SELECT 20 AS col0, - 8 + + 2
----
20
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4706
SELECT - 81 + - - 64 + - + 87 + COALESCE ( - MAX( 42 ) + 24 * NULLIF ( + MAX( DISTINCT - 74 ) * 8 + CAST( + CASE + 9 WHEN + NULLIF ( 95, 37 * 40 ) THEN 23 ELSE NULL END AS SIGNED ) DIV + ( + 7 ), 33 ), 77 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4706
SELECT - 81 + - - 64 + - + 87 + COALESCE ( - MAX ( 42 ) + 24 * NULLIF ( + MAX ( DISTINCT - 74 ) * 8 + CAST ( + CASE + 9 WHEN + NULLIF ( 95, 37 * 40 ) THEN 23 ELSE NULL END AS INTEGER ) / + ( + 7 ), 33 ), 77 ) AS col1
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4707
SELECT ALL CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4708
SELECT + 63 - + CAST( + MAX( - 26 ) AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4708
SELECT + 63 - + CAST ( + MAX ( - 26 ) AS INTEGER ) AS col2
----
89

query I rowsort
SELECT - + 46 * - + 62
----
2852

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4710
SELECT ALL ( - 60 ) DIV + - 97 * - 20 + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL ( - 60 ) / + - 97 * - 20 + COUNT ( * ) AS col0
----
1

query II rowsort
SELECT ALL + + 5 col1, 30
----
5
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT DISTINCT + COUNT( - 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT + COUNT ( - 81 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4713
SELECT DISTINCT + 40 DIV - 48 + - COALESCE ( 90, + 38 )
----
-90

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT + 40 / - 48 + - COALESCE ( 90, + 38 )
----
-90

query I rowsort
SELECT - 1 * - 85 col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT + 78 * MAX( + 86 ) - 81
----
6627

skipif mysql # not compatible
query I rowsort label-4715
SELECT + 78 * MAX ( + 86 ) - 81
----
6627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4716
SELECT + - COALESCE ( 63, 96, 98 + - 61 DIV 41, COUNT( * ) + 73, + 88 + + CAST( 78 AS SIGNED ) ) * + NULLIF ( 5, + 49 + 68 * 7 )
----
-315

skipif mysql # not compatible
query I rowsort label-4716
SELECT + - COALESCE ( 63, 96, 98 + - 61 / 41, COUNT ( * ) + 73, + 88 + + CAST ( 78 AS INTEGER ) ) * + NULLIF ( 5, + 49 + 68 * 7 )
----
-315

query I rowsort
SELECT ALL + 50 * 87 AS col0
----
4350

query I rowsort
SELECT + + 44 + 0 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT + COUNT( - - 19 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4719
SELECT + COUNT ( - - 19 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT DISTINCT + 39 DIV - + 61 + - 53 - + 45 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT + 39 / - + 61 + - 53 - + 45 AS col1
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4721
SELECT ALL + ( - 15 ) * + 61 * MAX( + 41 ) - 92 DIV - 57 + 32 AS col1
----
-37482

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + ( - 15 ) * + 61 * MAX ( + 41 ) - 92 / - 57 + 32 AS col1
----
-37482

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT 53 * - COUNT( * ) - + CASE - 60 WHEN + 82 THEN 85 * 40 WHEN MIN( ALL + 8 ) * COUNT( * ) THEN NULL END - - 62 / 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT 53 * - COUNT ( * ) - + CASE - 60 WHEN + 82 THEN 85 * 40 WHEN MIN ( ALL + 8 ) * COUNT ( * ) THEN NULL END - - 62 / 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4723
SELECT DISTINCT + - COUNT( * ), COUNT( * ) * 37 / CAST( NULL AS SIGNED ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4723
SELECT DISTINCT + - COUNT ( * ), COUNT ( * ) * 37 / CAST ( NULL AS INTEGER ) AS col2
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4724
SELECT ALL + AVG ( ALL - 74 ) * - + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL + AVG ( ALL - 74 ) * - + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + + 39 * + 43 - + + 0
----
1677

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4726
SELECT ALL 45 * + ( - 79 ) - - + COUNT( 51 ) - + COUNT( * ) DIV - 23 col0
----
-3554

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL 45 * + ( - 79 ) - - + COUNT ( 51 ) - + COUNT ( * ) / - 23 col0
----
-3554

query I rowsort
SELECT + 58 * 22 + - - 83 + + + 66 + 74
----
1499

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4728
SELECT + 95 + - COUNT( * ) * + COUNT( * ) DIV + + MAX( + 16 )
----
95

skipif mysql # not compatible
query I rowsort label-4728
SELECT + 95 + - COUNT ( * ) * + COUNT ( * ) / + + MAX ( + 16 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT 40 * + 38 - - COUNT( DISTINCT - 45 ) AS col0
----
1521

skipif mysql # not compatible
query I rowsort label-4729
SELECT 40 * + 38 - - COUNT ( DISTINCT - 45 ) AS col0
----
1521

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT ALL 65 * - SUM( - 36 )
----
2340

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL 65 * - SUM ( - 36 )
----
2340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4731
SELECT ( - COUNT( * ) ) + + + 6 DIV - COALESCE ( 1, - 6, 98 * 19 ) + + ( 24 ) DIV COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-4731
SELECT ( - COUNT ( * ) ) + + + 6 / - COALESCE ( 1, - 6, 98 * 19 ) + + ( 24 ) / COUNT ( * )
----
17

query I rowsort
SELECT 4 - - 75 * - 12
----
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ( + SUM( 60 ) ) * - + 66
----
-3960

skipif mysql # not compatible
query I rowsort label-4733
SELECT ( + SUM ( 60 ) ) * - + 66
----
-3960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4734
SELECT 78 + + CAST( + COUNT( * ) AS SIGNED ) - + COALESCE ( CASE - 58 WHEN + 18 - COUNT( * ) THEN + COALESCE ( 23, + 41, COUNT( * ) ) + 54 WHEN 57 THEN 98 ELSE 43 END, 95 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4734
SELECT 78 + + CAST ( + COUNT ( * ) AS INTEGER ) - + COALESCE ( CASE - 58 WHEN + 18 - COUNT ( * ) THEN + COALESCE ( 23, + 41, COUNT ( * ) ) + 54 WHEN 57 THEN 98 ELSE 43 END, 95 ) AS col1
----
36

query I rowsort
SELECT ALL 29 * 93 * + 33 AS col0
----
89001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4736
SELECT CAST( + 82 AS SIGNED ) + - + 95
----
-13

skipif mysql # not compatible
query I rowsort label-4736
SELECT CAST ( + 82 AS INTEGER ) + - + 95
----
-13

query II rowsort
SELECT DISTINCT 5 * - - 79, + 29 * - 16 AS col1
----
395
-464

query I rowsort
SELECT 4 + 55
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4739
SELECT 20 DIV 61 DIV MAX( 11 )
----
0

skipif mysql # not compatible
query I rowsort label-4739
SELECT 20 / 61 / MAX ( 11 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4740
SELECT 90 + - + 24 + - 81 DIV - 12
----
72

skipif mysql # not compatible
query I rowsort label-4740
SELECT 90 + - + 24 + - 81 / - 12
----
72

query I rowsort
SELECT COALESCE ( - ( + - 13 ), + 31 ) + + 74 AS col2
----
87

query I rowsort
SELECT 3 * + - 60 * + 16 AS col0
----
-2880

query I rowsort
SELECT 39 + + + 95 + 79 + - 16 AS col1
----
197

query I rowsort
SELECT ALL - ( - + ( - - ( - 79 ) ) ) + 15
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-4745
SELECT ALL + COUNT( * ) * + COUNT( * ), + 64 AS col1
----
1
64

skipif mysql # not compatible
query II rowsort label-4745
SELECT ALL + COUNT ( * ) * + COUNT ( * ), + 64 AS col1
----
1
64

query I rowsort
SELECT DISTINCT + 72 * 5 * + 97 AS col1
----
34920

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT ALL - COUNT( * ) + + 43 * + 7 col1
----
300

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL - COUNT ( * ) + + 43 * + 7 col1
----
300

query I rowsort
SELECT ALL - - 34 + - 77
----
-43

query I rowsort
SELECT ( - 67 ) * + - 38 AS col1
----
2546

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT + 95 + - COUNT( DISTINCT 88 )
----
94

skipif mysql # not compatible
query I rowsort label-4750
SELECT + 95 + - COUNT ( DISTINCT 88 )
----
94

query I rowsort
SELECT + 50 * - CASE - - 28 WHEN 76 + + 25 THEN + 23 * 92 + 73 END * 58 + + 99 AS col0
----
NULL

query I rowsort
SELECT - 78 - 56
----
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4753
SELECT + - ( - MAX( - NULLIF ( + 21, CAST( - 67 AS SIGNED ) + - 78 * - 15 ) ) ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4753
SELECT + - ( - MAX ( - NULLIF ( + 21, CAST ( - 67 AS INTEGER ) + - 78 * - 15 ) ) ) AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-4754
SELECT - 63 DIV - - 94 + + 4 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4754
SELECT - 63 / - - 94 + + 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT + + COUNT( * ) * + 50 + + 7 col1
----
57

skipif mysql # not compatible
query I rowsort label-4755
SELECT + + COUNT ( * ) * + 50 + + 7 col1
----
57

query I rowsort
SELECT DISTINCT - - ( 21 ) AS col2
----
21

query II rowsort
SELECT DISTINCT - 60 + - 99 AS col0, + 79 AS col0
----
-159
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT DISTINCT + MIN( DISTINCT - - 72 ) * 56 AS col1
----
4032

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT + MIN ( DISTINCT - - 72 ) * 56 AS col1
----
4032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4759
SELECT DISTINCT - - COUNT( * ) DIV + - ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT - - COUNT ( * ) / + - ( - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT 92 * 3 + - 16 AS col0
----
260

query I rowsort
SELECT + 85 + + 19 * 49
----
1016

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT DISTINCT 64 * - MAX( ALL + 1 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT 64 * - MAX ( ALL + 1 ) AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4763
SELECT ALL - 33 AS col1, 71 - + ( - COUNT( * ) ) + - CAST( NULL AS SIGNED ) + 41
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-4763
SELECT ALL - 33 AS col1, 71 - + ( - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) + 41
----
-33
NULL

query I rowsort
SELECT DISTINCT 24 * + 95 * + 77
----
175560

query I rowsort
SELECT DISTINCT + 90 * - 8 AS col2
----
-720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4766
SELECT CASE + COALESCE ( - CASE - + 12 WHEN + COALESCE ( - ( - 84 ), 49, 19 + + 51 ) * ( + 31 ) THEN 95 WHEN - 3 + 47 THEN NULL WHEN - ( 74 ) THEN - 60 * 10 ELSE 96 END, + 1 / COALESCE ( CAST( + 64 AS SIGNED ) * 24, NULLIF ( 13, 8 - + COUNT( * ) ) ) ) WHEN 58 * - 54 THEN ( 9 ) END * - ( + COALESCE ( + 16, 22 + 76 ) * - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT CASE + COALESCE ( - CASE - + 12 WHEN + COALESCE ( - ( - 84 ), 49, 19 + + 51 ) * ( + 31 ) THEN 95 WHEN - 3 + 47 THEN NULL WHEN - ( 74 ) THEN - 60 * 10 ELSE 96 END, + 1 / COALESCE ( CAST ( + 64 AS INTEGER ) * 24, NULLIF ( 13, 8 - + COUNT ( * ) ) ) ) WHEN 58 * - 54 THEN ( 9 ) END * - ( + COALESCE ( + 16, 22 + 76 ) * - 86 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4767
SELECT DISTINCT 88 * + CAST( NULL AS DECIMAL ) * - NULLIF ( - 27, - + CAST( 30 AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT 88 * + CAST ( NULL AS REAL ) * - NULLIF ( - 27, - + CAST ( 30 AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 84 - - 74 AS col1
----
158

query I rowsort
SELECT ( + + 68 ) - - - 63 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT ( + + 42 ) * + + ( - SUM( - 83 ) )
----
3486

skipif mysql # not compatible
query I rowsort label-4770
SELECT ( + + 42 ) * + + ( - SUM ( - 83 ) )
----
3486

query I rowsort
SELECT DISTINCT 10 + 10
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4772
SELECT ALL 81 + + - ( 96 ) - CAST( + 40 AS SIGNED ) + COUNT( * ) * 82 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL 81 + + - ( 96 ) - CAST ( + 40 AS INTEGER ) + COUNT ( * ) * 82 AS col1
----
27

query I rowsort
SELECT ALL 45 * - 18 AS col1
----
-810

query I rowsort
SELECT ALL 57 * 98 AS col1
----
5586

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT DISTINCT COUNT( * ) + - 73 + - - COUNT( * ) * + COUNT( DISTINCT - 26 ) + 80 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT COUNT ( * ) + - 73 + - - COUNT ( * ) * + COUNT ( DISTINCT - 26 ) + 80 AS col0
----
9

query I rowsort
SELECT DISTINCT 74 + + + 31 AS col1
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT DISTINCT - 32 + 3 DIV + 5
----
-32

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT - 32 + 3 / + 5
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT ALL NULLIF ( - ( + COUNT( * ) ), - - 53 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL NULLIF ( - ( + COUNT ( * ) ), - - 53 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4779
SELECT CAST( + - 50 AS SIGNED ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4779
SELECT CAST ( + - 50 AS INTEGER ) AS col0
----
-50

query II rowsort
SELECT - - 55 AS col1, 98 AS col2
----
55
98

query II rowsort
SELECT ALL 13 AS col0, + 95 + + - ( - 75 ) AS col1
----
13
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT - 92 * - - COALESCE ( + CASE - 44 WHEN + 68 + + COUNT( DISTINCT + 97 ) THEN - 25 END, - 80, 84 + 76 )
----
7360

skipif mysql # not compatible
query I rowsort label-4782
SELECT - 92 * - - COALESCE ( + CASE - 44 WHEN + 68 + + COUNT ( DISTINCT + 97 ) THEN - 25 END, - 80, 84 + 76 )
----
7360

query I rowsort
SELECT - 67 * - NULLIF ( - - 20, + 31 ) AS col2
----
1340

query I rowsort
SELECT DISTINCT + + 69 + + - 42 col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT DISTINCT - + COUNT( * ) + + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT - + COUNT ( * ) + + - COUNT ( * )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4786
SELECT MAX( - CAST( - ( 80 ) AS SIGNED ) ) * ( - 76 ) AS col1
----
-6080

skipif mysql # not compatible
query I rowsort label-4786
SELECT MAX ( - CAST ( - ( 80 ) AS INTEGER ) ) * ( - 76 ) AS col1
----
-6080

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT - COUNT( - 73 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4787
SELECT - COUNT ( - 73 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL - NULLIF ( - CASE - CASE 50 WHEN - SUM( ALL + 62 ) THEN + AVG ( + 42 ) ELSE + 8 END WHEN 19 + - 53 THEN 32 END, - 53 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL - NULLIF ( - CASE - CASE 50 WHEN - SUM ( ALL + 62 ) THEN + AVG ( + 42 ) ELSE + 8 END WHEN 19 + - 53 THEN 32 END, - 53 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 67 * - 99 AS col0
----
-6633

query I rowsort
SELECT ALL 27 * - + COALESCE ( + + 22, + + 68 ) * - + 91 - + 75 AS col1
----
53979

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT + NULLIF ( - 45, 53 * + 66 + + COUNT( * ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-4791
SELECT + NULLIF ( - 45, 53 * + 66 + + COUNT ( * ) ) AS col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4792
SELECT + - 2 DIV - 60 * + + 76 - - + 80 * 96 + 51 AS col0
----
7731

skipif mysql # not compatible
query I rowsort label-4792
SELECT + - 2 / - 60 * + + 76 - - + 80 * 96 + 51 AS col0
----
7731

query I rowsort
SELECT ALL - + 52 * - 24 AS col0
----
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT - COUNT( * ) + - 48 - - 56
----
7

skipif mysql # not compatible
query I rowsort label-4794
SELECT - COUNT ( * ) + - 48 - - 56
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT SUM( - 29 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4795
SELECT SUM ( - 29 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL ( COUNT( DISTINCT - ( - 90 ) ) ) * + 48 - - 71
----
119

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL ( COUNT ( DISTINCT - ( - 90 ) ) ) * + 48 - - 71
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-4797
SELECT COUNT( * ) col1, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-4797
SELECT COUNT ( * ) col1, COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT - 48 * - + 59
----
2832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4799
SELECT DISTINCT - COALESCE ( + - COALESCE ( - 62, - - SUM( ALL - 59 ) ), - CASE - 22 WHEN 41 * + COUNT( * ) THEN NULL ELSE COUNT( * ) END, 12 * + ( - 77 ) + NULLIF ( + 35 + + 4, 78 * 6 ) * 42 ) DIV + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT - COALESCE ( + - COALESCE ( - 62, - - SUM ( ALL - 59 ) ), - CASE - 22 WHEN 41 * + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END, 12 * + ( - 77 ) + NULLIF ( + 35 + + 4, 78 * 6 ) * 42 ) / + COUNT ( * )
----
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-4800
SELECT + 74 * - - 73 - 86 DIV + 28, - 93 - + 20 * - 22 AS col2
----
5399
347

skipif mysql # not compatible
query II rowsort label-4800
SELECT + 74 * - - 73 - 86 / + 28, - 93 - + 20 * - 22 AS col2
----
5399
347

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT ALL + NULLIF ( - - 5, COUNT( * ) + - - 72 + + + COALESCE ( 87, - 65 * - 70, 28 ) / + ( - 92 - - CASE MIN( ALL 26 ) WHEN + ( + 47 ) THEN 91 * 7 WHEN 98 THEN + 32 END * 97 ) )
----
5

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL + NULLIF ( - - 5, COUNT ( * ) + - - 72 + + + COALESCE ( 87, - 65 * - 70, 28 ) / + ( - 92 - - CASE MIN ( ALL 26 ) WHEN + ( + 47 ) THEN 91 * 7 WHEN 98 THEN + 32 END * 97 ) )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4802
SELECT ALL - 13 DIV - + 82 * + + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL - 13 / - + 82 * + + COUNT ( * ) col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4803
SELECT + 81 AS col2, 91 * 9 + 88 * - - ( COUNT( * ) ) col1
----
81
907

skipif mysql # not compatible
query II rowsort label-4803
SELECT + 81 AS col2, 91 * 9 + 88 * - - ( COUNT ( * ) ) col1
----
81
907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4804
SELECT + 11 * + + COUNT( CAST( NULL AS SIGNED ) ) * CASE + 29 WHEN + 0 THEN + COALESCE ( - 76, 89, 70 + COUNT( * ) DIV + 4 ) WHEN 98 + + MAX( - 7 ) DIV 17 THEN 36 ELSE 81 END * + 20 + - 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4804
SELECT + 11 * + + COUNT ( CAST ( NULL AS INTEGER ) ) * CASE + 29 WHEN + 0 THEN + COALESCE ( - 76, 89, 70 + COUNT ( * ) / + 4 ) WHEN 98 + + MAX ( - 7 ) / 17 THEN 36 ELSE 81 END * + 20 + - 92 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT COUNT( ( 26 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4805
SELECT COUNT ( ( 26 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4806
SELECT + 70 DIV CAST( + COALESCE ( - + 48, - COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4806
SELECT + 70 / CAST ( + COALESCE ( - + 48, - COUNT ( * ) ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT ALL - CASE + 11 WHEN - COUNT( * ) * + - ( + 7 ) THEN 96 WHEN - COUNT( * ) * + 75 + + COUNT( * ) THEN NULL END + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL - CASE + 11 WHEN - COUNT ( * ) * + - ( + 7 ) THEN 96 WHEN - COUNT ( * ) * + 75 + + COUNT ( * ) THEN NULL END + 83 AS col2
----
NULL

query I rowsort
SELECT 14 * - 80 - + - 70 col0
----
-1050

query II rowsort
SELECT - 58 + + + 93 AS col0, - 93 + - 64 AS col2
----
35
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ALL ( + 35 ) * - 60 - + SUM( + - 8 ) * - COUNT( * ) + 38 col1
----
-2070

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL ( + 35 ) * - 60 - + SUM ( + - 8 ) * - COUNT ( * ) + 38 col1
----
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT ALL - 87 + - 40 + + 66 * - + COALESCE ( + 44, + ( 76 ) * COUNT( * ) ) AS col1
----
-3031

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL - 87 + - 40 + + 66 * - + COALESCE ( + 44, + ( 76 ) * COUNT ( * ) ) AS col1
----
-3031

query I rowsort
SELECT + 45 * + 70 AS col1
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL COALESCE ( - + 0, + CASE + COUNT( * ) WHEN + 27 * + NULLIF ( + 79, + 58 ) * - 99 THEN NULL WHEN - 50 * 80 THEN - 75 ELSE NULL END ) + ( - COUNT( * ) + 15 ) * - 42 AS col2
----
-588

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL COALESCE ( - + 0, + CASE + COUNT ( * ) WHEN + 27 * + NULLIF ( + 79, + 58 ) * - 99 THEN NULL WHEN - 50 * 80 THEN - 75 ELSE NULL END ) + ( - COUNT ( * ) + 15 ) * - 42 AS col2
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT - MAX( ALL - 4 ) * + 49
----
196

skipif mysql # not compatible
query I rowsort label-4815
SELECT - MAX ( ALL - 4 ) * + 49
----
196

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4816
SELECT ALL 68 AS col2, - 86 DIV - COUNT( * )
----
68
86

skipif mysql # not compatible
query II rowsort label-4816
SELECT ALL 68 AS col2, - 86 / - COUNT ( * )
----
68
86

query II rowsort
SELECT + 77 + + 23 AS col0, + 44 AS col2
----
100
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4818
SELECT + - COALESCE ( + + COUNT( * ), - 2, - 87 ) + + COUNT( * ) DIV - ( 8 ) + 57 DIV + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4818
SELECT + - COALESCE ( + + COUNT ( * ), - 2, - 87 ) + + COUNT ( * ) / - ( 8 ) + 57 / + 51 AS col0
----
0

query II rowsort
SELECT - - 1 AS col0, - 76
----
1
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL COUNT( * ) * - + 42
----
-42

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL COUNT ( * ) * - + 42
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4821
SELECT 59 AS col1, - 39 * + COUNT( ALL + 69 ) - + 74 AS col0
----
59
-113

skipif mysql # not compatible
query II rowsort label-4821
SELECT 59 AS col1, - 39 * + COUNT ( ALL + 69 ) - + 74 AS col0
----
59
-113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4822
SELECT ALL + COUNT( DISTINCT - 46 ) DIV + + 93
----
0

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL + COUNT ( DISTINCT - 46 ) / + + 93
----
0

query I rowsort
SELECT DISTINCT 78 - - - 61 AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4824
SELECT - COUNT( * ) AS col0, + COALESCE ( + 89, - 49, - 55 )
----
-1
89

skipif mysql # not compatible
query II rowsort label-4824
SELECT - COUNT ( * ) AS col0, + COALESCE ( + 89, - 49, - 55 )
----
-1
89

query I rowsort
SELECT DISTINCT 96 - + - 77 * 37 col1
----
2945

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT ALL + 2 * - 65 * 9 + - 92 + - 78 DIV - - NULLIF ( - 25, - ( - 88 ) ) AS col1
----
-1259

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL + 2 * - 65 * 9 + - 92 + - 78 / - - NULLIF ( - 25, - ( - 88 ) ) AS col1
----
-1259

onlyif mysql # aggregate syntax: 
query II rowsort label-4827
SELECT DISTINCT - COUNT( * ), 49 AS col0
----
-1
49

skipif mysql # not compatible
query II rowsort label-4827
SELECT DISTINCT - COUNT ( * ), 49 AS col0
----
-1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT + CASE - + AVG ( DISTINCT + 28 ) WHEN NULLIF ( + CASE - 15 WHEN 89 THEN 30 * COUNT( * ) END, 17 ) + ( 1 ) THEN 63 * 71 WHEN - 14 THEN NULL ELSE NULL END + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT + CASE - + AVG ( DISTINCT + 28 ) WHEN NULLIF ( + CASE - 15 WHEN 89 THEN 30 * COUNT ( * ) END, 17 ) + ( 1 ) THEN 63 * 71 WHEN - 14 THEN NULL ELSE NULL END + + 90
----
NULL

query I rowsort
SELECT - 67 * 54 col1
----
-3618

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT + 4 DIV 79 DIV + 67 * 29 * 57 + - + 46
----
-46

skipif mysql # not compatible
query I rowsort label-4830
SELECT + 4 / 79 / + 67 * 29 * 57 + - + 46
----
-46

query I rowsort
SELECT + COALESCE ( - 35, 37 ) * - - 54 + + 8 + - 0 * 45
----
-1882

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT + - MAX( 93 ) * - 24
----
2232

skipif mysql # not compatible
query I rowsort label-4832
SELECT + - MAX ( 93 ) * - 24
----
2232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4833
SELECT ALL - 75 / 94 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL - 75 / 94 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 18 * - 95 AS col2
----
1710

query I rowsort
SELECT - 7 * - 10 + - + 41
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4836
SELECT DISTINCT - COUNT( * ) * - 35 AS col0, - ( COALESCE ( - CASE + - 70 WHEN 48 THEN 83 WHEN 15 + - COUNT( ALL 68 ) THEN NULL END, + MAX( - 69 ) * - COUNT( * ), - ( - 5 ) ) ) AS col0
----
35
-69

skipif mysql # not compatible
query II rowsort label-4836
SELECT DISTINCT - COUNT ( * ) * - 35 AS col0, - ( COALESCE ( - CASE + - 70 WHEN 48 THEN 83 WHEN 15 + - COUNT ( ALL 68 ) THEN NULL END, + MAX ( - 69 ) * - COUNT ( * ), - ( - 5 ) ) ) AS col0
----
35
-69

query II rowsort
SELECT + 88 * - 26 AS col1, - 97 AS col2
----
-2288
-97

query I rowsort
SELECT - 94 * - 94 col2
----
8836

query I rowsort
SELECT ALL 26 * + 63 + + 86 + + - 80
----
1644

query I rowsort
SELECT ( 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL + 84 * + 69 * - MIN( - - CASE 74 WHEN 6 THEN NULL WHEN - 89 THEN + NULLIF ( - 38, - 69 * + 82 ) + 89 ELSE NULL END ) + - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL + 84 * + 69 * - MIN ( - - CASE 74 WHEN 6 THEN NULL WHEN - 89 THEN + NULLIF ( - 38, - 69 * + 82 ) + 89 ELSE NULL END ) + - 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT DISTINCT - 0 * + - 46 + 49 - - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT - 0 * + - 46 + 49 - - COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT - 58 * + - 57 * CASE + 14 WHEN + SUM( DISTINCT 94 ) THEN + - COUNT( * ) + - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT - 58 * + - 57 * CASE + 14 WHEN + SUM ( DISTINCT 94 ) THEN + - COUNT ( * ) + - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL + ( + - 23 ) * 34 * COUNT( 27 ) + + 93 + - - 33
----
-656

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL + ( + - 23 ) * 34 * COUNT ( 27 ) + + 93 + - - 33
----
-656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4845
SELECT DISTINCT + CAST( - - COALESCE ( - 61, + 55 + 52 * ( + 16 ) ) AS SIGNED ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT + CAST ( - - COALESCE ( - 61, + 55 + 52 * ( + 16 ) ) AS INTEGER ) AS col1
----
-61

query I rowsort
SELECT ALL 69 * 92 * 49 + 92 * + 30 + 42 AS col0
----
313854

query I rowsort
SELECT DISTINCT + 23 * - 84 + - + 43 AS col1
----
-1975

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT - 28 * 86 * + - COUNT( * ) * + 69 / - MAX( DISTINCT - 33 ) * + - CASE 93 WHEN + 53 * 89 + MIN( 89 + + 43 * + 60 ) THEN 70 * + 13 + 88 END * + 4 - 58 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT - 28 * 86 * + - COUNT ( * ) * + 69 / - MAX ( DISTINCT - 33 ) * + - CASE 93 WHEN + 53 * 89 + MIN ( 89 + + 43 * + 60 ) THEN 70 * + 13 + 88 END * + 4 - 58 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT ALL + MAX( ALL - - 49 )
----
49

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL + MAX ( ALL - - 49 )
----
49

query I rowsort
SELECT - 45 + 77 AS col1
----
32

query I rowsort
SELECT - 92 - - 81 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT + COUNT( 43 ) * + 97 * + 49 col1
----
4753

skipif mysql # not compatible
query I rowsort label-4852
SELECT + COUNT ( 43 ) * + 97 * + 49 col1
----
4753

query I rowsort
SELECT - - ( 41 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT + + MAX( DISTINCT 82 ) + - - 60 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-4854
SELECT + + MAX ( DISTINCT 82 ) + - - 60 AS col0
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT - - ( + 82 ) * 25 DIV + 55
----
37

skipif mysql # not compatible
query I rowsort label-4855
SELECT - - ( + 82 ) * 25 / + 55
----
37

query I rowsort
SELECT ALL + 80 * - 74 * 42 * - + 48 + + - 89
----
11934631

query III rowsort
SELECT ALL - - 85 * 85, - 76 AS col1, + 46 AS col0
----
7225
-76
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4858
SELECT DISTINCT - CAST( 13 AS SIGNED ) - + CASE + - 53 WHEN + 58 THEN - 86 - + ( 41 ) DIV - 21 ELSE 33 END AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT - CAST ( 13 AS INTEGER ) - + CASE + - 53 WHEN + 58 THEN - 86 - + ( 41 ) / - 21 ELSE 33 END AS col1
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4859
SELECT DISTINCT + COALESCE ( - 89, ( 27 ), 49 ), + COUNT( * ) AS col2
----
-89
1

skipif mysql # not compatible
query II rowsort label-4859
SELECT DISTINCT + COALESCE ( - 89, ( 27 ), 49 ), + COUNT ( * ) AS col2
----
-89
1

query I rowsort
SELECT + 29 - - 73 * + 81
----
5942

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT + SUM( DISTINCT - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-4861
SELECT + SUM ( DISTINCT - 94 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT 18 + - + SUM( - + 43 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4862
SELECT 18 + - + SUM ( - + 43 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT + 65 * + + COALESCE ( + + 7, - 91, + COUNT( * ) * COALESCE ( - 87, 77 ) ) - + MAX( DISTINCT 18 ) * + COUNT( * )
----
437

skipif mysql # not compatible
query I rowsort label-4863
SELECT + 65 * + + COALESCE ( + + 7, - 91, + COUNT ( * ) * COALESCE ( - 87, 77 ) ) - + MAX ( DISTINCT 18 ) * + COUNT ( * )
----
437

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT + 4 * + 88 * + - 47 + + - COUNT( * ) col2
----
-16545

skipif mysql # not compatible
query I rowsort label-4864
SELECT + 4 * + 88 * + - 47 + + - COUNT ( * ) col2
----
-16545

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT DISTINCT MIN( - 26 ) * + + 89 col1
----
-2314

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT MIN ( - 26 ) * + + 89 col1
----
-2314

query II rowsort
SELECT 44 * - 13, + 34 AS col1
----
-572
34

query I rowsort
SELECT ALL 48 * 15
----
720

query I rowsort
SELECT DISTINCT 65 + + 62
----
127

query I rowsort
SELECT 13 * + - 14 - + + 52 AS col0
----
-234

query II rowsort
SELECT DISTINCT - 46, - 19 col0
----
-46
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL COUNT( * ) + - 48 + + 93 * MIN( DISTINCT - ( + 91 ) ) AS col0
----
-8510

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL COUNT ( * ) + - 48 + + 93 * MIN ( DISTINCT - ( + 91 ) ) AS col0
----
-8510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4872
SELECT + 66 DIV COUNT( - 12 ) * - 23 + 69 + - 52 col0
----
-1501

skipif mysql # not compatible
query I rowsort label-4872
SELECT + 66 / COUNT ( - 12 ) * - 23 + 69 + - 52 col0
----
-1501

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT 94 + - 19 - 21 DIV 33
----
75

skipif mysql # not compatible
query I rowsort label-4873
SELECT 94 + - 19 - 21 / 33
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4874
SELECT ALL - 65 AS col2, + 51 + + COUNT( DISTINCT - 78 ) + COUNT( * ) + - 70 AS col2
----
-65
-17

skipif mysql # not compatible
query II rowsort label-4874
SELECT ALL - 65 AS col2, + 51 + + COUNT ( DISTINCT - 78 ) + COUNT ( * ) + - 70 AS col2
----
-65
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4875
SELECT - 78 * 16 + - COUNT( * ) col0, - 72
----
-1249
-72

skipif mysql # not compatible
query II rowsort label-4875
SELECT - 78 * 16 + - COUNT ( * ) col0, - 72
----
-1249
-72

query II rowsort
SELECT DISTINCT + ( + - 83 ) + + - 47 col0, 72 AS col0
----
-130
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT ALL + 24 + - - CAST( 89 AS SIGNED ) AS col0
----
113

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL + 24 + - - CAST ( 89 AS INTEGER ) AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL - MAX( ALL 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL - MAX ( ALL 15 ) AS col2
----
-15

query II rowsort
SELECT DISTINCT - 67 AS col1, 67
----
-67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT DISTINCT - MIN( - + 43 ) col1
----
43

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT - MIN ( - + 43 ) col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT ALL - CAST( NULL AS SIGNED ) - + 53 * - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL - CAST ( NULL AS INTEGER ) - + 53 * - + 24
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4882
SELECT + 4 col2, CAST( + NULLIF ( 31, - COUNT( * ) * - + 24 + - 49 + + + 58 * + COUNT( * ) * - 98 ) AS SIGNED )
----
4
31

skipif mysql # not compatible
query II rowsort label-4882
SELECT + 4 col2, CAST ( + NULLIF ( 31, - COUNT ( * ) * - + 24 + - 49 + + + 58 * + COUNT ( * ) * - 98 ) AS INTEGER )
----
4
31

query I rowsort
SELECT + 63 + + 14 + - + 30
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT ALL + 26 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL + 26 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL - 51 * + NULLIF ( + - 27, + ( - ( - - COUNT( * ) ) ) + MIN( + 7 ) ) * COUNT( * ) AS col1
----
1377

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL - 51 * + NULLIF ( + - 27, + ( - ( - - COUNT ( * ) ) ) + MIN ( + 7 ) ) * COUNT ( * ) AS col1
----
1377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4886
SELECT DISTINCT - 93 - - + ( - 91 ) - + - CAST( - COUNT( * ) AS SIGNED ) * + 88 * + 90 * - + COUNT( * )
----
7736

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT - 93 - - + ( - 91 ) - + - CAST ( - COUNT ( * ) AS INTEGER ) * + 88 * + 90 * - + COUNT ( * )
----
7736

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT ALL 81 AS col1, + COUNT( * ) * - + 28 + + + 16 AS col0
----
81
-12

skipif mysql # not compatible
query II rowsort label-4887
SELECT ALL 81 AS col1, + COUNT ( * ) * - + 28 + + + 16 AS col0
----
81
-12

query II rowsort
SELECT - 26 AS col0, 42 - - - 72 col1
----
-26
-30

query I rowsort
SELECT DISTINCT ( ( + 73 ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT + 22 * - MAX( 95 ) + - 67 * + + 89 AS col0
----
-8053

skipif mysql # not compatible
query I rowsort label-4890
SELECT + 22 * - MAX ( 95 ) + - 67 * + + 89 AS col0
----
-8053

onlyif mysql # DIV for integer division: 
query I rowsort label-4891
SELECT ALL + + ( - - 64 ) DIV 27
----
2

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL + + ( - - 64 ) / 27
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4892
SELECT 43 + - - 28 DIV 2 * 70 * + + COUNT( DISTINCT + - 46 ) * ( + 55 )
----
53943

skipif mysql # not compatible
query I rowsort label-4892
SELECT 43 + - - 28 / 2 * 70 * + + COUNT ( DISTINCT + - 46 ) * ( + 55 )
----
53943

query I rowsort
SELECT - - ( 27 )
----
27

query I rowsort
SELECT ALL + - 45 * + - 4 * 88 * + 93
----
1473120

query I rowsort
SELECT ALL + 8 * 23 * - + 31 * - 58 + + - 29
----
330803

query I rowsort
SELECT - 2 * 38
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL 41 + - COUNT( * ) + 45 + - 54
----
31

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL 41 + - COUNT ( * ) + 45 + - 54
----
31

query I rowsort
SELECT DISTINCT + - 16 * - 19 AS col1
----
304

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4899
SELECT 12 + + NULLIF ( COUNT( * ), 53 DIV - 78 + COUNT( * ) ) AS col1, + 3
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4899
SELECT 12 + + NULLIF ( COUNT ( * ), 53 / - 78 + COUNT ( * ) ) AS col1, + 3
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT DISTINCT - + 3 + MIN( ALL - 40 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT - + 3 + MIN ( ALL - 40 ) AS col1
----
-43

query I rowsort
SELECT ALL + - 40 + + 8 AS col2
----
-32

query I rowsort
SELECT ALL - 54 + + + 39 * - 19
----
-795

query II rowsort
SELECT 20 + 53 col1, - 49
----
73
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT ALL COUNT( * ) * - 75 + - 56 * + 54 * + - COALESCE ( + COUNT( * ), - 20, - + COUNT( * ) )
----
2949

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL COUNT ( * ) * - 75 + - 56 * + 54 * + - COALESCE ( + COUNT ( * ), - 20, - + COUNT ( * ) )
----
2949

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4905
SELECT DISTINCT + 0 + + 78 DIV - 28 * COUNT( * ) + - 68 + + 21 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT + 0 + + 78 / - 28 * COUNT ( * ) + - 68 + + 21 AS col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4906
SELECT ALL ( + - CASE - - CAST( NULL AS SIGNED ) WHEN - + 44 THEN NULL WHEN - - 30 + - ( - COUNT( * ) ) THEN NULL WHEN + + 0 THEN NULL ELSE + - CAST( NULL AS DECIMAL ) END ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL ( + - CASE - - CAST ( NULL AS INTEGER ) WHEN - + 44 THEN NULL WHEN - - 30 + - ( - COUNT ( * ) ) THEN NULL WHEN + + 0 THEN NULL ELSE + - CAST ( NULL AS REAL ) END ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT COALESCE ( - COUNT( DISTINCT + 67 ), - COALESCE ( ( - COUNT( * ) ), - COUNT( * ) - + 65 ), - 37 * 8 ) + 13 * + 3
----
38

skipif mysql # not compatible
query I rowsort label-4907
SELECT COALESCE ( - COUNT ( DISTINCT + 67 ), - COALESCE ( ( - COUNT ( * ) ), - COUNT ( * ) - + 65 ), - 37 * 8 ) + 13 * + 3
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT ALL ( + 63 ) * - CAST( 40 AS SIGNED )
----
-2520

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL ( + 63 ) * - CAST ( 40 AS INTEGER )
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ALL ( + 37 ) - + 62 * + + COALESCE ( 97, - + COUNT( * ) ) col0
----
-5977

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL ( + 37 ) - + 62 * + + COALESCE ( 97, - + COUNT ( * ) ) col0
----
-5977

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT NULLIF ( + 71, COUNT( * ) - + 13 * 84 ) * - + 54
----
-3834

skipif mysql # not compatible
query I rowsort label-4910
SELECT NULLIF ( + 71, COUNT ( * ) - + 13 * 84 ) * - + 54
----
-3834

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4911
SELECT CAST( NULL AS SIGNED ) * + 74 * + 7 * + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT CAST ( NULL AS INTEGER ) * + 74 * + 7 * + 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT 64 + - 23 * - CASE - MAX( DISTINCT + 36 ) WHEN ( + 83 ) THEN NULL ELSE 37 END
----
915

skipif mysql # not compatible
query I rowsort label-4912
SELECT 64 + - 23 * - CASE - MAX ( DISTINCT + 36 ) WHEN ( + 83 ) THEN NULL ELSE 37 END
----
915

onlyif mysql # aggregate syntax: 
query II rowsort label-4913
SELECT + MIN( ALL + 45 ) AS col1, 37 * + + 26
----
45
962

skipif mysql # not compatible
query II rowsort label-4913
SELECT + MIN ( ALL + 45 ) AS col1, 37 * + + 26
----
45
962

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT - CASE - + 61 WHEN + 52 * - 13 THEN + 79 WHEN - 66 THEN - COUNT( * ) + - CASE + + 40 WHEN 5 THEN 91 * 29 ELSE NULL END * - 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT - CASE - + 61 WHEN + 52 * - 13 THEN + 79 WHEN - 66 THEN - COUNT ( * ) + - CASE + + 40 WHEN 5 THEN 91 * 29 ELSE NULL END * - 25 END
----
NULL

query I rowsort
SELECT ALL 0 * + 37 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4916
SELECT ALL - COUNT( + 16 ) DIV - 31 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL - COUNT ( + 16 ) / - 31 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL + + 85 * - + 13 * - 33 - + + SUM( DISTINCT 25 )
----
36440

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + + 85 * - + 13 * - 33 - + + SUM ( DISTINCT 25 )
----
36440

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT ALL + COUNT( * ) * ( 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL + COUNT ( * ) * ( 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT + + COUNT( * ) - 94
----
-93

skipif mysql # not compatible
query I rowsort label-4919
SELECT + + COUNT ( * ) - 94
----
-93

query II rowsort
SELECT - 20 * - 58 col1, + 5 AS col2
----
1160
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT ALL ( + 46 ) * + CASE - 31 WHEN 60 / - + ( - MIN( - - 1 ) ) + 61 + + 85 THEN NULL ELSE ( 76 ) END
----
3496

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL ( + 46 ) * + CASE - 31 WHEN 60 / - + ( - MIN ( - - 1 ) ) + 61 + + 85 THEN NULL ELSE ( 76 ) END
----
3496

query I rowsort
SELECT ALL 42 + - 49 - + - 63 - + 91 AS col1
----
-35

query I rowsort
SELECT ALL 47 * - 44 * - + 70
----
144760

onlyif mysql # aggregate syntax: 
query II rowsort label-4924
SELECT ALL + 57 + - 33 + + 21 * - 91 AS col1, 48 * + COUNT( * ) * - 91
----
-1887
-4368

skipif mysql # not compatible
query II rowsort label-4924
SELECT ALL + 57 + - 33 + + 21 * - 91 AS col1, 48 * + COUNT ( * ) * - 91
----
-1887
-4368

query I rowsort
SELECT ALL - 98 + 7 + + + 34
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ALL COUNT( DISTINCT - - 26 )
----
1

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL COUNT ( DISTINCT - - 26 )
----
1

query I rowsort
SELECT DISTINCT 74 + - + 94 AS col1
----
-20

query I rowsort
SELECT - - 18 - 80
----
-62

query I rowsort
SELECT ALL - NULLIF ( 17, + - 50 * + + 13 + + 74 + + 82 + 74 - + 59 / + 17 ) * + 27
----
-459

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4930
SELECT - - 2 DIV + 78 + 91 + - - 63 AS col0, + CAST( NULL AS SIGNED ) AS col0
----
154
NULL

skipif mysql # not compatible
query II rowsort label-4930
SELECT - - 2 / + 78 + 91 + - - 63 AS col0, + CAST ( NULL AS INTEGER ) AS col0
----
154
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4931
SELECT + CAST( + 28 AS SIGNED ) col0, ( - 54 ) AS col1
----
28
-54

skipif mysql # not compatible
query II rowsort label-4931
SELECT + CAST ( + 28 AS INTEGER ) col0, ( - 54 ) AS col1
----
28
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4932
SELECT DISTINCT - 63 + - ( - 63 ) * - + CAST( + 66 AS SIGNED )
----
-4221

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT - 63 + - ( - 63 ) * - + CAST ( + 66 AS INTEGER )
----
-4221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4933
SELECT - 65 * NULLIF ( NULLIF ( - - 53, - 75 ), + ( CAST( NULL AS SIGNED ) ) ) * + 53 * - 79
----
14424215

skipif mysql # not compatible
query I rowsort label-4933
SELECT - 65 * NULLIF ( NULLIF ( - - 53, - 75 ), + ( CAST ( NULL AS INTEGER ) ) ) * + 53 * - 79
----
14424215

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL - CASE - - COUNT( * ) WHEN + + 8 / 82 * + 89 * 2 + - 37 + + COUNT( * ) + - CASE - 54 WHEN 10 THEN ( + 51 ) + 12 * - 51 WHEN + 91 + - 89 THEN NULL ELSE NULL END + + 65 / - 80 THEN NULL WHEN - 10 THEN 18 WHEN 49 * - COUNT( * ) THEN + 88 - 45 * 52 END * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL - CASE - - COUNT ( * ) WHEN + + 8 / 82 * + 89 * 2 + - 37 + + COUNT ( * ) + - CASE - 54 WHEN 10 THEN ( + 51 ) + 12 * - 51 WHEN + 91 + - 89 THEN NULL ELSE NULL END + + 65 / - 80 THEN NULL WHEN - 10 THEN 18 WHEN 49 * - COUNT ( * ) THEN + 88 - 45 * 52 END * + 12
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4935
SELECT - 83 DIV 53 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4935
SELECT - 83 / 53 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT ALL + MAX( - ( - + 19 ) ) * + - 27
----
-513

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL + MAX ( - ( - + 19 ) ) * + - 27
----
-513

query I rowsort
SELECT DISTINCT - 41 * - + 27 col2
----
1107

query I rowsort
SELECT DISTINCT - 69 + - 1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT DISTINCT MIN( ALL - - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT MIN ( ALL - - 93 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4940
SELECT ALL - COUNT( * ) + - 82 * - 94 AS col1, 6 * + COUNT( * )
----
7707
6

skipif mysql # not compatible
query II rowsort label-4940
SELECT ALL - COUNT ( * ) + - 82 * - 94 AS col1, 6 * + COUNT ( * )
----
7707
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4941
SELECT - 53 DIV + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4941
SELECT - 53 / + 78 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT DISTINCT - COUNT( - 46 ) * - NULLIF ( - COUNT( * ), - 68 * + + COUNT( * ) ) * + + ( - 36 ) - 89
----
-53

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT - COUNT ( - 46 ) * - NULLIF ( - COUNT ( * ), - 68 * + + COUNT ( * ) ) * + + ( - 36 ) - 89
----
-53

query I rowsort
SELECT - 29 * 24 AS col2
----
-696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4944
SELECT 96 DIV + 13 + COUNT( * ) * - ( 2 ) DIV + - SUM( + COALESCE ( + 24, + - 13, - + 98, - 78 ) ) + - MAX( ALL - 55 )
----
62

skipif mysql # not compatible
query I rowsort label-4944
SELECT 96 / + 13 + COUNT ( * ) * - ( 2 ) / + - SUM ( + COALESCE ( + 24, + - 13, - + 98, - 78 ) ) + - MAX ( ALL - 55 )
----
62

query I rowsort
SELECT 88 * 21 + - 7
----
1841

query I rowsort
SELECT ( - - 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT + MIN( DISTINCT - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-4947
SELECT + MIN ( DISTINCT - 30 )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4948
SELECT - 19 DIV + 90 + + 96 * 11
----
1056

skipif mysql # not compatible
query I rowsort label-4948
SELECT - 19 / + 90 + + 96 * 11
----
1056

query I rowsort
SELECT - 69 + 73
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4950
SELECT + COALESCE ( + COUNT( DISTINCT + 36 ), + CASE - 1 WHEN + + 92 + + - COUNT( * ) + - - COUNT( * ) * - SUM( DISTINCT - 41 ) THEN NULL WHEN - 32 THEN 95 ELSE - 94 - CAST( 74 AS SIGNED ) * COUNT( * ) END * 66 + + 25, COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4950
SELECT + COALESCE ( + COUNT ( DISTINCT + 36 ), + CASE - 1 WHEN + + 92 + + - COUNT ( * ) + - - COUNT ( * ) * - SUM ( DISTINCT - 41 ) THEN NULL WHEN - 32 THEN 95 ELSE - 94 - CAST ( 74 AS INTEGER ) * COUNT ( * ) END * 66 + + 25, COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT ALL 39 * + 64
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT - COALESCE ( - COUNT( * ), - 15 * 22 ) * + 19 * + + ( - 25 ) + + - COUNT( 7 ) col1
----
-476

skipif mysql # not compatible
query I rowsort label-4952
SELECT - COALESCE ( - COUNT ( * ), - 15 * 22 ) * + 19 * + + ( - 25 ) + + - COUNT ( 7 ) col1
----
-476

query I rowsort
SELECT + 75 * - - 57 + 65
----
4340

query I rowsort
SELECT ALL + CASE - 46 WHEN - 56 THEN NULL ELSE + CASE - + 64 WHEN - 35 THEN + 21 + - + 94 * + 80 END + ( + 59 ) * - 33 END AS col1
----
NULL

query I rowsort
SELECT ALL - 34 * + 59
----
-2006

query I rowsort
SELECT + 77 * 65
----
5005

query I rowsort
SELECT DISTINCT 47 * 89
----
4183

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT ALL + + MIN( DISTINCT + - 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL + + MIN ( DISTINCT + - 16 ) AS col2
----
-16

query I rowsort
SELECT 63 * + - 56 + + - 51 + + 64 + - 70
----
-3585

query I rowsort
SELECT ALL + - 74 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT + + COUNT( * ) * 84 * COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4961
SELECT + + COUNT ( * ) * 84 * COUNT ( * ) AS col1
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4962
SELECT + CAST( NULL AS DECIMAL ) + + - ( 2 ) * + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT + CAST ( NULL AS REAL ) + + - ( 2 ) * + 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT + 74 * - 51 * + - 94 - + - COUNT( * ) AS col1
----
354757

skipif mysql # not compatible
query I rowsort label-4963
SELECT + 74 * - 51 * + - 94 - + - COUNT ( * ) AS col1
----
354757

query I rowsort
SELECT + - 72 * - + 67
----
4824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4965
SELECT + 61 + + - CAST( + 21 AS SIGNED ) col2
----
40

skipif mysql # not compatible
query I rowsort label-4965
SELECT + 61 + + - CAST ( + 21 AS INTEGER ) col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL - 23 * 80 + CASE + + 69 WHEN 69 THEN - + 85 + + 61 - 90 WHEN - 47 - + SUM( DISTINCT - 2 ) THEN NULL END + - 59
----
-2013

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL - 23 * 80 + CASE + + 69 WHEN 69 THEN - + 85 + + 61 - 90 WHEN - 47 - + SUM ( DISTINCT - 2 ) THEN NULL END + - 59
----
-2013

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT ALL + 2 DIV + - 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL + 2 / + - 65 AS col1
----
0

query I rowsort
SELECT ALL - 59 * + 79 + - 38 + - 59 AS col2
----
-4758

query I rowsort
SELECT - NULLIF ( + 41, - ( + - 0 ) )
----
-41

query I rowsort
SELECT ALL 76 + + - 70 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4971
SELECT ALL - CASE + COUNT( * ) WHEN 93 * - 82 * - ( + CAST( NULL AS DECIMAL ) ) THEN NULL WHEN + - 36 * - 11 * - 68 THEN 40 END + + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL - CASE + COUNT ( * ) WHEN 93 * - 82 * - ( + CAST ( NULL AS REAL ) ) THEN NULL WHEN + - 36 * - 11 * - 68 THEN 40 END + + 41 AS col0
----
NULL

query I rowsort
SELECT + 59 + + 23
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT - 47 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT - 47 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL CASE 10 WHEN - - 34 * + 50 * - - 60 THEN + 92 ELSE + 40 END AS col2, 1
----
40
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT + 53 + + COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4975
SELECT + 53 + + COUNT ( * ) AS col2
----
54

query II rowsort
SELECT - 12 * 79 AS col1, 3
----
-948
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT DISTINCT SUM( ALL 4 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT SUM ( ALL 4 ) AS col2
----
4

query I rowsort
SELECT ALL 35 - ( - 22 ) - - - 7 * - 38 AS col2
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT - COUNT( * ) + + 39
----
38

skipif mysql # not compatible
query I rowsort label-4979
SELECT - COUNT ( * ) + + 39
----
38

query I rowsort
SELECT - 81 + - 92 col0
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT DISTINCT - 20 * - COUNT( * ) * + 65 AS col1
----
1300

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT - 20 * - COUNT ( * ) * + 65 AS col1
----
1300

query II rowsort
SELECT ALL + ( 45 ), - 4 * 88 AS col0
----
45
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT DISTINCT - 11 * + COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT - 11 * + COUNT ( * ) AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT - 34 DIV 51 col1
----
0

skipif mysql # not compatible
query I rowsort label-4984
SELECT - 34 / 51 col1
----
0

query II rowsort
SELECT ALL - 93 * - 9 AS col0, + 74 col1
----
837
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT - 63 DIV + + 39
----
-1

skipif mysql # not compatible
query I rowsort label-4986
SELECT - 63 / + + 39
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT DISTINCT + COALESCE ( + 26, ( - 1 ) + - 49 DIV - + 5 )
----
26

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT + COALESCE ( + 26, ( - 1 ) + - 49 / - + 5 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4988
SELECT DISTINCT + 25 AS col0, COUNT( * ) + - + 58
----
25
-57

skipif mysql # not compatible
query II rowsort label-4988
SELECT DISTINCT + 25 AS col0, COUNT ( * ) + - + 58
----
25
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL + MAX( ALL + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL + MAX ( ALL + 14 )
----
14

query I rowsort
SELECT - 86 * 65 * - 6
----
33540

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT DISTINCT - MIN( ALL - ( + + NULLIF ( - 46, 88 ) ) )
----
-46

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT - MIN ( ALL - ( + + NULLIF ( - 46, 88 ) ) )
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4992
SELECT + - COUNT( * ), 65 col0
----
-1
65

skipif mysql # not compatible
query II rowsort label-4992
SELECT + - COUNT ( * ), 65 col0
----
-1
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT ALL - 23 + + - 1 + COUNT( * ) * - 51
----
-75

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL - 23 + + - 1 + COUNT ( * ) * - 51
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT + 32 * ( - 9 ) * + COUNT( * ) AS col1
----
-288

skipif mysql # not compatible
query I rowsort label-4994
SELECT + 32 * ( - 9 ) * + COUNT ( * ) AS col1
----
-288

query I rowsort
SELECT + + ( - 57 ) AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4996
SELECT ALL - CAST( NULL AS SIGNED ) + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL - CAST ( NULL AS INTEGER ) + - 75
----
NULL

query I ro