hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT + + 5 + 92 * COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-0
SELECT + + 5 + 92 * COUNT ( * )
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1
SELECT ( + CAST( NULL AS DECIMAL ) ), + ( - - 9 ) AS col2
----
NULL
9

skipif mysql # not compatible
query II rowsort label-1
SELECT ( + CAST ( NULL AS REAL ) ), + ( - - 9 ) AS col2
----
NULL
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT ALL - SUM( + + 92 ) * 66 + + COUNT( ALL 3 )
----
-6071

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL - SUM ( + + 92 ) * 66 + + COUNT ( ALL 3 )
----
-6071

query I rowsort
SELECT ALL + - 50 * - 23 + + + 43 AS col0
----
1193

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT DISTINCT NULLIF ( - 85, - 18 ) * - - 51 * - 25 + - SUM( 51 ) * - 64 + - 15 AS col2
----
111624

skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT NULLIF ( - 85, - 18 ) * - - 51 * - 25 + - SUM ( 51 ) * - 64 + - 15 AS col2
----
111624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5
SELECT ALL COUNT( + - CAST( NULL AS SIGNED ) ) * CASE + - 70 WHEN 18 THEN 85 WHEN - COUNT( * ) * - 67 + - 13 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL COUNT ( + - CAST ( NULL AS INTEGER ) ) * CASE + - 70 WHEN 18 THEN 85 WHEN - COUNT ( * ) * - 67 + - 13 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6
SELECT DISTINCT 10 * + 14 DIV - - CASE - - 27 WHEN + 26 + + 13 THEN NULL ELSE - - 0 + 99 * + 26 END
----
0

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT 10 * + 14 / - - CASE - - 27 WHEN + 26 + + 13 THEN NULL ELSE - - 0 + 99 * + 26 END
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7
SELECT + - 87 + - CAST( + 55 AS SIGNED ) * + 14
----
-857

skipif mysql # not compatible
query I rowsort label-7
SELECT + - 87 + - CAST ( + 55 AS INTEGER ) * + 14
----
-857

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT - + NULLIF ( - - COUNT( * ), 27 - + 36 + + 16 ) * - 69
----
69

skipif mysql # not compatible
query I rowsort label-8
SELECT - + NULLIF ( - - COUNT ( * ), 27 - + 36 + + 16 ) * - 69
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT + CASE - 64 WHEN - 66 THEN 14 / + SUM( + + 2 ) ELSE NULL END * + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT + CASE - 64 WHEN - 66 THEN 14 / + SUM ( + + 2 ) ELSE NULL END * + 91 AS col2
----
NULL

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

query I rowsort
SELECT + ( + 93 ) * + 55
----
5115

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

skipif mysql # not compatible
query I rowsort label-13
SELECT - CAST ( NULL AS INTEGER ) + - ( 27 ) + + 1 AS col1
----
NULL

query I rowsort
SELECT ALL 43 - 83 col0
----
-40

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-16
SELECT DISTINCT COALESCE ( 38, + 1 * + 19 ), - CASE - - ( - - 57 ) WHEN + 57 + 92 THEN NULL WHEN + 85 + - + ( + 57 ) - 12 THEN + + COUNT( ALL + 41 ) END AS col1
----
38
NULL

skipif mysql # not compatible
query II rowsort label-16
SELECT DISTINCT COALESCE ( 38, + 1 * + 19 ), - CASE - - ( - - 57 ) WHEN + 57 + 92 THEN NULL WHEN + 85 + - + ( + 57 ) - 12 THEN + + COUNT ( ALL + 41 ) END AS col1
----
38
NULL

query I rowsort
SELECT ALL + 89 * - 84 AS col2
----
-7476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-18
SELECT ALL COALESCE ( 4, - 3 DIV 67 DIV - 36 + - COALESCE ( + + 48, 86 * + + 21 DIV + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * + MIN( + 23 ) )
----
4

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL COALESCE ( 4, - 3 / 67 / - 36 + - COALESCE ( + + 48, 86 * + + 21 / + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * + MIN ( + 23 ) )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT - 83 + - - 99 DIV 38 * + 30 * 60 AS col1
----
3517

skipif mysql # not compatible
query I rowsort label-19
SELECT - 83 + - - 99 / 38 * + 30 * 60 AS col1
----
3517

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

query II rowsort
SELECT - 99, 44 AS col0
----
-99
44

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT - NULLIF ( + CASE - ( + 99 ) WHEN 32 + + NULLIF ( + - 78, COUNT( * ) + + 90 ) THEN + MIN( DISTINCT + 20 ) - - 99 END, - COALESCE ( 85, - + 30 - 39 + COALESCE ( 31, - 23 + AVG ( ALL - 10 ) ) ) + - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-22
SELECT - NULLIF ( + CASE - ( + 99 ) WHEN 32 + + NULLIF ( + - 78, COUNT ( * ) + + 90 ) THEN + MIN ( DISTINCT + 20 ) - - 99 END, - COALESCE ( 85, - + 30 - 39 + COALESCE ( 31, - 23 + AVG ( ALL - 10 ) ) ) + - 70 )
----
NULL

query I rowsort
SELECT + 36 + - + 75
----
-39

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-25
SELECT - 42 DIV 46 * 14 + - 34 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-25
SELECT - 42 / 46 * 14 + - 34 AS col2
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-26
SELECT ALL - 31 / - 83 * + CAST( NULL AS SIGNED ) + - - ( + + 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL - 31 / - 83 * + CAST ( NULL AS INTEGER ) + - - ( + + 10 )
----
NULL

query II rowsort
SELECT DISTINCT + 81 AS col1, + 33
----
81
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-28
SELECT ALL - + 23 DIV 38 + + NULLIF ( - ( + ( - 20 ) ), 61 * + 59 + - + COALESCE ( 20, + 27 ) + + COUNT( * ) DIV AVG ( ALL - 32 ) ) + 75 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL - + 23 / 38 + + NULLIF ( - ( + ( - 20 ) ), 61 * + 59 + - + COALESCE ( 20, + 27 ) + + COUNT ( * ) / AVG ( ALL - 32 ) ) + 75 AS col1
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-29
SELECT ALL - 98 DIV MAX( + 29 ) + - 26 col2
----
-29

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL - 98 / MAX ( + 29 ) + - 26 col2
----
-29

query I rowsort
SELECT - - 34 * + - 18 + 84
----
-528

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-32
SELECT DISTINCT 10 DIV ( + 99 ) + + 8
----
8

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT 10 / ( + 99 ) + + 8
----
8

query I rowsort
SELECT ALL + 57 * 59 - + 0
----
3363

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT 60 + + MIN( - + 20 ) * 29 + - + 2
----
-522

skipif mysql # not compatible
query I rowsort label-34
SELECT 60 + + MIN ( - + 20 ) * 29 + - + 2
----
-522

query I rowsort
SELECT DISTINCT + 46 - + + 50
----
-4

query II rowsort
SELECT + 2 + 98 - - 90 AS col1, 0 AS col2
----
190
0

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT DISTINCT + MAX( + + 22 ) - + + 83 + - 59 * + - 9
----
470

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT + MAX ( + + 22 ) - + + 83 + - 59 * + - 9
----
470

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT DISTINCT - ( + - COUNT( - 34 ) ) * + + 45 + - + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT - ( + - COUNT ( - 34 ) ) * + + 45 + - + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-39
SELECT ALL - + 85 AS col2, 66 * + COUNT( ALL 3 )
----
-85
66

skipif mysql # not compatible
query II rowsort label-39
SELECT ALL - + 85 AS col2, 66 * + COUNT ( ALL 3 )
----
-85
66

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT + - CASE + 58 WHEN - 6 / - 66 THEN + SUM( + NULLIF ( ( + 16 ), 44 ) ) WHEN - + 70 THEN - 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-40
SELECT + - CASE + 58 WHEN - 6 / - 66 THEN + SUM ( + NULLIF ( ( + 16 ), 44 ) ) WHEN - + 70 THEN - 2 END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 7 - - 35 + + 93 AS col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT + CASE WHEN + 60 IS NOT NULL THEN + MAX( 53 ) ELSE NULL END col1
----
53

skipif mysql # not compatible
query I rowsort label-43
SELECT + CASE WHEN + 60 IS NOT NULL THEN + MAX ( 53 ) ELSE NULL END col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-44
SELECT 78 * + CAST( NULL AS SIGNED ) + - - 19 col2, 32 - - 10 + 39 AS col2
----
NULL
81

skipif mysql # not compatible
query II rowsort label-44
SELECT 78 * + CAST ( NULL AS INTEGER ) + - - 19 col2, 32 - - 10 + 39 AS col2
----
NULL
81

query I rowsort
SELECT - 65 + 95 * + 3
----
220

query I rowsort
SELECT ALL + 21 * - + 33 * 62 col1
----
-42966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-47
SELECT ( 10 ) * CAST( + ( 51 ) AS SIGNED ) + 96 * - 66 AS col0
----
-5826

skipif mysql # not compatible
query I rowsort label-47
SELECT ( 10 ) * CAST ( + ( 51 ) AS INTEGER ) + 96 * - 66 AS col0
----
-5826

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

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

query I rowsort
SELECT ALL ( 51 ) * - 70 AS col1
----
-3570

onlyif mysql # DIV for integer division: 
query I rowsort label-50
SELECT ( + 12 ) DIV 46 + - + 29 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-50
SELECT ( + 12 ) / 46 + - + 29 AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-51
SELECT CAST( NULL AS SIGNED ) / 0
----
NULL

skipif mysql # not compatible
query I rowsort label-51
SELECT CAST ( NULL AS INTEGER ) / 0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-52
SELECT 42 DIV ( - 38 ) DIV 86 * + CAST( - 54 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-52
SELECT 42 / ( - 38 ) / 86 * + CAST ( - 54 AS INTEGER )
----
0

query I rowsort
SELECT ALL - 58 * + + 27
----
-1566

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-54
SELECT ALL 24 DIV - - COUNT( * ), 85 * + 41 AS col1
----
24
3485

skipif mysql # not compatible
query II rowsort label-54
SELECT ALL 24 / - - COUNT ( * ), 85 * + 41 AS col1
----
24
3485

onlyif mysql # aggregate syntax: 
query II rowsort label-55
SELECT + SUM( 82 ) col1, - COUNT( * ) - 57 + - COUNT( * )
----
82
-59

skipif mysql # not compatible
query II rowsort label-55
SELECT + SUM ( 82 ) col1, - COUNT ( * ) - 57 + - COUNT ( * )
----
82
-59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT 41 * - 37 + 19 * COUNT( * ) + 81 * - ( + 80 ) AS col2
----
-7978

skipif mysql # not compatible
query I rowsort label-57
SELECT 41 * - 37 + 19 * COUNT ( * ) + 81 * - ( + 80 ) AS col2
----
-7978

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ALL + - ( + - 67 ) + + 96 + COUNT( * )
----
164

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL + - ( + - 67 ) + + 96 + COUNT ( * )
----
164

onlyif mysql # aggregate syntax: 
query II rowsort label-59
SELECT COUNT( DISTINCT + 21 ) AS col1, - 70 AS col0
----
1
-70

skipif mysql # not compatible
query II rowsort label-59
SELECT COUNT ( DISTINCT + 21 ) AS col1, - 70 AS col0
----
1
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT DISTINCT - + MAX( ALL + + 62 ) - - COUNT( * ) + 82 + + 16 - - 62
----
99

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT - + MAX ( ALL + + 62 ) - - COUNT ( * ) + 82 + + 16 - - 62
----
99

query I rowsort
SELECT ALL + + 16 * - + 40 * 72
----
-46080

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

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

query I rowsort
SELECT - 13 * - - 98
----
-1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-65
SELECT + CASE + 27 WHEN + 56 THEN + + COUNT( * ) WHEN - 50 THEN + CAST( 13 AS SIGNED ) + + 39 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT + CASE + 27 WHEN + 56 THEN + + COUNT ( * ) WHEN - 50 THEN + CAST ( 13 AS INTEGER ) + + 39 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-66
SELECT DISTINCT + - MAX( ALL - 23 ) - + CAST( NULL AS SIGNED ) + + MAX( ALL + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT + - MAX ( ALL - 23 ) - + CAST ( NULL AS INTEGER ) + + MAX ( ALL + 64 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-67
SELECT - 79 * - NULLIF ( - 8, - CAST( NULL AS DECIMAL ) )
----
-632

skipif mysql # not compatible
query I rowsort label-67
SELECT - 79 * - NULLIF ( - 8, - CAST ( NULL AS REAL ) )
----
-632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-68
SELECT + COALESCE ( 54, - 9 + - 24 + ( + - 23 ) DIV - 14, + + ( + + 17 ) * + + COUNT( * ) ) * - 60 AS col2
----
-3240

skipif mysql # not compatible
query I rowsort label-68
SELECT + COALESCE ( 54, - 9 + - 24 + ( + - 23 ) / - 14, + + ( + + 17 ) * + + COUNT ( * ) ) * - 60 AS col2
----
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT + ( - 44 ) - + + ( - - 18 ) + + - MIN( + 55 )
----
-117

skipif mysql # not compatible
query I rowsort label-69
SELECT + ( - 44 ) - + + ( - - 18 ) + + - MIN ( + 55 )
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT DISTINCT MIN( DISTINCT - + 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT MIN ( DISTINCT - + 40 ) AS col0
----
-40

query I rowsort
SELECT DISTINCT - 16 * - 39
----
624

query I rowsort
SELECT 88 + 67 AS col1
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT NULLIF ( + ( - COUNT( * ) ), - 21 / 32 * 64 * 96 + - + ( - 94 ) / + - COUNT( * ) + 39 ) - + - 37 * + + SUM( ALL - 57 ) * + 99 + + - 79 col1
----
-208871

skipif mysql # not compatible
query I rowsort label-73
SELECT NULLIF ( + ( - COUNT ( * ) ), - 21 / 32 * 64 * 96 + - + ( - 94 ) / + - COUNT ( * ) + 39 ) - + - 37 * + + SUM ( ALL - 57 ) * + 99 + + - 79 col1
----
-208871

onlyif mysql # DIV for integer division: 
query I rowsort label-74
SELECT 27 DIV - + 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-74
SELECT 27 / - + 36 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-75
SELECT 98 + - 42 + - - 29 + 1 * + 81 AS col0, NULLIF ( + + 41, SUM( DISTINCT + - ( - 4 ) ) ) + - 4
----
166
37

skipif mysql # not compatible
query II rowsort label-75
SELECT 98 + - 42 + - - 29 + 1 * + 81 AS col0, NULLIF ( + + 41, SUM ( DISTINCT + - ( - 4 ) ) ) + - 4
----
166
37

query I rowsort
SELECT 33 - 38 AS col1
----
-5

query II rowsort
SELECT - 87, 25 AS col2
----
-87
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-78
SELECT DISTINCT CAST( - + 10 AS SIGNED ) + - 51 * COUNT( * ) + + 91 AS col1, ( 54 ) AS col2
----
30
54

skipif mysql # not compatible
query II rowsort label-78
SELECT DISTINCT CAST ( - + 10 AS INTEGER ) + - 51 * COUNT ( * ) + + 91 AS col1, ( 54 ) AS col2
----
30
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-79
SELECT ( CAST( + + 7 AS SIGNED ) ) + + + 19
----
26

skipif mysql # not compatible
query I rowsort label-79
SELECT ( CAST ( + + 7 AS INTEGER ) ) + + + 19
----
26

query I rowsort
SELECT DISTINCT 48 + + 79
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT ALL 12 + + SUM( DISTINCT + + 16 ) + - 28
----
0

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL 12 + + SUM ( DISTINCT + + 16 ) + - 28
----
0

query I rowsort
SELECT ALL 83 + + ( - - 7 ) col2
----
90

query I rowsort
SELECT 58 * - + 94 AS col1
----
-5452

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

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

query I rowsort
SELECT ( + - 17 ) + 30 + 98
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT - MAX( DISTINCT 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-86
SELECT - MAX ( DISTINCT 83 )
----
-83

query I rowsort
SELECT 33 + - + 6 AS col1
----
27

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

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

query I rowsort
SELECT - + 38 + - 75 AS col1
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-90
SELECT DISTINCT CAST( NULL AS SIGNED ) - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-90
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 11
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-91
SELECT ALL - ( 48 ) DIV + - 13 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL - ( 48 ) / + - 13 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-92
SELECT + - 52 DIV + 96 * + 38
----
0

skipif mysql # not compatible
query I rowsort label-92
SELECT + - 52 / + 96 * + 38
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-93
SELECT DISTINCT - 8 * COALESCE ( 39, 54 * - + 54 + 18 + + 30 + - 49 * - SUM( ALL + 42 ) + - - 6, 0 - + - ( - AVG ( ALL 77 ) ) ) DIV + 71
----
-4

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT - 8 * COALESCE ( 39, 54 * - + 54 + 18 + + 30 + - 49 * - SUM ( ALL + 42 ) + - - 6, 0 - + - ( - AVG ( ALL 77 ) ) ) / + 71
----
-4

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

skipif mysql # not compatible
query I rowsort label-94
SELECT - 97 / + COUNT ( DISTINCT 68 )
----
-97

query I rowsort
SELECT DISTINCT - 64 * + 5
----
-320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT ALL + COALESCE ( + 43, + 77 + + 26 - + + ( - 28 ) * + - 40 * + 28 * 85 * + MAX( DISTINCT - 58 ) * - 84 + ( + 25 ), - 85 + 46 ) * - 49 + 67 AS col0
----
-2040

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL + COALESCE ( + 43, + 77 + + 26 - + + ( - 28 ) * + - 40 * + 28 * 85 * + MAX ( DISTINCT - 58 ) * - 84 + ( + 25 ), - 85 + 46 ) * - 49 + 67 AS col0
----
-2040

query I rowsort
SELECT - 91 * - ( - + 26 ) AS col2
----
-2366

onlyif mysql # aggregate syntax: 
query II rowsort label-99
SELECT COUNT( * ) col0, SUM( ALL + 38 ) * + - 80 + - 47 + + 53 AS col1
----
1
-3034

skipif mysql # not compatible
query II rowsort label-99
SELECT COUNT ( * ) col0, SUM ( ALL + 38 ) * + - 80 + - 47 + + 53 AS col1
----
1
-3034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-100
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 49 + - ( - - 38 ) + 5 + + - 44 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-100
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 49 + - ( - - 38 ) + 5 + + - 44 * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-101
SELECT ALL - COUNT( * ) DIV + ( 87 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL - COUNT ( * ) / + ( 87 ) col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-102
SELECT - 55 DIV + MAX( ALL ( - + 39 ) )
----
1

skipif mysql # not compatible
query I rowsort label-102
SELECT - 55 / + MAX ( ALL ( - + 39 ) )
----
1

query I rowsort
SELECT + 61 + + 73 AS col2
----
134

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

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

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

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

query II rowsort
SELECT - 85, - 27 col0
----
-85
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT ALL CASE 86 WHEN 83 THEN NULL WHEN 93 * + 5 THEN NULL WHEN 40 - - + COUNT( * ) THEN 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL CASE 86 WHEN 83 THEN NULL WHEN 93 * + 5 THEN NULL WHEN 40 - - + COUNT ( * ) THEN 24 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-108
SELECT ALL - 3 DIV - + 78
----
0

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL - 3 / - + 78
----
0

query I rowsort
SELECT - 25 * - 63 col0
----
1575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-110
SELECT DISTINCT - SUM( DISTINCT 35 ) * - + CAST( ( + ( 0 ) ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-110
SELECT DISTINCT - SUM ( DISTINCT 35 ) * - + CAST ( ( + ( 0 ) ) AS INTEGER )
----
0

query I rowsort
SELECT ALL + 31 + - 76 * 6 AS col0
----
-425

query II rowsort
SELECT ALL 47, 27 AS col0
----
47
27

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-114
SELECT - 89 - + SUM( 74 ) - - NULLIF ( + 48, + 62 + - - 51 ) + + 64 + + 90 * + COALESCE ( - COALESCE ( - - 31, 93 ), - COUNT( * ) ) * + NULLIF ( - CAST( NULL AS SIGNED ), + - 40 + + 33 ) + 24 + + COALESCE ( 42, + 98 / + 12 ) * + + NULLIF ( - - ( - - 6 ), CASE + - 66 WHEN 33 + + 51 * - - 59 * - 16 THEN 76 WHEN 35 + 9 THEN - 76 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-114
SELECT - 89 - + SUM ( 74 ) - - NULLIF ( + 48, + 62 + - - 51 ) + + 64 + + 90 * + COALESCE ( - COALESCE ( - - 31, 93 ), - COUNT ( * ) ) * + NULLIF ( - CAST ( NULL AS INTEGER ), + - 40 + + 33 ) + 24 + + COALESCE ( 42, + 98 / + 12 ) * + + NULLIF ( - - ( - - 6 ), CASE + - 66 WHEN 33 + + 51 * - - 59 * - 16 THEN 76 WHEN 35 + 9 THEN - 76 END )
----
NULL

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

query I rowsort
SELECT + 71 * - 38 * + + 26 * + 68
----
-4770064

query II rowsort
SELECT 36, COALESCE ( + 51, - 98, + 67 - - - 56 + 83 ) AS col1
----
36
51

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

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

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

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

query I rowsort
SELECT ALL ( + 9 ) col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT + 32 - COUNT( + 90 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-121
SELECT + 32 - COUNT ( + 90 ) AS col1
----
31

query II rowsort
SELECT ALL 56 AS col0, - 92 * + + 16 col2
----
56
-1472

query II rowsort
SELECT DISTINCT - ( - 16 ) AS col0, 80 + + 99 + + 13 * 93 + - 84 - + ( - 74 ) * - - 69
----
16
6410

query II rowsort
SELECT - 95 AS col1, 83
----
-95
83

query I rowsort
SELECT - - 20 + + + 73
----
93

query II rowsort
SELECT ALL + + 51, - ( + - 67 ) AS col1
----
51
67

query I rowsort
SELECT + + 45 + + + ( + 59 ) * - + 44
----
-2551

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT + - 29 * 50 * + MAX( + 79 )
----
-114550

skipif mysql # not compatible
query I rowsort label-128
SELECT + - 29 * 50 * + MAX ( + 79 )
----
-114550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-129
SELECT 23 DIV 35 * + COUNT( - 66 ) + 85 * + 62
----
5270

skipif mysql # not compatible
query I rowsort label-129
SELECT 23 / 35 * + COUNT ( - 66 ) + 85 * + 62
----
5270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-130
SELECT ALL + - CASE + 72 WHEN + 63 THEN + NULLIF ( - CAST( - SUM( DISTINCT + 24 ) AS SIGNED ), - 75 * - 79 + + CASE - 65 WHEN COUNT( * ) THEN NULL WHEN 12 / - + 53 + - 87 THEN + - MIN( + - 36 ) END + + - 91 * + 41 / + NULLIF ( - 57, + 50 ) * + AVG ( DISTINCT - + 42 ) + - + 47 * 46 * 77 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL + - CASE + 72 WHEN + 63 THEN + NULLIF ( - CAST ( - SUM ( DISTINCT + 24 ) AS INTEGER ), - 75 * - 79 + + CASE - 65 WHEN COUNT ( * ) THEN NULL WHEN 12 / - + 53 + - 87 THEN + - MIN ( + - 36 ) END + + - 91 * + 41 / + NULLIF ( - 57, + 50 ) * + AVG ( DISTINCT - + 42 ) + - + 47 * 46 * 77 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-131
SELECT + AVG ( ALL - + 29 ) + - - ( - - CASE + 69 WHEN + NULLIF ( - + 4, + 23 + - - 94 - - - MAX( ALL 39 ) ) + 65 THEN - - ( + CAST( + MIN( ALL ( - 23 ) ) AS DECIMAL ) ) + - ( 78 ) WHEN 21 * SUM( ALL - 49 ) * + - ( - + 14 ) + NULLIF ( - SUM( DISTINCT 74 ), + 11 * + - 72 + + 37 * - 53 / - 76 + 16 ) * - 68 + CAST( - 92 + + COUNT( * ) AS SIGNED ) THEN - 96 END ) * ( NULLIF ( + COUNT( ALL ( - 85 ) ), + ( COUNT( * ) ) + + COUNT( * ) * ( 3 * COALESCE ( + 77, 51, - 11 ) + 62 ) ) + COALESCE ( + 16, 59 * 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-131
SELECT + AVG ( ALL - + 29 ) + - - ( - - CASE + 69 WHEN + NULLIF ( - + 4, + 23 + - - 94 - - - MAX ( ALL 39 ) ) + 65 THEN - - ( + CAST ( + MIN ( ALL ( - 23 ) ) AS REAL ) ) + - ( 78 ) WHEN 21 * SUM ( ALL - 49 ) * + - ( - + 14 ) + NULLIF ( - SUM ( DISTINCT 74 ), + 11 * + - 72 + + 37 * - 53 / - 76 + 16 ) * - 68 + CAST ( - 92 + + COUNT ( * ) AS INTEGER ) THEN - 96 END ) * ( NULLIF ( + COUNT ( ALL ( - 85 ) ), + ( COUNT ( * ) ) + + COUNT ( * ) * ( 3 * COALESCE ( + 77, 51, - 11 ) + 62 ) ) + COALESCE ( + 16, 59 * 25 ) )
----
NULL

query I rowsort
SELECT + CASE 71 WHEN + COALESCE ( - - 19, - 48 * + 52 * AVG ( - - 13 ) * - - NULLIF ( - - COALESCE ( 28, 49 ), 96 + 77 ) ) * + 26 THEN NULL ELSE 6 END AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-133
SELECT ALL + 40 DIV - NULLIF ( - 42, 96 + + 27 ) + - MAX( + - 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL + 40 / - NULLIF ( - 42, 96 + + 27 ) + - MAX ( + - 67 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT + 48 * 86 + + + 19 + + ( + 50 ) + + 45 * - + NULLIF ( 91, + 76 - - CASE + + 91 WHEN + 52 THEN NULL WHEN 71 THEN COUNT( * ) ELSE NULL END * - - ( - 63 ) * + + COUNT( * ) * 72 + - 50 )
----
102

skipif mysql # not compatible
query I rowsort label-134
SELECT + 48 * 86 + + + 19 + + ( + 50 ) + + 45 * - + NULLIF ( 91, + 76 - - CASE + + 91 WHEN + 52 THEN NULL WHEN 71 THEN COUNT ( * ) ELSE NULL END * - - ( - 63 ) * + + COUNT ( * ) * 72 + - 50 )
----
102

query I rowsort
SELECT + 79 * + - 30
----
-2370

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ALL COALESCE ( + COUNT( * ), + 4, - + 9 ) * NULLIF ( - + 37, - + 94 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL COALESCE ( + COUNT ( * ), + 4, - + 9 ) * NULLIF ( - + 37, - + 94 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-138
SELECT ( + + 75 ) col1, + COUNT( * )
----
75
1

skipif mysql # not compatible
query II rowsort label-138
SELECT ( + + 75 ) col1, + COUNT ( * )
----
75
1

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT - COUNT( - 56 ) / - ( CASE - 74 WHEN - ( - 86 ) * + 48 + ( + 16 ) THEN - ( - - COUNT( * ) ) / + 29 + - 44 + 64 * - + 17 + - + COUNT( * ) + - + 33 + - 34 * + 50 / + 79 / + COALESCE ( - ( - 23 ), + COALESCE ( SUM( 95 ), - + 69 * - 27 + - 91 ) ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT - COUNT ( - 56 ) / - ( CASE - 74 WHEN - ( - 86 ) * + 48 + ( + 16 ) THEN - ( - - COUNT ( * ) ) / + 29 + - 44 + 64 * - + 17 + - + COUNT ( * ) + - + 33 + - 34 * + 50 / + 79 / + COALESCE ( - ( - 23 ), + COALESCE ( SUM ( 95 ), - + 69 * - 27 + - 91 ) ) END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-140
SELECT NULLIF ( - 30, + + COUNT( 68 ) + 49 ) AS col1, - 22 AS col0
----
-30
-22

skipif mysql # not compatible
query II rowsort label-140
SELECT NULLIF ( - 30, + + COUNT ( 68 ) + 49 ) AS col1, - 22 AS col0
----
-30
-22

query I rowsort
SELECT + 49 - 91
----
-42

query I rowsort
SELECT ALL + 54 * + 13 + 44 - - 55 AS col1
----
801

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT DISTINCT + MIN( DISTINCT - + 69 ) col1
----
-69

skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT + MIN ( DISTINCT - + 69 ) col1
----
-69

query I rowsort
SELECT ALL - ( + 59 ) * - 98 + - 58 - + 61
----
5663

query II rowsort
SELECT - 83 * 5 AS col1, 44 * - 80
----
-415
-3520

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT - COALESCE ( + 92, + + 59, - ( + - COUNT( * ) ) + - 57 )
----
-92

skipif mysql # not compatible
query I rowsort label-146
SELECT - COALESCE ( + 92, + + 59, - ( + - COUNT ( * ) ) + - 57 )
----
-92

query II rowsort
SELECT ALL - 0 - 94 AS col1, 36
----
-94
36

query II rowsort
SELECT 51 * 95 * - + 56, 61 AS col1
----
-271320
61

query I rowsort
SELECT ALL + 37 * 47 * 82
----
142598

query I rowsort
SELECT 58 + + 53
----
111

query I rowsort
SELECT ALL CASE - + 76 WHEN + 62 THEN + 36 ELSE - - 23 * 46 END
----
1058

onlyif mysql # aggregate syntax: 
query II rowsort label-152
SELECT ALL - SUM( + 94 ) col1, + 38
----
-94
38

skipif mysql # not compatible
query II rowsort label-152
SELECT ALL - SUM ( + 94 ) col1, + 38
----
-94
38

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT ALL + 30 * MAX( 77 ) * - + ( - + 27 ) + + 40 AS col0
----
62410

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL + 30 * MAX ( 77 ) * - + ( - + 27 ) + + 40 AS col0
----
62410

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT - - ( - - COALESCE ( - 1, 80, COUNT( * ), SUM( DISTINCT + + 4 ) + + COUNT( * ) * + 60, 43 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-154
SELECT - - ( - - COALESCE ( - 1, 80, COUNT ( * ), SUM ( DISTINCT + + 4 ) + + COUNT ( * ) * + 60, 43 ) ) AS col2
----
-1

query I rowsort
SELECT + 10 * - + 98 + ( 50 ) AS col1
----
-930

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT - 19 DIV - - 68 + - 54 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-156
SELECT - 19 / - - 68 + - 54 AS col1
----
-54

query I rowsort
SELECT - 2 * - 32
----
64

query I rowsort
SELECT DISTINCT - ( 93 ) AS col0
----
-93

query I rowsort
SELECT DISTINCT - + 55 + + 27 * - - 3 AS col0
----
26

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

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

query II rowsort
SELECT ALL + - 4 + + 5 AS col2, 35 AS col1
----
1
35

query I rowsort
SELECT ALL - - 42 + + + 6 * 37
----
264

query I rowsort
SELECT + 46 * 71 - - 73 + + 81
----
3420

onlyif mysql # aggregate syntax: 
query II rowsort label-164
SELECT ALL 65 * - - 28 * + COUNT( * ), 29 * 79 * + COUNT( * ) AS col0
----
1820
2291

skipif mysql # not compatible
query II rowsort label-164
SELECT ALL 65 * - - 28 * + COUNT ( * ), 29 * 79 * + COUNT ( * ) AS col0
----
1820
2291

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT - COUNT( * ) * - ( - + CASE - COUNT( * ) WHEN + COUNT( * ) THEN + 65 * + + 4 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-165
SELECT - COUNT ( * ) * - ( - + CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN + 65 * + + 4 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-166
SELECT DISTINCT COALESCE ( + - 48, + 20, - COUNT( * ) * - 14, - + 14 - 84 - - 34 * 71 DIV + + 11 + + COUNT( * ) - - 12 + - 21 DIV + 75 DIV + 45 ) * + NULLIF ( COUNT( DISTINCT - 7 ), COUNT( * ) * + 2 * + 45 )
----
-48

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT COALESCE ( + - 48, + 20, - COUNT ( * ) * - 14, - + 14 - 84 - - 34 * 71 / + + 11 + + COUNT ( * ) - - 12 + - 21 / + 75 / + 45 ) * + NULLIF ( COUNT ( DISTINCT - 7 ), COUNT ( * ) * + 2 * + 45 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-167
SELECT ALL + 3 * CAST( + AVG ( DISTINCT 84 ) AS SIGNED ) AS col0
----
252

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL + 3 * CAST ( + AVG ( DISTINCT 84 ) AS INTEGER ) AS col0
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT ALL 96 DIV 91 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL 96 / 91 AS col0
----
1

query II rowsort
SELECT ALL - 78, - 38 * + + 40 col1
----
-78
-1520

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-170
SELECT DISTINCT 66 - - CAST( - 14 AS SIGNED ) AS col1, - ( - 66 ) DIV + 74 - + 7 - + + ( + + 34 ) AS col0
----
52
-41

skipif mysql # not compatible
query II rowsort label-170
SELECT DISTINCT 66 - - CAST ( - 14 AS INTEGER ) AS col1, - ( - 66 ) / + 74 - + 7 - + + ( + + 34 ) AS col0
----
52
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-171
SELECT NULLIF ( - 46, NULLIF ( + 52, + + CASE - 92 WHEN + 89 THEN + 87 + - 1 END - - 18 ) * - NULLIF ( + 84, MIN( + + 29 ) ) + + 54 * - 43 * 15 * CASE + 88 WHEN + CASE + ( - 20 ) WHEN - CAST( NULL AS SIGNED ) + - - COUNT( DISTINCT + - 2 ) THEN 71 ELSE + 12 / - ( + 85 ) * - 4 END THEN 26 * + + 64 + - 81 WHEN + 35 THEN - 36 * 43 END * 60 ) * 94 + 76
----
-4248

skipif mysql # not compatible
query I rowsort label-171
SELECT NULLIF ( - 46, NULLIF ( + 52, + + CASE - 92 WHEN + 89 THEN + 87 + - 1 END - - 18 ) * - NULLIF ( + 84, MIN ( + + 29 ) ) + + 54 * - 43 * 15 * CASE + 88 WHEN + CASE + ( - 20 ) WHEN - CAST ( NULL AS INTEGER ) + - - COUNT ( DISTINCT + - 2 ) THEN 71 ELSE + 12 / - ( + 85 ) * - 4 END THEN 26 * + + 64 + - 81 WHEN + 35 THEN - 36 * 43 END * 60 ) * 94 + 76
----
-4248

query I rowsort
SELECT DISTINCT 95 * - 4
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT COUNT( * ) * - - 72 col2
----
72

skipif mysql # not compatible
query I rowsort label-173
SELECT COUNT ( * ) * - - 72 col2
----
72

query I rowsort
SELECT 51 * - 62 AS col2
----
-3162

onlyif mysql # aggregate syntax: 
query II rowsort label-175
SELECT - 4 AS col1, MIN( - 75 )
----
-4
-75

skipif mysql # not compatible
query II rowsort label-175
SELECT - 4 AS col1, MIN ( - 75 )
----
-4
-75

query II rowsort
SELECT DISTINCT 6, 4 AS col2
----
6
4

query I rowsort
SELECT ALL 17 * + + 59
----
1003

query II rowsort
SELECT 7, 55 + + 27 AS col0
----
7
82

query I rowsort
SELECT ALL - ( 15 ) AS col0
----
-15

query II rowsort
SELECT DISTINCT + 1 * ( - 38 ) col2, - 14
----
-38
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT 98 - - COUNT( * ) * 98 * 23
----
2352

skipif mysql # not compatible
query I rowsort label-181
SELECT 98 - - COUNT ( * ) * 98 * 23
----
2352

query I rowsort
SELECT - - 88 col1
----
88

query I rowsort
SELECT 34 * - - 8
----
272

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT ALL + + 82 DIV + - 14 + 83 - + 31 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL + + 82 / + - 14 + 83 - + 31 AS col1
----
47

query I rowsort
SELECT 67 - - 63 AS col2
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-186
SELECT ALL COUNT( * ) AS col2, 6 * 2 AS col2
----
1
12

skipif mysql # not compatible
query II rowsort label-186
SELECT ALL COUNT ( * ) AS col2, 6 * 2 AS col2
----
1
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-187
SELECT ALL + + COALESCE ( + 0, + 73 * + COUNT( * ) + + 5, 61 + 60 * + NULLIF ( - 74, - 40 DIV - 82 ) DIV 91 + - 97 ) + 52
----
52

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL + + COALESCE ( + 0, + 73 * + COUNT ( * ) + + 5, 61 + 60 * + NULLIF ( - 74, - 40 / - 82 ) / 91 + - 97 ) + 52
----
52

query I rowsort
SELECT DISTINCT - 93 + + + 82 + 21 AS col1
----
10

query I rowsort
SELECT ALL - 82 + - 85 AS col2
----
-167

query I rowsort
SELECT DISTINCT + 24 * 37
----
888

query I rowsort
SELECT - COALESCE ( + 57, + - 82 + + - 99, + + 7 * + 98 ) * + 83 AS col0
----
-4731

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT 93 + - 49 + - 36 + + + CASE + 67 WHEN - ( - NULLIF ( + - 26, COUNT( * ) ) ) THEN + 28 + + 76 + + 46 - + ( + + AVG ( 70 ) ) / COUNT( ALL - 11 ) + 16 END * - ( + + 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-192
SELECT 93 + - 49 + - 36 + + + CASE + 67 WHEN - ( - NULLIF ( + - 26, COUNT ( * ) ) ) THEN + 28 + + 76 + + 46 - + ( + + AVG ( 70 ) ) / COUNT ( ALL - 11 ) + 16 END * - ( + + 68 )
----
NULL

query I rowsort
SELECT 36 * + - 29 AS col2
----
-1044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-194
SELECT DISTINCT + + NULLIF ( NULLIF ( ( - 57 ), - COUNT( * ) ), - 66 + - NULLIF ( - MIN( ALL ( + 24 ) ), - 74 * + - COUNT( * ) ) + - - 31 ) * - - ( 36 ) + - 91 * + - ( 70 ) DIV 14
----
-1597

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT + + NULLIF ( NULLIF ( ( - 57 ), - COUNT ( * ) ), - 66 + - NULLIF ( - MIN ( ALL ( + 24 ) ), - 74 * + - COUNT ( * ) ) + - - 31 ) * - - ( 36 ) + - 91 * + - ( 70 ) / 14
----
-1597

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT SUM( ALL + 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-195
SELECT SUM ( ALL + 84 ) AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-196
SELECT + - NULLIF ( - 76, + COALESCE ( ( 77 ), + ( - 1 ), - - 55 / + 76 / + - ( COALESCE ( + 20, + 96 + - 78 ) ) ) + - NULLIF ( - + SUM( ALL 32 ), + 23 ) / + + CAST( 88 AS SIGNED ) + - 35 )
----
76

skipif mysql # not compatible
query I rowsort label-196
SELECT + - NULLIF ( - 76, + COALESCE ( ( 77 ), + ( - 1 ), - - 55 / + 76 / + - ( COALESCE ( + 20, + 96 + - 78 ) ) ) + - NULLIF ( - + SUM ( ALL 32 ), + 23 ) / + + CAST ( 88 AS INTEGER ) + - 35 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT ALL - - 44 * SUM( ALL - 49 ) + - 45 AS col0
----
-2201

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL - - 44 * SUM ( ALL - 49 ) + - 45 AS col0
----
-2201

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT - 63 / + ( CASE 86 WHEN - MAX( + - 4 ) + COUNT( * ) - - 36 THEN NULL WHEN - + 29 THEN 21 END ) + + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-198
SELECT - 63 / + ( CASE 86 WHEN - MAX ( + - 4 ) + COUNT ( * ) - - 36 THEN NULL WHEN - + 29 THEN 21 END ) + + 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-199
SELECT ALL - 16 * + 86 * 78 - + - 21 + - 40 - - + 74 DIV COUNT( * ) * 81 DIV + + 19 AS col1, 0 + - 74 + + 3 DIV + COUNT( * ) AS col0
----
-107032
-71

skipif mysql # not compatible
query II rowsort label-199
SELECT ALL - 16 * + 86 * 78 - + - 21 + - 40 - - + 74 / COUNT ( * ) * 81 / + + 19 AS col1, 0 + - 74 + + 3 / + COUNT ( * ) AS col0
----
-107032
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-200
SELECT MAX( + 55 ) AS col0, + 54
----
55
54

skipif mysql # not compatible
query II rowsort label-200
SELECT MAX ( + 55 ) AS col0, + 54
----
55
54

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

skipif mysql # not compatible
query I rowsort label-201
SELECT SUM ( DISTINCT - - 39 )
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT DISTINCT 19 * - MAX( DISTINCT + 41 ) * + + 68
----
-52972

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT 19 * - MAX ( DISTINCT + 41 ) * + + 68
----
-52972

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-204
SELECT + 25 * - 98 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-204
SELECT + 25 * - 98 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT + SUM( - 52 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-205
SELECT + SUM ( - 52 ) AS col2
----
-52

query I rowsort
SELECT ALL 54 * 62 AS col2
----
3348

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-208
SELECT + ( + 3 ) DIV - - 28
----
0

skipif mysql # not compatible
query I rowsort label-208
SELECT + ( + 3 ) / - - 28
----
0

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

query II rowsort
SELECT + ( - 53 ) + + 20 + - 37, - 80 * - + 16 AS col2
----
-70
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT + 46 * - 0 + COUNT( * ) AS col2
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT + - 27 - 48 + COUNT( * ) + - - 8 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-212
SELECT + - 27 - 48 + COUNT ( * ) + - - 8 AS col1
----
-66

query I rowsort
SELECT - - COALESCE ( + 79, - + 8 )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-214
SELECT + CASE - NULLIF ( + ( - - COUNT( * ) ), + 69 ) WHEN - 19 THEN COUNT( * ) * - + 47 ELSE + 95 DIV COUNT( * ) END DIV + 31 - - 93 * - 27
----
-2508

skipif mysql # not compatible
query I rowsort label-214
SELECT + CASE - NULLIF ( + ( - - COUNT ( * ) ), + 69 ) WHEN - 19 THEN COUNT ( * ) * - + 47 ELSE + 95 / COUNT ( * ) END / + 31 - - 93 * - 27
----
-2508

query I rowsort
SELECT - + 52 * + + 68
----
-3536

query II rowsort
SELECT ALL - 47 + COALESCE ( 61, - 7 ) + 82 AS col0, 95
----
96
95

query I rowsort
SELECT + - 41 + NULLIF ( + + 98, - 98 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-218
SELECT ALL + - COUNT( * ) * - ( - ( 86 ) ) + + - 84, + 91 - + CAST( 88 AS SIGNED ) AS col0
----
-170
3

skipif mysql # not compatible
query II rowsort label-218
SELECT ALL + - COUNT ( * ) * - ( - ( 86 ) ) + + - 84, + 91 - + CAST ( 88 AS INTEGER ) AS col0
----
-170
3

query I rowsort
SELECT ALL - 97 + 18 AS col0
----
-79

query I rowsort
SELECT + - 92 + - 56
----
-148

query I rowsort
SELECT DISTINCT - 28 * + ( - COALESCE ( + + 91, - 79, + 0 ) ) AS col2
----
2548

query I rowsort
SELECT - 41 + 15 AS col1
----
-26

query II rowsort
SELECT - 64 + + + 40, + 10 col1
----
-24
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-224
SELECT + + 15 + + - COALESCE ( - 99, - - 90 * - 96 * + 88 - - 35 + 75 + 14 * 73 + + - COUNT( * ), - NULLIF ( ( - AVG ( DISTINCT - 1 ) ), 8 + + + 64 + + + 15 * COALESCE ( - COUNT( * ), 43 * NULLIF ( - 13, 93 DIV + 51 + 41 ) + - - 2 * + 74 DIV - - 42 - - 50 * MIN( DISTINCT 36 ), + 56, 17 ) + 28 * + 33 ) DIV CAST( COUNT( * ) AS SIGNED ) )
----
114

skipif mysql # not compatible
query I rowsort label-224
SELECT + + 15 + + - COALESCE ( - 99, - - 90 * - 96 * + 88 - - 35 + 75 + 14 * 73 + + - COUNT ( * ), - NULLIF ( ( - AVG ( DISTINCT - 1 ) ), 8 + + + 64 + + + 15 * COALESCE ( - COUNT ( * ), 43 * NULLIF ( - 13, 93 / + 51 + 41 ) + - - 2 * + 74 / - - 42 - - 50 * MIN ( DISTINCT 36 ), + 56, 17 ) + 28 * + 33 ) / CAST ( COUNT ( * ) AS INTEGER ) )
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT + 8 * + - 89 * SUM( DISTINCT - 54 ) AS col0
----
38448

skipif mysql # not compatible
query I rowsort label-225
SELECT + 8 * + - 89 * SUM ( DISTINCT - 54 ) AS col0
----
38448

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT DISTINCT - + 12 * + NULLIF ( + 35, - + 80 * 83 + + MAX( DISTINCT 42 ) ) AS col0
----
-420

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT - + 12 * + NULLIF ( + 35, - + 80 * 83 + + MAX ( DISTINCT 42 ) ) AS col0
----
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-227
SELECT - 26 + + 52 + 58 DIV 79 * + 60 * - 22
----
26

skipif mysql # not compatible
query I rowsort label-227
SELECT - 26 + + 52 + 58 / 79 * + 60 * - 22
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-228
SELECT DISTINCT 32 DIV - 44 col2
----
0

skipif mysql # not compatible
query I rowsort label-228
SELECT DISTINCT 32 / - 44 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT DISTINCT 53 DIV - 92 - 77
----
-77

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT 53 / - 92 - 77
----
-77

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

skipif mysql # not compatible
query I rowsort label-230
SELECT + 72 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 78 * - - 18 AS col1
----
-1404

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

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

query I rowsort
SELECT - 90 + - 97 AS col2
----
-187

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

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

query I rowsort
SELECT - 42 * + - 49
----
2058

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT ALL + CASE - - MIN( ALL 53 ) WHEN 82 + - 63 * - COALESCE ( - + 76, + 27 ) + - + 50 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL + CASE - - MIN ( ALL 53 ) WHEN 82 + - 63 * - COALESCE ( - + 76, + 27 ) + - + 50 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-237
SELECT + 20 DIV - - 95 + + MIN( DISTINCT 76 )
----
76

skipif mysql # not compatible
query I rowsort label-237
SELECT + 20 / - - 95 + + MIN ( DISTINCT 76 )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-238
SELECT - COUNT( * ) + 69 + - - 33 + 36 + 87 + + COUNT( ALL 27 ) + - 24 + - SUM( - 88 ) DIV 4 + - 96
----
127

skipif mysql # not compatible
query I rowsort label-238
SELECT - COUNT ( * ) + 69 + - - 33 + 36 + 87 + + COUNT ( ALL 27 ) + - 24 + - SUM ( - 88 ) / 4 + - 96
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-239
SELECT ALL 0 * CAST( CAST( 38 AS SIGNED ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL 0 * CAST ( CAST ( 38 AS INTEGER ) AS INTEGER )
----
0

query I rowsort
SELECT CASE COALESCE ( + 34, - + ( - - ( + 7 ) ) ) WHEN 11 THEN NULL WHEN 24 THEN NULL ELSE - 28 END AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-241
SELECT COALESCE ( + 40, - 27 + 85 - 33, - + 43 + COUNT( * ) DIV - NULLIF ( + - ( - 29 ), + 79 + 41 - 98 ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-241
SELECT COALESCE ( + 40, - 27 + 85 - 33, - + 43 + COUNT ( * ) / - NULLIF ( + - ( - 29 ), + 79 + 41 - 98 ) ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT + 76 * + COUNT( * ) + + 54 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-242
SELECT + 76 * + COUNT ( * ) + + 54 AS col1
----
130

query I rowsort
SELECT - 52 * + + 15 * + 49
----
-38220

query I rowsort
SELECT DISTINCT + NULLIF ( + 74, - 73 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT - SUM( ALL + 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-245
SELECT - SUM ( ALL + 15 ) AS col0
----
-15

query I rowsort
SELECT DISTINCT + COALESCE ( + 83, + - 56 ) * 29 + - 44
----
2363

query I rowsort
SELECT + + 30 * + 93 AS col1
----
2790

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

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT - + 60 - + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-249
SELECT - + 60 - + COUNT ( * )
----
-61

query II rowsort
SELECT + 32 AS col0, 67 col0
----
32
67

query II rowsort
SELECT 68, 56 * 21 AS col2
----
68
1176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-252
SELECT + + 80 DIV + 81 - COALESCE ( - SUM( ALL - - 42 ), + + 63 * + 40 ) - - 68 * + ( - 64 )
----
-4310

skipif mysql # not compatible
query I rowsort label-252
SELECT + + 80 / + 81 - COALESCE ( - SUM ( ALL - - 42 ), + + 63 * + 40 ) - - 68 * + ( - 64 )
----
-4310

query II rowsort
SELECT ALL + 75 - + 64 + - + 3 AS col2, 20 AS col1
----
8
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-254
SELECT + 1 * - 53 * - + MAX( - + CAST( + 69 AS SIGNED ) ) * + 74 + + - 11
----
-270629

skipif mysql # not compatible
query I rowsort label-254
SELECT + 1 * - 53 * - + MAX ( - + CAST ( + 69 AS INTEGER ) ) * + 74 + + - 11
----
-270629

query II rowsort
SELECT ALL + 2 AS col0, + 98
----
2
98

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

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

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

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

query II rowsort
SELECT ALL - 32 AS col1, 60 + - ( + 52 ) AS col0
----
-32
8

query I rowsort
SELECT ALL 8 * + 27 AS col2
----
216

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

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL COUNT ( ALL + 51 ) AS col2
----
1

query I rowsort
SELECT - ( - ( - - 54 ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT + 49 + - + COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-262
SELECT + 49 + - + COUNT ( * ) AS col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-263
SELECT - 55 * + + COALESCE ( + - 19, + ( 98 ) DIV + - 8 ) * + 93 * - 77 * - 29 AS col0
----
217014105

skipif mysql # not compatible
query I rowsort label-263
SELECT - 55 * + + COALESCE ( + - 19, + ( 98 ) / + - 8 ) * + 93 * - 77 * - 29 AS col0
----
217014105

query I rowsort
SELECT + 66 * - 2 AS col1
----
-132

query I rowsort
SELECT - 67 * 49 + - 38 AS col2
----
-3321

query I rowsort
SELECT 71 - - + COALESCE ( 86, + 33 )
----
157

onlyif mysql # DIV for integer division: 
query II rowsort label-267
SELECT DISTINCT - 10 AS col1, - 96 + 19 DIV + 10
----
-10
-95

skipif mysql # not compatible
query II rowsort label-267
SELECT DISTINCT - 10 AS col1, - 96 + 19 / + 10
----
-10
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-268
SELECT AVG ( ALL + 15 ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-268
SELECT AVG ( ALL + 15 ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 9 * 44 col0
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT MAX( ALL + 70 ) * - + 71
----
-4970

skipif mysql # not compatible
query I rowsort label-270
SELECT MAX ( ALL + 70 ) * - + 71
----
-4970

query I rowsort
SELECT ALL - 10 + + 69 AS col0
----
59

query II rowsort
SELECT + 97 AS col1, 87 AS col1
----
97
87

query II rowsort
SELECT 23 col2, 81 + 9
----
23
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-274
SELECT ALL + 46 + + CAST( NULL AS DECIMAL ) - - + 73 / 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL + 46 + + CAST ( NULL AS REAL ) - - + 73 / 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-275
SELECT COALESCE ( 8, 81 * - 34 + 65 + + - MIN( 8 ) + + + COUNT( * ) ) * + - 94 + + 76 + - 86 + 71 + + 64 + - 34 + - COUNT( * ) * - 42 DIV - 62 + 24 * - - 0 col1, 22 * - 81 AS col1
----
-661
-1782

skipif mysql # not compatible
query II rowsort label-275
SELECT COALESCE ( 8, 81 * - 34 + 65 + + - MIN ( 8 ) + + + COUNT ( * ) ) * + - 94 + + 76 + - 86 + 71 + + 64 + - 34 + - COUNT ( * ) * - 42 / - 62 + 24 * - - 0 col1, 22 * - 81 AS col1
----
-661
-1782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-276
SELECT DISTINCT - 37 * + 26 * NULLIF ( + 70, - CAST( NULL AS SIGNED ) - + 41 ) AS col0
----
-67340

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT - 37 * + 26 * NULLIF ( + 70, - CAST ( NULL AS INTEGER ) - + 41 ) AS col0
----
-67340

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT 2 * - + NULLIF ( + 84, COUNT( * ) ) col2
----
-168

skipif mysql # not compatible
query I rowsort label-277
SELECT 2 * - + NULLIF ( + 84, COUNT ( * ) ) col2
----
-168

query I rowsort
SELECT DISTINCT - 52 + - ( - 88 )
----
36

query II rowsort
SELECT + 48, + 66 + - + 2 AS col0
----
48
64

query I rowsort
SELECT ALL + - 75 + - + 52 * + - 25
----
1225

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-282
SELECT ALL + - 58 + + + COUNT( * ) * + 92 DIV + 38 AS col0, 67 - - - COUNT( ALL - 62 )
----
-56
66

skipif mysql # not compatible
query II rowsort label-282
SELECT ALL + - 58 + + + COUNT ( * ) * + 92 / + 38 AS col0, 67 - - - COUNT ( ALL - 62 )
----
-56
66

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-284
SELECT ( - - CAST( - ( + 6 ) AS SIGNED ) ) AS col0, - 6 + + 63 + - 74 + + 69
----
-6
52

skipif mysql # not compatible
query II rowsort label-284
SELECT ( - - CAST ( - ( + 6 ) AS INTEGER ) ) AS col0, - 6 + + 63 + - 74 + + 69
----
-6
52

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

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

query I rowsort
SELECT 42 - - 65 AS col1
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-287
SELECT ALL - + 70 * - - CAST( - 59 AS SIGNED )
----
4130

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL - + 70 * - - CAST ( - 59 AS INTEGER )
----
4130

query I rowsort
SELECT 88 + - - 76
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-289
SELECT ALL + 4 - + 73 + 52 - + 98 + 44 DIV - 26 + + - 48 DIV + - 44 + - 89 + - + 44 AS col2
----
-248

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL + 4 - + 73 + 52 - + 98 + 44 / - 26 + + - 48 / + - 44 + - 89 + - + 44 AS col2
----
-248

query I rowsort
SELECT - + 76 col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-291
SELECT DISTINCT - MAX( DISTINCT CAST( 80 AS SIGNED ) )
----
-80

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT - MAX ( DISTINCT CAST ( 80 AS INTEGER ) )
----
-80

query I rowsort
SELECT 68 + - + 12
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT + 26 + COALESCE ( - 60, COUNT( * ) * ( MIN( DISTINCT + 53 ) ) * - 48 * 23 - + + 9 + - 60 + + - 44 - - + 36 * 0 + 28 - COUNT( * ) - + 6, + 31 + 28 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-294
SELECT + 26 + COALESCE ( - 60, COUNT ( * ) * ( MIN ( DISTINCT + 53 ) ) * - 48 * 23 - + + 9 + - 60 + + - 44 - - + 36 * 0 + 28 - COUNT ( * ) - + 6, + 31 + 28 ) AS col0
----
-34

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

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

query I rowsort
SELECT + 35 * + 43
----
1505

onlyif mysql # aggregate syntax: 
query II rowsort label-297
SELECT ALL 34 AS col2, + 18 + MAX( DISTINCT - + 72 ) AS col0
----
34
-54

skipif mysql # not compatible
query II rowsort label-297
SELECT ALL 34 AS col2, + 18 + MAX ( DISTINCT - + 72 ) AS col0
----
34
-54

query I rowsort
SELECT - - ( - 26 ) AS col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-299
SELECT ALL ( 30 ) DIV - - 36 * CAST( - - 27 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL ( 30 ) / - - 36 * CAST ( - - 27 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-300
SELECT CASE - - CASE - 49 WHEN + COUNT( * ) THEN NULL WHEN + 26 * + + 69 * + + 9 THEN + 12 ELSE + + 9 END WHEN + + CAST( + ( + 60 ) AS SIGNED ) * - 12 THEN NULL WHEN - 45 + + 8 + + 29 THEN NULL ELSE - + NULLIF ( - 21, CAST( 36 AS SIGNED ) + 18 - COUNT( - 97 ) ) END * - COUNT( * ) + 60 AS col2, ( + COUNT( * ) ) * - 72 + - 25
----
39
-97

skipif mysql # not compatible
query II rowsort label-300
SELECT CASE - - CASE - 49 WHEN + COUNT ( * ) THEN NULL WHEN + 26 * + + 69 * + + 9 THEN + 12 ELSE + + 9 END WHEN + + CAST ( + ( + 60 ) AS INTEGER ) * - 12 THEN NULL WHEN - 45 + + 8 + + 29 THEN NULL ELSE - + NULLIF ( - 21, CAST ( 36 AS INTEGER ) + 18 - COUNT ( - 97 ) ) END * - COUNT ( * ) + 60 AS col2, ( + COUNT ( * ) ) * - 72 + - 25
----
39
-97

query I rowsort
SELECT 71 + - 43 + + - 98 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT 42 * CASE - 12 WHEN + 45 THEN + CASE - 55 WHEN + - 22 THEN + COUNT( * ) WHEN - - ( MIN( + - 19 ) ) * + 20 THEN NULL END * 7 + + 97 + 24 WHEN - 37 THEN NULL END / + 7 + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-302
SELECT 42 * CASE - 12 WHEN + 45 THEN + CASE - 55 WHEN + - 22 THEN + COUNT ( * ) WHEN - - ( MIN ( + - 19 ) ) * + 20 THEN NULL END * 7 + + 97 + 24 WHEN - 37 THEN NULL END / + 7 + - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT ( + COUNT( * ) ) + 63 * + 70 AS col0
----
4411

skipif mysql # not compatible
query I rowsort label-303
SELECT ( + COUNT ( * ) ) + 63 * + 70 AS col0
----
4411

query I rowsort
SELECT DISTINCT 36 * ( - 10 )
----
-360

query I rowsort
SELECT DISTINCT - 96 + 71 * - 81 AS col2
----
-5847

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-306
SELECT - 12 DIV - 68 + + COUNT( * ) * + ( 82 ) col0, 85
----
82
85

skipif mysql # not compatible
query II rowsort label-306
SELECT - 12 / - 68 + + COUNT ( * ) * + ( 82 ) col0, 85
----
82
85

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT MIN( DISTINCT 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-307
SELECT MIN ( DISTINCT 45 ) AS col2
----
45

query I rowsort
SELECT 58 * + - 36
----
-2088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-309
SELECT CAST( NULL AS SIGNED ) / - 29 + 67, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-309
SELECT CAST ( NULL AS INTEGER ) / - 29 + 67, COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT 2 + - 3 * 8 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-311
SELECT 6 * MAX( 98 ) AS col1, + 63 * + 30 + 5 col1
----
588
1895

skipif mysql # not compatible
query II rowsort label-311
SELECT 6 * MAX ( 98 ) AS col1, + 63 * + 30 + 5 col1
----
588
1895

query I rowsort
SELECT ALL 41 + - - AVG ( DISTINCT 62 ) * - + CASE - 44 WHEN 82 + + 36 THEN - - 95 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT + 68 * + - 0 + + MAX( ALL + + 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-313
SELECT + 68 * + - 0 + + MAX ( ALL + + 96 ) AS col0
----
96

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

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

query I rowsort
SELECT ALL + 68 + + + ( - 96 ) AS col2
----
-28

query I rowsort
SELECT DISTINCT + 52 * + + 34
----
1768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-317
SELECT + CAST( NULL AS SIGNED ) * + + COALESCE ( 57, + + 4 * - - 71 + + 84 ) * 2 + + 52 + + CAST( NULL AS DECIMAL ) - + CASE + 19 WHEN - + MIN( DISTINCT ( - 83 ) ) - 83 * - 90 THEN + + 13 * - - 27 + - COUNT( * ) + - 94 END + CAST( NULL AS SIGNED ) * - + 54 / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-317
SELECT + CAST ( NULL AS INTEGER ) * + + COALESCE ( 57, + + 4 * - - 71 + + 84 ) * 2 + + 52 + + CAST ( NULL AS REAL ) - + CASE + 19 WHEN - + MIN ( DISTINCT ( - 83 ) ) - 83 * - 90 THEN + + 13 * - - 27 + - COUNT ( * ) + - 94 END + CAST ( NULL AS INTEGER ) * - + 54 / + COUNT ( * ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-319
SELECT ALL + NULLIF ( 44, + + 74 + - ( ( COUNT( * ) ) ) ) * 38, - 4 * - 19 AS col1
----
1672
76

skipif mysql # not compatible
query II rowsort label-319
SELECT ALL + NULLIF ( 44, + + 74 + - ( ( COUNT ( * ) ) ) ) * 38, - 4 * - 19 AS col1
----
1672
76

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

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

query I rowsort
SELECT - 74 * + 99 AS col2
----
-7326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-322
SELECT - 44 + + CASE CAST( + 53 AS SIGNED ) WHEN - COUNT( * ) + + 70 * - - COUNT( * ) THEN - 11 WHEN - + CAST( NULL AS DECIMAL ) - - COUNT( * ) THEN + + 93 END * - COUNT( * ) * COUNT( * ) * + + NULLIF ( - 43, 49 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-322
SELECT - 44 + + CASE CAST ( + 53 AS INTEGER ) WHEN - COUNT ( * ) + + 70 * - - COUNT ( * ) THEN - 11 WHEN - + CAST ( NULL AS REAL ) - - COUNT ( * ) THEN + + 93 END * - COUNT ( * ) * COUNT ( * ) * + + NULLIF ( - 43, 49 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 48 * 11 * 70 * + 24 AS col2
----
887040

onlyif mysql # aggregate syntax: 
query II rowsort label-324
SELECT ALL MAX( ALL 84 ) AS col2, 13 / - COUNT( * ) * - 41 + - 29 + + MAX( + + 4 ) * - - 97 + + - SUM( - + 8 ) * NULLIF ( - ( - CASE + 44 WHEN COUNT( * ) * + - 6 + - 97 THEN - 57 END ), COUNT( * ) ) - 6 + - - 47 + + + 30 * + - COUNT( * )
----
84
NULL

skipif mysql # not compatible
query II rowsort label-324
SELECT ALL MAX ( ALL 84 ) AS col2, 13 / - COUNT ( * ) * - 41 + - 29 + + MAX ( + + 4 ) * - - 97 + + - SUM ( - + 8 ) * NULLIF ( - ( - CASE + 44 WHEN COUNT ( * ) * + - 6 + - 97 THEN - 57 END ), COUNT ( * ) ) - 6 + - - 47 + + + 30 * + - COUNT ( * )
----
84
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-325
SELECT DISTINCT + 25 DIV 89 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT + 25 / 89 + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL NULLIF ( - 97, AVG ( DISTINCT + + 39 ) + - ( + 32 ) ) AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-327
SELECT + COUNT( * ) * 37 + - + 59 + - - 96 + - MIN( + - 17 ) * - ( COUNT( * ) ) * CAST( NULL AS DECIMAL ) * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-327
SELECT + COUNT ( * ) * 37 + - + 59 + - - 96 + - MIN ( + - 17 ) * - ( COUNT ( * ) ) * CAST ( NULL AS REAL ) * + 93
----
NULL

query I rowsort
SELECT - 26 + 30
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT DISTINCT + 9 + - COUNT( ALL + 68 ) * 57 * + 41
----
-2328

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT + 9 + - COUNT ( ALL + 68 ) * 57 * + 41
----
-2328

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-330
SELECT ALL - 54 + + 0 - 25 * 86 + - CASE CAST( + SUM( DISTINCT 96 ) AS DECIMAL ) WHEN + ( - 60 ) + + 84 THEN + CASE 67 WHEN + - 20 * + 27 THEN + COUNT( * ) ELSE - 98 END END - + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL - 54 + + 0 - 25 * 86 + - CASE CAST ( + SUM ( DISTINCT 96 ) AS REAL ) WHEN + ( - 60 ) + + 84 THEN + CASE 67 WHEN + - 20 * + 27 THEN + COUNT ( * ) ELSE - 98 END END - + - 13
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-331
SELECT ALL 90 + - - 4 * + - 98 AS col1, + 73 * 90 - - CAST( NULL AS SIGNED ) + - 70
----
-302
NULL

skipif mysql # not compatible
query II rowsort label-331
SELECT ALL 90 + - - 4 * + - 98 AS col1, + 73 * 90 - - CAST ( NULL AS INTEGER ) + - 70
----
-302
NULL

query I rowsort
SELECT DISTINCT + 9 + 18
----
27

query I rowsort
SELECT ALL - 46 + - ( - ( + 77 ) ) AS col1
----
31

query I rowsort
SELECT ALL + 91 + - ( - 84 ) * - + 96 * - NULLIF ( + 39, + 46 ) * ( 39 ) AS col1
----
12265435

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT - COUNT( ALL - 33 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-335
SELECT - COUNT ( ALL - 33 ) AS col0
----
-1

query I rowsort
SELECT - 36 + + 74
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-337
SELECT DISTINCT COUNT( * ) DIV - + 37 * + + 65 DIV 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT COUNT ( * ) / - + 37 * + + 65 / 58 AS col1
----
0

query I rowsort
SELECT + 18 - - 47 - + 72 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-339
SELECT ALL 83 * - 44 * - - CAST( NULL AS SIGNED ) * 36 + - 26 + - + 18 * - 65 * + 27 * - + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL 83 * - 44 * - - CAST ( NULL AS INTEGER ) * 36 + - 26 + - + 18 * - 65 * + 27 * - + 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-340
SELECT ALL + NULLIF ( - - COUNT( ALL - + 97 ), 89 + - - 1 * - 34 ) AS col1, + CAST( NULL AS SIGNED ) + + 59
----
1
NULL

skipif mysql # not compatible
query II rowsort label-340
SELECT ALL + NULLIF ( - - COUNT ( ALL - + 97 ), 89 + - - 1 * - 34 ) AS col1, + CAST ( NULL AS INTEGER ) + + 59
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-341
SELECT + NULLIF ( - 19, CAST( - 63 AS SIGNED ) + - CAST( - - MAX( + 91 ) AS SIGNED ) ) * + 29 * + 48, 0 AS col1
----
-26448
0

skipif mysql # not compatible
query II rowsort label-341
SELECT + NULLIF ( - 19, CAST ( - 63 AS INTEGER ) + - CAST ( - - MAX ( + 91 ) AS INTEGER ) ) * + 29 * + 48, 0 AS col1
----
-26448
0

query I rowsort
SELECT + 82 + - - 9 * 10 AS col2
----
172

query I rowsort
SELECT + NULLIF ( - 89, 2 ) AS col1
----
-89

query I rowsort
SELECT ALL 20 * - - 82 * + 32 - + - 41 + - 94
----
52427

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-345
SELECT ALL + - NULLIF ( - 10, + CAST( CAST( - 13 AS DECIMAL ) AS SIGNED ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL + - NULLIF ( - 10, + CAST ( CAST ( - 13 AS REAL ) AS INTEGER ) ) AS col2
----
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT - 8 * + 4 * ( - 60 ) * MAX( + 63 ) + 81 + + - 5 * + + COUNT( * ) AS col2
----
121036

skipif mysql # not compatible
query I rowsort label-347
SELECT - 8 * + 4 * ( - 60 ) * MAX ( + 63 ) + 81 + + - 5 * + + COUNT ( * ) AS col2
----
121036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-348
SELECT + NULLIF ( - COUNT( * ), + 32 + + + SUM( CAST( NULL AS SIGNED ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-348
SELECT + NULLIF ( - COUNT ( * ), + 32 + + + SUM ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
-1

query I rowsort
SELECT + 81 + - 7 + - + 99 - 37 + ( - + ( - COALESCE ( NULLIF ( - - 45, + 36 ), + + 89 ) ) ) AS col1
----
-17

query I rowsort
SELECT ALL + + 3 * - - 24
----
72

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

query I rowsort
SELECT ALL 78 * - 50
----
-3900

query I rowsort
SELECT + ( + 97 ) + - 65
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-354
SELECT - COALESCE ( + 35, 68 ) * - + 39 DIV + - COUNT( * ) + - 53 AS col2
----
-1418

skipif mysql # not compatible
query I rowsort label-354
SELECT - COALESCE ( + 35, 68 ) * - + 39 / + - COUNT ( * ) + - 53 AS col2
----
-1418

query I rowsort
SELECT - - CASE - 44 WHEN + 16 THEN + 0 END
----
NULL

query I rowsort
SELECT - NULLIF ( - 96, - - 30 ) AS col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-357
SELECT - - 75 DIV NULLIF ( + COUNT( ALL - 20 ), 79 + 42 * - 63 )
----
75

skipif mysql # not compatible
query I rowsort label-357
SELECT - - 75 / NULLIF ( + COUNT ( ALL - 20 ), 79 + 42 * - 63 )
----
75

query I rowsort
SELECT DISTINCT - 77 + - + 21
----
-98

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

skipif mysql # not compatible
query II rowsort label-359
SELECT - COUNT ( * ) + - + 71 / - 73 * + - 73, - 84 * + + COUNT ( * ) AS col1
----
-1
-84

query I rowsort
SELECT ALL COALESCE ( - NULLIF ( + 39, - - 31 ), 7 ) * 28
----
-1092

onlyif mysql # aggregate syntax: 
query II rowsort label-361
SELECT - 96 + - COUNT( * ), + 68 AS col1
----
-97
68

skipif mysql # not compatible
query II rowsort label-361
SELECT - 96 + - COUNT ( * ), + 68 AS col1
----
-97
68

query I rowsort
SELECT ALL + 96 + + + 27 * 5 * - 37 + - - 37 AS col2
----
-4862

query I rowsort
SELECT ALL + 23 + + ( + - 40 )
----
-17

query I rowsort
SELECT ALL - 60 + - 51
----
-111

query I rowsort
SELECT - 77 + - 33 + - - 23 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT - COALESCE ( - - COUNT( * ), + 42 ) * + 17 * - + 14 AS col2
----
238

skipif mysql # not compatible
query I rowsort label-366
SELECT - COALESCE ( - - COUNT ( * ), + 42 ) * + 17 * - + 14 AS col2
----
238

query I rowsort
SELECT DISTINCT + 78 + 80 AS col0
----
158

query II rowsort
SELECT ALL + 60 - - 58 AS col1, 51 AS col0
----
118
51

query I rowsort
SELECT DISTINCT NULLIF ( + 24, + - 51 ) AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-370
SELECT ALL COUNT( * ) / + 57 * CAST( NULL AS SIGNED ) - - - COUNT( * ), 26 + - + 84 AS col1
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-370
SELECT ALL COUNT ( * ) / + 57 * CAST ( NULL AS INTEGER ) - - - COUNT ( * ), 26 + - + 84 AS col1
----
NULL
-58

query I rowsort
SELECT - 76 * - 91 * - 61
----
-421876

onlyif mysql # DIV for integer division: 
query I rowsort label-372
SELECT + + ( + 41 ) DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-372
SELECT + + ( + 41 ) / + 53
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT ALL - + 97 DIV + NULLIF ( - - 41, + 88 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL - + 97 / + NULLIF ( - - 41, + 88 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL COUNT( * ) * - - 0 * - MAX( + + 45 ) - - + 25 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL COUNT ( * ) * - - 0 * - MAX ( + + 45 ) - - + 25 AS col0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-376
SELECT 70 * + + 38 + + 73 + + - ( - + CAST( + 6 AS SIGNED ) ) / - CAST( NULL AS SIGNED ) / + 68 * + 50 AS col1, + 88 + 56 col1
----
NULL
144

skipif mysql # not compatible
query II rowsort label-376
SELECT 70 * + + 38 + + 73 + + - ( - + CAST ( + 6 AS INTEGER ) ) / - CAST ( NULL AS INTEGER ) / + 68 * + 50 AS col1, + 88 + 56 col1
----
NULL
144

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT ALL + COUNT( * ) + - - 79 + COUNT( * ) * 10 * + - 41
----
-330

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL + COUNT ( * ) + - - 79 + COUNT ( * ) * 10 * + - 41
----
-330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-378
SELECT DISTINCT 93 + + + MIN( ALL CAST( NULL AS SIGNED ) ) * + - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT DISTINCT 93 + + + MIN ( ALL CAST ( NULL AS INTEGER ) ) * + - 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT ALL 98 + - + 50 + - MAX( - 58 ) AS col1
----
106

skipif mysql # not compatible
query I rowsort label-379
SELECT ALL 98 + - + 50 + - MAX ( - 58 ) AS col1
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-380
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + - NULLIF ( + COUNT( * ), - - COUNT( * ) + + 66 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-380
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + - NULLIF ( + COUNT ( * ), - - COUNT ( * ) + + 66 ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT ALL - 64 * 73 * COUNT( * )
----
-4672

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL - 64 * 73 * COUNT ( * )
----
-4672

query I rowsort
SELECT 71 * - - 31 col0
----
2201

query I rowsort
SELECT ALL 78 + + + 85 * - ( + 74 )
----
-6212

query I rowsort
SELECT ALL 31 * + 6 col1
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT 61 + - + SUM( DISTINCT - + 57 ) - + 36
----
82

skipif mysql # not compatible
query I rowsort label-386
SELECT 61 + - + SUM ( DISTINCT - + 57 ) - + 36
----
82

query I rowsort
SELECT 96 * 26 AS col2
----
2496

query I rowsort
SELECT 3 + + 95 * - + 50 - ( ( + - 5 ) ) - 62 - - - 82 col0
----
-4886

query I rowsort
SELECT ALL + 92 - - 47 AS col0
----
139

query I rowsort
SELECT ALL - 28 - - 22
----
-6

query II rowsort
SELECT 96 - ( + 24 ) AS col0, NULLIF ( - 41, + 35 * + 25 ) AS col2
----
72
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-392
SELECT DISTINCT - COUNT( * ) DIV - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT - COUNT ( * ) / - 88 AS col1
----
0

query I rowsort
SELECT 12 * + - 93
----
-1116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-394
SELECT 86 + - COUNT( * ) + 78 DIV + 93 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-394
SELECT 86 + - COUNT ( * ) + 78 / + 93 AS col2
----
85

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

query I rowsort
SELECT 31 - - - 99 col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT DISTINCT - CASE - - 71 WHEN - + SUM( ALL - 25 ) THEN + 93 ELSE NULL END * - - COALESCE ( + 77, 78 * - 26 * + 20, + + 56 / + - 60 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT - CASE - - 71 WHEN - + SUM ( ALL - 25 ) THEN + 93 ELSE NULL END * - - COALESCE ( + 77, 78 * - 26 * + 20, + + 56 / + - 60 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT + CASE - 79 WHEN COUNT( * ) THEN NULL WHEN COUNT( * ) + - 42 THEN + 69 WHEN - 79 THEN NULL END - + - 0 + - COUNT( - - 91 ) + + 48 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT + CASE - 79 WHEN COUNT ( * ) THEN NULL WHEN COUNT ( * ) + - 42 THEN + 69 WHEN - 79 THEN NULL END - + - 0 + - COUNT ( - - 91 ) + + 48 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT ALL - - MAX( - + 84 ) * - 55 AS col2
----
4620

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL - - MAX ( - + 84 ) * - 55 AS col2
----
4620

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT + 63 * + COUNT( * ) * 91 - + 48 * - ( 61 ) + 82 AS col0
----
8743

skipif mysql # not compatible
query I rowsort label-402
SELECT + 63 * + COUNT ( * ) * 91 - + 48 * - ( 61 ) + 82 AS col0
----
8743

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT - 48 * + - COALESCE ( - COUNT( DISTINCT 42 ), - NULLIF ( 50, - 83 ) * + + 29, - 22 ) + - 51 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-403
SELECT - 48 * + - COALESCE ( - COUNT ( DISTINCT 42 ), - NULLIF ( 50, - 83 ) * + + 29, - 22 ) + - 51 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT - ( + + MAX( ALL + 60 ) ) - + 56
----
-116

skipif mysql # not compatible
query I rowsort label-404
SELECT - ( + + MAX ( ALL + 60 ) ) - + 56
----
-116

query II rowsort
SELECT + 14 AS col2, - 55 col1
----
14
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT ALL - 35 + - + 65 + - 71 DIV 53 AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL - 35 + - + 65 + - 71 / 53 AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT 30 * + - 77 * - 25 - + 12 + + 58 * + COUNT( ALL + 19 ) AS col0
----
57796

skipif mysql # not compatible
query I rowsort label-407
SELECT 30 * + - 77 * - 25 - + 12 + + 58 * + COUNT ( ALL + 19 ) AS col0
----
57796

query I rowsort
SELECT 11 * - 59 * + + 58 * - ( + 70 ) AS col0
----
2634940

query I rowsort
SELECT - 43 + - 24 * 69 AS col1
----
-1699

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

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

query I rowsort
SELECT ALL + 44 + - 33
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT SUM( DISTINCT - 69 ) + MAX( DISTINCT + 1 )
----
-68

skipif mysql # not compatible
query I rowsort label-412
SELECT SUM ( DISTINCT - 69 ) + MAX ( DISTINCT + 1 )
----
-68

query I rowsort
SELECT DISTINCT + 52 * - ( - + 75 )
----
3900

query II rowsort
SELECT + + 58 * 9 * - - 64 + + 71 - 83 AS col0, 40
----
33396
40

query I rowsort
SELECT ALL 84 + + 78 AS col2
----
162

query II rowsort
SELECT 51 + NULLIF ( - 16, + + 38 ) * - - 39 * 78, - 39 AS col1
----
-48621
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-417
SELECT + COUNT( DISTINCT + - 79 ) * 95 + + - 85 + - + MAX( + 71 ) AS col0, - 38
----
-61
-38

skipif mysql # not compatible
query II rowsort label-417
SELECT + COUNT ( DISTINCT + - 79 ) * 95 + + - 85 + - + MAX ( + 71 ) AS col0, - 38
----
-61
-38

query I rowsort
SELECT ALL 25 - + 37
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT 77 * + MIN( ALL 78 ) AS col1
----
6006

skipif mysql # not compatible
query I rowsort label-419
SELECT 77 * + MIN ( ALL 78 ) AS col1
----
6006

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT CASE - 6 WHEN - 96 THEN NULL WHEN + 56 + + - 38 + + COUNT( * ) THEN NULL WHEN 18 THEN NULL ELSE - 30 END + + 67 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-421
SELECT CASE - 6 WHEN - 96 THEN NULL WHEN + 56 + + - 38 + + COUNT ( * ) THEN NULL WHEN 18 THEN NULL ELSE - 30 END + + 67 AS col1
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-422
SELECT ALL 83 AS col2, + MAX( 48 ) DIV - COALESCE ( 61, + 98, + + 21 ) * - 54
----
83
0

skipif mysql # not compatible
query II rowsort label-422
SELECT ALL 83 AS col2, + MAX ( 48 ) / - COALESCE ( 61, + 98, + + 21 ) * - 54
----
83
0

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

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

query II rowsort
SELECT ALL 92 AS col2, + 20
----
92
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT 31 + SUM( 13 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-426
SELECT 31 + SUM ( 13 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-427
SELECT 40 + 83 AS col0, 51 * + COUNT( * ) * 33 + - + 46 AS col2
----
123
1637

skipif mysql # not compatible
query II rowsort label-427
SELECT 40 + 83 AS col0, 51 * + COUNT ( * ) * 33 + - + 46 AS col2
----
123
1637

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT - 11 DIV - - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-428
SELECT - 11 / - - 54 AS col1
----
0

query II rowsort
SELECT DISTINCT + 93 AS col0, 46 + - 64 AS col2
----
93
-18

query II rowsort
SELECT DISTINCT 91 AS col2, + 20
----
91
20

query II rowsort
SELECT ALL 8 AS col0, - COALESCE ( + - 48, - 78 ) col1
----
8
48

query I rowsort
SELECT + 34 + + 88
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-433
SELECT DISTINCT - 89 + + ( + + COUNT( * ) ) DIV + - 65, MAX( - 43 ) + ( + - 32 ) + + 71 + + ( COUNT( * ) ) * - 99 AS col1
----
-89
-103

skipif mysql # not compatible
query II rowsort label-433
SELECT DISTINCT - 89 + + ( + + COUNT ( * ) ) / + - 65, MAX ( - 43 ) + ( + - 32 ) + + 71 + + ( COUNT ( * ) ) * - 99 AS col1
----
-89
-103

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

skipif mysql # not compatible
query I rowsort label-434
SELECT - - 34 * 73 * - 47 + + - COUNT ( * ) AS col0
----
-116655

query I rowsort
SELECT + 61 * - 25 AS col1
----
-1525

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT - 46 * - SUM( 90 ) - - 77 * 45 * ( - 4 )
----
-9720

skipif mysql # not compatible
query I rowsort label-436
SELECT - 46 * - SUM ( 90 ) - - 77 * 45 * ( - 4 )
----
-9720

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT DISTINCT - 26 * + COUNT( * ) + + + 31 - 48 * + 56 AS col2
----
-2683

skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT - 26 * + COUNT ( * ) + + + 31 - 48 * + 56 AS col2
----
-2683

query I rowsort
SELECT ALL + - 76 * + 14 * + 20 + + 27 + - 58
----
-21311

query I rowsort
SELECT - 97 + 10 + 45 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT ALL + 83 * - + MAX( + 32 ) + + - 13 col0
----
-2669

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL + 83 * - + MAX ( + 32 ) + + - 13 col0
----
-2669

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-441
SELECT DISTINCT - - CASE + 88 WHEN + 7 DIV 22 THEN + - 35 * - MAX( DISTINCT - CASE + 68 WHEN + + 62 DIV 57 THEN - 35 * + 62 END ) ELSE NULL END * - ( - - ( - 49 ) ) * 24 + - - 92 AS col2, + COUNT( * ) DIV + 38 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-441
SELECT DISTINCT - - CASE + 88 WHEN + 7 / 22 THEN + - 35 * - MAX ( DISTINCT - CASE + 68 WHEN + + 62 / 57 THEN - 35 * + 62 END ) ELSE NULL END * - ( - - ( - 49 ) ) * 24 + - - 92 AS col2, + COUNT ( * ) / + 38 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT DISTINCT + MAX( 98 ) * 19 + COALESCE ( - 30, 69 * + + 39 ) * + SUM( ALL + 84 ) * - 82 AS col1
----
208502

skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT + MAX ( 98 ) * 19 + COALESCE ( - 30, 69 * + + 39 ) * + SUM ( ALL + 84 ) * - 82 AS col1
----
208502

query I rowsort
SELECT ALL - + 42 * + 23 AS col1
----
-966

query I rowsort
SELECT - + 18 * - 37 * - 60
----
-39960

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-445
SELECT ALL + 64, 1 DIV - CAST( - - 41 AS SIGNED ) + 17 AS col1
----
64
17

skipif mysql # not compatible
query II rowsort label-445
SELECT ALL + 64, 1 / - CAST ( - - 41 AS INTEGER ) + 17 AS col1
----
64
17

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT + COALESCE ( - COUNT( * ), 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-446
SELECT + COALESCE ( - COUNT ( * ), 12 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-447
SELECT 80 AS col2, + CAST( NULL AS DECIMAL )
----
80
NULL

skipif mysql # not compatible
query II rowsort label-447
SELECT 80 AS col2, + CAST ( NULL AS REAL )
----
80
NULL

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

skipif mysql # not compatible
query II rowsort label-448
SELECT + 77 col1, COUNT ( * ) col2
----
77
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT - COALESCE ( 67, - COUNT( * ) * 21 ) * COUNT( ALL - 47 )
----
-67

skipif mysql # not compatible
query I rowsort label-450
SELECT - COALESCE ( 67, - COUNT ( * ) * 21 ) * COUNT ( ALL - 47 )
----
-67

query I rowsort
SELECT DISTINCT + 19 * + + 41 AS col2
----
779

query I rowsort
SELECT DISTINCT 36 * - 78 AS col0
----
-2808

onlyif mysql # aggregate syntax: 
query II rowsort label-453
SELECT DISTINCT NULLIF ( + SUM( + NULLIF ( + 16, - 28 ) ), - 62 / - COUNT( * ) ) AS col1, - 15 AS col2
----
16
-15

skipif mysql # not compatible
query II rowsort label-453
SELECT DISTINCT NULLIF ( + SUM ( + NULLIF ( + 16, - 28 ) ), - 62 / - COUNT ( * ) ) AS col1, - 15 AS col2
----
16
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT ALL - MAX( - + NULLIF ( + + 90, ( + 46 ) * 53 ) ) * + 41
----
3690

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL - MAX ( - + NULLIF ( + + 90, ( + 46 ) * 53 ) ) * + 41
----
3690

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT - MAX( ALL + 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-455
SELECT - MAX ( ALL + 26 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT - NULLIF ( - 78, + COUNT( * ) - + 40 + + ( + + 15 ) ) + - 26 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-456
SELECT - NULLIF ( - 78, + COUNT ( * ) - + 40 + + ( + + 15 ) ) + - 26 AS col0
----
52

query I rowsort
SELECT - NULLIF ( + 99, + 77 * - 79 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT ALL 29 + COUNT( * ) * + + 14
----
43

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL 29 + COUNT ( * ) * + + 14
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT + 93 - COUNT( * ) + + - 80 * - - 37 + - 8 AS col0
----
-2876

skipif mysql # not compatible
query I rowsort label-459
SELECT + 93 - COUNT ( * ) + + - 80 * - - 37 + - 8 AS col0
----
-2876

query I rowsort
SELECT + ( - 12 ) * - 98
----
1176

query I rowsort
SELECT + + 65 + + + 73 * - 54
----
-3877

query I rowsort
SELECT + 89 + 25 AS col1
----
114

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-463
SELECT - - CAST( NULL AS DECIMAL ) / + 44 AS col0, 64 AS col0, - 89 AS col0
----
NULL
64
-89

skipif mysql # not compatible
query III rowsort label-463
SELECT - - CAST ( NULL AS REAL ) / + 44 AS col0, 64 AS col0, - 89 AS col0
----
NULL
64
-89

query I rowsort
SELECT + COALESCE ( + - ( + - 34 ), - - 2 )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-465
SELECT ALL + 22 DIV 80 * + 46 + 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL + 22 / 80 * + 46 + 24 AS col2
----
24

query I rowsort
SELECT + 0 + + 37 - 24 * + 40
----
-923

query I rowsort
SELECT + 5 * - 23 AS col1
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-468
SELECT ALL 44 DIV - + COUNT( * ) - - NULLIF ( 91, + 45 * MIN( 93 ) + + 86 DIV + + 80 * + 27 ) * 70 AS col1
----
6326

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL 44 / - + COUNT ( * ) - - NULLIF ( 91, + 45 * MIN ( 93 ) + + 86 / + + 80 * + 27 ) * 70 AS col1
----
6326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-469
SELECT + 2 * + CASE WHEN ( NULL ) NOT IN ( 53, - SUM( 2 ) + - 98 + - 25, - 37 ) THEN - COUNT( * ) END + COUNT( * ) + - + COALESCE ( 81, - CAST( 52 AS DECIMAL ) - - SUM( + 14 ) * 7, - 67 ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-469
SELECT + 2 * + CASE WHEN ( NULL ) NOT IN ( 53, - SUM ( 2 ) + - 98 + - 25, - 37 ) THEN - COUNT ( * ) END + COUNT ( * ) + - + COALESCE ( 81, - CAST ( 52 AS REAL ) - - SUM ( + 14 ) * 7, - 67 ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 14 + 16 * 97
----
1566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-471
SELECT ALL + 33 * - + CASE + - 61 WHEN + 14 THEN + + NULLIF ( + 96, + ( - 80 ) * - + CAST( + ( 94 ) AS SIGNED ) ) WHEN 37 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL + 33 * - + CASE + - 61 WHEN + 14 THEN + + NULLIF ( + 96, + ( - 80 ) * - + CAST ( + ( 94 ) AS INTEGER ) ) WHEN 37 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT - ( - ( + + 42 ) ) + + + SUM( DISTINCT 28 ) * 31
----
910

skipif mysql # not compatible
query I rowsort label-472
SELECT - ( - ( + + 42 ) ) + + + SUM ( DISTINCT 28 ) * 31
----
910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-473
SELECT CAST( NULL AS SIGNED ) * + 48 + + 15 + - 39 + - - SUM( 25 ) + + - 90 * + 95 * COALESCE ( - ( - CAST( NULL AS SIGNED ) ), - 52 + - + COUNT( * ), - ( + COUNT( * ) ) * + 24 ) * - + NULLIF ( CAST( - 62 AS SIGNED ), + 89 ) + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-473
SELECT CAST ( NULL AS INTEGER ) * + 48 + + 15 + - 39 + - - SUM ( 25 ) + + - 90 * + 95 * COALESCE ( - ( - CAST ( NULL AS INTEGER ) ), - 52 + - + COUNT ( * ), - ( + COUNT ( * ) ) * + 24 ) * - + NULLIF ( CAST ( - 62 AS INTEGER ), + 89 ) + + 33
----
NULL

query I rowsort
SELECT DISTINCT 48 * 66 AS col0
----
3168

query I rowsort
SELECT - 77 * + 29 AS col1
----
-2233

query I rowsort
SELECT - 36 + + 53 AS col0
----
17

query II rowsort
SELECT DISTINCT ( ( - + 30 ) ), 36 AS col0
----
-30
36

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

skipif mysql # not compatible
query I rowsort label-478
SELECT - CAST ( NULL AS INTEGER ) * + 32 * + CAST ( 99 AS INTEGER )
----
NULL

query I rowsort
SELECT - 30 + - 7 AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-480
SELECT - 41 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-480
SELECT - 41 / + 71
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-481
SELECT 71 * - 35 + 1 + + 45 + + + CAST( NULL AS SIGNED ) * AVG ( - + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-481
SELECT 71 * - 35 + 1 + + 45 + + + CAST ( NULL AS INTEGER ) * AVG ( - + 30 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-482
SELECT - 11 DIV - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-482
SELECT - 11 / - 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT - 70 + + CASE + 40 WHEN - - 42 + COUNT( * ) + + 36 THEN 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-483
SELECT - 70 + + CASE + 40 WHEN - - 42 + COUNT ( * ) + + 36 THEN 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT ALL 81 * - - 22 * COUNT( * )
----
1782

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL 81 * - - 22 * COUNT ( * )
----
1782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-485
SELECT ALL + - ( - 9 ) + 46 + + 61 DIV + COUNT( * ) + + 90
----
206

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL + - ( - 9 ) + 46 + + 61 / + COUNT ( * ) + + 90
----
206

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

skipif mysql # not compatible
query I rowsort label-486
SELECT 97 * - + 38 + - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0
----
-3686

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT COUNT( * ) + - 9 * 33 + + - 90
----
-386

skipif mysql # not compatible
query I rowsort label-487
SELECT COUNT ( * ) + - 9 * 33 + + - 90
----
-386

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

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

query I rowsort
SELECT + 82 + - 76
----
6

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

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

query I rowsort
SELECT + 56 + - 86 * 54
----
-4588

query I rowsort
SELECT - ( - 43 ) AS col0
----
43

query I rowsort
SELECT 97 + + 52 AS col1
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-494
SELECT - COUNT( * ) + 5 * - 18, + 91 - 78 + 90 AS col0
----
-91
103

skipif mysql # not compatible
query II rowsort label-494
SELECT - COUNT ( * ) + 5 * - 18, + 91 - 78 + 90 AS col0
----
-91
103

query I rowsort
SELECT 58 * 52 AS col0
----
3016

onlyif mysql # aggregate syntax: 
query II rowsort label-496
SELECT + - 96 * 61 + + + COUNT( * ) AS col0, 53 * + + 78 + + 70
----
-5855
4204

skipif mysql # not compatible
query II rowsort label-496
SELECT + - 96 * 61 + + + COUNT ( * ) AS col0, 53 * + + 78 + + 70
----
-5855
4204

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

skipif mysql # not compatible
query I rowsort label-497
SELECT COUNT ( DISTINCT + 60 ) * - - 20 AS col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-498
SELECT COUNT( * ) col0, + COUNT( * ) * - NULLIF ( + + 17, 2 * + 90 )
----
1
-17

skipif mysql # not compatible
query II rowsort label-498
SELECT COUNT ( * ) col0, + COUNT ( * ) * - NULLIF ( + + 17, 2 * + 90 )
----
1
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-499
SELECT + NULLIF ( + - COUNT( * ), - CAST( NULL AS SIGNED ) / 14 + - 92 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-499
SELECT + NULLIF ( + - COUNT ( * ), - CAST ( NULL AS INTEGER ) / 14 + - 92 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT COALESCE ( + 20, - + 51 ) DIV - NULLIF ( - - 28, + - 40 * - - 97 ) + + - 77 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-500
SELECT COALESCE ( + 20, - + 51 ) / - NULLIF ( - - 28, + - 40 * - - 97 ) + + - 77 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT + MIN( DISTINCT + 79 ) * 57 - 49
----
4454

skipif mysql # not compatible
query I rowsort label-501
SELECT + MIN ( DISTINCT + 79 ) * 57 - 49
----
4454

onlyif mysql # aggregate syntax: 
query II rowsort label-502
SELECT - 61 AS col2, COUNT( + - 95 )
----
-61
1

skipif mysql # not compatible
query II rowsort label-502
SELECT - 61 AS col2, COUNT ( + - 95 )
----
-61
1

query I rowsort
SELECT DISTINCT 60 * + 83 AS col0
----
4980

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT DISTINCT - 46 * - - MAX( ALL 36 ) AS col1
----
-1656

skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT - 46 * - - MAX ( ALL 36 ) AS col1
----
-1656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-505
SELECT ALL 72 * - CAST( 40 AS SIGNED ) col1
----
-2880

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL 72 * - CAST ( 40 AS INTEGER ) col1
----
-2880

onlyif mysql # aggregate syntax: 
query II rowsort label-506
SELECT ALL - COUNT( + 19 ) AS col1, + 90 AS col2
----
-1
90

skipif mysql # not compatible
query II rowsort label-506
SELECT ALL - COUNT ( + 19 ) AS col1, + 90 AS col2
----
-1
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-507
SELECT ALL - MAX( ALL - CAST( NULL AS SIGNED ) ) / + 79 * + - MAX( 49 ) * 34 - + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL - MAX ( ALL - CAST ( NULL AS INTEGER ) ) / + 79 * + - MAX ( 49 ) * 34 - + 28
----
NULL

query I rowsort
SELECT 5 * - + 3 * - - 22 AS col2
----
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT DISTINCT 1 DIV - + 13 * - + 84
----
0

skipif mysql # not compatible
query I rowsort label-509
SELECT DISTINCT 1 / - + 13 * - + 84
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-510
SELECT ALL - SUM( - 38 ), 94 + - + 14 AS col2
----
38
80

skipif mysql # not compatible
query II rowsort label-510
SELECT ALL - SUM ( - 38 ), 94 + - + 14 AS col2
----
38
80

query I rowsort
SELECT 95 * 37
----
3515

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

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

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

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

query I rowsort
SELECT DISTINCT 65 + 84 * - - ( + 65 ) * + + 56 * + 7
----
2140385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-515
SELECT 3 * COUNT( * ) DIV + SUM( ALL + - 78 ) - + 73
----
-73

skipif mysql # not compatible
query I rowsort label-515
SELECT 3 * COUNT ( * ) / + SUM ( ALL + - 78 ) - + 73
----
-73

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

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

query II rowsort
SELECT 30 * - 18 AS col1, 8 * - 29
----
-540
-232

query I rowsort
SELECT ALL - 8 - + 26 - + 16
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT DISTINCT - MIN( NULLIF ( 49, + ( - 76 ) ) )
----
-49

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT - MIN ( NULLIF ( 49, + ( - 76 ) ) )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-520
SELECT DISTINCT - SUM( - - 66 ) / - - ( - 36 ) + + ( + - ( + - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT - SUM ( - - 66 ) / - - ( - 36 ) + + ( + - ( + - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( + 84, - - 84 ) * + + 71 * + - 48 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT ALL - 25 * 82 * COUNT( * ) * - 72
----
147600

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL - 25 * 82 * COUNT ( * ) * - 72
----
147600

query I rowsort
SELECT ALL + 67 - + - 85 AS col1
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-524
SELECT 60 * + COUNT( DISTINCT - 17 ) + - 43 DIV - - 10 * + + COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-524
SELECT 60 * + COUNT ( DISTINCT - 17 ) + - 43 / - - 10 * + + COUNT ( * ) AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-525
SELECT CAST( + MIN( ALL 35 ) AS SIGNED ) DIV COUNT( * ) col0
----
35

skipif mysql # not compatible
query I rowsort label-525
SELECT CAST ( + MIN ( ALL 35 ) AS INTEGER ) / COUNT ( * ) col0
----
35

query I rowsort
SELECT - 96 * - + 23
----
2208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-527
SELECT 83 * 5 + + 17 - 11 + 10 + 11 DIV COUNT( ALL + 40 ) DIV 88 * - 67 * - 35 DIV + 4 DIV COALESCE ( - COUNT( * ), - 65 + - + 25 )
----
431

skipif mysql # not compatible
query I rowsort label-527
SELECT 83 * 5 + + 17 - 11 + 10 + 11 / COUNT ( ALL + 40 ) / 88 * - 67 * - 35 / + 4 / COALESCE ( - COUNT ( * ), - 65 + - + 25 )
----
431

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT ALL - MIN( ALL + 46 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL - MIN ( ALL + 46 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT - 19 - + COUNT( * ) + - ( 97 ) + + 99 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-529
SELECT - 19 - + COUNT ( * ) + - ( 97 ) + + 99 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-530
SELECT ALL - 67 col0, + COUNT( * )
----
-67
1

skipif mysql # not compatible
query II rowsort label-530
SELECT ALL - 67 col0, + COUNT ( * )
----
-67
1

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT 76 + + 72 + + COUNT( * ) - 44 + - ( + + 99 )
----
6

skipif mysql # not compatible
query I rowsort label-531
SELECT 76 + + 72 + + COUNT ( * ) - 44 + - ( + + 99 )
----
6

query I rowsort
SELECT 15 * + 91 AS col0
----
1365

query I rowsort
SELECT 21 - 89
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT ALL 60 * - SUM( DISTINCT + 16 ) col0
----
-960

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL 60 * - SUM ( DISTINCT + 16 ) col0
----
-960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-535
SELECT + MAX( + ( - - CAST( + - 69 AS SIGNED ) ) )
----
-69

skipif mysql # not compatible
query I rowsort label-535
SELECT + MAX ( + ( - - CAST ( + - 69 AS INTEGER ) ) )
----
-69

query I rowsort
SELECT 5 + + 86 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT ALL 12 + - 57 + MIN( - 44 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL 12 + - 57 + MIN ( - 44 ) AS col2
----
-89

query I rowsort
SELECT 11 + - 76 col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT ( + 53 ) + NULLIF ( 98, + - COUNT( * ) ) + + CASE + ( + 49 ) WHEN 68 THEN + 39 ELSE NULL END / + 95 / - 13 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-539
SELECT ( + 53 ) + NULLIF ( 98, + - COUNT ( * ) ) + + CASE + ( + 49 ) WHEN 68 THEN + 39 ELSE NULL END / + 95 / - 13 col0
----
NULL

query I rowsort
SELECT DISTINCT ( 97 ) + 92
----
189

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT + COUNT( * ) + 2 + - 96 - + + 71 * 94 AS col2
----
-6767

skipif mysql # not compatible
query I rowsort label-542
SELECT + COUNT ( * ) + 2 + - 96 - + + 71 * 94 AS col2
----
-6767

query I rowsort
SELECT + NULLIF ( + 34, - 57 + - - 61 )
----
34

query I rowsort
SELECT + 23 + 77 * 4 AS col0
----
331

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-545
SELECT + 35 DIV - ( - 18 ) * + COUNT( * ) * + COUNT( * ) + 23 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-545
SELECT + 35 / - ( - 18 ) * + COUNT ( * ) * + COUNT ( * ) + 23 AS col0
----
24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-547
SELECT - MAX( DISTINCT + - ( - CAST( 39 AS SIGNED ) ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-547
SELECT - MAX ( DISTINCT + - ( - CAST ( 39 AS INTEGER ) ) ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT DISTINCT MIN( 72 ) col0
----
72

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT MIN ( 72 ) col0
----
72

query I rowsort
SELECT ALL 8 - - 26
----
34

query II rowsort
SELECT + 0 AS col2, + 0 + - 65 + + + 20 col2
----
0
-45

query I rowsort
SELECT DISTINCT 70 * 20 AS col0
----
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT ALL + MIN( DISTINCT 57 ) col2
----
57

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL + MIN ( DISTINCT 57 ) col2
----
57

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

skipif mysql # not compatible
query I rowsort label-553
SELECT - - NULLIF ( + COUNT ( * ), + 51 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-554
SELECT ALL + CAST( 29 AS SIGNED ) * + - ( + - ( + 98 ) )
----
2842

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL + CAST ( 29 AS INTEGER ) * + - ( + - ( + 98 ) )
----
2842

query I rowsort
SELECT + + 90 * ( 84 )
----
7560

query I rowsort
SELECT - 27 * + 14 + 60
----
-318

query I rowsort
SELECT + 67 + - 45 * + + 20 AS col1
----
-833

query I rowsort
SELECT - COALESCE ( - 7, - 30, - 17 )
----
7

query II rowsort
SELECT - 73, 15 AS col1
----
-73
15

query I rowsort
SELECT + 94 * 84
----
7896

query I rowsort
SELECT - - 74 - - 51 + + ( - + 43 ) AS col1
----
82

query I rowsort
SELECT ALL + 63 * - 40 * 52 * - 40 AS col2
----
5241600

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT ALL + - 99 + + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL + - 99 + + COUNT ( * )
----
-98

query I rowsort
SELECT - NULLIF ( - 62, + 37 ) * ( ( 63 ) ) + + 70 AS col2
----
3976

query I rowsort
SELECT ALL - 11 * 37 AS col2
----
-407

query I rowsort
SELECT - 25 * - 4 AS col0
----
100

query I rowsort
SELECT ALL - 4 * - 81 + - - 78 + + 73 + 0 + - 29 + + 43 * 71 AS col1
----
3499

query II rowsort
SELECT DISTINCT + 79 AS col0, 86 col1
----
79
86

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

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

query II rowsort
SELECT DISTINCT + 63, ( ( ( - 46 ) ) ) AS col0
----
63
-46

query I rowsort
SELECT ALL 41 * CASE WHEN - 41 IS NULL THEN - 91 * - 45 * 73 + + + 57 END
----
NULL

query I rowsort
SELECT + 64 * - 29 * + 70 AS col0
----
-129920

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT COALESCE ( SUM( + + 1 ), + 40 + 90, - 8 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-574
SELECT COALESCE ( SUM ( + + 1 ), + 40 + 90, - 8 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT + CASE + 62 WHEN 39 + + 7 THEN NULL WHEN + 30 + - ( - 29 ) * + 70 - + - 53 THEN 73 / - - COUNT( * ) + - - 76 * 44 + + - 36 WHEN + 86 * 24 THEN 54 + + - 35 ELSE 69 * + 86 END AS col1
----
5934

skipif mysql # not compatible
query I rowsort label-575
SELECT + CASE + 62 WHEN 39 + + 7 THEN NULL WHEN + 30 + - ( - 29 ) * + 70 - + - 53 THEN 73 / - - COUNT ( * ) + - - 76 * 44 + + - 36 WHEN + 86 * 24 THEN 54 + + - 35 ELSE 69 * + 86 END AS col1
----
5934

query I rowsort
SELECT COALESCE ( - + 87, - 90 ) AS col2
----
-87

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

skipif mysql # not compatible
query I rowsort label-577
SELECT + COUNT ( * ) / - - 83
----
0

query I rowsort
SELECT - 28 * 12 AS col0
----
-336

query II rowsort
SELECT + - 41 col2, + 67
----
-41
67

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT + SUM( DISTINCT + ( 18 ) ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-580
SELECT + SUM ( DISTINCT + ( 18 ) ) AS col1
----
18

query I rowsort
SELECT ALL + 91 * - 61 AS col1
----
-5551

query I rowsort
SELECT + 85 * - - 8 + + + 58 AS col2
----
738

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

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

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

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

query II rowsort
SELECT + 6 col1, + 85 AS col1
----
6
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-586
SELECT + - 30 * + CAST( 9 AS SIGNED ) * + COUNT( * )
----
-270

skipif mysql # not compatible
query I rowsort label-586
SELECT + - 30 * + CAST ( 9 AS INTEGER ) * + COUNT ( * )
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT - - 83 * - 64 + + NULLIF ( + 7, CASE + + 22 WHEN 76 THEN MAX( ALL - ( + + 71 ) ) - - 17 WHEN + 95 * 22 * + 75 THEN NULL END + + 33 + - - 85 * - COUNT( * ) * - COUNT( * ) ) AS col2
----
-5305

skipif mysql # not compatible
query I rowsort label-587
SELECT - - 83 * - 64 + + NULLIF ( + 7, CASE + + 22 WHEN 76 THEN MAX ( ALL - ( + + 71 ) ) - - 17 WHEN + 95 * 22 * + 75 THEN NULL END + + 33 + - - 85 * - COUNT ( * ) * - COUNT ( * ) ) AS col2
----
-5305

query I rowsort
SELECT + + 3 * 2
----
6

query I rowsort
SELECT + 39 - - 29 * - - 57 AS col0
----
1692

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT + + 53 DIV + - ( + + 9 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-590
SELECT + + 53 / + - ( + + 9 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-591
SELECT ALL - COUNT( * ) col0, 20 * + 24 col2
----
-1
480

skipif mysql # not compatible
query II rowsort label-591
SELECT ALL - COUNT ( * ) col0, 20 * + 24 col2
----
-1
480

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

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

query I rowsort
SELECT ALL - 23 * - - 18
----
-414

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT + ( - + 11 ) - + MAX( ALL 77 )
----
-88

skipif mysql # not compatible
query I rowsort label-595
SELECT + ( - + 11 ) - + MAX ( ALL 77 )
----
-88

query II rowsort
SELECT - ( - 64 ) AS col2, 94 AS col1
----
64
94

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-599
SELECT + ( + - MAX( - 81 ) ) DIV + 44 + + 7
----
8

skipif mysql # not compatible
query I rowsort label-599
SELECT + ( + - MAX ( - 81 ) ) / + 44 + + 7
----
8

query II rowsort
SELECT - 31 * 4 AS col0, ( - 65 )
----
-124
-65

query I rowsort
SELECT ALL + 70 + - 71
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-602
SELECT ALL 7 + + + MIN( ALL + 61 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL 7 + + + MIN ( ALL + 61 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT + 19 - - + COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-603
SELECT + 19 - - + COUNT ( * ) AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-604
SELECT ALL ( + 27 ) DIV ( - 87 ) + 91 * ( - 32 )
----
-2912

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL ( + 27 ) / ( - 87 ) + 91 * ( - 32 )
----
-2912

query I rowsort
SELECT ( - 69 ) * - - 26 AS col2
----
-1794

query I rowsort
SELECT 46 * + 54
----
2484

query I rowsort
SELECT DISTINCT + ( 74 ) * 51
----
3774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-608
SELECT 56 - - CAST( - COALESCE ( COUNT( * ), - 16 / + AVG ( ALL - 5 ) ) AS DECIMAL ) + - - CAST( NULL AS SIGNED ) col1, - 73 * ( + + 94 ) AS col1
----
NULL
-6862

skipif mysql # not compatible
query II rowsort label-608
SELECT 56 - - CAST ( - COALESCE ( COUNT ( * ), - 16 / + AVG ( ALL - 5 ) ) AS REAL ) + - - CAST ( NULL AS INTEGER ) col1, - 73 * ( + + 94 ) AS col1
----
NULL
-6862

query I rowsort
SELECT DISTINCT - ( 7 ) * - - 75 + - 88 + - 30 AS col1
----
-643

query I rowsort
SELECT ALL + 8 - - 93 * 97 AS col1
----
9029

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-611
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-611
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 38
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-612
SELECT ALL COUNT( ALL - + 79 ) * COUNT( * ) DIV + + ( 31 ) + + 5
----
5

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL COUNT ( ALL - + 79 ) * COUNT ( * ) / + + ( 31 ) + + 5
----
5

query I rowsort
SELECT DISTINCT - NULLIF ( + + 88, 58 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT DISTINCT + - 74 * - 28 * - ( - COUNT( * ) )
----
2072

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT + - 74 * - 28 * - ( - COUNT ( * ) )
----
2072

query I rowsort
SELECT DISTINCT - + COALESCE ( + 35, - + 38, + 4 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT 79 + - COALESCE ( + + ( 21 ), + 89, - 78 + - + 58 ) + - ( - COUNT( * ) ) * - 57 * - + COUNT( * )
----
115

skipif mysql # not compatible
query I rowsort label-616
SELECT 79 + - COALESCE ( + + ( 21 ), + 89, - 78 + - + 58 ) + - ( - COUNT ( * ) ) * - 57 * - + COUNT ( * )
----
115

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

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

query I rowsort
SELECT ALL + - 57 + - 42 AS col2
----
-99

query I rowsort
SELECT ALL 15 + 16 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT ALL + + SUM( DISTINCT 15 ) + 86 + - 77 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + + SUM ( DISTINCT 15 ) + 86 + - 77 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT - SUM( DISTINCT + 84 ) - + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-621
SELECT - SUM ( DISTINCT + 84 ) - + COUNT ( * )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-622
SELECT + CAST( + + 24 AS SIGNED ) + 92
----
116

skipif mysql # not compatible
query I rowsort label-622
SELECT + CAST ( + + 24 AS INTEGER ) + 92
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-623
SELECT 25 * ( + CASE 84 WHEN - 47 + - 65 + + - 29 * 19 THEN NULL WHEN - CAST( NULL AS SIGNED ) / - 7 * - AVG ( DISTINCT - - 39 ) THEN NULL ELSE - + COUNT( * ) END )
----
-25

skipif mysql # not compatible
query I rowsort label-623
SELECT 25 * ( + CASE 84 WHEN - 47 + - 65 + + - 29 * 19 THEN NULL WHEN - CAST ( NULL AS INTEGER ) / - 7 * - AVG ( DISTINCT - - 39 ) THEN NULL ELSE - + COUNT ( * ) END )
----
-25

query I rowsort
SELECT 31 + + 73 + - 85 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT DISTINCT 37 + - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT 37 + - COUNT ( * )
----
36

query II rowsort
SELECT DISTINCT 68 AS col2, + 12
----
68
12

query I rowsort
SELECT ALL 1 - - - 5
----
-4

query I rowsort
SELECT ( 80 ) + 7 + 58 * 65 AS col1
----
3857

query I rowsort
SELECT ALL + 39 - + 40 * 50 col1
----
-1961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-630
SELECT CAST( + + ( - 21 ) AS SIGNED ) * - 63 AS col2
----
1323

skipif mysql # not compatible
query I rowsort label-630
SELECT CAST ( + + ( - 21 ) AS INTEGER ) * - 63 AS col2
----
1323

query I rowsort
SELECT ALL ( - 18 ) * - 91 AS col1
----
1638

query II rowsort
SELECT 67 AS col0, + 73 + 68
----
67
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-633
SELECT 65 + - + 27 + + 86 AS col0, CASE - 23 WHEN + 45 * - 59 + 68 THEN NULL WHEN + 98 THEN 60 WHEN + MAX( DISTINCT - CAST( - 67 AS SIGNED ) ) + 75 * + 19 * 78 THEN 59 END col0
----
124
NULL

skipif mysql # not compatible
query II rowsort label-633
SELECT 65 + - + 27 + + 86 AS col0, CASE - 23 WHEN + 45 * - 59 + 68 THEN NULL WHEN + 98 THEN 60 WHEN + MAX ( DISTINCT - CAST ( - 67 AS INTEGER ) ) + 75 * + 19 * 78 THEN 59 END col0
----
124
NULL

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

skipif mysql # not compatible
query I rowsort label-634
SELECT CAST ( NULL AS REAL ) * + + 91
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-635
SELECT DISTINCT - ( + + SUM( DISTINCT - + 28 ) ), + 43 AS col0
----
28
43

skipif mysql # not compatible
query II rowsort label-635
SELECT DISTINCT - ( + + SUM ( DISTINCT - + 28 ) ), + 43 AS col0
----
28
43

onlyif mysql # DIV for integer division: 
query I rowsort label-636
SELECT 32 DIV - - 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-636
SELECT 32 / - - 45 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT - 88 * - 99 * NULLIF ( 50, + COUNT( * ) ) - + ( - + 15 ) AS col2
----
435615

skipif mysql # not compatible
query I rowsort label-637
SELECT - 88 * - 99 * NULLIF ( 50, + COUNT ( * ) ) - + ( - + 15 ) AS col2
----
435615

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-639
SELECT CASE 9 WHEN 75 - + + COUNT( * ) THEN NULL WHEN 27 * - 78 THEN + 91 * - - COALESCE ( - NULLIF ( - - COUNT( * ), + + 5 ), + ( CAST( NULL AS SIGNED ) ) / - + CAST( NULL AS SIGNED ) ) + COUNT( * ) ELSE NULL END / - 78 * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-639
SELECT CASE 9 WHEN 75 - + + COUNT ( * ) THEN NULL WHEN 27 * - 78 THEN + 91 * - - COALESCE ( - NULLIF ( - - COUNT ( * ), + + 5 ), + ( CAST ( NULL AS INTEGER ) ) / - + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) ELSE NULL END / - 78 * - 16
----
NULL

query I rowsort
SELECT ALL - - 9 + + 78
----
87

query I rowsort
SELECT + 24 - - 17
----
41

query I rowsort
SELECT ALL + - 96 * 40 col1
----
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT - + MIN( + 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT - + MIN ( + 85 ) AS col1
----
-85

query I rowsort
SELECT ALL 21 + - + ( COALESCE ( - 33, + 45 + + 33 * + 40 ) )
----
54

query I rowsort
SELECT ALL + - 21 + - 64 AS col2
----
-85

query I rowsort
SELECT DISTINCT + 34 + 97 + + 82 + - 20 * + 92 * - 14
----
25973

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT - - MAX( ALL + 37 ) col0
----
37

skipif mysql # not compatible
query I rowsort label-647
SELECT - - MAX ( ALL + 37 ) col0
----
37

query I rowsort
SELECT CASE - + 99 WHEN + 92 THEN NULL ELSE + 95 END AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-649
SELECT ALL - CAST( + 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL - CAST ( + 92 AS INTEGER )
----
-92

query II rowsort
SELECT - 48 AS col2, 87
----
-48
87

query I rowsort
SELECT 50 + 51
----
101

query I rowsort
SELECT + 37 - + + 26
----
11

query I rowsort
SELECT ALL - 41 * + 68 AS col2
----
-2788

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT DISTINCT + COUNT( * ) - - 61 + 65 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT + COUNT ( * ) - - 61 + 65 AS col1
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-655
SELECT DISTINCT 48 - ( ( - 92 ) ), + 96 * NULLIF ( 88, - - 56 / 81 - - SUM( 43 ) * + 35 + + 60 * - + 66 * - CAST( NULL AS SIGNED ) ) AS col0
----
140
8448

skipif mysql # not compatible
query II rowsort label-655
SELECT DISTINCT 48 - ( ( - 92 ) ), + 96 * NULLIF ( 88, - - 56 / 81 - - SUM ( 43 ) * + 35 + + 60 * - + 66 * - CAST ( NULL AS INTEGER ) ) AS col0
----
140
8448

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

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT ALL - MIN( DISTINCT + 43 ) * - 25
----
1075

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL - MIN ( DISTINCT + 43 ) * - 25
----
1075

query I rowsort
SELECT DISTINCT 83 - - ( - + 86 )
----
-3

query I rowsort
SELECT DISTINCT - ( 30 ) * - 60 * - 89
----
-160200

query I rowsort
SELECT + 24 * + 61 AS col1
----
1464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-661
SELECT - 36 + - NULLIF ( + 54, - 15 + + COALESCE ( 50, 22 + + - 62 ) * + + ( COUNT( * ) ) + + 59 ) + + - 63 + + 81 * COALESCE ( - CAST( NULL AS SIGNED ), 60 * 5 * COUNT( * ) ) * + 63 * + 72 + + - MIN( - 52 )
----
110224699

skipif mysql # not compatible
query I rowsort label-661
SELECT - 36 + - NULLIF ( + 54, - 15 + + COALESCE ( 50, 22 + + - 62 ) * + + ( COUNT ( * ) ) + + 59 ) + + - 63 + + 81 * COALESCE ( - CAST ( NULL AS INTEGER ), 60 * 5 * COUNT ( * ) ) * + 63 * + 72 + + - MIN ( - 52 )
----
110224699

query I rowsort
SELECT DISTINCT 47 - 99 AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-663
SELECT - CASE - CAST( NULL AS DECIMAL ) WHEN - + AVG ( ALL + - 58 ) - - COUNT( * ) THEN - MIN( DISTINCT - ( + 19 ) ) WHEN - 66 THEN - + 75 / + 67 + COUNT( * ) * + 14 WHEN - - NULLIF ( 52, - COUNT( * ) ) * - - 27 + 85 / - - CAST( NULL AS DECIMAL ) THEN - 20 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT - CASE - CAST ( NULL AS REAL ) WHEN - + AVG ( ALL + - 58 ) - - COUNT ( * ) THEN - MIN ( DISTINCT - ( + 19 ) ) WHEN - 66 THEN - + 75 / + 67 + COUNT ( * ) * + 14 WHEN - - NULLIF ( 52, - COUNT ( * ) ) * - - 27 + 85 / - - CAST ( NULL AS REAL ) THEN - 20 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-664
SELECT ALL 82 DIV - + 79 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL 82 / - + 79 AS col2
----
-1

query I rowsort
SELECT + 88 * - - 10 AS col0
----
880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-666
SELECT ALL COALESCE ( + ( 45 ), CAST( NULL AS SIGNED ) * + - 12 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL COALESCE ( + ( 45 ), CAST ( NULL AS INTEGER ) * + - 12 ) AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-667
SELECT DISTINCT + CAST( + 31 AS SIGNED ), + COUNT( * ) AS col0
----
31
1

skipif mysql # not compatible
query II rowsort label-667
SELECT DISTINCT + CAST ( + 31 AS INTEGER ), + COUNT ( * ) AS col0
----
31
1

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT DISTINCT - 8 DIV + COALESCE ( + - 99, + + 81 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT - 8 / + COALESCE ( + - 99, + + 81 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ALL 76 * MIN( ALL - - 47 ) * - 20 AS col2
----
-71440

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL 76 * MIN ( ALL - - 47 ) * - 20 AS col2
----
-71440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-670
SELECT COUNT( * ) DIV - 34 * 89 + + + 63 AS col2, 35 AS col1
----
63
35

skipif mysql # not compatible
query II rowsort label-670
SELECT COUNT ( * ) / - 34 * 89 + + + 63 AS col2, 35 AS col1
----
63
35

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT - 70 + + 62 * - 61 + + 52 - 96 * COUNT( * ) * - - 8 - + SUM( DISTINCT 92 )
----
-4660

skipif mysql # not compatible
query I rowsort label-671
SELECT - 70 + + 62 * - 61 + + 52 - 96 * COUNT ( * ) * - - 8 - + SUM ( DISTINCT 92 )
----
-4660

onlyif mysql # DIV for integer division: 
query I rowsort label-672
SELECT - 28 * + + COALESCE ( - 20, - 1 DIV - 30 + + 85 ) col0
----
560

skipif mysql # not compatible
query I rowsort label-672
SELECT - 28 * + + COALESCE ( - 20, - 1 / - 30 + + 85 ) col0
----
560

query I rowsort
SELECT + 34 * + - 55 AS col0
----
-1870

query I rowsort
SELECT 7 * - 12 + - + 57 + 13 * + 45 AS col1
----
444

query I rowsort
SELECT + ( 30 ) - + 47 AS col1
----
-17

query I rowsort
SELECT DISTINCT 32 * + 60 + - - ( 37 )
----
1957

query I rowsort
SELECT DISTINCT 15 * 79 * - + 23 + + 82 AS col0
----
-27173

query I rowsort
SELECT 91 * - 21 + + 33 + + + 11 * - + 68 + - 73 * - 42
----
440

onlyif mysql # aggregate syntax: 
query II rowsort label-679
SELECT ALL - CASE - + 0 WHEN SUM( - 24 ) THEN 12 END * + - 0 * - - 85 + + 27 * + 79 / 12 + - 68 + COUNT( * ) AS col1, NULLIF ( - 64, + SUM( - 61 ) - + + 44 ) * 66
----
NULL
-4224

skipif mysql # not compatible
query II rowsort label-679
SELECT ALL - CASE - + 0 WHEN SUM ( - 24 ) THEN 12 END * + - 0 * - - 85 + + 27 * + 79 / 12 + - 68 + COUNT ( * ) AS col1, NULLIF ( - 64, + SUM ( - 61 ) - + + 44 ) * 66
----
NULL
-4224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-680
SELECT + + 13 * - 70 + + 91 * - - 41 * + 54 * - CAST( NULL AS SIGNED ) / - - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-680
SELECT + + 13 * - 70 + + 91 * - - 41 * + 54 * - CAST ( NULL AS INTEGER ) / - - 5
----
NULL

query I rowsort
SELECT - - 41 + + 76 AS col1
----
117

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-683
SELECT - MAX( ALL + ( CASE + - 17 WHEN + ( 5 ) THEN + - 30 * 78 * - - 93 WHEN + - 73 THEN NULL END ) ) * + COUNT( * ) * + COALESCE ( 24, - - COUNT( * ) * 18 ) * - + COUNT( * ) * 31 + + COUNT( * ) * 11, - 78 col2
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-683
SELECT - MAX ( ALL + ( CASE + - 17 WHEN + ( 5 ) THEN + - 30 * 78 * - - 93 WHEN + - 73 THEN NULL END ) ) * + COUNT ( * ) * + COALESCE ( 24, - - COUNT ( * ) * 18 ) * - + COUNT ( * ) * 31 + + COUNT ( * ) * 11, - 78 col2
----
NULL
-78

query I rowsort
SELECT + 33 + + 46 AS col2
----
79

query I rowsort
SELECT DISTINCT + - 61 * 75 + + 86
----
-4489

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-686
SELECT + 60 * + - CASE - 9 WHEN - - 42 + - - 77 * + 68 - + - 83 + ( - CAST( NULL AS SIGNED ) ) + - 71 + + COUNT( * ) + 24 THEN NULL ELSE + ( 32 ) END AS col1, SUM( + ( + 89 ) ) + - + MIN( + + 92 )
----
-1920
-3

skipif mysql # not compatible
query II rowsort label-686
SELECT + 60 * + - CASE - 9 WHEN - - 42 + - - 77 * + 68 - + - 83 + ( - CAST ( NULL AS INTEGER ) ) + - 71 + + COUNT ( * ) + 24 THEN NULL ELSE + ( 32 ) END AS col1, SUM ( + ( + 89 ) ) + - + MIN ( + + 92 )
----
-1920
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-687
SELECT DISTINCT + COUNT( * ) - + NULLIF ( 74, - ( + - CAST( - 45 AS SIGNED ) ) * 40 ) + - 43 + + 65 * + + 23
----
1379

skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT + COUNT ( * ) - + NULLIF ( 74, - ( + - CAST ( - 45 AS INTEGER ) ) * 40 ) + - 43 + + 65 * + + 23
----
1379

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-688
SELECT ALL 84 * + + 50 * - + COUNT( - CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL 84 * + + 50 * - + COUNT ( - CAST ( NULL AS REAL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT - 96 + + 30 + - - 6 * + COUNT( * ) + - 67 AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-689
SELECT - 96 + + 30 + - - 6 * + COUNT ( * ) + - 67 AS col0
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT DISTINCT - 39 - - + MAX( + - 92 )
----
-131

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT - 39 - - + MAX ( + - 92 )
----
-131

query I rowsort
SELECT DISTINCT - 66 * 98
----
-6468

query I rowsort
SELECT + 42 * 66 AS col1
----
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL COALESCE ( - SUM( + + 49 ), + 68, 91 * - + COUNT( * ) )
----
-49

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL COALESCE ( - SUM ( + + 49 ), + 68, 91 * - + COUNT ( * ) )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT + 60 + - 98 + + COALESCE ( + 61, - COUNT( * ), 28 + + 14 + - 61 ) * + ( + - ( - 95 ) )
----
5757

skipif mysql # not compatible
query I rowsort label-694
SELECT + 60 + - 98 + + COALESCE ( + 61, - COUNT ( * ), 28 + + 14 + - 61 ) * + ( + - ( - 95 ) )
----
5757

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT - COUNT( * ) + + 93 col2
----
92

skipif mysql # not compatible
query I rowsort label-695
SELECT - COUNT ( * ) + + 93 col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-696
SELECT - 1 * - COALESCE ( + CAST( NULL AS DECIMAL ), + - 90 * + 15 * + 90 / - - CASE - 57 WHEN + 45 * + 16 THEN NULL WHEN + NULLIF ( - 57, + COALESCE ( - 30, + 58 ) * MIN( 52 ) + + 28 ) + - - 59 * 80 THEN 9 + 12 WHEN + 1 * COUNT( * ) + 17 - - - COUNT( * ) + - 14 * + 43 THEN - 24 / - + 85 + 23 + - - MIN( + 4 ) * - - 58 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-696
SELECT - 1 * - COALESCE ( + CAST ( NULL AS REAL ), + - 90 * + 15 * + 90 / - - CASE - 57 WHEN + 45 * + 16 THEN NULL WHEN + NULLIF ( - 57, + COALESCE ( - 30, + 58 ) * MIN ( 52 ) + + 28 ) + - - 59 * 80 THEN 9 + 12 WHEN + 1 * COUNT ( * ) + 17 - - - COUNT ( * ) + - 14 * + 43 THEN - 24 / - + 85 + 23 + - - MIN ( + 4 ) * - - 58 END ) AS col1
----
NULL

query I rowsort
SELECT - 12 * - 45 * - - 72 * 56 AS col2
----
2177280

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT ALL SUM( DISTINCT - 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL SUM ( DISTINCT - 59 ) AS col2
----
-59

query I rowsort
SELECT DISTINCT - 4 * + 65
----
-260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-700
SELECT ALL CAST( 98 AS SIGNED ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL CAST ( 98 AS INTEGER ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT ALL - ( 62 ) * MIN( 48 )
----
-2976

skipif mysql # not compatible
query I rowsort label-701
SELECT ALL - ( 62 ) * MIN ( 48 )
----
-2976

query I rowsort
SELECT - 82 + + 11 * + 56 + + 97 AS col0
----
631

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-703
SELECT + COUNT( * ) DIV - CASE + 22 WHEN - 31 THEN NULL WHEN 12 * ( CASE - 42 WHEN + AVG ( DISTINCT - 39 ) * 72 + - MAX( 2 ) - 96 + - - 83 DIV + ( - ( + - 99 ) ) + + + 73 THEN - 73 ELSE NULL END ) + 58 THEN 68 WHEN 0 * - 97 THEN NULL ELSE - 12 END * - - 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-703
SELECT + COUNT ( * ) / - CASE + 22 WHEN - 31 THEN NULL WHEN 12 * ( CASE - 42 WHEN + AVG ( DISTINCT - 39 ) * 72 + - MAX ( 2 ) - 96 + - - 83 / + ( - ( + - 99 ) ) + + + 73 THEN - 73 ELSE NULL END ) + 58 THEN 68 WHEN 0 * - 97 THEN NULL ELSE - 12 END * - - 41 AS col2
----
0

query II rowsort
SELECT - 46 * - ( - 74 ) col2, + 55
----
-3404
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-705
SELECT COUNT( * ) * 98 + - + 41, CAST( NULL AS SIGNED ) / 35 AS col1
----
57
NULL

skipif mysql # not compatible
query II rowsort label-705
SELECT COUNT ( * ) * 98 + - + 41, CAST ( NULL AS INTEGER ) / 35 AS col1
----
57
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-706
SELECT 50 DIV 62 + 21
----
21

skipif mysql # not compatible
query I rowsort label-706
SELECT 50 / 62 + 21
----
21

query I rowsort
SELECT + 4 + + 77 * 5
----
389

onlyif mysql # DIV for integer division: 
query I rowsort label-708
SELECT DISTINCT 19 DIV - 63 + 96
----
96

skipif mysql # not compatible
query I rowsort label-708
SELECT DISTINCT 19 / - 63 + 96
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-709
SELECT DISTINCT 28 DIV 82 col2
----
0

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT 28 / 82 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-710
SELECT ALL CAST( NULLIF ( 36, COUNT( * ) DIV 37 ) AS SIGNED ) DIV - 1 + 44 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL CAST ( NULLIF ( 36, COUNT ( * ) / 37 ) AS INTEGER ) / - 1 + 44 AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-711
SELECT ALL + 60 DIV + 31 col0
----
1

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL + 60 / + 31 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-712
SELECT + ( 66 ) DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-712
SELECT + ( 66 ) / - 75 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT + 45 * COALESCE ( 53, - 17 * - 99, - SUM( + 18 ) )
----
2385

skipif mysql # not compatible
query I rowsort label-713
SELECT + 45 * COALESCE ( 53, - 17 * - 99, - SUM ( + 18 ) )
----
2385

onlyif mysql # DIV for integer division: 
query I rowsort label-714
SELECT ALL COALESCE ( 22, + 34 ) DIV + 34 + - 3 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL COALESCE ( 22, + 34 ) / + 34 + - 3 AS col0
----
-3

query I rowsort
SELECT ( CASE 80 WHEN 3 THEN NULL ELSE 27 END )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT - ( 37 ) - COUNT( * ) * 43
----
-80

skipif mysql # not compatible
query I rowsort label-716
SELECT - ( 37 ) - COUNT ( * ) * 43
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-717
SELECT + CAST( COALESCE ( + 82, - NULLIF ( 19, + 98 ) / NULLIF ( - 32, 29 * - 17 + 59 / + 6 ) ) AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-717
SELECT + CAST ( COALESCE ( + 82, - NULLIF ( 19, + 98 ) / NULLIF ( - 32, 29 * - 17 + 59 / + 6 ) ) AS INTEGER )
----
82

query I rowsort
SELECT + 15 * - CASE - 94 WHEN + 65 THEN 7 WHEN - 82 * 39 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 20 * + 61 AS col0
----
1220

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-720
SELECT ALL 49 * 4 - + 40 * CAST( + 11 DIV 2 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL 49 * 4 - + 40 * CAST ( + 11 / 2 AS INTEGER )
----
-4

query I rowsort
SELECT DISTINCT 49 * - 10
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT DISTINCT 24 * 71 - + COUNT( * ) AS col2
----
1703

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT 24 * 71 - + COUNT ( * ) AS col2
----
1703

query I rowsort
SELECT 24 - + ( + 41 )
----
-17

query I rowsort
SELECT NULLIF ( + 12, 74 ) - 64
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT 26 * COALESCE ( + 60, COUNT( * ) + + 16 ) + 29 AS col2
----
1589

skipif mysql # not compatible
query I rowsort label-725
SELECT 26 * COALESCE ( + 60, COUNT ( * ) + + 16 ) + 29 AS col2
----
1589

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT COALESCE ( 91, COUNT( * ) ) + CASE + COUNT( * ) WHEN 10 THEN NULL WHEN + 93 THEN 73 * + 23 - - 11 ELSE 25 * 86 END
----
2241

skipif mysql # not compatible
query I rowsort label-726
SELECT COALESCE ( 91, COUNT ( * ) ) + CASE + COUNT ( * ) WHEN 10 THEN NULL WHEN + 93 THEN 73 * + 23 - - 11 ELSE 25 * 86 END
----
2241

query I rowsort
SELECT + 42 * 3 - 27 * 11 AS col0
----
-171

query I rowsort
SELECT ALL ( + ( + 68 ) ) * - 83 col2
----
-5644

query I rowsort
SELECT ( CASE - 89 WHEN + 4 / - 91 THEN NULL WHEN 9 THEN NULL ELSE + 18 END ) * - 80
----
-1440

query I rowsort
SELECT 66 * 79 AS col1
----
5214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-731
SELECT DISTINCT NULLIF ( 27, - CAST( NULL AS SIGNED ) * + 36 ) * - 26 AS col1
----
-702

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT NULLIF ( 27, - CAST ( NULL AS INTEGER ) * + 36 ) * - 26 AS col1
----
-702

query I rowsort
SELECT DISTINCT 12 * 58 AS col2
----
696

query I rowsort
SELECT ALL ( - CASE ( 71 ) WHEN - 79 + 71 THEN NULL WHEN - 71 + 34 * + 70 THEN + 67 + 41 WHEN 92 THEN 69 ELSE NULL END ) * + 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT DISTINCT 29 + + NULLIF ( 63, 85 * - MIN( ALL ( 77 ) ) )
----
92

skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT 29 + + NULLIF ( 63, 85 * - MIN ( ALL ( 77 ) ) )
----
92

query I rowsort
SELECT 59 + - 67 AS col2
----
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT ALL 64 + + SUM( ( 90 ) )
----
154

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL 64 + + SUM ( ( 90 ) )
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT COUNT( * ) + + 20 * 8 AS col0
----
161

skipif mysql # not compatible
query I rowsort label-738
SELECT COUNT ( * ) + + 20 * 8 AS col0
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT CASE - 82 WHEN + 54 + COUNT( * ) THEN 76 WHEN + 28 - - 2 * COUNT( * ) THEN NULL WHEN 81 THEN + 41 ELSE 29 + - 66 END + + ( + 48 + - 81 )
----
-70

skipif mysql # not compatible
query I rowsort label-739
SELECT CASE - 82 WHEN + 54 + COUNT ( * ) THEN 76 WHEN + 28 - - 2 * COUNT ( * ) THEN NULL WHEN 81 THEN + 41 ELSE 29 + - 66 END + + ( + 48 + - 81 )
----
-70

query I rowsort
SELECT DISTINCT + 73 + 40
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-741
SELECT ALL + + 90 + 85 DIV + COUNT( * )
----
175

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL + + 90 + 85 / + COUNT ( * )
----
175

query I rowsort
SELECT + 81 * 42 - - 26 AS col2
----
3428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-743
SELECT ALL + COALESCE ( 52, - 40 * COUNT( * ) + + 16 * 61, - 38 + 93 ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL + COALESCE ( 52, - 40 * COUNT ( * ) + + 16 * 61, - 38 + 93 ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT ALL - COUNT( ALL 46 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL - COUNT ( ALL 46 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + + 48 + + 88 AS col1
----
136

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

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

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

skipif mysql # not compatible
query I rowsort label-747
SELECT + COUNT ( * ) / 13 + ( ( 24 ) ) AS col2
----
24

query I rowsort
SELECT + 49 * + 33
----
1617

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-749
SELECT - CAST( NULL AS DECIMAL ) * + 19 + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-749
SELECT - CAST ( NULL AS REAL ) * + 19 + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT ( - ( COUNT( * ) ) ) - + 10 * 89 AS col2
----
-891

skipif mysql # not compatible
query I rowsort label-750
SELECT ( - ( COUNT ( * ) ) ) - + 10 * 89 AS col2
----
-891

query I rowsort
SELECT ALL - + 32 col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT - 6 * 74 - COUNT( * )
----
-445

skipif mysql # not compatible
query I rowsort label-752
SELECT - 6 * 74 - COUNT ( * )
----
-445

query I rowsort
SELECT + 15 * + 75
----
1125

query I rowsort
SELECT ALL - + ( COALESCE ( + 95, 37 ) )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-755
SELECT ALL + CASE 79 WHEN + 99 / - MAX( ALL ( + 87 ) ) THEN NULL ELSE - 23 * AVG ( DISTINCT + 77 ) END / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL + CASE 79 WHEN + 99 / - MAX ( ALL ( + 87 ) ) THEN NULL ELSE - 23 * AVG ( DISTINCT + 77 ) END / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 42 + - 38
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-757
SELECT ALL + - 6 DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL + - 6 / 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT ALL - + ( - ( - CASE + COUNT( * ) WHEN COUNT( - 99 ) * 99 THEN + 44 WHEN 83 / 6 THEN 28 + - MIN( ALL ( + 95 ) ) * - 45 END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL - + ( - ( - CASE + COUNT ( * ) WHEN COUNT ( - 99 ) * 99 THEN + 44 WHEN 83 / 6 THEN 28 + - MIN ( ALL ( + 95 ) ) * - 45 END ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 95 * - 21 AS col2
----
-1995

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT - + MAX( DISTINCT 73 ) * 49 + 29 AS col1
----
-3548

skipif mysql # not compatible
query I rowsort label-760
SELECT - + MAX ( DISTINCT 73 ) * 49 + 29 AS col1
----
-3548

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

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

query I rowsort
SELECT ALL NULLIF ( + 9, 43 ) * - 3
----
-27

query I rowsort
SELECT 21 + + + 98
----
119

query I rowsort
SELECT 59 + - - 49 col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT DISTINCT ( + - COALESCE ( COUNT( * ), + 74, - COUNT( DISTINCT - 52 ) ) ) * 75 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT ( + - COALESCE ( COUNT ( * ), + 74, - COUNT ( DISTINCT - 52 ) ) ) * 75 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT ALL + COALESCE ( - 32, + 73 + COUNT( * ), 64, + 15 ) * + CASE 19 WHEN + 34 / - COUNT( * ) - + 49 THEN NULL ELSE + ( 82 ) + + 7 END col2
----
-2848

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL + COALESCE ( - 32, + 73 + COUNT ( * ), 64, + 15 ) * + CASE 19 WHEN + 34 / - COUNT ( * ) - + 49 THEN NULL ELSE + ( 82 ) + + 7 END col2
----
-2848

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

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

query I rowsort
SELECT DISTINCT ( 21 ) + ( 67 + + 97 )
----
185

query I rowsort
SELECT DISTINCT 89 + + 58
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-770
SELECT ALL 53 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL 53 / - 81
----
0

query I rowsort
SELECT ( + 26 ) + 1
----
27

query I rowsort
SELECT ALL 65 + + - 32 * - 18
----
641

query I rowsort
SELECT ALL 23 + + 61 col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT NULLIF ( - 60, ( - 43 ) * + COUNT( * ) ) - ( COUNT( * ) ) * COALESCE ( COUNT( * ), + 13 )
----
-61

skipif mysql # not compatible
query I rowsort label-774
SELECT NULLIF ( - 60, ( - 43 ) * + COUNT ( * ) ) - ( COUNT ( * ) ) * COALESCE ( COUNT ( * ), + 13 )
----
-61

query I rowsort
SELECT ALL 17 * + - 42
----
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-776
SELECT ( + + 55 ) DIV COUNT( - 97 )
----
55

skipif mysql # not compatible
query I rowsort label-776
SELECT ( + + 55 ) / COUNT ( - 97 )
----
55

query I rowsort
SELECT 90 + - - 16 AS col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT DISTINCT MIN( + - 61 ) * SUM( - 71 * - 87 )
----
-376797

skipif mysql # not compatible
query I rowsort label-778
SELECT DISTINCT MIN ( + - 61 ) * SUM ( - 71 * - 87 )
----
-376797

query I rowsort
SELECT ALL 11 + 17 col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-780
SELECT ALL 81 * - NULLIF ( + 0, - CAST( - ( 6 ) AS SIGNED ) ) * - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL 81 * - NULLIF ( + 0, - CAST ( - ( 6 ) AS INTEGER ) ) * - COUNT ( * ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-781
SELECT 80 + + 28 DIV 79 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-781
SELECT 80 + + 28 / 79 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT ALL COUNT( DISTINCT + NULLIF ( + 78, COALESCE ( + 23, + 76 / 29, + 43 + - 59 * 86 ) ) ) * - 91
----
-91

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL COUNT ( DISTINCT + NULLIF ( + 78, COALESCE ( + 23, + 76 / 29, + 43 + - 59 * 86 ) ) ) * - 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT DISTINCT - COUNT( * ) * 19 * - 17 AS col1
----
323

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT - COUNT ( * ) * 19 * - 17 AS col1
----
323

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

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL - - 75 / COUNT ( * ) AS col2
----
75

query I rowsort
SELECT ALL - COALESCE ( 72, 58 * - ( + 94 ), 39 - - 89 ) AS col1
----
-72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT - 54 DIV + 81 + - 36 * - 29
----
1044

skipif mysql # not compatible
query I rowsort label-788
SELECT - 54 / + 81 + - 36 * - 29
----
1044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-789
SELECT DISTINCT - - NULLIF ( + CAST( NULL AS SIGNED ), 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT - - NULLIF ( + CAST ( NULL AS INTEGER ), 87 )
----
NULL

query I rowsort
SELECT 93 + + 24 AS col2
----
117

query I rowsort
SELECT ALL + + 70 * 20 + + CASE + 23 WHEN + 45 / 64 THEN - 56 + + 95 * 77 WHEN + 97 * - ( - 67 ) THEN NULL WHEN 61 + - 34 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 13 * + - 62
----
806

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

query I rowsort
SELECT DISTINCT - - 98 * + 7 - + CASE 69 WHEN + 31 THEN + 64 WHEN - ( 69 ) / 99 THEN 98 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT ALL + - 3 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL + - 3 / 65
----
0

query I rowsort
SELECT ALL + + 78 * - 67
----
-5226

query I rowsort
SELECT + COALESCE ( + ( - 6 ), + 63 * 93 )
----
-6

query I rowsort
SELECT - + 52 * ( - 33 ) * 10
----
17160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-799
SELECT - + 41 - 31 DIV - COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-799
SELECT - + 41 - 31 / - COUNT ( * ) AS col0
----
-10

query I rowsort
SELECT - 37 * - - 1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT - 96 + NULLIF ( - 69, - 88 + - 66 ) DIV - COALESCE ( - 17, + 83 * 76 )
----
-100

skipif mysql # not compatible
query I rowsort label-801
SELECT - 96 + NULLIF ( - 69, - 88 + - 66 ) / - COALESCE ( - 17, + 83 * 76 )
----
-100

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

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

query I rowsort
SELECT - 13 * - - 86 col1
----
-1118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-804
SELECT 35 * + - 4 + - 70 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-804
SELECT 35 * + - 4 + - 70 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-805
SELECT ALL - 62 DIV 5 * - COUNT( 94 ) col0
----
12

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL - 62 / 5 * - COUNT ( 94 ) col0
----
12

query I rowsort
SELECT ALL + 58 * - + 62 + + - 25
----
-3621

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT - COUNT( * ) * + 58 - 45
----
-103

skipif mysql # not compatible
query I rowsort label-807
SELECT - COUNT ( * ) * + 58 - 45
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-808
SELECT ALL 77 + + + 90 - 18 + 87 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL 77 + + + 90 - 18 + 87 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-809
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + ( + - 74 ) + NULLIF ( + COUNT( * ), - 0 * - 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + ( + - 74 ) + NULLIF ( + COUNT ( * ), - 0 * - 42 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-810
SELECT ALL - CASE + CAST( + CASE 22 WHEN + COUNT( ALL - 14 ) THEN COUNT( * ) END AS SIGNED ) WHEN 27 THEN SUM( - CAST( 4 AS SIGNED ) ) ELSE 88 + 29 END / CASE WHEN ( 31 / 40 ) < + 12 THEN NULL WHEN NULL NOT BETWEEN 0 * - 91 + - 5 AND COUNT( * ) THEN MIN( ALL + 20 ) ELSE AVG ( ALL 63 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL - CASE + CAST ( + CASE 22 WHEN + COUNT ( ALL - 14 ) THEN COUNT ( * ) END AS INTEGER ) WHEN 27 THEN SUM ( - CAST ( 4 AS INTEGER ) ) ELSE 88 + 29 END / CASE WHEN ( 31 / 40 ) < + 12 THEN NULL WHEN NULL NOT BETWEEN 0 * - 91 + - 5 AND COUNT ( * ) THEN MIN ( ALL + 20 ) ELSE AVG ( ALL 63 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT + NULLIF ( + 32, + COUNT( * ) ) + + 14
----
46

skipif mysql # not compatible
query I rowsort label-811
SELECT + NULLIF ( + 32, + COUNT ( * ) ) + + 14
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL + 0 + + 90 * + - COUNT( * ) - - 32 * ( - 61 )
----
-2042

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL + 0 + + 90 * + - COUNT ( * ) - - 32 * ( - 61 )
----
-2042

query I rowsort
SELECT DISTINCT ( - NULLIF ( - 27, - 82 - 55 ) ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT - COUNT( * ) * - - SUM( DISTINCT 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-814
SELECT - COUNT ( * ) * - - SUM ( DISTINCT 17 ) AS col1
----
-17

query I rowsort
SELECT - 6 + + + 77
----
71

query I rowsort
SELECT - COALESCE ( 38, + 9, - 81 )
----
-38

query I rowsort
SELECT DISTINCT 76 + + ( + - 34 ) * - 68 AS col2
----
2388

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

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

query I rowsort
SELECT ALL 70 + + - 48
----
22

query I rowsort
SELECT - 48 + - + 21
----
-69

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

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

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

skipif mysql # not compatible
query I rowsort label-822
SELECT + + 58 * - COUNT ( * ) / + + 66 * - 36 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-823
SELECT ALL + 52 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL + 52 / + 77
----
0

query I rowsort
SELECT + ( 28 ) + 93 + 24 * 40 AS col1
----
1081

onlyif mysql # aggregate syntax: 
query II rowsort label-825
SELECT - - 31, 32 * - - 32 * + 58 + - ( + COUNT( * ) + - 79 ) AS col2
----
31
59470

skipif mysql # not compatible
query II rowsort label-825
SELECT - - 31, 32 * - - 32 * + 58 + - ( + COUNT ( * ) + - 79 ) AS col2
----
31
59470

query I rowsort
SELECT + 75 + - - 34 AS col1
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-827
SELECT - + COUNT( * ) DIV + - 52 * + COALESCE ( ( - 59 ), + COUNT( ALL 20 ) + CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-827
SELECT - + COUNT ( * ) / + - 52 * + COALESCE ( ( - 59 ), + COUNT ( ALL 20 ) + CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-828
SELECT DISTINCT CASE WHEN NOT CAST( - 60 AS SIGNED ) <> ( NULL ) THEN 36 WHEN 87 <= ( ( 15 ) * 35 ) THEN 64 ELSE 63 END
----
64

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT CASE WHEN NOT CAST ( - 60 AS INTEGER ) <> ( NULL ) THEN 36 WHEN 87 <= ( ( 15 ) * 35 ) THEN 64 ELSE 63 END
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-829
SELECT ALL 28 * - 67 + - - CAST( NULL AS SIGNED ) * CAST( ( CAST( + 19 AS SIGNED ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL 28 * - 67 + - - CAST ( NULL AS INTEGER ) * CAST ( ( CAST ( + 19 AS INTEGER ) ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT DISTINCT - 75 / - CASE + - 78 WHEN + MAX( ALL 37 ) - COUNT( * ) THEN 74 + - 99 * 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT - 75 / - CASE + - 78 WHEN + MAX ( ALL 37 ) - COUNT ( * ) THEN 74 + - 99 * 30 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT + + 56 + - 45 * + COUNT( * ) + MIN( - 7 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-831
SELECT + + 56 + - 45 * + COUNT ( * ) + MIN ( - 7 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT + 77 + + + COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-832
SELECT + 77 + + + COUNT ( * ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-833
SELECT + 13 AS col1, COUNT( * ) * 5 + 10 AS col2
----
13
15

skipif mysql # not compatible
query II rowsort label-833
SELECT + 13 AS col1, COUNT ( * ) * 5 + 10 AS col2
----
13
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-834
SELECT + ( + NULLIF ( - - ( - 37 ), + 80 + - CAST( NULL AS SIGNED ) ) ) * SUM( ALL 17 * 10 ) + 59 * COUNT( * ) AS col1
----
-6231

skipif mysql # not compatible
query I rowsort label-834
SELECT + ( + NULLIF ( - - ( - 37 ), + 80 + - CAST ( NULL AS INTEGER ) ) ) * SUM ( ALL 17 * 10 ) + 59 * COUNT ( * ) AS col1
----
-6231

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT - 61 - - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-835
SELECT - 61 - - COUNT ( * )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-836
SELECT - 67 / 56 * - CASE 53 WHEN 45 * + 73 THEN - ( 2 ) + + COALESCE ( 71 - 51, 87 - CAST( 83 AS SIGNED ), ( + CAST( + COUNT( * ) AS SIGNED ) ) + 26 ) / 59 ELSE NULL END * 14 + + 14 + 33 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-836
SELECT - 67 / 56 * - CASE 53 WHEN 45 * + 73 THEN - ( 2 ) + + COALESCE ( 71 - 51, 87 - CAST ( 83 AS INTEGER ), ( + CAST ( + COUNT ( * ) AS INTEGER ) ) + 26 ) / 59 ELSE NULL END * 14 + + 14 + 33 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL 43 * - 8 + + 43 * 60 * CASE 22 WHEN 96 + + 30 * - 97 THEN - 49 WHEN ( + COUNT( * ) ) * COALESCE ( - 59, - 52 * 87 ) THEN - 80 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL 43 * - 8 + + 43 * 60 * CASE 22 WHEN 96 + + 30 * - 97 THEN - 49 WHEN ( + COUNT ( * ) ) * COALESCE ( - 59, - 52 * 87 ) THEN - 80 END AS col0
----
NULL

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

query I rowsort
SELECT ALL + 14 * + 1 * + 23 + + + 25 col2
----
347

query I rowsort
SELECT ALL - 58 * + 7 AS col2
----
-406

query I rowsort
SELECT ALL 55 * - 13 + 84
----
-631

query I rowsort
SELECT ALL - 98 * - 39 * - - 80 + + 36 + 59
----
305855

query II rowsort
SELECT DISTINCT - 77 * 72 AS col1, - 83 AS col2
----
-5544
-83

query I rowsort
SELECT - 18 + 17 AS col0
----
-1

query I rowsort
SELECT + 30 * + 42 AS col1
----
1260

query I rowsort
SELECT ALL - 59 * - ( - 47 ) AS col0
----
-2773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-847
SELECT COALESCE ( - 2, NULLIF ( + 58, + CAST( 65 AS SIGNED ) ) )
----
-2

skipif mysql # not compatible
query I rowsort label-847
SELECT COALESCE ( - 2, NULLIF ( + 58, + CAST ( 65 AS INTEGER ) ) )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-848
SELECT - COALESCE ( - NULLIF ( 99, - 30 * - CASE + COUNT( * ) WHEN AVG ( ALL + 82 ) THEN NULL WHEN - 70 THEN 85 ELSE NULL END ), - 16 * + ( CASE CASE - 59 WHEN - 15 - 12 / + 57 THEN COUNT( * ) + ( + 14 ) / 79 ELSE CAST( NULL AS SIGNED ) + - COUNT( ALL 19 + NULLIF ( 2, 68 ) * + 26 ) END WHEN - 17 * + SUM( 38 ) + 33 * + COUNT( * ) THEN 9 END * + MAX( DISTINCT ( + 18 ) + 94 * - 90 ) ), + COUNT( * ) + 8 ) + - 2
----
97

skipif mysql # not compatible
query I rowsort label-848
SELECT - COALESCE ( - NULLIF ( 99, - 30 * - CASE + COUNT ( * ) WHEN AVG ( ALL + 82 ) THEN NULL WHEN - 70 THEN 85 ELSE NULL END ), - 16 * + ( CASE CASE - 59 WHEN - 15 - 12 / + 57 THEN COUNT ( * ) + ( + 14 ) / 79 ELSE CAST ( NULL AS INTEGER ) + - COUNT ( ALL 19 + NULLIF ( 2, 68 ) * + 26 ) END WHEN - 17 * + SUM ( 38 ) + 33 * + COUNT ( * ) THEN 9 END * + MAX ( DISTINCT ( + 18 ) + 94 * - 90 ) ), + COUNT ( * ) + 8 ) + - 2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-849
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 24 AS col1, COUNT( * ) * + MIN( 93 ) - - COUNT( * ) AS col1
----
NULL
94

skipif mysql # not compatible
query II rowsort label-849
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 24 AS col1, COUNT ( * ) * + MIN ( 93 ) - - COUNT ( * ) AS col1
----
NULL
94

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

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

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

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT NULLIF ( COUNT ( * ), - - 68 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT DISTINCT - 23 DIV + 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT - 23 / + 29 AS col2
----
0

query I rowsort
SELECT ALL ( - - 83 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-854
SELECT DISTINCT - COUNT( * ) DIV 32, - AVG ( + CAST( NULL AS SIGNED ) ) * 80 - 66 * + 79 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-854
SELECT DISTINCT - COUNT ( * ) / 32, - AVG ( + CAST ( NULL AS INTEGER ) ) * 80 - 66 * + 79 AS col1
----
0
NULL

query I rowsort
SELECT + 20 * - 79 * + 69
----
-109020

query I rowsort
SELECT + - 96 + 16 * - 41
----
-752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-857
SELECT ALL - CAST( 35 AS SIGNED ) * - - 38
----
-1330

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL - CAST ( 35 AS INTEGER ) * - - 38
----
-1330

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

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

query I rowsort
SELECT + 86 * - 28
----
-2408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-860
SELECT ALL - COUNT( * ) * + - 6 * 79 DIV COUNT( * ) - 21 * + 78 AS col2
----
-1164

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL - COUNT ( * ) * + - 6 * 79 / COUNT ( * ) - 21 * + 78 AS col2
----
-1164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-861
SELECT ALL - ( - COALESCE ( - 60, + COUNT( * ) DIV CAST( + 34 * 11 + - 38 * - 36 AS SIGNED ), 37 * + 11 ) ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL - ( - COALESCE ( - 60, + COUNT ( * ) / CAST ( + 34 * 11 + - 38 * - 36 AS INTEGER ), 37 * + 11 ) ) AS col0
----
-60

query I rowsort
SELECT + 53 * - + 58 AS col2
----
-3074

onlyif mysql # aggregate syntax: 
query II rowsort label-863
SELECT 2 * 57 AS col1, - COUNT( * ) - 95
----
114
-96

skipif mysql # not compatible
query II rowsort label-863
SELECT 2 * 57 AS col1, - COUNT ( * ) - 95
----
114
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-864
SELECT DISTINCT - 47 + - 25 + 19 DIV - 50 * 65 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-864
SELECT DISTINCT - 47 + - 25 + 19 / - 50 * 65 AS col1
----
-72

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

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

query II rowsort
SELECT ALL + 14 + - + 87 col1, + 85 col0
----
-73
85

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT DISTINCT MAX( DISTINCT - 57 ) * - - 42 AS col2
----
-2394

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT MAX ( DISTINCT - 57 ) * - - 42 AS col2
----
-2394

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT DISTINCT 13 + - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT 13 + - COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT 59 * MIN( ALL + + 24 ) AS col1
----
1416

skipif mysql # not compatible
query I rowsort label-869
SELECT 59 * MIN ( ALL + + 24 ) AS col1
----
1416

query I rowsort
SELECT ALL 48 + + 17 AS col1
----
65

query I rowsort
SELECT DISTINCT 66 * - 52
----
-3432

query I rowsort
SELECT - 26 * COALESCE ( - 52, - 23 * 88 ) * 67 - - 74 AS col1
----
90658

query I rowsort
SELECT ALL 1 + + 22
----
23

query I rowsort
SELECT 49 + 24 AS col1
----
73

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

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

query I rowsort
SELECT 74 * - - 34
----
2516

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

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

query I rowsort
SELECT DISTINCT 0 - 34
----
-34

query I rowsort
SELECT DISTINCT - 10 * + 54
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT 93 + - - COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-880
SELECT 93 + - - COUNT ( * ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT ALL 35 - 47 + - - 3 + + 86 + - COUNT( * ) + ( 35 ) * - 38 * 15
----
-19874

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL 35 - 47 + - - 3 + + 86 + - COUNT ( * ) + ( 35 ) * - 38 * 15
----
-19874

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT MIN( - 21 ) * - 57 AS col0
----
1197

skipif mysql # not compatible
query I rowsort label-882
SELECT MIN ( - 21 ) * - 57 AS col0
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT 0 * + MIN( ALL - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-883
SELECT 0 * + MIN ( ALL - 86 )
----
0

query I rowsort
SELECT ALL 52 * - 12
----
-624

onlyif mysql # DIV for integer division: 
query II rowsort label-885
SELECT - 95 AS col0, + 47 DIV 22 AS col2
----
-95
2

skipif mysql # not compatible
query II rowsort label-885
SELECT - 95 AS col0, + 47 / 22 AS col2
----
-95
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-886
SELECT 68 DIV 57 * COALESCE ( - 51, - CASE 83 WHEN + 82 THEN 32 WHEN - 15 THEN + 6 ELSE NULL END * - COALESCE ( 31, + 0, + 37 ) + - COUNT( * ), - 81, + 77 )
----
-51

skipif mysql # not compatible
query I rowsort label-886
SELECT 68 / 57 * COALESCE ( - 51, - CASE 83 WHEN + 82 THEN 32 WHEN - 15 THEN + 6 ELSE NULL END * - COALESCE ( 31, + 0, + 37 ) + - COUNT ( * ), - 81, + 77 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT + COUNT( * ) * 69 * - 97 AS col1
----
-6693

skipif mysql # not compatible
query I rowsort label-887
SELECT + COUNT ( * ) * 69 * - 97 AS col1
----
-6693

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT - 18 - - - COUNT( * ) - + 87 * + 37
----
-3238

skipif mysql # not compatible
query I rowsort label-888
SELECT - 18 - - - COUNT ( * ) - + 87 * + 37
----
-3238

query II rowsort
SELECT DISTINCT 12 AS col0, 75
----
12
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-890
SELECT COALESCE ( - - 41, + 55 ) DIV - 9 * - + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-890
SELECT COALESCE ( - - 41, + 55 ) / - 9 * - + COUNT ( * )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-891
SELECT ALL + - 63 / CAST( CASE + - SUM( CAST( 61 AS SIGNED ) ) WHEN COUNT( 5 ) THEN NULL WHEN 5 / 22 + - 63 THEN + 90 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL + - 63 / CAST ( CASE + - SUM ( CAST ( 61 AS INTEGER ) ) WHEN COUNT ( 5 ) THEN NULL WHEN 5 / 22 + - 63 THEN + 90 END AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 78 * + - 5 + + 76 AS col0, + 56 * - 76
----
-314
-4256

query I rowsort
SELECT DISTINCT + 37 + - 71 AS col1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-894
SELECT ALL + + 97 DIV - 90 + + 8 + 75
----
82

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL + + 97 / - 90 + + 8 + 75
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT 27 DIV 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-895
SELECT 27 / 59 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-896
SELECT 71 DIV 20
----
3

skipif mysql # not compatible
query I rowsort label-896
SELECT 71 / 20
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT ALL + 9 + COUNT( * ) + + 55 col2
----
65

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL + 9 + COUNT ( * ) + + 55 col2
----
65

query I rowsort
SELECT 58 + - 36
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT ALL - + COUNT( + - ( - + 62 ) ) + - 78 * - 89 AS col2
----
6941

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL - + COUNT ( + - ( - + 62 ) ) + - 78 * - 89 AS col2
----
6941

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-900
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - - 91 + 68 * - + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - - 91 + 68 * - + 28
----
NULL

query I rowsort
SELECT DISTINCT - + 59 * ( - + 33 ) + 8 + 8
----
1963

query I rowsort
SELECT 50 + + 26 * - 79 AS col2
----
-2004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-903
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), - + ( + 63 ) )
----
63

skipif mysql # not compatible
query I rowsort label-903
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), - + ( + 63 ) )
----
63

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

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

query I rowsort
SELECT ALL - + 9 * - 3 AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-906
SELECT ALL - - SUM( ALL + CAST( 90 AS SIGNED ) ) + + 88 * ( + ( 19 ) ) col0
----
1762

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL - - SUM ( ALL + CAST ( 90 AS INTEGER ) ) + + 88 * ( + ( 19 ) ) col0
----
1762

query I rowsort
SELECT DISTINCT + + 29 + 72 + + 16 + 39 + 33
----
189

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-909
SELECT - COUNT( * ) + - 95 DIV - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-909
SELECT - COUNT ( * ) + - 95 / - 56 AS col1
----
0

query I rowsort
SELECT ALL - - 17 * + - 2 AS col0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-911
SELECT + 22 DIV - + 98 + 33 - 97 * - 70 AS col1
----
6823

skipif mysql # not compatible
query I rowsort label-911
SELECT + 22 / - + 98 + 33 - 97 * - 70 AS col1
----
6823

query I rowsort
SELECT 30 * - 54 AS col0
----
-1620

query I rowsort
SELECT DISTINCT - COALESCE ( + 55, 0 ) AS col0
----
-55

query I rowsort
SELECT ALL 40 * - - 33 + 78 + + 43 AS col0
----
1441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-915
SELECT + CAST( NULL AS SIGNED ) * + SUM( + + 64 ) * - 11 * 18 + COALESCE ( NULLIF ( + 39, 80 ), 90 ) + COALESCE ( CAST( - CASE 88 WHEN - 96 * + 12 THEN 99 * 40 ELSE NULL END AS SIGNED ) + - 29 / + 91, - 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-915
SELECT + CAST ( NULL AS INTEGER ) * + SUM ( + + 64 ) * - 11 * 18 + COALESCE ( NULLIF ( + 39, 80 ), 90 ) + COALESCE ( CAST ( - CASE 88 WHEN - 96 * + 12 THEN 99 * 40 ELSE NULL END AS INTEGER ) + - 29 / + 91, - 17 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-916
SELECT - 59 * 43 + + 78 + - CAST( - 79 AS SIGNED ) AS col2
----
-2380

skipif mysql # not compatible
query I rowsort label-916
SELECT - 59 * 43 + + 78 + - CAST ( - 79 AS INTEGER ) AS col2
----
-2380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-917
SELECT ALL 18 / CAST( NULL AS SIGNED ), - MAX( DISTINCT - CASE + 38 WHEN + 41 THEN 12 ELSE NULL END ) / + 30 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-917
SELECT ALL 18 / CAST ( NULL AS INTEGER ), - MAX ( DISTINCT - CASE + 38 WHEN + 41 THEN 12 ELSE NULL END ) / + 30 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-918
SELECT + 16 AS col1, SUM( - 6 ) col2
----
16
-6

skipif mysql # not compatible
query II rowsort label-918
SELECT + 16 AS col1, SUM ( - 6 ) col2
----
16
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-919
SELECT CAST( NULL AS DECIMAL ) * + + 97 + + - 72 * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-919
SELECT CAST ( NULL AS REAL ) * + + 97 + + - 72 * - 59
----
NULL

query I rowsort
SELECT ALL 95 - ( + - 62 ) * - - COALESCE ( 66, 3 )
----
4187

query I rowsort
SELECT DISTINCT 53 * 69
----
3657

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

skipif mysql # not compatible
query I rowsort label-922
SELECT SUM ( DISTINCT 33 )
----
33

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

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

query I rowsort
SELECT DISTINCT - 87 - + - ( 38 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT ALL COUNT( 51 ) * + 98 * - 9 + 21 AS col0
----
-861

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL COUNT ( 51 ) * + 98 * - 9 + 21 AS col0
----
-861

query II rowsort
SELECT ALL 47 * 37, + 99 * 75 AS col0
----
1739
7425

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT NULLIF ( + ( + 20 ), + 57 ) * - 80 * - - 49 + 38 * - COUNT( * ) AS col2
----
-78438

skipif mysql # not compatible
query I rowsort label-927
SELECT NULLIF ( + ( + 20 ), + 57 ) * - 80 * - - 49 + 38 * - COUNT ( * ) AS col2
----
-78438

query I rowsort
SELECT DISTINCT 17 * 49 AS col0
----
833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-929
SELECT + 21 * - 37 + + CASE + MAX( ALL + 37 ) WHEN - + 75 THEN 33 + CAST( NULL AS SIGNED ) * 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-929
SELECT + 21 * - 37 + + CASE + MAX ( ALL + 37 ) WHEN - + 75 THEN 33 + CAST ( NULL AS INTEGER ) * 82 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-930
SELECT MIN( ALL - - 53 ) DIV - - 84
----
0

skipif mysql # not compatible
query I rowsort label-930
SELECT MIN ( ALL - - 53 ) / - - 84
----
0

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

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

query I rowsort
SELECT ALL 11 * - 91 col0
----
-1001

query I rowsort
SELECT 80 + - - 8 * + 77
----
696

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

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

query II rowsort
SELECT 99 AS col0, 81
----
99
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-936
SELECT + COALESCE ( + COUNT( - 31 ), - 99, + MAX( ALL 33 ) ) * - CAST( 3 AS SIGNED ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-936
SELECT + COALESCE ( + COUNT ( - 31 ), - 99, + MAX ( ALL 33 ) ) * - CAST ( 3 AS INTEGER ) AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-937
SELECT ALL - 99 + - CASE 76 WHEN 69 - 4 THEN NULL ELSE - CAST( NULL AS SIGNED ) * + 77 + + 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-937
SELECT ALL - 99 + - CASE 76 WHEN 69 - 4 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * + 77 + + 30 END
----
NULL

query I rowsort
SELECT + 64 + 21 + - 92 AS col0
----
-7

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-940
SELECT DISTINCT + 71 + + + 27 + + COUNT( * ) + + ( - - 59 ) + + 67 * 59 * 85 DIV - 64
----
-5092

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT + 71 + + + 27 + + COUNT ( * ) + + ( - - 59 ) + + 67 * 59 * 85 / - 64
----
-5092

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT - 14, + COUNT( * ) + COUNT( * ) AS col1
----
-14
2

skipif mysql # not compatible
query II rowsort label-941
SELECT - 14, + COUNT ( * ) + COUNT ( * ) AS col1
----
-14
2

onlyif mysql # aggregate syntax: 
query II rowsort label-942
SELECT - 36 AS col1, - MAX( - 45 ) * 18 AS col0
----
-36
810

skipif mysql # not compatible
query II rowsort label-942
SELECT - 36 AS col1, - MAX ( - 45 ) * 18 AS col0
----
-36
810

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT - - COUNT( * ) + - 34
----
-33

skipif mysql # not compatible
query I rowsort label-943
SELECT - - COUNT ( * ) + - 34
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT ALL + NULLIF ( - COUNT( ( 6 ) ), - 90 ) + - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL + NULLIF ( - COUNT ( ( 6 ) ), - 90 ) + - COUNT ( * ) AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-945
SELECT - CAST( 75 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-945
SELECT - CAST ( 75 AS INTEGER )
----
-75

query II rowsort
SELECT 50 AS col2, - 12
----
50
-12

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

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

query I rowsort
SELECT - 13 + 37
----
24

query II rowsort
SELECT - + ( 41 ) AS col0, + 77 + 9 AS col2
----
-41
86

query I rowsort
SELECT ALL + 97 + - 81
----
16

query I rowsort
SELECT ALL - + 56 + + ( + - 85 )
----
-141

query I rowsort
SELECT ALL - NULLIF ( 79, 32 ) + + - 38 - 58
----
-175

onlyif mysql # aggregate syntax: 
query II rowsort label-953
SELECT ALL 32, SUM( + 2 ) AS col0
----
32
2

skipif mysql # not compatible
query II rowsort label-953
SELECT ALL 32, SUM ( + 2 ) AS col0
----
32
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-954
SELECT DISTINCT + COALESCE ( - COUNT( * ), + 18 * 35 + + CAST( + - 32 AS SIGNED ) DIV 46, 36 + 18, - 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-954
SELECT DISTINCT + COALESCE ( - COUNT ( * ), + 18 * 35 + + CAST ( + - 32 AS INTEGER ) / 46, 36 + 18, - 98 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT + + COUNT( * ) * - 64 + - CASE 82 WHEN NULLIF ( 63, 34 ) THEN NULL ELSE 65 + 46 END
----
-175

skipif mysql # not compatible
query I rowsort label-955
SELECT + + COUNT ( * ) * - 64 + - CASE 82 WHEN NULLIF ( 63, 34 ) THEN NULL ELSE 65 + 46 END
----
-175

onlyif mysql # aggregate syntax: 
query II rowsort label-956
SELECT 43 AS col2, - COUNT( * ) * - 97 * - - 81 + + + 7 col2
----
43
7864

skipif mysql # not compatible
query II rowsort label-956
SELECT 43 AS col2, - COUNT ( * ) * - 97 * - - 81 + + + 7 col2
----
43
7864

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT - 31 * + CASE - - 6 WHEN - - AVG ( ALL 9 ) + ( 2 ) * - 14 THEN + 24 + + 25 WHEN CASE 95 WHEN + ( - 67 ) * COUNT( * ) + 75 THEN 37 WHEN - 53 THEN NULL ELSE - 28 / - 43 END + 49 THEN NULL WHEN + MIN( 28 ) THEN + COUNT( * ) + - 81 * - 16 ELSE 74 END
----
-2294

skipif mysql # not compatible
query I rowsort label-957
SELECT - 31 * + CASE - - 6 WHEN - - AVG ( ALL 9 ) + ( 2 ) * - 14 THEN + 24 + + 25 WHEN CASE 95 WHEN + ( - 67 ) * COUNT ( * ) + 75 THEN 37 WHEN - 53 THEN NULL ELSE - 28 / - 43 END + 49 THEN NULL WHEN + MIN ( 28 ) THEN + COUNT ( * ) + - 81 * - 16 ELSE 74 END
----
-2294

query I rowsort
SELECT DISTINCT + 54 - + 23 * - 97 AS col1
----
2285

onlyif mysql # aggregate syntax: 
query II rowsort label-959
SELECT ALL + 45 * - 89 AS col2, + NULLIF ( COUNT( * ), - + 18 )
----
-4005
1

skipif mysql # not compatible
query II rowsort label-959
SELECT ALL + 45 * - 89 AS col2, + NULLIF ( COUNT ( * ), - + 18 )
----
-4005
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT - COUNT( * ) * - 83 * - COALESCE ( - 74, + 91 ) AS col0
----
6142

skipif mysql # not compatible
query I rowsort label-961
SELECT - COUNT ( * ) * - 83 * - COALESCE ( - 74, + 91 ) AS col0
----
6142

query I rowsort
SELECT DISTINCT 80 * 29 - 46 AS col0
----
2274

query II rowsort
SELECT ALL + 37 * + 10 AS col1, - 77
----
370
-77

query I rowsort
SELECT DISTINCT + 28 * - 0 AS col2
----
0

query I rowsort
SELECT + 6 * - 2 col1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-966
SELECT + 79 DIV - 94 + 11
----
11

skipif mysql # not compatible
query I rowsort label-966
SELECT + 79 / - 94 + 11
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT + 23 DIV - 95 * - - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-967
SELECT + 23 / - 95 * - - 39 AS col1
----
0

query I rowsort
SELECT + NULLIF ( - 77, 32 * - 2 - - 97 ) col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT NULLIF ( - MAX( DISTINCT - 41 ), + - 49 + - 22 * - COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-969
SELECT NULLIF ( - MAX ( DISTINCT - 41 ), + - 49 + - 22 * - COUNT ( * ) )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-970
SELECT + COUNT( - 49 ) * CAST( NULL AS SIGNED ) + - CASE + 54 WHEN - 5 * - MAX( ALL 41 ) + 31 THEN NULL WHEN ( - 21 ) THEN 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-970
SELECT + COUNT ( - 49 ) * CAST ( NULL AS INTEGER ) + - CASE + 54 WHEN - 5 * - MAX ( ALL 41 ) + 31 THEN NULL WHEN ( - 21 ) THEN 73 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT DISTINCT + COUNT( * ) * + 64 + - + 0 - + - 66 * + - 87 AS col0
----
-5678

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT + COUNT ( * ) * + 64 + - + 0 - + - 66 * + - 87 AS col0
----
-5678

query II rowsort
SELECT + 53 - - 3 AS col2, + 39
----
56
39

query I rowsort
SELECT ALL - 59 * 88 + 8
----
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT DISTINCT - 36 * 15 + ( + MAX( ALL 60 ) )
----
-480

skipif mysql # not compatible
query I rowsort label-974
SELECT DISTINCT - 36 * 15 + ( + MAX ( ALL 60 ) )
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT ALL + 57 * - + COUNT( * ) + CASE - 85 WHEN + COUNT( * ) THEN + 40 + + - 33 WHEN - 61 THEN + MIN( 3 ) WHEN 76 THEN 46 + 70 * - 96 ELSE NULL END * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL + 57 * - + COUNT ( * ) + CASE - 85 WHEN + COUNT ( * ) THEN + 40 + + - 33 WHEN - 61 THEN + MIN ( 3 ) WHEN 76 THEN 46 + 70 * - 96 ELSE NULL END * + 60
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-977
SELECT ALL 16 + - CAST( NULL AS SIGNED ) + - 18 / - 3 + - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL 16 + - CAST ( NULL AS INTEGER ) + - 18 / - 3 + - 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT COALESCE ( - COUNT( * ), - 37 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-978
SELECT COALESCE ( - COUNT ( * ), - 37 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT + - COUNT( * ) - 61 * 7 AS col0
----
-428

skipif mysql # not compatible
query I rowsort label-979
SELECT + - COUNT ( * ) - 61 * 7 AS col0
----
-428

query II rowsort
SELECT + + 46 * + 28 AS col0, 40 - + 53 - - 43 AS col2
----
1288
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-981
SELECT DISTINCT + + 92 * + ( - + 11 ) * - 84 + + 36 * - CAST( + 15 AS SIGNED ) + - 50 * 42 AS col1
----
82368

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT + + 92 * + ( - + 11 ) * - 84 + + 36 * - CAST ( + 15 AS INTEGER ) + - 50 * 42 AS col1
----
82368

query I rowsort
SELECT ALL - 66 - + 42
----
-108

query II rowsort
SELECT + + 2 * - 60 AS col1, 19
----
-120
19

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT ALL + MAX( ALL 30 ) * 33 AS col0
----
990

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL + MAX ( ALL 30 ) * 33 AS col0
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT DISTINCT + COALESCE ( - - COUNT( 92 ), - 0 ) - + NULLIF ( - ( + ( 58 ) ), + COALESCE ( COUNT( * ), 99 + ( + 60 ) / + 23 ) )
----
59

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT + COALESCE ( - - COUNT ( 92 ), - 0 ) - + NULLIF ( - ( + ( 58 ) ), + COALESCE ( COUNT ( * ), 99 + ( + 60 ) / + 23 ) )
----
59

query I rowsort
SELECT DISTINCT 83 * - 55 * - 90 - - NULLIF ( 97, - 23 )
----
410947

query I rowsort
SELECT + 7 + - 31 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT - COUNT( * ) - 54
----
-55

skipif mysql # not compatible
query I rowsort label-988
SELECT - COUNT ( * ) - 54
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-989
SELECT ALL CASE - 82 WHEN - MAX( DISTINCT 30 ) THEN NULL WHEN + 17 THEN NULL ELSE - CAST( + 59 AS SIGNED ) END col0
----
-59

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL CASE - 82 WHEN - MAX ( DISTINCT 30 ) THEN NULL WHEN + 17 THEN NULL ELSE - CAST ( + 59 AS INTEGER ) END col0
----
-59

query I rowsort
SELECT ALL - 13 * 96 AS col1
----
-1248

query I rowsort
SELECT + 84 + + 84 AS col0
----
168

query I rowsort
SELECT ALL 89 * 91
----
8099

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-993
SELECT DISTINCT COALESCE ( + CAST( NULL AS SIGNED ), + 71 + - + 53 - - 25 + 67 ) - - 28
----
138

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT COALESCE ( + CAST ( NULL AS INTEGER ), + 71 + - + 53 - - 25 + 67 ) - - 28
----
138

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

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT ALL + CASE + 8 WHEN + ( - 2 ) THEN NULL WHEN + 56 THEN - - MIN( - 67 ) WHEN - + 72 - 52 THEN + 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL + CASE + 8 WHEN + ( - 2 ) THEN NULL WHEN + 56 THEN - - MIN ( - 67 ) WHEN - + 72 - 52 THEN + 10 END
----
NULL

query I rowsort
SELECT - 47 * - 80
----
3760

onlyif mysql # DIV for integer division: 
query I rowsort label-997
SELECT ALL - 69 DIV 51 col2
----
-1

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL - 69 / 51 col2
----
-1

query I rowsort
SELECT - 99 + - 34 + - + 73 * + 10
----
-863

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL - 52 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1002
SELECT DISTINCT CAST( + 43 AS SIGNED ) + + 81 + + 53 AS col1
----
177

skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT CAST ( + 43 AS INTEGER ) + + 81 + + 53 AS col1
----
177

query I rowsort
SELECT DISTINCT + 71 + - 53
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-1004
SELECT + 59 AS col1, 49 DIV - - 90 * + - 61 AS col2
----
59
0

skipif mysql # not compatible
query II rowsort label-1004
SELECT + 59 AS col1, 49 / - - 90 * + - 61 AS col2
----
59
0

query I rowsort
SELECT ALL + - 90 + ( - 93 )
----
-183

query II rowsort
SELECT 5 AS col0, 52 col1
----
5
52

query II rowsort
SELECT - 12 + + - 73 + + 22 col2, - 41 AS col1
----
-63
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT - MIN( DISTINCT + 0 ) * + + 68 * - 17 * - 52 * + + 0 * - 68
----
0

skipif mysql # not compatible
query I rowsort label-1008
SELECT - MIN ( DISTINCT + 0 ) * + + 68 * - 17 * - 52 * + + 0 * - 68
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1009
SELECT ALL - - 77 DIV 42
----
1

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL - - 77 / 42
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT DISTINCT - COUNT( * ) + - - 12 - SUM( DISTINCT - - 40 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT - COUNT ( * ) + - - 12 - SUM ( DISTINCT - - 40 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-1012
SELECT + - 2, MAX( ALL - 72 ) col2
----
-2
-72

skipif mysql # not compatible
query II rowsort label-1012
SELECT + - 2, MAX ( ALL - 72 ) col2
----
-2
-72

query I rowsort
SELECT ALL 83 - + 91 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-1014
SELECT + COUNT( DISTINCT - - 97 ) * ( 20 ) col1, 96 + - 69 AS col1
----
20
27

skipif mysql # not compatible
query II rowsort label-1014
SELECT + COUNT ( DISTINCT - - 97 ) * ( 20 ) col1, 96 + - 69 AS col1
----
20
27

onlyif mysql # aggregate syntax: 
query II rowsort label-1015
SELECT + 62 + + 75 * - 17 * - + COUNT( * ) col0, ( + 23 )
----
1337
23

skipif mysql # not compatible
query II rowsort label-1015
SELECT + 62 + + 75 * - 17 * - + COUNT ( * ) col0, ( + 23 )
----
1337
23

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT ALL + COUNT( * ) * 32 * - + 65 * 44 * + + 85 + - 5 + - ( + 34 )
----
-7779239

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL + COUNT ( * ) * 32 * - + 65 * 44 * + + 85 + - 5 + - ( + 34 )
----
-7779239

query I rowsort
SELECT + 19 * 53
----
1007

query I rowsort
SELECT DISTINCT - 62 - + 18
----
-80

query I rowsort
SELECT 74 * 77
----
5698

query II rowsort
SELECT 41 AS col1, 14 * 46
----
41
644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1023
SELECT 63 DIV COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1023
SELECT 63 / COUNT ( * ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT DISTINCT + CASE - 45 WHEN - + MAX( - 5 ) THEN ( - 83 ) END * - - 54 * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT + CASE - 45 WHEN - + MAX ( - 5 ) THEN ( - 83 ) END * - - 54 * 21
----
NULL

query II rowsort
SELECT 93 * 43 AS col1, - 36
----
3999
-36

query I rowsort
SELECT 64 - - ( - + 23 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1027
SELECT CASE 80 WHEN 62 * + + 3 + + COUNT( * ) * 67 + - + 18 * 59 + + + 53 / + 58 THEN NULL ELSE - 98 * - NULLIF ( + 60, CAST( 53 AS SIGNED ) * - CAST( NULL AS SIGNED ) + - 90 ) + + 22 END - - COALESCE ( - 74, 24 + SUM( 29 ) * - 56, 22 * + 5 )
----
5828

skipif mysql # not compatible
query I rowsort label-1027
SELECT CASE 80 WHEN 62 * + + 3 + + COUNT ( * ) * 67 + - + 18 * 59 + + + 53 / + 58 THEN NULL ELSE - 98 * - NULLIF ( + 60, CAST ( 53 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - 90 ) + + 22 END - - COALESCE ( - 74, 24 + SUM ( 29 ) * - 56, 22 * + 5 )
----
5828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1028
SELECT ALL CASE + 68 WHEN - ( 21 ) THEN NULL WHEN 51 * 28 + - 19 THEN NULL WHEN + - ( + + 29 ) THEN CAST( + 7 AS SIGNED ) WHEN 10 THEN NULL ELSE COUNT( * ) + + 1 END + - 27 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL CASE + 68 WHEN - ( 21 ) THEN NULL WHEN 51 * 28 + - 19 THEN NULL WHEN + - ( + + 29 ) THEN CAST ( + 7 AS INTEGER ) WHEN 10 THEN NULL ELSE COUNT ( * ) + + 1 END + - 27 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT 20 * + + MAX( ALL - + 24 ) + + + MIN( 58 ) AS col2
----
-422

skipif mysql # not compatible
query I rowsort label-1029
SELECT 20 * + + MAX ( ALL - + 24 ) + + + MIN ( 58 ) AS col2
----
-422

onlyif mysql # DIV for integer division: 
query I rowsort label-1030
SELECT 28 DIV 13
----
2

skipif mysql # not compatible
query I rowsort label-1030
SELECT 28 / 13
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT ALL COUNT( * ) + + MIN( - 57 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL COUNT ( * ) + + MIN ( - 57 ) AS col0
----
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT - 1 + - + COUNT( * ) + 87 + COUNT( * ) + + 14 * + - COUNT( * ) * + + 45
----
-544

skipif mysql # not compatible
query I rowsort label-1033
SELECT - 1 + - + COUNT ( * ) + 87 + COUNT ( * ) + + 14 * + - COUNT ( * ) * + + 45
----
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT ALL - - 50 * - COUNT( * ) * + + COUNT( 68 ) - - - CASE - CASE - - 95 WHEN - COUNT( ALL + 94 ) + 2 THEN COUNT( DISTINCT 58 ) WHEN COUNT( * ) + 5 THEN NULL WHEN + 33 - - COUNT( * ) THEN + 64 * - 46 ELSE + ( - 11 ) END WHEN + 87 THEN ( - 34 ) + - COUNT( * ) * - 72 WHEN 0 THEN + 80 WHEN + ( 47 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL - - 50 * - COUNT ( * ) * + + COUNT ( 68 ) - - - CASE - CASE - - 95 WHEN - COUNT ( ALL + 94 ) + 2 THEN COUNT ( DISTINCT 58 ) WHEN COUNT ( * ) + 5 THEN NULL WHEN + 33 - - COUNT ( * ) THEN + 64 * - 46 ELSE + ( - 11 ) END WHEN + 87 THEN ( - 34 ) + - COUNT ( * ) * - 72 WHEN 0 THEN + 80 WHEN + ( 47 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT DISTINCT - ( - + MIN( ALL + ( + 2 ) ) ) * - - 6 * + + ( + + 87 )
----
1044

skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT - ( - + MIN ( ALL + ( + 2 ) ) ) * - - 6 * + + ( + + 87 )
----
1044

query I rowsort
SELECT DISTINCT - + 83 * 46
----
-3818

query I rowsort
SELECT DISTINCT + + 20 - - 36 * + 25
----
920

query I rowsort
SELECT ALL - 24 * 34 + ( - 68 )
----
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT DISTINCT - CASE + 30 WHEN 43 THEN + 8 + + MAX( + 78 ) ELSE 13 END AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT - CASE + 30 WHEN 43 THEN + 8 + + MAX ( + 78 ) ELSE 13 END AS col1
----
-13

query I rowsort
SELECT - 17 * + + 9 + + - 38 * + + 94 AS col1
----
-3725

onlyif mysql # aggregate syntax: 
query II rowsort label-1041
SELECT 86 * + ( + COUNT( * ) ) * + 82 col2, 47 col0
----
7052
47

skipif mysql # not compatible
query II rowsort label-1041
SELECT 86 * + ( + COUNT ( * ) ) * + 82 col2, 47 col0
----
7052
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1042
SELECT DISTINCT - ( - 10 ) DIV + + MIN( - 99 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT - ( - 10 ) / + + MIN ( - 99 ) col1
----
0

query I rowsort
SELECT ALL - 25 * - - 44 + 12 + + + 28
----
-1060

query II rowsort
SELECT ALL - NULLIF ( 60, - + 57 + - - 35 ), - 43 AS col1
----
-60
-43

query II rowsort
SELECT 74 - 44 - + 84, 48 + 94 + - 40 * + 96 AS col0
----
-54
-3698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1046
SELECT DISTINCT 89 * - CAST( - CASE - - 38 WHEN + 54 THEN NULL ELSE - - ( + 8 ) + + 92 + - COUNT( ALL - - ( - 6 ) ) END AS SIGNED ) AS col0
----
8811

skipif mysql # not compatible
query I rowsort label-1046
SELECT DISTINCT 89 * - CAST ( - CASE - - 38 WHEN + 54 THEN NULL ELSE - - ( + 8 ) + + 92 + - COUNT ( ALL - - ( - 6 ) ) END AS INTEGER ) AS col0
----
8811

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

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT + 96 / - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1048
SELECT 58 DIV NULLIF ( + - 63, 36 )
----
0

skipif mysql # not compatible
query I rowsort label-1048
SELECT 58 / NULLIF ( + - 63, 36 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1049
SELECT 64 + - + ( - CASE - - 60 WHEN + 2 + - CAST( + NULLIF ( - COUNT( * ), + + 71 ) AS SIGNED ) THEN - 28 * 7 + + COUNT( * ) * 71 ELSE + 6 + - ( + 14 ) END ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1049
SELECT 64 + - + ( - CASE - - 60 WHEN + 2 + - CAST ( + NULLIF ( - COUNT ( * ), + + 71 ) AS INTEGER ) THEN - 28 * 7 + + COUNT ( * ) * 71 ELSE + 6 + - ( + 14 ) END ) AS col0
----
56

query I rowsort
SELECT DISTINCT + 69 * - + 51
----
-3519

query I rowsort
SELECT 74 + + + ( - 54 ) col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT 9 - + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-1052
SELECT 9 - + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT ALL MIN( DISTINCT 20 ) + 40 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL MIN ( DISTINCT 20 ) + 40 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT + 70 + - + 88 + + + 82 * CASE - COUNT( * ) WHEN - 96 + + ( + 94 ) + 48 + - 15 THEN NULL WHEN - 53 * + 53 THEN - SUM( - 31 ) + 18 ELSE 95 END AS col0
----
7772

skipif mysql # not compatible
query I rowsort label-1054
SELECT + 70 + - + 88 + + + 82 * CASE - COUNT ( * ) WHEN - 96 + + ( + 94 ) + 48 + - 15 THEN NULL WHEN - 53 * + 53 THEN - SUM ( - 31 ) + 18 ELSE 95 END AS col0
----
7772

onlyif mysql # DIV for integer division: 
query I rowsort label-1055
SELECT ALL 82 + 72 DIV 74
----
82

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL 82 + 72 / 74
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT ALL + 52 + + SUM( ALL - - 56 )
----
108

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL + 52 + + SUM ( ALL - - 56 )
----
108

query I rowsort
SELECT ALL 35 + + - 21 AS col0
----
14

query I rowsort
SELECT + 40 + - + 82 col0
----
-42

query I rowsort
SELECT ALL 46 + + 3 + + 28
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT + CASE + - 34 WHEN + CASE - - 8 WHEN - 75 + + 5 / CASE + COUNT( * ) WHEN + COUNT( * ) THEN + 29 END / 62 THEN NULL WHEN - 64 THEN CASE 55 WHEN 70 * 32 THEN MIN( 56 ) ELSE + 13 * CASE - 45 WHEN 71 THEN NULL WHEN 34 * 11 THEN - 56 ELSE NULL END END END THEN COUNT( * ) + 4 WHEN - 37 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1060
SELECT + CASE + - 34 WHEN + CASE - - 8 WHEN - 75 + + 5 / CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN + 29 END / 62 THEN NULL WHEN - 64 THEN CASE 55 WHEN 70 * 32 THEN MIN ( 56 ) ELSE + 13 * CASE - 45 WHEN 71 THEN NULL WHEN 34 * 11 THEN - 56 ELSE NULL END END END THEN COUNT ( * ) + 4 WHEN - 37 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 93 + - + 31 AS col2
----
62

query I rowsort
SELECT + 4 * - 33
----
-132

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1064
SELECT - 6 * - - 25 * 91 + - MIN( ALL + 3 ) AS col1, + ( - - CAST( + 21 AS SIGNED ) )
----
-13653
21

skipif mysql # not compatible
query II rowsort label-1064
SELECT - 6 * - - 25 * 91 + - MIN ( ALL + 3 ) AS col1, + ( - - CAST ( + 21 AS INTEGER ) )
----
-13653
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT CASE - 91 WHEN 48 * 86 - 98 THEN - 26 * COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1065
SELECT CASE - 91 WHEN 48 * 86 - 98 THEN - 26 * COUNT ( * ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL + 8 * COUNT( * ) + 78 - 90 - 81 * 94 * - 22 + + 96 AS col0
----
167600

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL + 8 * COUNT ( * ) + 78 - 90 - 81 * 94 * - 22 + + 96 AS col0
----
167600

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1068
SELECT ALL + + CAST( + CAST( + + 41 AS SIGNED ) AS SIGNED ) col0, + 78 AS col2
----
41
78

skipif mysql # not compatible
query II rowsort label-1068
SELECT ALL + + CAST ( + CAST ( + + 41 AS INTEGER ) AS INTEGER ) col0, + 78 AS col2
----
41
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1069
SELECT ALL + 73 AS col0, 72 + + - COUNT( + - 9 )
----
73
71

skipif mysql # not compatible
query II rowsort label-1069
SELECT ALL + 73 AS col0, 72 + + - COUNT ( + - 9 )
----
73
71

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

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

query I rowsort
SELECT + 74 * - 18 AS col0
----
-1332

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT - + 59 * COUNT( 53 ) + - 13
----
-72

skipif mysql # not compatible
query I rowsort label-1072
SELECT - + 59 * COUNT ( 53 ) + - 13
----
-72

query II rowsort
SELECT 52, - 34 AS col1
----
52
-34

query II rowsort
SELECT + NULLIF ( + + 39, + 46 ) AS col0, + 83
----
39
83

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

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

query I rowsort
SELECT + + 15 - 65
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-1077
SELECT ALL + + 18 DIV + - 57 col2
----
0

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL + + 18 / + - 57 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT + - 98 + + 87 + + MIN( - + 28 )
----
-39

skipif mysql # not compatible
query I rowsort label-1078
SELECT + - 98 + + 87 + + MIN ( - + 28 )
----
-39

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

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT + 87 * - COUNT ( 72 ) AS col0
----
-87

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

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

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

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

query I rowsort
SELECT DISTINCT - 96 * - + 27
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT + - 50 * + 98 + + + COUNT( DISTINCT + + 48 ) + 26 * 67 + 29
----
-3128

skipif mysql # not compatible
query I rowsort label-1083
SELECT + - 50 * + 98 + + + COUNT ( DISTINCT + + 48 ) + 26 * 67 + 29
----
-3128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT ALL - + ( - CASE - + COUNT( * ) WHEN 40 THEN - - 72 WHEN - - 86 * + 54 * + 47 THEN - + 5 - + 42 ELSE NULL END ) + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL - + ( - CASE - + COUNT ( * ) WHEN 40 THEN - - 72 WHEN - - 86 * + 54 * + 47 THEN - + 5 - + 42 ELSE NULL END ) + 87
----
NULL

query I rowsort
SELECT - + 57 + - 5 AS col0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT - ( + CASE - AVG ( + - 4 ) WHEN - 65 * + - 31 * + 21 THEN NULL WHEN + 25 * - 49 THEN 52 * - + 19 DIV - 73 ELSE - 10 * - 9 END )
----
-90

skipif mysql # not compatible
query I rowsort label-1087
SELECT - ( + CASE - AVG ( + - 4 ) WHEN - 65 * + - 31 * + 21 THEN NULL WHEN + 25 * - 49 THEN 52 * - + 19 / - 73 ELSE - 10 * - 9 END )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT - 31 + + COUNT( * ) * 94 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1088
SELECT - 31 + + COUNT ( * ) * 94 AS col1
----
63

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

skipif mysql # not compatible
query I rowsort label-1089
SELECT - ( - COUNT ( DISTINCT + - 85 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1090
SELECT 97 AS col1, SUM( + 59 ) * - 88 AS col0
----
97
-5192

skipif mysql # not compatible
query II rowsort label-1090
SELECT 97 AS col1, SUM ( + 59 ) * - 88 AS col0
----
97
-5192

query I rowsort
SELECT - 7 * 42
----
-294

query I rowsort
SELECT - 24 + - 6
----
-30

query I rowsort
SELECT ALL - COALESCE ( - - 81, - 47 ) + - 19 + - 69 * 89
----
-6241

query II rowsort
SELECT 11, 55 AS col2
----
11
55

query I rowsort
SELECT - 0 + + 59
----
59

query I rowsort
SELECT ALL - 10 + 59 AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1097
SELECT - ( - 43 ) DIV + 41
----
1

skipif mysql # not compatible
query I rowsort label-1097
SELECT - ( - 43 ) / + 41
----
1

query II rowsort
SELECT - ( - 16 ) * + 61 * 77 AS col0, + 39 * - - 47 + - ( + + 83 ) * - 95 + - ( + - 94 ) AS col2
----
75152
9812

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT ALL ( 85 ) * 47 * - COUNT( * ) * + 42
----
-167790

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL ( 85 ) * 47 * - COUNT ( * ) * + 42
----
-167790

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT - COUNT( * ) - - 97 + - 2 * - ( - + 59 ) * COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-1101
SELECT - COUNT ( * ) - - 97 + - 2 * - ( - + 59 ) * COUNT ( * )
----
-22

query I rowsort
SELECT - 87 * + + 44
----
-3828

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1103
SELECT - CASE - CASE ( - 16 ) WHEN - COUNT( * ) * CASE + 42 WHEN + - 21 THEN + 89 WHEN - CAST( NULL AS DECIMAL ) / + 43 THEN + 93 + 73 / 68 ELSE NULL END * 87 THEN - 10 END WHEN + 60 THEN NULL ELSE 80 END AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-1103
SELECT - CASE - CASE ( - 16 ) WHEN - COUNT ( * ) * CASE + 42 WHEN + - 21 THEN + 89 WHEN - CAST ( NULL AS REAL ) / + 43 THEN + 93 + 73 / 68 ELSE NULL END * 87 THEN - 10 END WHEN + 60 THEN NULL ELSE 80 END AS col1
----
-80

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1106
SELECT DISTINCT CAST( NULL AS SIGNED ) - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 21
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1108
SELECT ALL + MIN( DISTINCT 29 ) DIV + COALESCE ( 94, + ( 4 ), - 6 ) * + 55 * + - 51 + + 9 - 33 * 7 - + ( + 46 ) * + COUNT( * )
----
-268

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL + MIN ( DISTINCT 29 ) / + COALESCE ( 94, + ( 4 ), - 6 ) * + 55 * + - 51 + + 9 - 33 * 7 - + ( + 46 ) * + COUNT ( * )
----
-268

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT - 92 DIV + - 38 + - 99 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-1109
SELECT - 92 / + - 38 + - 99 AS col2
----
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-1110
SELECT + 17, - 4 DIV - 81 AS col1
----
17
0

skipif mysql # not compatible
query II rowsort label-1110
SELECT + 17, - 4 / - 81 AS col1
----
17
0

query I rowsort
SELECT ALL + NULLIF ( + 56, + + ( + 29 ) + + 5 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1112
SELECT ALL + - NULLIF ( + 1, + MIN( DISTINCT + NULLIF ( + + 39, + 79 * - 43 + + 41 * - 56 ) ) / - COUNT( * ) * - + CAST( NULL AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL + - NULLIF ( + 1, + MIN ( DISTINCT + NULLIF ( + + 39, + 79 * - 43 + + 41 * - 56 ) ) / - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) ) AS col2
----
-1

query I rowsort
SELECT + 19 - - 64 AS col0
----
83

query II rowsort
SELECT ALL + + 89 AS col1, 26 AS col2
----
89
26

query I rowsort
SELECT - + 19 * + - 17 AS col2
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT + + COUNT( * ) * - + 28 * - - 95
----
-2660

skipif mysql # not compatible
query I rowsort label-1116
SELECT + + COUNT ( * ) * - + 28 * - - 95
----
-2660

query I rowsort
SELECT ALL 11 * + 68 col1
----
748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1118
SELECT + - ( - 47 ) + - CAST( NULL AS SIGNED ) * + + NULLIF ( 18, 41 * - 22 * + + 41 * + ( - + 58 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT + - ( - 47 ) + - CAST ( NULL AS INTEGER ) * + + NULLIF ( 18, 41 * - 22 * + + 41 * + ( - + 58 ) ) AS col2
----
NULL

query II rowsort
SELECT + 57, + 31 - 64 AS col1
----
57
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT + + ( 21 ) DIV - 81 - 88 * - 12 * - - 78 + 98 - - 36 AS col1
----
82502

skipif mysql # not compatible
query I rowsort label-1120
SELECT + + ( 21 ) / - 81 - 88 * - 12 * - - 78 + 98 - - 36 AS col1
----
82502

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT + 8 * + COUNT( * ) - - 71
----
79

skipif mysql # not compatible
query I rowsort label-1122
SELECT + 8 * + COUNT ( * ) - - 71
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT ALL + - 82 * 78 * - + 62 + ( + 32 ) * - ( COUNT( * ) )
----
396520

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL + - 82 * 78 * - + 62 + ( + 32 ) * - ( COUNT ( * ) )
----
396520

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

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

query I rowsort
SELECT ALL ( + 84 ) * 47 - - 81 + ( + - 13 ) AS col2
----
4016

onlyif mysql # aggregate syntax: 
query II rowsort label-1126
SELECT + - COUNT( DISTINCT - - 24 ) * + 80 + COUNT( * ) AS col0, 26 + 75 + + 66 * 65
----
-79
4391

skipif mysql # not compatible
query II rowsort label-1126
SELECT + - COUNT ( DISTINCT - - 24 ) * + 80 + COUNT ( * ) AS col0, 26 + 75 + + 66 * 65
----
-79
4391

query I rowsort
SELECT - ( - 55 ) col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT - CASE 4 WHEN - + MIN( 88 ) + 70 + 7 * 8 THEN - + 34 WHEN + + 81 * + + 20 * + 88 * + 13 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1128
SELECT - CASE 4 WHEN - + MIN ( 88 ) + 70 + 7 * 8 THEN - + 34 WHEN + + 81 * + + 20 * + 88 * + 13 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT + 19 + + 8, 68 AS col0
----
27
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1130
SELECT CASE COUNT( * ) WHEN - - 25 * 58 + - 16 - + 60 * - + ( COUNT( * ) ) / + 47 * - CAST( + 90 AS SIGNED ) * 50 + CAST( NULL AS SIGNED ) * 97 THEN + COUNT( * ) + - 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1130
SELECT CASE COUNT ( * ) WHEN - - 25 * 58 + - 16 - + 60 * - + ( COUNT ( * ) ) / + 47 * - CAST ( + 90 AS INTEGER ) * 50 + CAST ( NULL AS INTEGER ) * 97 THEN + COUNT ( * ) + - 37 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1131
SELECT CASE - 21 WHEN + - CASE 30 WHEN - CASE WHEN + MIN( 60 ) IN ( + COALESCE ( - - 30, - 62 ) ) THEN + 1 WHEN NULL IN ( - 81 * - 38 ) THEN NULL ELSE NULL END THEN NULL WHEN + ( MAX( DISTINCT + 84 ) ) * + COUNT( * ) THEN 67 + + MAX( CAST( + 99 AS SIGNED ) ) ELSE NULL END + 5 * 12 THEN 11 DIV 80 + 67 WHEN + 56 * 75 THEN 20 ELSE - 26 - 83 END * + 92
----
-10028

skipif mysql # not compatible
query I rowsort label-1131
SELECT CASE - 21 WHEN + - CASE 30 WHEN - CASE WHEN + MIN ( 60 ) IN ( + COALESCE ( - - 30, - 62 ) ) THEN + 1 WHEN NULL IN ( - 81 * - 38 ) THEN NULL ELSE NULL END THEN NULL WHEN + ( MAX ( DISTINCT + 84 ) ) * + COUNT ( * ) THEN 67 + + MAX ( CAST ( + 99 AS INTEGER ) ) ELSE NULL END + 5 * 12 THEN 11 / 80 + 67 WHEN + 56 * 75 THEN 20 ELSE - 26 - 83 END * + 92
----
-10028

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT ALL - COUNT( * ) * + 16 * - 40 AS col0
----
640

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL - COUNT ( * ) * + 16 * - 40 AS col0
----
640

query I rowsort
SELECT ALL 77 + + 14
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1134
SELECT ALL + 60 * CASE WHEN ( ( + COALESCE ( + ( + - COALESCE ( ( COUNT( - - 17 ) ), + 80 * - 68, 56 - - 7 ) ), - 11 * 73 ) ) IS NULL ) THEN CAST( 86 AS SIGNED ) WHEN NOT NULL BETWEEN 28 + - COUNT( * ) AND - 64 THEN 67 * - 65 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL + 60 * CASE WHEN ( ( + COALESCE ( + ( + - COALESCE ( ( COUNT ( - - 17 ) ), + 80 * - 68, 56 - - 7 ) ), - 11 * 73 ) ) IS NULL ) THEN CAST ( 86 AS INTEGER ) WHEN NOT NULL BETWEEN 28 + - COUNT ( * ) AND - 64 THEN 67 * - 65 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1135
SELECT ALL COALESCE ( + 72, 77 ) * + + 74 * + COUNT( * ) AS col0, - 52
----
5328
-52

skipif mysql # not compatible
query II rowsort label-1135
SELECT ALL COALESCE ( + 72, 77 ) * + + 74 * + COUNT ( * ) AS col0, - 52
----
5328
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT ( + COUNT( * ) ) + - - 22 - CASE WHEN ( NULL ) IS NOT NULL THEN + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1136
SELECT ( + COUNT ( * ) ) + - - 22 - CASE WHEN ( NULL ) IS NOT NULL THEN + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1137
SELECT DISTINCT + 98 DIV + 50 AS col2, - 68 + - 79 + - COALESCE ( + COUNT( * ), COUNT( * ) + 86 + - COUNT( + 41 ), + COUNT( * ) + NULLIF ( 73, - 59 ) + COUNT( * ) * 1 * - 98 ) + 73 * - 76 * + COUNT( * ) * 5 col0
----
1
-27888

skipif mysql # not compatible
query II rowsort label-1137
SELECT DISTINCT + 98 / + 50 AS col2, - 68 + - 79 + - COALESCE ( + COUNT ( * ), COUNT ( * ) + 86 + - COUNT ( + 41 ), + COUNT ( * ) + NULLIF ( 73, - 59 ) + COUNT ( * ) * 1 * - 98 ) + 73 * - 76 * + COUNT ( * ) * 5 col0
----
1
-27888

onlyif mysql # DIV for integer division: 
query II rowsort label-1138
SELECT 37 * - 80 DIV - 5, - 9 * - - 60 AS col2
----
592
-540

skipif mysql # not compatible
query II rowsort label-1138
SELECT 37 * - 80 / - 5, - 9 * - - 60 AS col2
----
592
-540

query I rowsort
SELECT ALL + + 43 * + - 22
----
-946

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1141
SELECT + COUNT( * ) + + COUNT( * ) AS col2, - COUNT( * ) + 5 - - 65 + CAST( NULL AS DECIMAL ) AS col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-1141
SELECT + COUNT ( * ) + + COUNT ( * ) AS col2, - COUNT ( * ) + 5 - - 65 + CAST ( NULL AS REAL ) AS col1
----
2
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1142
SELECT DISTINCT - - CASE - COALESCE ( COUNT( * ), 39 ) WHEN - MAX( + 67 ) THEN NULL WHEN + 16 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - + 31 * + - 67 * + - COALESCE ( - + 62, + 50 + ( - 40 ) * + 79, 16 ) * SUM( - 66 ) END * ( + 11 * + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT - - CASE - COALESCE ( COUNT ( * ), 39 ) WHEN - MAX ( + 67 ) THEN NULL WHEN + 16 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - + 31 * + - 67 * + - COALESCE ( - + 62, + 50 + ( - 40 ) * + 79, 16 ) * SUM ( - 66 ) END * ( + 11 * + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT + ( COUNT( * ) ) * 15 * - ( + - 10 )
----
150

skipif mysql # not compatible
query I rowsort label-1143
SELECT + ( COUNT ( * ) ) * 15 * - ( + - 10 )
----
150

query I rowsort
SELECT 15 + - 58 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-1145
SELECT ALL - + COUNT( * ) * - - 3 + 55 AS col0, + 32 AS col1
----
52
32

skipif mysql # not compatible
query II rowsort label-1145
SELECT ALL - + COUNT ( * ) * - - 3 + 55 AS col0, + 32 AS col1
----
52
32

query I rowsort
SELECT ALL + - 64 * + + 91 + - - 89 + - 32
----
-5767

query I rowsort
SELECT DISTINCT - - 1 * + ( 21 ) - - 49
----
70

query I rowsort
SELECT 93 * - - 3 + ( 33 )
----
312

query I rowsort
SELECT ALL - - COALESCE ( - 19, 19 )
----
-19

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

skipif mysql # not compatible
query I rowsort label-1150
SELECT COUNT ( * ) / + + ( 64 )
----
0

query I rowsort
SELECT ALL + + 72 + + 63 + + 92 + + 14 col0
----
241

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT - ( NULLIF ( + + MAX( + 51 ), - 50 + COUNT( * ) + COUNT( * ) + + + 35 * 23 ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1152
SELECT - ( NULLIF ( + + MAX ( + 51 ), - 50 + COUNT ( * ) + COUNT ( * ) + + + 35 * 23 ) ) AS col2
----
-51

query I rowsort
SELECT - NULLIF ( + 82, 31 ) + - 39
----
-121

query I rowsort
SELECT 94 * - COALESCE ( - 41, - 41 * + 21 )
----
3854

onlyif mysql # aggregate syntax: 
query II rowsort label-1155
SELECT ALL + - 46 + + SUM( - 2 ) * + + 14 * + + 36 AS col0, + 38 + + 90 AS col2
----
-1054
128

skipif mysql # not compatible
query II rowsort label-1155
SELECT ALL + - 46 + + SUM ( - 2 ) * + + 14 * + + 36 AS col0, + 38 + + 90 AS col2
----
-1054
128

query I rowsort
SELECT - 95 + - 28
----
-123

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

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

query I rowsort
SELECT DISTINCT 7 + ( 25 ) * - - 13
----
332

query II rowsort
SELECT ALL - 74 AS col2, + 33 * 49 AS col0
----
-74
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT 83 * - 99 + - 7 / + CASE 61 WHEN - CASE + 32 WHEN - AVG ( DISTINCT + 95 ) THEN - + ( 41 ) WHEN 14 THEN + - ( - 27 ) / + 95 END THEN + 98 * 62 WHEN + 85 + 92 * COUNT( DISTINCT NULLIF ( ( 14 ), + 7 ) ) THEN NULL END * 94 + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT 83 * - 99 + - 7 / + CASE 61 WHEN - CASE + 32 WHEN - AVG ( DISTINCT + 95 ) THEN - + ( 41 ) WHEN 14 THEN + - ( - 27 ) / + 95 END THEN + 98 * 62 WHEN + 85 + 92 * COUNT ( DISTINCT NULLIF ( ( 14 ), + 7 ) ) THEN NULL END * 94 + - 46
----
NULL

query I rowsort
SELECT DISTINCT 71 - - 71 AS col2
----
142

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

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

query I rowsort
SELECT 28 + + 69 AS col2
----
97

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1165
SELECT ALL 75 col0, - CAST( - COUNT( + + 21 ) AS SIGNED )
----
75
1

skipif mysql # not compatible
query II rowsort label-1165
SELECT ALL 75 col0, - CAST ( - COUNT ( + + 21 ) AS INTEGER )
----
75
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT DISTINCT 58 DIV + 79 * + + 66
----
0

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT 58 / + 79 * + + 66
----
0

query II rowsort
SELECT ALL 84 AS col1, - 36 AS col1
----
84
-36

query II rowsort
SELECT ALL 86 AS col2, 64 col2
----
86
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1169
SELECT DISTINCT 22 DIV - COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT 22 / - COUNT ( * )
----
-22

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

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

query II rowsort
SELECT ALL 95 AS col2, - 38
----
95
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT - - NULLIF ( 48, MAX( + 89 ) )
----
48

skipif mysql # not compatible
query I rowsort label-1172
SELECT - - NULLIF ( 48, MAX ( + 89 ) )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1173
SELECT - 63 AS col0, COUNT( * ) - - 23 - + 95 * 39 AS col2
----
-63
-3681

skipif mysql # not compatible
query II rowsort label-1173
SELECT - 63 AS col0, COUNT ( * ) - - 23 - + 95 * 39 AS col2
----
-63
-3681

onlyif mysql # aggregate syntax: 
query II rowsort label-1174
SELECT 30 * COUNT( * ) * - ( + 62 ) AS col1, - 90
----
-1860
-90

skipif mysql # not compatible
query II rowsort label-1174
SELECT 30 * COUNT ( * ) * - ( + 62 ) AS col1, - 90
----
-1860
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1175
SELECT ALL - ( + NULLIF ( 24, + + COUNT( * ) ) ) + + - 66 DIV 74 + - ( + 47 )
----
-71

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL - ( + NULLIF ( 24, + + COUNT ( * ) ) ) + + - 66 / 74 + - ( + 47 )
----
-71

query I rowsort
SELECT 9 * + 21
----
189

onlyif mysql # DIV for integer division: 
query I rowsort label-1177
SELECT ALL + - 62 * 8 * 68 + + 81 DIV + - 65 + - - 14
----
-33715

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL + - 62 * 8 * 68 + + 81 / + - 65 + - - 14
----
-33715

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT DISTINCT 98 * ( 39 ) * - + 63 + - - 25 + + 85 + + - COUNT( * )
----
-240677

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT 98 * ( 39 ) * - + 63 + - - 25 + + 85 + + - COUNT ( * )
----
-240677

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1179
SELECT + - 52 / + 37 - + 43 - + CAST( NULL AS SIGNED ) * + + COALESCE ( CAST( NULL AS DECIMAL ), + 28 ) * - + 11 + - 12 + - - 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT + - 52 / + 37 - + 43 - + CAST ( NULL AS INTEGER ) * + + COALESCE ( CAST ( NULL AS REAL ), + 28 ) * - + 11 + - 12 + - - 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT - 17 - + 32 * - CASE - + 63 WHEN + 86 THEN NULL WHEN + COUNT( * ) + + + ( + CASE + 45 WHEN + ( - MAX( 41 ) ) THEN + - 64 END ) * 15 THEN + 34 * 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT - 17 - + 32 * - CASE - + 63 WHEN + 86 THEN NULL WHEN + COUNT ( * ) + + + ( + CASE + 45 WHEN + ( - MAX ( 41 ) ) THEN + - 64 END ) * 15 THEN + 34 * 0 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1181
SELECT DISTINCT ( - + 61 ) * - 25 + - 22 AS col2, CASE 12 WHEN - 21 THEN + 20 WHEN + 55 THEN + 40 + 93 END + 50 + + COUNT( * ) * ( + COUNT( * ) ) AS col0
----
1503
NULL

skipif mysql # not compatible
query II rowsort label-1181
SELECT DISTINCT ( - + 61 ) * - 25 + - 22 AS col2, CASE 12 WHEN - 21 THEN + 20 WHEN + 55 THEN + 40 + 93 END + 50 + + COUNT ( * ) * ( + COUNT ( * ) ) AS col0
----
1503
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT ALL 44 * - + 6 + + - 81 + CASE COALESCE ( - + 16, 5 ) WHEN + - 94 THEN NULL WHEN - 33 * - 67 THEN NULL ELSE + SUM( - 90 ) + + + COUNT( * ) * 4 END + 2 * 56
----
-319

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL 44 * - + 6 + + - 81 + CASE COALESCE ( - + 16, 5 ) WHEN + - 94 THEN NULL WHEN - 33 * - 67 THEN NULL ELSE + SUM ( - 90 ) + + + COUNT ( * ) * 4 END + 2 * 56
----
-319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1183
SELECT ALL - 72 * - 69 * + 78 + CAST( - + 87 AS SIGNED )
----
387417

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL - 72 * - 69 * + 78 + CAST ( - + 87 AS INTEGER )
----
387417

query I rowsort
SELECT - 84 + COALESCE ( 61, - + 75 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT - - COUNT( * ) * MAX( + + 43 ) * + 5
----
215

skipif mysql # not compatible
query I rowsort label-1185
SELECT - - COUNT ( * ) * MAX ( + + 43 ) * + 5
----
215

query II rowsort
SELECT + + 42 AS col1, 36 AS col0
----
42
36

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT DISTINCT + CASE + 48 WHEN + 84 THEN CAST( NULL AS SIGNED ) * - 9 + 27 * - - 43 + - MAX( DISTINCT + - 8 ) + + 77 WHEN - 93 / - 90 + 81 + - ( 19 ) * - 71 THEN + COALESCE ( - SUM( + 80 ), SUM( - 18 ) ) * - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT + CASE + 48 WHEN + 84 THEN CAST ( NULL AS INTEGER ) * - 9 + 27 * - - 43 + - MAX ( DISTINCT + - 8 ) + + 77 WHEN - 93 / - 90 + 81 + - ( 19 ) * - 71 THEN + COALESCE ( - SUM ( + 80 ), SUM ( - 18 ) ) * - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1189
SELECT DISTINCT + 99 * - 27 - MIN( + + 61 ) + 49 + - 48 * 55 + - NULLIF ( + 79, 75 / - - 94 + + NULLIF ( - 52, - 18 + 44 ) + + ( COALESCE ( - 79, - 55 * COUNT( * ), ( NULLIF ( ( CAST( NULL AS SIGNED ) ), 90 * + CAST( + 44 AS SIGNED ) ) ) ) ) ) - 61 * - 16
----
-4428

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT + 99 * - 27 - MIN ( + + 61 ) + 49 + - 48 * 55 + - NULLIF ( + 79, 75 / - - 94 + + NULLIF ( - 52, - 18 + 44 ) + + ( COALESCE ( - 79, - 55 * COUNT ( * ), ( NULLIF ( ( CAST ( NULL AS INTEGER ) ), 90 * + CAST ( + 44 AS INTEGER ) ) ) ) ) ) - 61 * - 16
----
-4428

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

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL COUNT ( 22 ) / + 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT ALL - 66 * - 46 * - 65 * - 77 - MIN( DISTINCT + 70 )
----
15195110

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL - 66 * - 46 * - 65 * - 77 - MIN ( DISTINCT + 70 )
----
15195110

query I rowsort
SELECT - 24 * + - 84
----
2016

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1193
SELECT DISTINCT + CASE - 68 WHEN - 72 THEN - SUM( + + 48 ) * + + 66 * + + 10 WHEN + COALESCE ( + CASE - 89 WHEN - 94 THEN NULL WHEN 99 - - + COUNT( * ) THEN + 75 END, 28 + CAST( - 62 AS DECIMAL ), - ( - COUNT( * ) ) * - 85 ) + - 54 THEN 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT + CASE - 68 WHEN - 72 THEN - SUM ( + + 48 ) * + + 66 * + + 10 WHEN + COALESCE ( + CASE - 89 WHEN - 94 THEN NULL WHEN 99 - - + COUNT ( * ) THEN + 75 END, 28 + CAST ( - 62 AS REAL ), - ( - COUNT ( * ) ) * - 85 ) + - 54 THEN 85 END AS col0
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-1195
SELECT SUM ( + + 1 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1196
SELECT ALL + ( + CAST( NULLIF ( + 25, NULLIF ( + 31, 50 ) + 95 ) AS SIGNED ) ) col2
----
25

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL + ( + CAST ( NULLIF ( + 25, NULLIF ( + 31, 50 ) + 95 ) AS INTEGER ) ) col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT - ( + 18 ) - CASE + + 78 WHEN 54 * SUM( DISTINCT - 42 ) THEN - 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1197
SELECT - ( + 18 ) - CASE + + 78 WHEN 54 * SUM ( DISTINCT - 42 ) THEN - 40 END
----
NULL

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

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

query I rowsort
SELECT + 94 * - - 45
----
4230

query I rowsort
SELECT 89 * - 5 + - + 27 + + 12
----
-460

onlyif mysql # aggregate syntax: 
query II rowsort label-1201
SELECT MAX( - 2 ), - 98 AS col0
----
-2
-98

skipif mysql # not compatible
query II rowsort label-1201
SELECT MAX ( - 2 ), - 98 AS col0
----
-2
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT DISTINCT 17 * 65 * + COUNT( * ) AS col1
----
1105

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT 17 * 65 * + COUNT ( * ) AS col1
----
1105

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT - 75 * - CASE + - COUNT( + 33 ) WHEN + 27 THEN + COUNT( * ) WHEN + 28 THEN COUNT( * ) WHEN 6 THEN + 20 * - - 74 * + 78 - COUNT( * ) / - 85 ELSE NULL END + + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1203
SELECT - 75 * - CASE + - COUNT ( + 33 ) WHEN + 27 THEN + COUNT ( * ) WHEN + 28 THEN COUNT ( * ) WHEN 6 THEN + 20 * - - 74 * + 78 - COUNT ( * ) / - 85 ELSE NULL END + + 87 AS col1
----
NULL

query I rowsort
SELECT ALL 52 * + + 96 * + 17 AS col0
----
84864

onlyif mysql # aggregate syntax: 
query II rowsort label-1205
SELECT ALL COUNT( - 20 ) * - ( - 57 ), + 20 col0
----
57
20

skipif mysql # not compatible
query II rowsort label-1205
SELECT ALL COUNT ( - 20 ) * - ( - 57 ), + 20 col0
----
57
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT DISTINCT - ( - 59 ) * + 30 * - 13 * + + COUNT( * ) * - - 33 - - 51 + - 15 * 14
----
-759489

skipif mysql # not compatible
query I rowsort label-1207
SELECT DISTINCT - ( - 59 ) * + 30 * - 13 * + + COUNT ( * ) * - - 33 - - 51 + - 15 * 14
----
-759489

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT + COUNT( 80 ) - - 13 + + 2 + + 34 * + 35
----
1206

skipif mysql # not compatible
query I rowsort label-1208
SELECT + COUNT ( 80 ) - - 13 + + 2 + + 34 * + 35
----
1206

query I rowsort
SELECT - NULLIF ( - 17, + - 99 * + + 39 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-1210
SELECT - COUNT( ALL - 65 ) col0, 88 AS col2
----
-1
88

skipif mysql # not compatible
query II rowsort label-1210
SELECT - COUNT ( ALL - 65 ) col0, 88 AS col2
----
-1
88

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

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) / - 15
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1212
SELECT + - 56 + - + 65 DIV MIN( ALL + - 39 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-1212
SELECT + - 56 + - + 65 / MIN ( ALL + - 39 ) AS col1
----
-55

query I rowsort
SELECT ALL + 51 + + ( - ( - ( - 88 ) ) ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT + + CASE + - 87 WHEN 31 THEN + - 97 + - NULLIF ( + 61, - SUM( + - 33 ) * + 20 + + NULLIF ( 86, - + 33 ) * + - 23 / 81 * 62 ) * + 71 END + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-1214
SELECT + + CASE + - 87 WHEN 31 THEN + - 97 + - NULLIF ( + 61, - SUM ( + - 33 ) * + 20 + + NULLIF ( 86, - + 33 ) * + - 23 / 81 * 62 ) * + 71 END + + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1215
SELECT ALL 5 + 66 + 72 + - 91 DIV + 9 + 17 * 17 * + COALESCE ( - ( 49 ), 22 DIV - 83, - + 45 ) - COUNT( * ) + - NULLIF ( 96 - + 38, 38 + CAST( NULL AS SIGNED ) ) * - 73
----
-9795

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL 5 + 66 + 72 + - 91 / + 9 + 17 * 17 * + COALESCE ( - ( 49 ), 22 / - 83, - + 45 ) - COUNT ( * ) + - NULLIF ( 96 - + 38, 38 + CAST ( NULL AS INTEGER ) ) * - 73
----
-9795

query I rowsort
SELECT ALL - - 96 + 30 * 98
----
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT + COUNT( DISTINCT - 49 ) + - 73
----
-72

skipif mysql # not compatible
query I rowsort label-1217
SELECT + COUNT ( DISTINCT - 49 ) + - 73
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1218
SELECT ALL - - 71 * - + CAST( NULL AS SIGNED ) + - COALESCE ( + 50, - - 98, + - SUM( DISTINCT - + 0 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL - - 71 * - + CAST ( NULL AS INTEGER ) + - COALESCE ( + 50, - - 98, + - SUM ( DISTINCT - + 0 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT DISTINCT - 68 + COALESCE ( - - 73, - + 53 * COUNT( * ), - - 95 + - 72 ) * - 24
----
-1820

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT - 68 + COALESCE ( - - 73, - + 53 * COUNT ( * ), - - 95 + - 72 ) * - 24
----
-1820

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1220
SELECT - COUNT( * ) + + CASE + COALESCE ( 0, - 61, - - 76 - - - CAST( - + 44 AS DECIMAL ) ) WHEN - + 4 * - + 97 + - 48 + - 68 * + - 45 + + + 22 THEN NULL WHEN - ( 17 ) + + 75 / + COUNT( * ) THEN 6 WHEN ( - COUNT( * ) ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1220
SELECT - COUNT ( * ) + + CASE + COALESCE ( 0, - 61, - - 76 - - - CAST ( - + 44 AS REAL ) ) WHEN - + 4 * - + 97 + - 48 + - 68 * + - 45 + + + 22 THEN NULL WHEN - ( 17 ) + + 75 / + COUNT ( * ) THEN 6 WHEN ( - COUNT ( * ) ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1221
SELECT ALL + 26 DIV + - 41 * - 5 * + 67 + - COUNT( * ) * + 59 * 65
----
-3835

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL + 26 / + - 41 * - 5 * + 67 + - COUNT ( * ) * + 59 * 65
----
-3835

query I rowsort
SELECT - - 75 * - + 85 + + 47 + + 33
----
-6295

query I rowsort
SELECT ALL + + NULLIF ( - NULLIF ( + 54, + 18 ), - COALESCE ( + 96, - + 35 ) ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT + COUNT( - ( 78 ) ) * + 25 + 81 * COUNT( * )
----
106

skipif mysql # not compatible
query I rowsort label-1224
SELECT + COUNT ( - ( 78 ) ) * + 25 + 81 * COUNT ( * )
----
106

query II rowsort
SELECT + + 80 * 75 AS col1, 31 AS col1
----
6000
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1226
SELECT ALL + 97 DIV 94 - + 49 + + + COUNT( * ) * + + CASE + 82 WHEN + ( + 49 ) THEN NULL WHEN + + 88 THEN - 94 ELSE + - 52 END AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL + 97 / 94 - + 49 + + + COUNT ( * ) * + + CASE + 82 WHEN + ( + 49 ) THEN NULL WHEN + + 88 THEN - 94 ELSE + - 52 END AS col1
----
-100

query I rowsort
SELECT ALL - 32 * 39 * - 48 * + COALESCE ( - 72, + 18, + 42, + + 46 * + - ( 3 ) ) - - 29
----
-4313059

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

query I rowsort
SELECT - 24 * - 80 AS col2
----
1920

query I rowsort
SELECT - 42 + 50 - + 29 * - - 24
----
-688

query I rowsort
SELECT ALL + NULLIF ( - 79, - 44 ) * COALESCE ( + 32, - 84 + + 48 - - 0, + 34 )
----
-2528

onlyif mysql # DIV for integer division: 
query I rowsort label-1232
SELECT + 88 DIV + - 89 * + + 69 col2
----
0

skipif mysql # not compatible
query I rowsort label-1232
SELECT + 88 / + - 89 * + + 69 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT - 94 * + COUNT( * ) * + - 82 * + + 43 col0
----
331444

skipif mysql # not compatible
query I rowsort label-1233
SELECT - 94 * + COUNT ( * ) * + - 82 * + + 43 col0
----
331444

query II rowsort
SELECT - 6 + - - 51 * + 71 AS col0, 20 AS col2
----
3615
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1235
SELECT NULLIF ( + 24, + CAST( - + 47 AS DECIMAL ) + 49 + - 39 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-1235
SELECT NULLIF ( + 24, + CAST ( - + 47 AS REAL ) + 49 + - 39 ) AS col0
----
24

query I rowsort
SELECT ALL - ( - + 94 ) * - 56
----
-5264

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1238
SELECT - 58 DIV - COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1238
SELECT - 58 / - COUNT ( * ) AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1239
SELECT - 52 + - CAST( + 2 AS SIGNED ) + - 42 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-1239
SELECT - 52 + - CAST ( + 2 AS INTEGER ) + - 42 AS col1
----
-96

query I rowsort
SELECT - COALESCE ( 36, - ( - 94 ) ) + 40
----
4

query I rowsort
SELECT - 99 * + 79 col2
----
-7821

query I rowsort
SELECT + 4 * 36
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1243
SELECT DISTINCT CAST( - 79 AS SIGNED ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT CAST ( - 79 AS INTEGER ) AS col2
----
-79

query I rowsort
SELECT + ( + 20 ) + - 86 AS col0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1245
SELECT + 75, - CAST( - + 1 AS SIGNED ) col0
----
75
1

skipif mysql # not compatible
query II rowsort label-1245
SELECT + 75, - CAST ( - + 1 AS INTEGER ) col0
----
75
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1246
SELECT ALL + MIN( ALL - 91 ) * + CAST( NULL AS SIGNED ) / + - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL + MIN ( ALL - 91 ) * + CAST ( NULL AS INTEGER ) / + - 47 AS col1
----
NULL

query I rowsort
SELECT - 36 * - - 21 * + + 2 AS col1
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT ALL + 80 + - 47 + - - NULLIF ( COUNT( * ), + NULLIF ( - 27, - - 92 ) * - 55 ) + 75 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL + 80 + - 47 + - - NULLIF ( COUNT ( * ), + NULLIF ( - 27, - - 92 ) * - 55 ) + 75 AS col2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT ALL 89 + + MIN( - - 7 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL 89 + + MIN ( - - 7 ) AS col2
----
96

query I rowsort
SELECT ALL + 30 * + 41 col2
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT + - 19 * - COALESCE ( SUM( - NULLIF ( + 3, - 45 ) ), + COUNT( * ) ) + - - 28 + + 72
----
43

skipif mysql # not compatible
query I rowsort label-1251
SELECT + - 19 * - COALESCE ( SUM ( - NULLIF ( + 3, - 45 ) ), + COUNT ( * ) ) + - - 28 + + 72
----
43

query I rowsort
SELECT ALL + 39 + + 92 + + + 10 * 36 AS col0
----
491

query II rowsort
SELECT + 21 AS col2, + 1 * - 3 col0
----
21
-3

query I rowsort
SELECT - + 15 col0
----
-15

query I rowsort
SELECT + 39 - 32 * + - 48 AS col1
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT - COUNT( * ) * - MIN( DISTINCT + + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-1256
SELECT - COUNT ( * ) * - MIN ( DISTINCT + + 32 )
----
32

query I rowsort
SELECT - - ( - - 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT 49 - - ( + 32 ) * COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1258
SELECT 49 - - ( + 32 ) * COUNT ( * ) AS col1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1259
SELECT ALL - COALESCE ( - - 21, + 12 * - - 22 * 30 ) DIV + - 7 + + + 8
----
11

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL - COALESCE ( - - 21, + 12 * - - 22 * 30 ) / + - 7 + + + 8
----
11

query I rowsort
SELECT ALL + - 73 - 2 col2
----
-75

query I rowsort
SELECT DISTINCT - 81 * + 30 * + 85 AS col2
----
-206550

query I rowsort
SELECT ALL 19 - - ( + 12 ) + - 3
----
28

query I rowsort
SELECT - 88 * + 43
----
-3784

onlyif mysql # DIV for integer division: 
query I rowsort label-1264
SELECT ALL 62 DIV + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL 62 / + 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL - CASE + 86 WHEN + ( - 44 ) THEN - - 7 WHEN - + 54 * MAX( ALL + - 73 ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL - CASE + 86 WHEN + ( - 44 ) THEN - - 7 WHEN - + 54 * MAX ( ALL + - 73 ) THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1266
SELECT 95 AS col1, - CASE - + 21 WHEN - COUNT( * ) * - CAST( NULL AS SIGNED ) * CAST( + + 21 AS SIGNED ) + + 41 THEN 26 END + - - 39
----
95
NULL

skipif mysql # not compatible
query II rowsort label-1266
SELECT 95 AS col1, - CASE - + 21 WHEN - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * CAST ( + + 21 AS INTEGER ) + + 41 THEN 26 END + - - 39
----
95
NULL

query I rowsort
SELECT 6 * + - 35 + + 66
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT COALESCE ( + - COUNT( * ), + 40 ) * - 68
----
68

skipif mysql # not compatible
query I rowsort label-1268
SELECT COALESCE ( + - COUNT ( * ), + 40 ) * - 68
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1269
SELECT DISTINCT COUNT( * ) * - CAST( + 86 AS SIGNED ) * 87 * + - 50
----
374100

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT COUNT ( * ) * - CAST ( + 86 AS INTEGER ) * 87 * + - 50
----
374100

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT ALL - ( 62 ) + + COUNT( * ) * - 5 - - 48 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL - ( 62 ) + + COUNT ( * ) * - 5 - - 48 AS col2
----
-19

query II rowsort
SELECT ALL - 73, + ( - 99 ) AS col1
----
-73
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-1272
SELECT DISTINCT 99 + - NULLIF ( 28, - + ( 58 ) * - 76 / COUNT( * ) ) AS col1, MIN( + 43 )
----
71
43

skipif mysql # not compatible
query II rowsort label-1272
SELECT DISTINCT 99 + - NULLIF ( 28, - + ( 58 ) * - 76 / COUNT ( * ) ) AS col1, MIN ( + 43 )
----
71
43

query I rowsort
SELECT DISTINCT + 53 * - 92 col0
----
-4876

query II rowsort
SELECT + 28 AS col2, 6 AS col0
----
28
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT ALL 34 + + SUM( - 4 )
----
30

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL 34 + + SUM ( - 4 )
----
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1276
SELECT ALL CAST( - 13 AS SIGNED ) DIV 89 col2
----
0

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL CAST ( - 13 AS INTEGER ) / 89 col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1277
SELECT + 81, 31 * - + CAST( NULL AS DECIMAL ) / 79 + - 56 AS col0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-1277
SELECT + 81, 31 * - + CAST ( NULL AS REAL ) / 79 + - 56 AS col0
----
81
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT 63 DIV + 59
----
1

skipif mysql # not compatible
query I rowsort label-1278
SELECT 63 / + 59
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1279
SELECT + 36, - 75 * + 57 - + 38 * 36 - + - COUNT( * ) * + - 38 * + + ( - 47 ) * 19 - + 50 - - + 51 AS col2
----
36
28292

skipif mysql # not compatible
query II rowsort label-1279
SELECT + 36, - 75 * + 57 - + 38 * 36 - + - COUNT ( * ) * + - 38 * + + ( - 47 ) * 19 - + 50 - - + 51 AS col2
----
36
28292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1280
SELECT 27, ( COALESCE ( CAST( NULL AS SIGNED ), - 95 + - COUNT( * ), - 57 ) ) AS col1
----
27
-96

skipif mysql # not compatible
query II rowsort label-1280
SELECT 27, ( COALESCE ( CAST ( NULL AS INTEGER ), - 95 + - COUNT ( * ), - 57 ) ) AS col1
----
27
-96

query I rowsort
SELECT ALL - 99 + - - 50 AS col2
----
-49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1283
SELECT 53 + - - 35 DIV - 52
----
53

skipif mysql # not compatible
query I rowsort label-1283
SELECT 53 + - - 35 / - 52
----
53

query II rowsort
SELECT ALL + + 92 + - 42 col1, - 93
----
50
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1285
SELECT DISTINCT + CASE + COALESCE ( + CAST( + 2 AS SIGNED ), + CASE - 37 WHEN + + 66 * - + 84 THEN NULL WHEN 37 * 30 THEN - - 14 ELSE NULL END + - - 16 * - + 55 * + 20 ) WHEN + 91 THEN 44 END * - CAST( - 12 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT + CASE + COALESCE ( + CAST ( + 2 AS INTEGER ), + CASE - 37 WHEN + + 66 * - + 84 THEN NULL WHEN 37 * 30 THEN - - 14 ELSE NULL END + - - 16 * - + 55 * + 20 ) WHEN + 91 THEN 44 END * - CAST ( - 12 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 29 + ( + 55 )
----
26

query I rowsort
SELECT 46 - + ( 34 ) col0
----
12

query I rowsort
SELECT DISTINCT + ( - COALESCE ( - 53, - NULLIF ( + 59, + AVG ( DISTINCT + + 85 ) ) ) ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT DISTINCT + - 63 + + + 86 + 88 * - + 22 + - + 96 * SUM( - + 22 )
----
199

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT + - 63 + + + 86 + 88 * - + 22 + - + 96 * SUM ( - + 22 )
----
199

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1290
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT - CAST ( NULL AS REAL ) / - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT COUNT( * ) + + 58 + + - 60 * 65 col0
----
-3841

skipif mysql # not compatible
query I rowsort label-1291
SELECT COUNT ( * ) + + 58 + + - 60 * 65 col0
----
-3841

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1294
SELECT - NULLIF ( - 94, - 58 * 17 ) - 13 - - + 52 - - ( + COALESCE ( + + 86, - 88, - + COUNT( * ) ) ) + CAST( NULL AS DECIMAL ) / 77 * + CASE - - 58 WHEN - 96 / + 79 THEN - NULLIF ( + 91, 31 + - 21 ) END / 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1294
SELECT - NULLIF ( - 94, - 58 * 17 ) - 13 - - + 52 - - ( + COALESCE ( + + 86, - 88, - + COUNT ( * ) ) ) + CAST ( NULL AS REAL ) / 77 * + CASE - - 58 WHEN - 96 / + 79 THEN - NULLIF ( + 91, 31 + - 21 ) END / 74
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1295
SELECT 63 + 79 + + + 93 DIV 73 * COUNT( * ) AS col0
----
143

skipif mysql # not compatible
query I rowsort label-1295
SELECT 63 + 79 + + + 93 / 73 * COUNT ( * ) AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL - NULLIF ( - 61, - 27 ) - - 62 + - SUM( ALL - 68 ) + COUNT( * ) * + - COUNT( * )
----
190

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL - NULLIF ( - 61, - 27 ) - - 62 + - SUM ( ALL - 68 ) + COUNT ( * ) * + - COUNT ( * )
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT - - MIN( 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1297
SELECT - - MIN ( 8 ) AS col2
----
8

query I rowsort
SELECT DISTINCT + NULLIF ( - 0, + 68 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1299
SELECT ALL + 52 * - 9, COUNT( * ) AS col1
----
-468
1

skipif mysql # not compatible
query II rowsort label-1299
SELECT ALL + 52 * - 9, COUNT ( * ) AS col1
----
-468
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT + MIN( - 20 ) * - 86 * + - 92 AS col1
----
-158240

skipif mysql # not compatible
query I rowsort label-1300
SELECT + MIN ( - 20 ) * - 86 * + - 92 AS col1
----
-158240

onlyif mysql # aggregate syntax: 
query II rowsort label-1301
SELECT ALL COUNT( * ) AS col1, - SUM( - 22 )
----
1
22

skipif mysql # not compatible
query II rowsort label-1301
SELECT ALL COUNT ( * ) AS col1, - SUM ( - 22 )
----
1
22

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

skipif mysql # not compatible
query I rowsort label-1302
SELECT + CAST ( NULL AS INTEGER ) * ( - CAST ( + - 85 AS INTEGER ) ) + - - 12
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT - 39 DIV - - 57 col2
----
0

skipif mysql # not compatible
query I rowsort label-1304
SELECT - 39 / - - 57 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT 30 * + - CASE - + 33 WHEN + 44 + - - 13 + + COUNT( * ) / - + 2 + + - 63 THEN + + SUM( ALL 99 ) * + + 34 ELSE NULL END + 0 * - 19 - + ( 85 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1305
SELECT 30 * + - CASE - + 33 WHEN + 44 + - - 13 + + COUNT ( * ) / - + 2 + + - 63 THEN + + SUM ( ALL 99 ) * + + 34 ELSE NULL END + 0 * - 19 - + ( 85 ) col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT ALL + COUNT( * ) + NULLIF ( - + 93, + 75 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL + COUNT ( * ) + NULLIF ( - + 93, + 75 ) AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1308
SELECT DISTINCT 58 + - - 34 + + SUM( DISTINCT + 58 ) * 14 DIV - 70 col1
----
81

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT 58 + - - 34 + + SUM ( DISTINCT + 58 ) * 14 / - 70 col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1309
SELECT ( - 80 ) + + 10 * + - ( + CAST( NULL AS SIGNED ) ) * - - ( - - 42 ) * - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1309
SELECT ( - 80 ) + + 10 * + - ( + CAST ( NULL AS INTEGER ) ) * - - ( - - 42 ) * - 31 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 87 * - + COALESCE ( + 99, + - 31 ) AS col0
----
-8613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1312
SELECT ALL 81 + + 41 / + 6 + + NULLIF ( - - CASE 19 WHEN 67 * CASE - CASE 83 WHEN - - 71 THEN - - 73 * 96 WHEN + 29 THEN NULL END WHEN - + ( - 14 ) THEN - 39 * - CAST( - ( CAST( NULL AS SIGNED ) ) AS SIGNED ) END / - 73 THEN + 17 / 10 WHEN 39 THEN - 41 END, 67 ) * - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL 81 + + 41 / + 6 + + NULLIF ( - - CASE 19 WHEN 67 * CASE - CASE 83 WHEN - - 71 THEN - - 73 * 96 WHEN + 29 THEN NULL END WHEN - + ( - 14 ) THEN - 39 * - CAST ( - ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) END / - 73 THEN + 17 / 10 WHEN 39 THEN - 41 END, 67 ) * - 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT ALL - NULLIF ( + - 85, - + COUNT( * ) * 93 + + ( - - 5 ) )
----
85

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL - NULLIF ( + - 85, - + COUNT ( * ) * 93 + + ( - - 5 ) )
----
85

query I rowsort
SELECT + 56 * 67 * + 95 * + + 93 + - 13
----
33148907

query I rowsort
SELECT ALL - + 71 col1
----
-71

query I rowsort
SELECT 60 + - + 14 AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1317
SELECT ALL 10 - 31 * - 60 - + CAST( NULL AS SIGNED ) + + 20 - - + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL 10 - 31 * - 60 - + CAST ( NULL AS INTEGER ) + + 20 - - + 51 AS col0
----
NULL

query II rowsort
SELECT - 94 * + + 20 col2, - 37
----
-1880
-37

query I rowsort
SELECT ALL - 48 * + + 19 * - 88
----
80256

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

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL - 87 * - COUNT ( ALL + 28 ) AS col0
----
87

query I rowsort
SELECT + 10 * + 5 + - + 54 AS col2
----
-4

query I rowsort
SELECT + - 32 + + + 92
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1323
SELECT - 84 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1323
SELECT - 84 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1324
SELECT - 28 * - 79 * + CAST( NULL AS SIGNED ) + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1324
SELECT - 28 * - 79 * + CAST ( NULL AS INTEGER ) + + 82
----
NULL

query II rowsort
SELECT - 37 - + 4 + + 43 + 11 - 93, 18 AS col1
----
-80
18

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

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

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

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

query I rowsort
SELECT DISTINCT ( - - 42 ) AS col0
----
42

query I rowsort
SELECT DISTINCT 88 * + - 87 AS col0
----
-7656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1330
SELECT ALL NULLIF ( 43, - + COUNT( + 84 ) ) * - - COUNT( * ) DIV 93 + + MIN( ALL 4 ) * - + 21 * 15
----
-1260

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL NULLIF ( 43, - + COUNT ( + 84 ) ) * - - COUNT ( * ) / 93 + + MIN ( ALL 4 ) * - + 21 * 15
----
-1260

query I rowsort
SELECT - 12 - + 54 AS col1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-1332
SELECT + 29 DIV - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1332
SELECT + 29 / - 78 AS col0
----
0

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

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

query I rowsort
SELECT ALL - ( - 78 ) * + 59 + + 98 + - 36
----
4664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1335
SELECT 8 DIV 60 * 68 * + + COUNT( * ) + + MAX( DISTINCT + - 35 ) * - + 30
----
1050

skipif mysql # not compatible
query I rowsort label-1335
SELECT 8 / 60 * 68 * + + COUNT ( * ) + + MAX ( DISTINCT + - 35 ) * - + 30
----
1050

onlyif mysql # DIV for integer division: 
query I rowsort label-1336
SELECT ALL 40 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL 40 / 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL + MIN( - 35 ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL + MIN ( - 35 ) col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1338
SELECT + CASE - 77 WHEN + COALESCE ( - CASE + - 16 WHEN - 87 + - 21 + CAST( - 97 AS SIGNED ) + + 56 * - 11 THEN NULL WHEN - - 44 - - 16 THEN - - 30 / ( - - NULLIF ( NULLIF ( - + 14, 71 ), + COUNT( * ) ) ) * + NULLIF ( 35, - ( COUNT( - 48 ) ) ) + + 87 END, COUNT( 78 ) ) + - COALESCE ( 12, 29 ) THEN + 26 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1338
SELECT + CASE - 77 WHEN + COALESCE ( - CASE + - 16 WHEN - 87 + - 21 + CAST ( - 97 AS INTEGER ) + + 56 * - 11 THEN NULL WHEN - - 44 - - 16 THEN - - 30 / ( - - NULLIF ( NULLIF ( - + 14, 71 ), + COUNT ( * ) ) ) * + NULLIF ( 35, - ( COUNT ( - 48 ) ) ) + + 87 END, COUNT ( 78 ) ) + - COALESCE ( 12, 29 ) THEN + 26 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT + CASE - 32 WHEN - 33 + + 22 THEN NULL WHEN 93 * + + ( - 51 ) THEN - MIN( + - 53 ) + + 84 / 81 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1339
SELECT + CASE - 32 WHEN - 33 + + 22 THEN NULL WHEN 93 * + + ( - 51 ) THEN - MIN ( + - 53 ) + + 84 / 81 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1340
SELECT DISTINCT + 24 * + 65 - + 71 - + 82 + - + 11 + + ( + 94 ) * + MIN( ALL + + ( + CAST( NULL AS SIGNED ) ) ) * NULLIF ( - + 86, + 55 - + 95 ) * 49 * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT + 24 * + 65 - + 71 - + 82 + - + 11 + + ( + 94 ) * + MIN ( ALL + + ( + CAST ( NULL AS INTEGER ) ) ) * NULLIF ( - + 86, + 55 - + 95 ) * 49 * - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT - 69 + - 55 + - + COUNT( 94 )
----
-125

skipif mysql # not compatible
query I rowsort label-1341
SELECT - 69 + - 55 + - + COUNT ( 94 )
----
-125

query II rowsort
SELECT + 50 AS col1, 15 - + 10 AS col1
----
50
5

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

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

query I rowsort
SELECT ALL - 52 * 15 col1
----
-780

query II rowsort
SELECT + - 24 col0, 50 - - COALESCE ( + - 14, 61 ) + 88 - - - 75
----
-24
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1346
SELECT + - COUNT( * ) * + 41 - NULLIF ( 71, - 63 ) + + 27 DIV - + 57 * - 10 + + - 26
----
-138

skipif mysql # not compatible
query I rowsort label-1346
SELECT + - COUNT ( * ) * + 41 - NULLIF ( 71, - 63 ) + + 27 / - + 57 * - 10 + + - 26
----
-138

query II rowsort
SELECT 88 col1, 98 AS col2
----
88
98

query II rowsort
SELECT DISTINCT 17, + 87 + - 81 AS col1
----
17
6

query I rowsort
SELECT + + 22 + 28 + + + 8 * + 61 * - 15 col2
----
-7270

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT ALL - ( + 16 ) DIV + COALESCE ( - - 42, + + 52 * + 31, - + 13 ) - + - 6 * 9 * 69 - + + 87 AS col2
----
3639

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL - ( + 16 ) / + COALESCE ( - - 42, + + 52 * + 31, - + 13 ) - + - 6 * 9 * 69 - + + 87 AS col2
----
3639

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT + 68 + - 17 + - COUNT( * ) * - 78 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-1351
SELECT + 68 + - 17 + - COUNT ( * ) * - 78 AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT ALL + SUM( DISTINCT 87 ) + + 6
----
93

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL + SUM ( DISTINCT 87 ) + + 6
----
93

query I rowsort
SELECT + + 70 + - 58
----
12

query I rowsort
SELECT + - 95 + - + 55 + + ( - 55 ) AS col1
----
-205

query I rowsort
SELECT ALL - COALESCE ( + 66, + - 43 )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-1356
SELECT DISTINCT CASE - + 92 WHEN - 45 THEN NULL ELSE + COUNT( * ) + - 34 * - 26 END + + + 20 AS col2, - 76 AS col2
----
905
-76

skipif mysql # not compatible
query II rowsort label-1356
SELECT DISTINCT CASE - + 92 WHEN - 45 THEN NULL ELSE + COUNT ( * ) + - 34 * - 26 END + + + 20 AS col2, - 76 AS col2
----
905
-76

query I rowsort
SELECT DISTINCT - ( + + 27 ) + + + 52 * - 60
----
-3147

query I rowsort
SELECT ALL ( + ( + 62 ) ) col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT ALL + 12 + - + COUNT( + 59 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL + 12 + - + COUNT ( + 59 ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT - 12 + MIN( + 85 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1360
SELECT - 12 + MIN ( + 85 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT ALL CASE NULLIF ( - COUNT( ALL + 71 ), - 66 / 19 * - ( - + 22 ) ) WHEN - 72 * + - 8 + + 80 + COUNT( * ) THEN COUNT( * ) + 9 + 0 WHEN 85 * - COUNT( * ) * - 49 + - 0 / 51 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL CASE NULLIF ( - COUNT ( ALL + 71 ), - 66 / 19 * - ( - + 22 ) ) WHEN - 72 * + - 8 + + 80 + COUNT ( * ) THEN COUNT ( * ) + 9 + 0 WHEN 85 * - COUNT ( * ) * - 49 + - 0 / 51 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1362
SELECT + 82 * - CASE - MIN( ALL 52 ) WHEN + MAX( + CAST( - + 86 AS SIGNED ) ) - - 87 THEN 81 * - COUNT( * ) + + - MAX( + 51 ) + - NULLIF ( 19, - + COALESCE ( COUNT( * ), 29 ) * - 89 + - CAST( MIN( - 39 ) AS SIGNED ) + CASE - 44 + 92 WHEN 19 * 69 THEN + 75 END * 3 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1362
SELECT + 82 * - CASE - MIN ( ALL 52 ) WHEN + MAX ( + CAST ( - + 86 AS INTEGER ) ) - - 87 THEN 81 * - COUNT ( * ) + + - MAX ( + 51 ) + - NULLIF ( 19, - + COALESCE ( COUNT ( * ), 29 ) * - 89 + - CAST ( MIN ( - 39 ) AS INTEGER ) + CASE - 44 + 92 WHEN 19 * 69 THEN + 75 END * 3 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1363
SELECT ALL 54 DIV 99 + + + ( 10 )
----
10

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL 54 / 99 + + + ( 10 )
----
10

query I rowsort
SELECT - 52 * 40
----
-2080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1365
SELECT + COUNT( ALL + CAST( 47 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1365
SELECT + COUNT ( ALL + CAST ( 47 AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT DISTINCT - 23 * + MAX( + ( - 97 ) )
----
2231

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT - 23 * + MAX ( + ( - 97 ) )
----
2231

query I rowsort
SELECT + 67 * - - ( + - 76 ) + + - 76 AS col0
----
-5168

onlyif mysql # aggregate syntax: 
query II rowsort label-1368
SELECT + COUNT( * ) * 26 + - - ( - 82 ) AS col1, ( + - 76 ) AS col1
----
-56
-76

skipif mysql # not compatible
query II rowsort label-1368
SELECT + COUNT ( * ) * 26 + - - ( - 82 ) AS col1, ( + - 76 ) AS col1
----
-56
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1369
SELECT DISTINCT - + CAST( - 45 AS SIGNED ) AS col2, - 6 + - CASE - COUNT( * ) WHEN 75 THEN - 42 * + CAST( NULL AS SIGNED ) + - AVG ( + + 26 ) / 46 WHEN + 3 THEN NULL WHEN - 90 + - 91 THEN NULL END * - 29
----
45
NULL

skipif mysql # not compatible
query II rowsort label-1369
SELECT DISTINCT - + CAST ( - 45 AS INTEGER ) AS col2, - 6 + - CASE - COUNT ( * ) WHEN 75 THEN - 42 * + CAST ( NULL AS INTEGER ) + - AVG ( + + 26 ) / 46 WHEN + 3 THEN NULL WHEN - 90 + - 91 THEN NULL END * - 29
----
45
NULL

query I rowsort
SELECT 92 * - 82
----
-7544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1371
SELECT + CASE - 62 WHEN - 54 * + - 94 THEN NULL WHEN 40 THEN 50 ELSE - - 91 / - - 21 END * + + CAST( NULL AS SIGNED ) + + MAX( + - 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT + CASE - 62 WHEN - 54 * + - 94 THEN NULL WHEN 40 THEN 50 ELSE - - 91 / - - 21 END * + + CAST ( NULL AS INTEGER ) + + MAX ( + - 33 )
----
NULL

query I rowsort
SELECT + 92 - - + 86 AS col0
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-1373
SELECT 41 DIV - - 96
----
0

skipif mysql # not compatible
query I rowsort label-1373
SELECT 41 / - - 96
----
0

query I rowsort
SELECT ALL - 4 + 55
----
51

query I rowsort
SELECT 18 * 82
----
1476

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT ALL + 44 + + + COUNT( * ) * 43 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL + 44 + + + COUNT ( * ) * 43 AS col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1377
SELECT - + MIN( - + 90 ) AS col1, - 52 AS col1
----
90
-52

skipif mysql # not compatible
query II rowsort label-1377
SELECT - + MIN ( - + 90 ) AS col1, - 52 AS col1
----
90
-52

query I rowsort
SELECT ALL 30 + + 80 - - + 13
----
123

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT COUNT( * ) * COALESCE ( + 18, - 64 * + 16 + 30, + + 42 )
----
18

skipif mysql # not compatible
query I rowsort label-1380
SELECT COUNT ( * ) * COALESCE ( + 18, - 64 * + 16 + 30, + + 42 )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1381
SELECT - 8 AS col2, CAST( NULL AS SIGNED ) * + - NULLIF ( 72, - - 44 ) + 27
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-1381
SELECT - 8 AS col2, CAST ( NULL AS INTEGER ) * + - NULLIF ( 72, - - 44 ) + 27
----
-8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT 37 - - - COUNT( * ) * + MAX( - 84 )
----
121

skipif mysql # not compatible
query I rowsort label-1382
SELECT 37 - - - COUNT ( * ) * + MAX ( - 84 )
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT COALESCE ( 92, 68 ) + - 32 + - 53 * - 53 + + COUNT( * )
----
2870

skipif mysql # not compatible
query I rowsort label-1383
SELECT COALESCE ( 92, 68 ) + - 32 + - 53 * - 53 + + COUNT ( * )
----
2870

query I rowsort
SELECT ALL 64 * 41
----
2624

onlyif mysql # DIV for integer division: 
query I rowsort label-1385
SELECT DISTINCT ( 78 ) DIV + ( NULLIF ( + 52, 94 * - - 87 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT ( 78 ) / + ( NULLIF ( + 52, 94 * - - 87 ) ) AS col1
----
1

query I rowsort
SELECT ALL 35 - + 71 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT ALL + 81 - - 21 - - 68 - 51 * + 50 + - COUNT( * ) * + 17
----
-2397

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL + 81 - - 21 - - 68 - 51 * + 50 + - COUNT ( * ) * + 17
----
-2397

query II rowsort
SELECT ALL 28 * - NULLIF ( 56, - + 48 * - 8 ) * + 67, - 64 AS col2
----
-105056
-64

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

skipif mysql # not compatible
query I rowsort label-1389
SELECT 81 - + + COUNT ( * ) / 37
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT 97 * - COALESCE ( 36, - COUNT( * ) + - ( - 25 ), + - 92 + - 61 + 46 )
----
-3492

skipif mysql # not compatible
query I rowsort label-1390
SELECT 97 * - COALESCE ( 36, - COUNT ( * ) + - ( - 25 ), + - 92 + - 61 + 46 )
----
-3492

query I rowsort
SELECT 5 * + 97 + 81 * + + 74 AS col0
----
6479

query II rowsort
SELECT ALL - 94, 35 col2
----
-94
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT 63 * - COUNT( * ) * + 78 * 61 * 92 * 18 AS col2
----
-496392624

skipif mysql # not compatible
query I rowsort label-1393
SELECT 63 * - COUNT ( * ) * + 78 * 61 * 92 * 18 AS col2
----
-496392624

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1395
SELECT ALL + 8 + + 20 + + 35 DIV - - ( + - MAX( 53 ) ) + + 13
----
41

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL + 8 + + 20 + + 35 / - - ( + - MAX ( 53 ) ) + + 13
----
41

query I rowsort
SELECT 94 + - - 93
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT + + COALESCE ( - COUNT( * ), + COUNT( * ) * + 89 + 88 * 22 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1397
SELECT + + COALESCE ( - COUNT ( * ), + COUNT ( * ) * + 89 + 88 * 22 ) AS col0
----
-1

query I rowsort
SELECT 84 - + 32 col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1399
SELECT - - 6 * + COALESCE ( - + 78, COUNT( DISTINCT + 76 ), + - ( + + 96 ) DIV - 76 ) + + 23 + 51 AS col2
----
-394

skipif mysql # not compatible
query I rowsort label-1399
SELECT - - 6 * + COALESCE ( - + 78, COUNT ( DISTINCT + 76 ), + - ( + + 96 ) / - 76 ) + + 23 + 51 AS col2
----
-394

onlyif mysql # aggregate syntax: 
query II rowsort label-1400
SELECT ALL + - MIN( - 12 ) + 15 - + - 84 * + 36, + 48 AS col0
----
3051
48

skipif mysql # not compatible
query II rowsort label-1400
SELECT ALL + - MIN ( - 12 ) + 15 - + - 84 * + 36, + 48 AS col0
----
3051
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT COUNT( * ) + COUNT( * ) + - 9 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-1401
SELECT COUNT ( * ) + COUNT ( * ) + - 9 AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1402
SELECT ALL - ( - ( - + CASE + 64 WHEN 30 + + 86 + + 54 THEN - MIN( ALL + 44 ) ELSE NULL END ) ) + + CAST( + COUNT( * ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL - ( - ( - + CASE + 64 WHEN 30 + + 86 + + 54 THEN - MIN ( ALL + 44 ) ELSE NULL END ) ) + + CAST ( + COUNT ( * ) AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + CASE + COALESCE ( + 50, + 31 ) WHEN - 14 + + 32 THEN ( - + 97 ) END + + 54 col1
----
NULL

query I rowsort
SELECT + 39 + + 78
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-1405
SELECT ALL COALESCE ( - + 37, + COUNT( * ) ), - 7 AS col2
----
-37
-7

skipif mysql # not compatible
query II rowsort label-1405
SELECT ALL COALESCE ( - + 37, + COUNT ( * ) ), - 7 AS col2
----
-37
-7

query I rowsort
SELECT 47 + - 79 AS col2
----
-32

query II rowsort
SELECT 25 AS col2, 65 AS col1
----
25
65

query I rowsort
SELECT ( 15 ) + 88 + - ( + 29 ) AS col1
----
74

query I rowsort
SELECT 63 * - 73
----
-4599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1410
SELECT 37 * - - CAST( + ( - 12 ) AS SIGNED ) col1
----
-444

skipif mysql # not compatible
query I rowsort label-1410
SELECT 37 * - - CAST ( + ( - 12 ) AS INTEGER ) col1
----
-444

query I rowsort
SELECT ALL 88 * 63 AS col1
----
5544

onlyif mysql # aggregate syntax: 
query II rowsort label-1412
SELECT - 8, + COALESCE ( 98, + SUM( - 94 ), + - 93 ) col2
----
-8
98

skipif mysql # not compatible
query II rowsort label-1412
SELECT - 8, + COALESCE ( 98, + SUM ( - 94 ), + - 93 ) col2
----
-8
98

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

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

query II rowsort
SELECT 41 AS col2, 43 AS col2
----
41
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT + ( - 3 ) + - - COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-1415
SELECT + ( - 3 ) + - - COUNT ( * ) col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1416
SELECT + ( - CAST( NULLIF ( CASE + 42 WHEN + - COUNT( ALL + 58 ) - - 47 - MAX( + 56 ) THEN NULL WHEN - + 63 THEN - 92 WHEN + 44 THEN - 19 END, + + 96 + 15 + + + 94 * 19 * - 0 * + 69 * - - 28 * - 50 ) AS SIGNED ) ) * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1416
SELECT + ( - CAST ( NULLIF ( CASE + 42 WHEN + - COUNT ( ALL + 58 ) - - 47 - MAX ( + 56 ) THEN NULL WHEN - + 63 THEN - 92 WHEN + 44 THEN - 19 END, + + 96 + 15 + + + 94 * 19 * - 0 * + 69 * - - 28 * - 50 ) AS INTEGER ) ) * + 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT ALL SUM( - 87 ) * - + 95 * + 45 * 28 + - 3 * - COUNT( * ) + - 59 + - + 29 * ( - COUNT( * ) ) * COALESCE ( + + 86, 54 - + 55 * 2 ) * + 96 col0
----
10653268

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL SUM ( - 87 ) * - + 95 * + 45 * 28 + - 3 * - COUNT ( * ) + - 59 + - + 29 * ( - COUNT ( * ) ) * COALESCE ( + + 86, 54 - + 55 * 2 ) * + 96 col0
----
10653268

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT + MIN( DISTINCT + - 10 ) * + 79 + 32 * + 60 * + 76 AS col2
----
145130

skipif mysql # not compatible
query I rowsort label-1418
SELECT + MIN ( DISTINCT + - 10 ) * + 79 + 32 * + 60 * + 76 AS col2
----
145130

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

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

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

query II rowsort
SELECT 76 col1, + 94
----
76
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT ALL - COUNT( * ) * - - 2 - + 38 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL - COUNT ( * ) * - - 2 - + 38 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1423
SELECT - - 59 * + + 3 AS col1, - COUNT( * ) AS col2
----
177
-1

skipif mysql # not compatible
query II rowsort label-1423
SELECT - - 59 * + + 3 AS col1, - COUNT ( * ) AS col2
----
177
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1424
SELECT + 55 * + + COUNT( * ) + - - CAST( + ( + 26 ) AS SIGNED ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1424
SELECT + 55 * + + COUNT ( * ) + - - CAST ( + ( + 26 ) AS INTEGER ) AS col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1425
SELECT ALL + + CAST( - 95 AS SIGNED ) * + 21 * + 73 * + - 3 * + 46 + + 4 AS col2, 22 * 74 * + COUNT( * ) * + 81 AS col0
----
20097634
131868

skipif mysql # not compatible
query II rowsort label-1425
SELECT ALL + + CAST ( - 95 AS INTEGER ) * + 21 * + 73 * + - 3 * + 46 + + 4 AS col2, 22 * 74 * + COUNT ( * ) * + 81 AS col0
----
20097634
131868

onlyif mysql # aggregate syntax: 
query II rowsort label-1426
SELECT + 14 AS col2, + 19 * + COUNT( DISTINCT 67 ) * + - 92 AS col2
----
14
-1748

skipif mysql # not compatible
query II rowsort label-1426
SELECT + 14 AS col2, + 19 * + COUNT ( DISTINCT 67 ) * + - 92 AS col2
----
14
-1748

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

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

query I rowsort
SELECT + 78 * + 40 AS col2
----
3120

query II rowsort
SELECT ALL + - 62, 60 AS col1
----
-62
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT DISTINCT + 66 * 18 + + COUNT( * )
----
1189

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT + 66 * 18 + + COUNT ( * )
----
1189

query II rowsort
SELECT 68 AS col0, - CASE + ( + 91 ) WHEN - - 83 THEN - 6 WHEN + 42 THEN NULL END
----
68
NULL

query I rowsort
SELECT 44 * 19 * + 66 - + + 28 AS col0
----
55148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1433
SELECT - COUNT( - 32 ) DIV + - 54 * - 68 + - - 38 + - + COUNT( * ) + 56 * 25 DIV 62 + + + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-1433
SELECT - COUNT ( - 32 ) / + - 54 * - 68 + - - 38 + - + COUNT ( * ) + 56 * 25 / 62 + + + COUNT ( * )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1434
SELECT - CAST( + - 52 AS SIGNED ) * + + 38
----
1976

skipif mysql # not compatible
query I rowsort label-1434
SELECT - CAST ( + - 52 AS INTEGER ) * + + 38
----
1976

query I rowsort
SELECT DISTINCT - 26 * 75 * - 27
----
52650

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1437
SELECT - 47 DIV MIN( DISTINCT + 28 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1437
SELECT - 47 / MIN ( DISTINCT + 28 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-1438
SELECT ALL - 91 DIV - 71 AS col1, 61
----
1
61

skipif mysql # not compatible
query II rowsort label-1438
SELECT ALL - 91 / - 71 AS col1, 61
----
1
61

query I rowsort
SELECT - 93 + + 36 * - 81 AS col2
----
-3009

onlyif mysql # DIV for integer division: 
query I rowsort label-1440
SELECT - 11 DIV + 85 col0
----
0

skipif mysql # not compatible
query I rowsort label-1440
SELECT - 11 / + 85 col0
----
0

query I rowsort
SELECT + 17 * - 85 * - - 55 * - 45
----
3576375

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1443
SELECT ALL ( + 36 ), COUNT( * ) * + - 65 AS col2
----
36
-65

skipif mysql # not compatible
query II rowsort label-1443
SELECT ALL ( + 36 ), COUNT ( * ) * + - 65 AS col2
----
36
-65

query I rowsort
SELECT DISTINCT - 64 * - 41 AS col0
----
2624

query I rowsort
SELECT + 52 * - 57
----
-2964

query I rowsort
SELECT - 63 + + + NULLIF ( 89, + 22 )
----
26

query I rowsort
SELECT ALL 75 * - 90 * + + ( - 34 )
----
229500

onlyif mysql # DIV for integer division: 
query I rowsort label-1448
SELECT - 81 DIV + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1448
SELECT - 81 / + 95 AS col0
----
0

query I rowsort
SELECT DISTINCT - 73 + - + 67 - + ( - 56 ) * 77
----
4172

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL ( MIN( ALL - 37 ) ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL ( MIN ( ALL - 37 ) ) AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1451
SELECT DISTINCT ( + CASE - - 50 WHEN + 53 - COUNT( * ) THEN NULL WHEN + 57 / COUNT( * ) * + NULLIF ( + CAST( - + 16 AS DECIMAL ), + 77 + 56 * + 12 / + 81 ) * + COUNT( 87 ) + 64 THEN - 40 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT DISTINCT ( + CASE - - 50 WHEN + 53 - COUNT ( * ) THEN NULL WHEN + 57 / COUNT ( * ) * + NULLIF ( + CAST ( - + 16 AS REAL ), + 77 + 56 * + 12 / + 81 ) * + COUNT ( 87 ) + 64 THEN - 40 END ) AS col0
----
NULL

query I rowsort
SELECT ALL - 33 + 42 + + 58 + 41
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1453
SELECT ALL - 92 DIV 37 * + + COUNT( * ) + + + 67
----
65

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL - 92 / 37 * + + COUNT ( * ) + + + 67
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1454
SELECT + - CASE 61 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE + - 47 - 43 END * - 80
----
-7200

skipif mysql # not compatible
query I rowsort label-1454
SELECT + - CASE 61 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE + - 47 - 43 END * - 80
----
-7200

query I rowsort
SELECT + 63 + - CASE + - 19 WHEN + 27 THEN NULL WHEN 97 THEN 75 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT + - COALESCE ( - 27, COUNT( * ) * + 99 )
----
27

skipif mysql # not compatible
query I rowsort label-1456
SELECT + - COALESCE ( - 27, COUNT ( * ) * + 99 )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT ALL - 41 DIV - 59 + + 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL - 41 / - 59 + + 32 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1458
SELECT ALL + 77 DIV + - 79 + + + 15 DIV NULLIF ( - 10, - COUNT( * ) + + 18 + + + 73 + - - 48 ) + 47 + - 70 - - + 66
----
42

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL + 77 / + - 79 + + + 15 / NULLIF ( - 10, - COUNT ( * ) + + 18 + + + 73 + - - 48 ) + 47 + - 70 - - + 66
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT DISTINCT 64 * ( COALESCE ( + COUNT( * ), - - 55 * - ( 38 ) * - 5 ) ) col0
----
64

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT 64 * ( COALESCE ( + COUNT ( * ), - - 55 * - ( 38 ) * - 5 ) ) col0
----
64

query I rowsort
SELECT + 12 * + 83 * + 82 + - 54
----
81618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1461
SELECT + 52 + COUNT( * ) * CASE 88 WHEN - MIN( ALL 61 ) / 97 / + 56 - - + ( + 17 ) + + 8 / 94 THEN NULL WHEN - 68 THEN NULL ELSE + ( + - CAST( + AVG ( ALL 28 ) AS SIGNED ) ) * - - COALESCE ( - 46, + 29 ) END, 26 AS col2
----
1340
26

skipif mysql # not compatible
query II rowsort label-1461
SELECT + 52 + COUNT ( * ) * CASE 88 WHEN - MIN ( ALL 61 ) / 97 / + 56 - - + ( + 17 ) + + 8 / 94 THEN NULL WHEN - 68 THEN NULL ELSE + ( + - CAST ( + AVG ( ALL 28 ) AS INTEGER ) ) * - - COALESCE ( - 46, + 29 ) END, 26 AS col2
----
1340
26

query I rowsort
SELECT + - 85 + 84
----
-1

query I rowsort
SELECT + 79 * COALESCE ( 47, - + 16 ) AS col0
----
3713

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1465
SELECT DISTINCT 99 AS col0, + 89 DIV - + 83 AS col1
----
99
-1

skipif mysql # not compatible
query II rowsort label-1465
SELECT DISTINCT 99 AS col0, + 89 / - + 83 AS col1
----
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT DISTINCT COUNT( DISTINCT - 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT COUNT ( DISTINCT - 91 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 77 * + + ( + 35 )
----
-2695

query I rowsort
SELECT DISTINCT 47 * 57 AS col0
----
2679

query I rowsort
SELECT 91 + + 7
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-1470
SELECT ALL 46 + 16 + 98 DIV + 86, - 26 col2
----
63
-26

skipif mysql # not compatible
query II rowsort label-1470
SELECT ALL 46 + 16 + 98 / + 86, - 26 col2
----
63
-26

query I rowsort
SELECT DISTINCT - 78 + - 21
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT ALL + 87 + + COUNT( * ) + + - 79 + 47 + - 84 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL + 87 + + COUNT ( * ) + + - 79 + 47 + - 84 AS col0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-1473
SELECT DISTINCT - COALESCE ( + 50, - 67 ) DIV + - 42
----
1

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT - COALESCE ( + 50, - 67 ) / + - 42
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT ALL + 21 * - - ( + - COALESCE ( - - 34, 95 - 26 ) ) * + COUNT( * ) AS col0
----
-714

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL + 21 * - - ( + - COALESCE ( - - 34, 95 - 26 ) ) * + COUNT ( * ) AS col0
----
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-1476
SELECT + - CASE 87 WHEN + + 75 THEN 95 WHEN + - ( + 52 ) THEN - COUNT( * ) * 64 - + 57 + 74 * - - COALESCE ( + NULLIF ( + 78, - COUNT( * ) * - 38 + 85 * ( 48 ) ), 72, 68 * - 28 ) END, SUM( ALL 38 ) * + 71 + 81 AS col0
----
NULL
2779

skipif mysql # not compatible
query II rowsort label-1476
SELECT + - CASE 87 WHEN + + 75 THEN 95 WHEN + - ( + 52 ) THEN - COUNT ( * ) * 64 - + 57 + 74 * - - COALESCE ( + NULLIF ( + 78, - COUNT ( * ) * - 38 + 85 * ( 48 ) ), 72, 68 * - 28 ) END, SUM ( ALL 38 ) * + 71 + 81 AS col0
----
NULL
2779

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

query I rowsort
SELECT DISTINCT - + 50 * - 4 AS col1
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT ALL - 85 * - 6 - - CASE + 2 WHEN - 29 * + + 77 * AVG ( + 1 ) + + + COUNT( * ) - 34 * + - 99 THEN - 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL - 85 * - 6 - - CASE + 2 WHEN - 29 * + + 77 * AVG ( + 1 ) + + + COUNT ( * ) - 34 * + - 99 THEN - 78 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT ( - + 35 ) + + NULLIF ( + COUNT( * ), - 57 * - + 95 / - + 5 )
----
-34

skipif mysql # not compatible
query I rowsort label-1480
SELECT ( - + 35 ) + + NULLIF ( + COUNT ( * ), - 57 * - + 95 / - + 5 )
----
-34

query I rowsort
SELECT 25 * 41 + - 14 * - 55 AS col2
----
1795

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1483
SELECT + - MIN( ALL - 93 ) * + NULLIF ( + 89, + 94 ) * + + 64 + + COUNT( * ) + - CAST( 55 AS SIGNED ) + CASE - CASE + 81 WHEN + + ( - - CASE - 60 WHEN - 55 THEN 44 + - CASE + COUNT( * ) WHEN 67 THEN - 89 * 46 + + 51 * 57 WHEN + 84 THEN NULL WHEN + 39 * 25 + CAST( NULL AS SIGNED ) * 68 THEN NULL END WHEN + 38 * + CASE - 76 WHEN CAST( NULL AS DECIMAL ) * COUNT( * ) - - 22 * 80 THEN NULL ELSE + 75 + + 84 END THEN NULL END ) + 1 THEN 96 ELSE - 89 END WHEN COUNT( * ) * - 22 THEN + 90 + + CASE 57 WHEN - 55 / + MAX( ALL 38 ) THEN COUNT( * ) * - 77 WHEN ( COUNT( * ) ) THEN NULL END / 14 END + - CAST( NULL AS SIGNED ) * + ( 26 ) * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1483
SELECT + - MIN ( ALL - 93 ) * + NULLIF ( + 89, + 94 ) * + + 64 + + COUNT ( * ) + - CAST ( 55 AS INTEGER ) + CASE - CASE + 81 WHEN + + ( - - CASE - 60 WHEN - 55 THEN 44 + - CASE + COUNT ( * ) WHEN 67 THEN - 89 * 46 + + 51 * 57 WHEN + 84 THEN NULL WHEN + 39 * 25 + CAST ( NULL AS INTEGER ) * 68 THEN NULL END WHEN + 38 * + CASE - 76 WHEN CAST ( NULL AS REAL ) * COUNT ( * ) - - 22 * 80 THEN NULL ELSE + 75 + + 84 END THEN NULL END ) + 1 THEN 96 ELSE - 89 END WHEN COUNT ( * ) * - 22 THEN + 90 + + CASE 57 WHEN - 55 / + MAX ( ALL 38 ) THEN COUNT ( * ) * - 77 WHEN ( COUNT ( * ) ) THEN NULL END / 14 END + - CAST ( NULL AS INTEGER ) * + ( 26 ) * - 26
----
NULL

query I rowsort
SELECT ALL 65 * - - 26
----
1690

onlyif mysql # DIV for integer division: 
query I rowsort label-1485
SELECT DISTINCT - ( - 16 ) DIV 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1485
SELECT DISTINCT - ( - 16 ) / 61 AS col1
----
0

query I rowsort
SELECT ALL 12 * - 68 AS col2
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT ALL 29 * + COUNT( * ) / - CASE - + 51 WHEN - + COUNT( * ) * + 0 * + + CASE - 84 WHEN 60 * - + COUNT( * ) THEN 37 + + 51 WHEN 98 THEN NULL WHEN 89 THEN 58 ELSE NULL END THEN + 18 - - + 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL 29 * + COUNT ( * ) / - CASE - + 51 WHEN - + COUNT ( * ) * + 0 * + + CASE - 84 WHEN 60 * - + COUNT ( * ) THEN 37 + + 51 WHEN 98 THEN NULL WHEN 89 THEN 58 ELSE NULL END THEN + 18 - - + 16 END
----
NULL

query I rowsort
SELECT ALL 6 * 14 AS col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1489
SELECT + 96 * - 43 - 80 DIV COUNT( * ) AS col2
----
-4208

skipif mysql # not compatible
query I rowsort label-1489
SELECT + 96 * - 43 - 80 / COUNT ( * ) AS col2
----
-4208

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT DISTINCT 63 + + COUNT( * ) + 15 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT 63 + + COUNT ( * ) + 15 AS col0
----
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT DISTINCT - COUNT( * ) + - 3 + - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT - COUNT ( * ) + - 3 + - COUNT ( * )
----
-5

query I rowsort
SELECT DISTINCT 57 + - 4
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1495
SELECT 16 * + + NULLIF ( - + MAX( DISTINCT + 63 ), - 5 * 57 * + + CASE + 68 WHEN + 98 / + - 67 THEN - - CASE - 66 WHEN COUNT( * ) * + 97 + + 31 THEN 93 END END * - MAX( DISTINCT + 33 ) - - + COUNT( * ) + - + ( CAST( + + COUNT( - - 46 ) AS SIGNED ) ) + - 6 * - 16 ) * 35
----
-35280

skipif mysql # not compatible
query I rowsort label-1495
SELECT 16 * + + NULLIF ( - + MAX ( DISTINCT + 63 ), - 5 * 57 * + + CASE + 68 WHEN + 98 / + - 67 THEN - - CASE - 66 WHEN COUNT ( * ) * + 97 + + 31 THEN 93 END END * - MAX ( DISTINCT + 33 ) - - + COUNT ( * ) + - + ( CAST ( + + COUNT ( - - 46 ) AS INTEGER ) ) + - 6 * - 16 ) * 35
----
-35280

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1497
SELECT ( 88 ), 65 DIV + 16 col1
----
88
4

skipif mysql # not compatible
query II rowsort label-1497
SELECT ( 88 ), 65 / + 16 col1
----
88
4

query II rowsort
SELECT 76 + + + 26, 77 * + - 2 col0
----
102
-154

query II rowsort
SELECT DISTINCT - 48 * + 98 + 92 + - 87 AS col1, 27
----
-4699
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT ALL COUNT( * ) - - - CASE ( 56 ) WHEN 31 THEN + COUNT( * ) / 48 - + + 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL COUNT ( * ) - - - CASE ( 56 ) WHEN 31 THEN + COUNT ( * ) / 48 - + + 41 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1501
SELECT + MAX( DISTINCT 71 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1501
SELECT + MAX ( DISTINCT 71 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1502
SELECT ALL + - 52 DIV - + 97 AS col1, 0
----
0
0

skipif mysql # not compatible
query II rowsort label-1502
SELECT ALL + - 52 / - + 97 AS col1, 0
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT 76 * 72 + + 83 * + COUNT( * ) - - 79
----
5634

skipif mysql # not compatible
query I rowsort label-1503
SELECT 76 * 72 + + 83 * + COUNT ( * ) - - 79
----
5634

onlyif mysql # DIV for integer division: 
query I rowsort label-1504
SELECT ALL + 4 DIV + 80 + 18 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL + 4 / + 80 + 18 AS col2
----
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT - 83 * + 25 * + 66 + + MIN( ALL + 34 )
----
-136916

skipif mysql # not compatible
query I rowsort label-1506
SELECT - 83 * + 25 * + 66 + + MIN ( ALL + 34 )
----
-136916

query I rowsort
SELECT DISTINCT - ( + 79 ) AS col0
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-1508
SELECT + 46 AS col1, + 68 DIV + 6 AS col1
----
46
11

skipif mysql # not compatible
query II rowsort label-1508
SELECT + 46 AS col1, + 68 / + 6 AS col1
----
46
11

query I rowsort
SELECT ALL - 95 * + + 91
----
-8645

query I rowsort
SELECT - 94 + + + 58 * - - 23
----
1240

onlyif mysql # aggregate syntax: 
query II rowsort label-1511
SELECT ALL + 20 AS col1, 35 + - - 7 / CASE COALESCE ( - SUM( ALL 85 ), + 27 + + - 49 + + - 67 ) WHEN + ( + 40 ) THEN + 58 ELSE NULL END
----
20
NULL

skipif mysql # not compatible
query II rowsort label-1511
SELECT ALL + 20 AS col1, 35 + - - 7 / CASE COALESCE ( - SUM ( ALL 85 ), + 27 + + - 49 + + - 67 ) WHEN + ( + 40 ) THEN + 58 ELSE NULL END
----
20
NULL

query I rowsort
SELECT DISTINCT + 77 + + - 32
----
45

query I rowsort
SELECT + 53 * - 93 AS col1
----
-4929

query I rowsort
SELECT ALL 58 + - 97 AS col2
----
-39

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1516
SELECT + 70 - + - COALESCE ( 51, 65 * 69 * COUNT( * ) + - + 69 + - 90 ) - 67 + - - 98 * + + CASE 42 WHEN NULLIF ( CAST( NULL AS SIGNED ), - 28 ) / 35 THEN - 24 + 63 END * 81 + 58 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1516
SELECT + 70 - + - COALESCE ( 51, 65 * 69 * COUNT ( * ) + - + 69 + - 90 ) - 67 + - - 98 * + + CASE 42 WHEN NULLIF ( CAST ( NULL AS INTEGER ), - 28 ) / 35 THEN - 24 + 63 END * 81 + 58 + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 52 + + 11 * + - 46
----
-454

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

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

query I rowsort
SELECT + ( 79 ) + - 34 AS col1
----
45

query I rowsort
SELECT ALL + 60 + 4
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1521
SELECT DISTINCT - 5 + + - COUNT( * ) + - NULLIF ( + CAST( NULL AS SIGNED ), - 61 * 15 - + 84 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT - 5 + + - COUNT ( * ) + - NULLIF ( + CAST ( NULL AS INTEGER ), - 61 * 15 - + 84 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT + 86 + 11 * - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-1522
SELECT + 86 + 11 * - COUNT ( * )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1523
SELECT - CAST( - 99 AS SIGNED ) * - 6 AS col2
----
-594

skipif mysql # not compatible
query I rowsort label-1523
SELECT - CAST ( - 99 AS INTEGER ) * - 6 AS col2
----
-594

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1525
SELECT ALL 77 AS col1, CAST( - 52 AS SIGNED )
----
77
-52

skipif mysql # not compatible
query II rowsort label-1525
SELECT ALL 77 AS col1, CAST ( - 52 AS INTEGER )
----
77
-52

query I rowsort
SELECT DISTINCT 90 * + - 76 AS col1
----
-6840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1527
SELECT DISTINCT SUM( DISTINCT - - 66 ) DIV + + COUNT( - - 27 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT SUM ( DISTINCT - - 66 ) / + + COUNT ( - - 27 ) AS col1
----
66

query II rowsort
SELECT 40 AS col1, 47 AS col0
----
40
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT + + CASE - 5 WHEN 16 * + COUNT( * ) THEN - 81 ELSE + 47 END * - + 74 + + + 31
----
-3447

skipif mysql # not compatible
query I rowsort label-1529
SELECT + + CASE - 5 WHEN 16 * + COUNT ( * ) THEN - 81 ELSE + 47 END * - + 74 + + + 31
----
-3447

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT + COALESCE ( - 49, COUNT( * ), 3 ) * + 65 AS col0
----
-3185

skipif mysql # not compatible
query I rowsort label-1530
SELECT + COALESCE ( - 49, COUNT ( * ), 3 ) * + 65 AS col0
----
-3185

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

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

query I rowsort
SELECT - 1 * 30 AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1533
SELECT + - MAX( - 97 ) + + 31 + - 4 + - COALESCE ( - - 87, 72 DIV - - CASE + + 83 WHEN + + ( - 90 ) THEN NULL WHEN - COALESCE ( - 25, 14, 54 ) DIV 61 * + 80 * - 60 + 14 + 74 + + 18 DIV 55 THEN NULL ELSE - 13 END + - 94 + 82 + 93, - 41 ) + - 12 * + 94 AS col2
----
-1091

skipif mysql # not compatible
query I rowsort label-1533
SELECT + - MAX ( - 97 ) + + 31 + - 4 + - COALESCE ( - - 87, 72 / - - CASE + + 83 WHEN + + ( - 90 ) THEN NULL WHEN - COALESCE ( - 25, 14, 54 ) / 61 * + 80 * - 60 + 14 + 74 + + 18 / 55 THEN NULL ELSE - 13 END + - 94 + 82 + 93, - 41 ) + - 12 * + 94 AS col2
----
-1091

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1534
SELECT DISTINCT COUNT( * ) * + 11 DIV + 60 + + 50 + 48
----
98

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT COUNT ( * ) * + 11 / + 60 + + 50 + 48
----
98

query I rowsort
SELECT - - NULLIF ( + - 48, 51 ) * 9 AS col0
----
-432

onlyif mysql # DIV for integer division: 
query I rowsort label-1536
SELECT ALL - 41 DIV - NULLIF ( 53, - 24 DIV + 28 + + + 26 ) + + 10 + - - 16 - 23 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL - 41 / - NULLIF ( 53, - 24 / + 28 + + + 26 ) + + 10 + - - 16 - 23 AS col1
----
3

query I rowsort
SELECT - CASE 39 WHEN + 53 + 88 THEN 19 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT - 90 + 12 + - - 60 * + 97 + + 6 + - COALESCE ( + - ( + 34 ), - ( + - MAX( ALL - 14 ) ) + - 48 ) + - NULLIF ( ( 58 ), + MAX( DISTINCT + + 94 ) ) AS col1
----
5724

skipif mysql # not compatible
query I rowsort label-1538
SELECT - 90 + 12 + - - 60 * + 97 + + 6 + - COALESCE ( + - ( + 34 ), - ( + - MAX ( ALL - 14 ) ) + - 48 ) + - NULLIF ( ( 58 ), + MAX ( DISTINCT + + 94 ) ) AS col1
----
5724

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT ALL + COALESCE ( + - COUNT( * ), + - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL + COALESCE ( + - COUNT ( * ), + - COUNT ( * ) ) AS col1
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1541
SELECT DISTINCT 70 * - 97 + - + 26 * + 57 * + 73 + - - 12 DIV 83 AS col2
----
-114976

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT 70 * - 97 + - + 26 * + 57 * + 73 + - - 12 / 83 AS col2
----
-114976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1542
SELECT ALL CAST( NULL AS SIGNED ) * - 76 + - MIN( - 99 ) + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL CAST ( NULL AS INTEGER ) * - 76 + - MIN ( - 99 ) + 56
----
NULL

query I rowsort
SELECT ( + 33 ) AS col1
----
33

query II rowsort
SELECT - 64 * + + 23, + 58 + 54 - + ( - - 0 ) + - ( + 56 ) AS col0
----
-1472
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1545
SELECT 55 * + AVG ( DISTINCT - ( + 10 ) ) + + + CASE + - 4 WHEN 58 THEN + CAST( - 43 AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1545
SELECT 55 * + AVG ( DISTINCT - ( + 10 ) ) + + + CASE + - 4 WHEN 58 THEN + CAST ( - 43 AS REAL ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1546
SELECT DISTINCT - 46 DIV COUNT( * ) * + 13
----
-598

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT - 46 / COUNT ( * ) * + 13
----
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT ALL CASE - 36 WHEN + SUM( DISTINCT - 67 ) / + - COUNT( * ) + 6 * - - 26 THEN NULL WHEN + + 26 THEN MIN( DISTINCT + + COALESCE ( 82, 29 ) ) ELSE NULL END * - 68 + 81 + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL CASE - 36 WHEN + SUM ( DISTINCT - 67 ) / + - COUNT ( * ) + 6 * - - 26 THEN NULL WHEN + + 26 THEN MIN ( DISTINCT + + COALESCE ( 82, 29 ) ) ELSE NULL END * - 68 + 81 + 27 AS col0
----
NULL

query II rowsort
SELECT + 12 AS col2, ( - 26 ) + - - 41
----
12
15

query I rowsort
SELECT ALL 82 * - 6 + - 20 AS col1
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT DISTINCT ( + 0 ) * + 79 + + 69 + + 55 - + COUNT( * ) - - 72 * COUNT( * ) + ( - - 91 ) - SUM( ALL - 21 ) AS col2
----
307

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT ( + 0 ) * + 79 + + 69 + + 55 - + COUNT ( * ) - - 72 * COUNT ( * ) + ( - - 91 ) - SUM ( ALL - 21 ) AS col2
----
307

query I rowsort
SELECT COALESCE ( - NULLIF ( 31, - - 34 ), 56 )
----
-31

query I rowsort
SELECT ALL - 60 * + - 89 + - 31 col2
----
5309

query I rowsort
SELECT - 11 * - + 69 AS col0
----
759

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1555
SELECT + ( + + 31 ) * - + COUNT( * ) * + CASE + 64 WHEN - + 27 * + 17 THEN NULL ELSE + - 55 * + CAST( NULL AS SIGNED ) END - - - 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1555
SELECT + ( + + 31 ) * - + COUNT ( * ) * + CASE + 64 WHEN - + 27 * + 17 THEN NULL ELSE + - 55 * + CAST ( NULL AS INTEGER ) END - - - 12 AS col1
----
NULL

query I rowsort
SELECT + 80 * + - 30 AS col0
----
-2400

onlyif mysql # aggregate syntax: 
query II rowsort label-1557
SELECT - 51 - - NULLIF ( 64, + + COUNT( DISTINCT + - 63 ) + 28 ), - 45 AS col1
----
13
-45

skipif mysql # not compatible
query II rowsort label-1557
SELECT - 51 - - NULLIF ( 64, + + COUNT ( DISTINCT + - 63 ) + 28 ), - 45 AS col1
----
13
-45

query II rowsort
SELECT ALL 37 AS col2, 91
----
37
91

query I rowsort
SELECT DISTINCT 62 * 70 + + 58 AS col2
----
4398

query I rowsort
SELECT DISTINCT + - 43 - + 47 + + + 92
----
2

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

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

query I rowsort
SELECT + 49 - + + 58 AS col0
----
-9

query I rowsort
SELECT - 89 * + + 31 AS col1
----
-2759

query I rowsort
SELECT - 93 + - 15
----
-108

query II rowsort
SELECT + 79 AS col0, + 4 * + + 4
----
79
16

query I rowsort
SELECT - 16 + ( + 19 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT + + NULLIF ( + + 82, + 1 - - + 19 ) DIV 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1567
SELECT + + NULLIF ( + + 82, + 1 - - + 19 ) / 87 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT + - 68 + - + MAX( + - 75 )
----
7

skipif mysql # not compatible
query I rowsort label-1568
SELECT + - 68 + - + MAX ( + - 75 )
----
7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1570
SELECT + + 77 DIV + 40 col2
----
1

skipif mysql # not compatible
query I rowsort label-1570
SELECT + + 77 / + 40 col2
----
1

query I rowsort
SELECT - 79 + ( 39 ) AS col2
----
-40

query I rowsort
SELECT ALL - 5 + - - 85 AS col1
----
80

query II rowsort
SELECT 91 * + 94, 17 * - 22 AS col2
----
8554
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT DISTINCT COUNT( * ) * - - 88 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT COUNT ( * ) * - - 88 AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1575
SELECT CAST( + 5 AS SIGNED ) * - + 75 AS col2
----
-375

skipif mysql # not compatible
query I rowsort label-1575
SELECT CAST ( + 5 AS INTEGER ) * - + 75 AS col2
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT ALL 6 + NULLIF ( - + 16, - 70 * + 13 + ( - COUNT( * ) ) + + 35 + + - 24 * - + 61 )
----
-10

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL 6 + NULLIF ( - + 16, - 70 * + 13 + ( - COUNT ( * ) ) + + 35 + + - 24 * - + 61 )
----
-10

query I rowsort
SELECT ALL + 60 + - 28 AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1578
SELECT 97 - ( + 36 ) + + - COUNT( * ) + + 63 DIV + 80 col1
----
60

skipif mysql # not compatible
query I rowsort label-1578
SELECT 97 - ( + 36 ) + + - COUNT ( * ) + + 63 / + 80 col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1579
SELECT - CAST( NULL AS SIGNED ) * 38 + - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1579
SELECT - CAST ( NULL AS INTEGER ) * 38 + - 16 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1580
SELECT ALL - SUM( 82 ) DIV - COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL - SUM ( 82 ) / - COUNT ( * ) AS col1
----
82

query I rowsort
SELECT 96 + + ( - + 74 ) * 90 AS col0
----
-6564

query I rowsort
SELECT 32 * - 14
----
-448

onlyif mysql # aggregate syntax: 
query II rowsort label-1583
SELECT ALL - 70 * - COUNT( * ) AS col2, 18 AS col2
----
70
18

skipif mysql # not compatible
query II rowsort label-1583
SELECT ALL - 70 * - COUNT ( * ) AS col2, 18 AS col2
----
70
18

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

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

query I rowsort
SELECT ALL + 69 * - + ( 63 ) AS col1
----
-4347

query I rowsort
SELECT NULLIF ( + 42, ( + 24 ) ) AS col1
----
42

query I rowsort
SELECT 58 * + 99 + + 68 + + 98
----
5908

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1588
SELECT CASE + 90 WHEN + COUNT( * ) THEN NULL WHEN + COUNT( * ) * COUNT( * ) + - + 89 - - 90 * + + 46 THEN - 54 * + 79 + 75 + + 2 + CAST( NULL AS SIGNED ) END * 26 + + - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1588
SELECT CASE + 90 WHEN + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) * COUNT ( * ) + - + 89 - - 90 * + + 46 THEN - 54 * + 79 + 75 + + 2 + CAST ( NULL AS INTEGER ) END * 26 + + - 23 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT + CAST( + 25 AS SIGNED ) + CAST( + + 56 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-1589
SELECT + CAST ( + 25 AS INTEGER ) + CAST ( + + 56 AS INTEGER )
----
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT DISTINCT + + COUNT( * ) + + 39 col0
----
40

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT + + COUNT ( * ) + + 39 col0
----
40

query I rowsort
SELECT 61 * 66 + - + 75 AS col0
----
3951

query I rowsort
SELECT DISTINCT - 75 + - 41 + + 88
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1594
SELECT DISTINCT + CAST( - 9 AS SIGNED ) + - 33 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT + CAST ( - 9 AS INTEGER ) + - 33 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT ALL 80 + 53 * + SUM( - 33 ) AS col2
----
-1669

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL 80 + 53 * + SUM ( - 33 ) AS col2
----
-1669

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1597
SELECT ALL - 26 DIV - + 75 AS col1, 57
----
0
57

skipif mysql # not compatible
query II rowsort label-1597
SELECT ALL - 26 / - + 75 AS col1, 57
----
0
57

query I rowsort
SELECT DISTINCT + 67 + + - 62 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT COALESCE ( - 15, - 57, + ( 17 ) + + 66 ) + + - COUNT( - + 65 ) + 39
----
23

skipif mysql # not compatible
query I rowsort label-1599
SELECT COALESCE ( - 15, - 57, + ( 17 ) + + 66 ) + + - COUNT ( - + 65 ) + 39
----
23

query I rowsort
SELECT DISTINCT + + 61 + - 11
----
50

query I rowsort
SELECT ALL + 1 + - CASE + + 65 WHEN 87 THEN ( 47 ) END - + 35
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1603
SELECT 77 AS col0, 34 - - 17 + - 86 - - 97 + - + 38 DIV 23 * 65 AS col0
----
77
-3

skipif mysql # not compatible
query II rowsort label-1603
SELECT 77 AS col0, 34 - - 17 + - 86 - - 97 + - + 38 / 23 * 65 AS col0
----
77
-3

query I rowsort
SELECT DISTINCT + 91 + - 88 + - 53
----
-50

query I rowsort
SELECT ALL - 28 + - 56 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT DISTINCT - COALESCE ( + - 95, COUNT( * ) + - - 80 + + - 18 + + 6 * - 54 * + 43 * - 20 )
----
95

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - COALESCE ( + - 95, COUNT ( * ) + - - 80 + + - 18 + + 6 * - 54 * + 43 * - 20 )
----
95

query I rowsort
SELECT ALL 29 - 35
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT ALL SUM( - 26 ) - - 77 * - COUNT( * ) * 73 * + 8 AS col0
----
-44994

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL SUM ( - 26 ) - - 77 * - COUNT ( * ) * 73 * + 8 AS col0
----
-44994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1609
SELECT NULLIF ( + 72, 48 / + AVG ( DISTINCT - - CAST( - - 2 AS SIGNED ) ) ) + + SUM( 78 ) * + COUNT( * ) AS col1
----
150

skipif mysql # not compatible
query I rowsort label-1609
SELECT NULLIF ( + 72, 48 / + AVG ( DISTINCT - - CAST ( - - 2 AS INTEGER ) ) ) + + SUM ( 78 ) * + COUNT ( * ) AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT 65 * - + COUNT( * ) + - 39
----
-104

skipif mysql # not compatible
query I rowsort label-1610
SELECT 65 * - + COUNT ( * ) + - 39
----
-104

query II rowsort
SELECT ALL - 52 AS col1, 73
----
-52
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1612
SELECT ALL - 55 AS col1, 36 * CAST( NULL AS SIGNED ) - - CASE - 6 WHEN - CAST( COUNT( * ) AS SIGNED ) THEN + 63 + + ( + 25 ) * + 6 * + - 50 * - 94 WHEN + 16 + + 18 - - 11 + + 81 THEN NULL WHEN - 55 THEN NULL ELSE NULL END + - 28 * 36
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-1612
SELECT ALL - 55 AS col1, 36 * CAST ( NULL AS INTEGER ) - - CASE - 6 WHEN - CAST ( COUNT ( * ) AS INTEGER ) THEN + 63 + + ( + 25 ) * + 6 * + - 50 * - 94 WHEN + 16 + + 18 - - 11 + + 81 THEN NULL WHEN - 55 THEN NULL ELSE NULL END + - 28 * 36
----
-55
NULL

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

skipif mysql # not compatible
query I rowsort label-1613
SELECT SUM ( DISTINCT - - 60 )
----
60

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

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

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

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

query I rowsort
SELECT 0 * - 81
----
0

query I rowsort
SELECT 35 * 60 AS col0
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT ALL 46 * COUNT( * ) * NULLIF ( - SUM( DISTINCT - 33 ), - 1 ) * + - 83 AS col2
----
-125994

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL 46 * COUNT ( * ) * NULLIF ( - SUM ( DISTINCT - 33 ), - 1 ) * + - 83 AS col2
----
-125994

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

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

query I rowsort
SELECT 25 * 31 * + 95 AS col1
----
73625

query I rowsort
SELECT DISTINCT - CASE + 40 WHEN 48 THEN - - 19 - - + 85 END
----
NULL

query II rowsort
SELECT ALL - 70 AS col0, + 98
----
-70
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT ( - 33 ) * COUNT( * ) + COALESCE ( 3, - - ( + - 28 ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1623
SELECT ( - 33 ) * COUNT ( * ) + COALESCE ( 3, - - ( + - 28 ) ) AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1624
SELECT + - 7 AS col0, CASE - + MAX( 85 ) WHEN + 83 THEN - 73 - + 99 WHEN + + 60 + 37 THEN + - 3 / - 13 ELSE NULL END / + + CAST( NULL AS DECIMAL ) AS col1
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-1624
SELECT + - 7 AS col0, CASE - + MAX ( 85 ) WHEN + 83 THEN - 73 - + 99 WHEN + + 60 + 37 THEN + - 3 / - 13 ELSE NULL END / + + CAST ( NULL AS REAL ) AS col1
----
-7
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1625
SELECT - 40 DIV - 25 + + + 94 AS col1, 50
----
95
50

skipif mysql # not compatible
query II rowsort label-1625
SELECT - 40 / - 25 + + + 94 AS col1, 50
----
95
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT - - MIN( - 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-1626
SELECT - - MIN ( - 94 ) AS col1
----
-94

query II rowsort
SELECT - - 97 AS col1, 37
----
97
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT + 58 DIV - 6 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-1628
SELECT + 58 / - 6 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT ALL + 32 + - 17 * - COUNT( * ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL + 32 + - 17 * - COUNT ( * ) AS col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT - 7 DIV 42 * - 87
----
0

skipif mysql # not compatible
query I rowsort label-1630
SELECT - 7 / 42 * - 87
----
0

query I rowsort
SELECT DISTINCT + - NULLIF ( - - 83, 59 + 32 ) + 78 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT DISTINCT + 88 * - - COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT + 88 * - - COUNT ( * ) AS col1
----
88

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1635
SELECT ALL - + 71 + MIN( - 92 ) * - COUNT( - CAST( 43 AS SIGNED ) ) DIV - COUNT( * )
----
-163

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL - + 71 + MIN ( - 92 ) * - COUNT ( - CAST ( 43 AS INTEGER ) ) / - COUNT ( * )
----
-163

onlyif mysql # aggregate syntax: 
query II rowsort label-1636
SELECT - + MIN( - + 17 ) - + 5, - 47 AS col2
----
12
-47

skipif mysql # not compatible
query II rowsort label-1636
SELECT - + MIN ( - + 17 ) - + 5, - 47 AS col2
----
12
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT MAX( DISTINCT COALESCE ( + 52, + 42 ) )
----
52

skipif mysql # not compatible
query I rowsort label-1637
SELECT MAX ( DISTINCT COALESCE ( + 52, + 42 ) )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1638
SELECT - - 11 - - ( CAST( + COUNT( ALL 25 ) AS SIGNED ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1638
SELECT - - 11 - - ( CAST ( + COUNT ( ALL 25 ) AS INTEGER ) ) AS col2
----
12

query I rowsort
SELECT ALL + + 59 + + 77 + + 35 * + 23
----
941

query I rowsort
SELECT - + ( - - NULLIF ( + - 35, - 94 + + + 71 ) ) AS col0
----
35

query II rowsort
SELECT + 82, - NULLIF ( 35, + 94 ) AS col1
----
82
-35

query I rowsort
SELECT - 14 + + - 77 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT ALL + + MIN( DISTINCT - - 80 ) + 45 AS col1
----
125

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL + + MIN ( DISTINCT - - 80 ) + 45 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT DISTINCT - NULLIF ( + COUNT( * ), + + COUNT( * ) ) * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT - NULLIF ( + COUNT ( * ), + + COUNT ( * ) ) * + 26
----
NULL

query I rowsort
SELECT DISTINCT + 59 - + 81
----
-22

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

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

query II rowsort
SELECT - 6 + - 68, 15 - + 74 AS col1
----
-74
-59

query I rowsort
SELECT DISTINCT + 88 * - - 23
----
2024

onlyif mysql # DIV for integer division: 
query I rowsort label-1649
SELECT - 34 DIV ( - 25 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1649
SELECT - 34 / ( - 25 ) AS col2
----
1

query II rowsort
SELECT + 40 * 93 AS col0, 90 + 64 AS col2
----
3720
154

onlyif mysql # DIV for integer division: 
query I rowsort label-1651
SELECT - 38 DIV + 27 + - - 4
----
3

skipif mysql # not compatible
query I rowsort label-1651
SELECT - 38 / + 27 + - - 4
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT ALL + 97 * - MAX( ALL + 83 )
----
-8051

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL + 97 * - MAX ( ALL + 83 )
----
-8051

query I rowsort
SELECT ALL - 43 * + ( - ( ( + 74 ) ) ) col2
----
3182

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

query I rowsort
SELECT + 80 * 74
----
5920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1656
SELECT COUNT( * ) * + 43 DIV + NULLIF ( - 98, + COUNT( ALL 42 ) ) * + 17 + + 29 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1656
SELECT COUNT ( * ) * + 43 / + NULLIF ( - 98, + COUNT ( ALL 42 ) ) * + 17 + + 29 AS col1
----
29

query I rowsort
SELECT COALESCE ( + 56, 68 ) AS col1
----
56

query I rowsort
SELECT + - 90 * 5 + + + 37 * + + 45 + 3 * + 48 + 55
----
1414

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT ALL + - COUNT( * ) * - 36 * - 8 + + ( + 68 )
----
-220

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL + - COUNT ( * ) * - 36 * - 8 + + ( + 68 )
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT + + NULLIF ( 68, + 78 * + + MAX( + + 25 ) * + AVG ( ALL 30 ) * - + 63 * - 75 - 93 ) * - 76
----
-5168

skipif mysql # not compatible
query I rowsort label-1660
SELECT + + NULLIF ( 68, + 78 * + + MAX ( + + 25 ) * + AVG ( ALL 30 ) * - + 63 * - 75 - 93 ) * - 76
----
-5168

query I rowsort
SELECT + 68 + - ( 72 )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1662
SELECT DISTINCT - 19 * + 2 DIV + + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT - 19 * + 2 / + + 61 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1663
SELECT ALL 11 * - 37 * - 34 + 13 AS col1, + 32 DIV - + 24 + - 59 AS col2
----
13851
-60

skipif mysql # not compatible
query II rowsort label-1663
SELECT ALL 11 * - 37 * - 34 + 13 AS col1, + 32 / - + 24 + - 59 AS col2
----
13851
-60

query I rowsort
SELECT ALL - + 12 * + 54 + - + 23 AS col1
----
-671

query I rowsort
SELECT DISTINCT 56 * - - 69 AS col0
----
3864

query I rowsort
SELECT + 96 + - + 1
----
95

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1668
SELECT DISTINCT + ( 65 ) * + - 52 DIV + ( + ( + COUNT( ALL - + 55 ) ) )
----
-3380

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT + ( 65 ) * + - 52 / + ( + ( + COUNT ( ALL - + 55 ) ) )
----
-3380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1669
SELECT + - ( 23 ) * 28 + - + COUNT( * ) + + + ( + 65 ) + + 14 * + 56 * + 38 * - - 90 + 17 * - NULLIF ( + + 15, - 86 ) * + NULLIF ( - ( NULLIF ( + - 1, - ( + 46 ) ) ), - + MAX( 92 ) ) * - 4 * + CAST( - - 21 AS SIGNED ) AS col2
----
2702120

skipif mysql # not compatible
query I rowsort label-1669
SELECT + - ( 23 ) * 28 + - + COUNT ( * ) + + + ( + 65 ) + + 14 * + 56 * + 38 * - - 90 + 17 * - NULLIF ( + + 15, - 86 ) * + NULLIF ( - ( NULLIF ( + - 1, - ( + 46 ) ) ), - + MAX ( 92 ) ) * - 4 * + CAST ( - - 21 AS INTEGER ) AS col2
----
2702120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1670
SELECT COUNT( * ) * - 75 * 64 + + + 79 * 9 + + 46 + 14 + - COUNT( * ) * ( 54 ) * CAST( NULL AS SIGNED ) - - CASE + 80 WHEN + 40 THEN NULL ELSE + + AVG ( ALL 45 ) * + + 4 * + 55 END - - 8 col1, + COUNT( * ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1670
SELECT COUNT ( * ) * - 75 * 64 + + + 79 * 9 + + 46 + 14 + - COUNT ( * ) * ( 54 ) * CAST ( NULL AS INTEGER ) - - CASE + 80 WHEN + 40 THEN NULL ELSE + + AVG ( ALL 45 ) * + + 4 * + 55 END - - 8 col1, + COUNT ( * ) col1
----
NULL
1

query I rowsort
SELECT - 59 + + - 97
----
-156

query I rowsort
SELECT + 98 * - 77 AS col0
----
-7546

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT ALL + - 6 DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL + - 6 / + 49
----
0

query I rowsort
SELECT ALL 81 - + 46 AS col2
----
35

query I rowsort
SELECT ALL + ( 12 ) * 30 col2
----
360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1676
SELECT - CAST( NULL AS SIGNED ) * - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1676
SELECT - CAST ( NULL AS INTEGER ) * - 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1677
SELECT ALL 24 * - COUNT( - 99 ) AS col0, COUNT( * ) AS col2
----
-24
1

skipif mysql # not compatible
query II rowsort label-1677
SELECT ALL 24 * - COUNT ( - 99 ) AS col0, COUNT ( * ) AS col2
----
-24
1

query I rowsort
SELECT - 94 * + 32
----
-3008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1679
SELECT - 88 + 29 + - - CASE + 21 WHEN - + COUNT( + - 6 ) THEN NULL WHEN + - 78 + - + CAST( NULL AS SIGNED ) - - 66 + + - 60 + - - ( - 17 ) * + 93 * - 17 THEN NULL ELSE + 80 * + + 48 END
----
3781

skipif mysql # not compatible
query I rowsort label-1679
SELECT - 88 + 29 + - - CASE + 21 WHEN - + COUNT ( + - 6 ) THEN NULL WHEN + - 78 + - + CAST ( NULL AS INTEGER ) - - 66 + + - 60 + - - ( - 17 ) * + 93 * - 17 THEN NULL ELSE + 80 * + + 48 END
----
3781

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

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL + COUNT ( * ) - 75 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT + CASE COUNT( * ) WHEN - 79 * + + SUM( DISTINCT - 73 ) THEN NULL WHEN ( 67 ) THEN + 1 + + - 53 + + - 77 END * + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1681
SELECT + CASE COUNT ( * ) WHEN - 79 * + + SUM ( DISTINCT - 73 ) THEN NULL WHEN ( 67 ) THEN + 1 + + - 53 + + - 77 END * + + 63
----
NULL

query I rowsort
SELECT - 64 * 14
----
-896

query I rowsort
SELECT ALL ( 31 ) col0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1684
SELECT - 34 DIV + COUNT( ALL - 16 ) - - 27 + - 37 * - 52 + - 59 AS col1
----
1858

skipif mysql # not compatible
query I rowsort label-1684
SELECT - 34 / + COUNT ( ALL - 16 ) - - 27 + - 37 * - 52 + - 59 AS col1
----
1858

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1685
SELECT - 28 * CAST( NULL AS DECIMAL ) * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-1685
SELECT - 28 * CAST ( NULL AS REAL ) * - 76
----
NULL

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

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

query I rowsort
SELECT - 92 * 75
----
-6900

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT COUNT( * ) * - ( 15 ) + 95 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1688
SELECT COUNT ( * ) * - ( 15 ) + 95 AS col2
----
80

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

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT + COUNT ( DISTINCT ( - + 52 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1690
SELECT + 42 * - + CAST( NULL AS SIGNED ) * 14 + + - 27 + + + 15 * - 23 * 75 * + - 63 * + ( - CAST( NULL AS SIGNED ) ) - - ( + - 59 ) + COALESCE ( + 99, AVG ( + - 88 ) ) - + 87 * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-1690
SELECT + 42 * - + CAST ( NULL AS INTEGER ) * 14 + + - 27 + + + 15 * - 23 * 75 * + - 63 * + ( - CAST ( NULL AS INTEGER ) ) - - ( + - 59 ) + COALESCE ( + 99, AVG ( + - 88 ) ) - + 87 * - 58
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT ALL + ( - + 16 ) DIV + 64 + + ( + 3 ) * 88 + + 0
----
264

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL + ( - + 16 ) / + 64 + + ( + 3 ) * 88 + + 0
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT DISTINCT 9 DIV 7 - - 4 + - - 5 DIV - 50 + - 38 * + 79
----
-2997

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT 9 / 7 - - 4 + - - 5 / - 50 + - 38 * + 79
----
-2997

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1693
SELECT DISTINCT - - COUNT( * ) * - - 49 * - + COALESCE ( COUNT( * ), + 5 DIV - + 37 * 46 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT - - COUNT ( * ) * - - 49 * - + COALESCE ( COUNT ( * ), + 5 / - + 37 * 46 ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT ALL + 99 + - COUNT( * ) * - COALESCE ( 46, + - 0 * + 42 + 19 ) AS col1
----
145

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL + 99 + - COUNT ( * ) * - COALESCE ( 46, + - 0 * + 42 + 19 ) AS col1
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1695
SELECT - 89 * + - 6 * - CASE - COUNT( + + 28 ) WHEN - 3 + + 31 / + CAST( NULL AS SIGNED ) * COUNT( * ) * - + 38 * - - 48 * + 16 * + 28 THEN - 88 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT - 89 * + - 6 * - CASE - COUNT ( + + 28 ) WHEN - 3 + + 31 / + CAST ( NULL AS INTEGER ) * COUNT ( * ) * - + 38 * - - 48 * + 16 * + 28 THEN - 88 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT + 84 * - + MIN( ALL - 86 ) + - COUNT( * )
----
7223

skipif mysql # not compatible
query I rowsort label-1696
SELECT + 84 * - + MIN ( ALL - 86 ) + - COUNT ( * )
----
7223

onlyif mysql # aggregate syntax: 
query II rowsort label-1697
SELECT ALL - COUNT( * ) + - + 67 * - 90 col0, 59 + 45 AS col1
----
6029
104

skipif mysql # not compatible
query II rowsort label-1697
SELECT ALL - COUNT ( * ) + - + 67 * - 90 col0, 59 + 45 AS col1
----
6029
104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT COUNT( * ) * + - 31 + - + 17 col1
----
-48

skipif mysql # not compatible
query I rowsort label-1699
SELECT COUNT ( * ) * + - 31 + - + 17 col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1700
SELECT + CASE 69 WHEN - CAST( - - COUNT( * ) AS SIGNED ) * - + COUNT( * ) THEN NULL WHEN - ( + 73 ) * + 7 + - 43 THEN - COUNT( * ) + + ( 25 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1700
SELECT + CASE 69 WHEN - CAST ( - - COUNT ( * ) AS INTEGER ) * - + COUNT ( * ) THEN NULL WHEN - ( + 73 ) * + 7 + - 43 THEN - COUNT ( * ) + + ( 25 ) END AS col2
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT ALL - 97 * + 24 AS col0
----
-2328

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

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL + COUNT ( * ) - COUNT ( * ) * - - 11 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL + ( + 42 ) * + MAX( DISTINCT - 33 ) AS col0
----
-1386

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL + ( + 42 ) * + MAX ( DISTINCT - 33 ) AS col0
----
-1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1707
SELECT CASE + + MIN( ALL + + 58 ) WHEN - - AVG ( 82 ) / 98 + + - 84 * - 93 * + 25 * CAST( COUNT( * ) AS SIGNED ) THEN + COUNT( * ) / 28 + + ( + COUNT( * ) ) + + 27 + - - NULLIF ( + 62, 41 + + 28 ) ELSE NULL END * + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT CASE + + MIN ( ALL + + 58 ) WHEN - - AVG ( 82 ) / 98 + + - 84 * - 93 * + 25 * CAST ( COUNT ( * ) AS INTEGER ) THEN + COUNT ( * ) / 28 + + ( + COUNT ( * ) ) + + 27 + - - NULLIF ( + 62, 41 + + 28 ) ELSE NULL END * + + 18
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT COUNT( * ) - - 10 * + + 93
----
931

skipif mysql # not compatible
query I rowsort label-1709
SELECT COUNT ( * ) - - 10 * + + 93
----
931

onlyif mysql # aggregate syntax: 
query II rowsort label-1710
SELECT ALL 41, NULLIF ( - 57, + COUNT( * ) * - - 2 + 90 - + 44 * + 56 ) AS col1
----
41
-57

skipif mysql # not compatible
query II rowsort label-1710
SELECT ALL 41, NULLIF ( - 57, + COUNT ( * ) * - - 2 + 90 - + 44 * + 56 ) AS col1
----
41
-57

query I rowsort
SELECT 26 * - 92 * + 50 AS col2
----
-119600

query II rowsort
SELECT ALL 49 AS col1, 85 * - + 46 * - 90 * 45 AS col2
----
49
15835500

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT 9 + - COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1714
SELECT 9 + - COUNT ( * ) AS col2
----
8

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

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

query I rowsort
SELECT ALL - 43 * + 92 col0
----
-3956

onlyif mysql # DIV for integer division: 
query I rowsort label-1717
SELECT 16 DIV 63 * + 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1717
SELECT 16 / 63 * + 40 AS col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ( 38 ) * 42 * - COUNT( * )
----
-1596

skipif mysql # not compatible
query I rowsort label-1719
SELECT ( 38 ) * 42 * - COUNT ( * )
----
-1596

onlyif mysql # aggregate syntax: 
query II rowsort label-1720
SELECT DISTINCT 69 + + SUM( + - 82 ) + 83 * + + NULLIF ( - - 87, 93 ) + - - COUNT( * ) * - 82, - 16 AS col1
----
7126
-16

skipif mysql # not compatible
query II rowsort label-1720
SELECT DISTINCT 69 + + SUM ( + - 82 ) + 83 * + + NULLIF ( - - 87, 93 ) + - - COUNT ( * ) * - 82, - 16 AS col1
----
7126
-16

query II rowsort
SELECT DISTINCT 66 AS col1, 48 col2
----
66
48

query I rowsort
SELECT 6 + - COALESCE ( - + 73, ( + - 14 ) ) + + + 5 AS col0
----
84

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

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT 4 + COUNT ( * ) AS col2
----
5

query I rowsort
SELECT ALL ( 23 ) * + ( + 41 )
----
943

query II rowsort
SELECT + 28, 23 AS col2
----
28
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1726
SELECT 71 * - + 98 + - - NULLIF ( - CAST( - 3 AS SIGNED ), 13 ) col0
----
-6955

skipif mysql # not compatible
query I rowsort label-1726
SELECT 71 * - + 98 + - - NULLIF ( - CAST ( - 3 AS INTEGER ), 13 ) col0
----
-6955

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1728
SELECT - 91 DIV - - NULLIF ( + 87, + - CAST( 48 AS SIGNED ) + - 64 + - NULLIF ( - 51, 55 * 57 + - 2 ) + - 73 * - 37 - 60 * + + 87 * + - 85 ) + + + 42 AS col2, - 9 * 48 + 1
----
41
-431

skipif mysql # not compatible
query II rowsort label-1728
SELECT - 91 / - - NULLIF ( + 87, + - CAST ( 48 AS INTEGER ) + - 64 + - NULLIF ( - 51, 55 * 57 + - 2 ) + - 73 * - 37 - 60 * + + 87 * + - 85 ) + + + 42 AS col2, - 9 * 48 + 1
----
41
-431

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1730
SELECT SUM( + ( 26 ) ) + 60 + + CASE 77 WHEN + 48 * - COUNT( * ) - 99 * + COUNT( * ) / + - 66 + + 93 - 69 + - 44 * SUM( ALL 35 ) * - - 37 * - CAST( NULL AS SIGNED ) + + - 20 / - + 48 * MIN( - + 92 ) * + 97 * - 61 - 8 * + - 4 * + 93 * + 6 THEN - SUM( ALL - + 93 ) * + 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1730
SELECT SUM ( + ( 26 ) ) + 60 + + CASE 77 WHEN + 48 * - COUNT ( * ) - 99 * + COUNT ( * ) / + - 66 + + 93 - 69 + - 44 * SUM ( ALL 35 ) * - - 37 * - CAST ( NULL AS INTEGER ) + + - 20 / - + 48 * MIN ( - + 92 ) * + 97 * - 61 - 8 * + - 4 * + 93 * + 6 THEN - SUM ( ALL - + 93 ) * + 77 END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1732
SELECT ALL + + 57 * + CASE - 8 WHEN - CASE CAST( + 14 AS SIGNED ) WHEN + 57 THEN 9 ELSE - - NULLIF ( + - 5, - 9 ) END THEN 10 / + COUNT( * ) * 56 + 30 / + COALESCE ( + - 18, + + 92 * + 15 - + + 49 * + + 96 * - + 63 / + + 49, + COUNT( * ) ) + + MIN( + 48 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL + + 57 * + CASE - 8 WHEN - CASE CAST ( + 14 AS INTEGER ) WHEN + 57 THEN 9 ELSE - - NULLIF ( + - 5, - 9 ) END THEN 10 / + COUNT ( * ) * 56 + 30 / + COALESCE ( + - 18, + + 92 * + 15 - + + 49 * + + 96 * - + 63 / + + 49, + COUNT ( * ) ) + + MIN ( + 48 ) END AS col2
----
NULL

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

query I rowsort
SELECT ALL + 53 + - 90 AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1735
SELECT - 87 - - NULLIF ( - COALESCE ( + 54, - - 89 * - CAST( - COUNT( * ) AS SIGNED ) ), - 33 - - 35 - - CAST( - AVG ( 37 ) AS SIGNED ) + + ( - 65 ) )
----
-141

skipif mysql # not compatible
query I rowsort label-1735
SELECT - 87 - - NULLIF ( - COALESCE ( + 54, - - 89 * - CAST ( - COUNT ( * ) AS INTEGER ) ), - 33 - - 35 - - CAST ( - AVG ( 37 ) AS INTEGER ) + + ( - 65 ) )
----
-141

query II rowsort
SELECT DISTINCT - 72 AS col0, 12 AS col1
----
-72
12

query I rowsort
SELECT 31 + 19
----
50

query I rowsort
SELECT ALL - - 65 * + - 64 * + - 13 * + ( - - 71 ) col1
----
3839680

query I rowsort
SELECT 20 + + 38 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT + 53 + SUM( DISTINCT + + 49 ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-1740
SELECT + 53 + SUM ( DISTINCT + + 49 ) AS col1
----
102

query I rowsort
SELECT DISTINCT - + ( - - 66 ) * - 50 + 67 * + 90
----
9330

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT ALL - COALESCE ( 66, + 53, - COALESCE ( - + 30, 28 - - COUNT( * ) ) )
----
-66

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL - COALESCE ( 66, + 53, - COALESCE ( - + 30, 28 - - COUNT ( * ) ) )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1743
SELECT + + 30 * - ( + MIN( + 62 ) ) + - 34 + - + 56 + - NULLIF ( + + ( - CASE + 68 WHEN + - 48 THEN NULL ELSE + 23 END ), + 24 / - 3 + + + 84 / + 98 + 86 + 16 + - - 43 * 70 / 34 + + - 11 + + + CAST( - - 98 AS SIGNED ) ) + + 60 AS col2
----
-1867

skipif mysql # not compatible
query I rowsort label-1743
SELECT + + 30 * - ( + MIN ( + 62 ) ) + - 34 + - + 56 + - NULLIF ( + + ( - CASE + 68 WHEN + - 48 THEN NULL ELSE + 23 END ), + 24 / - 3 + + + 84 / + 98 + 86 + 16 + - - 43 * 70 / 34 + + - 11 + + + CAST ( - - 98 AS INTEGER ) ) + + 60 AS col2
----
-1867

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1744
SELECT 37 * - 86 * + ( + CAST( NULL AS SIGNED ) ) / - - 69 + + NULLIF ( CAST( + - 80 AS SIGNED ), - CAST( - - NULLIF ( + + 61, + 6 ) AS DECIMAL ) ) * - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1744
SELECT 37 * - 86 * + ( + CAST ( NULL AS INTEGER ) ) / - - 69 + + NULLIF ( CAST ( + - 80 AS INTEGER ), - CAST ( - - NULLIF ( + + 61, + 6 ) AS REAL ) ) * - - 63
----
NULL

query I rowsort
SELECT ALL + ( - + 4 ) * 17 * + ( 52 )
----
-3536

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT 92 * - 19 - ( - COUNT( 82 ) ) / - CASE ( + + COUNT( * ) ) WHEN COUNT( 79 ) * + - COUNT( * ) THEN + COUNT( * ) * + 79 WHEN + NULLIF ( - 65, + 54 + COALESCE ( - 50, + 53 ) ) THEN + - 53 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1746
SELECT 92 * - 19 - ( - COUNT ( 82 ) ) / - CASE ( + + COUNT ( * ) ) WHEN COUNT ( 79 ) * + - COUNT ( * ) THEN + COUNT ( * ) * + 79 WHEN + NULLIF ( - 65, + 54 + COALESCE ( - 50, + 53 ) ) THEN + - 53 END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1747
SELECT ALL COALESCE ( - SUM( DISTINCT - - 34 ), 10 * - COUNT( * ) + ( - 25 ), - 11 ) DIV + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL COALESCE ( - SUM ( DISTINCT - - 34 ), 10 * - COUNT ( * ) + ( - 25 ), - 11 ) / + 67 AS col2
----
0

query I rowsort
SELECT ( - + 76 ) * + 89 * + 85
----
-574940

query II rowsort
SELECT ALL - 12 col2, 17 AS col1
----
-12
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT DISTINCT MIN( ALL 97 )
----
97

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT MIN ( ALL 97 )
----
97

query I rowsort
SELECT ( + 23 ) + - + 32 * 39 - - 61
----
-1164

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT DISTINCT - SUM( - - 95 ) * + 56 * - - 31 AS col2
----
-164920

skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT - SUM ( - - 95 ) * + 56 * - - 31 AS col2
----
-164920

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT DISTINCT 82 + + - 71 * - COUNT( * ) col1
----
153

skipif mysql # not compatible
query I rowsort label-1753
SELECT DISTINCT 82 + + - 71 * - COUNT ( * ) col1
----
153

query I rowsort
SELECT 19 * - - ( + + 39 ) AS col1
----
741

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1755
SELECT ALL 17 + + COUNT( - 81 ) + - 87 DIV + MIN( - 49 )
----
19

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL 17 + + COUNT ( - 81 ) + - 87 / + MIN ( - 49 )
----
19

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

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL ( - + COUNT ( * ) ) + + 28 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1757
SELECT COALESCE ( + - COUNT( * ), + CAST( - 78 AS SIGNED ) DIV CAST( 45 AS SIGNED ), + 34 * 14 ) + - - ( - CAST( 42 AS SIGNED ) ) + - 29 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-1757
SELECT COALESCE ( + - COUNT ( * ), + CAST ( - 78 AS INTEGER ) / CAST ( 45 AS INTEGER ), + 34 * 14 ) + - - ( - CAST ( 42 AS INTEGER ) ) + - 29 AS col1
----
-72

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

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

query I rowsort
SELECT 51 + + + 1 * - + 63
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT ALL 81 + 83 - NULLIF ( - 13, + COALESCE ( - COUNT( * ), - 49 * + + COUNT( * ) ) * - 22 ) * - + MAX( 49 ) col0
----
-473

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL 81 + 83 - NULLIF ( - 13, + COALESCE ( - COUNT ( * ), - 49 * + + COUNT ( * ) ) * - 22 ) * - + MAX ( 49 ) col0
----
-473

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1761
SELECT ALL 16 + + + 93 + + 96 + - - 12 * + + AVG ( + - 93 ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL 16 + + + 93 + + 96 + - - 12 * + + AVG ( + - 93 ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1762
SELECT 41 DIV COUNT( DISTINCT - 43 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-1762
SELECT 41 / COUNT ( DISTINCT - 43 ) AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1763
SELECT DISTINCT 62 DIV COUNT( * ) AS col0, 87 AS col0
----
62
87

skipif mysql # not compatible
query II rowsort label-1763
SELECT DISTINCT 62 / COUNT ( * ) AS col0, 87 AS col0
----
62
87

query II rowsort
SELECT DISTINCT 68 * + 35, + 59 + 37 AS col0
----
2380
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1765
SELECT + 62 * - - 10 - - ( CAST( + + ( 96 ) AS SIGNED ) ) + - 47 DIV + 76 AS col0, + NULLIF ( COUNT( * ), - + 38 * + - 19 ) DIV - CAST( + COUNT( * ) AS SIGNED ) + - COALESCE ( + 45, - - 76, 36 + - 66 )
----
716
-46

skipif mysql # not compatible
query II rowsort label-1765
SELECT + 62 * - - 10 - - ( CAST ( + + ( 96 ) AS INTEGER ) ) + - 47 / + 76 AS col0, + NULLIF ( COUNT ( * ), - + 38 * + - 19 ) / - CAST ( + COUNT ( * ) AS INTEGER ) + - COALESCE ( + 45, - - 76, 36 + - 66 )
----
716
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT ALL + CASE + COUNT( * ) WHEN COUNT( * ) THEN 67 ELSE NULL END
----
67

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL + CASE + COUNT ( * ) WHEN COUNT ( * ) THEN 67 ELSE NULL END
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT - - COUNT( * ) + - - NULLIF ( - 73, - + 66 )
----
-72

skipif mysql # not compatible
query I rowsort label-1767
SELECT - - COUNT ( * ) + - - NULLIF ( - 73, - + 66 )
----
-72

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1769
SELECT + NULLIF ( 0, + 57 * 12 * - + 75 + + 45 + 81 ), - COUNT( * ) * - NULLIF ( - 97, + CAST( - ( + 38 ) AS DECIMAL ) - - 60 ) + - + 75 AS col1
----
0
-172

skipif mysql # not compatible
query II rowsort label-1769
SELECT + NULLIF ( 0, + 57 * 12 * - + 75 + + 45 + 81 ), - COUNT ( * ) * - NULLIF ( - 97, + CAST ( - ( + 38 ) AS REAL ) - - 60 ) + - + 75 AS col1
----
0
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT DISTINCT + COUNT( * ) * - MAX( - 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT + COUNT ( * ) * - MAX ( - 15 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT DISTINCT - 64 * + NULLIF ( - - COUNT( * ), + - 67 + + 3 + + - 43 * 20 * 9 * - 78 ) - - 3
----
-61

skipif mysql # not compatible
query I rowsort label-1771
SELECT DISTINCT - 64 * + NULLIF ( - - COUNT ( * ), + - 67 + + 3 + + - 43 * 20 * 9 * - 78 ) - - 3
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1772
SELECT ALL + - MAX( + 52 ), 0 * - 33 DIV + 43 AS col2
----
-52
0

skipif mysql # not compatible
query II rowsort label-1772
SELECT ALL + - MAX ( + 52 ), 0 * - 33 / + 43 AS col2
----
-52
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1773
SELECT + COUNT( * ) * 60 * - 93 + - + CAST( - 64 AS SIGNED )
----
-5516

skipif mysql # not compatible
query I rowsort label-1773
SELECT + COUNT ( * ) * 60 * - 93 + - + CAST ( - 64 AS INTEGER )
----
-5516

query I rowsort
SELECT - 24 * + + 67
----
-1608

query I rowsort
SELECT - 35 - 28
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-1776
SELECT ALL COALESCE ( COUNT( * ), 56 + + 53 + + + 3 + + + COUNT( * ) ), - 5 AS col1
----
1
-5

skipif mysql # not compatible
query II rowsort label-1776
SELECT ALL COALESCE ( COUNT ( * ), 56 + + 53 + + + 3 + + + COUNT ( * ) ), - 5 AS col1
----
1
-5

query I rowsort
SELECT DISTINCT - 70 + + - 71
----
-141

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

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

query II rowsort
SELECT 26 AS col1, + 64 * + 67 AS col2
----
26
4288

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT + 6 + - - 93 * + ( + 35 ) + - - MAX( - 53 ) * 87 * + - 36
----
169257

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT + 6 + - - 93 * + ( + 35 ) + - - MAX ( - 53 ) * 87 * + - 36
----
169257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1781
SELECT DISTINCT + SUM( - 29 ) + - - 14 + 8 DIV + + CAST( 94 AS SIGNED ) + - ( - 24 ) DIV - - 28
----
-15

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT + SUM ( - 29 ) + - - 14 + 8 / + + CAST ( 94 AS INTEGER ) + - ( - 24 ) / - - 28
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1782
SELECT DISTINCT CASE + - 80 WHEN 35 THEN - + 38 WHEN 77 / - MIN( ALL 57 ) THEN 83 * - 94 + + - 2 * ( + AVG ( ALL + 6 ) ) + + 22 + + + CAST( NULL AS SIGNED ) ELSE + - CASE WHEN NOT ( NULL ) IS NULL THEN + - COUNT( * ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT CASE + - 80 WHEN 35 THEN - + 38 WHEN 77 / - MIN ( ALL 57 ) THEN 83 * - 94 + + - 2 * ( + AVG ( ALL + 6 ) ) + + 22 + + + CAST ( NULL AS INTEGER ) ELSE + - CASE WHEN NOT ( NULL ) IS NULL THEN + - COUNT ( * ) END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1783
SELECT ALL COALESCE ( - CAST( 92 AS SIGNED ), - - 30 DIV - COUNT( * ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL COALESCE ( - CAST ( 92 AS INTEGER ), - - 30 / - COUNT ( * ) ) AS col1
----
-92

query I rowsort
SELECT - 52 + + 61 * 48
----
2876

query I rowsort
SELECT DISTINCT ( + - 42 ) AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1786
SELECT DISTINCT + ( + 14 ) + + + CASE - COALESCE ( - MIN( DISTINCT + 97 ), ( + COUNT( * ) ) + - + 47 ) WHEN + 9 * - 28 + + 93 + 62 * COUNT( * ) THEN + - 4 WHEN - CAST( NULL AS SIGNED ) + 70 * + SUM( + 42 ) THEN NULL ELSE + - 25 * + COUNT( * ) * + 16 + 15 * - 10 * 58 + COUNT( - 29 ) END + 51 / + 74 - - 45 + 62 - + CASE 14 WHEN 46 THEN ( + 87 ) + - 82 WHEN + 34 THEN NULL WHEN - 56 + + 2 THEN + 48 / - 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT + ( + 14 ) + + + CASE - COALESCE ( - MIN ( DISTINCT + 97 ), ( + COUNT ( * ) ) + - + 47 ) WHEN + 9 * - 28 + + 93 + 62 * COUNT ( * ) THEN + - 4 WHEN - CAST ( NULL AS INTEGER ) + 70 * + SUM ( + 42 ) THEN NULL ELSE + - 25 * + COUNT ( * ) * + 16 + 15 * - 10 * 58 + COUNT ( - 29 ) END + 51 / + 74 - - 45 + 62 - + CASE 14 WHEN 46 THEN ( + 87 ) + - 82 WHEN + 34 THEN NULL WHEN - 56 + + 2 THEN + 48 / - 95 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1787
SELECT ALL - COUNT( ALL 97 ) + + COUNT( * ) col2, + ( - 17 ) + + + 87
----
0
70

skipif mysql # not compatible
query II rowsort label-1787
SELECT ALL - COUNT ( ALL 97 ) + + COUNT ( * ) col2, + ( - 17 ) + + + 87
----
0
70

query I rowsort
SELECT - 63 * 13 AS col2
----
-819

query I rowsort
SELECT - 22 + - ( ( + 27 ) ) AS col2
----
-49

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

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL + COUNT ( * ) + + 4 AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1791
SELECT ALL 10 * ( + - COUNT( * ) ), ( 12 ) AS col1
----
-10
12

skipif mysql # not compatible
query II rowsort label-1791
SELECT ALL 10 * ( + - COUNT ( * ) ), ( 12 ) AS col1
----
-10
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT DISTINCT - COUNT( * ) * 50 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT - COUNT ( * ) * 50 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT DISTINCT + 0 - + + CASE 89 WHEN + 11 THEN - ( - - 26 ) ELSE + COUNT( * ) * - 27 + - - NULLIF ( - - 11, + CASE WHEN NOT 52 IS NOT NULL THEN + 98 * + 9 ELSE NULL END ) - + 91 END + - 88 * - 77 * + 96 AS col2
----
650603

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT + 0 - + + CASE 89 WHEN + 11 THEN - ( - - 26 ) ELSE + COUNT ( * ) * - 27 + - - NULLIF ( - - 11, + CASE WHEN NOT 52 IS NOT NULL THEN + 98 * + 9 ELSE NULL END ) - + 91 END + - 88 * - 77 * + 96 AS col2
----
650603

query I rowsort
SELECT ALL + 42 * + 82
----
3444

query I rowsort
SELECT - + ( - + 99 ) + + - 77 AS col2
----
22

query II rowsort
SELECT - - 11 AS col1, 38 + 46
----
11
84

query I rowsort
SELECT + + 73 + - 57 AS col1
----
16

query II rowsort
SELECT + 28 AS col2, 68 * - 22 AS col0
----
28
-1496

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT + 52 * COUNT( * ) * 20 + + - 10 * - + COUNT( * ) col2
----
1050

skipif mysql # not compatible
query I rowsort label-1799
SELECT + 52 * COUNT ( * ) * 20 + + - 10 * - + COUNT ( * ) col2
----
1050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1800
SELECT + - COALESCE ( + 56, - 34, + CAST( NULL AS SIGNED ) ) * 70 * COUNT( ALL 71 ) + - + 63 + - 32 * - 15 * + 63, 6 AS col1
----
26257
6

skipif mysql # not compatible
query II rowsort label-1800
SELECT + - COALESCE ( + 56, - 34, + CAST ( NULL AS INTEGER ) ) * 70 * COUNT ( ALL 71 ) + - + 63 + - 32 * - 15 * + 63, 6 AS col1
----
26257
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1801
SELECT DISTINCT - ( COALESCE ( - + 90, - - 97 ) ) DIV + 38 DIV COALESCE ( COUNT( * ), 50, 29 + + NULLIF ( + COALESCE ( + + 34, 7 + + - 68 * + 99 ), + 97 * - - 46 ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT - ( COALESCE ( - + 90, - - 97 ) ) / + 38 / COALESCE ( COUNT ( * ), 50, 29 + + NULLIF ( + COALESCE ( + + 34, 7 + + - 68 * + 99 ), + 97 * - - 46 ) ) AS col1
----
2

query II rowsort
SELECT ALL + 93 AS col2, 39 AS col1
----
93
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1803
SELECT + - COALESCE ( + ( + + 13 ), + 71 * COALESCE ( 12, - + 56 + + 66 ) ) + + 38 + - - NULLIF ( 81, - 96 * - CAST( - 61 AS SIGNED ) + - 34 )
----
106

skipif mysql # not compatible
query I rowsort label-1803
SELECT + - COALESCE ( + ( + + 13 ), + 71 * COALESCE ( 12, - + 56 + + 66 ) ) + + 38 + - - NULLIF ( 81, - 96 * - CAST ( - 61 AS INTEGER ) + - 34 )
----
106

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1804
SELECT ALL - 15 DIV + CAST( - - 23 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL - 15 / + CAST ( - - 23 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1805
SELECT DISTINCT 41 DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT 41 / + 39
----
1

query I rowsort
SELECT + 76 * 88 + - 64 AS col2
----
6624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1807
SELECT + - ( - + 75 ) DIV - - 18 * - COUNT( * ) + - 52
----
-56

skipif mysql # not compatible
query I rowsort label-1807
SELECT + - ( - + 75 ) / - - 18 * - COUNT ( * ) + - 52
----
-56

query I rowsort
SELECT ALL - 66 * 49
----
-3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1809
SELECT - CASE + 13 WHEN + + COALESCE ( + 69, + + NULLIF ( - 84, 21 ) ) THEN 89 END * + 98 + - 13 + + + CAST( NULL AS SIGNED ) * - COUNT( * ) + + 49 + - ( - + NULLIF ( + + COUNT( * ), + COUNT( + 15 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT - CASE + 13 WHEN + + COALESCE ( + 69, + + NULLIF ( - 84, 21 ) ) THEN 89 END * + 98 + - 13 + + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 49 + - ( - + NULLIF ( + + COUNT ( * ), + COUNT ( + 15 ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1810
SELECT ALL + + NULLIF ( + + 90, + 50 ) * - - 98 + 22 / + 29 * + ( - - CASE + - NULLIF ( 54, COUNT( * ) + 56 * + - 58 ) WHEN - + NULLIF ( + + 42, - CAST( + CAST( + 49 AS SIGNED ) AS SIGNED ) ) THEN - 21 ELSE NULL END ) * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL + + NULLIF ( + + 90, + 50 ) * - - 98 + 22 / + 29 * + ( - - CASE + - NULLIF ( 54, COUNT ( * ) + 56 * + - 58 ) WHEN - + NULLIF ( + + 42, - CAST ( + CAST ( + 49 AS INTEGER ) AS INTEGER ) ) THEN - 21 ELSE NULL END ) * 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT - COUNT( * ) + + 70 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-1811
SELECT - COUNT ( * ) + + 70 AS col0
----
69

query I rowsort
SELECT ALL - 97 * - ( 20 ) + + ( - 63 ) + 85 AS col0
----
1962

query I rowsort
SELECT 20 * 96 + - 67 + + 95 - + 44 * + 28 * 0 AS col1
----
1948

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

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

query I rowsort
SELECT ALL - ( + + 99 ) * - 10 / + - CASE - 29 WHEN 13 THEN 47 + 25 + - 67 END + 19 + 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1816
SELECT COALESCE ( - COUNT( * ), + 67 + + 48 DIV - + 99, - COUNT( * ), - CAST( NULL AS SIGNED ) + - ( COUNT( DISTINCT + - 12 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1816
SELECT COALESCE ( - COUNT ( * ), + 67 + + 48 / - + 99, - COUNT ( * ), - CAST ( NULL AS INTEGER ) + - ( COUNT ( DISTINCT + - 12 ) ) ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1817
SELECT - 82 + ( + 23 ) DIV + 27
----
-82

skipif mysql # not compatible
query I rowsort label-1817
SELECT - 82 + ( + 23 ) / + 27
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1818
SELECT ALL COALESCE ( - - 7, 81 + + + 76, + 0 * - 37 + + - 19 + + 51 DIV - - 12 DIV - 13 * - - COALESCE ( 51, 89, 30 * - + 59 + - - 69, 40 ) + - 3 + - 79 * + 51 * - + 80 )
----
7

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL COALESCE ( - - 7, 81 + + + 76, + 0 * - 37 + + - 19 + + 51 / - - 12 / - 13 * - - COALESCE ( 51, 89, 30 * - + 59 + - - 69, 40 ) + - 3 + - 79 * + 51 * - + 80 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1819
SELECT - CAST( - 1 AS SIGNED ) AS col2, 7 * - - 97
----
1
679

skipif mysql # not compatible
query II rowsort label-1819
SELECT - CAST ( - 1 AS INTEGER ) AS col2, 7 * - - 97
----
1
679

query I rowsort
SELECT 20 * + + 52 + + 76
----
1116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1821
SELECT ALL - 54 * - + 28 + - + 16 + - + MAX( - - 87 ) + - - COUNT( * ) * - + COUNT( * ) * - + MIN( + 81 ) DIV 24
----
1412

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL - 54 * - + 28 + - + 16 + - + MAX ( - - 87 ) + - - COUNT ( * ) * - + COUNT ( * ) * - + MIN ( + 81 ) / 24
----
1412

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1823
SELECT DISTINCT + 3 + - COUNT( 91 ) + 90 AS col1, 51 * - CAST( NULL AS SIGNED ) AS col1
----
92
NULL

skipif mysql # not compatible
query II rowsort label-1823
SELECT DISTINCT + 3 + - COUNT ( 91 ) + 90 AS col1, 51 * - CAST ( NULL AS INTEGER ) AS col1
----
92
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1824
SELECT 44 DIV + 70 AS col2, + 31
----
0
31

skipif mysql # not compatible
query II rowsort label-1824
SELECT 44 / + 70 AS col2, + 31
----
0
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1825
SELECT 50 * MIN( + - 43 ) * - COUNT( * ), - 96 * - + COUNT( * ) AS col2
----
2150
96

skipif mysql # not compatible
query II rowsort label-1825
SELECT 50 * MIN ( + - 43 ) * - COUNT ( * ), - 96 * - + COUNT ( * ) AS col2
----
2150
96

query I rowsort
SELECT ALL - 21 - + - ( - 8 )
----
-29

query I rowsort
SELECT 40 * - - 1 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1828
SELECT ALL - CASE - 66 WHEN + SUM( DISTINCT + - 90 ) * - + 19 * + 67 THEN + + 12 WHEN + + 4 THEN + COUNT( * ) + 62 + + CAST( + 96 AS SIGNED ) / + COALESCE ( 79, + + COUNT( * ), + - 84 * + CASE - 11 WHEN + MIN( + 39 ) THEN NULL WHEN 85 THEN - MIN( - - 26 ) WHEN - AVG ( DISTINCT ( + 33 ) ) * + + 30 * + - 42 / - COUNT( * ) + - + 50 + + 64 + + + MIN( - 16 ) THEN + 69 ELSE - 33 END / 76 + - COUNT( * ) * COUNT( * ), 51 * COALESCE ( + 82, 62 ) ) + 47 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL - CASE - 66 WHEN + SUM ( DISTINCT + - 90 ) * - + 19 * + 67 THEN + + 12 WHEN + + 4 THEN + COUNT ( * ) + 62 + + CAST ( + 96 AS INTEGER ) / + COALESCE ( 79, + + COUNT ( * ), + - 84 * + CASE - 11 WHEN + MIN ( + 39 ) THEN NULL WHEN 85 THEN - MIN ( - - 26 ) WHEN - AVG ( DISTINCT ( + 33 ) ) * + + 30 * + - 42 / - COUNT ( * ) + - + 50 + + 64 + + + MIN ( - 16 ) THEN + 69 ELSE - 33 END / 76 + - COUNT ( * ) * COUNT ( * ), 51 * COALESCE ( + 82, 62 ) ) + 47 END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL + COUNT ( * ) / + 35
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1830
SELECT 29 DIV 1, 62 DIV CASE + COUNT( * ) WHEN - 43 DIV 75 DIV - AVG ( DISTINCT + + 53 ) + 95 THEN - 66 END DIV + + 44 AS col0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-1830
SELECT 29 / 1, 62 / CASE + COUNT ( * ) WHEN - 43 / 75 / - AVG ( DISTINCT + + 53 ) + 95 THEN - 66 END / + + 44 AS col0
----
29
NULL

query II rowsort
SELECT - NULLIF ( + 54, 10 ) - + + 81 AS col2, 78 col0
----
-135
78

query I rowsort
SELECT + ( + 20 ) AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1833
SELECT ALL - + CASE WHEN COUNT( * ) NOT BETWEEN + 64 AND + 93 THEN - 48 + - CASE - CAST( 29 AS SIGNED ) WHEN + NULLIF ( - 57, + 7 - - 65 ) * COUNT( * ) + - 6 * + + 92 - + + 51 / - AVG ( - ( + - 69 ) ) + + 42 + + 81 THEN NULL ELSE - 56 + + CAST( - COUNT( * ) AS SIGNED ) + NULLIF ( - + 21, - - 46 + - CASE - 2 WHEN - + 30 THEN + SUM( ALL 16 ) + + + 51 * 97 ELSE - 73 END * CAST( ( CASE + 3 WHEN AVG ( + 11 ) / ( 72 ) THEN NULL WHEN 68 THEN + SUM( DISTINCT 28 ) * CAST( NULL AS DECIMAL ) END ) * COUNT( * ) AS SIGNED ) ) END - + 50 ELSE + 33 * - 47 END col0
----
20

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL - + CASE WHEN COUNT ( * ) NOT BETWEEN + 64 AND + 93 THEN - 48 + - CASE - CAST ( 29 AS INTEGER ) WHEN + NULLIF ( - 57, + 7 - - 65 ) * COUNT ( * ) + - 6 * + + 92 - + + 51 / - AVG ( - ( + - 69 ) ) + + 42 + + 81 THEN NULL ELSE - 56 + + CAST ( - COUNT ( * ) AS INTEGER ) + NULLIF ( - + 21, - - 46 + - CASE - 2 WHEN - + 30 THEN + SUM ( ALL 16 ) + + + 51 * 97 ELSE - 73 END * CAST ( ( CASE + 3 WHEN AVG ( + 11 ) / ( 72 ) THEN NULL WHEN 68 THEN + SUM ( DISTINCT 28 ) * CAST ( NULL AS REAL ) END ) * COUNT ( * ) AS INTEGER ) ) END - + 50 ELSE + 33 * - 47 END col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1834
SELECT ALL + 70 * + - COALESCE ( + COUNT( * ), 40, 54 ) - 58 DIV CASE - - 75 WHEN + ( + + 77 ) * + + 49 THEN - + 87 WHEN - ( - CAST( + 98 AS DECIMAL ) ) - + + COUNT( * ) THEN NULL ELSE + 57 * + COUNT( * ) + + - 47 END * 24 - + 3 AS col2
----
-193

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL + 70 * + - COALESCE ( + COUNT ( * ), 40, 54 ) - 58 / CASE - - 75 WHEN + ( + + 77 ) * + + 49 THEN - + 87 WHEN - ( - CAST ( + 98 AS REAL ) ) - + + COUNT ( * ) THEN NULL ELSE + 57 * + COUNT ( * ) + + - 47 END * 24 - + 3 AS col2
----
-193

query I rowsort
SELECT - 99 * - 73 * 20 AS col1
----
144540

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

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

query I rowsort
SELECT DISTINCT + - 3 + - + 38 AS col2
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1838
SELECT - 96 * - 13 * + ( + 58 ) * + - NULLIF ( 59, - - 75 * - 14 ) + + + 45 + - - 0 * - 21 + - + 60 * - - ( CAST( - 77 AS SIGNED ) ) + + 84 AS col2
----
-4265907

skipif mysql # not compatible
query I rowsort label-1838
SELECT - 96 * - 13 * + ( + 58 ) * + - NULLIF ( 59, - - 75 * - 14 ) + + + 45 + - - 0 * - 21 + - + 60 * - - ( CAST ( - 77 AS INTEGER ) ) + + 84 AS col2
----
-4265907

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

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT - - CASE + + CAST ( - COUNT ( * ) AS INTEGER ) WHEN 9 THEN - 11 END col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT DISTINCT + 76 + - 49 + + + MIN( ALL + + 90 ) + 27 + + COUNT( * )
----
145

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT + 76 + - 49 + + + MIN ( ALL + + 90 ) + 27 + + COUNT ( * )
----
145

query I rowsort
SELECT + 62 * + 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1843
SELECT DISTINCT CAST( NULL AS SIGNED ) + COALESCE ( + COUNT( * ), - 61 + + 93 ), 53 AS col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-1843
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COALESCE ( + COUNT ( * ), - 61 + + 93 ), 53 AS col1
----
NULL
53

query I rowsort
SELECT ALL ( + - 83 ) + + 73
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT SUM( ALL - 93 ) + + 77 * + 42 * + 6 + - 24
----
19287

skipif mysql # not compatible
query I rowsort label-1845
SELECT SUM ( ALL - 93 ) + + 77 * + 42 * + 6 + - 24
----
19287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1846
SELECT CAST( NULL AS SIGNED ) * NULLIF ( 10, - ( + ( CAST( + - 40 AS DECIMAL ) ) ) ) / - COUNT( * ) * + ( + 27 ) + - NULLIF ( COUNT( * ), - - 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1846
SELECT CAST ( NULL AS INTEGER ) * NULLIF ( 10, - ( + ( CAST ( + - 40 AS REAL ) ) ) ) / - COUNT ( * ) * + ( + 27 ) + - NULLIF ( COUNT ( * ), - - 95 )
----
NULL

query I rowsort
SELECT 25 * + 9 + + - 92 + 27 + + - 24 + + - 57 * + - 71 AS col2
----
4183

onlyif mysql # aggregate syntax: 
query II rowsort label-1848
SELECT ALL MIN( - 46 ) + + + 42 * + - 53 * - ( 63 ) AS col2, - 66 * - - NULLIF ( + + 24, AVG ( - 29 ) / NULLIF ( - - ( 26 ), + - 27 ) * - 34 )
----
140192
-1584

skipif mysql # not compatible
query II rowsort label-1848
SELECT ALL MIN ( - 46 ) + + + 42 * + - 53 * - ( 63 ) AS col2, - 66 * - - NULLIF ( + + 24, AVG ( - 29 ) / NULLIF ( - - ( 26 ), + - 27 ) * - 34 )
----
140192
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ( + 30 ) + MAX( DISTINCT - 45 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-1849
SELECT ( + 30 ) + MAX ( DISTINCT - 45 ) AS col2
----
-15

query I rowsort
SELECT 52 * - 85 - - 40
----
-4380

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT 60 * - COUNT( + + 37 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-1851
SELECT 60 * - COUNT ( + + 37 ) AS col0
----
-60

query I rowsort
SELECT DISTINCT 70 - + 11 AS col1
----
59

query II rowsort
SELECT 44 + - 62 - + + 97 AS col2, 3 * + - 17
----
-115
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1854
SELECT ALL + 90 - COUNT( * ) + - 88 + - 70 + - - COALESCE ( - 41, 80, + - 59 + + CASE - - CAST( NULL AS SIGNED ) WHEN + + 24 THEN + - 23 END + - 49 ) - - - 40 * ( - 49 ) * - 57 * 91
----
-10166630

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL + 90 - COUNT ( * ) + - 88 + - 70 + - - COALESCE ( - 41, 80, + - 59 + + CASE - - CAST ( NULL AS INTEGER ) WHEN + + 24 THEN + - 23 END + - 49 ) - - - 40 * ( - 49 ) * - 57 * 91
----
-10166630

query I rowsort
SELECT ( - 20 ) * - + 50
----
1000

onlyif mysql # DIV for integer division: 
query I rowsort label-1856
SELECT 34 + + 33 + + 97 DIV - 40 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1856
SELECT 34 + + 33 + + 97 / - 40 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT 69 - - 94 * + COUNT( * ) AS col0
----
163

skipif mysql # not compatible
query I rowsort label-1857
SELECT 69 - - 94 * + COUNT ( * ) AS col0
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT ( + COALESCE ( + ( - 17 ), - - 55 + 92 + + COUNT( * ) * 72, + - 60 + + NULLIF ( + 0, COALESCE ( - - CASE + AVG ( 94 ) WHEN 52 + 56 + 95 THEN + SUM( 1 ) END, - - 15 * + 28 ) * - 34 ) + + 58 * + ( + + 30 ) ) ) + 93 * - + SUM( - 14 ) * + + 23 * 27 * - 36 + - 59 + + 34 AS col0
----
-29107554

skipif mysql # not compatible
query I rowsort label-1858
SELECT ( + COALESCE ( + ( - 17 ), - - 55 + 92 + + COUNT ( * ) * 72, + - 60 + + NULLIF ( + 0, COALESCE ( - - CASE + AVG ( 94 ) WHEN 52 + 56 + 95 THEN + SUM ( 1 ) END, - - 15 * + 28 ) * - 34 ) + + 58 * + ( + + 30 ) ) ) + 93 * - + SUM ( - 14 ) * + + 23 * 27 * - 36 + - 59 + + 34 AS col0
----
-29107554

query I rowsort
SELECT 79 + 48
----
127

query I rowsort
SELECT ALL 51 * - 15
----
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ( + + ( - - COUNT( ALL - 80 ) ) ) * - - 98
----
98

skipif mysql # not compatible
query I rowsort label-1861
SELECT ( + + ( - - COUNT ( ALL - 80 ) ) ) * - - 98
----
98

query I rowsort
SELECT 88 + 51 AS col1
----
139

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1864
SELECT DISTINCT 69 DIV - COUNT( * ) + 31 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT 69 / - COUNT ( * ) + 31 AS col0
----
-38

query I rowsort
SELECT 43 + + 53 + + 44 + + - 20 * + 20 AS col0
----
-260

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

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

query I rowsort
SELECT ( 72 ) * 49 AS col0
----
3528

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

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

query I rowsort
SELECT DISTINCT 96 * 52 * NULLIF ( + ( + 99 ), 43 ) + - 99
----
494109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1870
SELECT DISTINCT CASE - - 97 WHEN - 59 THEN NULL ELSE - + 37 - + 0 + CAST( - COUNT( * ) AS SIGNED ) * + - 66 * - 24 END
----
-1621

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT CASE - - 97 WHEN - 59 THEN NULL ELSE - + 37 - + 0 + CAST ( - COUNT ( * ) AS INTEGER ) * + - 66 * - 24 END
----
-1621

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT COUNT( ALL + - 51 ) + + 76
----
77

skipif mysql # not compatible
query I rowsort label-1871
SELECT COUNT ( ALL + - 51 ) + + 76
----
77

query I rowsort
SELECT - 97 + + - 57
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1873
SELECT ALL + + 1 + + SUM( - - COALESCE ( CAST( - 47 AS SIGNED ), + 68 ) ) * + - 18
----
847

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL + + 1 + + SUM ( - - COALESCE ( CAST ( - 47 AS INTEGER ), + 68 ) ) * + - 18
----
847

onlyif mysql # DIV for integer division: 
query II rowsort label-1874
SELECT + 36 AS col1, - 60 DIV + 16
----
36
-3

skipif mysql # not compatible
query II rowsort label-1874
SELECT + 36 AS col1, - 60 / + 16
----
36
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1875
SELECT - 17 DIV + - 81 + 89 + + COUNT( * ) + 93 + + - 83 + 79 * - 31 + + 29
----
-2320

skipif mysql # not compatible
query I rowsort label-1875
SELECT - 17 / + - 81 + 89 + + COUNT ( * ) + 93 + + - 83 + 79 * - 31 + + 29
----
-2320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1876
SELECT + 47 + + + 44 + CAST( - CASE + 75 WHEN - - 4 THEN + MIN( - - 87 ) ELSE - 77 END AS SIGNED ) + + + ( 73 ) / MIN( - 78 ) * + CASE - - 91 WHEN - - COUNT( * ) THEN + ( - + 30 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT + 47 + + + 44 + CAST ( - CASE + 75 WHEN - - 4 THEN + MIN ( - - 87 ) ELSE - 77 END AS INTEGER ) + + + ( 73 ) / MIN ( - 78 ) * + CASE - - 91 WHEN - - COUNT ( * ) THEN + ( - + 30 ) ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1877
SELECT DISTINCT - COUNT ( * ), 33 AS col0
----
-1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL - 55 * - 92 * - - ( 18 ) + MAX( 15 ) + - 37
----
91058

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL - 55 * - 92 * - - ( 18 ) + MAX ( 15 ) + - 37
----
91058

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT ALL + 16 * + COUNT( * ) - - COUNT( * ) * - 64 * 44
----
-2800

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL + 16 * + COUNT ( * ) - - COUNT ( * ) * - 64 * 44
----
-2800

query II rowsort
SELECT 15 * + 13, 0 * + 43 AS col2
----
195
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT MAX( DISTINCT - 79 ) + - 40 AS col1
----
-119

skipif mysql # not compatible
query I rowsort label-1882
SELECT MAX ( DISTINCT - 79 ) + - 40 AS col1
----
-119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1883
SELECT DISTINCT - 96 AS col2, ( - 17 ) + 31 * + + COUNT( * ) - 67 + - COALESCE ( - 15, + SUM( DISTINCT - 48 ) ) DIV + 19 AS col1
----
-96
-53

skipif mysql # not compatible
query II rowsort label-1883
SELECT DISTINCT - 96 AS col2, ( - 17 ) + 31 * + + COUNT ( * ) - 67 + - COALESCE ( - 15, + SUM ( DISTINCT - 48 ) ) / + 19 AS col1
----
-96
-53

query II rowsort
SELECT ALL + 99, ( - ( 88 ) ) - + + 56 AS col0
----
99
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-1885
SELECT - 23 DIV + 64 * - 83
----
0

skipif mysql # not compatible
query I rowsort label-1885
SELECT - 23 / + 64 * - 83
----
0

query I rowsort
SELECT ALL - 21 - - + 52 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT MIN( - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-1887
SELECT MIN ( - 87 )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-1888
SELECT ALL + 98 AS col2, 64 * SUM( + - 12 )
----
98
-768

skipif mysql # not compatible
query II rowsort label-1888
SELECT ALL + 98 AS col2, 64 * SUM ( + - 12 )
----
98
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT MIN( ALL 60 ) * + - 37 * 71 * + COUNT( * ) + - COUNT( ALL 55 )
----
-157621

skipif mysql # not compatible
query I rowsort label-1889
SELECT MIN ( ALL 60 ) * + - 37 * 71 * + COUNT ( * ) + - COUNT ( ALL 55 )
----
-157621

query I rowsort
SELECT ALL 51 * + + 93 * - 22
----
-104346

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1891
SELECT + 57 DIV 65 AS col1, + 78 - - SUM( + 68 )
----
0
146

skipif mysql # not compatible
query II rowsort label-1891
SELECT + 57 / 65 AS col1, + 78 - - SUM ( + 68 )
----
0
146

onlyif mysql # aggregate syntax: 
query II rowsort label-1892
SELECT 61 AS col1, 38 + + COUNT( * )
----
61
39

skipif mysql # not compatible
query II rowsort label-1892
SELECT 61 AS col1, 38 + + COUNT ( * )
----
61
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1893
SELECT + CAST( NULL AS SIGNED ) * 90 * + - NULLIF ( - MIN( - - 67 ), + 65 ) * - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT + CAST ( NULL AS INTEGER ) * 90 * + - NULLIF ( - MIN ( - - 67 ), + 65 ) * - 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1894
SELECT ALL 79, COUNT( ALL + ( - 39 ) ) * + 53 AS col1
----
79
53

skipif mysql # not compatible
query II rowsort label-1894
SELECT ALL 79, COUNT ( ALL + ( - 39 ) ) * + 53 AS col1
----
79
53

query I rowsort
SELECT DISTINCT 56 * - 35 AS col1
----
-1960

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1896
SELECT ALL 96 col2, NULLIF ( 39, + CAST( NULL AS SIGNED ) ) + + 4 AS col0
----
96
43

skipif mysql # not compatible
query II rowsort label-1896
SELECT ALL 96 col2, NULLIF ( 39, + CAST ( NULL AS INTEGER ) ) + + 4 AS col0
----
96
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1897
SELECT DISTINCT 41, CASE 79 WHEN COUNT( * ) THEN NULL WHEN - - 75 THEN - ( - COUNT( * ) ) * + + COUNT( ALL + - 6 ) + MIN( - - 43 ) - - CAST( NULL AS SIGNED ) + 37 * + 98 * 81 / - 78 * - 19 * - + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) END * - + MAX( ALL 22 ) * - - 71 + + 50 AS col2
----
41
NULL

skipif mysql # not compatible
query II rowsort label-1897
SELECT DISTINCT 41, CASE 79 WHEN COUNT ( * ) THEN NULL WHEN - - 75 THEN - ( - COUNT ( * ) ) * + + COUNT ( ALL + - 6 ) + MIN ( - - 43 ) - - CAST ( NULL AS INTEGER ) + 37 * + 98 * 81 / - 78 * - 19 * - + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) END * - + MAX ( ALL 22 ) * - - 71 + + 50 AS col2
----
41
NULL

query I rowsort
SELECT ALL 85 + - + 21 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT + NULLIF ( - MIN( - - 92 ), + 47 * - 67 )
----
-92

skipif mysql # not compatible
query I rowsort label-1899
SELECT + NULLIF ( - MIN ( - - 92 ), + 47 * - 67 )
----
-92

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1902
SELECT + + COALESCE ( + 0, + MAX( + 71 ) * - 86 + + COUNT( * ) * 14 - + 80 ) * + + CASE - AVG ( ALL CAST( NULL AS SIGNED ) ) WHEN 41 THEN NULL ELSE - 60 * - 61 * 87 * 89 DIV - + 55 END col0
----
0

skipif mysql # not compatible
query I rowsort label-1902
SELECT + + COALESCE ( + 0, + MAX ( + 71 ) * - 86 + + COUNT ( * ) * 14 - + 80 ) * + + CASE - AVG ( ALL CAST ( NULL AS INTEGER ) ) WHEN 41 THEN NULL ELSE - 60 * - 61 * 87 * 89 / - + 55 END col0
----
0

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

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

query I rowsort
SELECT - NULLIF ( 98, - - NULLIF ( 60, + 50 ) * - - ( - 41 ) )
----
-98

query I rowsort
SELECT + 17 * + 79 AS col2
----
1343

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT ALL 87 + - - 9 * + COUNT( * ) * + 84 - + - 39 AS col0
----
882

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL 87 + - - 9 * + COUNT ( * ) * + 84 - + - 39 AS col0
----
882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1907
SELECT ALL + - ( + CASE - 42 WHEN COUNT( * ) * - 59 THEN - + NULLIF ( AVG ( ALL 63 ), + 27 ) + + 8 WHEN - 86 * + - MAX( 18 ) THEN + + ( 10 ) - + 96 / + - 74 ELSE CAST( NULL AS SIGNED ) END ) + - 12 - - - ( - 38 ) * + - 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL + - ( + CASE - 42 WHEN COUNT ( * ) * - 59 THEN - + NULLIF ( AVG ( ALL 63 ), + 27 ) + + 8 WHEN - 86 * + - MAX ( 18 ) THEN + + ( 10 ) - + 96 / + - 74 ELSE CAST ( NULL AS INTEGER ) END ) + - 12 - - - ( - 38 ) * + - 12 col2
----
NULL

query I rowsort
SELECT - + 15 * - + 66 AS col1
----
990

query II rowsort
SELECT 62 AS col1, + 47 AS col2
----
62
47

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

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

query II rowsort
SELECT ALL + + 37, 22 AS col1
----
37
22

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1913
SELECT ALL + CAST( 16 AS SIGNED ) * + 72 + - 71 - + 75 + - + COUNT( 4 ) AS col0, + 48 + COALESCE ( 52, 42 + COUNT( * ) + - 79 ) + - - 92 * - NULLIF ( + + 44, + COUNT( * ) * + - 83 + - - 43 ) * 91 * ( - 0 ) col1
----
1005
100

skipif mysql # not compatible
query II rowsort label-1913
SELECT ALL + CAST ( 16 AS INTEGER ) * + 72 + - 71 - + 75 + - + COUNT ( 4 ) AS col0, + 48 + COALESCE ( 52, 42 + COUNT ( * ) + - 79 ) + - - 92 * - NULLIF ( + + 44, + COUNT ( * ) * + - 83 + - - 43 ) * 91 * ( - 0 ) col1
----
1005
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT + 71 * - - SUM( DISTINCT - 21 )
----
-1491

skipif mysql # not compatible
query I rowsort label-1914
SELECT + 71 * - - SUM ( DISTINCT - 21 )
----
-1491

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT ( + + ( COUNT( + 4 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1915
SELECT ( + + ( COUNT ( + 4 ) ) ) AS col2
----
1

query III rowsort
SELECT ALL - 62 * 20, 61 * + 1 + - - 88 AS col0, + + 38 AS col1
----
-1240
149
38

query II rowsort
SELECT ( 87 ) AS col2, 65 AS col2
----
87
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1918
SELECT DISTINCT + COALESCE ( + - 35, + 62 DIV - 53 )
----
-35

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT + COALESCE ( + - 35, + 62 / - 53 )
----
-35

query I rowsort
SELECT ALL 49 * - 20 - - - 97
----
-1077

query I rowsort
SELECT - 17 * + - 26
----
442

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT + SUM( DISTINCT - ( + 0 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1922
SELECT + SUM ( DISTINCT - ( + 0 ) ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1923
SELECT NULLIF ( + 22, + MIN( DISTINCT - + 24 ) * - CAST( 3 AS SIGNED ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1923
SELECT NULLIF ( + 22, + MIN ( DISTINCT - + 24 ) * - CAST ( 3 AS INTEGER ) ) AS col0
----
22

query I rowsort
SELECT ALL - 90 * + ( 67 )
----
-6030

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT 27 * ( - + 91 ) + - - COUNT( ALL + - 94 ) + + + 83
----
-2373

skipif mysql # not compatible
query I rowsort label-1926
SELECT 27 * ( - + 91 ) + - - COUNT ( ALL + - 94 ) + + + 83
----
-2373

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT ALL 4 * 83 + - ( - - SUM( + + 58 ) ) AS col0
----
274

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL 4 * 83 + - ( - - SUM ( + + 58 ) ) AS col0
----
274

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT - COALESCE ( + COUNT( * ), + - 9 ) + - 61
----
-62

skipif mysql # not compatible
query I rowsort label-1928
SELECT - COALESCE ( + COUNT ( * ), + - 9 ) + - 61
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT - 86 + - - 34 + + ( CASE + COUNT( DISTINCT + - 77 ) WHEN - 34 THEN NULL WHEN + 66 - NULLIF ( COUNT( * ), + 61 ) + + 17 THEN 88 END ) / + 89 * 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1929
SELECT - 86 + - - 34 + + ( CASE + COUNT ( DISTINCT + - 77 ) WHEN - 34 THEN NULL WHEN + 66 - NULLIF ( COUNT ( * ), + 61 ) + + 17 THEN 88 END ) / + 89 * 13 AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( + - 39, - 40, - + 67 ) col0
----
39

query I rowsort
SELECT ALL 22 * - 10 + 87
----
-133

query I rowsort
SELECT - - NULLIF ( + 2, - - 8 + 39 )
----
2

query I rowsort
SELECT - - 93 + + 55 AS col1
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-1934
SELECT + - 88 + - - NULLIF ( - - COUNT( * ), + 0 * + COUNT( * ) * 12 ) * 84, + 38 * + 41 col0
----
-4
1558

skipif mysql # not compatible
query II rowsort label-1934
SELECT + - 88 + - - NULLIF ( - - COUNT ( * ), + 0 * + COUNT ( * ) * 12 ) * 84, + 38 * + 41 col0
----
-4
1558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1935
SELECT + COALESCE ( 42, + COUNT( * ) * + 64 * + 29 DIV - 33 ) DIV - 81 + - COUNT( * ) + + 23 * + 78 * - + 15 - + + ( 20 )
----
-26931

skipif mysql # not compatible
query I rowsort label-1935
SELECT + COALESCE ( 42, + COUNT ( * ) * + 64 * + 29 / - 33 ) / - 81 + - COUNT ( * ) + + 23 * + 78 * - + 15 - + + ( 20 )
----
-26931

query II rowsort
SELECT ALL ( 56 ) col0, - 98
----
56
-98

query I rowsort
SELECT ALL 19 + + 13
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL - 47 * + + CASE - MAX( ALL 4 ) WHEN + + COUNT( * ) THEN - 37 WHEN 98 + COUNT( * ) + - 41 THEN 50 * + 71 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL - 47 * + + CASE - MAX ( ALL 4 ) WHEN + + COUNT ( * ) THEN - 37 WHEN 98 + COUNT ( * ) + - 41 THEN 50 * + 71 END col1
----
NULL

query II rowsort
SELECT DISTINCT + NULLIF ( 76, + - 56 / + 79 ) + - - 5 AS col0, 27 AS col0
----
81
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT + + ( - - 88 ) + MAX( + - 52 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-1941
SELECT + + ( - - 88 ) + MAX ( + - 52 ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1942
SELECT ALL CASE + + COALESCE ( - 65, + 31 * - - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * + 62 + - - 40 + 64 - 36, - 29 * + - COUNT( * ) ) WHEN + AVG ( + 2 ) THEN NULL ELSE - 4 + 64 END AS col1
----
60

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL CASE + + COALESCE ( - 65, + 31 * - - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * + 62 + - - 40 + 64 - 36, - 29 * + - COUNT ( * ) ) WHEN + AVG ( + 2 ) THEN NULL ELSE - 4 + 64 END AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1943
SELECT + NULLIF ( + 1, - 61 - + 98 + 58 ) * + CAST( NULL AS SIGNED ) + - - 19 + + + 74 + + 24 + - + SUM( DISTINCT - 62 ) * - + 97 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1943
SELECT + NULLIF ( + 1, - 61 - + 98 + 58 ) * + CAST ( NULL AS INTEGER ) + - - 19 + + + 74 + + 24 + - + SUM ( DISTINCT - 62 ) * - + 97 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL COUNT( * ) * - - ( - 80 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL COUNT ( * ) * - - ( - 80 ) AS col2
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1945
SELECT - 45 DIV COUNT( * ) + - + 31 * + 64 AS col2
----
-2029

skipif mysql # not compatible
query I rowsort label-1945
SELECT - 45 / COUNT ( * ) + - + 31 * + 64 AS col2
----
-2029

query I rowsort
SELECT DISTINCT - NULLIF ( 92, 90 * - ( + 92 ) + 79 + 70 * 45 * + + 63 )
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-1947
SELECT ALL - 15, - COUNT( * ) + + - 83 AS col2
----
-15
-84

skipif mysql # not compatible
query II rowsort label-1947
SELECT ALL - 15, - COUNT ( * ) + + - 83 AS col2
----
-15
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT ALL - COUNT( + + ( - 20 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL - COUNT ( + + ( - 20 ) ) col1
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1950
SELECT + ( + + 5 ) * - 80 + - - 60 + - CAST( NULL AS SIGNED ) * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1950
SELECT + ( + + 5 ) * - 80 + - - 60 + - CAST ( NULL AS INTEGER ) * - 46
----
NULL

query II rowsort
SELECT ALL - 5 AS col1, 17
----
-5
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1952
SELECT COALESCE ( + 35, + ( - - 12 ) ) DIV - 48 * 32 - + SUM( DISTINCT + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-1952
SELECT COALESCE ( + 35, + ( - - 12 ) ) / - 48 * 32 - + SUM ( DISTINCT + 50 )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1953
SELECT DISTINCT - 86 + + 54 - + - 89, + CAST( NULL AS SIGNED ) + - + 10 AS col2
----
57
NULL

skipif mysql # not compatible
query II rowsort label-1953
SELECT DISTINCT - 86 + + 54 - + - 89, + CAST ( NULL AS INTEGER ) + - + 10 AS col2
----
57
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1954
SELECT ALL - 68 + + 64 + - 91 + - 10 DIV + SUM( 79 ) + + 62 + - 80 DIV - CAST( + - 99 AS SIGNED ) * + - 30 * COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL - 68 + + 64 + - 91 + - 10 / + SUM ( 79 ) + + 62 + - 80 / - CAST ( + - 99 AS INTEGER ) * + - 30 * COUNT ( * )
----
-33

query II rowsort
SELECT + 19 AS col1, 24 AS col1
----
19
24

query II rowsort
SELECT ALL - 40, + CASE 36 WHEN - + ( - + 50 ) / + 5 * - 63 THEN 93 WHEN ( + 18 ) THEN NULL ELSE NULL END col1
----
-40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT DISTINCT 33 + - ( - + 66 ) / + 79 * - ( + CASE - 93 WHEN 18 - - 78 THEN + NULLIF ( - - COALESCE ( + 30, + 73 / SUM( ALL + - 21 ) + 24 ), + 95 ) END ) + + CASE + 55 WHEN - ( - 14 ) THEN COUNT( * ) WHEN - COALESCE ( 30, + + COUNT( - - 68 ) ) * ( 82 ) * + + 60 THEN NULL ELSE + - 69 + + - NULLIF ( - MIN( ALL - 70 ), + NULLIF ( - 79, + COUNT( * ) ) ) * - + 50 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT 33 + - ( - + 66 ) / + 79 * - ( + CASE - 93 WHEN 18 - - 78 THEN + NULLIF ( - - COALESCE ( + 30, + 73 / SUM ( ALL + - 21 ) + 24 ), + 95 ) END ) + + CASE + 55 WHEN - ( - 14 ) THEN COUNT ( * ) WHEN - COALESCE ( 30, + + COUNT ( - - 68 ) ) * ( 82 ) * + + 60 THEN NULL ELSE + - 69 + + - NULLIF ( - MIN ( ALL - 70 ), + NULLIF ( - 79, + COUNT ( * ) ) ) * - + 50 END AS col2
----
NULL

query I rowsort
SELECT ALL - ( - - 33 )
----
-33

query I rowsort
SELECT ALL - 68 + + 41 AS col2
----
-27

query I rowsort
SELECT DISTINCT + 14 + 44
----
58

query I rowsort
SELECT 59 * + 16 - 38 AS col1
----
906

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

query II rowsort
SELECT - + 6 AS col0, + 29 AS col2
----
-6
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT - MIN( ALL + 86 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-1964
SELECT - MIN ( ALL + 86 ) AS col2
----
-86

query II rowsort
SELECT - 4 AS col0, + 34 * + - 17
----
-4
-578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1966
SELECT 29 + 22 + - + 92 + 14 + - + 35 * + 1 / - CAST( NULL AS SIGNED ) + - 87 * MIN( - 46 ) * + 91 + CASE - + 85 WHEN - 49 * - + CAST( NULL AS SIGNED ) THEN + 46 * + 11 * + 5 * - 42 + - ( - 84 ) END / ( - + AVG ( - ( + 71 ) ) ) + 15 - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT 29 + 22 + - + 92 + 14 + - + 35 * + 1 / - CAST ( NULL AS INTEGER ) + - 87 * MIN ( - 46 ) * + 91 + CASE - + 85 WHEN - 49 * - + CAST ( NULL AS INTEGER ) THEN + 46 * + 11 * + 5 * - 42 + - ( - 84 ) END / ( - + AVG ( - ( + 71 ) ) ) + 15 - COUNT ( * )
----
NULL

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

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

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

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

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

query II rowsort
SELECT ALL 60, + 52 AS col0
----
60
52

query I rowsort
SELECT 98 + - 34 * + 8 + - + 92
----
-266

query II rowsort
SELECT 46 * + - ( + 32 ), - ( 87 ) AS col2
----
-1472
-87

query I rowsort
SELECT - 63 + 34 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT ALL - 44 * 69 + - + 13 - - SUM( DISTINCT - + 21 ) AS col1
----
-3070

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL - 44 * 69 + - + 13 - - SUM ( DISTINCT - + 21 ) AS col1
----
-3070

query I rowsort
SELECT DISTINCT 37 * + + 57 AS col1
----
2109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1976
SELECT DISTINCT - COUNT( * ) * 75 * + COUNT( * ) DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT - COUNT ( * ) * 75 * + COUNT ( * ) / - 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1977
SELECT 54 * - CASE 28 WHEN + 45 * + 38 * - + 50 + + - 71 - - - 1 * + 26 * + COUNT( * ) * - + 1 / + - 53 + - 9 / 42 * COALESCE ( + - 64, - + CAST( - 35 AS SIGNED ) * 97 + - 75 - + + 45 ) THEN NULL WHEN + + CAST( NULL AS SIGNED ) - + 2 - - 7 + - 93 * - 17 THEN NULL WHEN + - COALESCE ( - 80, - 97 + 1 ) THEN - 15 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT 54 * - CASE 28 WHEN + 45 * + 38 * - + 50 + + - 71 - - - 1 * + 26 * + COUNT ( * ) * - + 1 / + - 53 + - 9 / 42 * COALESCE ( + - 64, - + CAST ( - 35 AS INTEGER ) * 97 + - 75 - + + 45 ) THEN NULL WHEN + + CAST ( NULL AS INTEGER ) - + 2 - - 7 + - 93 * - 17 THEN NULL WHEN + - COALESCE ( - 80, - 97 + 1 ) THEN - 15 ELSE NULL END
----
NULL

query I rowsort
SELECT CASE + 82 WHEN + - 29 THEN - ( - - ( + 59 ) ) WHEN + 0 THEN NULL END * + 14 * + ( - 85 ) + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT ALL 28 + + - ( 82 ) * - MIN( DISTINCT + 73 ) * - 9 + - + 77 - - + 75 * - - 11 AS col0
----
-53098

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL 28 + + - ( 82 ) * - MIN ( DISTINCT + 73 ) * - 9 + - + 77 - - + 75 * - - 11 AS col0
----
-53098

query I rowsort
SELECT 59 - - - 38
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT CASE + + 58 WHEN - COUNT( * ) THEN 59 WHEN - + 52 THEN + 92 END * - + 68 AS col0, COUNT( * ) + - 18
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-1981
SELECT CASE + + 58 WHEN - COUNT ( * ) THEN 59 WHEN - + 52 THEN + 92 END * - + 68 AS col0, COUNT ( * ) + - 18
----
NULL
-17

query I rowsort
SELECT ALL 22 * - 39 AS col0
----
-858

query I rowsort
SELECT ALL 92 + - 43
----
49

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

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

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

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

query I rowsort
SELECT ALL + NULLIF ( + 93, 0 ) + + + 65 * + 52
----
3473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT CAST( - + 33 AS SIGNED ) * - 88
----
2904

skipif mysql # not compatible
query I rowsort label-1987
SELECT CAST ( - + 33 AS INTEGER ) * - 88
----
2904

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT COUNT( * ) * - 9 + COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1988
SELECT COUNT ( * ) * - 9 + COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT 4 - + 39 AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1990
SELECT + - CAST( NULL AS SIGNED ) * - 98 * + - 95 + - - 4 + - + 49 + - - MIN( DISTINCT - 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1990
SELECT + - CAST ( NULL AS INTEGER ) * - 98 * + - 95 + - - 4 + - + 49 + - - MIN ( DISTINCT - 42 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT + 48 * + 14 + + 14 + + 58 * - - 38 * NULLIF ( - - 71, - 22 + 15 + + + 58 * - 61 * 80 ) * - + COUNT( * ) + + COUNT( * ) + COUNT( * ) AS col0
----
-155796

skipif mysql # not compatible
query I rowsort label-1991
SELECT + 48 * + 14 + + 14 + + 58 * - - 38 * NULLIF ( - - 71, - 22 + 15 + + + 58 * - 61 * 80 ) * - + COUNT ( * ) + + COUNT ( * ) + COUNT ( * ) AS col0
----
-155796

onlyif mysql # DIV for integer division: 
query I rowsort label-1992
SELECT ALL - 91 - 15 DIV - 23
----
-91

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL - 91 - 15 / - 23
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT ALL + 99 * - NULLIF ( - 28, + 25 ) + 35 * + + MIN( 74 ) AS col1
----
5362

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL + 99 * - NULLIF ( - 28, + 25 ) + 35 * + + MIN ( 74 ) AS col1
----
5362

query I rowsort
SELECT 43 * + 16 + 23 AS col0
----
711

query I rowsort
SELECT ALL + 30 - - 69 + - - 3
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-1996
SELECT ALL + COUNT( * ) * - + 39 * 60 * + 20, 15 * - 59 - - 31 + - COUNT( * ) AS col2
----
-46800
-855

skipif mysql # not compatible
query II rowsort label-1996
SELECT ALL + COUNT ( * ) * - + 39 * 60 * + 20, 15 * - 59 - - 31 + - COUNT ( * ) AS col2
----
-46800
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT - + CASE + MIN( - 29 ) WHEN - 84 THEN + 47 + + 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT - + CASE + MIN ( - 29 ) WHEN - 84 THEN + 47 + + 82 END
----
NULL

query I rowsort
SELECT + 64 * + + 16 AS col1
----
1024

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT - - SUM( + 45 ) - + + 82
----
-37

skipif mysql # not compatible
query I rowsort label-1999
SELECT - - SUM ( + 45 ) - + + 82
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2000
SELECT - - NULLIF ( CAST( NULL AS DECIMAL ), ( + 84 ) ) * + 70 * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT - - NULLIF ( CAST ( NULL AS REAL ), ( + 84 ) ) * + 70 * - 79
----
NULL

query I rowsort
SELECT ALL + 3 * 2 * + 5 AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2002
SELECT ( CASE - COUNT( * ) WHEN - - 71 THEN 43 * + + 37 * + - 19 * - 83 + - 96 + - 65 * + - 43 * + 76 * + COALESCE ( CAST( NULL AS SIGNED ), COUNT( * ) ) + + + 8 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT ( CASE - COUNT ( * ) WHEN - - 71 THEN 43 * + + 37 * + - 19 * - 83 + - 96 + - 65 * + - 43 * + 76 * + COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ) ) + + + 8 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2003
SELECT ALL - CAST( + MAX( 2 ) AS SIGNED ) AS col2
----
-2

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2005
SELECT - CASE + 38 WHEN - 8 * + 37 - + + 35 THEN SUM( DISTINCT 37 ) - + + 98 ELSE - - 4 * + NULLIF ( NULLIF ( - COALESCE ( 83, + 4 + - 81 DIV - + 62 ), - 53 ), + - COUNT( * ) * - - ( + - 10 ) + + 35 ) + 50 * - + 90 END * + 0
----
0

skipif mysql # not compatible
query I rowsort label-2005
SELECT - CASE + 38 WHEN - 8 * + 37 - + + 35 THEN SUM ( DISTINCT 37 ) - + + 98 ELSE - - 4 * + NULLIF ( NULLIF ( - COALESCE ( 83, + 4 + - 81 / - + 62 ), - 53 ), + - COUNT ( * ) * - - ( + - 10 ) + + 35 ) + 50 * - + 90 END * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT DISTINCT CASE 76 WHEN - SUM( ALL + - 94 ) THEN + + 82 - + MIN( + 88 ) * - 97 WHEN 17 * NULLIF ( - 6, 65 * - + 74 * 87 ) THEN + + 59 + + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT DISTINCT CASE 76 WHEN - SUM ( ALL + - 94 ) THEN + + 82 - + MIN ( + 88 ) * - 97 WHEN 17 * NULLIF ( - 6, 65 * - + 74 * 87 ) THEN + + 59 + + COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( 91, - 59 * + + 40 ) AS col0
----
91

query I rowsort
SELECT - 64 + ( + 17 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT + MAX( ALL - + ( - 40 ) ) - - 9 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2009
SELECT + MAX ( ALL - + ( - 40 ) ) - - 9 AS col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2010
SELECT - COUNT( * ) DIV + 86 * 18
----
0

skipif mysql # not compatible
query I rowsort label-2010
SELECT - COUNT ( * ) / + 86 * 18
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2011
SELECT + CAST( NULL AS SIGNED ) * - - CASE 79 WHEN - 52 THEN + 35 * - ( - 91 ) + + 48 + + - 77 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2011
SELECT + CAST ( NULL AS INTEGER ) * - - CASE 79 WHEN - 52 THEN + 35 * - ( - 91 ) + + 48 + + - 77 ELSE NULL END
----
NULL

query I rowsort
SELECT + NULLIF ( 25, - - ( 47 ) * - 30 ) * + + 95 * - - 56
----
133000

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

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

query I rowsort
SELECT ALL + 31 * + 29 + 91 AS col0
----
990

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

query I rowsort
SELECT + CASE + + 34 WHEN - 96 + + + ( + 17 ) THEN NULL WHEN - - 20 THEN - 82 * + 20 - + 57 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT - COUNT( DISTINCT 60 ) * + 88 * COUNT( * ) + - - 98 - - - 57 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-2017
SELECT - COUNT ( DISTINCT 60 ) * + 88 * COUNT ( * ) + - - 98 - - - 57 AS col0
----
-47

query I rowsort
SELECT + 33 + 15
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-2019
SELECT ALL 73 * - COUNT( * ) - 80 AS col1, - 74 AS col0
----
-153
-74

skipif mysql # not compatible
query II rowsort label-2019
SELECT ALL 73 * - COUNT ( * ) - 80 AS col1, - 74 AS col0
----
-153
-74

query I rowsort
SELECT + + 25 + + 2 * - - 14 - + 57 AS col0
----
-4

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

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

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

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL 85 * - CAST ( NULL AS INTEGER ) * - 37
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2023
SELECT ALL + 68 AS col1, - COALESCE ( 5, - - COUNT( * ) + + 10 - + + 81 * 4, - 39 ) * + COUNT( * ) + + - 89
----
68
-94

skipif mysql # not compatible
query II rowsort label-2023
SELECT ALL + 68 AS col1, - COALESCE ( 5, - - COUNT ( * ) + + 10 - + + 81 * 4, - 39 ) * + COUNT ( * ) + + - 89
----
68
-94

query I rowsort
SELECT ALL 42 * + - 30 AS col0
----
-1260

query I rowsort
SELECT NULLIF ( + + 36, ( - 83 ) )
----
36

query II rowsort
SELECT - 51 AS col2, 23
----
-51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + + 88 * + - NULLIF ( - 42, + - 96 * + 33 ) + - NULLIF ( + NULLIF ( - CASE + 98 WHEN + COUNT( ALL - - 96 ) THEN + 22 END, + COUNT( * ) ), + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT + + 88 * + - NULLIF ( - 42, + - 96 * + 33 ) + - NULLIF ( + NULLIF ( - CASE + 98 WHEN + COUNT ( ALL - - 96 ) THEN + 22 END, + COUNT ( * ) ), + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2028
SELECT + - COALESCE ( - COUNT( * ), - 90 * + 2 DIV + 45 * - COUNT( * ) + - 36 + + CASE + 2 WHEN + ( - 70 ) THEN 55 END + - 80 ) * + 81 * + - 87 AS col2
----
-7047

skipif mysql # not compatible
query I rowsort label-2028
SELECT + - COALESCE ( - COUNT ( * ), - 90 * + 2 / + 45 * - COUNT ( * ) + - 36 + + CASE + 2 WHEN + ( - 70 ) THEN 55 END + - 80 ) * + 81 * + - 87 AS col2
----
-7047

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT + + 38 - - 88 - COUNT( * ) * - + 75 + + 63
----
264

skipif mysql # not compatible
query I rowsort label-2029
SELECT + + 38 - - 88 - COUNT ( * ) * - + 75 + + 63
----
264

onlyif mysql # aggregate syntax: 
query II rowsort label-2030
SELECT + 84 + - NULLIF ( 34, + - 90 + - 36 + 47 + - 26 + MAX( 18 ) + COUNT( * ) + - COUNT( ALL - 79 ) * - + 15 ) col0, COUNT( * )
----
50
1

skipif mysql # not compatible
query II rowsort label-2030
SELECT + 84 + - NULLIF ( 34, + - 90 + - 36 + 47 + - 26 + MAX ( 18 ) + COUNT ( * ) + - COUNT ( ALL - 79 ) * - + 15 ) col0, COUNT ( * )
----
50
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT DISTINCT COUNT( - + 34 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT COUNT ( - + 34 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ALL - 61 + + MAX( - + NULLIF ( + 35, 20 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL - 61 + + MAX ( - + NULLIF ( + 35, 20 ) )
----
-96

query I rowsort
SELECT + 47 + 38
----
85

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

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

query I rowsort
SELECT - 29 - - 88 AS col2
----
59

query I rowsort
SELECT ALL - 99 + + ( - 47 ) col0
----
-146

query I rowsort
SELECT ALL + 44 * + - ( 98 ) AS col1
----
-4312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2038
SELECT 2 AS col0, - 81 * - + COUNT( * ) / 54 + CAST( NULL AS SIGNED ) + + 62 / 16
----
2
NULL

skipif mysql # not compatible
query II rowsort label-2038
SELECT 2 AS col0, - 81 * - + COUNT ( * ) / 54 + CAST ( NULL AS INTEGER ) + + 62 / 16
----
2
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2039
SELECT - COUNT( 89 ) AS col1, + ( + - 38 ) * + 28
----
-1
-1064

skipif mysql # not compatible
query II rowsort label-2039
SELECT - COUNT ( 89 ) AS col1, + ( + - 38 ) * + 28
----
-1
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT - ( + 38 ) * - - SUM( ALL + + COALESCE ( + 63, + + 19 * + + 38 * - - 48 ) )
----
-2394

skipif mysql # not compatible
query I rowsort label-2040
SELECT - ( + 38 ) * - - SUM ( ALL + + COALESCE ( + 63, + + 19 * + + 38 * - - 48 ) )
----
-2394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2041
SELECT DISTINCT ( NULLIF ( - + CAST( + 80 AS SIGNED ), - 2 + + 22 ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT ( NULLIF ( - + CAST ( + 80 AS INTEGER ), - 2 + + 22 ) ) AS col0
----
-80

query I rowsort
SELECT ALL + 99 + + 83
----
182

query I rowsort
SELECT DISTINCT + 54 + + - 20 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT DISTINCT NULLIF ( COUNT( * ), - - 34 * + ( + 85 ) + - COUNT( + - 75 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT NULLIF ( COUNT ( * ), - - 34 * + ( + 85 ) + - COUNT ( + - 75 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT - 39 * ( COUNT( * ) ) * - 30 - 33
----
1137

skipif mysql # not compatible
query I rowsort label-2045
SELECT - 39 * ( COUNT ( * ) ) * - 30 - 33
----
1137

onlyif mysql # DIV for integer division: 
query I rowsort label-2046
SELECT ALL - 9 DIV - + 54
----
0

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL - 9 / - + 54
----
0

query II rowsort
SELECT + 15 AS col2, + 59 AS col2
----
15
59

query I rowsort
SELECT - 68 * - - 80 col0
----
-5440

onlyif mysql # DIV for integer division: 
query I rowsort label-2049
SELECT ALL 0 DIV - 8 - - 4
----
4

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL 0 / - 8 - - 4
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2050
SELECT DISTINCT - CASE - 48 WHEN 75 * + COUNT( * ) * + + CAST( + CASE 85 WHEN - COUNT( * ) * + - 60 THEN + - 6 WHEN + - 34 THEN - - 32 * - + 40 * - 28 ELSE + + 66 END AS SIGNED ) * + 78 + + + 4 + 1 * - + 93 THEN - CAST( 57 AS DECIMAL ) / - COUNT( * ) END * 80 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT - CASE - 48 WHEN 75 * + COUNT ( * ) * + + CAST ( + CASE 85 WHEN - COUNT ( * ) * + - 60 THEN + - 6 WHEN + - 34 THEN - - 32 * - + 40 * - 28 ELSE + + 66 END AS INTEGER ) * + 78 + + + 4 + 1 * - + 93 THEN - CAST ( 57 AS REAL ) / - COUNT ( * ) END * 80 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 3 * - 15 AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2052
SELECT - 21 - - 61 AS col0, COALESCE ( + + 86, - - CAST( 73 AS SIGNED ), + + 42 * + CAST( NULL AS SIGNED ) )
----
40
86

skipif mysql # not compatible
query II rowsort label-2052
SELECT - 21 - - 61 AS col0, COALESCE ( + + 86, - - CAST ( 73 AS INTEGER ), + + 42 * + CAST ( NULL AS INTEGER ) )
----
40
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT - - 24 * + 82 - CASE - - 6 WHEN + 91 / - 7 THEN NULL WHEN - + 84 + + - 64 THEN + 33 ELSE NULL END + + 82 * COUNT( * ) + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2053
SELECT - - 24 * + 82 - CASE - - 6 WHEN + 91 / - 7 THEN NULL WHEN - + 84 + + - 64 THEN + 33 ELSE NULL END + + 82 * COUNT ( * ) + + 55
----
NULL

query II rowsort
SELECT 62 AS col1, 53 col1
----
62
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT DISTINCT + + CASE - 0 WHEN + - COUNT( * ) * + - 52 THEN NULL WHEN + 22 THEN + 76 * - 6 * + COUNT( * ) * - 18 / - 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2055
SELECT DISTINCT + + CASE - 0 WHEN + - COUNT ( * ) * + - 52 THEN NULL WHEN + 22 THEN + 76 * - 6 * + COUNT ( * ) * - 18 / - 88 END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2057
SELECT + - 77 DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2057
SELECT + - 77 / - 79 AS col0
----
0

query II rowsort
SELECT ALL + + 36 col2, 62 AS col1
----
36
62

query I rowsort
SELECT + + ( - + COALESCE ( - 7, - - 38 ) ) * - 95
----
-665

query II rowsort
SELECT - + 92 * 40 * + - 57 * + 49 AS col1, 33 AS col2
----
10278240
33

query I rowsort
SELECT + 37 * - 41 + - + 79 + - ( - 40 )
----
-1556

query I rowsort
SELECT + - 28 - 52 AS col1
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2063
SELECT 59 * ( - 94 ) + 57 + 90 * 40 + + 32 * + 26 DIV + COUNT( * ) col1
----
-1057

skipif mysql # not compatible
query I rowsort label-2063
SELECT 59 * ( - 94 ) + 57 + 90 * 40 + + 32 * + 26 / + COUNT ( * ) col1
----
-1057

query I rowsort
SELECT 96 * 1 * + 96 * + 14 * - 12
----
-1548288

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2066
SELECT DISTINCT + + 3 + 27 AS col0, COUNT( * ) AS col2
----
30
1

skipif mysql # not compatible
query II rowsort label-2066
SELECT DISTINCT + + 3 + 27 AS col0, COUNT ( * ) AS col2
----
30
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT 75 * + 27 * ( + ( - MAX( 81 ) ) )
----
-164025

skipif mysql # not compatible
query I rowsort label-2068
SELECT 75 * + 27 * ( + ( - MAX ( 81 ) ) )
----
-164025

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT ALL + MAX( - 39 ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL + MAX ( - 39 ) col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2070
SELECT - COUNT( * ) * 66 + - 85 DIV + 93 DIV - 50 DIV - 27
----
-66

skipif mysql # not compatible
query I rowsort label-2070
SELECT - COUNT ( * ) * 66 + - 85 / + 93 / - 50 / - 27
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT 24 * COUNT( * ) * - ( + 14 ) * ( + ( ( 36 ) ) ) + + COALESCE ( - 59, SUM( + 56 ) + 77 ) * 31 AS col2
----
-13925

skipif mysql # not compatible
query I rowsort label-2071
SELECT 24 * COUNT ( * ) * - ( + 14 ) * ( + ( ( 36 ) ) ) + + COALESCE ( - 59, SUM ( + 56 ) + 77 ) * 31 AS col2
----
-13925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2072
SELECT MIN( - 33 ) DIV - 63 - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2072
SELECT MIN ( - 33 ) / - 63 - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 76 + - NULLIF ( + - 15, 68 ) AS col0
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT ALL 11 + MIN( DISTINCT 91 )
----
102

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL 11 + MIN ( DISTINCT 91 )
----
102

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2077
SELECT 95 - + 18 * - NULLIF ( + ( - 30 ), - COUNT( * ) / + 36 + - - 8 * MAX( - 10 ) ) * ( - 86 ) AS col2, COALESCE ( + 51, - COUNT( * ) )
----
46535
51

skipif mysql # not compatible
query II rowsort label-2077
SELECT 95 - + 18 * - NULLIF ( + ( - 30 ), - COUNT ( * ) / + 36 + - - 8 * MAX ( - 10 ) ) * ( - 86 ) AS col2, COALESCE ( + 51, - COUNT ( * ) )
----
46535
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2078
SELECT CASE + CAST( + 49 AS SIGNED ) WHEN - CASE 93 WHEN - CAST( NULL AS SIGNED ) THEN + 29 WHEN + CASE - + 90 WHEN - 49 + + 57 + + 66 * + - 99 * - - MIN( - 76 ) THEN NULL WHEN + CAST( - - 92 AS SIGNED ) THEN ( 70 ) WHEN 79 THEN NULL ELSE NULL END THEN NULL WHEN + - 89 + + SUM( 19 ) * - 13 + ( - + 84 ) THEN NULL ELSE + 15 - + 46 END THEN - 39 WHEN - 41 THEN - 26 - + + 26 - + 66 + + COUNT( * ) + COUNT( * ) ELSE NULL END + + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT CASE + CAST ( + 49 AS INTEGER ) WHEN - CASE 93 WHEN - CAST ( NULL AS INTEGER ) THEN + 29 WHEN + CASE - + 90 WHEN - 49 + + 57 + + 66 * + - 99 * - - MIN ( - 76 ) THEN NULL WHEN + CAST ( - - 92 AS INTEGER ) THEN ( 70 ) WHEN 79 THEN NULL ELSE NULL END THEN NULL WHEN + - 89 + + SUM ( 19 ) * - 13 + ( - + 84 ) THEN NULL ELSE + 15 - + 46 END THEN - 39 WHEN - 41 THEN - 26 - + + 26 - + 66 + + COUNT ( * ) + COUNT ( * ) ELSE NULL END + + 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT 4 - - COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2079
SELECT 4 - - COUNT ( * ) AS col0
----
5

query I rowsort
SELECT ALL 63 - 41 AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2081
SELECT 84 + + CASE + CASE + 3 WHEN 31 * 5 / + 75 * + - 21 - - 21 * 90 * + NULLIF ( + 42, 55 ) + + 50 THEN NULL ELSE - + ( NULLIF ( + COALESCE ( 22, + 55 * - - COUNT( * ) ), + + 23 ) ) * + 29 + - 66 - 56 END WHEN + 4 * + 30 THEN + - 66 + 39 * + 22 / - 83 / + - 73 - + SUM( ALL 21 ) WHEN + - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) THEN - 3 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2081
SELECT 84 + + CASE + CASE + 3 WHEN 31 * 5 / + 75 * + - 21 - - 21 * 90 * + NULLIF ( + 42, 55 ) + + 50 THEN NULL ELSE - + ( NULLIF ( + COALESCE ( 22, + 55 * - - COUNT ( * ) ), + + 23 ) ) * + 29 + - 66 - 56 END WHEN + 4 * + 30 THEN + - 66 + 39 * + 22 / - 83 / + - 73 - + SUM ( ALL 21 ) WHEN + - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN - 3 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT DISTINCT - SUM( + 17 ) * 19 * - - COUNT( * ) + - 53 col1
----
-376

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT - SUM ( + 17 ) * 19 * - - COUNT ( * ) + - 53 col1
----
-376

query I rowsort
SELECT DISTINCT 68 * 10 AS col0
----
680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2084
SELECT 42 / + 38 / - COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT 42 / + 38 / - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT ALL 3 * AVG ( DISTINCT 44 ) * - + 59 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL 3 * AVG ( DISTINCT 44 ) * - + 59 + - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL - COUNT ( - ( + - 46 ) ) AS col2
----
-1

query I rowsort
SELECT ( + + 22 ) AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2088
SELECT ALL - + NULLIF ( ( - COUNT( + - 53 ) ), - 36 * - CAST( + + ( - 10 ) AS DECIMAL ) / 4 - + NULLIF ( 86, 90 ) ) AS col2, 43 * + COUNT( * ) * - - 98 * - + ( + + 21 ) col0
----
1
-88494

skipif mysql # not compatible
query II rowsort label-2088
SELECT ALL - + NULLIF ( ( - COUNT ( + - 53 ) ), - 36 * - CAST ( + + ( - 10 ) AS REAL ) / 4 - + NULLIF ( 86, 90 ) ) AS col2, 43 * + COUNT ( * ) * - - 98 * - + ( + + 21 ) col0
----
1
-88494

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT MIN( - 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-2089
SELECT MIN ( - 67 ) AS col2
----
-67

query I rowsort
SELECT - 91 + - + 13 AS col0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT DISTINCT + - MIN( DISTINCT + 88 ) * - 23
----
2024

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT + - MIN ( DISTINCT + 88 ) * - 23
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT ALL + ( - MAX( ALL + 21 ) ) + - + 3 + 39 * + - 1 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL + ( - MAX ( ALL + 21 ) ) + - + 3 + 39 * + - 1 AS col2
----
-63

query I rowsort
SELECT + 57 * - 78
----
-4446

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT DISTINCT - - COALESCE ( - 74, + - 22 DIV - + 15 * + - 16 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT - - COALESCE ( - 74, + - 22 / - + 15 * + - 16 ) AS col1
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2095
SELECT DISTINCT - 77 DIV 25 col0, NULLIF ( - 3, + - 65 + - COUNT( * ) ) * + 76 AS col0
----
-3
-228

skipif mysql # not compatible
query II rowsort label-2095
SELECT DISTINCT - 77 / 25 col0, NULLIF ( - 3, + - 65 + - COUNT ( * ) ) * + 76 AS col0
----
-3
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT ALL + 66 + - - COUNT( + + 26 ) + + 61 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL + 66 + - - COUNT ( + + 26 ) + + 61 AS col2
----
128

query I rowsort
SELECT DISTINCT + 33 + ( + ( 36 ) ) col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2098
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) + + 48 AS col0, + 2 AS col0
----
49
2

skipif mysql # not compatible
query II rowsort label-2098
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + + 48 AS col0, + 2 AS col0
----
49
2

query I rowsort
SELECT 69 + + 50 - + + 71
----
48

query I rowsort
SELECT + 49 * - - 41 - - 91
----
2100

query I rowsort
SELECT ALL 69 * 17 AS col1
----
1173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2102
SELECT 40, NULLIF ( 21, + 59 * + 10 ) - - ( - CAST( NULLIF ( AVG ( 65 ), + - 51 + - 17 ) AS SIGNED ) ) * - + 58 * + MIN( - + 28 ) AS col0
----
40
-105539

skipif mysql # not compatible
query II rowsort label-2102
SELECT 40, NULLIF ( 21, + 59 * + 10 ) - - ( - CAST ( NULLIF ( AVG ( 65 ), + - 51 + - 17 ) AS INTEGER ) ) * - + 58 * + MIN ( - + 28 ) AS col0
----
40
-105539

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT COUNT( 57 ) + 11
----
12

skipif mysql # not compatible
query I rowsort label-2103
SELECT COUNT ( 57 ) + 11
----
12

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

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

query I rowsort
SELECT ALL 63 - - - 17 AS col2
----
46

query I rowsort
SELECT NULLIF ( - 22, - 22 ) + - 31 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 62 AS col2, 24 AS col1
----
62
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2108
SELECT ALL NULLIF ( 60, + COUNT( * ) + COUNT( DISTINCT - 36 ) + - 51 ) DIV + 9 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL NULLIF ( 60, + COUNT ( * ) + COUNT ( DISTINCT - 36 ) + - 51 ) / + 9 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2109
SELECT CAST( NULL AS SIGNED ) / - + 14 * + ( - COUNT( * ) ) / 19 * + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2109
SELECT CAST ( NULL AS INTEGER ) / - + 14 * + ( - COUNT ( * ) ) / 19 * + 36 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2110
SELECT ALL 9 DIV + 6 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL 9 / + 6 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT COALESCE ( - 34, 78, + COUNT( * ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-2111
SELECT COALESCE ( - 34, 78, + COUNT ( * ) ) AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2112
SELECT CAST( NULL AS SIGNED ) * + - CASE + 56 WHEN - + 63 THEN + + 29 END - NULLIF ( - 62, + ( - ( ( + 18 ) ) ) + - - 6 ) + - COUNT( 84 ) / - 80 + 61 / - 29 * + 91 * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT CAST ( NULL AS INTEGER ) * + - CASE + 56 WHEN - + 63 THEN + + 29 END - NULLIF ( - 62, + ( - ( ( + 18 ) ) ) + - - 6 ) + - COUNT ( 84 ) / - 80 + 61 / - 29 * + 91 * 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ALL 31 * - - 98 * COUNT( * ) AS col1
----
3038

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL 31 * - - 98 * COUNT ( * ) AS col1
----
3038

query II rowsort
SELECT 28 AS col0, + 81 AS col1
----
28
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2115
SELECT DISTINCT - + 7 * + COUNT( * ) + + 81, + ( + 44 ) AS col0
----
74
44

skipif mysql # not compatible
query II rowsort label-2115
SELECT DISTINCT - + 7 * + COUNT ( * ) + + 81, + ( + 44 ) AS col0
----
74
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT ALL - - COUNT( * ) * + 84 + - + 15 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL - - COUNT ( * ) * + 84 + - + 15 AS col0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2117
SELECT + - 25 - + + SUM( DISTINCT - 1 ) * 45 DIV - 49
----
-25

skipif mysql # not compatible
query I rowsort label-2117
SELECT + - 25 - + + SUM ( DISTINCT - 1 ) * 45 / - 49
----
-25

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2119
SELECT + 70 * - - 74 - - 33 + + 10 + - 33 DIV - 55 * 6
----
5223

skipif mysql # not compatible
query I rowsort label-2119
SELECT + 70 * - - 74 - - 33 + + 10 + - 33 / - 55 * 6
----
5223

query II rowsort
SELECT ALL + - 81, 88 AS col0
----
-81
88

query I rowsort
SELECT DISTINCT - 57 * - - 79 + + + 12 + 99 + + 48 + 10 * 15 * 93 * + 36 + - 3
----
497853

query II rowsort
SELECT + + 59 AS col0, - 87 * - 92 AS col1
----
59
8004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2123
SELECT ALL - CAST( NULL AS SIGNED ) * - - 54 + - 17 * + - 55 * + ( - 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 54 + - 17 * + - 55 * + ( - 40 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2124
SELECT 85 / + + 61 - + CAST( NULL AS SIGNED ) * - - 48 * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT 85 / + + 61 - + CAST ( NULL AS INTEGER ) * - - 48 * + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2125
SELECT ALL + + 73 DIV 21 * + - 19 * + 12 AS col1
----
-684

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL + + 73 / 21 * + - 19 * + 12 AS col1
----
-684

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2129
SELECT - CASE + - CASE - 31 WHEN + 66 + + + COUNT( + 77 ) THEN NULL WHEN + 87 THEN + 30 * 88 * + - 27 + - 47 + - 29 + + COUNT( * ) / + MAX( + 73 ) + - ( ( 31 ) ) - - AVG ( - 77 ) + + + 64 * - + 5 * 51 * + 3 * COUNT( * ) / 96 ELSE NULL END WHEN + ( + - CAST( - 89 AS SIGNED ) ) THEN NULL ELSE - 76 END + + + 26
----
102

skipif mysql # not compatible
query I rowsort label-2129
SELECT - CASE + - CASE - 31 WHEN + 66 + + + COUNT ( + 77 ) THEN NULL WHEN + 87 THEN + 30 * 88 * + - 27 + - 47 + - 29 + + COUNT ( * ) / + MAX ( + 73 ) + - ( ( 31 ) ) - - AVG ( - 77 ) + + + 64 * - + 5 * 51 * + 3 * COUNT ( * ) / 96 ELSE NULL END WHEN + ( + - CAST ( - 89 AS INTEGER ) ) THEN NULL ELSE - 76 END + + + 26
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-2130
SELECT ALL + 13 DIV - + 22 * + 2
----
0

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL + 13 / - + 22 * + 2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2131
SELECT - 70 + + 58 * + + 29 + - 93 + + 74 - - COUNT( * ) DIV 68 DIV + 16 + + MAX( ALL 32 ) + 64
----
1689

skipif mysql # not compatible
query I rowsort label-2131
SELECT - 70 + + 58 * + + 29 + - 93 + + 74 - - COUNT ( * ) / 68 / + 16 + + MAX ( ALL 32 ) + 64
----
1689

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

query I rowsort
SELECT ALL - 40 * - 61 AS col2
----
2440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2134
SELECT - CAST( + ( - + NULLIF ( 37, + 5 * - + 93 * + 49 + - 91 ) ) AS SIGNED ) * + MIN( + - 30 )
----
-1110

skipif mysql # not compatible
query I rowsort label-2134
SELECT - CAST ( + ( - + NULLIF ( 37, + 5 * - + 93 * + 49 + - 91 ) ) AS INTEGER ) * + MIN ( + - 30 )
----
-1110

query II rowsort
SELECT - 34 * - 41 AS col0, - 37
----
1394
-37

query I rowsort
SELECT + 16 + + 15
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2137
SELECT - COALESCE ( - 18, + + ( - 58 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT - COALESCE ( - 18, + + ( - 58 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 74 * - 60 AS col0
----
-4440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2139
SELECT ALL + MAX( ALL + 38 ) DIV 36 * 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + MAX ( ALL + 38 ) / 36 * 76 AS col1
----
76

query I rowsort
SELECT - NULLIF ( + 72, ( + - 72 ) )
----
-72

query I rowsort
SELECT - 62 + + 21 * - + 2 AS col2
----
-104

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2142
SELECT + 68 - + COALESCE ( CAST( NULL AS SIGNED ), + - 16 DIV + 80 + - - ( + + 97 ) + + 75 ) AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-2142
SELECT + 68 - + COALESCE ( CAST ( NULL AS INTEGER ), + - 16 / + 80 + - - ( + + 97 ) + + 75 ) AS col2
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT - CASE + COUNT( * ) WHEN - + 35 / - 9 + - 59 THEN 64 * - 49 + - 98 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT - CASE + COUNT ( * ) WHEN - + 35 / - 9 + - 59 THEN 64 * - 49 + - 98 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + + 15 + + + 20 + + - 16 AS col0
----
19

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

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

query I rowsort
SELECT + 26 + 14 AS col1
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT + + 45 * COUNT( - 4 ) + + 91 + + 48
----
184

skipif mysql # not compatible
query I rowsort label-2148
SELECT + + 45 * COUNT ( - 4 ) + + 91 + + 48
----
184

query II rowsort
SELECT - + ( 78 ) + + 20 * 13, ( + 98 ) * - - 70 + + 85 AS col2
----
182
6945

query I rowsort
SELECT + - 53 * + 19 * - - 27
----
-27189

query I rowsort
SELECT + - CASE 13 WHEN 47 THEN 46 + + 77 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT DISTINCT + 14 * - + 52 * + 32 * + CAST( 10 AS SIGNED ) AS col2
----
-232960

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT + 14 * - + 52 * + 32 * + CAST ( 10 AS INTEGER ) AS col2
----
-232960

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL + COALESCE ( - + COUNT( * ), + + 77 * - 55, - 94 + - 93 * + + ( - ( + 90 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL + COALESCE ( - + COUNT ( * ), + + 77 * - 55, - 94 + - 93 * + + ( - ( + 90 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT - ( + COUNT( + 22 ) ) * 32 + + ( + COALESCE ( - + 16, - CASE - 95 WHEN 67 + - 57 - + 92 + - + 98 / - 59 * + MIN( ALL - + 89 ) * + 11 / 64 * + 46 - + 15 * - + 55 THEN + - COUNT( ALL + + 45 ) + - - 65 ELSE NULL END ) ) + + 70 * + - 41
----
-2918

skipif mysql # not compatible
query I rowsort label-2154
SELECT - ( + COUNT ( + 22 ) ) * 32 + + ( + COALESCE ( - + 16, - CASE - 95 WHEN 67 + - 57 - + 92 + - + 98 / - 59 * + MIN ( ALL - + 89 ) * + 11 / 64 * + 46 - + 15 * - + 55 THEN + - COUNT ( ALL + + 45 ) + - - 65 ELSE NULL END ) ) + + 70 * + - 41
----
-2918

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2155
SELECT ALL 94 * - COALESCE ( 14, + 54 * - - 99 ) col0, CAST( NULL AS SIGNED )
----
-1316
NULL

skipif mysql # not compatible
query II rowsort label-2155
SELECT ALL 94 * - COALESCE ( 14, + 54 * - - 99 ) col0, CAST ( NULL AS INTEGER )
----
-1316
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT NULLIF ( + 26, - - COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-2156
SELECT NULLIF ( + 26, - - COUNT ( * ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT CASE 48 WHEN - - 7 / + - COUNT( * ) THEN + 5 * + + COUNT( - + 76 ) WHEN - + COUNT( 41 ) * + COUNT( * ) * + 19 + - 7 + + NULLIF ( - 8, - 84 * CASE + - 85 WHEN - + 35 THEN COUNT( * ) WHEN + + SUM( DISTINCT 64 ) * - 15 + - 57 - ( 40 ) / - + CASE - COUNT( * ) WHEN 88 THEN NULL WHEN 54 * ( CASE - - 44 WHEN + 31 THEN + - ( 37 ) * - + 55 ELSE NULL END ) * 96 THEN NULL ELSE - + COALESCE ( ( - ( - MIN( ALL - - 32 ) ) ), - 36, - 26 ) END + - + 51 / + 74 THEN - MIN( DISTINCT 53 ) WHEN - NULLIF ( + 13, - 2 ) + - 96 THEN NULL ELSE 78 END - 53 ) - 3 * + 16 THEN - 25 * + 62 WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT CASE 48 WHEN - - 7 / + - COUNT ( * ) THEN + 5 * + + COUNT ( - + 76 ) WHEN - + COUNT ( 41 ) * + COUNT ( * ) * + 19 + - 7 + + NULLIF ( - 8, - 84 * CASE + - 85 WHEN - + 35 THEN COUNT ( * ) WHEN + + SUM ( DISTINCT 64 ) * - 15 + - 57 - ( 40 ) / - + CASE - COUNT ( * ) WHEN 88 THEN NULL WHEN 54 * ( CASE - - 44 WHEN + 31 THEN + - ( 37 ) * - + 55 ELSE NULL END ) * 96 THEN NULL ELSE - + COALESCE ( ( - ( - MIN ( ALL - - 32 ) ) ), - 36, - 26 ) END + - + 51 / + 74 THEN - MIN ( DISTINCT 53 ) WHEN - NULLIF ( + 13, - 2 ) + - 96 THEN NULL ELSE 78 END - 53 ) - 3 * + 16 THEN - 25 * + 62 WHEN - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL + NULLIF ( COUNT( * ), + + 5 * 30 + 14 )
----
1

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + NULLIF ( COUNT ( * ), + + 5 * 30 + 14 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2159
SELECT - 58 + + CAST( + 0 AS SIGNED ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-2159
SELECT - 58 + + CAST ( + 0 AS INTEGER ) AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2160
SELECT CASE 97 WHEN + CAST( ( CAST( NULL AS SIGNED ) ) AS SIGNED ) THEN NULL WHEN - 66 / + 57 * 73 + - 7 + + + SUM( DISTINCT + - 11 ) THEN + COALESCE ( - + 96, - 88 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2160
SELECT CASE 97 WHEN + CAST ( ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) THEN NULL WHEN - 66 / + 57 * 73 + - 7 + + + SUM ( DISTINCT + - 11 ) THEN + COALESCE ( - + 96, - 88 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL ( - ( 30 ) ) AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2162
SELECT DISTINCT 45 DIV + ( - - 82 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT 45 / + ( - - 82 ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT - 74 DIV - - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2163
SELECT - 74 / - - 83 AS col2
----
0

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

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

query I rowsort
SELECT DISTINCT + 92 * - 8
----
-736

query I rowsort
SELECT - 68 + - - 61
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2167
SELECT 3 DIV + COALESCE ( - COUNT( * ), - 15 + - 10 + + 48 + + + 48 * + + 89 + - 8, + ( - COUNT( * ) ) )
----
-3

skipif mysql # not compatible
query I rowsort label-2167
SELECT 3 / + COALESCE ( - COUNT ( * ), - 15 + - 10 + + 48 + + + 48 * + + 89 + - 8, + ( - COUNT ( * ) ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT ALL + + 74 + + ( - - 75 ) + - 51 * - + COUNT( * ) * - - 82 AS col1
----
4331

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL + + 74 + + ( - - 75 ) + - 51 * - + COUNT ( * ) * - - 82 AS col1
----
4331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2169
SELECT CASE + NULLIF ( - 73, + + 9 + - + 51 * + COUNT( * ) + 21 + COALESCE ( - NULLIF ( + COUNT( CASE - + 70 WHEN + + 29 THEN 66 ELSE NULL END ), + CAST( - 95 AS SIGNED ) * + CAST( NULL AS SIGNED ) * - 52 + + AVG ( - + 95 ) ), + COUNT( * ) ) + - 94 ) WHEN + COALESCE ( + 14, + 67 / - + 50 + 28 ) THEN 2 - - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2169
SELECT CASE + NULLIF ( - 73, + + 9 + - + 51 * + COUNT ( * ) + 21 + COALESCE ( - NULLIF ( + COUNT ( CASE - + 70 WHEN + + 29 THEN 66 ELSE NULL END ), + CAST ( - 95 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - 52 + + AVG ( - + 95 ) ), + COUNT ( * ) ) + - 94 ) WHEN + COALESCE ( + 14, + 67 / - + 50 + 28 ) THEN 2 - - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2170
SELECT ALL - 86 col2, 76 - - + CAST( NULL AS SIGNED ) / 36 / + + 28 + - NULLIF ( - COUNT( * ), - + 88 ) * + 33 + 88 * + + CASE - COUNT( * ) WHEN - 14 THEN 94 + - + 83 WHEN - 49 + 99 THEN + + 70 END * 13 + 55 - + - 55
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-2170
SELECT ALL - 86 col2, 76 - - + CAST ( NULL AS INTEGER ) / 36 / + + 28 + - NULLIF ( - COUNT ( * ), - + 88 ) * + 33 + 88 * + + CASE - COUNT ( * ) WHEN - 14 THEN 94 + - + 83 WHEN - 49 + 99 THEN + + 70 END * 13 + 55 - + - 55
----
-86
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2171
SELECT 26 col2, 7 - 27 + + + SUM( + 74 )
----
26
54

skipif mysql # not compatible
query II rowsort label-2171
SELECT 26 col2, 7 - 27 + + + SUM ( + 74 )
----
26
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2172
SELECT DISTINCT - - COALESCE ( + CAST( NULL AS SIGNED ), + SUM( 54 ) ) + + + 64 * 23
----
1526

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT - - COALESCE ( + CAST ( NULL AS INTEGER ), + SUM ( 54 ) ) + + + 64 * 23
----
1526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2173
SELECT ALL + COALESCE ( - 3, - COUNT( * ) ) + - - 63 + + CAST( + 5 AS SIGNED ) * - 6 - 5 * + CAST( NULL AS SIGNED ) / - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL + COALESCE ( - 3, - COUNT ( * ) ) + - - 63 + + CAST ( + 5 AS INTEGER ) * - 6 - 5 * + CAST ( NULL AS INTEGER ) / - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT - + COALESCE ( - 51, + MAX( 90 ), - 29 ) * - ( - + 51 ) + + 58
----
2659

skipif mysql # not compatible
query I rowsort label-2174
SELECT - + COALESCE ( - 51, + MAX ( 90 ), - 29 ) * - ( - + 51 ) + + 58
----
2659

query I rowsort
SELECT ALL - 37 * - - 16 AS col1
----
-592

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL COUNT( * ) - 43 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL COUNT ( * ) - 43 AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT - 98 / - + 85 * - CAST( NULL AS SIGNED ) - + + 76 * + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT - 98 / - + 85 * - CAST ( NULL AS INTEGER ) - + + 76 * + - 24
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT ALL - + ( - 1 ) * 8 DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL - + ( - 1 ) * 8 / - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT - 26 - - COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2179
SELECT - 26 - - COUNT ( * ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT ALL COUNT( * ) - - + 23
----
24

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL COUNT ( * ) - - + 23
----
24

query I rowsort
SELECT ( + 37 ) * ( - 25 ) + - 17 AS col2
----
-942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2182
SELECT DISTINCT - 5 * + + 64 * - 47 - 78 * - CAST( NULL AS SIGNED ) * 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT - 5 * + + 64 * - 47 - 78 * - CAST ( NULL AS INTEGER ) * 59 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2183
SELECT DISTINCT 12 DIV - - 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT 12 / - - 32 AS col2
----
0

query I rowsort
SELECT 62 + + 52 AS col1
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-2185
SELECT ALL 47 DIV + 33
----
1

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL 47 / + 33
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2186
SELECT 69 * - - COUNT( * ), + 79 col0
----
69
79

skipif mysql # not compatible
query II rowsort label-2186
SELECT 69 * - - COUNT ( * ), + 79 col0
----
69
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2187
SELECT + 74 * 78 * + CASE - 8 WHEN - ( - CAST( NULL AS SIGNED ) ) DIV - 43 + - 65 + + ( - NULLIF ( + 88, CAST( NULL AS SIGNED ) ) ) + + - 14 + - - 55 THEN - COUNT( * ) WHEN - + 0 * - 81 THEN + ( - + 79 ) ELSE COUNT( * ) DIV + 73 * + - 77 * - - ( 3 ) * + + 76 END * - + ( - - 76 ) + + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2187
SELECT + 74 * 78 * + CASE - 8 WHEN - ( - CAST ( NULL AS INTEGER ) ) / - 43 + - 65 + + ( - NULLIF ( + 88, CAST ( NULL AS INTEGER ) ) ) + + - 14 + - - 55 THEN - COUNT ( * ) WHEN - + 0 * - 81 THEN + ( - + 79 ) ELSE COUNT ( * ) / + 73 * + - 77 * - - ( 3 ) * + + 76 END * - + ( - - 76 ) + + 23 AS col0
----
23

query I rowsort
SELECT ALL COALESCE ( 33, ( + - 98 ) ) * - 28 AS col0
----
-924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2189
SELECT ALL - CASE 97 WHEN CASE - - 84 WHEN NULLIF ( - 9, - + 71 * + 78 + - NULLIF ( 64, 2 ) - - NULLIF ( - 7, + COUNT( - ( - - 87 ) ) * 15 / + 1 ) + - + 43 / - MAX( ALL - 64 ) + - 97 ) * 34 THEN - - CAST( NULL AS SIGNED ) * - 6 - + 67 END + - + 63 THEN - 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL - CASE 97 WHEN CASE - - 84 WHEN NULLIF ( - 9, - + 71 * + 78 + - NULLIF ( 64, 2 ) - - NULLIF ( - 7, + COUNT ( - ( - - 87 ) ) * 15 / + 1 ) + - + 43 / - MAX ( ALL - 64 ) + - 97 ) * 34 THEN - - CAST ( NULL AS INTEGER ) * - 6 - + 67 END + - + 63 THEN - 82 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2190
SELECT 4 * - - 28 * + + COUNT ( * ) AS col2
----
112

query I rowsort
SELECT ALL 4 + - 92 * + 43 AS col1
----
-3952

query II rowsort
SELECT 67, 63 * - - 61 + + - ( + - 15 ) AS col1
----
67
3858

query I rowsort
SELECT ( - 17 ) * + - 20 - ( + 65 ) + + - 34 col2
----
241

query I rowsort
SELECT 29 * + 16
----
464

onlyif mysql # aggregate syntax: 
query II rowsort label-2195
SELECT 10 AS col0, - COUNT( * ) + + 94 * - 54 - - 87 AS col2
----
10
-4990

skipif mysql # not compatible
query II rowsort label-2195
SELECT 10 AS col0, - COUNT ( * ) + + 94 * - 54 - - 87 AS col2
----
10
-4990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2196
SELECT NULLIF ( - - 68, CAST( 70 AS SIGNED ) + + ( + - 44 ) ) + 18 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-2196
SELECT NULLIF ( - - 68, CAST ( 70 AS INTEGER ) + + ( + - 44 ) ) + 18 AS col2
----
86

query I rowsort
SELECT 42 + - 29
----
13

query I rowsort
SELECT ALL - 15 + + - 5
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2199
SELECT DISTINCT 24 AS col1, 54 AS col0, + CAST( NULL AS SIGNED ) * - 33 AS col1
----
24
54
NULL

skipif mysql # not compatible
query III rowsort label-2199
SELECT DISTINCT 24 AS col1, 54 AS col0, + CAST ( NULL AS INTEGER ) * - 33 AS col1
----
24
54
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2200
SELECT ALL 75 col0, COALESCE ( 72, + 32 * COUNT( * ) - + 29 )
----
75
72

skipif mysql # not compatible
query II rowsort label-2200
SELECT ALL 75 col0, COALESCE ( 72, + 32 * COUNT ( * ) - + 29 )
----
75
72

query I rowsort
SELECT - 85 * + - 6 * + 88 AS col2
----
44880

query I rowsort
SELECT ALL - 44 * + - ( - 57 ) AS col0
----
-2508

onlyif mysql # aggregate syntax: 
query II rowsort label-2203
SELECT + 8 + - - MIN( ALL 39 ) * - + COUNT( * ) col1, ( + ( - - 43 ) ) * - + 83 * - 52 AS col0
----
-31
185588

skipif mysql # not compatible
query II rowsort label-2203
SELECT + 8 + - - MIN ( ALL 39 ) * - + COUNT ( * ) col1, ( + ( - - 43 ) ) * - + 83 * - 52 AS col0
----
-31
185588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2204
SELECT - 17 - CASE - + 31 WHEN + 42 THEN - - ( - COUNT( * ) ) WHEN - NULLIF ( + 98, + - 5 ) + + 79 THEN NULL ELSE - 24 * + ( + 77 ) END + - - 65 * + + SUM( DISTINCT + 58 ) + - COUNT( * ) DIV 89
----
5601

skipif mysql # not compatible
query I rowsort label-2204
SELECT - 17 - CASE - + 31 WHEN + 42 THEN - - ( - COUNT ( * ) ) WHEN - NULLIF ( + 98, + - 5 ) + + 79 THEN NULL ELSE - 24 * + ( + 77 ) END + - - 65 * + + SUM ( DISTINCT + 58 ) + - COUNT ( * ) / 89
----
5601

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT + - COUNT( * ) * + CASE + 58 WHEN + 10 THEN - ( + 3 ) / - 15 * - 93 + - + SUM( ALL + - 50 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT + - COUNT ( * ) * + CASE + 58 WHEN + 10 THEN - ( + 3 ) / - 15 * - 93 + - + SUM ( ALL + - 50 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2206
SELECT 10 + - MIN( - 41 ) + + 92 * + CASE - 63 WHEN - 14 * ( 50 ) * + 24 THEN + 62 WHEN 49 - ( NULLIF ( + 53, + + 47 ) ) THEN NULL ELSE NULL END * COUNT( * ) * + NULLIF ( CASE + + 99 WHEN - + CAST( - 39 AS SIGNED ) THEN NULL WHEN + 83 THEN - 94 ELSE 17 END, - - CAST( - SUM( ALL + + ( 57 ) ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT 10 + - MIN ( - 41 ) + + 92 * + CASE - 63 WHEN - 14 * ( 50 ) * + 24 THEN + 62 WHEN 49 - ( NULLIF ( + 53, + + 47 ) ) THEN NULL ELSE NULL END * COUNT ( * ) * + NULLIF ( CASE + + 99 WHEN - + CAST ( - 39 AS INTEGER ) THEN NULL WHEN + 83 THEN - 94 ELSE 17 END, - - CAST ( - SUM ( ALL + + ( 57 ) ) AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2207
SELECT - 44 + + COUNT( * ) * + + 60 DIV + 29 + + 8
----
-34

skipif mysql # not compatible
query I rowsort label-2207
SELECT - 44 + + COUNT ( * ) * + + 60 / + 29 + + 8
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2208
SELECT - COUNT( + + 18 ) * - + 13 + - CAST( 80 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-2208
SELECT - COUNT ( + + 18 ) * - + 13 + - CAST ( 80 AS INTEGER )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-2209
SELECT - 83 AS col2, MIN( + 19 ) * - COUNT( * ) + + 14
----
-83
-5

skipif mysql # not compatible
query II rowsort label-2209
SELECT - 83 AS col2, MIN ( + 19 ) * - COUNT ( * ) + + 14
----
-83
-5

query I rowsort
SELECT - 57 + - 31 + + 51
----
-37

query I rowsort
SELECT 90 + - 64
----
26

query II rowsort
SELECT ALL - 49 AS col0, 39 * + 97
----
-49
3783

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

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

query II rowsort
SELECT ALL - + 50, 8 AS col2
----
-50
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2215
SELECT + 24 + - 21 * MIN( ALL - - 16 ) / + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2215
SELECT + 24 + - 21 * MIN ( ALL - - 16 ) / + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - + 20
----
NULL

query I rowsort
SELECT + + NULLIF ( 46, 56 * + 50 ) AS col2
----
46

query II rowsort
SELECT DISTINCT - 64 * + 98, + 4 AS col2
----
-6272
4

query I rowsort
SELECT 72 * 57
----
4104

onlyif mysql # DIV for integer division: 
query I rowsort label-2219
SELECT 91 DIV + 58 + + + 97 + + 53 AS col0
----
151

skipif mysql # not compatible
query I rowsort label-2219
SELECT 91 / + 58 + + + 97 + + 53 AS col0
----
151

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

skipif mysql # not compatible
query I rowsort label-2220
SELECT 78 / 85
----
0

query I rowsort
SELECT DISTINCT - 64 + 28 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT DISTINCT + 10 + - - COUNT( 63 )
----
11

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT + 10 + - - COUNT ( 63 )
----
11

query I rowsort
SELECT DISTINCT - 46 + + 18 col1
----
-28

query I rowsort
SELECT DISTINCT 87 + - 85 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2225
SELECT + MIN( + 88 ) * 70 * CAST( NULL AS SIGNED ) - + COUNT( * ) - - + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT + MIN ( + 88 ) * 70 * CAST ( NULL AS INTEGER ) - + COUNT ( * ) - - + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT MIN( + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-2226
SELECT MIN ( + 45 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2227
SELECT ALL AVG ( + 11 ) / - CASE - + 7 WHEN - COALESCE ( COUNT( * ), + + ( CAST( NULL AS SIGNED ) ) ) THEN + COUNT( * ) WHEN - + 77 THEN NULL WHEN - NULLIF ( COUNT( * ), - 39 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL AVG ( + 11 ) / - CASE - + 7 WHEN - COALESCE ( COUNT ( * ), + + ( CAST ( NULL AS INTEGER ) ) ) THEN + COUNT ( * ) WHEN - + 77 THEN NULL WHEN - NULLIF ( COUNT ( * ), - 39 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2228
SELECT - CASE + - CAST( NULL AS SIGNED ) WHEN + 1 * - COUNT( * ) * + COALESCE ( - + 84, - 47 - + ( 78 ) ) DIV 14 + - 3 THEN + 41 - MIN( 0 ) ELSE + - 3 END DIV - 16 * + ( 18 ) + - - COALESCE ( - + 16, - - 79 )
----
-16

skipif mysql # not compatible
query I rowsort label-2228
SELECT - CASE + - CAST ( NULL AS INTEGER ) WHEN + 1 * - COUNT ( * ) * + COALESCE ( - + 84, - 47 - + ( 78 ) ) / 14 + - 3 THEN + 41 - MIN ( 0 ) ELSE + - 3 END / - 16 * + ( 18 ) + - - COALESCE ( - + 16, - - 79 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT 29 * + COUNT( * ) - + 97 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-2229
SELECT 29 * + COUNT ( * ) - + 97 AS col0
----
-68

query I rowsort
SELECT DISTINCT 51 + + + 67 - 53
----
65

query I rowsort
SELECT - 50 * + 43 + 35 AS col2
----
-2115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2232
SELECT ALL 86 + COALESCE ( + - 49, 78 DIV COUNT( 98 ) + 28 + + - NULLIF ( - 6, - + ( - 17 ) * 34 ) + - 69 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL 86 + COALESCE ( + - 49, 78 / COUNT ( 98 ) + 28 + + - NULLIF ( - 6, - + ( - 17 ) * 34 ) + - 69 ) AS col1
----
37

query I rowsort
SELECT + 9 * + + 55 AS col1
----
495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2234
SELECT DISTINCT 15 + + COALESCE ( NULLIF ( - 77, - - COUNT( * ) + - CAST( - 91 AS SIGNED ) ), 92 + ( + + 62 ) * + + 48 ) + - - ( 67 ) * + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT 15 + + COALESCE ( NULLIF ( - 77, - - COUNT ( * ) + - CAST ( - 91 AS INTEGER ) ), 92 + ( + + 62 ) * + + 48 ) + - - ( 67 ) * + COUNT ( * )
----
5

query I rowsort
SELECT ALL - 3 + 94
----
91

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

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

query I rowsort
SELECT - ( + 46 ) * - 42
----
1932

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

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

query I rowsort
SELECT DISTINCT - - 64 - - 28 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT + ( - COUNT( * ) ) * 33 + - 64 + - 34
----
-131

skipif mysql # not compatible
query I rowsort label-2240
SELECT + ( - COUNT ( * ) ) * 33 + - 64 + - 34
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2241
SELECT ALL + NULLIF ( + SUM( ALL - + 20 ), CAST( + - 25 AS SIGNED ) )
----
-20

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL + NULLIF ( + SUM ( ALL - + 20 ), CAST ( + - 25 AS INTEGER ) )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT ALL - CAST( - CAST( + - 72 AS SIGNED ) AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - CAST ( - CAST ( + - 72 AS INTEGER ) AS INTEGER )
----
-72

query I rowsort
SELECT DISTINCT - 27 * - - 18 - - + 58 + - 12 AS col2
----
-440

query I rowsort
SELECT - - 16 * - 97 AS col1
----
-1552

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT - 51 * 35 + SUM( - 76 )
----
-1861

skipif mysql # not compatible
query I rowsort label-2245
SELECT - 51 * 35 + SUM ( - 76 )
----
-1861

query I rowsort
SELECT + - NULLIF ( NULLIF ( + 59, - 57 ), 69 ) * + 65 * - 41 AS col1
----
157235

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

skipif mysql # not compatible
query I rowsort label-2247
SELECT + + COUNT ( * ) / + 68 + + + 38 + - - COUNT ( * )
----
39

query I rowsort
SELECT - 58 * + 21
----
-1218

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT - 35 DIV + 28
----
-1

skipif mysql # not compatible
query I rowsort label-2250
SELECT - 35 / + 28
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2251
SELECT + COUNT( * ), 41 + 78 AS col0
----
1
119

skipif mysql # not compatible
query II rowsort label-2251
SELECT + COUNT ( * ), 41 + 78 AS col0
----
1
119

query I rowsort
SELECT - 5 - 93 AS col1
----
-98

query II rowsort
SELECT ALL + 59, 81 col1
----
59
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT DISTINCT 22 * - - 7 + + SUM( DISTINCT + ( + 33 ) ) + + COUNT( * )
----
188

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT 22 * - - 7 + + SUM ( DISTINCT + ( + 33 ) ) + + COUNT ( * )
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT ALL + COALESCE ( + COUNT( * ), - 2, + 46 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL + COALESCE ( + COUNT ( * ), - 2, + 46 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2256
SELECT 96 * - 64 + - COUNT( * ) AS col2, CAST( NULL AS SIGNED )
----
-6145
NULL

skipif mysql # not compatible
query II rowsort label-2256
SELECT 96 * - 64 + - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER )
----
-6145
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT ALL COUNT( * ) * - + SUM( DISTINCT 30 ) * + ( - 78 ) * 28 + + 71 col1
----
65591

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL COUNT ( * ) * - + SUM ( DISTINCT 30 ) * + ( - 78 ) * 28 + + 71 col1
----
65591

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT COALESCE ( - 91, - + MIN( - + 51 ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-2259
SELECT COALESCE ( - 91, - + MIN ( - + 51 ) ) AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2260
SELECT + 22 * - + COUNT( * ) / + - CAST( NULL AS DECIMAL ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT + 22 * - + COUNT ( * ) / + - CAST ( NULL AS REAL ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT - 28 - + MAX( ALL - 88 ) + + + 78 - + + 36 + - - ( + 47 )
----
149

skipif mysql # not compatible
query I rowsort label-2261
SELECT - 28 - + MAX ( ALL - 88 ) + + + 78 - + + 36 + - - ( + 47 )
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2262
SELECT + 45 DIV + + COALESCE ( - 70, - - ( - AVG ( + + 99 ) ) + SUM( + 65 ) ) AS col2, 23
----
0
23

skipif mysql # not compatible
query II rowsort label-2262
SELECT + 45 / + + COALESCE ( - 70, - - ( - AVG ( + + 99 ) ) + SUM ( + 65 ) ) AS col2, 23
----
0
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2263
SELECT DISTINCT + 9 * CAST( + ( 76 ) AS SIGNED ) * 72 + + 26 DIV + + 13 AS col0
----
49250

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT + 9 * CAST ( + ( 76 ) AS INTEGER ) * 72 + + 26 / + + 13 AS col0
----
49250

onlyif mysql # aggregate syntax: 
query II rowsort label-2264
SELECT ALL - COUNT( * ) * + COUNT( * ) * - 48 + + 75, 5 col1
----
123
5

skipif mysql # not compatible
query II rowsort label-2264
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * - 48 + + 75, 5 col1
----
123
5

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT + COUNT( * ) + - - 64 col1
----
65

skipif mysql # not compatible
query I rowsort label-2267
SELECT + COUNT ( * ) + - - 64 col1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT ALL CAST( 5 AS SIGNED ) col0
----
5

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL CAST ( 5 AS INTEGER ) col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT - - 93 * - 35 * - - 9 * - 51 + + + COALESCE ( - COUNT( * ), 49 ) + - + MIN( ALL 86 ) * - 3 + - - 22 * ( 86 ) AS col1
----
1496194

skipif mysql # not compatible
query I rowsort label-2269
SELECT - - 93 * - 35 * - - 9 * - 51 + + + COALESCE ( - COUNT ( * ), 49 ) + - + MIN ( ALL 86 ) * - 3 + - - 22 * ( 86 ) AS col1
----
1496194

query II rowsort
SELECT - 72, 40 col0
----
-72
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2271
SELECT - + 36 + + + 95 DIV MIN( - 78 ) + + - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-2271
SELECT - + 36 + + + 95 / MIN ( - 78 ) + + - COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL + SUM( ALL - + 94 ) * - 12 AS col2
----
1128

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL + SUM ( ALL - + 94 ) * - 12 AS col2
----
1128

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

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

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

query II rowsort
SELECT ALL - ( - ( - 61 ) ), 55 AS col1
----
-61
55

query II rowsort
SELECT ALL 90, + 95 + + 64 AS col0
----
90
159

query I rowsort
SELECT ALL - 31 * - 49 AS col1
----
1519

query II rowsort
SELECT + 92 + + 74 - + 27 AS col2, - 88
----
139
-88

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-2281
SELECT ALL - COUNT ( * ) AS col0, 76
----
-1
76

onlyif mysql # aggregate syntax: 
query II rowsort label-2282
SELECT - + 53, + SUM( ALL + 68 ) AS col1
----
-53
68

skipif mysql # not compatible
query II rowsort label-2282
SELECT - + 53, + SUM ( ALL + 68 ) AS col1
----
-53
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT + - 29 + + + SUM( DISTINCT - - 3 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-2283
SELECT + - 29 + + + SUM ( DISTINCT - - 3 ) AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2284
SELECT + 19 * - - COUNT( * ) * - - CAST( NULL AS DECIMAL ) * - 88 - - 87 * + COUNT( * ) * - + 84 - - - 95 AS col1, 91 * + 86
----
NULL
7826

skipif mysql # not compatible
query II rowsort label-2284
SELECT + 19 * - - COUNT ( * ) * - - CAST ( NULL AS REAL ) * - 88 - - 87 * + COUNT ( * ) * - + 84 - - - 95 AS col1, 91 * + 86
----
NULL
7826

query I rowsort
SELECT + + 54 + - + 9 + + - 9 + + COALESCE ( - 18, + 44 - + 47 ) col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2286
SELECT ALL CAST( NULL AS SIGNED ) AS col1, CASE - 78 WHEN + + 51 + + 64 + - + ( + - 32 ) THEN - 67 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2286
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, CASE - 78 WHEN + + 51 + + 64 + - + ( + - 32 ) THEN - 67 END
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT + + CAST( NULL AS SIGNED ) / - 59 - AVG ( + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT + + CAST ( NULL AS INTEGER ) / - 59 - AVG ( + 78 )
----
NULL

query I rowsort
SELECT ALL + 4 + - 65
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT DISTINCT MIN( ALL 43 ) + - 96 + + 46 * + - 89 AS col2
----
-4147

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT MIN ( ALL 43 ) + - 96 + + 46 * + - 89 AS col2
----
-4147

query I rowsort
SELECT DISTINCT + 19 * + 44 AS col0
----
836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2291
SELECT ALL + ( 26 ) DIV - + 86 DIV - 13 * + 61 * - CAST( NULL AS SIGNED ) + 84 + + 61 * + MAX( ALL + 23 ) - - + COUNT( * ) + + + 14 + + 88 * - 81 DIV + 76 AS col1, 29 DIV + COUNT( * ) col2
----
NULL
29

skipif mysql # not compatible
query II rowsort label-2291
SELECT ALL + ( 26 ) / - + 86 / - 13 * + 61 * - CAST ( NULL AS INTEGER ) + 84 + + 61 * + MAX ( ALL + 23 ) - - + COUNT ( * ) + + + 14 + + 88 * - 81 / + 76 AS col1, 29 / + COUNT ( * ) col2
----
NULL
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2292
SELECT CAST( NULL AS SIGNED ) / - 1 + + CASE MIN( ALL - 63 ) WHEN - - 17 * - 63 THEN NULL WHEN - COUNT( * ) * - 88 + - - 14 * 94 + - - 4 / + ( ( + 85 ) ) THEN 78 + COUNT( * ) + - - 14 ELSE NULL END * + + COALESCE ( - - 43, COUNT( * ) + MIN( ALL + ( + 8 ) ) + + 86 * + ( - 67 ), 19 * + 59 + - 95 * + - 28 ) * + - 19, 40 col2
----
NULL
40

skipif mysql # not compatible
query II rowsort label-2292
SELECT CAST ( NULL AS INTEGER ) / - 1 + + CASE MIN ( ALL - 63 ) WHEN - - 17 * - 63 THEN NULL WHEN - COUNT ( * ) * - 88 + - - 14 * 94 + - - 4 / + ( ( + 85 ) ) THEN 78 + COUNT ( * ) + - - 14 ELSE NULL END * + + COALESCE ( - - 43, COUNT ( * ) + MIN ( ALL + ( + 8 ) ) + + 86 * + ( - 67 ), 19 * + 59 + - 95 * + - 28 ) * + - 19, 40 col2
----
NULL
40

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2294
SELECT DISTINCT COUNT( * ) DIV + COALESCE ( + NULLIF ( + - 79, - CASE + 84 WHEN - + 50 * 62 - - 30 THEN NULL WHEN CASE 8 WHEN + AVG ( - 51 ) THEN NULL WHEN 67 * COALESCE ( - 47, 62, - - 41 + - NULLIF ( + + 82, - 51 - 12 * + COALESCE ( + 96, 40 * - 86 + - 39, + COUNT( * ) * COUNT( DISTINCT + - 41 ) ) + - 12 ) ) * + CASE 43 WHEN 84 + + + NULLIF ( + 79, - - ( COUNT( * ) ) - + ( - 73 ) ) + - - 85 * 45 THEN NULL WHEN - - ( ( 90 ) ) + - COUNT( * ) * + ( 32 ) THEN + + 60 ELSE + 81 * 61 END + 52 * - COUNT( * ) THEN COUNT( * ) + - 99 * 55 ELSE NULL END DIV 91 THEN ( + 83 ) DIV 36 END ), - MAX( ALL + 25 ), 71 DIV + 14 - + CASE + SUM( ALL + 44 ) WHEN 70 * + 94 THEN 58 - 83 END * - 41 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT COUNT ( * ) / + COALESCE ( + NULLIF ( + - 79, - CASE + 84 WHEN - + 50 * 62 - - 30 THEN NULL WHEN CASE 8 WHEN + AVG ( - 51 ) THEN NULL WHEN 67 * COALESCE ( - 47, 62, - - 41 + - NULLIF ( + + 82, - 51 - 12 * + COALESCE ( + 96, 40 * - 86 + - 39, + COUNT ( * ) * COUNT ( DISTINCT + - 41 ) ) + - 12 ) ) * + CASE 43 WHEN 84 + + + NULLIF ( + 79, - - ( COUNT ( * ) ) - + ( - 73 ) ) + - - 85 * 45 THEN NULL WHEN - - ( ( 90 ) ) + - COUNT ( * ) * + ( 32 ) THEN + + 60 ELSE + 81 * 61 END + 52 * - COUNT ( * ) THEN COUNT ( * ) + - 99 * 55 ELSE NULL END / 91 THEN ( + 83 ) / 36 END ), - MAX ( ALL + 25 ), 71 / + 14 - + CASE + SUM ( ALL + 44 ) WHEN 70 * + 94 THEN 58 - 83 END * - 41 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2295
SELECT + 58 + - 88 AS col1, - 99 * COUNT( * ) DIV - - ( + + 59 )
----
-30
-1

skipif mysql # not compatible
query II rowsort label-2295
SELECT + 58 + - 88 AS col1, - 99 * COUNT ( * ) / - - ( + + 59 )
----
-30
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2296
SELECT CAST( + + COALESCE ( + + COUNT( * ), + ( + 53 ), - SUM( DISTINCT - ( - - 46 ) ) DIV 61 - 38 ) AS SIGNED ) DIV + 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2296
SELECT CAST ( + + COALESCE ( + + COUNT ( * ), + ( + 53 ), - SUM ( DISTINCT - ( - - 46 ) ) / 61 - 38 ) AS INTEGER ) / + 71 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2297
SELECT - 61 * - 95 + + CASE - 32 WHEN + + 72 * - 80 * + 91 * COUNT( * ) / - 5 - CAST( NULL AS SIGNED ) + - - 5 + + 73 - - + 60 * + 38 * - + 50 THEN NULL ELSE - CAST( NULL AS DECIMAL ) END + + MIN( + COALESCE ( - 11, + - 27, 35 + - 41 + - - 36 * 49 + + 26 ) ) * - 89 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT - 61 * - 95 + + CASE - 32 WHEN + + 72 * - 80 * + 91 * COUNT ( * ) / - 5 - CAST ( NULL AS INTEGER ) + - - 5 + + 73 - - + 60 * + 38 * - + 50 THEN NULL ELSE - CAST ( NULL AS REAL ) END + + MIN ( + COALESCE ( - 11, + - 27, 35 + - 41 + - - 36 * 49 + + 26 ) ) * - 89 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT ALL + 29 + - 56 * - + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL + 29 + - 56 * - + COUNT ( * )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2299
SELECT DISTINCT COUNT( * ) - + 27 + - ( - 58 ) + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT COUNT ( * ) - + 27 + - ( - 58 ) + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT 29 + - 61 + + 66 + + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-2300
SELECT 29 + - 61 + + 66 + + COUNT ( * )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2301
SELECT - NULLIF ( - + COUNT( * ), + - 49 + - + 49 + - COUNT( - - ( - ( + 35 ) ) ) + 19 * - + 69 ) * ( - + 57 ) * - - COALESCE ( - + COUNT( * ), - ( + 29 ) + - 30 DIV + 76, - COALESCE ( + + COALESCE ( + + MIN( DISTINCT 56 ), - - 38 * + 12 * - 73 + + + 28, + + NULLIF ( - - 65, 45 + - 26 ) ), - 74 ), - COUNT( * ), + - 36 + + CASE 1 WHEN - 34 THEN NULL ELSE + 19 * - - CAST( 48 AS SIGNED ) * COUNT( ALL - - 75 ) * - 41 DIV + + COUNT( * ) + - 93 + - MAX( DISTINCT 43 ) END ) + SUM( ALL ( + 46 ) ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-2301
SELECT - NULLIF ( - + COUNT ( * ), + - 49 + - + 49 + - COUNT ( - - ( - ( + 35 ) ) ) + 19 * - + 69 ) * ( - + 57 ) * - - COALESCE ( - + COUNT ( * ), - ( + 29 ) + - 30 / + 76, - COALESCE ( + + COALESCE ( + + MIN ( DISTINCT 56 ), - - 38 * + 12 * - 73 + + + 28, + + NULLIF ( - - 65, 45 + - 26 ) ), - 74 ), - COUNT ( * ), + - 36 + + CASE 1 WHEN - 34 THEN NULL ELSE + 19 * - - CAST ( 48 AS INTEGER ) * COUNT ( ALL - - 75 ) * - 41 / + + COUNT ( * ) + - 93 + - MAX ( DISTINCT 43 ) END ) + SUM ( ALL ( + 46 ) ) AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT - 42 * COUNT( * ) * 51 - - - 8 AS col0
----
-2150

skipif mysql # not compatible
query I rowsort label-2302
SELECT - 42 * COUNT ( * ) * 51 - - - 8 AS col0
----
-2150

query II rowsort
SELECT 57 * + 69, 35 AS col0
----
3933
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT MIN( + 19 ) + + + 59 * 54 AS col1
----
3205

skipif mysql # not compatible
query I rowsort label-2304
SELECT MIN ( + 19 ) + + + 59 * 54 AS col1
----
3205

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

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

query I rowsort
SELECT + 56 * - ( 8 ) + 58
----
-390

query I rowsort
SELECT DISTINCT - ( - COALESCE ( - 41, + 34 ) ) AS col0
----
-41

query I rowsort
SELECT DISTINCT + - 31 * - 92
----
2852

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2309
SELECT ALL + - 81 * + 2 col0, CASE + 19 WHEN - COUNT( * ) THEN NULL ELSE 0 DIV 21 + COALESCE ( - 37, - - 16 ) END
----
-162
-37

skipif mysql # not compatible
query II rowsort label-2309
SELECT ALL + - 81 * + 2 col0, CASE + 19 WHEN - COUNT ( * ) THEN NULL ELSE 0 / 21 + COALESCE ( - 37, - - 16 ) END
----
-162
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2310
SELECT - CAST( + - 44 AS SIGNED ) * 49 + + ( COALESCE ( + 70, - ( + 85 ), MAX( - 0 ) ) ) col0
----
2226

skipif mysql # not compatible
query I rowsort label-2310
SELECT - CAST ( + - 44 AS INTEGER ) * 49 + + ( COALESCE ( + 70, - ( + 85 ), MAX ( - 0 ) ) ) col0
----
2226

onlyif mysql # DIV for integer division: 
query I rowsort label-2311
SELECT ALL - 38 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL - 38 / - 57
----
0

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

skipif mysql # not compatible
query I rowsort label-2312
SELECT + MAX ( 4 )
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT ALL COALESCE ( 79, - COUNT( * ) )
----
79

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL COALESCE ( 79, - COUNT ( * ) )
----
79

query I rowsort
SELECT COALESCE ( - - 39, + - 75 + - 26 ) * 71 AS col2
----
2769

onlyif mysql # aggregate syntax: 
query II rowsort label-2316
SELECT ALL + 44 * - 50 AS col0, + COUNT( * ) AS col2
----
-2200
1

skipif mysql # not compatible
query II rowsort label-2316
SELECT ALL + 44 * - 50 AS col0, + COUNT ( * ) AS col2
----
-2200
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2318
SELECT ALL - 33 + + - 73 AS col0, COUNT( * ) DIV - 77
----
-106
0

skipif mysql # not compatible
query II rowsort label-2318
SELECT ALL - 33 + + - 73 AS col0, COUNT ( * ) / - 77
----
-106
0

query I rowsort
SELECT DISTINCT + 75 + 86
----
161

query I rowsort
SELECT ALL + COALESCE ( + 35, + 89 + + + 88, + - 81 ) + + 57
----
92

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

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

query II rowsort
SELECT ALL 79 AS col1, - 91 * - + 81 AS col0
----
79
7371

query I rowsort
SELECT ( - 97 ) * - 22
----
2134

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT - ( 51 ) DIV 51 + + 13
----
12

skipif mysql # not compatible
query I rowsort label-2324
SELECT - ( 51 ) / 51 + + 13
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT ( SUM( ALL + 32 ) ) * - 75
----
-2400

skipif mysql # not compatible
query I rowsort label-2325
SELECT ( SUM ( ALL + 32 ) ) * - 75
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT ALL 63 * - 56 * + - COUNT( * ) * - 30 AS col0
----
-105840

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL 63 * - 56 * + - COUNT ( * ) * - 30 AS col0
----
-105840

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT 34 * 85 + MAX( ALL + - 41 )
----
2849

skipif mysql # not compatible
query I rowsort label-2327
SELECT 34 * 85 + MAX ( ALL + - 41 )
----
2849

query I rowsort
SELECT ALL 74 - + + 89 * 68
----
-5978

query I rowsort
SELECT 38 * - + 88
----
-3344

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT DISTINCT 92 DIV + - COALESCE ( + 58, + 73 * 44 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT 92 / + - COALESCE ( + 58, + 73 * 44 ) AS col0
----
-1

query I rowsort
SELECT ALL 27 * + 60
----
1620

query I rowsort
SELECT 22 + + 52 col2
----
74

query I rowsort
SELECT 28 * - + 64 * - + ( + + 62 )
----
111104

query I rowsort
SELECT - 75 * 37 + - 63 + - - 39 AS col1
----
-2799

query II rowsort
SELECT 67 - - + ( 58 ), 56 AS col2
----
125
56

query I rowsort
SELECT ALL 20 * - 66 AS col2
----
-1320

onlyif mysql # DIV for integer division: 
query I rowsort label-2337
SELECT 47 DIV 6
----
7

skipif mysql # not compatible
query I rowsort label-2337
SELECT 47 / 6
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2338
SELECT ALL CAST( - ( + 23 ) AS SIGNED ) * ( + 72 ) col1
----
-1656

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL CAST ( - ( + 23 ) AS INTEGER ) * ( + 72 ) col1
----
-1656

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT 66 + NULLIF ( COUNT( * ) + + ( - COUNT( * ) ), + 38 * 4 ) * + 52
----
66

skipif mysql # not compatible
query I rowsort label-2339
SELECT 66 + NULLIF ( COUNT ( * ) + + ( - COUNT ( * ) ), + 38 * 4 ) * + 52
----
66

query I rowsort
SELECT ALL 78 + - 16
----
62

query I rowsort
SELECT ALL + 36 * + 9
----
324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2342
SELECT 82 * CAST( COUNT( * ) AS SIGNED ) col1
----
82

skipif mysql # not compatible
query I rowsort label-2342
SELECT 82 * CAST ( COUNT ( * ) AS INTEGER ) col1
----
82

query I rowsort
SELECT ALL + 63 + NULLIF ( 75, 26 )
----
138

query I rowsort
SELECT + 99 * 92 + 29
----
9137

query I rowsort
SELECT DISTINCT + 91 + 16
----
107

query I rowsort
SELECT ALL - 36 * - 48 AS col0
----
1728

query I rowsort
SELECT 72 + 41
----
113

query I rowsort
SELECT 8 * 25
----
200

query I rowsort
SELECT DISTINCT - 18 * + 15
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2350
SELECT ALL + 64 + - 33 * CAST( 74 AS SIGNED )
----
-2378

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL + 64 + - 33 * CAST ( 74 AS INTEGER )
----
-2378

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT 88 + + MAX( DISTINCT - 19 + 79 )
----
148

skipif mysql # not compatible
query I rowsort label-2351
SELECT 88 + + MAX ( DISTINCT - 19 + 79 )
----
148

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT 98 + ( - 54 + - 25 ) * COUNT( * ) col0
----
19

skipif mysql # not compatible
query I rowsort label-2353
SELECT 98 + ( - 54 + - 25 ) * COUNT ( * ) col0
----
19

query I rowsort
SELECT ALL COALESCE ( 40, - 54 ) AS col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT ALL 29 DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL 29 / + 34
----
0

query I rowsort
SELECT - 35 + 27 AS col0
----
-8

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

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

query I rowsort
SELECT - 52 + - 44 AS col0
----
-96

query I rowsort
SELECT ALL COALESCE ( - 51, + 38, 98 ) AS col2
----
-51

query I rowsort
SELECT + 29 + 36 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT ALL + 28 - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL + 28 - COUNT ( * )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT ALL - ( + ( + 59 ) ) DIV 59
----
-1

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL - ( + ( + 59 ) ) / 59
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2363
SELECT DISTINCT CASE 20 WHEN 55 / 18 THEN CASE COUNT( * ) WHEN + SUM( ALL - 31 ) * + 30 THEN 96 WHEN 53 THEN NULL END - + 16 * CAST( NULL AS SIGNED ) ELSE 12 * ( 91 ) END AS col0
----
1092

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT CASE 20 WHEN 55 / 18 THEN CASE COUNT ( * ) WHEN + SUM ( ALL - 31 ) * + 30 THEN 96 WHEN 53 THEN NULL END - + 16 * CAST ( NULL AS INTEGER ) ELSE 12 * ( 91 ) END AS col0
----
1092

onlyif mysql # DIV for integer division: 
query I rowsort label-2364
SELECT - 16 DIV 8 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2364
SELECT - 16 / 8 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2365
SELECT DISTINCT - 83 DIV + NULLIF ( 93 * 97, + MAX( 63 ) + 61 * 74 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT - 83 / + NULLIF ( 93 * 97, + MAX ( 63 ) + 61 * 74 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 22 * - 41
----
-902

query I rowsort
SELECT DISTINCT + 11 * 81
----
891

query I rowsort
SELECT DISTINCT 86 * + 8 AS col2
----
688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2369
SELECT NULLIF ( CASE + 43 WHEN 99 * - 73 + - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) * SUM( + NULLIF ( - 47, + 60 ) ) THEN - ( + 17 ) - 48 ELSE - 99 END, + 22 * NULLIF ( COALESCE ( - 46, + 31, + ( - CASE + 14 WHEN + 98 THEN + 70 * - 19 ELSE - COALESCE ( CASE NULLIF ( 18, + 35 ) WHEN + 32 THEN NULL ELSE - 38 END, COUNT( * ) / 82 ) + 63 END ) / + 38 + 65 * - COALESCE ( 56, - MIN( DISTINCT 19 ) - 13 * + CASE 34 WHEN 64 * 50 - + COUNT( * ) THEN + 58 WHEN + 60 THEN NULL ELSE + COUNT( * ) END ) ) * - CAST( NULL AS SIGNED ), - 45 ) + 50 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-2369
SELECT NULLIF ( CASE + 43 WHEN 99 * - 73 + - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) * SUM ( + NULLIF ( - 47, + 60 ) ) THEN - ( + 17 ) - 48 ELSE - 99 END, + 22 * NULLIF ( COALESCE ( - 46, + 31, + ( - CASE + 14 WHEN + 98 THEN + 70 * - 19 ELSE - COALESCE ( CASE NULLIF ( 18, + 35 ) WHEN + 32 THEN NULL ELSE - 38 END, COUNT ( * ) / 82 ) + 63 END ) / + 38 + 65 * - COALESCE ( 56, - MIN ( DISTINCT 19 ) - 13 * + CASE 34 WHEN 64 * 50 - + COUNT ( * ) THEN + 58 WHEN + 60 THEN NULL ELSE + COUNT ( * ) END ) ) * - CAST ( NULL AS INTEGER ), - 45 ) + 50 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT 3 * ( + 18 ) + + COUNT( ALL + 37 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-2370
SELECT 3 * ( + 18 ) + + COUNT ( ALL + 37 ) AS col1
----
55

query I rowsort
SELECT + 27 * 56 AS col0
----
1512

query I rowsort
SELECT + 32 * + 65
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT + CASE 43 WHEN 76 + 85 * COUNT( * ) THEN NULL WHEN 4 THEN 10 ELSE NULL END + - ( 40 ) * 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT + CASE 43 WHEN 76 + 85 * COUNT ( * ) THEN NULL WHEN 4 THEN 10 ELSE NULL END + - ( 40 ) * 51 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT ALL 73 DIV 5 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL 73 / 5 AS col1
----
14

query I rowsort
SELECT DISTINCT - - 19 * - 97 + 69 AS col2
----
-1774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2376
SELECT ALL - 65 * + CAST( - 29 AS SIGNED ) + NULLIF ( - 60, - 21 ) AS col0
----
1825

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL - 65 * + CAST ( - 29 AS INTEGER ) + NULLIF ( - 60, - 21 ) AS col0
----
1825

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT ALL - 30 * + 68 + COUNT( * )
----
-2039

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL - 30 * + 68 + COUNT ( * )
----
-2039

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2378
SELECT + MAX( ALL 95 ) * + CAST( 1 * - 98 AS SIGNED )
----
-9310

skipif mysql # not compatible
query I rowsort label-2378
SELECT + MAX ( ALL 95 ) * + CAST ( 1 * - 98 AS INTEGER )
----
-9310

query I rowsort
SELECT + - 65 * + 3 - 19 AS col0
----
-214

query I rowsort
SELECT - 81 + 47 * 63 AS col2
----
2880

onlyif mysql # DIV for integer division: 
query I rowsort label-2381
SELECT DISTINCT 51 * 45 + 85 DIV 48
----
2296

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT 51 * 45 + 85 / 48
----
2296

query I rowsort
SELECT ALL - + 25 * 57 + 34 col0
----
-1391

query I rowsort
SELECT + + 81 * - 55 AS col1
----
-4455

query I rowsort
SELECT - + COALESCE ( ( 10 ), + 93 )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2385
SELECT DISTINCT + MIN( 76 ) + COUNT( * ) DIV + 22
----
76

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT + MIN ( 76 ) + COUNT ( * ) / + 22
----
76

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

query I rowsort
SELECT - 29 * - 96 AS col2
----
2784

query I rowsort
SELECT ALL CASE WHEN NOT + 10 IS NOT NULL THEN + 98 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT DISTINCT - COUNT( - 7 ) * 46
----
-46

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT - COUNT ( - 7 ) * 46
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2390
SELECT ALL CASE - - MIN( - 3 ) WHEN - 63 THEN - 2 / + 7 + CAST( 45 AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL CASE - - MIN ( - 3 ) WHEN - 63 THEN - 2 / + 7 + CAST ( 45 AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2391
SELECT - 17 - + COALESCE ( 30, - 71 * 69 + + 86 ) DIV + 84 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-2391
SELECT - 17 - + COALESCE ( 30, - 71 * 69 + + 86 ) / + 84 AS col2
----
-17

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

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

query I rowsort
SELECT - 93 - + 9 AS col2
----
-102

query I rowsort
SELECT ALL 99 * + - 31 * + 62
----
-190278

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL SUM( ALL + ( 16 ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL SUM ( ALL + ( 16 ) ) AS col0
----
16

query I rowsort
SELECT DISTINCT - 88 * 12 * 93 AS col1
----
-98208

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

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL CAST ( - + SUM ( - 80 ) AS INTEGER )
----
80

query I rowsort
SELECT ALL COALESCE ( - 7, 62 + + 39 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2399
SELECT DISTINCT CASE + + ( + 49 ) WHEN + 90 / + CAST( NULLIF ( COUNT( DISTINCT 73 ), - 80 * + 89 ) AS SIGNED ) THEN + 93 WHEN 28 * + AVG ( ALL - 35 * + 75 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT CASE + + ( + 49 ) WHEN + 90 / + CAST ( NULLIF ( COUNT ( DISTINCT 73 ), - 80 * + 89 ) AS INTEGER ) THEN + 93 WHEN 28 * + AVG ( ALL - 35 * + 75 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT - 39 - + SUM( - 87 )
----
48

skipif mysql # not compatible
query I rowsort label-2400
SELECT - 39 - + SUM ( - 87 )
----
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT - 9 + - 51 - COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-2402
SELECT - 9 + - 51 - COUNT ( * ) AS col2
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2403
SELECT COUNT( * ) DIV - COALESCE ( + 76, 97 DIV 44 ) + - 49 DIV + 46 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2403
SELECT COUNT ( * ) / - COALESCE ( + 76, 97 / 44 ) + - 49 / + 46 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT - SUM( DISTINCT 40 ) + 32
----
-8

skipif mysql # not compatible
query I rowsort label-2404
SELECT - SUM ( DISTINCT 40 ) + 32
----
-8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2406
SELECT DISTINCT - 13 DIV + + 42 + + 58
----
58

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT - 13 / + + 42 + + 58
----
58

query I rowsort
SELECT + NULLIF ( + NULLIF ( 86, 96 ), + COALESCE ( - 89, 66 - + 64 ) ) * 33 AS col2
----
2838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2408
SELECT ALL - CASE + 95 WHEN 51 THEN NULL WHEN + 24 THEN - 37 + 7 ELSE + 27 END DIV COUNT( * ) + + 48
----
21

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL - CASE + 95 WHEN 51 THEN NULL WHEN + 24 THEN - 37 + 7 ELSE + 27 END / COUNT ( * ) + + 48
----
21

query I rowsort
SELECT DISTINCT - + 11 * 34 * 63 col0
----
-23562

query I rowsort
SELECT + 70 + 14
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT ALL 86 * + CAST( NULL AS SIGNED ) * 11 + 3 * 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL 86 * + CAST ( NULL AS INTEGER ) * 11 + 3 * 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT COUNT( * ) * + - 69 * + COUNT( * ) - + 8 * + 40
----
-389

skipif mysql # not compatible
query I rowsort label-2412
SELECT COUNT ( * ) * + - 69 * + COUNT ( * ) - + 8 * + 40
----
-389

onlyif mysql # DIV for integer division: 
query I rowsort label-2413
SELECT DISTINCT 71 DIV - - 98
----
0

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT 71 / - - 98
----
0

query I rowsort
SELECT ALL 33 - + 11
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2415
SELECT - 73 * COALESCE ( 70, + 80 + 57, - COUNT( * ) DIV + 93 ) + 59
----
-5051

skipif mysql # not compatible
query I rowsort label-2415
SELECT - 73 * COALESCE ( 70, + 80 + 57, - COUNT ( * ) / + 93 ) + 59
----
-5051

query I rowsort
SELECT + ( + - 46 ) - 73 AS col1
----
-119

query I rowsort
SELECT 81 * - - ( 88 )
----
7128

query I rowsort
SELECT ALL 56 * 91 + 68 * - 46
----
1968

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

query I rowsort
SELECT 27 + + 42
----
69

query I rowsort
SELECT 13 + - 22 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT ALL SUM( ALL - 26 ) * - 48
----
1248

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL SUM ( ALL - 26 ) * - 48
----
1248

query I rowsort
SELECT ( + 33 ) + + ( 46 ) AS col1
----
79

query I rowsort
SELECT 26 * - - 18
----
468

query I rowsort
SELECT ALL 58 * - 86
----
-4988

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT COUNT( * ) + - 92 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-2426
SELECT COUNT ( * ) + - 92 AS col1
----
-91

query II rowsort
SELECT DISTINCT 41 AS col0, 51 AS col1
----
41
51

query I rowsort
SELECT 51 * 1 AS col2
----
51

query I rowsort
SELECT 57 + + 53 AS col2
----
110

query II rowsort
SELECT 84 AS col2, 47 * 42 * 4
----
84
7896

query I rowsort
SELECT 67 + - 38
----
29

query I rowsort
SELECT ALL + 39 + + 66 * - 95
----
-6231

query I rowsort
SELECT ALL 68 + 63 + - 77 AS col2
----
54

query I rowsort
SELECT DISTINCT + 21 * - 34 AS col2
----
-714

query I rowsort
SELECT ALL + 12 + - + 48 + - 97
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT 66 * + - MIN( DISTINCT - 73 )
----
4818

skipif mysql # not compatible
query I rowsort label-2436
SELECT 66 * + - MIN ( DISTINCT - 73 )
----
4818

query I rowsort
SELECT ALL 62 + + + 68 + 50 AS col0
----
180

query I rowsort
SELECT DISTINCT - 49 + - 73 AS col1
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2439
SELECT DISTINCT + SUM( - 54 ) + - 6 + ( 30 ) DIV - ( ( - COUNT( 90 ) ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT + SUM ( - 54 ) + - 6 + ( 30 ) / - ( ( - COUNT ( 90 ) ) ) AS col1
----
-30

query I rowsort
SELECT + 71 * + 51 col2
----
3621

onlyif mysql # aggregate syntax: 
query II rowsort label-2441
SELECT - 82 AS col0, + ( + COUNT( ALL 91 ) ) + 56
----
-82
57

skipif mysql # not compatible
query II rowsort label-2441
SELECT - 82 AS col0, + ( + COUNT ( ALL 91 ) ) + 56
----
-82
57

query I rowsort
SELECT DISTINCT - 19 + + 87
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL + MIN( + 14 ) + 39 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL + MIN ( + 14 ) + 39 AS col2
----
53

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

skipif mysql # not compatible
query I rowsort label-2444
SELECT COUNT ( * ) * + 44 * - 24 AS col2
----
-1056

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT DISTINCT - + CASE WHEN NOT 23 NOT BETWEEN ( - 2 + 39 ) AND - 63 THEN NULL ELSE ( - 73 ) DIV + 32 END col1
----
2

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT - + CASE WHEN NOT 23 NOT BETWEEN ( - 2 + 39 ) AND - 63 THEN NULL ELSE ( - 73 ) / + 32 END col1
----
2

query I rowsort
SELECT + 50 * + + 86 - + + 13 AS col1
----
4287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2447
SELECT ALL 60 * - CAST( 49 AS SIGNED ) + - 19 * CASE + 7 + - CASE AVG ( + 67 ) WHEN + 82 THEN - MIN( 35 ) + - ( - 80 + 81 ) * - 70 WHEN - 55 THEN NULL ELSE NULL END WHEN - 52 THEN NULL WHEN + 25 THEN 16 * 67 WHEN - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) THEN 80 + 41 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL 60 * - CAST ( 49 AS INTEGER ) + - 19 * CASE + 7 + - CASE AVG ( + 67 ) WHEN + 82 THEN - MIN ( 35 ) + - ( - 80 + 81 ) * - 70 WHEN - 55 THEN NULL ELSE NULL END WHEN - 52 THEN NULL WHEN + 25 THEN 16 * 67 WHEN - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN 80 + 41 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT 64 * - 57 + + + 80 - + 39 * 45 * CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2448
SELECT 64 * - 57 + + + 80 - + 39 * 45 * CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2449
SELECT DISTINCT - CASE - - 31 WHEN - COUNT( * ) + 12 THEN NULL WHEN CAST( NULL AS SIGNED ) - - COUNT( * ) THEN - ( CAST( NULLIF ( + COUNT( * ), + 83 ) AS SIGNED ) ) END - + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT - CASE - - 31 WHEN - COUNT ( * ) + 12 THEN NULL WHEN CAST ( NULL AS INTEGER ) - - COUNT ( * ) THEN - ( CAST ( NULLIF ( + COUNT ( * ), + 83 ) AS INTEGER ) ) END - + 66
----
NULL

query I rowsort
SELECT ALL + 0 * + + 64 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2452
SELECT ALL + - 67 - - - 1 DIV + CASE 3 WHEN 4 THEN 66 + COUNT( * ) ELSE - 36 END + - 96 * + 85
----
-8227

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL + - 67 - - - 1 / + CASE 3 WHEN 4 THEN 66 + COUNT ( * ) ELSE - 36 END + - 96 * + 85
----
-8227

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT - 87 * COUNT( * ) * + 26 col1
----
-2262

skipif mysql # not compatible
query I rowsort label-2453
SELECT - 87 * COUNT ( * ) * + 26 col1
----
-2262

query I rowsort
SELECT ALL + 9 * - 2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2455
SELECT - COALESCE ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - SUM( ALL 90 ) * + CASE + 42 WHEN 54 THEN 86 WHEN - 35 THEN NULL WHEN NULLIF ( - CAST( NULL AS SIGNED ), - 74 ) THEN - 79 + + 6 * + 55 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT - COALESCE ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - SUM ( ALL 90 ) * + CASE + 42 WHEN 54 THEN 86 WHEN - 35 THEN NULL WHEN NULLIF ( - CAST ( NULL AS INTEGER ), - 74 ) THEN - 79 + + 6 * + 55 END )
----
NULL

query I rowsort
SELECT - 71 * 19 + + - 90 + 74 * - 29 col0
----
-3585

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT ALL - ( - + SUM( - 11 ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL - ( - + SUM ( - 11 ) ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT MAX( DISTINCT - 86 ) * - 65 - - 39 * - COUNT( * )
----
5551

skipif mysql # not compatible
query I rowsort label-2459
SELECT MAX ( DISTINCT - 86 ) * - 65 - - 39 * - COUNT ( * )
----
5551

query I rowsort
SELECT - CASE - + 83 WHEN - ( 19 ) + 99 THEN - 99 END * 78 + + 54 * 60
----
NULL

query I rowsort
SELECT ALL + ( - - 27 ) - + + 47 AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2462
SELECT ALL CAST( + - 11 AS SIGNED ) DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL CAST ( + - 11 AS INTEGER ) / - 45
----
0

query I rowsort
SELECT 13 - - 68 * 31
----
2121

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

skipif mysql # not compatible
query I rowsort label-2464
SELECT ( + COUNT ( * ) ) / + 97
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2465
SELECT ALL CAST( NULL AS SIGNED ) + + + 23 * - + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL CAST ( NULL AS INTEGER ) + + + 23 * - + 81 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL 22 * - - ( + - 15 ) AS col0
----
-330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2468
SELECT ( + ( 73 ) ) DIV + 83 DIV COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2468
SELECT ( + ( 73 ) ) / + 83 / COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT 47 - - COUNT( ALL ( 83 ) ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-2469
SELECT 47 - - COUNT ( ALL ( 83 ) ) AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2470
SELECT DISTINCT 15 + - CAST( NULL AS SIGNED ) * - 20 * - COUNT( 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT 15 + - CAST ( NULL AS INTEGER ) * - 20 * - COUNT ( 9 )
----
NULL

query II rowsort
SELECT DISTINCT 27 + + 83, 91 AS col1
----
110
91

query I rowsort
SELECT ALL 50 + + 85 col1
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2473
SELECT 67 DIV - MIN( - 14 )
----
4

skipif mysql # not compatible
query I rowsort label-2473
SELECT 67 / - MIN ( - 14 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2474
SELECT ALL 62 + + 86 AS col2, - 29 * - + COUNT( * ) * CAST( NULL AS SIGNED )
----
148
NULL

skipif mysql # not compatible
query II rowsort label-2474
SELECT ALL 62 + + 86 AS col2, - 29 * - + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
148
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT ( + 98 ) * + COUNT( * ) + - 87 - 25 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2475
SELECT ( + 98 ) * + COUNT ( * ) + - 87 - 25 AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2476
SELECT ALL 14 + + SUM( ALL 90 ) * - ( + CAST( NULL AS SIGNED ) ) * AVG ( 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL 14 + + SUM ( ALL 90 ) * - ( + CAST ( NULL AS INTEGER ) ) * AVG ( 89 )
----
NULL

query I rowsort
SELECT 92 - + 5 AS col0
----
87

query I rowsort
SELECT ALL - ( - 80 ) AS col2
----
80

query I rowsort
SELECT + 69 + - NULLIF ( + 32, + - 76 )
----
37

query I rowsort
SELECT DISTINCT + + 44 * - 91 AS col0
----
-4004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2481
SELECT ALL 66 * + CAST( NULL AS SIGNED ), COUNT( * ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2481
SELECT ALL 66 * + CAST ( NULL AS INTEGER ), COUNT ( * ) col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT DISTINCT + 88 * + - COUNT( * ) + - 75
----
-163

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT + 88 * + - COUNT ( * ) + - 75
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT DISTINCT + + 62 * + 43 * - + ( + MIN( DISTINCT 55 ) ) * 46 - - 5 AS col2
----
-6744975

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT + + 62 * + 43 * - + ( + MIN ( DISTINCT 55 ) ) * 46 - - 5 AS col2
----
-6744975

query I rowsort
SELECT DISTINCT 93 * + - 19
----
-1767

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT + + 49 * MIN( + 66 ) * 92 - - 71 * + 91
----
303989

skipif mysql # not compatible
query I rowsort label-2485
SELECT + + 49 * MIN ( + 66 ) * 92 - - 71 * + 91
----
303989

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2487
SELECT + 94 / 26 * - 86 + + CAST( NULL AS SIGNED ) * 70 + - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT + 94 / 26 * - 86 + + CAST ( NULL AS INTEGER ) * 70 + - 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT - + CASE + - 74 WHEN + - 96 THEN NULLIF ( - 65, - 53 * + 16 ) / 67 - 18 / + 91 WHEN 61 THEN AVG ( DISTINCT 85 ) * - 37 ELSE NULL END + SUM( + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2488
SELECT - + CASE + - 74 WHEN + - 96 THEN NULLIF ( - 65, - 53 * + 16 ) / 67 - 18 / + 91 WHEN 61 THEN AVG ( DISTINCT 85 ) * - 37 ELSE NULL END + SUM ( + 88 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT - COALESCE ( - SUM( DISTINCT 27 ), - 37, - 66 + ( - 87 - SUM( ALL 10 ) ) * - 29 ) * + 33
----
891

skipif mysql # not compatible
query I rowsort label-2490
SELECT - COALESCE ( - SUM ( DISTINCT 27 ), - 37, - 66 + ( - 87 - SUM ( ALL 10 ) ) * - 29 ) * + 33
----
891

query II rowsort
SELECT - 77 * - + 12 col1, 68 AS col0
----
924
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2492
SELECT - NULLIF ( - 25, CAST( - COALESCE ( 60, 41, + 89 ) AS DECIMAL ) / + 79 ) * 79 AS col0
----
1975

skipif mysql # not compatible
query I rowsort label-2492
SELECT - NULLIF ( - 25, CAST ( - COALESCE ( 60, 41, + 89 ) AS REAL ) / + 79 ) * 79 AS col0
----
1975

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

query I rowsort
SELECT - 6 * - 25 + + 79 AS col2
----
229

onlyif mysql # aggregate syntax: 
query II rowsort label-2495
SELECT ALL - 22 * + 2, COUNT( * ) + - 64 AS col0
----
-44
-63

skipif mysql # not compatible
query II rowsort label-2495
SELECT ALL - 22 * + 2, COUNT ( * ) + - 64 AS col0
----
-44
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT - - COUNT( * ) * - 15 * + 46 * 47
----
-32430

skipif mysql # not compatible
query I rowsort label-2496
SELECT - - COUNT ( * ) * - 15 * + 46 * 47
----
-32430

query I rowsort
SELECT DISTINCT - 2 * + - 72 AS col2
----
144

query I rowsort
SELECT - 0 * - 24 + 17 + - 25
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT DISTINCT + ( - MAX( 81 ) ) * - 23
----
1863

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT + ( - MAX ( 81 ) ) * - 23
----
1863

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT ALL - 11 + - - 21 * + 74 * 81 + + - MIN( 32 )
----
125831

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL - 11 + - - 21 * + 74 * 81 + + - MIN ( 32 )
----
125831

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT 75 * 20 + COUNT( DISTINCT - + 12 ) AS col0
----
1501

skipif mysql # not compatible
query I rowsort label-2501
SELECT 75 * 20 + COUNT ( DISTINCT - + 12 ) AS col0
----
1501

query I rowsort
SELECT - 10 + - 29 AS col0
----
-39

query I rowsort
SELECT ALL + 39 + + - 73
----
-34

query I rowsort
SELECT ALL ( 44 ) col2
----
44

query I rowsort
SELECT - 4 + + + 46 + - + 11 * + 1
----
31

query I rowsort
SELECT ALL 74 + - 93 - + 12
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT + 33 + + - COUNT( * ) + + 95 * + 6 + - CASE WHEN ( NULL ) IN ( 35 ) THEN 74 END + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2507
SELECT + 33 + + - COUNT ( * ) + + 95 * + 6 + - CASE WHEN ( NULL ) IN ( 35 ) THEN 74 END + 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT - 44 * + COUNT( - + 25 )
----
-44

skipif mysql # not compatible
query I rowsort label-2508
SELECT - 44 * + COUNT ( - + 25 )
----
-44

query II rowsort
SELECT + 50 * + 43 * 15 AS col1, - 78 AS col1
----
32250
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT DISTINCT 73 + - COUNT( * ) * 29 * - + 41
----
1262

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT 73 + - COUNT ( * ) * 29 * - + 41
----
1262

query II rowsort
SELECT 47, + 33 + - 9 AS col1
----
47
24

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

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

query I rowsort
SELECT ALL - - 88 * + + COALESCE ( - + 3, + 2 ) AS col2
----
-264

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

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

query I rowsort
SELECT ALL NULLIF ( + 89, NULLIF ( - + 96, - 23 + - 34 ) )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2516
SELECT DISTINCT 38 DIV + 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT 38 / + 6 AS col1
----
6

query II rowsort
SELECT ALL + 84 AS col0, 33 * 11 * 51 AS col0
----
84
18513

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT ALL + + CASE COALESCE ( 13, + 44 + - - 73 ) WHEN + MIN( 65 ) THEN - 64 ELSE + 75 END AS col1
----
75

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL + + CASE COALESCE ( 13, + 44 + - - 73 ) WHEN + MIN ( 65 ) THEN - 64 ELSE + 75 END AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT + ( 45 ) * - - COALESCE ( + 11, + 94 * - COUNT( * ) )
----
495

skipif mysql # not compatible
query I rowsort label-2519
SELECT + ( 45 ) * - - COALESCE ( + 11, + 94 * - COUNT ( * ) )
----
495

query I rowsort
SELECT 81 * + - 25 + - 83 AS col0
----
-2108

onlyif mysql # aggregate syntax: 
query II rowsort label-2521
SELECT DISTINCT + + 17 AS col2, 23 + + MIN( ALL 5 ) AS col0
----
17
28

skipif mysql # not compatible
query II rowsort label-2521
SELECT DISTINCT + + 17 AS col2, 23 + + MIN ( ALL 5 ) AS col0
----
17
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT DISTINCT COALESCE ( - CASE + 90 WHEN 84 THEN - 32 ELSE NULLIF ( + 36, AVG ( 39 ) - COUNT( * ) ) - COALESCE ( - 90 + 23, 96, + COUNT( DISTINCT + 38 ) + ( + ( COALESCE ( COALESCE ( + 59, 42 ), 81 + - COUNT( * ), - SUM( ALL - 26 ) ) ) ) ) END, + 34 + 76, COUNT( * ) ) * + 34 col0
----
-3502

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT COALESCE ( - CASE + 90 WHEN 84 THEN - 32 ELSE NULLIF ( + 36, AVG ( 39 ) - COUNT ( * ) ) - COALESCE ( - 90 + 23, 96, + COUNT ( DISTINCT + 38 ) + ( + ( COALESCE ( COALESCE ( + 59, 42 ), 81 + - COUNT ( * ), - SUM ( ALL - 26 ) ) ) ) ) END, + 34 + 76, COUNT ( * ) ) * + 34 col0
----
-3502

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

query I rowsort
SELECT + - 21 + - - 49 * - 38
----
-1883

query I rowsort
SELECT DISTINCT 84 * 18 AS col0
----
1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2526
SELECT - 78 * + 98 + - - 54 + 67 * - 36 + COALESCE ( - 5, - 63 * - 1 + - ( - 61 ), MAX( 15 ) DIV + CAST( NULL AS SIGNED ) + + 61 ) AS col2
----
-10007

skipif mysql # not compatible
query I rowsort label-2526
SELECT - 78 * + 98 + - - 54 + 67 * - 36 + COALESCE ( - 5, - 63 * - 1 + - ( - 61 ), MAX ( 15 ) / + CAST ( NULL AS INTEGER ) + + 61 ) AS col2
----
-10007

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2527
SELECT ALL + 45 col0, CAST( - 32 AS SIGNED ) AS col1
----
45
-32

skipif mysql # not compatible
query II rowsort label-2527
SELECT ALL + 45 col0, CAST ( - 32 AS INTEGER ) AS col1
----
45
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT + 58 * COUNT( * ) * COUNT( * ) * - 72
----
-4176

skipif mysql # not compatible
query I rowsort label-2528
SELECT + 58 * COUNT ( * ) * COUNT ( * ) * - 72
----
-4176

query I rowsort
SELECT COALESCE ( + 48, + 89 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2530
SELECT ALL - 97 * - - COUNT( * ) * - 73 + + 3 * - 5 * - 79 + COUNT( ALL COALESCE ( CAST( NULL AS SIGNED ), 99 ) ) * ( 84 )
----
8350

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL - 97 * - - COUNT ( * ) * - 73 + + 3 * - 5 * - 79 + COUNT ( ALL COALESCE ( CAST ( NULL AS INTEGER ), 99 ) ) * ( 84 )
----
8350

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT DISTINCT - COUNT( * ) * 81 + + 83 * + COUNT( DISTINCT - 67 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - COUNT ( * ) * 81 + + 83 * + COUNT ( DISTINCT - 67 ) AS col0
----
2

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

skipif mysql # not compatible
query I rowsort label-2532
SELECT + 11 / - - 80
----
0

query I rowsort
SELECT - 16 + - 33
----
-49

query I rowsort
SELECT ALL 64 * + 33 + + 17 AS col0
----
2129

query I rowsort
SELECT COALESCE ( 85, + 76 * + 90 )
----
85

query I rowsort
SELECT ALL + COALESCE ( + 70, 46, + 63 - - 16 ) * + + 76 + + 74 * 13
----
6282

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT DISTINCT + 36 * + + 53 + + + COUNT( * ) AS col0
----
1909

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT + 36 * + + 53 + + + COUNT ( * ) AS col0
----
1909

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT NULLIF ( - 93, MIN( DISTINCT + 39 ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-2538
SELECT NULLIF ( - 93, MIN ( DISTINCT + 39 ) ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL ( 41 ) * - COUNT( * ) * - 70 + 62 col2
----
2932

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL ( 41 ) * - COUNT ( * ) * - 70 + 62 col2
----
2932

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2540
SELECT - 80 DIV 40 * + SUM( + 32 ) * + 12 AS col2
----
-768

skipif mysql # not compatible
query I rowsort label-2540
SELECT - 80 / 40 * + SUM ( + 32 ) * + 12 AS col2
----
-768

query I rowsort
SELECT - ( + NULLIF ( 46, - ( - 76 ) ) ) * + + 18 col1
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT DISTINCT ( - + CASE + - 62 WHEN - 37 * + + COALESCE ( - + 67, ( - 24 ) ) + COUNT( * ) THEN - COUNT( * ) * + 5 WHEN + ( 21 ) / + 72 + + MIN( - 54 - - 75 / 86 ) THEN + 99 * - 2 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT ( - + CASE + - 62 WHEN - 37 * + + COALESCE ( - + 67, ( - 24 ) ) + COUNT ( * ) THEN - COUNT ( * ) * + 5 WHEN + ( 21 ) / + 72 + + MIN ( - 54 - - 75 / 86 ) THEN + 99 * - 2 END ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL COUNT ( * ) * - COUNT ( * ) + + 18 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2544
SELECT - 45 - CASE + - 94 WHEN - 17 * COALESCE ( - COALESCE ( ( + ( - SUM( + 31 ) ) ), 78 ), - NULLIF ( CAST( 57 AS SIGNED ), + COUNT( * ) ) ) + 79 THEN COALESCE ( 43, - 65 + + 30 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT - 45 - CASE + - 94 WHEN - 17 * COALESCE ( - COALESCE ( ( + ( - SUM ( + 31 ) ) ), 78 ), - NULLIF ( CAST ( 57 AS INTEGER ), + COUNT ( * ) ) ) + 79 THEN COALESCE ( 43, - 65 + + 30 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT - COUNT( ALL - NULLIF ( - 59, 1 / + 62 - ( + 70 ) - - 16 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2545
SELECT - COUNT ( ALL - NULLIF ( - 59, 1 / + 62 - ( + 70 ) - - 16 ) ) AS col2
----
-1

query II rowsort
SELECT ALL - 17 * 91, - 66 AS col2
----
-1547
-66

query I rowsort
SELECT - 21 + - + NULLIF ( + 11, + 12 + - 6 ) AS col1
----
-32

query I rowsort
SELECT ALL - 8 * + + 99
----
-792

query II rowsort
SELECT ALL + 45 - + - 12 AS col0, 53
----
57
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2550
SELECT - 65 AS col2, - COUNT( * ) * + + 56 * + CAST( NULL AS SIGNED )
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-2550
SELECT - 65 AS col2, - COUNT ( * ) * + + 56 * + CAST ( NULL AS INTEGER )
----
-65
NULL

query I rowsort
SELECT ALL - 18 * + 57
----
-1026

query I rowsort
SELECT DISTINCT + 63 - - - 53 - + + 34 AS col1
----
-24

query II rowsort
SELECT DISTINCT 22, - 89 AS col0
----
22
-89

query I rowsort
SELECT ALL 26 * - 65
----
-1690

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT - CASE + - 65 WHEN - CASE + 95 WHEN + ( + COALESCE ( + 89, + 3 * + 11 + 61 ) ) + MAX( + 55 ) THEN NULL WHEN + 32 * + SUM( ALL - 39 ) THEN 19 - + 63 END THEN NULL WHEN + 13 * + 38 THEN NULL WHEN + 82 - 46 THEN NULL ELSE 56 * COUNT( * ) END
----
-56

skipif mysql # not compatible
query I rowsort label-2555
SELECT - CASE + - 65 WHEN - CASE + 95 WHEN + ( + COALESCE ( + 89, + 3 * + 11 + 61 ) ) + MAX ( + 55 ) THEN NULL WHEN + 32 * + SUM ( ALL - 39 ) THEN 19 - + 63 END THEN NULL WHEN + 13 * + 38 THEN NULL WHEN + 82 - 46 THEN NULL ELSE 56 * COUNT ( * ) END
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT - NULLIF ( + 90, - - 65 + + 58 + - CASE + ( + 57 ) WHEN 59 THEN - ( COUNT( * ) ) ELSE NULL END - + 43 * 86 * 43 * - 70 ) + + CASE COUNT( * ) WHEN - 39 THEN NULL ELSE - MAX( ALL - 75 ) END
----
-15

skipif mysql # not compatible
query I rowsort label-2556
SELECT - NULLIF ( + 90, - - 65 + + 58 + - CASE + ( + 57 ) WHEN 59 THEN - ( COUNT ( * ) ) ELSE NULL END - + 43 * 86 * 43 * - 70 ) + + CASE COUNT ( * ) WHEN - 39 THEN NULL ELSE - MAX ( ALL - 75 ) END
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2557
SELECT ALL - ( - 94 ) DIV NULLIF ( COUNT( * ), + 22 * - + 51 + - 68 ) + - 28
----
66

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL - ( - 94 ) / NULLIF ( COUNT ( * ), + 22 * - + 51 + - 68 ) + - 28
----
66

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2559
SELECT - CASE 3 WHEN NULLIF ( 4, + CAST( - 24 AS SIGNED ) + - 40 * 52 ) + 3 THEN + 49 WHEN - 31 * 91 THEN 58 END + ( 19 ) * + CASE + 16 + - 67 / 96 WHEN 92 * + 6 THEN NULL WHEN - SUM( DISTINCT 35 ) THEN - 94 WHEN - 69 * + 2 + 64 * 60 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT - CASE 3 WHEN NULLIF ( 4, + CAST ( - 24 AS INTEGER ) + - 40 * 52 ) + 3 THEN + 49 WHEN - 31 * 91 THEN 58 END + ( 19 ) * + CASE + 16 + - 67 / 96 WHEN 92 * + 6 THEN NULL WHEN - SUM ( DISTINCT 35 ) THEN - 94 WHEN - 69 * + 2 + 64 * 60 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT COUNT( * ) - - 8 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2560
SELECT COUNT ( * ) - - 8 AS col1
----
9

query II rowsort
SELECT ALL - + NULLIF ( + 28, + 17 * - 11 ) AS col0, - ( - + 71 )
----
-28
71

query I rowsort
SELECT DISTINCT 11 * + + 78 * - - ( - 17 )
----
-14586

query I rowsort
SELECT ALL - 77 * + - 70 AS col2
----
5390

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2564
SELECT DISTINCT - 63 AS col1, + CAST( NULL AS SIGNED ) * - - 5 * 65
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-2564
SELECT DISTINCT - 63 AS col1, + CAST ( NULL AS INTEGER ) * - - 5 * 65
----
-63
NULL

query I rowsort
SELECT ALL + 97 + 38 col1
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-2566
SELECT 81 + + - 23, + 33 - - - 56 * + + CASE WHEN NOT + ( COUNT( * ) ) IS NULL THEN + 71 WHEN NOT ( 80 ) <= + COUNT( + 77 ) THEN - COUNT( + 66 ) END AS col0
----
58
-3943

skipif mysql # not compatible
query II rowsort label-2566
SELECT 81 + + - 23, + 33 - - - 56 * + + CASE WHEN NOT + ( COUNT ( * ) ) IS NULL THEN + 71 WHEN NOT ( 80 ) <= + COUNT ( + 77 ) THEN - COUNT ( + 66 ) END AS col0
----
58
-3943

query I rowsort
SELECT - 76 * - - 19 + - 35
----
-1479

query I rowsort
SELECT ALL 95 + - 19 * + + 18 * + 61
----
-20767

query I rowsort
SELECT ALL 0 + - - 82 col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2570
SELECT SUM( - 29 ) + 87 * + + CAST( NULL AS SIGNED ) + + 47 AS col2
----
NULL

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

query I rowsort
SELECT 70 + + + 36 - + 26 * + ( - + 74 ) AS col0
----
2030

query II rowsort
SELECT ALL 99 + + 89, + 30 * - - 43 AS col2
----
188
1290

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT + 16 * - 33 * + 74 + + CASE - MAX( DISTINCT + + 99 ) WHEN + 34 + 97 THEN NULL WHEN - CASE - 95 WHEN + 5 * + COUNT( * ) THEN 96 ELSE NULL END * + 97 THEN 39 END + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2573
SELECT + 16 * - 33 * + 74 + + CASE - MAX ( DISTINCT + + 99 ) WHEN + 34 + 97 THEN NULL WHEN - CASE - 95 WHEN + 5 * + COUNT ( * ) THEN 96 ELSE NULL END * + 97 THEN 39 END + + 54
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT MIN( + ( - 71 ) ) + + + COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-2575
SELECT MIN ( + ( - 71 ) ) + + + COUNT ( * )
----
-70

query I rowsort
SELECT DISTINCT - 76 - + - 0 + 41
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT 80 * - MAX( DISTINCT 79 ) col1
----
-6320

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT 80 * - MAX ( DISTINCT 79 ) col1
----
-6320

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT - 53 * - 48 + + + COUNT( + 78 )
----
2545

skipif mysql # not compatible
query I rowsort label-2578
SELECT - 53 * - 48 + + + COUNT ( + 78 )
----
2545

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2579
SELECT 86 * + 86 DIV + ( COUNT( * ) ) AS col1
----
7396

skipif mysql # not compatible
query I rowsort label-2579
SELECT 86 * + 86 / + ( COUNT ( * ) ) AS col1
----
7396

query II rowsort
SELECT 92 - - - 1, - 5 * - 52 - 43 * 41 - + 99 AS col0
----
91
-1602

onlyif mysql # DIV for integer division: 
query II rowsort label-2581
SELECT 66 + 53 DIV - - 97 AS col2, - 78
----
66
-78

skipif mysql # not compatible
query II rowsort label-2581
SELECT 66 + 53 / - - 97 AS col2, - 78
----
66
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT 49 * + COUNT( * ) * - 25 + + 89 AS col1
----
-1136

skipif mysql # not compatible
query I rowsort label-2582
SELECT 49 * + COUNT ( * ) * - 25 + + 89 AS col1
----
-1136

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT CASE COUNT( * ) WHEN 38 THEN - - COUNT( * ) ELSE NULL END * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT CASE COUNT ( * ) WHEN 38 THEN - - COUNT ( * ) ELSE NULL END * 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT ( - 18 ) + COUNT( * ) + - - 40 * ( - ( 40 ) ) * 30 AS col1
----
-48017

skipif mysql # not compatible
query I rowsort label-2584
SELECT ( - 18 ) + COUNT ( * ) + - - 40 * ( - ( 40 ) ) * 30 AS col1
----
-48017

onlyif mysql # DIV for integer division: 
query I rowsort label-2585
SELECT ALL - 33 DIV 22
----
-1

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL - 33 / 22
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ALL + + 87 * - COUNT( - 69 ) + - 68 AS col0
----
-155

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL + + 87 * - COUNT ( - 69 ) + - 68 AS col0
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT DISTINCT + 84 * SUM( + ( + 12 ) ) AS col2
----
1008

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT + 84 * SUM ( + ( + 12 ) ) AS col2
----
1008

query I rowsort
SELECT + 7 + + + 14
----
21

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

skipif mysql # not compatible
query I rowsort label-2589
SELECT + COUNT ( * ) + + 35 + - - 61 - COUNT ( * ) AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2590
SELECT - + CASE 49 WHEN - COALESCE ( - COALESCE ( - 15, - - 51 * + + 13 / - 54 + + 76, CAST( + 10 AS SIGNED ) / - 9 ), 52, + COUNT( * ) + 0, + 40 + - 49 ) * + 12 + 63 THEN 30 / 73 WHEN + 60 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT - + CASE 49 WHEN - COALESCE ( - COALESCE ( - 15, - - 51 * + + 13 / - 54 + + 76, CAST ( + 10 AS INTEGER ) / - 9 ), 52, + COUNT ( * ) + 0, + 40 + - 49 ) * + 12 + 63 THEN 30 / 73 WHEN + 60 THEN NULL END
----
NULL

query II rowsort
SELECT ALL + 1 + 90 AS col2, 64
----
91
64

query I rowsort
SELECT ALL - - 32 + + - 19 * - 78
----
1514

query I rowsort
SELECT DISTINCT - - 70 + + 80 AS col1
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2594
SELECT + CAST( 50 AS DECIMAL ) + - COUNT( * ) + CAST( NULL AS SIGNED ) + - + 29 * 46 + - COUNT( * ) * MAX( DISTINCT - 69 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT + CAST ( 50 AS REAL ) + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + - + 29 * 46 + - COUNT ( * ) * MAX ( DISTINCT - 69 ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 94 * + ( + + 47 ) + + - 63 + - + 3
----
-4484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2596
SELECT ALL - + 28 * + 65 + + 20 + - + COALESCE ( - 68, + 23 DIV CASE + 77 WHEN - 68 THEN - COUNT( * ) END * - 60 + - COUNT( * ) ) * - 66
----
-6288

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL - + 28 * + 65 + + 20 + - + COALESCE ( - 68, + 23 / CASE + 77 WHEN - 68 THEN - COUNT ( * ) END * - 60 + - COUNT ( * ) ) * - 66
----
-6288

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2598
SELECT + 63 DIV - 48 * COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2598
SELECT + 63 / - 48 * COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT 75 - ( + - 12 ) + - MIN( DISTINCT - 83 ) * - 47 * - + ( + 24 )
----
93711

skipif mysql # not compatible
query I rowsort label-2599
SELECT 75 - ( + - 12 ) + - MIN ( DISTINCT - 83 ) * - 47 * - + ( + 24 )
----
93711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2600
SELECT ALL CAST( NULL AS SIGNED ) * + 43 * + 9 * 24 + + ( 78 ) AS col2, - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2600
SELECT ALL CAST ( NULL AS INTEGER ) * + 43 * + 9 * 24 + + ( 78 ) AS col2, - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col0
----
NULL
NULL

query I rowsort
SELECT ALL 58 + + + 60 AS col0
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-2602
SELECT + 26 col0, 66 + + 18 * 32 * - COUNT( * ) col0
----
26
-510

skipif mysql # not compatible
query II rowsort label-2602
SELECT + 26 col0, 66 + + 18 * 32 * - COUNT ( * ) col0
----
26
-510

query I rowsort
SELECT 57 + + 4 * - 79 AS col0
----
-259

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT 98 - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT 98 - COUNT ( * )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2606
SELECT CAST( + - 24 AS SIGNED ) + - 65
----
-89

skipif mysql # not compatible
query I rowsort label-2606
SELECT CAST ( + - 24 AS INTEGER ) + - 65
----
-89

query I rowsort
SELECT DISTINCT 33 - - COALESCE ( 37, + 1 )
----
70

query II rowsort
SELECT 68, 26 AS col0
----
68
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT MIN( + + COALESCE ( - 66, + 88, - 59 ) ) * + COUNT( * ) - + + 55
----
-121

skipif mysql # not compatible
query I rowsort label-2609
SELECT MIN ( + + COALESCE ( - 66, + 88, - 59 ) ) * + COUNT ( * ) - + + 55
----
-121

query II rowsort
SELECT DISTINCT 12 AS col2, 34
----
12
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2611
SELECT DISTINCT MIN( DISTINCT + 72 ) * - 10 AS col0, - 23 DIV + - 74
----
-720
0

skipif mysql # not compatible
query II rowsort label-2611
SELECT DISTINCT MIN ( DISTINCT + 72 ) * - 10 AS col0, - 23 / + - 74
----
-720
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2612
SELECT + NULLIF ( - COUNT( * ), + + 66 ) * + - 64 DIV - 82 * 29 col1
----
0

skipif mysql # not compatible
query I rowsort label-2612
SELECT + NULLIF ( - COUNT ( * ), + + 66 ) * + - 64 / - 82 * 29 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT + + 77 * + - 63 * + MIN( 4 ) AS col1
----
-19404

skipif mysql # not compatible
query I rowsort label-2613
SELECT + + 77 * + - 63 * + MIN ( 4 ) AS col1
----
-19404

query I rowsort
SELECT ALL + 71 * - + 71 * 45 * 72
----
-16332840

query I rowsort
SELECT + + 66 - 80 * + - 48 AS col0
----
3906

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT DISTINCT 48 * - - SUM( DISTINCT + CASE + 40 WHEN - 62 THEN 94 * + + 34 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT 48 * - - SUM ( DISTINCT + CASE + 40 WHEN - 62 THEN 94 * + + 34 END )
----
NULL

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

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

query II rowsort
SELECT ALL 57, 39 AS col1
----
57
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2619
SELECT - 19, 68 + CAST( - NULLIF ( + 54, CAST( COUNT( ALL - 99 ) AS SIGNED ) ) AS SIGNED ) DIV 81 AS col1
----
-19
68

skipif mysql # not compatible
query II rowsort label-2619
SELECT - 19, 68 + CAST ( - NULLIF ( + 54, CAST ( COUNT ( ALL - 99 ) AS INTEGER ) ) AS INTEGER ) / 81 AS col1
----
-19
68

query I rowsort
SELECT ALL - - 80 + - 57 AS col0
----
23

query I rowsort
SELECT ALL + 39 * - 67 col0
----
-2613

query I rowsort
SELECT ALL - - 5 + + 31 col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2623
SELECT ALL + 69 + - - MIN( + 47 ) DIV CASE + 27 WHEN + - 73 THEN + - CAST( - 3 AS SIGNED ) WHEN + 18 + COALESCE ( - AVG ( ALL 77 ), - AVG ( - 93 ) * - 41 + + ( + 5 ) DIV ( 54 ) ) THEN NULL ELSE - 47 * - 44 END
----
69

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL + 69 + - - MIN ( + 47 ) / CASE + 27 WHEN + - 73 THEN + - CAST ( - 3 AS INTEGER ) WHEN + 18 + COALESCE ( - AVG ( ALL 77 ), - AVG ( - 93 ) * - 41 + + ( + 5 ) / ( 54 ) ) THEN NULL ELSE - 47 * - 44 END
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT + - COUNT( 12 ) + + NULLIF ( - 81, + 3 * - 20 + 63 * - - 22 * NULLIF ( - 66 * ( COUNT( * ) * - ( MIN( DISTINCT 61 ) ) ), COUNT( ALL + 97 ) * + ( - 83 ) ) )
----
-82

skipif mysql # not compatible
query I rowsort label-2624
SELECT + - COUNT ( 12 ) + + NULLIF ( - 81, + 3 * - 20 + 63 * - - 22 * NULLIF ( - 66 * ( COUNT ( * ) * - ( MIN ( DISTINCT 61 ) ) ), COUNT ( ALL + 97 ) * + ( - 83 ) ) )
----
-82

query I rowsort
SELECT - + 84 * + 57
----
-4788

query I rowsort
SELECT + + 14 + + 14
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2627
SELECT - - 9 - - + COUNT( * ) DIV - 29 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2627
SELECT - - 9 - - + COUNT ( * ) / - 29 AS col0
----
9

query I rowsort
SELECT ALL + 3 * - - 81
----
243

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

query I rowsort
SELECT - - ( + 63 ) + + + 13 * + ( + + 19 )
----
310

query I rowsort
SELECT - 35 - - + 78
----
43

query I rowsort
SELECT DISTINCT + 76 * NULLIF ( + - 25, 4 * + + 25 - 15 )
----
-1900

query I rowsort
SELECT ALL + NULLIF ( + 23, - 81 + - 89 )
----
23

query I rowsort
SELECT 94 * 49 + - 65 col1
----
4541

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ( - + NULLIF ( MIN( ALL - 35 ), 60 * - 36 * - - 57 ) )
----
35

skipif mysql # not compatible
query I rowsort label-2635
SELECT ( - + NULLIF ( MIN ( ALL - 35 ), 60 * - 36 * - - 57 ) )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT ALL 58 * - 51 - - NULLIF ( CAST( NULL AS SIGNED ), + 11 * 2 / - 26 * 83 - NULLIF ( + 37, 98 ) + + CAST( NULL AS SIGNED ) ) + + 77 * AVG ( DISTINCT 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL 58 * - 51 - - NULLIF ( CAST ( NULL AS INTEGER ), + 11 * 2 / - 26 * 83 - NULLIF ( + 37, 98 ) + + CAST ( NULL AS INTEGER ) ) + + 77 * AVG ( DISTINCT 51 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT - COUNT( * ) * + + 56 * 8
----
-448

skipif mysql # not compatible
query I rowsort label-2637
SELECT - COUNT ( * ) * + + 56 * 8
----
-448

query I rowsort
SELECT - ( + 68 ) * 71 AS col1
----
-4828

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT - 8 * + 17 * + COUNT( * ) * 33 * + - 97 + + - COUNT( * )
----
435335

skipif mysql # not compatible
query I rowsort label-2639
SELECT - 8 * + 17 * + COUNT ( * ) * 33 * + - 97 + + - COUNT ( * )
----
435335

query I rowsort
SELECT - 22 + NULLIF ( - 87, + 64 * - - 15 )
----
-109

query I rowsort
SELECT - ( - NULLIF ( - - 37, - + 95 ) ) + - ( + 67 ) col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT CASE - MAX( DISTINCT 55 ) WHEN 33 * - 42 THEN NULL WHEN - 66 + + 4 * + COUNT( * ) * 38 * 15 THEN NULL ELSE COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2642
SELECT CASE - MAX ( DISTINCT 55 ) WHEN 33 * - 42 THEN NULL WHEN - 66 + + 4 * + COUNT ( * ) * 38 * 15 THEN NULL ELSE COUNT ( * ) END AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2643
SELECT ALL + 49 * - 73 AS col1, COALESCE ( + 66, + COALESCE ( - COUNT( * ), + + 48 ), + 22 DIV + ( + 72 ) + + 61, COUNT( * ) ) AS col2
----
-3577
66

skipif mysql # not compatible
query II rowsort label-2643
SELECT ALL + 49 * - 73 AS col1, COALESCE ( + 66, + COALESCE ( - COUNT ( * ), + + 48 ), + 22 / + ( + 72 ) + + 61, COUNT ( * ) ) AS col2
----
-3577
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2644
SELECT - 50 DIV - 5 AS col1, + 71 + 19 - + COUNT( * )
----
10
89

skipif mysql # not compatible
query II rowsort label-2644
SELECT - 50 / - 5 AS col1, + 71 + 19 - + COUNT ( * )
----
10
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2645
SELECT DISTINCT + NULLIF ( 68, MIN( ALL + 19 ) ) col1, + 66 * - COUNT( * ) AS col1
----
68
-66

skipif mysql # not compatible
query II rowsort label-2645
SELECT DISTINCT + NULLIF ( 68, MIN ( ALL + 19 ) ) col1, + 66 * - COUNT ( * ) AS col1
----
68
-66

query I rowsort
SELECT COALESCE ( - 11, 89, - 83 )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2647
SELECT + 44 + - 18 AS col1, + COUNT( * ) + CAST( NULL AS DECIMAL )
----
26
NULL

skipif mysql # not compatible
query II rowsort label-2647
SELECT + 44 + - 18 AS col1, + COUNT ( * ) + CAST ( NULL AS REAL )
----
26
NULL

query I rowsort
SELECT ALL + 87 * + - ( + + 3 ) AS col1
----
-261

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2650
SELECT 87 * 72 DIV + 31 + - 20 AS col1
----
182

skipif mysql # not compatible
query I rowsort label-2650
SELECT 87 * 72 / + 31 + - 20 AS col1
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT + 38 - - COUNT( * ) + 74
----
113

skipif mysql # not compatible
query I rowsort label-2651
SELECT + 38 - - COUNT ( * ) + 74
----
113

query I rowsort
SELECT + 96 * + 19
----
1824

query I rowsort
SELECT ALL - 59 * 85 + - 11 + + - 2 * - 49 AS col0
----
-4928

onlyif mysql # aggregate syntax: 
query II rowsort label-2654
SELECT - 6 + + 25, - COUNT( * ) * 53 * - + 59 * - 18 AS col2
----
19
-56286

skipif mysql # not compatible
query II rowsort label-2654
SELECT - 6 + + 25, - COUNT ( * ) * 53 * - + 59 * - 18 AS col2
----
19
-56286

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT NULLIF ( 8, + + COALESCE ( + 69, - 19 * + 32 * + MAX( DISTINCT 93 ) ) * + 96 * 49 + + COALESCE ( 86, - 59 * 99 ) )
----
8

skipif mysql # not compatible
query I rowsort label-2655
SELECT NULLIF ( 8, + + COALESCE ( + 69, - 19 * + 32 * + MAX ( DISTINCT 93 ) ) * + 96 * 49 + + COALESCE ( 86, - 59 * 99 ) )
----
8

query II rowsort
SELECT + 89 + 82 col1, 13
----
171
13

query I rowsort
SELECT ALL 73 + + 61 AS col1
----
134

query I rowsort
SELECT DISTINCT 21 + - 86
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2659
SELECT ALL - 10 * + - COALESCE ( CAST( NULL AS SIGNED ), COUNT( * ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL - 10 * + - COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ) ) AS col0
----
10

query I rowsort
SELECT + - 4 + + 22 AS col1
----
18

query I rowsort
SELECT - - 93 * 81 + 62
----
7595

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT DISTINCT - 66 + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT - 66 + COUNT ( * )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2664
SELECT + COUNT( * ) + 6 + 19 + + 90 DIV - 11
----
18

skipif mysql # not compatible
query I rowsort label-2664
SELECT + COUNT ( * ) + 6 + 19 + + 90 / - 11
----
18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2666
SELECT - 19 + + CASE 40 WHEN 21 THEN NULL WHEN + ( 94 ) * + 78 * - COUNT( * ) * + CAST( - 23 AS SIGNED ) THEN NULL ELSE CAST( - 33 AS SIGNED ) END + ( - 39 ) * 78
----
-3094

skipif mysql # not compatible
query I rowsort label-2666
SELECT - 19 + + CASE 40 WHEN 21 THEN NULL WHEN + ( 94 ) * + 78 * - COUNT ( * ) * + CAST ( - 23 AS INTEGER ) THEN NULL ELSE CAST ( - 33 AS INTEGER ) END + ( - 39 ) * 78
----
-3094

query II rowsort
SELECT ALL 89 - + ( 0 ) * - - 61 * - 59, 26 AS col1
----
89
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2668
SELECT ALL - + 73 - + - 97 + + 18 + + COUNT( + 77 ) / 20 * + COUNT( ALL - - 13 ) + ( CAST( NULL AS SIGNED ) ) - MAX( 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL - + 73 - + - 97 + + 18 + + COUNT ( + 77 ) / 20 * + COUNT ( ALL - - 13 ) + ( CAST ( NULL AS INTEGER ) ) - MAX ( 29 )
----
NULL

query II rowsort
SELECT + + 77 * + 48 AS col1, + 77
----
3696
77

query I rowsort
SELECT + - ( - 2 ) * 78
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2671
SELECT + 4 DIV + 61 * COUNT( * ) - 3 * + 3 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-2671
SELECT + 4 / + 61 * COUNT ( * ) - 3 * + 3 AS col1
----
-9

query I rowsort
SELECT - ( 55 ) * - - 43 + + + 10
----
-2355

query I rowsort
SELECT DISTINCT - 35 * + 83 AS col2
----
-2905

query I rowsort
SELECT + 81 - 13 AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2675
SELECT 54 * + COUNT( * ) + - COALESCE ( - 11, 10 + + - CAST( + - 79 AS SIGNED ) * - 34, - + 38 )
----
65

skipif mysql # not compatible
query I rowsort label-2675
SELECT 54 * + COUNT ( * ) + - COALESCE ( - 11, 10 + + - CAST ( + - 79 AS INTEGER ) * - 34, - + 38 )
----
65

query I rowsort
SELECT ALL + 63 * - 58
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT - ( + - 32 ) * - - MIN( + 84 ) col0
----
2688

skipif mysql # not compatible
query I rowsort label-2677
SELECT - ( + - 32 ) * - - MIN ( + 84 ) col0
----
2688

query I rowsort
SELECT ALL 80 * + - 87 * + 74 col1
----
-515040

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

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

query I rowsort
SELECT DISTINCT 15 * - 53 AS col0
----
-795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2681
SELECT 0 / + CAST( + - 15 AS SIGNED ) - - CASE - - ( COUNT( * ) ) WHEN 39 THEN + 46 + - + 23 * - + 12 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT 0 / + CAST ( + - 15 AS INTEGER ) - - CASE - - ( COUNT ( * ) ) WHEN 39 THEN + 46 + - + 23 * - + 12 END AS col1
----
NULL

query I rowsort
SELECT 1 * 77 AS col0
----
77

query II rowsort
SELECT 96 AS col1, 71 AS col0
----
96
71

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

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL - 28 + COUNT ( * ) AS col1
----
-27

query I rowsort
SELECT 27 + + - 27 AS col2
----
0

query I rowsort
SELECT + - NULLIF ( + 94, + 84 ) col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2687
SELECT - + ( - CASE + 61 WHEN + CAST( NULL AS SIGNED ) + - 52 THEN - CASE + + 2 WHEN COUNT( * ) THEN + COUNT( * ) END WHEN + 41 + + ( - 49 ) THEN NULL END ) * 82 + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2687
SELECT - + ( - CASE + 61 WHEN + CAST ( NULL AS INTEGER ) + - 52 THEN - CASE + + 2 WHEN COUNT ( * ) THEN + COUNT ( * ) END WHEN + 41 + + ( - 49 ) THEN NULL END ) * 82 + 20 AS col1
----
NULL

query I rowsort
SELECT ALL + 63 + 13 AS col2
----
76

query I rowsort
SELECT ALL - 5 * 41 + + - 68 AS col1
----
-273

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

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

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

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL - - CAST ( NULL AS INTEGER ) + 50
----
NULL

query I rowsort
SELECT + 26 * + 73
----
1898

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT CASE + COUNT( * ) WHEN - + 69 * + COALESCE ( + + 42, + 66 ) THEN 44 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT CASE + COUNT ( * ) WHEN - + 69 * + COALESCE ( + + 42, + 66 ) THEN 44 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2694
SELECT ALL + 3 + + 59 - COUNT( * ) * + 65 DIV 54 + 3
----
64

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL + 3 + + 59 - COUNT ( * ) * + 65 / 54 + 3
----
64

query I rowsort
SELECT ALL ( 43 ) col2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2696
SELECT 1 DIV - 29
----
0

skipif mysql # not compatible
query I rowsort label-2696
SELECT 1 / - 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT 32 * - - NULLIF ( 74, + + 97 ) - - COUNT( * ) + + - 49 * - 34 + 80 - - + 51 + 40 * 57 * + 81 * SUM( ALL - ( 3 ) + - 73 )
----
-14031514

skipif mysql # not compatible
query I rowsort label-2697
SELECT 32 * - - NULLIF ( 74, + + 97 ) - - COUNT ( * ) + + - 49 * - 34 + 80 - - + 51 + 40 * 57 * + 81 * SUM ( ALL - ( 3 ) + - 73 )
----
-14031514

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2698
SELECT - 6 + - CAST( - 46 AS SIGNED ) - + + 70
----
-30

skipif mysql # not compatible
query I rowsort label-2698
SELECT - 6 + - CAST ( - 46 AS INTEGER ) - + + 70
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2699
SELECT - 65 AS col0, COUNT( 50 ) * - 39 + + 63 + - 86 * - 21
----
-65
1830

skipif mysql # not compatible
query II rowsort label-2699
SELECT - 65 AS col0, COUNT ( 50 ) * - 39 + + 63 + - 86 * - 21
----
-65
1830

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2702
SELECT + 90 DIV - 66 + - 8 * - 36
----
287

skipif mysql # not compatible
query I rowsort label-2702
SELECT + 90 / - 66 + - 8 * - 36
----
287

onlyif mysql # aggregate syntax: 
query II rowsort label-2703
SELECT COUNT( * ) * - COUNT( ALL - - 66 ) AS col2, + COALESCE ( + 12, + + ( + COALESCE ( - + 83, - + 43 - - + NULLIF ( + 90, 10 * 67 ) * 97, 93 ) ) * - 50 + - 60 )
----
-1
12

skipif mysql # not compatible
query II rowsort label-2703
SELECT COUNT ( * ) * - COUNT ( ALL - - 66 ) AS col2, + COALESCE ( + 12, + + ( + COALESCE ( - + 83, - + 43 - - + NULLIF ( + 90, 10 * 67 ) * 97, 93 ) ) * - 50 + - 60 )
----
-1
12

query I rowsort
SELECT + COALESCE ( - + 96, 11, - + 76 ) * - + 62 AS col0
----
5952

query I rowsort
SELECT + 56 - NULLIF ( 5, + 50 ) AS col0
----
51

query I rowsort
SELECT ALL + 37 * 99 + - 68 + 33
----
3628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2707
SELECT CAST( 73 AS SIGNED ) - + COUNT( * ) - - - COUNT( * ) * + ( + + 67 ) * + COUNT( * ) * - 21 + 63 col1
----
1542

skipif mysql # not compatible
query I rowsort label-2707
SELECT CAST ( 73 AS INTEGER ) - + COUNT ( * ) - - - COUNT ( * ) * + ( + + 67 ) * + COUNT ( * ) * - 21 + 63 col1
----
1542

query I rowsort
SELECT 81 * - - 96
----
7776

onlyif mysql # aggregate syntax: 
query II rowsort label-2709
SELECT - MIN( ALL - 70 ) + - 88 AS col0, COUNT( * )
----
-18
1

skipif mysql # not compatible
query II rowsort label-2709
SELECT - MIN ( ALL - 70 ) + - 88 AS col0, COUNT ( * )
----
-18
1

query I rowsort
SELECT DISTINCT 81 * + + 14 * - 97 * - + 31
----
3409938

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2711
SELECT 79, - 36 + + + ( CAST( + 40 AS SIGNED ) ) + - - 18 * + 10 * - 24 AS col2
----
79
-4316

skipif mysql # not compatible
query II rowsort label-2711
SELECT 79, - 36 + + + ( CAST ( + 40 AS INTEGER ) ) + - - 18 * + 10 * - 24 AS col2
----
79
-4316

query I rowsort
SELECT 57 * 24
----
1368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2713
SELECT CAST( 93 AS SIGNED ) - 31 * 18, + ( MAX( 58 ) ) AS col1
----
-465
58

skipif mysql # not compatible
query II rowsort label-2713
SELECT CAST ( 93 AS INTEGER ) - 31 * 18, + ( MAX ( 58 ) ) AS col1
----
-465
58

query I rowsort
SELECT ALL 80 * + - 51 * - NULLIF ( 88, ( - + NULLIF ( 90, + 27 ) ) )
----
359040

query I rowsort
SELECT ALL - 4 + 21 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2716
SELECT ALL 27 + COUNT( ALL + 10 ) + - - COALESCE ( - 5, - COUNT( + CAST( NULL AS SIGNED ) ) * + 18, + + 78 ) DIV COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL 27 + COUNT ( ALL + 10 ) + - - COALESCE ( - 5, - COUNT ( + CAST ( NULL AS INTEGER ) ) * + 18, + + 78 ) / COUNT ( * )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2717
SELECT 23 DIV + 85 + - 4 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2717
SELECT 23 / + 85 + - 4 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT COUNT( ALL + 41 ) * 13
----
13

skipif mysql # not compatible
query I rowsort label-2718
SELECT COUNT ( ALL + 41 ) * 13
----
13

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

skipif mysql # not compatible
query I rowsort label-2719
SELECT 27 / COUNT ( * )
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2720
SELECT DISTINCT COUNT( * ) + 14 DIV + 85
----
1

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT COUNT ( * ) + 14 / + 85
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT 96 * + + 82 + - SUM( DISTINCT 83 )
----
7789

skipif mysql # not compatible
query I rowsort label-2721
SELECT 96 * + + 82 + - SUM ( DISTINCT 83 )
----
7789

query II rowsort
SELECT 36 * + + 82 AS col1, - ( - 61 ) AS col0
----
2952
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL - MIN( DISTINCT + 76 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL - MIN ( DISTINCT + 76 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-2724
SELECT ALL - 46 col0, COUNT( * ) * - - COUNT( * ) col2
----
-46
1

skipif mysql # not compatible
query II rowsort label-2724
SELECT ALL - 46 col0, COUNT ( * ) * - - COUNT ( * ) col2
----
-46
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2725
SELECT DISTINCT - 65 + + + ( 60 ) + + - 34 / + CAST( NULL AS SIGNED ) * 49 * + + 79 * - 4 + + - COUNT( * ) + - 16 / + + 36 - + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT - 65 + + + ( 60 ) + + - 34 / + CAST ( NULL AS INTEGER ) * 49 * + + 79 * - 4 + + - COUNT ( * ) + - 16 / + + 36 - + 91
----
NULL

query I rowsort
SELECT ALL - - ( + - 41 ) col2
----
-41

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

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

query II rowsort
SELECT ALL - - 98 AS col1, - 75 AS col2
----
98
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT - 38 + + CAST( NULL AS SIGNED ) * - 24 / - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2729
SELECT - 38 + + CAST ( NULL AS INTEGER ) * - 24 / - 85 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2730
SELECT DISTINCT - + COUNT( * ), 18 col2
----
-1
18

skipif mysql # not compatible
query II rowsort label-2730
SELECT DISTINCT - + COUNT ( * ), 18 col2
----
-1
18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2732
SELECT + + CAST( NULL AS SIGNED ) * - 0 + + COUNT( * ) * - 93 + - COALESCE ( + 98, - 59 + - 41 - - + 62 * - 57 ) * + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2732
SELECT + + CAST ( NULL AS INTEGER ) * - 0 + + COUNT ( * ) * - 93 + - COALESCE ( + 98, - 59 + - 41 - - + 62 * - 57 ) * + 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT ALL + - MIN( ALL 91 ) - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL + - MIN ( ALL 91 ) - COUNT ( * )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT ALL - COALESCE ( 58, - + COALESCE ( - 20, + + 6, + 88 ) DIV + AVG ( ALL 1 ) + - 68 ) - 84 AS col0
----
-142

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL - COALESCE ( 58, - + COALESCE ( - 20, + + 6, + 88 ) / + AVG ( ALL 1 ) + - 68 ) - 84 AS col0
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT - CASE 83 WHEN + 75 * - 21 + - + 4 + - + 33 THEN - COUNT( * ) + - 57 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2735
SELECT - CASE 83 WHEN + 75 * - 21 + - + 4 + - + 33 THEN - COUNT ( * ) + - 57 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2736
SELECT DISTINCT + - 40 DIV - + ( - SUM( DISTINCT + 52 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT + - 40 / - + ( - SUM ( DISTINCT + 52 ) ) AS col2
----
0

query II rowsort
SELECT ALL 33 col0, + ( + - 97 ) * - - 29
----
33
-2813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2738
SELECT + SUM( DISTINCT - CAST( + 31 AS SIGNED ) ) * 9 + 75 + - 43
----
-247

skipif mysql # not compatible
query I rowsort label-2738
SELECT + SUM ( DISTINCT - CAST ( + 31 AS INTEGER ) ) * 9 + 75 + - 43
----
-247

query II rowsort
SELECT 65 + + 38 + - 35 * + + 6, + 12 AS col2
----
-107
12

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2741
SELECT - 81 * - 85 DIV COUNT( * ) DIV + COUNT( * ) AS col2, 92 * - COALESCE ( + 14, + 82 ) + - 59 AS col1
----
6885
-1347

skipif mysql # not compatible
query II rowsort label-2741
SELECT - 81 * - 85 / COUNT ( * ) / + COUNT ( * ) AS col2, 92 * - COALESCE ( + 14, + 82 ) + - 59 AS col1
----
6885
-1347

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

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

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

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

query I rowsort
SELECT ALL NULLIF ( - + 93, 29 ) col0
----
-93

query I rowsort
SELECT 66 * - ( - 2 )
----
132

query I rowsort
SELECT 70 * + 79 * - 44 * + 18
----
-4379760

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ALL COUNT( - 45 ) + + MAX( 64 )
----
65

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL COUNT ( - 45 ) + + MAX ( 64 )
----
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT + COUNT( DISTINCT - 95 ) + + + 21
----
22

skipif mysql # not compatible
query I rowsort label-2749
SELECT + COUNT ( DISTINCT - 95 ) + + + 21
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2750
SELECT DISTINCT 80 + + 75, + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
155
1

skipif mysql # not compatible
query II rowsort label-2750
SELECT DISTINCT 80 + + 75, + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
155
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT DISTINCT NULLIF ( - + 4, COUNT( DISTINCT ( - - 29 ) ) )
----
-4

skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT NULLIF ( - + 4, COUNT ( DISTINCT ( - - 29 ) ) )
----
-4

query II rowsort
SELECT + 4 * - 48, - 1 AS col0
----
-192
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL 76 * - - COUNT( * ) + 21 + - + 34
----
63

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL 76 * - - COUNT ( * ) + 21 + - + 34
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2754
SELECT + MAX( DISTINCT - + 23 ) DIV + 20 + - 87 - + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-2754
SELECT + MAX ( DISTINCT - + 23 ) / + 20 + - 87 - + COUNT ( * )
----
-89

query I rowsort
SELECT CASE - 83 WHEN 75 THEN - + 59 WHEN - 93 THEN NULL WHEN 37 * + 94 THEN NULL ELSE + - 82 * + - 94 END AS col0
----
7708

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2756
SELECT - 13 * + CASE - + 46 WHEN MIN( DISTINCT + 31 ) THEN - 76 DIV 27 + - + 74 + 29 WHEN - COUNT( * ) THEN 55 ELSE - ( - COUNT( * ) ) END + 25
----
12

skipif mysql # not compatible
query I rowsort label-2756
SELECT - 13 * + CASE - + 46 WHEN MIN ( DISTINCT + 31 ) THEN - 76 / 27 + - + 74 + 29 WHEN - COUNT ( * ) THEN 55 ELSE - ( - COUNT ( * ) ) END + 25
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2757
SELECT CASE + 51 WHEN 6 THEN - + 41 WHEN + 34 + + + AVG ( DISTINCT CAST( - 40 AS SIGNED ) ) THEN - + AVG ( ALL - 37 ) ELSE 45 END col0
----
45

skipif mysql # not compatible
query I rowsort label-2757
SELECT CASE + 51 WHEN 6 THEN - + 41 WHEN + 34 + + + AVG ( DISTINCT CAST ( - 40 AS INTEGER ) ) THEN - + AVG ( ALL - 37 ) ELSE 45 END col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT DISTINCT 88 * + MIN( ALL + 63 ) + + + 57 AS col2
----
5601

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT 88 * + MIN ( ALL + 63 ) + + + 57 AS col2
----
5601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2759
SELECT DISTINCT + COUNT( * ) * + 53 * 33 DIV - ( 16 ) + 38 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT + COUNT ( * ) * + 53 * 33 / - ( 16 ) + 38 AS col2
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2760
SELECT ALL ( ( + - COALESCE ( - + 81, - - 49 + - COUNT( * ) ) ) ) DIV 68 + 41 DIV + COUNT( - + 37 ) + 39 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL ( ( + - COALESCE ( - + 81, - - 49 + - COUNT ( * ) ) ) ) / 68 + 41 / + COUNT ( - + 37 ) + 39 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT - 63 / + MIN( 70 ) - - 80 - - MAX( - - CASE - 73 WHEN + CASE + 57 WHEN + 27 THEN 99 END THEN NULL WHEN + + 89 THEN + 12 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT - 63 / + MIN ( 70 ) - - 80 - - MAX ( - - CASE - 73 WHEN + CASE + 57 WHEN + 27 THEN 99 END THEN NULL WHEN + + 89 THEN + 12 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT + - 22 * + - 23 * 0 * COALESCE ( + + 24, - COUNT( * ), + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-2762
SELECT + - 22 * + - 23 * 0 * COALESCE ( + + 24, - COUNT ( * ), + 0 )
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2764
SELECT ALL + 11 DIV + 65 AS col2, - 59 * + 34 * + + COUNT( * ) col2
----
0
-2006

skipif mysql # not compatible
query II rowsort label-2764
SELECT ALL + 11 / + 65 AS col2, - 59 * + 34 * + + COUNT ( * ) col2
----
0
-2006

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT DISTINCT + COUNT( * ) * + 24 - + 60 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT + COUNT ( * ) * + 24 - + 60 AS col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2766
SELECT ALL - 96 * 52 - - 6 - 22 + - + COALESCE ( - 3, + CAST( NULL AS SIGNED ) ) + + MIN( 73 ) - - 94 * - 2 + - 63 - 77 * - ( + NULLIF ( 78, 27 - + 20 ) )
----
823

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL - 96 * 52 - - 6 - 22 + - + COALESCE ( - 3, + CAST ( NULL AS INTEGER ) ) + + MIN ( 73 ) - - 94 * - 2 + - 63 - 77 * - ( + NULLIF ( 78, 27 - + 20 ) )
----
823

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT ALL + 62 * + - 14 + - 79 + COALESCE ( + 86, + 72 + 31 * + + COUNT( * ) + + + 58, - COALESCE ( + NULLIF ( - 30, 92 ), - 17 ), COUNT( * ) ) * 12 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL + 62 * + - 14 + - 79 + COALESCE ( + 86, + 72 + 31 * + + COUNT ( * ) + + + 58, - COALESCE ( + NULLIF ( - 30, 92 ), - 17 ), COUNT ( * ) ) * 12 AS col1
----
85

query I rowsort
SELECT + + 56 * - + COALESCE ( 95, 6 )
----
-5320

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL - SUM( ALL + 28 ) * - NULLIF ( 95, - + 35 / + - 90 ) AS col0
----
2660

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - SUM ( ALL + 28 ) * - NULLIF ( 95, - + 35 / + - 90 ) AS col0
----
2660

query I rowsort
SELECT + 16 * + 17 * - - 66
----
17952

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

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

query I rowsort
SELECT ALL 12 * + NULLIF ( 25, - 57 ) AS col1
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT DISTINCT - CASE + COUNT( * ) WHEN 76 THEN NULL WHEN - 0 * - ( 50 ) + ( 96 ) * - COALESCE ( - + ( - - 24 ), + 97 / + COUNT( * ) + - 71 ) THEN - 44 ELSE - 15 * NULLIF ( - COUNT( * ), + MAX( DISTINCT + 39 ) ) END AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT - CASE + COUNT ( * ) WHEN 76 THEN NULL WHEN - 0 * - ( 50 ) + ( 96 ) * - COALESCE ( - + ( - - 24 ), + 97 / + COUNT ( * ) + - 71 ) THEN - 44 ELSE - 15 * NULLIF ( - COUNT ( * ), + MAX ( DISTINCT + 39 ) ) END AS col1
----
-15

query I rowsort
SELECT + + 4 + 24 * + + 37 AS col2
----
892

onlyif mysql # aggregate syntax: 
query II rowsort label-2775
SELECT - + MIN( - + 10 ) * 65, 31 AS col0
----
650
31

skipif mysql # not compatible
query II rowsort label-2775
SELECT - + MIN ( - + 10 ) * 65, 31 AS col0
----
650
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2776
SELECT ALL + - 62 DIV + - 69 * + ( + + 60 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL + - 62 / + - 69 * + ( + + 60 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT - 58 + 70 - + MAX( - 84 ) * 36 + - ( - - 33 ) * - 52 * - 41
----
-67320

skipif mysql # not compatible
query I rowsort label-2777
SELECT - 58 + 70 - + MAX ( - 84 ) * 36 + - ( - - 33 ) * - 52 * - 41
----
-67320

query I rowsort
SELECT ALL 64 + ( 54 ) col0
----
118

query II rowsort
SELECT - 22 AS col1, - 25 AS col0
----
-22
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT ALL + 4 + + - NULLIF ( + SUM( 80 ), + - 50 * + - 57 ) - - - 85 + - + 3
----
-164

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL + 4 + + - NULLIF ( + SUM ( 80 ), + - 50 * + - 57 ) - - - 85 + - + 3
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT - ( + ( + COUNT( * ) ) ) - + SUM( ALL - 7 ) + 32 * - 28 AS col0
----
-890

skipif mysql # not compatible
query I rowsort label-2781
SELECT - ( + ( + COUNT ( * ) ) ) - + SUM ( ALL - 7 ) + 32 * - 28 AS col0
----
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL + 31 * - + COUNT( * ) * - 67
----
2077

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL + 31 * - + COUNT ( * ) * - 67
----
2077

query I rowsort
SELECT ALL - 41 + + 5
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT - COUNT( * ) + + - 66
----
-67

skipif mysql # not compatible
query I rowsort label-2784
SELECT - COUNT ( * ) + + - 66
----
-67

query I rowsort
SELECT DISTINCT - 59 + - 63 + - + 71
----
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT ALL - COALESCE ( + 26, - COUNT( * ) + - + COUNT( * ), 16 + + ( + 98 ) * - 15 ) + - ( + 1 ) * MAX( - 79 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL - COALESCE ( + 26, - COUNT ( * ) + - + COUNT ( * ), 16 + + ( + 98 ) * - 15 ) + - ( + 1 ) * MAX ( - 79 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT ALL + CASE 64 WHEN ( - + 88 ) + - 7 THEN + 24 / + 14 WHEN - 75 THEN + + 22 / + 60 + - - COUNT( * ) + 19 + + 75 + 20 END / - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL + CASE 64 WHEN ( - + 88 ) + - 7 THEN + 24 / + 14 WHEN - 75 THEN + + 22 / + 60 + - - COUNT ( * ) + 19 + + 75 + 20 END / - COUNT ( * ) col2
----
NULL

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

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

query I rowsort
SELECT ALL + 42 + - 47 AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2790
SELECT ALL - 54 DIV - CAST( - - ( COUNT( * ) ) AS SIGNED ) - + 58 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL - 54 / - CAST ( - - ( COUNT ( * ) ) AS INTEGER ) - + 58 AS col2
----
-4

query I rowsort
SELECT - 38 + - 93
----
-131

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2793
SELECT CAST( NULL AS SIGNED ) col2, MIN( ALL + - 5 ) - COUNT( * ) + + 43 - + 47
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-2793
SELECT CAST ( NULL AS INTEGER ) col2, MIN ( ALL + - 5 ) - COUNT ( * ) + + 43 - + 47
----
NULL
-10

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2797
SELECT 35 / + - COUNT ( * ) + + 79 * + COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT - - MAX( + 22 ) * ( 29 ) + + 48
----
686

skipif mysql # not compatible
query I rowsort label-2798
SELECT - - MAX ( + 22 ) * ( 29 ) + + 48
----
686

query I rowsort
SELECT + 47 + - + 60 * + + 4 col2
----
-193

query II rowsort
SELECT ALL + 76 AS col2, - 17
----
76
-17

query I rowsort
SELECT DISTINCT + + 48 * + + 24 * + 41 * + 2 * + 81 col0
----
7651584

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT ALL + CASE - CASE 51 WHEN - - 23 THEN NULL WHEN ( - 5 ) * + 47 + - ( ( 21 ) ) * + 50 + - - 62 - 19 THEN 43 * COUNT( * ) END WHEN - 63 THEN NULL WHEN + 26 * + 87 THEN + 91 * + 9 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL + CASE - CASE 51 WHEN - - 23 THEN NULL WHEN ( - 5 ) * + 47 + - ( ( 21 ) ) * + 50 + - - 62 - 19 THEN 43 * COUNT ( * ) END WHEN - 63 THEN NULL WHEN + 26 * + 87 THEN + 91 * + 9 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT + 6 * - + 70 + - 27 * + - COUNT( * ) * - 5 AS col2
----
-555

skipif mysql # not compatible
query I rowsort label-2803
SELECT + 6 * - + 70 + - 27 * + - COUNT ( * ) * - 5 AS col2
----
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT ALL + MAX( + 65 ) * + + ( - - 37 ) * - 51
----
-122655

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL + MAX ( + 65 ) * + + ( - - 37 ) * - 51
----
-122655

onlyif mysql # DIV for integer division: 
query I rowsort label-2805
SELECT ALL - 39 DIV - 4 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - 39 / - 4 AS col0
----
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2807
SELECT DISTINCT + 6 / + CASE + CAST( - 72 AS DECIMAL ) WHEN - 18 THEN COUNT( * ) + - 27 + ( - 76 ) * 81 WHEN 61 THEN - 60 * 23 * COUNT( * ) END * + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT + 6 / + CASE + CAST ( - 72 AS REAL ) WHEN - 18 THEN COUNT ( * ) + - 27 + ( - 76 ) * 81 WHEN 61 THEN - 60 * 23 * COUNT ( * ) END * + 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT + 2 * - - 9 * - MAX( ALL - + 17 ) AS col0
----
306

skipif mysql # not compatible
query I rowsort label-2808
SELECT + 2 * - - 9 * - MAX ( ALL - + 17 ) AS col0
----
306

onlyif mysql # DIV for integer division: 
query I rowsort label-2809
SELECT 78 * ( + 26 ) * - + 62 * 61 - 61 - + 68 + - 37 DIV + 63
----
-7670025

skipif mysql # not compatible
query I rowsort label-2809
SELECT 78 * ( + 26 ) * - + 62 * 61 - 61 - + 68 + - 37 / + 63
----
-7670025

query I rowsort
SELECT 27 * + 12
----
324

query I rowsort
SELECT ALL - 72 + + 94
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2812
SELECT DISTINCT + 18 + + 47 + + MIN( DISTINCT - ( + - 67 ) ) AS col0, + 87 * + COALESCE ( - 53, 79 * + COUNT( * ) - - + ( + 2 ) ) + 93 AS col1
----
132
-4518

skipif mysql # not compatible
query II rowsort label-2812
SELECT DISTINCT + 18 + + 47 + + MIN ( DISTINCT - ( + - 67 ) ) AS col0, + 87 * + COALESCE ( - 53, 79 * + COUNT ( * ) - - + ( + 2 ) ) + 93 AS col1
----
132
-4518

query I rowsort
SELECT ALL 16 * + CASE + - 94 WHEN + CASE + 12 WHEN - 92 THEN - - 2 * 44 - 39 ELSE 99 END THEN + + ( - 58 ) / 75 * 86 * + 68 + 86 WHEN 19 THEN NULL ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ( - 1 ) * - + 72 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT 30 + 90 * + MAX( DISTINCT COALESCE ( + 23, - 4 ) ) AS col1
----
2100

skipif mysql # not compatible
query I rowsort label-2816
SELECT 30 + 90 * + MAX ( DISTINCT COALESCE ( + 23, - 4 ) ) AS col1
----
2100

query I rowsort
SELECT DISTINCT + 82 * - ( - + 39 )
----
3198

onlyif mysql # DIV for integer division: 
query III rowsort label-2818
SELECT DISTINCT 9 - + - NULLIF ( 56, 41 ) col1, 16 AS col2, 93 DIV 23 DIV - 65 AS col2
----
65
16
0

skipif mysql # not compatible
query III rowsort label-2818
SELECT DISTINCT 9 - + - NULLIF ( 56, 41 ) col1, 16 AS col2, 93 / 23 / - 65 AS col2
----
65
16
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2819
SELECT ALL + 10 - + - 41 + - + 1 * 58 AS col0, 73 + - ( 14 ) * - - SUM( DISTINCT - - 89 ) col2
----
-7
-1173

skipif mysql # not compatible
query II rowsort label-2819
SELECT ALL + 10 - + - 41 + - + 1 * 58 AS col0, 73 + - ( 14 ) * - - SUM ( DISTINCT - - 89 ) col2
----
-7
-1173

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

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

query I rowsort
SELECT DISTINCT 3 * - 27
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT 29 DIV + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2822
SELECT 29 / + 30 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2823
SELECT 36 * + 97 AS col1, + 5 - - 37 * + CASE - + ( - 37 ) WHEN ( + - 80 ) THEN NULL WHEN + - 74 + - + 77 + + 74 + 35 * - ( - NULLIF ( 63, ( 45 ) ) ) * 7 THEN NULL ELSE COUNT( * ) * 25 END + ( - CAST( 70 AS SIGNED ) )
----
3492
860

skipif mysql # not compatible
query II rowsort label-2823
SELECT 36 * + 97 AS col1, + 5 - - 37 * + CASE - + ( - 37 ) WHEN ( + - 80 ) THEN NULL WHEN + - 74 + - + 77 + + 74 + 35 * - ( - NULLIF ( 63, ( 45 ) ) ) * 7 THEN NULL ELSE COUNT ( * ) * 25 END + ( - CAST ( 70 AS INTEGER ) )
----
3492
860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2824
SELECT ALL + CAST( NULL AS SIGNED ) * - 7 * + 46 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL + CAST ( NULL AS INTEGER ) * - 7 * + 46 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2825
SELECT - 92 DIV - - COALESCE ( + 25, + + 86 - + 16, 89 + - 54 + - CASE CAST( + COALESCE ( - + 44, 82 ) AS SIGNED ) WHEN + - COUNT( * ) THEN + 67 * + COUNT( * ) ELSE NULL END * + 15 ) - - 24
----
21

skipif mysql # not compatible
query I rowsort label-2825
SELECT - 92 / - - COALESCE ( + 25, + + 86 - + 16, 89 + - 54 + - CASE CAST ( + COALESCE ( - + 44, 82 ) AS INTEGER ) WHEN + - COUNT ( * ) THEN + 67 * + COUNT ( * ) ELSE NULL END * + 15 ) - - 24
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2826
SELECT - 18 DIV 99 DIV - + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2826
SELECT - 18 / 99 / - + 99 AS col0
----
0

query I rowsort
SELECT 55 * + 28 AS col0
----
1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2828
SELECT 84 * - CAST( NULL AS SIGNED ) * + 2 + 31 + + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2828
SELECT 84 * - CAST ( NULL AS INTEGER ) * + 2 + 31 + + + 92
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT DISTINCT - + 25 DIV 2
----
-12

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT - + 25 / 2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2830
SELECT + 84 DIV 33 * - 32 DIV 80 - + - MAX( + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-2830
SELECT + 84 / 33 * - 32 / 80 - + - MAX ( + 51 )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2831
SELECT DISTINCT - MAX( ALL + 78 ) AS col0, + 0 / 85 * CASE + COUNT( + - 69 ) WHEN + 64 - - + 79 - COUNT( * ) THEN ( + + 35 ) ELSE NULL END + - 84 AS col0
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-2831
SELECT DISTINCT - MAX ( ALL + 78 ) AS col0, + 0 / 85 * CASE + COUNT ( + - 69 ) WHEN + 64 - - + 79 - COUNT ( * ) THEN ( + + 35 ) ELSE NULL END + - 84 AS col0
----
-78
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2832
SELECT DISTINCT 46 * - 95 + + 80 + + COUNT( * ), 59 * - + 24 col0
----
-4289
-1416

skipif mysql # not compatible
query II rowsort label-2832
SELECT DISTINCT 46 * - 95 + + 80 + + COUNT ( * ), 59 * - + 24 col0
----
-4289
-1416

query I rowsort
SELECT ALL - - ( + + 71 ) + - 68
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2834
SELECT - 34 * - 90 + NULLIF ( CASE CAST( NULL AS SIGNED ) WHEN + NULLIF ( - + 40, + + 37 + - - CASE + 15 WHEN - ( + 95 ) + + 50 + + 10 + 80 / AVG ( 29 ) THEN 10 + + 92 WHEN COALESCE ( - 0, + COALESCE ( COUNT( * ), + 76 ) ) + + 14 THEN NULL ELSE + 93 END + 57 / 48 * + 54 ) * 80 - + 3 THEN NULL WHEN - 16 THEN 62 + - COUNT( * ) END, 2 ) + 24 / 81
----
NULL

skipif mysql # not compatible
query I rowsort label-2834
SELECT - 34 * - 90 + NULLIF ( CASE CAST ( NULL AS INTEGER ) WHEN + NULLIF ( - + 40, + + 37 + - - CASE + 15 WHEN - ( + 95 ) + + 50 + + 10 + 80 / AVG ( 29 ) THEN 10 + + 92 WHEN COALESCE ( - 0, + COALESCE ( COUNT ( * ), + 76 ) ) + + 14 THEN NULL ELSE + 93 END + 57 / 48 * + 54 ) * 80 - + 3 THEN NULL WHEN - 16 THEN 62 + - COUNT ( * ) END, 2 ) + 24 / 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT 4 * + COUNT( * ) - + + 88
----
-84

skipif mysql # not compatible
query I rowsort label-2835
SELECT 4 * + COUNT ( * ) - + + 88
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2836
SELECT + COUNT( * ) DIV - COALESCE ( + 2, + NULLIF ( + 97, - 47 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2836
SELECT + COUNT ( * ) / - COALESCE ( + 2, + NULLIF ( + 97, - 47 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL + COUNT( * ) + ( + 44 ) * + 99 AS col2
----
4357

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL + COUNT ( * ) + ( + 44 ) * + 99 AS col2
----
4357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2838
SELECT - 86 * + CASE + 79 WHEN - MAX( - CAST( NULL AS SIGNED ) ) + - - 52 THEN - - 9 WHEN 40 THEN NULL ELSE + 26 END - + - 60 * 85 * COUNT( * )
----
2864

skipif mysql # not compatible
query I rowsort label-2838
SELECT - 86 * + CASE + 79 WHEN - MAX ( - CAST ( NULL AS INTEGER ) ) + - - 52 THEN - - 9 WHEN 40 THEN NULL ELSE + 26 END - + - 60 * 85 * COUNT ( * )
----
2864

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT ALL COUNT( * ) + COALESCE ( - - 43, + COUNT( - + 60 ) )
----
44

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL COUNT ( * ) + COALESCE ( - - 43, + COUNT ( - + 60 ) )
----
44

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

skipif mysql # not compatible
query I rowsort label-2840
SELECT 85 + - 64 * - 2 * + COUNT ( * ) AS col1
----
213

query I rowsort
SELECT 20 * - 70 AS col0
----
-1400

query I rowsort
SELECT ALL 4 * + 58
----
232

query I rowsort
SELECT 4 + + 12
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT ALL MIN( ALL + + 17 ) - + 10 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL MIN ( ALL + + 17 ) - + 10 AS col1
----
7

query I rowsort
SELECT ALL 68 * - 0
----
0

query I rowsort
SELECT 39 + - 20 + 84 AS col2
----
103

query I rowsort
SELECT 10 + 79
----
89

query II rowsort
SELECT ALL 63 AS col1, + 75
----
63
75

query II rowsort
SELECT 80 AS col2, + ( 25 )
----
80
25

query II rowsort
SELECT - 65 AS col2, - 42 * 99
----
-65
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT + 15 + - - COALESCE ( + 0, COUNT( * ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-2851
SELECT + 15 + - - COALESCE ( + 0, COUNT ( * ) ) AS col2
----
15

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

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

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

query I rowsort
SELECT ALL - - 47 * 48 col0
----
2256

query I rowsort
SELECT - ( - + 19 ) * 92
----
1748

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL - + SUM( ALL + 56 ) * - + 5 + + - 25 AS col1
----
255

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL - + SUM ( ALL + 56 ) * - + 5 + + - 25 AS col1
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2857
SELECT - COUNT( * ) * 65 * - CASE + COUNT( - 76 ) WHEN + 94 / 13 * - CAST( + - COUNT( * ) AS SIGNED ) - 52 THEN NULL WHEN - - 74 / - 72 THEN - COUNT( + 92 ) END + - + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT - COUNT ( * ) * 65 * - CASE + COUNT ( - 76 ) WHEN + 94 / 13 * - CAST ( + - COUNT ( * ) AS INTEGER ) - 52 THEN NULL WHEN - - 74 / - 72 THEN - COUNT ( + 92 ) END + - + 40 AS col0
----
NULL

query I rowsort
SELECT + ( + ( + 81 ) ) + - 94 col2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2859
SELECT COUNT( * ) + - + ( + + 77 ), - 80 AS col1
----
-76
-80

skipif mysql # not compatible
query II rowsort label-2859
SELECT COUNT ( * ) + - + ( + + 77 ), - 80 AS col1
----
-76
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT - + COUNT( - + 8 ) + - COUNT( * ) + - 75 + - COUNT( * ) * 11
----
-88

skipif mysql # not compatible
query I rowsort label-2860
SELECT - + COUNT ( - + 8 ) + - COUNT ( * ) + - 75 + - COUNT ( * ) * 11
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2861
SELECT + + 39 * 16 + COUNT( * ) - NULLIF ( 51, COALESCE ( 94, 16 ) - 82 + - SUM( 73 ) + + - 46 ) + + 60 + + 83 DIV - COUNT( * ) - COUNT( * ) * + 1 DIV 49 * COUNT( ALL + 93 + - ( + 26 ) )
----
551

skipif mysql # not compatible
query I rowsort label-2861
SELECT + + 39 * 16 + COUNT ( * ) - NULLIF ( 51, COALESCE ( 94, 16 ) - 82 + - SUM ( 73 ) + + - 46 ) + + 60 + + 83 / - COUNT ( * ) - COUNT ( * ) * + 1 / 49 * COUNT ( ALL + 93 + - ( + 26 ) )
----
551

query I rowsort
SELECT - 59 * + 98 + - + 64 * - 78 AS col2
----
-790

query II rowsort
SELECT - 92 AS col2, 38 AS col1
----
-92
38

query I rowsort
SELECT - 21 + - 81 AS col0
----
-102

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2865
SELECT + 15 col0, NULLIF ( + - 53, CAST( NULL AS DECIMAL ) + + COUNT( * ) ) * + 21 + + 36 + - + 65 * - 13 - 5
----
15
-237

skipif mysql # not compatible
query II rowsort label-2865
SELECT + 15 col0, NULLIF ( + - 53, CAST ( NULL AS REAL ) + + COUNT ( * ) ) * + 21 + + 36 + - + 65 * - 13 - 5
----
15
-237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2866
SELECT - 5 + - CASE + 90 WHEN - 19 / + 3 * + 19 + + 1 + ( + 33 ) THEN NULL WHEN CAST( + + 37 AS SIGNED ) THEN NULL ELSE 34 * + 7 + + - 12 * - COUNT( ALL - + 5 ) * - COUNT( 55 ) + 12 * - 51 END AS col1
----
381

skipif mysql # not compatible
query I rowsort label-2866
SELECT - 5 + - CASE + 90 WHEN - 19 / + 3 * + 19 + + 1 + ( + 33 ) THEN NULL WHEN CAST ( + + 37 AS INTEGER ) THEN NULL ELSE 34 * + 7 + + - 12 * - COUNT ( ALL - + 5 ) * - COUNT ( 55 ) + 12 * - 51 END AS col1
----
381

query I rowsort
SELECT - 16 * + - 46 AS col0
----
736

query I rowsort
SELECT - 22 * 91 col0
----
-2002

query I rowsort
SELECT DISTINCT - 0 * - + 91 AS col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2871
SELECT - CAST( - 1 AS SIGNED ) * + 45 * + 16 + 37 + + 50 AS col0
----
807

skipif mysql # not compatible
query I rowsort label-2871
SELECT - CAST ( - 1 AS INTEGER ) * + 45 * + 16 + 37 + + 50 AS col0
----
807

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2873
SELECT 10 * - - ( + 58 ) * - - CAST( - + ( 72 ) AS SIGNED ) + + 70 + 85 DIV - + 91
----
-41690

skipif mysql # not compatible
query I rowsort label-2873
SELECT 10 * - - ( + 58 ) * - - CAST ( - + ( 72 ) AS INTEGER ) + + 70 + 85 / - + 91
----
-41690

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT DISTINCT MAX( 60 )
----
60

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT MAX ( 60 )
----
60

query II rowsort
SELECT - 81, - 48 AS col2
----
-81
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2876
SELECT ALL 83 AS col0, + MAX( + 68 ) + 38 * + ( - + 9 ) AS col2
----
83
-274

skipif mysql # not compatible
query II rowsort label-2876
SELECT ALL 83 AS col0, + MAX ( + 68 ) + 38 * + ( - + 9 ) AS col2
----
83
-274

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

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL - 83 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2878
SELECT ALL 92 AS col0, COUNT( * ) * - 12
----
92
-12

skipif mysql # not compatible
query II rowsort label-2878
SELECT ALL 92 AS col0, COUNT ( * ) * - 12
----
92
-12

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

skipif mysql # not compatible
query I rowsort label-2879
SELECT - MAX ( + ( + 98 ) )
----
-98

query II rowsort
SELECT + 91 * - ( - - ( + + 28 ) ) AS col2, - 51 + - - 39 - - 88
----
-2548
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2881
SELECT ALL COUNT( * ) DIV COALESCE ( COALESCE ( + 58, + + 15 ), + 65 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL COUNT ( * ) / COALESCE ( COALESCE ( + 58, + + 15 ), + 65 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2882
SELECT - COUNT( * ), + ( - MIN( ALL - 43 ) ) AS col2
----
-1
43

skipif mysql # not compatible
query II rowsort label-2882
SELECT - COUNT ( * ), + ( - MIN ( ALL - 43 ) ) AS col2
----
-1
43

query I rowsort
SELECT - COALESCE ( + 95, - 93, + 84 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT + 55 * + SUM( + 41 )
----
2255

skipif mysql # not compatible
query I rowsort label-2884
SELECT + 55 * + SUM ( + 41 )
----
2255

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2885
SELECT + - COALESCE ( + 94, 92 ) + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT + - COALESCE ( + 94, 92 ) + - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - 1 + - - 25 * - 44 + - 40 AS col2
----
-1141

query I rowsort
SELECT ALL 49 * + 73 AS col2
----
3577

onlyif mysql # DIV for integer division: 
query I rowsort label-2888
SELECT ALL + 28 DIV + 49 + 11 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL + 28 / + 49 + 11 AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT DISTINCT + 85 DIV - 91 + 1 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT + 85 / - 91 + 1 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2890
SELECT DISTINCT + 49 DIV + 26 + + 95 + 74 AS col1
----
170

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT + 49 / + 26 + + 95 + 74 AS col1
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2891
SELECT ALL 53 / - ( + 83 ) + - + MAX( - 89 ) * + 20 + - 79 + 58 - + - 71 * + 69 * + COUNT( * ) * + - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL 53 / - ( + 83 ) + - + MAX ( - 89 ) * + 20 + - 79 + 58 - + - 71 * + 69 * + COUNT ( * ) * + - CAST ( - CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query II rowsort
SELECT - 98 AS col1, NULLIF ( 52, + 8 ) + + - 24
----
-98
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2893
SELECT ALL + 23 AS col2, - 3 * + COUNT( * ) AS col2
----
23
-3

skipif mysql # not compatible
query II rowsort label-2893
SELECT ALL + 23 AS col2, - 3 * + COUNT ( * ) AS col2
----
23
-3

query II rowsort
SELECT + 48, 9 AS col0
----
48
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT + CASE - 96 WHEN - - ( 7 ) THEN 82 + + + 95 * - COALESCE ( COUNT( DISTINCT + 1 ), - COUNT( ALL 82 ) - COUNT( * ) + - - 30 * + + 95 ) * 27 + + 6 + + 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT + CASE - 96 WHEN - - ( 7 ) THEN 82 + + + 95 * - COALESCE ( COUNT ( DISTINCT + 1 ), - COUNT ( ALL 82 ) - COUNT ( * ) + - - 30 * + + 95 ) * 27 + + 6 + + 70 END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2897
SELECT + + NULLIF ( AVG ( ALL - 39 ), - 84 ) - - + CASE + - 19 WHEN - 23 / - NULLIF ( - + CASE - 58 WHEN - 75 + - 99 / CAST( NULL AS SIGNED ) THEN NULL WHEN - + COALESCE ( - + 46, + - 28 ) * - COUNT( * ) THEN 74 ELSE NULL END, - 30 * + 32 + + 99 ) THEN + MIN( DISTINCT - 87 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT + + NULLIF ( AVG ( ALL - 39 ), - 84 ) - - + CASE + - 19 WHEN - 23 / - NULLIF ( - + CASE - 58 WHEN - 75 + - 99 / CAST ( NULL AS INTEGER ) THEN NULL WHEN - + COALESCE ( - + 46, + - 28 ) * - COUNT ( * ) THEN 74 ELSE NULL END, - 30 * + 32 + + 99 ) THEN + MIN ( DISTINCT - 87 ) END
----
NULL

query I rowsort
SELECT - 27 * + 50 AS col0
----
-1350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2899
SELECT DISTINCT + + COUNT( * ) * + 9 DIV + 19
----
0

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT + + COUNT ( * ) * + 9 / + 19
----
0

query I rowsort
SELECT NULLIF ( - 53, + 95 )
----
-53

query I rowsort
SELECT - 58 * + - 47 AS col1
----
2726

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2903
SELECT COALESCE ( 98, 26 DIV + ( - + COUNT( * ) ) ), - 91 AS col2
----
98
-91

skipif mysql # not compatible
query II rowsort label-2903
SELECT COALESCE ( 98, 26 / + ( - + COUNT ( * ) ) ), - 91 AS col2
----
98
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL + 77 * - ( + 62 ) - NULLIF ( + COUNT( * ), - 52 )
----
-4775

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL + 77 * - ( + 62 ) - NULLIF ( + COUNT ( * ), - 52 )
----
-4775

query I rowsort
SELECT - 22 * - - 78
----
-1716

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

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

query I rowsort
SELECT + 27 * 76
----
2052

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2908
SELECT - 33 * + 59 * - + 23 DIV + COALESCE ( + + COUNT( * ), - 30 ) AS col2
----
44781

skipif mysql # not compatible
query I rowsort label-2908
SELECT - 33 * + 59 * - + 23 / + COALESCE ( + + COUNT ( * ), - 30 ) AS col2
----
44781

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT - MAX( DISTINCT - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-2909
SELECT - MAX ( DISTINCT - 5 )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2910
SELECT - 3 + + - COALESCE ( + ( + 83 ), + ( 91 ) ) DIV + 34 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-2910
SELECT - 3 + + - COALESCE ( + ( + 83 ), + ( 91 ) ) / + 34 AS col1
----
-5

query I rowsort
SELECT ALL - ( + + 15 ) * + - 25 AS col1
----
375

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT - 79 + - - NULLIF ( - 87, 14 + + 68 * - - COUNT( * ) + + 35 - + 1 * + + ( SUM( ALL + 92 ) ) ) AS col2
----
-166

skipif mysql # not compatible
query I rowsort label-2912
SELECT - 79 + - - NULLIF ( - 87, 14 + + 68 * - - COUNT ( * ) + + 35 - + 1 * + + ( SUM ( ALL + 92 ) ) ) AS col2
----
-166

query I rowsort
SELECT - 85 - + 53 + - 22 AS col1
----
-160

query I rowsort
SELECT - 97 * - 42 AS col0
----
4074

query II rowsort
SELECT - 55 + 18 * + 12, 62 AS col0
----
161
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2916
SELECT ALL ( + 18 ) AS col1, - 54 * COUNT( * ) + 73 + - ( - - COUNT( * ) )
----
18
18

skipif mysql # not compatible
query II rowsort label-2916
SELECT ALL ( + 18 ) AS col1, - 54 * COUNT ( * ) + 73 + - ( - - COUNT ( * ) )
----
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2917
SELECT ALL 61 + 5 col1, 9, + - CAST( - 1 AS SIGNED ) AS col1
----
66
9
1

skipif mysql # not compatible
query III rowsort label-2917
SELECT ALL 61 + 5 col1, 9, + - CAST ( - 1 AS INTEGER ) AS col1
----
66
9
1

query I rowsort
SELECT DISTINCT + ( + 94 ) + + 47 AS col1
----
141

query I rowsort
SELECT ALL 94 + + ( + 5 ) - - 18 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT + + COUNT( 10 ) + + 71
----
72

skipif mysql # not compatible
query I rowsort label-2920
SELECT + + COUNT ( 10 ) + + 71
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2921
SELECT ALL + COUNT( ALL - 67 ) + 73 DIV + + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL + COUNT ( ALL - 67 ) + 73 / + + COUNT ( * )
----
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT - - 17 * ( + COUNT( * ) ) * 10 AS col2
----
170

skipif mysql # not compatible
query I rowsort label-2923
SELECT - - 17 * ( + COUNT ( * ) ) * 10 AS col2
----
170

query II rowsort
SELECT + 0 * + 5, 58 AS col2
----
0
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2925
SELECT 99 DIV NULLIF ( 41, - 57 ) * - - 43 * - 73 * + 0 - + - 15
----
15

skipif mysql # not compatible
query I rowsort label-2925
SELECT 99 / NULLIF ( 41, - 57 ) * - - 43 * - 73 * + 0 - + - 15
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2926
SELECT DISTINCT + SUM( DISTINCT - 94 ) + + 52 * - ( + - 85 ) + CAST( - + COUNT( * ) AS SIGNED )
----
4325

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT + SUM ( DISTINCT - 94 ) + + 52 * - ( + - 85 ) + CAST ( - + COUNT ( * ) AS INTEGER )
----
4325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2927
SELECT DISTINCT + - 47 DIV + + NULLIF ( - COUNT( ALL - - 58 ), - 15 ) + - 94 * 60
----
-5593

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT + - 47 / + + NULLIF ( - COUNT ( ALL - - 58 ), - 15 ) + - 94 * 60
----
-5593

query I rowsort
SELECT 48 * + 3
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL - NULLIF ( + + 30, + 10 + - COUNT( * ) - 13 )
----
-30

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL - NULLIF ( + + 30, + 10 + - COUNT ( * ) - 13 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2930
SELECT DISTINCT CAST( ( + MAX( ALL + + 17 ) ) AS SIGNED ) * + 71
----
1207

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT CAST ( ( + MAX ( ALL + + 17 ) ) AS INTEGER ) * + 71
----
1207

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT 73 DIV + - 4 + + 58
----
40

skipif mysql # not compatible
query I rowsort label-2931
SELECT 73 / + - 4 + + 58
----
40

query II rowsort
SELECT 4 + 87 * - + 99 col1, + 76
----
-8609
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT - 92 * 36 - + COUNT( ALL + 43 ) AS col1
----
-3313

skipif mysql # not compatible
query I rowsort label-2933
SELECT - 92 * 36 - + COUNT ( ALL + 43 ) AS col1
----
-3313

query I rowsort
SELECT 95 + + + 65 * + 43 + - ( 37 ) AS col1
----
2853

query I rowsort
SELECT NULLIF ( + 10, + 71 + 14 ) * - 36 AS col1
----
-360

onlyif mysql # aggregate syntax: 
query II rowsort label-2936
SELECT DISTINCT + ( 47 ) * 25 AS col2, + COUNT( * ) AS col1
----
1175
1

skipif mysql # not compatible
query II rowsort label-2936
SELECT DISTINCT + ( 47 ) * 25 AS col2, + COUNT ( * ) AS col1
----
1175
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT 46 * - - COUNT( * ) + + - ( + COUNT( * ) ) * 4 + - ( - 92 ) + - + 45 * - COALESCE ( - 95, ( + + 28 ) )
----
-4141

skipif mysql # not compatible
query I rowsort label-2937
SELECT 46 * - - COUNT ( * ) + + - ( + COUNT ( * ) ) * 4 + - ( - 92 ) + - + 45 * - COALESCE ( - 95, ( + + 28 ) )
----
-4141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2938
SELECT CAST( NULL AS SIGNED ) + - - 16 / + - 91 + - NULLIF ( - CASE - 26 WHEN + 10 + CAST( NULL AS SIGNED ) THEN + COUNT( * ) END, + CAST( + 0 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT CAST ( NULL AS INTEGER ) + - - 16 / + - 91 + - NULLIF ( - CASE - 26 WHEN + 10 + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) END, + CAST ( + 0 AS INTEGER ) )
----
NULL

query I rowsort
SELECT 39 + - - 13
----
52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2941
SELECT ALL CAST( AVG ( - - 29 ) AS SIGNED ) + + 28 + - - 15 - - 44 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL CAST ( AVG ( - - 29 ) AS INTEGER ) + + 28 + - - 15 - - 44 AS col0
----
116

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2942
SELECT CAST( NULL AS DECIMAL ) * 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT CAST ( NULL AS REAL ) * 18 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2944
SELECT DISTINCT SUM( ALL + - 89 ) * + ( + 58 ) AS col0, 21 * - 17 * SUM( + 15 ) AS col1
----
-5162
-5355

skipif mysql # not compatible
query II rowsort label-2944
SELECT DISTINCT SUM ( ALL + - 89 ) * + ( + 58 ) AS col0, 21 * - 17 * SUM ( + 15 ) AS col1
----
-5162
-5355

query I rowsort
SELECT ALL 38 + + ( + 19 )
----
57

query I rowsort
SELECT ALL + 21 + + 15 * 16
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT - CASE 95 WHEN + 36 + + + 81 + - 93 / - - COUNT( * ) - + 37 THEN NULL ELSE 31 * - 22 * - 41 * + ( + - MAX( ( - 44 ) ) ) - + COUNT( * ) + + 18 END col1
----
-1230345

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT - CASE 95 WHEN + 36 + + + 81 + - 93 / - - COUNT ( * ) - + 37 THEN NULL ELSE 31 * - 22 * - 41 * + ( + - MAX ( ( - 44 ) ) ) - + COUNT ( * ) + + 18 END col1
----
-1230345

query I rowsort
SELECT + 62 * + 76 + + 89 AS col0
----
4801

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

query I rowsort
SELECT ALL + 60 * - + 81
----
-4860

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT + SUM( ( 44 ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-2951
SELECT + SUM ( ( 44 ) ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL + - 44 * - CASE 17 WHEN - 39 * + COUNT( * ) / - 57 + + COUNT( * ) + COUNT( * ) - 68 + + 85 * COUNT( * ) + 27 + 86 * - + 42 THEN NULL WHEN - 74 * 34 / + ( - 45 ) THEN + 75 + 65 ELSE 58 - 70 * 42 END AS col0
----
-126808

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL + - 44 * - CASE 17 WHEN - 39 * + COUNT ( * ) / - 57 + + COUNT ( * ) + COUNT ( * ) - 68 + + 85 * COUNT ( * ) + 27 + 86 * - + 42 THEN NULL WHEN - 74 * 34 / + ( - 45 ) THEN + 75 + 65 ELSE 58 - 70 * 42 END AS col0
----
-126808

query I rowsort
SELECT DISTINCT + 32 - + 15 AS col2
----
17

query II rowsort
SELECT ALL 32, + 47 * - 47 AS col0
----
32
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL + - SUM( + 89 ) * - - MAX( 83 ) + - - 29 AS col0
----
-7358

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL + - SUM ( + 89 ) * - - MAX ( 83 ) + - - 29 AS col0
----
-7358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2956
SELECT ALL 55 AS col1, 21 * 45 - - + 63 + CAST( NULL AS SIGNED ) * + MIN( DISTINCT + - 62 )
----
55
NULL

skipif mysql # not compatible
query II rowsort label-2956
SELECT ALL 55 AS col1, 21 * 45 - - + 63 + CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT + - 62 )
----
55
NULL

query I rowsort
SELECT 42 + - 11 AS col0
----
31

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

skipif mysql # not compatible
query I rowsort label-2958
SELECT - CAST ( NULL AS INTEGER ) * - 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2959
SELECT DISTINCT - - 75 AS col0, - 33 * + + COUNT( * )
----
75
-33

skipif mysql # not compatible
query II rowsort label-2959
SELECT DISTINCT - - 75 AS col0, - 33 * + + COUNT ( * )
----
75
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT ALL 97 * + - 53 + + 17 + - + COUNT( * ) + + 43 AS col1
----
-5082

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL 97 * + - 53 + + 17 + - + COUNT ( * ) + + 43 AS col1
----
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT + 67 * + + COUNT( - 28 )
----
67

skipif mysql # not compatible
query I rowsort label-2961
SELECT + 67 * + + COUNT ( - 28 )
----
67

query II rowsort
SELECT DISTINCT - NULLIF ( - 87, - + 44 / - 32 ) AS col0, + 64
----
87
64

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

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

query I rowsort
SELECT ALL ( - 91 ) * + 60
----
-5460

query I rowsort
SELECT ALL - 24 * - 74 AS col0
----
1776

query I rowsort
SELECT 30 * - 34 * - - 20 col0
----
-20400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2967
SELECT ( 15 ) * - - CASE - + CAST( + 13 AS SIGNED ) WHEN - 1 * 48 * 80 THEN - 16 ELSE NULL END / 89 + + 63 + 94 * 22 * 3 + + COALESCE ( + 46, - + 56 ) * + - 36 / - 48 + + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2967
SELECT ( 15 ) * - - CASE - + CAST ( + 13 AS INTEGER ) WHEN - 1 * 48 * 80 THEN - 16 ELSE NULL END / 89 + + 63 + 94 * 22 * 3 + + COALESCE ( + 46, - + 56 ) * + - 36 / - 48 + + 14 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2968
SELECT COUNT( * ) - - 79, + 49 AS col0
----
80
49

skipif mysql # not compatible
query II rowsort label-2968
SELECT COUNT ( * ) - - 79, + 49 AS col0
----
80
49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT DISTINCT CAST( NULL AS SIGNED ) + 72 + 47 / - 74 / + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 72 + 47 / - 74 / + 37
----
NULL

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

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

query I rowsort
SELECT DISTINCT 85 + - - 51
----
136

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

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL 20 + 17 / - 48 * - + COUNT ( * ) AS col2
----
20

query I rowsort
SELECT 55 - 10
----
45

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

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

query I rowsort
SELECT - CASE + 2 WHEN CASE 38 WHEN 49 THEN 55 ELSE NULL END THEN NULL WHEN - 97 * 63 THEN - 12 / 65 * - + 97 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 84 + + + 88
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2978
SELECT - - 69 - - 54 + + CAST( 8 AS SIGNED ) * + 70
----
683

skipif mysql # not compatible
query I rowsort label-2978
SELECT - - 69 - - 54 + + CAST ( 8 AS INTEGER ) * + 70
----
683

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL + CASE - ( - + 19 ) WHEN - + 3 THEN NULL ELSE - 34 - - MIN( + 44 ) END - - 57 * + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL + CASE - ( - + 19 ) WHEN - + 3 THEN NULL ELSE - 34 - - MIN ( + 44 ) END - - 57 * + COUNT ( * )
----
67

query I rowsort
SELECT DISTINCT 0 - - 3 * + 22 + + 75
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-2981
SELECT - 49 + - + 29 + - COUNT( DISTINCT - 6 ) + ( - ( + - 57 ) ) AS col0, + 25
----
-22
25

skipif mysql # not compatible
query II rowsort label-2981
SELECT - 49 + - + 29 + - COUNT ( DISTINCT - 6 ) + ( - ( + - 57 ) ) AS col0, + 25
----
-22
25

onlyif mysql # aggregate syntax: 
query II rowsort label-2982
SELECT DISTINCT + MAX( DISTINCT + 97 ) col0, - 97
----
97
-97

skipif mysql # not compatible
query II rowsort label-2982
SELECT DISTINCT + MAX ( DISTINCT + 97 ) col0, - 97
----
97
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2983
SELECT - CASE SUM( DISTINCT - 43 ) WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + + 98 / - 67 * - 44 THEN - 42 * - 26 END + + SUM( ALL + 24 ) * - 6 + 58 * 42 + - 22 + - 76 * + 85 AS col1, + COUNT( ALL + - 5 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2983
SELECT - CASE SUM ( DISTINCT - 43 ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + + 98 / - 67 * - 44 THEN - 42 * - 26 END + + SUM ( ALL + 24 ) * - 6 + 58 * 42 + - 22 + - 76 * + 85 AS col1, + COUNT ( ALL + - 5 )
----
NULL
1

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

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL - MIN ( + + 5 ) * + COUNT ( * ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT - - MAX( DISTINCT + - 87 ) * + COUNT( * ) col2
----
-87

skipif mysql # not compatible
query I rowsort label-2985
SELECT - - MAX ( DISTINCT + - 87 ) * + COUNT ( * ) col2
----
-87

query I rowsort
SELECT DISTINCT - 43 * + + 35
----
-1505

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2987
SELECT ALL - 27 * + + 28 - - 47 DIV 67 + MIN( + 6 ) AS col2
----
-750

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL - 27 * + + 28 - - 47 / 67 + MIN ( + 6 ) AS col2
----
-750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2988
SELECT DISTINCT - COUNT( * ) * - + 71 DIV - - 90 * 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT - COUNT ( * ) * - + 71 / - - 90 * 88 AS col2
----
0

query II rowsort
SELECT + 21, + 69 * + 62 AS col0
----
21
4278

onlyif mysql # DIV for integer division: 
query I rowsort label-2990
SELECT - 92 DIV - + 10
----
9

skipif mysql # not compatible
query I rowsort label-2990
SELECT - 92 / - + 10
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT ALL + 69 * - 0 + SUM( ALL + - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL + 69 * - 0 + SUM ( ALL + - 72 )
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2992
SELECT 83 DIV + - COALESCE ( COUNT( * ), 26 ) + - - 65 + 23 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2992
SELECT 83 / + - COALESCE ( COUNT ( * ), 26 ) + - - 65 + 23 AS col2
----
5

query I rowsort
SELECT 47 * + - 20 - 66 + 5 + - 0 - + + 70 AS col2
----
-1071

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT - 80 + SUM( - 88 ) AS col2
----
-168

skipif mysql # not compatible
query I rowsort label-2994
SELECT - 80 + SUM ( - 88 ) AS col2
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2995
SELECT + CAST( - 63 AS SIGNED ) * 64 - + 57 + + 52 * + CAST( 54 AS SIGNED ) * + 32 + + 55 - - 65 AS col2
----
85887

skipif mysql # not compatible
query I rowsort label-2995
SELECT + CAST ( - 63 AS INTEGER ) * 64 - + 57 + + 52 * + CAST ( 54 AS INTEGER ) * + 32 + + 55 - - 65 AS col2
----
85887

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL + CASE - 41 WHEN 43 THEN - NULLIF ( + + 9, - + 33 ) - - COUNT( 35 ) ELSE + NULLIF ( ( + + 22 ), 29 ) END * + - 39 + + + 99 * 63 * + + 18
----
111408

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL + CASE - 41 WHEN 43 THEN - NULLIF ( + + 9, - + 33 ) - - COUNT ( 35 ) ELSE + NULLIF ( ( + + 22 ), 29 ) END * + - 39 + + + 99 * 63 * + + 18
----
111408

onlyif mysql # aggregate syntax: 
query III rowsort label-2997
SELECT ALL + 92 * - ( 6 ) * - 63 + - 16, 71 AS col0, + 65 * + COUNT( * ) AS col1
----
34760
71
65

skipif mysql # not compatible
query III rowsort label-2997
SELECT ALL + 92 * - ( 6 ) * - 63 + - 16, 71 AS col0, + 65 * + COUNT ( * ) AS col1
----
34760
71
65

query I rowsort
SELECT ALL 11 * - 78 + - 81 AS col0
----
-939

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2999
SELECT ALL + CAST( - 19 AS SIGNED ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL + CAST ( - 19 AS INTEGER ) AS col1
----
-19

query I rowsort
SELECT ALL - 93 * + 41
----
-3813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3001
SELECT + 2 + + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3001
SELECT + 2 + + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3002
SELECT + CAST( NULL AS SIGNED ) * + SUM( - 90 ) + + 33 * 4 AS col2, - 31 * CASE 17 WHEN + 84 THEN 3 + + COALESCE ( + - 90, - 59, + 31 + 59 * - 27 ) END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3002
SELECT + CAST ( NULL AS INTEGER ) * + SUM ( - 90 ) + + 33 * 4 AS col2, - 31 * CASE 17 WHEN + 84 THEN 3 + + COALESCE ( + - 90, - 59, + 31 + 59 * - 27 ) END
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3003
SELECT ALL CASE - 89 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) + 90 THEN NULL WHEN - + 47 THEN + + 48 ELSE NULL END * - - COUNT( + 0 ) * - 2 + - COUNT( * ) + - ( 35 ) + + + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL CASE - 89 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) + 90 THEN NULL WHEN - + 47 THEN + + 48 ELSE NULL END * - - COUNT ( + 0 ) * - 2 + - COUNT ( * ) + - ( 35 ) + + + 95 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3004
SELECT DISTINCT 23 * 97 - + 6 * CAST( - 0 AS SIGNED ) AS col1, 38 * 90 * - 13 * 52 AS col0
----
2231
-2311920

skipif mysql # not compatible
query II rowsort label-3004
SELECT DISTINCT 23 * 97 - + 6 * CAST ( - 0 AS INTEGER ) AS col1, 38 * 90 * - 13 * 52 AS col0
----
2231
-2311920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3005
SELECT + COALESCE ( CASE - + AVG ( 32 ) WHEN 2 THEN NULL WHEN + CASE - 82 WHEN - 11 + - + COUNT( * ) + - - 13 + + - 94 - + 37 * - ( - CAST( NULL AS SIGNED ) ) * + 72 * + 75 DIV SUM( ( COALESCE ( 88, - 1 ) ) ) * - 45 THEN 79 ELSE - ( 10 ) DIV 95 + NULLIF ( 57, + COUNT( DISTINCT 15 ) ) END + + 24 THEN 90 DIV 56 ELSE NULL END, 28 * - COUNT( * ) ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-3005
SELECT + COALESCE ( CASE - + AVG ( 32 ) WHEN 2 THEN NULL WHEN + CASE - 82 WHEN - 11 + - + COUNT ( * ) + - - 13 + + - 94 - + 37 * - ( - CAST ( NULL AS INTEGER ) ) * + 72 * + 75 / SUM ( ( COALESCE ( 88, - 1 ) ) ) * - 45 THEN 79 ELSE - ( 10 ) / 95 + NULLIF ( 57, + COUNT ( DISTINCT 15 ) ) END + + 24 THEN 90 / 56 ELSE NULL END, 28 * - COUNT ( * ) ) AS col2
----
-28

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

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT - MIN ( 22 )
----
-22

query II rowsort
SELECT ALL 50, + 32 AS col2
----
50
32

query I rowsort
SELECT DISTINCT + NULLIF ( 25, + 74 + - + 6 + + 74 + 72 ) - + 50 col1
----
-25

query II rowsort
SELECT - - 2 AS col2, - 63 AS col2
----
2
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3010
SELECT + - COUNT( - 47 ) DIV 37 AS col2, 73 DIV - 50
----
0
-1

skipif mysql # not compatible
query II rowsort label-3010
SELECT + - COUNT ( - 47 ) / 37 AS col2, 73 / - 50
----
0
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT ALL + NULLIF ( + - NULLIF ( 36, + 98 - + + ( - 94 ) * + 14 ), CAST( NULL AS SIGNED ) * 70 ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL + NULLIF ( + - NULLIF ( 36, + 98 - + + ( - 94 ) * + 14 ), CAST ( NULL AS INTEGER ) * 70 ) col1
----
-36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT ALL 91 * + MAX( ALL + 49 ) + - 33 col2
----
4426

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL 91 * + MAX ( ALL + 49 ) + - 33 col2
----
4426

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT DISTINCT - 89 * + + 5 + + 15 - + COUNT( * )
----
-431

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT - 89 * + + 5 + + 15 - + COUNT ( * )
----
-431

query II rowsort
SELECT ALL 68, 93 AS col1
----
68
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT DISTINCT 23 + + COUNT( * ) * + 38 - ( COALESCE ( 73, - 2 + + + 68 ) ) * + COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT 23 + + COUNT ( * ) * + 38 - ( COALESCE ( 73, - 2 + + + 68 ) ) * + COUNT ( * ) AS col0
----
-12

query I rowsort
SELECT + 62 - - 23 AS col0
----
85

query I rowsort
SELECT + + 76 * - ( + 10 ) * + + 6 AS col0
----
-4560

query I rowsort
SELECT - + 70 * - 90 AS col2
----
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT ALL 22 + + 19 + + 93 + + 58 + + - COUNT( * ) * ( + - 44 )
----
236

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL 22 + + 19 + + 93 + + 58 + + - COUNT ( * ) * ( + - 44 )
----
236

query II rowsort
SELECT 82 AS col1, + 0
----
82
0

query I rowsort
SELECT + 63 + + 86 * - + 85 AS col0
----
-7247

query II rowsort
SELECT 20, 19 col0
----
20
19

query I rowsort
SELECT + 81 * - ( + 82 ) col2
----
-6642

query I rowsort
SELECT - 86 + - - ( - ( - 27 ) )
----
-59

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

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

query I rowsort
SELECT - 50 * + 64
----
-3200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3028
SELECT DISTINCT + 65 / ( + - CAST( NULL AS SIGNED ) ) * CAST( - 5 AS SIGNED ) + - 90 * + 18 + - COALESCE ( 44, + + 62 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT + 65 / ( + - CAST ( NULL AS INTEGER ) ) * CAST ( - 5 AS INTEGER ) + - 90 * + 18 + - COALESCE ( 44, + + 62 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + CASE + 54 WHEN 68 THEN - - 55 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3030
SELECT 45 - + 76 DIV - - 97
----
45

skipif mysql # not compatible
query I rowsort label-3030
SELECT 45 - + 76 / - - 97
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3031
SELECT 90 DIV + 10 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3031
SELECT 90 / + 10 AS col0
----
9

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3033
SELECT DISTINCT + 72 - CAST( NULL AS SIGNED ) + + 31 - CASE 78 WHEN 56 * + - ( - 58 ) * 84 THEN - - 7 WHEN + CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT + 72 - CAST ( NULL AS INTEGER ) + + 31 - CASE 78 WHEN 56 * + - ( - 58 ) * 84 THEN - - 7 WHEN + CAST ( NULL AS REAL ) THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 20 AS col0, 3 - + 30 AS col2
----
-20
-27

query II rowsort
SELECT + 4 - + 54 AS col1, 32
----
-50
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT + CASE - + COUNT( * ) WHEN + 50 THEN NULL ELSE 88 * - - 6 * - 50 END + 42 * + 56 * 43 * - 25 - + 89 + + - 70 + 30
----
-2554929

skipif mysql # not compatible
query I rowsort label-3037
SELECT + CASE - + COUNT ( * ) WHEN + 50 THEN NULL ELSE 88 * - - 6 * - 50 END + 42 * + 56 * 43 * - 25 - + 89 + + - 70 + 30
----
-2554929

onlyif mysql # aggregate syntax: 
query II rowsort label-3038
SELECT 68, 2 + - MAX( DISTINCT - 4 ) AS col0
----
68
6

skipif mysql # not compatible
query II rowsort label-3038
SELECT 68, 2 + - MAX ( DISTINCT - 4 ) AS col0
----
68
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3039
SELECT COALESCE ( + - 43, 65 ) + - + COUNT( * ) AS col1, SUM( - + 38 )
----
-44
-38

skipif mysql # not compatible
query II rowsort label-3039
SELECT COALESCE ( + - 43, 65 ) + - + COUNT ( * ) AS col1, SUM ( - + 38 )
----
-44
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3040
SELECT 79 * - + 69 AS col0, SUM( DISTINCT + ( + 65 ) ) * + 0 * 84 AS col1
----
-5451
0

skipif mysql # not compatible
query II rowsort label-3040
SELECT 79 * - + 69 AS col0, SUM ( DISTINCT + ( + 65 ) ) * + 0 * 84 AS col1
----
-5451
0

query I rowsort
SELECT + 97 + + + 76 * + 55 * + 23 AS col2
----
96237

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT 38 - - COUNT( ALL 56 ) * - NULLIF ( - 61, + 2 + + 96 )
----
99

skipif mysql # not compatible
query I rowsort label-3042
SELECT 38 - - COUNT ( ALL 56 ) * - NULLIF ( - 61, + 2 + + 96 )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3043
SELECT DISTINCT COUNT( * ) AS col0, + 57 * - NULLIF ( + 46, - ( CASE - 41 WHEN - + ( - - 38 ) + - COUNT( * ) + - 90 * 24 THEN NULL ELSE 25 END ) ) * + 13 * - - COUNT( * )
----
1
-34086

skipif mysql # not compatible
query II rowsort label-3043
SELECT DISTINCT COUNT ( * ) AS col0, + 57 * - NULLIF ( + 46, - ( CASE - 41 WHEN - + ( - - 38 ) + - COUNT ( * ) + - 90 * 24 THEN NULL ELSE 25 END ) ) * + 13 * - - COUNT ( * )
----
1
-34086

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT - 91 * 39 * - + 49 + - - CAST( NULL AS SIGNED ) + + - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3044
SELECT - 91 * 39 * - + 49 + - - CAST ( NULL AS INTEGER ) + + - 97 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3045
SELECT - SUM( 85 ), 0 * + - COUNT( * ) AS col0
----
-85
0

skipif mysql # not compatible
query II rowsort label-3045
SELECT - SUM ( 85 ), 0 * + - COUNT ( * ) AS col0
----
-85
0

query I rowsort
SELECT ALL + COALESCE ( + + 6, + 1 * + - 32 ) col2
----
6

query I rowsort
SELECT 17 + - 20 + + - 59 + - + ( - 6 ) * - 67 AS col1
----
-464

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3048
SELECT ALL COALESCE ( + CASE - + 42 WHEN - 74 * - 7 THEN NULL WHEN AVG ( - 25 ) THEN + 66 * - 21 ELSE + COALESCE ( NULLIF ( 14, 62 DIV + 4 ), ( - - 32 ), - 63 * - 37 DIV - 61 * + 76 + - 52 + 61 * CAST( NULL AS SIGNED ) ) END, + 27 * 19 )
----
14

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL COALESCE ( + CASE - + 42 WHEN - 74 * - 7 THEN NULL WHEN AVG ( - 25 ) THEN + 66 * - 21 ELSE + COALESCE ( NULLIF ( 14, 62 / + 4 ), ( - - 32 ), - 63 * - 37 / - 61 * + 76 + - 52 + 61 * CAST ( NULL AS INTEGER ) ) END, + 27 * 19 )
----
14

query I rowsort
SELECT DISTINCT + 69 + + - 5
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3050
SELECT ALL - 36 + 55 DIV + - 64 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL - 36 + 55 / + - 64 AS col2
----
-36

query I rowsort
SELECT DISTINCT COALESCE ( - 94, 49 ) * - 19 AS col0
----
1786

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

skipif mysql # not compatible
query I rowsort label-3052
SELECT COUNT ( * ) + - 63 * - 92 AS col2
----
5797

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ( - NULLIF ( + 48, - 54 ) ) * + + COUNT( * ) * + + 90
----
-4320

skipif mysql # not compatible
query I rowsort label-3053
SELECT ( - NULLIF ( + 48, - 54 ) ) * + + COUNT ( * ) * + + 90
----
-4320

query I rowsort
SELECT 58 + 1 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT ALL 69 + CASE + - 81 WHEN - + COUNT( ALL - ( - 41 ) ) * 25 THEN NULL ELSE - - 97 END AS col1
----
166

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL 69 + CASE + - 81 WHEN - + COUNT ( ALL - ( - 41 ) ) * 25 THEN NULL ELSE - - 97 END AS col1
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT ( + CAST( - 58 AS SIGNED ) ) + 6 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3056
SELECT ( + CAST ( - 58 AS INTEGER ) ) + 6 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT DISTINCT + 48 / CASE NULLIF ( + 87, + COUNT( * ) ) WHEN - 54 THEN NULL WHEN - ( 26 ) + + 54 THEN - 56 ELSE NULL END * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT + 48 / CASE NULLIF ( + 87, + COUNT ( * ) ) WHEN - 54 THEN NULL WHEN - ( 26 ) + + 54 THEN - 56 ELSE NULL END * 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3058
SELECT MAX( DISTINCT + 51 ) + + 8 + + 57 + 40 * - ( CAST( - + 54 AS SIGNED ) )
----
2276

skipif mysql # not compatible
query I rowsort label-3058
SELECT MAX ( DISTINCT + 51 ) + + 8 + + 57 + 40 * - ( CAST ( - + 54 AS INTEGER ) )
----
2276

onlyif mysql # DIV for integer division: 
query I rowsort label-3059
SELECT ALL 9 DIV - + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL 9 / - + 97 AS col1
----
0

query I rowsort
SELECT - 16 * + 91 + 75 * 37 col0
----
1319

onlyif mysql # DIV for integer division: 
query II rowsort label-3061
SELECT DISTINCT 26 DIV 87 * + 95, - 16 AS col1
----
0
-16

skipif mysql # not compatible
query II rowsort label-3061
SELECT DISTINCT 26 / 87 * + 95, - 16 AS col1
----
0
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3062
SELECT CAST( NULL AS SIGNED ) * - - 63 - + 69 + - MIN( ALL - 75 ) - + 13 + + - COUNT( * ) + + 11 + - + NULLIF ( 19, COUNT( * ) ) + CAST( NULL AS SIGNED ) + - 75 - + - COUNT( * ) * 89 * - 78 + 42 * + AVG ( ALL 62 ) * + 94 + - + 25 + - + COUNT( * ) * 36 * + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT CAST ( NULL AS INTEGER ) * - - 63 - + 69 + - MIN ( ALL - 75 ) - + 13 + + - COUNT ( * ) + + 11 + - + NULLIF ( 19, COUNT ( * ) ) + CAST ( NULL AS INTEGER ) + - 75 - + - COUNT ( * ) * 89 * - 78 + 42 * + AVG ( ALL 62 ) * + 94 + - + 25 + - + COUNT ( * ) * 36 * + 55 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3063
SELECT CAST( + + 41 AS SIGNED ) + + - 29 - + - 41 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-3063
SELECT CAST ( + + 41 AS INTEGER ) + + - 29 - + - 41 AS col1
----
53

query I rowsort
SELECT ALL + 58 * + - 49
----
-2842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3065
SELECT DISTINCT - - COALESCE ( - MIN( ALL - 1 ), - 44 + 84 - + 90 - + COUNT( * ) + 61 + + COUNT( * ) + + + 81 * 39 - ( 78 ) DIV AVG ( ALL + ( 64 ) ) * - - COUNT( * ) * - 97 * CAST( - 77 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT - - COALESCE ( - MIN ( ALL - 1 ), - 44 + 84 - + 90 - + COUNT ( * ) + 61 + + COUNT ( * ) + + + 81 * 39 - ( 78 ) / AVG ( ALL + ( 64 ) ) * - - COUNT ( * ) * - 97 * CAST ( - 77 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3066
SELECT + COUNT( * ) + 57 AS col1, 72
----
58
72

skipif mysql # not compatible
query II rowsort label-3066
SELECT + COUNT ( * ) + 57 AS col1, 72
----
58
72

query I rowsort
SELECT ALL + ( + + 3 ) * 29 AS col2
----
87

query I rowsort
SELECT 24 * 43
----
1032

query I rowsort
SELECT DISTINCT - COALESCE ( + - ( - - 38 ), - - ( 6 ) + + 75 ) AS col1
----
38

query I rowsort
SELECT - 37 + - 93
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT - COUNT( * ) * 86 + + 84
----
-2

skipif mysql # not compatible
query I rowsort label-3071
SELECT - COUNT ( * ) * 86 + + 84
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT - 95 * 37 + COUNT( * ) * - - 70 AS col1
----
-3445

skipif mysql # not compatible
query I rowsort label-3072
SELECT - 95 * 37 + COUNT ( * ) * - - 70 AS col1
----
-3445

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT ALL + COUNT( * ) * - 59 * + 88 + - 12 - + + 97 AS col1
----
-5301

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + COUNT ( * ) * - 59 * + 88 + - 12 - + + 97 AS col1
----
-5301

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT MIN( - 12 ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-3074
SELECT MIN ( - 12 ) col2
----
-12

query II rowsort
SELECT ALL - + 56 + 40 AS col2, NULLIF ( - - 56, + + 97 ) + - ( - 38 ) AS col1
----
-16
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT ALL - COUNT( * ) * CASE - 14 WHEN + + ( + - 49 ) + - 3 THEN + - 61 * + 65 + 57 + - 50 WHEN - 81 + + 23 + - ( + COUNT( * ) ) + - + 97 * + 70 + 90 THEN + 28 + + 86 - + - ( ( - 40 ) ) + MIN( 71 ) END + + 14 * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL - COUNT ( * ) * CASE - 14 WHEN + + ( + - 49 ) + - 3 THEN + - 61 * + 65 + 57 + - 50 WHEN - 81 + + 23 + - ( + COUNT ( * ) ) + - + 97 * + 70 + 90 THEN + 28 + + 86 - + - ( ( - 40 ) ) + MIN ( 71 ) END + + 14 * 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3077
SELECT DISTINCT - ( COUNT( * ) ) + + - 89 DIV + COUNT( * ) + - + SUM( ALL + 83 )
----
-173

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT - ( COUNT ( * ) ) + + - 89 / + COUNT ( * ) + - + SUM ( ALL + 83 )
----
-173

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

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL + 65 + - ( - COUNT ( * ) ) AS col0
----
66

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

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL + 48 * CAST ( - - ( + + 0 ) AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3080
SELECT 11 - 28 DIV + 15 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3080
SELECT 11 - 28 / + 15 AS col1
----
10

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

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

query I rowsort
SELECT - - NULLIF ( + 65, 87 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT MIN( + + 96 ) * + - 13 + COUNT( * )
----
-1247

skipif mysql # not compatible
query I rowsort label-3083
SELECT MIN ( + + 96 ) * + - 13 + COUNT ( * )
----
-1247

onlyif mysql # DIV for integer division: 
query I rowsort label-3084
SELECT DISTINCT 69 + + - 5 DIV 53 col0
----
69

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT 69 + + - 5 / 53 col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT DISTINCT SUM( ALL + 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT SUM ( ALL + 75 ) AS col2
----
75

query I rowsort
SELECT ALL 21 * - + NULLIF ( + 65, - 56 + + 48 * + - 29 * - - 80 ) AS col1
----
-1365

query I rowsort
SELECT CASE 88 WHEN + 60 * 16 * 46 THEN NULL WHEN - 71 * 55 / - - 53 THEN NULL ELSE + 42 * 71 * 48 END + 32
----
143168

onlyif mysql # aggregate syntax: 
query II rowsort label-3088
SELECT DISTINCT + MAX( DISTINCT - 95 ) - - - 3, 95 + - 70 AS col2
----
-98
25

skipif mysql # not compatible
query II rowsort label-3088
SELECT DISTINCT + MAX ( DISTINCT - 95 ) - - - 3, 95 + - 70 AS col2
----
-98
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3089
SELECT ALL 68 - ( + 5 ) - CAST( NULL AS SIGNED ) / + 55 + 72, + 85 * - ( - - 12 ) AS col1
----
NULL
-1020

skipif mysql # not compatible
query II rowsort label-3089
SELECT ALL 68 - ( + 5 ) - CAST ( NULL AS INTEGER ) / + 55 + 72, + 85 * - ( - - 12 ) AS col1
----
NULL
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT - MAX( 52 ) * - + COUNT( * ) + 43 col1
----
95

skipif mysql # not compatible
query I rowsort label-3090
SELECT - MAX ( 52 ) * - + COUNT ( * ) + 43 col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3091
SELECT + ( + COUNT( * ) ) * + 53 * + 25 * CASE - + 38 WHEN + CAST( NULL AS DECIMAL ) THEN + 1 + + 10 END * - 48 + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT + ( + COUNT ( * ) ) * + 53 * + 25 * CASE - + 38 WHEN + CAST ( NULL AS REAL ) THEN + 1 + + 10 END * - 48 + 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3092
SELECT ALL 85 * - + COUNT( * ) * + - 55 AS col1, - 7 AS col0
----
4675
-7

skipif mysql # not compatible
query II rowsort label-3092
SELECT ALL 85 * - + COUNT ( * ) * + - 55 AS col1, - 7 AS col0
----
4675
-7

query I rowsort
SELECT - 50 + ( 93 ) AS col0
----
43

query I rowsort
SELECT - COALESCE ( - NULLIF ( 53, + 19 ), + 84, - 66, 12 ) AS col0
----
53

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

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

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

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

query I rowsort
SELECT DISTINCT 67 * - 44 col0
----
-2948

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3099
SELECT ALL 8 DIV + - 4 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL 8 / + - 4 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT + 14 * - COUNT( + 80 ) * 20 + - + 12
----
-292

skipif mysql # not compatible
query I rowsort label-3100
SELECT + 14 * - COUNT ( + 80 ) * 20 + - + 12
----
-292

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3102
SELECT + + 52 col1, 15 DIV 13 * + 33 + - COUNT( * ) + - 24
----
52
8

skipif mysql # not compatible
query II rowsort label-3102
SELECT + + 52 col1, 15 / 13 * + 33 + - COUNT ( * ) + - 24
----
52
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT + 38 - + CASE NULLIF ( 25, - ( + - 50 ) ) WHEN 26 / + 75 * - ( - - 33 ) THEN + 69 * - 72 ELSE MAX( DISTINCT 18 ) * + 50 END * - 97
----
87338

skipif mysql # not compatible
query I rowsort label-3103
SELECT + 38 - + CASE NULLIF ( 25, - ( + - 50 ) ) WHEN 26 / + 75 * - ( - - 33 ) THEN + 69 * - 72 ELSE MAX ( DISTINCT 18 ) * + 50 END * - 97
----
87338

query I rowsort
SELECT + COALESCE ( - 61, 43 - + 82 )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3105
SELECT + COUNT( * ) DIV 9 * + 60 AS col2, + 63
----
0
63

skipif mysql # not compatible
query II rowsort label-3105
SELECT + COUNT ( * ) / 9 * + 60 AS col2, + 63
----
0
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3106
SELECT ALL CAST( + 88 AS SIGNED ) * 54 * 64 + + COUNT( * ) + - 15 AS col1
----
304114

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL CAST ( + 88 AS INTEGER ) * 54 * 64 + + COUNT ( * ) + - 15 AS col1
----
304114

onlyif mysql # DIV for integer division: 
query II rowsort label-3107
SELECT 60 AS col2, 55 DIV CASE + 39 WHEN + 39 THEN 4 END + - 53
----
60
-40

skipif mysql # not compatible
query II rowsort label-3107
SELECT 60 AS col2, 55 / CASE + 39 WHEN + 39 THEN 4 END + - 53
----
60
-40

query I rowsort
SELECT ALL - - 30 * - 18 + + 79 + 96
----
-365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3109
SELECT + 99 * 48 + CAST( ( - COALESCE ( - + COALESCE ( 39, + 13 ), 14 ) ) AS SIGNED ) + - COUNT( * ) - - + 67 * - 79 AS col2
----
-503

skipif mysql # not compatible
query I rowsort label-3109
SELECT + 99 * 48 + CAST ( ( - COALESCE ( - + COALESCE ( 39, + 13 ), 14 ) ) AS INTEGER ) + - COUNT ( * ) - - + 67 * - 79 AS col2
----
-503

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT MAX( ALL - 40 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-3110
SELECT MAX ( ALL - 40 ) AS col2
----
-40

query I rowsort
SELECT DISTINCT + 71 * 6 * + - 95 col0
----
-40470

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL + 90 * 4 + 48 + 48 + - MIN( + - 28 ) + - 9 - + SUM( + + 98 ) + NULLIF ( - - 57, 98 ) AS col2
----
434

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL + 90 * 4 + 48 + 48 + - MIN ( + - 28 ) + - 9 - + SUM ( + + 98 ) + NULLIF ( - - 57, 98 ) AS col2
----
434

query II rowsort
SELECT - 15 - + 12 + - 43, 73 - - 91 AS col0
----
-70
164

query I rowsort
SELECT ALL - + 79 * - 20 + 37 AS col0
----
1617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3115
SELECT DISTINCT - NULLIF ( - + 53, - CASE 38 WHEN - - 77 THEN NULL WHEN 29 THEN 5 * - COUNT( DISTINCT + - 81 ) ELSE - 10 + COUNT( * ) END * + - NULLIF ( COALESCE ( 33, + ( 89 ) + + + 0 + - 71 * - + 59 ), 89 * - 96 + + + COUNT( * ) + + NULLIF ( 42, CASE 94 WHEN - 16 THEN NULL WHEN CAST( COUNT( * ) AS SIGNED ) THEN 54 + + COALESCE ( + 50, - 36 + 9 * 52 ) ELSE CAST( NULL AS SIGNED ) * - 63 END - - 63 * 96 ) + COUNT( * ) ) - ( 97 ) ) * - CASE 89 WHEN + 44 THEN 24 * + 84 ELSE 76 + - 91 END AS col2
----
795

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - NULLIF ( - + 53, - CASE 38 WHEN - - 77 THEN NULL WHEN 29 THEN 5 * - COUNT ( DISTINCT + - 81 ) ELSE - 10 + COUNT ( * ) END * + - NULLIF ( COALESCE ( 33, + ( 89 ) + + + 0 + - 71 * - + 59 ), 89 * - 96 + + + COUNT ( * ) + + NULLIF ( 42, CASE 94 WHEN - 16 THEN NULL WHEN CAST ( COUNT ( * ) AS INTEGER ) THEN 54 + + COALESCE ( + 50, - 36 + 9 * 52 ) ELSE CAST ( NULL AS INTEGER ) * - 63 END - - 63 * 96 ) + COUNT ( * ) ) - ( 97 ) ) * - CASE 89 WHEN + 44 THEN 24 * + 84 ELSE 76 + - 91 END AS col2
----
795

onlyif mysql # aggregate syntax: 
query II rowsort label-3116
SELECT - - CASE + 72 WHEN COUNT( * ) THEN - - 19 ELSE NULL END AS col2, - 67 * + 21
----
NULL
-1407

skipif mysql # not compatible
query II rowsort label-3116
SELECT - - CASE + 72 WHEN COUNT ( * ) THEN - - 19 ELSE NULL END AS col2, - 67 * + 21
----
NULL
-1407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3117
SELECT ALL - 19 + - + COUNT( * ) - + - 47 * - CAST( 97 AS SIGNED )
----
-4579

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL - 19 + - + COUNT ( * ) - + - 47 * - CAST ( 97 AS INTEGER )
----
-4579

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3118
SELECT + 82 + + 3 + 34 + + + 55 DIV + - COUNT( * ) col1
----
64

skipif mysql # not compatible
query I rowsort label-3118
SELECT + 82 + + 3 + 34 + + + 55 / + - COUNT ( * ) col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT CASE + COUNT( * ) WHEN 84 * + + 83 THEN NULL ELSE + + 45 * + 98 + + - ( - - 74 ) * - - 14 * 21 + + COUNT( * ) END AS col1
----
-17345

skipif mysql # not compatible
query I rowsort label-3119
SELECT CASE + COUNT ( * ) WHEN 84 * + + 83 THEN NULL ELSE + + 45 * + 98 + + - ( - - 74 ) * - - 14 * 21 + + COUNT ( * ) END AS col1
----
-17345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3120
SELECT CAST( - 19 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-3120
SELECT CAST ( - 19 AS INTEGER )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT - + 39 + + COUNT( * ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-3121
SELECT - + 39 + + COUNT ( * ) col0
----
-38

query II rowsort
SELECT - - 64 + + + 42 + 40 + + 20 * + ( + + ( + ( 71 ) ) ) + + - 1 AS col2, - ( - 75 )
----
1565
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT ALL + 2 - - 99 + + - COUNT( * ) + ( CASE 92 WHEN - + 40 THEN + COUNT( * ) + - 98 + - + NULLIF ( 12, - 13 ) WHEN - 52 + + - 4 THEN 97 END ) + + 8 - + 62 + + 71 + ( + + 63 ) * + 36 * - 47 * 18 * - - 6 * 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL + 2 - - 99 + + - COUNT ( * ) + ( CASE 92 WHEN - + 40 THEN + COUNT ( * ) + - 98 + - + NULLIF ( 12, - 13 ) WHEN - 52 + + - 4 THEN 97 END ) + + 8 - + 62 + + 71 + ( + + 63 ) * + 36 * - 47 * 18 * - - 6 * 64 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 47 * + 70 * - ( - 15 )
----
-49350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT ALL - CAST( ( + ( - 22 ) ) AS SIGNED ) / 67 * - - CASE 94 WHEN - 36 THEN 58 ELSE NULL END * 22 * - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL - CAST ( ( + ( - 22 ) ) AS INTEGER ) / 67 * - - CASE 94 WHEN - 36 THEN 58 ELSE NULL END * 22 * - 53 AS col0
----
NULL

query I rowsort
SELECT ALL - 29 * 42 * 48 AS col1
----
-58464

query I rowsort
SELECT DISTINCT + 75 * - + 93
----
-6975

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT - MAX( + 49 ) + + - 35 - - 11 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-3128
SELECT - MAX ( + 49 ) + + - 35 - - 11 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-3129
SELECT DISTINCT + 84 * - + 43 * - + ( - COUNT( * ) ), ( - 89 ) AS col1
----
-3612
-89

skipif mysql # not compatible
query II rowsort label-3129
SELECT DISTINCT + 84 * - + 43 * - + ( - COUNT ( * ) ), ( - 89 ) AS col1
----
-3612
-89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3130
SELECT - 92 + CASE + + 85 WHEN + 0 * + + COUNT( * ) * 56 + - - 99 THEN - NULLIF ( + 44, + + 0 / + 61 + - 88 ) / - NULLIF ( - - 13, + MAX( + + 28 ) * + 80 ) - 21 + + ( + 78 ) ELSE NULL END / - AVG ( DISTINCT - - CAST( + + 6 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT - 92 + CASE + + 85 WHEN + 0 * + + COUNT ( * ) * 56 + - - 99 THEN - NULLIF ( + 44, + + 0 / + 61 + - 88 ) / - NULLIF ( - - 13, + MAX ( + + 28 ) * + 80 ) - 21 + + ( + 78 ) ELSE NULL END / - AVG ( DISTINCT - - CAST ( + + 6 AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3131
SELECT + ( - 65 ) * + CASE COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN + ( + - COUNT( DISTINCT + - COALESCE ( + + 5, - 10 * 77 / + 41, + 61 + + - 19 + CAST( NULL AS SIGNED ) ) ) ) + 65 + + 52 THEN + - 91 * + 2 END * + - 82 + - 46 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT + ( - 65 ) * + CASE COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN + ( + - COUNT ( DISTINCT + - COALESCE ( + + 5, - 10 * 77 / + 41, + 61 + + - 19 + CAST ( NULL AS INTEGER ) ) ) ) + 65 + + 52 THEN + - 91 * + 2 END * + - 82 + - 46 + - COUNT ( * )
----
NULL

query I rowsort
SELECT - ( - 34 ) * + 22 * - 64
----
-47872

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT + NULLIF ( - 40, + SUM( DISTINCT - 37 ) ) + + - 28 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3134
SELECT + NULLIF ( - 40, + SUM ( DISTINCT - 37 ) ) + + - 28 AS col1
----
-68

query I rowsort
SELECT ALL + NULLIF ( - - 69, + 0 + + + 16 + 13 + - 94 )
----
69

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

skipif mysql # not compatible
query I rowsort label-3136
SELECT - 84 * COUNT ( ALL + + 55 ) AS col2
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3137
SELECT 95 * + 45 * - - 32 + - + 1 + - 57 + - 97 - 39 + CAST( + 87 AS SIGNED ) * - - 47 * 11 * + COUNT( * ) * CASE + 19 WHEN + + CASE + 43 WHEN - ( + 22 ) THEN - SUM( ALL - 48 ) ELSE NULL END * - 54 THEN NULL WHEN 58 THEN + + 71 END - + - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3137
SELECT 95 * + 45 * - - 32 + - + 1 + - 57 + - 97 - 39 + CAST ( + 87 AS INTEGER ) * - - 47 * 11 * + COUNT ( * ) * CASE + 19 WHEN + + CASE + 43 WHEN - ( + 22 ) THEN - SUM ( ALL - 48 ) ELSE NULL END * - 54 THEN NULL WHEN 58 THEN + + 71 END - + - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3138
SELECT DISTINCT 13 * - 15 * - - MIN( - 81 ) AS col0, 9
----
15795
9

skipif mysql # not compatible
query II rowsort label-3138
SELECT DISTINCT 13 * - 15 * - - MIN ( - 81 ) AS col0, 9
----
15795
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3139
SELECT ALL 56 DIV - 93 + - 39 * - COALESCE ( - - 77, + 82 + + CAST( + 89 AS SIGNED ) * + 8 )
----
3003

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL 56 / - 93 + - 39 * - COALESCE ( - - 77, + 82 + + CAST ( + 89 AS INTEGER ) * + 8 )
----
3003

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3140
SELECT + - 80 DIV 78 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3140
SELECT + - 80 / 78 + COUNT ( * )
----
0

query I rowsort
SELECT - - 22 * + ( + ( - 66 ) ) + + 0 * 70 - + - 63
----
-1389

query I rowsort
SELECT - + 44 + 53 * + + 55
----
2871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3143
SELECT DISTINCT - 22 * + 67 + - + 35 * + 84 - + NULLIF ( + 10, CAST( 96 AS SIGNED ) + + COALESCE ( MIN( + 79 ), + NULLIF ( + + 25, + - 2 ) ) * 23 ) + - + 91 + ( - + 62 ) * - + 2 + - 59
----
-4450

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT - 22 * + 67 + - + 35 * + 84 - + NULLIF ( + 10, CAST ( 96 AS INTEGER ) + + COALESCE ( MIN ( + 79 ), + NULLIF ( + + 25, + - 2 ) ) * 23 ) + - + 91 + ( - + 62 ) * - + 2 + - 59
----
-4450

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3144
SELECT ALL - COUNT( * ) DIV 25 DIV - COUNT( * ) * + 94 * 17 * - + 6 + - COUNT( DISTINCT 72 ) + + - 11 AS col0, + SUM( - 45 ) * + 35 - 70 AS col0
----
-12
-1645

skipif mysql # not compatible
query II rowsort label-3144
SELECT ALL - COUNT ( * ) / 25 / - COUNT ( * ) * + 94 * 17 * - + 6 + - COUNT ( DISTINCT 72 ) + + - 11 AS col0, + SUM ( - 45 ) * + 35 - 70 AS col0
----
-12
-1645

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3145
SELECT - + 93 * 65 * + 95 + + - SUM( ALL - 51 ) + + - 64 * - + COUNT( * ) + 36 DIV 20 col2, - 21
----
-574159
-21

skipif mysql # not compatible
query II rowsort label-3145
SELECT - + 93 * 65 * + 95 + + - SUM ( ALL - 51 ) + + - 64 * - + COUNT ( * ) + 36 / 20 col2, - 21
----
-574159
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT + COUNT( DISTINCT 11 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3146
SELECT + COUNT ( DISTINCT 11 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3147
SELECT DISTINCT + 65 DIV + 44 + + 5 + 36 DIV - 27
----
5

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT + 65 / + 44 + + 5 + 36 / - 27
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3148
SELECT ALL + 36 * SUM( 86 ) + - + 51 - - - 87 + + 85 DIV + 53 col1
----
2959

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL + 36 * SUM ( 86 ) + - + 51 - - - 87 + + 85 / + 53 col1
----
2959

query I rowsort
SELECT ALL - + 1 * - 52 * - - 29 * - - 11 + - + ( 25 ) + 41 + + + 42
----
16646

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT + - MIN( + 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-3150
SELECT + - MIN ( + 7 )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3151
SELECT + - 12 * - + 1, - 58 / - 88 * - CAST( NULL AS SIGNED ) AS col2
----
12
NULL

skipif mysql # not compatible
query II rowsort label-3151
SELECT + - 12 * - + 1, - 58 / - 88 * - CAST ( NULL AS INTEGER ) AS col2
----
12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT + + COUNT( * ) * + + COALESCE ( 9, ( + - 53 ) + + 30 ) + - + COUNT( * ) * - - 30
----
-21

skipif mysql # not compatible
query I rowsort label-3152
SELECT + + COUNT ( * ) * + + COALESCE ( 9, ( + - 53 ) + + 30 ) + - + COUNT ( * ) * - - 30
----
-21

query I rowsort
SELECT - - 93 * - - 14 + + - 47 + 19 AS col0
----
1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3154
SELECT DISTINCT + 64 * 70 DIV COALESCE ( + ( - 64 ), CAST( + 89 AS SIGNED ) DIV 36 ) - + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT + 64 * 70 / COALESCE ( + ( - 64 ), CAST ( + 89 AS INTEGER ) / 36 ) - + COUNT ( * )
----
-71

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

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

query I rowsort
SELECT ALL + - CASE + 45 WHEN + ( + 90 ) THEN NULL WHEN + ( + 50 ) THEN 58 ELSE 64 * 86 * - 63 END
----
346752

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT + 2 * + 19 + + - NULLIF ( + COUNT( * ), - SUM( 33 ) + 72 * - + COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-3157
SELECT + 2 * + 19 + + - NULLIF ( + COUNT ( * ), - SUM ( 33 ) + 72 * - + COUNT ( * ) )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3158
SELECT ALL - 65 * - CAST( 38 AS SIGNED ) * + - COUNT( * ) AS col0, 7 + CASE - + 9 WHEN 87 THEN NULL WHEN + 32 / - 57 + - + ( + 40 ) THEN + CAST( NULL AS SIGNED ) - COUNT( * ) ELSE NULL END * 25
----
-2470
NULL

skipif mysql # not compatible
query II rowsort label-3158
SELECT ALL - 65 * - CAST ( 38 AS INTEGER ) * + - COUNT ( * ) AS col0, 7 + CASE - + 9 WHEN 87 THEN NULL WHEN + 32 / - 57 + - + ( + 40 ) THEN + CAST ( NULL AS INTEGER ) - COUNT ( * ) ELSE NULL END * 25
----
-2470
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3159
SELECT + COUNT( * ) + 50 + - MAX( - + 12 ) * 99 + - 83 DIV + 1 + - SUM( DISTINCT - 27 ) AS col1
----
1183

skipif mysql # not compatible
query I rowsort label-3159
SELECT + COUNT ( * ) + 50 + - MAX ( - + 12 ) * 99 + - 83 / + 1 + - SUM ( DISTINCT - 27 ) AS col1
----
1183

onlyif mysql # aggregate syntax: 
query II rowsort label-3160
SELECT COUNT( * ), MIN( DISTINCT 88 ) AS col0
----
1
88

skipif mysql # not compatible
query II rowsort label-3160
SELECT COUNT ( * ), MIN ( DISTINCT 88 ) AS col0
----
1
88

query II rowsort
SELECT + 98 * 8 * + - ( - ( + - 42 ) ), - 19 AS col1
----
-32928
-19

query I rowsort
SELECT 64 * + 38 * - - 65 * - - 84 AS col1
----
13278720

query I rowsort
SELECT ALL 10 * + - 68 AS col1
----
-680

query II rowsort
SELECT 13 col1, - 63
----
13
-63

query II rowsort
SELECT ALL 73, 54 col1
----
73
54

query I rowsort
SELECT 54 * + + 28 AS col2
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT 90 + - ( + + SUM( ALL - ( + 24 ) ) ) + - + 6 * - 5
----
144

skipif mysql # not compatible
query I rowsort label-3167
SELECT 90 + - ( + + SUM ( ALL - ( + 24 ) ) ) + - + 6 * - 5
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3168
SELECT DISTINCT - COUNT( * ) DIV - + 7
----
0

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT - COUNT ( * ) / - + 7
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT 73 DIV 35 * + 9 DIV + - 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3169
SELECT 73 / 35 * + 9 / + - 52 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3170
SELECT ALL - 99 * + 77 * CAST( + 39 AS SIGNED ) AS col0
----
-297297

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL - 99 * + 77 * CAST ( + 39 AS INTEGER ) AS col0
----
-297297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT 80 + - 38 + 98 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT 80 + - 38 + 98 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3172
SELECT DISTINCT 44 DIV + 5 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT 44 / + 5 AS col2
----
8

query II rowsort
SELECT 94, + 25 + + + 34 - 87 + - 12 * - + 41 * - - 66 AS col2
----
94
32444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3174
SELECT ALL + COUNT( - 4 ) + ( + - CAST( - ( - 85 ) AS SIGNED ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL + COUNT ( - 4 ) + ( + - CAST ( - ( - 85 ) AS INTEGER ) ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT ALL - COUNT( * ) + - - 10 + - COUNT( DISTINCT + 97 ) + 9 * - 85 * - + 58 AS col2
----
44378

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL - COUNT ( * ) + - - 10 + - COUNT ( DISTINCT + 97 ) + 9 * - 85 * - + 58 AS col2
----
44378

query II rowsort
SELECT DISTINCT + 81 + + 47 * + 52 AS col1, 15 + - 64
----
2525
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT 82 + + + COUNT( * ) col1
----
83

skipif mysql # not compatible
query I rowsort label-3177
SELECT 82 + + + COUNT ( * ) col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT 68 DIV - 53
----
-1

skipif mysql # not compatible
query I rowsort label-3178
SELECT 68 / - 53
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3179
SELECT DISTINCT + + MAX( - 10 ) + - COUNT( * ) - + + 97 + - - NULLIF ( - CASE + - 63 WHEN + ( - + ( - 21 ) ) THEN NULL ELSE - 39 DIV - 63 END, + 95 + + 55 DIV + CAST( NULL AS DECIMAL ) ) DIV - 28 * + 90 + 94 * + + 67
----
6190

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT + + MAX ( - 10 ) + - COUNT ( * ) - + + 97 + - - NULLIF ( - CASE + - 63 WHEN + ( - + ( - 21 ) ) THEN NULL ELSE - 39 / - 63 END, + 95 + + 55 / + CAST ( NULL AS REAL ) ) / - 28 * + 90 + 94 * + + 67
----
6190

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT DISTINCT + 35 + + MAX( ALL + 26 )
----
61

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT + 35 + + MAX ( ALL + 26 )
----
61

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

query I rowsort
SELECT ALL + - 11 + - 86
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT ALL - MIN( - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - MIN ( - 24 )
----
24

query I rowsort
SELECT 38 * - + 22 col1
----
-836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3185
SELECT + 23 * CAST( + - 75 AS SIGNED ) AS col0
----
-1725

skipif mysql # not compatible
query I rowsort label-3185
SELECT + 23 * CAST ( + - 75 AS INTEGER ) AS col0
----
-1725

onlyif mysql # aggregate syntax: 
query II rowsort label-3186
SELECT ALL + - COUNT( * ) + + 18 + 26, + NULLIF ( + 77, 90 ) * + 85 AS col0
----
43
6545

skipif mysql # not compatible
query II rowsort label-3186
SELECT ALL + - COUNT ( * ) + + 18 + 26, + NULLIF ( + 77, 90 ) * + 85 AS col0
----
43
6545

query I rowsort
SELECT 72 * - 78 + + - 64
----
-5680

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT ALL 89 * - 72 * - + 55 * - COUNT( * ) - + 97 AS col2
----
-352537

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL 89 * - 72 * - + 55 * - COUNT ( * ) - + 97 AS col2
----
-352537

query I rowsort
SELECT ALL 3 - + 59 + + 35
----
-21

query I rowsort
SELECT DISTINCT 8 * 70 AS col1
----
560

query I rowsort
SELECT ALL - 17 * - 68 AS col0
----
1156

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT DISTINCT + + COUNT( 94 ) - + + 83
----
-82

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT + + COUNT ( 94 ) - + + 83
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT DISTINCT + 84 * - COUNT( * ) + - 55 * - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-3193
SELECT DISTINCT + 84 * - COUNT ( * ) + - 55 * - COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT 89 + + + 20 - - + COUNT( DISTINCT 99 ) + + 69 + + + 51
----
230

skipif mysql # not compatible
query I rowsort label-3194
SELECT 89 + + + 20 - - + COUNT ( DISTINCT 99 ) + + 69 + + + 51
----
230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3195
SELECT 29 DIV - COUNT( ALL 84 )
----
-29

skipif mysql # not compatible
query I rowsort label-3195
SELECT 29 / - COUNT ( ALL 84 )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3196
SELECT COALESCE ( + ( + + 99 ), + ( + 69 ) DIV - + 42 * + 37 * + 67, + COUNT( * ), - 11 ) * + 16 + + 84
----
1668

skipif mysql # not compatible
query I rowsort label-3196
SELECT COALESCE ( + ( + + 99 ), + ( + 69 ) / - + 42 * + 37 * + 67, + COUNT ( * ), - 11 ) * + 16 + + 84
----
1668

query I rowsort
SELECT 74 * - + 67
----
-4958

onlyif mysql # DIV for integer division: 
query I rowsort label-3198
SELECT ALL 45 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL 45 / 78
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3199
SELECT ALL 63 DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL 63 / + 39
----
1

query II rowsort
SELECT DISTINCT 73 AS col1, - 83
----
73
-83

query II rowsort
SELECT ALL 28 AS col1, + 65
----
28
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT DISTINCT 56 + + COUNT( * ) + - SUM( ALL 42 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT 56 + + COUNT ( * ) + - SUM ( ALL 42 ) AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3203
SELECT DISTINCT 31, + 90 * + COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col0
----
31
NULL

skipif mysql # not compatible
query II rowsort label-3203
SELECT DISTINCT 31, + 90 * + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col0
----
31
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT ALL COUNT( * ) + - ( + 30 ) + - 94 * + 27 + - - 70 AS col1
----
-2497

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL COUNT ( * ) + - ( + 30 ) + - 94 * + 27 + - - 70 AS col1
----
-2497

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT ALL - NULLIF ( CAST( NULL AS SIGNED ), + + 71 ) + 14 + - 81 / + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL - NULLIF ( CAST ( NULL AS INTEGER ), + + 71 ) + 14 + - 81 / + 53
----
NULL

query I rowsort
SELECT ALL 3 * 27 AS col1
----
81

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

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

query I rowsort
SELECT DISTINCT 38 * 62 AS col0
----
2356

onlyif mysql # DIV for integer division: 
query II rowsort label-3209
SELECT - 47, NULLIF ( + 23, 8 * 39 ) DIV + + 56 * + ( + 58 ) AS col2
----
-47
0

skipif mysql # not compatible
query II rowsort label-3209
SELECT - 47, NULLIF ( + 23, 8 * 39 ) / + + 56 * + ( + 58 ) AS col2
----
-47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT SUM( ALL + + 1 ) + - + 36
----
-35

skipif mysql # not compatible
query I rowsort label-3210
SELECT SUM ( ALL + + 1 ) + - + 36
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3211
SELECT ALL 3 AS col0, + COUNT( * ) DIV + + 49 col0
----
3
0

skipif mysql # not compatible
query II rowsort label-3211
SELECT ALL 3 AS col0, + COUNT ( * ) / + + 49 col0
----
3
0

query I rowsort
SELECT 89 + + ( 41 ) AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ALL 61 + + - MIN( + + 5 ) * - 60 * 42 AS col2
----
12661

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL 61 + + - MIN ( + + 5 ) * - 60 * 42 AS col2
----
12661

query I rowsort
SELECT ALL + + 76 + - 9 + - - CASE + 4 WHEN - 93 THEN NULL WHEN + 89 + - 82 THEN - 50 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT NULLIF ( + + 22, + COUNT( * ) ) + + + 93 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-3215
SELECT NULLIF ( + + 22, + COUNT ( * ) ) + + + 93 AS col2
----
115

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT + 54 + + + 59 + - NULLIF ( - 59, 63 + 79 + 70 + + + ( - COUNT( * ) ) ) - 76 - - NULLIF ( - COUNT( * ), + - 34 * - 12 ) + + 75 AS col1
----
170

skipif mysql # not compatible
query I rowsort label-3217
SELECT + 54 + + + 59 + - NULLIF ( - 59, 63 + 79 + 70 + + + ( - COUNT ( * ) ) ) - 76 - - NULLIF ( - COUNT ( * ), + - 34 * - 12 ) + + 75 AS col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT ( + + MAX( + - 61 ) ) + - 71 * 9 AS col0
----
-700

skipif mysql # not compatible
query I rowsort label-3218
SELECT ( + + MAX ( + - 61 ) ) + - 71 * 9 AS col0
----
-700

query I rowsort
SELECT - ( - 65 ) * - - 12 AS col2
----
780

query I rowsort
SELECT 86 + + 70 AS col1
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3221
SELECT - 92 * - + CAST( NULL AS SIGNED ) * 75 / - 47 + - - 1 + - COUNT( * ) + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT - 92 * - + CAST ( NULL AS INTEGER ) * 75 / - 47 + - - 1 + - COUNT ( * ) + - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT ALL - ( - + 17 ) * COALESCE ( + + COUNT( * ), - SUM( DISTINCT + - 37 ), 64 ) * + 37
----
629

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL - ( - + 17 ) * COALESCE ( + + COUNT ( * ), - SUM ( DISTINCT + - 37 ), 64 ) * + 37
----
629

onlyif mysql # aggregate syntax: 
query II rowsort label-3223
SELECT ALL COUNT( * ) * 17 AS col2, + 43 + 72
----
17
115

skipif mysql # not compatible
query II rowsort label-3223
SELECT ALL COUNT ( * ) * 17 AS col2, + 43 + 72
----
17
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT - 88 * - + 26 + - 0 + + ( - CASE + 39 WHEN - MAX( ALL NULLIF ( + + 66, - 19 ) ) / 92 THEN - - 75 WHEN + 66 * 50 + - 80 + - 37 * - - 48 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT - 88 * - + 26 + - 0 + + ( - CASE + 39 WHEN - MAX ( ALL NULLIF ( + + 66, - 19 ) ) / 92 THEN - - 75 WHEN + 66 * 50 + - 80 + - 37 * - - 48 THEN NULL ELSE NULL END )
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT + NULLIF ( + CAST( 83 AS SIGNED ), - 84 ) * - ( + + 85 ) + 93 AS col1
----
-6962

skipif mysql # not compatible
query I rowsort label-3227
SELECT + NULLIF ( + CAST ( 83 AS INTEGER ), - 84 ) * - ( + + 85 ) + 93 AS col1
----
-6962

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

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

query I rowsort
SELECT - + 16 * - 70 * 51 * 70
----
3998400

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3231
SELECT + - 34 AS col0, - 82 + NULLIF ( + 42, - 37 / + 27 ) + - MAX( - + 92 ) * - 85 AS col0
----
-34
-7860

skipif mysql # not compatible
query II rowsort label-3231
SELECT + - 34 AS col0, - 82 + NULLIF ( + 42, - 37 / + 27 ) + - MAX ( - + 92 ) * - 85 AS col0
----
-34
-7860

query I rowsort
SELECT DISTINCT + 25 * + 81 * + + 47 AS col2
----
95175

query II rowsort
SELECT ALL + 16 * + 15 AS col0, 38
----
240
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT - COUNT( * ) * - + 25 * - 34 AS col1
----
-850

skipif mysql # not compatible
query I rowsort label-3234
SELECT - COUNT ( * ) * - + 25 * - 34 AS col1
----
-850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3235
SELECT DISTINCT 57 + ( - 52 ) DIV - + 3 * - - ( + COUNT( * ) ) + 73 AS col2
----
147

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT 57 + ( - 52 ) / - + 3 * - - ( + COUNT ( * ) ) + 73 AS col2
----
147

query II rowsort
SELECT ALL 15 + + - 21 AS col0, ( - 6 )
----
-6
-6

query I rowsort
SELECT ALL NULLIF ( + - 79, - 17 - - 15 ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL COUNT( ALL - 81 ) + + - 58 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL COUNT ( ALL - 81 ) + + - 58 AS col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3239
SELECT + ( - MIN( + - 17 ) ) * - - 74 * CAST( - - ( - 45 ) AS SIGNED ), - 94 DIV - 94 AS col2
----
-56610
1

skipif mysql # not compatible
query II rowsort label-3239
SELECT + ( - MIN ( + - 17 ) ) * - - 74 * CAST ( - - ( - 45 ) AS INTEGER ), - 94 / - 94 AS col2
----
-56610
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3240
SELECT ALL + 8 * - + 68, - 8 * + - COUNT( * ) + 64 AS col1
----
-544
72

skipif mysql # not compatible
query II rowsort label-3240
SELECT ALL + 8 * - + 68, - 8 * + - COUNT ( * ) + 64 AS col1
----
-544
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT DISTINCT - 54 + 78 * - MIN( + - 52 )
----
4002

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT - 54 + 78 * - MIN ( + - 52 )
----
4002

query I rowsort
SELECT - 68 + + - 70
----
-138

query I rowsort
SELECT ALL 97 + - 22 AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3244
SELECT ALL COUNT( - 43 ) + - CASE + ( - - 75 ) WHEN 44 * + 79 * + 8 THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN NULL ELSE 37 END
----
-36

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL COUNT ( - 43 ) + - CASE + ( - - 75 ) WHEN 44 * + 79 * + 8 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN NULL ELSE 37 END
----
-36

query I rowsort
SELECT - ( - 36 ) - + 23 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3246
SELECT - CAST( 9 AS SIGNED ) DIV - - COUNT( * ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3246
SELECT - CAST ( 9 AS INTEGER ) / - - COUNT ( * ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3247
SELECT - COUNT( * ) - 2 - + 91 col2, 30 AS col1
----
-94
30

skipif mysql # not compatible
query II rowsort label-3247
SELECT - COUNT ( * ) - 2 - + 91 col2, 30 AS col1
----
-94
30

query I rowsort
SELECT - NULLIF ( - - 45, - + 71 ) col1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3249
SELECT - CASE + COUNT( * ) WHEN + 89 THEN NULL ELSE - 13 + - + CAST( + 68 AS SIGNED ) - 85 + + - 81 * + 31 * 80 + - 38 - COALESCE ( - ( + ( + COUNT( * ) ) ), - 99 + - 54 * CASE + COUNT( * ) WHEN 75 THEN ( + 58 ) + + 96 * + COUNT( * ) END ) END AS col1
----
201083

skipif mysql # not compatible
query I rowsort label-3249
SELECT - CASE + COUNT ( * ) WHEN + 89 THEN NULL ELSE - 13 + - + CAST ( + 68 AS INTEGER ) - 85 + + - 81 * + 31 * 80 + - 38 - COALESCE ( - ( + ( + COUNT ( * ) ) ), - 99 + - 54 * CASE + COUNT ( * ) WHEN 75 THEN ( + 58 ) + + 96 * + COUNT ( * ) END ) END AS col1
----
201083

onlyif mysql # DIV for integer division: 
query I rowsort label-3250
SELECT + + 7 - + ( - 35 ) DIV 73
----
7

skipif mysql # not compatible
query I rowsort label-3250
SELECT + + 7 - + ( - 35 ) / 73
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3251
SELECT DISTINCT - CASE - - CAST( NULL AS SIGNED ) WHEN COUNT( * ) + + 61 * - - COUNT( + 14 ) * 67 - 97 * - 78 THEN NULL WHEN 69 THEN - 23 WHEN - + 82 THEN NULL END * - - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT - CASE - - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) + + 61 * - - COUNT ( + 14 ) * 67 - 97 * - 78 THEN NULL WHEN 69 THEN - 23 WHEN - + 82 THEN NULL END * - - 80
----
NULL

query I rowsort
SELECT + 12 + + 5 AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-3253
SELECT + 26 DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-3253
SELECT + 26 / + 34
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3254
SELECT - 95 * SUM( DISTINCT + 76 ) - + CASE 32 WHEN + + CAST( + 47 AS SIGNED ) - + NULLIF ( + 64, - 22 ) * 12 * - 83 THEN + 51 * - MIN( - 81 ) / + 86 WHEN + 47 / + - 76 + + ( + 91 ) * - 72 + COUNT( - 83 ) THEN - 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT - 95 * SUM ( DISTINCT + 76 ) - + CASE 32 WHEN + + CAST ( + 47 AS INTEGER ) - + NULLIF ( + 64, - 22 ) * 12 * - 83 THEN + 51 * - MIN ( - 81 ) / + 86 WHEN + 47 / + - 76 + + ( + 91 ) * - 72 + COUNT ( - 83 ) THEN - 4 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT ALL - COUNT( * ) * - + CASE + 14 WHEN - 47 THEN NULL ELSE + + 17 - + + 55 END
----
-38

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL - COUNT ( * ) * - + CASE + 14 WHEN - 47 THEN NULL ELSE + + 17 - + + 55 END
----
-38

query I rowsort
SELECT - 93 * - + 82 + + - 70 AS col1
----
7556

query II rowsort
SELECT + COALESCE ( - 79, - - ( - 80 ) + - 14 ) AS col1, ( 38 )
----
-79
38

query I rowsort
SELECT DISTINCT ( 41 ) * 65
----
2665

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3259
SELECT COALESCE ( + - 65, + - 3 DIV + + 13 * + MIN( 18 ) + - 75 + - 63 )
----
-65

skipif mysql # not compatible
query I rowsort label-3259
SELECT COALESCE ( + - 65, + - 3 / + + 13 * + MIN ( 18 ) + - 75 + - 63 )
----
-65

query I rowsort
SELECT ALL + 40 * - 7 * - 12
----
3360

query II rowsort
SELECT ALL 29 * + 24 + - - 76 + + - 28 AS col1, 57
----
744
57

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3263
SELECT - 50 + - + CASE - 48 WHEN + 65 + - 71 THEN 3 * + COUNT( * ) / 20 END col1, + 17 * COUNT( * ) AS col1
----
NULL
17

skipif mysql # not compatible
query II rowsort label-3263
SELECT - 50 + - + CASE - 48 WHEN + 65 + - 71 THEN 3 * + COUNT ( * ) / 20 END col1, + 17 * COUNT ( * ) AS col1
----
NULL
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3264
SELECT ALL 35 * + - CAST( NULL AS SIGNED ) + NULLIF ( - - 24, - - 46 ) + - 2 * + + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL 35 * + - CAST ( NULL AS INTEGER ) + NULLIF ( - - 24, - - 46 ) + - 2 * + + 1 AS col0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-3265
SELECT COUNT ( * ), + 17 col0
----
1
17

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

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

query I rowsort
SELECT ALL + 77 * + 72
----
5544

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

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

query I rowsort
SELECT DISTINCT + 15 * - + 75 + + + ( + 41 )
----
-1084

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

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT + 95 / - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 51 col1, 30 + + 5
----
51
35

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

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

query I rowsort
SELECT - 84 + 58 AS col1
----
-26

query I rowsort
SELECT ALL - 56 - + 59
----
-115

query I rowsort
SELECT - 80 * - 79 AS col0
----
6320

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3277
SELECT - - 59 + + COUNT( * ) - - + CAST( - - 98 AS SIGNED ) * + 59 AS col1
----
5842

skipif mysql # not compatible
query I rowsort label-3277
SELECT - - 59 + + COUNT ( * ) - - + CAST ( - - 98 AS INTEGER ) * + 59 AS col1
----
5842

onlyif mysql # DIV for integer division: 
query I rowsort label-3278
SELECT + - ( + 86 ) DIV - + 32 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3278
SELECT + - ( + 86 ) / - + 32 AS col2
----
2

query I rowsort
SELECT - + 84 + + - 22 AS col0
----
-106

query II rowsort
SELECT ALL 61, 57 + - 18 col1
----
61
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL SUM( 26 ) * + 4
----
104

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL SUM ( 26 ) * + 4
----
104

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

skipif mysql # not compatible
query II rowsort label-3282
SELECT DISTINCT - - ( - 51 ) / 27, + COUNT ( * ) AS col1
----
-1
1

query I rowsort
SELECT + 39 + 77 + - + NULLIF ( 0, - 31 + - + 14 )
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3284
SELECT + CAST( - 73 AS SIGNED ) + - CAST( NULL AS SIGNED ) + - + MIN( - 7 ) - - + 0 * - + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT + CAST ( - 73 AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - + MIN ( - 7 ) - - + 0 * - + 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3285
SELECT 94 * - COUNT( * ) + - ( - 11 ) + + ( 32 ) * - CAST( - 68 AS SIGNED ) - - - 27
----
2066

skipif mysql # not compatible
query I rowsort label-3285
SELECT 94 * - COUNT ( * ) + - ( - 11 ) + + ( 32 ) * - CAST ( - 68 AS INTEGER ) - - - 27
----
2066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3286
SELECT - 66 + 90 + + 51 + + CAST( NULL AS SIGNED ) + + 78 * - 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3286
SELECT - 66 + 90 + + 51 + + CAST ( NULL AS INTEGER ) + + 78 * - 15 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT ALL - COUNT( * ) * - 47 + + 15 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - COUNT ( * ) * - 47 + + 15 AS col0
----
62

query I rowsort
SELECT ALL - - ( - - ( - ( 11 ) ) )
----
-11

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3290
SELECT DISTINCT 54 * 64 * 72 DIV + COUNT( * ) AS col1
----
248832

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT 54 * 64 * 72 / + COUNT ( * ) AS col1
----
248832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3291
SELECT ALL - CASE + SUM( 12 ) WHEN + - COALESCE ( + CAST( NULL AS SIGNED ), - 23, - + 60 * COUNT( * ) * - 68 ) THEN + 44 - - COUNT( * ) + - 22 * - CASE 32 WHEN + 62 THEN - 41 * + + 4 - - CAST( + 47 AS SIGNED ) + - 7 * 18 * + - 51 / - CASE COUNT( * ) WHEN - - 47 THEN - - COALESCE ( - 33, - 40, 77 - 83 ) * 18 WHEN + AVG ( ALL + 39 ) * 73 THEN NULL ELSE NULL END / - 27 + 83 END WHEN 43 + - COUNT( * ) / 27 THEN NULL ELSE NULL END + 51 * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL - CASE + SUM ( 12 ) WHEN + - COALESCE ( + CAST ( NULL AS INTEGER ), - 23, - + 60 * COUNT ( * ) * - 68 ) THEN + 44 - - COUNT ( * ) + - 22 * - CASE 32 WHEN + 62 THEN - 41 * + + 4 - - CAST ( + 47 AS INTEGER ) + - 7 * 18 * + - 51 / - CASE COUNT ( * ) WHEN - - 47 THEN - - COALESCE ( - 33, - 40, 77 - 83 ) * 18 WHEN + AVG ( ALL + 39 ) * 73 THEN NULL ELSE NULL END / - 27 + 83 END WHEN 43 + - COUNT ( * ) / 27 THEN NULL ELSE NULL END + 51 * 39
----
NULL

query I rowsort
SELECT + 32 * + 2 AS col2
----
64

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3294
SELECT 67 DIV - ( + 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-3294
SELECT 67 / - ( + 42 )
----
-1

query I rowsort
SELECT ALL - 80 + + + 98
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3296
SELECT DISTINCT - 71 DIV - ( + 25 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT - 71 / - ( + 25 ) AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3297
SELECT DISTINCT 45 + 54 DIV 14 + - 40 - 17 * 12
----
-196

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT 45 + 54 / 14 + - 40 - 17 * 12
----
-196

query I rowsort
SELECT DISTINCT 21 + + - 28 AS col0
----
-7

query I rowsort
SELECT ALL 80 + + 67 * 85 * + 4 AS col0
----
22860

query I rowsort
SELECT DISTINCT 15 + - 30 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL - 54 * - MAX( DISTINCT - 18 )
----
-972

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL - 54 * - MAX ( DISTINCT - 18 )
----
-972

onlyif mysql # DIV for integer division: 
query I rowsort label-3302
SELECT 83 DIV - ( + 85 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3302
SELECT 83 / - ( + 85 ) AS col1
----
0

query I rowsort
SELECT 81 * - NULLIF ( + - 10, 31 ) + - 5
----
805

onlyif mysql # aggregate syntax: 
query II rowsort label-3304
SELECT DISTINCT + 91 * + 57 AS col1, - 94 + ( 39 ) + - ( COUNT( * ) ) + + - 94 * + 56
----
5187
-5320

skipif mysql # not compatible
query II rowsort label-3304
SELECT DISTINCT + 91 * + 57 AS col1, - 94 + ( 39 ) + - ( COUNT ( * ) ) + + - 94 * + 56
----
5187
-5320

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT DISTINCT - COUNT( * ) - 35
----
-36

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT - COUNT ( * ) - 35
----
-36

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT 10 * - COUNT( * ) * - ( 64 ) + CASE + 11 WHEN - 97 THEN 96 * 51 ELSE + 47 * - + MIN( - 95 ) * 25 + - SUM( DISTINCT + 74 ) + + 44 * 59 * - + MAX( DISTINCT + 89 ) * - 44 * + + 26 - - - 64 END AS col2
----
264426463

skipif mysql # not compatible
query I rowsort label-3309
SELECT 10 * - COUNT ( * ) * - ( 64 ) + CASE + 11 WHEN - 97 THEN 96 * 51 ELSE + 47 * - + MIN ( - 95 ) * 25 + - SUM ( DISTINCT + 74 ) + + 44 * 59 * - + MAX ( DISTINCT + 89 ) * - 44 * + + 26 - - - 64 END AS col2
----
264426463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3310
SELECT ALL + COUNT( * ) - - MIN( DISTINCT + 50 ) * + CASE - 75 WHEN + 33 * - COALESCE ( + 50, 19 * NULLIF ( - 15, + - 65 ) * - 89 ) * + 87 - - + 10 + - 74 * + + 51 - + 80 - 50 THEN + 5 ELSE - 24 * + 47 * - - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL + COUNT ( * ) - - MIN ( DISTINCT + 50 ) * + CASE - 75 WHEN + 33 * - COALESCE ( + 50, 19 * NULLIF ( - 15, + - 65 ) * - 89 ) * + 87 - - + 10 + - 74 * + + 51 - + 80 - 50 THEN + 5 ELSE - 24 * + 47 * - - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 48 * + + 85
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT ALL - NULLIF ( ( COUNT( ALL + 31 ) ), 28 )
----
-1

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL - NULLIF ( ( COUNT ( ALL + 31 ) ), 28 )
----
-1

query I rowsort
SELECT - - 91 col2
----
91

query I rowsort
SELECT + 92 - + 2 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT DISTINCT - 61 * COUNT( * ) + + 16 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT - 61 * COUNT ( * ) + + 16 AS col1
----
-45

query I rowsort
SELECT ALL - 44 * 94 AS col0
----
-4136

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT - NULLIF ( 70, - 20 + 12 - + COUNT( DISTINCT + 71 ) + + 39 * 33 + 64 * MIN( - + 46 ) ) * SUM( - 15 ) * - 54 * 25 * 5
----
-7087500

skipif mysql # not compatible
query I rowsort label-3317
SELECT - NULLIF ( 70, - 20 + 12 - + COUNT ( DISTINCT + 71 ) + + 39 * 33 + 64 * MIN ( - + 46 ) ) * SUM ( - 15 ) * - 54 * 25 * 5
----
-7087500

query II rowsort
SELECT ALL - - 98 * 34, 91 AS col2
----
3332
91

query II rowsort
SELECT DISTINCT - 0 + - 39 AS col0, + 83 col0
----
-39
83

query I rowsort
SELECT ALL ( + 63 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT + CASE - ( - 31 ) WHEN + SUM( + ( + 43 ) ) + - 38 THEN NULL WHEN 29 THEN + ( - - 34 ) ELSE NULL END / 99 * AVG ( 12 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3321
SELECT + CASE - ( - 31 ) WHEN + SUM ( + ( + 43 ) ) + - 38 THEN NULL WHEN 29 THEN + ( - - 34 ) ELSE NULL END / 99 * AVG ( 12 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ( + COUNT( * ) ) * 56 - + + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-3322
SELECT ( + COUNT ( * ) ) * 56 - + + COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-3323
SELECT ALL - 67 + - + COUNT( * ) AS col1, COUNT( * )
----
-68
1

skipif mysql # not compatible
query II rowsort label-3323
SELECT ALL - 67 + - + COUNT ( * ) AS col1, COUNT ( * )
----
-68
1

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

query I rowsort
SELECT ALL - 17 + + 94
----
77

query I rowsort
SELECT 86 * 41 AS col2
----
3526

query I rowsort
SELECT 30 * - 1 * - + 55 AS col2
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL NULLIF ( + - SUM( ALL - ( - 68 ) ), NULLIF ( COUNT( * ), 77 + MAX( 95 ) + + - 32 + - + 84 + 44 - + + COUNT( * ) * 30 * + + 57 * 4 * - 19 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL NULLIF ( + - SUM ( ALL - ( - 68 ) ), NULLIF ( COUNT ( * ), 77 + MAX ( 95 ) + + - 32 + - + 84 + 44 - + + COUNT ( * ) * 30 * + + 57 * 4 * - 19 ) )
----
-68

query I rowsort
SELECT ALL 70 + NULLIF ( + 55, 1 )
----
125

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

skipif mysql # not compatible
query I rowsort label-3330
SELECT + SUM ( 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL + 57 + + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL + 57 + + COUNT ( * )
----
58

query I rowsort
SELECT ALL 92 + + ( - 60 ) * 10 AS col1
----
-508

query I rowsort
SELECT ALL - 12 + - - 65 AS col2
----
53

query I rowsort
SELECT 57 + - 32
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT ALL 80 + + - 36 * CASE NULLIF ( + - 75, - 24 * - MAX( DISTINCT + - 55 ) ) WHEN - 8 * + ( + 8 ) THEN - - 68 ELSE 38 * - 24 - 32 + 67 * - - 79 * + NULLIF ( - 47, 59 ) END AS col2
----
8989820

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL 80 + + - 36 * CASE NULLIF ( + - 75, - 24 * - MAX ( DISTINCT + - 55 ) ) WHEN - 8 * + ( + 8 ) THEN - - 68 ELSE 38 * - 24 - 32 + 67 * - - 79 * + NULLIF ( - 47, 59 ) END AS col2
----
8989820

query I rowsort
SELECT 64 + + 22
----
86

query I rowsort
SELECT 73 + 74
----
147

query I rowsort
SELECT ALL + 50 - 35 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT DISTINCT - 95 * + 46 * + COUNT( * ) * + 6
----
-26220

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT - 95 * + 46 * + COUNT ( * ) * + 6
----
-26220

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT 22 DIV ( + + 26 ) * - 6 * COALESCE ( - 96, 27 ) + ( - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-3340
SELECT 22 / ( + + 26 ) * - 6 * COALESCE ( - 96, 27 ) + ( - 95 )
----
-95

query I rowsort
SELECT ALL 26 - + 89 AS col1
----
-63

query I rowsort
SELECT 98 * - 79 col1
----
-7742

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT ( + 25 ) + - MAX( ALL - - ( 80 ) ) AS col2, - 69 AS col2
----
-55
-69

skipif mysql # not compatible
query II rowsort label-3343
SELECT ( + 25 ) + - MAX ( ALL - - ( 80 ) ) AS col2, - 69 AS col2
----
-55
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3344
SELECT ALL - ( AVG ( CAST( NULL AS DECIMAL ) ) ) * + - 65 * 23 * 75 * - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL - ( AVG ( CAST ( NULL AS REAL ) ) ) * + - 65 * 23 * 75 * - 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3345
SELECT COUNT( * ) + + - 29 + + + MIN( + 55 ) DIV - ( 32 )
----
-29

skipif mysql # not compatible
query I rowsort label-3345
SELECT COUNT ( * ) + + - 29 + + + MIN ( + 55 ) / - ( 32 )
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-3346
SELECT ALL - 53 AS col2, - 84 * + 14 * + 69 + + SUM( DISTINCT 91 )
----
-53
-81053

skipif mysql # not compatible
query II rowsort label-3346
SELECT ALL - 53 AS col2, - 84 * + 14 * + 69 + + SUM ( DISTINCT 91 )
----
-53
-81053

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3347
SELECT COUNT( * ) * 94 DIV ( - 65 ) DIV - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3347
SELECT COUNT ( * ) * 94 / ( - 65 ) / - COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3348
SELECT - 69 * CAST( NULL AS SIGNED ) + + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT - 69 * CAST ( NULL AS INTEGER ) + + 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3349
SELECT DISTINCT COUNT( * ) DIV 49 * - - 97 AS col0, + 74 * + 6
----
0
444

skipif mysql # not compatible
query II rowsort label-3349
SELECT DISTINCT COUNT ( * ) / 49 * - - 97 AS col0, + 74 * + 6
----
0
444

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT COUNT( * ) + - 70 * - 16 * - 84 * + - 52 AS col2
----
4892161

skipif mysql # not compatible
query I rowsort label-3350
SELECT COUNT ( * ) + - 70 * - 16 * - 84 * + - 52 AS col2
----
4892161

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT 43 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-3351
SELECT 43 / + 51
----
0

query I rowsort
SELECT ALL CASE - 25 WHEN - 79 THEN + 49 WHEN 52 THEN NULL END * - + ( 43 ) + + 92 + - - 13 / 79 / 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT DISTINCT + 95 * + 90 - - - ( + COUNT( * ) )
----
8549

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT + 95 * + 90 - - - ( + COUNT ( * ) )
----
8549

query I rowsort
SELECT DISTINCT - ( + CASE - 79 WHEN + 13 * - 85 + 41 THEN NULL ELSE 13 + + 3 END )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3355
SELECT + 98 DIV + 43 col1
----
2

skipif mysql # not compatible
query I rowsort label-3355
SELECT + 98 / + 43 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL - ( - - ( - 62 ) ) * - 36 * COUNT( * )
----
-2232

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL - ( - - ( - 62 ) ) * - 36 * COUNT ( * )
----
-2232

query I rowsort
SELECT DISTINCT 73 + + 88 AS col1
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3358
SELECT CAST( - 58 AS SIGNED ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-3358
SELECT CAST ( - 58 AS INTEGER ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL - + COUNT( - 37 ) + 64 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL - + COUNT ( - 37 ) + 64 AS col0
----
63

query I rowsort
SELECT DISTINCT + 24 + 27 + 36 AS col1
----
87

query I rowsort
SELECT - 48 * + 45
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT ALL - 21 + COUNT( * ) + ( + 85 ) + + 1 * + 56 * - 81 * COUNT( * ) * + 10 * - 65 * 95 + + 93 + + 68 + + 24 + - COUNT( * ) + - COUNT( * ) * - COUNT( * ) col0
----
280098250

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL - 21 + COUNT ( * ) + ( + 85 ) + + 1 * + 56 * - 81 * COUNT ( * ) * + 10 * - 65 * 95 + + 93 + + 68 + + 24 + - COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) col0
----
280098250

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT + 87 + + MIN( DISTINCT 35 ) - - 90
----
212

skipif mysql # not compatible
query I rowsort label-3363
SELECT + 87 + + MIN ( DISTINCT 35 ) - - 90
----
212

query I rowsort
SELECT DISTINCT + - 57 + ( + 1 ) * + - 34
----
-91

query I rowsort
SELECT - 15 + 91 * 8 + + NULLIF ( 53, 66 )
----
766

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

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL COUNT ( DISTINCT + 43 ) col2
----
1

query I rowsort
SELECT DISTINCT - - 28 + - 95
----
-67

query II rowsort
SELECT + 20 AS col0, 11
----
20
11

query I rowsort
SELECT DISTINCT - 53 + 91 col0
----
38

query II rowsort
SELECT - 7 col2, 33
----
-7
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT - 75 + - + COUNT( * ) - + 6 * + 8
----
-124

skipif mysql # not compatible
query I rowsort label-3371
SELECT - 75 + - + COUNT ( * ) - + 6 * + 8
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT - COALESCE ( - CASE - 57 WHEN - + 78 * - 12 + + 63 + + - COUNT( * ) + + + 72 THEN NULL WHEN 82 / COUNT( * ) + - - 30 THEN + - COUNT( * ) ELSE - 59 - - + ( + 31 ) END, + + 49 ) * 38 + - 19 * 99
----
-2945

skipif mysql # not compatible
query I rowsort label-3372
SELECT - COALESCE ( - CASE - 57 WHEN - + 78 * - 12 + + 63 + + - COUNT ( * ) + + + 72 THEN NULL WHEN 82 / COUNT ( * ) + - - 30 THEN + - COUNT ( * ) ELSE - 59 - - + ( + 31 ) END, + + 49 ) * 38 + - 19 * 99
----
-2945

query I rowsort
SELECT - CASE - + 2 WHEN - + 92 THEN - ( + 49 ) WHEN + - 55 THEN NULL WHEN 89 THEN 65 END / - 6 + - 47 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3374
SELECT ALL + 54 AS col1, + 22 * MIN( - - CAST( NULL AS SIGNED ) ) AS col2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-3374
SELECT ALL + 54 AS col1, + 22 * MIN ( - - CAST ( NULL AS INTEGER ) ) AS col2
----
54
NULL

query II rowsort
SELECT + 74 AS col1, + 33 AS col0
----
74
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3376
SELECT - CAST( NULL AS DECIMAL ) / + 60 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3376
SELECT - CAST ( NULL AS REAL ) / + 60 / + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT DISTINCT + 36 DIV + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3377
SELECT DISTINCT + 36 / + 79 AS col1
----
0

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

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

query I rowsort
SELECT + 79 * - ( + 31 ) AS col0
----
-2449

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL MIN( - 77 ) * + 2 AS col1
----
-154

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL MIN ( - 77 ) * + 2 AS col1
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT CASE + 72 WHEN - 20 - + 50 * - + 69 * - COUNT( - 91 ) THEN - - 39 * COUNT( * ) WHEN 68 * + - 13 + - 98 THEN - 9 + - - CASE + 6 WHEN 79 * + + COUNT( * ) THEN - 82 + + 97 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT CASE + 72 WHEN - 20 - + 50 * - + 69 * - COUNT ( - 91 ) THEN - - 39 * COUNT ( * ) WHEN 68 * + - 13 + - 98 THEN - 9 + - - CASE + 6 WHEN 79 * + + COUNT ( * ) THEN - 82 + + 97 END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT - SUM( 96 ) * - 10 + + 21
----
981

skipif mysql # not compatible
query I rowsort label-3382
SELECT - SUM ( 96 ) * - 10 + + 21
----
981

query I rowsort
SELECT + 43 * + - 92 * + + 37
----
-146372

query II rowsort
SELECT DISTINCT + - 61 AS col0, 64 AS col1
----
-61
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT ALL - 35 * CAST( 99 AS SIGNED ) * + 53 + + 87 * - 62 + - + 98 * - - 34 + 57
----
-192314

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL - 35 * CAST ( 99 AS INTEGER ) * + 53 + + 87 * - 62 + - + 98 * - - 34 + 57
----
-192314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT DISTINCT - - 12 * - 21 + - CASE - + 95 WHEN + + 71 THEN 72 / - - CAST( NULL AS SIGNED ) + - + 89 / + 28 ELSE NULL END + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT - - 12 * - 21 + - CASE - + 95 WHEN + + 71 THEN 72 / - - CAST ( NULL AS INTEGER ) + - + 89 / + 28 ELSE NULL END + + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT DISTINCT - + COUNT( - - 94 ) * - - ( - 66 ) + - - COUNT( * ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT - + COUNT ( - - 94 ) * - - ( - 66 ) + - - COUNT ( * ) AS col0
----
67

query I rowsort
SELECT + - 73 * - 28 * 32
----
65408

query I rowsort
SELECT ALL 2 + 45 AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3390
SELECT - 3, COUNT( CAST( + 25 AS SIGNED ) ) AS col1, + 27 + COUNT( * ) col0
----
-3
1
28

skipif mysql # not compatible
query III rowsort label-3390
SELECT - 3, COUNT ( CAST ( + 25 AS INTEGER ) ) AS col1, + 27 + COUNT ( * ) col0
----
-3
1
28

query I rowsort
SELECT + - 70 * 95 AS col2
----
-6650

query I rowsort
SELECT + 90 + + 93 AS col0
----
183

query I rowsort
SELECT ALL + 90 + - + 72
----
18

query I rowsort
SELECT - NULLIF ( + 51, 46 ) col0
----
-51

query I rowsort
SELECT ALL - 10 + - + 67 AS col0
----
-77

query I rowsort
SELECT + 21 * 2 * - 53
----
-2226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3397
SELECT DISTINCT ( - CASE - - 12 WHEN - 89 THEN + + 26 + - 82 ELSE 87 * COALESCE ( ( + - 25 ), + + ( + 81 ) ) DIV COUNT( DISTINCT 22 ) + ( + 31 ) END ) * - MIN( + - 83 )
----
177952

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT ( - CASE - - 12 WHEN - 89 THEN + + 26 + - 82 ELSE 87 * COALESCE ( ( + - 25 ), + + ( + 81 ) ) / COUNT ( DISTINCT 22 ) + ( + 31 ) END ) * - MIN ( + - 83 )
----
177952

onlyif mysql # DIV for integer division: 
query I rowsort label-3398
SELECT ALL + - 55 DIV 54 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL + - 55 / 54 AS col0
----
-1

query I rowsort
SELECT + + 43 - - 30 col1
----
73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3400
SELECT ALL NULLIF ( + CAST( NULL AS DECIMAL ), 5 + + + 1 * - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL NULLIF ( + CAST ( NULL AS REAL ), 5 + + + 1 * - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT + 67 - COUNT ( * ) AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3402
SELECT + NULLIF ( + 96, - CAST( NULL AS SIGNED ) ) * ( ( - 91 ) ) * - 87 + 78 + 75 AS col0
----
760185

skipif mysql # not compatible
query I rowsort label-3402
SELECT + NULLIF ( + 96, - CAST ( NULL AS INTEGER ) ) * ( ( - 91 ) ) * - 87 + 78 + 75 AS col0
----
760185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3403
SELECT ALL + 50 - 33 + + - 70 + - CAST( NULL AS SIGNED ) * - 24 - COUNT( ALL 47 ) DIV + COUNT( * ) AS col1, - 98 - + - ( - NULLIF ( - 68, - 20 ) ) + - COUNT( + 19 ) DIV - COALESCE ( + 75, - CASE + - 82 WHEN - 54 THEN 72 ELSE NULL END DIV + 46 )
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-3403
SELECT ALL + 50 - 33 + + - 70 + - CAST ( NULL AS INTEGER ) * - 24 - COUNT ( ALL 47 ) / + COUNT ( * ) AS col1, - 98 - + - ( - NULLIF ( - 68, - 20 ) ) + - COUNT ( + 19 ) / - COALESCE ( + 75, - CASE + - 82 WHEN - 54 THEN 72 ELSE NULL END / + 46 )
----
NULL
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT DISTINCT + ( - 28 ) * COUNT( * ) - + MAX( ALL - 1 ) + ( + 72 ) * - + 94 + - 62 * + - MIN( ALL - 93 ) - ( + 88 ) AS col0
----
-12649

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT + ( - 28 ) * COUNT ( * ) - + MAX ( ALL - 1 ) + ( + 72 ) * - + 94 + - 62 * + - MIN ( ALL - 93 ) - ( + 88 ) AS col0
----
-12649

onlyif mysql # aggregate syntax: 
query II rowsort label-3405
SELECT - 9 - 34, - COUNT( * ) AS col0
----
-43
-1

skipif mysql # not compatible
query II rowsort label-3405
SELECT - 9 - 34, - COUNT ( * ) AS col0
----
-43
-1

query I rowsort
SELECT ALL + 50 * + 64
----
3200

query I rowsort
SELECT DISTINCT + 32 * + 44 AS col0
----
1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3408
SELECT + CAST( - - COUNT( ALL + + 90 ) AS SIGNED ) + + - 35 * + 53 * - 74 col2
----
137271

skipif mysql # not compatible
query I rowsort label-3408
SELECT + CAST ( - - COUNT ( ALL + + 90 ) AS INTEGER ) + + - 35 * + 53 * - 74 col2
----
137271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3409
SELECT - CAST( + - 50 AS SIGNED ) + - + 50 + - 12
----
-12

skipif mysql # not compatible
query I rowsort label-3409
SELECT - CAST ( + - 50 AS INTEGER ) + - + 50 + - 12
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT ALL + MIN( ALL NULLIF ( + 35, + 75 ) )
----
35

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL + MIN ( ALL NULLIF ( + 35, + 75 ) )
----
35

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

skipif mysql # not compatible
query I rowsort label-3411
SELECT - 43 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3412
SELECT DISTINCT - 85 / - - 27 * 17 + - + 18 - + CASE - 87 WHEN - 85 THEN + 85 WHEN + 61 THEN NULL ELSE NULL END * SUM( ALL CAST( NULL AS SIGNED ) ) * 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT DISTINCT - 85 / - - 27 * 17 + - + 18 - + CASE - 87 WHEN - 85 THEN + 85 WHEN + 61 THEN NULL ELSE NULL END * SUM ( ALL CAST ( NULL AS INTEGER ) ) * 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3413
SELECT + MAX( 99 ), + 73 AS col2
----
99
73

skipif mysql # not compatible
query II rowsort label-3413
SELECT + MAX ( 99 ), + 73 AS col2
----
99
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3414
SELECT - 24 * - + 99 + 3 AS col1, - MAX( ALL + 18 ) * 66 * + + 76 - - MIN( ALL 45 ) col0
----
2379
-90243

skipif mysql # not compatible
query II rowsort label-3414
SELECT - 24 * - + 99 + 3 AS col1, - MAX ( ALL + 18 ) * 66 * + + 76 - - MIN ( ALL 45 ) col0
----
2379
-90243

onlyif mysql # aggregate syntax: 
query II rowsort label-3415
SELECT - 94 + + 11 AS col0, + ( + COUNT( * ) )
----
-83
1

skipif mysql # not compatible
query II rowsort label-3415
SELECT - 94 + + 11 AS col0, + ( + COUNT ( * ) )
----
-83
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT + + MIN( + 8 ) + - 0 + + 30 col1
----
38

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT + + MIN ( + 8 ) + - 0 + + 30 col1
----
38

query I rowsort
SELECT ALL 91 + - 70 + 2
----
23

query II rowsort
SELECT - ( + 29 ) col0, - 68
----
-29
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT - ( - - COUNT( * ) ) + + 41 + + - 32 + - 64
----
-56

skipif mysql # not compatible
query I rowsort label-3420
SELECT - ( - - COUNT ( * ) ) + + 41 + + - 32 + - 64
----
-56

query I rowsort
SELECT 64 * + 49 AS col2
----
3136

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT SUM( ALL + 56 ) + + 30 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3422
SELECT SUM ( ALL + 56 ) + + 30 AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT - AVG ( ALL - CASE 0 WHEN 29 * - + 1 THEN - CAST( - 32 AS SIGNED ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT - AVG ( ALL - CASE 0 WHEN 29 * - + 1 THEN - CAST ( - 32 AS INTEGER ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3424
SELECT - - MIN( + + 65 ) AS col0, COALESCE ( + 28, + - COUNT( * ), - ( CASE - 0 WHEN - 32 THEN NULL WHEN - 0 THEN NULL WHEN + COUNT( * ) * + 29 THEN 6 + - 45 WHEN + COUNT( * ) THEN NULL END ) ) + + - 56
----
65
-28

skipif mysql # not compatible
query II rowsort label-3424
SELECT - - MIN ( + + 65 ) AS col0, COALESCE ( + 28, + - COUNT ( * ), - ( CASE - 0 WHEN - 32 THEN NULL WHEN - 0 THEN NULL WHEN + COUNT ( * ) * + 29 THEN 6 + - 45 WHEN + COUNT ( * ) THEN NULL END ) ) + + - 56
----
65
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT + COUNT( + 32 ) + 5 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-3425
SELECT + COUNT ( + 32 ) + 5 AS col2
----
6

query I rowsort
SELECT 84 - + 28 * + 85
----
-2296

query I rowsort
SELECT 83 + + 85 * - 49
----
-4082

query I rowsort
SELECT ALL 51 - + - 6 AS col2
----
57

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

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

query II rowsort
SELECT ALL 17 AS col0, - 57 * - 13 AS col2
----
17
741

query I rowsort
SELECT ( - 91 ) + + 37 AS col0
----
-54

query II rowsort
SELECT - 26 AS col1, 54 * - 54 AS col1
----
-26
-2916

onlyif mysql # aggregate syntax: 
query II rowsort label-3433
SELECT 27 + + + SUM( DISTINCT + 64 ) AS col1, - 68 * + ( + COUNT( ALL 20 ) )
----
91
-68

skipif mysql # not compatible
query II rowsort label-3433
SELECT 27 + + + SUM ( DISTINCT + 64 ) AS col1, - 68 * + ( + COUNT ( ALL 20 ) )
----
91
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-3434
SELECT ALL 28 col1, 12 + - 67 + - 74 + 56 DIV - 85 AS col2
----
28
-129

skipif mysql # not compatible
query II rowsort label-3434
SELECT ALL 28 col1, 12 + - 67 + - 74 + 56 / - 85 AS col2
----
28
-129

query II rowsort
SELECT + 29 AS col2, + 33
----
29
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ( + 79 ) * + COALESCE ( COUNT( * ), 0 )
----
79

skipif mysql # not compatible
query I rowsort label-3436
SELECT ( + 79 ) * + COALESCE ( COUNT ( * ), 0 )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3437
SELECT - 57 DIV 80 + 27 + + + 5
----
32

skipif mysql # not compatible
query I rowsort label-3437
SELECT - 57 / 80 + 27 + + + 5
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT DISTINCT SUM( DISTINCT - 99 ) + + 15 col1
----
-84

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT SUM ( DISTINCT - 99 ) + + 15 col1
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-3439
SELECT DISTINCT + 83 + - 72 + + 90, + COUNT( * ) * + 40 AS col2
----
101
40

skipif mysql # not compatible
query II rowsort label-3439
SELECT DISTINCT + 83 + - 72 + + 90, + COUNT ( * ) * + 40 AS col2
----
101
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3440
SELECT 52 * - 71 * 41 AS col2, - 86 * + 3 - + + 39 + - + COUNT( * ) col1
----
-151372
-298

skipif mysql # not compatible
query II rowsort label-3440
SELECT 52 * - 71 * 41 AS col2, - 86 * + 3 - + + 39 + - + COUNT ( * ) col1
----
-151372
-298

query II rowsort
SELECT + - 81 AS col1, 17
----
-81
17

query I rowsort
SELECT DISTINCT - 84 + + - 47
----
-131

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

skipif mysql # not compatible
query I rowsort label-3443
SELECT + + MAX ( - 80 )
----
-80

query I rowsort
SELECT + CASE + 81 WHEN + 10 * + 3 * - - 38 * - 97 THEN NULL WHEN - + 11 * - 72 THEN 12 + + 2 END AS col2
----
NULL

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

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

query I rowsort
SELECT 45 * - 50 - 31 AS col1
----
-2281

query I rowsort
SELECT + 14 * + 66 + 47 AS col2
----
971

query I rowsort
SELECT DISTINCT 23 + - NULLIF ( 54, - 72 ) AS col0
----
-31

query I rowsort
SELECT ALL - 90 - - - 87 AS col2
----
-177

query I rowsort
SELECT - 81 * + 22 AS col0
----
-1782

query I rowsort
SELECT ALL + + 1 - + 45 + 1 * 73
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3452
SELECT COUNT( - 44 ) * + 50 AS col1, 96 + - 98 AS col2
----
50
-2

skipif mysql # not compatible
query II rowsort label-3452
SELECT COUNT ( - 44 ) * + 50 AS col1, 96 + - 98 AS col2
----
50
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT 30 + - MAX( ALL 41 ) col1
----
-11

skipif mysql # not compatible
query I rowsort label-3454
SELECT 30 + - MAX ( ALL 41 ) col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3455
SELECT - 8 DIV COUNT( DISTINCT + + 31 ) AS col1, ( + - ( + 45 ) ) AS col0
----
-8
-45

skipif mysql # not compatible
query II rowsort label-3455
SELECT - 8 / COUNT ( DISTINCT + + 31 ) AS col1, ( + - ( + 45 ) ) AS col0
----
-8
-45

query I rowsort
SELECT - + ( 22 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT ALL + COUNT( * ) - ( + - 40 )
----
41

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL + COUNT ( * ) - ( + - 40 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3458
SELECT - COALESCE ( + 6, 67, - + 27 * + CAST( NULL AS SIGNED ), + - 28 ) * + - COUNT( * ) + - 41 * - 67 AS col0
----
2753

skipif mysql # not compatible
query I rowsort label-3458
SELECT - COALESCE ( + 6, 67, - + 27 * + CAST ( NULL AS INTEGER ), + - 28 ) * + - COUNT ( * ) + - 41 * - 67 AS col0
----
2753

query II rowsort
SELECT DISTINCT + + 42 * + 38 + CASE + + 44 WHEN + 30 - 77 THEN + 95 + + 19 + - 48 WHEN - 85 THEN NULL END * + - 51 * 16 + + 29 + - + 72 AS col0, 18 * + 41
----
NULL
738

query II rowsort
SELECT ALL 6 AS col2, - 61 AS col2
----
6
-61

query I rowsort
SELECT - 97 * - - 18 * - 72 col2
----
125712

query I rowsort
SELECT DISTINCT - 50 * + + 57 * + - 99
----
282150

query I rowsort
SELECT 82 * + + 5 * - + 64 * + 68
----
-1784320

query I rowsort
SELECT 18 * + 72
----
1296

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

skipif mysql # not compatible
query I rowsort label-3465
SELECT - MAX ( DISTINCT - 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT SUM( + + 13 ) - + 23 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3466
SELECT SUM ( + + 13 ) - + 23 AS col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3467
SELECT 37 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-3467
SELECT 37 / + 74
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3468
SELECT 8 - NULLIF ( - - 13, - - 40 / + MAX( + 31 ) + + - 47 + + CAST( + - 44 AS DECIMAL ) / + - 64 )
----
-5

skipif mysql # not compatible
query I rowsort label-3468
SELECT 8 - NULLIF ( - - 13, - - 40 / + MAX ( + 31 ) + + - 47 + + CAST ( + - 44 AS REAL ) / + - 64 )
----
-5

query II rowsort
SELECT DISTINCT 61 * - + 91, 54 AS col2
----
-5551
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL SUM( 45 ) * + + 65
----
2925

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL SUM ( 45 ) * + + 65
----
2925

onlyif mysql # DIV for integer division: 
query I rowsort label-3471
SELECT 27 DIV 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3471
SELECT 27 / 66 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL COUNT( * ) + + 90 + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL COUNT ( * ) + + 90 + COUNT ( * )
----
92

query I rowsort
SELECT DISTINCT 26 * + - 21
----
-546

query I rowsort
SELECT DISTINCT + NULLIF ( - + 0, - - 24 * 46 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3475
SELECT 33 DIV - COUNT( * ) + ( - - ( + 73 ) )
----
40

skipif mysql # not compatible
query I rowsort label-3475
SELECT 33 / - COUNT ( * ) + ( - - ( + 73 ) )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3476
SELECT + 72 DIV + 65 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3476
SELECT + 72 / + 65 AS col1
----
1

query I rowsort
SELECT + 84 * 3
----
252

query I rowsort
SELECT COALESCE ( - - 56, + + 65 ) col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT ALL + 21 * + + 60 * + + COUNT( + 91 ) - - + 21 + + 15 * - 20
----
981

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL + 21 * + + 60 * + + COUNT ( + 91 ) - - + 21 + + 15 * - 20
----
981

onlyif mysql # aggregate syntax: 
query II rowsort label-3480
SELECT + MAX( ALL 91 ) col2, COUNT( * ) AS col0
----
91
1

skipif mysql # not compatible
query II rowsort label-3480
SELECT + MAX ( ALL 91 ) col2, COUNT ( * ) AS col0
----
91
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3481
SELECT ALL - 39 * - 85 + 22 + 71 - 45 DIV - 63 + 1 + - ( - + COUNT( * ) ) - 12 * + 32 AS col1
----
3026

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL - 39 * - 85 + 22 + 71 - 45 / - 63 + 1 + - ( - + COUNT ( * ) ) - 12 * + 32 AS col1
----
3026

query I rowsort
SELECT + + 22 * 89 * - 69 AS col2
----
-135102

query I rowsort
SELECT 84 * - 31 + + 86 + + 42 * + 91 AS col0
----
1304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3484
SELECT + COUNT( * ) DIV + SUM( - 73 ) * + + 81 AS col1, CAST( NULL AS SIGNED ) * - 53
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3484
SELECT + COUNT ( * ) / + SUM ( - 73 ) * + + 81 AS col1, CAST ( NULL AS INTEGER ) * - 53
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3485
SELECT ALL + - COUNT( ALL 6 ), + ( COUNT( ALL CAST( NULL AS SIGNED ) ) ) col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-3485
SELECT ALL + - COUNT ( ALL 6 ), + ( COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) col2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT ALL CASE + - 74 WHEN - CASE - 20 WHEN - + 31 THEN - 22 / - + 27 * - - 66 END THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL CASE + - 74 WHEN - CASE - 20 WHEN - + 31 THEN - 22 / - + 27 * - - 66 END THEN NULL ELSE + COUNT ( * ) END
----
1

query I rowsort
SELECT ALL ( 38 ) * + 72 * 39 - + 43 + + 49 + 86
----
106796

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT ALL + 95 DIV 93 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL + 95 / 93 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL + CASE - 87 WHEN + 61 * + - SUM( ALL - 97 ) THEN 45 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL + CASE - 87 WHEN + 61 * + - SUM ( ALL - 97 ) THEN 45 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3490
SELECT - 10 - - 51 DIV - ( - 53 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-3490
SELECT - 10 - - 51 / - ( - 53 ) AS col2
----
-10

query I rowsort
SELECT DISTINCT ( 65 ) col0
----
65

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

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

query I rowsort
SELECT - 56 * 46 * - 90 * 73
----
16924320

query I rowsort
SELECT - 74 + 36 AS col2
----
-38

query I rowsort
SELECT DISTINCT - ( + 32 ) * - - 3 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT + COUNT( DISTINCT + - 3 ) - - - CASE + 45 WHEN - 8 THEN NULL WHEN + COUNT( * ) * + 82 - 79 THEN NULL ELSE 57 END AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-3496
SELECT + COUNT ( DISTINCT + - 3 ) - - - CASE + 45 WHEN - 8 THEN NULL WHEN + COUNT ( * ) * + 82 - 79 THEN NULL ELSE 57 END AS col1
----
-56

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

query I rowsort
SELECT - 26 + 6 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT DISTINCT COUNT( + 38 ) + - 3
----
-2

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT COUNT ( + 38 ) + - 3
----
-2

query I rowsort
SELECT DISTINCT ( - 22 ) AS col2
----
-22

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3502
SELECT DISTINCT - 83 + + 53 * CAST( 46 AS SIGNED ) * - 70 + + COUNT( * ) + - 49 * - CAST( NULL AS SIGNED ), 19 - + + MIN( ALL 27 ) AS col0
----
NULL
-8

skipif mysql # not compatible
query II rowsort label-3502
SELECT DISTINCT - 83 + + 53 * CAST ( 46 AS INTEGER ) * - 70 + + COUNT ( * ) + - 49 * - CAST ( NULL AS INTEGER ), 19 - + + MIN ( ALL 27 ) AS col0
----
NULL
-8

query I rowsort
SELECT ALL + ( + 81 ) + 36
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT + COUNT( * ) + 37 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3504
SELECT + COUNT ( * ) + 37 AS col1
----
38

query I rowsort
SELECT - 60 * + 82 col0
----
-4920

onlyif mysql # DIV for integer division: 
query I rowsort label-3506
SELECT DISTINCT 72 DIV + + 58 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT 72 / + + 58 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3507
SELECT COUNT( * ) * 33 DIV 21 + + + NULLIF ( - - COUNT( * ), - 58 - + + ( 10 ) + - 64 * 53 )
----
2

skipif mysql # not compatible
query I rowsort label-3507
SELECT COUNT ( * ) * 33 / 21 + + + NULLIF ( - - COUNT ( * ), - 58 - + + ( 10 ) + - 64 * 53 )
----
2

query I rowsort
SELECT ALL + + 53 col0
----
53

query I rowsort
SELECT DISTINCT 75 * 42
----
3150

onlyif mysql # DIV for integer division: 
query I rowsort label-3510
SELECT + - 62 DIV - 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3510
SELECT + - 62 / - 61 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3511
SELECT + 50 col0, - COUNT( * ) * + 32 AS col0
----
50
-32

skipif mysql # not compatible
query II rowsort label-3511
SELECT + 50 col0, - COUNT ( * ) * + 32 AS col0
----
50
-32

query I rowsort
SELECT ALL 46 * - - 47 * + 20 + 1 AS col1
----
43241

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3513
SELECT + 90 * 89 DIV 89 + + 24 + - 64 - - ( + MIN( + NULLIF ( - 17, 32 ) ) ) - + 69 * 94 - + 65
----
-6518

skipif mysql # not compatible
query I rowsort label-3513
SELECT + 90 * 89 / 89 + + 24 + - 64 - - ( + MIN ( + NULLIF ( - 17, 32 ) ) ) - + 69 * 94 - + 65
----
-6518

query II rowsort
SELECT 41, + 9 AS col2
----
41
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3515
SELECT + NULLIF ( + 10, - 95 - - 53 + 59 * - CASE + 0 WHEN - ( - 48 ) * + 77 + - 75 + - COUNT( * ) * + 50 THEN NULL WHEN - 98 THEN NULL ELSE - CAST( ( 73 ) AS SIGNED ) END ) - 93 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-3515
SELECT + NULLIF ( + 10, - 95 - - 53 + 59 * - CASE + 0 WHEN - ( - 48 ) * + 77 + - 75 + - COUNT ( * ) * + 50 THEN NULL WHEN - 98 THEN NULL ELSE - CAST ( ( 73 ) AS INTEGER ) END ) - 93 AS col1
----
-83

query I rowsort
SELECT ALL + ( + - 37 ) AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3517
SELECT - CAST( NULL AS SIGNED ) * + - 8 * + - 50 - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3517
SELECT - CAST ( NULL AS INTEGER ) * + - 8 * + - 50 - 85 AS col1
----
NULL

query I rowsort
SELECT 96 * 62 + + 59
----
6011

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3519
SELECT - 63 DIV - 66 AS col0, + CASE 69 WHEN 71 THEN - 85 + - COUNT( * ) - + + SUM( + 90 ) END AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3519
SELECT - 63 / - 66 AS col0, + CASE 69 WHEN 71 THEN - 85 + - COUNT ( * ) - + + SUM ( + 90 ) END AS col0
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3520
SELECT DISTINCT + ( + - 73 ) * - + MAX( + CAST( + ( - 71 ) AS SIGNED ) ) * - 11 - + COUNT( * ) AS col0
----
57012

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT + ( + - 73 ) * - + MAX ( + CAST ( + ( - 71 ) AS INTEGER ) ) * - 11 - + COUNT ( * ) AS col0
----
57012

query I rowsort
SELECT ALL - 3 * + 92 + + - 25 AS col2
----
-301

query I rowsort
SELECT - 56 + - 61 * 69
----
-4265

query I rowsort
SELECT ALL ( - 70 ) col1
----
-70

query I rowsort
SELECT ALL - 97 + - 24
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-3525
SELECT - 35 AS col0, COALESCE ( + 6, 70 * 1, + - COALESCE ( - 41, + + COALESCE ( + COUNT( * ), 69 * + - 17 ) * - - 82 ) ) + + 79 * + 89 * COALESCE ( + 68, + COUNT( * ) ) * - - 55 AS col0
----
-35
26295946

skipif mysql # not compatible
query II rowsort label-3525
SELECT - 35 AS col0, COALESCE ( + 6, 70 * 1, + - COALESCE ( - 41, + + COALESCE ( + COUNT ( * ), 69 * + - 17 ) * - - 82 ) ) + + 79 * + 89 * COALESCE ( + 68, + COUNT ( * ) ) * - - 55 AS col0
----
-35
26295946

query II rowsort
SELECT - 37, - 30 AS col1
----
-37
-30

query I rowsort
SELECT 33 - + + 58 * - 73
----
4267

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT 42 - + + 18 + - - 60 + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-3528
SELECT 42 - + + 18 + - - 60 + COUNT ( * )
----
85

query I rowsort
SELECT 78 * + 3 * + NULLIF ( + + 56, + - 58 ) col0
----
13104

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT DISTINCT + 52 * NULLIF ( + ( - 61 ), - MAX( DISTINCT + 70 ) * - 3 + + 68 )
----
-3172

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT + 52 * NULLIF ( + ( - 61 ), - MAX ( DISTINCT + 70 ) * - 3 + + 68 )
----
-3172

onlyif mysql # aggregate syntax: 
query II rowsort label-3531
SELECT ALL - 98 - 27 * - COUNT( * ) * 60 AS col0, - 88
----
1522
-88

skipif mysql # not compatible
query II rowsort label-3531
SELECT ALL - 98 - 27 * - COUNT ( * ) * 60 AS col0, - 88
----
1522
-88

query I rowsort
SELECT - 34 * + 14 AS col2
----
-476

query I rowsort
SELECT DISTINCT + - 27 * + 15 + + 10 AS col2
----
-395

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

skipif mysql # not compatible
query I rowsort label-3534
SELECT + + COUNT ( DISTINCT 26 ) AS col2
----
1

query I rowsort
SELECT 7 + + 4 AS col2
----
11

query I rowsort
SELECT + + 41 * 56 * + 99 * 80 - - 14
----
18184334

query II rowsort
SELECT + 0 * - 16 AS col2, 57 + 60 - + ( + 7 ) + + 56 * - - 70 * - 13 * 62 * - 75 + 72 + + 61 * - 46 AS col2
----
0
236961376

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

query I rowsort
SELECT 43 * + + 44 AS col0
----
1892

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT + 94 * - COUNT( * ) + 40
----
-54

skipif mysql # not compatible
query I rowsort label-3540
SELECT + 94 * - COUNT ( * ) + 40
----
-54

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

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

query II rowsort
SELECT ALL - 64 col2, + 77 AS col2
----
-64
77

query I rowsort
SELECT ALL - 59 + 67 * + 48 * + 19 * 63 AS col1
----
3849493

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT ALL + 95 * + MAX( - + 67 ) - + COUNT( * ) * + - 93
----
-6272

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL + 95 * + MAX ( - + 67 ) - + COUNT ( * ) * + - 93
----
-6272

query I rowsort
SELECT DISTINCT - COALESCE ( - - 52, + 67 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL COUNT( * ) + + + 89 * + - MIN( ALL + 12 ) * + ( 61 )
----
-65147

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL COUNT ( * ) + + + 89 * + - MIN ( ALL + 12 ) * + ( 61 )
----
-65147

query I rowsort
SELECT + 86 * + 38 AS col1
----
3268

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT - COUNT( * ) * + COUNT( * ) * 35 + + + 39
----
4

skipif mysql # not compatible
query I rowsort label-3548
SELECT - COUNT ( * ) * + COUNT ( * ) * 35 + + + 39
----
4

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

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) + - 69 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 64 * - 11 AS col2
----
-704

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3551
SELECT DISTINCT 4 + + + 49 - + COUNT( - CAST( - - 22 AS DECIMAL ) ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT 4 + + + 49 - + COUNT ( - CAST ( - - 22 AS REAL ) ) AS col0
----
52

query I rowsort
SELECT DISTINCT 39 + - 74
----
-35

query II rowsort
SELECT ALL 73 + - 77 AS col2, 6 col0
----
-4
6

query I rowsort
SELECT DISTINCT + 56 * - 71 * - 73
----
290248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3555
SELECT MIN( DISTINCT - 33 ) * - COALESCE ( CAST( 64 AS SIGNED ), + + 46 ) + + 74 DIV - + 13 + - COUNT( * )
----
2106

skipif mysql # not compatible
query I rowsort label-3555
SELECT MIN ( DISTINCT - 33 ) * - COALESCE ( CAST ( 64 AS INTEGER ), + + 46 ) + + 74 / - + 13 + - COUNT ( * )
----
2106

query I rowsort
SELECT DISTINCT 3 - - + ( - 61 ) + - 45 col1
----
-103

query I rowsort
SELECT 33 + + ( + 97 ) * 62
----
6047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3558
SELECT ( + 86 ) * CAST( + CAST( - + 41 AS SIGNED ) AS SIGNED ) * COUNT( * )
----
-3526

skipif mysql # not compatible
query I rowsort label-3558
SELECT ( + 86 ) * CAST ( + CAST ( - + 41 AS INTEGER ) AS INTEGER ) * COUNT ( * )
----
-3526

query I rowsort
SELECT 71 * 2 AS col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT ALL 31 * - MAX( - - ( - 70 ) ) AS col2
----
2170

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL 31 * - MAX ( - - ( - 70 ) ) AS col2
----
2170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT CAST( NULL AS SIGNED ) + - NULLIF ( + 14, - 21 ) + - - 47 * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT CAST ( NULL AS INTEGER ) + - NULLIF ( + 14, - 21 ) + - - 47 * + 76
----
NULL

query I rowsort
SELECT ALL ( + - 44 ) - 5
----
-49

query I rowsort
SELECT 68 + 53
----
121

query I rowsort
SELECT 73 + 25 + - 9 * + - 44 col0
----
494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3565
SELECT 22 * + - NULLIF ( + 71, - SUM( DISTINCT - - 23 ) ) * - - MIN( DISTINCT - 47 ) AS col1, - CAST( NULL AS SIGNED ) + COUNT( * )
----
73414
NULL

skipif mysql # not compatible
query II rowsort label-3565
SELECT 22 * + - NULLIF ( + 71, - SUM ( DISTINCT - - 23 ) ) * - - MIN ( DISTINCT - 47 ) AS col1, - CAST ( NULL AS INTEGER ) + COUNT ( * )
----
73414
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT + 25 * - 25 + + - COUNT( * ) * + 57
----
-682

skipif mysql # not compatible
query I rowsort label-3566
SELECT + 25 * - 25 + + - COUNT ( * ) * + 57
----
-682

query I rowsort
SELECT DISTINCT - + 82 col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3568
SELECT ALL + - 58 * 25 - + CAST( + 25 AS SIGNED ) * 0
----
-1450

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL + - 58 * 25 - + CAST ( + 25 AS INTEGER ) * 0
----
-1450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3569
SELECT + CASE 75 WHEN COALESCE ( + 69, - MIN( ALL 1 ) ) THEN - 42 * - - ( COUNT( * ) ) * - + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) / + - 82 + - - 2 * - 63 WHEN - 21 THEN 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT + CASE 75 WHEN COALESCE ( + 69, - MIN ( ALL 1 ) ) THEN - 42 * - - ( COUNT ( * ) ) * - + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) / + - 82 + - - 2 * - 63 WHEN - 21 THEN 85 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT CASE - MIN( ALL 12 ) WHEN + 48 + - 81 THEN COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT CASE - MIN ( ALL 12 ) WHEN + 48 + - 81 THEN COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3571
SELECT - 74 * + 26 / 11 + - 18 - - 78 - + CAST( NULL AS SIGNED ) * + - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT - 74 * + 26 / 11 + - 18 - - 78 - + CAST ( NULL AS INTEGER ) * + - 50 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3572
SELECT - 86 DIV 78 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3572
SELECT - 86 / 78 AS col1
----
-1

query I rowsort
SELECT ALL + NULLIF ( + + 71, 69 ) - - - 44
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3574
SELECT + MAX( ALL 39 ) + 55 - 45 + COUNT( * ) * - ( 97 ) + - - ( - NULLIF ( - - ( 85 ), 1 ) ) * + + 4 + + NULLIF ( CAST( NULL AS SIGNED ), + + 32 ) * - - MAX( - 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT + MAX ( ALL 39 ) + 55 - 45 + COUNT ( * ) * - ( 97 ) + - - ( - NULLIF ( - - ( 85 ), 1 ) ) * + + 4 + + NULLIF ( CAST ( NULL AS INTEGER ), + + 32 ) * - - MAX ( - 67 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 97 - + ( 70 ) AS col0
----
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT + COUNT( * ) - - 86 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3577
SELECT + COUNT ( * ) - - 86 AS col2
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3578
SELECT 38 AS col1, + 39 - - COUNT( * ) - - 15 - - 55
----
38
110

skipif mysql # not compatible
query II rowsort label-3578
SELECT 38 AS col1, + 39 - - COUNT ( * ) - - 15 - - 55
----
38
110

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT - 20 DIV + 19 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3579
SELECT - 20 / + 19 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT + 26 * COALESCE ( COUNT( * ), - 90 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3580
SELECT + 26 * COALESCE ( COUNT ( * ), - 90 ) AS col2
----
26

query II rowsort
SELECT DISTINCT 84, - 92 col2
----
84
-92

query I rowsort
SELECT ALL + 79 * - 79 AS col0
----
-6241

query II rowsort
SELECT ALL 41, - ( - ( 57 ) ) col2
----
41
57

query II rowsort
SELECT + ( 56 ) * - 95 AS col0, + 20
----
-5320
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3585
SELECT + COUNT( * ), NULLIF ( + 11, - 94 * 94 ) + + + ( - MIN( - + 34 ) ) AS col0
----
1
45

skipif mysql # not compatible
query II rowsort label-3585
SELECT + COUNT ( * ), NULLIF ( + 11, - 94 * 94 ) + + + ( - MIN ( - + 34 ) ) AS col0
----
1
45

query I rowsort
SELECT + + 0 * 23 AS col2
----
0

query I rowsort
SELECT ALL + 95 + - 49
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT + 82 - + 13 + - 74 + CAST( 86 AS SIGNED ) col0
----
81

skipif mysql # not compatible
query I rowsort label-3588
SELECT + 82 - + 13 + - 74 + CAST ( 86 AS INTEGER ) col0
----
81

query I rowsort
SELECT + 96 + 12 + - + 76 AS col0
----
32

query I rowsort
SELECT DISTINCT + 50 * 88 AS col2
----
4400

onlyif mysql # aggregate syntax: 
query II rowsort label-3591
SELECT DISTINCT + COUNT( ALL 23 ) + + 57, + ( - 55 ) AS col1
----
58
-55

skipif mysql # not compatible
query II rowsort label-3591
SELECT DISTINCT + COUNT ( ALL 23 ) + + 57, + ( - 55 ) AS col1
----
58
-55

query II rowsort
SELECT + 41 AS col1, - 1 AS col2
----
41
-1

query I rowsort
SELECT ALL 92 + + 28 col2
----
120

query I rowsort
SELECT DISTINCT 97 + + 56
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3595
SELECT ( CASE + - 28 WHEN + 5 THEN CASE - 56 WHEN CAST( - 17 AS SIGNED ) THEN + 19 END + 70 * + 99 WHEN + - CAST( NULL AS SIGNED ) + - 4 / 72 THEN ( + 66 ) - 40 / + - 46 END ) / - - 96 + - - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT ( CASE + - 28 WHEN + 5 THEN CASE - 56 WHEN CAST ( - 17 AS INTEGER ) THEN + 19 END + 70 * + 99 WHEN + - CAST ( NULL AS INTEGER ) + - 4 / 72 THEN ( + 66 ) - 40 / + - 46 END ) / - - 96 + - - 93 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3596
SELECT ALL + + COUNT( * ) AS col0, - CASE - + MIN( DISTINCT + + 86 ) WHEN - + 68 / + 7 * - 84 + ( + COUNT( DISTINCT - 94 ) ) THEN + - SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) END * 89 + + CAST( NULL AS SIGNED ) - AVG ( + - CASE 45 WHEN 81 / - - 22 THEN NULL WHEN - + 78 THEN 70 END ) AS col2, + - 49 + + 86 AS col0
----
1
NULL
37

skipif mysql # not compatible
query III rowsort label-3596
SELECT ALL + + COUNT ( * ) AS col0, - CASE - + MIN ( DISTINCT + + 86 ) WHEN - + 68 / + 7 * - 84 + ( + COUNT ( DISTINCT - 94 ) ) THEN + - SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) END * 89 + + CAST ( NULL AS INTEGER ) - AVG ( + - CASE 45 WHEN 81 / - - 22 THEN NULL WHEN - + 78 THEN 70 END ) AS col2, + - 49 + + 86 AS col0
----
1
NULL
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT + + COUNT( * ) + 78 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3597
SELECT + + COUNT ( * ) + 78 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT - + COUNT( * ) / 72 + + + COUNT( ALL + - 13 ) + + CASE 98 WHEN - 56 + MAX( + 44 ) THEN - + 26 + - 37 + - 1 / - - 22 * - 30 + + 14 + - - CASE WHEN ( NOT ( NOT 84 IS NOT NULL ) ) THEN NULL ELSE + SUM( ALL 28 ) + 44 END / - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT - + COUNT ( * ) / 72 + + + COUNT ( ALL + - 13 ) + + CASE 98 WHEN - 56 + MAX ( + 44 ) THEN - + 26 + - 37 + - 1 / - - 22 * - 30 + + 14 + - - CASE WHEN ( NOT ( NOT 84 IS NOT NULL ) ) THEN NULL ELSE + SUM ( ALL 28 ) + 44 END / - 28 END
----
NULL

query II rowsort
SELECT + + 70 AS col2, + 54 - - - 8 AS col0
----
70
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3600
SELECT ALL - 38 * - CASE - 97 WHEN - COUNT( * ) + + COUNT( - 17 ) * - + SUM( + 3 ) THEN NULL WHEN + 41 / + - 34 THEN - 5 END + 72 + - 77 + + - CAST( NULL AS DECIMAL ) + + 32 - - 90 * ( + 7 ) * - CAST( - + COUNT( * ) AS SIGNED ) + + - COUNT( * ) + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL - 38 * - CASE - 97 WHEN - COUNT ( * ) + + COUNT ( - 17 ) * - + SUM ( + 3 ) THEN NULL WHEN + 41 / + - 34 THEN - 5 END + 72 + - 77 + + - CAST ( NULL AS REAL ) + + 32 - - 90 * ( + 7 ) * - CAST ( - + COUNT ( * ) AS INTEGER ) + + - COUNT ( * ) + - 43
----
NULL

query I rowsort
SELECT + 12 + + - 52 + - 43
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3602
SELECT - 59 DIV - - COUNT( * ) + + 58 * + 38 AS col2
----
2145

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT DISTINCT + CASE 3 WHEN + + 63 * - - COUNT( * ) + + 55 - - + 96 * + 81 THEN NULL WHEN - + COUNT( * ) THEN NULL ELSE - - ( - 44 ) + - - 72 END
----
28

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT + CASE 3 WHEN + + 63 * - - COUNT ( * ) + + 55 - - + 96 * + 81 THEN NULL WHEN - + COUNT ( * ) THEN NULL ELSE - - ( - 44 ) + - - 72 END
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3604
SELECT DISTINCT - 27 * 34 - 46 + + - 78 DIV - + 51 + + ( - - COUNT( * ) ) AS col2, + 10 * - + 20
----
-962
-200

skipif mysql # not compatible
query II rowsort label-3604
SELECT DISTINCT - 27 * 34 - 46 + + - 78 / - + 51 + + ( - - COUNT ( * ) ) AS col2, + 10 * - + 20
----
-962
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT - MIN( DISTINCT + 25 ) + + + 62 * 26
----
1587

skipif mysql # not compatible
query I rowsort label-3605
SELECT - MIN ( DISTINCT + 25 ) + + + 62 * 26
----
1587

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

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

query I rowsort
SELECT 83 * - + 89 + 98 + - + 48 * + + 25
----
-8489

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - 44 * COUNT( DISTINCT 60 )
----
-44

skipif mysql # not compatible
query I rowsort label-3608
SELECT - 44 * COUNT ( DISTINCT 60 )
----
-44

query II rowsort
SELECT - 50 * - 61 AS col2, + 19 * + - 43 * - - 93 AS col1
----
3050
-75981

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT COALESCE ( + 13, + 73 * + MAX( - + 36 ) )
----
13

skipif mysql # not compatible
query I rowsort label-3610
SELECT COALESCE ( + 13, + 73 * + MAX ( - + 36 ) )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT - COUNT( * ) + - 44 col2
----
-45

skipif mysql # not compatible
query I rowsort label-3611
SELECT - COUNT ( * ) + - 44 col2
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-3612
SELECT ALL - 11 * 96 * 56 * + 70 AS col0, + COUNT( * )
----
-4139520
1

skipif mysql # not compatible
query II rowsort label-3612
SELECT ALL - 11 * 96 * 56 * + 70 AS col0, + COUNT ( * )
----
-4139520
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3613
SELECT - SUM( ALL + 59 ) AS col2, SUM( + 40 ) col2
----
-59
40

skipif mysql # not compatible
query II rowsort label-3613
SELECT - SUM ( ALL + 59 ) AS col2, SUM ( + 40 ) col2
----
-59
40

query I rowsort
SELECT - ( + 85 ) + 89 AS col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3615
SELECT - MIN( DISTINCT - 42 ) DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-3615
SELECT - MIN ( DISTINCT - 42 ) / + 72
----
0

query I rowsort
SELECT - 78 * + - 60
----
4680

query I rowsort
SELECT ( + 90 ) * - 66 + 6
----
-5934

query I rowsort
SELECT DISTINCT - 94 + - 63 * 70
----
-4504

query I rowsort
SELECT - 72 + - ( + 93 ) + 49 AS col0
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3620
SELECT + 27 + + + NULLIF ( - 87, + CASE - - 92 WHEN 48 THEN NULL ELSE - 22 * + + COUNT( * ) * + 94 + - CAST( - + 12 AS SIGNED ) END * - MAX( 32 ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3620
SELECT + 27 + + + NULLIF ( - 87, + CASE - - 92 WHEN 48 THEN NULL ELSE - 22 * + + COUNT ( * ) * + 94 + - CAST ( - + 12 AS INTEGER ) END * - MAX ( 32 ) ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL 97 + - COUNT( * ) - SUM( - 58 ) * + - COALESCE ( + 29, 44, - - 69 )
----
-1586

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL 97 + - COUNT ( * ) - SUM ( - 58 ) * + - COALESCE ( + 29, 44, - - 69 )
----
-1586

query I rowsort
SELECT + + 13 - - 97
----
110

query I rowsort
SELECT DISTINCT - 21 + - 74 AS col0
----
-95

query I rowsort
SELECT - - NULLIF ( + + 65, - 43 ) AS col0
----
65

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

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

query I rowsort
SELECT + + 2 + - 77 * + - 60
----
4622

query I rowsort
SELECT - NULLIF ( 86, 18 ) AS col0
----
-86

query I rowsort
SELECT + 82 * + 95 AS col0
----
7790

onlyif mysql # aggregate syntax: 
query II rowsort label-3629
SELECT ALL COUNT( * ) + - + COUNT( * ) col0, + 6 * + + 28 + - - 57 * ( + 34 ) col1
----
0
2106

skipif mysql # not compatible
query II rowsort label-3629
SELECT ALL COUNT ( * ) + - + COUNT ( * ) col0, + 6 * + + 28 + - - 57 * ( + 34 ) col1
----
0
2106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3630
SELECT DISTINCT - 89 - + - NULLIF ( 39, - 37 ) + + 84 * + CAST( + + SUM( + 48 ) AS SIGNED ) * - 18 AS col2
----
-72626

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT - 89 - + - NULLIF ( 39, - 37 ) + + 84 * + CAST ( + + SUM ( + 48 ) AS INTEGER ) * - 18 AS col2
----
-72626

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3631
SELECT + 10 DIV - - MAX( DISTINCT 4 ) col1
----
2

skipif mysql # not compatible
query I rowsort label-3631
SELECT + 10 / - - MAX ( DISTINCT 4 ) col1
----
2

query I rowsort
SELECT ALL - NULLIF ( 5, 57 ) col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT ALL - - COUNT( 98 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL - - COUNT ( 98 ) AS col0
----
1

query I rowsort
SELECT NULLIF ( 17, - 61 ) AS col1
----
17

query I rowsort
SELECT ALL - 87 - - 7 - - 48 - NULLIF ( - - ( 81 ), + 38 ) AS col1
----
-113

query I rowsort
SELECT DISTINCT - - ( - - 75 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3637
SELECT 11 + - + 83 + - - 62 AS col0, - 28 * + + COALESCE ( - - 66, COUNT( * ) - - 4 + + ( + 60 ) ) AS col1
----
-10
-1848

skipif mysql # not compatible
query II rowsort label-3637
SELECT 11 + - + 83 + - - 62 AS col0, - 28 * + + COALESCE ( - - 66, COUNT ( * ) - - 4 + + ( + 60 ) ) AS col1
----
-10
-1848

onlyif mysql # DIV for integer division: 
query I rowsort label-3638
SELECT NULLIF ( + 81, - 59 * - + 75 - + 15 - + 19 ) DIV + 91 * - 28 - + 42 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3638
SELECT NULLIF ( + 81, - 59 * - + 75 - + 15 - + 19 ) / + 91 * - 28 - + 42 AS col2
----
-42

query I rowsort
SELECT 62 * - 89 * + + 89 * + 97 AS col2
----
-47636894

query I rowsort
SELECT ALL + 79 * - + 99 col1
----
-7821

query I rowsort
SELECT DISTINCT - 25 * - 85 AS col0
----
2125

query I rowsort
SELECT 61 * + - 86
----
-5246

query I rowsort
SELECT DISTINCT 14 * + 56
----
784

query II rowsort
SELECT + 87 AS col0, - 20
----
87
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3645
SELECT MIN( ALL - ( + 40 ) ) * + - 87 + + 37 + - 0 AS col2, 63 AS col2
----
3517
63

skipif mysql # not compatible
query II rowsort label-3645
SELECT MIN ( ALL - ( + 40 ) ) * + - 87 + + 37 + - 0 AS col2, 63 AS col2
----
3517
63

query I rowsort
SELECT 87 * - 13 AS col1
----
-1131

query I rowsort
SELECT ALL - 8 + + + 86
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3648
SELECT DISTINCT - 90 + + 31 - - + COUNT( * ) - + + 40 * - CASE + 58 WHEN - + 43 THEN 66 WHEN - CAST( NULL AS SIGNED ) THEN NULL END + + + 74 * + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT - 90 + + 31 - - + COUNT ( * ) - + + 40 * - CASE + 58 WHEN - + 43 THEN 66 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END + + + 74 * + - 17
----
NULL

query I rowsort
SELECT DISTINCT 29 + - + 2 AS col1
----
27

query I rowsort
SELECT ALL + 67 + - 38 AS col2
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3651
SELECT - ( + + MAX( - 81 ) ) AS col2, 8 col1
----
81
8

skipif mysql # not compatible
query II rowsort label-3651
SELECT - ( + + MAX ( - 81 ) ) AS col2, 8 col1
----
81
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3652
SELECT + 53 AS col1, - COUNT( * ) + - 40 AS col2
----
53
-41

skipif mysql # not compatible
query II rowsort label-3652
SELECT + 53 AS col1, - COUNT ( * ) + - 40 AS col2
----
53
-41

query I rowsort
SELECT ALL ( - 43 ) + + 79 * 98
----
7699

query I rowsort
SELECT DISTINCT + 54 + - 43
----
11

query I rowsort
SELECT - 44 + + + 14
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT 76 + + 85 - - 56 * - 77 * - 89 * - 14 + - 46 - - - 24 * + 54 * - COUNT( * ) - 16
----
-5371357

skipif mysql # not compatible
query I rowsort label-3656
SELECT 76 + + 85 - - 56 * - 77 * - 89 * - 14 + - 46 - - - 24 * + 54 * - COUNT ( * ) - 16
----
-5371357

query I rowsort
SELECT 7 - - 91 + + 1 col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT COUNT( DISTINCT + 82 ) + + COUNT( + 60 )
----
2

skipif mysql # not compatible
query I rowsort label-3658
SELECT COUNT ( DISTINCT + 82 ) + + COUNT ( + 60 )
----
2

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

query I rowsort
SELECT DISTINCT - 49 * + 25 * + 75 * - 85 AS col2
----
7809375

query I rowsort
SELECT ALL + 91 - + 80 + - 64 AS col2
----
-53

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

skipif mysql # not compatible
query I rowsort label-3662
SELECT - 3 * - - COUNT ( * )
----
-3

query I rowsort
SELECT NULLIF ( 2, - ( 77 ) ) + - 2 + - 33 * - 97 + + 43
----
3244

query I rowsort
SELECT DISTINCT - COALESCE ( + - 27, + 97, - 68 )
----
27

query I rowsort
SELECT 22 - + - 90 AS col2
----
112

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3668
SELECT + 8 AS col2, 71 DIV - 95 * + + 51 + 43 AS col1
----
8
43

skipif mysql # not compatible
query II rowsort label-3668
SELECT + 8 AS col2, 71 / - 95 * + + 51 + 43 AS col1
----
8
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT COUNT( * ) + - NULLIF ( + 77, + 12 / - 84 + COUNT( * ) + + 38 )
----
-76

skipif mysql # not compatible
query I rowsort label-3669
SELECT COUNT ( * ) + - NULLIF ( + 77, + 12 / - 84 + COUNT ( * ) + + 38 )
----
-76

query I rowsort
SELECT ALL 32 * + 90 AS col2
----
2880

onlyif mysql # aggregate syntax: 
query II rowsort label-3671
SELECT COUNT( * ) * + COUNT( * ) * - 41 * + + COUNT( * ), + 90 AS col2
----
-41
90

skipif mysql # not compatible
query II rowsort label-3671
SELECT COUNT ( * ) * + COUNT ( * ) * - 41 * + + COUNT ( * ), + 90 AS col2
----
-41
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT DISTINCT + COUNT( * ) * - 85 * 88 AS col2
----
-7480

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT + COUNT ( * ) * - 85 * 88 AS col2
----
-7480

onlyif mysql # DIV for integer division: 
query II rowsort label-3673
SELECT DISTINCT - 20 col0, 88 DIV + ( 51 ) AS col0
----
-20
1

skipif mysql # not compatible
query II rowsort label-3673
SELECT DISTINCT - 20 col0, 88 / + ( 51 ) AS col0
----
-20
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3674
SELECT 83, COUNT( 63 ) AS col1
----
83
1

skipif mysql # not compatible
query II rowsort label-3674
SELECT 83, COUNT ( 63 ) AS col1
----
83
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3675
SELECT DISTINCT 31 + 0 DIV - 88
----
31

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT 31 + 0 / - 88
----
31

query II rowsort
SELECT + 84 AS col1, 95
----
84
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3677
SELECT CAST( + + 34 AS SIGNED ) DIV + 21 + - ( - + ( + 61 ) ), 34 col1
----
62
34

skipif mysql # not compatible
query II rowsort label-3677
SELECT CAST ( + + 34 AS INTEGER ) / + 21 + - ( - + ( + 61 ) ), 34 col1
----
62
34

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

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL 25 + + COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT COUNT( ALL - 92 ) * - CASE WHEN 89 <> - 22 THEN - 12 END + - 15 - - 42 + - + ( - + 91 ) * 17 + - 86 * + 41 AS col0
----
-1940

skipif mysql # not compatible
query I rowsort label-3679
SELECT COUNT ( ALL - 92 ) * - CASE WHEN 89 <> - 22 THEN - 12 END + - 15 - - 42 + - + ( - + 91 ) * 17 + - 86 * + 41 AS col0
----
-1940

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3681
SELECT CAST( ( 75 ) AS SIGNED ) + NULLIF ( - COUNT( * ), ( 33 ) ) * - 90 AS col1
----
165

skipif mysql # not compatible
query I rowsort label-3681
SELECT CAST ( ( 75 ) AS INTEGER ) + NULLIF ( - COUNT ( * ), ( 33 ) ) * - 90 AS col1
----
165

query I rowsort
SELECT ALL 30 + - 68
----
-38

query I rowsort
SELECT 19 + 18 AS col1
----
37

query I rowsort
SELECT ALL + - 91 + - 82
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT ALL SUM( + 88 ) * 4
----
352

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL SUM ( + 88 ) * 4
----
352

onlyif mysql # aggregate syntax: 
query II rowsort label-3686
SELECT DISTINCT SUM( ALL + 25 ), COUNT( * ) AS col2
----
25
1

skipif mysql # not compatible
query II rowsort label-3686
SELECT DISTINCT SUM ( ALL + 25 ), COUNT ( * ) AS col2
----
25
1

query I rowsort
SELECT ALL - - ( - + 14 ) - 92
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT + CASE + + 78 WHEN ( - 95 ) * - - 50 * + + 71 * + 97 + 19 THEN NULLIF ( - COALESCE ( - SUM( - 72 ), + 3 + 53 + + 69 * + - 19 * - COUNT( * ) ), + + 71 ) * - + ( + 35 ) + - 95 + 13 ELSE NULL END + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT + CASE + + 78 WHEN ( - 95 ) * - - 50 * + + 71 * + 97 + 19 THEN NULLIF ( - COALESCE ( - SUM ( - 72 ), + 3 + 53 + + 69 * + - 19 * - COUNT ( * ) ), + + 71 ) * - + ( + 35 ) + - 95 + 13 ELSE NULL END + + 15
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-3689
SELECT + COUNT( * ) + NULLIF ( - 31, 49 ) + COUNT( * ) + - - 46, NULLIF ( - 51, - 89 ) AS col2, - - 53 AS col1
----
17
-51
53

skipif mysql # not compatible
query III rowsort label-3689
SELECT + COUNT ( * ) + NULLIF ( - 31, 49 ) + COUNT ( * ) + - - 46, NULLIF ( - 51, - 89 ) AS col2, - - 53 AS col1
----
17
-51
53

query I rowsort
SELECT 22 + 39 AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3691
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, + 56 + + 45 + - COUNT( * ) * + - 52 + 11 DIV + 16 * + - 24
----
NULL
153

skipif mysql # not compatible
query II rowsort label-3691
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, + 56 + + 45 + - COUNT ( * ) * + - 52 + 11 / + 16 * + - 24
----
NULL
153

query II rowsort
SELECT - + 14 AS col0, - 82
----
-14
-82

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3694
SELECT - - 60, + 51 DIV 1 AS col2
----
60
51

skipif mysql # not compatible
query II rowsort label-3694
SELECT - - 60, + 51 / 1 AS col2
----
60
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT - 14 + 22 + + + COUNT( * ) col1
----
9

skipif mysql # not compatible
query I rowsort label-3695
SELECT - 14 + 22 + + + COUNT ( * ) col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT ALL + CASE + 35 WHEN - + CASE COUNT( * ) WHEN 0 THEN + 0 * + - 31 + + - 53 + + + 49 * 19 WHEN - + 68 THEN NULL ELSE NULL END THEN NULL WHEN + - 99 THEN 17 * + 26 ELSE - + 72 END * + - 42 + + 77
----
3101

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL + CASE + 35 WHEN - + CASE COUNT ( * ) WHEN 0 THEN + 0 * + - 31 + + - 53 + + + 49 * 19 WHEN - + 68 THEN NULL ELSE NULL END THEN NULL WHEN + - 99 THEN 17 * + 26 ELSE - + 72 END * + - 42 + + 77
----
3101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3697
SELECT - COUNT( + 43 ) * - + 19 - 49 DIV 71 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3697
SELECT - COUNT ( + 43 ) * - + 19 - 49 / 71 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT - + 84 + - 90 - + 0 - - CASE WHEN NOT 28 = 90 - 74 THEN - ( + 33 ) * 47 - COUNT( * ) END
----
-1726

skipif mysql # not compatible
query I rowsort label-3698
SELECT - + 84 + - 90 - + 0 - - CASE WHEN NOT 28 = 90 - 74 THEN - ( + 33 ) * 47 - COUNT ( * ) END
----
-1726

query I rowsort
SELECT ALL - 4 * + 75 AS col1
----
-300

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT + 9 * 41 AS col2, - COUNT( * )
----
369
-1

skipif mysql # not compatible
query II rowsort label-3700
SELECT + 9 * 41 AS col2, - COUNT ( * )
----
369
-1

query I rowsort
SELECT ALL NULLIF ( + 40, + 59 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT DISTINCT + CASE 36 WHEN COUNT( * ) THEN NULL WHEN - 38 THEN COUNT( * ) ELSE - 12 END
----
-12

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT + CASE 36 WHEN COUNT ( * ) THEN NULL WHEN - 38 THEN COUNT ( * ) ELSE - 12 END
----
-12

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

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

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

skipif mysql # not compatible
query I rowsort label-3704
SELECT - COUNT ( DISTINCT + + 20 ) * - 57 AS col1
----
57

query I rowsort
SELECT 25 * - 27 + + 57 AS col1
----
-618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3706
SELECT NULLIF ( + 7, + 37 * 88 * + COUNT( * ) ) AS col0, CAST( - 73 AS SIGNED )
----
7
-73

skipif mysql # not compatible
query II rowsort label-3706
SELECT NULLIF ( + 7, + 37 * 88 * + COUNT ( * ) ) AS col0, CAST ( - 73 AS INTEGER )
----
7
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3707
SELECT CASE + + 15 WHEN + 13 THEN + 48 + 95 ELSE NULL END / + + 85 + - CAST( - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3707
SELECT CASE + + 15 WHEN + 13 THEN + 48 + 95 ELSE NULL END / + + 85 + - CAST ( - COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3708
SELECT + CAST( NULL AS SIGNED ) * + 64 / + 60 / 45 * + NULLIF ( - CASE + 55 WHEN MIN( ALL - ( - ( + + 98 ) ) ) THEN NULL ELSE + ( - + 98 ) END, + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT + CAST ( NULL AS INTEGER ) * + 64 / + 60 / 45 * + NULLIF ( - CASE + 55 WHEN MIN ( ALL - ( - ( + + 98 ) ) ) THEN NULL ELSE + ( - + 98 ) END, + COUNT ( * ) ) AS col0
----
NULL

query II rowsort
SELECT ALL 70 * - - 21 + 55 AS col2, 53 + NULLIF ( 36, 66 ) AS col1
----
1525
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3710
SELECT + CAST( + 94 AS SIGNED ) - - 61 * - - NULLIF ( + COUNT( * ), COUNT( - + 75 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT + CAST ( + 94 AS INTEGER ) - - 61 * - - NULLIF ( + COUNT ( * ), COUNT ( - + 75 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3711
SELECT ALL - 37 * + 36 + - 2 + + - CAST( - 30 AS SIGNED ) * + - 94
----
-4154

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL - 37 * + 36 + - 2 + + - CAST ( - 30 AS INTEGER ) * + - 94
----
-4154

query I rowsort
SELECT DISTINCT 24 * + CASE - - 60 WHEN 49 THEN + + 1 * 2 + 23 ELSE 51 * - + 87 END
----
-106488

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

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

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

skipif mysql # not compatible
query I rowsort label-3714
SELECT - COUNT ( * ) / - CAST ( - + 44 AS INTEGER ) col2
----
0

query I rowsort
SELECT DISTINCT - 2 * 61 AS col0
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3716
SELECT + - 63 DIV + + COUNT( - ( - 2 ) ) + - 71 AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-3716
SELECT + - 63 / + + COUNT ( - ( - 2 ) ) + - 71 AS col2
----
-134

onlyif mysql # aggregate syntax: 
query II rowsort label-3717
SELECT ( + 76 ) AS col1, 98 * - + MIN( DISTINCT - ( - - ( - 95 ) ) )
----
76
-9310

skipif mysql # not compatible
query II rowsort label-3717
SELECT ( + 76 ) AS col1, 98 * - + MIN ( DISTINCT - ( - - ( - 95 ) ) )
----
76
-9310

query I rowsort
SELECT + + 19 + - 6
----
13

query I rowsort
SELECT - + 39 * 25 + + 82 + - 65
----
-958

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT + MAX( ALL + - 54 ) + + - 69 AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-3720
SELECT + MAX ( ALL + - 54 ) + + - 69 AS col0
----
-123

query I rowsort
SELECT + 78 + - CASE + + 66 WHEN + 20 THEN NULL ELSE + 23 END col0
----
55

query I rowsort
SELECT ALL - 93 + - 82 AS col2
----
-175

query I rowsort
SELECT - 98 + - 9 - + + 38 AS col2
----
-145

query I rowsort
SELECT ALL 3 + + 33 + 57 * - + 4 * + 85 + + 47 * - 95 AS col0
----
-23809

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT DISTINCT COUNT( DISTINCT - - ( + 23 ) ) AS col0
----
1

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

query I rowsort
SELECT DISTINCT 21 + - 9 AS col2
----
12

query I rowsort
SELECT ALL + 20 + - - 18 AS col0
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-3728
SELECT ALL - 93 + 53 * 44, + 16 + + + 46 DIV - 67 * - ( + 84 ) AS col2
----
2239
16

skipif mysql # not compatible
query II rowsort label-3728
SELECT ALL - 93 + 53 * 44, + 16 + + + 46 / - 67 * - ( + 84 ) AS col2
----
2239
16

query I rowsort
SELECT - 67 - 62
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3730
SELECT + CAST( NULL AS SIGNED ), - 51 AS col2
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-3730
SELECT + CAST ( NULL AS INTEGER ), - 51 AS col2
----
NULL
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3731
SELECT - MIN( DISTINCT + 76 ) DIV - COALESCE ( 42, + CASE + 27 WHEN + 52 - + - 84 THEN 47 + - COALESCE ( - 23, + 64 + 8, 79 * - 19 + - 65 ) END ) + 3 DIV - 96 + - 23 - + - 54 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3731
SELECT - MIN ( DISTINCT + 76 ) / - COALESCE ( 42, + CASE + 27 WHEN + 52 - + - 84 THEN 47 + - COALESCE ( - 23, + 64 + 8, 79 * - 19 + - 65 ) END ) + 3 / - 96 + - 23 - + - 54 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT + 79 * - 66 + - 61 + COUNT( * ) + 32 col1
----
-5242

skipif mysql # not compatible
query I rowsort label-3732
SELECT + 79 * - 66 + - 61 + COUNT ( * ) + 32 col1
----
-5242

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3735
SELECT 94 DIV - 32 + 66 AS col0, + 24 AS col2
----
64
24

skipif mysql # not compatible
query II rowsort label-3735
SELECT 94 / - 32 + 66 AS col0, + 24 AS col2
----
64
24

query I rowsort
SELECT - 32 * - 68 AS col2
----
2176

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

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

query I rowsort
SELECT ALL - 49 * ( + 27 )
----
-1323

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

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

query II rowsort
SELECT ALL + 22, - 38 AS col0
----
22
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT DISTINCT 31 DIV 3 * + COALESCE ( + 65, + + 63, + 67 )
----
650

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT 31 / 3 * + COALESCE ( + 65, + + 63, + 67 )
----
650

query I rowsort
SELECT ( + NULLIF ( + 71, - 22 + 73 + + 72 ) )
----
71

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

skipif mysql # not compatible
query I rowsort label-3743
SELECT - COUNT ( * ) * - + COUNT ( * ) + - - 81 + - + COUNT ( * ) * + 71 / + 39
----
81

query I rowsort
SELECT DISTINCT - 22 * - 16 AS col1
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT - COUNT( * ) * 36 * - 97 + 7 * - 52
----
3128

skipif mysql # not compatible
query I rowsort label-3745
SELECT - COUNT ( * ) * 36 * - 97 + 7 * - 52
----
3128

query II rowsort
SELECT ALL - - 7 AS col1, + 64 AS col0
----
7
64

onlyif mysql # aggregate syntax: 
query II rowsort label-3747
SELECT + 47 + - 95 * + 4 AS col0, 9 * - MAX( ALL 41 ) * + COUNT( * ) AS col0
----
-333
-369

skipif mysql # not compatible
query II rowsort label-3747
SELECT + 47 + - 95 * + 4 AS col0, 9 * - MAX ( ALL 41 ) * + COUNT ( * ) AS col0
----
-333
-369

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3749
SELECT + CAST( - 23 AS SIGNED ) * + 32
----
-736

skipif mysql # not compatible
query I rowsort label-3749
SELECT + CAST ( - 23 AS INTEGER ) * + 32
----
-736

query I rowsort
SELECT ALL - - 65 * - 25 AS col0
----
-1625

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

skipif mysql # not compatible
query II rowsort label-3751
SELECT DISTINCT COUNT ( * ) AS col0, 39
----
1
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT DISTINCT 52 * NULLIF ( - - 29, - + COALESCE ( + - 57, + 78, + - 44 + - 3 * + - 21 / + 26 * ( - + COUNT( * ) ) ) )
----
1508

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT 52 * NULLIF ( - - 29, - + COALESCE ( + - 57, + 78, + - 44 + - 3 * + - 21 / + 26 * ( - + COUNT ( * ) ) ) )
----
1508

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT - 40 DIV + - 46 + + 36 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3753
SELECT - 40 / + - 46 + + 36 AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-3754
SELECT 7 AS col2, CASE 38 WHEN + + 48 + 18 THEN NULL WHEN - ( + - COUNT( + 57 ) ) * ( - ( + COUNT( * ) ) ) / - 45 THEN + - 46 WHEN COUNT( ALL 12 ) THEN NULL ELSE NULL END AS col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-3754
SELECT 7 AS col2, CASE 38 WHEN + + 48 + 18 THEN NULL WHEN - ( + - COUNT ( + 57 ) ) * ( - ( + COUNT ( * ) ) ) / - 45 THEN + - 46 WHEN COUNT ( ALL 12 ) THEN NULL ELSE NULL END AS col1
----
7
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3755
SELECT ALL 93 + MAX( 51 ) + - 36 + - 52 DIV + - 81 AS col0, + 67 AS col0
----
108
67

skipif mysql # not compatible
query II rowsort label-3755
SELECT ALL 93 + MAX ( 51 ) + - 36 + - 52 / + - 81 AS col0, + 67 AS col0
----
108
67

query I rowsort
SELECT ALL + 96 * + 6 AS col0
----
576

query II rowsort
SELECT ALL 80 + + + 42 AS col1, - 61 + - 4 AS col0
----
122
-65

query I rowsort
SELECT DISTINCT - 80 * + 27 AS col1
----
-2160

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

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT 15 + + + 80 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 45 * + 47
----
2115

query I rowsort
SELECT 81 * ( 5 ) AS col2
----
405

query I rowsort
SELECT ALL 50 + 67 AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL - 62 + MAX( DISTINCT - 95 )
----
-157

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL - 62 + MAX ( DISTINCT - 95 )
----
-157

query II rowsort
SELECT 71 * - 17 col2, + 64
----
-1207
64

query I rowsort
SELECT ALL 14 * + + 98 AS col2
----
1372

query I rowsort
SELECT DISTINCT - 44 - - + 40 + + + 23
----
19

query II rowsort
SELECT 96 * + 86 AS col0, 50
----
8256
50

query I rowsort
SELECT ALL - ( + 29 ) * NULLIF ( 70, - 12 ) AS col0
----
-2030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3769
SELECT ALL - COALESCE ( - MIN( - + 19 ), - 97 * - 10 + + 11 * - + 69 DIV - 27 )
----
-19

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL - COALESCE ( - MIN ( - + 19 ), - 97 * - 10 + + 11 * - + 69 / - 27 )
----
-19

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

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

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

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

query I rowsort
SELECT + 31 * 43
----
1333

query I rowsort
SELECT 89 + 41
----
130

query I rowsort
SELECT ALL - + 12 * - 78
----
936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3775
SELECT MIN( ALL + + ( - 41 ) ) / CAST( NULL AS SIGNED ) * - 3 + + COALESCE ( 76, 71, - + 20 ) * - - 99 / + ( - 50 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3775
SELECT MIN ( ALL + + ( - 41 ) ) / CAST ( NULL AS INTEGER ) * - 3 + + COALESCE ( 76, 71, - + 20 ) * - - 99 / + ( - 50 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ALL MIN( - 41 ) + - - 31
----
-10

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL MIN ( - 41 ) + - - 31
----
-10

query I rowsort
SELECT ( + 3 ) + - 82
----
-79

query I rowsort
SELECT + ( 52 ) col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT - 11 * - + ( - CASE - 28 WHEN - + ( CASE - 48 WHEN - - 30 THEN - - 82 WHEN COUNT( * ) THEN NULL ELSE - NULLIF ( 92, + 28 ) END ) THEN - 30 WHEN + 34 + + - 11 + + 79 THEN + 74 + + CAST( NULL AS SIGNED ) + - 48 + + + ( - 84 ) WHEN COUNT( * ) THEN + MAX( DISTINCT 30 ) / CAST( NULL AS SIGNED ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT - 11 * - + ( - CASE - 28 WHEN - + ( CASE - 48 WHEN - - 30 THEN - - 82 WHEN COUNT ( * ) THEN NULL ELSE - NULLIF ( 92, + 28 ) END ) THEN - 30 WHEN + 34 + + - 11 + + 79 THEN + 74 + + CAST ( NULL AS INTEGER ) + - 48 + + + ( - 84 ) WHEN COUNT ( * ) THEN + MAX ( DISTINCT 30 ) / CAST ( NULL AS INTEGER ) END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3780
SELECT 58 - - COUNT( * ), - 50 * + 28 AS col1
----
59
-1400

skipif mysql # not compatible
query II rowsort label-3780
SELECT 58 - - COUNT ( * ), - 50 * + 28 AS col1
----
59
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT DISTINCT - - MAX( DISTINCT + 30 ) + - 72 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT - - MAX ( DISTINCT + 30 ) + - 72 AS col0
----
-42

query I rowsort
SELECT 35 * 74
----
2590

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

query I rowsort
SELECT + 47 * + 48 * + 29 AS col2
----
65424

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL - + 20 + + 40 * + 45 * + 52 * - + 83 * - COUNT( * ) + 80
----
7768860

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL - + 20 + + 40 * + 45 * + 52 * - + 83 * - COUNT ( * ) + 80
----
7768860

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

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

query I rowsort
SELECT ALL - 67 * + + ( - 21 ) AS col0
----
1407

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT ALL - + 45 + - 53 * - + SUM( - 67 )
----
-3596

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL - + 45 + - 53 * - + SUM ( - 67 )
----
-3596

query II rowsort
SELECT 55 AS col1, 96 * + 89 * 8 + + - 21
----
55
68331

query I rowsort
SELECT ALL 62 + + 18
----
80

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

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

query I rowsort
SELECT 52 * - - 21 col0
----
1092

query I rowsort
SELECT 55 + + 83
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT 61 + - 73 + - COUNT( * ) + + + COALESCE ( - + ( + 70 ), - 8 ) + 90 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3794
SELECT 61 + - 73 + - COUNT ( * ) + + + COALESCE ( - + ( + 70 ), - 8 ) + 90 AS col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3795
SELECT ALL 3 DIV SUM( - - 16 )
----
0

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL 3 / SUM ( - - 16 )
----
0

query I rowsort
SELECT ALL + 58 - - + 71
----
129

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT COUNT( * ) + - NULLIF ( + - 66, + 78 ) - - 37 * + 32 AS col2
----
1251

skipif mysql # not compatible
query I rowsort label-3800
SELECT COUNT ( * ) + - NULLIF ( + - 66, + 78 ) - - 37 * + 32 AS col2
----
1251

onlyif mysql # DIV for integer division: 
query I rowsort label-3801
SELECT ALL 60 * - - 15 DIV - 5
----
-180

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL 60 * - - 15 / - 5
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT - 32 * - MAX( DISTINCT - 75 ) + + + 83 AS col1
----
-2317

skipif mysql # not compatible
query I rowsort label-3802
SELECT - 32 * - MAX ( DISTINCT - 75 ) + + + 83 AS col1
----
-2317

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3804
SELECT + CASE + 43 WHEN - + CAST( + - 69 AS SIGNED ) THEN NULL WHEN - + 82 * + - 93 * 26 * 95 / - CAST( NULL AS SIGNED ) THEN + - 41 * + + 65 + - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT + CASE + 43 WHEN - + CAST ( + - 69 AS INTEGER ) THEN NULL WHEN - + 82 * + - 93 * 26 * 95 / - CAST ( NULL AS INTEGER ) THEN + - 41 * + + 65 + - + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT - MIN( DISTINCT + + 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT - MIN ( DISTINCT + + 6 ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT - 24 * + - MIN( DISTINCT + ( - 36 ) )
----
-864

skipif mysql # not compatible
query I rowsort label-3806
SELECT - 24 * + - MIN ( DISTINCT + ( - 36 ) )
----
-864

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3809
SELECT ALL + + 49 * - 37 * - ( - CAST( - COUNT( * ) AS SIGNED ) ) + - + COUNT( * ) - 80 col2
----
1732

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL + + 49 * - 37 * - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) + - + COUNT ( * ) - 80 col2
----
1732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3810
SELECT DISTINCT + CASE - 75 WHEN + 93 THEN - - CAST( NULL AS SIGNED ) + - 66 + - COALESCE ( + + COUNT( + - 92 ), 51 ) * + - 0 WHEN - - 48 + - - ( 34 ) THEN NULL ELSE - 5 END
----
-5

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT + CASE - 75 WHEN + 93 THEN - - CAST ( NULL AS INTEGER ) + - 66 + - COALESCE ( + + COUNT ( + - 92 ), 51 ) * + - 0 WHEN - - 48 + - - ( 34 ) THEN NULL ELSE - 5 END
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3811
SELECT SUM( + - 68 ) * + - SUM( ALL - - ( - 55 ) ) - - - 70 DIV + COUNT( DISTINCT + + 10 ) AS col1
----
-3810

skipif mysql # not compatible
query I rowsort label-3811
SELECT SUM ( + - 68 ) * + - SUM ( ALL - - ( - 55 ) ) - - - 70 / + COUNT ( DISTINCT + + 10 ) AS col1
----
-3810

onlyif mysql # DIV for integer division: 
query II rowsort label-3812
SELECT + + ( 25 ) DIV + NULLIF ( 61, - 28 ) col2, 59 + - 63 + - ( + 10 ) AS col2
----
0
-14

skipif mysql # not compatible
query II rowsort label-3812
SELECT + + ( 25 ) / + NULLIF ( 61, - 28 ) col2, 59 + - 63 + - ( + 10 ) AS col2
----
0
-14

query I rowsort
SELECT - + 1 * - + 48 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT - COUNT( * ) * + 76 + - 13 col0
----
-89

skipif mysql # not compatible
query I rowsort label-3814
SELECT - COUNT ( * ) * + 76 + - 13 col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT + NULLIF ( COUNT( * ), CASE + 59 WHEN + ( 13 ) THEN NULL WHEN + - ( + 10 ) THEN + - SUM( - 94 ) * 30 + - + COUNT( * ) ELSE NULL END * + 26 )
----
1

skipif mysql # not compatible
query I rowsort label-3815
SELECT + NULLIF ( COUNT ( * ), CASE + 59 WHEN + ( 13 ) THEN NULL WHEN + - ( + 10 ) THEN + - SUM ( - 94 ) * 30 + - + COUNT ( * ) ELSE NULL END * + 26 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT - + COUNT( * ) + + + 13 * 42 AS col2
----
545

skipif mysql # not compatible
query I rowsort label-3816
SELECT - + COUNT ( * ) + + + 13 * 42 AS col2
----
545

query I rowsort
SELECT DISTINCT 10 * 20
----
200

query I rowsort
SELECT ALL + 85 + - 62
----
23

query I rowsort
SELECT DISTINCT - 27 + + 98 AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3820
SELECT + 11 * 49 / CAST( NULL AS SIGNED ) AS col1, - 58 AS col2
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-3820
SELECT + 11 * 49 / CAST ( NULL AS INTEGER ) AS col1, - 58 AS col2
----
NULL
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3821
SELECT + CAST( NULL AS DECIMAL ) * - - 87 * 62 + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3821
SELECT + CAST ( NULL AS REAL ) * - - 87 * 62 + + 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3822
SELECT ALL CASE 20 WHEN + - 38 + - - 93 + - COUNT( * ) THEN - COALESCE ( + CAST( - + 96 AS SIGNED ), - 36 ) + NULLIF ( - 80, + 71 + - - 83 ) / - + 24 * 77 * + + CASE + ( + SUM( DISTINCT + 65 ) ) WHEN + + NULLIF ( - 84, + - 69 ) * ( + + 72 ) * ( - + 5 ) + - ( 27 ) + + - 5 + - NULLIF ( - 36, - 29 ) THEN 78 + + - 58 END WHEN + ( - COALESCE ( 82, + COUNT( * ) ) ) THEN 15 WHEN 30 * - 81 * 66 / 69 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL CASE 20 WHEN + - 38 + - - 93 + - COUNT ( * ) THEN - COALESCE ( + CAST ( - + 96 AS INTEGER ), - 36 ) + NULLIF ( - 80, + 71 + - - 83 ) / - + 24 * 77 * + + CASE + ( + SUM ( DISTINCT + 65 ) ) WHEN + + NULLIF ( - 84, + - 69 ) * ( + + 72 ) * ( - + 5 ) + - ( 27 ) + + - 5 + - NULLIF ( - 36, - 29 ) THEN 78 + + - 58 END WHEN + ( - COALESCE ( 82, + COUNT ( * ) ) ) THEN 15 WHEN 30 * - 81 * 66 / 69 THEN + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3823
SELECT + COALESCE ( ( - 84 ), CASE + COUNT( * ) WHEN - + 10 + - + MIN( - + 11 ) + - 87 THEN NULL WHEN - - 64 THEN + NULLIF ( + 63, + + CASE - COUNT( * ) WHEN 34 + + + 20 THEN NULL ELSE + ( - - 51 ) / + - CAST( - - 76 AS SIGNED ) / + 22 * COUNT( * ) END + + MIN( - 19 ) ) + ( - 81 ) END ) * - - 8 * + 46
----
-30912

skipif mysql # not compatible
query I rowsort label-3823
SELECT + COALESCE ( ( - 84 ), CASE + COUNT ( * ) WHEN - + 10 + - + MIN ( - + 11 ) + - 87 THEN NULL WHEN - - 64 THEN + NULLIF ( + 63, + + CASE - COUNT ( * ) WHEN 34 + + + 20 THEN NULL ELSE + ( - - 51 ) / + - CAST ( - - 76 AS INTEGER ) / + 22 * COUNT ( * ) END + + MIN ( - 19 ) ) + ( - 81 ) END ) * - - 8 * + 46
----
-30912

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

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

query I rowsort
SELECT DISTINCT + 44 - + 42 AS col1
----
2

query I rowsort
SELECT DISTINCT NULLIF ( + NULLIF ( - - 11, + 58 ), + CASE + 21 WHEN - 97 / + 67 THEN NULL ELSE + - 26 END + + 45 )
----
11

query I rowsort
SELECT - ( + 37 ) * - + 64 + - - 75 * + 33 AS col2
----
4843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3828
SELECT - COUNT( * ) AS col0, NULLIF ( CAST( NULL AS SIGNED ), + 95 + CAST( NULL AS SIGNED ) + - 79 )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3828
SELECT - COUNT ( * ) AS col0, NULLIF ( CAST ( NULL AS INTEGER ), + 95 + CAST ( NULL AS INTEGER ) + - 79 )
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT DISTINCT + 45 - + 45 / + CAST( NULL AS SIGNED ) * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT + 45 - + 45 / + CAST ( NULL AS INTEGER ) * 37
----
NULL

query II rowsort
SELECT ALL + 27 * + - 40 AS col1, - 99
----
-1080
-99

query I rowsort
SELECT - ( - - 74 ) * + 61
----
-4514

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3832
SELECT - 31 AS col1, 55 * - + 87 + + + MIN( + + 13 ) + + COUNT( * ) DIV + 39 AS col1
----
-31
-4772

skipif mysql # not compatible
query II rowsort label-3832
SELECT - 31 AS col1, 55 * - + 87 + + + MIN ( + + 13 ) + + COUNT ( * ) / + 39 AS col1
----
-31
-4772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3833
SELECT - CAST( NULL AS SIGNED ) * - 52 * - 29 * + + 28 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT - CAST ( NULL AS INTEGER ) * - 52 * - 29 * + + 28 col1
----
NULL

query I rowsort
SELECT + 7 * + 28 AS col2
----
196

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3837
SELECT ALL + + 58 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + + 58 / + 93
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3838
SELECT + COALESCE ( - COUNT( * ), 73 + + 83 ) DIV + 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3838
SELECT + COALESCE ( - COUNT ( * ), 73 + + 83 ) / + 5 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3839
SELECT DISTINCT - + 61 DIV - 77 + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT - + 61 / - 77 + COUNT ( * ) col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT - + ( 64 ) * CASE - + 12 WHEN + 90 * + 68 THEN 35 * + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT - + ( 64 ) * CASE - + 12 WHEN + 90 * + 68 THEN 35 * + - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 70 + 72 * 49 * + ( - 93 )
----
-328174

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT - 66 DIV 29 - + 99 * + 24 + 54 + + + 75 - + + 52 AS col1
----
-2301

skipif mysql # not compatible
query I rowsort label-3843
SELECT - 66 / 29 - + 99 * + 24 + 54 + + + 75 - + + 52 AS col1
----
-2301

query I rowsort
SELECT ALL - 41 * + 86 + + 56 * 83
----
1122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3845
SELECT DISTINCT + 90 / + CASE 54 WHEN - - 75 + - + CAST( + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) * - - 93 * 75 THEN + - 59 + + - 54 ELSE NULL END * + 43 + - 38 / 21 * + - 5 * - - 54 * + ( - + AVG ( DISTINCT - 62 ) ) * - CASE + 81 WHEN + 86 THEN + COUNT( * ) WHEN + 55 + 16 THEN NULL ELSE - 29 END + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT + 90 / + CASE 54 WHEN - - 75 + - + CAST ( + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) * - - 93 * 75 THEN + - 59 + + - 54 ELSE NULL END * + 43 + - 38 / 21 * + - 5 * - - 54 * + ( - + AVG ( DISTINCT - 62 ) ) * - CASE + 81 WHEN + 86 THEN + COUNT ( * ) WHEN + 55 + 16 THEN NULL ELSE - 29 END + + 97
----
NULL

query II rowsort
SELECT 83 col1, ( - 70 )
----
83
-70

query II rowsort
SELECT - 80, - 46 + - - 10 + - 7 * + 62 AS col2
----
-80
-470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3848
SELECT ALL + CAST( NULL AS SIGNED ) * + ( + 59 ) / + 45 * 31 + - 56 + + - 22 + + COUNT( * ) * - 29 + COUNT( * ) * - - 69 + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( + 59 ) / + 45 * 31 + - 56 + + - 22 + + COUNT ( * ) * - 29 + COUNT ( * ) * - - 69 + 94
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3849
SELECT + + 11 + - 70 DIV 47
----
10

skipif mysql # not compatible
query I rowsort label-3849
SELECT + + 11 + - 70 / 47
----
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL - + COUNT( * ) * + - 60 * - 14 + 45
----
-795

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL - + COUNT ( * ) * + - 60 * - 14 + 45
----
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT + COALESCE ( - 5, 50 * + + COUNT( * ) + 29 + + - 66 + + 9 * + 62, 99, - + 55 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT + COALESCE ( - 5, 50 * + + COUNT ( * ) + 29 + + - 66 + + 9 * + 62, 99, - + 55 ) AS col1
----
-5

query I rowsort
SELECT + - 28 * - 70
----
1960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT ALL 65 * + + 4 * - 22 - COUNT( * ) col0
----
-5721

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL 65 * + + 4 * - 22 - COUNT ( * ) col0
----
-5721

query I rowsort
SELECT COALESCE ( COALESCE ( 87, - 67 ), + 47 + 28 ) AS col0
----
87

query I rowsort
SELECT ALL + 30 * - 40 * + - 88
----
105600

query II rowsort
SELECT + 33 - - + 1, + 38 * - + 83 AS col1
----
34
-3154

query I rowsort
SELECT DISTINCT ( + 85 ) AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3860
SELECT ALL 91 * 75 AS col0, - 0 * - 57 * - SUM( - 49 ) * - + 62 DIV - + COUNT( * ) * - MIN( DISTINCT 76 )
----
6825
0

skipif mysql # not compatible
query II rowsort label-3860
SELECT ALL 91 * 75 AS col0, - 0 * - 57 * - SUM ( - 49 ) * - + 62 / - + COUNT ( * ) * - MIN ( DISTINCT 76 )
----
6825
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3861
SELECT DISTINCT 50 * - 58 AS col0, 70 / - 47 * - CAST( - COUNT( * ) AS SIGNED ) + CAST( NULL AS SIGNED ) col0
----
-2900
NULL

skipif mysql # not compatible
query II rowsort label-3861
SELECT DISTINCT 50 * - 58 AS col0, 70 / - 47 * - CAST ( - COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) col0
----
-2900
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT ALL CAST( - ( - - 18 ) AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL CAST ( - ( - - 18 ) AS INTEGER )
----
-18

query I rowsort
SELECT - ( - 55 ) - - 4
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT DISTINCT CASE ( 56 ) WHEN - 45 + + COUNT( * ) THEN - 83 / 63 + - + 55 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT CASE ( 56 ) WHEN - 45 + + COUNT ( * ) THEN - 83 / 63 + - + 55 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT + 67 DIV - + 45
----
-1

skipif mysql # not compatible
query I rowsort label-3865
SELECT + 67 / - + 45
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT + ( MIN( - - 87 ) ) + + + CASE + 21 WHEN + - ( + AVG ( DISTINCT - ( + - 85 ) ) ) THEN COUNT( * ) * SUM( - 63 ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3866
SELECT + ( MIN ( - - 87 ) ) + + + CASE + 21 WHEN + - ( + AVG ( DISTINCT - ( + - 85 ) ) ) THEN COUNT ( * ) * SUM ( - 63 ) ELSE NULL END col0
----
NULL

query II rowsort
SELECT - 49 * - - 61 AS col0, 16 * 10 col0
----
-2989
160

query II rowsort
SELECT 96 + 42, + 6 * 13 AS col2
----
138
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3869
SELECT DISTINCT - 86 + + - 95 + - ( - 79 ) * - 33 - + + CAST( NULL AS SIGNED ) + + + 53 col0, + SUM( DISTINCT - ( + + 98 ) ) AS col2
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-3869
SELECT DISTINCT - 86 + + - 95 + - ( - 79 ) * - 33 - + + CAST ( NULL AS INTEGER ) + + + 53 col0, + SUM ( DISTINCT - ( + + 98 ) ) AS col2
----
NULL
-98

query II rowsort
SELECT ALL + 96 * - 61, 78 * + + 67 AS col1
----
-5856
5226

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

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

query I rowsort
SELECT DISTINCT + 23 + 41 + - ( + 82 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT ALL - MIN( 28 ) + - 68
----
-96

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL - MIN ( 28 ) + - 68
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT DISTINCT + 14 * - 54 * - COUNT( + 49 ) * 67 * - 36 col0
----
-1823472

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT + 14 * - 54 * - COUNT ( + 49 ) * 67 * - 36 col0
----
-1823472

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT COUNT( * ) + 53 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3875
SELECT COUNT ( * ) + 53 AS col1
----
54

query II rowsort
SELECT ALL + 45 * 90 AS col2, - 12 + 26 col2
----
4050
14

query II rowsort
SELECT + 24 + - + 63 AS col0, - 10
----
-39
-10

query I rowsort
SELECT DISTINCT - + 56 * - 76 AS col1
----
4256

query I rowsort
SELECT ( 61 ) * + 94
----
5734

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT 1 DIV 36 + - 51 + + 27 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3880
SELECT 1 / 36 + - 51 + + 27 AS col1
----
-24

query I rowsort
SELECT ALL - 95 + - - 56 col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT COALESCE ( - 59, - COUNT( * ) * 75 + - 67 * 80 ) + 52 + + 47 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-3882
SELECT COALESCE ( - 59, - COUNT ( * ) * 75 + - 67 * 80 ) + 52 + + 47 AS col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3883
SELECT ALL + + 43 + - 35 DIV - CASE WHEN NOT NULL BETWEEN + 79 AND - 18 THEN NULL ELSE + 40 * + 92 END AS col0, - 84 * + SUM( DISTINCT + + 62 )
----
43
-5208

skipif mysql # not compatible
query II rowsort label-3883
SELECT ALL + + 43 + - 35 / - CASE WHEN NOT NULL BETWEEN + 79 AND - 18 THEN NULL ELSE + 40 * + 92 END AS col0, - 84 * + SUM ( DISTINCT + + 62 )
----
43
-5208

onlyif mysql # DIV for integer division: 
query II rowsort label-3884
SELECT ALL 44 DIV 73 AS col0, 3 * 41 col2
----
0
123

skipif mysql # not compatible
query II rowsort label-3884
SELECT ALL 44 / 73 AS col0, 3 * 41 col2
----
0
123

query I rowsort
SELECT 90 * + 6 + 34 + - 56 * 82
----
-4018

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3886
SELECT DISTINCT - COALESCE ( + COALESCE ( + ( ( + + COUNT( * ) ) ), + - 16 ), + - 34 * COUNT( * ) * + 21 + - 68 + + 38 * - 23 ) DIV + + 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT - COALESCE ( + COALESCE ( + ( ( + + COUNT ( * ) ) ), + - 16 ), + - 34 * COUNT ( * ) * + 21 + - 68 + + 38 * - 23 ) / + + 32 AS col1
----
0

query I rowsort
SELECT ALL - 80 - - 23
----
-57

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3889
SELECT ALL - - 38 DIV - COUNT( * ) + - 6
----
-44

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL - - 38 / - COUNT ( * ) + - 6
----
-44

query I rowsort
SELECT 13 * + ( ( - 21 ) ) AS col0
----
-273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3891
SELECT DISTINCT - 35 * - + NULLIF ( - CASE - - 4 WHEN - COUNT( * ) + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - + 39 * + 56 THEN + CAST( NULL AS SIGNED ) ELSE NULL END, + + 19 ) * + 89 + + + 53 + 98 * - 84 * - 63 * - - CAST( + - 41 AS DECIMAL ) + 28 / AVG ( - 82 ) * - 40 - - ( - - 33 ) / + 92 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT - 35 * - + NULLIF ( - CASE - - 4 WHEN - COUNT ( * ) + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - + 39 * + 56 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END, + + 19 ) * + 89 + + + 53 + 98 * - 84 * - 63 * - - CAST ( + - 41 AS REAL ) + 28 / AVG ( - 82 ) * - 40 - - ( - - 33 ) / + 92 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3892
SELECT 97 * COUNT( * ) + - - 5 DIV - 81
----
97

skipif mysql # not compatible
query I rowsort label-3892
SELECT 97 * COUNT ( * ) + - - 5 / - 81
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3893
SELECT 92 * - NULLIF ( 79, + 26 + COUNT( * ) * + CASE COALESCE ( + 13, + 48 ) WHEN - + 89 THEN + 67 * - 8 + - 26 END ), 6 col0
----
-7268
6

skipif mysql # not compatible
query II rowsort label-3893
SELECT 92 * - NULLIF ( 79, + 26 + COUNT ( * ) * + CASE COALESCE ( + 13, + 48 ) WHEN - + 89 THEN + 67 * - 8 + - 26 END ), 6 col0
----
-7268
6

query I rowsort
SELECT ALL + 71 * - 69 AS col1
----
-4899

query I rowsort
SELECT ALL + 62 * + + 87
----
5394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3896
SELECT COUNT( - ( + 31 ) ) + - ( + COUNT( * ) ) + - 42 DIV - 50 + + 7 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-3896
SELECT COUNT ( - ( + 31 ) ) + - ( + COUNT ( * ) ) + - 42 / - 50 + + 7 AS col2
----
7

query I rowsort
SELECT 90 * + + 72
----
6480

query I rowsort
SELECT 96 + + 16 + - - 73 * + 3 AS col0
----
331

onlyif mysql # aggregate syntax: 
query II rowsort label-3899
SELECT 57 AS col1, SUM( ALL - + 66 ) + - 72
----
57
-138

skipif mysql # not compatible
query II rowsort label-3899
SELECT 57 AS col1, SUM ( ALL - + 66 ) + - 72
----
57
-138

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

query I rowsort
SELECT 5 * - 60
----
-300

query I rowsort
SELECT ALL 1 + NULLIF ( - 23, + NULLIF ( - 56, + - AVG ( ALL 36 ) ) ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL + NULLIF ( + 93, MAX( 2 ) + + 52 ) + - - 19 AS col0
----
112

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL + NULLIF ( + 93, MAX ( 2 ) + + 52 ) + - - 19 AS col0
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-3904
SELECT 95 AS col2, + SUM( 19 ) + - ( - COUNT( * ) )
----
95
20

skipif mysql # not compatible
query II rowsort label-3904
SELECT 95 AS col2, + SUM ( 19 ) + - ( - COUNT ( * ) )
----
95
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3905
SELECT ALL CASE CAST( + 89 AS SIGNED ) WHEN - + 24 THEN + - NULLIF ( 10, MIN( DISTINCT 70 ) ) END + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL CASE CAST ( + 89 AS INTEGER ) WHEN - + 24 THEN + - NULLIF ( 10, MIN ( DISTINCT 70 ) ) END + 89
----
NULL

query I rowsort
SELECT DISTINCT CASE - - 42 WHEN 10 THEN + NULLIF ( 0, - 50 ) END * + 88 * - 18 + 55 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3907
SELECT ALL - ( + CASE ( - + 9 ) WHEN + 44 THEN NULL WHEN + + 22 + + 49 * - 31 / + MAX( - - 16 ) THEN - + ( + 1 ) * - 69 * + - 23 * - 37 * - 89 * - - 91 + - 42 + - CAST( - 17 AS SIGNED ) ELSE NULL END ) + CAST( NULL AS SIGNED ) + + 53 + 54 + - COUNT( * ) * - - ( - 34 ) - + + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL - ( + CASE ( - + 9 ) WHEN + 44 THEN NULL WHEN + + 22 + + 49 * - 31 / + MAX ( - - 16 ) THEN - + ( + 1 ) * - 69 * + - 23 * - 37 * - 89 * - - 91 + - 42 + - CAST ( - 17 AS INTEGER ) ELSE NULL END ) + CAST ( NULL AS INTEGER ) + + 53 + 54 + - COUNT ( * ) * - - ( - 34 ) - + + 22 AS col0
----
NULL

query II rowsort
SELECT ALL 43 AS col0, - 1 + + + 95
----
43
94

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3910
SELECT COUNT( * ), 68 DIV + 54 AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-3910
SELECT COUNT ( * ), 68 / + 54 AS col0
----
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3911
SELECT 89 DIV - - 49 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3911
SELECT 89 / - - 49 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3912
SELECT - 22 DIV 14 col0
----
-1

skipif mysql # not compatible
query I rowsort label-3912
SELECT - 22 / 14 col0
----
-1

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

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

query I rowsort
SELECT 79 * 46 AS col1
----
3634

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT 66 - 78 + CASE - - SUM( DISTINCT + 32 ) WHEN - 87 THEN - MIN( ALL - CASE + 89 WHEN - 50 THEN 54 ELSE NULL END ) + - COUNT( * ) END * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT 66 - 78 + CASE - - SUM ( DISTINCT + 32 ) WHEN - 87 THEN - MIN ( ALL - CASE + 89 WHEN - 50 THEN 54 ELSE NULL END ) + - COUNT ( * ) END * 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3916
SELECT ALL CASE - MIN( DISTINCT + + 70 ) WHEN + ( + 41 ) * - 99 * + CAST( NULL AS SIGNED ) + 44 + 70 * - 72 THEN + 35 WHEN 88 THEN + COUNT( * ) + + 6 / - 64 * - COUNT( * ) + 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL CASE - MIN ( DISTINCT + + 70 ) WHEN + ( + 41 ) * - 99 * + CAST ( NULL AS INTEGER ) + 44 + 70 * - 72 THEN + 35 WHEN 88 THEN + COUNT ( * ) + + 6 / - 64 * - COUNT ( * ) + 34 END
----
NULL

query I rowsort
SELECT DISTINCT + 22 + + + 83 + + + 79 col1
----
184

query I rowsort
SELECT DISTINCT - 0 * + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT DISTINCT 65 * + COUNT( * ) - 3 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT 65 * + COUNT ( * ) - 3 AS col2
----
62

query II rowsort
SELECT + 65 AS col2, + 82 AS col1
----
65
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT ALL - - ( + + ( + - COUNT( * ) ) ) * 35 + - 46 * - 93 AS col0
----
4243

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL - - ( + + ( + - COUNT ( * ) ) ) * 35 + - 46 * - 93 AS col0
----
4243

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT ALL + 45 * - - MIN( NULLIF ( + 23, + + 91 ) ) - 45 + - 40
----
950

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL + 45 * - - MIN ( NULLIF ( + 23, + + 91 ) ) - 45 + - 40
----
950

query II rowsort
SELECT ALL - 79 col0, COALESCE ( - 9, + - 95 )
----
-79
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3924
SELECT + 19 DIV + 50 - + + 35 - COUNT( * ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-3924
SELECT + 19 / + 50 - + + 35 - COUNT ( * ) AS col0
----
-36

query II rowsort
SELECT 69 * - + ( - + 52 ) AS col2, 33 col0
----
3588
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3926
SELECT ALL - 16 * + + CAST( NULL AS SIGNED ) - 49 AS col0, + 96 * + 31 AS col0
----
NULL
2976

skipif mysql # not compatible
query II rowsort label-3926
SELECT ALL - 16 * + + CAST ( NULL AS INTEGER ) - 49 AS col0, + 96 * + 31 AS col0
----
NULL
2976

onlyif mysql # DIV for integer division: 
query I rowsort label-3927
SELECT - COALESCE ( - 34, 77, - - 96 ) DIV + 26
----
1

skipif mysql # not compatible
query I rowsort label-3927
SELECT - COALESCE ( - 34, 77, - - 96 ) / + 26
----
1

query II rowsort
SELECT DISTINCT - - 79, ( + 7 ) AS col0
----
79
7

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3931
SELECT ALL + 3 DIV 18
----
0

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL + 3 / 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT DISTINCT + 86 + - + 16 + + + 95 - - COUNT( * )
----
166

skipif mysql # not compatible
query I rowsort label-3932
SELECT DISTINCT + 86 + - + 16 + + + 95 - - COUNT ( * )
----
166

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3933
SELECT NULLIF ( - CAST( NULL AS DECIMAL ), + COUNT( * ) ) * - - 58 - + 7 + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT NULLIF ( - CAST ( NULL AS REAL ), + COUNT ( * ) ) * - - 58 - + 7 + 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3934
SELECT + 8 * - 53 * + CAST( - + 94 AS SIGNED ) AS col0, CASE - 6 WHEN + + 40 THEN NULL WHEN - ( 27 ) + + CAST( NULL AS SIGNED ) * - + COUNT( * ) + 89 THEN NULL ELSE - 80 * - 61 + - CASE - 87 WHEN - 41 + + 19 THEN 80 + - NULLIF ( 91, 50 ) WHEN + 0 + + + 33 THEN NULL WHEN 18 THEN NULL ELSE - - ( + COUNT( * ) ) END END + 69 AS col2
----
39856
4948

skipif mysql # not compatible
query II rowsort label-3934
SELECT + 8 * - 53 * + CAST ( - + 94 AS INTEGER ) AS col0, CASE - 6 WHEN + + 40 THEN NULL WHEN - ( 27 ) + + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + 89 THEN NULL ELSE - 80 * - 61 + - CASE - 87 WHEN - 41 + + 19 THEN 80 + - NULLIF ( 91, 50 ) WHEN + 0 + + + 33 THEN NULL WHEN 18 THEN NULL ELSE - - ( + COUNT ( * ) ) END END + 69 AS col2
----
39856
4948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3935
SELECT - 20 - + CASE - 0 WHEN - + 23 THEN NULL WHEN - COUNT( * ) THEN - 74 + + 8 END * + 61 / CAST( NULL AS SIGNED ) + + 85 + + + COALESCE ( - + 62, - - COUNT( ALL 51 ) * - 39 * + + 75, + - SUM( - 4 ) + + COUNT( * ) + - CAST( + 85 AS DECIMAL ) ) - - 50 + - ( - 27 ) / - 46 * + - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT - 20 - + CASE - 0 WHEN - + 23 THEN NULL WHEN - COUNT ( * ) THEN - 74 + + 8 END * + 61 / CAST ( NULL AS INTEGER ) + + 85 + + + COALESCE ( - + 62, - - COUNT ( ALL 51 ) * - 39 * + + 75, + - SUM ( - 4 ) + + COUNT ( * ) + - CAST ( + 85 AS REAL ) ) - - 50 + - ( - 27 ) / - 46 * + - 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL CASE - COALESCE ( + 46, + NULLIF ( + 47, + 91 ) ) WHEN + COUNT( * ) THEN - - COUNT( * ) END + + COUNT( * ) * + 98 - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL CASE - COALESCE ( + 46, + NULLIF ( + 47, + 91 ) ) WHEN + COUNT ( * ) THEN - - COUNT ( * ) END + + COUNT ( * ) * + 98 - - 41
----
NULL

query I rowsort
SELECT + 96 - + - 54 AS col0
----
150

query I rowsort
SELECT + 66 - + 14 AS col0
----
52

query I rowsort
SELECT + 36 + - - ( - 85 )
----
-49

query I rowsort
SELECT + 42 - + - 61
----
103

query I rowsort
SELECT ALL - 62 * + 86
----
-5332

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3942
SELECT DISTINCT 8 - ( + 23 ) - - 31 AS col0, ( + MIN( - 27 ) ) DIV - - 48
----
16
0

skipif mysql # not compatible
query II rowsort label-3942
SELECT DISTINCT 8 - ( + 23 ) - - 31 AS col0, ( + MIN ( - 27 ) ) / - - 48
----
16
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT DISTINCT + 35 * - 58 * + + COUNT( * )
----
-2030

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT + 35 * - 58 * + + COUNT ( * )
----
-2030

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3945
SELECT ALL 65 * - CAST( NULL AS SIGNED ) * 81 * - - 38 + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL 65 * - CAST ( NULL AS INTEGER ) * 81 * - - 38 + 28
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3946
SELECT ALL 69 * ( COALESCE ( COUNT( - 3 ), + 69 DIV - - CAST( + 15 AS SIGNED ) ) ) + + 72
----
141

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL 69 * ( COALESCE ( COUNT ( - 3 ), + 69 / - - CAST ( + 15 AS INTEGER ) ) ) + + 72
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3947
SELECT ALL + NULLIF ( 72, + CAST( 85 AS SIGNED ) * + 76 + - + 80 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL + NULLIF ( 72, + CAST ( 85 AS INTEGER ) * + 76 + - + 80 ) AS col2
----
72

query I rowsort
SELECT + + ( - ( + - 90 ) ) * + + 25
----
2250

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

skipif mysql # not compatible
query I rowsort label-3949
SELECT + NULLIF ( + COUNT ( ALL CAST ( - 86 AS INTEGER ) ), 39 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3950
SELECT + SUM( DISTINCT - 86 ) + - CAST( NULL AS SIGNED ) + 35 AS col1
----
NULL

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

query I rowsort
SELECT - 56 + - 51 col2
----
-107

query I rowsort
SELECT DISTINCT + 99 * + - 52
----
-5148

query I rowsort
SELECT NULLIF ( + 47, + 15 ) AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT - 8 DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-3954
SELECT - 8 / + 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT ALL - ( - 98 ) * 33 * 4 + 21 + - MIN( ALL + - 69 ) + + 16 AS col1
----
13042

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL - ( - 98 ) * 33 * 4 + 21 + - MIN ( ALL + - 69 ) + + 16 AS col1
----
13042

query I rowsort
SELECT + 0 * - ( + - 94 ) + 33 AS col0
----
33

query I rowsort
SELECT DISTINCT 12 * + 81 * - 81 + - 50 + + ( + - 94 ) AS col2
----
-78876

query I rowsort
SELECT - 96 + - ( + ( + + 50 ) ) AS col1
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT ALL 18 * 79 DIV + 43 + + 19 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL 18 * 79 / + 43 + + 19 AS col0
----
52

onlyif mysql # DIV for integer division: 
query II rowsort label-3960
SELECT ALL + COALESCE ( + 90, - 11 ) AS col1, + COALESCE ( 88, + 96 ) DIV 8 + - 68 AS col1
----
90
-57

skipif mysql # not compatible
query II rowsort label-3960
SELECT ALL + COALESCE ( + 90, - 11 ) AS col1, + COALESCE ( 88, + 96 ) / 8 + - 68 AS col1
----
90
-57

query I rowsort
SELECT ALL + 48 * - + 60 + + 4 AS col0
----
-2876

query I rowsort
SELECT + 25 * - 68 * - 45 AS col1
----
76500

query I rowsort
SELECT DISTINCT + 15 * - + 7 + + 66 - + - 98
----
59

query I rowsort
SELECT + 18 + + 29 - + 41 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3965
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * + 10 * - 20 - + ( + 26 ) AS col1
----
-226

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * + 10 * - 20 - + ( + 26 ) AS col1
----
-226

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

skipif mysql # not compatible
query I rowsort label-3966
SELECT - 89 * + COUNT ( * ) AS col1
----
-89

query I rowsort
SELECT DISTINCT + 65 * - 6 AS col0
----
-390

query I rowsort
SELECT ALL 70 - + 23
----
47

query I rowsort
SELECT - ( - ( 95 ) ) AS col2
----
95

query I rowsort
SELECT + 46 + 70
----
116

query I rowsort
SELECT + ( 94 ) * + 34 col0
----
3196

query I rowsort
SELECT ALL 28 * 39 AS col1
----
1092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT + 93 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT + 93 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( + 10 ) - 17
----
-7

query I rowsort
SELECT ALL 75 * 88 AS col2
----
6600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3976
SELECT + ( - 77 ) DIV COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-3976
SELECT + ( - 77 ) / COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT ALL 92 + - 27
----
65

query I rowsort
SELECT + ( + 90 ) + + 47
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT + ( + 58 ) DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-3979
SELECT + ( + 58 ) / 75
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3980
SELECT - 90 * MAX( ALL + ( 74 ) ) + CAST( 16 AS SIGNED )
----
-6644

skipif mysql # not compatible
query I rowsort label-3980
SELECT - 90 * MAX ( ALL + ( 74 ) ) + CAST ( 16 AS INTEGER )
----
-6644

query I rowsort
SELECT DISTINCT 80 + + 2 AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3982
SELECT 18 * + CASE - 37 WHEN - NULLIF ( COUNT( * ), - 9 + 87 ) THEN + 89 * 16 WHEN CASE 41 WHEN - COUNT( * ) + 29 THEN NULL WHEN - CAST( ( CAST( + 20 AS SIGNED ) ) AS SIGNED ) / + 47 THEN + 39 + 7 ELSE 62 END + + 27 * 8 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT 18 * + CASE - 37 WHEN - NULLIF ( COUNT ( * ), - 9 + 87 ) THEN + 89 * 16 WHEN CASE 41 WHEN - COUNT ( * ) + 29 THEN NULL WHEN - CAST ( ( CAST ( + 20 AS INTEGER ) ) AS INTEGER ) / + 47 THEN + 39 + 7 ELSE 62 END + + 27 * 8 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 41 + 51
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT ALL + CASE + 38 WHEN 26 / - COUNT( * ) + - COUNT( * ) THEN 37 ELSE 6 END + + 92 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL + CASE + 38 WHEN 26 / - COUNT ( * ) + - COUNT ( * ) THEN 37 ELSE 6 END + + 92 AS col0
----
98

query I rowsort
SELECT ( 55 ) * 63
----
3465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3986
SELECT ALL + MAX( DISTINCT 70 ) * - CAST( - 34 * 95 AS SIGNED )
----
226100

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL + MAX ( DISTINCT 70 ) * - CAST ( - 34 * 95 AS INTEGER )
----
226100

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT ALL - MIN( DISTINCT - 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL - MIN ( DISTINCT - 18 ) AS col1
----
18

query I rowsort
SELECT ALL + ( + 2 ) + - ( COALESCE ( 48, - 15, + 26 + + 56 ) ) col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT ALL - COUNT( * ) - 59 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL - COUNT ( * ) - 59 AS col1
----
-60

query I rowsort
SELECT ALL + 51 * - 28 AS col1
----
-1428

query I rowsort
SELECT 21 - 14
----
7

query I rowsort
SELECT DISTINCT - ( NULLIF ( - 35, 88 * - 37 ) ) AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3993
SELECT 30 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3993
SELECT 30 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( 27 ) * NULLIF ( 14, ( ( - 67 ) ) ) AS col2
----
378

query I rowsort
SELECT - ( - 24 ) * 61 + 46 AS col1
----
1510

query I rowsort
SELECT DISTINCT 99 * 93 AS col0
----
9207

query I rowsort
SELECT - 68 * 83
----
-5644

onlyif mysql # DIV for integer division: 
query I rowsort label-3998
SELECT ALL - + 4 DIV ( + 70 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL - + 4 / ( + 70 ) AS col2
----
0

query I rowsort
SELECT + ( + 24 ) + + 84
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ( - MIN( ALL + 84 ) ) - - MIN( DISTINCT 65 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4000
SELECT ( - MIN ( ALL + 84 ) ) - - MIN ( DISTINCT 65 ) AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4001
SELECT ALL - + SUM( 74 ) DIV - 14 col0
----
5

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL - + SUM ( 74 ) / - 14 col0
----
5

query I rowsort
SELECT 74 * 4
----
296

query I rowsort
SELECT + ( - 44 ) + 89 AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT CAST( NULL AS SIGNED ) + - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT CAST ( NULL AS INTEGER ) + - 14 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4005
SELECT 64 DIV 40
----
1

skipif mysql # not compatible
query I rowsort label-4005
SELECT 64 / 40
----
1

query I rowsort
SELECT DISTINCT - 19 * + 76
----
-1444

query I rowsort
SELECT ALL 88 * - 8 AS col1
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT - MIN( COALESCE ( ( 90 ), - 1 * 90 ) ) + COALESCE ( + 9, 96 * 26 - - COUNT( * ), 2 ) * 8 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-4008
SELECT - MIN ( COALESCE ( ( 90 ), - 1 * 90 ) ) + COALESCE ( + 9, 96 * 26 - - COUNT ( * ), 2 ) * 8 AS col0
----
-18

query I rowsort
SELECT 13 + ( 92 ) * 7 AS col2
----
657

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT DISTINCT + COUNT( * ) * + 11
----
11

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT + COUNT ( * ) * + 11
----
11

query I rowsort
SELECT ALL + - 25 + - 21
----
-46

query I rowsort
SELECT - - ( NULLIF ( 80, - 60 ) )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4013
SELECT DISTINCT - 78 + 19 DIV 48
----
-78

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT - 78 + 19 / 48
----
-78

query I rowsort
SELECT 23 + ( 55 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT + MIN( 19 ) * + NULLIF ( 39 * - 31 + 59, - COUNT( * ) * 80 )
----
-21850

skipif mysql # not compatible
query I rowsort label-4015
SELECT + MIN ( 19 ) * + NULLIF ( 39 * - 31 + 59, - COUNT ( * ) * 80 )
----
-21850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT CAST( - 90 AS SIGNED ) + + 6
----
-84

skipif mysql # not compatible
query I rowsort label-4016
SELECT CAST ( - 90 AS INTEGER ) + + 6
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4017
SELECT 13 DIV 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4017
SELECT 13 / 17 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL COUNT( * ) + - + 10
----
-9

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL COUNT ( * ) + - + 10
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT DISTINCT - NULLIF ( + 97, + 46 + - COUNT( * ) )
----
-97

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT - NULLIF ( + 97, + 46 + - COUNT ( * ) )
----
-97

query I rowsort
SELECT DISTINCT 8 + + 17 AS col0
----
25

query I rowsort
SELECT DISTINCT 20 * - + 73
----
-1460

query I rowsort
SELECT DISTINCT 26 * 97 AS col1
----
2522

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT 24 * COUNT( * ) * 52 AS col1
----
1248

skipif mysql # not compatible
query I rowsort label-4023
SELECT 24 * COUNT ( * ) * 52 AS col1
----
1248

query I rowsort
SELECT 95 + + + 0 + + CASE 4 WHEN 2 THEN - 21 - - ( 72 + 28 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 73 * 48 - - 56
----
3560

query I rowsort
SELECT DISTINCT 73 * - 16
----
-1168

query I rowsort
SELECT 14 * 88 * - 72
----
-88704

query I rowsort
SELECT 50 + 56 AS col1
----
106

query I rowsort
SELECT - 53 * - 81 + 62 AS col2
----
4355

onlyif mysql # DIV for integer division: 
query I rowsort label-4030
SELECT 33 DIV + 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4030
SELECT 33 / + 36 AS col0
----
0

query I rowsort
SELECT ALL + 20 * - 70 AS col1
----
-1400

query I rowsort
SELECT DISTINCT - 72 * + 66
----
-4752

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT + 66 * + - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-4033
SELECT + 66 * + - COUNT ( * )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT ALL + 56 * + + COUNT( * ) - + NULLIF ( 32, + CASE ( 50 ) WHEN 58 THEN + 37 - 98 END * - 64 ) col2
----
24

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL + 56 * + + COUNT ( * ) - + NULLIF ( 32, + CASE ( 50 ) WHEN 58 THEN + 37 - 98 END * - 64 ) col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT - 5 * + - SUM( 54 )
----
270

skipif mysql # not compatible
query I rowsort label-4035
SELECT - 5 * + - SUM ( 54 )
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT 56 + - + COUNT( * ) + + 94 * - 66 AS col1
----
-6149

skipif mysql # not compatible
query I rowsort label-4036
SELECT 56 + - + COUNT ( * ) + + 94 * - 66 AS col1
----
-6149

query I rowsort
SELECT - 14 * 15
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT - CASE + 93 WHEN - CASE + 92 WHEN + 30 THEN NULL WHEN - 30 + - COUNT( * ) THEN NULL ELSE 98 END THEN NULL WHEN - 32 * - 7 THEN 89 ELSE + 51 END
----
-51

skipif mysql # not compatible
query I rowsort label-4038
SELECT - CASE + 93 WHEN - CASE + 92 WHEN + 30 THEN NULL WHEN - 30 + - COUNT ( * ) THEN NULL ELSE 98 END THEN NULL WHEN - 32 * - 7 THEN 89 ELSE + 51 END
----
-51

query I rowsort
SELECT 48 + + + COALESCE ( - 77, 88 )
----
-29

query I rowsort
SELECT DISTINCT 20 + 46
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4041
SELECT + CAST( - MIN( 87 ) AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-4041
SELECT + CAST ( - MIN ( 87 ) AS INTEGER )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT DISTINCT + 87 + + + ( - 63 ) - 59 * COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT + 87 + + + ( - 63 ) - 59 * COUNT ( * ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT DISTINCT + 82 + COUNT( * ) col2
----
83

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + 82 + COUNT ( * ) col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT - SUM( DISTINCT + 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-4044
SELECT - SUM ( DISTINCT + 47 ) AS col1
----
-47

query I rowsort
SELECT + NULLIF ( - 72, - 91 ) - 33 AS col1
----
-105

query I rowsort
SELECT - 35 + - 96
----
-131

query I rowsort
SELECT - 5 * + 81
----
-405

query I rowsort
SELECT - + 52 + 43 * + 88
----
3732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4049
SELECT - CASE 58 WHEN COUNT( * ) THEN + CAST( 92 AS SIGNED ) + - 13 ELSE NULL END - 48 * SUM( + 45 / 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT - CASE 58 WHEN COUNT ( * ) THEN + CAST ( 92 AS INTEGER ) + - 13 ELSE NULL END - 48 * SUM ( + 45 / 14 )
----
NULL

query I rowsort
SELECT ALL COALESCE ( 48, - 44 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT - 41 + - 55 + - + COUNT( * ) + + MAX( ALL 61 ) * 42 * + 93
----
238169

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT - 41 + - 55 + - + COUNT ( * ) + + MAX ( ALL 61 ) * 42 * + 93
----
238169

query II rowsort
SELECT DISTINCT 53 AS col1, - 29 col2
----
53
-29

query I rowsort
SELECT DISTINCT + 76 * - + 98 - - 82 * - 91
----
-14910

query I rowsort
SELECT + 26 * - 28 AS col2
----
-728

query I rowsort
SELECT 78 * - 89 + 69
----
-6873

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT + COUNT( * ) - 84
----
-83

skipif mysql # not compatible
query I rowsort label-4056
SELECT + COUNT ( * ) - 84
----
-83

query I rowsort
SELECT COALESCE ( + 29, + 3 ) AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4058
SELECT - 90 * - CASE 2 WHEN - COUNT( * ) + 79 THEN 3 WHEN 78 THEN MIN( DISTINCT + 32 ) + 19 * - COUNT( * ) WHEN + CAST( NULL AS SIGNED ) + - CASE - 85 WHEN + AVG ( ALL - 51 ) / 15 THEN - 99 + CAST( - 80 AS DECIMAL ) * 70 END * - 9 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT - 90 * - CASE 2 WHEN - COUNT ( * ) + 79 THEN 3 WHEN 78 THEN MIN ( DISTINCT + 32 ) + 19 * - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) + - CASE - 85 WHEN + AVG ( ALL - 51 ) / 15 THEN - 99 + CAST ( - 80 AS REAL ) * 70 END * - 9 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 96 * + 38 col1
----
3648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4060
SELECT + MAX( ALL CAST( - + 58 AS SIGNED ) )
----
-58

skipif mysql # not compatible
query I rowsort label-4060
SELECT + MAX ( ALL CAST ( - + 58 AS INTEGER ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT + MIN( ALL COALESCE ( - 12, + 66, 38 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4061
SELECT + MIN ( ALL COALESCE ( - 12, + 66, 38 ) ) AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4062
SELECT ALL + CAST( - 95 AS SIGNED ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL + CAST ( - 95 AS INTEGER ) AS col0
----
-95

query I rowsort
SELECT ALL 54 * + 13 col0
----
702

query I rowsort
SELECT + 60 * + 80 AS col0
----
4800

onlyif mysql # aggregate syntax: 
query II rowsort label-4065
SELECT ALL + 20 AS col1, + COUNT( * )
----
20
1

skipif mysql # not compatible
query II rowsort label-4065
SELECT ALL + 20 AS col1, + COUNT ( * )
----
20
1

query I rowsort
SELECT DISTINCT 59 * 85 AS col1
----
5015

query I rowsort
SELECT ALL 20 * - + 79 * - 21 AS col1
----
33180

query I rowsort
SELECT + 90 + - 10
----
80

query I rowsort
SELECT + 59 * - 95 * + + 34 * NULLIF ( 75, 97 + NULLIF ( + 19 + + 10, 7 ) * 56 ) AS col0
----
-14292750

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT + 3 * COUNT( DISTINCT + ( 24 ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4070
SELECT + 3 * COUNT ( DISTINCT + ( 24 ) ) AS col2
----
3

query I rowsort
SELECT + - 88 - - 37 + - 6 + 46
----
-11

query I rowsort
SELECT + + 13 - - 19 AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4073
SELECT ALL CAST( - COUNT( - 10 ) AS SIGNED ) DIV + 8
----
0

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL CAST ( - COUNT ( - 10 ) AS INTEGER ) / + 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL MAX( DISTINCT - + 81 ) * 96 - 33 + - 47
----
-7856

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL MAX ( DISTINCT - + 81 ) * 96 - 33 + - 47
----
-7856

query I rowsort
SELECT 39 * - 26 + - 38 * 29 + 20 AS col0
----
-2096

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL - 17 * - + COUNT( * ) + - + 19 + - COUNT( * ) + ( 19 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL - 17 * - + COUNT ( * ) + - + 19 + - COUNT ( * ) + ( 19 ) AS col0
----
16

query I rowsort
SELECT DISTINCT - + 99 + - 1
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4078
SELECT ALL + + COALESCE ( - 9, - COUNT( * ) + 40 DIV 39, - 71 + + 38 ) + - ( - SUM( DISTINCT 38 ) )
----
29

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL + + COALESCE ( - 9, - COUNT ( * ) + 40 / 39, - 71 + + 38 ) + - ( - SUM ( DISTINCT 38 ) )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4079
SELECT - 19, - COUNT( * ) * + 45 + 67 * - NULLIF ( 7, - 48 ) AS col0
----
-19
-514

skipif mysql # not compatible
query II rowsort label-4079
SELECT - 19, - COUNT ( * ) * + 45 + 67 * - NULLIF ( 7, - 48 ) AS col0
----
-19
-514

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4080
SELECT + 6 + + + CASE + CAST( NULL AS DECIMAL ) WHEN - 33 THEN + ( - 24 ) WHEN + CAST( NULL AS SIGNED ) * + 56 THEN NULL END + - 55 * 18 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4080
SELECT + 6 + + + CASE + CAST ( NULL AS REAL ) WHEN - 33 THEN + ( - 24 ) WHEN + CAST ( NULL AS INTEGER ) * + 56 THEN NULL END + - 55 * 18 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT - - CASE + AVG ( - NULLIF ( 37, 9 ) ) WHEN MAX( 74 ) * 19 + - 49 THEN NULL WHEN - 47 THEN 60 + 37 * - 36 ELSE - 20 END
----
-20

skipif mysql # not compatible
query I rowsort label-4081
SELECT - - CASE + AVG ( - NULLIF ( 37, 9 ) ) WHEN MAX ( 74 ) * 19 + - 49 THEN NULL WHEN - 47 THEN 60 + 37 * - 36 ELSE - 20 END
----
-20

query I rowsort
SELECT + ( + 37 ) + - 2 + - 27 AS col2
----
8

query I rowsort
SELECT - 89 - - 45 * ( 52 ) AS col1
----
2251

query I rowsort
SELECT - NULLIF ( + + 14, - - 67 + - 58 )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4085
SELECT - COUNT( * ) + + 32 + - + COUNT( * ) DIV 61
----
31

skipif mysql # not compatible
query I rowsort label-4085
SELECT - COUNT ( * ) + + 32 + - + COUNT ( * ) / 61
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL - - 57 + MIN( DISTINCT - 93 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL - - 57 + MIN ( DISTINCT - 93 ) AS col2
----
-36

query I rowsort
SELECT + + 12 * 69 * + 89 col2
----
73692

query II rowsort
SELECT ALL - 11, + 58 + - 96 AS col1
----
-11
-38

query I rowsort
SELECT + - COALESCE ( + 32, + 76 ) + 22 AS col2
----
-10

query I rowsort
SELECT COALESCE ( + - 60, + 2 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT DISTINCT MIN( - 86 ) col2
----
-86

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT MIN ( - 86 ) col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT ALL 62 - - 59 + CASE + 3 WHEN - 47 * 76 THEN - 89 WHEN ( + 99 ) + CASE 86 + + 37 WHEN COUNT( * ) - + 58 THEN 61 / - 19 ELSE COUNT( * ) * 28 END / + 82 THEN NULL ELSE COUNT( * ) END * 93 AS col0
----
214

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL 62 - - 59 + CASE + 3 WHEN - 47 * 76 THEN - 89 WHEN ( + 99 ) + CASE 86 + + 37 WHEN COUNT ( * ) - + 58 THEN 61 / - 19 ELSE COUNT ( * ) * 28 END / + 82 THEN NULL ELSE COUNT ( * ) END * 93 AS col0
----
214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4093
SELECT - 74 * - + 48 * CASE COUNT( * ) WHEN 80 + - 25 THEN NULL WHEN 17 * 24 THEN NULL ELSE CAST( + 45 AS SIGNED ) END
----
159840

skipif mysql # not compatible
query I rowsort label-4093
SELECT - 74 * - + 48 * CASE COUNT ( * ) WHEN 80 + - 25 THEN NULL WHEN 17 * 24 THEN NULL ELSE CAST ( + 45 AS INTEGER ) END
----
159840

onlyif mysql # DIV for integer division: 
query I rowsort label-4094
SELECT - 32 + 39 - - - 81 + + 92 DIV 30 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4094
SELECT - 32 + 39 - - - 81 + + 92 / 30 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ALL COALESCE ( + 40, + + 26 + - 46 - 81 ) - - 42 * + COUNT( 9 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL COALESCE ( + 40, + + 26 + - 46 - 81 ) - - 42 * + COUNT ( 9 ) AS col0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4096
SELECT - CAST( 79 AS SIGNED ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-4096
SELECT - CAST ( 79 AS INTEGER ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT + 38 + - COUNT( * ) + 2 - + + 36 + + 53 * 7
----
374

skipif mysql # not compatible
query I rowsort label-4097
SELECT + 38 + - COUNT ( * ) + 2 - + + 36 + + 53 * 7
----
374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4098
SELECT ALL + CAST( + ( - + 50 ) AS SIGNED ) * - 92
----
4600

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL + CAST ( + ( - + 50 ) AS INTEGER ) * - 92
----
4600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4099
SELECT - 90 DIV + - COUNT( * ) col0, - ( - 81 )
----
90
81

skipif mysql # not compatible
query II rowsort label-4099
SELECT - 90 / + - COUNT ( * ) col0, - ( - 81 )
----
90
81

query I rowsort
SELECT - 8 + + 87 col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT DISTINCT + ( - + ( + CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT + ( - + ( + CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4102
SELECT ALL - 19 * - CASE 18 WHEN - CAST( NULL AS SIGNED ) + 26 THEN 16 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL - 19 * - CASE 18 WHEN - CAST ( NULL AS INTEGER ) + 26 THEN 16 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL - ( SUM( ALL - 68 ) ) * + 14 AS col0
----
952

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL - ( SUM ( ALL - 68 ) ) * + 14 AS col0
----
952

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT ALL - 29 * COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - 29 * COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4105
SELECT ALL - COUNT( * ) * COUNT( * ) DIV - COALESCE ( + 48, COUNT( DISTINCT NULLIF ( - 49, - 74 + 81 ) ) ) * - 8 col2
----
0

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL - COUNT ( * ) * COUNT ( * ) / - COALESCE ( + 48, COUNT ( DISTINCT NULLIF ( - 49, - 74 + 81 ) ) ) * - 8 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4106
SELECT COUNT( * ) DIV + + 22 * - + 43 + - 64 + + 47 * + 29 * - 23
----
-31413

skipif mysql # not compatible
query I rowsort label-4106
SELECT COUNT ( * ) / + + 22 * - + 43 + - 64 + + 47 * + 29 * - 23
----
-31413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4107
SELECT DISTINCT 13 / - - COUNT( * ) + 97 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT 13 / - - COUNT ( * ) + 97 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT ALL 82 / CAST( 68 AS SIGNED ) / - + 73 * - ( + 86 * 44 ) + CAST( NULL AS SIGNED ) / 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL 82 / CAST ( 68 AS INTEGER ) / - + 73 * - ( + 86 * 44 ) + CAST ( NULL AS INTEGER ) / 58 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT - - CAST( NULL AS SIGNED ) * 28 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT - - CAST ( NULL AS INTEGER ) * 28 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT - 93 * 74 + + - COUNT( * )
----
-6883

skipif mysql # not compatible
query I rowsort label-4110
SELECT - 93 * 74 + + - COUNT ( * )
----
-6883

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT - 77 * - COUNT( * ) * + COUNT( * ) + - 22 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4111
SELECT - 77 * - COUNT ( * ) * + COUNT ( * ) + - 22 AS col1
----
55

query I rowsort
SELECT + ( - - 83 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL + + 21 * - + MAX( DISTINCT - ( - 93 ) ) + + ( 1 ) * 50 col2
----
-1903

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL + + 21 * - + MAX ( DISTINCT - ( - 93 ) ) + + ( 1 ) * 50 col2
----
-1903

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT - + 55 * - - 9 + - + COUNT( * ) + - 31 * 81 AS col2
----
-3007

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT - + 55 * - - 9 + - + COUNT ( * ) + - 31 * 81 AS col2
----
-3007

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL + 77 * - COUNT( * ) + - COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL + 77 * - COUNT ( * ) + - COUNT ( * ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT + 24 + - COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4116
SELECT + 24 + - COUNT ( * ) AS col0
----
23

query I rowsort
SELECT DISTINCT + NULLIF ( - + 12, 78 )
----
-12

query I rowsort
SELECT ALL NULLIF ( + 31, 22 + - 91 + + 94 ) * 1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4119
SELECT - 1 * 41 + - + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4119
SELECT - 1 * 41 + - + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT DISTINCT 38 + - - 63 + - + ( - 93 ) * COUNT( * ) AS col0
----
194

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT 38 + - - 63 + - + ( - 93 ) * COUNT ( * ) AS col0
----
194

onlyif mysql # aggregate syntax: 
query II rowsort label-4121
SELECT ALL + 21 + + + 80 AS col1, COUNT( * ) * - ( + 37 ) + 60
----
101
23

skipif mysql # not compatible
query II rowsort label-4121
SELECT ALL + 21 + + + 80 AS col1, COUNT ( * ) * - ( + 37 ) + 60
----
101
23

query II rowsort
SELECT + 87 + - 34 AS col2, 21 AS col2
----
53
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT + 26 * + COUNT( * ) * + - 77
----
-2002

skipif mysql # not compatible
query I rowsort label-4123
SELECT + 26 * + COUNT ( * ) * + - 77
----
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT 65 * - + COUNT( ALL 13 )
----
-65

skipif mysql # not compatible
query I rowsort label-4124
SELECT 65 * - + COUNT ( ALL 13 )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4125
SELECT DISTINCT 65 DIV 18 - 56 * - COUNT( * ) col1
----
59

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT 65 / 18 - 56 * - COUNT ( * ) col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT DISTINCT + + 76 - 82 + CASE - 73 WHEN + 88 THEN + MAX( + 46 ) ELSE NULL END * COALESCE ( - 29 * + 79, 94 * 32 + 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT + + 76 - 82 + CASE - 73 WHEN + 88 THEN + MAX ( + 46 ) ELSE NULL END * COALESCE ( - 29 * + 79, 94 * 32 + 1 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4127
SELECT ALL - ( + - 94 ) DIV 13 * - - SUM( DISTINCT + CAST( + ( 16 ) AS SIGNED ) ) col2
----
112

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - ( + - 94 ) / 13 * - - SUM ( DISTINCT + CAST ( + ( 16 ) AS INTEGER ) ) col2
----
112

query I rowsort
SELECT ALL 23 - - 54
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT DISTINCT ( + SUM( - - 22 ) )
----
22

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT ( + SUM ( - - 22 ) )
----
22

query I rowsort
SELECT DISTINCT + ( - ( 35 ) ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT ( - SUM( + 67 ) ) - + - ( + COUNT( 32 ) ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4131
SELECT ( - SUM ( + 67 ) ) - + - ( + COUNT ( 32 ) ) AS col0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4132
SELECT COUNT( * ) + 34 DIV - 93 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4132
SELECT COUNT ( * ) + 34 / - 93 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT ALL NULLIF ( ( + CAST( + 78 AS SIGNED ) ), 72 ) * 37
----
2886

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL NULLIF ( ( + CAST ( + 78 AS INTEGER ) ), 72 ) * 37
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT COUNT( * ) * 82
----
82

skipif mysql # not compatible
query I rowsort label-4134
SELECT COUNT ( * ) * 82
----
82

query I rowsort
SELECT 50 + 91 AS col0
----
141

query II rowsort
SELECT ALL 9 col2, + 29 AS col0
----
9
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT DISTINCT MAX( ALL + 86 ) * + 98 AS col0
----
8428

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT MAX ( ALL + 86 ) * + 98 AS col0
----
8428

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ( + COUNT( * ) ) - - - 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4138
SELECT ( + COUNT ( * ) ) - - - 0 AS col1
----
1

query I rowsort
SELECT ALL - 15 + - - 91 + + 40 * 33 * + ( 67 ) - 74 AS col1
----
88442

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT ( - - COUNT( DISTINCT 88 ) ) * 51 + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-4140
SELECT ( - - COUNT ( DISTINCT 88 ) ) * 51 + COUNT ( * )
----
52

query I rowsort
SELECT 65 * - 41
----
-2665

query I rowsort
SELECT ALL - 16 + 2 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT 55 * - COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4143
SELECT 55 * - COUNT ( * ) AS col2
----
-55

query I rowsort
SELECT ALL - + 58 + + 17 AS col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT ALL CAST( - - 47 AS SIGNED ) + - 99 * + + 12
----
-1141

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL CAST ( - - 47 AS INTEGER ) + - 99 * + + 12
----
-1141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4146
SELECT - 8 DIV + + ( MIN( DISTINCT + 57 ) ) * + 75 * 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4146
SELECT - 8 / + + ( MIN ( DISTINCT + 57 ) ) * + 75 * 37 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL - + COUNT( * ) + 8
----
7

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL - + COUNT ( * ) + 8
----
7

query I rowsort
SELECT ALL + 11 + + 15
----
26

query II rowsort
SELECT + 14 AS col1, - 76 AS col1
----
14
-76

query I rowsort
SELECT + 70 * - 3 * 44 + + + 46 - - + 86
----
-9108

query I rowsort
SELECT 13 + + 27 * - 57 * 75
----
-115412

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT + 57 * + 86 - + + ( ( 50 ) ) + - 18 DIV + 80 AS col0
----
4852

skipif mysql # not compatible
query I rowsort label-4152
SELECT + 57 * + 86 - + + ( ( 50 ) ) + - 18 / + 80 AS col0
----
4852

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL + 50 - + - COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL + 50 - + - COUNT ( * ) AS col2
----
51

query I rowsort
SELECT 43 * - + 57 + - 77 AS col0
----
-2528

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT + CASE + 75 WHEN 84 THEN NULL WHEN - 14 THEN + + NULLIF ( - 10, - COUNT( * ) ) WHEN 13 THEN COUNT( - ( - 37 ) ) * COUNT( * ) WHEN 62 * 22 THEN 48 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT + CASE + 75 WHEN 84 THEN NULL WHEN - 14 THEN + + NULLIF ( - 10, - COUNT ( * ) ) WHEN 13 THEN COUNT ( - ( - 37 ) ) * COUNT ( * ) WHEN 62 * 22 THEN 48 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4156
SELECT 2 AS col2, + COUNT( DISTINCT 63 ) * - 95 + + 1
----
2
-94

skipif mysql # not compatible
query II rowsort label-4156
SELECT 2 AS col2, + COUNT ( DISTINCT 63 ) * - 95 + + 1
----
2
-94

query I rowsort
SELECT + 15 * 16
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4158
SELECT ALL + CAST( ( + ( + 56 ) ) AS SIGNED ) - - - 37 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + CAST ( ( + ( + 56 ) ) AS INTEGER ) - - - 37 AS col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4159
SELECT ALL + 38 AS col2, COUNT( - + ( - 55 ) ) col2
----
38
1

skipif mysql # not compatible
query II rowsort label-4159
SELECT ALL + 38 AS col2, COUNT ( - + ( - 55 ) ) col2
----
38
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT + 94 * 78 * + 53 + COUNT( 87 ) - 78 * 99 + 71
----
380946

skipif mysql # not compatible
query I rowsort label-4160
SELECT + 94 * 78 * + 53 + COUNT ( 87 ) - 78 * 99 + 71
----
380946

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT DISTINCT + 57 DIV - 10 + 80 - + 61
----
14

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT + 57 / - 10 + 80 - + 61
----
14

query I rowsort
SELECT ALL + 35 * - - 74 * - 54 * + + ( + 6 ) + + 65 * + 85
----
-833635

query I rowsort
SELECT 61 + + 32
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT COUNT( * ) + - 37 * - + MAX( + - ( - 45 ) )
----
1666

skipif mysql # not compatible
query I rowsort label-4164
SELECT COUNT ( * ) + - 37 * - + MAX ( + - ( - 45 ) )
----
1666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT CAST( NULL AS SIGNED ) + - 59 / + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4165
SELECT CAST ( NULL AS INTEGER ) + - 59 / + 18
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4166
SELECT NULLIF ( + 96, MIN( ALL 75 ) ) DIV + - COUNT( * ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-4166
SELECT NULLIF ( + 96, MIN ( ALL 75 ) ) / + - COUNT ( * ) AS col1
----
-96

query I rowsort
SELECT 50 * + ( - 49 ) AS col0
----
-2450

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT SUM( ALL + 90 ) + + 46
----
136

skipif mysql # not compatible
query I rowsort label-4168
SELECT SUM ( ALL + 90 ) + + 46
----
136

query II rowsort
SELECT DISTINCT 4 AS col2, - 88
----
4
-88

query II rowsort
SELECT ALL 55 AS col1, + 15
----
55
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4171
SELECT ALL 61 DIV - 42 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL 61 / - 42 AS col1
----
-1

query I rowsort
SELECT 34 + 10 AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT 40 DIV - 76 * - 75
----
0

skipif mysql # not compatible
query I rowsort label-4173
SELECT 40 / - 76 * - 75
----
0

query II rowsort
SELECT ALL 64, - 97 col2
----
64
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4175
SELECT COALESCE ( + 98, + COUNT( * ) + + - COUNT( * ) ) * - - ( + 23 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT COALESCE ( + 98, + COUNT ( * ) + + - COUNT ( * ) ) * - - ( + 23 ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ALL CASE + 65 WHEN COUNT( * ) + + MAX( DISTINCT + 73 ) * 91 THEN - MIN( 41 ) * - 18 ELSE + 26 END + NULLIF ( NULLIF ( 83, + ( + MIN( + 43 ) ) ), 7 ) * 63
----
5255

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL CASE + 65 WHEN COUNT ( * ) + + MAX ( DISTINCT + 73 ) * 91 THEN - MIN ( 41 ) * - 18 ELSE + 26 END + NULLIF ( NULLIF ( 83, + ( + MIN ( + 43 ) ) ), 7 ) * 63
----
5255

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT 30 + - COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4177
SELECT 30 + - COUNT ( * ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT 60 + - + COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT 60 + - + COUNT ( * ) AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4179
SELECT DISTINCT 36 + + 22 + + + COUNT( ALL + ( + + 42 ) ) + - 0 + NULLIF ( CAST( NULL AS SIGNED ), ( - 39 ) + + 28 ) / + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT 36 + + 22 + + + COUNT ( ALL + ( + + 42 ) ) + - 0 + NULLIF ( CAST ( NULL AS INTEGER ), ( - 39 ) + + 28 ) / + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT 54 * + COUNT( * ) * - 7 * - ( - + 34 )
----
-12852

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT 54 * + COUNT ( * ) * - 7 * - ( - + 34 )
----
-12852

query I rowsort
SELECT ALL 89 * - NULLIF ( + - 14, - ( - 28 ) ) AS col2
----
1246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT CAST( - - 20 AS SIGNED ) + 46
----
66

skipif mysql # not compatible
query I rowsort label-4182
SELECT CAST ( - - 20 AS INTEGER ) + 46
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4183
SELECT ALL - 3 AS col1, + NULLIF ( - + 68, - 45 ) AS col1, - + CAST( NULL AS SIGNED ) * - MIN( + 55 ) / 41
----
-3
-68
NULL

skipif mysql # not compatible
query III rowsort label-4183
SELECT ALL - 3 AS col1, + NULLIF ( - + 68, - 45 ) AS col1, - + CAST ( NULL AS INTEGER ) * - MIN ( + 55 ) / 41
----
-3
-68
NULL

query I rowsort
SELECT + 22 * 29 + - 80 + 65 AS col0
----
623

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT DISTINCT 5 * - - COUNT( * ) + + 86 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT 5 * - - COUNT ( * ) + + 86 AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4186
SELECT + 34 * 36 / 34 * - 66 + - COUNT( * ) + + ( + CAST( NULL AS DECIMAL ) ) * 47 + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT + 34 * 36 / 34 * - 66 + - COUNT ( * ) + + ( + CAST ( NULL AS REAL ) ) * 47 + 58 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4187
SELECT - CASE + + 77 WHEN - - CASE + 10 WHEN ( 49 ) THEN NULL ELSE MIN( ALL - CASE - ( + ( 5 ) ) WHEN 97 THEN NULL WHEN ( CAST( + 98 AS SIGNED ) ) + + ( + 81 ) THEN 7 / - 6 WHEN + 54 * 62 THEN - 27 ELSE + 75 - 71 END ) - + 7 / 95 END / CASE + CASE ( 54 ) WHEN 68 - CAST( ( + 15 ) + - 43 / 50 AS SIGNED ) THEN + 69 * MAX( DISTINCT - 50 * + 35 ) WHEN 74 THEN NULL END + 72 / ( - 88 ) WHEN 25 * + COUNT( 76 * 97 ) THEN NULL ELSE SUM( CAST( 43 AS SIGNED ) ) END THEN + 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT - CASE + + 77 WHEN - - CASE + 10 WHEN ( 49 ) THEN NULL ELSE MIN ( ALL - CASE - ( + ( 5 ) ) WHEN 97 THEN NULL WHEN ( CAST ( + 98 AS INTEGER ) ) + + ( + 81 ) THEN 7 / - 6 WHEN + 54 * 62 THEN - 27 ELSE + 75 - 71 END ) - + 7 / 95 END / CASE + CASE ( 54 ) WHEN 68 - CAST ( ( + 15 ) + - 43 / 50 AS INTEGER ) THEN + 69 * MAX ( DISTINCT - 50 * + 35 ) WHEN 74 THEN NULL END + 72 / ( - 88 ) WHEN 25 * + COUNT ( 76 * 97 ) THEN NULL ELSE SUM ( CAST ( 43 AS INTEGER ) ) END THEN + 78 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4188
SELECT DISTINCT COALESCE ( 94, 33 ) * + COUNT( * ) + + ( - 80 ) * COUNT( * ) - - 9 DIV - 47
----
14

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT COALESCE ( 94, 33 ) * + COUNT ( * ) + + ( - 80 ) * COUNT ( * ) - - 9 / - 47
----
14

query I rowsort
SELECT - 42 + 4
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ALL - 61 * 7 - 80 - - COUNT( * ) AS col0
----
-506

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL - 61 * 7 - 80 - - COUNT ( * ) AS col0
----
-506

query I rowsort
SELECT DISTINCT - 63 * + 47 + 77 AS col0
----
-2884

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT + + COUNT( - 68 ) * + - 37 + + 58
----
21

skipif mysql # not compatible
query I rowsort label-4192
SELECT + + COUNT ( - 68 ) * + - 37 + + 58
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4193
SELECT - CASE + + COALESCE ( - COUNT( * ), COUNT( * ) + + + 88, 10 ) WHEN 14 * - 84 THEN 72 ELSE NULL END * CAST( 90 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT - CASE + + COALESCE ( - COUNT ( * ), COUNT ( * ) + + + 88, 10 ) WHEN 14 * - 84 THEN 72 ELSE NULL END * CAST ( 90 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + 51 * 95 AS col1
----
-4845

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT ALL 34 * 2 - + 77 + 71 - + MAX( DISTINCT 66 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL 34 * 2 - + 77 + 71 - + MAX ( DISTINCT 66 ) AS col2
----
-4

query I rowsort
SELECT CASE - 2 WHEN + 40 THEN - - 65 * - 19 WHEN - + 35 THEN 12 + 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL + - 77 * + - 48 + - COUNT( * ) + + + 1 - + 89
----
3607

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL + - 77 * + - 48 + - COUNT ( * ) + + + 1 - + 89
----
3607

query I rowsort
SELECT DISTINCT + - 21 * + 80 AS col0
----
-1680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4199
SELECT - - 0 * + + 76 * - COUNT( ALL - 88 ) DIV + 13 - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4199
SELECT - - 0 * + + 76 * - COUNT ( ALL - 88 ) / + 13 - COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4200
SELECT - + CASE + + COUNT( * ) WHEN - AVG ( 38 ) * - - 9 * COUNT( * ) * - 50 THEN + 86 / + SUM( DISTINCT - 75 ) END * - CAST( NULL AS SIGNED ) + + NULLIF ( + ( + 97 ) + + 30, + 1 ) / - ( 79 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT - + CASE + + COUNT ( * ) WHEN - AVG ( 38 ) * - - 9 * COUNT ( * ) * - 50 THEN + 86 / + SUM ( DISTINCT - 75 ) END * - CAST ( NULL AS INTEGER ) + + NULLIF ( + ( + 97 ) + + 30, + 1 ) / - ( 79 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT - 97 * - 30 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT - 97 * - 30 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 71 + + + 42 col1
----
-29

query I rowsort
SELECT - 74 * - - ( - - 58 )
----
-4292

onlyif mysql # DIV for integer division: 
query II rowsort label-4204
SELECT ALL ( - 95 ) AS col0, - 13 DIV + 55 + - 2 AS col0
----
-95
-2

skipif mysql # not compatible
query II rowsort label-4204
SELECT ALL ( - 95 ) AS col0, - 13 / + 55 + - 2 AS col0
----
-95
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4205
SELECT ALL + ( + 73 ) + - 47 - - + 30 + - COUNT( * ) DIV + 1
----
55

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL + ( + 73 ) + - 47 - - + 30 + - COUNT ( * ) / + 1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4206
SELECT DISTINCT - 78 * - COUNT( + 50 ) DIV + 99 - + ( + 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT - 78 * - COUNT ( + 50 ) / + 99 - + ( + 68 ) AS col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4207
SELECT DISTINCT COALESCE ( - CAST( NULL AS SIGNED ), + 4 * - 25 + - 84 + + 93 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), + 4 * - 25 + - 84 + + 93 ) AS col0
----
-91

query I rowsort
SELECT - 43 * + 92 AS col2
----
-3956

query I rowsort
SELECT ALL 55 * + 0 * + 20 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL - ( + NULLIF ( + - NULLIF ( - CASE + 68 WHEN - - 16 THEN 93 WHEN - 21 + 13 THEN NULL ELSE NULL END, - COALESCE ( 20, 13 / - 61 ) ), + 20 * CASE - 54 WHEN 40 * 21 THEN NULL WHEN + 70 THEN + 91 / - 78 END ) ) + COALESCE ( - SUM( 47 ), + SUM( 82 ) ) / CASE + COUNT( * ) WHEN CASE 70 WHEN 67 * + 46 THEN NULL WHEN ( 23 ) + + 5 * 19 THEN 86 * + 61 END * - 60 THEN NULL WHEN + 46 - + SUM( DISTINCT 65 ) * - 68 THEN NULL ELSE 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL - ( + NULLIF ( + - NULLIF ( - CASE + 68 WHEN - - 16 THEN 93 WHEN - 21 + 13 THEN NULL ELSE NULL END, - COALESCE ( 20, 13 / - 61 ) ), + 20 * CASE - 54 WHEN 40 * 21 THEN NULL WHEN + 70 THEN + 91 / - 78 END ) ) + COALESCE ( - SUM ( 47 ), + SUM ( 82 ) ) / CASE + COUNT ( * ) WHEN CASE 70 WHEN 67 * + 46 THEN NULL WHEN ( 23 ) + + 5 * 19 THEN 86 * + 61 END * - 60 THEN NULL WHEN + 46 - + SUM ( DISTINCT 65 ) * - 68 THEN NULL ELSE 3 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4211
SELECT - MIN( + + 0 ) AS col2, 36
----
0
36

skipif mysql # not compatible
query II rowsort label-4211
SELECT - MIN ( + + 0 ) AS col2, 36
----
0
36

query I rowsort
SELECT ALL - 61 * - 53
----
3233

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT + 31 + + 68 + - - 5 * ( - 24 ) + + + 67 + - 4 DIV 18
----
46

skipif mysql # not compatible
query I rowsort label-4213
SELECT + 31 + + 68 + - - 5 * ( - 24 ) + + + 67 + - 4 / 18
----
46

query I rowsort
SELECT ALL 95 + + 59 col2
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4215
SELECT ALL 13 + - COUNT( * ) * + NULLIF ( - 83, 53 * + - COUNT( * ) + + - COUNT( * ) DIV COUNT( * ) ) DIV + 39
----
15

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL 13 + - COUNT ( * ) * + NULLIF ( - 83, 53 * + - COUNT ( * ) + + - COUNT ( * ) / COUNT ( * ) ) / + 39
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT DISTINCT + 16 + - + CAST( NULL AS SIGNED ) * + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT + 16 + - + CAST ( NULL AS INTEGER ) * + 59 AS col2
----
NULL

query I rowsort
SELECT ALL 48 + + 86 - + 37
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT + ( + COALESCE ( 43, + - SUM( COALESCE ( - 25, + ( 33 ), 53 ) ), 5 ) ) - + NULLIF ( 55 + ( + 59 ), - 59 + + 58 )
----
-71

skipif mysql # not compatible
query I rowsort label-4218
SELECT + ( + COALESCE ( 43, + - SUM ( COALESCE ( - 25, + ( 33 ), 53 ) ), 5 ) ) - + NULLIF ( 55 + ( + 59 ), - 59 + + 58 )
----
-71

query I rowsort
SELECT - CASE WHEN NULL IS NULL THEN 6 WHEN NOT 15 * 16 IN ( + - 51 ) THEN + 86 - - 24 END AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT + COUNT( * ) + + 70 * + COUNT( * ) - + 85
----
-14

skipif mysql # not compatible
query I rowsort label-4220
SELECT + COUNT ( * ) + + 70 * + COUNT ( * ) - + 85
----
-14

query I rowsort
SELECT ALL 41 * + 87 AS col0
----
3567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4222
SELECT + COUNT( * ) * - + 42 DIV + 17 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4222
SELECT + COUNT ( * ) * - + 42 / + 17 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4223
SELECT ALL 60 DIV + - 26 + - 75 + COUNT( * ) * 48 DIV - 25
----
-78

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL 60 / + - 26 + - 75 + COUNT ( * ) * 48 / - 25
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ALL - 17 - - + COUNT( * ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - 17 - - + COUNT ( * ) AS col2
----
-16

query I rowsort
SELECT - 47 + + - 7 + 66 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL COUNT( * ) * - 69 + - 73 AS col1
----
-142

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL COUNT ( * ) * - 69 + - 73 AS col1
----
-142

query II rowsort
SELECT + ( - 30 ) * 86 AS col2, COALESCE ( - - 13, + ( - + 86 ) ) AS col0
----
-2580
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT DISTINCT + - NULLIF ( + COUNT( * ), - + 84 * + 65 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT + - NULLIF ( + COUNT ( * ), - + 84 * + 65 ) AS col0
----
-1

query I rowsort
SELECT + 33 * + ( + + 14 ) AS col1
----
462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4230
SELECT CAST( NULL AS SIGNED ) * 18 / - - 20 + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4230
SELECT CAST ( NULL AS INTEGER ) * 18 / - - 20 + - 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT + MIN( + 66 ) + + + 48 col0
----
114

skipif mysql # not compatible
query I rowsort label-4231
SELECT + MIN ( + 66 ) + + + 48 col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + COUNT( ALL + 71 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4232
SELECT + COUNT ( ALL + 71 ) AS col1
----
1

query I rowsort
SELECT - - 63 * - 5 AS col2
----
-315

query I rowsort
SELECT ALL + 70 * + 72 + + 38 + + 32 * + 83
----
7734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT + 91 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT + 91 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4236
SELECT ALL 97 / + - 83 * + + NULLIF ( - CAST( NULL AS SIGNED ), - 31 * - 4 ) AS col2, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4236
SELECT ALL 97 / + - 83 * + + NULLIF ( - CAST ( NULL AS INTEGER ), - 31 * - 4 ) AS col2, + COUNT ( * )
----
NULL
1

query I rowsort
SELECT ALL + 96 * + 36 + + 10 AS col0
----
3466

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4238
SELECT DISTINCT + 52 * MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) + COALESCE ( ( - - 54 ), + + 36 ) + - 65 + 5 * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT + 52 * MIN ( DISTINCT - CAST ( NULL AS REAL ) ) + COALESCE ( ( - - 54 ), + + 36 ) + - 65 + 5 * + 93
----
NULL

query I rowsort
SELECT - 20 + - 6 * - 30 * + 33 AS col0
----
5920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4240
SELECT ALL - 19 * - COUNT( * ) + COUNT( * ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL - 19 * - COUNT ( * ) + COUNT ( * ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 32 + CASE 97 WHEN 41 THEN NULL WHEN - 19 + - 21 THEN + - 19 END + 48 + 52 AS col2
----
NULL

query I rowsort
SELECT ALL ( - 9 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT - 84 * + COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-4243
SELECT - 84 * + COUNT ( * ) AS col2
----
-84

query I rowsort
SELECT DISTINCT ( - + 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT - ( + - MAX( ALL - 71 ) ) + - + ( - COUNT( * ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4245
SELECT - ( + - MAX ( ALL - 71 ) ) + - + ( - COUNT ( * ) ) AS col2
----
-70

query I rowsort
SELECT - 54 + + 67
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4247
SELECT ALL - 30 * CASE - NULLIF ( + 65, 16 ) WHEN 29 + 66 * + - 39 THEN NULL ELSE - COALESCE ( + 7, COUNT( * ) ) END DIV + 16 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL - 30 * CASE - NULLIF ( + 65, 16 ) WHEN 29 + 66 * + - 39 THEN NULL ELSE - COALESCE ( + 7, COUNT ( * ) ) END / + 16 AS col2
----
13

query II rowsort
SELECT - 30 col0, 41 col2
----
-30
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4249
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) col2
----
NULL

query I rowsort
SELECT DISTINCT 0 * - 67 AS col1
----
0

query I rowsort
SELECT ALL - 39 * - 29 AS col2
----
1131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4252
SELECT 58 * - 59 * - - COUNT( 61 ) * 86 + + 96 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT 58 * - 59 * - - COUNT ( 61 ) * 86 + + 96 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4253
SELECT + 27 + + - 56 + 58 + 57 + 84 * SUM( DISTINCT - 81 ) * - CAST( NULL AS SIGNED ) * + 90 + - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4253
SELECT + 27 + + - 56 + 58 + 57 + 84 * SUM ( DISTINCT - 81 ) * - CAST ( NULL AS INTEGER ) * + 90 + - 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT 31 + + 16 + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-4254
SELECT 31 + + 16 + COUNT ( * )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4255
SELECT ALL SUM( DISTINCT NULLIF ( - - CAST( NULL AS SIGNED ), 38 + + 91 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL SUM ( DISTINCT NULLIF ( - - CAST ( NULL AS INTEGER ), 38 + + 91 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4256
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - 23
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4257
SELECT 77 + + + 39 + MIN( 89 ) DIV - 95 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-4257
SELECT 77 + + + 39 + MIN ( 89 ) / - 95 AS col2
----
116

query I rowsort
SELECT DISTINCT + - 42 - ( + 42 ) + - 62 AS col1
----
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT ALL - + COUNT( DISTINCT - 99 ) * + ( 44 ) - + + CASE + 98 WHEN 42 THEN + 29 * 16 WHEN 45 THEN NULL ELSE CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL - + COUNT ( DISTINCT - 99 ) * + ( 44 ) - + + CASE + 98 WHEN 42 THEN + 29 * 16 WHEN 45 THEN NULL ELSE CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT ALL 21 DIV + 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL 21 / + 32 AS col1
----
0

query I rowsort
SELECT - + 73 * - 86 - - 84 + - - 27 + + 51 col2
----
6440

query II rowsort
SELECT ALL - 90, 33 * + + 66 AS col0
----
-90
2178

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT 17 * + CASE COUNT( * ) WHEN - 39 THEN + + COUNT( * ) * + 46 * 14 END + + MIN( ( 13 ) ) + - ( - 88 - - CASE 94 WHEN - COUNT( * ) THEN 67 * ( 18 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT 17 * + CASE COUNT ( * ) WHEN - 39 THEN + + COUNT ( * ) * + 46 * 14 END + + MIN ( ( 13 ) ) + - ( - 88 - - CASE 94 WHEN - COUNT ( * ) THEN 67 * ( 18 ) END )
----
NULL

query I rowsort
SELECT + 26 + - 53 + + - 70
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT + 70 * + - 54 * NULLIF ( + SUM( ALL - 70 ), + 88 ) * 37
----
9790200

skipif mysql # not compatible
query I rowsort label-4265
SELECT + 70 * + - 54 * NULLIF ( + SUM ( ALL - 70 ), + 88 ) * 37
----
9790200

query I rowsort
SELECT ALL - 87 + + 74
----
-13

query II rowsort
SELECT + + 90 col1, 84 - - 63 * 62 - + - 87
----
90
4077

query I rowsort
SELECT 36 * + 34 * 19 * - 78 * 76
----
-137861568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4269
SELECT ALL CAST( - 54 AS SIGNED ) + - 33 col2
----
-87

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL CAST ( - 54 AS INTEGER ) + - 33 col2
----
-87

query I rowsort
SELECT 24 * - 75 col0
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT CASE + - ( - + 42 ) WHEN COUNT( * ) THEN - 3 * - 40 END * - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT CASE + - ( - + 42 ) WHEN COUNT ( * ) THEN - 3 * - 40 END * - 98 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 37 + + 14
----
51

query I rowsort
SELECT ALL + 98 * 40 AS col2
----
3920

query I rowsort
SELECT ALL 36 - - 23
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4275
SELECT ( 76 ) + 33 - + + 59 DIV - + 63 col0
----
109

skipif mysql # not compatible
query I rowsort label-4275
SELECT ( 76 ) + 33 - + + 59 / - + 63 col0
----
109

query I rowsort
SELECT - 95 + + + 22
----
-73

query I rowsort
SELECT DISTINCT ( NULLIF ( - 1, - - 60 + + 93 - + - CASE 70 WHEN 88 + - 23 + + 52 THEN + 87 + 37 ELSE + 78 * + NULLIF ( 56, - 36 ) END / 52 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT 26 - + + 98 - - 54 * - COALESCE ( 72, - - MIN( + 48 ) - + + 99 ) AS col2
----
-3960

skipif mysql # not compatible
query I rowsort label-4278
SELECT 26 - + + 98 - - 54 * - COALESCE ( 72, - - MIN ( + 48 ) - + + 99 ) AS col2
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT DISTINCT + 84 * - - MAX( - 31 ) AS col1
----
-2604

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT + 84 * - - MAX ( - 31 ) AS col1
----
-2604

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4280
SELECT + CAST( NULL AS SIGNED ) * - - 75 AS col2, + 51 * 76
----
NULL
3876

skipif mysql # not compatible
query II rowsort label-4280
SELECT + CAST ( NULL AS INTEGER ) * - - 75 AS col2, + 51 * 76
----
NULL
3876

query I rowsort
SELECT 5 + + 10
----
15

query I rowsort
SELECT + NULLIF ( - 55, 68 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4283
SELECT + 43 * - 1 - - - 30 + COUNT( * ) - - CASE + 33 WHEN + - AVG ( 90 ) * - 92 + 51 THEN NULL WHEN CAST( 61 AS DECIMAL ) * + CAST( - 99 + 27 / - 87 AS SIGNED ) THEN COALESCE ( 40, + COUNT( + NULLIF ( - 88, - 94 ) ) ) END + 12 / 9 * 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT + 43 * - 1 - - - 30 + COUNT ( * ) - - CASE + 33 WHEN + - AVG ( 90 ) * - 92 + 51 THEN NULL WHEN CAST ( 61 AS REAL ) * + CAST ( - 99 + 27 / - 87 AS INTEGER ) THEN COALESCE ( 40, + COUNT ( + NULLIF ( - 88, - 94 ) ) ) END + 12 / 9 * 78 AS col1
----
NULL

query I rowsort
SELECT ALL + - 72 * 58 + + + 50
----
-4126

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT DISTINCT - 88 + + + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT - 88 + + + COUNT ( * )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT ALL - + MAX( - 41 ) + + 41
----
82

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL - + MAX ( - 41 ) + + 41
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4287
SELECT DISTINCT + 47 + + COUNT( * ) - - 40 col0, + 47 col1
----
88
47

skipif mysql # not compatible
query II rowsort label-4287
SELECT DISTINCT + 47 + + COUNT ( * ) - - 40 col0, + 47 col1
----
88
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT COUNT( ALL + + 87 )
----
1

skipif mysql # not compatible
query I rowsort label-4288
SELECT COUNT ( ALL + + 87 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4289
SELECT CASE - + 4 WHEN + 3 THEN NULL WHEN + 43 THEN COUNT( * ) END - MIN( DISTINCT + CAST( + 91 AS DECIMAL ) ), CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4289
SELECT CASE - + 4 WHEN + 3 THEN NULL WHEN + 43 THEN COUNT ( * ) END - MIN ( DISTINCT + CAST ( + 91 AS REAL ) ), CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4290
SELECT 38 * + + COALESCE ( + 23, + 68 ) + + CAST( - 47 AS SIGNED ) * - 27 + CAST( + 71 AS SIGNED ) AS col0
----
2214

skipif mysql # not compatible
query I rowsort label-4290
SELECT 38 * + + COALESCE ( + 23, + 68 ) + + CAST ( - 47 AS INTEGER ) * - 27 + CAST ( + 71 AS INTEGER ) AS col0
----
2214

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT 43 + + - MIN( + 44 ) * + MIN( 73 ) AS col0
----
-3169

skipif mysql # not compatible
query I rowsort label-4291
SELECT 43 + + - MIN ( + 44 ) * + MIN ( 73 ) AS col0
----
-3169

query I rowsort
SELECT ALL 96 - + - 66
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-4293
SELECT SUM( + 73 ) + - 34, 12 AS col1
----
39
12

skipif mysql # not compatible
query II rowsort label-4293
SELECT SUM ( + 73 ) + - 34, 12 AS col1
----
39
12

query I rowsort
SELECT DISTINCT + 57 * + 45
----
2565

query II rowsort
SELECT ALL - 39 AS col2, + 12 AS col0
----
-39
12

query I rowsort
SELECT ALL 36 * + 55
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT + 7 + + + ( + SUM( DISTINCT + - 75 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-4297
SELECT + 7 + + + ( + SUM ( DISTINCT + - 75 ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT - SUM( DISTINCT 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4298
SELECT - SUM ( DISTINCT 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-4299
SELECT + ( 5 ) * - - COUNT( * ) AS col2, 12
----
5
12

skipif mysql # not compatible
query II rowsort label-4299
SELECT + ( 5 ) * - - COUNT ( * ) AS col2, 12
----
5
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4300
SELECT + 18 * 46 DIV + 26 col2, SUM( - ( - - 80 ) ) AS col0
----
31
-80

skipif mysql # not compatible
query II rowsort label-4300
SELECT + 18 * 46 / + 26 col2, SUM ( - ( - - 80 ) ) AS col0
----
31
-80

query I rowsort
SELECT + 77 + - 85 col1
----
-8

query II rowsort
SELECT 69, + 1 AS col2
----
69
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL - 46 * - 3 * + ( + 86 ) * 12 - + 63 * + NULLIF ( - - NULLIF ( - 0, - + ( COUNT( 53 ) ) ), AVG ( ALL 3 ) + 80 ) - + 88
----
142328

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL - 46 * - 3 * + ( + 86 ) * 12 - + 63 * + NULLIF ( - - NULLIF ( - 0, - + ( COUNT ( 53 ) ) ), AVG ( ALL 3 ) + 80 ) - + 88
----
142328

onlyif mysql # DIV for integer division: 
query I rowsort label-4304
SELECT DISTINCT - 35 DIV - - 83
----
0

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT - 35 / - - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL + 2 * COUNT( DISTINCT + - 24 )
----
2

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL + 2 * COUNT ( DISTINCT + - 24 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT + - CASE + 35 WHEN COALESCE ( 79, + 88 + 49 ) + - + ( + 71 ) THEN + - 79 + 87 + 60 / COUNT( * ) WHEN + 9 THEN NULL WHEN + 62 * ( 97 ) THEN 31 * 77 ELSE NULL END / 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT + - CASE + 35 WHEN COALESCE ( 79, + 88 + 49 ) + - + ( + 71 ) THEN + - 79 + 87 + 60 / COUNT ( * ) WHEN + 9 THEN NULL WHEN + 62 * ( 97 ) THEN 31 * 77 ELSE NULL END / 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT - - ( 68 ) + - 60 * 54 * + SUM( ALL + - 60 )
----
194468

skipif mysql # not compatible
query I rowsort label-4307
SELECT - - ( 68 ) + - 60 * 54 * + SUM ( ALL + - 60 )
----
194468

query I rowsort
SELECT ALL - - 0 + 36
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT + - 39 + 96 + + 59 - + - COALESCE ( 0, - 76 + COUNT( * ) * - COUNT( * ) + - 58, + 29 - - 32 ) * + 39
----
116

skipif mysql # not compatible
query I rowsort label-4309
SELECT + - 39 + 96 + + 59 - + - COALESCE ( 0, - 76 + COUNT ( * ) * - COUNT ( * ) + - 58, + 29 - - 32 ) * + 39
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4310
SELECT ALL + 85 * 91 + 72 + - 62 + - - 46 DIV + + COUNT( * )
----
7791

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL + 85 * 91 + 72 + - 62 + - - 46 / + + COUNT ( * )
----
7791

query I rowsort
SELECT DISTINCT + - ( - 3 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT 98 * - 65 + 19 * 99 * - 34 + - + MAX( - + 11 )
----
-70313

skipif mysql # not compatible
query I rowsort label-4312
SELECT 98 * - 65 + 19 * 99 * - 34 + - + MAX ( - + 11 )
----
-70313

query I rowsort
SELECT ALL + 42 * - - 16 col2
----
672

onlyif mysql # aggregate syntax: 
query II rowsort label-4314
SELECT DISTINCT + COUNT( * ) col1, + 81 AS col0
----
1
81

skipif mysql # not compatible
query II rowsort label-4314
SELECT DISTINCT + COUNT ( * ) col1, + 81 AS col0
----
1
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4315
SELECT ALL ( - 55 ) * + ( - + COALESCE ( + 27, 91 ) ) * 88 + - 15 + + CASE - NULLIF ( + + 46, COUNT( * ) * CAST( - 46 AS SIGNED ) + + ( 72 ) ) WHEN - ( 95 ) THEN 25 * ( + COUNT( * ) ) + 16 END + + 24 * + COUNT( * ) + 5 - - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL ( - 55 ) * + ( - + COALESCE ( + 27, 91 ) ) * 88 + - 15 + + CASE - NULLIF ( + + 46, COUNT ( * ) * CAST ( - 46 AS INTEGER ) + + ( 72 ) ) WHEN - ( 95 ) THEN 25 * ( + COUNT ( * ) ) + 16 END + + 24 * + COUNT ( * ) + 5 - - 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT DISTINCT + 16 * - MAX( 40 )
----
-640

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT + 16 * - MAX ( 40 )
----
-640

query I rowsort
SELECT - 61 * - 22 * - 87 AS col0
----
-116754

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4318
SELECT ALL - ( + 82 ) * + NULLIF ( - 77, + - 8 - + - CAST( + 54 AS SIGNED ) / - 58 )
----
6314

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL - ( + 82 ) * + NULLIF ( - 77, + - 8 - + - CAST ( + 54 AS INTEGER ) / - 58 )
----
6314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT ALL + NULLIF ( + + 16, - - 39 * + + COALESCE ( + 94, + - 72, + - 83, 94 ) * + ( + 88 ) + + + 32 * CAST( NULL AS SIGNED ) )
----
16

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL + NULLIF ( + + 16, - - 39 * + + COALESCE ( + 94, + - 72, + - 83, 94 ) * + ( + 88 ) + + + 32 * CAST ( NULL AS INTEGER ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT ALL CASE 86 WHEN - 75 THEN NULL WHEN + + 48 THEN + + 34 ELSE - 28 END * - - 19 * - 32 - - - 55 - COUNT( * ) col0
----
16968

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL CASE 86 WHEN - 75 THEN NULL WHEN + + 48 THEN + + 34 ELSE - 28 END * - - 19 * - 32 - - - 55 - COUNT ( * ) col0
----
16968

onlyif mysql # DIV for integer division: 
query I rowsort label-4321
SELECT ALL 25 DIV + + 55
----
0

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL 25 / + + 55
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4322
SELECT DISTINCT + 45 AS col2, - ( SUM( + 43 ) ) col2
----
45
-43

skipif mysql # not compatible
query II rowsort label-4322
SELECT DISTINCT + 45 AS col2, - ( SUM ( + 43 ) ) col2
----
45
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT - 48 DIV - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4323
SELECT - 48 / - 68 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4324
SELECT DISTINCT + 19 AS col0, + 64 + - - COUNT( * ) AS col2
----
19
65

skipif mysql # not compatible
query II rowsort label-4324
SELECT DISTINCT + 19 AS col0, + 64 + - - COUNT ( * ) AS col2
----
19
65

query I rowsort
SELECT COALESCE ( - 11, - + 53 + - 79 + - 98 * - + ( - 54 ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT MAX( - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-4326
SELECT MAX ( - 94 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT SUM( + 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4327
SELECT SUM ( + 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT - COUNT( DISTINCT + 13 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4328
SELECT - COUNT ( DISTINCT + 13 ) AS col2
----
-1

query I rowsort
SELECT ( + 5 ) * + 69 - - 79 - 63 AS col0
----
361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4330
SELECT ALL + 17 + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL + 17 + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT 65 AS col0, 86 * + 22 + + 53
----
65
1945

query I rowsort
SELECT - ( - + 59 ) AS col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4333
SELECT ALL CAST( NULL AS SIGNED ) + + + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL CAST ( NULL AS INTEGER ) + + + 50 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4334
SELECT - COUNT( * ) DIV MIN( ALL + - 96 ) + + + 82
----
82

skipif mysql # not compatible
query I rowsort label-4334
SELECT - COUNT ( * ) / MIN ( ALL + - 96 ) + + + 82
----
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4335
SELECT + + 29 + - - 32 AS col2, - 95 DIV - CAST( - 17 AS SIGNED )
----
61
-5

skipif mysql # not compatible
query II rowsort label-4335
SELECT + + 29 + - - 32 AS col2, - 95 / - CAST ( - 17 AS INTEGER )
----
61
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT DISTINCT + COUNT( * ) + - - 41 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT + COUNT ( * ) + - - 41 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT + - ( + 61 ) + - COUNT( * ) col2
----
-62

skipif mysql # not compatible
query I rowsort label-4337
SELECT + - ( + 61 ) + - COUNT ( * ) col2
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT ALL 67 + - 90 DIV 12 DIV - 72
----
67

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL 67 + - 90 / 12 / - 72
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4339
SELECT - - ( + - ( - - ( + 43 ) ) ) AS col1, + 58 * + COUNT( * )
----
-43
58

skipif mysql # not compatible
query II rowsort label-4339
SELECT - - ( + - ( - - ( + 43 ) ) ) AS col1, + 58 * + COUNT ( * )
----
-43
58

query I rowsort
SELECT + - 94 * + 40 + - - 66 AS col0
----
-3694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4341
SELECT ALL COUNT( * ) + 64 + - CAST( NULL AS SIGNED ) * 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL COUNT ( * ) + 64 + - CAST ( NULL AS INTEGER ) * 61 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4342
SELECT COUNT( * ) col0, COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-4342
SELECT COUNT ( * ) col0, COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT ALL - 8 - - 19 * 55 AS col2
----
1037

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4344
SELECT ALL + 50 * - 40, 9 * CAST( NULL AS SIGNED ) * + 47 col0
----
-2000
NULL

skipif mysql # not compatible
query II rowsort label-4344
SELECT ALL + 50 * - 40, 9 * CAST ( NULL AS INTEGER ) * + 47 col0
----
-2000
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4345
SELECT - 32, 53 + - ( + 97 ) + - 74 DIV 65 DIV ( - - NULLIF ( - 22, - 59 + COUNT( * ) ) ) + 1 col0
----
-32
-43

skipif mysql # not compatible
query II rowsort label-4345
SELECT - 32, 53 + - ( + 97 ) + - 74 / 65 / ( - - NULLIF ( - 22, - 59 + COUNT ( * ) ) ) + 1 col0
----
-32
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT + CASE - 35 WHEN COUNT( * ) THEN NULL WHEN - CAST( + NULLIF ( 71, 58 ) AS SIGNED ) THEN - + 59 END * - - 24 * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT + CASE - 35 WHEN COUNT ( * ) THEN NULL WHEN - CAST ( + NULLIF ( 71, 58 ) AS INTEGER ) THEN - + 59 END * - - 24 * 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT - COUNT( * ) * COUNT( * ) + - 52 + + 34 * + + 10
----
287

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + - 52 + + 34 * + + 10
----
287

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4348
SELECT ALL + COUNT( * ) DIV + 87 - + 86 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL + COUNT ( * ) / + 87 - + 86 AS col2
----
-86

query I rowsort
SELECT + ( - 26 ) * + 49
----
-1274

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4350
SELECT DISTINCT - MIN( + 48 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT - MIN ( + 48 ) * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 8, 45 * + - 11 ) AS col2
----
-8

query I rowsort
SELECT 94 - ( + 76 ) AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4353
SELECT + 37 DIV + + 49 + COUNT( + 13 ) - 46 + + - 88
----
-133

skipif mysql # not compatible
query I rowsort label-4353
SELECT + 37 / + + 49 + COUNT ( + 13 ) - 46 + + - 88
----
-133

query II rowsort
SELECT - 50 * - + 10 - + + 78, 61 AS col2
----
422
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4355
SELECT 77 + + CAST( NULL AS DECIMAL ) * NULLIF ( - 19, + - COUNT( * ) * 96 * + 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT 77 + + CAST ( NULL AS REAL ) * NULLIF ( - 19, + - COUNT ( * ) * 96 * + 65 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT DISTINCT - CASE + 68 WHEN - 70 * + - MAX( 31 ) THEN + + 28 WHEN - 21 THEN NULL WHEN 19 THEN + + 40 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT - CASE + 68 WHEN - 70 * + - MAX ( 31 ) THEN + + 28 WHEN - 21 THEN NULL WHEN 19 THEN + + 40 END col2
----
NULL

query I rowsort
SELECT ALL 54 + + + 59 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT DISTINCT 12 + - CASE + + 39 WHEN 14 * 81 * - 21 * + 88 + AVG ( ALL - 23 ) * 93 - - MIN( - ( + ( - 98 ) ) ) THEN + 61 END + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT 12 + - CASE + + 39 WHEN 14 * 81 * - 21 * + 88 + AVG ( ALL - 23 ) * 93 - - MIN ( - ( + ( - 98 ) ) ) THEN + 61 END + - 86
----
NULL

query I rowsort
SELECT ALL - 49 + - 94 AS col0
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT DISTINCT - NULLIF ( + 64, + COUNT( * ) ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT - NULLIF ( + 64, + COUNT ( * ) ) AS col1
----
-64

query I rowsort
SELECT 12 + + 37
----
49

query I rowsort
SELECT ALL 71 + + 48
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4363
SELECT ALL - + 58 + 74 * - - 89 col2, CAST( NULL AS SIGNED ) * - + SUM( ALL 5 ) * 93 + + 43 col1
----
6528
NULL

skipif mysql # not compatible
query II rowsort label-4363
SELECT ALL - + 58 + 74 * - - 89 col2, CAST ( NULL AS INTEGER ) * - + SUM ( ALL 5 ) * 93 + + 43 col1
----
6528
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4364
SELECT 11 * + - 20 AS col0, COUNT( * ) AS col0
----
-220
1

skipif mysql # not compatible
query II rowsort label-4364
SELECT 11 * + - 20 AS col0, COUNT ( * ) AS col0
----
-220
1

query II rowsort
SELECT 0 + - - 98 AS col1, - 76
----
98
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-4366
SELECT ( 40 ), 33 + COUNT( * ) col2
----
40
34

skipif mysql # not compatible
query II rowsort label-4366
SELECT ( 40 ), 33 + COUNT ( * ) col2
----
40
34

query I rowsort
SELECT DISTINCT + 92 + - COALESCE ( ( 81 ), - 7, + 97 + - - 7 * - + 55 * + 50 )
----
11

query I rowsort
SELECT - NULLIF ( - - 96, + + 38 )
----
-96

query I rowsort
SELECT ALL - - 53 * + NULLIF ( 41, 28 * - 48 ) AS col1
----
2173

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT COUNT( * ) + + - ( + ( + 13 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4370
SELECT COUNT ( * ) + + - ( + ( + 13 ) ) AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4371
SELECT DISTINCT + 76 - - MIN( 77 ) + COUNT( + 31 ) - + ( - 74 ) * + 47 * + CAST( NULL AS DECIMAL ) * + + 66 * + NULLIF ( 38, - 21 / 91 ) / 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT + 76 - - MIN ( 77 ) + COUNT ( + 31 ) - + ( - 74 ) * + 47 * + CAST ( NULL AS REAL ) * + + 66 * + NULLIF ( 38, - 21 / 91 ) / 53
----
NULL

query II rowsort
SELECT 56 AS col0, 26 * + - 64
----
56
-1664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4373
SELECT 62 DIV + CAST( - SUM( 47 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4373
SELECT 62 / + CAST ( - SUM ( 47 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4374
SELECT MIN( - + 10 ) + + COALESCE ( + 75, - 28 ) DIV + 73
----
-9

skipif mysql # not compatible
query I rowsort label-4374
SELECT MIN ( - + 10 ) + + COALESCE ( + 75, - 28 ) / + 73
----
-9

query I rowsort
SELECT DISTINCT 67 * - + 41 AS col0
----
-2747

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4376
SELECT DISTINCT 79 DIV + CAST( - 31 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT 79 / + CAST ( - 31 AS INTEGER )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4377
SELECT 52 DIV 47 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4377
SELECT 52 / 47 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4378
SELECT + 71 DIV - 88 + + 25 - - ( 91 ) * + 39 * ( COUNT( * ) ) * ( MAX( DISTINCT 68 ) ) AS col0
----
241357

skipif mysql # not compatible
query I rowsort label-4378
SELECT + 71 / - 88 + + 25 - - ( 91 ) * + 39 * ( COUNT ( * ) ) * ( MAX ( DISTINCT 68 ) ) AS col0
----
241357

query I rowsort
SELECT 97 * + 41
----
3977

query I rowsort
SELECT 3 + - 27
----
-24

query II rowsort
SELECT CASE + 8 WHEN - 22 - 21 THEN + - 90 WHEN - - AVG ( + 90 ) THEN NULL END / - 28 / - 36 col1, + 91
----
NULL
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4382
SELECT - ( - COUNT( * ) ) * + 9 + - 0 * + COUNT( * ) + NULLIF ( - 56, MIN( - 99 ) + 43 * + CASE CAST( NULL AS DECIMAL ) WHEN + 48 + 67 / 87 THEN + MAX( ALL 31 ) END ) + 94
----
47

skipif mysql # not compatible
query I rowsort label-4382
SELECT - ( - COUNT ( * ) ) * + 9 + - 0 * + COUNT ( * ) + NULLIF ( - 56, MIN ( - 99 ) + 43 * + CASE CAST ( NULL AS REAL ) WHEN + 48 + 67 / 87 THEN + MAX ( ALL 31 ) END ) + 94
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4383
SELECT 80, COALESCE ( + SUM( 74 ), - 50 ) * + 6 * + 31 AS col2
----
80
13764

skipif mysql # not compatible
query II rowsort label-4383
SELECT 80, COALESCE ( + SUM ( 74 ), - 50 ) * + 6 * + 31 AS col2
----
80
13764

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4384
SELECT 85, + 45 * + CAST( NULL AS SIGNED ) AS col0
----
85
NULL

skipif mysql # not compatible
query II rowsort label-4384
SELECT 85, + 45 * + CAST ( NULL AS INTEGER ) AS col0
----
85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT ALL 71 * MIN( - 79 ) * 60
----
-336540

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL 71 * MIN ( - 79 ) * 60
----
-336540

query II rowsort
SELECT + 86, + 5 AS col0
----
86
5

query I rowsort
SELECT ALL NULLIF ( 33, 78 - - + 0 ) + - + 59 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT + 69 - - MIN( ALL + - 49 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4388
SELECT + 69 - - MIN ( ALL + - 49 ) AS col2
----
20

query I rowsort
SELECT - ( - - 19 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT COALESCE ( + 65, + 28 * COUNT( * ) * - 17 ) * + 11 AS col2
----
715

skipif mysql # not compatible
query I rowsort label-4390
SELECT COALESCE ( + 65, + 28 * COUNT ( * ) * - 17 ) * + 11 AS col2
----
715

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT + ( + - 57 ) * + COUNT( ALL - ( + 49 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-4391
SELECT + ( + - 57 ) * + COUNT ( ALL - ( + 49 ) )
----
-57

query I rowsort
SELECT ALL - - 5 * - 19 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL + - COUNT( * ) - + + 76 col1
----
-77

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL + - COUNT ( * ) - + + 76 col1
----
-77

query I rowsort
SELECT - 19 - - + 38
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-4395
SELECT ALL 88 * - + ( - 16 ), 7 DIV - 24 * + 81 AS col0
----
1408
0

skipif mysql # not compatible
query II rowsort label-4395
SELECT ALL 88 * - + ( - 16 ), 7 / - 24 * + 81 AS col0
----
1408
0

query I rowsort
SELECT + 85 + - 4 AS col0
----
81

query I rowsort
SELECT 71 * - + 73 AS col1
----
-5183

query I rowsort
SELECT - 77 + + - 99
----
-176

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT ALL + - 38 DIV - + 92
----
0

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL + - 38 / - + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT 94 * - - 10 * SUM( ALL - 18 ) * - - 97
----
-1641240

skipif mysql # not compatible
query I rowsort label-4400
SELECT 94 * - - 10 * SUM ( ALL - 18 ) * - - 97
----
-1641240

query I rowsort
SELECT ALL - ( - + 56 ) * + COALESCE ( + 2, - + 28 ) AS col2
----
112

query I rowsort
SELECT 43 + + + 87 - + 60 * - 35
----
2230

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4403
SELECT ALL 78 AS col1, 0 * - CAST( 0 AS SIGNED ) DIV 77
----
78
0

skipif mysql # not compatible
query II rowsort label-4403
SELECT ALL 78 AS col1, 0 * - CAST ( 0 AS INTEGER ) / 77
----
78
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT - COUNT( * ) + + 1 + + + 99 + - - CASE - + 42 WHEN + 87 THEN 22 + + AVG ( + 53 ) + - 45 * + 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4404
SELECT - COUNT ( * ) + + 1 + + + 99 + - - CASE - + 42 WHEN + 87 THEN 22 + + AVG ( + 53 ) + - 45 * + 35 END
----
NULL

query I rowsort
SELECT ALL 26 * - - 26
----
676

query I rowsort
SELECT ALL - 12 * + + ( 45 ) AS col1
----
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT - ( 2 ) + - 92 + ( 90 ) DIV 45 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4407
SELECT - ( 2 ) + - 92 + ( 90 ) / 45 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT - MIN( DISTINCT 63 ) * - + 70
----
4410

skipif mysql # not compatible
query I rowsort label-4408
SELECT - MIN ( DISTINCT 63 ) * - + 70
----
4410

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT NULLIF ( MIN( + 27 ), 64 * 55 + 56 + - + 35 )
----
27

skipif mysql # not compatible
query I rowsort label-4409
SELECT NULLIF ( MIN ( + 27 ), 64 * 55 + 56 + - + 35 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4410
SELECT ALL + 97 * - - 11 + + COUNT( * ) - - + 72 - + CASE - 13 WHEN SUM( ALL - - 62 ) + - - 30 + + CAST( NULL AS SIGNED ) / 79 / - COUNT( * ) / + 2 THEN NULL WHEN - COUNT( - 50 ) THEN 7 * 6 ELSE NULL END / 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL + 97 * - - 11 + + COUNT ( * ) - - + 72 - + CASE - 13 WHEN SUM ( ALL - - 62 ) + - - 30 + + CAST ( NULL AS INTEGER ) / 79 / - COUNT ( * ) / + 2 THEN NULL WHEN - COUNT ( - 50 ) THEN 7 * 6 ELSE NULL END / 99
----
NULL

query I rowsort
SELECT ALL ( + NULLIF ( + 63, 71 ) ) * + + 1 col0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4412
SELECT + 18 DIV + - 18 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4412
SELECT + 18 / + - 18 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL 66 * - 55 + + - COUNT( ALL + 64 )
----
-3631

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL 66 * - 55 + + - COUNT ( ALL + 64 )
----
-3631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT - ( + COALESCE ( + 71, - - 72 * + - COALESCE ( 37, + - 93 ) - - 21, + - 0 ) ) + ( MAX( DISTINCT - - 62 ) ) + - + CASE + + 91 WHEN 8 * - 18 - 52 THEN 83 * - 28 WHEN - 88 / - AVG ( - 55 ) + + 78 THEN + 64 + - CASE NULLIF ( 32, CASE + ( 35 ) WHEN - 90 + + CASE 78 WHEN 90 THEN 99 END THEN CAST( NULL AS SIGNED ) ELSE 41 END ) - ( 51 ) WHEN 46 THEN - 80 + 97 ELSE + COUNT( * ) / 0 + 46 * - CAST( 53 AS SIGNED ) END * + 64 ELSE NULL END + 34 * 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT - ( + COALESCE ( + 71, - - 72 * + - COALESCE ( 37, + - 93 ) - - 21, + - 0 ) ) + ( MAX ( DISTINCT - - 62 ) ) + - + CASE + + 91 WHEN 8 * - 18 - 52 THEN 83 * - 28 WHEN - 88 / - AVG ( - 55 ) + + 78 THEN + 64 + - CASE NULLIF ( 32, CASE + ( 35 ) WHEN - 90 + + CASE 78 WHEN 90 THEN 99 END THEN CAST ( NULL AS INTEGER ) ELSE 41 END ) - ( 51 ) WHEN 46 THEN - 80 + 97 ELSE + COUNT ( * ) / 0 + 46 * - CAST ( 53 AS INTEGER ) END * + 64 ELSE NULL END + 34 * 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT 50 * + + 9 + + SUM( 24 ) + - - 91 * + 46
----
4660

skipif mysql # not compatible
query I rowsort label-4415
SELECT 50 * + + 9 + + SUM ( 24 ) + - - 91 * + 46
----
4660

onlyif mysql # aggregate syntax: 
query II rowsort label-4416
SELECT + 12 - + + 15 AS col2, + COUNT( * )
----
-3
1

skipif mysql # not compatible
query II rowsort label-4416
SELECT + 12 - + + 15 AS col2, + COUNT ( * )
----
-3
1

query I rowsort
SELECT ALL 18 * - + 24
----
-432

query I rowsort
SELECT + 76 * 98
----
7448

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT DISTINCT - - 18 * + 19 * - 16 + - 66 + + + 50 - + + NULLIF ( COUNT( * ), - + 10 )
----
-5489

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT - - 18 * + 19 * - 16 + - 66 + + + 50 - + + NULLIF ( COUNT ( * ), - + 10 )
----
-5489

query I rowsort
SELECT ALL 59 * + - 23 * - + 67 AS col0
----
90919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4421
SELECT DISTINCT CAST( 35 AS SIGNED ) * - NULLIF ( - + COUNT( * ), + 68 * 1 * + ( + 92 ) * 8 + - - ( + - CAST( NULL AS SIGNED ) ) + 58 / - 58 / - MIN( 18 ) - + 51 * 65 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT CAST ( 35 AS INTEGER ) * - NULLIF ( - + COUNT ( * ), + 68 * 1 * + ( + 92 ) * 8 + - - ( + - CAST ( NULL AS INTEGER ) ) + 58 / - 58 / - MIN ( 18 ) - + 51 * 65 ) AS col1
----
35

query I rowsort
SELECT - - 90 * - + ( - + 47 ) + - 36 AS col1
----
4194

onlyif mysql # aggregate syntax: 
query II rowsort label-4423
SELECT + ( 63 ), - 33 + 67 * COUNT( * ) AS col2
----
63
34

skipif mysql # not compatible
query II rowsort label-4423
SELECT + ( 63 ), - 33 + 67 * COUNT ( * ) AS col2
----
63
34

query II rowsort
SELECT DISTINCT + ( - 7 ) AS col1, 98
----
-7
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT - + CASE + + 15 WHEN - 85 + 75 + + + 85 THEN - 2 END + + CAST( - - 32 AS SIGNED ) * - + MAX( - + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT - + CASE + + 15 WHEN - 85 + 75 + + + 85 THEN - 2 END + + CAST ( - - 32 AS INTEGER ) * - + MAX ( - + 60 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4426
SELECT + CASE - + 75 WHEN + 43 THEN - - 72 - - - ( - COALESCE ( - 46, CASE - CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN - MAX( DISTINCT - 74 ) + - MIN( - + 71 ) WHEN 20 THEN - AVG ( DISTINCT + 61 ) / + 59 END, 8 * + COUNT( * ) ) ) ELSE NULL END * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT + CASE - + 75 WHEN + 43 THEN - - 72 - - - ( - COALESCE ( - 46, CASE - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN - MAX ( DISTINCT - 74 ) + - MIN ( - + 71 ) WHEN 20 THEN - AVG ( DISTINCT + 61 ) / + 59 END, 8 * + COUNT ( * ) ) ) ELSE NULL END * 63
----
NULL

query I rowsort
SELECT - 66 + - 90 AS col1
----
-156

query I rowsort
SELECT + + 90 * + ( - 62 ) + + + 84 + + 48 + + 10 - 32 * + 33 AS col2
----
-6494

query I rowsort
SELECT ALL 89 * + ( - 48 ) AS col1
----
-4272

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT - - 79 + + SUM( DISTINCT - - 68 ) AS col0
----
147

skipif mysql # not compatible
query I rowsort label-4430
SELECT - - 79 + + SUM ( DISTINCT - - 68 ) AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT DISTINCT COUNT( * ) * - 38 * + 43
----
-1634

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT COUNT ( * ) * - 38 * + 43
----
-1634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4432
SELECT - ( - 32 ) DIV + 14 * + COUNT( * ) + COUNT( * ) * - MIN( - 44 )
----
46

skipif mysql # not compatible
query I rowsort label-4432
SELECT - ( - 32 ) / + 14 * + COUNT ( * ) + COUNT ( * ) * - MIN ( - 44 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT ALL + 80 + - COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL + 80 + - COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT + ( MAX( ALL - 30 ) ) - + 74 + COALESCE ( + - 28, - 61 ) + + 56 * - 18
----
-1140

skipif mysql # not compatible
query I rowsort label-4434
SELECT + ( MAX ( ALL - 30 ) ) - + 74 + COALESCE ( + - 28, - 61 ) + + 56 * - 18
----
-1140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4435
SELECT - ( COUNT( * ) ) DIV 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4435
SELECT - ( COUNT ( * ) ) / 72 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4436
SELECT DISTINCT - 35 + 55 + + 38 + + 81 + - + 30 * 60 / + 46 * - - CAST( NULL AS SIGNED ) - - CAST( 92 AS SIGNED ) col0, - 46 * + + CAST( 75 AS SIGNED ) AS col1, - 0 + + 76
----
NULL
-3450
76

skipif mysql # not compatible
query III rowsort label-4436
SELECT DISTINCT - 35 + 55 + + 38 + + 81 + - + 30 * 60 / + 46 * - - CAST ( NULL AS INTEGER ) - - CAST ( 92 AS INTEGER ) col0, - 46 * + + CAST ( 75 AS INTEGER ) AS col1, - 0 + + 76
----
NULL
-3450
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT ALL + MIN( 51 ) + - COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL + MIN ( 51 ) + - COUNT ( * ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT - CASE - COUNT( * ) WHEN 90 * + COUNT( * ) * - 79 * - 14 - + + 92 + + - 11 THEN NULL WHEN 92 + + ( + 15 ) * 16 THEN + 44 ELSE + + 48 END + + 52
----
4

skipif mysql # not compatible
query I rowsort label-4438
SELECT - CASE - COUNT ( * ) WHEN 90 * + COUNT ( * ) * - 79 * - 14 - + + 92 + + - 11 THEN NULL WHEN 92 + + ( + 15 ) * 16 THEN + 44 ELSE + + 48 END + + 52
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4439
SELECT ALL NULLIF ( + 45, - 28 ) AS col2, COUNT( DISTINCT - 92 ) - + 12
----
45
-11

skipif mysql # not compatible
query II rowsort label-4439
SELECT ALL NULLIF ( + 45, - 28 ) AS col2, COUNT ( DISTINCT - 92 ) - + 12
----
45
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT - 66 + - MAX( ALL + ( - - 14 ) ) * 49 AS col0
----
-752

skipif mysql # not compatible
query I rowsort label-4440
SELECT - 66 + - MAX ( ALL + ( - - 14 ) ) * 49 AS col0
----
-752

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4441
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) * - - 70 + MIN( + 52 ) AS col0, COUNT( * )
----
122
1

skipif mysql # not compatible
query II rowsort label-4441
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) * - - 70 + MIN ( + 52 ) AS col0, COUNT ( * )
----
122
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4442
SELECT ALL 93 DIV - 58 + 5 + - 94 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL 93 / - 58 + 5 + - 94 AS col2
----
-90

query II rowsort
SELECT + 20 AS col0, + 30 AS col0
----
20
30

query I rowsort
SELECT - ( + 22 ) * + 4 AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4445
SELECT - 24 DIV - COUNT( * ) + + COALESCE ( - COALESCE ( - - 36, - + 5 * - 22 * + 40 * 41 DIV - SUM( 45 ) + + ( 71 ) + + - COUNT( * ) DIV - ( 86 ) * - COALESCE ( 99 + 76 * 47, - 63 - - 66 * CAST( + 71 - 48 AS SIGNED ), 63, - COUNT( * ) ) * - 93 + 22 * - 67 ), 63 + 39 ) * - 45 AS col0
----
1644

skipif mysql # not compatible
query I rowsort label-4445
SELECT - 24 / - COUNT ( * ) + + COALESCE ( - COALESCE ( - - 36, - + 5 * - 22 * + 40 * 41 / - SUM ( 45 ) + + ( 71 ) + + - COUNT ( * ) / - ( 86 ) * - COALESCE ( 99 + 76 * 47, - 63 - - 66 * CAST ( + 71 - 48 AS INTEGER ), 63, - COUNT ( * ) ) * - 93 + 22 * - 67 ), 63 + 39 ) * - 45 AS col0
----
1644

onlyif mysql # aggregate syntax: 
query II rowsort label-4446
SELECT ALL + 45 * - 40 * - + COUNT( * ) AS col2, ( + 77 ) col1
----
1800
77

skipif mysql # not compatible
query II rowsort label-4446
SELECT ALL + 45 * - 40 * - + COUNT ( * ) AS col2, ( + 77 ) col1
----
1800
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4447
SELECT ALL + 60 DIV - 89 - + 74 + + 27 - - 59 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL + 60 / - 89 - + 74 + + 27 - - 59 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4448
SELECT - + COUNT( * ) * 57 + - - CAST( - 19 AS SIGNED ) + + 74 col0
----
-2

skipif mysql # not compatible
query I rowsort label-4448
SELECT - + COUNT ( * ) * 57 + - - CAST ( - 19 AS INTEGER ) + + 74 col0
----
-2

query I rowsort
SELECT ALL + ( + - 12 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT ALL + MAX( - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL + MAX ( - 82 )
----
-82

query I rowsort
SELECT DISTINCT 49 * 57 AS col2
----
2793

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT - + COUNT( * ) * - - SUM( - 72 ) * + + 71 * 51 - - 13 AS col2
----
260725

skipif mysql # not compatible
query I rowsort label-4452
SELECT - + COUNT ( * ) * - - SUM ( - 72 ) * + + 71 * 51 - - 13 AS col2
----
260725

query I rowsort
SELECT - 67 - + 68 * 70
----
-4827

onlyif mysql # DIV for integer division: 
query I rowsort label-4454
SELECT ALL 6 * - - 54 + + - 80 DIV - 72
----
325

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL 6 * - - 54 + + - 80 / - 72
----
325

query I rowsort
SELECT + + 94 + + ( - - 0 ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4456
SELECT ALL - ( + ( + - NULLIF ( + 37, + 97 * 1 + - CAST( NULL AS SIGNED ) ) ) ) * - CASE - COALESCE ( + AVG ( - 65 ), 84 * + 65, 55 * - + MIN( ALL + 39 ) * + COUNT( * ) ) WHEN + 96 THEN SUM( COALESCE ( 21, + 13 ) ) WHEN - 41 THEN 9 + 66 * 6 ELSE NULL END * 69 + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - ( + ( + - NULLIF ( + 37, + 97 * 1 + - CAST ( NULL AS INTEGER ) ) ) ) * - CASE - COALESCE ( + AVG ( - 65 ), 84 * + 65, 55 * - + MIN ( ALL + 39 ) * + COUNT ( * ) ) WHEN + 96 THEN SUM ( COALESCE ( 21, + 13 ) ) WHEN - 41 THEN 9 + 66 * 6 ELSE NULL END * 69 + 65 AS col0
----
NULL

query I rowsort
SELECT + ( + 53 ) - - 9 * - 2 AS col1
----
35

query I rowsort
SELECT DISTINCT 95 + + + 58 AS col1
----
153

query I rowsort
SELECT DISTINCT + - 8 + - - 87 + + + 87
----
166

query I rowsort
SELECT ALL + 95 + + 1 * + + 71 * - 40 AS col2
----
-2745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4461
SELECT CASE - ( - 78 ) WHEN + + 9 * + - 88 + 28 THEN + 6 WHEN COUNT( * ) THEN NULL ELSE NULL END * - 18 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT CASE - ( - 78 ) WHEN + + 9 * + - 88 + 28 THEN + 6 WHEN COUNT ( * ) THEN NULL ELSE NULL END * - 18 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4462
SELECT 62 + CAST( NULL AS SIGNED ) / - 30 + - 61, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4462
SELECT 62 + CAST ( NULL AS INTEGER ) / - 30 + - 61, + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4463
SELECT - 39 AS col0, COUNT( * )
----
-39
1

skipif mysql # not compatible
query II rowsort label-4463
SELECT - 39 AS col0, COUNT ( * )
----
-39
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4464
SELECT 3 + + + MIN( - 92 ) + - - CAST( NULL AS SIGNED ) * + 5 - ( - - 62 ) * + + 15 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT 3 + + + MIN ( - 92 ) + - - CAST ( NULL AS INTEGER ) * + 5 - ( - - 62 ) * + + 15 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4465
SELECT 6 - + + 69 * - ( 24 ), + 38 * CAST( NULL AS SIGNED ) AS col1
----
1662
NULL

skipif mysql # not compatible
query II rowsort label-4465
SELECT 6 - + + 69 * - ( 24 ), + 38 * CAST ( NULL AS INTEGER ) AS col1
----
1662
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4466
SELECT 13 DIV + SUM( ALL + - 47 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4466
SELECT 13 / + SUM ( ALL + - 47 ) AS col0
----
0

query II rowsort
SELECT - 50 AS col1, + 98 - - - 67
----
-50
31

query I rowsort
SELECT DISTINCT 14 + - NULLIF ( 51, + 4 * - + 25 / - 96 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT 96 + - 28 + - 89 * - - COALESCE ( 56, + 83 * - 73 + - CASE + - 3 WHEN MIN( 90 ) THEN - MAX( 38 ) WHEN + 80 / + 41 THEN NULL END + 15 * 73 + - 64 ) AS col2
----
-4916

skipif mysql # not compatible
query I rowsort label-4469
SELECT 96 + - 28 + - 89 * - - COALESCE ( 56, + 83 * - 73 + - CASE + - 3 WHEN MIN ( 90 ) THEN - MAX ( 38 ) WHEN + 80 / + 41 THEN NULL END + 15 * 73 + - 64 ) AS col2
----
-4916

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL 48 + - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL 48 + - COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT CASE + 69 WHEN - MIN( ALL - 48 ) + - - 24 THEN + 53 * + 87 ELSE NULL END - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT CASE + 69 WHEN - MIN ( ALL - 48 ) + - - 24 THEN + 53 * + 87 ELSE NULL END - + 24
----
NULL

query I rowsort
SELECT 86 * + 71 AS col2
----
6106

onlyif mysql # DIV for integer division: 
query I rowsort label-4473
SELECT 28 DIV + 28
----
1

skipif mysql # not compatible
query I rowsort label-4473
SELECT 28 / + 28
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4474
SELECT DISTINCT - 4 DIV + 86 * + 74 * - + COUNT( * ) * - - 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT - 4 / + 86 * + 74 * - + COUNT ( * ) * - - 43 AS col1
----
0

query I rowsort
SELECT 12 * + - 19 * - 11
----
2508

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT ALL - ( - 45 ) DIV - + 19 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL - ( - 45 ) / - + 19 AS col0
----
-2

query I rowsort
SELECT 18 - 21 * COALESCE ( + 1, + 36 ) + + 17 + + 27 AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4478
SELECT ALL 82 DIV MAX( + 26 )
----
3

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL 82 / MAX ( + 26 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT ALL - MIN( DISTINCT + 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL - MIN ( DISTINCT + 4 )
----
-4

query I rowsort
SELECT ALL + 45 * + - 33 * + - 71 AS col1
----
105435

onlyif mysql # aggregate syntax: 
query II rowsort label-4481
SELECT DISTINCT - 29 AS col1, COUNT( * ) AS col1
----
-29
1

skipif mysql # not compatible
query II rowsort label-4481
SELECT DISTINCT - 29 AS col1, COUNT ( * ) AS col1
----
-29
1

query I rowsort
SELECT DISTINCT + + 44 * - ( - 86 )
----
3784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT ALL + 84 * - + 6 * 3 + + 71 * CAST( NULL AS SIGNED ) + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL + 84 * - + 6 * 3 + + 71 * CAST ( NULL AS INTEGER ) + 85
----
NULL

query I rowsort
SELECT + 21 - + - 31
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4485
SELECT ALL - - CAST( + - 81 AS SIGNED ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL - - CAST ( + - 81 AS INTEGER ) AS col0
----
-81

query I rowsort
SELECT - 65 + 58 col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT 40 * + COUNT( * ) * + 25 - - MIN( DISTINCT + 73 ) - - 3 + + - 79
----
997

skipif mysql # not compatible
query I rowsort label-4487
SELECT 40 * + COUNT ( * ) * + 25 - - MIN ( DISTINCT + 73 ) - - 3 + + - 79
----
997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4488
SELECT NULLIF ( - 83, + + NULLIF ( - 53, + COUNT( * ) * - + 53 * - COALESCE ( - + 94, CAST( NULL AS SIGNED ), 82 / - ( 5 ) ) - + 54 ) * - SUM( - ( + + 17 ) ) ) * 58 AS col0
----
-4814

skipif mysql # not compatible
query I rowsort label-4488
SELECT NULLIF ( - 83, + + NULLIF ( - 53, + COUNT ( * ) * - + 53 * - COALESCE ( - + 94, CAST ( NULL AS INTEGER ), 82 / - ( 5 ) ) - + 54 ) * - SUM ( - ( + + 17 ) ) ) * 58 AS col0
----
-4814

query I rowsort
SELECT + 87 + + - 58 AS col1
----
29

query I rowsort
SELECT DISTINCT + COALESCE ( - 68, + 45 ) + - - 56
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4491
SELECT 80 DIV COUNT( * ) col1
----
80

skipif mysql # not compatible
query I rowsort label-4491
SELECT 80 / COUNT ( * ) col1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4492
SELECT DISTINCT - - NULLIF ( CAST( NULL AS SIGNED ), - 25 ) + 54 + + + ( 59 ) AS col2, + 3 * + 96 AS col1
----
NULL
288

skipif mysql # not compatible
query II rowsort label-4492
SELECT DISTINCT - - NULLIF ( CAST ( NULL AS INTEGER ), - 25 ) + 54 + + + ( 59 ) AS col2, + 3 * + 96 AS col1
----
NULL
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4493
SELECT ALL + - CAST( NULL AS SIGNED ) + + 89 - + - 23 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL + - CAST ( NULL AS INTEGER ) + + 89 - + - 23 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT - 28 + - ( + - CAST( 57 AS SIGNED ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4494
SELECT - 28 + - ( + - CAST ( 57 AS INTEGER ) ) AS col2
----
29

query I rowsort
SELECT 28 * - + 33
----
-924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4496
SELECT ALL - - 27 * + 87 * CAST( 60 AS SIGNED ) / + CASE + 26 WHEN + CAST( NULL AS SIGNED ) THEN 78 END * + - 0 + 8 + + 2 + - CAST( MIN( DISTINCT - NULLIF ( - + 24, - - ( - 75 ) ) ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL - - 27 * + 87 * CAST ( 60 AS INTEGER ) / + CASE + 26 WHEN + CAST ( NULL AS INTEGER ) THEN 78 END * + - 0 + 8 + + 2 + - CAST ( MIN ( DISTINCT - NULLIF ( - + 24, - - ( - 75 ) ) ) AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ( + 62 ) + 99 AS col0
----
161

query I rowsort
SELECT 18 + - 35 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT ALL COALESCE ( + - 49, - NULLIF ( + 37, - 9 + 0 / CAST( - 59 AS SIGNED ) ), + 97 * - + 35 ) + + 20 + + 69 * + 98 + 18 + - 78 AS col2
----
6673

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL COALESCE ( + - 49, - NULLIF ( + 37, - 9 + 0 / CAST ( - 59 AS INTEGER ) ), + 97 * - + 35 ) + + 20 + + 69 * + 98 + 18 + - 78 AS col2
----
6673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4500
SELECT DISTINCT + 81 + + - COUNT( * ), CASE - AVG ( + + 90 ) WHEN + 13 * + ( - - 1 ) * + + COALESCE ( - 88, - 14 / CAST( + - 51 AS DECIMAL ) + + 82 ) * - MAX( ALL - + 71 ) + - ( + CAST( NULL AS SIGNED ) ) + 2 THEN + 60 END AS col1
----
80
NULL

skipif mysql # not compatible
query II rowsort label-4500
SELECT DISTINCT + 81 + + - COUNT ( * ), CASE - AVG ( + + 90 ) WHEN + 13 * + ( - - 1 ) * + + COALESCE ( - 88, - 14 / CAST ( + - 51 AS REAL ) + + 82 ) * - MAX ( ALL - + 71 ) + - ( + CAST ( NULL AS INTEGER ) ) + 2 THEN + 60 END AS col1
----
80
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4501
SELECT ALL 49 + NULLIF ( COALESCE ( - - 73, + 92 - COUNT( 80 ), - 38 DIV - 99 * - + 74 + + + 76 + + + COUNT( * ) + + 80 - + 85 + + CASE + 52 WHEN 19 THEN - COUNT( * ) * COUNT( * ) WHEN - 65 * 85 THEN - 40 END DIV 61 * 72, + 12 DIV 84 ), - 46 )
----
122

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL 49 + NULLIF ( COALESCE ( - - 73, + 92 - COUNT ( 80 ), - 38 / - 99 * - + 74 + + + 76 + + + COUNT ( * ) + + 80 - + 85 + + CASE + 52 WHEN 19 THEN - COUNT ( * ) * COUNT ( * ) WHEN - 65 * 85 THEN - 40 END / 61 * 72, + 12 / 84 ), - 46 )
----
122

query I rowsort
SELECT ALL 7 - - 62
----
69

query I rowsort
SELECT 83 + + 50 col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT 31 * + + COUNT( * ) col1
----
31

skipif mysql # not compatible
query I rowsort label-4504
SELECT 31 * + + COUNT ( * ) col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4505
SELECT 38 + + 75 + - 12 * + + 50 * - - CASE + 34 WHEN 79 * - - 17 - 69 - - CAST( NULL AS SIGNED ) * - AVG ( DISTINCT + 92 ) THEN COUNT( * ) / - - ( 20 ) ELSE NULL END * - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4505
SELECT 38 + + 75 + - 12 * + + 50 * - - CASE + 34 WHEN 79 * - - 17 - 69 - - CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT + 92 ) THEN COUNT ( * ) / - - ( 20 ) ELSE NULL END * - 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT ALL 95 * SUM( + - ( 66 ) ) * - ( + 23 ) AS col2
----
144210

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL 95 * SUM ( + - ( 66 ) ) * - ( + 23 ) AS col2
----
144210

query I rowsort
SELECT 21 * 7 AS col2
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-4508
SELECT ALL 41 DIV + 14
----
2

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL 41 / + 14
----
2

query I rowsort
SELECT 28 + - 81 AS col2
----
-53

query I rowsort
SELECT ALL 59 * + 17
----
1003

query I rowsort
SELECT ALL - NULLIF ( 26, + 80 )
----
-26

query I rowsort
SELECT DISTINCT 43 * + COALESCE ( + 75, + 34 ) col1
----
3225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4513
SELECT 15 * - + 42, 29 DIV - MAX( ALL 9 ) + - NULLIF ( - - 47, + 18 ) AS col2
----
-630
-50

skipif mysql # not compatible
query II rowsort label-4513
SELECT 15 * - + 42, 29 / - MAX ( ALL 9 ) + - NULLIF ( - - 47, + 18 ) AS col2
----
-630
-50

query I rowsort
SELECT DISTINCT - + ( 16 ) AS col0
----
-16

query I rowsort
SELECT ALL - COALESCE ( - 96, - + 91 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4516
SELECT + - COUNT( * ) / CAST( NULL AS SIGNED ) + - ( + 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4516
SELECT + - COUNT ( * ) / CAST ( NULL AS INTEGER ) + - ( + 73 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4517
SELECT + 19 + - + 43 * + - 71 + - 83 + + - ( - 36 ) + - 26 / + + CASE - ( + - 99 ) WHEN 63 + + ( + AVG ( ALL + 64 ) ) THEN - + 96 WHEN + ( + 8 ) + 95 THEN NULL WHEN + 22 / + NULLIF ( - COUNT( 1 ), 12 ) THEN - CAST( + 42 AS SIGNED ) ELSE NULL END * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4517
SELECT + 19 + - + 43 * + - 71 + - 83 + + - ( - 36 ) + - 26 / + + CASE - ( + - 99 ) WHEN 63 + + ( + AVG ( ALL + 64 ) ) THEN - + 96 WHEN + ( + 8 ) + 95 THEN NULL WHEN + 22 / + NULLIF ( - COUNT ( 1 ), 12 ) THEN - CAST ( + 42 AS INTEGER ) ELSE NULL END * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL + + CASE WHEN NOT NULL BETWEEN ( - 98 ) AND + - COUNT( ALL - 77 ) THEN - + 97 END / + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL + + CASE WHEN NOT NULL BETWEEN ( - 98 ) AND + - COUNT ( ALL - 77 ) THEN - + 97 END / + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 63 * - 25
----
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT DISTINCT + 31 * + ( + + ( COUNT( * ) ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT + 31 * + ( + + ( COUNT ( * ) ) ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT DISTINCT + + COUNT( * ) * + 52 + + 96 + + 76 AS col0
----
224

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT + + COUNT ( * ) * + 52 + + 96 + + 76 AS col0
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL + COUNT( 49 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL + COUNT ( 49 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4523
SELECT ALL CAST( NULL AS SIGNED ) * - 81 * - + ( ( - COUNT( * ) ) ) + 2 + + - 89 + - COALESCE ( - 58, - 78, 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL CAST ( NULL AS INTEGER ) * - 81 * - + ( ( - COUNT ( * ) ) ) + 2 + + - 89 + - COALESCE ( - 58, - 78, 42 )
----
NULL

query I rowsort
SELECT DISTINCT - 46 + 25 * + - 82 AS col0
----
-2096

query II rowsort
SELECT ALL + 87 + 1 col0, 88 * + 62 * - 5 AS col2
----
88
-27280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4526
SELECT ALL - 67 + + 30 / + CAST( NULL AS SIGNED ), 23 / + + CAST( NULL AS SIGNED ) * - + 73 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4526
SELECT ALL - 67 + + 30 / + CAST ( NULL AS INTEGER ), 23 / + + CAST ( NULL AS INTEGER ) * - + 73 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT MAX( 5 )
----
5

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT MAX ( 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL MAX( 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL MAX ( 78 ) AS col2
----
78

query II rowsort
SELECT 40 AS col0, + 27
----
40
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL - 31 - ( + - 71 ) + + 37 + + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - 31 - ( + - 71 ) + + 37 + + COUNT ( * )
----
78

query I rowsort
SELECT DISTINCT CASE + 77 WHEN - 74 THEN - 23 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4532
SELECT ALL + 22 DIV - COUNT( * ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL + 22 / - COUNT ( * ) AS col0
----
-22

query II rowsort
SELECT - 51 AS col2, 51 - - 41 + - 73 col1
----
-51
19

query I rowsort
SELECT - 90 + + 22 + - + 73
----
-141

query I rowsort
SELECT - 83 * - ( - - ( - 81 ) )
----
-6723

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT - CASE - - 41 WHEN + COUNT( - 66 ) THEN + 28 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT - CASE - - 41 WHEN + COUNT ( - 66 ) THEN + 28 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4537
SELECT ALL 54 * CASE - SUM( - + 5 ) WHEN + - 72 * - 42 * + 91 * - 77 + + 27 THEN NULL WHEN CASE 81 WHEN - 12 THEN 24 * COALESCE ( - - 2, - 96 ) * 11 / - + 72 + + ( + 11 ) WHEN 71 + CAST( + MAX( 59 ) AS SIGNED ) * 86 THEN 73 * 57 END + 9 * COUNT( * ) THEN NULL WHEN 63 + 87 THEN - COUNT( * ) ELSE 96 + 96 END * - 60 AS col0
----
-622080

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL 54 * CASE - SUM ( - + 5 ) WHEN + - 72 * - 42 * + 91 * - 77 + + 27 THEN NULL WHEN CASE 81 WHEN - 12 THEN 24 * COALESCE ( - - 2, - 96 ) * 11 / - + 72 + + ( + 11 ) WHEN 71 + CAST ( + MAX ( 59 ) AS INTEGER ) * 86 THEN 73 * 57 END + 9 * COUNT ( * ) THEN NULL WHEN 63 + 87 THEN - COUNT ( * ) ELSE 96 + 96 END * - 60 AS col0
----
-622080

query II rowsort
SELECT - 15, + 25 AS col2
----
-15
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT ALL NULLIF ( - 40, - COUNT( * ) * - 11 )
----
-40

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL NULLIF ( - 40, - COUNT ( * ) * - 11 )
----
-40

query I rowsort
SELECT DISTINCT + 5 * - - 77
----
385

onlyif mysql # DIV for integer division: 
query I rowsort label-4541
SELECT + 36 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-4541
SELECT + 36 / 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4542
SELECT ALL 71 AS col1, - MIN( DISTINCT 61 ) * - 97 * 72 AS col0
----
71
426024

skipif mysql # not compatible
query II rowsort label-4542
SELECT ALL 71 AS col1, - MIN ( DISTINCT 61 ) * - 97 * 72 AS col0
----
71
426024

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT + 53 * + 79 * COUNT( * )
----
4187

skipif mysql # not compatible
query I rowsort label-4543
SELECT + 53 * + 79 * COUNT ( * )
----
4187

query I rowsort
SELECT + 12 + 66
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4545
SELECT ALL - 32 * + CAST( - + MAX( + 30 ) AS SIGNED )
----
960

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL - 32 * + CAST ( - + MAX ( + 30 ) AS INTEGER )
----
960

query II rowsort
SELECT 72 AS col2, + NULLIF ( - - 81, + 70 ) * + 73 AS col1
----
72
5913

query I rowsort
SELECT - 17 + - 85 AS col2
----
-102

query I rowsort
SELECT + - 90 * + 2 AS col1
----
-180

query I rowsort
SELECT + + 79 + + 24 + + 3
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-4550
SELECT - + ( - ( - COUNT( * ) ) ), + 10 AS col0
----
-1
10

skipif mysql # not compatible
query II rowsort label-4550
SELECT - + ( - ( - COUNT ( * ) ) ), + 10 AS col0
----
-1
10

onlyif mysql # DIV for integer division: 
query II rowsort label-4551
SELECT + + 7, - 79 DIV + + 95 * - - 43 AS col0
----
7
0

skipif mysql # not compatible
query II rowsort label-4551
SELECT + + 7, - 79 / + + 95 * - - 43 AS col0
----
7
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4552
SELECT ALL + COUNT( * ) / - COUNT( ALL + 77 ) * + AVG ( + 26 ) * - - AVG ( + + 49 ) + COUNT( * ) + 2 + + CAST( - - 98 AS SIGNED ) * + - COUNT( * ) + - 7 + - - COUNT( * ) + + 95 / 30 * + + CASE 93 WHEN 63 * 17 THEN + 1 WHEN MIN( 58 ) - - 31 THEN - 6 WHEN - COUNT( * ) THEN - 7 * 85 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL + COUNT ( * ) / - COUNT ( ALL + 77 ) * + AVG ( + 26 ) * - - AVG ( + + 49 ) + COUNT ( * ) + 2 + + CAST ( - - 98 AS INTEGER ) * + - COUNT ( * ) + - 7 + - - COUNT ( * ) + + 95 / 30 * + + CASE 93 WHEN 63 * 17 THEN + 1 WHEN MIN ( 58 ) - - 31 THEN - 6 WHEN - COUNT ( * ) THEN - 7 * 85 END AS col2
----
NULL

query I rowsort
SELECT + 47 * - 56
----
-2632

onlyif mysql # DIV for integer division: 
query I rowsort label-4554
SELECT ALL + 73 DIV - 43 + + 75 + - 35 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL + 73 / - 43 + + 75 + - 35 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT + + 63 + + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-4555
SELECT + + 63 + + COUNT ( * )
----
64

query II rowsort
SELECT + + 35, 46 AS col0
----
35
46

query I rowsort
SELECT + + ( 14 ) col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4558
SELECT ALL + 68 AS col2, CAST( NULL AS SIGNED ) * - 96 * + 79
----
68
NULL

skipif mysql # not compatible
query II rowsort label-4558
SELECT ALL + 68 AS col2, CAST ( NULL AS INTEGER ) * - 96 * + 79
----
68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + - ( + 70 ) * - 90 - 88 - - + COALESCE ( 38, COUNT( * ) + - - COALESCE ( - - ( - 20 ), - 84, 2 + 29 ) ) * - - 58 * SUM( DISTINCT + 4 ) * 4 * - 44 AS col2
----
-1545404

skipif mysql # not compatible
query I rowsort label-4559
SELECT + - ( + 70 ) * - 90 - 88 - - + COALESCE ( 38, COUNT ( * ) + - - COALESCE ( - - ( - 20 ), - 84, 2 + 29 ) ) * - - 58 * SUM ( DISTINCT + 4 ) * 4 * - 44 AS col2
----
-1545404

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4560
SELECT - 80 * + CAST( - NULLIF ( + 69, - 77 + - 74 ) AS SIGNED ) + 63 + + 45 DIV - ( 73 ) - 11 * + 66 AS col0
----
4857

skipif mysql # not compatible
query I rowsort label-4560
SELECT - 80 * + CAST ( - NULLIF ( + 69, - 77 + - 74 ) AS INTEGER ) + 63 + + 45 / - ( 73 ) - 11 * + 66 AS col0
----
4857

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4561
SELECT ALL 72 * + - 29 * COUNT( * ) - CAST( NULL AS SIGNED ) + + - CASE 27 WHEN + 50 * - 73 - 99 THEN CAST( - 50 AS SIGNED ) END + - + 91 * + + 61 * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL 72 * + - 29 * COUNT ( * ) - CAST ( NULL AS INTEGER ) + + - CASE 27 WHEN + 50 * - 73 - 99 THEN CAST ( - 50 AS INTEGER ) END + - + 91 * + + 61 * + 34
----
NULL

query II rowsort
SELECT ALL + 48, NULLIF ( - 1, 28 ) AS col1
----
48
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4563
SELECT DISTINCT + 7 * + CASE + 69 WHEN + 81 THEN + 19 + - COUNT( * ) WHEN 31 * CASE - 55 WHEN - + 4 THEN 13 + - + 99 / 82 ELSE NULL END THEN NULL ELSE NULL END - + ( + 1 ) + + + CAST( 62 AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT + 7 * + CASE + 69 WHEN + 81 THEN + 19 + - COUNT ( * ) WHEN 31 * CASE - 55 WHEN - + 4 THEN 13 + - + 99 / 82 ELSE NULL END THEN NULL ELSE NULL END - + ( + 1 ) + + + CAST ( 62 AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + - 59 * ( 39 ) * - 15 AS col0
----
34515

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT DISTINCT 90 * - 65 - COUNT( * ) * - 62
----
-5788

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT 90 * - 65 - COUNT ( * ) * - 62
----
-5788

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT ALL + NULLIF ( + - 14, - COALESCE ( 17, + COALESCE ( + 32, 53 + - - NULLIF ( + 72, - COUNT( * ) + - 2 ) + - - 70 ) ) )
----
-14

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL + NULLIF ( + - 14, - COALESCE ( 17, + COALESCE ( + 32, 53 + - - NULLIF ( + 72, - COUNT ( * ) + - 2 ) + - - 70 ) ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL - COALESCE ( + + 26, + - 87 - + - 37 * + + 59 ) * CASE 76 WHEN COUNT( * ) THEN NULL ELSE - COUNT( * ) END AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL - COALESCE ( + + 26, + - 87 - + - 37 * + + 59 ) * CASE 76 WHEN COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT + COUNT( ALL + 83 ) * - - 9 * + 17 + 42 AS col1
----
195

skipif mysql # not compatible
query I rowsort label-4568
SELECT + COUNT ( ALL + 83 ) * - - 9 * + 17 + 42 AS col1
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT - 96 * + COUNT( * ) * - - NULLIF ( NULLIF ( + 29, - 40 + + 74 * COUNT( * ) * + 47 + - COUNT( * ) * - + 52 + - 38 * + 67 * 15 + + 8 ), + - 58 ) AS col1
----
-2784

skipif mysql # not compatible
query I rowsort label-4569
SELECT - 96 * + COUNT ( * ) * - - NULLIF ( NULLIF ( + 29, - 40 + + 74 * COUNT ( * ) * + 47 + - COUNT ( * ) * - + 52 + - 38 * + 67 * 15 + + 8 ), + - 58 ) AS col1
----
-2784

query I rowsort
SELECT DISTINCT + 18 * - 76
----
-1368

query I rowsort
SELECT - 48 + - 24 + + 87 + + + 97
----
112

query I rowsort
SELECT - 60 * - - 86
----
-5160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4573
SELECT ALL MAX( + 27 ) * 50 DIV - 48 + - 73 + + - 66 col2
----
-167

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL MAX ( + 27 ) * 50 / - 48 + - 73 + + - 66 col2
----
-167

query I rowsort
SELECT DISTINCT COALESCE ( + ( - 29 ), - 55 )
----
-29

query I rowsort
SELECT DISTINCT COALESCE ( - + 57, + 78, + - 67 + 87 ) AS col0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4576
SELECT ALL ( - ( - COALESCE ( + - 0, - - 71 DIV - + 79 + + 55 * - - 1 DIV - + 7 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL ( - ( - COALESCE ( + - 0, - - 71 / - + 79 + + 55 * - - 1 / - + 7 ) ) )
----
0

query I rowsort
SELECT DISTINCT 42 * - - 76 * 53
----
169176

onlyif mysql # DIV for integer division: 
query II rowsort label-4578
SELECT DISTINCT ( - COALESCE ( 91, 48 * - - 51 + - + 80 DIV 6 ) ) AS col2, 62
----
-91
62

skipif mysql # not compatible
query II rowsort label-4578
SELECT DISTINCT ( - COALESCE ( 91, 48 * - - 51 + - + 80 / 6 ) ) AS col2, 62
----
-91
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT ALL - 28 + - + CAST( 68 AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL - 28 + - + CAST ( 68 AS INTEGER )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT - 76 - + + COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4580
SELECT - 76 - + + COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT - 94 * 59 AS col0
----
-5546

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT + COALESCE ( - + MAX( DISTINCT - + NULLIF ( + 78, - + NULLIF ( + 56, 31 ) - + 49 ) ), - 61 * - + COUNT( DISTINCT - + 32 ) + + 72 * + 3 ) + - 85 + - 83 * NULLIF ( - 78, 88 ) + COALESCE ( 78, SUM( ALL ( + 91 ) ), COUNT( * ) + + 45, 26 )
----
6545

skipif mysql # not compatible
query I rowsort label-4582
SELECT + COALESCE ( - + MAX ( DISTINCT - + NULLIF ( + 78, - + NULLIF ( + 56, 31 ) - + 49 ) ), - 61 * - + COUNT ( DISTINCT - + 32 ) + + 72 * + 3 ) + - 85 + - 83 * NULLIF ( - 78, 88 ) + COALESCE ( 78, SUM ( ALL ( + 91 ) ), COUNT ( * ) + + 45, 26 )
----
6545

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT DISTINCT + 56 * COUNT( * ) * + 72 AS col2
----
4032

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT + 56 * COUNT ( * ) * + 72 AS col2
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT + ( COUNT( * ) ) + + 21 + COUNT( * ) + - 76 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-4584
SELECT + ( COUNT ( * ) ) + + 21 + COUNT ( * ) + - 76 AS col1
----
-53

query II rowsort
SELECT ALL 61 * - 69 AS col1, - 64
----
-4209
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4586
SELECT DISTINCT - COUNT( * ) + - 83 DIV CAST( - - 35 AS SIGNED ) + + - MAX( ALL + - 41 ) + + CASE + 3 WHEN - COUNT( * ) * - - 18 * 82 THEN NULL ELSE + 44 END * 78 * + 15 AS col2
----
51518

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT - COUNT ( * ) + - 83 / CAST ( - - 35 AS INTEGER ) + + - MAX ( ALL + - 41 ) + + CASE + 3 WHEN - COUNT ( * ) * - - 18 * 82 THEN NULL ELSE + 44 END * 78 * + 15 AS col2
----
51518

query I rowsort
SELECT DISTINCT - 94 + + + 39 * - - 64 AS col2
----
2402

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT 55 + - 67 * - COUNT( * ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-4588
SELECT 55 + - 67 * - COUNT ( * ) AS col1
----
122

query I rowsort
SELECT ALL - 61 + 86
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4590
SELECT COUNT( - 25 ) AS col2, 26 AS col2
----
1
26

skipif mysql # not compatible
query II rowsort label-4590
SELECT COUNT ( - 25 ) AS col2, 26 AS col2
----
1
26

query I rowsort
SELECT ALL 50 + 70 AS col1
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4592
SELECT 34 * 2 AS col1, MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
68
NULL

skipif mysql # not compatible
query II rowsort label-4592
SELECT 34 * 2 AS col1, MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
68
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4593
SELECT + + 11 DIV + COUNT( * ) * + + COUNT( * ) + + 83 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4593
SELECT + + 11 / + COUNT ( * ) * + + COUNT ( * ) + + 83 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT + COUNT( ALL + - 10 )
----
1

skipif mysql # not compatible
query I rowsort label-4594
SELECT + COUNT ( ALL + - 10 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT DISTINCT + COUNT( DISTINCT - 84 ) + - 65
----
-64

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT + COUNT ( DISTINCT - 84 ) + - 65
----
-64

query I rowsort
SELECT - 17 + - + 56 + 77 AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4597
SELECT DISTINCT + 18 - + 8 * - CAST( + 51 AS SIGNED ) DIV + 1 * - COUNT( * ) + + + 53 AS col0
----
-337

skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT + 18 - + 8 * - CAST ( + 51 AS INTEGER ) / + 1 * - COUNT ( * ) + + + 53 AS col0
----
-337

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4598
SELECT - CASE - 68 WHEN - COUNT( ALL + 77 ) * + 53 + + - NULLIF ( - 46, + - 78 * - - 68 - + AVG ( + 5 ) * 35 ) THEN + CAST( NULL AS DECIMAL ) WHEN + 63 THEN NULL END, - 19 DIV 47 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4598
SELECT - CASE - 68 WHEN - COUNT ( ALL + 77 ) * + 53 + + - NULLIF ( - 46, + - 78 * - - 68 - + AVG ( + 5 ) * 35 ) THEN + CAST ( NULL AS REAL ) WHEN + 63 THEN NULL END, - 19 / 47 AS col2
----
NULL
0

query I rowsort
SELECT DISTINCT 62 * - 84
----
-5208

query I rowsort
SELECT ( + - 11 ) * - - 86
----
-946

onlyif mysql # DIV for integer division: 
query I rowsort label-4601
SELECT ALL - ( - 69 ) DIV 43
----
1

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL - ( - 69 ) / 43
----
1

query I rowsort
SELECT ALL - 41 * - - 35 AS col0
----
-1435

onlyif mysql # DIV for integer division: 
query I rowsort label-4603
SELECT ALL 19 DIV + + 77
----
0

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL 19 / + + 77
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4604
SELECT ALL 36 + - - MIN( ALL 38 ) - - + 37 + - + NULLIF ( - 30, - 31 ) * 74 DIV - 20 col1
----
0

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL 36 + - - MIN ( ALL 38 ) - - + 37 + - + NULLIF ( - 30, - 31 ) * 74 / - 20 col1
----
0

query I rowsort
SELECT 47 * 58
----
2726

query I rowsort
SELECT ALL ( + COALESCE ( - 64, + 50 * - 29 ) ) + + + 56 * + 96 AS col0
----
5312

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL 71 + MAX( DISTINCT - 46 ) + - 16 * - 90 * COUNT( - 45 ) col0
----
1465

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL 71 + MAX ( DISTINCT - 46 ) + - 16 * - 90 * COUNT ( - 45 ) col0
----
1465

query I rowsort
SELECT 21 + - 78
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-4609
SELECT - 26 AS col1, + 8 * + - COUNT( * ) + - 25 - - NULLIF ( + + 4, 98 - COUNT( DISTINCT 1 ) )
----
-26
-29

skipif mysql # not compatible
query II rowsort label-4609
SELECT - 26 AS col1, + 8 * + - COUNT ( * ) + - 25 - - NULLIF ( + + 4, 98 - COUNT ( DISTINCT 1 ) )
----
-26
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4610
SELECT DISTINCT - 24 + 41 DIV - ( - CAST( + 89 AS SIGNED ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT - 24 + 41 / - ( - CAST ( + 89 AS INTEGER ) ) AS col1
----
-24

query I rowsort
SELECT ALL + 69 * + ( - - 17 ) AS col2
----
1173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4612
SELECT 72 * + + COALESCE ( + 24, CAST( NULL AS SIGNED ) - + 37 )
----
1728

skipif mysql # not compatible
query I rowsort label-4612
SELECT 72 * + + COALESCE ( + 24, CAST ( NULL AS INTEGER ) - + 37 )
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT - MIN( 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-4613
SELECT - MIN ( 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT DISTINCT 94 + - 7 * - + MAX( DISTINCT - 11 )
----
17

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT 94 + - 7 * - + MAX ( DISTINCT - 11 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT ALL - COUNT( * ) * + + 66 col1
----
-66

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL - COUNT ( * ) * + + 66 col1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4616
SELECT DISTINCT - COUNT( * ) DIV - + NULLIF ( + 73, 23 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT - COUNT ( * ) / - + NULLIF ( + 73, 23 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4617
SELECT 49 + - MIN( + 88 ) AS col0, CASE - 35 WHEN + 25 THEN - 4 END
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-4617
SELECT 49 + - MIN ( + 88 ) AS col0, CASE - 35 WHEN + 25 THEN - 4 END
----
-39
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4618
SELECT + CAST( NULL AS SIGNED ) + 1 * 65 AS col1, 21 * + 61 col1
----
NULL
1281

skipif mysql # not compatible
query II rowsort label-4618
SELECT + CAST ( NULL AS INTEGER ) + 1 * 65 AS col1, 21 * + 61 col1
----
NULL
1281

query I rowsort
SELECT + - ( - 98 ) AS col0
----
98

query I rowsort
SELECT DISTINCT + 22 - + + 20 AS col0
----
2

query I rowsort
SELECT DISTINCT - 58 * - 96 AS col1
----
5568

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4622
SELECT ALL + - 5 * - SUM( ALL - + CAST( NULL AS DECIMAL ) ) AS col2, 5
----
NULL
5

skipif mysql # not compatible
query II rowsort label-4622
SELECT ALL + - 5 * - SUM ( ALL - + CAST ( NULL AS REAL ) ) AS col2, 5
----
NULL
5

query I rowsort
SELECT ALL - - 24 col2
----
24

query I rowsort
SELECT ALL - - 26 * 42 AS col0
----
1092

query I rowsort
SELECT DISTINCT - + COALESCE ( + ( - 24 ), - 82 + - 69 + 86 * - 2 ) AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4626
SELECT ALL + - 13 * 88 - - + ( + 15 ) + - - 22 DIV 24 * + - 52 - + COUNT( * )
----
-1130

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL + - 13 * 88 - - + ( + 15 ) + - - 22 / 24 * + - 52 - + COUNT ( * )
----
-1130

query I rowsort
SELECT - NULLIF ( - 70, - - 85 ) + + ( 92 ) * + 80
----
7430

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT - 90 * + 60 * COUNT( * ) + - 22
----
-5422

skipif mysql # not compatible
query I rowsort label-4628
SELECT - 90 * + 60 * COUNT ( * ) + - 22
----
-5422

onlyif mysql # DIV for integer division: 
query I rowsort label-4629
SELECT 10 + 22 DIV 98 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4629
SELECT 10 + 22 / 98 AS col1
----
10

query II rowsort
SELECT ALL - - 64 AS col2, - 81 AS col0
----
64
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4631
SELECT CAST( NULL AS SIGNED ) * - 43 / 78 + SUM( - + 85 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT CAST ( NULL AS INTEGER ) * - 43 / 78 + SUM ( - + 85 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4632
SELECT - 57 * 22 - - CASE - COUNT( * ) WHEN - CASE + - 48 WHEN 11 THEN 39 ELSE NULL END - 90 + 95 THEN - 10 END * + + COUNT( * ) + - 94 + - 98 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4632
SELECT - 57 * 22 - - CASE - COUNT ( * ) WHEN - CASE + - 48 WHEN 11 THEN 39 ELSE NULL END - 90 + 95 THEN - 10 END * + + COUNT ( * ) + - 94 + - 98 * - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4633
SELECT ALL - 67 AS col0, COUNT( * ) + - + COALESCE ( + + 68, + 0 + + CAST( NULL AS SIGNED ) ) AS col1
----
-67
-67

skipif mysql # not compatible
query II rowsort label-4633
SELECT ALL - 67 AS col0, COUNT ( * ) + - + COALESCE ( + + 68, + 0 + + CAST ( NULL AS INTEGER ) ) AS col1
----
-67
-67

query II rowsort
SELECT DISTINCT - 73 AS col1, - 43 * - + 3
----
-73
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4635
SELECT DISTINCT - CAST( NULL AS SIGNED ), 2 + - + 66 * - - 17 AS col1
----
NULL
-1120

skipif mysql # not compatible
query II rowsort label-4635
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 2 + - + 66 * - - 17 AS col1
----
NULL
-1120

query I rowsort
SELECT 22 + - + 48 + - + 49
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT DISTINCT + 46 + + + 34 - 0 * + - 81 + - 93 * 23 + + 8 * 18 + + + 73 + - 6 * - - COUNT( 47 ) * + 57 * + - 88 AS col0
----
28254

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT + 46 + + + 34 - 0 * + - 81 + - 93 * 23 + + 8 * 18 + + + 73 + - 6 * - - COUNT ( 47 ) * + 57 * + - 88 AS col0
----
28254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT ALL NULLIF ( 1, - CAST( NULL AS SIGNED ) ) + 23 + + 44
----
68

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL NULLIF ( 1, - CAST ( NULL AS INTEGER ) ) + 23 + + 44
----
68

query I rowsort
SELECT ALL 95 + 53 AS col0
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-4640
SELECT 18 + + ( + COUNT( * ) ) + - COUNT( * ) AS col2, - 93 + - 21
----
18
-114

skipif mysql # not compatible
query II rowsort label-4640
SELECT 18 + + ( + COUNT ( * ) ) + - COUNT ( * ) AS col2, - 93 + - 21
----
18
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT COUNT( * ) + - 84 + - 99 * + 99
----
-9884

skipif mysql # not compatible
query I rowsort label-4641
SELECT COUNT ( * ) + - 84 + - 99 * + 99
----
-9884

query II rowsort
SELECT 93 AS col0, + 75
----
93
75

query I rowsort
SELECT 66 + - + 61 * - 80 + NULLIF ( + + 5, + 95 * + + 6 * 62 + + 68 ) AS col1
----
4951

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT 72 DIV + - 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4644
SELECT 72 / + - 81 AS col1
----
0

query I rowsort
SELECT ALL 82 + + 0
----
82

query II rowsort
SELECT 74 AS col1, 1 AS col1
----
74
1

query I rowsort
SELECT ALL 59 + - + NULLIF ( + 2, - - 26 + + + 46 )
----
57

query I rowsort
SELECT + 24 * - - 84 + + - ( + 95 )
----
1921

query I rowsort
SELECT + 36 + + + 42 AS col1
----
78

query I rowsort
SELECT ALL ( - - 54 ) + - - ( + 8 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ( - MIN( DISTINCT - 63 ) ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4651
SELECT ( - MIN ( DISTINCT - 63 ) ) AS col0
----
63

query I rowsort
SELECT - COALESCE ( - - 10, 89 ) AS col0
----
-10

query I rowsort
SELECT - - 59 + - 20
----
39

query I rowsort
SELECT ALL + 95 * - - 81 * + 2
----
15390

onlyif mysql # aggregate syntax: 
query II rowsort label-4655
SELECT - 15 AS col2, - COUNT( ALL 91 ) AS col0
----
-15
-1

skipif mysql # not compatible
query II rowsort label-4655
SELECT - 15 AS col2, - COUNT ( ALL 91 ) AS col0
----
-15
-1

query I rowsort
SELECT - - 9 + + 29 * - 57 * + 44 * - 52 col1
----
3782073

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT + + 40 * - 82 + - + COUNT( * ) AS col0
----
-3281

skipif mysql # not compatible
query I rowsort label-4657
SELECT + + 40 * - 82 + - + COUNT ( * ) AS col0
----
-3281

query I rowsort
SELECT DISTINCT + 71 - - + 42 AS col0
----
113

query II rowsort
SELECT DISTINCT + 2 * + 26 AS col1, + 32
----
52
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4660
SELECT - + CASE + COALESCE ( NULLIF ( + - 77, - + COUNT( * ) ), + + 62, + 4 + - - 42 * + 87 * + 48 ) WHEN NULLIF ( - 25, + + 45 * + 41 + - CAST( + 41 AS SIGNED ) * + + CAST( CASE 94 WHEN 78 THEN - 35 WHEN ( COALESCE ( 37, COUNT( * ), 34 ) ) + 14 * COUNT( * ) THEN - COUNT( * ) ELSE NULL END AS SIGNED ) + 96 ) * 78 THEN NULL WHEN - 40 THEN - 1 ELSE NULL END / 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT - + CASE + COALESCE ( NULLIF ( + - 77, - + COUNT ( * ) ), + + 62, + 4 + - - 42 * + 87 * + 48 ) WHEN NULLIF ( - 25, + + 45 * + 41 + - CAST ( + 41 AS INTEGER ) * + + CAST ( CASE 94 WHEN 78 THEN - 35 WHEN ( COALESCE ( 37, COUNT ( * ), 34 ) ) + 14 * COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END AS INTEGER ) + 96 ) * 78 THEN NULL WHEN - 40 THEN - 1 ELSE NULL END / 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT + + SUM( DISTINCT - ( - 67 ) ) col0
----
67

skipif mysql # not compatible
query I rowsort label-4661
SELECT + + SUM ( DISTINCT - ( - 67 ) ) col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT DISTINCT - 35 DIV ( + 59 ) * + 68
----
0

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT - 35 / ( + 59 ) * + 68
----
0

query I rowsort
SELECT - 73 + + + 16
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4664
SELECT - 85 DIV + COUNT( * ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4664
SELECT - 85 / + COUNT ( * ) AS col2
----
-85

query I rowsort
SELECT DISTINCT + 1 * + 60 + 8 AS col2
----
68

query I rowsort
SELECT ALL + COALESCE ( - COALESCE ( + 82, - + 57 ), 88 )
----
-82

query I rowsort
SELECT DISTINCT - 7 * - 40 + - 48
----
232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4668
SELECT DISTINCT + NULLIF ( COUNT( * ), - + 25 + + 41 ) * - 48 + + 80 * - + 38 * 10 - - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT + NULLIF ( COUNT ( * ), - + 25 + + 41 ) * - 48 + + 80 * - + 38 * 10 - - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT NULLIF ( 43, + 79 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT ALL + 91 * + + COUNT( * ) * - - 26 + - + 42 AS col2
----
2324

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL + 91 * + + COUNT ( * ) * - - 26 + - + 42 AS col2
----
2324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4671
SELECT - 58 * + CASE - - MIN( ALL - CASE 77 WHEN CAST( - - 49 AS SIGNED ) THEN - 55 - - 21 END ) WHEN - 51 THEN + 97 END / - 14 * 17 - CASE + + 88 WHEN - + 40 THEN - NULLIF ( - CASE + + COUNT( * ) WHEN + 3 THEN NULL WHEN + + 81 THEN + 67 ELSE NULL END, - 35 ) END * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT - 58 * + CASE - - MIN ( ALL - CASE 77 WHEN CAST ( - - 49 AS INTEGER ) THEN - 55 - - 21 END ) WHEN - 51 THEN + 97 END / - 14 * 17 - CASE + + 88 WHEN - + 40 THEN - NULLIF ( - CASE + + COUNT ( * ) WHEN + 3 THEN NULL WHEN + + 81 THEN + 67 ELSE NULL END, - 35 ) END * 64
----
NULL

query I rowsort
SELECT - 77 - + + 33
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT NULLIF ( + - 8, - 76 * 64 * SUM( ALL 44 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-4673
SELECT NULLIF ( + - 8, - 76 * 64 * SUM ( ALL 44 ) )
----
-8

query I rowsort
SELECT - 54 + - 94 * + 96 AS col1
----
-9078

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT COALESCE ( COUNT( * ), - - 74 * - - 93 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4675
SELECT COALESCE ( COUNT ( * ), - - 74 * - - 93 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT + 20 * - COUNT( * ) + - - 91 * + 40 AS col2
----
3620

skipif mysql # not compatible
query I rowsort label-4676
SELECT + 20 * - COUNT ( * ) + - - 91 * + 40 AS col2
----
3620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4677
SELECT DISTINCT CAST( NULL AS SIGNED ) * 12 + + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 12 + + 34 AS col1
----
NULL

query I rowsort
SELECT ALL 1 * - 54 + + - 26
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL 7 * - 7 + - - 23 * - 80 + - 30 * - - COUNT( * ) + - 91 + + 27 * + 84
----
258

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL 7 * - 7 + - - 23 * - 80 + - 30 * - - COUNT ( * ) + - 91 + + 27 * + 84
----
258

onlyif mysql # DIV for integer division: 
query II rowsort label-4680
SELECT DISTINCT ( + + 92 ) AS col1, 62 DIV 23 AS col0
----
92
2

skipif mysql # not compatible
query II rowsort label-4680
SELECT DISTINCT ( + + 92 ) AS col1, 62 / 23 AS col0
----
92
2

query I rowsort
SELECT ALL 11 * - 38 AS col2
----
-418

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT - NULLIF ( MAX( ALL - + 69 ), 39 * 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4682
SELECT - NULLIF ( MAX ( ALL - + 69 ), 39 * 69 ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT - MIN( DISTINCT 46 ) col0
----
-46

skipif mysql # not compatible
query I rowsort label-4683
SELECT - MIN ( DISTINCT 46 ) col0
----
-46

query I rowsort
SELECT - - NULLIF ( - - 31, 64 ) + 37
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4685
SELECT + + 55 - COUNT( * ) col2, + 98 * 10
----
54
980

skipif mysql # not compatible
query II rowsort label-4685
SELECT + + 55 - COUNT ( * ) col2, + 98 * 10
----
54
980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4686
SELECT DISTINCT + ( - 53 ) * + NULLIF ( + 82, 78 ) * - 46 * ( - - COALESCE ( - + CAST( 66 AS SIGNED ), COUNT( 73 ) + + COUNT( * ) ) ) AS col1
----
-13194456

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT + ( - 53 ) * + NULLIF ( + 82, 78 ) * - 46 * ( - - COALESCE ( - + CAST ( 66 AS INTEGER ), COUNT ( 73 ) + + COUNT ( * ) ) ) AS col1
----
-13194456

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT + COUNT( * ) * - 90 - - 21 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-4687
SELECT + COUNT ( * ) * - 90 - - 21 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT + 27 * + - ( - COUNT( * ) ) + 98 AS col2
----
125

skipif mysql # not compatible
query I rowsort label-4688
SELECT + 27 * + - ( - COUNT ( * ) ) + 98 AS col2
----
125

query I rowsort
SELECT + - 34 * - - 8
----
-272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4690
SELECT + + 17 + 63, COUNT( * ) - - CASE + 18 WHEN + 84 + + 15 + + 56 THEN NULL WHEN 55 THEN - + 5 + + CASE + 15 WHEN 89 THEN 78 * + + CAST( COALESCE ( + + 10, COUNT( * ) * + 61 * + 82, - - CAST( + - 99 AS SIGNED ) * - COUNT( * ) + - 54 ) AS DECIMAL ) + - 59 ELSE + 93 + 30 END END AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-4690
SELECT + + 17 + 63, COUNT ( * ) - - CASE + 18 WHEN + 84 + + 15 + + 56 THEN NULL WHEN 55 THEN - + 5 + + CASE + 15 WHEN 89 THEN 78 * + + CAST ( COALESCE ( + + 10, COUNT ( * ) * + 61 * + 82, - - CAST ( + - 99 AS INTEGER ) * - COUNT ( * ) + - 54 ) AS REAL ) + - 59 ELSE + 93 + 30 END END AS col2
----
80
NULL

query I rowsort
SELECT ALL 42 * 60
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT + - 42 + + 51 * - + COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4692
SELECT + - 42 + + 51 * - + COUNT ( * ) AS col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-4693
SELECT ALL + 74 DIV 39 + - ( 27 )
----
-26

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + 74 / 39 + - ( 27 )
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-4694
SELECT ALL + ( + + ( - + COUNT( DISTINCT - 55 ) ) ) AS col0, - 87
----
-1
-87

skipif mysql # not compatible
query II rowsort label-4694
SELECT ALL + ( + + ( - + COUNT ( DISTINCT - 55 ) ) ) AS col0, - 87
----
-1
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL - CASE 72 WHEN + 94 THEN + COUNT( DISTINCT - 54 ) END / + 70 + + + COUNT( * ) * - + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL - CASE 72 WHEN + 94 THEN + COUNT ( DISTINCT - 54 ) END / + 70 + + + COUNT ( * ) * - + 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4696
SELECT + CASE + 38 WHEN - - 91 THEN NULL WHEN + 14 + COUNT( * ) THEN NULL ELSE - COALESCE ( - 34, 68 * - 49 + - 96 + + 58 DIV - COUNT( * ) ) * - 61 * + 14 + - 65 END * + 65 + 78
----
-1891487

skipif mysql # not compatible
query I rowsort label-4696
SELECT + CASE + 38 WHEN - - 91 THEN NULL WHEN + 14 + COUNT ( * ) THEN NULL ELSE - COALESCE ( - 34, 68 * - 49 + - 96 + + 58 / - COUNT ( * ) ) * - 61 * + 14 + - 65 END * + 65 + 78
----
-1891487

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4697
SELECT - 92 * COALESCE ( + 18, + + ( - + COUNT( * ) ) ) + + COUNT( * ) * + 45 DIV + + 36 + + 78 DIV - 29
----
-1657

skipif mysql # not compatible
query I rowsort label-4697
SELECT - 92 * COALESCE ( + 18, + + ( - + COUNT ( * ) ) ) + + COUNT ( * ) * + 45 / + + 36 + + 78 / - 29
----
-1657

onlyif mysql # aggregate syntax: 
query II rowsort label-4698
SELECT - SUM( + 69 ) - - 44 AS col2, - 24 + + COUNT( * ) AS col0
----
-25
-23

skipif mysql # not compatible
query II rowsort label-4698
SELECT - SUM ( + 69 ) - - 44 AS col2, - 24 + + COUNT ( * ) AS col0
----
-25
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4699
SELECT ALL + CAST( NULL AS SIGNED ) / + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL + CAST ( NULL AS INTEGER ) / + 19
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4700
SELECT ALL + 95, 28 + 84 * COUNT( 81 ) * - 86 * ( + 6 ) - + 51 col1, COUNT( * ) AS col1
----
95
-43367
1

skipif mysql # not compatible
query III rowsort label-4700
SELECT ALL + 95, 28 + 84 * COUNT ( 81 ) * - 86 * ( + 6 ) - + 51 col1, COUNT ( * ) AS col1
----
95
-43367
1

onlyif mysql # aggregate syntax: 
query III rowsort label-4701
SELECT COUNT( * ) * + 64 + + + 58 AS col2, 21 AS col2, + 18 * - 72 + - 14 + 60 AS col1
----
122
21
-1250

skipif mysql # not compatible
query III rowsort label-4701
SELECT COUNT ( * ) * + 64 + + + 58 AS col2, 21 AS col2, + 18 * - 72 + - 14 + 60 AS col1
----
122
21
-1250

query I rowsort
SELECT DISTINCT - 65 + + 76 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL + 10 + + MIN( + - 34 ) - - 47 + - 45 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL + 10 + + MIN ( + - 34 ) - - 47 + - 45 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT 47 * + SUM( 43 ) AS col0
----
2021

skipif mysql # not compatible
query I rowsort label-4704
SELECT 47 * + SUM ( 43 ) AS col0
----
2021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4705
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 81 * - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 81 * - 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4706
SELECT DISTINCT - 98, 43 + + 32 * + ( ( MIN( ALL + - COALESCE ( - + 26, + + ( + - 73 ) DIV + 61 + + 35 ) ) ) ) AS col0
----
-98
875

skipif mysql # not compatible
query II rowsort label-4706
SELECT DISTINCT - 98, 43 + + 32 * + ( ( MIN ( ALL + - COALESCE ( - + 26, + + ( + - 73 ) / + 61 + + 35 ) ) ) ) AS col0
----
-98
875

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL + 11 - 68 - + - 22 + + ( + + 72 ) + + 9 * - 93 * COUNT( * ) + + 86
----
-714

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL + 11 - 68 - + - 22 + + ( + + 72 ) + + 9 * - 93 * COUNT ( * ) + + 86
----
-714

query II rowsort
SELECT 72 * + 70 * + 1, - 25 - + 7 + - 85 AS col2
----
5040
-117

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4709
SELECT ALL - 48 - - 76 + 84, + 12 + - 11 * + 88 / 49 * + - CAST( NULL AS DECIMAL ) / - - CASE 73 WHEN + COUNT( * ) + + + 34 * + + MAX( + 0 ) THEN - + ( + 78 ) ELSE - 54 * + - COUNT( * ) + 96 END col1
----
112
NULL

skipif mysql # not compatible
query II rowsort label-4709
SELECT ALL - 48 - - 76 + 84, + 12 + - 11 * + 88 / 49 * + - CAST ( NULL AS REAL ) / - - CASE 73 WHEN + COUNT ( * ) + + + 34 * + + MAX ( + 0 ) THEN - + ( + 78 ) ELSE - 54 * + - COUNT ( * ) + 96 END col1
----
112
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4710
SELECT 9 + + + MAX( DISTINCT + + 59 ), + 82 + + + 22 AS col2
----
68
104

skipif mysql # not compatible
query II rowsort label-4710
SELECT 9 + + + MAX ( DISTINCT + + 59 ), + 82 + + + 22 AS col2
----
68
104

query I rowsort
SELECT + - ( + 67 )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-4712
SELECT ALL + 11, ( 92 ) + + COUNT( ALL + 96 ) * + + ( + 54 ) AS col1
----
11
146

skipif mysql # not compatible
query II rowsort label-4712
SELECT ALL + 11, ( 92 ) + + COUNT ( ALL + 96 ) * + + ( + 54 ) AS col1
----
11
146

onlyif mysql # DIV for integer division: 
query II rowsort label-4713
SELECT + 11 AS col2, 84 * + 88 + 28 DIV - 4 + - 94 + + + 62 AS col1
----
11
7353

skipif mysql # not compatible
query II rowsort label-4713
SELECT + 11 AS col2, 84 * + 88 + 28 / - 4 + - 94 + + + 62 AS col1
----
11
7353

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4714
SELECT 14 + + NULLIF ( CAST( + - CAST( - 87 AS SIGNED ) AS SIGNED ), + NULLIF ( 51, - + CASE - ( + + ( + AVG ( DISTINCT CAST( 65 AS SIGNED ) ) ) ) WHEN 7 THEN + + CASE + + 62 WHEN 31 * - 99 THEN NULL WHEN - - 21 THEN NULL WHEN 6 + 29 THEN + 3 * - 96 / 59 + 46 * 57 END - 7 END ) ) * COUNT( - ( 25 ) ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-4714
SELECT 14 + + NULLIF ( CAST ( + - CAST ( - 87 AS INTEGER ) AS INTEGER ), + NULLIF ( 51, - + CASE - ( + + ( + AVG ( DISTINCT CAST ( 65 AS INTEGER ) ) ) ) WHEN 7 THEN + + CASE + + 62 WHEN 31 * - 99 THEN NULL WHEN - - 21 THEN NULL WHEN 6 + 29 THEN + 3 * - 96 / 59 + 46 * 57 END - 7 END ) ) * COUNT ( - ( 25 ) ) AS col1
----
101

query I rowsort
SELECT - 84 * + 14
----
-1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4716
SELECT DISTINCT - CAST( - ( + COUNT( * ) ) AS SIGNED ), 28 * + 57 AS col1
----
1
1596

skipif mysql # not compatible
query II rowsort label-4716
SELECT DISTINCT - CAST ( - ( + COUNT ( * ) ) AS INTEGER ), 28 * + 57 AS col1
----
1
1596

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT ALL COUNT( * ) col2, 24 AS col1
----
1
24

skipif mysql # not compatible
query II rowsort label-4717
SELECT ALL COUNT ( * ) col2, 24 AS col1
----
1
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL + COUNT( * ) * - + 33 * - 15 + + + COUNT( - 91 )
----
496

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL + COUNT ( * ) * - + 33 * - 15 + + + COUNT ( - 91 )
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ( - NULLIF ( - COUNT( * ), + + 87 ) ) + COUNT( * ) + - - 1 + + 79 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4719
SELECT ( - NULLIF ( - COUNT ( * ), + + 87 ) ) + COUNT ( * ) + - - 1 + + 79 AS col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4720
SELECT ALL 95 AS col2, COUNT( * )
----
95
1

skipif mysql # not compatible
query II rowsort label-4720
SELECT ALL 95 AS col2, COUNT ( * )
----
95
1

query I rowsort
SELECT + 34 + 54
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT DISTINCT + - 31 * + + COALESCE ( + 70, + 85, - CASE - 6 WHEN - COUNT( * ) THEN 9 * 2 WHEN + 17 THEN NULL END ) AS col1
----
-2170

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT + - 31 * + + COALESCE ( + 70, + 85, - CASE - 6 WHEN - COUNT ( * ) THEN 9 * 2 WHEN + 17 THEN NULL END ) AS col1
----
-2170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4723
SELECT + SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT + SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT CAST( NULL AS SIGNED ) * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT CAST ( NULL AS INTEGER ) * 99
----
NULL

query I rowsort
SELECT ALL ( 98 ) + + 65 + - 50
----
113

query I rowsort
SELECT 47 + + + 83
----
130

query II rowsort
SELECT 2, + ( - 58 ) AS col1
----
2
-58

query I rowsort
SELECT DISTINCT + 19 + - 39 AS col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT 96 DIV - 88
----
-1

skipif mysql # not compatible
query I rowsort label-4729
SELECT 96 / - 88
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT ALL - CASE 56 WHEN - 78 * - 50 - 49 * + 93 THEN NULL WHEN - + NULLIF ( - + 29, 84 / + COUNT( * ) ) + - 48 THEN - 88 ELSE MAX( DISTINCT 89 ) * - 89 + + 33 END + - 10
----
7878

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL - CASE 56 WHEN - 78 * - 50 - 49 * + 93 THEN NULL WHEN - + NULLIF ( - + 29, 84 / + COUNT ( * ) ) + - 48 THEN - 88 ELSE MAX ( DISTINCT 89 ) * - 89 + + 33 END + - 10
----
7878

onlyif mysql # aggregate syntax: 
query II rowsort label-4731
SELECT - - COUNT( * ), 34 * COUNT( * ) + 56 AS col1
----
1
90

skipif mysql # not compatible
query II rowsort label-4731
SELECT - - COUNT ( * ), 34 * COUNT ( * ) + 56 AS col1
----
1
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4732
SELECT DISTINCT + 69 DIV - + NULLIF ( + COALESCE ( - + 71, 95 + - 62 ), - CAST( NULL AS DECIMAL ) * - COUNT( * ) + - 91 + 77 * - - 44 - - - 7 ) * + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT + 69 / - + NULLIF ( + COALESCE ( - + 71, 95 + - 62 ), - CAST ( NULL AS REAL ) * - COUNT ( * ) + - 91 + 77 * - - 44 - - - 7 ) * + + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4733
SELECT ALL CAST( NULL AS SIGNED ) + - - 2 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL CAST ( NULL AS INTEGER ) + - - 2 col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4734
SELECT ( 47 ) DIV + 55 * + 14 AS col2, + 51 AS col2
----
0
51

skipif mysql # not compatible
query II rowsort label-4734
SELECT ( 47 ) / + 55 * + 14 AS col2, + 51 AS col2
----
0
51

query II rowsort
SELECT ALL ( - 6 ) + - + 48 + - 36, - 53 AS col0
----
-90
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT COUNT( * ) * - 94 * + 4 AS col1
----
-376

skipif mysql # not compatible
query I rowsort label-4736
SELECT COUNT ( * ) * - 94 * + 4 AS col1
----
-376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT DISTINCT CAST( + - 5 AS SIGNED ) + - 23 * + - 92 AS col1
----
2111

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT CAST ( + - 5 AS INTEGER ) + - 23 * + - 92 AS col1
----
2111

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4738
SELECT ALL CAST( - + 92 AS SIGNED ) + - + CAST( NULL AS DECIMAL ) * + 61 - - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL CAST ( - + 92 AS INTEGER ) + - + CAST ( NULL AS REAL ) * + 61 - - 32 AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( - + ( - 64 ), - 62, - 21 - - 26 ) * 96
----
6144

onlyif mysql # DIV for integer division: 
query I rowsort label-4740
SELECT DISTINCT 7 + - + COALESCE ( 6, - + 68, - 66 ) DIV - 39 - + 57 * + 67 AS col0
----
-3812

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT 7 + - + COALESCE ( 6, - + 68, - 66 ) / - 39 - + 57 * + 67 AS col0
----
-3812

query I rowsort
SELECT ALL 66 + + ( + 83 )
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL 42 - - + 23 * NULLIF ( - + COUNT( ALL + 6 ), - 43 * - 98 - + 7 * + + 36 / - 5 + + AVG ( - 61 ) ) * - 65 AS col0
----
1537

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL 42 - - + 23 * NULLIF ( - + COUNT ( ALL + 6 ), - 43 * - 98 - + 7 * + + 36 / - 5 + + AVG ( - 61 ) ) * - 65 AS col0
----
1537

query I rowsort
SELECT DISTINCT 71 - - 63
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT DISTINCT ( 11 ) * + 94 DIV + 47 + 99 + - 87 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT ( 11 ) * + 94 / + 47 + 99 + - 87 AS col1
----
34

query I rowsort
SELECT - ( + 69 ) * + + NULLIF ( 8, - 96 ) + - - 21
----
-531

query I rowsort
SELECT 81 * - - 66
----
5346

query I rowsort
SELECT 56 + + 1 AS col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4748
SELECT DISTINCT + + 84 DIV NULLIF ( + 81, - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT + + 84 / NULLIF ( + 81, - 5 )
----
1

query I rowsort
SELECT + 76 * + + 7 + + 45 AS col1
----
577

query I rowsort
SELECT ALL + - 59 * 88 AS col1
----
-5192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4751
SELECT ALL - CASE - 50 WHEN + NULLIF ( + 16, 38 ) + 48 + 7 * - 22 THEN + CASE - - COUNT( DISTINCT 98 ) WHEN - - 53 THEN NULL ELSE ( 24 ) DIV - - 97 END * + + 63 * MIN( 65 ) + CASE + 17 WHEN + 51 THEN NULL WHEN 9 THEN NULL WHEN - 57 * - 94 - + 38 THEN 51 * - 8 ELSE CAST( 41 AS SIGNED ) END WHEN CASE + 54 WHEN MIN( 60 ) THEN - 41 * SUM( - 16 ) END THEN ( 49 ) * COUNT( * ) ELSE 70 * + ( 5 ) END
----
-350

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL - CASE - 50 WHEN + NULLIF ( + 16, 38 ) + 48 + 7 * - 22 THEN + CASE - - COUNT ( DISTINCT 98 ) WHEN - - 53 THEN NULL ELSE ( 24 ) / - - 97 END * + + 63 * MIN ( 65 ) + CASE + 17 WHEN + 51 THEN NULL WHEN 9 THEN NULL WHEN - 57 * - 94 - + 38 THEN 51 * - 8 ELSE CAST ( 41 AS INTEGER ) END WHEN CASE + 54 WHEN MIN ( 60 ) THEN - 41 * SUM ( - 16 ) END THEN ( 49 ) * COUNT ( * ) ELSE 70 * + ( 5 ) END
----
-350

query I rowsort
SELECT ALL - - 46 * - - ( + ( - - 37 ) ) * - + 6
----
-10212

query I rowsort
SELECT ALL NULLIF ( - 46, - 86 )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4754
SELECT 93 * 65 DIV + ( - 5 ) col0
----
-1209

skipif mysql # not compatible
query I rowsort label-4754
SELECT 93 * 65 / + ( - 5 ) col0
----
-1209

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT ALL + + ( + - 19 ) * - COUNT( * ) col2
----
19

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL + + ( + - 19 ) * - COUNT ( * ) col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4756
SELECT DISTINCT - + 17 * + - CAST( NULL AS SIGNED ) + + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT - + 17 * + - CAST ( NULL AS INTEGER ) + + 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT - 57 - + COUNT( + 48 ) + + 8 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-4757
SELECT - 57 - + COUNT ( + 48 ) + + 8 AS col2
----
-50

query I rowsort
SELECT DISTINCT + 39 * 20 * + - 12
----
-9360

query I rowsort
SELECT ALL - - 67 + - - 67 AS col1
----
134

query I rowsort
SELECT + 41 * + 85
----
3485

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT 18 * - 95 * + 44 + - CASE - 98 WHEN + - 51 + + CASE - 26 WHEN - + 34 THEN NULL WHEN - + 12 THEN + 51 ELSE NULL END THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT 18 * - 95 * + 44 + - CASE - 98 WHEN + - 51 + + CASE - 26 WHEN - + 34 THEN NULL WHEN - + 12 THEN + 51 ELSE NULL END THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT 62 * + + 67 AS col1
----
4154

onlyif mysql # aggregate syntax: 
query II rowsort label-4763
SELECT ALL + 90 + - - 48, SUM( + - 23 ) AS col0
----
138
-23

skipif mysql # not compatible
query II rowsort label-4763
SELECT ALL + 90 + - - 48, SUM ( + - 23 ) AS col0
----
138
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT ALL - - 75 + CAST( - 16 AS SIGNED ) + ( + CASE - 41 WHEN - - 77 * - 27 * + + 4 THEN + 30 + - 40 + + + COUNT( * ) / + + 35 * + ( + 18 ) * + 61 WHEN + + COUNT( ALL 70 ) THEN 77 END ) * - 99 * + + 39 / - - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL - - 75 + CAST ( - 16 AS INTEGER ) + ( + CASE - 41 WHEN - - 77 * - 27 * + + 4 THEN + 30 + - 40 + + + COUNT ( * ) / + + 35 * + ( + 18 ) * + 61 WHEN + + COUNT ( ALL 70 ) THEN 77 END ) * - 99 * + + 39 / - - 69 AS col2
----
NULL

query I rowsort
SELECT ALL ( + 66 ) AS col1
----
66

query I rowsort
SELECT ALL - COALESCE ( 64, - 54 * + ( - 76 ), 42 ) + - 31 AS col0
----
-95

query I rowsort
SELECT 41 * + NULLIF ( + 69, + 47 ) * 33 * + 2 AS col0
----
186714

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT ALL 26 + COUNT( DISTINCT 84 ) + - 16 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL 26 + COUNT ( DISTINCT 84 ) + - 16 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT NULLIF ( + 89, + - 53 + - - 57 + 92 - - MIN( 25 ) * 16 ) * - 13 AS col2
----
-1157

skipif mysql # not compatible
query I rowsort label-4769
SELECT NULLIF ( + 89, + - 53 + - - 57 + 92 - - MIN ( 25 ) * 16 ) * - 13 AS col2
----
-1157

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT DISTINCT + 37 * + - 97 * MAX( ALL 58 ) AS col1
----
-208162

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT + 37 * + - 97 * MAX ( ALL 58 ) AS col1
----
-208162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4771
SELECT 21 + - - 12 - - CAST( NULL AS SIGNED ) * + 64 * + CAST( - 12 AS SIGNED ) + + - 64 + + 40 * - 46 * - 86 * NULLIF ( + 66, + 26 * + + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT 21 + - - 12 - - CAST ( NULL AS INTEGER ) * + 64 * + CAST ( - 12 AS INTEGER ) + + - 64 + + 40 * - 46 * - 86 * NULLIF ( + 66, + 26 * + + 56 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4772
SELECT ( + 77 ) * 36 * - 29 + + CAST( NULL AS DECIMAL ) * - 99 + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT ( + 77 ) * 36 * - 29 + + CAST ( NULL AS REAL ) * - 99 + 66
----
NULL

query I rowsort
SELECT ALL 66 - - NULLIF ( 17, + 59 )
----
83

query I rowsort
SELECT DISTINCT + ( 65 ) * 97
----
6305

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT ALL + MAX( DISTINCT - - 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL + MAX ( DISTINCT - - 82 ) AS col1
----
82

query I rowsort
SELECT + 48 + + - ( - 21 )
----
69

query I rowsort
SELECT + 7 * + 32 AS col2
----
224

onlyif mysql # DIV for integer division: 
query I rowsort label-4778
SELECT + 8 DIV + 68 + 47
----
47

skipif mysql # not compatible
query I rowsort label-4778
SELECT + 8 / + 68 + 47
----
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4779
SELECT ALL 21 * - - ( + - 5 ) - + - 24 DIV + 60 + + + CAST( 71 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL 21 * - - ( + - 5 ) - + - 24 / + 60 + + + CAST ( 71 AS INTEGER )
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-4780
SELECT DISTINCT 65 DIV + 7 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT 65 / + 7 AS col0
----
9

query I rowsort
SELECT + 77 + 46
----
123

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4782
SELECT NULLIF ( + 1, 83 * - 31 + - 8 * + - CAST( NULL AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-4782
SELECT NULLIF ( + 1, 83 * - 31 + - 8 * + - CAST ( NULL AS REAL ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT ALL 0 / + - 23 * + - CASE CASE ( - 29 ) WHEN 78 * - 92 * 10 + + - COUNT( * ) + + NULLIF ( + 17, - - 38 + + - 43 ) + 31 + + 86 + + + ( + COUNT( * ) ) * + 93 * - 59 + + + NULLIF ( + + 61, + + 85 + + 22 ) THEN NULL ELSE + 38 * COUNT( * ) END WHEN 24 THEN NULL WHEN + 44 / + 25 THEN 30 - + 11 * 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL 0 / + - 23 * + - CASE CASE ( - 29 ) WHEN 78 * - 92 * 10 + + - COUNT ( * ) + + NULLIF ( + 17, - - 38 + + - 43 ) + 31 + + 86 + + + ( + COUNT ( * ) ) * + 93 * - 59 + + + NULLIF ( + + 61, + + 85 + + 22 ) THEN NULL ELSE + 38 * COUNT ( * ) END WHEN 24 THEN NULL WHEN + 44 / + 25 THEN 30 - + 11 * 28 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4784
SELECT 84 * - COUNT( * ) + - - 34 AS col2, ( - 90 )
----
-50
-90

skipif mysql # not compatible
query II rowsort label-4784
SELECT 84 * - COUNT ( * ) + - - 34 AS col2, ( - 90 )
----
-50
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-4785
SELECT ALL + 36 AS col1, + 56 + + MAX( + 7 ) + 23 * + COALESCE ( + + 52, 75 + + 45, - 72 + 85, + 37 ) * 26 * 64 * 85
----
36
169162303

skipif mysql # not compatible
query II rowsort label-4785
SELECT ALL + 36 AS col1, + 56 + + MAX ( + 7 ) + 23 * + COALESCE ( + + 52, 75 + + 45, - 72 + 85, + 37 ) * 26 * 64 * 85
----
36
169162303

query I rowsort
SELECT ALL + ( + 5 ) col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4787
SELECT - SUM( DISTINCT CAST( 42 AS SIGNED ) ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-4787
SELECT - SUM ( DISTINCT CAST ( 42 AS INTEGER ) ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT - + 7 * + COUNT( * ) + + MAX( DISTINCT + NULLIF ( - 44, + 56 ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4788
SELECT - + 7 * + COUNT ( * ) + + MAX ( DISTINCT + NULLIF ( - 44, + 56 ) ) AS col1
----
-51

query I rowsort
SELECT ALL 63 * + 42 AS col1
----
2646

onlyif mysql # aggregate syntax: 
query II rowsort label-4790
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) * + 28 col1
----
1
28

skipif mysql # not compatible
query II rowsort label-4790
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) * + 28 col1
----
1
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT COUNT( ALL - - 30 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4791
SELECT COUNT ( ALL - - 30 ) AS col1
----
1

query I rowsort
SELECT + - 5 + - + 71 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT + 60 * ( - COUNT( * ) ) * + - 83 + 46 AS col2
----
5026

skipif mysql # not compatible
query I rowsort label-4793
SELECT + 60 * ( - COUNT ( * ) ) * + - 83 + 46 AS col2
----
5026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4794
SELECT + + ( + 59 ) + CAST( + 22 AS SIGNED ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4794
SELECT + + ( + 59 ) + CAST ( + 22 AS INTEGER ) AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4795
SELECT DISTINCT - + 14 + - COUNT( * ) DIV + 2 - - + 84 * + CAST( COUNT( - - 69 ) AS SIGNED ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT - + 14 + - COUNT ( * ) / + 2 - - + 84 * + CAST ( COUNT ( - - 69 ) AS INTEGER ) AS col2
----
70

query I rowsort
SELECT ALL 52 + 65
----
117

query II rowsort
SELECT 93 col2, 86 * 50 * 38 AS col2
----
93
163400

query I rowsort
SELECT - 5 + 13 + - - 64 * + CASE + AVG ( ALL + 58 ) WHEN + 25 * - - 61 + 89 THEN + 30 END * - 27 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 75 + + - 70 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT ALL - 9 * CASE - NULLIF ( 25, + 94 ) WHEN + 38 - - 20 + + - COUNT( * ) THEN NULL WHEN 89 / - 9 THEN 3 WHEN + 24 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL - 9 * CASE - NULLIF ( 25, + 94 ) WHEN + 38 - - 20 + + - COUNT ( * ) THEN NULL WHEN 89 / - 9 THEN 3 WHEN + 24 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4801
SELECT + - ( 47 ) DIV - + 64
----
0

skipif mysql # not compatible
query I rowsort label-4801
SELECT + - ( 47 ) / - + 64
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4802
SELECT 29 AS col2, + 45 DIV MAX( + 5 ) AS col2
----
29
9

skipif mysql # not compatible
query II rowsort label-4802
SELECT 29 AS col2, + 45 / MAX ( + 5 ) AS col2
----
29
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT - 61 + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-4803
SELECT - 61 + COUNT ( * )
----
-60

query I rowsort
SELECT ALL - 78 - - 84 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL SUM( + + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL SUM ( + + 93 )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4806
SELECT DISTINCT CAST( - 42 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT CAST ( - 42 AS INTEGER )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4807
SELECT ALL CAST( NULL AS SIGNED ) AS col1, ( + + 58 )
----
NULL
58

skipif mysql # not compatible
query II rowsort label-4807
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, ( + + 58 )
----
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4808
SELECT ALL COALESCE ( + COUNT( * ), 45 DIV 96 + - + 53, - 34 * + 13 ), + CAST( - 2 AS SIGNED ) AS col1
----
1
-2

skipif mysql # not compatible
query II rowsort label-4808
SELECT ALL COALESCE ( + COUNT ( * ), 45 / 96 + - + 53, - 34 * + 13 ), + CAST ( - 2 AS INTEGER ) AS col1
----
1
-2

query I rowsort
SELECT ALL 13 * + + 11 AS col0
----
143

query I rowsort
SELECT - 18 * 41 * + 58 col1
----
-42804

onlyif mysql # DIV for integer division: 
query I rowsort label-4811
SELECT DISTINCT - 6 * + + 76 * COALESCE ( - - 59, 14 + - 34 DIV - - 50 ) AS col0
----
-26904

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT - 6 * + + 76 * COALESCE ( - - 59, 14 + - 34 / - - 50 ) AS col0
----
-26904

query I rowsort
SELECT - 89 - + COALESCE ( - 2, 95 * - + 24 ) AS col1
----
-87

query I rowsort
SELECT DISTINCT + ( COALESCE ( + 81, + 2 ) )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4814
SELECT ALL - 80 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL - 80 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4815
SELECT + 70 AS col2, 12 + ( + 88 ) DIV + + 78
----
70
13

skipif mysql # not compatible
query II rowsort label-4815
SELECT + 70 AS col2, 12 + ( + 88 ) / + + 78
----
70
13

query II rowsort
SELECT ALL + 36 AS col0, 89 col0
----
36
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT + SUM( DISTINCT + + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-4817
SELECT + SUM ( DISTINCT + + 48 )
----
48

query I rowsort
SELECT - 17 * 5 AS col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4819
SELECT + COUNT( * ) AS col0, + 95 * - + SUM( + + COALESCE ( + - 1, - 12, + 89 ) ) * - 28 + + CAST( - 97 AS SIGNED ) + + COUNT( * )
----
1
-2756

skipif mysql # not compatible
query II rowsort label-4819
SELECT + COUNT ( * ) AS col0, + 95 * - + SUM ( + + COALESCE ( + - 1, - 12, + 89 ) ) * - 28 + + CAST ( - 97 AS INTEGER ) + + COUNT ( * )
----
1
-2756

onlyif mysql # DIV for integer division: 
query I rowsort label-4820
SELECT ALL - - 84 DIV 53 + 30 + - 79
----
-48

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL - - 84 / 53 + 30 + - 79
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-4821
SELECT - 18 AS col2, - COALESCE ( + COUNT( * ), - COUNT( * ) ) col2
----
-18
-1

skipif mysql # not compatible
query II rowsort label-4821
SELECT - 18 AS col2, - COALESCE ( + COUNT ( * ), - COUNT ( * ) ) col2
----
-18
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT + MAX( DISTINCT - 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4822
SELECT + MAX ( DISTINCT - 3 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT + MAX( + 18 ) * + 66 * + + 76 AS col2
----
90288

skipif mysql # not compatible
query I rowsort label-4823
SELECT + MAX ( + 18 ) * + 66 * + + 76 AS col2
----
90288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4824
SELECT ALL 75 * + 36 + + CAST( NULL AS SIGNED ) + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL 75 * + 36 + + CAST ( NULL AS INTEGER ) + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL COUNT( * ) * + 63 + + + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL COUNT ( * ) * + 63 + + + COUNT ( * )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4826
SELECT + - 31 DIV - + MIN( - NULLIF ( - 6, - 62 ) ) + + 85 + - + 28 * - - ( + + 88 )
----
-2374

skipif mysql # not compatible
query I rowsort label-4826
SELECT + - 31 / - + MIN ( - NULLIF ( - 6, - 62 ) ) + + 85 + - + 28 * - - ( + + 88 )
----
-2374

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4827
SELECT + - COUNT( * ), COUNT( * ) DIV - 54 * + 79 - - - ( + 92 ) AS col0
----
-1
-92

skipif mysql # not compatible
query II rowsort label-4827
SELECT + - COUNT ( * ), COUNT ( * ) / - 54 * + 79 - - - ( + 92 ) AS col0
----
-1
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT - 40 * 66 + - - COUNT( * ) AS col0
----
-2639

skipif mysql # not compatible
query I rowsort label-4828
SELECT - 40 * 66 + - - COUNT ( * ) AS col0
----
-2639

query I rowsort
SELECT + - 70 * + 50 * - 50
----
175000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT ALL - 64 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL - 64 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - - CASE + - 72 WHEN NULLIF ( - 96, - ( 53 ) ) THEN NULL WHEN 83 THEN 60 * + 22 + - + 23 WHEN 60 / - 38 + + 93 + - 87 * + 12 + - - NULLIF ( + 96, COUNT( * ) ) THEN NULL ELSE NULL END * + 14 + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT - - CASE + - 72 WHEN NULLIF ( - 96, - ( 53 ) ) THEN NULL WHEN 83 THEN 60 * + 22 + - + 23 WHEN 60 / - 38 + + 93 + - 87 * + 12 + - - NULLIF ( + 96, COUNT ( * ) ) THEN NULL ELSE NULL END * + 14 + + 12
----
NULL

query I rowsort
SELECT DISTINCT + ( + 49 )
----
49

query II rowsort
SELECT ALL + - 19 AS col0, + 5 col0
----
-19
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4834
SELECT + 59 col2, - MIN( ALL 38 ) AS col0
----
59
-38

skipif mysql # not compatible
query II rowsort label-4834
SELECT + 59 col2, - MIN ( ALL 38 ) AS col0
----
59
-38

query II rowsort
SELECT DISTINCT - + 81 * - 91 + + - 86 * + 60 * - + 46 + + 36 AS col2, 84 AS col0
----
244767
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT - NULLIF ( ( - 32 ), - COUNT( * ) + + + 15 * - - 21 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4836
SELECT - NULLIF ( ( - 32 ), - COUNT ( * ) + + + 15 * - - 21 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT DISTINCT 87 * - MIN( - 22 ) + - + 96 + + 56 - ( + ( + COUNT( + 28 ) ) )
----
1873

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT 87 * - MIN ( - 22 ) + - + 96 + + 56 - ( + ( + COUNT ( + 28 ) ) )
----
1873

query I rowsort
SELECT ALL + ( - COALESCE ( + 25, - 90 + - 92 ) ) AS col1
----
-25

query I rowsort
SELECT + - 68 * + 67 + + - 92 * 91 * - 5 * 32 + - - 53
----
1335017

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT NULLIF ( + + COUNT( DISTINCT 91 ), - - 29 ) - + - 27 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT NULLIF ( + + COUNT ( DISTINCT 91 ), - - 29 ) - + - 27 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL 25 * - ( - COUNT( * ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL 25 * - ( - COUNT ( * ) ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4842
SELECT COUNT( * ) * - 76 col0, CAST( NULL AS SIGNED ) AS col0
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-4842
SELECT COUNT ( * ) * - 76 col0, CAST ( NULL AS INTEGER ) AS col0
----
-76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT ALL - 83 * - COUNT( * ) * - + 87
----
-7221

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL - 83 * - COUNT ( * ) * - + 87
----
-7221

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT COUNT( * ) - + SUM( ALL + + 78 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4844
SELECT COUNT ( * ) - + SUM ( ALL + + 78 ) AS col1
----
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4845
SELECT 66 * 29, 29 + + + CAST( NULL AS DECIMAL ) AS col1
----
1914
NULL

skipif mysql # not compatible
query II rowsort label-4845
SELECT 66 * 29, 29 + + + CAST ( NULL AS REAL ) AS col1
----
1914
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4846
SELECT COUNT( * ) + + 2 AS col1, ( - - MIN( - ( + 8 ) ) ) col0
----
3
-8

skipif mysql # not compatible
query II rowsort label-4846
SELECT COUNT ( * ) + + 2 AS col1, ( - - MIN ( - ( + 8 ) ) ) col0
----
3
-8

query I rowsort
SELECT DISTINCT 24 * - 65 col1
----
-1560

query I rowsort
SELECT ALL 83 * - 67 AS col0
----
-5561

onlyif mysql # DIV for integer division: 
query II rowsort label-4849
SELECT 85 DIV + + 3, + 11 + - - 47 AS col0
----
28
58

skipif mysql # not compatible
query II rowsort label-4849
SELECT 85 / + + 3, + 11 + - - 47 AS col0
----
28
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT CASE - 23 WHEN - COUNT( DISTINCT ( - + 69 ) ) THEN NULL WHEN - ( + 26 ) + + + 9 THEN 10 * - 29 WHEN + + 4 THEN - ( - - 51 ) + - 33 * 58 * 67 / + 16 END + + + 31 * 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT CASE - 23 WHEN - COUNT ( DISTINCT ( - + 69 ) ) THEN NULL WHEN - ( + 26 ) + + + 9 THEN 10 * - 29 WHEN + + 4 THEN - ( - - 51 ) + - 33 * 58 * 67 / + 16 END + + + 31 * 37 AS col0
----
NULL

query I rowsort
SELECT ALL - 57 + - 85 + + 68
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL - 48 * + + ( COUNT( * ) )
----
-48

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL - 48 * + + ( COUNT ( * ) )
----
-48

query I rowsort
SELECT DISTINCT - 18 + - + 41
----
-59

query I rowsort
SELECT DISTINCT + + 35 + - 58 * 6 AS col1
----
-313

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL - - MAX( ALL + 94 ) + - - ( + - 32 ) * + 47
----
-1410

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL - - MAX ( ALL + 94 ) + - - ( + - 32 ) * + 47
----
-1410

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT + + CASE + NULLIF ( + + 16, 78 ) WHEN + 72 + + 69 THEN NULL WHEN + 77 * + + 50 * 31 + - 62 THEN - ( MAX( - 25 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4856
SELECT + + CASE + NULLIF ( + + 16, 78 ) WHEN + 72 + + 69 THEN NULL WHEN + 77 * + + 50 * 31 + - 62 THEN - ( MAX ( - 25 ) ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4857
SELECT 24 * - CAST( NULL AS SIGNED ) * - 57 * + + 24 / 27 + + 28 - + 30 + SUM( ALL + 48 ) + + 28 + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT 24 * - CAST ( NULL AS INTEGER ) * - 57 * + + 24 / 27 + + 28 - + 30 + SUM ( ALL + 48 ) + + 28 + + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT ALL - + NULLIF ( + NULLIF ( + 46, - + 40 + - 74 + - COUNT( * ) * + 3 ), 31 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - + NULLIF ( + NULLIF ( + 46, - + 40 + - 74 + - COUNT ( * ) * + 3 ), 31 ) AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4859
SELECT 47 + - + COALESCE ( + ( - 49 ), + 18 + + + 66 * - - 56 + + 99 - - NULLIF ( + 25, + 96 + COUNT( * ) + - CAST( - 92 AS SIGNED ) + - 65 / - 59 * 56 ) + - - ( 34 ), + - 87 * 84 )
----
96

skipif mysql # not compatible
query I rowsort label-4859
SELECT 47 + - + COALESCE ( + ( - 49 ), + 18 + + + 66 * - - 56 + + 99 - - NULLIF ( + 25, + 96 + COUNT ( * ) + - CAST ( - 92 AS INTEGER ) + - 65 / - 59 * 56 ) + - - ( 34 ), + - 87 * 84 )
----
96

query I rowsort
SELECT + 78 * + + 22 * - - 10 + - + NULLIF ( + 98, 49 ) + + 37 * + ( 67 ) * 28 AS col0
----
86474

onlyif mysql # DIV for integer division: 
query I rowsort label-4861
SELECT ALL + 53 DIV + + 39
----
1

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + 53 / + + 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT 26 + + - 99 + + ( + COUNT( * ) ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4862
SELECT 26 + + - 99 + + ( + COUNT ( * ) ) AS col0
----
-72

query I rowsort
SELECT 85 * + 28 - - 19
----
2399

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT COUNT( * ) - - - 44 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4864
SELECT COUNT ( * ) - - - 44 AS col1
----
-43

query I rowsort
SELECT DISTINCT - 59 * 85 + + + 76 AS col2
----
-4939

query I rowsort
SELECT 50 * + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL - 24 * + + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL - 24 * + + COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT 56 + + + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-4868
SELECT 56 + + + COUNT ( * )
----
57

query I rowsort
SELECT ( - - 21 ) - - + 98
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4870
SELECT ( - - CAST( 66 AS SIGNED ) ) + + 25 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-4870
SELECT ( - - CAST ( 66 AS INTEGER ) ) + + 25 AS col0
----
91

query II rowsort
SELECT ALL 47, 47
----
47
47

query II rowsort
SELECT 62, 16 col1
----
62
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4873
SELECT 91 + CAST( + SUM( DISTINCT - 68 ) AS SIGNED ) * + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-4873
SELECT 91 + CAST ( + SUM ( DISTINCT - 68 ) AS INTEGER ) * + COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT MIN( 14 ) * + 27
----
378

skipif mysql # not compatible
query I rowsort label-4874
SELECT MIN ( 14 ) * + 27
----
378

query I rowsort
SELECT 1 + + + 47 * 31 AS col2
----
1458

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT DISTINCT 71 + + 44 * - COUNT( * ) * CASE - + ( + 42 ) WHEN + 78 THEN NULL ELSE - 22 END + + - COALESCE ( 93, - 14 )
----
946

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT 71 + + 44 * - COUNT ( * ) * CASE - + ( + 42 ) WHEN + 78 THEN NULL ELSE - 22 END + + - COALESCE ( 93, - 14 )
----
946

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL 0 + + 67 * + CASE WHEN NOT AVG ( DISTINCT + 37 ) = 4 / COUNT( * ) + + - 92 THEN + - 8 END AS col0
----
-536

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL 0 + + 67 * + CASE WHEN NOT AVG ( DISTINCT + 37 ) = 4 / COUNT ( * ) + + - 92 THEN + - 8 END AS col0
----
-536

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4878
SELECT ( 42 ) * - 24, CAST( NULL AS DECIMAL ) AS col0
----
-1008
NULL

skipif mysql # not compatible
query II rowsort label-4878
SELECT ( 42 ) * - 24, CAST ( NULL AS REAL ) AS col0
----
-1008
NULL

query I rowsort
SELECT ALL 94 + - 95
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4880
SELECT 10 DIV + 21
----
0

skipif mysql # not compatible
query I rowsort label-4880
SELECT 10 / + 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL COUNT( * ) + - - 98
----
99

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL COUNT ( * ) + - - 98
----
99

query I rowsort
SELECT - 99 - 55 - - + 24 col1
----
-130

query I rowsort
SELECT 62 * - 44
----
-2728

query I rowsort
SELECT NULLIF ( - ( 23 ), 21 + + 22 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT DISTINCT + - COUNT( * ) * 47 + - - 94
----
47

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT + - COUNT ( * ) * 47 + - - 94
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4886
SELECT + COUNT( * ) * - COUNT( * ) DIV 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4886
SELECT + COUNT ( * ) * - COUNT ( * ) / 32 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4887
SELECT CAST( NULL AS DECIMAL ) - + CASE - - 59 WHEN + - 47 THEN - 76 * COUNT( * ) ELSE NULL END + - + COUNT( * ) * + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4887
SELECT CAST ( NULL AS REAL ) - + CASE - - 59 WHEN + - 47 THEN - 76 * COUNT ( * ) ELSE NULL END + - + COUNT ( * ) * + - 64
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4888
SELECT 19, + COUNT( * ) * + 14 AS col1
----
19
14

skipif mysql # not compatible
query II rowsort label-4888
SELECT 19, + COUNT ( * ) * + 14 AS col1
----
19
14

query II rowsort
SELECT DISTINCT - - 41 AS col0, 45 - + 90 + 2 * - - 21 * + + 26 * 57 * + 76
----
41
4730499

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT - COUNT( * ) * 6
----
-6

skipif mysql # not compatible
query I rowsort label-4890
SELECT - COUNT ( * ) * 6
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4891
SELECT - 85 * - 42 * 72, CASE ( - 27 ) WHEN - - 48 THEN + 25 * + 97 * + + NULLIF ( + 97, + 52 ) ELSE NULL END * - MIN( - CAST( + - 74 AS SIGNED ) ) + - 77 - 15 AS col0
----
257040
NULL

skipif mysql # not compatible
query II rowsort label-4891
SELECT - 85 * - 42 * 72, CASE ( - 27 ) WHEN - - 48 THEN + 25 * + 97 * + + NULLIF ( + 97, + 52 ) ELSE NULL END * - MIN ( - CAST ( + - 74 AS INTEGER ) ) + - 77 - 15 AS col0
----
257040
NULL

query I rowsort
SELECT ALL - - ( + + 77 ) AS col2
----
77

query I rowsort
SELECT 10 + + + 39 col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL + - MAX( - 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL + - MAX ( - 82 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT - COUNT( * ) + 85 * - + 77 * + + 44 * + COUNT( 81 )
----
-287981

skipif mysql # not compatible
query I rowsort label-4895
SELECT - COUNT ( * ) + 85 * - + 77 * + + 44 * + COUNT ( 81 )
----
-287981

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT - + NULLIF ( + 41, + COUNT( * ) ) * - 38 AS col2
----
1558

skipif mysql # not compatible
query I rowsort label-4896
SELECT - + NULLIF ( + 41, + COUNT ( * ) ) * - 38 AS col2
----
1558

onlyif mysql # aggregate syntax: 
query II rowsort label-4897
SELECT DISTINCT + ( COUNT( * ) ) * + MIN( ALL + - 8 ) AS col2, + 17 + - 88 AS col1
----
-8
-71

skipif mysql # not compatible
query II rowsort label-4897
SELECT DISTINCT + ( COUNT ( * ) ) * + MIN ( ALL + - 8 ) AS col2, + 17 + - 88 AS col1
----
-8
-71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4898
SELECT ALL + 92 * - 64 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL + 92 * - 64 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4899
SELECT - 84 + - + 25 - - ( 30 ) + + 81 * - + MIN( DISTINCT + 79 ) + + 69 + - CAST( - - 60 AS SIGNED ) * - CASE - ( COUNT( * ) ) WHEN + 39 - + COALESCE ( + + 58, - + MIN( DISTINCT - 23 ) * - 8 - + 51 + - COUNT( * ) + - 96, + 57 / - 12 + + CASE + ( + - 16 ) WHEN 87 THEN + + 85 - 90 END / + 8 + - 15 ) THEN - 53 / 57 + + MIN( + NULLIF ( - 54, - 77 * - 61 + ( 47 ) ) ) WHEN + 75 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT - 84 + - + 25 - - ( 30 ) + + 81 * - + MIN ( DISTINCT + 79 ) + + 69 + - CAST ( - - 60 AS INTEGER ) * - CASE - ( COUNT ( * ) ) WHEN + 39 - + COALESCE ( + + 58, - + MIN ( DISTINCT - 23 ) * - 8 - + 51 + - COUNT ( * ) + - 96, + 57 / - 12 + + CASE + ( + - 16 ) WHEN 87 THEN + + 85 - 90 END / + 8 + - 15 ) THEN - 53 / 57 + + MIN ( + NULLIF ( - 54, - 77 * - 61 + ( 47 ) ) ) WHEN + 75 THEN NULL END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4900
SELECT + ( - 12 ) DIV - 79 + - - 48 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4900
SELECT + ( - 12 ) / - 79 + - - 48 AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4901
SELECT - CASE + + 66 WHEN - 94 * - + 13 + ( + + 18 ) THEN + ( + + 64 ) + - + 65 + - - COUNT( * ) WHEN + + COUNT( * ) + + ( + 48 ) THEN NULL WHEN + CASE + COUNT( * ) WHEN + CAST( COUNT( * ) AS DECIMAL ) + 7 THEN NULL ELSE + AVG ( - 51 ) END * - 56 / 70 THEN NULL END - - 44 + 4 AS col2, + 98 AS col1
----
NULL
98

skipif mysql # not compatible
query II rowsort label-4901
SELECT - CASE + + 66 WHEN - 94 * - + 13 + ( + + 18 ) THEN + ( + + 64 ) + - + 65 + - - COUNT ( * ) WHEN + + COUNT ( * ) + + ( + 48 ) THEN NULL WHEN + CASE + COUNT ( * ) WHEN + CAST ( COUNT ( * ) AS REAL ) + 7 THEN NULL ELSE + AVG ( - 51 ) END * - 56 / 70 THEN NULL END - - 44 + 4 AS col2, + 98 AS col1
----
NULL
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4902
SELECT DISTINCT + 47 DIV + - 35 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT + 47 / + - 35 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ALL - 93 + + COUNT( * ) + - 4 + + - 15 * + ( + - 31 ) + + 42 + - - 91 * - - 21 * - 87 + + 32 + 27 + - COUNT( * ) AS col2
----
-165788

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL - 93 + + COUNT ( * ) + - 4 + + - 15 * + ( + - 31 ) + + 42 + - - 91 * - - 21 * - 87 + + 32 + 27 + - COUNT ( * ) AS col2
----
-165788

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT - COUNT( + 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-4904
SELECT - COUNT ( + 8 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4905
SELECT ALL 54 + + - COUNT( * ), 75 DIV - + 2 col2
----
53
-37

skipif mysql # not compatible
query II rowsort label-4905
SELECT ALL 54 + + - COUNT ( * ), 75 / - + 2 col2
----
53
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4906
SELECT DISTINCT - 48 DIV 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT - 48 / 69 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL 30 + - ( + - 19 ) + + SUM( + + 55 ) * - NULLIF ( - 60, 3 * - COUNT( * ) * - 67 * 74 * - 97 / + + 56 + + 50 ) + - + 89 - + 7 AS col1
----
3253

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL 30 + - ( + - 19 ) + + SUM ( + + 55 ) * - NULLIF ( - 60, 3 * - COUNT ( * ) * - 67 * 74 * - 97 / + + 56 + + 50 ) + - + 89 - + 7 AS col1
----
3253

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT + NULLIF ( - - COALESCE ( 84, - + 68 * - 86 + 75 ), - 69 ) - - 17 + 7 + + + 34 * + + 92 * + + 40 * - - COALESCE ( - 95, - COUNT( * ) + + 28 * - - 35, + 37 * - ( + - 16 ) ) AS col2
----
-11886292

skipif mysql # not compatible
query I rowsort label-4908
SELECT + NULLIF ( - - COALESCE ( 84, - + 68 * - 86 + 75 ), - 69 ) - - 17 + 7 + + + 34 * + + 92 * + + 40 * - - COALESCE ( - 95, - COUNT ( * ) + + 28 * - - 35, + 37 * - ( + - 16 ) ) AS col2
----
-11886292

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT DISTINCT COUNT( * ) * - 40 col1
----
-40

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT COUNT ( * ) * - 40 col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT + 76 + - COUNT( - 31 ) - - + 80 * + + 55
----
4475

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT + 76 + - COUNT ( - 31 ) - - + 80 * + + 55
----
4475

query I rowsort
SELECT + 88 * - + 84 AS col1
----
-7392

query II rowsort
SELECT ALL 94 + 14 AS col1, + 52 AS col1
----
108
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT - NULLIF ( + ( 70 ), - 8 ) + - COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4913
SELECT - NULLIF ( + ( 70 ), - 8 ) + - COUNT ( * ) AS col2
----
-71

query I rowsort
SELECT + ( + 2 ) + 56 + + 25
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT - + CAST( - ( + - COALESCE ( 87, - 50 ) ) AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-4915
SELECT - + CAST ( - ( + - COALESCE ( 87, - 50 ) ) AS INTEGER )
----
-87

query II rowsort
SELECT + - 88 + - 2, ( - + 88 ) + 73 + 82 + + 77 * + 15 AS col2
----
-90
1222

query I rowsort
SELECT - CASE - 55 WHEN - + 81 THEN 3 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 72 * + 27 + - 36 + + 12 * 94 * - 86 AS col1
----
-95100

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT + CASE - CASE + CASE 90 WHEN - 28 + - + 77 / + - 34 THEN NULL WHEN + 45 * 9 THEN 80 + 40 ELSE NULL END WHEN COUNT( * ) THEN COUNT( * ) END WHEN + 56 - + ( + + 35 ) THEN 39 ELSE NULL END + ( - + 68 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT + CASE - CASE + CASE 90 WHEN - 28 + - + 77 / + - 34 THEN NULL WHEN + 45 * 9 THEN 80 + 40 ELSE NULL END WHEN COUNT ( * ) THEN COUNT ( * ) END WHEN + 56 - + ( + + 35 ) THEN 39 ELSE NULL END + ( - + 68 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT ALL 30 * 72 * COUNT( + 10 ) * + 61 AS col1
----
131760

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL 30 * 72 * COUNT ( + 10 ) * + 61 AS col1
----
131760

onlyif mysql # DIV for integer division: 
query I rowsort label-4921
SELECT + 99 DIV 63 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4921
SELECT + 99 / 63 AS col0
----
1

query I rowsort
SELECT + - COALESCE ( - 14, + 88 ) * - - 89 AS col1
----
1246

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT - SUM( + 39 ) + + + MAX( + 16 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4923
SELECT - SUM ( + 39 ) + + + MAX ( + 16 ) AS col1
----
-23

query I rowsort
SELECT - 92 * - - 84 + 40 + 56
----
-7632

query I rowsort
SELECT + + 70 * 90
----
6300

query I rowsort
SELECT - ( + + 37 ) * - 62
----
2294

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT DISTINCT + - MIN( ALL 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT + - MIN ( ALL 99 )
----
-99

query I rowsort
SELECT + - 95 * + 30 AS col0
----
-2850

query I rowsort
SELECT DISTINCT + + 97 col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT DISTINCT + ( + SUM( ALL - 9 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT + ( + SUM ( ALL - 9 ) )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT ALL + MAX( + 23 ) * COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL + MAX ( + 23 ) * COUNT ( * )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4932
SELECT - NULLIF ( - 78, 56 ) * + 85 + - 78 AS col1, 1 * MIN( DISTINCT + + 32 ) - - - 30 DIV + - 71
----
6552
32

skipif mysql # not compatible
query II rowsort label-4932
SELECT - NULLIF ( - 78, 56 ) * + 85 + - 78 AS col1, 1 * MIN ( DISTINCT + + 32 ) - - - 30 / + - 71
----
6552
32

query I rowsort
SELECT NULLIF ( 33, - 59 )
----
33

query II rowsort
SELECT ALL + 5 AS col1, 38
----
5
38

query I rowsort
SELECT CASE + 45 WHEN + 78 THEN + + 16 END
----
NULL

query II rowsort
SELECT + 33 AS col1, - ( - 46 )
----
33
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4937
SELECT + 90 + + 18 DIV - 16
----
89

skipif mysql # not compatible
query I rowsort label-4937
SELECT + 90 + + 18 / - 16
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT COALESCE ( SUM( 8 ), COUNT( * ) * - + 53 * - 48 * - 2 + + 2 )
----
8

skipif mysql # not compatible
query I rowsort label-4938
SELECT COALESCE ( SUM ( 8 ), COUNT ( * ) * - + 53 * - 48 * - 2 + + 2 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT - CAST( - + 26 AS SIGNED ) + 9 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4939
SELECT - CAST ( - + 26 AS INTEGER ) + 9 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL NULLIF ( - 27, + + 67 + + ( + 34 ) + + 30 ) * COUNT( * ) + + 64
----
37

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL NULLIF ( - 27, + + 67 + + ( + 34 ) + + 30 ) * COUNT ( * ) + + 64
----
37

query I rowsort
SELECT ALL + 34 * - - 93 AS col0
----
3162

onlyif mysql # aggregate syntax: 
query III rowsort label-4942
SELECT COUNT( * ) AS col2, - MIN( ALL 73 ), - COALESCE ( 46, + + 91 ) AS col1
----
1
-73
-46

skipif mysql # not compatible
query III rowsort label-4942
SELECT COUNT ( * ) AS col2, - MIN ( ALL 73 ), - COALESCE ( 46, + + 91 ) AS col1
----
1
-73
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL 6 * - - COUNT( * ) + - 28 + - 15 - COUNT( + - 88 )
----
-38

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL 6 * - - COUNT ( * ) + - 28 + - 15 - COUNT ( + - 88 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4944
SELECT MAX( ALL - ( - 70 ) ) * - ( 46 ) * + CAST( ( - COUNT( * ) ) AS SIGNED ) + + 14 AS col1
----
3234

skipif mysql # not compatible
query I rowsort label-4944
SELECT MAX ( ALL - ( - 70 ) ) * - ( 46 ) * + CAST ( ( - COUNT ( * ) ) AS INTEGER ) + + 14 AS col1
----
3234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4945
SELECT DISTINCT 81 * - ( 42 ) DIV - COUNT( * ) + + 42
----
3444

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT 81 * - ( 42 ) / - COUNT ( * ) + + 42
----
3444

query I rowsort
SELECT ALL 50 * - + 62 + - 70 + - 1
----
-3171

onlyif mysql # DIV for integer division: 
query I rowsort label-4947
SELECT ALL 83 DIV - + 45
----
-1

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL 83 / - + 45
----
-1

query I rowsort
SELECT - 88 + - + 75 AS col1
----
-163

query I rowsort
SELECT - 0 * + 26
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4950
SELECT + 82 + + 24 DIV MAX( ALL 24 ) * - ( 49 ) + - - 48 * 2 + COUNT( * )
----
130

skipif mysql # not compatible
query I rowsort label-4950
SELECT + 82 + + 24 / MAX ( ALL 24 ) * - ( 49 ) + - - 48 * 2 + COUNT ( * )
----
130

query I rowsort
SELECT DISTINCT 82 * - 71 AS col2
----
-5822

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT ALL COUNT( * ) - - - COUNT( * ) + + 23 + + 26 - - ( - 88 ) * COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL COUNT ( * ) - - - COUNT ( * ) + + 23 + + 26 - - ( - 88 ) * COUNT ( * ) AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4953
SELECT - CAST( NULL AS SIGNED ) * 8 * - - NULLIF ( + 62, - + 8 * 55 * + 61 * + 73 - + COUNT( DISTINCT + 41 ) ) AS col2, 27
----
NULL
27

skipif mysql # not compatible
query II rowsort label-4953
SELECT - CAST ( NULL AS INTEGER ) * 8 * - - NULLIF ( + 62, - + 8 * 55 * + 61 * + 73 - + COUNT ( DISTINCT + 41 ) ) AS col2, 27
----
NULL
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT - - 42 * + + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-4954
SELECT - - 42 * + + COUNT ( * )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4955
SELECT ALL - 37 DIV - - 22
----
-1

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL - 37 / - - 22
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4956
SELECT DISTINCT + CASE COUNT( * ) WHEN - + CAST( NULL AS SIGNED ) THEN 72 + + + 12 - + COALESCE ( - CASE - + COUNT( * ) WHEN + - 50 THEN + - 75 * 72 END, ( - 77 ) + - + 27 ) / + 77 + + 56 ELSE + AVG ( DISTINCT + - 95 ) END - + CASE + + 45 WHEN - ( COUNT( * ) ) * - 21 + - + 80 * + - ( - MIN( + 98 ) ) THEN + ( - 44 ) - + 24 END + 90 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT + CASE COUNT ( * ) WHEN - + CAST ( NULL AS INTEGER ) THEN 72 + + + 12 - + COALESCE ( - CASE - + COUNT ( * ) WHEN + - 50 THEN + - 75 * 72 END, ( - 77 ) + - + 27 ) / + 77 + + 56 ELSE + AVG ( DISTINCT + - 95 ) END - + CASE + + 45 WHEN - ( COUNT ( * ) ) * - 21 + - + 80 * + - ( - MIN ( + 98 ) ) THEN + ( - 44 ) - + 24 END + 90 / - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 61 * + + COALESCE ( + + 50, - 18, - 56 )
----
3050

query I rowsort
SELECT ALL + 46 - + + 22 * - + 64 + + - ( - 35 ) + - + 29 AS col0
----
1460

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT - + 65 - - 78 * - COUNT( * ) - 89
----
-232

skipif mysql # not compatible
query I rowsort label-4959
SELECT - + 65 - - 78 * - COUNT ( * ) - 89
----
-232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4960
SELECT CAST( 21 AS SIGNED ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4960
SELECT CAST ( 21 AS INTEGER ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ALL - MIN( 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL - MIN ( 13 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT - - 77 * + + 4 * - SUM( + - 83 ) - - + ( - 7 ) AS col2
----
25557

skipif mysql # not compatible
query I rowsort label-4962
SELECT - - 77 * + + 4 * - SUM ( + - 83 ) - - + ( - 7 ) AS col2
----
25557

onlyif mysql # DIV for integer division: 
query I rowsort label-4963
SELECT - ( + ( + + COALESCE ( 30, 56 DIV 74 * - 98 * - - 10 ) ) ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-4963
SELECT - ( + ( + + COALESCE ( 30, 56 / 74 * - 98 * - - 10 ) ) ) col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4964
SELECT + 56 AS col2, 98 + + 13 - - - 9 + + + 35 + - 20 * + MAX( DISTINCT - ( - 51 ) ) * - - CAST( - 80 AS SIGNED ) * + + COUNT( * ) + + - 87 * + 27 * - 35 + CAST( NULL AS SIGNED ) + + COUNT( * ) * 79 * - 56
----
56
NULL

skipif mysql # not compatible
query II rowsort label-4964
SELECT + 56 AS col2, 98 + + 13 - - - 9 + + + 35 + - 20 * + MAX ( DISTINCT - ( - 51 ) ) * - - CAST ( - 80 AS INTEGER ) * + + COUNT ( * ) + + - 87 * + 27 * - 35 + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 79 * - 56
----
56
NULL

query I rowsort
SELECT ALL 7 + 23 + - 97
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4966
SELECT + 90 DIV + 13 - - 71 + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4966
SELECT + 90 / + 13 - - 71 + COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4967
SELECT ALL - + 86, + MIN( - 33 ) * + + 57 AS col2
----
-86
-1881

skipif mysql # not compatible
query II rowsort label-4967
SELECT ALL - + 86, + MIN ( - 33 ) * + + 57 AS col2
----
-86
-1881

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4968
SELECT 63 - - + COUNT( * ) * - + COUNT( * ) DIV 63
----
63

skipif mysql # not compatible
query I rowsort label-4968
SELECT 63 - - + COUNT ( * ) * - + COUNT ( * ) / 63
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4969
SELECT ALL 30 DIV + + 11 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL 30 / + + 11 AS col1
----
2

query II rowsort
SELECT + + 96, 48 AS col2
----
96
48

query I rowsort
SELECT 50 + + - 90 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-4972
SELECT + 31 AS col2, + MAX( - ( 92 ) )
----
31
-92

skipif mysql # not compatible
query II rowsort label-4972
SELECT + 31 AS col2, + MAX ( - ( 92 ) )
----
31
-92

query I rowsort
SELECT ( + - 17 ) * + 87 + - 89
----
-1568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4974
SELECT DISTINCT 78 + + CAST( ( 11 ) AS SIGNED ) + - 34 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT 78 + + CAST ( ( 11 ) AS INTEGER ) + - 34 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ALL MIN( + 39 ) + - 18 + - MAX( ALL 39 ) + 6
----
-12

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL MIN ( + 39 ) + - 18 + - MAX ( ALL 39 ) + 6
----
-12

query I rowsort
SELECT DISTINCT 83 + - 48 AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4977
SELECT DISTINCT - MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT - MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT ALL - ( - + 64 )
----
64

query I rowsort
SELECT ALL 18 + + 13 * + 92 + 91 * ( - 89 )
----
-6885

onlyif mysql # DIV for integer division: 
query III rowsort label-4980
SELECT 7 AS col0, 9 DIV + 24 * 96 AS col1, + 91 * - 16
----
7
0
-1456

skipif mysql # not compatible
query III rowsort label-4980
SELECT 7 AS col0, 9 / + 24 * 96 AS col1, + 91 * - 16
----
7
0
-1456

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT CASE + + 41 WHEN + 32 THEN 7 WHEN COUNT( * ) THEN - COUNT( * ) ELSE NULL END - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4981
SELECT CASE + + 41 WHEN + 32 THEN 7 WHEN COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END - 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4982
SELECT - 8 AS col1, SUM( + 40 )
----
-8
40

skipif mysql # not compatible
query II rowsort label-4982
SELECT - 8 AS col1, SUM ( + 40 )
----
-8
40

onlyif mysql # DIV for integer division: 
query II rowsort label-4983
SELECT 81 + 57 + ( 3 ) DIV 20 * - 81 AS col1, 95
----
138
95

skipif mysql # not compatible
query II rowsort label-4983
SELECT 81 + 57 + ( 3 ) / 20 * - 81 AS col1, 95
----
138
95

query II rowsort
SELECT - 66, + 10 AS col1
----
-66
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4985
SELECT ALL + MAX( DISTINCT ( - - 71 ) ) - - 94 + MIN( + 52 ) AS col2, 86
----
217
86

skipif mysql # not compatible
query II rowsort label-4985
SELECT ALL + MAX ( DISTINCT ( - - 71 ) ) - - 94 + MIN ( + 52 ) AS col2, 86
----
217
86

query II rowsort
SELECT DISTINCT - 9 AS col2, - 2
----
-9
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL - COUNT( 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL - COUNT ( 46 )
----
-1

query I rowsort
SELECT + 29 + - 92 AS col1
----
-63

query I rowsort
SELECT + 68 + 84 col0
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4990
SELECT SUM( - 96 ) DIV - 10 - 2 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4990
SELECT SUM ( - 96 ) / - 10 - 2 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT COUNT( * ) * 65 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4991
SELECT COUNT ( * ) * 65 AS col2
----
65

query I rowsort
SELECT 6 - 15 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT - ( - CASE - ( + NULLIF ( CASE + 86 WHEN - 28 + 39 * - 93 THEN NULL WHEN + 67 * + - COALESCE ( - 20, + - 92 + + - NULLIF ( 17, - ( - 17 ) ) ) THEN + 78 ELSE - ( 49 ) + - - 34 END, - 94 ) ) WHEN - ( ( - + 59 ) ) + + 33 THEN NULL ELSE - 20 END ) * + 77 * 4 * MIN( + 14 )
----
-86240

skipif mysql # not compatible
query I rowsort label-4993
SELECT - ( - CASE - ( + NULLIF ( CASE + 86 WHEN - 28 + 39 * - 93 THEN NULL WHEN + 67 * + - COALESCE ( - 20, + - 92 + + - NULLIF ( 17, - ( - 17 ) ) ) THEN + 78 ELSE - ( 49 ) + - - 34 END, - 94 ) ) WHEN - ( ( - + 59 ) ) + + 33 THEN NULL ELSE - 20 END ) * + 77 * 4 * MIN ( + 14 )
----
-86240

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT DISTINCT - COUNT( * ) AS col2, - COUNT( * ) * + 61
----
-1
-61

skipif mysql # not compatible
query II rowsort label-4994
SELECT DISTINCT - COUNT ( * ) AS col2, - COUNT ( * ) * + 61
----
-1
-61

query I rowsort
SELECT DISTINCT - 42 + - ( - 88 ) - + ( + 1 ) col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4996
SELECT ALL - ( + 16 ) + - 15 * + 88 + + ( + COALESCE ( - 3, + 22 - + COUNT( * ) ) ) + COUNT( + - 69 ) * + - ( - COUNT( * ) ) * - 82 * - CASE + COUNT( * ) WHEN - 95 * - - 52 + + 18 THEN NULL WHEN + CAST( - - 48 AS SIGNED ) * MAX( DISTINCT 29 ) / - 49 + - 42 THEN + + ( + - COUNT( ALL - 74 ) ) + 31 / + - 54 * + + 89 * + COUNT( * ) END * COUNT( * ) + CAST( 42 + + 92 AS DECIMAL ) * 2 + + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL - ( + 16 ) + - 15 * + 88 + + ( + COALESCE ( - 3, + 22 - + COUNT ( * ) ) ) + COUNT ( + - 69 ) * + - ( - COUNT ( * ) ) * - 82 * - CASE + COUNT ( * ) WHEN - 95 * - - 52 + + 18 THEN NULL WHEN + CAST ( - - 48 AS INTEGER ) * MAX ( DISTINCT 29 ) / - 49 + - 42 THEN + + ( + - COUNT ( ALL - 74 ) ) + 31 / + - 54 * + + 89 * + COUNT ( * ) END * COUNT ( * ) + CAST ( 42 + + 92 AS REAL ) * 2 + + 46 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 40 * - 96
----
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT + COUNT( * ) * - 95 + + - COUNT( * ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-4998
SELECT + COUNT ( * ) * - 95 + + - COUNT ( * ) AS col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4999
SELECT ALL COUNT( * ) + + + 2 + - CAST( 0 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL COUNT ( * ) + + + 2 + - CAST ( 0 AS INTEGER )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5000
SELECT DISTINCT 72 DIV 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT 72 / 86 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5001
SELECT DISTINCT - 43 + - 24, - COUNT( * ) AS col2
----
-67
-1

skipif mysql # not compatible
query II rowsort label-5001
SELECT DISTINCT - 43 + - 24, - COUNT ( * ) AS col2
----
-67
-1

query II rowsort
SELECT DISTINCT + 89 + - 15, + 27 + - + 48 - + 79 * - 57 AS col2
----
74
4482

query II rowsort
SELECT ALL 7 * + + 40 AS col1, - 16 + - + 96 + - COALESCE ( - ( + 78 ), + 38 ) * + - 76 * 17 + + 56 * + 84 * + 14 * - 56 AS col1
----
280
-3788824

query II rowsort
SELECT DISTINCT 24 - + + 51 col2, 22 * - 69
----
-27
-1518

onlyif mysql # DIV for integer division: 
query I rowsort label-5005
SELECT DISTINCT 36 DIV 90 * + + 22
----
0

skipif mysql # not compatible
query I rowsort label-5005
SELECT DISTINCT 36 / 90 * + + 22
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT 74 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT 74 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5007
SELECT COALESCE ( CASE + COUNT( * ) WHEN + - 58 THEN NULL WHEN + CASE + + COALESCE ( - COUNT( * ), CASE ( + SUM( + 60 ) ) WHEN + - 25 * - AVG ( ALL - 57 ) - 23 THEN NULL WHEN - MIN( ALL 63 ) THEN + 43 END * + + 95 ) WHEN + COUNT( * ) THEN NULL WHEN CASE + 9 WHEN - + 4 THEN - COALESCE ( 87, - COUNT( * ), - - 15 ) + + + 61 * + - 18 * + 47 / + MIN( DISTINCT + 42 ) END THEN 66 END * CASE + 4 - MAX( ALL 55 ) WHEN - 38 / + 37 + - ( + CAST( NULL AS SIGNED ) ) / 8 THEN NULL ELSE + ( + 13 ) END THEN + 9 * 63 END, 76 * - COUNT( * ) ) * 59
----
-4484

skipif mysql # not compatible
query I rowsort label-5007
SELECT COALESCE ( CASE + COUNT ( * ) WHEN + - 58 THEN NULL WHEN + CASE + + COALESCE ( - COUNT ( * ), CASE ( + SUM ( + 60 ) ) WHEN + - 25 * - AVG ( ALL - 57 ) - 23 THEN NULL WHEN - MIN ( ALL 63 ) THEN + 43 END * + + 95 ) WHEN + COUNT ( * ) THEN NULL WHEN CASE + 9 WHEN - + 4 THEN - COALESCE ( 87, - COUNT ( * ), - - 15 ) + + + 61 * + - 18 * + 47 / + MIN ( DISTINCT + 42 ) END THEN 66 END * CASE + 4 - MAX ( ALL 55 ) WHEN - 38 / + 37 + - ( + CAST ( NULL AS INTEGER ) ) / 8 THEN NULL ELSE + ( + 13 ) END THEN + 9 * 63 END, 76 * - COUNT ( * ) ) * 59
----
-4484

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT SUM( ALL - 59 ) + - - 50 col2
----
-9

skipif mysql # not compatible
query I rowsort label-5008
SELECT SUM ( ALL - 59 ) + - - 50 col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5009
SELECT COUNT( * ) * + - CAST( NULL AS SIGNED ) - - - 67 + + 58 + 23 * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT COUNT ( * ) * + - CAST ( NULL AS INTEGER ) - - - 67 + + 58 + 23 * - 91
----
NULL

query I rowsort
SELECT 26 + - - 99 * - + ( + 70 )
----
-6904

query I rowsort
SELECT DISTINCT 65 - + 14 AS col1
----
51

query I rowsort
SELECT NULLIF ( + - 88, + - AVG ( + + 96 ) ) * 37 col0
----
-3256

query I rowsort
SELECT ALL 29 - - - ( 37 ) + + - 19 - - 37 AS col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5014
SELECT ALL - SUM( + ( 7 ) ) AS col2, - 92
----
-7
-92

skipif mysql # not compatible
query II rowsort label-5014
SELECT ALL - SUM ( + ( 7 ) ) AS col2, - 92
----
-7
-92

query I rowsort
SELECT + 43 * - ( - ( + 95 ) )
----
4085

query I rowsort
SELECT - - ( - 95 ) AS col1
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5017
SELECT - - MAX( + 75 ) AS col1, + 94 DIV + 61 - 92 AS col1
----
75
-91

skipif mysql # not compatible
query II rowsort label-5017
SELECT - - MAX ( + 75 ) AS col1, + 94 / + 61 - 92 AS col1
----
75
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT - 35 + + 32 - - NULLIF ( ( - - 69 ), - 34 ) * + + 29 * + COUNT( * ) AS col1
----
1998

skipif mysql # not compatible
query I rowsort label-5018
SELECT - 35 + + 32 - - NULLIF ( ( - - 69 ), - 34 ) * + + 29 * + COUNT ( * ) AS col1
----
1998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT - 40 * - CAST( + + 29 AS SIGNED ) + - 51 col1
----
1109

skipif mysql # not compatible
query I rowsort label-5019
SELECT - 40 * - CAST ( + + 29 AS INTEGER ) + - 51 col1
----
1109

query I rowsort
SELECT + 79 * - 27
----
-2133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5021
SELECT - CAST( NULL AS SIGNED ) + COUNT( DISTINCT 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5021
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT 81 )
----
NULL

query I rowsort
SELECT ALL - 94 + 30 AS col1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5023
SELECT - 6 DIV 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5023
SELECT - 6 / 76 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5024
SELECT ALL - CAST( NULL AS SIGNED ) * + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL - CAST ( NULL AS INTEGER ) * + 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL - + 31 + + + COUNT( * ) + COUNT( * ) + - - 91 * + 38 AS col0
----
3429

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL - + 31 + + + COUNT ( * ) + COUNT ( * ) + - - 91 * + 38 AS col0
----
3429

query I rowsort
SELECT DISTINCT - 11 + 33 - - 68 * 40 col1
----
2742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5027
SELECT - CAST( - 55 AS SIGNED ) - - 86 AS col0
----
141

skipif mysql # not compatible
query I rowsort label-5027
SELECT - CAST ( - 55 AS INTEGER ) - - 86 AS col0
----
141

query I rowsort
SELECT + 43 * - 84 + + 73 AS col0
----
-3539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5029
SELECT - COUNT( 90 ) * + 45 * 70 DIV 21
----
-150

skipif mysql # not compatible
query I rowsort label-5029
SELECT - COUNT ( 90 ) * + 45 * 70 / 21
----
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-5030
SELECT - CASE - 94 WHEN 8 / 81 THEN + 80 / - 73 / + 24 + - + COALESCE ( 12, ( - - COUNT( * ) ) ) WHEN 45 THEN NULL END col1, + 13 AS col0
----
NULL
13

skipif mysql # not compatible
query II rowsort label-5030
SELECT - CASE - 94 WHEN 8 / 81 THEN + 80 / - 73 / + 24 + - + COALESCE ( 12, ( - - COUNT ( * ) ) ) WHEN 45 THEN NULL END col1, + 13 AS col0
----
NULL
13

query I rowsort
SELECT ALL 51 * + 1 + + 40 + + 2 AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5032
SELECT ALL - 30 * 4 / - - CAST( NULL AS SIGNED ) * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL - 30 * 4 / - - CAST ( NULL AS INTEGER ) * 73 AS col2
----
NULL

query I rowsort
SELECT ALL ( - 83 ) * 95 - 57
----
-7942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5034
SELECT - CAST( + 33 AS SIGNED ) - - 54
----
21

skipif mysql # not compatible
query I rowsort label-5034
SELECT - CAST ( + 33 AS INTEGER ) - - 54
----
21

query I rowsort
SELECT ALL + 3 * + + 56 AS col1
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5036
SELECT - SUM( ALL - CAST( NULL AS SIGNED ) ) - + 79 + - - 14 / + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5036
SELECT - SUM ( ALL - CAST ( NULL AS INTEGER ) ) - + 79 + - - 14 / + 63
----
NULL

query II rowsort
SELECT + 40 AS col0, 40 AS col1
----
40
40

query I rowsort
SELECT NULLIF ( 9, - - 0 + + + 61 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT ALL - COUNT( * ) * 94 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL - COUNT ( * ) * 94 AS col2
----
-94

query I rowsort
SELECT ALL - 12 * + ( - 17 )
----
204

query I rowsort
SELECT + 42 * + 34
----
1428

query I rowsort
SELECT - 75 * - 16 + + - 97 + + + 13 * + 7 AS col2
----
1194

query I rowsort
SELECT + 18 - 90 * CASE + 20 WHEN 80 THEN + 52 * - 39 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT NULLIF ( - + 93, - + MAX( + + 13 ) + + + 42 ) col1
----
-93

skipif mysql # not compatible
query I rowsort label-5044
SELECT NULLIF ( - + 93, - + MAX ( + + 13 ) + + + 42 ) col1
----
-93

query II rowsort
SELECT ALL + 35, + 73 * 50 AS col1
----
35
3650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5046
SELECT ALL COALESCE ( 74, + COUNT( * ) DIV COUNT( * ) ) DIV + + 37
----
2

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL COALESCE ( 74, + COUNT ( * ) / COUNT ( * ) ) / + + 37
----
2

query I rowsort
SELECT DISTINCT + ( - 31 ) AS col2
----
-31

query II rowsort
SELECT ALL + 54 AS col1, - 70
----
54
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT + NULLIF ( - SUM( - + 84 ), - + 49 )
----
84

skipif mysql # not compatible
query I rowsort label-5049
SELECT + NULLIF ( - SUM ( - + 84 ), - + 49 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5050
SELECT ALL CASE + + 87 WHEN 11 * 39 THEN NULL WHEN + + 29 THEN + - 87 * - 94 WHEN - 64 THEN 49 * 24 * + - 55 + + CAST( NULL AS SIGNED ) - + + ( + ( - + 14 ) ) * + 29 * 52 * - COUNT( * ) END * 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL CASE + + 87 WHEN 11 * 39 THEN NULL WHEN + + 29 THEN + - 87 * - 94 WHEN - 64 THEN 49 * 24 * + - 55 + + CAST ( NULL AS INTEGER ) - + + ( + ( - + 14 ) ) * + 29 * 52 * - COUNT ( * ) END * 23 AS col0
----
NULL

query I rowsort
SELECT - 87 + 68
----
-19

query I rowsort
SELECT + - 3 + - - NULLIF ( 16, + 16 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5053
SELECT + + 98 * + + 15 + - 32 + + 81 AS col2, + SUM( DISTINCT - 53 ) col2
----
1519
-53

skipif mysql # not compatible
query II rowsort label-5053
SELECT + + 98 * + + 15 + - 32 + + 81 AS col2, + SUM ( DISTINCT - 53 ) col2
----
1519
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT + + COUNT( * ) * - + 81 col0
----
-81

skipif mysql # not compatible
query I rowsort label-5054
SELECT + + COUNT ( * ) * - + 81 col0
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5055
SELECT DISTINCT 51 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT 51 + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5056
SELECT ALL + 42 + - - ( - 19 ) + + 68 - - + 66 / - NULLIF ( + COUNT( * ), + 88 ) * - 92 * 1 * + 89 / - - CAST( NULL AS SIGNED ) / - - 10, + ( - + CASE - 26 WHEN - 52 THEN 9 ELSE NULL END ) * - + 10 + 5 + - 37 - + 58
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5056
SELECT ALL + 42 + - - ( - 19 ) + + 68 - - + 66 / - NULLIF ( + COUNT ( * ), + 88 ) * - 92 * 1 * + 89 / - - CAST ( NULL AS INTEGER ) / - - 10, + ( - + CASE - 26 WHEN - 52 THEN 9 ELSE NULL END ) * - + 10 + 5 + - 37 - + 58
----
NULL
NULL

query I rowsort
SELECT + 0 - 75
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5058
SELECT + 13 + CASE + 3 WHEN - 17 THEN NULL WHEN - NULLIF ( - 69, - 88 ) * 40 * + MIN( + 10 ) + + ( + 33 ) - + ( - + 9 ) THEN MAX( DISTINCT + 26 ) * + COUNT( * ) WHEN + 32 THEN 77 WHEN ( - 21 ) * + 25 * + COUNT( * ) + 32 * + 91 + 22 THEN + ( + 12 ) ELSE NULL END - + 23 * - 71 - + 57, MIN( + - CAST( NULL AS SIGNED ) ) * + 52
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5058
SELECT + 13 + CASE + 3 WHEN - 17 THEN NULL WHEN - NULLIF ( - 69, - 88 ) * 40 * + MIN ( + 10 ) + + ( + 33 ) - + ( - + 9 ) THEN MAX ( DISTINCT + 26 ) * + COUNT ( * ) WHEN + 32 THEN 77 WHEN ( - 21 ) * + 25 * + COUNT ( * ) + 32 * + 91 + 22 THEN + ( + 12 ) ELSE NULL END - + 23 * - 71 - + 57, MIN ( + - CAST ( NULL AS INTEGER ) ) * + 52
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5059
SELECT - + 71 AS col2, + COUNT( * )
----
-71
1

skipif mysql # not compatible
query II rowsort label-5059
SELECT - + 71 AS col2, + COUNT ( * )
----
-71
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5060
SELECT + - COUNT( * ) + + 42 + + COUNT( * ) DIV + 28 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-5060
SELECT + - COUNT ( * ) + + 42 + + COUNT ( * ) / + 28 AS col1
----
41

query I rowsort
SELECT - - 21 - NULLIF ( - 70, - 27 * - 33 ) col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT DISTINCT + MAX( 10 ) * + - 89 * 25
----
-22250

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT + MAX ( 10 ) * + - 89 * 25
----
-22250

onlyif mysql # aggregate syntax: 
query II rowsort label-5063
SELECT ALL + ( + COUNT( * ) ) - + 82 + - 92 AS col0, 97 AS col1
----
-173
97

skipif mysql # not compatible
query II rowsort label-5063
SELECT ALL + ( + COUNT ( * ) ) - + 82 + - 92 AS col0, 97 AS col1
----
-173
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5064
SELECT DISTINCT CAST( - 98 AS SIGNED ) - - ( - COUNT( * ) ) * 89
----
-187

skipif mysql # not compatible
query I rowsort label-5064
SELECT DISTINCT CAST ( - 98 AS INTEGER ) - - ( - COUNT ( * ) ) * 89
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT DISTINCT + COUNT( * ) * + 81
----
81

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT + COUNT ( * ) * + 81
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5066
SELECT CAST( NULL AS SIGNED ) * + COUNT( ALL 46 ) + + + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( ALL 46 ) + + + 41 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 61 * - 67 AS col0
----
-4087

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5068
SELECT + COUNT( * ) DIV + - 48 + - + 44 + - + 21 AS col1, 75 AS col0
----
-65
75

skipif mysql # not compatible
query II rowsort label-5068
SELECT + COUNT ( * ) / + - 48 + - + 44 + - + 21 AS col1, 75 AS col0
----
-65
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5069
SELECT - 90 * 36 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT - 90 * 36 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + NULLIF ( 20, 7 ), + - 14 + 4 )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5071
SELECT CAST( + - ( + 54 ) AS SIGNED ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-5071
SELECT CAST ( + - ( + 54 ) AS INTEGER ) AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5072
SELECT + COUNT( DISTINCT 30 ) + + - CASE - ( - 5 ) WHEN - CAST( 5 AS SIGNED ) * + - CAST( - + 78 AS SIGNED ) THEN + 48 / - ( 87 ) WHEN ( - 86 ) THEN + 60 END * + - 37 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT + COUNT ( DISTINCT 30 ) + + - CASE - ( - 5 ) WHEN - CAST ( 5 AS INTEGER ) * + - CAST ( - + 78 AS INTEGER ) THEN + 48 / - ( 87 ) WHEN ( - 86 ) THEN + 60 END * + - 37 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5073
SELECT ALL + 72 DIV - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL + 72 / - COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT + 90 * - COUNT( * ) + COUNT( * ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-5074
SELECT + 90 * - COUNT ( * ) + COUNT ( * ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT ALL + MIN( ALL - - 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL + MIN ( ALL - - 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5076
SELECT - 6 DIV - MAX( - + 91 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5076
SELECT - 6 / - MAX ( - + 91 ) AS col1
----
0

query I rowsort
SELECT - 24 + - 83 * + 31 * + 54 * - + 1
----
138918

onlyif mysql # aggregate syntax: 
query II rowsort label-5078
SELECT DISTINCT - 54 * - + 27 col1, COALESCE ( + - COUNT( * ), + - 69 + 12, 86 * 97 - COUNT( * ) )
----
1458
-1

skipif mysql # not compatible
query II rowsort label-5078
SELECT DISTINCT - 54 * - + 27 col1, COALESCE ( + - COUNT ( * ), + - 69 + 12, 86 * 97 - COUNT ( * ) )
----
1458
-1

query I rowsort
SELECT ALL - ( - 6 ) + 64
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5080
SELECT 15 * - 88, + ( - COUNT( * ) ) * - 80 AS col1
----
-1320
80

skipif mysql # not compatible
query II rowsort label-5080
SELECT 15 * - 88, + ( - COUNT ( * ) ) * - 80 AS col1
----
-1320
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT + 95 * + + ( 36 ) + ( + 41 ) + + COUNT( * ) * + 92 * ( - COALESCE ( + COUNT( * ), + 74 ) )
----
3369

skipif mysql # not compatible
query I rowsort label-5081
SELECT + 95 * + + ( 36 ) + ( + 41 ) + + COUNT ( * ) * + 92 * ( - COALESCE ( + COUNT ( * ), + 74 ) )
----
3369

onlyif mysql # aggregate syntax: 
query II rowsort label-5082
SELECT - COUNT( - + 22 ) AS col2, MIN( ALL - 84 ) * + - 0 col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-5082
SELECT - COUNT ( - + 22 ) AS col2, MIN ( ALL - 84 ) * + - 0 col2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL - ( ( + - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL - ( ( + - COUNT ( * ) ) )
----
1

query I rowsort
SELECT 12 + 7
----
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5085
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - - 52 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT + CAST ( NULL AS REAL ) + - - 52 + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT ALL 1 + + 86, - 51 - + 0 AS col1
----
87
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT - COUNT( * ) * + 71 + - - 10
----
-61

skipif mysql # not compatible
query I rowsort label-5087
SELECT - COUNT ( * ) * + 71 + - - 10
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT DISTINCT COUNT( 53 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT COUNT ( 53 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT 91 + - + 98 + + - 87 * + COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-5089
SELECT 91 + - + 98 + + - 87 * + COUNT ( * ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT DISTINCT SUM( 49 )
----
49

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT SUM ( 49 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT 24 * - CAST( - 59 AS SIGNED )
----
1416

skipif mysql # not compatible
query I rowsort label-5091
SELECT 24 * - CAST ( - 59 AS INTEGER )
----
1416

query I rowsort
SELECT ALL - 11 + + 72 + 9
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT - - MIN( - 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5093
SELECT - - MIN ( - 36 ) AS col1
----
-36

query I rowsort
SELECT - - NULLIF ( + + 48, + - 93 )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT + 64 DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5095
SELECT + 64 / 93 AS col0
----
0

query I rowsort
SELECT 60 + 11 AS col0
----
71

query I rowsort
SELECT ALL 3 * - 29
----
-87

query I rowsort
SELECT ALL - 61 * + 18 col2
----
-1098

query I rowsort
SELECT ALL + - 55 - + 5 col1
----
-60

query I rowsort
SELECT - NULLIF ( + 83, + + 34 ) AS col1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5101
SELECT 40 DIV - 91 * + COUNT( * ) + - MAX( DISTINCT - 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5101
SELECT 40 / - 91 * + COUNT ( * ) + - MAX ( DISTINCT - 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT ALL - ( - - 55 ) * - COUNT( * ) * + 37 col1
----
2035

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL - ( - - 55 ) * - COUNT ( * ) * + 37 col1
----
2035

onlyif mysql # DIV for integer division: 
query I rowsort label-5103
SELECT 65 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-5103
SELECT 65 / - 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5104
SELECT CASE - 14 WHEN + 71 THEN NULL WHEN - + 92 + + 65 * - - 69 / - - 22 * + CAST( NULL AS SIGNED ) + - 79 + + SUM( 97 ) * + 44 * + + 97 / - 15 THEN + - 82 - - 64 + NULLIF ( + NULLIF ( - + 22, - 58 * - 23 ), 65 ) + - - 25 + + 99 * - 10 * 40 * + 17 * + 92 / + 7 ELSE NULL END - + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5104
SELECT CASE - 14 WHEN + 71 THEN NULL WHEN - + 92 + + 65 * - - 69 / - - 22 * + CAST ( NULL AS INTEGER ) + - 79 + + SUM ( 97 ) * + 44 * + + 97 / - 15 THEN + - 82 - - 64 + NULLIF ( + NULLIF ( - + 22, - 58 * - 23 ), 65 ) + - - 25 + + 99 * - 10 * 40 * + 17 * + 92 / + 7 ELSE NULL END - + 4
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5105
SELECT CAST( NULL AS SIGNED ) * - + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5105
SELECT CAST ( NULL AS INTEGER ) * - + 67 AS col1
----
NULL

query I rowsort
SELECT 84 - + 67
----
17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5107
SELECT DISTINCT COALESCE ( + 46, ( - 30 ) DIV - 83 DIV - 16 DIV CAST( + ( + ( - 81 ) ) AS SIGNED ) ) * - 46 AS col1
----
-2116

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT COALESCE ( + 46, ( - 30 ) / - 83 / - 16 / CAST ( + ( + ( - 81 ) ) AS INTEGER ) ) * - 46 AS col1
----
-2116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5108
SELECT CAST( NULL AS SIGNED ) * - 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5108
SELECT CAST ( NULL AS INTEGER ) * - 42 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5109
SELECT 19 - - 89 + COUNT( * ) AS col0, 69 * + - 73
----
109
-5037

skipif mysql # not compatible
query II rowsort label-5109
SELECT 19 - - 89 + COUNT ( * ) AS col0, 69 * + - 73
----
109
-5037

onlyif mysql # aggregate syntax: 
query II rowsort label-5110
SELECT ALL - 90 AS col2, - COALESCE ( + 79, - 39 + - COUNT( * ) * + + 19 ) * - 42
----
-90
3318

skipif mysql # not compatible
query II rowsort label-5110
SELECT ALL - 90 AS col2, - COALESCE ( + 79, - 39 + - COUNT ( * ) * + + 19 ) * - 42
----
-90
3318

query I rowsort
SELECT DISTINCT 6 + - 39 + - + 32 * - 48 * 70 AS col2
----
107487

query I rowsort
SELECT ALL 41 + - - 99 AS col1
----
140

query I rowsort
SELECT 15 * - 11 AS col1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT ( 37 ) + - + MIN( - - 80 )
----
-43

skipif mysql # not compatible
query I rowsort label-5114
SELECT ( 37 ) + - + MIN ( - - 80 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT ALL - MAX( ALL - 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL - MAX ( ALL - 83 ) AS col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT ALL 5 + - ( + 8 ) * - - CASE ( + - 42 ) WHEN 10 * + 48 / + 78 THEN CAST( 35 AS SIGNED ) * - 6 + CASE + 99 WHEN + 45 THEN - 23 ELSE NULL END - + + CASE + 47 WHEN - 2 THEN NULL WHEN + 66 * - + 51 + - 85 THEN NULL ELSE - + 35 END END / + - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL 5 + - ( + 8 ) * - - CASE ( + - 42 ) WHEN 10 * + 48 / + 78 THEN CAST ( 35 AS INTEGER ) * - 6 + CASE + 99 WHEN + 45 THEN - 23 ELSE NULL END - + + CASE + 47 WHEN - 2 THEN NULL WHEN + 66 * - + 51 + - 85 THEN NULL ELSE - + 35 END END / + - 15 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5117
SELECT ALL + CAST( NULL AS SIGNED ) + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL + CAST ( NULL AS INTEGER ) + - 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT ALL - - NULLIF ( COUNT( * ), + 70 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL - - NULLIF ( COUNT ( * ), + 70 ) AS col1
----
1

query I rowsort
SELECT - 73 * + 67 AS col0
----
-4891

query I rowsort
SELECT DISTINCT - - 47 col1
----
47

query I rowsort
SELECT + - NULLIF ( + 24, - 64 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT 39 + + MAX( + 57 )
----
96

skipif mysql # not compatible
query I rowsort label-5122
SELECT 39 + + MAX ( + 57 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT - 4 * COALESCE ( 61, - 81 + - MIN( DISTINCT - + 67 ) ) col0
----
-244

skipif mysql # not compatible
query I rowsort label-5123
SELECT - 4 * COALESCE ( 61, - 81 + - MIN ( DISTINCT - + 67 ) ) col0
----
-244

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT - 62 + + NULLIF ( + CASE + - 85 WHEN - + ( ( 13 ) ) + 12 THEN NULL ELSE - COUNT( * ) END, - + 61 * 89 + + 14 ) + + + 7 - + 8 * - 35 * - 75 AS col1
----
-21056

skipif mysql # not compatible
query I rowsort label-5124
SELECT - 62 + + NULLIF ( + CASE + - 85 WHEN - + ( ( 13 ) ) + 12 THEN NULL ELSE - COUNT ( * ) END, - + 61 * 89 + + 14 ) + + + 7 - + 8 * - 35 * - 75 AS col1
----
-21056

query I rowsort
SELECT ALL - 79 * - 67 AS col0
----
5293

query I rowsort
SELECT 78 + + 55 + + + 58 AS col2
----
191

query I rowsort
SELECT 54 + - 86
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL + 8 * - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL + 8 * - COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT 75 + 98 col2
----
173

onlyif mysql # DIV for integer division: 
query I rowsort label-5130
SELECT 10 DIV - - 66
----
0

skipif mysql # not compatible
query I rowsort label-5130
SELECT 10 / - - 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5131
SELECT ALL - MAX( ALL + 28 ) * - 48 * ( COUNT( * ) ) + - - 48 DIV MIN( + 81 ) + - 70 * + - 51 - - 24, CAST( - + 94 AS SIGNED ) DIV - ( - 98 ) * 64 DIV 11 + + 77 + 63 * SUM( DISTINCT + 29 ) AS col2
----
4938
1904

skipif mysql # not compatible
query II rowsort label-5131
SELECT ALL - MAX ( ALL + 28 ) * - 48 * ( COUNT ( * ) ) + - - 48 / MIN ( + 81 ) + - 70 * + - 51 - - 24, CAST ( - + 94 AS INTEGER ) / - ( - 98 ) * 64 / 11 + + 77 + 63 * SUM ( DISTINCT + 29 ) AS col2
----
4938
1904

query I rowsort
SELECT 84 + 2 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT ( ( - COUNT( * ) ) ) - + - 11
----
10

skipif mysql # not compatible
query I rowsort label-5133
SELECT ( ( - COUNT ( * ) ) ) - + - 11
----
10

query I rowsort
SELECT ALL 7 * - - 13 AS col2
----
91

query I rowsort
SELECT 94 + - 43 AS col2
----
51

query I rowsort
SELECT ALL - 81 * 73 col0
----
-5913

query I rowsort
SELECT ALL + 8 * + ( - + 57 ) AS col0
----
-456

onlyif mysql # DIV for integer division: 
query II rowsort label-5138
SELECT DISTINCT - 46 * 84 + + - 3 DIV - - 8 AS col0, - 57 * 27 AS col0
----
-3864
-1539

skipif mysql # not compatible
query II rowsort label-5138
SELECT DISTINCT - 46 * 84 + + - 3 / - - 8 AS col0, - 57 * 27 AS col0
----
-3864
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT NULLIF ( + - 94, + COUNT( ALL - 13 ) + + - 18 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-5139
SELECT NULLIF ( + - 94, + COUNT ( ALL - 13 ) + + - 18 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-5140
SELECT + 57, - 54 * + 55 * - COUNT( * ) AS col0
----
57
2970

skipif mysql # not compatible
query II rowsort label-5140
SELECT + 57, - 54 * + 55 * - COUNT ( * ) AS col0
----
57
2970

query I rowsort
SELECT + 64 + + 89
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5142
SELECT 9 * + 9 + 30 * - 11 / 62 - - 42 + - CAST( NULL AS SIGNED ) * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT 9 * + 9 + 30 * - 11 / 62 - - 42 + - CAST ( NULL AS INTEGER ) * + 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5143
SELECT CASE - ( CAST( NULL AS SIGNED ) ) WHEN + - 53 + + 28 THEN NULL ELSE MIN( ALL + 24 ) END
----
24

skipif mysql # not compatible
query I rowsort label-5143
SELECT CASE - ( CAST ( NULL AS INTEGER ) ) WHEN + - 53 + + 28 THEN NULL ELSE MIN ( ALL + 24 ) END
----
24

query II rowsort
SELECT DISTINCT + 67 col1, 24
----
67
24

query I rowsort
SELECT ALL 43 * + - ( - - 97 ) / + 64 + - CASE - - 83 WHEN + + 81 * + - 35 * + 20 + - NULLIF ( 18, + 30 / - 54 ) * - 82 + - - 25 * + ( - 68 ) THEN - 98 + + 55 + + - 5 / + ( - 57 ) WHEN AVG ( DISTINCT + - 65 ) THEN 69 * 77 * 4 END + + - 25 * - 57 + - 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT CASE + 7 WHEN - - 62 * 75 * 14 + - - 89 / - 19 + ( + - COUNT( * ) ) * + + 81 THEN 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT CASE + 7 WHEN - - 62 * 75 * 14 + - - 89 / - 19 + ( + - COUNT ( * ) ) * + + 81 THEN 61 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL - 35 * + - MAX( ALL + - 51 ) AS col1
----
-1785

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL - 35 * + - MAX ( ALL + - 51 ) AS col1
----
-1785

query I rowsort
SELECT DISTINCT + 45 * - + NULLIF ( 54, - 49 ) + + - ( - - 46 )
----
-2476

onlyif mysql # aggregate syntax: 
query II rowsort label-5149
SELECT + - COUNT( * ) col0, 46 * + 52 AS col0
----
-1
2392

skipif mysql # not compatible
query II rowsort label-5149
SELECT + - COUNT ( * ) col0, 46 * + 52 AS col0
----
-1
2392

query I rowsort
SELECT ALL + ( 21 ) col0
----
21

query I rowsort
SELECT ALL - 86 * + + 42 * + - 28
----
101136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5152
SELECT + 19 / + + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT + 19 / + + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT ALL + 10 col2, - 35 - 74 * - 19 * - 49 AS col2
----
10
-68929

onlyif mysql # aggregate syntax: 
query II rowsort label-5154
SELECT + 15 AS col2, COUNT( ALL - - 43 ) AS col2
----
15
1

skipif mysql # not compatible
query II rowsort label-5154
SELECT + 15 AS col2, COUNT ( ALL - - 43 ) AS col2
----
15
1

query I rowsort
SELECT - 6 * 20
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT DISTINCT + ( CASE MIN( ALL 12 ) WHEN + + AVG ( - 75 ) THEN NULL WHEN - COUNT( * ) THEN - 62 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT + ( CASE MIN ( ALL 12 ) WHEN + + AVG ( - 75 ) THEN NULL WHEN - COUNT ( * ) THEN - 62 ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5157
SELECT ALL + 59 DIV 75 + - + 93
----
-93

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL + 59 / 75 + - + 93
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5158
SELECT + 0, + COALESCE ( + + COUNT( * ), + 68 DIV + - COUNT( * ) + + 81, 96 ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-5158
SELECT + 0, + COALESCE ( + + COUNT ( * ), + 68 / + - COUNT ( * ) + + 81, 96 ) AS col1
----
0
1

query I rowsort
SELECT ALL - 79 * - 16 + 33 AS col2
----
1297

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5160
SELECT - + 56, + 36 * CASE - - 64 WHEN - + 47 / + + COUNT( * ) * + - NULLIF ( + 21, - COUNT( * ) * + 10 + + 21 * + ( - - 27 ) ) + - COUNT( * ) * - COUNT( ALL + CAST( NULL AS DECIMAL ) ) THEN + + AVG ( DISTINCT + - 35 ) * + 88 + + + COUNT( * ) WHEN + ( + 28 ) THEN NULL END + - COUNT( * ) AS col0
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-5160
SELECT - + 56, + 36 * CASE - - 64 WHEN - + 47 / + + COUNT ( * ) * + - NULLIF ( + 21, - COUNT ( * ) * + 10 + + 21 * + ( - - 27 ) ) + - COUNT ( * ) * - COUNT ( ALL + CAST ( NULL AS REAL ) ) THEN + + AVG ( DISTINCT + - 35 ) * + 88 + + + COUNT ( * ) WHEN + ( + 28 ) THEN NULL END + - COUNT ( * ) AS col0
----
-56
NULL

query I rowsort
SELECT - 9 * - - 39
----
-351

onlyif mysql # aggregate syntax: 
query II rowsort label-5162
SELECT - + 46, - 95 * - MIN( ALL 47 ) + + 6 AS col2
----
-46
4471

skipif mysql # not compatible
query II rowsort label-5162
SELECT - + 46, - 95 * - MIN ( ALL 47 ) + + 6 AS col2
----
-46
4471

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT ALL - - 13 * - - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL - - 13 * - - COUNT ( * )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5164
SELECT - 43 + + COUNT( * ) AS col0, CAST( NULL AS SIGNED ) / 80 + 71
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-5164
SELECT - 43 + + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) / 80 + 71
----
-42
NULL

query II rowsort
SELECT ALL ( - 79 ), + 11 * + 67 AS col2
----
-79
737

onlyif mysql # aggregate syntax: 
query II rowsort label-5166
SELECT DISTINCT MAX( + 96 ) AS col1, + 28 * - 16 + - 22 AS col1
----
96
-470

skipif mysql # not compatible
query II rowsort label-5166
SELECT DISTINCT MAX ( + 96 ) AS col1, + 28 * - 16 + - 22 AS col1
----
96
-470

query I rowsort
SELECT DISTINCT ( 73 ) AS col2
----
73

query II rowsort
SELECT DISTINCT - 40 + - 64, 27 AS col0
----
-104
27

query I rowsort
SELECT DISTINCT - 68 + + 86 AS col0
----
18

query I rowsort
SELECT - 59 * + 98 AS col0
----
-5782

query I rowsort
SELECT DISTINCT ( 4 ) AS col2
----
4

query I rowsort
SELECT - 47 - + - 87
----
40

query I rowsort
SELECT ALL ( + ( - - 61 ) ) AS col2
----
61

query I rowsort
SELECT ALL + 23 + ( + 84 ) col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT - 23 + 62 + + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-5175
SELECT - 23 + 62 + + COUNT ( * ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT + COUNT( * ) * - 8
----
-8

skipif mysql # not compatible
query I rowsort label-5176
SELECT + COUNT ( * ) * - 8
----
-8

query I rowsort
SELECT 23 * ( 78 ) + + + 28 col2
----
1822

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT + MIN( DISTINCT + 7 ) * + - 74
----
-518

skipif mysql # not compatible
query I rowsort label-5178
SELECT + MIN ( DISTINCT + 7 ) * + - 74
----
-518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT + + 69 * + - 30 * 42 + + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT + + 69 * + - 30 * 42 + + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT - COUNT( * ) * MAX( + 96 ) * - 68 * - 89 * - 45 col2
----
26144640

skipif mysql # not compatible
query I rowsort label-5180
SELECT - COUNT ( * ) * MAX ( + 96 ) * - 68 * - 89 * - 45 col2
----
26144640

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT + + NULLIF ( - - COUNT( * ), + + 98 )
----
1

skipif mysql # not compatible
query I rowsort label-5181
SELECT + + NULLIF ( - - COUNT ( * ), + + 98 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5182
SELECT ALL + SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL + SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL + CASE - + 93 WHEN + 89 THEN + + 48 END * 28 + + - COUNT( ALL + 10 ) + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL + CASE - + 93 WHEN + 89 THEN + + 48 END * 28 + + - COUNT ( ALL + 10 ) + - 8
----
NULL

query II rowsort
SELECT + + 68 * + + 42, - 37 AS col1
----
2856
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5185
SELECT ALL + CAST( + 71 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL + CAST ( + 71 AS INTEGER )
----
71

query I rowsort
SELECT DISTINCT 92 * - 42
----
-3864

query I rowsort
SELECT DISTINCT + 30 * + + 37
----
1110

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT + 80 * COALESCE ( - MAX( DISTINCT 2 ), 48 ) + - + 30
----
-190

skipif mysql # not compatible
query I rowsort label-5188
SELECT + 80 * COALESCE ( - MAX ( DISTINCT 2 ), 48 ) + - + 30
----
-190

query I rowsort
SELECT + - 91 + + 21 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT + + 16 + + 13 + + - MIN( + - 68 ) + + 28 + + 13
----
138

skipif mysql # not compatible
query I rowsort label-5190
SELECT + + 16 + + 13 + + - MIN ( + - 68 ) + + 28 + + 13
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT COUNT( 84 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5191
SELECT COUNT ( 84 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5192
SELECT - 7 DIV + - 20 + 52
----
52

skipif mysql # not compatible
query I rowsort label-5192
SELECT - 7 / + - 20 + 52
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT ALL + COUNT( * ) * + - 43 + + 30
----
-13

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL + COUNT ( * ) * + - 43 + + 30
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT - ( + + CAST( - 39 AS SIGNED ) ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5194
SELECT - ( + + CAST ( - 39 AS INTEGER ) ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT DISTINCT - 17 * COUNT( * ) + - 20 * 13 * - 61 AS col1
----
15843

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT - 17 * COUNT ( * ) + - 20 * 13 * - 61 AS col1
----
15843

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT MAX( + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-5196
SELECT MAX ( + 81 )
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-5197
SELECT + 90 + + 68 DIV 50, 8 col2
----
91
8

skipif mysql # not compatible
query II rowsort label-5197
SELECT + 90 + + 68 / 50, 8 col2
----
91
8

query I rowsort
SELECT + 7 + - - 91 + + 62 + - 97
----
63

query I rowsort
SELECT DISTINCT + 8 * 4 AS col2
----
32

query I rowsort
SELECT 19 + + 84 AS col2
----
103

query I rowsort
SELECT ALL 89 + - 88
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5202
SELECT ( - 93 ) DIV COUNT( * ) DIV - 39, 30 AS col1
----
2
30

skipif mysql # not compatible
query II rowsort label-5202
SELECT ( - 93 ) / COUNT ( * ) / - 39, 30 AS col1
----
2
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5203
SELECT CAST( NULL AS DECIMAL ) * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT CAST ( NULL AS REAL ) * - 29
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5204
SELECT DISTINCT + ( - ( + ( + 5 ) ) ) * - 66 - - SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) / + - CAST( + - 79 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT DISTINCT + ( - ( + ( + 5 ) ) ) * - 66 - - SUM ( DISTINCT - CAST ( NULL AS REAL ) ) / + - CAST ( + - 79 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 91 + - 39 * - + 50 AS col2
----
2041

query I rowsort
SELECT 54 + + - 47 AS col0
----
7

query II rowsort
SELECT ALL 9 col2, 74
----
9
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT DISTINCT + COUNT( * ) - + + 60 col1
----
-59

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT + COUNT ( * ) - + + 60 col1
----
-59

query II rowsort
SELECT ALL 64, + 5 AS col2
----
64
5

query II rowsort
SELECT 54 + - 32 * + + 87 AS col2, NULLIF ( 1, + ( + 46 ) + + - 9 ) * + - 13
----
-2730
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT ( + - 31 ) * + + 90 / - ( - + 41 ) * CASE COUNT( * ) WHEN - + 37 THEN + 39 END + - 31 + 45 / + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT ( + - 31 ) * + + 90 / - ( - + 41 ) * CASE COUNT ( * ) WHEN - + 37 THEN + 39 END + - 31 + 45 / + - 58
----
NULL

query I rowsort
SELECT 63 + - 6 * - 80
----
543

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT DISTINCT - NULLIF ( + MAX( + - 16 ), 3 )
----
16

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT - NULLIF ( + MAX ( + - 16 ), 3 )
----
16

query I rowsort
SELECT 4 * + 76 AS col0
----
304

query I rowsort
SELECT ALL - 3 * 63 AS col2
----
-189

query I rowsort
SELECT 83 * - 44 col1
----
-3652

query I rowsort
SELECT DISTINCT - NULLIF ( + + CASE - 2 WHEN + - ( + 52 ) THEN NULL WHEN - AVG ( DISTINCT 75 ) THEN - 96 * + AVG ( + 62 ) + + 62 * ( - 51 ) + COALESCE ( 86, - 42 ) ELSE NULL END, 65 )
----
NULL

query I rowsort
SELECT DISTINCT + + 84 * + 17 AS col2
----
1428

query I rowsort
SELECT 60 + + 60
----
120

query I rowsort
SELECT DISTINCT - 1 * + 92 + + ( - 41 ) col1
----
-133

onlyif mysql # DIV for integer division: 
query I rowsort label-5221
SELECT 63 DIV - - 83
----
0

skipif mysql # not compatible
query I rowsort label-5221
SELECT 63 / - - 83
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT - 17 * - 98 + - CAST( NULL AS SIGNED ) * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5222
SELECT - 17 * - 98 + - CAST ( NULL AS INTEGER ) * + 2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5223
SELECT - + 14 * CASE NULLIF ( + ( 55 ), - + 47 ) WHEN - 84 + - NULLIF ( - CASE - + 50 WHEN COALESCE ( - 30, 53 + - ( - 19 ) * - + CAST( + 9 AS SIGNED ) * + - CASE + NULLIF ( - 64, + 86 ) WHEN 95 THEN - - 31 + 24 - + AVG ( ALL 47 ) * + 27 ELSE NULL END ) THEN NULL WHEN + + 88 THEN 84 * 82 + - 35 + - - 89 + + 0 ELSE NULL END, + - 11 ) * + COUNT( * ) / + 97 + + - 54 - - NULLIF ( - 36, + SUM( 10 ) ) THEN 85 WHEN COUNT( * ) THEN NULL WHEN 37 THEN 82 ELSE - MAX( ALL ( + 44 ) ) END / + CAST( NULL AS SIGNED ) - COUNT( * ) / - 99 + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT - + 14 * CASE NULLIF ( + ( 55 ), - + 47 ) WHEN - 84 + - NULLIF ( - CASE - + 50 WHEN COALESCE ( - 30, 53 + - ( - 19 ) * - + CAST ( + 9 AS INTEGER ) * + - CASE + NULLIF ( - 64, + 86 ) WHEN 95 THEN - - 31 + 24 - + AVG ( ALL 47 ) * + 27 ELSE NULL END ) THEN NULL WHEN + + 88 THEN 84 * 82 + - 35 + - - 89 + + 0 ELSE NULL END, + - 11 ) * + COUNT ( * ) / + 97 + + - 54 - - NULLIF ( - 36, + SUM ( 10 ) ) THEN 85 WHEN COUNT ( * ) THEN NULL WHEN 37 THEN 82 ELSE - MAX ( ALL ( + 44 ) ) END / + CAST ( NULL AS INTEGER ) - COUNT ( * ) / - 99 + 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5224
SELECT - CAST( - 68 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-5224
SELECT - CAST ( - 68 AS INTEGER )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT 29 + COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5225
SELECT 29 + COUNT ( * ) AS col2
----
30

query I rowsort
SELECT DISTINCT - 49 + + 81 * - + 9
----
-778

onlyif mysql # DIV for integer division: 
query II rowsort label-5227
SELECT ALL + 90 + - 68 + - + 31 AS col0, 72 DIV + - 67
----
-9
-1

skipif mysql # not compatible
query II rowsort label-5227
SELECT ALL + 90 + - 68 + - + 31 AS col0, 72 / + - 67
----
-9
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL - - 42 + + MAX( ALL + ( - - 59 ) ) AS col0
----
101

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL - - 42 + + MAX ( ALL + ( - - 59 ) ) AS col0
----
101

query I rowsort
SELECT DISTINCT + 67 + 87
----
154

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5230
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL ( - CAST ( NULL AS REAL ) ) + + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT COALESCE ( + 5, - 75 + + 68, COUNT( * ), - 66 + + ( ( + 95 ) ) * + - 12 ) * - ( + - 6 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5231
SELECT COALESCE ( + 5, - 75 + + 68, COUNT ( * ), - 66 + + ( ( + 95 ) ) * + - 12 ) * - ( + - 6 ) AS col2
----
30

query II rowsort
SELECT ALL CASE 17 WHEN 1 * 77 + - 44 THEN + 99 ELSE NULL END + 80 col1, - 74
----
NULL
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT 0 - - - 68 * + 90 * - COUNT( * ) * + 25
----
153000

skipif mysql # not compatible
query I rowsort label-5233
SELECT 0 - - - 68 * + 90 * - COUNT ( * ) * + 25
----
153000

query I rowsort
SELECT NULLIF ( - - 8, 61 + + + 78 ) * CASE - + 98 WHEN - 54 THEN NULL ELSE - + 84 END + + - 75
----
-747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5235
SELECT CAST( NULL AS SIGNED ) * - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5235
SELECT CAST ( NULL AS INTEGER ) * - 35 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5236
SELECT ALL ( - 72 ) - + CAST( NULL AS DECIMAL ) / 56 * + CAST( + CASE - CASE + NULLIF ( COUNT( * ), CASE - MAX( DISTINCT - 99 ) WHEN - 65 THEN + 77 + + + ( + 10 ) + 55 ELSE NULL END ) WHEN + + 51 - - + SUM( + - 11 ) THEN + 40 END WHEN - 94 THEN CASE - 91 WHEN + 35 THEN NULL ELSE + MIN( DISTINCT + COALESCE ( 9, - 41 ) ) END / - + CAST( + 65 AS DECIMAL ) END AS SIGNED ) * + ( 86 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL ( - 72 ) - + CAST ( NULL AS REAL ) / 56 * + CAST ( + CASE - CASE + NULLIF ( COUNT ( * ), CASE - MAX ( DISTINCT - 99 ) WHEN - 65 THEN + 77 + + + ( + 10 ) + 55 ELSE NULL END ) WHEN + + 51 - - + SUM ( + - 11 ) THEN + 40 END WHEN - 94 THEN CASE - 91 WHEN + 35 THEN NULL ELSE + MIN ( DISTINCT + COALESCE ( 9, - 41 ) ) END / - + CAST ( + 65 AS REAL ) END AS INTEGER ) * + ( 86 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5237
SELECT DISTINCT - 78 DIV - + 4 AS col0, 28
----
19
28

skipif mysql # not compatible
query II rowsort label-5237
SELECT DISTINCT - 78 / - + 4 AS col0, 28
----
19
28

query I rowsort
SELECT ALL - 60 * - 6
----
360

query I rowsort
SELECT DISTINCT + 5 - - 26
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT 25 * + MIN( ALL - 34 )
----
-850

skipif mysql # not compatible
query I rowsort label-5240
SELECT 25 * + MIN ( ALL - 34 )
----
-850

query I rowsort
SELECT 73 * 54
----
3942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5242
SELECT ALL 28 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL 28 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5243
SELECT 79 DIV + 97 * + 96
----
0

skipif mysql # not compatible
query I rowsort label-5243
SELECT 79 / + 97 * + 96
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5244
SELECT ALL + 7 * - COUNT( * ) + + 62 + + 19 + + 91 * CAST( + - 23 AS SIGNED ) * + 66
----
-138064

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL + 7 * - COUNT ( * ) + + 62 + + 19 + + 91 * CAST ( + - 23 AS INTEGER ) * + 66
----
-138064

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL 68 * + + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL 68 * + + COUNT ( * )
----
68

query II rowsort
SELECT ALL 95 * 93 - - 45 * + ( 2 ) + 8 + - 70 AS col2, - 7
----
8863
-7

query I rowsort
SELECT + - NULLIF ( + 74, + 29 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT - COUNT( * ) + - 89 + + - 91 col0
----
-181

skipif mysql # not compatible
query I rowsort label-5248
SELECT - COUNT ( * ) + - 89 + + - 91 col0
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL - CASE + CASE 76 WHEN 24 THEN 10 ELSE NULL END WHEN - 75 + - 98 + + SUM( ALL + 82 ) THEN + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL - CASE + CASE 76 WHEN 24 THEN 10 ELSE NULL END WHEN - 75 + - 98 + + SUM ( ALL + 82 ) THEN + 99 END
----
NULL

query I rowsort
SELECT + 62 * + - 82 * + 61 AS col0
----
-310124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5251
SELECT 8 * - 71 + + COUNT( * ) + - 50 DIV + 55 * 96 DIV 29 + - COUNT( * )
----
-568

skipif mysql # not compatible
query I rowsort label-5251
SELECT 8 * - 71 + + COUNT ( * ) + - 50 / + 55 * 96 / 29 + - COUNT ( * )
----
-568

query I rowsort
SELECT - NULLIF ( + 80, 96 * + NULLIF ( + 50, - 41 / + + 63 + - + 78 / 53 ) * - 37 )
----
-80

query I rowsort
SELECT DISTINCT + + 84 * + 21 + 51 AS col2
----
1815

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT + + MIN( ALL 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5254
SELECT + + MIN ( ALL 92 ) AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5255
SELECT ALL - 70 * 73 DIV + 88 + - 83
----
-141

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL - 70 * 73 / + 88 + - 83
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5256
SELECT - - 59 / - ( 23 ) * - 65 + + COALESCE ( + 24, - 78 ) / - - CASE - - 6 WHEN + 70 THEN + - 51 / + MAX( + CAST( 33 AS SIGNED ) ) + + - 17 WHEN - 68 * - 71 * + - 84 * - COUNT( - 5 ) - - ( - 70 ) THEN NULL END * 46 - + + 3 * - + COUNT( * ) + - - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5256
SELECT - - 59 / - ( 23 ) * - 65 + + COALESCE ( + 24, - 78 ) / - - CASE - - 6 WHEN + 70 THEN + - 51 / + MAX ( + CAST ( 33 AS INTEGER ) ) + + - 17 WHEN - 68 * - 71 * + - 84 * - COUNT ( - 5 ) - - ( - 70 ) THEN NULL END * 46 - + + 3 * - + COUNT ( * ) + - - 82
----
NULL

query I rowsort
SELECT - 72 + + + 4
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5258
SELECT - 31 * + CAST( 78 AS SIGNED )
----
-2418

skipif mysql # not compatible
query I rowsort label-5258
SELECT - 31 * + CAST ( 78 AS INTEGER )
----
-2418

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT ALL + MIN( DISTINCT + - 62 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL + MIN ( DISTINCT + - 62 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT - 48 + COUNT( DISTINCT 44 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5260
SELECT - 48 + COUNT ( DISTINCT 44 ) AS col1
----
-47

query I rowsort
SELECT + 54 - - 0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT - MIN( 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-5262
SELECT - MIN ( 96 ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT - 15 * - + MIN( + 36 ) + + COUNT( * )
----
541

skipif mysql # not compatible
query I rowsort label-5263
SELECT - 15 * - + MIN ( + 36 ) + + COUNT ( * )
----
541

query I rowsort
SELECT + COALESCE ( - 8, 79 ) - + 47 AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5265
SELECT ALL COALESCE ( 88, + - CAST( NULL AS SIGNED ) DIV 17 DIV 76 + 76 * - COALESCE ( - COUNT( * ), 7 * - - 16 ), + 12 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL COALESCE ( 88, + - CAST ( NULL AS INTEGER ) / 17 / 76 + 76 * - COALESCE ( - COUNT ( * ), 7 * - - 16 ), + 12 ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT ALL 88 * + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL 88 * + COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT ALL CASE - - COUNT( DISTINCT - 19 ) WHEN COUNT( * ) THEN - ( - 61 ) ELSE + - 93 - + 48 + 42 END AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL CASE - - COUNT ( DISTINCT - 19 ) WHEN COUNT ( * ) THEN - ( - 61 ) ELSE + - 93 - + 48 + 42 END AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT ALL CASE - 85 WHEN + - COUNT( * ) THEN NULL ELSE + 87 END
----
87

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL CASE - 85 WHEN + - COUNT ( * ) THEN NULL ELSE + 87 END
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT + COUNT( DISTINCT - 16 ) + + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-5269
SELECT + COUNT ( DISTINCT - 16 ) + + COUNT ( * ) col0
----
2

query I rowsort
SELECT + 47 + 12 AS col0
----
59

query I rowsort
SELECT - 58 * - 65 * - - 18 col0
----
67860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5272
SELECT + COALESCE ( - 69, 57 DIV - ( + ( 69 ) ) + 24 + COUNT( DISTINCT + 39 ) + 16 + - 49 ) + - MAX( DISTINCT + + 5 )
----
-74

skipif mysql # not compatible
query I rowsort label-5272
SELECT + COALESCE ( - 69, 57 / - ( + ( 69 ) ) + 24 + COUNT ( DISTINCT + 39 ) + 16 + - 49 ) + - MAX ( DISTINCT + + 5 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT - MIN( - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-5273
SELECT - MIN ( - 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT - MIN( DISTINCT 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-5274
SELECT - MIN ( DISTINCT 78 )
----
-78

query I rowsort
SELECT ALL + 45 + + - 58 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT DISTINCT 84 + - NULLIF ( + 67, + COALESCE ( COUNT( * ), + - ( + ( - 13 ) ) / + 12, + COUNT( * ) ) ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT 84 + - NULLIF ( + 67, + COALESCE ( COUNT ( * ), + - ( + ( - 13 ) ) / + 12, + COUNT ( * ) ) ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5277
SELECT + COUNT( * ) * - + 10 * 46 AS col0, 77 + - COUNT( * ) AS col0
----
-460
76

skipif mysql # not compatible
query II rowsort label-5277
SELECT + COUNT ( * ) * - + 10 * 46 AS col0, 77 + - COUNT ( * ) AS col0
----
-460
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5278
SELECT ALL - 56 DIV + 67 + - 23 + + 8
----
-15

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL - 56 / + 67 + - 23 + + 8
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5279
SELECT + AVG ( + 76 ) + + 8 / + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5279
SELECT + AVG ( + 76 ) + + 8 / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 93 * - 20 AS col0
----
-1860

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT + COUNT( * ) * - 3 + - 89 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-5281
SELECT + COUNT ( * ) * - 3 + - 89 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT - - NULLIF ( - 35, - 63 - + ( - + COUNT( * ) ) ) - + SUM( DISTINCT + 2 ) * - 35 * 52
----
3605

skipif mysql # not compatible
query I rowsort label-5282
SELECT - - NULLIF ( - 35, - 63 - + ( - + COUNT ( * ) ) ) - + SUM ( DISTINCT + 2 ) * - 35 * 52
----
3605

query II rowsort
SELECT DISTINCT + 43 AS col1, - 60 + + 88 AS col1
----
43
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT ALL - + COUNT( * ) * + 21 + + 74 * + + COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL - + COUNT ( * ) * + 21 + + 74 * + + COUNT ( * ) AS col0
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5285
SELECT - - 63 + - 88 * + 91 * - 67 * - - 96 + 84 + - 75 DIV + COALESCE ( COUNT( * ), - + 41 * 10 - 92, - COUNT( * ) + - + 21 ) AS col2
----
51507528

skipif mysql # not compatible
query I rowsort label-5285
SELECT - - 63 + - 88 * + 91 * - 67 * - - 96 + 84 + - 75 / + COALESCE ( COUNT ( * ), - + 41 * 10 - 92, - COUNT ( * ) + - + 21 ) AS col2
----
51507528

query I rowsort
SELECT DISTINCT - 40 * + 78 + - + 27 + NULLIF ( 37, - + 74 )
----
-3110

query II rowsort
SELECT ALL + + 9 AS col0, 90 AS col0
----
9
90

query I rowsort
SELECT - + 30 * + + ( - 39 )
----
1170

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5289
SELECT DISTINCT + - 27 AS col1, SUM( DISTINCT + 71 ) * 29 DIV + ( + 11 )
----
-27
187

skipif mysql # not compatible
query II rowsort label-5289
SELECT DISTINCT + - 27 AS col1, SUM ( DISTINCT + 71 ) * 29 / + ( + 11 )
----
-27
187

onlyif mysql # aggregate syntax: 
query II rowsort label-5290
SELECT + 74, 20 + COUNT( * ) AS col2
----
74
21

skipif mysql # not compatible
query II rowsort label-5290
SELECT + 74, 20 + COUNT ( * ) AS col2
----
74
21

query I rowsort
SELECT DISTINCT + 32 * 59 - + - 87 col2
----
1975

onlyif mysql # aggregate syntax: 
query II rowsort label-5292
SELECT ALL + COUNT( * ) AS col2, + SUM( DISTINCT + + 61 ) col1
----
1
61

skipif mysql # not compatible
query II rowsort label-5292
SELECT ALL + COUNT ( * ) AS col2, + SUM ( DISTINCT + + 61 ) col1
----
1
61

query I rowsort
SELECT ALL - 87 * - 62 AS col2
----
5394

onlyif mysql # aggregate syntax: 
query II rowsort label-5294
SELECT ALL CASE - 16 WHEN - 54 THEN - 85 ELSE NULL END AS col0, MAX( + + COALESCE ( + 22, - 60 ) ) col1
----
NULL
22

skipif mysql # not compatible
query II rowsort label-5294
SELECT ALL CASE - 16 WHEN - 54 THEN - 85 ELSE NULL END AS col0, MAX ( + + COALESCE ( + 22, - 60 ) ) col1
----
NULL
22

query I rowsort
SELECT DISTINCT - 78 * 34 col2
----
-2652

onlyif mysql # aggregate syntax: 
query II rowsort label-5296
SELECT DISTINCT ( + 16 ) AS col0, COUNT( * )
----
16
1

skipif mysql # not compatible
query II rowsort label-5296
SELECT DISTINCT ( + 16 ) AS col0, COUNT ( * )
----
16
1

query I rowsort
SELECT - 29 * 62 - + CASE + 0 WHEN + 37 THEN 4 / - - 92 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5298
SELECT - COUNT( - + COALESCE ( 53, + - CAST( NULL AS SIGNED ), + 56 ) ) DIV + COUNT( DISTINCT 87 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5298
SELECT - COUNT ( - + COALESCE ( 53, + - CAST ( NULL AS INTEGER ), + 56 ) ) / + COUNT ( DISTINCT 87 ) col0
----
-1

query I rowsort
SELECT - 35 - + 20 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT - COALESCE ( + 49, + + 73 * - + 60 * NULLIF ( - ( + MAX( - 96 ) ), + 53 ), - 73 * - 35 )
----
-49

skipif mysql # not compatible
query I rowsort label-5300
SELECT - COALESCE ( + 49, + + 73 * - + 60 * NULLIF ( - ( + MAX ( - 96 ) ), + 53 ), - 73 * - 35 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5301
SELECT ALL CAST( NULL AS SIGNED ) col1, ( + 87 )
----
NULL
87

skipif mysql # not compatible
query II rowsort label-5301
SELECT ALL CAST ( NULL AS INTEGER ) col1, ( + 87 )
----
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT - COUNT( * ) * - 73 * + 61 * + + SUM( + 7 )
----
31171

skipif mysql # not compatible
query I rowsort label-5302
SELECT - COUNT ( * ) * - 73 * + 61 * + + SUM ( + 7 )
----
31171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5303
SELECT ALL ( - CASE - + COALESCE ( 32, 8 * - + 79 ) WHEN - - COALESCE ( - 76, - 21 + + 64 ) THEN MIN( ALL + + 64 ) WHEN - 54 THEN NULL WHEN - 26 * 59 + + 50 * + 10 + - ( - 55 ) * - CAST( NULL AS SIGNED ) + + + 82 THEN NULL END ) AS col0, + 69
----
NULL
69

skipif mysql # not compatible
query II rowsort label-5303
SELECT ALL ( - CASE - + COALESCE ( 32, 8 * - + 79 ) WHEN - - COALESCE ( - 76, - 21 + + 64 ) THEN MIN ( ALL + + 64 ) WHEN - 54 THEN NULL WHEN - 26 * 59 + + 50 * + 10 + - ( - 55 ) * - CAST ( NULL AS INTEGER ) + + + 82 THEN NULL END ) AS col0, + 69
----
NULL
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5304
SELECT - COUNT( * ) AS col1, 44
----
-1
44

skipif mysql # not compatible
query II rowsort label-5304
SELECT - COUNT ( * ) AS col1, 44
----
-1
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5305
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - CAST( NULL AS SIGNED ) * 40 - + 99 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5305
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) * 40 - + 99 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5306
SELECT DISTINCT - + COUNT( * ) + - + 50 AS col1, + 16
----
-51
16

skipif mysql # not compatible
query II rowsort label-5306
SELECT DISTINCT - + COUNT ( * ) + - + 50 AS col1, + 16
----
-51
16

query I rowsort
SELECT + 17 * - 3 + + 93
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5308
SELECT DISTINCT - COALESCE ( 68, + 18 + - - COUNT( * ) + 87 + 71 * 10, + 50 * - 48 + - 15 ) + + 16 - 61 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT - COALESCE ( 68, + 18 + - - COUNT ( * ) + 87 + 71 * 10, + 50 * - 48 + - 15 ) + + 16 - 61 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5309
SELECT - COUNT( * ), 76 AS col1
----
-1
76

skipif mysql # not compatible
query II rowsort label-5309
SELECT - COUNT ( * ), 76 AS col1
----
-1
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5310
SELECT + + CAST( COUNT( * ) AS SIGNED ) DIV - + 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5310
SELECT + + CAST ( COUNT ( * ) AS INTEGER ) / - + 11 AS col0
----
0

query I rowsort
SELECT + 88 + + 19 - - 34 AS col1
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5312
SELECT ALL + + NULLIF ( - 33, - 10 - - - CAST( - MIN( DISTINCT - 59 ) AS SIGNED ) ) + + 65 col0
----
32

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL + + NULLIF ( - 33, - 10 - - - CAST ( - MIN ( DISTINCT - 59 ) AS INTEGER ) ) + + 65 col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT DISTINCT - 8 DIV - ( 23 ) + - 94 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT - 8 / - ( 23 ) + - 94 AS col2
----
-94

query I rowsort
SELECT + + CASE 48 WHEN + + 80 THEN NULL WHEN 60 THEN - + 32 / - + 69 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT ALL + COALESCE ( - 87, + SUM( - 14 ) * + - 40 * - + 27 + - - 30 ) + ( + - SUM( - 92 ) )
----
5

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL + COALESCE ( - 87, + SUM ( - 14 ) * + - 40 * - + 27 + - - 30 ) + ( + - SUM ( - 92 ) )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5316
SELECT DISTINCT 59 DIV + 52
----
1

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT 59 / + 52
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5317
SELECT DISTINCT - 89 col0, + CAST( NULL AS SIGNED ) / - 43 AS col1
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-5317
SELECT DISTINCT - 89 col0, + CAST ( NULL AS INTEGER ) / - 43 AS col1
----
-89
NULL

query I rowsort
SELECT DISTINCT 2 - - - 80 + - + 19 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT - CASE 45 WHEN - - ( + COUNT( * ) ) THEN - 6 * - COUNT( * ) ELSE + COALESCE ( - 35, + + 22 ) + - 61 END * + 24 AS col2
----
2304

skipif mysql # not compatible
query I rowsort label-5319
SELECT - CASE 45 WHEN - - ( + COUNT ( * ) ) THEN - 6 * - COUNT ( * ) ELSE + COALESCE ( - 35, + + 22 ) + - 61 END * + 24 AS col2
----
2304

query I rowsort
SELECT ALL 21 - + - 31 * - + 76 * + 62 * + - 32
----
4674325

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5321
SELECT - NULLIF ( COUNT( * ), 54 + 49 * - 51 * + 39 ) * ( - + ( - COUNT( * ) ) ) * - 99 + - 2 - + 57 AS col2, 61 * 15 DIV 64
----
40
14

skipif mysql # not compatible
query II rowsort label-5321
SELECT - NULLIF ( COUNT ( * ), 54 + 49 * - 51 * + 39 ) * ( - + ( - COUNT ( * ) ) ) * - 99 + - 2 - + 57 AS col2, 61 * 15 / 64
----
40
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5322
SELECT NULLIF ( + + 75, + 70 * + 55 ) DIV - 92 col0
----
0

skipif mysql # not compatible
query I rowsort label-5322
SELECT NULLIF ( + + 75, + 70 * + 55 ) / - 92 col0
----
0

query I rowsort
SELECT ALL ( - 36 ) * - - 50
----
-1800

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT DISTINCT - MIN( - + 85 ) AS col1, + 53
----
85
53

skipif mysql # not compatible
query II rowsort label-5324
SELECT DISTINCT - MIN ( - + 85 ) AS col1, + 53
----
85
53

query I rowsort
SELECT 35 - - 38 + - 90 - 64
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT DISTINCT 24 * - COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT 24 * - COUNT ( * ) AS col0
----
-24

query II rowsort
SELECT DISTINCT - ( + + 2 ), 30 * 31 + - + 10 col2
----
-2
920

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT COUNT( * ) * + COUNT( ALL - 98 )
----
1

skipif mysql # not compatible
query I rowsort label-5328
SELECT COUNT ( * ) * + COUNT ( ALL - 98 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5329
SELECT CAST( NULL AS DECIMAL ) + - 15 + + + CAST( NULL AS SIGNED ) * - 11 * + - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5329
SELECT CAST ( NULL AS REAL ) + - 15 + + + CAST ( NULL AS INTEGER ) * - 11 * + - 8 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5330
SELECT COUNT( * ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT COUNT ( * ) * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 62 * - 82 * - 61 * - 5 + 56 AS col1
----
1550676

onlyif mysql # DIV for integer division: 
query I rowsort label-5332
SELECT ALL + 56 DIV - - 24 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL + 56 / - - 24 AS col2
----
2

query I rowsort
SELECT 63 + - + 28
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5334
SELECT ALL 11 DIV - - 29
----
0

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL 11 / - - 29
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5335
SELECT ALL - 2 + + + 87 + - 90 DIV 15 * 78
----
-383

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL - 2 + + + 87 + - 90 / 15 * 78
----
-383

query I rowsort
SELECT 79 + + 84 AS col2
----
163

query I rowsort
SELECT ALL + 39 + + - 46
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5338
SELECT + CASE + 54 WHEN - 27 * + 55 / - ( CAST( + 92 AS SIGNED ) ) - 49 THEN NULL WHEN - 25 * + 91 + + COUNT( ALL - 28 ) * - 84 THEN + 36 + 62 + - + ( ( - CAST( + 46 AS DECIMAL ) ) ) / + CAST( + 33 AS SIGNED ) ELSE + CAST( + + 92 AS SIGNED ) / - - CAST( NULL AS SIGNED ) + - + MAX( DISTINCT - 29 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT + CASE + 54 WHEN - 27 * + 55 / - ( CAST ( + 92 AS INTEGER ) ) - 49 THEN NULL WHEN - 25 * + 91 + + COUNT ( ALL - 28 ) * - 84 THEN + 36 + 62 + - + ( ( - CAST ( + 46 AS REAL ) ) ) / + CAST ( + 33 AS INTEGER ) ELSE + CAST ( + + 92 AS INTEGER ) / - - CAST ( NULL AS INTEGER ) + - + MAX ( DISTINCT - 29 ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ALL - COUNT( + 67 ) + - 6 * 50 col2
----
-301

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL - COUNT ( + 67 ) + - 6 * 50 col2
----
-301

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL + COUNT( DISTINCT + - 51 )
----
1

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL + COUNT ( DISTINCT + - 51 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT ( - + 67 ) * + + SUM( DISTINCT - 19 )
----
1273

skipif mysql # not compatible
query I rowsort label-5341
SELECT ( - + 67 ) * + + SUM ( DISTINCT - 19 )
----
1273

query II rowsort
SELECT - ( + 74 ), 98 AS col2
----
-74
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT DISTINCT + 82 + - COUNT( - + 18 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT + 82 + - COUNT ( - + 18 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5344
SELECT + MAX( DISTINCT - 55 ), COUNT( * ) AS col0
----
-55
1

skipif mysql # not compatible
query II rowsort label-5344
SELECT + MAX ( DISTINCT - 55 ), COUNT ( * ) AS col0
----
-55
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5345
SELECT ALL + 43 + + + COUNT( * ) AS col0, - 43 AS col1
----
44
-43

skipif mysql # not compatible
query II rowsort label-5345
SELECT ALL + 43 + + + COUNT ( * ) AS col0, - 43 AS col1
----
44
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT - ( - - 48 ) * - COUNT( * ) * + 31 + + 0 - - ( 48 ) AS col1
----
1536

skipif mysql # not compatible
query I rowsort label-5346
SELECT - ( - - 48 ) * - COUNT ( * ) * + 31 + + 0 - - ( 48 ) AS col1
----
1536

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT ALL ( - MAX( ALL - 91 ) ) * 24 AS col1
----
2184

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL ( - MAX ( ALL - 91 ) ) * 24 AS col1
----
2184

query I rowsort
SELECT + 17 + - + ( + 47 ) * 66 AS col2
----
-3085

query I rowsort
SELECT ALL + - 20 - + 74 * + - 45
----
3310

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT + ( + COUNT( * ) ) * + - 2 - - MIN( - ( + - NULLIF ( 76, + 88 + + 25 - 62 ) ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-5350
SELECT + ( + COUNT ( * ) ) * + - 2 - - MIN ( - ( + - NULLIF ( 76, + 88 + + 25 - 62 ) ) ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT + 83 + 22 / - + 88 * - - CASE - SUM( DISTINCT + 97 ) WHEN - 50 THEN NULL WHEN + - 62 THEN - NULLIF ( + 94, 40 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5351
SELECT + 83 + 22 / - + 88 * - - CASE - SUM ( DISTINCT + 97 ) WHEN - 50 THEN NULL WHEN + - 62 THEN - NULLIF ( + 94, 40 ) END
----
NULL

query I rowsort
SELECT 27 * + 66 - ( + 25 )
----
1757

query I rowsort
SELECT ALL - NULLIF ( 38, - 96 * - 99 * 48 + - 98 )
----
-38

query I rowsort
SELECT + 99 * 53 + - 88 - + 50 AS col0
----
5109

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL + - COUNT( * ) - + - 78
----
77

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL + - COUNT ( * ) - + - 78
----
77

query I rowsort
SELECT DISTINCT - ( + + 76 ) AS col1
----
-76

query II rowsort
SELECT ALL - 73 AS col2, + 99 * - 83 AS col0
----
-73
-8217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5358
SELECT DISTINCT - CAST( + 49 AS SIGNED ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT - CAST ( + 49 AS INTEGER ) AS col0
----
-49

query I rowsort
SELECT ALL 66 * 68 * NULLIF ( + 8, + + 17 ) * + 27 * + + ( 54 ) AS col0
----
52348032

query I rowsort
SELECT ( - 50 ) + + + 91
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT COUNT( * ) * - SUM( + 18 ) + + COUNT( DISTINCT 28 ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-5361
SELECT COUNT ( * ) * - SUM ( + 18 ) + + COUNT ( DISTINCT 28 ) col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-5362
SELECT + 40, COALESCE ( SUM( DISTINCT + 48 ), + 16 + + 41 + 31 + + 45 ) AS col0
----
40
48

skipif mysql # not compatible
query II rowsort label-5362
SELECT + 40, COALESCE ( SUM ( DISTINCT + 48 ), + 16 + + 41 + 31 + + 45 ) AS col0
----
40
48

query I rowsort
SELECT ALL 30 + + - 60
----
-30

query I rowsort
SELECT ( + 21 ) * 3 AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5365
SELECT + 2 * - - 82 + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT + 2 * - - 82 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 6 + - + 80 * - 22 * + - 29 AS col1
----
-51034

query I rowsort
SELECT DISTINCT 65 + 79
----
144

query I rowsort
SELECT DISTINCT 76 * + 40
----
3040

query I rowsort
SELECT ALL 99 + + - 17 + - + 47 + 71 + - 70 AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5370
SELECT DISTINCT - 37 AS col0, 75 / + ( - ( + CAST( NULL AS SIGNED ) ) ) + + 39, + + NULLIF ( + - 89, - - 36 + COUNT( * ) + + 24 ) AS col1
----
-37
NULL
-89

skipif mysql # not compatible
query III rowsort label-5370
SELECT DISTINCT - 37 AS col0, 75 / + ( - ( + CAST ( NULL AS INTEGER ) ) ) + + 39, + + NULLIF ( + - 89, - - 36 + COUNT ( * ) + + 24 ) AS col1
----
-37
NULL
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT ALL 70 + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL 70 + COUNT ( * ) AS col2
----
71

query I rowsort
SELECT DISTINCT 29 + - 35 AS col1
----
-6

query IIII rowsort
SELECT - 14 AS col1, 81 + - 73 + - + 55 col1, - 88 - - 67 AS col2, - 30 + 85
----
-14
-47
-21
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL 64 + + 77 * - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL 64 + + 77 * - COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL - COUNT( * ) + 77 + - - 76 AS col1
----
152

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL - COUNT ( * ) + 77 + - - 76 AS col1
----
152

query I rowsort
SELECT 98 - + - 54 AS col0
----
152

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5377
SELECT + MIN( DISTINCT + + NULLIF ( - 98, 77 * - 54 / + - 32 + + - 88 ) ) / - - CAST( NULL AS DECIMAL ) * 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT + MIN ( DISTINCT + + NULLIF ( - 98, 77 * - 54 / + - 32 + + - 88 ) ) / - - CAST ( NULL AS REAL ) * 9 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5378
SELECT ALL CAST( NULL AS SIGNED ) - - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL CAST ( NULL AS INTEGER ) - - 80 AS col0
----
NULL

query II rowsort
SELECT - + 21 AS col0, + 78 AS col0
----
-21
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT DISTINCT - NULLIF ( - 11, 83 * - 67 / - ( + - 73 ) * - - 61 * - - 32 - - - 57 + 19 * 93 + MAX( + 26 ) ) - + 89 + + 36 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT - NULLIF ( - 11, 83 * - 67 / - ( + - 73 ) * - - 61 * - - 32 - - - 57 + 19 * 93 + MAX ( + 26 ) ) - + 89 + + 36 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT DISTINCT + - COALESCE ( + + COUNT( * ), + 99 ) * - 98 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT + - COALESCE ( + + COUNT ( * ), + 99 ) * - 98 AS col1
----
98

query I rowsort
SELECT ALL - + 68 - 22 AS col0
----
-90

query I rowsort
SELECT - + ( + 79 ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT COUNT( 36 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5384
SELECT COUNT ( 36 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5385
SELECT - - 31 DIV + CAST( 6 AS SIGNED ) - - 11
----
16

skipif mysql # not compatible
query I rowsort label-5385
SELECT - - 31 / + CAST ( 6 AS INTEGER ) - - 11
----
16

query I rowsort
SELECT - - 26 * - 43 + + 63 * - + 84
----
-6410

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT - + ( + + COUNT( * ) ) + - - 87
----
86

skipif mysql # not compatible
query I rowsort label-5387
SELECT - + ( + + COUNT ( * ) ) + - - 87
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5388
SELECT DISTINCT - 87 DIV 52
----
-1

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT - 87 / 52
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT - - COUNT( DISTINCT - - 80 ) + - 88 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-5389
SELECT - - COUNT ( DISTINCT - - 80 ) + - 88 AS col1
----
-87

query II rowsort
SELECT ALL + 82 col2, 6 + - 43 + - 10
----
82
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5391
SELECT DISTINCT + CASE - CAST( NULL AS SIGNED ) WHEN + - CAST( NULL AS SIGNED ) THEN - + 92 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT + CASE - CAST ( NULL AS INTEGER ) WHEN + - CAST ( NULL AS INTEGER ) THEN - + 92 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5392
SELECT - 42 * 43 DIV - 17 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-5392
SELECT - 42 * 43 / - 17 AS col2
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-5393
SELECT + NULLIF ( + + 15, + 35 ) * - 11 + 92 DIV - 78 AS col1
----
-166

skipif mysql # not compatible
query I rowsort label-5393
SELECT + NULLIF ( + + 15, + 35 ) * - 11 + 92 / - 78 AS col1
----
-166

query I rowsort
SELECT - 11 * - 38 * - - ( + ( + - 95 ) ) - 69
----
-39779

query I rowsort
SELECT DISTINCT + 56 * + ( + - ( 48 ) )
----
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT ALL 5 * + 73 * 80 + COUNT( + - 50 ) * - 56
----
29144

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL 5 * + 73 * 80 + COUNT ( + - 50 ) * - 56
----
29144

onlyif mysql # aggregate syntax: 
query III rowsort label-5397
SELECT 65 * 29 * + 33 * ( COUNT( * ) ) * + + 87 + - COUNT( * ), CASE - COUNT( - - 68 ) WHEN + 98 + COUNT( * ) * + 64 + 5 THEN 53 - COUNT( * ) WHEN - 91 THEN NULL END AS col2, + COUNT( * ) + 76 AS col0
----
5411834
NULL
77

skipif mysql # not compatible
query III rowsort label-5397
SELECT 65 * 29 * + 33 * ( COUNT ( * ) ) * + + 87 + - COUNT ( * ), CASE - COUNT ( - - 68 ) WHEN + 98 + COUNT ( * ) * + 64 + 5 THEN 53 - COUNT ( * ) WHEN - 91 THEN NULL END AS col2, + COUNT ( * ) + 76 AS col0
----
5411834
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT CASE - 22 WHEN - + 64 THEN + - 23 + + ( 50 ) / + 29 WHEN + COALESCE ( - - 71, - + MAX( + - 80 ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT CASE - 22 WHEN - + 64 THEN + - 23 + + ( 50 ) / + 29 WHEN + COALESCE ( - - 71, - + MAX ( + - 80 ) ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - NULLIF ( + + 51, - 9 * - 34 + + 91 - + + 52 ) * 74 * - 40
----
150960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5400
SELECT DISTINCT + SUM( - CAST( NULL AS SIGNED ) ) * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT + SUM ( - CAST ( NULL AS INTEGER ) ) * - 8
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5401
SELECT CASE - - AVG ( ALL ( - - 70 ) ) WHEN COUNT( * ) THEN + 19 * + 41 + - + ( + 9 ) END col2, + 97 col0
----
NULL
97

skipif mysql # not compatible
query II rowsort label-5401
SELECT CASE - - AVG ( ALL ( - - 70 ) ) WHEN COUNT ( * ) THEN + 19 * + 41 + - + ( + 9 ) END col2, + 97 col0
----
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT ALL SUM( - 29 ) * SUM( ALL - + CASE - - 47 WHEN 98 THEN NULL WHEN + - 33 THEN - - ( 80 ) ELSE NULL END ) + + ( - + 42 ) - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL SUM ( - 29 ) * SUM ( ALL - + CASE - - 47 WHEN 98 THEN NULL WHEN + - 33 THEN - - ( 80 ) ELSE NULL END ) + + ( - + 42 ) - 72
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5403
SELECT ALL 23 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL 23 / - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 52 * - 95 * + 3 * + 15 AS col2
----
-222300

query II rowsort
SELECT DISTINCT 58 * - - 56 col2, 78 * + 50 * - + ( + ( ( 81 ) ) ) + - - 98 AS col2
----
3248
-315802

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5406
SELECT + - 39 * - - 13 + + 6 + - + 30 + - 44 + + 2 + + - 72 DIV - 28 + - MIN( - 52 ) DIV 73 AS col0
----
-571

skipif mysql # not compatible
query I rowsort label-5406
SELECT + - 39 * - - 13 + + 6 + - + 30 + - 44 + + 2 + + - 72 / - 28 + - MIN ( - 52 ) / 73 AS col0
----
-571

query I rowsort
SELECT + 97 - - 74 AS col0
----
171

query I rowsort
SELECT + 40 + 1 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL 80 * - MIN( + + 26 ) col0
----
-2080

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL 80 * - MIN ( + + 26 ) col0
----
-2080

query I rowsort
SELECT DISTINCT + 65 * - - 12
----
780

query I rowsort
SELECT + - ( - 57 ) * + - 37
----
-2109

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) * - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) * - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL + ( + ( + 37 ) )
----
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5414
SELECT + - CAST( NULL AS SIGNED ) + 84 AS col2, + 49 DIV - + 68 * - 82
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5414
SELECT + - CAST ( NULL AS INTEGER ) + 84 AS col2, + 49 / - + 68 * - 82
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT ALL - 41 - + CASE + CAST( NULL AS SIGNED ) WHEN COALESCE ( + 47, - 50 + - 7, - 9 + - + 5 ) * - 1 THEN + 3 ELSE NULL END + - + 71 * + 30 + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL - 41 - + CASE + CAST ( NULL AS INTEGER ) WHEN COALESCE ( + 47, - 50 + - 7, - 9 + - + 5 ) * - 1 THEN + 3 ELSE NULL END + - + 71 * + 30 + 85
----
NULL

query I rowsort
SELECT + 99 * 65 AS col2
----
6435

query I rowsort
SELECT + + 71 + - 6 AS col2
----
65

query II rowsort
SELECT ( - - 93 ), 78 AS col0
----
93
78

query I rowsort
SELECT ALL - 8 * - 55
----
440

query I rowsort
SELECT DISTINCT 71 * - + 13 AS col1
----
-923

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT ALL COUNT( ALL 40 )
----
1

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL COUNT ( ALL 40 )
----
1

query I rowsort
SELECT - ( - - 17 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT ALL - COUNT( * ) * + - 98 * - 82 * - 51
----
409836

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL - COUNT ( * ) * + - 98 * - 82 * - 51
----
409836

onlyif mysql # DIV for integer division: 
query I rowsort label-5424
SELECT ALL + 24 DIV + + 71 + + + 76 * - - 54 - - 83
----
4187

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL + 24 / + + 71 + + + 76 * - - 54 - - 83
----
4187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5425
SELECT ALL 32 DIV + - 59 * - + 94 * - - 17 * - ( COUNT( * ) ) + + COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL 32 / + - 59 * - + 94 * - - 17 * - ( COUNT ( * ) ) + + COUNT ( * ) * + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5426
SELECT ALL + CAST( NULL AS SIGNED ), 16 + + ( + - CAST( NULL AS SIGNED ) ) + + SUM( + 94 ) * + + 85 * + 27 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5426
SELECT ALL + CAST ( NULL AS INTEGER ), 16 + + ( + - CAST ( NULL AS INTEGER ) ) + + SUM ( + 94 ) * + + 85 * + 27 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT - MAX( - 6 ) + + 7
----
13

skipif mysql # not compatible
query I rowsort label-5427
SELECT - MAX ( - 6 ) + + 7
----
13

query I rowsort
SELECT - 70 * - + 52 * + 92
----
334880

query I rowsort
SELECT DISTINCT - 25 * + + 46 AS col0
----
-1150

query I rowsort
SELECT ( + ( 55 ) )
----
55

query I rowsort
SELECT ( + NULLIF ( + 0, - - 61 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5432
SELECT ALL - 7 * - 40 * CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL - 7 * - 40 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT - 22 * - + ( + 8 ) AS col2
----
176

query I rowsort
SELECT ALL - 98 * + 23 * - - 13 col1
----
-29302

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5435
SELECT ALL - + 89 * 7 + 40 AS col2, - COUNT( * ) + + - 80 * 89 DIV + 63 AS col0
----
-583
-114

skipif mysql # not compatible
query II rowsort label-5435
SELECT ALL - + 89 * 7 + 40 AS col2, - COUNT ( * ) + + - 80 * 89 / + 63 AS col0
----
-583
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5436
SELECT DISTINCT + + 26 - + - MIN( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT + + 26 - + - MIN ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT COUNT( DISTINCT + CASE WHEN NOT NULL < ( NULL ) THEN - 73 END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5437
SELECT COUNT ( DISTINCT + CASE WHEN NOT NULL < ( NULL ) THEN - 73 END ) AS col2
----
0

query II rowsort
SELECT 5 AS col2, 20 * - 1 AS col0
----
5
-20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5439
SELECT 38 DIV - CAST( + 23 AS SIGNED ) + - 64
----
-65

skipif mysql # not compatible
query I rowsort label-5439
SELECT 38 / - CAST ( + 23 AS INTEGER ) + - 64
----
-65

query I rowsort
SELECT - 83 * + + 8 AS col2
----
-664

onlyif mysql # DIV for integer division: 
query I rowsort label-5441
SELECT DISTINCT - 53 DIV + 37 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT - 53 / + 37 AS col2
----
-1

query II rowsort
SELECT ALL 39, 31 AS col2
----
39
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT - COUNT( * ) * + 13 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5443
SELECT - COUNT ( * ) * + 13 AS col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT ALL CAST( 93 AS SIGNED ) * - 43 * + - 7 AS col1
----
27993

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL CAST ( 93 AS INTEGER ) * - 43 * + - 7 AS col1
----
27993

query I rowsort
SELECT 30 - + 40
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5446
SELECT 61 DIV + 27 - 0 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5446
SELECT 61 / + 27 - 0 AS col1
----
2

query I rowsort
SELECT ALL + ( - + 82 ) * - 1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5448
SELECT CAST( NULL AS SIGNED ) * + - COUNT( * ) + - - 92 + + + ( + 74 ) / 65 + + 94 + + + 36 / 38 * + 81 AS col0, - COUNT( * ) col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5448
SELECT CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + - - 92 + + + ( + 74 ) / 65 + + 94 + + + 36 / 38 * + 81 AS col0, - COUNT ( * ) col2
----
NULL
-1

query I rowsort
SELECT + 68 * - - 1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT ALL + 60 + - COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL + 60 + - COUNT ( * ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT - + SUM( + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-5451
SELECT - + SUM ( + 51 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5452
SELECT ALL 16 + + 16 * CAST( + 89 AS SIGNED ) - 45 AS col1, - COUNT( + + 37 )
----
1395
-1

skipif mysql # not compatible
query II rowsort label-5452
SELECT ALL 16 + + 16 * CAST ( + 89 AS INTEGER ) - 45 AS col1, - COUNT ( + + 37 )
----
1395
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT 86 * 89 * MIN( DISTINCT 80 )
----
612320

skipif mysql # not compatible
query I rowsort label-5453
SELECT 86 * 89 * MIN ( DISTINCT 80 )
----
612320

query I rowsort
SELECT 30 * + 56 - - 38 + 58
----
1776

query II rowsort
SELECT 90 AS col1, - 36 * - 56 AS col0
----
90
2016

query I rowsort
SELECT ALL ( + + 8 ) + 32 * - 83
----
-2648

query I rowsort
SELECT ALL 13 + - - 69
----
82

query I rowsort
SELECT 44 * + 46
----
2024

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5459
SELECT - 78 AS col1, - CASE + + 14 WHEN + + COALESCE ( - 1, 78 * + + 86 * + 7 + + + 66 + + 49 * + 33, + - 19 + 19 ) * ( + CAST( NULL AS DECIMAL ) ) + - COUNT( * ) THEN - 53 END * - 35 AS col1
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-5459
SELECT - 78 AS col1, - CASE + + 14 WHEN + + COALESCE ( - 1, 78 * + + 86 * + 7 + + + 66 + + 49 * + 33, + - 19 + 19 ) * ( + CAST ( NULL AS REAL ) ) + - COUNT ( * ) THEN - 53 END * - 35 AS col1
----
-78
NULL

query II rowsort
SELECT DISTINCT 29 AS col0, 11 col2
----
29
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5461
SELECT ALL CAST( NULL AS SIGNED ) + - AVG ( ALL - 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL CAST ( NULL AS INTEGER ) + - AVG ( ALL - 28 )
----
NULL

query I rowsort
SELECT ALL 83 * - 43
----
-3569

query II rowsort
SELECT ALL - 98 AS col1, + ( + 85 ) + + 25
----
-98
110

query II rowsort
SELECT ALL - 2 + - 84 AS col2, - 42 - ( - 17 ) AS col2
----
-86
-25

query I rowsort
SELECT ALL - ( 93 ) AS col2
----
-93

query II rowsort
SELECT DISTINCT - 84 + + - 28, - 17 + + 87 AS col2
----
-112
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT 82 * 18 * + COUNT( * )
----
1476

skipif mysql # not compatible
query I rowsort label-5467
SELECT 82 * 18 * + COUNT ( * )
----
1476

query I rowsort
SELECT DISTINCT 82 * + - ( + 65 )
----
-5330

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT CASE - - 4 WHEN + - 44 + - + 10 + + 86 * - + 65 + 67 THEN + + COUNT( * ) WHEN + + ( - 15 ) * + - 52 + - SUM( DISTINCT 16 ) THEN + + COUNT( * ) + - - 90 / + - MAX( + 29 ) + 78 END * - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5469
SELECT CASE - - 4 WHEN + - 44 + - + 10 + + 86 * - + 65 + 67 THEN + + COUNT ( * ) WHEN + + ( - 15 ) * + - 52 + - SUM ( DISTINCT 16 ) THEN + + COUNT ( * ) + - - 90 / + - MAX ( + 29 ) + 78 END * - 24 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT 14 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-5470
SELECT 14 / - 87
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5471
SELECT ALL + COALESCE ( - - 28, + 12 * 23, - + 63 ) DIV + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + COALESCE ( - - 28, + 12 * 23, - + 63 ) / + 92 AS col0
----
0

query I rowsort
SELECT 97 * - + 71
----
-6887

onlyif mysql # aggregate syntax: 
query II rowsort label-5473
SELECT ALL - COUNT( * ) col0, - 45 * 81 * + 91 + 42 - + 37 AS col1
----
-1
-331690

skipif mysql # not compatible
query II rowsort label-5473
SELECT ALL - COUNT ( * ) col0, - 45 * 81 * + 91 + 42 - + 37 AS col1
----
-1
-331690

query I rowsort
SELECT 27 - + 51 AS col0
----
-24

query I rowsort
SELECT ALL - - 75 col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT + COUNT( * ) * + CASE + 29 WHEN 58 THEN NULL WHEN + NULLIF ( - - ( 16 ), COUNT( * ) ) + + 38 THEN + + 36 END * 51 + 65 - 58 - - + 37 + - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5476
SELECT + COUNT ( * ) * + CASE + 29 WHEN 58 THEN NULL WHEN + NULLIF ( - - ( 16 ), COUNT ( * ) ) + + 38 THEN + + 36 END * 51 + 65 - 58 - - + 37 + - 70 AS col2
----
NULL

query I rowsort
SELECT ALL - - 36 - 84 * 71 AS col1
----
-5928

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT - 57 * - COUNT( * ) + - COUNT( * ) + - - 42 + + 14
----
112

skipif mysql # not compatible
query I rowsort label-5478
SELECT - 57 * - COUNT ( * ) + - COUNT ( * ) + - - 42 + + 14
----
112

query I rowsort
SELECT 22 * 43 * - + 67 AS col2
----
-63382

query I rowsort
SELECT ALL - - 61 * + + 32
----
1952

query I rowsort
SELECT 52 + - 51 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5482
SELECT 76, 83 * + ( + SUM( ALL 57 ) ) AS col0
----
76
4731

skipif mysql # not compatible
query II rowsort label-5482
SELECT 76, 83 * + ( + SUM ( ALL 57 ) ) AS col0
----
76
4731

query II rowsort
SELECT + - 11 AS col0, 83 AS col1
----
-11
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT COALESCE ( + + 99, - 3 * - COUNT( * ) ) - COUNT( * ) * + 79 col2
----
20

skipif mysql # not compatible
query I rowsort label-5484
SELECT COALESCE ( + + 99, - 3 * - COUNT ( * ) ) - COUNT ( * ) * + 79 col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5485
SELECT DISTINCT - + CAST( + - 49 AS SIGNED ) * 86
----
4214

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT - + CAST ( + - 49 AS INTEGER ) * 86
----
4214

query I rowsort
SELECT 45 + + - 63
----
-18

query I rowsort
SELECT ALL - 64 * - - 23 + - 72 col1
----
-1544

query II rowsort
SELECT 13, 18 AS col1
----
13
18

query I rowsort
SELECT ALL + - 81 + - 9 AS col1
----
-90

query I rowsort
SELECT ALL ( + - 78 ) + + ( - 52 ) AS col1
----
-130

query I rowsort
SELECT ALL 5 + - 98
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5492
SELECT - 75 + 60 AS col1, - 44 + - COUNT( ALL 8 ) + + 74 + + 78 + - - CAST( + + 86 AS SIGNED ) * + + ( - COUNT( * ) ) + + + AVG ( ALL 14 ) + CASE - 12 WHEN + 54 * - 63 THEN 99 WHEN - COUNT( * ) THEN NULL WHEN - + 94 * - - 99 / + 46 THEN NULL END + + 68 + 32 AS col1
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-5492
SELECT - 75 + 60 AS col1, - 44 + - COUNT ( ALL 8 ) + + 74 + + 78 + - - CAST ( + + 86 AS INTEGER ) * + + ( - COUNT ( * ) ) + + + AVG ( ALL 14 ) + CASE - 12 WHEN + 54 * - 63 THEN 99 WHEN - COUNT ( * ) THEN NULL WHEN - + 94 * - - 99 / + 46 THEN NULL END + + 68 + 32 AS col1
----
-15
NULL

query II rowsort
SELECT ALL - 11, - ( - + ( 11 ) ) AS col0
----
-11
11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5494
SELECT + CAST( - 10 AS SIGNED ) DIV + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5494
SELECT + CAST ( - 10 AS INTEGER ) / + 88 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT DISTINCT + - COALESCE ( 32, 47 / - + 81 ) + + CAST( NULL AS SIGNED ) * + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT + - COALESCE ( 32, 47 / - + 81 ) + + CAST ( NULL AS INTEGER ) * + 40 AS col0
----
NULL

query I rowsort
SELECT ALL - ( + 65 ) + + 2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT ALL + - MAX( + 33 ) + - COUNT( DISTINCT - 13 )
----
-34

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL + - MAX ( + 33 ) + - COUNT ( DISTINCT - 13 )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-5498
SELECT + COUNT( * ) * + ( - 66 ) - 53 AS col1, 70 AS col0
----
-119
70

skipif mysql # not compatible
query II rowsort label-5498
SELECT + COUNT ( * ) * + ( - 66 ) - 53 AS col1, 70 AS col0
----
-119
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT - COUNT( 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-5499
SELECT - COUNT ( 11 )
----
-1

query I rowsort
SELECT DISTINCT 48 + 98 + + 46 + ( 15 ) * - 1 * - + 1
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-5501
SELECT DISTINCT + NULLIF ( - - 11, + + 94 ) DIV - 59 - + + 75 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT + NULLIF ( - - 11, + + 94 ) / - 59 - + + 75 AS col1
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5502
SELECT ALL + CAST( NULL AS DECIMAL ) + - 68 col2, + 17
----
NULL
17

skipif mysql # not compatible
query II rowsort label-5502
SELECT ALL + CAST ( NULL AS REAL ) + - 68 col2, + 17
----
NULL
17

query I rowsort
SELECT DISTINCT 42 * 15
----
630

query I rowsort
SELECT ALL 1 + - 43
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5505
SELECT DISTINCT 6 * - CAST( 82 AS SIGNED ) AS col2, ( NULLIF ( - - 22, - - 67 ) ) AS col1
----
-492
22

skipif mysql # not compatible
query II rowsort label-5505
SELECT DISTINCT 6 * - CAST ( 82 AS INTEGER ) AS col2, ( NULLIF ( - - 22, - - 67 ) ) AS col1
----
-492
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5506
SELECT MAX( + 56 ) + + + 75 * + CAST( NULL AS SIGNED ) + - 73, + 0 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5506
SELECT MAX ( + 56 ) + + + 75 * + CAST ( NULL AS INTEGER ) + - 73, + 0 AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT 7 * + COUNT( * ) * - + 16 + COUNT( DISTINCT - + 46 ) AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-5507
SELECT 7 * + COUNT ( * ) * - + 16 + COUNT ( DISTINCT - + 46 ) AS col1
----
-111

query I rowsort
SELECT 14 + - 82 col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT + COUNT( ALL 8 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5509
SELECT + COUNT ( ALL 8 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5510
SELECT 71 DIV + COALESCE ( + + 71, + + 49 ) + 60 + + 45 * + 47 * + ( - ( COUNT( * ) ) ) * - COUNT( * ) * + + 47 + + 88
----
99554

skipif mysql # not compatible
query I rowsort label-5510
SELECT 71 / + COALESCE ( + + 71, + + 49 ) + 60 + + 45 * + 47 * + ( - ( COUNT ( * ) ) ) * - COUNT ( * ) * + + 47 + + 88
----
99554

query I rowsort
SELECT + 52 * 24 AS col1
----
1248

onlyif mysql # DIV for integer division: 
query I rowsort label-5512
SELECT ALL 57 DIV - 20
----
-2

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL 57 / - 20
----
-2

query I rowsort
SELECT + 69 + + NULLIF ( - - 26, + 44 - + 35 )
----
95

query I rowsort
SELECT DISTINCT 8 * + 1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5515
SELECT + - CAST( + 78 AS SIGNED ) DIV - - COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-5515
SELECT + - CAST ( + 78 AS INTEGER ) / - - COUNT ( * ) AS col2
----
-78

query I rowsort
SELECT DISTINCT + - ( 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ALL + CASE 75 WHEN - ( - - ( + COUNT( * ) ) ) + - - COUNT( * ) THEN + 19 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL + CASE 75 WHEN - ( - - ( + COUNT ( * ) ) ) + - - COUNT ( * ) THEN + 19 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5518
SELECT - 36 * + 77 AS col0, - CASE - 32 WHEN CAST( - + 71 AS SIGNED ) THEN 59 WHEN 75 * + 49 + - COALESCE ( + + 18, + COUNT( * ), 59 ) + 91 * - ( 13 ) * - 28 * 89 * + - COUNT( 17 ) THEN NULL ELSE 64 END + 88 AS col1
----
-2772
24

skipif mysql # not compatible
query II rowsort label-5518
SELECT - 36 * + 77 AS col0, - CASE - 32 WHEN CAST ( - + 71 AS INTEGER ) THEN 59 WHEN 75 * + 49 + - COALESCE ( + + 18, + COUNT ( * ), 59 ) + 91 * - ( 13 ) * - 28 * 89 * + - COUNT ( 17 ) THEN NULL ELSE 64 END + 88 AS col1
----
-2772
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5519
SELECT ALL 33 * 56 * - 26 + + COUNT( * ) + 82 DIV + - 8
----
-48057

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL 33 * 56 * - 26 + + COUNT ( * ) + 82 / + - 8
----
-48057

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5520
SELECT ALL COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5521
SELECT - + 32 * CAST( NULL AS SIGNED ), COUNT( * ) - + + 35 AS col0
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-5521
SELECT - + 32 * CAST ( NULL AS INTEGER ), COUNT ( * ) - + + 35 AS col0
----
NULL
-34

query I rowsort
SELECT + 3 * + - 3
----
-9

query I rowsort
SELECT - - ( 26 ) * + 24
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT ALL + - 41 + + + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL + - 41 + + + COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT ALL - MIN( ALL - 39 ) + + 57 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL - MIN ( ALL - 39 ) + + 57 AS col2
----
96

query I rowsort
SELECT - - 71 - + 81 + + + 88
----
78

query I rowsort
SELECT - + 97 - - 45 + - 67 * + 58
----
-3938

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5528
SELECT ALL + - ( + - SUM( ALL - - 80 ) ) * 58 DIV 61
----
76

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL + - ( + - SUM ( ALL - - 80 ) ) * 58 / 61
----
76

query II rowsort
SELECT DISTINCT NULLIF ( - 51, ( + 58 ) ), - NULLIF ( 77, - 70 * + - 41 ) AS col1
----
-51
-77

query I rowsort
SELECT - 72 + 61
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5531
SELECT ALL - CAST( + - ( 24 ) AS SIGNED ) + - 38 AS col1, - 23 col2
----
-14
-23

skipif mysql # not compatible
query II rowsort label-5531
SELECT ALL - CAST ( + - ( 24 ) AS INTEGER ) + - 38 AS col1, - 23 col2
----
-14
-23

query I rowsort
SELECT DISTINCT ( - - 11 ) col1
----
11

query I rowsort
SELECT ALL + 83 - 97
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT - CASE - 57 WHEN + + 87 THEN - - COUNT( * ) WHEN - CASE + 17 WHEN + 70 THEN NULL ELSE ( - COUNT( * ) ) END THEN NULL END * - ( - 6 ) - + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT - CASE - 57 WHEN + + 87 THEN - - COUNT ( * ) WHEN - CASE + 17 WHEN + 70 THEN NULL ELSE ( - COUNT ( * ) ) END THEN NULL END * - ( - 6 ) - + 79
----
NULL

query I rowsort
SELECT ALL + 11 * - + 98
----
-1078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5536
SELECT DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN + + NULLIF ( 96, - 85 * + 3 - + 6 * + COALESCE ( - 53, - CAST( 23 AS SIGNED ) * + - 54 + + 54 / - + 66 ) + + 87 ) * - - ( + + ( + + COUNT( * ) ) ) THEN + - 66 ELSE COUNT( * ) + COUNT( * ) + - + 35 END
----
-33

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN + + NULLIF ( 96, - 85 * + 3 - + 6 * + COALESCE ( - 53, - CAST ( 23 AS INTEGER ) * + - 54 + + 54 / - + 66 ) + + 87 ) * - - ( + + ( + + COUNT ( * ) ) ) THEN + - 66 ELSE COUNT ( * ) + COUNT ( * ) + - + 35 END
----
-33

query I rowsort
SELECT DISTINCT ( - - 82 ) col2
----
82

query I rowsort
SELECT ALL + 84 - 52 + 16 AS col0
----
48

query I rowsort
SELECT - NULLIF ( - 18, 21 * - 67 / - - ( - 34 ) + 29 ) * + 97 * - + 40 col2
----
-69840

onlyif mysql # DIV for integer division: 
query I rowsort label-5540
SELECT ALL - 76 DIV NULLIF ( 5, - 96 * + + 58 - + 6 * - 11 ) * - 81 * - 24 AS col0
----
-29160

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL - 76 / NULLIF ( 5, - 96 * + + 58 - + 6 * - 11 ) * - 81 * - 24 AS col0
----
-29160

query I rowsort
SELECT DISTINCT 11 * - 59 AS col0
----
-649

onlyif mysql # aggregate syntax: 
query II rowsort label-5542
SELECT DISTINCT + COALESCE ( COALESCE ( 92, + 78 ), - COUNT( * ) + - ( + 39 ) * 54 ) AS col0, COUNT( * ) AS col2
----
92
1

skipif mysql # not compatible
query II rowsort label-5542
SELECT DISTINCT + COALESCE ( COALESCE ( 92, + 78 ), - COUNT ( * ) + - ( + 39 ) * 54 ) AS col0, COUNT ( * ) AS col2
----
92
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT ALL SUM( DISTINCT 0 ) * + 27 * + NULLIF ( + 70, + 78 + + - 28 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL SUM ( DISTINCT 0 ) * + 27 * + NULLIF ( + 70, + 78 + + - 28 ) col2
----
0

query I rowsort
SELECT + ( - - 86 ) AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5545
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - COALESCE ( 42, 68 * - ( - - 80 ) + - - 1 * 49 + - 75 ) + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - COALESCE ( 42, 68 * - ( - - 80 ) + - - 1 * 49 + - 75 ) + + 67
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5546
SELECT ALL + CAST( NULL AS SIGNED ) * 88 + + CAST( - 23 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL + CAST ( NULL AS INTEGER ) * 88 + + CAST ( - 23 AS INTEGER )
----
NULL

query I rowsort
SELECT + 7 + + - NULLIF ( - 79, + 29 ) - 92
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5548
SELECT ALL + - 86 * - CAST( NULL AS SIGNED ) * + + COUNT( * ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL + - 86 * - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5549
SELECT ALL + + 4 AS col2, 67 DIV - - 75 AS col1
----
4
0

skipif mysql # not compatible
query II rowsort label-5549
SELECT ALL + + 4 AS col2, 67 / - - 75 AS col1
----
4
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5550
SELECT DISTINCT + 70 * + CAST( + - 7 AS SIGNED ) + - 41 + + 26 * - 42 * - 93 + + 77 + 25 AS col1
----
101127

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT + 70 * + CAST ( + - 7 AS INTEGER ) + - 41 + + 26 * - 42 * - 93 + + 77 + 25 AS col1
----
101127

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT + 96 * + - CASE 80 WHEN 19 THEN 75 ELSE - - COUNT( * ) END * - ( + COUNT( ALL 86 ) ) + + 9
----
105

skipif mysql # not compatible
query I rowsort label-5551
SELECT + 96 * + - CASE 80 WHEN 19 THEN 75 ELSE - - COUNT ( * ) END * - ( + COUNT ( ALL 86 ) ) + + 9
----
105

query II rowsort
SELECT + 42 AS col0, 65 * - 92 AS col2
----
42
-5980

query II rowsort
SELECT - + ( 40 ) + 37 - + NULLIF ( + + 85, - - 28 ) + - 98 * 53 AS col1, 61
----
-5282
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT - - 70 * COUNT( ALL 65 ) + 26
----
96

skipif mysql # not compatible
query I rowsort label-5554
SELECT - - 70 * COUNT ( ALL 65 ) + 26
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT ALL + MIN( DISTINCT + 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL + MIN ( DISTINCT + 66 ) AS col0
----
66

query I rowsort
SELECT 26 * + 42 + + 76 * + 28
----
3220

onlyif mysql # DIV for integer division: 
query II rowsort label-5557
SELECT ALL - 33 AS col0, 67 DIV - - 92 * - 47 col0
----
-33
0

skipif mysql # not compatible
query II rowsort label-5557
SELECT ALL - 33 AS col0, 67 / - - 92 * - 47 col0
----
-33
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5558
SELECT + ( 93 ) + COUNT( * ) + + 4 AS col1, 96 AS col1
----
98
96

skipif mysql # not compatible
query II rowsort label-5558
SELECT + ( 93 ) + COUNT ( * ) + + 4 AS col1, 96 AS col1
----
98
96

query I rowsort
SELECT ALL + 98 * - 50 - - 41
----
-4859

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ALL + 41 * - 28 * - 44 - - 62 * + - 4 - + 63 + + COUNT( * ) * + 82 + - 30
----
50253

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL + 41 * - 28 * - 44 - - 62 * + - 4 - + 63 + + COUNT ( * ) * + 82 + - 30
----
50253

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT + NULLIF ( - 55, + 3 * - 97 - + + COUNT( + 80 ) * - 3 / 8 )
----
-55

skipif mysql # not compatible
query I rowsort label-5561
SELECT + NULLIF ( - 55, + 3 * - 97 - + + COUNT ( + 80 ) * - 3 / 8 )
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-5562
SELECT ALL MIN( + - 92 ) * + 38 + - CASE + 55 WHEN - 42 THEN - - 70 / + 46 ELSE NULL END + 35 + COUNT( * ) * - 94 / + 57 - - + COUNT( * ) / NULLIF ( COUNT( * ), 37 ) - - ( + + 91 ) + 23 AS col2, 44 + NULLIF ( - COUNT( * ), + MIN( 18 ) - - 17 ) * COUNT( * )
----
NULL
43

skipif mysql # not compatible
query II rowsort label-5562
SELECT ALL MIN ( + - 92 ) * + 38 + - CASE + 55 WHEN - 42 THEN - - 70 / + 46 ELSE NULL END + 35 + COUNT ( * ) * - 94 / + 57 - - + COUNT ( * ) / NULLIF ( COUNT ( * ), 37 ) - - ( + + 91 ) + 23 AS col2, 44 + NULLIF ( - COUNT ( * ), + MIN ( 18 ) - - 17 ) * COUNT ( * )
----
NULL
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5563
SELECT - 66 DIV - 50
----
1

skipif mysql # not compatible
query I rowsort label-5563
SELECT - 66 / - 50
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5564
SELECT ALL - COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col2, + 76
----
NULL
76

skipif mysql # not compatible
query II rowsort label-5564
SELECT ALL - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col2, + 76
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT MAX( ALL - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-5565
SELECT MAX ( ALL - 95 )
----
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-5566
SELECT - 18 + - - ( 96 ) DIV - 85, - 56 AS col2
----
-19
-56

skipif mysql # not compatible
query II rowsort label-5566
SELECT - 18 + - - ( 96 ) / - 85, - 56 AS col2
----
-19
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT - 94 + - CASE + COUNT( DISTINCT 95 ) WHEN + MAX( ALL + 62 ) * - + 97 + + COALESCE ( + + 14, - COUNT( * ) ) + - - 12 * - 29 * - 96 + 79 THEN - - 63 - 57 WHEN - 77 THEN + + 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5567
SELECT - 94 + - CASE + COUNT ( DISTINCT 95 ) WHEN + MAX ( ALL + 62 ) * - + 97 + + COALESCE ( + + 14, - COUNT ( * ) ) + - - 12 * - 29 * - 96 + 79 THEN - - 63 - 57 WHEN - 77 THEN + + 73 END
----
NULL

query I rowsort
SELECT - 12 * 88 AS col1
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT - ( - COUNT( DISTINCT 71 ) ) + - - 56 + - + 42 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5569
SELECT - ( - COUNT ( DISTINCT 71 ) ) + - - 56 + - + 42 AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5570
SELECT 88 + - 30 + - - CASE + 95 WHEN - + ( 4 ) THEN 41 * 88 + - ( + 65 ) + + - 64 WHEN - 67 + + COUNT( * ) * + CASE - COUNT( * ) WHEN - - CAST( NULL AS SIGNED ) THEN - 20 * 47 WHEN + + CASE + - 29 WHEN - CAST( + 25 AS SIGNED ) / - COUNT( * ) + - 94 + - + 62 THEN NULL WHEN 87 THEN 59 * + 47 + + 57 END THEN + 2 - - 45 + + 8 + + 47 * 37 + - 32 / - + CAST( + 9 AS DECIMAL ) END * + - COUNT( * ) THEN NULL ELSE + + 60 END AS col2
----
118

skipif mysql # not compatible
query I rowsort label-5570
SELECT 88 + - 30 + - - CASE + 95 WHEN - + ( 4 ) THEN 41 * 88 + - ( + 65 ) + + - 64 WHEN - 67 + + COUNT ( * ) * + CASE - COUNT ( * ) WHEN - - CAST ( NULL AS INTEGER ) THEN - 20 * 47 WHEN + + CASE + - 29 WHEN - CAST ( + 25 AS INTEGER ) / - COUNT ( * ) + - 94 + - + 62 THEN NULL WHEN 87 THEN 59 * + 47 + + 57 END THEN + 2 - - 45 + + 8 + + 47 * 37 + - 32 / - + CAST ( + 9 AS REAL ) END * + - COUNT ( * ) THEN NULL ELSE + + 60 END AS col2
----
118

query I rowsort
SELECT ALL 64 * - + ( + 60 ) AS col2
----
-3840

query I rowsort
SELECT ALL + 80 * + + 67 AS col2
----
5360

query II rowsort
SELECT DISTINCT - 62 + + 32 AS col0, + 57 AS col2
----
-30
57

onlyif mysql # DIV for integer division: 
query I rowsort label-5574
SELECT 87 * 49 DIV + 73 col0
----
58

skipif mysql # not compatible
query I rowsort label-5574
SELECT 87 * 49 / + 73 col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5575
SELECT 23 + 73 * - CAST( - 26 AS SIGNED ) + + + 24 AS col1
----
1945

skipif mysql # not compatible
query I rowsort label-5575
SELECT 23 + 73 * - CAST ( - 26 AS INTEGER ) + + + 24 AS col1
----
1945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5576
SELECT ALL - COUNT( * ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL - COUNT ( * ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT COUNT( * ) + 25 + + + 66 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5577
SELECT COUNT ( * ) + 25 + + + 66 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT ALL - 37 + + MAX( - - 44 ) * + 80 * + + 75 + + 12 AS col1
----
263975

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL - 37 + + MAX ( - - 44 ) * + 80 * + + 75 + + 12 AS col1
----
263975

onlyif mysql # aggregate syntax: 
query II rowsort label-5579
SELECT + 78 * + 74, - 43 + 88 + - COUNT( * ) + 69 * + MAX( ALL + 51 ) * + 3 AS col0
----
5772
10601

skipif mysql # not compatible
query II rowsort label-5579
SELECT + 78 * + 74, - 43 + 88 + - COUNT ( * ) + 69 * + MAX ( ALL + 51 ) * + 3 AS col0
----
5772
10601

query I rowsort
SELECT ALL + 45 + + - 10
----
35

query I rowsort
SELECT ALL - 87 * + - 66 AS col1
----
5742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5582
SELECT - 46 / + - CAST( - CASE 52 WHEN - 89 THEN + 54 + - - 2 + + 80 WHEN + 13 + + 58 - + COALESCE ( 8, COUNT( * ) / - 93 ) THEN NULL END AS SIGNED ) * - COUNT( * ) * + - 62 * - ( + - 18 ) * - - 19 + + 59 + 98 * - COUNT( * ) * + CASE 78 WHEN - 55 + - + 82 THEN + 5 WHEN + 28 - - - CASE 40 WHEN COUNT( * ) THEN + 70 ELSE NULL END * 30 THEN 1 / - + 6 / - + 51 / ( - - COUNT( - NULLIF ( 58, NULLIF ( 74, + + 52 / - 83 ) * 23 * - 95 ) ) ) WHEN + ( + - 26 ) * + 70 + COALESCE ( COUNT( * ), COUNT( * ) ) THEN NULL ELSE NULL END / + ( COALESCE ( 98, 51, 86 / 73 ) ) + 7 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5582
SELECT - 46 / + - CAST ( - CASE 52 WHEN - 89 THEN + 54 + - - 2 + + 80 WHEN + 13 + + 58 - + COALESCE ( 8, COUNT ( * ) / - 93 ) THEN NULL END AS INTEGER ) * - COUNT ( * ) * + - 62 * - ( + - 18 ) * - - 19 + + 59 + 98 * - COUNT ( * ) * + CASE 78 WHEN - 55 + - + 82 THEN + 5 WHEN + 28 - - - CASE 40 WHEN COUNT ( * ) THEN + 70 ELSE NULL END * 30 THEN 1 / - + 6 / - + 51 / ( - - COUNT ( - NULLIF ( 58, NULLIF ( 74, + + 52 / - 83 ) * 23 * - 95 ) ) ) WHEN + ( + - 26 ) * + 70 + COALESCE ( COUNT ( * ), COUNT ( * ) ) THEN NULL ELSE NULL END / + ( COALESCE ( 98, 51, 86 / 73 ) ) + 7 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT SUM( + 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5583
SELECT SUM ( + 67 ) AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5584
SELECT ALL - + CAST( - CASE - - MIN( DISTINCT - + ( + 94 ) ) WHEN + NULLIF ( 31, 55 - ( - - 31 ) - NULLIF ( ( - CAST( + + 39 AS SIGNED ) ), + - 14 * + 58 * 63 ) ) THEN + COUNT( * ) * + - 40 WHEN + COUNT( * ) / + COUNT( 6 ) + + ( + 78 ) * 26 THEN - AVG ( DISTINCT - 87 ) END AS SIGNED ) AS col1, + 4 * + + COUNT( * ) AS col0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-5584
SELECT ALL - + CAST ( - CASE - - MIN ( DISTINCT - + ( + 94 ) ) WHEN + NULLIF ( 31, 55 - ( - - 31 ) - NULLIF ( ( - CAST ( + + 39 AS INTEGER ) ), + - 14 * + 58 * 63 ) ) THEN + COUNT ( * ) * + - 40 WHEN + COUNT ( * ) / + COUNT ( 6 ) + + ( + 78 ) * 26 THEN - AVG ( DISTINCT - 87 ) END AS INTEGER ) AS col1, + 4 * + + COUNT ( * ) AS col0
----
NULL
4

query I rowsort
SELECT ALL + 96 + + 31 AS col2
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5586
SELECT - 27 + - CAST( - 68 AS SIGNED ) * COALESCE ( - - 14, - 60 ) AS col1
----
925

skipif mysql # not compatible
query I rowsort label-5586
SELECT - 27 + - CAST ( - 68 AS INTEGER ) * COALESCE ( - - 14, - 60 ) AS col1
----
925

query I rowsort
SELECT ALL + 85 + - - 63 * + + 83 AS col0
----
5314

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ALL - + 62 + - - 4 - 51 * - - COUNT( * ) * + COUNT( * )
----
-109

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL - + 62 + - - 4 - 51 * - - COUNT ( * ) * + COUNT ( * )
----
-109

query I rowsort
SELECT DISTINCT + + 99 * 37 AS col2
----
3663

query I rowsort
SELECT - 94 * - ( + - 30 )
----
-2820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5591
SELECT DISTINCT ( - - 13 ) - 68 + + + COUNT( DISTINCT - + 60 ) DIV COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-5591
SELECT DISTINCT ( - - 13 ) - 68 + + + COUNT ( DISTINCT - + 60 ) / COUNT ( * )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT ALL + 69 - + MAX( + + ( NULLIF ( - 9, - 83 ) ) ) * + - 88 col1
----
-723

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL + 69 - + MAX ( + + ( NULLIF ( - 9, - 83 ) ) ) * + - 88 col1
----
-723

query I rowsort
SELECT - ( + - ( + 27 ) )
----
27

query II rowsort
SELECT 56 * + + CASE - + 87 WHEN ( + + ( 16 ) ) THEN NULL ELSE + 67 END + + 53 AS col2, + 38
----
3805
38

query I rowsort
SELECT ALL 48 * - + 32 AS col2
----
-1536

query I rowsort
SELECT DISTINCT 83 * + - 93 * + 54 AS col1
----
-416826

onlyif mysql # aggregate syntax: 
query II rowsort label-5597
SELECT 1 * + 73 * - 65 AS col1, COUNT( * )
----
-4745
1

skipif mysql # not compatible
query II rowsort label-5597
SELECT 1 * + 73 * - 65 AS col1, COUNT ( * )
----
-4745
1

query I rowsort
SELECT 72 - 62 + + + COALESCE ( + + 94, 63 )
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5599
SELECT COUNT( * ) DIV - 10
----
0

skipif mysql # not compatible
query I rowsort label-5599
SELECT COUNT ( * ) / - 10
----
0

query I rowsort
SELECT 78 * 14 AS col1
----
1092

onlyif mysql # aggregate syntax: 
query II rowsort label-5601
SELECT ( - - 12 ) + 9 AS col0, - SUM( + 80 )
----
21
-80

skipif mysql # not compatible
query II rowsort label-5601
SELECT ( - - 12 ) + 9 AS col0, - SUM ( + 80 )
----
21
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT DISTINCT 47 * - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT 47 * - COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT MIN( DISTINCT - - 51 ) + NULLIF ( + 22, + 96 + - NULLIF ( COUNT( * ), - 98 ) / ( - - 28 ) ) col0
----
73

skipif mysql # not compatible
query I rowsort label-5603
SELECT MIN ( DISTINCT - - 51 ) + NULLIF ( + 22, + 96 + - NULLIF ( COUNT ( * ), - 98 ) / ( - - 28 ) ) col0
----
73

query I rowsort
SELECT ALL + NULLIF ( + - 42, - 10 ) + + - 3
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT MAX( DISTINCT - 45 ) + ( - 7 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-5605
SELECT MAX ( DISTINCT - 45 ) + ( - 7 ) AS col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5606
SELECT 17 - CAST( - 25 AS SIGNED ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5606
SELECT 17 - CAST ( - 25 AS INTEGER ) AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5607
SELECT ALL 35 DIV 82 col2
----
0

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL 35 / 82 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5608
SELECT 23 DIV - ( + - 71 ) * + - COUNT( * ) + + 30
----
30

skipif mysql # not compatible
query I rowsort label-5608
SELECT 23 / - ( + - 71 ) * + - COUNT ( * ) + + 30
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5609
SELECT 26 - CAST( - + 26 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-5609
SELECT 26 - CAST ( - + 26 AS INTEGER )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT ALL 11 + + - 49 + - COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL 11 + + - 49 + - COUNT ( * ) AS col2
----
-39

query II rowsort
SELECT - 6 AS col1, 74 AS col1
----
-6
74

query I rowsort
SELECT ALL - 49 + + + 23
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-5613
SELECT 3 * MIN( - 77 ), - 44 col1
----
-231
-44

skipif mysql # not compatible
query II rowsort label-5613
SELECT 3 * MIN ( - 77 ), - 44 col1
----
-231
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5614
SELECT COALESCE ( - + 10, - 51 + - COUNT( * ), - CASE 71 WHEN 52 * + - 97 THEN NULL WHEN + + 16 * - 5 + - COALESCE ( - + COALESCE ( - 42, + COUNT( * ) - + 12, + 68 + 73, CAST( NULL AS SIGNED ) ), - - 95 ) + + - CAST( - 10 AS SIGNED ) * + - 98 THEN + 39 * + - 33 * + 45 - - + COUNT( * ) WHEN COALESCE ( - 95, + - 98 + - CASE + 31 WHEN - 13 * 5 * + 54 + + 74 DIV - - 42 * + 55 * + 38 * 44 THEN + COUNT( + - 79 ) * 36 ELSE + CASE + 89 WHEN + CAST( + 21 AS DECIMAL ) THEN - 41 END * - ( - ( - 5 ) ) END ) THEN 1 END DIV + 7 ) + NULLIF ( COUNT( * ), + 44 )
----
-9

skipif mysql # not compatible
query I rowsort label-5614
SELECT COALESCE ( - + 10, - 51 + - COUNT ( * ), - CASE 71 WHEN 52 * + - 97 THEN NULL WHEN + + 16 * - 5 + - COALESCE ( - + COALESCE ( - 42, + COUNT ( * ) - + 12, + 68 + 73, CAST ( NULL AS INTEGER ) ), - - 95 ) + + - CAST ( - 10 AS INTEGER ) * + - 98 THEN + 39 * + - 33 * + 45 - - + COUNT ( * ) WHEN COALESCE ( - 95, + - 98 + - CASE + 31 WHEN - 13 * 5 * + 54 + + 74 / - - 42 * + 55 * + 38 * 44 THEN + COUNT ( + - 79 ) * 36 ELSE + CASE + 89 WHEN + CAST ( + 21 AS REAL ) THEN - 41 END * - ( - ( - 5 ) ) END ) THEN 1 END / + 7 ) + NULLIF ( COUNT ( * ), + 44 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5615
SELECT DISTINCT - ( - CAST( 11 AS SIGNED ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT - ( - CAST ( 11 AS INTEGER ) ) AS col1
----
11

query I rowsort
SELECT 12 + - 48 * 40
----
-1908

query I rowsort
SELECT 48 * + 42
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT ALL + 75 * + 34 + - COUNT( * ) AS col0
----
2549

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL + 75 * + 34 + - COUNT ( * ) AS col0
----
2549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5619
SELECT - 28 * 50 + CAST( + 1 - ( 35 ) * 25 AS SIGNED ) col0
----
-2274

skipif mysql # not compatible
query I rowsort label-5619
SELECT - 28 * 50 + CAST ( + 1 - ( 35 ) * 25 AS INTEGER ) col0
----
-2274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5620
SELECT - 65 * NULLIF ( NULLIF ( 76, - COALESCE ( - 52, - 50 ) DIV + 64 + - COUNT( - 65 ) * 19 ) DIV 73, - COALESCE ( 2, 0 ) ) + + COUNT( ALL + 76 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-5620
SELECT - 65 * NULLIF ( NULLIF ( 76, - COALESCE ( - 52, - 50 ) / + 64 + - COUNT ( - 65 ) * 19 ) / 73, - COALESCE ( 2, 0 ) ) + + COUNT ( ALL + 76 ) AS col2
----
-64

query I rowsort
SELECT 31 * 54 col1
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT 51 * + 59 + + COUNT( * )
----
3010

skipif mysql # not compatible
query I rowsort label-5622
SELECT 51 * + 59 + + COUNT ( * )
----
3010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5623
SELECT ALL + 51 - NULLIF ( + CAST( NULL AS SIGNED ) + + 44, + 2 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL + 51 - NULLIF ( + CAST ( NULL AS INTEGER ) + + 44, + 2 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5624
SELECT 63 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-5624
SELECT 63 / - 45
----
-1

query I rowsort
SELECT DISTINCT + 70 * + 71 AS col2
----
4970

query I rowsort
SELECT 47 * 11 AS col1
----
517

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT + COUNT( * ) * 43 + - NULLIF ( 99, - 12 ) col1
----
-56

skipif mysql # not compatible
query I rowsort label-5627
SELECT + COUNT ( * ) * 43 + - NULLIF ( 99, - 12 ) col1
----
-56

query I rowsort
SELECT ALL + 52 * 11
----
572

onlyif mysql # DIV for integer division: 
query I rowsort label-5629
SELECT 53 DIV - 24 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5629
SELECT 53 / - 24 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5630
SELECT 92 + ( 75 + + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5630
SELECT 92 + ( 75 + + CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT 98 * 6
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT COALESCE ( + COUNT( * ), CASE + 68 WHEN 89 THEN + 73 - + 84 ELSE NULL END + - COALESCE ( + 0, 26 - 25, COUNT( * ) * SUM( DISTINCT 52 ) ) ) + + 2 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5632
SELECT COALESCE ( + COUNT ( * ), CASE + 68 WHEN 89 THEN + 73 - + 84 ELSE NULL END + - COALESCE ( + 0, 26 - 25, COUNT ( * ) * SUM ( DISTINCT 52 ) ) ) + + 2 AS col0
----
3

query I rowsort
SELECT ALL - ( - ( ( + 59 ) ) ) col1
----
59

query I rowsort
SELECT + 70 * 82 + 65
----
5805

query I rowsort
SELECT - 83 + + 71
----
-12

query I rowsort
SELECT - 0 * 93
----
0

query I rowsort
SELECT DISTINCT - 80 + 38 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT DISTINCT ( - 92 ) + + CASE 69 WHEN - 72 THEN AVG ( ALL + 9 ) + + 54 ELSE NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT ( - 92 ) + + CASE 69 WHEN - 72 THEN AVG ( ALL + 9 ) + + 54 ELSE NULL END * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT CASE - 33 WHEN - 89 THEN + 19 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 76 + 9 * - 51 AS col0
----
-383

query I rowsort
SELECT DISTINCT 94 * 90
----
8460

query I rowsort
SELECT + 5 + ( 83 ) AS col2
----
88

query I rowsort
SELECT + 11 + 90 AS col0
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5644
SELECT - CASE 65 WHEN COUNT( * ) THEN - 3 WHEN CAST( NULL AS SIGNED ) * - CAST( + 59 * - 30 AS SIGNED ) THEN + AVG ( ALL 85 ) * + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5644
SELECT - CASE 65 WHEN COUNT ( * ) THEN - 3 WHEN CAST ( NULL AS INTEGER ) * - CAST ( + 59 * - 30 AS INTEGER ) THEN + AVG ( ALL 85 ) * + COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5645
SELECT ALL AVG ( + CAST( NULL AS SIGNED ) ) + - COUNT( * ) * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL AVG ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) * 74
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 47, + 56 * - 92 )
----
-47

query I rowsort
SELECT DISTINCT + 18 + + 73 * + 43 AS col0
----
3157

query I rowsort
SELECT + - 49 + 44
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT DISTINCT - COUNT( * ) - - 56 * 53
----
2967

skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT - COUNT ( * ) - - 56 * 53
----
2967

query I rowsort
SELECT + + 63 * - 67 AS col1
----
-4221

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT + - COUNT( * ) * SUM( 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-5651
SELECT + - COUNT ( * ) * SUM ( 22 )
----
-22

query I rowsort
SELECT ALL NULLIF ( 51, 88 )
----
51

query I rowsort
SELECT DISTINCT + 29 * - 43 - 89
----
-1336

query I rowsort
SELECT DISTINCT + ( - 17 )
----
-17

query I rowsort
SELECT ALL 82 * + 4 - + 39 AS col1
----
289

query I rowsort
SELECT ALL - + 32 * 78
----
-2496

query I rowsort
SELECT - 3 * - 83
----
249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5658
SELECT + CASE + 5 WHEN 83 THEN 71 WHEN - 82 * COALESCE ( - CASE 68 WHEN + 55 * 19 THEN NULL WHEN COUNT( + 90 ) THEN 32 ELSE NULL END, + 87 ) THEN CAST( NULL AS SIGNED ) + + 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5658
SELECT + CASE + 5 WHEN 83 THEN 71 WHEN - 82 * COALESCE ( - CASE 68 WHEN + 55 * 19 THEN NULL WHEN COUNT ( + 90 ) THEN 32 ELSE NULL END, + 87 ) THEN CAST ( NULL AS INTEGER ) + + 67 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5659
SELECT + - 3 * NULLIF ( - 38 DIV - 58, COUNT( * ) + - 34 * + 53 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5659
SELECT + - 3 * NULLIF ( - 38 / - 58, COUNT ( * ) + - 34 * + 53 ) AS col0
----
0

query I rowsort
SELECT NULLIF ( + 64, + 48 ) AS col2
----
64

query I rowsort
SELECT - ( 38 ) * 98
----
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT ALL + NULLIF ( - - 27, COUNT( * ) ) * 3 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL + NULLIF ( - - 27, COUNT ( * ) ) * 3 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT COALESCE ( - 21, COUNT( - 80 ) * ( 12 ) + 0, + 88 )
----
-21

skipif mysql # not compatible
query I rowsort label-5663
SELECT COALESCE ( - 21, COUNT ( - 80 ) * ( 12 ) + 0, + 88 )
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5664
SELECT DISTINCT 53 * - 25 * + 18 + - 73 DIV 77 col1
----
-23850

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT 53 * - 25 * + 18 + - 73 / 77 col1
----
-23850

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT DISTINCT + 3 * + 26 * SUM( DISTINCT 66 )
----
5148

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT + 3 * + 26 * SUM ( DISTINCT 66 )
----
5148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5666
SELECT - 36 DIV - + MAX( ALL - 28 )
----
-1

skipif mysql # not compatible
query I rowsort label-5666
SELECT - 36 / - + MAX ( ALL - 28 )
----
-1

query I rowsort
SELECT ALL + 21 * + 90
----
1890

query I rowsort
SELECT COALESCE ( 28, + 35 + + 59, - 50, 31 * - 51 )
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5669
SELECT 30 * - COUNT( * ) + 62 DIV 7 col2
----
-22

skipif mysql # not compatible
query I rowsort label-5669
SELECT 30 * - COUNT ( * ) + 62 / 7 col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL - COUNT( * ) * 80 + 60 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL - COUNT ( * ) * 80 + 60 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT DISTINCT + NULLIF ( + + 96, 7 * ( + 54 ) + MAX( ALL 24 ) ) * 21 AS col1
----
2016

skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT + NULLIF ( + + 96, 7 * ( + 54 ) + MAX ( ALL 24 ) ) * 21 AS col1
----
2016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5672
SELECT - CAST( NULL AS SIGNED ) + - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT - CAST ( NULL AS INTEGER ) + - 16 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5673
SELECT - 6 DIV COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5673
SELECT - 6 / COUNT ( * ) AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5674
SELECT ALL CAST( - 63 AS SIGNED ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL CAST ( - 63 AS INTEGER ) AS col2
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5675
SELECT - 93 + + 49 DIV COUNT( * ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-5675
SELECT - 93 + + 49 / COUNT ( * ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5676
SELECT - NULLIF ( - ( - CAST( COUNT( ALL + 83 ) AS SIGNED ) ), 58 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5676
SELECT - NULLIF ( - ( - CAST ( COUNT ( ALL + 83 ) AS INTEGER ) ), 58 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT NULLIF ( + 60, + 85 )
----
60

query I rowsort
SELECT - 70 + 61
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5679
SELECT - 46 + + ( 67 ) + - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5679
SELECT - 46 + + ( 67 ) + - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT ALL + COUNT( * ) + CASE COALESCE ( - 13, 44 ) WHEN - 75 THEN NULL WHEN COUNT( * ) / 84 THEN 20 WHEN - 40 * - CASE 72 WHEN 99 THEN - 14 * + 69 WHEN - 42 - 49 THEN NULL WHEN + 40 THEN 48 * - 10 ELSE NULL END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL + COUNT ( * ) + CASE COALESCE ( - 13, 44 ) WHEN - 75 THEN NULL WHEN COUNT ( * ) / 84 THEN 20 WHEN - 40 * - CASE 72 WHEN 99 THEN - 14 * + 69 WHEN - 42 - 49 THEN NULL WHEN + 40 THEN 48 * - 10 ELSE NULL END THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT - MAX( DISTINCT + 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5681
SELECT - MAX ( DISTINCT + 40 ) AS col0
----
-40

query I rowsort
SELECT ALL 34 - 91
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5683
SELECT + + CAST( NULL AS SIGNED ) - 26 - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT + + CAST ( NULL AS INTEGER ) - 26 - 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5684
SELECT - - 8 * - COALESCE ( - 54, 31 ) DIV ( - COUNT( * ) ) AS col2
----
-432

skipif mysql # not compatible
query I rowsort label-5684
SELECT - - 8 * - COALESCE ( - 54, 31 ) / ( - COUNT ( * ) ) AS col2
----
-432

query I rowsort
SELECT ALL 63 * - 69
----
-4347

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT DISTINCT - 64 * + + ( + COUNT( * ) ) - ( + 32 ) col2
----
-96

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT - 64 * + + ( + COUNT ( * ) ) - ( + 32 ) col2
----
-96

query I rowsort
SELECT ALL + 53 * + 49
----
2597

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT DISTINCT COUNT( - - 27 )
----
1

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT COUNT ( - - 27 )
----
1

query I rowsort
SELECT DISTINCT 48 * 75 AS col0
----
3600

query I rowsort
SELECT DISTINCT + + ( + 55 )
----
55

query I rowsort
SELECT + - 7 + 30 AS col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5692
SELECT ALL + 38 DIV - 7 * COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL + 38 / - 7 * COUNT ( * ) AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5693
SELECT + + COUNT( * ) DIV - + 13 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5693
SELECT + + COUNT ( * ) / - + 13 AS col1
----
0

query I rowsort
SELECT + + 27 * - 17 AS col1
----
-459

onlyif mysql # DIV for integer division: 
query I rowsort label-5695
SELECT ALL ( - ( - 89 ) ) DIV - ( - 63 + 61 )
----
44

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL ( - ( - 89 ) ) / - ( - 63 + 61 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5696
SELECT 16 * - + CASE 65 WHEN + 89 THEN NULL WHEN + 89 / - COUNT( * ) + + 70 * - ( + 25 * - 25 ) THEN AVG ( + 8 ) ELSE NULL END + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT 16 * - + CASE 65 WHEN + 89 THEN NULL WHEN + 89 / - COUNT ( * ) + + 70 * - ( + 25 * - 25 ) THEN AVG ( + 8 ) ELSE NULL END + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 57 * - 68 AS col0
----
3876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT - 37 * + - CAST( NULL AS SIGNED ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT - 37 * + - CAST ( NULL AS INTEGER ) * 80
----
NULL

query I rowsort
SELECT ALL 7 + + 34 + 65 * ( 51 )
----
3356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5700
SELECT + + COUNT( * ) * - + 25 + CAST( + 57 AS SIGNED ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5700
SELECT + + COUNT ( * ) * - + 25 + CAST ( + 57 AS INTEGER ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT ALL + COUNT( * ) * 50
----
50

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL + COUNT ( * ) * 50
----
50

query I rowsort
SELECT ( - ( + + 90 ) ) + 86
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT ALL 66 + + MAX( + - 66 ) + - COUNT( - 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL 66 + + MAX ( + - 66 ) + - COUNT ( - 69 )
----
-1

query I rowsort
SELECT DISTINCT 24 + - 27
----
-3

query I rowsort
SELECT DISTINCT + ( + + 61 ) + - 70
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5706
SELECT 26 * - 50 + + 13 + + 19 DIV + 87
----
-1287

skipif mysql # not compatible
query I rowsort label-5706
SELECT 26 * - 50 + + 13 + + 19 / + 87
----
-1287

query II rowsort
SELECT ALL - 43 col1, 38 + + 89 - 60 * - 68 AS col2
----
-43
4207

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL COUNT( * ) * 83 col2
----
83

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL COUNT ( * ) * 83 col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT DISTINCT + COUNT( * ) + CASE + 73 WHEN - 21 * 34 THEN NULL ELSE + COUNT( * ) END AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT + COUNT ( * ) + CASE + 73 WHEN - 21 * 34 THEN NULL ELSE + COUNT ( * ) END AS col2
----
2

query I rowsort
SELECT ALL - 63 + - + 23
----
-86

query I rowsort
SELECT 36 + + 58 + 43
----
137

query I rowsort
SELECT ALL 52 - 66 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-5713
SELECT DISTINCT 53 AS col0, - COUNT( * ) + + - 47 AS col1
----
53
-48

skipif mysql # not compatible
query II rowsort label-5713
SELECT DISTINCT 53 AS col0, - COUNT ( * ) + + - 47 AS col1
----
53
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5714
SELECT ALL - 54 * + CAST( NULL AS SIGNED ) / + + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL - 54 * + CAST ( NULL AS INTEGER ) / + + 44 AS col0
----
NULL

query I rowsort
SELECT 42 + + 12
----
54

query I rowsort
SELECT 51 + - + 20 + + ( 58 ) + 63
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-5717
SELECT 51 * ( - - 29 ) DIV - 72
----
-20

skipif mysql # not compatible
query I rowsort label-5717
SELECT 51 * ( - - 29 ) / - 72
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5718
SELECT - CAST( - 50 AS SIGNED ) * + 96
----
4800

skipif mysql # not compatible
query I rowsort label-5718
SELECT - CAST ( - 50 AS INTEGER ) * + 96
----
4800

query I rowsort
SELECT ALL - - 3 * + 97 AS col1
----
291

query I rowsort
SELECT ALL + 68 * + 2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT - 22 * - 10 + MIN( - 29 ) + 70 * 63 col2
----
4601

skipif mysql # not compatible
query I rowsort label-5721
SELECT - 22 * - 10 + MIN ( - 29 ) + 70 * 63 col2
----
4601

query I rowsort
SELECT + 31 + + 65 col0
----
96

query II rowsort
SELECT - - 43, - 88 AS col2
----
43
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL - COALESCE ( - - CASE + - 72 WHEN - 67 * - 86 THEN 60 END, - 89, - 78 + SUM( DISTINCT 82 ) )
----
89

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL - COALESCE ( - - CASE + - 72 WHEN - 67 * - 86 THEN 60 END, - 89, - 78 + SUM ( DISTINCT 82 ) )
----
89

query I rowsort
SELECT + 44 + + + CASE - 84 WHEN - 56 * - 66 THEN 56 WHEN + 65 THEN 83 + - 19 ELSE - 91 END
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-5726
SELECT + 22 AS col1, + COUNT( * )
----
22
1

skipif mysql # not compatible
query II rowsort label-5726
SELECT + 22 AS col1, + COUNT ( * )
----
22
1

query II rowsort
SELECT ALL + 76 AS col1, 33
----
76
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT COUNT( * ) * + COALESCE ( - 26, - MAX( 56 ) - + 59 * COUNT( * ) ) col2
----
-26

skipif mysql # not compatible
query I rowsort label-5728
SELECT COUNT ( * ) * + COALESCE ( - 26, - MAX ( 56 ) - + 59 * COUNT ( * ) ) col2
----
-26

query II rowsort
SELECT ALL 83 AS col1, 33
----
83
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5730
SELECT - 56, MAX( DISTINCT - 63 ) * - 50 AS col2
----
-56
3150

skipif mysql # not compatible
query II rowsort label-5730
SELECT - 56, MAX ( DISTINCT - 63 ) * - 50 AS col2
----
-56
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT ALL ( + MAX( - 73 ) ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL ( + MAX ( - 73 ) ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT 99 * - SUM( DISTINCT - + 60 )
----
5940

skipif mysql # not compatible
query I rowsort label-5732
SELECT 99 * - SUM ( DISTINCT - + 60 )
----
5940

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT - MAX( 95 ) + + + ( COUNT( * ) )
----
-94

skipif mysql # not compatible
query I rowsort label-5733
SELECT - MAX ( 95 ) + + + ( COUNT ( * ) )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT 89 + CAST( + 23 AS SIGNED ) col2
----
112

skipif mysql # not compatible
query I rowsort label-5734
SELECT 89 + CAST ( + 23 AS INTEGER ) col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT ALL - - COUNT( * ) + - 56 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL - - COUNT ( * ) + - 56 AS col2
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5736
SELECT ALL COUNT( DISTINCT - + 77 ) * COUNT( * ) DIV - 50 + - 92 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL COUNT ( DISTINCT - + 77 ) * COUNT ( * ) / - 50 + - 92 AS col0
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5737
SELECT - COUNT( * ) DIV + + 88
----
0

skipif mysql # not compatible
query I rowsort label-5737
SELECT - COUNT ( * ) / + + 88
----
0

query I rowsort
SELECT ALL 4 + 98 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT + - SUM( DISTINCT - 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5739
SELECT + - SUM ( DISTINCT - 2 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT ALL + - COUNT( * ) + - + 95
----
-96

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL + - COUNT ( * ) + - + 95
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5741
SELECT ALL 72 + 62 DIV + + 3 col0
----
92

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL 72 + 62 / + + 3 col0
----
92

query I rowsort
SELECT DISTINCT - 21 * + ( - 18 ) * + - 96 AS col0
----
-36288

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT ALL NULLIF ( - 46, + COUNT( * ) ) + + 94
----
48

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL NULLIF ( - 46, + COUNT ( * ) ) + + 94
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5744
SELECT 17 DIV COUNT( + - 27 ) col1
----
17

skipif mysql # not compatible
query I rowsort label-5744
SELECT 17 / COUNT ( + - 27 ) col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5745
SELECT ALL NULLIF ( - ( - + 40 ), + + MIN( + 23 ) ) + - 68 DIV 67 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL NULLIF ( - ( - + 40 ), + + MIN ( + 23 ) ) + - 68 / 67 AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5746
SELECT + 44 DIV 69 * 22 - + NULLIF ( 81, + 77 + 78 DIV 53 ) - 73 AS col0
----
-154

skipif mysql # not compatible
query I rowsort label-5746
SELECT + 44 / 69 * 22 - + NULLIF ( 81, + 77 + 78 / 53 ) - 73 AS col0
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT + MAX( + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-5747
SELECT + MAX ( + 9 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5748
SELECT 7 DIV - + 49 AS col1, + 47 * - COUNT( * ) * 39 col2
----
0
-1833

skipif mysql # not compatible
query II rowsort label-5748
SELECT 7 / - + 49 AS col1, + 47 * - COUNT ( * ) * 39 col2
----
0
-1833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5749
SELECT ALL CAST( 0 AS SIGNED ) * - 83 + 73 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL CAST ( 0 AS INTEGER ) * - 83 + 73 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT 13 * + 62 * + COUNT( * ) * + + COUNT( * )
----
806

skipif mysql # not compatible
query I rowsort label-5750
SELECT 13 * + 62 * + COUNT ( * ) * + + COUNT ( * )
----
806

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT - 0 * + ( + COUNT( * ) ) + + 4 + 21
----
25

skipif mysql # not compatible
query I rowsort label-5751
SELECT - 0 * + ( + COUNT ( * ) ) + + 4 + 21
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT + MAX( + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-5752
SELECT + MAX ( + 94 )
----
94

query I rowsort
SELECT 67 * + COALESCE ( - - 9, - - 54 ) col0
----
603

query I rowsort
SELECT ( - - 83 ) AS col2
----
83

query I rowsort
SELECT ALL + ( 95 ) col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5756
SELECT DISTINCT COUNT( * ) DIV + ( 55 ) * COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT COUNT ( * ) / + ( 55 ) * COUNT ( * ) col0
----
0

query I rowsort
SELECT ALL - 82 * - 55 - + ( - 58 ) * 37 col2
----
6656

query I rowsort
SELECT - 9 / - - CASE + 84 WHEN + 35 + + 37 THEN + 22 WHEN - 1 - 21 THEN NULL END
----
NULL

query II rowsort
SELECT - 78 * + + 19 col1, 15 * + + COALESCE ( 72, 69 + - 3 * 17 ) - 20 * 46
----
-1482
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5760
SELECT DISTINCT - + 84 + - + CAST( + 71 AS SIGNED ) + + 92 * 41
----
3617

skipif mysql # not compatible
query I rowsort label-5760
SELECT DISTINCT - + 84 + - + CAST ( + 71 AS INTEGER ) + + 92 * 41
----
3617

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT ALL - 21 + + + 68 + - AVG ( - 36 ) + - CASE + COUNT( * ) WHEN + 89 THEN 44 * - COUNT( * ) END * 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL - 21 + + + 68 + - AVG ( - 36 ) + - CASE + COUNT ( * ) WHEN + 89 THEN 44 * - COUNT ( * ) END * 78 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 63 * - 15
----
-945

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5763
SELECT - + AVG ( + 71 ) / - CAST( NULL AS DECIMAL ) * - NULLIF ( - 47, + 83 ) * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-5763
SELECT - + AVG ( + 71 ) / - CAST ( NULL AS REAL ) * - NULLIF ( - 47, + 83 ) * 50
----
NULL

query I rowsort
SELECT - 49 + + 40 + + 82 col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5765
SELECT - - 24 * 3 * COUNT( * ) DIV + 2 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5765
SELECT - - 24 * 3 * COUNT ( * ) / + 2 AS col1
----
36

query I rowsort
SELECT ALL - 19 + 88 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL + MIN( 2 ) + + - 25 * - CASE - 94 WHEN - 17 THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL + MIN ( 2 ) + + - 25 * - CASE - 94 WHEN - 17 THEN COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT + COUNT( ALL - 31 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5768
SELECT + COUNT ( ALL - 31 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT ALL + + 8 + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL + + 8 + COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT - 81 - - COUNT( * ) col2
----
-80

skipif mysql # not compatible
query I rowsort label-5770
SELECT - 81 - - COUNT ( * ) col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5771
SELECT - ( - CASE - + 3 WHEN 96 THEN + CAST( NULL AS SIGNED ) WHEN ( - 79 ) THEN NULL ELSE 14 END ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-5771
SELECT - ( - CASE - + 3 WHEN 96 THEN + CAST ( NULL AS INTEGER ) WHEN ( - 79 ) THEN NULL ELSE 14 END ) AS col2
----
14

query I rowsort
SELECT 62 * 36 * + - 32 - - NULLIF ( + 16, + 0 )
----
-71408

query I rowsort
SELECT + 28 * + 88 + - + 39 AS col1
----
2425

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT COALESCE ( - ( 0 ), - + 83 + - COUNT( DISTINCT + 28 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5774
SELECT COALESCE ( - ( 0 ), - + 83 + - COUNT ( DISTINCT + 28 ) ) AS col2
----
0

query I rowsort
SELECT 63 * + + 42 + 1 + - 57 + + 70 + 23 * + 41
----
3603

query I rowsort
SELECT + 24 * - 91 AS col2
----
-2184

query I rowsort
SELECT DISTINCT - 90 * + + 43 AS col1
----
-3870

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT DISTINCT + ( + COALESCE ( - + 19, - NULLIF ( 5, + COUNT( * ) ) * COUNT( * ) + 1 * - 32 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT + ( + COALESCE ( - + 19, - NULLIF ( 5, + COUNT ( * ) ) * COUNT ( * ) + 1 * - 32 ) )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT - MAX( ALL 14 ) * 80 + - + 60
----
-1180

skipif mysql # not compatible
query I rowsort label-5779
SELECT - MAX ( ALL 14 ) * 80 + - + 60
----
-1180

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT CASE 39 WHEN + - COUNT( * ) THEN NULL WHEN + 11 THEN + - COUNT( * ) * 39 - 37 * + 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT CASE 39 WHEN + - COUNT ( * ) THEN NULL WHEN + 11 THEN + - COUNT ( * ) * 39 - 37 * + 51 END AS col0
----
NULL

query I rowsort
SELECT + 23 * + ( - - 10 )
----
230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5782
SELECT 0 * COALESCE ( - CAST( NULL AS SIGNED ), + - 55, - 3 * + COUNT( * ) ) + + 78 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5782
SELECT 0 * COALESCE ( - CAST ( NULL AS INTEGER ), + - 55, - 3 * + COUNT ( * ) ) + + 78 AS col0
----
78

query I rowsort
SELECT - 52 * - 76 AS col0
----
3952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5784
SELECT COALESCE ( + - 11, + + NULLIF ( CAST( - - 66 AS SIGNED ), 96 ) * 31, ( 72 ) * COUNT( * ) + 34 * + 14 )
----
-11

skipif mysql # not compatible
query I rowsort label-5784
SELECT COALESCE ( + - 11, + + NULLIF ( CAST ( - - 66 AS INTEGER ), 96 ) * 31, ( 72 ) * COUNT ( * ) + 34 * + 14 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT + 40 * - - SUM( - 31 ) * + - 95 + + COALESCE ( 84, + 17 + + COUNT( * ) * 0, 3 )
----
117884

skipif mysql # not compatible
query I rowsort label-5785
SELECT + 40 * - - SUM ( - 31 ) * + - 95 + + COALESCE ( 84, + 17 + + COUNT ( * ) * 0, 3 )
----
117884

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT + COALESCE ( 71, 76, + COUNT( * ) + - 10 - 99 * + 7 )
----
71

skipif mysql # not compatible
query I rowsort label-5786
SELECT + COALESCE ( 71, 76, + COUNT ( * ) + - 10 - 99 * + 7 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT + SUM( + + 36 ) + - 22 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-5787
SELECT + SUM ( + + 36 ) + - 22 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT + MAX( NULLIF ( + + 19, + - 70 ) )
----
19

skipif mysql # not compatible
query I rowsort label-5788
SELECT + MAX ( NULLIF ( + + 19, + - 70 ) )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5789
SELECT + COUNT( * ) DIV + 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5789
SELECT + COUNT ( * ) / + 51 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5790
SELECT ALL 16 DIV 16
----
1

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL 16 / 16
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5791
SELECT + 13 * AVG ( - + 11 ) + + 50 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5791
SELECT + 13 * AVG ( - + 11 ) + + 50 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT + ( CASE + + 18 WHEN + - ( - COUNT( * ) ) THEN 7 + - 72 / + COUNT( * ) WHEN 40 THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5792
SELECT + ( CASE + + 18 WHEN + - ( - COUNT ( * ) ) THEN 7 + - 72 / + COUNT ( * ) WHEN 40 THEN NULL END ) AS col2
----
NULL

query I rowsort
SELECT + + 97 * - + 77 + 16 AS col1
----
-7453

query I rowsort
SELECT ALL 70 * + 92
----
6440

query I rowsort
SELECT DISTINCT ( + - 19 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT - MAX( DISTINCT + - 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5796
SELECT - MAX ( DISTINCT + - 6 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5797
SELECT - 1 col1, 66 + CASE ( - 35 ) WHEN COUNT( * ) * COALESCE ( 65 * 74, 53 * + 75 ) THEN NULL WHEN + COUNT( DISTINCT - 93 ) THEN NULL ELSE + COUNT( * ) END
----
-1
67

skipif mysql # not compatible
query II rowsort label-5797
SELECT - 1 col1, 66 + CASE ( - 35 ) WHEN COUNT ( * ) * COALESCE ( 65 * 74, 53 * + 75 ) THEN NULL WHEN + COUNT ( DISTINCT - 93 ) THEN NULL ELSE + COUNT ( * ) END
----
-1
67

query I rowsort
SELECT DISTINCT - 83 + + 92 + + 22 * + 83
----
1835

query I rowsort
SELECT - + 14 * + 91
----
-1274

query I rowsort
SELECT - - ( - - 79 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5801
SELECT 82, + 27 / - - 71 * 41 + + 67 + - 97 * + NULLIF ( ( ( CAST( CASE 62 WHEN + ( - COUNT( * ) ) THEN 86 END AS SIGNED ) ) ), 68 / + 83 + 69 ) AS col1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-5801
SELECT 82, + 27 / - - 71 * 41 + + 67 + - 97 * + NULLIF ( ( ( CAST ( CASE 62 WHEN + ( - COUNT ( * ) ) THEN 86 END AS INTEGER ) ) ), 68 / + 83 + 69 ) AS col1
----
82
NULL

query I rowsort
SELECT ALL - 34 + + + 92 + + 97 AS col2
----
155

query I rowsort
SELECT + 29 + + 4 + 26
----
59

query II rowsort
SELECT ALL - 62 AS col0, + ( - NULLIF ( + 7, - COALESCE ( 97, + 70 ) ) ) AS col2
----
-62
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT + 43 + 51 * + 89 + - - MIN( ALL + 73 ) AS col0
----
4655

skipif mysql # not compatible
query I rowsort label-5805
SELECT + 43 + 51 * + 89 + - - MIN ( ALL + 73 ) AS col0
----
4655

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT DISTINCT - + MAX( + + ( + 24 ) ) + + 27 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5806
SELECT DISTINCT - + MAX ( + + ( + 24 ) ) + + 27 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT ALL - SUM( + 19 ) + 64 + - 98 * - CASE 17 WHEN - 18 THEN - CASE 56 WHEN + 95 THEN CASE 35 WHEN 58 THEN + 43 WHEN + 55 THEN 15 * + ( - 98 ) + - 58 ELSE NULL END + - COUNT( ALL 21 ) END * CASE + 61 WHEN + ( + 76 ) THEN - 74 / + 35 WHEN COUNT( * ) * ( 49 ) - 32 / 45 THEN NULL ELSE NULL END + + COUNT( DISTINCT 23 ) * 16 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL - SUM ( + 19 ) + 64 + - 98 * - CASE 17 WHEN - 18 THEN - CASE 56 WHEN + 95 THEN CASE 35 WHEN 58 THEN + 43 WHEN + 55 THEN 15 * + ( - 98 ) + - 58 ELSE NULL END + - COUNT ( ALL 21 ) END * CASE + 61 WHEN + ( + 76 ) THEN - 74 / + 35 WHEN COUNT ( * ) * ( 49 ) - 32 / 45 THEN NULL ELSE NULL END + + COUNT ( DISTINCT 23 ) * 16 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5808
SELECT ALL + + 6 + - COUNT( DISTINCT - 8 ) + + ( + + 76 ) DIV + 11 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL + + 6 + - COUNT ( DISTINCT - 8 ) + + ( + + 76 ) / + 11 AS col2
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5809
SELECT ALL COUNT( * ) DIV + 89 + + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL COUNT ( * ) / + 89 + + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT DISTINCT 44 + + COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT 44 + + COUNT ( * ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT - + ( 76 ) + + - 93 + + 69 * - 29 * COUNT( * )
----
-2170

skipif mysql # not compatible
query I rowsort label-5811
SELECT - + ( 76 ) + + - 93 + + 69 * - 29 * COUNT ( * )
----
-2170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5812
SELECT ALL - - 77 - CAST( NULL AS SIGNED ) + + ( - 73 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL - - 77 - CAST ( NULL AS INTEGER ) + + ( - 73 ) AS col0
----
NULL

query I rowsort
SELECT - 7 + - ( 33 )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5814
SELECT - CAST( NULL AS SIGNED ) AS col0, + 42 * + + 8 col2
----
NULL
336

skipif mysql # not compatible
query II rowsort label-5814
SELECT - CAST ( NULL AS INTEGER ) AS col0, + 42 * + + 8 col2
----
NULL
336

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT ALL - ( - - 28 ) * - SUM( 57 ) + - + 83 * + + COUNT( * ) - - 33 * + 87
----
4384

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL - ( - - 28 ) * - SUM ( 57 ) + - + 83 * + + COUNT ( * ) - - 33 * + 87
----
4384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5816
SELECT ALL + 55 / - COUNT( DISTINCT + 34 ) - CAST( NULL AS SIGNED ) + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL + 55 / - COUNT ( DISTINCT + 34 ) - CAST ( NULL AS INTEGER ) + + 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5817
SELECT ALL + CASE + 28 WHEN - CASE - COALESCE ( - + 8, + CAST( - 52 AS SIGNED ) * 67 + 73, + 67 ) WHEN + COALESCE ( NULLIF ( 81, - 95 ), + 99 ) THEN - 3 ELSE NULL END THEN NULL ELSE - COUNT( * ) + MAX( ( CASE 60 WHEN + 73 THEN 64 * 29 WHEN - 36 THEN NULL ELSE NULL END ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL + CASE + 28 WHEN - CASE - COALESCE ( - + 8, + CAST ( - 52 AS INTEGER ) * 67 + 73, + 67 ) WHEN + COALESCE ( NULLIF ( 81, - 95 ), + 99 ) THEN - 3 ELSE NULL END THEN NULL ELSE - COUNT ( * ) + MAX ( ( CASE 60 WHEN + 73 THEN 64 * 29 WHEN - 36 THEN NULL ELSE NULL END ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5818
SELECT DISTINCT + 74 AS col1, COUNT( * )
----
74
1

skipif mysql # not compatible
query II rowsort label-5818
SELECT DISTINCT + 74 AS col1, COUNT ( * )
----
74
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT - 29 * COUNT( * ) * CASE + ( - 99 ) WHEN - 67 * - 59 THEN + 63 + MAX( 4 ) * + 89 WHEN - COUNT( * ) THEN NULL ELSE 76 END col0
----
-2204

skipif mysql # not compatible
query I rowsort label-5819
SELECT - 29 * COUNT ( * ) * CASE + ( - 99 ) WHEN - 67 * - 59 THEN + 63 + MAX ( 4 ) * + 89 WHEN - COUNT ( * ) THEN NULL ELSE 76 END col0
----
-2204

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5820
SELECT CAST( NULL AS SIGNED ) AS col1, 18 * - 3 - - 67 + 13 * - + 70 * 40 AS col0
----
NULL
-36387

skipif mysql # not compatible
query II rowsort label-5820
SELECT CAST ( NULL AS INTEGER ) AS col1, 18 * - 3 - - 67 + 13 * - + 70 * 40 AS col0
----
NULL
-36387

onlyif mysql # aggregate syntax: 
query II rowsort label-5821
SELECT + COALESCE ( 9, + - COUNT( * ), + 47 ) AS col2, 36 * - 74 AS col1
----
9
-2664

skipif mysql # not compatible
query II rowsort label-5821
SELECT + COALESCE ( 9, + - COUNT ( * ), + 47 ) AS col2, 36 * - 74 AS col1
----
9
-2664

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT + SUM( ALL - - 13 ) * 49 * + 44 - - ( + ( 41 ) ) AS col1
----
28069

skipif mysql # not compatible
query I rowsort label-5822
SELECT + SUM ( ALL - - 13 ) * 49 * + 44 - - ( + ( 41 ) ) AS col1
----
28069

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT ALL + 41 * - + ( + COUNT( * ) )
----
-41

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL + 41 * - + ( + COUNT ( * ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT ALL + COUNT( ALL + 83 )
----
1

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL + COUNT ( ALL + 83 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5825
SELECT ALL + 22 AS col0, - 11 + + 35 - - 61 + 80 + + NULLIF ( - MAX( - 27 ), 15 * - 13 ) AS col0
----
22
192

skipif mysql # not compatible
query II rowsort label-5825
SELECT ALL + 22 AS col0, - 11 + + 35 - - 61 + 80 + + NULLIF ( - MAX ( - 27 ), 15 * - 13 ) AS col0
----
22
192

query I rowsort
SELECT ALL 34 * - 33 + - 31
----
-1153

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT + + MAX( 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-5827
SELECT + + MAX ( 97 ) AS col2
----
97

query I rowsort
SELECT - 68 + - - 24
----
-44

query I rowsort
SELECT + - 34 - 15 + + 85
----
36

query II rowsort
SELECT DISTINCT - - 26 AS col1, 19 * 53 + + 69 + - - 83 AS col0
----
26
1159

onlyif mysql # DIV for integer division: 
query II rowsort label-5831
SELECT - + 10 col2, + 13 DIV - 17
----
-10
0

skipif mysql # not compatible
query II rowsort label-5831
SELECT - + 10 col2, + 13 / - 17
----
-10
0

query II rowsort
SELECT ALL 69 AS col0, - 55 AS col1
----
69
-55

query I rowsort
SELECT - 13 * - + COALESCE ( - - 48, 11 + 34 )
----
624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5834
SELECT DISTINCT - + COALESCE ( + 81, CASE 70 WHEN + COALESCE ( - CASE 7 WHEN ( - 59 ) * - CASE + 63 WHEN + 11 * MAX( ALL + 30 ) + + 10 THEN NULL WHEN COUNT( * ) THEN NULL WHEN + COUNT( * ) THEN - 46 ELSE 78 - + SUM( - 39 ) END + ( - 6 ) THEN NULL WHEN + COALESCE ( 58, 63, - 86 + AVG ( - 86 ) ) THEN + 48 END, + CAST( - 35 AS SIGNED ) + - CAST( + ( - 58 ) AS SIGNED ) ) THEN - 66 + + 15 END * ( - 50 - + COUNT( * ) ) + 21 ) + COUNT( * ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT - + COALESCE ( + 81, CASE 70 WHEN + COALESCE ( - CASE 7 WHEN ( - 59 ) * - CASE + 63 WHEN + 11 * MAX ( ALL + 30 ) + + 10 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN + COUNT ( * ) THEN - 46 ELSE 78 - + SUM ( - 39 ) END + ( - 6 ) THEN NULL WHEN + COALESCE ( 58, 63, - 86 + AVG ( - 86 ) ) THEN + 48 END, + CAST ( - 35 AS INTEGER ) + - CAST ( + ( - 58 ) AS INTEGER ) ) THEN - 66 + + 15 END * ( - 50 - + COUNT ( * ) ) + 21 ) + COUNT ( * ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT ALL CASE + + ( - ( - 64 ) ) WHEN 69 - - 95 THEN 49 WHEN + COUNT( * ) THEN + 96 + 77 END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL CASE + + ( - ( - 64 ) ) WHEN 69 - - 95 THEN 49 WHEN + COUNT ( * ) THEN + 96 + 77 END * - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL 84 + 41 + - 22 * + 48, - 31 + - 97 AS col2
----
-931
-128

query II rowsort
SELECT - 53 AS col1, 84 * + 12 AS col2
----
-53
1008

query I rowsort
SELECT - + ( - - ( - 30 ) ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT DISTINCT COUNT( * ) - - 79
----
80

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT COUNT ( * ) - - 79
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5840
SELECT - ( + 92 ), COUNT( * ) AS col2
----
-92
1

skipif mysql # not compatible
query II rowsort label-5840
SELECT - ( + 92 ), COUNT ( * ) AS col2
----
-92
1

query II rowsort
SELECT 96, + 75 * + 19 AS col0
----
96
1425

onlyif mysql # aggregate syntax: 
query II rowsort label-5842
SELECT 2 col2, + COUNT( * ) + + 85 + - 78 * 40
----
2
-3034

skipif mysql # not compatible
query II rowsort label-5842
SELECT 2 col2, + COUNT ( * ) + + 85 + - 78 * 40
----
2
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT COALESCE ( + + 62, 66 ) * + - CASE - + MIN( DISTINCT 45 ) WHEN + 78 + 43 THEN - 57 WHEN - 58 THEN NULL END - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5843
SELECT COALESCE ( + + 62, 66 ) * + - CASE - + MIN ( DISTINCT 45 ) WHEN + 78 + 43 THEN - 57 WHEN - 58 THEN NULL END - 65 AS col2
----
NULL

query I rowsort
SELECT 36 * - + COALESCE ( ( - 90 ), - - 5, - 0 ) AS col1
----
3240

onlyif mysql # aggregate syntax: 
query II rowsort label-5845
SELECT ALL COUNT( * ) * - 52 AS col1, - 60
----
-52
-60

skipif mysql # not compatible
query II rowsort label-5845
SELECT ALL COUNT ( * ) * - 52 AS col1, - 60
----
-52
-60

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5846
SELECT CAST( NULL AS SIGNED ) - - CAST( NULL AS DECIMAL ) + 23 * 78 * AVG ( - 99 ) * + + 89 * 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5846
SELECT CAST ( NULL AS INTEGER ) - - CAST ( NULL AS REAL ) + 23 * 78 * AVG ( - 99 ) * + + 89 * 74 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 27 * ( + 51 ) AS col0
----
1377

query I rowsort
SELECT 6 + - 43 col1
----
-37

query I rowsort
SELECT 42 - - + 91 - + - 2 + 20 * - 5 * - 80 * 45 * 25 AS col2
----
9000135

onlyif mysql # DIV for integer division: 
query II rowsort label-5850
SELECT 45 DIV + 37 AS col0, + 23 AS col2
----
1
23

skipif mysql # not compatible
query II rowsort label-5850
SELECT 45 / + 37 AS col0, + 23 AS col2
----
1
23

query I rowsort
SELECT - 82 * + 11 + 6 AS col0
----
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT DISTINCT + COUNT( * ) * + 59 * + 46 AS col0
----
2714

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT + COUNT ( * ) * + 59 * + 46 AS col0
----
2714

query I rowsort
SELECT 37 * - 12 * + - 95 + - - 70 AS col2
----
42250

onlyif mysql # DIV for integer division: 
query I rowsort label-5854
SELECT 70 DIV - 7
----
-10

skipif mysql # not compatible
query I rowsort label-5854
SELECT 70 / - 7
----
-10

query I rowsort
SELECT ALL + 10 + - + 95
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5856
SELECT ALL CAST( + 70 AS SIGNED ) * + + CASE + - 31 WHEN - 66 THEN - 34 WHEN + 31 * COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL CAST ( + 70 AS INTEGER ) * + + CASE + - 31 WHEN - 66 THEN - 34 WHEN + 31 * COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT 51 + - SUM( DISTINCT - 52 ) AS col2
----
103

skipif mysql # not compatible
query I rowsort label-5857
SELECT 51 + - SUM ( DISTINCT - 52 ) AS col2
----
103

query I rowsort
SELECT DISTINCT - NULLIF ( - - ( + - 3 ), + + 13 )
----
3

query I rowsort
SELECT DISTINCT - 65 + 26
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5860
SELECT COALESCE ( + 5, - 75 - - - CAST( - CASE + - 32 WHEN + - 23 THEN + 65 WHEN 95 + AVG ( ALL CAST( NULL AS SIGNED ) ) THEN 4 ELSE - COUNT( * ) END AS SIGNED ) ) * + CASE - AVG ( ALL - 2 ) WHEN 86 THEN + 56 WHEN 72 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5860
SELECT COALESCE ( + 5, - 75 - - - CAST ( - CASE + - 32 WHEN + - 23 THEN + 65 WHEN 95 + AVG ( ALL CAST ( NULL AS INTEGER ) ) THEN 4 ELSE - COUNT ( * ) END AS INTEGER ) ) * + CASE - AVG ( ALL - 2 ) WHEN 86 THEN + 56 WHEN 72 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5861
SELECT CAST( - - 24 AS SIGNED ) + 41
----
65

skipif mysql # not compatible
query I rowsort label-5861
SELECT CAST ( - - 24 AS INTEGER ) + 41
----
65

query II rowsort
SELECT - 89 * + 56, 75 AS col1
----
-4984
75

query I rowsort
SELECT ALL - 34 + - CASE - 86 WHEN 41 THEN 68 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 64 + ( - + 25 )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5865
SELECT DISTINCT + + NULLIF ( + 6, + 55 ) DIV - - 14 + + + 70 + + COUNT( * ) * - 88 + 80 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT + + NULLIF ( + 6, + 55 ) / - - 14 + + + 70 + + COUNT ( * ) * - 88 + 80 AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5866
SELECT 58 DIV COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-5866
SELECT 58 / COUNT ( * ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT ALL + 42 * 7 * - + COUNT( * ) col2
----
-294

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL + 42 * 7 * - + COUNT ( * ) col2
----
-294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5868
SELECT ALL - - CAST( NULL AS SIGNED ) - 51 * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL - - CAST ( NULL AS INTEGER ) - 51 * + 68
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5869
SELECT COUNT( + 17 ) AS col2, - 71 * 2 AS col0
----
1
-142

skipif mysql # not compatible
query II rowsort label-5869
SELECT COUNT ( + 17 ) AS col2, - 71 * 2 AS col0
----
1
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5870
SELECT MIN( ALL 1 ) DIV + 44 * - 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5870
SELECT MIN ( ALL 1 ) / + 44 * - 13 AS col2
----
0

query I rowsort
SELECT 68 * + - ( + 82 ) * + 84
----
-468384

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT 12 + - 14 - + 29 - + COALESCE ( - 60, - COUNT( * ) ) * - 76 + 61 * + 23
----
-3188

skipif mysql # not compatible
query I rowsort label-5872
SELECT 12 + - 14 - + 29 - + COALESCE ( - 60, - COUNT ( * ) ) * - 76 + 61 * + 23
----
-3188

onlyif mysql # DIV for integer division: 
query I rowsort label-5873
SELECT 60 DIV 42 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-5873
SELECT 60 / 42 / + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT - 88 * - COUNT( ALL + 58 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5874
SELECT - 88 * - COUNT ( ALL + 58 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT CASE 25 WHEN + 27 + + 0 THEN NULL WHEN + 88 * 17 THEN NULL WHEN - - 10 - + SUM( ALL 56 + - 14 ) THEN + 39 END + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT CASE 25 WHEN + 27 + + 0 THEN NULL WHEN + 88 * 17 THEN NULL WHEN - - 10 - + SUM ( ALL 56 + - 14 ) THEN + 39 END + - 22
----
NULL

query I rowsort
SELECT 7 - + 72 + + - 24
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ALL MIN( ALL + 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL MIN ( ALL + 62 ) AS col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5878
SELECT DISTINCT - 58 DIV + 38
----
-1

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT - 58 / + 38
----
-1

query I rowsort
SELECT ALL 42 * + 8 * + + 12
----
4032

query I rowsort
SELECT DISTINCT ( - + ( - 16 ) ) * + 10 + + 35 AS col1
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT DISTINCT SUM( + - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT SUM ( + - 24 )
----
-24

query I rowsort
SELECT ALL ( ( - + 63 ) ) * - 1 AS col0
----
63

query I rowsort
SELECT 51 + 80
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT - SUM( 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-5884
SELECT - SUM ( 42 )
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-5885
SELECT ALL - 12 col2, 38 - - 5 DIV - 71 col2
----
-12
38

skipif mysql # not compatible
query II rowsort label-5885
SELECT ALL - 12 col2, 38 - - 5 / - 71 col2
----
-12
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT DISTINCT - 96 * - ( + 64 ) * - + 97 + - COUNT( * ) + + + NULLIF ( - + 29, - 31 * 47 ) * - 72 AS col2
----
-593881

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT - 96 * - ( + 64 ) * - + 97 + - COUNT ( * ) + + + NULLIF ( - + 29, - 31 * 47 ) * - 72 AS col2
----
-593881

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT ALL - ( - COUNT( * ) ) * 24 + - CASE + + AVG ( ALL 49 ) WHEN + ( + 20 ) * + 77 THEN - 53 * - 26 END * 50 + + SUM( - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL - ( - COUNT ( * ) ) * 24 + - CASE + + AVG ( ALL 49 ) WHEN + ( + 20 ) * + 77 THEN - 53 * - 26 END * 50 + + SUM ( - 1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT 41 DIV ( - - 16 )
----
2

skipif mysql # not compatible
query I rowsort label-5888
SELECT 41 / ( - - 16 )
----
2

query I rowsort
SELECT 76 * COALESCE ( + - 98, 52 )
----
-7448

onlyif mysql # DIV for integer division: 
query II rowsort label-5890
SELECT ALL 33 DIV 56 DIV - 98 AS col2, + 14 + - + 72 AS col2
----
0
-58

skipif mysql # not compatible
query II rowsort label-5890
SELECT ALL 33 / 56 / - 98 AS col2, + 14 + - + 72 AS col2
----
0
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT + MIN( ALL - + 69 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5891
SELECT + MIN ( ALL - + 69 ) AS col0
----
-69

query II rowsort
SELECT + 8 AS col1, 71 AS col0
----
8
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT ALL - COUNT( * ) * - 52 * - MIN( DISTINCT + 36 ) + 49 * - 40 * 44 - - - 36
----
-88148

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL - COUNT ( * ) * - 52 * - MIN ( DISTINCT + 36 ) + 49 * - 40 * 44 - - - 36
----
-88148

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT + + 32 - + NULLIF ( + 69, - COALESCE ( + 25, - + 92 + - 55, + 65 ) ) * MAX( 47 ) col0
----
-3211

skipif mysql # not compatible
query I rowsort label-5894
SELECT + + 32 - + NULLIF ( + 69, - COALESCE ( + 25, - + 92 + - 55, + 65 ) ) * MAX ( 47 ) col0
----
-3211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5895
SELECT - + COUNT( * ) * - COUNT( * ) DIV - ( - CAST( - COUNT( * ) AS SIGNED ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5895
SELECT - + COUNT ( * ) * - COUNT ( * ) / - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT + - ( + COUNT( * ) ) - - - 86 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-5896
SELECT + - ( + COUNT ( * ) ) - - - 86 AS col2
----
-87

query I rowsort
SELECT - 99 * + 23 * + 67 + - - 78 AS col2
----
-152481

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT - NULLIF ( - - ( - - 20 ), + 50 + + COUNT( * ) * + + 13 ) - 8 + + - ( - 5 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-5898
SELECT - NULLIF ( - - ( - - 20 ), + 50 + + COUNT ( * ) * + + 13 ) - 8 + + - ( - 5 ) AS col2
----
-23

query II rowsort
SELECT 50, - 44 - - 38 AS col1
----
50
-6

query I rowsort
SELECT - + 25 * + 50 * 94
----
-117500

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT - - 56 + 21 * - + MAX( DISTINCT - + 77 )
----
1673

skipif mysql # not compatible
query I rowsort label-5901
SELECT - - 56 + 21 * - + MAX ( DISTINCT - + 77 )
----
1673

query I rowsort
SELECT - + 81 + 10
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-5903
SELECT - - 64 * + 77 + - 32 AS col2, 28 * - + 79 - + CASE + NULLIF ( + COUNT( * ), 49 + - 73 ) WHEN MAX( 11 ) THEN COUNT( * ) + - 57 WHEN COALESCE ( + 88, 85 * - 56, ( 93 ) ) * 90 + COUNT( * ) THEN NULL ELSE NULL END * + 78
----
4896
NULL

skipif mysql # not compatible
query II rowsort label-5903
SELECT - - 64 * + 77 + - 32 AS col2, 28 * - + 79 - + CASE + NULLIF ( + COUNT ( * ), 49 + - 73 ) WHEN MAX ( 11 ) THEN COUNT ( * ) + - 57 WHEN COALESCE ( + 88, 85 * - 56, ( 93 ) ) * 90 + COUNT ( * ) THEN NULL ELSE NULL END * + 78
----
4896
NULL

query I rowsort
SELECT ALL ( - + 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT - 36 + - 82 - COUNT( + ( + ( 92 ) ) ) AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-5905
SELECT - 36 + - 82 - COUNT ( + ( + ( 92 ) ) ) AS col0
----
-119

onlyif mysql # aggregate syntax: 
query II rowsort label-5906
SELECT - 42 * - SUM( - 90 ) * + 80 col1, 78
----
-302400
78

skipif mysql # not compatible
query II rowsort label-5906
SELECT - 42 * - SUM ( - 90 ) * + 80 col1, 78
----
-302400
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5907
SELECT - COUNT( * ) + - + 60 AS col0, + 73 * - SUM( 42 )
----
-61
-3066

skipif mysql # not compatible
query II rowsort label-5907
SELECT - COUNT ( * ) + - + 60 AS col0, + 73 * - SUM ( 42 )
----
-61
-3066

query II rowsort
SELECT ALL CASE - 75 WHEN - - 32 THEN - + 49 END, + 86 * - + 28 + - 15 * + 11 - 99 AS col2
----
NULL
-2672

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5909
SELECT DISTINCT - COALESCE ( 76, + 22 ) + + - 47 - 95 + + 83 * - 77 AS col2, - CAST( - 15 AS SIGNED ) + 45
----
-6609
60

skipif mysql # not compatible
query II rowsort label-5909
SELECT DISTINCT - COALESCE ( 76, + 22 ) + + - 47 - 95 + + 83 * - 77 AS col2, - CAST ( - 15 AS INTEGER ) + 45
----
-6609
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5910
SELECT + 94 DIV 51 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5910
SELECT + 94 / 51 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT ALL - 9 + + MIN( + 95 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL - 9 + + MIN ( + 95 ) AS col0
----
86

query I rowsort
SELECT - 6 - - 79 + 37 * + ( - - 12 ) + + + 4
----
521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5913
SELECT - 58 DIV - 5 col2, + 91 + 85 + + + 66 + - COUNT( * ) - + + ( - CAST( NULL AS SIGNED ) ) AS col0
----
11
NULL

skipif mysql # not compatible
query II rowsort label-5913
SELECT - 58 / - 5 col2, + 91 + 85 + + + 66 + - COUNT ( * ) - + + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
11
NULL

query I rowsort
SELECT ALL - NULLIF ( - 71, + 88 ) + + 25
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT DISTINCT 87 * + - COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT 87 * + - COUNT ( * ) AS col2
----
-87

query I rowsort
SELECT DISTINCT ( - + 7 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT - 22 + + MIN( DISTINCT - 54 )
----
-76

skipif mysql # not compatible
query I rowsort label-5917
SELECT - 22 + + MIN ( DISTINCT - 54 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT ALL 92 * - COUNT( * ) * + - 55
----
5060

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL 92 * - COUNT ( * ) * + - 55
----
5060

query I rowsort
SELECT - 16 * + 53 AS col2
----
-848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5920
SELECT + SUM( ALL + COALESCE ( CAST( + + 1 AS SIGNED ), 45 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5920
SELECT + SUM ( ALL + COALESCE ( CAST ( + + 1 AS INTEGER ), 45 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5921
SELECT CAST( - 88 AS SIGNED ) AS col2, 82
----
-88
82

skipif mysql # not compatible
query II rowsort label-5921
SELECT CAST ( - 88 AS INTEGER ) AS col2, 82
----
-88
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5922
SELECT + COUNT( * ) * 80 * MIN( 14 ) * - 12 * + 21 DIV COUNT( * ) + + 6 * - 4 + 46 + - 10 AS col2
----
-282228

skipif mysql # not compatible
query I rowsort label-5922
SELECT + COUNT ( * ) * 80 * MIN ( 14 ) * - 12 * + 21 / COUNT ( * ) + + 6 * - 4 + 46 + - 10 AS col2
----
-282228

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT ALL - 97 * - COALESCE ( - CASE + COUNT( * ) WHEN - MIN( 63 ) + - 94 THEN NULL WHEN + SUM( ALL - 58 ) * 97 THEN 16 + 8 * 5 END, 12 * 40 )
----
46560

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL - 97 * - COALESCE ( - CASE + COUNT ( * ) WHEN - MIN ( 63 ) + - 94 THEN NULL WHEN + SUM ( ALL - 58 ) * 97 THEN 16 + 8 * 5 END, 12 * 40 )
----
46560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5924
SELECT - ( 44 ) DIV + MAX( - 84 ) + 34 * 80 * + MIN( ALL - + 46 )
----
-125120

skipif mysql # not compatible
query I rowsort label-5924
SELECT - ( 44 ) / + MAX ( - 84 ) + 34 * 80 * + MIN ( ALL - + 46 )
----
-125120

query I rowsort
SELECT DISTINCT 49 * - 73
----
-3577

query I rowsort
SELECT ALL 37 * 7 + + - 19 AS col2
----
240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5927
SELECT + 39 * 1 + + MIN( ALL - 42 ) + + 88 DIV - MIN( - 23 )
----
0

skipif mysql # not compatible
query I rowsort label-5927
SELECT + 39 * 1 + + MIN ( ALL - 42 ) + + 88 / - MIN ( - 23 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT - 51 * 10 * + 48 + + - CASE - - ( + MIN( - 9 ) ) WHEN + + 5 * + 69 * - 82 + - COUNT( * ) THEN NULL WHEN - 60 THEN 57 END + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5928
SELECT - 51 * 10 * + 48 + + - CASE - - ( + MIN ( - 9 ) ) WHEN + + 5 * + 69 * - 82 + - COUNT ( * ) THEN NULL WHEN - 60 THEN 57 END + 71 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5929
SELECT DISTINCT + CAST( - 90 AS SIGNED ), + 7 col2
----
-90
7

skipif mysql # not compatible
query II rowsort label-5929
SELECT DISTINCT + CAST ( - 90 AS INTEGER ), + 7 col2
----
-90
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT - - MAX( - 89 ) * + MIN( - CASE 3 WHEN 9 + 73 + + 46 + + 8 THEN 38 WHEN 68 * 25 THEN NULL END ) / 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5930
SELECT - - MAX ( - 89 ) * + MIN ( - CASE 3 WHEN 9 + 73 + + 46 + + 8 THEN 38 WHEN 68 * 25 THEN NULL END ) / 16
----
NULL

query I rowsort
SELECT - + 96 + + + 31
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT + - CASE WHEN NOT - 79 IN ( COALESCE ( + - 76, - 23 ) + 8 ) THEN - NULLIF ( 51, 86 * - 15 + - 66 ) * + 19 WHEN NOT + 34 - 96 * + NULLIF ( COUNT( * ), + 55 ) IS NULL THEN NULL END
----
969

skipif mysql # not compatible
query I rowsort label-5932
SELECT + - CASE WHEN NOT - 79 IN ( COALESCE ( + - 76, - 23 ) + 8 ) THEN - NULLIF ( 51, 86 * - 15 + - 66 ) * + 19 WHEN NOT + 34 - 96 * + NULLIF ( COUNT ( * ), + 55 ) IS NULL THEN NULL END
----
969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5933
SELECT DISTINCT - COUNT( * ) * + - 42 * + 67 + + COUNT( + 97 ) + - CAST( 69 AS SIGNED ) - + - MIN( DISTINCT - 68 ) - 88
----
2590

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT - COUNT ( * ) * + - 42 * + 67 + + COUNT ( + 97 ) + - CAST ( 69 AS INTEGER ) - + - MIN ( DISTINCT - 68 ) - 88
----
2590

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5934
SELECT ALL 79 * - ( + CASE - 78 WHEN 43 + - - 96 THEN + - 7 * - - 22 WHEN + - 2 + - 38 * - CAST( - 88 / COUNT( * ) - SUM( 96 ) AS DECIMAL ) THEN NULL END ) * + 88 + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL 79 * - ( + CASE - 78 WHEN 43 + - - 96 THEN + - 7 * - - 22 WHEN + - 2 + - 38 * - CAST ( - 88 / COUNT ( * ) - SUM ( 96 ) AS REAL ) THEN NULL END ) * + 88 + + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT ALL MAX( ALL + 66 ) * + 43
----
2838

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL MAX ( ALL + 66 ) * + 43
----
2838

query I rowsort
SELECT + 23 * - 23 AS col1
----
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT DISTINCT + 97 * 23 + + 9 * - + MAX( - 81 ) AS col1
----
2960

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT + 97 * 23 + + 9 * - + MAX ( - 81 ) AS col1
----
2960

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT ALL SUM( + 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL SUM ( + 24 ) AS col1
----
24

query I rowsort
SELECT - ( + + 71 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT - 42 + + - COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-5940
SELECT - 42 + + - COUNT ( * ) AS col0
----
-43

query I rowsort
SELECT + 12 * + ( 30 )
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT ALL - COUNT( - + 24 ) * + + COUNT( * ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL - COUNT ( - + 24 ) * + + COUNT ( * ) + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT SUM( + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-5943
SELECT SUM ( + 59 )
----
59

query I rowsort
SELECT + 6 + + ( - 4 )
----
2

query I rowsort
SELECT DISTINCT - 96 + 15 + + + 17 * - 46 * - - 39 AS col1
----
-30579

query I rowsort
SELECT ALL - 23 + + 5 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT ALL - 78 + SUM( ALL - 3 ) + - - 57 + + 44 - + 39 * 73
----
-2827

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL - 78 + SUM ( ALL - 3 ) + - - 57 + + 44 - + 39 * 73
----
-2827

query I rowsort
SELECT - 52 + - 34
----
-86

query I rowsort
SELECT DISTINCT - 6 * - 51
----
306

query I rowsort
SELECT 86 + + + 5 + + 40
----
131

query I rowsort
SELECT ALL + 79 - + 47 + - - 94 AS col1
----
126

query I rowsort
SELECT 66 * + + 36
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT DISTINCT + - COUNT( * ) - + 56
----
-57

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT + - COUNT ( * ) - + 56
----
-57

query I rowsort
SELECT - 82 * - + 64 * - 38 col0
----
-199424

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT + 91 DIV - 97 * - 3 - + + 83
----
-83

skipif mysql # not compatible
query I rowsort label-5955
SELECT + 91 / - 97 * - 3 - + + 83
----
-83

query I rowsort
SELECT - 20 * ( + ( 73 ) ) - + 72 + - 32 * + 65 + - 6 AS col0
----
-3618

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5957
SELECT + COALESCE ( - + ( - + SUM( ALL 13 ) ), 77 - - 38 + - + 71 DIV MIN( - 29 ) * + + 21 )
----
13

skipif mysql # not compatible
query I rowsort label-5957
SELECT + COALESCE ( - + ( - + SUM ( ALL 13 ) ), 77 - - 38 + - + 71 / MIN ( - 29 ) * + + 21 )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5958
SELECT + CAST( + - 87 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-5958
SELECT + CAST ( + - 87 AS INTEGER )
----
-87

query I rowsort
SELECT 66 - 34
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5960
SELECT DISTINCT - NULLIF ( 44, - 68 / - CAST( + 51 AS SIGNED ) * 98 )
----
-44

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT - NULLIF ( 44, - 68 / - CAST ( + 51 AS INTEGER ) * 98 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT DISTINCT - - CASE 40 WHEN - COALESCE ( + 39, 44 + + COUNT( * ) * - - 72 - COUNT( DISTINCT + 44 ) / - - 28 + 7, - 93 / - COUNT( * ), - 36 * 87 ) THEN + 38 END * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT - - CASE 40 WHEN - COALESCE ( + 39, 44 + + COUNT ( * ) * - - 72 - COUNT ( DISTINCT + 44 ) / - - 28 + 7, - 93 / - COUNT ( * ), - 36 * 87 ) THEN + 38 END * + 5
----
NULL

query I rowsort
SELECT - 98 * - 99 col1
----
9702

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5963
SELECT ALL - - 68 AS col1, NULLIF ( + 46, - CAST( 82 AS SIGNED ) ) AS col2
----
68
46

skipif mysql # not compatible
query II rowsort label-5963
SELECT ALL - - 68 AS col1, NULLIF ( + 46, - CAST ( 82 AS INTEGER ) ) AS col2
----
68
46

query I rowsort
SELECT ALL 51 + - 16
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5965
SELECT - 52 * - - 8 + - + 29 * COUNT( * ) - - 74 col0, COUNT( 11 )
----
-371
1

skipif mysql # not compatible
query II rowsort label-5965
SELECT - 52 * - - 8 + - + 29 * COUNT ( * ) - - 74 col0, COUNT ( 11 )
----
-371
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5966
SELECT + COALESCE ( + MAX( - 72 ), - CAST( 35 AS SIGNED ) ) - + 7
----
-79

skipif mysql # not compatible
query I rowsort label-5966
SELECT + COALESCE ( + MAX ( - 72 ), - CAST ( 35 AS INTEGER ) ) - + 7
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5967
SELECT DISTINCT NULLIF ( 92, AVG ( ALL + 73 ) * + - COUNT( * ) ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT NULLIF ( 92, AVG ( ALL + 73 ) * + - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5968
SELECT + 15 col0, COUNT( * ) AS col1
----
15
1

skipif mysql # not compatible
query II rowsort label-5968
SELECT + 15 col0, COUNT ( * ) AS col1
----
15
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5969
SELECT ALL 77 * - CAST( 15 AS SIGNED ) AS col2
----
-1155

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL 77 * - CAST ( 15 AS INTEGER ) AS col2
----
-1155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5970
SELECT COALESCE ( - 75, - 6 + - + AVG ( + - 89 ) + + 38 - + 58 ) / + CAST( NULL AS SIGNED ) + 72 + + 0 / + 29 + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5970
SELECT COALESCE ( - 75, - 6 + - + AVG ( + - 89 ) + + 38 - + 58 ) / + CAST ( NULL AS INTEGER ) + 72 + + 0 / + 29 + - 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5971
SELECT DISTINCT CASE + + COUNT( * ) WHEN - 45 THEN NULL WHEN + COUNT( * ) + 85 THEN + 87 * + 85 * ( + AVG ( ALL + - CASE - 27 WHEN 53 THEN NULL ELSE CAST( NULL AS SIGNED ) * 18 END ) ) END + - ( AVG ( - 13 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT CASE + + COUNT ( * ) WHEN - 45 THEN NULL WHEN + COUNT ( * ) + 85 THEN + 87 * + 85 * ( + AVG ( ALL + - CASE - 27 WHEN 53 THEN NULL ELSE CAST ( NULL AS INTEGER ) * 18 END ) ) END + - ( AVG ( - 13 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT DISTINCT MAX( ALL 96 ) * + 59
----
5664

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT MAX ( ALL 96 ) * + 59
----
5664

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5973
SELECT 41 + + + 88 AS col1, - CAST( - 72 AS SIGNED ) AS col1
----
129
72

skipif mysql # not compatible
query II rowsort label-5973
SELECT 41 + + + 88 AS col1, - CAST ( - 72 AS INTEGER ) AS col1
----
129
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5974
SELECT 80 + + + 90 DIV 9 col1
----
90

skipif mysql # not compatible
query I rowsort label-5974
SELECT 80 + + + 90 / 9 col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5975
SELECT - 92 AS col2, - 74 + - 96 - - SUM( ALL - - CAST( NULL AS SIGNED ) ) col2
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-5975
SELECT - 92 AS col2, - 74 + - 96 - - SUM ( ALL - - CAST ( NULL AS INTEGER ) ) col2
----
-92
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5976
SELECT CAST( 44 AS SIGNED ) - + 33
----
11

skipif mysql # not compatible
query I rowsort label-5976
SELECT CAST ( 44 AS INTEGER ) - + 33
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT CASE - ( - ( + 18 ) ) WHEN 10 * 15 THEN - SUM( - + 19 ) * - - COUNT( * ) * + 63 WHEN + + 97 THEN 43 * - 88 END + + 37 * NULLIF ( 60, - 55 + - 58 * 77 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT CASE - ( - ( + 18 ) ) WHEN 10 * 15 THEN - SUM ( - + 19 ) * - - COUNT ( * ) * + 63 WHEN + + 97 THEN 43 * - 88 END + + 37 * NULLIF ( 60, - 55 + - 58 * 77 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT 76 + - 93 * 33 + + COUNT( - 47 ) * + ( - + ( 43 ) ) * - SUM( DISTINCT - 69 ) AS col1
----
-5960

skipif mysql # not compatible
query I rowsort label-5978
SELECT 76 + - 93 * 33 + + COUNT ( - 47 ) * + ( - + ( 43 ) ) * - SUM ( DISTINCT - 69 ) AS col1
----
-5960

query I rowsort
SELECT ALL + 59 * + - 47
----
-2773

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT DISTINCT + 48 * - 20 + + MAX( DISTINCT - + ( + 43 ) ) + 82 + + 87 - - - 91 AS col1
----
-925

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT + 48 * - 20 + + MAX ( DISTINCT - + ( + 43 ) ) + 82 + + 87 - - - 91 AS col1
----
-925

query I rowsort
SELECT + 80 * 12 - - 59
----
1019

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT ALL + COUNT( * ) * - - 27 col0
----
27

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL + COUNT ( * ) * - - 27 col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT COUNT( * ) + + 70
----
71

skipif mysql # not compatible
query I rowsort label-5983
SELECT COUNT ( * ) + + 70
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT 2 + - - COUNT( ALL - 32 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5984
SELECT 2 + - - COUNT ( ALL - 32 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT - COUNT( * ) * + 29 col2
----
-29

skipif mysql # not compatible
query I rowsort label-5985
SELECT - COUNT ( * ) * + 29 col2
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-5986
SELECT ALL + 32 DIV + - 3
----
-10

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL + 32 / + - 3
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5987
SELECT 81 + + 57 + + + MAX( + + 69 ) * - 67 * + 8 - + 61 * - + 45 DIV - - COUNT( * ), ( + - 9 ) AS col1
----
-34101
-9

skipif mysql # not compatible
query II rowsort label-5987
SELECT 81 + + 57 + + + MAX ( + + 69 ) * - 67 * + 8 - + 61 * - + 45 / - - COUNT ( * ), ( + - 9 ) AS col1
----
-34101
-9

query I rowsort
SELECT ALL - 82 * - 37 AS col0
----
3034

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT ALL + 71 DIV - + 38
----
-1

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL + 71 / - + 38
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT - 92 * + SUM( DISTINCT + - 47 ) * 59 * - + 92 + - 82 AS col1
----
-23470754

skipif mysql # not compatible
query I rowsort label-5990
SELECT - 92 * + SUM ( DISTINCT + - 47 ) * 59 * - + 92 + - 82 AS col1
----
-23470754

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5991
SELECT + SUM( 86 ) * + COUNT( DISTINCT - 65 ) - 36 DIV ( - 66 ) + - 55 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5991
SELECT + SUM ( 86 ) * + COUNT ( DISTINCT - 65 ) - 36 / ( - 66 ) + - 55 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT CASE COUNT( * ) WHEN - COUNT( * ) THEN 36 ELSE - COUNT( * ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5992
SELECT CASE COUNT ( * ) WHEN - COUNT ( * ) THEN 36 ELSE - COUNT ( * ) END AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT + MIN( - + 54 ) * - - 17 * - 95
----
87210

skipif mysql # not compatible
query I rowsort label-5993
SELECT + MIN ( - + 54 ) * - - 17 * - 95
----
87210

query II rowsort
SELECT - ( - 60 ) + - 48 + 30 AS col2, 59
----
42
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5995
SELECT ALL + - 8 + - + 89 - CAST( - MIN( ALL - 99 ) AS SIGNED )
----
-196

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL + - 8 + - + 89 - CAST ( - MIN ( ALL - 99 ) AS INTEGER )
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT DISTINCT - + COALESCE ( MAX( + 43 ), + 69 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT - + COALESCE ( MAX ( + 43 ), + 69 ) AS col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5997
SELECT DISTINCT + 41 + + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT + 41 + + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5998
SELECT COUNT( * ) * + 5 * - 47 + + 13 * 23 * + 25 * - + CAST( NULL AS SIGNED ) AS col2, 80
----
NULL
80

skipif mysql # not compatible
query II rowsort label-5998
SELECT COUNT ( * ) * + 5 * - 47 + + 13 * 23 * + 25 * - + CAST ( NULL AS INTEGER ) AS col2, 80
----
NULL
80

query I rowsort
SELECT DISTINCT - ( - 25 ) + - 95 * 84 * + - 28 AS col0
----
223465

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6000
SELECT DISTINCT 71 + - 72 + + 75 DIV 67 + - + 47 col2, COUNT( * )
----
-47
1

skipif mysql # not compatible
query II rowsort label-6000
SELECT DISTINCT 71 + - 72 + + 75 / 67 + - + 47 col2, COUNT ( * )
----
-47
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT - 74 * 67 - + 23 + + + 69 * COUNT( * ) AS col2
----
-4912

skipif mysql # not compatible
query I rowsort label-6001
SELECT - 74 * 67 - + 23 + + + 69 * COUNT ( * ) AS col2
----
-4912

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT + ( + 61 ) + + 35 + COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-6002
SELECT + ( + 61 ) + + 35 + COUNT ( * ) AS col1
----
97

query II rowsort
SELECT DISTINCT 35 - + - 73 AS col2, 93
----
108
93

query I rowsort
SELECT ALL 70 - + 96
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6005
SELECT + ( - CAST( NULL AS SIGNED ) ) + + COUNT( * ) + - CAST( 30 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT + ( - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) + - CAST ( 30 AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6006
SELECT DISTINCT + 79 - 10 - + 44 + + 42 + + 95 DIV - 37 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT + 79 - 10 - + 44 + + 42 + + 95 / - 37 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT ALL 63 * + - SUM( ALL - 82 ) * + 90 + - + COUNT( * ) * - + 0
----
464940

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL 63 * + - SUM ( ALL - 82 ) * + 90 + - + COUNT ( * ) * - + 0
----
464940

query I rowsort
SELECT DISTINCT NULLIF ( + + 72, + 42 ) * 82 AS col2
----
5904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6009
SELECT ALL 34 * - MAX( CAST( - - 94 AS SIGNED ) )
----
-3196

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL 34 * - MAX ( CAST ( - - 94 AS INTEGER ) )
----
-3196

query I rowsort
SELECT + 45 * + - 31 * 47 col2
----
-65565

query I rowsort
SELECT DISTINCT 69 * + 70
----
4830

onlyif mysql # DIV for integer division: 
query I rowsort label-6012
SELECT + + ( - - 92 ) DIV - 41 col1
----
-2

skipif mysql # not compatible
query I rowsort label-6012
SELECT + + ( - - 92 ) / - 41 col1
----
-2

query I rowsort
SELECT + 3 * 18 AS col1
----
54

query I rowsort
SELECT DISTINCT 5 + NULLIF ( - + CASE + NULLIF ( - + 80, 87 * 2 ) WHEN + + AVG ( 57 ) THEN + + ( + 69 ) * - 1 + - 2 WHEN 35 THEN NULL END, 44 )
----
NULL

query I rowsort
SELECT ALL + - 61 + - + 1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT + + 97 * - + 14 * - COUNT( * ) AS col0
----
1358

skipif mysql # not compatible
query I rowsort label-6016
SELECT + + 97 * - + 14 * - COUNT ( * ) AS col0
----
1358

query I rowsort
SELECT ALL - 92 + - 85 + + + 49 AS col0
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6018
SELECT ALL - 95 * + - 17 + - CASE + - SUM( - + ( + + 67 ) ) WHEN + 61 THEN + 52 WHEN - ( + - 66 ) * + CAST( NULL AS SIGNED ) - - - COALESCE ( 79, CAST( NULL AS DECIMAL ), + 95 + - 18 / - CASE + CAST( 43 AS SIGNED ) WHEN - 7 THEN 99 WHEN COUNT( * ) THEN NULL ELSE - 25 END ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL - 95 * + - 17 + - CASE + - SUM ( - + ( + + 67 ) ) WHEN + 61 THEN + 52 WHEN - ( + - 66 ) * + CAST ( NULL AS INTEGER ) - - - COALESCE ( 79, CAST ( NULL AS REAL ), + 95 + - 18 / - CASE + CAST ( 43 AS INTEGER ) WHEN - 7 THEN 99 WHEN COUNT ( * ) THEN NULL ELSE - 25 END ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 89 * ( - 28 ) * - 83 * - 93 + - ( ( + 90 ) )
----
19235658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6020
SELECT - 16 / + + COUNT( * ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT - 16 / + + COUNT ( * ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT + - MAX( DISTINCT + 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-6021
SELECT + - MAX ( DISTINCT + 47 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6022
SELECT 28 * - + 86 + - NULLIF ( - + CASE - CAST( - COUNT( * ) AS SIGNED ) WHEN - COUNT( * ) * - CASE COUNT( * ) WHEN MIN( DISTINCT + ( + 19 ) ) * + 92 THEN NULL WHEN - 10 * CASE + 64 WHEN 52 THEN NULL WHEN - 84 * 77 THEN + 82 END THEN + 55 END + 44 THEN - 42 WHEN 13 THEN 19 END, - 36 ) + 93 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT 28 * - + 86 + - NULLIF ( - + CASE - CAST ( - COUNT ( * ) AS INTEGER ) WHEN - COUNT ( * ) * - CASE COUNT ( * ) WHEN MIN ( DISTINCT + ( + 19 ) ) * + 92 THEN NULL WHEN - 10 * CASE + 64 WHEN 52 THEN NULL WHEN - 84 * 77 THEN + 82 END THEN + 55 END + 44 THEN - 42 WHEN 13 THEN 19 END, - 36 ) + 93 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6023
SELECT ALL 95 * - COUNT( * ) - COALESCE ( 59, + - 65 DIV - + COUNT( * ), + 30 ) - + + COUNT( * ) * 41 - + 25 * + 18
----
-645

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL 95 * - COUNT ( * ) - COALESCE ( 59, + - 65 / - + COUNT ( * ), + 30 ) - + + COUNT ( * ) * 41 - + 25 * + 18
----
-645

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT DISTINCT - 37 * - COUNT( 54 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT - 37 * - COUNT ( 54 ) AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6025
SELECT ALL - 64 DIV + COUNT( * ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL - 64 / + COUNT ( * ) col1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-6026
SELECT - 12 DIV - - 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6026
SELECT - 12 / - - 87 AS col2
----
0

query I rowsort
SELECT - 23 * ( - 21 )
----
483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6028
SELECT - ( AVG ( ALL + 39 ) ) - 64 - - 82 * - CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) * - 28 + - 98
----
NULL
-126

skipif mysql # not compatible
query II rowsort label-6028
SELECT - ( AVG ( ALL + 39 ) ) - 64 - - 82 * - CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) * - 28 + - 98
----
NULL
-126

query I rowsort
SELECT ALL + ( - - 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT DISTINCT + 74 * COALESCE ( + + COUNT( * ), + 75, + NULLIF ( + + 5, - + 93 * - 93 + - 4 + SUM( - + ( 65 ) ) ) + MIN( ALL 4 ) - 69 )
----
74

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT + 74 * COALESCE ( + + COUNT ( * ), + 75, + NULLIF ( + + 5, - + 93 * - 93 + - 4 + SUM ( - + ( 65 ) ) ) + MIN ( ALL 4 ) - 69 )
----
74

query I rowsort
SELECT DISTINCT CASE 25 WHEN - 0 THEN NULL WHEN - + 16 THEN - + 59 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 12, 25 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT ALL + 93 * + COUNT( * ) col2
----
93

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL + 93 * + COUNT ( * ) col2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6034
SELECT COUNT( * ) col0, - 53 DIV + - 79 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-6034
SELECT COUNT ( * ) col0, - 53 / + - 79 AS col2
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT - COUNT( * ) + + 34 * - 31 - + 61
----
-1116

skipif mysql # not compatible
query I rowsort label-6035
SELECT - COUNT ( * ) + + 34 * - 31 - + 61
----
-1116

query I rowsort
SELECT ALL ( - - 56 )
----
56

query II rowsort
SELECT ALL 99 AS col2, 43 AS col0
----
99
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6038
SELECT + 22 * - ( - 42 ) AS col2, 76 + - - 83 + 8 * - + COUNT( + 59 )
----
924
151

skipif mysql # not compatible
query II rowsort label-6038
SELECT + 22 * - ( - 42 ) AS col2, 76 + - - 83 + 8 * - + COUNT ( + 59 )
----
924
151

query I rowsort
SELECT - 33 + + 60 AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6040
SELECT - COALESCE ( COALESCE ( - - 3, + - 5 + CASE + ( COUNT( * ) ) WHEN + CASE + + 81 WHEN + + 82 THEN NULL WHEN + 51 + - CAST( NULL AS SIGNED ) THEN 85 ELSE NULL END THEN + 17 * 58 WHEN - 27 THEN - 65 + + ( 30 ) * SUM( + 71 ) ELSE NULL END ), 48 ) + + 75 * - 98
----
-7353

skipif mysql # not compatible
query I rowsort label-6040
SELECT - COALESCE ( COALESCE ( - - 3, + - 5 + CASE + ( COUNT ( * ) ) WHEN + CASE + + 81 WHEN + + 82 THEN NULL WHEN + 51 + - CAST ( NULL AS INTEGER ) THEN 85 ELSE NULL END THEN + 17 * 58 WHEN - 27 THEN - 65 + + ( 30 ) * SUM ( + 71 ) ELSE NULL END ), 48 ) + + 75 * - 98
----
-7353

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT - CASE + 26 WHEN CASE + + 70 WHEN + CASE - 40 WHEN + + ( - + 11 ) THEN - - ( - + CASE 1 WHEN COALESCE ( + 75, + NULLIF ( 93, - ( 87 ) ), + ( 91 ) * 51 ) THEN 80 + 65 END ) / - COUNT( * ) WHEN 89 / - 2 THEN + 71 + + 69 * - NULLIF ( - 78 * + 36, ( - 33 ) ) END - 86 THEN - 52 + 63 END + 80 THEN NULL ELSE - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-6041
SELECT - CASE + 26 WHEN CASE + + 70 WHEN + CASE - 40 WHEN + + ( - + 11 ) THEN - - ( - + CASE 1 WHEN COALESCE ( + 75, + NULLIF ( 93, - ( 87 ) ), + ( 91 ) * 51 ) THEN 80 + 65 END ) / - COUNT ( * ) WHEN 89 / - 2 THEN + 71 + + 69 * - NULLIF ( - 78 * + 36, ( - 33 ) ) END - 86 THEN - 52 + 63 END + 80 THEN NULL ELSE - COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT ALL CASE - - COUNT( * ) WHEN - 40 + - + ( + - 53 ) THEN - - NULLIF ( - 67, 88 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL CASE - - COUNT ( * ) WHEN - 40 + - + ( + - 53 ) THEN - - NULLIF ( - 67, 88 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6043
SELECT - 1 DIV - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6043
SELECT - 1 / - - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL + 7 + 18
----
25

query I rowsort
SELECT + + 1 + - 71 AS col1
----
-70

query I rowsort
SELECT ALL + 96 + - 28 AS col1
----
68

query I rowsort
SELECT + - 27 + 86 AS col0
----
59

query I rowsort
SELECT ALL 77 + + 56 AS col1
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6049
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 73 * + + 23, - 23 AS col1
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-6049
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 73 * + + 23, - 23 AS col1
----
NULL
-23

query I rowsort
SELECT ALL 20 + - 53
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT NULLIF ( - 55, - + 21 * - - COUNT( * ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-6051
SELECT NULLIF ( - 55, - + 21 * - - COUNT ( * ) ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-6052
SELECT - 47, COUNT( * ) AS col1
----
-47
1

skipif mysql # not compatible
query II rowsort label-6052
SELECT - 47, COUNT ( * ) AS col1
----
-47
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT ALL COUNT( * ) + - + 47
----
-46

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL COUNT ( * ) + - + 47
----
-46

query I rowsort
SELECT - ( + 30 ) + + + 75
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT + SUM( - 36 ) - 61
----
-97

skipif mysql # not compatible
query I rowsort label-6055
SELECT + SUM ( - 36 ) - 61
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT + 17 * - + 11 * + ( - COUNT( + 24 ) ) col0
----
187

skipif mysql # not compatible
query I rowsort label-6056
SELECT + 17 * - + 11 * + ( - COUNT ( + 24 ) ) col0
----
187

query I rowsort
SELECT + 87 + + - 68
----
19

query II rowsort
SELECT DISTINCT + - 61, - 96 AS col0
----
-61
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT + - MAX( + 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-6059
SELECT + - MAX ( + 61 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6060
SELECT + CAST( NULL AS SIGNED ) AS col1, 11
----
NULL
11

skipif mysql # not compatible
query II rowsort label-6060
SELECT + CAST ( NULL AS INTEGER ) AS col1, 11
----
NULL
11

query I rowsort
SELECT + - 54 * + + NULLIF ( 71, 54 ) + + + 51 * + 37
----
-1947

query I rowsort
SELECT + - 50 + + - 3 AS col2
----
-53

query II rowsort
SELECT DISTINCT + 72, 19 AS col1
----
72
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT 32 * + - SUM( DISTINCT - 33 ) * + - 13 + + - 58 col0
----
-13786

skipif mysql # not compatible
query I rowsort label-6064
SELECT 32 * + - SUM ( DISTINCT - 33 ) * + - 13 + + - 58 col0
----
-13786

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6065
SELECT DISTINCT 59 - - 41 DIV COUNT( * ) * COUNT( * ) - + ( + + 59 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6065
SELECT DISTINCT 59 - - 41 / COUNT ( * ) * COUNT ( * ) - + ( + + 59 ) AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6066
SELECT ( - 98 ) / 96 * 9 + COUNT( * ) + NULLIF ( + - SUM( DISTINCT 99 ), + 44 * 80 + - ( - 7 ) + 68 ) * + CAST( NULL AS SIGNED ) * + COALESCE ( COUNT( ALL + 95 ) * CAST( 70 AS SIGNED ), 93 * + 20 - COUNT( * ) / - 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT ( - 98 ) / 96 * 9 + COUNT ( * ) + NULLIF ( + - SUM ( DISTINCT 99 ), + 44 * 80 + - ( - 7 ) + 68 ) * + CAST ( NULL AS INTEGER ) * + COALESCE ( COUNT ( ALL + 95 ) * CAST ( 70 AS INTEGER ), 93 * + 20 - COUNT ( * ) / - 51 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT ALL 94 * + COUNT( - 21 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL 94 * + COUNT ( - 21 ) AS col1
----
94

query I rowsort
SELECT 51 * + 27
----
1377

query I rowsort
SELECT 89 + - 48
----
41

query I rowsort
SELECT ALL - COALESCE ( - 53, + + 40 ) AS col0
----
53

query I rowsort
SELECT ALL 58 * + + 24 AS col0
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT CASE + - 4 WHEN + 30 THEN NULL WHEN - + 45 THEN NULL WHEN - 1 THEN NULL ELSE + 46 - - MAX( ALL + + 42 ) END * + - 76 + + 30 AS col1
----
-6658

skipif mysql # not compatible
query I rowsort label-6072
SELECT CASE + - 4 WHEN + 30 THEN NULL WHEN - + 45 THEN NULL WHEN - 1 THEN NULL ELSE + 46 - - MAX ( ALL + + 42 ) END * + - 76 + + 30 AS col1
----
-6658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6073
SELECT DISTINCT - COUNT( * ) DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT - COUNT ( * ) / 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT + COUNT( * ) * + 60 * + + MAX( - 10 ) - 63 + + 43
----
-620

skipif mysql # not compatible
query I rowsort label-6074
SELECT + COUNT ( * ) * + 60 * + + MAX ( - 10 ) - 63 + + 43
----
-620

query I rowsort
SELECT 75 * + 78
----
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT 11 + - NULLIF ( + + COUNT( * ), 73 )
----
10

skipif mysql # not compatible
query I rowsort label-6076
SELECT 11 + - NULLIF ( + + COUNT ( * ), 73 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT 14 * - 25 * + COUNT( * ) AS col1
----
-350

skipif mysql # not compatible
query I rowsort label-6077
SELECT 14 * - 25 * + COUNT ( * ) AS col1
----
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT ALL + MIN( ALL 71 ) * + - 84 AS col0
----
-5964

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL + MIN ( ALL 71 ) * + - 84 AS col0
----
-5964

query I rowsort
SELECT DISTINCT - 44 + 18
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT CASE - ( - - MAX( DISTINCT 7 ) ) WHEN - - 55 THEN - ( - 68 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6080
SELECT CASE - ( - - MAX ( DISTINCT 7 ) ) WHEN - - 55 THEN - ( - 68 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT ALL - COUNT( * ) + + COUNT( * ) * + 19 * 87 + 70
----
1722

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL - COUNT ( * ) + + COUNT ( * ) * + 19 * 87 + 70
----
1722

query I rowsort
SELECT - 8 * - 58 AS col2
----
464

query I rowsort
SELECT ALL - + 52 + + 88 AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6084
SELECT DISTINCT - - 27 + + 12 col0, CAST( NULL AS SIGNED ) * 69 * - NULLIF ( - + 43, - 0 + + - COUNT( * ) )
----
39
NULL

skipif mysql # not compatible
query II rowsort label-6084
SELECT DISTINCT - - 27 + + 12 col0, CAST ( NULL AS INTEGER ) * 69 * - NULLIF ( - + 43, - 0 + + - COUNT ( * ) )
----
39
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6085
SELECT ALL - + 77 + + + COALESCE ( - - 73, - 63 DIV + 72 DIV + 2 )
----
-4

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL - + 77 + + + COALESCE ( - - 73, - 63 / + 72 / + 2 )
----
-4

query I rowsort
SELECT DISTINCT - 42 + + + 11 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-6087
SELECT ALL COALESCE ( - - MIN( + + 76 ), - - 48 ), 96 * 30 * - 68 col2
----
76
-195840

skipif mysql # not compatible
query II rowsort label-6087
SELECT ALL COALESCE ( - - MIN ( + + 76 ), - - 48 ), 96 * 30 * - 68 col2
----
76
-195840

query I rowsort
SELECT - + NULLIF ( - 40, + 35 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT ( 24 ) + CASE + MAX( 15 ) WHEN + 15 * 73 / - - COUNT( * ) + COUNT( * ) THEN - COUNT( * ) * - - 35 + NULLIF ( + COUNT( * ), - MAX( 95 ) ) + NULLIF ( - 96 + 94, - 27 ) WHEN - COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT ( 24 ) + CASE + MAX ( 15 ) WHEN + 15 * 73 / - - COUNT ( * ) + COUNT ( * ) THEN - COUNT ( * ) * - - 35 + NULLIF ( + COUNT ( * ), - MAX ( 95 ) ) + NULLIF ( - 96 + 94, - 27 ) WHEN - COUNT ( * ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6090
SELECT DISTINCT 50 DIV + 64 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT 50 / + 64 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT ( COUNT( * ) ) * - + COUNT( + 13 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6091
SELECT ( COUNT ( * ) ) * - + COUNT ( + 13 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL - 49 - - - MAX( ALL + COALESCE ( + 22, - 29 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL - 49 - - - MAX ( ALL + COALESCE ( + 22, - 29 ) )
----
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-6093
SELECT DISTINCT - - 60 DIV + 99 AS col2, - 16 AS col1
----
0
-16

skipif mysql # not compatible
query II rowsort label-6093
SELECT DISTINCT - - 60 / + 99 AS col2, - 16 AS col1
----
0
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT + + COALESCE ( + - NULLIF ( - + 61, + - COUNT( * ) ), - 61 + 28 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-6094
SELECT + + COALESCE ( + - NULLIF ( - + 61, + - COUNT ( * ) ), - 61 + 28 ) AS col1
----
61

query I rowsort
SELECT ALL + 99 * 27
----
2673

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6096
SELECT DISTINCT COUNT( * ) - - 37, - MIN( - - 59 ) DIV + + ( 42 ) AS col1
----
38
-1

skipif mysql # not compatible
query II rowsort label-6096
SELECT DISTINCT COUNT ( * ) - - 37, - MIN ( - - 59 ) / + + ( 42 ) AS col1
----
38
-1

query I rowsort
SELECT 64 * + + 98 + 20 col2
----
6292

onlyif mysql # aggregate syntax: 
query II rowsort label-6098
SELECT ALL 18 * + - COUNT( DISTINCT - 55 ) AS col1, 87 col2
----
-18
87

skipif mysql # not compatible
query II rowsort label-6098
SELECT ALL 18 * + - COUNT ( DISTINCT - 55 ) AS col1, 87 col2
----
-18
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6099
SELECT - 62 DIV 23 + - + COUNT( * ), + 96 * + COALESCE ( + 61, + + COUNT( * ) ) col1
----
-3
5856

skipif mysql # not compatible
query II rowsort label-6099
SELECT - 62 / 23 + - + COUNT ( * ), + 96 * + COALESCE ( + 61, + + COUNT ( * ) ) col1
----
-3
5856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6100
SELECT ( - - COUNT( 25 ) ) * + - 53 + - 79 + + - 77 DIV + + COUNT( * )
----
-209

skipif mysql # not compatible
query I rowsort label-6100
SELECT ( - - COUNT ( 25 ) ) * + - 53 + - 79 + + - 77 / + + COUNT ( * )
----
-209

query I rowsort
SELECT 96 * + 39 AS col1
----
3744

query I rowsort
SELECT ALL 40 * - 68
----
-2720

query I rowsort
SELECT 86 * + 20
----
1720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6104
SELECT ALL 52 + + - MIN( - 37 ) * - CAST( NULL AS SIGNED ) + - - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL 52 + + - MIN ( - 37 ) * - CAST ( NULL AS INTEGER ) + - - 98 AS col0
----
NULL

query I rowsort
SELECT ALL 11 + + 63 AS col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6106
SELECT DISTINCT - 27 AS col2, 58 + + - NULLIF ( 32, + 92 / - - COUNT( * ) + - ( - + SUM( DISTINCT + 16 ) ) + 80 * - 7 + + 71 * + - 21 / + - COUNT( * ) * 70 )
----
-27
26

skipif mysql # not compatible
query II rowsort label-6106
SELECT DISTINCT - 27 AS col2, 58 + + - NULLIF ( 32, + 92 / - - COUNT ( * ) + - ( - + SUM ( DISTINCT + 16 ) ) + 80 * - 7 + + 71 * + - 21 / + - COUNT ( * ) * 70 )
----
-27
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6107
SELECT ( 18 ) * - 1 + - 99 DIV + + COUNT( * ) + + 17 + - + COALESCE ( + - 28, 33 - + 48 ) * 24 + 69 + + 18 * + 28 * + 27 * MIN( DISTINCT 92 * + 95 ) - + COUNT( * ) AS col0
----
118934560

skipif mysql # not compatible
query I rowsort label-6107
SELECT ( 18 ) * - 1 + - 99 / + + COUNT ( * ) + + 17 + - + COALESCE ( + - 28, 33 - + 48 ) * 24 + 69 + + 18 * + 28 * + 27 * MIN ( DISTINCT 92 * + 95 ) - + COUNT ( * ) AS col0
----
118934560

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT 5 - - 72 * COUNT( * ) * 62
----
4469

skipif mysql # not compatible
query I rowsort label-6108
SELECT 5 - - 72 * COUNT ( * ) * 62
----
4469

query I rowsort
SELECT 11 * 91 AS col0
----
1001

query I rowsort
SELECT 14 - - - 69
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT DISTINCT 39 * + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT 39 * + COUNT ( * )
----
39

query I rowsort
SELECT ALL 98 + 36 AS col2
----
134

query I rowsort
SELECT ALL 68 * - ( - ( + 89 ) ) col2
----
6052

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT COALESCE ( - 89, 61, + MAX( DISTINCT 6 ) ) * 27 col1
----
-2403

skipif mysql # not compatible
query I rowsort label-6114
SELECT COALESCE ( - 89, 61, + MAX ( DISTINCT 6 ) ) * 27 col1
----
-2403

query I rowsort
SELECT 4 + - 46 AS col0
----
-42

query II rowsort
SELECT ALL 36 col1, 56 + 38
----
36
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT COALESCE ( + + 93, + + COALESCE ( MAX( DISTINCT - - 86 ), + 9 ), 7 + NULLIF ( - COUNT( * ), + 31 ) * + + 82 )
----
93

skipif mysql # not compatible
query I rowsort label-6117
SELECT COALESCE ( + + 93, + + COALESCE ( MAX ( DISTINCT - - 86 ), + 9 ), 7 + NULLIF ( - COUNT ( * ), + 31 ) * + + 82 )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6118
SELECT ALL + CAST( + 94 AS SIGNED ) + 61 + - 85 * + - 26 AS col0
----
2365

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL + CAST ( + 94 AS INTEGER ) + 61 + - 85 * + - 26 AS col0
----
2365

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6119
SELECT ALL + + 54 DIV COUNT( * ) col2
----
54

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL + + 54 / COUNT ( * ) col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT DISTINCT 93 + - + 45 * - - MIN( DISTINCT + + 79 )
----
-3462

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT 93 + - + 45 * - - MIN ( DISTINCT + + 79 )
----
-3462

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT - MIN( 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-6121
SELECT - MIN ( 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT + MAX( - - 67 ) + + + 53
----
120

skipif mysql # not compatible
query I rowsort label-6122
SELECT + MAX ( - - 67 ) + + + 53
----
120

query I rowsort
SELECT DISTINCT - 13 + - 87
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6124
SELECT ALL + 55 / + - CASE + 56 WHEN - COUNT( * ) THEN - ( - COUNT( * ) ) * + 34 - + CAST( NULL AS SIGNED ) - + 4 * + 84 END * - - COUNT( * ) + - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL + 55 / + - CASE + 56 WHEN - COUNT ( * ) THEN - ( - COUNT ( * ) ) * + 34 - + CAST ( NULL AS INTEGER ) - + 4 * + 84 END * - - COUNT ( * ) + - 88 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 12 * + 39 * 55 - - + 19
----
25759

query I rowsort
SELECT - 8 + 31
----
23

query I rowsort
SELECT DISTINCT - ( 64 ) col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT ALL - 3 * + COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL - 3 * + COUNT ( * ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT + ( + + COUNT( * ) ) + - 40
----
-39

skipif mysql # not compatible
query I rowsort label-6129
SELECT + ( + + COUNT ( * ) ) + - 40
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6130
SELECT DISTINCT - + 7 * + CAST( 39 AS SIGNED ) AS col2
----
-273

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT - + 7 * + CAST ( 39 AS INTEGER ) AS col2
----
-273

query I rowsort
SELECT + 89 + ( + 63 )
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6132
SELECT + CASE 1 WHEN + + ( - 73 ) + - 43 + 18 + 57 THEN + 21 * - COALESCE ( - 65, - + 51 * - + 53 ) + 83 + + + 6 ELSE NULL END + - CAST( ( + 90 ) AS SIGNED ) * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT + CASE 1 WHEN + + ( - 73 ) + - 43 + 18 + 57 THEN + 21 * - COALESCE ( - 65, - + 51 * - + 53 ) + 83 + + + 6 ELSE NULL END + - CAST ( ( + 90 ) AS INTEGER ) * 97
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6133
SELECT ALL + 33 DIV - 94 * + + 98
----
0

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL + 33 / - 94 * + + 98
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6134
SELECT COUNT( * ) DIV - 74 + 85
----
85

skipif mysql # not compatible
query I rowsort label-6134
SELECT COUNT ( * ) / - 74 + 85
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT DISTINCT ( + - 55 ) * + 52 + 90 * + MAX( ALL 46 ) + + - COUNT( * )
----
1279

skipif mysql # not compatible
query I rowsort label-6135
SELECT DISTINCT ( + - 55 ) * + 52 + 90 * + MAX ( ALL 46 ) + + - COUNT ( * )
----
1279

query I rowsort
SELECT ALL + 34 / + CASE 91 WHEN 39 * 19 - - - 15 THEN NULL WHEN - 69 THEN - 90 + - 41 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6137
SELECT DISTINCT + 16 * + 30 * + 49 DIV - COUNT( * ), - 76 AS col1
----
-23520
-76

skipif mysql # not compatible
query II rowsort label-6137
SELECT DISTINCT + 16 * + 30 * + 49 / - COUNT ( * ), - 76 AS col1
----
-23520
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT 25 * - 95 + 72 * MAX( - 88 )
----
-8711

skipif mysql # not compatible
query I rowsort label-6138
SELECT 25 * - 95 + 72 * MAX ( - 88 )
----
-8711

query I rowsort
SELECT DISTINCT 75 * ( - + 29 ) + - - 26
----
-2149

query I rowsort
SELECT + 75 + - 72
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6141
SELECT NULLIF ( MAX( - 37 ), + COALESCE ( + + COUNT( * ), 40 * + 83 + + + COALESCE ( - CAST( + 40 AS SIGNED ), - 14 * + 88 + + + 56 + 93 - + 44 * - + 56, - 95 ) * + 57 + - 92, + 25 ) ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-6141
SELECT NULLIF ( MAX ( - 37 ), + COALESCE ( + + COUNT ( * ), 40 * + 83 + + + COALESCE ( - CAST ( + 40 AS INTEGER ), - 14 * + 88 + + + 56 + 93 - + 44 * - + 56, - 95 ) * + 57 + - 92, + 25 ) ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT ALL + 19 * 25 + + COALESCE ( - COALESCE ( + 40, 41 ), 77, MAX( ALL + 93 ) ) + - 1
----
434

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL + 19 * 25 + + COALESCE ( - COALESCE ( + 40, 41 ), 77, MAX ( ALL + 93 ) ) + - 1
----
434

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT ALL 56 * 52 + - NULLIF ( - - 15, + AVG ( + 70 ) * + COUNT( * ) ) + 0 + + - 83 * + 77 * + - 3 AS col1
----
22070

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL 56 * 52 + - NULLIF ( - - 15, + AVG ( + 70 ) * + COUNT ( * ) ) + 0 + + - 83 * + 77 * + - 3 AS col1
----
22070

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT SUM( ALL ( - 89 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-6144
SELECT SUM ( ALL ( - 89 ) )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT ALL - 79 * - COUNT( * ) + + 27 + - 53 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL - 79 * - COUNT ( * ) + + 27 + - 53 AS col1
----
53

query II rowsort
SELECT + 37, 7 * 57 col0
----
37
399

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT + 26 + + - 9 - - 27 + ( - - COUNT( * ) ) * + 39 * - 88
----
-3388

skipif mysql # not compatible
query I rowsort label-6147
SELECT + 26 + + - 9 - - 27 + ( - - COUNT ( * ) ) * + 39 * - 88
----
-3388

query I rowsort
SELECT + COALESCE ( + 87, 44 ) * 51 + + + 71 * - 96
----
-2379

query I rowsort
SELECT ALL COALESCE ( - 43, 40 ) * - 43 AS col1
----
1849

onlyif mysql # DIV for integer division: 
query II rowsort label-6150
SELECT + + 87 DIV COALESCE ( + - 9, + 28 ) * 52 + + 52, ( - 60 ) + + 77 AS col2
----
-416
17

skipif mysql # not compatible
query II rowsort label-6150
SELECT + + 87 / COALESCE ( + - 9, + 28 ) * 52 + + 52, ( - 60 ) + + 77 AS col2
----
-416
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT DISTINCT 71 * + + COUNT( * ) * + 41 * + 40 col1
----
116440

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT 71 * + + COUNT ( * ) * + 41 * + 40 col1
----
116440

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT + COUNT( * ) - 96 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-6152
SELECT + COUNT ( * ) - 96 AS col0
----
-95

query II rowsort
SELECT DISTINCT 99 col1, + 88 + - 65 col0
----
99
23

onlyif mysql # aggregate syntax: 
query II rowsort label-6154
SELECT - COUNT( * ) AS col1, 20 * 43 + COUNT( * ) col2
----
-1
861

skipif mysql # not compatible
query II rowsort label-6154
SELECT - COUNT ( * ) AS col1, 20 * 43 + COUNT ( * ) col2
----
-1
861

onlyif mysql # DIV for integer division: 
query I rowsort label-6155
SELECT - + 88 DIV + - 77
----
1

skipif mysql # not compatible
query I rowsort label-6155
SELECT - + 88 / + - 77
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6156
SELECT DISTINCT - - 92 DIV + + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT - - 92 / + + COUNT ( * )
----
92

query II rowsort
SELECT - 78 AS col0, + 29
----
-78
29

query I rowsort
SELECT - 83 * + ( + 79 ) + - 52
----
-6609

query I rowsort
SELECT ALL - 1 * 15 AS col0
----
-15

query II rowsort
SELECT DISTINCT 0 + + + 62, 80 AS col0
----
62
80

query I rowsort
SELECT ALL + 29 * - 25 AS col0
----
-725

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT ALL - 2 + + + 84 - - + CASE - - 36 WHEN - AVG ( DISTINCT 98 ) THEN 84 ELSE - - 68 * + COUNT( * ) END * - ( - + 82 ) AS col2
----
5658

skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL - 2 + + + 84 - - + CASE - - 36 WHEN - AVG ( DISTINCT 98 ) THEN 84 ELSE - - 68 * + COUNT ( * ) END * - ( - + 82 ) AS col2
----
5658

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT - ( + COUNT( * ) ) * + 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6163
SELECT - ( + COUNT ( * ) ) * + 3 AS col1
----
-3

query I rowsort
SELECT ALL + 29 * 64 col0
----
1856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6165
SELECT ALL ( + - 83 ) / - COUNT( * ) + COUNT( * ) * - 89 * - + COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL ( + - 83 ) / - COUNT ( * ) + COUNT ( * ) * - 89 * - + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT DISTINCT + ( + - MIN( DISTINCT + 44 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT + ( + - MIN ( DISTINCT + 44 ) )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6167
SELECT + NULLIF ( - - COUNT( * ), 53 ) DIV - 20 DIV COUNT( * ) + - 73 + - + 93 AS col1
----
-166

skipif mysql # not compatible
query I rowsort label-6167
SELECT + NULLIF ( - - COUNT ( * ), 53 ) / - 20 / COUNT ( * ) + - 73 + - + 93 AS col1
----
-166

onlyif mysql # DIV for integer division: 
query I rowsort label-6168
SELECT - 75 * 96 DIV + 77
----
-93

skipif mysql # not compatible
query I rowsort label-6168
SELECT - 75 * 96 / + 77
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6169
SELECT ALL + 25 DIV 42 * + - 18 + + - 43 + - 92 * + + MAX( ALL + - 46 ) + - 67 AS col1, + ( - 91 ) AS col2
----
4122
-91

skipif mysql # not compatible
query II rowsort label-6169
SELECT ALL + 25 / 42 * + - 18 + + - 43 + - 92 * + + MAX ( ALL + - 46 ) + - 67 AS col1, + ( - 91 ) AS col2
----
4122
-91

query I rowsort
SELECT + NULLIF ( 48, 57 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6171
SELECT ALL CAST( + 15 AS SIGNED ) * - + 2 * 14 + 79
----
-341

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL CAST ( + 15 AS INTEGER ) * - + 2 * 14 + 79
----
-341

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6172
SELECT ALL - 59 * + 79 / - + 76 - - - CAST( NULL AS DECIMAL ) * - 2 + + - 16 * + + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL - 59 * + 79 / - + 76 - - - CAST ( NULL AS REAL ) * - 2 + + - 16 * + + 69 AS col1
----
NULL

query I rowsort
SELECT + ( + 20 ) * 7 + - 22 + 82 - 63 * 8 + + 23 + 37 + 29 * 57 * + 32
----
52652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6174
SELECT ALL - - ( - - CAST( NULL AS SIGNED ) ) * 38 * - ( + 38 ) AS col1, MIN( DISTINCT - 94 )
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-6174
SELECT ALL - - ( - - CAST ( NULL AS INTEGER ) ) * 38 * - ( + 38 ) AS col1, MIN ( DISTINCT - 94 )
----
NULL
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT DISTINCT + - 8 * COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT + - 8 * COUNT ( * )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6176
SELECT - - 81 * + CAST( 53 AS SIGNED ) + - + 59 + 41
----
4275

skipif mysql # not compatible
query I rowsort label-6176
SELECT - - 81 * + CAST ( 53 AS INTEGER ) + - + 59 + 41
----
4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6177
SELECT + 15 - - CAST( - NULLIF ( 5, 3 ) AS SIGNED ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-6177
SELECT + 15 - - CAST ( - NULLIF ( 5, 3 ) AS INTEGER ) AS col1
----
10

query I rowsort
SELECT DISTINCT + + 94 col2
----
94

query II rowsort
SELECT + - 27 * - 11 + 2, 84 AS col0
----
299
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6180
SELECT CAST( NULL AS SIGNED ) * - - 35 - 74 * 48 * - 24 + + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT CAST ( NULL AS INTEGER ) * - - 35 - 74 * 48 * - 24 + + 47 AS col2
----
NULL

query II rowsort
SELECT - - 58 * + 7, - 1 AS col0
----
406
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT ALL + + 91 * COUNT( * ) + - 4 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL + + 91 * COUNT ( * ) + - 4 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6183
SELECT + + CASE + 52 WHEN - COUNT( * ) + + 10 * - CAST( NULL AS SIGNED ) * - - 55 THEN NULL ELSE + 96 DIV - - 63 END + 31 + - 27 - + 43 + + - 45 DIV 8 * 6 * + 88 AS col0
----
-2678

skipif mysql # not compatible
query I rowsort label-6183
SELECT + + CASE + 52 WHEN - COUNT ( * ) + + 10 * - CAST ( NULL AS INTEGER ) * - - 55 THEN NULL ELSE + 96 / - - 63 END + 31 + - 27 - + 43 + + - 45 / 8 * 6 * + 88 AS col0
----
-2678

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT ALL ( SUM( - 99 ) ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL ( SUM ( - 99 ) ) AS col1
----
-99

query I rowsort
SELECT 33 * + 55 - + - 85
----
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT ALL 57 * + 12 * - COUNT( * ) + - + 58 AS col0
----
-742

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL 57 * + 12 * - COUNT ( * ) + - + 58 AS col0
----
-742

query I rowsort
SELECT - 26 - - 20 * - 27 + + 9 AS col1
----
-557

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6188
SELECT - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + 13 * + - ( 49 ) * + + COUNT( * ) * NULLIF ( CAST( NULL AS DECIMAL ), COALESCE ( + - 34, + 43 * 83 + - + MAX( 88 ) ) + + - 94 + - + 64 * 10 ) / + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + 13 * + - ( 49 ) * + + COUNT ( * ) * NULLIF ( CAST ( NULL AS REAL ), COALESCE ( + - 34, + 43 * 83 + - + MAX ( 88 ) ) + + - 94 + - + 64 * 10 ) / + 6 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6189
SELECT CAST( + 98 AS SIGNED ) + 7 DIV + - 34
----
98

skipif mysql # not compatible
query I rowsort label-6189
SELECT CAST ( + 98 AS INTEGER ) + 7 / + - 34
----
98

query I rowsort
SELECT - NULLIF ( + 60, + ( + 1 ) )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT ALL - MAX( - 48 ) * 52 + + COUNT( * )
----
2497

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL - MAX ( - 48 ) * 52 + + COUNT ( * )
----
2497

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT 70 + MIN( ALL + 0 ) * + + 82 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6192
SELECT 70 + MIN ( ALL + 0 ) * + + 82 AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6193
SELECT ALL 59 + ( COUNT( * ) ) - + CAST( - ( - 55 ) AS SIGNED ) col0, 3 - COUNT( * ) + + - ( + - 65 ) / + + COUNT( * ) / - CAST( NULL AS SIGNED ) AS col1
----
5
NULL

skipif mysql # not compatible
query II rowsort label-6193
SELECT ALL 59 + ( COUNT ( * ) ) - + CAST ( - ( - 55 ) AS INTEGER ) col0, 3 - COUNT ( * ) + + - ( + - 65 ) / + + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col1
----
5
NULL

query I rowsort
SELECT ALL 35 + - 19 AS col0
----
16

query I rowsort
SELECT ALL - 70 + 72
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT 95 + + 88 + - - ( - + ( - CASE - 39 WHEN + - ( - ( - 18 ) ) THEN NULL WHEN - 39 THEN CASE + ( + + 40 ) WHEN - 95 THEN - + 29 * 93 WHEN + + 11 * - ( 95 ) + - COUNT( * ) THEN NULL WHEN - 47 THEN NULL ELSE NULL END / 85 + - 62 WHEN 3 * + 52 - 28 THEN NULL ELSE 51 END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6196
SELECT 95 + + 88 + - - ( - + ( - CASE - 39 WHEN + - ( - ( - 18 ) ) THEN NULL WHEN - 39 THEN CASE + ( + + 40 ) WHEN - 95 THEN - + 29 * 93 WHEN + + 11 * - ( 95 ) + - COUNT ( * ) THEN NULL WHEN - 47 THEN NULL ELSE NULL END / 85 + - 62 WHEN 3 * + 52 - 28 THEN NULL ELSE 51 END ) ) AS col0
----
NULL

query II rowsort
SELECT - 69 col0, 42 AS col2
----
-69
42

query I rowsort
SELECT ALL 88 + - 24
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6199
SELECT DISTINCT 47 + - 87 + + SUM( 5 ) DIV COUNT( * ) * 82 col0, 81 AS col2
----
370
81

skipif mysql # not compatible
query II rowsort label-6199
SELECT DISTINCT 47 + - 87 + + SUM ( 5 ) / COUNT ( * ) * 82 col0, 81 AS col2
----
370
81

query II rowsort
SELECT 80, 15 col1
----
80
15

query I rowsort
SELECT 85 * - 70
----
-5950

query I rowsort
SELECT - 61 * + ( + 34 ) + 34 * - - 46 AS col0
----
-510

query II rowsort
SELECT + 83 AS col2, 84
----
83
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6204
SELECT ALL + CASE 94 WHEN 76 THEN - 84 ELSE NULL END * - + CASE 5 WHEN 57 + - + 78 + + 12 / + - 60 THEN NULL WHEN + COUNT( * ) * + 19 THEN + 80 * + + CAST( + + COUNT( ALL + + 26 ) AS SIGNED ) WHEN - 97 THEN - COUNT( * ) ELSE - 5 + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL + CASE 94 WHEN 76 THEN - 84 ELSE NULL END * - + CASE 5 WHEN 57 + - + 78 + + 12 / + - 60 THEN NULL WHEN + COUNT ( * ) * + 19 THEN + 80 * + + CAST ( + + COUNT ( ALL + + 26 ) AS INTEGER ) WHEN - 97 THEN - COUNT ( * ) ELSE - 5 + 60 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6205
SELECT ALL - 69, 22 * 49 * + COUNT( * ) - + + ( - 35 ) DIV 16 + + - CAST( 31 AS SIGNED ) AS col1
----
-69
1049

skipif mysql # not compatible
query II rowsort label-6205
SELECT ALL - 69, 22 * 49 * + COUNT ( * ) - + + ( - 35 ) / 16 + + - CAST ( 31 AS INTEGER ) AS col1
----
-69
1049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6206
SELECT ALL 46 - COALESCE ( 9, + ( - 14 ) * + 63 - + 77 - + - 21 + + 98, 20 * + 84 + ( - NULLIF ( + CASE + + ( + + 49 ) WHEN + + 79 + - - MAX( ALL - CAST( NULL AS SIGNED ) ) + 10 * + 98 THEN + 13 + - CAST( + 18 AS SIGNED ) END, - 69 * ( 43 ) ) ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL 46 - COALESCE ( 9, + ( - 14 ) * + 63 - + 77 - + - 21 + + 98, 20 * + 84 + ( - NULLIF ( + CASE + + ( + + 49 ) WHEN + + 79 + - - MAX ( ALL - CAST ( NULL AS INTEGER ) ) + 10 * + 98 THEN + 13 + - CAST ( + 18 AS INTEGER ) END, - 69 * ( 43 ) ) ) ) AS col2
----
37

query II rowsort
SELECT 10 AS col1, 91 * 71 * - + 3
----
10
-19383

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT ALL NULLIF ( 10, + COUNT( * ) * + + COUNT( * ) + + 50 + - + COALESCE ( - - 6, COUNT( + ( 9 ) ) * - + 37 + + - ( + 72 ), + 89 ) * + 8 ) - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL NULLIF ( 10, + COUNT ( * ) * + + COUNT ( * ) + + 50 + - + COALESCE ( - - 6, COUNT ( + ( 9 ) ) * - + 37 + + - ( + 72 ), + 89 ) * + 8 ) - COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT DISTINCT - MAX( + 15 ) col0
----
-15

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT - MAX ( + 15 ) col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6210
SELECT ALL + CAST( + 77 AS SIGNED ) - - + 97 DIV + 58 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL + CAST ( + 77 AS INTEGER ) - - + 97 / + 58 AS col1
----
78

query I rowsort
SELECT CASE - NULLIF ( - 66, + 45 * - COALESCE ( + + 55, COALESCE ( 0, - - 1 * - 5 ), + 54 ) ) WHEN 46 THEN NULL WHEN - - 25 THEN - - 37 + + 10 ELSE 48 END
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6212
SELECT CAST( + - 12 AS SIGNED ) DIV + COUNT( * ) DIV + - COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-6212
SELECT CAST ( + - 12 AS INTEGER ) / + COUNT ( * ) / + - COUNT ( * ) AS col2
----
12

query I rowsort
SELECT ALL - 76 * - 56
----
4256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6214
SELECT 71 * - COUNT( DISTINCT 37 ) * + + CAST( NULL AS SIGNED ) * - 79 * + + 13 + 22 + COUNT( * ) / - CAST( - COUNT( * ) AS DECIMAL ) + + + CASE + 26 WHEN 50 * + 35 * + - AVG ( 79 ) + + + 10 THEN + 65 END * 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6214
SELECT 71 * - COUNT ( DISTINCT 37 ) * + + CAST ( NULL AS INTEGER ) * - 79 * + + 13 + 22 + COUNT ( * ) / - CAST ( - COUNT ( * ) AS REAL ) + + + CASE + 26 WHEN 50 * + 35 * + - AVG ( 79 ) + + + 10 THEN + 65 END * 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT + MAX( ALL 75 )
----
75

skipif mysql # not compatible
query I rowsort label-6215
SELECT + MAX ( ALL 75 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6216
SELECT ALL - 32 DIV + + ( 35 ) * ( + + SUM( - + ( + 98 ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL - 32 / + + ( 35 ) * ( + + SUM ( - + ( + 98 ) ) ) AS col0
----
0

query II rowsort
SELECT DISTINCT - + 67 AS col1, 90 AS col2
----
-67
90

query I rowsort
SELECT DISTINCT - 82 + + ( - + 36 ) + - + 68 AS col0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT + CASE - 56 WHEN + 21 THEN + - 25 + + MIN( - COALESCE ( + 81, - 44 * 49 ) ) * - + 87 ELSE NULL END / COUNT( * ) * + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6219
SELECT + CASE - 56 WHEN + 21 THEN + - 25 + + MIN ( - COALESCE ( + 81, - 44 * 49 ) ) * - + 87 ELSE NULL END / COUNT ( * ) * + 58 AS col2
----
NULL

query I rowsort
SELECT ( - + NULLIF ( - 83, - 55 / - ( 53 ) ) ) + + - 13 col0
----
70

query I rowsort
SELECT ALL - + 50 + - 29
----
-79

query II rowsort
SELECT - - 4, 21 AS col2
----
4
21

query I rowsort
SELECT - 18 * 80
----
-1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6224
SELECT ALL 42 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL 42 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 75 + 75
----
150

query I rowsort
SELECT 69 * + + 90 AS col1
----
6210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6227
SELECT 5 * - 92 * CAST( + 91 AS SIGNED ) col1
----
-41860

skipif mysql # not compatible
query I rowsort label-6227
SELECT 5 * - 92 * CAST ( + 91 AS INTEGER ) col1
----
-41860

query I rowsort
SELECT ALL 6 + - 29 col2
----
-23

query I rowsort
SELECT DISTINCT 41 * + 30
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT DISTINCT + 57 - + NULLIF ( COALESCE ( + + SUM( + CASE + 36 WHEN - 42 THEN NULL WHEN ( + 95 ) THEN - + 59 + - 62 + + + 62 + - 94 WHEN + 25 * 25 + + + 15 + - 60 * - 39 + + 33 + - 49 * 4 * 25 + 71 THEN 17 END ), - SUM( ALL - 52 ) - 89 ), COUNT( * ) + 65 * + COUNT( * ) ) + + ( - COUNT( * ) ) * 37 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-6230
SELECT DISTINCT + 57 - + NULLIF ( COALESCE ( + + SUM ( + CASE + 36 WHEN - 42 THEN NULL WHEN ( + 95 ) THEN - + 59 + - 62 + + + 62 + - 94 WHEN + 25 * 25 + + + 15 + - 60 * - 39 + + 33 + - 49 * 4 * 25 + 71 THEN 17 END ), - SUM ( ALL - 52 ) - 89 ), COUNT ( * ) + 65 * + COUNT ( * ) ) + + ( - COUNT ( * ) ) * 37 AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6231
SELECT DISTINCT 93 - + - 49 * 7 DIV 62 - ( COUNT( * ) ) - 46 * + + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT 93 - + - 49 * 7 / 62 - ( COUNT ( * ) ) - 46 * + + COUNT ( * )
----
51

query I rowsort
SELECT DISTINCT 5 * - 72
----
-360

onlyif mysql # aggregate syntax: 
query II rowsort label-6233
SELECT ALL - 40 - - 68, - COALESCE ( - - 89, - MAX( - 40 ) + - + MAX( DISTINCT + + ( - NULLIF ( - + 26, 78 ) ) ), 20 ) * 65 AS col2
----
28
-5785

skipif mysql # not compatible
query II rowsort label-6233
SELECT ALL - 40 - - 68, - COALESCE ( - - 89, - MAX ( - 40 ) + - + MAX ( DISTINCT + + ( - NULLIF ( - + 26, 78 ) ) ), 20 ) * 65 AS col2
----
28
-5785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6234
SELECT CASE + + 5 WHEN CASE 25 WHEN + 52 / + 64 - - - 69 THEN + - 32 - 62 END / - ( + + 35 ) + + - NULLIF ( - + 73, - 80 + - + COALESCE ( 28, + - 66 ) ) THEN - + 61 + NULLIF ( NULLIF ( COALESCE ( + CAST( 90 AS SIGNED ), 67, 46 ), NULLIF ( ( 17 ), CAST( 38 AS SIGNED ) ) * - MIN( 33 ) ), - 45 ) WHEN CASE + 58 WHEN 63 + 80 THEN COALESCE ( - 80, + COUNT( * ), ( CAST( NULL AS SIGNED ) ) ) WHEN 31 + 86 * COUNT( * ) THEN NULL WHEN 85 THEN NULL ELSE NULL END + 59 THEN 79 WHEN 62 * 32 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT CASE + + 5 WHEN CASE 25 WHEN + 52 / + 64 - - - 69 THEN + - 32 - 62 END / - ( + + 35 ) + + - NULLIF ( - + 73, - 80 + - + COALESCE ( 28, + - 66 ) ) THEN - + 61 + NULLIF ( NULLIF ( COALESCE ( + CAST ( 90 AS INTEGER ), 67, 46 ), NULLIF ( ( 17 ), CAST ( 38 AS INTEGER ) ) * - MIN ( 33 ) ), - 45 ) WHEN CASE + 58 WHEN 63 + 80 THEN COALESCE ( - 80, + COUNT ( * ), ( CAST ( NULL AS INTEGER ) ) ) WHEN 31 + 86 * COUNT ( * ) THEN NULL WHEN 85 THEN NULL ELSE NULL END + 59 THEN 79 WHEN 62 * 32 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6235
SELECT + MAX( + - ( ( 56 ) ) ) col0, - 92 AS col0
----
-56
-92

skipif mysql # not compatible
query II rowsort label-6235
SELECT + MAX ( + - ( ( 56 ) ) ) col0, - 92 AS col0
----
-56
-92

query I rowsort
SELECT 13 * - + 46 + 73
----
-525

query I rowsort
SELECT 46 * - 44 * - 85 * - 77
----
-13247080

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT - 50 + - + 48 + 86 - - COUNT( * ) * 72 + + 16 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6238
SELECT - 50 + - + 48 + 86 - - COUNT ( * ) * 72 + + 16 AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6239
SELECT ALL + - 3 * - 57 * + COUNT( - 18 ) + + 34 + + + 82 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL + - 3 * - 57 * + COUNT ( - 18 ) + + 34 + + + 82 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT - ( + - 24 ) * + - MIN( - 64 ) + - 57
----
1479

skipif mysql # not compatible
query I rowsort label-6240
SELECT - ( + - 24 ) * + - MIN ( - 64 ) + - 57
----
1479

onlyif mysql # DIV for integer division: 
query I rowsort label-6241
SELECT DISTINCT - 94 DIV + - 20 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT - 94 / + - 20 AS col2
----
4

query I rowsort
SELECT DISTINCT - + 98 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT DISTINCT + MAX( DISTINCT + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT + MAX ( DISTINCT + 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT + ( + - ( SUM( DISTINCT 73 ) ) )
----
-73

skipif mysql # not compatible
query I rowsort label-6244
SELECT + ( + - ( SUM ( DISTINCT 73 ) ) )
----
-73

query I rowsort
SELECT + + 64 * ( - + 24 ) - + 47
----
-1583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6246
SELECT DISTINCT + CASE - 68 WHEN + + 22 THEN NULL WHEN - 21 / - + COALESCE ( + 91, - - 14 ) * - COUNT( * ) + + CAST( - 76 AS SIGNED ) THEN + + NULLIF ( + COUNT( * ), 74 ) * + + 87 + + COUNT( * ) END * - - 87 + - 36 - + 99 * + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT + CASE - 68 WHEN + + 22 THEN NULL WHEN - 21 / - + COALESCE ( + 91, - - 14 ) * - COUNT ( * ) + + CAST ( - 76 AS INTEGER ) THEN + + NULLIF ( + COUNT ( * ), 74 ) * + + 87 + + COUNT ( * ) END * - - 87 + - 36 - + 99 * + - 93
----
NULL

query I rowsort
SELECT 26 * + 79 + 58 AS col2
----
2112

query I rowsort
SELECT DISTINCT + + COALESCE ( + 83, - - 78 )
----
83

query II rowsort
SELECT ALL - + 23 + 90 + + 5 * 6, + 70 AS col2
----
97
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6250
SELECT - CAST( NULL AS DECIMAL ) * 17 - + ( + 0 ) + - 5 + 49 * - + COUNT( ALL - ( + - 65 ) ), 69 AS col0
----
NULL
69

skipif mysql # not compatible
query II rowsort label-6250
SELECT - CAST ( NULL AS REAL ) * 17 - + ( + 0 ) + - 5 + 49 * - + COUNT ( ALL - ( + - 65 ) ), 69 AS col0
----
NULL
69

query I rowsort
SELECT ALL + 29 + + + COALESCE ( 25, 70 )
----
54

onlyif mysql # DIV for integer division: 
query II rowsort label-6252
SELECT DISTINCT - - 73 + - + 61 AS col1, + 79 DIV - + 69 AS col2
----
12
-1

skipif mysql # not compatible
query II rowsort label-6252
SELECT DISTINCT - - 73 + - + 61 AS col1, + 79 / - + 69 AS col2
----
12
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT ALL + 38 + 41 + + COUNT( * ) + - 72 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL + 38 + 41 + + COUNT ( * ) + - 72 AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6254
SELECT - 24 - CAST( NULL AS SIGNED ) / + - SUM( + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6254
SELECT - 24 - CAST ( NULL AS INTEGER ) / + - SUM ( + 98 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT - 0 - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6255
SELECT - 0 - - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL + 70 + - 51 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT ALL - COUNT( * ) * + + 82
----
-82

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL - COUNT ( * ) * + + 82
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6258
SELECT - 71 + - 67 DIV + 98 + + COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-6258
SELECT - 71 + - 67 / + 98 + + COUNT ( * ) AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6259
SELECT - 88 + - CAST( NULL AS SIGNED ) - NULLIF ( 90, COUNT( * ) * - 20 / + - AVG ( ALL - 12 ) ) + + 48 + + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT - 88 + - CAST ( NULL AS INTEGER ) - NULLIF ( 90, COUNT ( * ) * - 20 / + - AVG ( ALL - 12 ) ) + + 48 + + - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT DISTINCT - 25 - - - MIN( DISTINCT - 83 ) * + 65 * + COALESCE ( - - 46, - + 98 ) col0
----
248145

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT - 25 - - - MIN ( DISTINCT - 83 ) * + 65 * + COALESCE ( - - 46, - + 98 ) col0
----
248145

query I rowsort
SELECT ALL + 71 * + 43
----
3053

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6262
SELECT - 40 + - CAST( + 44 AS SIGNED ), 48 AS col0
----
-84
48

skipif mysql # not compatible
query II rowsort label-6262
SELECT - 40 + - CAST ( + 44 AS INTEGER ), 48 AS col0
----
-84
48

query I rowsort
SELECT + 93 + 68 col1
----
161

onlyif mysql # aggregate syntax: 
query II rowsort label-6264
SELECT ALL ( - CASE + 99 WHEN 49 THEN NULL WHEN - 77 THEN NULL ELSE - NULLIF ( - 62, + 60 + - - COUNT( * ) * - 16 ) END ) AS col0, 77 + 94
----
-62
171

skipif mysql # not compatible
query II rowsort label-6264
SELECT ALL ( - CASE + 99 WHEN 49 THEN NULL WHEN - 77 THEN NULL ELSE - NULLIF ( - 62, + 60 + - - COUNT ( * ) * - 16 ) END ) AS col0, 77 + 94
----
-62
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6265
SELECT + 10 + + ( - + COALESCE ( - 29, - 85 ) ) + + CAST( + 30 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-6265
SELECT + 10 + + ( - + COALESCE ( - 29, - 85 ) ) + + CAST ( + 30 AS INTEGER )
----
69

query II rowsort
SELECT 35 AS col2, 81 AS col2
----
35
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT DISTINCT MIN( ALL 92 ) * 2
----
184

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT MIN ( ALL 92 ) * 2
----
184

query I rowsort
SELECT + 80 * - + 19
----
-1520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6269
SELECT DISTINCT + ( - 65 ) * CAST( NULL AS SIGNED ) + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT + ( - 65 ) * CAST ( NULL AS INTEGER ) + 26
----
NULL

query II rowsort
SELECT ALL + 19 AS col2, 56 AS col2
----
19
56

query I rowsort
SELECT ALL + ( + 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT + + 10 * COALESCE ( - 67, - 37 ) + + 4 + + + COUNT( * ) + - + SUM( DISTINCT - + 42 )
----
-623

skipif mysql # not compatible
query I rowsort label-6272
SELECT + + 10 * COALESCE ( - 67, - 37 ) + + 4 + + + COUNT ( * ) + - + SUM ( DISTINCT - + 42 )
----
-623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6273
SELECT - CAST( NULL AS SIGNED ) * + SUM( - - 17 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6273
SELECT - CAST ( NULL AS INTEGER ) * + SUM ( - - 17 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 96 * - 94 + + 87 AS col0
----
-8937

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT - NULLIF ( + 44, + 50 * + 13 * - + 24 ) * - 37 * - - COUNT( * ) - - + 21
----
1649

skipif mysql # not compatible
query I rowsort label-6275
SELECT - NULLIF ( + 44, + 50 * + 13 * - + 24 ) * - 37 * - - COUNT ( * ) - - + 21
----
1649

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT ALL + MAX( ALL 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL + MAX ( ALL 32 ) AS col0
----
32

query I rowsort
SELECT + 77 * - 43 AS col0
----
-3311

query I rowsort
SELECT ALL - 89 * 4 * - + 10 * - 90 AS col1
----
-320400

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6279
SELECT ALL SUM( DISTINCT CAST( NULL AS DECIMAL ) ) * - 98 + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL SUM ( DISTINCT CAST ( NULL AS REAL ) ) * - 98 + 17
----
NULL

query I rowsort
SELECT + 39 * + - 15
----
-585

onlyif mysql # DIV for integer division: 
query I rowsort label-6281
SELECT - 9 + 4 - + ( 91 ) DIV - ( 27 ) + 84 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6281
SELECT - 9 + 4 - + ( 91 ) / - ( 27 ) + 84 AS col0
----
82

query I rowsort
SELECT - 22 + + 94
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT MIN( DISTINCT ( 4 ) )
----
4

skipif mysql # not compatible
query I rowsort label-6283
SELECT MIN ( DISTINCT ( 4 ) )
----
4

query I rowsort
SELECT - 77 + 58 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT ALL ( - + MAX( + 78 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL ( - + MAX ( + 78 ) )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-6286
SELECT COUNT( * ), 40 * - 36 AS col1
----
1
-1440

skipif mysql # not compatible
query II rowsort label-6286
SELECT COUNT ( * ), 40 * - 36 AS col1
----
1
-1440

query I rowsort
SELECT ALL 80 * 86 * - - 4 - + 51 AS col2
----
27469

query I rowsort
SELECT ALL NULLIF ( + 2, - - 9 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6289
SELECT ALL + CAST( NULL AS SIGNED ) * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL + CAST ( NULL AS INTEGER ) * + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT - 93 * + MIN( ALL - 11 ) col0
----
1023

skipif mysql # not compatible
query I rowsort label-6290
SELECT - 93 * + MIN ( ALL - 11 ) col0
----
1023

query I rowsort
SELECT ALL + ( + 85 ) * - 3
----
-255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6292
SELECT + CAST( NULL AS SIGNED ) - - ( COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT + CAST ( NULL AS INTEGER ) - - ( COUNT ( * ) ) col0
----
NULL

query I rowsort
SELECT ALL + 40 * ( 85 )
----
3400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6294
SELECT - 98 * + 53 DIV - CAST( COUNT( * ) AS SIGNED )
----
5194

skipif mysql # not compatible
query I rowsort label-6294
SELECT - 98 * + 53 / - CAST ( COUNT ( * ) AS INTEGER )
----
5194

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6295
SELECT - 57 * - 4 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT - 57 * - 4 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT - 51 - + - MAX( 81 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6296
SELECT - 51 - + - MAX ( 81 ) AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6297
SELECT ALL - SUM( ALL + 11 ) * COUNT( ALL + + CAST( NULL AS DECIMAL ) ), 9 AS col0
----
0
9

skipif mysql # not compatible
query II rowsort label-6297
SELECT ALL - SUM ( ALL + 11 ) * COUNT ( ALL + + CAST ( NULL AS REAL ) ), 9 AS col0
----
0
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6298
SELECT ALL ( - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6299
SELECT ALL 39 DIV + + 73 * ( - + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL 39 / + + 73 * ( - + COUNT ( * ) )
----
0

query I rowsort
SELECT DISTINCT - - 19 + + + 51
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT ALL + - 57 + + + 44 + CASE + 44 WHEN + 48 THEN NULL ELSE - - 13 END * - + COUNT( * ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + - 57 + + + 44 + CASE + 44 WHEN + 48 THEN NULL ELSE - - 13 END * - + COUNT ( * ) col1
----
-26

query II rowsort
SELECT + 18, 14 AS col0
----
18
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT ALL - 45 + + - ( COALESCE ( + COUNT( * ), + 21 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL - 45 + + - ( COALESCE ( + COUNT ( * ), + 21 ) )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6304
SELECT + 52 AS col1, CASE + COUNT( * ) WHEN + 41 THEN + + 10 * COUNT( * ) WHEN + 77 * + - CAST( NULL AS SIGNED ) + + ( - 74 ) THEN NULL END col2
----
52
NULL

skipif mysql # not compatible
query II rowsort label-6304
SELECT + 52 AS col1, CASE + COUNT ( * ) WHEN + 41 THEN + + 10 * COUNT ( * ) WHEN + 77 * + - CAST ( NULL AS INTEGER ) + + ( - 74 ) THEN NULL END col2
----
52
NULL

query I rowsort
SELECT ALL - - ( - 96 ) AS col2
----
-96

query II rowsort
SELECT 47 AS col0, 2
----
47
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6307
SELECT - - COALESCE ( + + 13, - + ( + COUNT( * ) ), + 57 * - - 9 ) DIV + 18 + + 18
----
18

skipif mysql # not compatible
query I rowsort label-6307
SELECT - - COALESCE ( + + 13, - + ( + COUNT ( * ) ), + 57 * - - 9 ) / + 18 + + 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT + CASE + + NULLIF ( + COUNT( ALL + 31 ), ( + 91 ) + COUNT( * ) ) WHEN - COUNT( * ) + + 77 THEN - + 71 + 22 / - 78 + 3 ELSE NULL END * - 96 - - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6308
SELECT + CASE + + NULLIF ( + COUNT ( ALL + 31 ), ( + 91 ) + COUNT ( * ) ) WHEN - COUNT ( * ) + + 77 THEN - + 71 + 22 / - 78 + 3 ELSE NULL END * - 96 - - 45 AS col1
----
NULL

query I rowsort
SELECT ALL + 53 * - 11
----
-583

query I rowsort
SELECT DISTINCT - - 56 col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT DISTINCT - NULLIF ( 17, - - COUNT( * ) - + 50 / + 28 * - - 60 * ( 83 ) + - 17 ) + 79 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6311
SELECT DISTINCT - NULLIF ( 17, - - COUNT ( * ) - + 50 / + 28 * - - 60 * ( 83 ) + - 17 ) + 79 AS col0
----
62

query I rowsort
SELECT + - NULLIF ( 78, + 66 ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT + + ( - COUNT( DISTINCT + 11 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6313
SELECT + + ( - COUNT ( DISTINCT + 11 ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6314
SELECT ALL - COUNT( * ) + - + COUNT( ALL + + CAST( NULL AS SIGNED ) ) - + - 69 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL - COUNT ( * ) + - + COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) - + - 69 AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6315
SELECT ALL + 93 * + 78 * + COALESCE ( + 85, - COUNT( * ) * - 38 * 64 * - 15 + + 73, - - 94 * CAST( - 48 AS SIGNED ) + - 62, 87 ) col0, CAST( NULL AS DECIMAL ) + 61 + + 58
----
616590
NULL

skipif mysql # not compatible
query II rowsort label-6315
SELECT ALL + 93 * + 78 * + COALESCE ( + 85, - COUNT ( * ) * - 38 * 64 * - 15 + + 73, - - 94 * CAST ( - 48 AS INTEGER ) + - 62, 87 ) col0, CAST ( NULL AS REAL ) + 61 + + 58
----
616590
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT - 85 * + 52 + - + 60 + - + ( - 40 ) + MAX( DISTINCT 61 ) AS col1
----
-4379

skipif mysql # not compatible
query I rowsort label-6316
SELECT - 85 * + 52 + - + 60 + - + ( - 40 ) + MAX ( DISTINCT 61 ) AS col1
----
-4379

query II rowsort
SELECT + 43 AS col1, 76
----
43
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6318
SELECT ALL - ( + - COUNT( * ) ) DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL - ( + - COUNT ( * ) ) / + 37
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6319
SELECT + SUM( DISTINCT - - 88 ) * CASE - - 45 WHEN + 81 * - - CAST( 80 AS SIGNED ) + + 62 + - 70 * + COUNT( * ) THEN + ( NULLIF ( - COUNT( * ), + NULLIF ( COALESCE ( + - 77, + 20 * + ( - CAST( 56 AS SIGNED ) ) ), + + 54 * + - 27 ) ) ) WHEN COUNT( * ) THEN NULL END - + ( 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT + SUM ( DISTINCT - - 88 ) * CASE - - 45 WHEN + 81 * - - CAST ( 80 AS INTEGER ) + + 62 + - 70 * + COUNT ( * ) THEN + ( NULLIF ( - COUNT ( * ), + NULLIF ( COALESCE ( + - 77, + 20 * + ( - CAST ( 56 AS INTEGER ) ) ), + + 54 * + - 27 ) ) ) WHEN COUNT ( * ) THEN NULL END - + ( 31 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6320
SELECT 98 DIV 36 * + - 6 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-6320
SELECT 98 / 36 * + - 6 AS col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6321
SELECT ALL 29 DIV + + 19 AS col2, + CASE 75 WHEN + CAST( 43 AS SIGNED ) THEN - 69 END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6321
SELECT ALL 29 / + + 19 AS col2, + CASE 75 WHEN + CAST ( 43 AS INTEGER ) THEN - 69 END AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT DISTINCT 53 - COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT 53 - COUNT ( * ) AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6323
SELECT 81 * - COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT 81 * - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 30 - + - 2 AS col1, 95 * + 95 col2
----
32
9025

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT ALL CASE + + ( - + 20 ) WHEN COUNT( - - 58 ) THEN - 20 * + 44 + + - 28 - + + 41 WHEN COALESCE ( 57, - 99 ) THEN NULL END * 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL CASE + + ( - + 20 ) WHEN COUNT ( - - 58 ) THEN - 20 * + 44 + + - 28 - + + 41 WHEN COALESCE ( 57, - 99 ) THEN NULL END * 38 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6326
SELECT ( CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) ) + 70 + ( + 82 ) * 45 + - + 87 + - 21 * + 6 - - + 96 + - - COUNT( * ) * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6326
SELECT ( CAST ( + CAST ( NULL AS REAL ) AS REAL ) ) + 70 + ( + 82 ) * 45 + - + 87 + - 21 * + 6 - - + 96 + - - COUNT ( * ) * + 11
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6327
SELECT DISTINCT ( + + CAST( NULL AS SIGNED ) ) + 0 * - - AVG ( DISTINCT - 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) + 0 * - - AVG ( DISTINCT - 41 ) AS col0
----
NULL

query II rowsort
SELECT ALL + 91 + + 83 + + 50 + + + 44 * + 76 col0, 35
----
3568
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6329
SELECT ALL CAST( NULL AS SIGNED ) + - + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL CAST ( NULL AS INTEGER ) + - + 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT - - COUNT( ALL - 94 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6330
SELECT - - COUNT ( ALL - 94 ) AS col0
----
1

query II rowsort
SELECT + 52 + 92 AS col0, 20
----
144
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ALL - 99 * + NULLIF ( + 63, + NULLIF ( - - 32, + - 44 * ( - 3 ) ) * + COALESCE ( + 49, - - COUNT( * ) ) / - 29 / + COUNT( * ) + 1 )
----
-6237

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL - 99 * + NULLIF ( + 63, + NULLIF ( - - 32, + - 44 * ( - 3 ) ) * + COALESCE ( + 49, - - COUNT ( * ) ) / - 29 / + COUNT ( * ) + 1 )
----
-6237

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT SUM( ALL 53 ) + - ( COUNT( * ) )
----
52

skipif mysql # not compatible
query I rowsort label-6333
SELECT SUM ( ALL 53 ) + - ( COUNT ( * ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT COUNT( ALL 18 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6334
SELECT COUNT ( ALL 18 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6335
SELECT DISTINCT - 66 + - 87 + + 40 DIV - 26
----
-154

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT - 66 + - 87 + + 40 / - 26
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6336
SELECT CAST( NULL AS SIGNED ) * - CASE WHEN NOT NULL <= - 42 THEN + - COUNT( * ) * - 38 + + - 54 + - COUNT( * ) / + 8 / - - CAST( + 53 AS DECIMAL ) * + 41 - + - COUNT( * ) * + 31 * - 75 ELSE NULL END / - - 85 + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT CAST ( NULL AS INTEGER ) * - CASE WHEN NOT NULL <= - 42 THEN + - COUNT ( * ) * - 38 + + - 54 + - COUNT ( * ) / + 8 / - - CAST ( + 53 AS REAL ) * + 41 - + - COUNT ( * ) * + 31 * - 75 ELSE NULL END / - - 85 + 4
----
NULL

query I rowsort
SELECT DISTINCT + 63 * - ( + 37 )
----
-2331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6338
SELECT DISTINCT - 5 + + 83, CAST( + COUNT( * ) AS SIGNED ) col1
----
78
1

skipif mysql # not compatible
query II rowsort label-6338
SELECT DISTINCT - 5 + + 83, CAST ( + COUNT ( * ) AS INTEGER ) col1
----
78
1

query I rowsort
SELECT DISTINCT + 25 - 20 + + 49
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT 50 * - 98 + - COUNT( * ) * 72
----
-4972

skipif mysql # not compatible
query I rowsort label-6340
SELECT 50 * - 98 + - COUNT ( * ) * 72
----
-4972

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT ALL - + CASE + + 15 WHEN + COALESCE ( NULLIF ( + SUM( + - 10 ), + 78 ), + + 11 ) + AVG ( - + 61 ) * - + 38 THEN - - 85 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL - + CASE + + 15 WHEN + COALESCE ( NULLIF ( + SUM ( + - 10 ), + 78 ), + + 11 ) + AVG ( - + 61 ) * - + 38 THEN - - 85 END col0
----
NULL

query I rowsort
SELECT + - ( + ( COALESCE ( + 63, - + 75 ) ) ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT - ( - 35 ) * + 59 + COUNT( * ) + 39 col2
----
2105

skipif mysql # not compatible
query I rowsort label-6343
SELECT - ( - 35 ) * + 59 + COUNT ( * ) + 39 col2
----
2105

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT + - CASE + 92 WHEN 6 * 42 THEN + 51 WHEN + - 82 * 58 / + CASE - - 46 WHEN COUNT( ALL 80 ) / - COUNT( * ) THEN + 65 END THEN NULL WHEN - CASE - COUNT( * ) WHEN + 41 THEN NULL WHEN 25 THEN 63 END + + - 65 + - - 47 * - 36 * + 45 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6344
SELECT + - CASE + 92 WHEN 6 * 42 THEN + 51 WHEN + - 82 * 58 / + CASE - - 46 WHEN COUNT ( ALL 80 ) / - COUNT ( * ) THEN + 65 END THEN NULL WHEN - CASE - COUNT ( * ) WHEN + 41 THEN NULL WHEN 25 THEN 63 END + + - 65 + - - 47 * - 36 * + 45 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6345
SELECT ALL + COUNT( * ) - - 15 AS col2, - 96 AS col1
----
16
-96

skipif mysql # not compatible
query II rowsort label-6345
SELECT ALL + COUNT ( * ) - - 15 AS col2, - 96 AS col1
----
16
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6346
SELECT CAST( 72 AS DECIMAL ) * CASE 24 WHEN - 73 THEN - - COUNT( * ) ELSE NULL END * CAST( COUNT( * ) AS SIGNED ) * AVG ( ALL + 32 ) * + 18 * ( + + 75 ) * 17 * - - 51 + - 61 + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6346
SELECT CAST ( 72 AS REAL ) * CASE 24 WHEN - 73 THEN - - COUNT ( * ) ELSE NULL END * CAST ( COUNT ( * ) AS INTEGER ) * AVG ( ALL + 32 ) * + 18 * ( + + 75 ) * 17 * - - 51 + - 61 + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT 27 + MAX( + 50 )
----
77

skipif mysql # not compatible
query I rowsort label-6347
SELECT 27 + MAX ( + 50 )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6348
SELECT ALL - NULLIF ( + CASE + 64 WHEN + 80 + + + CAST( - 44 AS SIGNED ) + - COUNT( * ) THEN + 59 + + 48 END, - 19 * - 71 + 26 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL - NULLIF ( + CASE + 64 WHEN + 80 + + + CAST ( - 44 AS INTEGER ) + - COUNT ( * ) THEN + 59 + + 48 END, - 19 * - 71 + 26 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 49 * 89 AS col0
----
-4361

query I rowsort
SELECT ALL - ( + + 4 ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-6351
SELECT + 67 AS col1, - 18 * + COUNT( * )
----
67
-18

skipif mysql # not compatible
query II rowsort label-6351
SELECT + 67 AS col1, - 18 * + COUNT ( * )
----
67
-18

query II rowsort
SELECT ALL - 68 AS col1, 15 * 36 AS col2
----
-68
540

query III rowsort
SELECT 51 AS col0, 30 * + 86 * 68, - 31 AS col1
----
51
175440
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT - CASE 46 WHEN + 39 + + 13 * - 52 * COUNT( * ) + + - COUNT( * ) THEN 93 WHEN + 26 THEN NULL WHEN - 74 THEN NULL ELSE NULL END * + SUM( + 19 ) + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6354
SELECT - CASE 46 WHEN + 39 + + 13 * - 52 * COUNT ( * ) + + - COUNT ( * ) THEN 93 WHEN + 26 THEN NULL WHEN - 74 THEN NULL ELSE NULL END * + SUM ( + 19 ) + 97
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6355
SELECT DISTINCT 28 DIV + + 25 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT 28 / + + 25 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6356
SELECT ALL - 22 + - MIN( + + 14 ) + + 21 + + - 30 DIV + 71 * + ( + 82 ) + ( + ( + + 81 ) ) * COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL - 22 + - MIN ( + + 14 ) + + 21 + + - 30 / + 71 * + ( + 82 ) + ( + ( + + 81 ) ) * COUNT ( * ) AS col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-6357
SELECT 29 * + COALESCE ( - + 80, - 47 DIV + - 73 ) AS col2
----
-2320

skipif mysql # not compatible
query I rowsort label-6357
SELECT 29 * + COALESCE ( - + 80, - 47 / + - 73 ) AS col2
----
-2320

query I rowsort
SELECT DISTINCT 63 * - 9
----
-567

query I rowsort
SELECT ALL 22 + 1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6360
SELECT + 4 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-6360
SELECT + 4 / + 81
----
0

query I rowsort
SELECT ALL - 50 + + 69 + 11 * - 55 AS col2
----
-586

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT + COUNT( DISTINCT + 0 ) - + 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6362
SELECT + COUNT ( DISTINCT + 0 ) - + 0 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6363
SELECT 94 col1, ( - 92 ) DIV 76 + - + 87 - + - COUNT( * ) - + 27 + - - 82 + + 64 AS col1
----
94
32

skipif mysql # not compatible
query II rowsort label-6363
SELECT 94 col1, ( - 92 ) / 76 + - + 87 - + - COUNT ( * ) - + 27 + - - 82 + + 64 AS col1
----
94
32

query I rowsort
SELECT ALL 3 * + 55
----
165

query II rowsort
SELECT ALL 52, - 74 AS col0
----
52
-74

query II rowsort
SELECT DISTINCT 15 + 85 + - 15 AS col1, + 97
----
85
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6367
SELECT ALL 0 - + 13 DIV - 68 * ( 58 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL 0 - + 13 / - 68 * ( 58 ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6368
SELECT - - COUNT( DISTINCT + + 58 ) * + + COUNT( * ) + - 43 + + CASE - COALESCE ( 61, + SUM( ALL 83 ) * + + 71 - 18, ( - CASE - 82 WHEN 57 THEN NULL ELSE 87 / 59 * + 20 / 1 END ) * - + 60 * NULLIF ( 2, - + 15 + 82 ) + 26 ) WHEN + 94 * 8 THEN NULL WHEN 30 / 57 - CAST( + 2 AS SIGNED ) * - 73 THEN COUNT( * ) END + - AVG ( 92 + - 94 ) * - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6368
SELECT - - COUNT ( DISTINCT + + 58 ) * + + COUNT ( * ) + - 43 + + CASE - COALESCE ( 61, + SUM ( ALL 83 ) * + + 71 - 18, ( - CASE - 82 WHEN 57 THEN NULL ELSE 87 / 59 * + 20 / 1 END ) * - + 60 * NULLIF ( 2, - + 15 + 82 ) + 26 ) WHEN + 94 * 8 THEN NULL WHEN 30 / 57 - CAST ( + 2 AS INTEGER ) * - 73 THEN COUNT ( * ) END + - AVG ( 92 + - 94 ) * - 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT DISTINCT - ( COUNT( * ) ) * + - 74
----
74

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT - ( COUNT ( * ) ) * + - 74
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6370
SELECT ALL + + CAST( NULL AS SIGNED ) - - 14 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL + + CAST ( NULL AS INTEGER ) - - 14 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT - MIN( DISTINCT + - 65 )
----
65

skipif mysql # not compatible
query I rowsort label-6371
SELECT - MIN ( DISTINCT + - 65 )
----
65

query II rowsort
SELECT ALL 82 AS col2, 39 + - 63
----
82
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6373
SELECT ALL - 10 * + - 12 * + + 97 AS col0, - 6 + - CAST( - NULLIF ( - 0, + COALESCE ( - 65, + 41 * 83 ) * + ( 30 ) + + - 37 + CAST( NULL AS SIGNED ) * + ( - 33 ) ) AS SIGNED ) + - 10 + + 81 DIV - - 21 * - + COALESCE ( - COUNT( * ), - CAST( NULL AS SIGNED ) + + 12, 50 ) AS col0
----
11640
-13

skipif mysql # not compatible
query II rowsort label-6373
SELECT ALL - 10 * + - 12 * + + 97 AS col0, - 6 + - CAST ( - NULLIF ( - 0, + COALESCE ( - 65, + 41 * 83 ) * + ( 30 ) + + - 37 + CAST ( NULL AS INTEGER ) * + ( - 33 ) ) AS INTEGER ) + - 10 + + 81 / - - 21 * - + COALESCE ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) + + 12, 50 ) AS col0
----
11640
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT - COUNT( * ) * 86 * + + 15 - ( + + COUNT( + NULLIF ( - 47, + 82 ) ) ) col2
----
-1291

skipif mysql # not compatible
query I rowsort label-6374
SELECT - COUNT ( * ) * 86 * + + 15 - ( + + COUNT ( + NULLIF ( - 47, + 82 ) ) ) col2
----
-1291

query II rowsort
SELECT 19, - 79 AS col1
----
19
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6376
SELECT DISTINCT + 19 * - 14 * - 68 * + 11 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT + 19 * - 14 * - 68 * + 11 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 46 + 13 + + + 61 * + 47 AS col1
----
2834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6378
SELECT CASE 79 WHEN + 68 + - 72 + + - COUNT( * ) THEN - CASE + - COUNT( * ) WHEN + ( + - 31 ) * + 17 * + 34 + + 80 THEN - 69 WHEN - COUNT( * ) * + 96 / + CAST( + 99 AS SIGNED ) * - 56 + + CAST( + 63 AS SIGNED ) - - ( + MAX( 34 ) ) * + - 45 * CAST( ( 73 ) AS SIGNED ) - - COUNT( * ) THEN NULL ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT CASE 79 WHEN + 68 + - 72 + + - COUNT ( * ) THEN - CASE + - COUNT ( * ) WHEN + ( + - 31 ) * + 17 * + 34 + + 80 THEN - 69 WHEN - COUNT ( * ) * + 96 / + CAST ( + 99 AS INTEGER ) * - 56 + + CAST ( + 63 AS INTEGER ) - - ( + MAX ( 34 ) ) * + - 45 * CAST ( ( 73 ) AS INTEGER ) - - COUNT ( * ) THEN NULL ELSE NULL END END
----
NULL

query I rowsort
SELECT - 94 * + 3
----
-282

query I rowsort
SELECT - 6 + - - 62 AS col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6381
SELECT COALESCE ( + 14, - + ( ( + 59 ) ), - SUM( ALL + + 35 ) ), + COUNT( * ) + - - 14 AS col1
----
14
15

skipif mysql # not compatible
query II rowsort label-6381
SELECT COALESCE ( + 14, - + ( ( + 59 ) ), - SUM ( ALL + + 35 ) ), + COUNT ( * ) + - - 14 AS col1
----
14
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6382
SELECT ALL + CASE WHEN ( NULL ) NOT IN ( - + 69, - 33 / - CAST( NULL AS SIGNED ) + - + 93, CAST( + 23 AS SIGNED ), + + 24, + CAST( NULL AS SIGNED ), ( ( SUM( ALL + 64 ) ) ) ) THEN - - 35 + - 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6382
SELECT ALL + CASE WHEN ( NULL ) NOT IN ( - + 69, - 33 / - CAST ( NULL AS INTEGER ) + - + 93, CAST ( + 23 AS INTEGER ), + + 24, + CAST ( NULL AS INTEGER ), ( ( SUM ( ALL + 64 ) ) ) ) THEN - - 35 + - 42 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6383
SELECT COALESCE ( - 97, 23, - + ( - CAST( + 40 AS SIGNED ) ) * ( + 91 ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6383
SELECT COALESCE ( - 97, 23, - + ( - CAST ( + 40 AS INTEGER ) ) * ( + 91 ) ) AS col1
----
-97

query I rowsort
SELECT ALL + 23 * + + 56 * 30 + - + CASE 60 WHEN 24 THEN NULL ELSE 19 * + 6 END
----
38526

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT + 64 * - COUNT( * ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6385
SELECT + 64 * - COUNT ( * ) AS col0
----
-64

query I rowsort
SELECT ALL + 74 * + 33 + - 11 + + 20 AS col2
----
2451

query I rowsort
SELECT 81 * 48 - + + 88 AS col0
----
3800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6388
SELECT DISTINCT + COUNT( * ) * - 89 DIV - 82 + 78
----
79

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT + COUNT ( * ) * - 89 / - 82 + 78
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6389
SELECT ALL - 97 * + 4 + + 20 / - 75 * + + 59 / - 31 - - CAST( NULL AS SIGNED ) * + 13 + + 74 * - - MAX( - 35 ) * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL - 97 * + 4 + + 20 / - 75 * + + 59 / - 31 - - CAST ( NULL AS INTEGER ) * + 13 + + 74 * - - MAX ( - 35 ) * - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT COUNT( ALL - - 94 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6390
SELECT COUNT ( ALL - - 94 ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6391
SELECT DISTINCT CAST( + 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT CAST ( + 61 AS INTEGER )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT - 92 + - COUNT( * ) + - 18 + - - 68 * 29 * - 55 * 17 AS col0
----
-1843931

skipif mysql # not compatible
query I rowsort label-6392
SELECT - 92 + - COUNT ( * ) + - 18 + - - 68 * 29 * - 55 * 17 AS col0
----
-1843931

onlyif mysql # aggregate syntax: 
query II rowsort label-6393
SELECT + 98 - 82, + 86 * + 36 + + COUNT( * ) AS col2
----
16
3097

skipif mysql # not compatible
query II rowsort label-6393
SELECT + 98 - 82, + 86 * + 36 + + COUNT ( * ) AS col2
----
16
3097

onlyif mysql # aggregate syntax: 
query II rowsort label-6394
SELECT COUNT( DISTINCT + + 68 ) AS col2, + 81
----
1
81

skipif mysql # not compatible
query II rowsort label-6394
SELECT COUNT ( DISTINCT + + 68 ) AS col2, + 81
----
1
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT - COUNT( DISTINCT 56 ) + - + COUNT( * ) + + - 99 AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-6395
SELECT - COUNT ( DISTINCT 56 ) + - + COUNT ( * ) + + - 99 AS col0
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6396
SELECT ALL COUNT( * ) - - - COUNT( * ) + ( + 91 ) / + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL COUNT ( * ) - - - COUNT ( * ) + ( + 91 ) / + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 87 + - 94
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6398
SELECT DISTINCT + 49 DIV - COUNT( * ) - + 70 DIV COUNT( + 1 ) - - + 39
----
-80

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT + 49 / - COUNT ( * ) - + 70 / COUNT ( + 1 ) - - + 39
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6399
SELECT + CAST( NULL AS SIGNED ) + - MIN( - - 24 ) - + 49 - - + 90 * + 58 * 47 + - 98 * CAST( NULL AS DECIMAL ), - ( - + 31 ) - 7 AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-6399
SELECT + CAST ( NULL AS INTEGER ) + - MIN ( - - 24 ) - + 49 - - + 90 * + 58 * 47 + - 98 * CAST ( NULL AS REAL ), - ( - + 31 ) - 7 AS col2
----
NULL
24

query II rowsort
SELECT ALL 45 * - 48, 51 AS col0
----
-2160
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT ALL + ( - COUNT( * ) ) - + NULLIF ( + - 48, - 27 + + COUNT( * ) * + 12 + - + 48 + - ( - COALESCE ( + - 45, 7 ) ) )
----
47

skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL + ( - COUNT ( * ) ) - + NULLIF ( + - 48, - 27 + + COUNT ( * ) * + 12 + - + 48 + - ( - COALESCE ( + - 45, 7 ) ) )
----
47

query I rowsort
SELECT + + 94 * 21
----
1974

query II rowsort
SELECT - - COALESCE ( + 72, - 32 ) * + 69, 22 AS col1
----
4968
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT + MIN( DISTINCT 32 ) + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-6404
SELECT + MIN ( DISTINCT 32 ) + COUNT ( * )
----
33

query I rowsort
SELECT ALL - 81 * - 7 * 80
----
45360

query I rowsort
SELECT + 64 + + 17 * ( - 41 ) * - 43 AS col2
----
30035

onlyif mysql # aggregate syntax: 
query II rowsort label-6407
SELECT - 73 * + + 71, 88 + + 38 + COUNT( * ) * + 5 * 48 * - 34 * + 95 AS col2
----
-5183
-775074

skipif mysql # not compatible
query II rowsort label-6407
SELECT - 73 * + + 71, 88 + + 38 + COUNT ( * ) * + 5 * 48 * - 34 * + 95 AS col2
----
-5183
-775074

query I rowsort
SELECT DISTINCT 91 * 26
----
2366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6409
SELECT - COUNT( - ( - + 95 ) ) DIV - 2 + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6409
SELECT - COUNT ( - ( - + 95 ) ) / - 2 + - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6410
SELECT DISTINCT - CAST( 71 AS SIGNED ) DIV - 28
----
2

skipif mysql # not compatible
query I rowsort label-6410
SELECT DISTINCT - CAST ( 71 AS INTEGER ) / - 28
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6411
SELECT ALL COUNT( * ) DIV 22
----
0

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL COUNT ( * ) / 22
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6412
SELECT + COALESCE ( + 9, - MAX( + 66 ) + - - 81 ) * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT + COALESCE ( + 9, - MAX ( + 66 ) + - - 81 ) * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 65 - 76 AS col1
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-6414
SELECT DISTINCT - 62 DIV + 30 + - 60, 18 * + - 34 AS col0
----
-62
-612

skipif mysql # not compatible
query II rowsort label-6414
SELECT DISTINCT - 62 / + 30 + - 60, 18 * + - 34 AS col0
----
-62
-612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6415
SELECT DISTINCT + 79 DIV + 22 + MIN( ALL + 21 )
----
24

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT + 79 / + 22 + MIN ( ALL + 21 )
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-6416
SELECT ALL + MAX( ALL - 88 ) * 87 AS col0, - 70 * - 55 AS col1
----
-7656
3850

skipif mysql # not compatible
query II rowsort label-6416
SELECT ALL + MAX ( ALL - 88 ) * 87 AS col0, - 70 * - 55 AS col1
----
-7656
3850

onlyif mysql # DIV for integer division: 
query I rowsort label-6417
SELECT ALL - 46 DIV + - ( + 29 ) + 71 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL - 46 / + - ( + 29 ) + 71 AS col1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-6418
SELECT ALL - COALESCE ( - 6, 8 ) + + COUNT( * ) + - 17 AS col1, 69 + + 26 col2
----
-10
95

skipif mysql # not compatible
query II rowsort label-6418
SELECT ALL - COALESCE ( - 6, 8 ) + + COUNT ( * ) + - 17 AS col1, 69 + + 26 col2
----
-10
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT 39 / - CASE - + ( 36 ) WHEN - - 50 + + COUNT( * ) + + + 22 / + + 19 THEN 2 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6419
SELECT 39 / - CASE - + ( 36 ) WHEN - - 50 + + COUNT ( * ) + + + 22 / + + 19 THEN 2 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 50 + - + 79
----
-29

query I rowsort
SELECT ALL - 86 + + NULLIF ( + - 73, + 85 )
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6422
SELECT ALL + CAST( 94 AS SIGNED ) / 35 + CASE - 28 WHEN - + 87 THEN - NULLIF ( + + 80, - - 40 / - 67 + 85 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL + CAST ( 94 AS INTEGER ) / 35 + CASE - 28 WHEN - + 87 THEN - NULLIF ( + + 80, - - 40 / - 67 + 85 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( 2, + 53, - - 67 ) + + + 89 * - 24 + 58
----
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT 74 + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-6424
SELECT 74 + COUNT ( * ) AS col2
----
75

query I rowsort
SELECT ALL - 87 - + 32 + - - 4 * - + NULLIF ( - 41, - 44 )
----
45

query II rowsort
SELECT 19 AS col2, - 92
----
19
-92

query I rowsort
SELECT 57 * - 67 col0
----
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT ALL + 20 * COUNT( * ) + 88
----
108

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL + 20 * COUNT ( * ) + 88
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6429
SELECT ALL + + 6 - - CAST( + 3 AS SIGNED ) + 79 * - 61, ( + 59 ) AS col0
----
-4810
59

skipif mysql # not compatible
query II rowsort label-6429
SELECT ALL + + 6 - - CAST ( + 3 AS INTEGER ) + 79 * - 61, ( + 59 ) AS col0
----
-4810
59

query I rowsort
SELECT ALL ( - + 8 ) col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT - CASE - + COUNT( * ) WHEN + + 95 THEN 32 * - 44 + - - ( - 73 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6431
SELECT - CASE - + COUNT ( * ) WHEN + + 95 THEN 32 * - 44 + - - ( - 73 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 38 - + 65 AS col0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6433
SELECT DISTINCT 44 AS col2, - CAST( NULL AS SIGNED ) col2
----
44
NULL

skipif mysql # not compatible
query II rowsort label-6433
SELECT DISTINCT 44 AS col2, - CAST ( NULL AS INTEGER ) col2
----
44
NULL

query I rowsort
SELECT 33 - + 85
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT - ( 42 ) * - COUNT( * ) * - - COUNT( * ) + + 46 + 61 - + - 11
----
160

skipif mysql # not compatible
query I rowsort label-6435
SELECT - ( 42 ) * - COUNT ( * ) * - - COUNT ( * ) + + 46 + 61 - + - 11
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT + COUNT( COALESCE ( + 79, - + 90 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6436
SELECT + COUNT ( COALESCE ( + 79, - + 90 ) )
----
1

query I rowsort
SELECT - 65 + - + 92
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT - + MIN( ALL + 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-6438
SELECT - + MIN ( ALL + 99 )
----
-99

query I rowsort
SELECT ALL - NULLIF ( 52, - AVG ( DISTINCT + - 99 ) )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT + 57 * - MAX( ALL + 27 ) + + NULLIF ( - + COUNT( * ), + 56 ) AS col2
----
-1540

skipif mysql # not compatible
query I rowsort label-6440
SELECT + 57 * - MAX ( ALL + 27 ) + + NULLIF ( - + COUNT ( * ), + 56 ) AS col2
----
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT COUNT( * ) - + 14 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-6441
SELECT COUNT ( * ) - + 14 AS col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6442
SELECT ALL + CAST( - - ( + - 29 ) AS SIGNED ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL + CAST ( - - ( + - 29 ) AS INTEGER ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT + 15 - MAX( 66 ) + 74 + - COUNT( * ) + 13 * - - COUNT( * ) col2
----
35

skipif mysql # not compatible
query I rowsort label-6443
SELECT + 15 - MAX ( 66 ) + 74 + - COUNT ( * ) + 13 * - - COUNT ( * ) col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6444
SELECT - COUNT( * ) DIV 6 col1
----
0

skipif mysql # not compatible
query I rowsort label-6444
SELECT - COUNT ( * ) / 6 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT + COALESCE ( - - 93, - 9 - - COUNT( * ) ) + + 82 AS col2
----
175

skipif mysql # not compatible
query I rowsort label-6445
SELECT + COALESCE ( - - 93, - 9 - - COUNT ( * ) ) + + 82 AS col2
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT ALL ( + 37 ) * - - ( NULLIF ( - COUNT( * ), 64 * - 76 + + - 23 + 22 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL ( + 37 ) * - - ( NULLIF ( - COUNT ( * ), 64 * - 76 + + - 23 + 22 ) )
----
-37

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6447
SELECT - 37 * CASE + CAST( + + 57 AS DECIMAL ) WHEN - + 18 + 91 THEN + - CAST( NULL AS SIGNED ) WHEN - 75 / - CAST( 83 AS DECIMAL ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6447
SELECT - 37 * CASE + CAST ( + + 57 AS REAL ) WHEN - + 18 + 91 THEN + - CAST ( NULL AS INTEGER ) WHEN - 75 / - CAST ( 83 AS REAL ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT - 64 - + 20 * 20 + - COALESCE ( - SUM( ALL + 20 ), + + 87 ) AS col0
----
-444

skipif mysql # not compatible
query I rowsort label-6448
SELECT - 64 - + 20 * 20 + - COALESCE ( - SUM ( ALL + 20 ), + + 87 ) AS col0
----
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT COALESCE ( - - COUNT( * ), + COUNT( * ) - - NULLIF ( 81, 22 ) ) * 3
----
3

skipif mysql # not compatible
query I rowsort label-6449
SELECT COALESCE ( - - COUNT ( * ), + COUNT ( * ) - - NULLIF ( 81, 22 ) ) * 3
----
3

query II rowsort
SELECT DISTINCT - 91 AS col0, 14 * + 44
----
-91
616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6451
SELECT ALL + 63 * COUNT( - 47 ) DIV - - 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL + 63 * COUNT ( - 47 ) / - - 60 AS col2
----
1

query II rowsort
SELECT ALL - 84, + 6 AS col2
----
-84
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6453
SELECT + COUNT( * ) col0, 70 - COUNT( * ) - + + 57 + + ( - 2 ) * - CAST( - 13 AS SIGNED ) * - - 45 AS col0
----
1
-1158

skipif mysql # not compatible
query II rowsort label-6453
SELECT + COUNT ( * ) col0, 70 - COUNT ( * ) - + + 57 + + ( - 2 ) * - CAST ( - 13 AS INTEGER ) * - - 45 AS col0
----
1
-1158

query II rowsort
SELECT + 30 col1, - 62 AS col0
----
30
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6455
SELECT DISTINCT 4 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT 4 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ( + 15 ) + - 22
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6457
SELECT 10 col2, MIN( - - 42 ) AS col1
----
10
42

skipif mysql # not compatible
query II rowsort label-6457
SELECT 10 col2, MIN ( - - 42 ) AS col1
----
10
42

query I rowsort
SELECT ALL 80 - + + 63 * + 12 AS col1
----
-676

query II rowsort
SELECT + 38, + 36 AS col2
----
38
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6460
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6461
SELECT + COUNT( * ) * + CASE + COUNT( * ) WHEN + 27 * + 58 * - 92 - 74 THEN - 31 / COALESCE ( 38, - NULLIF ( + + SUM( - 24 ), - 22 ), - + 76 + 2 ) * - CAST( NULL AS SIGNED ) + - + 68 WHEN 80 * + ( - - 21 ) THEN 20 END + + 7 * - 70 * + 24 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6461
SELECT + COUNT ( * ) * + CASE + COUNT ( * ) WHEN + 27 * + 58 * - 92 - 74 THEN - 31 / COALESCE ( 38, - NULLIF ( + + SUM ( - 24 ), - 22 ), - + 76 + 2 ) * - CAST ( NULL AS INTEGER ) + - + 68 WHEN 80 * + ( - - 21 ) THEN 20 END + + 7 * - 70 * + 24 col2
----
NULL

query I rowsort
SELECT 73 + + 22 + - 38 col0
----
57

query I rowsort
SELECT ALL + + 70 - + 1 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6464
SELECT ALL - + 7 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL - + 7 / 89
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6465
SELECT 83 * - COUNT( + 85 ) + 31 * - 69 * - - COALESCE ( - 73, - CAST( NULL AS SIGNED ) ) * - 0 - + 31 + + - 53 + + + COUNT( * ) * 40 * - 45 + 21 AS col1
----
-1946

skipif mysql # not compatible
query I rowsort label-6465
SELECT 83 * - COUNT ( + 85 ) + 31 * - 69 * - - COALESCE ( - 73, - CAST ( NULL AS INTEGER ) ) * - 0 - + 31 + + - 53 + + + COUNT ( * ) * 40 * - 45 + 21 AS col1
----
-1946

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT COUNT( * ) + - - 65
----
66

skipif mysql # not compatible
query I rowsort label-6466
SELECT COUNT ( * ) + - - 65
----
66

query II rowsort
SELECT + 63 + + 48, + 96 AS col0
----
111
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6468
SELECT + CASE - 56 WHEN - 27 * 3 + + + COALESCE ( + 23, - 56 * - 46 + 85 ) * + CAST( NULL AS DECIMAL ) + - 23 + + COALESCE ( - + COUNT( * ), + - 93 ) THEN - + COUNT( * ) + 27 * + - 32 + + 57 ELSE 4 + 29 + COUNT( * ) * - 36 END AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6468
SELECT + CASE - 56 WHEN - 27 * 3 + + + COALESCE ( + 23, - 56 * - 46 + 85 ) * + CAST ( NULL AS REAL ) + - 23 + + COALESCE ( - + COUNT ( * ), + - 93 ) THEN - + COUNT ( * ) + 27 * + - 32 + + 57 ELSE 4 + 29 + COUNT ( * ) * - 36 END AS col1
----
-3

query I rowsort
SELECT COALESCE ( + 44, + 47 ) * + 63 + - 58 AS col1
----
2714

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT ALL - + 15 + - + MAX( + 56 ) col1
----
-71

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL - + 15 + - + MAX ( + 56 ) col1
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-6471
SELECT ALL 73 AS col2, SUM( 47 )
----
73
47

skipif mysql # not compatible
query II rowsort label-6471
SELECT ALL 73 AS col2, SUM ( 47 )
----
73
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6472
SELECT DISTINCT + + 36 * - 31 + + 11 + + ( COUNT( * ) ) - + COUNT( * ) * + CAST( NULL AS SIGNED ) * - ( COALESCE ( + + 59, 10 + + AVG ( + 10 ) * + - ( - 18 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT + + 36 * - 31 + + 11 + + ( COUNT ( * ) ) - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - ( COALESCE ( + + 59, 10 + + AVG ( + 10 ) * + - ( - 18 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT DISTINCT - 40 + - - 98 * + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-6473
SELECT DISTINCT - 40 + - - 98 * + COUNT ( * )
----
58

query I rowsort
SELECT DISTINCT + - ( - + 18 ) + + - 67 AS col0
----
-49

query I rowsort
SELECT ALL - + 23 + 86
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT - - SUM( 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-6476
SELECT - - SUM ( 94 ) AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-6477
SELECT - 79 * 85 DIV - 96 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-6477
SELECT - 79 * 85 / - 96 AS col1
----
69

query I rowsort
SELECT ALL - 46 + - 70
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT DISTINCT MAX( DISTINCT + 20 ) * - 82 + 47 + 29
----
-1564

skipif mysql # not compatible
query I rowsort label-6479
SELECT DISTINCT MAX ( DISTINCT + 20 ) * - 82 + 47 + 29
----
-1564

onlyif mysql # DIV for integer division: 
query I rowsort label-6480
SELECT + 88 DIV 62 col0
----
1

skipif mysql # not compatible
query I rowsort label-6480
SELECT + 88 / 62 col0
----
1

query I rowsort
SELECT ALL 99 * - 80 * - 23 AS col2
----
182160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6482
SELECT + 5 * - 95 AS col0, - CAST( 60 AS SIGNED )
----
-475
-60

skipif mysql # not compatible
query II rowsort label-6482
SELECT + 5 * - 95 AS col0, - CAST ( 60 AS INTEGER )
----
-475
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-6483
SELECT ALL - 59 DIV - - 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL - 59 / - - 81 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6484
SELECT DISTINCT 99 * - + COUNT( * ) - - 56 AS col0, 30 - 40 * + 61 * + - 75
----
-43
183030

skipif mysql # not compatible
query II rowsort label-6484
SELECT DISTINCT 99 * - + COUNT ( * ) - - 56 AS col0, 30 - 40 * + 61 * + - 75
----
-43
183030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6485
SELECT CASE - - 33 WHEN + COALESCE ( + NULLIF ( - + ( CAST( - + CASE + 73 WHEN 30 THEN - + COUNT( * ) ELSE NULL END AS SIGNED ) ), 67 ), ( 76 ) ) THEN 84 + - 94 WHEN - 30 / - - 68 THEN - + SUM( ALL CAST( NULL AS DECIMAL ) ) * 26 WHEN - + 52 + + 77 * - + 38 / - 1 - 70 / + 7 THEN NULL END * - - SUM( 41 ) + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT CASE - - 33 WHEN + COALESCE ( + NULLIF ( - + ( CAST ( - + CASE + 73 WHEN 30 THEN - + COUNT ( * ) ELSE NULL END AS INTEGER ) ), 67 ), ( 76 ) ) THEN 84 + - 94 WHEN - 30 / - - 68 THEN - + SUM ( ALL CAST ( NULL AS REAL ) ) * 26 WHEN - + 52 + + 77 * - + 38 / - 1 - 70 / + 7 THEN NULL END * - - SUM ( 41 ) + - 60
----
NULL

query I rowsort
SELECT + ( + 85 ) * ( + + 65 ) * + 46 - + 17 AS col1
----
254133

query I rowsort
SELECT ALL 39 * + COALESCE ( 24, - 82 ) * - 28 AS col2
----
-26208

onlyif mysql # aggregate syntax: 
query II rowsort label-6488
SELECT + COUNT( * ) * - 41 AS col1, 78
----
-41
78

skipif mysql # not compatible
query II rowsort label-6488
SELECT + COUNT ( * ) * - 41 AS col1, 78
----
-41
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * + 0 - + 20
----
-20

skipif mysql # not compatible
query I rowsort label-6489
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * + 0 - + 20
----
-20

query I rowsort
SELECT + 98 * - - 4 * + 13 * 67 - - ( - + 4 )
----
341428

onlyif mysql # aggregate syntax: 
query II rowsort label-6491
SELECT ALL 4 * - - 94, COUNT( * ) * - 56 AS col1
----
376
-56

skipif mysql # not compatible
query II rowsort label-6491
SELECT ALL 4 * - - 94, COUNT ( * ) * - 56 AS col1
----
376
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6492
SELECT + CASE - 59 WHEN + - 89 THEN NULL WHEN 29 + 48 + + NULLIF ( + NULLIF ( + 88, - AVG ( + 9 ) + 55 ), 72 * - 73 ) THEN + CAST( NULL AS SIGNED ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6492
SELECT + CASE - 59 WHEN + - 89 THEN NULL WHEN 29 + 48 + + NULLIF ( + NULLIF ( + 88, - AVG ( + 9 ) + 55 ), 72 * - 73 ) THEN + CAST ( NULL AS INTEGER ) ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6493
SELECT MIN( DISTINCT ( - NULLIF ( + + 87, - + 2 ) ) ), + NULLIF ( + 86, - COUNT( * ) ) + + MIN( + ( - + 72 ) ) AS col0
----
-87
14

skipif mysql # not compatible
query II rowsort label-6493
SELECT MIN ( DISTINCT ( - NULLIF ( + + 87, - + 2 ) ) ), + NULLIF ( + 86, - COUNT ( * ) ) + + MIN ( + ( - + 72 ) ) AS col0
----
-87
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT - SUM( - 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-6494
SELECT - SUM ( - 89 ) AS col0
----
89

query I rowsort
SELECT + 34 * ( - 1 ) + 6 + + - 53 AS col0
----
-81

query I rowsort
SELECT + 94 * 90 * - 48 * - 25
----
10152000

query I rowsort
SELECT + - 37 * + 53 * + 61 + - + 44 AS col2
----
-119665

query I rowsort
SELECT + - 32 + + + 9
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-6499
SELECT ALL + 26 DIV + COALESCE ( + 23, + - 62, - 8, + - 44 )
----
1

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL + 26 / + COALESCE ( + 23, + - 62, - 8, + - 44 )
----
1

query I rowsort
SELECT + - ( + 67 ) AS col2
----
-67

query II rowsort
SELECT - + 57 + + + 96, - 71 AS col2
----
39
-71

query I rowsort
SELECT ALL - ( + 88 ) * ( 71 ) - + - ( - 9 ) AS col0
----
-6257

onlyif mysql # DIV for integer division: 
query I rowsort label-6503
SELECT + - 88 DIV + 9 col2
----
-9

skipif mysql # not compatible
query I rowsort label-6503
SELECT + - 88 / + 9 col2
----
-9

query I rowsort
SELECT ALL ( + 8 ) * 88 AS col1
----
704

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT ALL + 2 + 79 * MIN( DISTINCT 71 ) AS col1
----
5611

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL + 2 + 79 * MIN ( DISTINCT 71 ) AS col1
----
5611

query I rowsort
SELECT DISTINCT - 44 + - 15 + - 81
----
-140

query I rowsort
SELECT ALL 57 * 99 * 37 * 93 * + - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT DISTINCT + MAX( DISTINCT + 98 ) + + + 34 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT + MAX ( DISTINCT + 98 ) + + + 34 AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT ALL - 41 + - COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL - 41 + - COUNT ( * ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT + - COUNT( * ) - - ( + + 75 ) * 71 col1
----
5324

skipif mysql # not compatible
query I rowsort label-6510
SELECT + - COUNT ( * ) - - ( + + 75 ) * 71 col1
----
5324

query I rowsort
SELECT - - 56 * - - 72 * - - 55 AS col2
----
221760

query I rowsort
SELECT ALL - 0 + + - 53 + + 70 - - 42
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6513
SELECT - 99 - - 63 DIV + 92 - + - 9 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-6513
SELECT - 99 - - 63 / + 92 - + - 9 AS col1
----
-90

query I rowsort
SELECT ALL - 72 * 0 AS col0
----
0

query I rowsort
SELECT - 12 - + + 15
----
-27

query I rowsort
SELECT ALL - 63 * + + 30
----
-1890

query II rowsort
SELECT DISTINCT - 91 * - 59 * - 32 AS col2, - 37 AS col1
----
-171808
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT - 76 + + MIN( - 69 ) + 60 + + 34 * 90 + + 16 AS col1
----
2991

skipif mysql # not compatible
query I rowsort label-6518
SELECT - 76 + + MIN ( - 69 ) + 60 + + 34 * 90 + + 16 AS col1
----
2991

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT - 82 * + MIN( - 23 ) AS col2
----
1886

skipif mysql # not compatible
query I rowsort label-6519
SELECT - 82 * + MIN ( - 23 ) AS col2
----
1886

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT - CASE + + 64 WHEN + 71 + - 11 * - + 76 * + 67 THEN 65 WHEN - - 51 + CASE - - 97 WHEN + COUNT( * ) THEN - COALESCE ( - 81, CASE + 2 WHEN + 90 THEN NULL WHEN - ( 65 ) THEN + 81 * 31 END + + 34, 69 + - COUNT( * ) ) + + 41 / + - 49 / ( + 46 ) * - 46 ELSE COUNT( * ) - 71 END * 67 THEN NULL END - - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6520
SELECT - CASE + + 64 WHEN + 71 + - 11 * - + 76 * + 67 THEN 65 WHEN - - 51 + CASE - - 97 WHEN + COUNT ( * ) THEN - COALESCE ( - 81, CASE + 2 WHEN + 90 THEN NULL WHEN - ( 65 ) THEN + 81 * 31 END + + 34, 69 + - COUNT ( * ) ) + + 41 / + - 49 / ( + 46 ) * - 46 ELSE COUNT ( * ) - 71 END * 67 THEN NULL END - - 49
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - + 63, - ( - 77 ), - 88 ) AS col1
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6522
SELECT CAST( NULL AS DECIMAL ) AS col2, - 21 AS col0
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-6522
SELECT CAST ( NULL AS REAL ) AS col2, - 21 AS col0
----
NULL
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT 73 * - + 41 - 52 * + 38 * + COUNT( * ) - - ( 5 ) AS col0
----
-4964

skipif mysql # not compatible
query I rowsort label-6523
SELECT 73 * - + 41 - 52 * + 38 * + COUNT ( * ) - - ( 5 ) AS col0
----
-4964

query I rowsort
SELECT - 46 * - 20 AS col2
----
920

query II rowsort
SELECT ALL + 19 AS col1, 7
----
19
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6526
SELECT DISTINCT 92 DIV COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT 92 / COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT ALL 10 * 15 * COUNT( * ) * - COUNT( * ) col0
----
-150

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL 10 * 15 * COUNT ( * ) * - COUNT ( * ) col0
----
-150

query I rowsort
SELECT - 16 * + 30
----
-480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6529
SELECT + 94 DIV ( + 49 ) + COUNT( * ) * - 44
----
-43

skipif mysql # not compatible
query I rowsort label-6529
SELECT + 94 / ( + 49 ) + COUNT ( * ) * - 44
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6530
SELECT - SUM( NULLIF ( - CAST( NULL AS SIGNED ), + + 50 * + 73 / + + 34 ) ) + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6530
SELECT - SUM ( NULLIF ( - CAST ( NULL AS INTEGER ), + + 50 * + 73 / + + 34 ) ) + - 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT + CASE + - 52 WHEN 85 THEN NULL WHEN - COUNT( * ) THEN 58 + + - 61 END * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6531
SELECT + CASE + - 52 WHEN 85 THEN NULL WHEN - COUNT ( * ) THEN 58 + + - 61 END * 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ALL - CASE + - 68 WHEN + ( + ( - + COUNT( * ) ) ) THEN + 22 ELSE - 56 END * + + 69 * - 31 AS col1
----
-119784

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL - CASE + - 68 WHEN + ( + ( - + COUNT ( * ) ) ) THEN + 22 ELSE - 56 END * + + 69 * - 31 AS col1
----
-119784

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6533
SELECT + 15 * CASE + - 73 WHEN - 5 THEN - 9 + COUNT( * ) END + + - 18 + + + COUNT( * ) AS col0, 71 DIV MAX( ALL + 8 ) AS col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-6533
SELECT + 15 * CASE + - 73 WHEN - 5 THEN - 9 + COUNT ( * ) END + + - 18 + + + COUNT ( * ) AS col0, 71 / MAX ( ALL + 8 ) AS col1
----
NULL
8

query I rowsort
SELECT ALL - + 44 * + + 71 col0
----
-3124

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT + + COUNT( * ) + + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6535
SELECT + + COUNT ( * ) + + + COUNT ( * ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6536
SELECT DISTINCT 94 * - CASE + CAST( + MAX( + + 67 ) AS SIGNED ) WHEN - ( COUNT( * ) ) / - 55 * - + 91 THEN - 38 + 3 + - 32 WHEN - CASE - COUNT( * ) WHEN - - COUNT( * ) THEN CAST( - 51 AS SIGNED ) + - + 44 * + + 99 WHEN 26 * + + COUNT( * ) THEN NULL ELSE - 52 * + 94 * + - 66 * + SUM( DISTINCT + - 85 ) END - - 71 + + 73 - - 23 * + 14 * + 98 THEN NULL END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6536
SELECT DISTINCT 94 * - CASE + CAST ( + MAX ( + + 67 ) AS INTEGER ) WHEN - ( COUNT ( * ) ) / - 55 * - + 91 THEN - 38 + 3 + - 32 WHEN - CASE - COUNT ( * ) WHEN - - COUNT ( * ) THEN CAST ( - 51 AS INTEGER ) + - + 44 * + + 99 WHEN 26 * + + COUNT ( * ) THEN NULL ELSE - 52 * + 94 * + - 66 * + SUM ( DISTINCT + - 85 ) END - - 71 + + 73 - - 23 * + 14 * + 98 THEN NULL END + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6537
SELECT ALL 31 * - - 11 * + + 88 + + 16 + + 5 * + COUNT( * ) * + 33 * - 45 / CASE + 80 WHEN + 31 + - 27 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * 14 THEN 90 END + 10 + + ( - 6 ) + - 51 * + COUNT( * ) * - ( + 38 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL 31 * - - 11 * + + 88 + + 16 + + 5 * + COUNT ( * ) * + 33 * - 45 / CASE + 80 WHEN + 31 + - 27 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * 14 THEN 90 END + 10 + + ( - 6 ) + - 51 * + COUNT ( * ) * - ( + 38 ) AS col0
----
NULL

query I rowsort
SELECT + + CASE + 18 WHEN + ( + 83 ) THEN + 61 WHEN - 63 THEN AVG ( ALL - + 19 ) ELSE NULL END + + + 11 * + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT + - MIN( - 0 ) + - 2 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6539
SELECT + - MIN ( - 0 ) + - 2 AS col0
----
-2

query II rowsort
SELECT DISTINCT - 98 AS col0, ( + - 44 ) + 31
----
-98
-13

query II rowsort
SELECT - 48 AS col2, 64 AS col1
----
-48
64

query I rowsort
SELECT - 83 + 16 AS col1
----
-67

query I rowsort
SELECT ALL 58 * + 43
----
2494

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT 49 + + 97 + - MAX( 83 ) * + 51 col0
----
-4087

skipif mysql # not compatible
query I rowsort label-6544
SELECT 49 + + 97 + - MAX ( 83 ) * + 51 col0
----
-4087

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT NULLIF ( - COUNT( * ), SUM( + 31 ) ) * + 18
----
-18

skipif mysql # not compatible
query I rowsort label-6545
SELECT NULLIF ( - COUNT ( * ), SUM ( + 31 ) ) * + 18
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT DISTINCT COUNT( * ) * - NULLIF ( - + SUM( DISTINCT + COALESCE ( + 87, 87 - + 23 ) ), + 41 + - 32 )
----
87

skipif mysql # not compatible
query I rowsort label-6546
SELECT DISTINCT COUNT ( * ) * - NULLIF ( - + SUM ( DISTINCT + COALESCE ( + 87, 87 - + 23 ) ), + 41 + - 32 )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6547
SELECT ALL 94 - - + 81 + + CAST( NULL AS SIGNED ) + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL 94 - - + 81 + + CAST ( NULL AS INTEGER ) + - 83
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6548
SELECT 58 DIV + + 56
----
1

skipif mysql # not compatible
query I rowsort label-6548
SELECT 58 / + + 56
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6549
SELECT DISTINCT + 14 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT + 14 / - 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT ( + SUM( - + 20 ) ) * + 13 + - 99 + + + SUM( - 2 ) * ( - - 91 ) AS col1
----
-541

skipif mysql # not compatible
query I rowsort label-6550
SELECT ( + SUM ( - + 20 ) ) * + 13 + - 99 + + + SUM ( - 2 ) * ( - - 91 ) AS col1
----
-541

query I rowsort
SELECT 77 + + 59 + - 74
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6552
SELECT 64 + 99 * + NULLIF ( 69, + MIN( DISTINCT - + CAST( - 16 AS SIGNED ) ) / COUNT( * ) * 16 * 30 + + COUNT( * ) )
----
6895

skipif mysql # not compatible
query I rowsort label-6552
SELECT 64 + 99 * + NULLIF ( 69, + MIN ( DISTINCT - + CAST ( - 16 AS INTEGER ) ) / COUNT ( * ) * 16 * 30 + + COUNT ( * ) )
----
6895

query I rowsort
SELECT DISTINCT - 24 * 40
----
-960

query I rowsort
SELECT 83 * + + 12
----
996

onlyif mysql # aggregate syntax: 
query II rowsort label-6555
SELECT ALL - ( MAX( ALL - ( 58 ) ) ) AS col1, 89
----
58
89

skipif mysql # not compatible
query II rowsort label-6555
SELECT ALL - ( MAX ( ALL - ( 58 ) ) ) AS col1, 89
----
58
89

onlyif mysql # aggregate syntax: 
query II rowsort label-6556
SELECT COUNT( ALL 60 ) + + - 3 * + - 56 AS col1, 25 * - 14 * + 87 col0
----
169
-30450

skipif mysql # not compatible
query II rowsort label-6556
SELECT COUNT ( ALL 60 ) + + - 3 * + - 56 AS col1, 25 * - 14 * + 87 col0
----
169
-30450

query I rowsort
SELECT 34 * - 81 + - + 85
----
-2839

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6558
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, + ( + 87 )
----
NULL
87

skipif mysql # not compatible
query II rowsort label-6558
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, + ( + 87 )
----
NULL
87

query I rowsort
SELECT ALL - COALESCE ( + + 36, + ( + COALESCE ( + 82, - 17 ) ) ) AS col0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-6560
SELECT 3 DIV 26 - 30 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-6560
SELECT 3 / 26 - 30 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT 92 + 77 + + + ( + 82 ) + + COUNT( * ) AS col0
----
252

skipif mysql # not compatible
query I rowsort label-6561
SELECT 92 + 77 + + + ( + 82 ) + + COUNT ( * ) AS col0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT ALL + ( - 14 ) - - COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL + ( - 14 ) - - COUNT ( * ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT DISTINCT - + ( - - COUNT( DISTINCT + + 89 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT - + ( - - COUNT ( DISTINCT + + 89 ) )
----
-1

query I rowsort
SELECT 72 * + + ( - 58 )
----
-4176

query I rowsort
SELECT DISTINCT - - 74 * 64 - - - 43 col2
----
4693

onlyif mysql # aggregate syntax: 
query II rowsort label-6566
SELECT DISTINCT - COALESCE ( - - CASE - 89 WHEN 86 * 57 THEN NULL ELSE 3 + + 48 + + ( MIN( ALL + - 10 ) ) END, - - SUM( ALL + 60 ) - - + 85, - COUNT( * ) ), - COUNT( * ) AS col2
----
-41
-1

skipif mysql # not compatible
query II rowsort label-6566
SELECT DISTINCT - COALESCE ( - - CASE - 89 WHEN 86 * 57 THEN NULL ELSE 3 + + 48 + + ( MIN ( ALL + - 10 ) ) END, - - SUM ( ALL + 60 ) - - + 85, - COUNT ( * ) ), - COUNT ( * ) AS col2
----
-41
-1

query II rowsort
SELECT 68 AS col1, 91 AS col1
----
68
91

query I rowsort
SELECT 23 + - - 14 * - 37 * + 47
----
-24323

query I rowsort
SELECT 32 + 71 col2
----
103

query I rowsort
SELECT 42 + - 75
----
-33

query I rowsort
SELECT CASE 14 WHEN + 61 THEN NULL ELSE 38 END - + 79
----
-41

query I rowsort
SELECT ALL 34 * - 16
----
-544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6573
SELECT DISTINCT CAST( NULL AS SIGNED ) * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT DISTINCT COUNT( DISTINCT - + 44 ) + 34 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT COUNT ( DISTINCT - + 44 ) + 34 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT ALL 81 * MIN( ALL - 81 ) AS col0
----
-6561

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL 81 * MIN ( ALL - 81 ) AS col0
----
-6561

query I rowsort
SELECT DISTINCT 39 * + 57 * - 10 AS col0
----
-22230

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT 57 + - COUNT( ALL - 21 ) + ( 0 ) * - 66 - 35 + + 46 + - 70 + 46
----
43

skipif mysql # not compatible
query I rowsort label-6577
SELECT 57 + - COUNT ( ALL - 21 ) + ( 0 ) * - 66 - 35 + + 46 + - 70 + 46
----
43

query I rowsort
SELECT 64 * - 29
----
-1856

onlyif mysql # DIV for integer division: 
query I rowsort label-6579
SELECT + 23 DIV 39 * + 62 * 90 + 53
----
53

skipif mysql # not compatible
query I rowsort label-6579
SELECT + 23 / 39 * + 62 * 90 + 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT - 36 * + 80 * - 27 - - COUNT( ALL 12 ) + + 88 * COUNT( * ) + + 40 AS col0
----
77889

skipif mysql # not compatible
query I rowsort label-6580
SELECT - 36 * + 80 * - 27 - - COUNT ( ALL 12 ) + + 88 * COUNT ( * ) + + 40 AS col0
----
77889

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT + SUM( ALL 36 )
----
36

skipif mysql # not compatible
query I rowsort label-6581
SELECT + SUM ( ALL 36 )
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-6582
SELECT 8 DIV - 20
----
0

skipif mysql # not compatible
query I rowsort label-6582
SELECT 8 / - 20
----
0

query I rowsort
SELECT DISTINCT 2 * 86 + - 59 * - 71 + - 56
----
4305

query I rowsort
SELECT ALL 40 * + ( + + 19 ) + - 29 * + 38
----
-342

query I rowsort
SELECT DISTINCT + 87 * 86 * + 42 + - 24
----
314220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6586
SELECT 23 DIV - + MAX( - ( + - 44 ) ) - + 57 * - - NULLIF ( - 80, - 8 - 88 ) + + - CASE + + 33 WHEN - 94 THEN COUNT( * ) + - 40 ELSE - + COUNT( * ) END
----
4561

skipif mysql # not compatible
query I rowsort label-6586
SELECT 23 / - + MAX ( - ( + - 44 ) ) - + 57 * - - NULLIF ( - 80, - 8 - 88 ) + + - CASE + + 33 WHEN - 94 THEN COUNT ( * ) + - 40 ELSE - + COUNT ( * ) END
----
4561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6587
SELECT 87 * - ( + 96 ) + - 50 + + CAST( NULL AS SIGNED ) / + + 16 * + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-6587
SELECT 87 * - ( + 96 ) + - 50 + + CAST ( NULL AS INTEGER ) / + + 16 * + - 69
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6588
SELECT COUNT( * ) + + 87 - + 48 + NULLIF ( - ( + 92 ), - COUNT( * ) ) DIV 82 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-6588
SELECT COUNT ( * ) + + 87 - + 48 + NULLIF ( - ( + 92 ), - COUNT ( * ) ) / 82 AS col2
----
39

query I rowsort
SELECT 74 * + 93 - 64 + + 71 AS col1
----
6889

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT - - MIN( + ( 47 ) ) + COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-6590
SELECT - - MIN ( + ( 47 ) ) + COUNT ( * ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT - + 99 * + + 85 * - 25 * + MAX( - - 53 ) * - 15 - - 49 * + 0 AS col1
----
-167248125

skipif mysql # not compatible
query I rowsort label-6591
SELECT - + 99 * + + 85 * - 25 * + MAX ( - - 53 ) * - 15 - - 49 * + 0 AS col1
----
-167248125

query I rowsort
SELECT ALL + + 1 * + 27
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT - MAX( DISTINCT - 69 ) + 84 AS col0
----
153

skipif mysql # not compatible
query I rowsort label-6593
SELECT - MAX ( DISTINCT - 69 ) + 84 AS col0
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6594
SELECT - - COALESCE ( - 71, + - MIN( DISTINCT 36 ) ) DIV + - 41 + - - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6594
SELECT - - COALESCE ( - 71, + - MIN ( DISTINCT 36 ) ) / + - 41 + - - COUNT ( * ) AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6595
SELECT DISTINCT + 11 DIV + + 49 * - 22 col1
----
0

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT + 11 / + + 49 * - 22 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT - - MAX( - 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6596
SELECT - - MAX ( - 17 ) AS col2
----
-17

query I rowsort
SELECT - + 41 + + 60
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT ALL + NULLIF ( - 63, + 62 + - - 95 * - - 59 ) * 77 * + MAX( - 54 )
----
261954

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL + NULLIF ( - 63, + 62 + - - 95 * - - 59 ) * 77 * + MAX ( - 54 )
----
261954

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT COUNT( * ) * - 12 * - 4 + + 81 AS col0
----
129

skipif mysql # not compatible
query I rowsort label-6599
SELECT COUNT ( * ) * - 12 * - 4 + + 81 AS col0
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-6600
SELECT - 70 DIV + + 70 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6600
SELECT - 70 / + + 70 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT + COUNT( * ) + CASE 60 WHEN 86 THEN NULL WHEN + 74 THEN - + COUNT( * ) - COUNT( * ) * 94 / 10 / + 27 WHEN - 9 - 98 THEN NULL END * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6601
SELECT + COUNT ( * ) + CASE 60 WHEN 86 THEN NULL WHEN + 74 THEN - + COUNT ( * ) - COUNT ( * ) * 94 / 10 / + 27 WHEN - 9 - 98 THEN NULL END * + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT ALL COUNT( DISTINCT - + ( 69 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL COUNT ( DISTINCT - + ( 69 ) ) AS col2
----
1

query II rowsort
SELECT - 23 + - 3 AS col0, - 7
----
-26
-7

query I rowsort
SELECT - CASE - - 0 WHEN + 76 THEN NULL WHEN 39 THEN + 23 END + 95 AS col2
----
NULL

query I rowsort
SELECT ALL + 42 * 30 AS col0
----
1260

query II rowsort
SELECT - 22, + 9 AS col1
----
-22
9

query I rowsort
SELECT ALL - 69 + - 73 + 99 * 92 + 38
----
9004

onlyif mysql # DIV for integer division: 
query II rowsort label-6608
SELECT 40, - 3 DIV + 71 col1
----
40
0

skipif mysql # not compatible
query II rowsort label-6608
SELECT 40, - 3 / + 71 col1
----
40
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6609
SELECT 45, - 86 DIV + - COUNT( * ) AS col1
----
45
86

skipif mysql # not compatible
query II rowsort label-6609
SELECT 45, - 86 / + - COUNT ( * ) AS col1
----
45
86

query I rowsort
SELECT - NULLIF ( + - 85, - 97 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT ALL COUNT( * ) + ( + 81 ) * - ( COUNT( * ) )
----
-80

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL COUNT ( * ) + ( + 81 ) * - ( COUNT ( * ) )
----
-80

query II rowsort
SELECT 53 AS col1, 61
----
53
61

query I rowsort
SELECT DISTINCT - 52 + 57 * + 29
----
1601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6614
SELECT - COALESCE ( 35, 5 * + 84 * + + 89 + 11 - + 14, + COUNT( - 18 ) DIV - - COUNT( * ) + COUNT( * ) + + 24 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-6614
SELECT - COALESCE ( 35, 5 * + 84 * + + 89 + 11 - + 14, + COUNT ( - 18 ) / - - COUNT ( * ) + COUNT ( * ) + + 24 ) AS col1
----
-35

query I rowsort
SELECT DISTINCT 32 + - 23 AS col2
----
9

query I rowsort
SELECT ALL 94 * + 56 * + + 85 * + 82 AS col2
----
36690080

query I rowsort
SELECT DISTINCT - 16 * - 22 - + 2
----
350

query I rowsort
SELECT + + COALESCE ( + 75, 61 )
----
75

query I rowsort
SELECT + + ( + 55 ) * + 37 + - ( - + 23 )
----
2058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6620
SELECT DISTINCT + 27 * - COUNT( * ) + + 66 - 58 * + 95 - 1 + 62 * - MAX( ALL - + 26 ) * - MIN( ALL + CAST( - - 51 AS SIGNED ) ) AS col1, - COUNT( * ) AS col0
----
-87684
-1

skipif mysql # not compatible
query II rowsort label-6620
SELECT DISTINCT + 27 * - COUNT ( * ) + + 66 - 58 * + 95 - 1 + 62 * - MAX ( ALL - + 26 ) * - MIN ( ALL + CAST ( - - 51 AS INTEGER ) ) AS col1, - COUNT ( * ) AS col0
----
-87684
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT - + COUNT( - COALESCE ( - + 88, + - 8 + - - 10 * + 69 ) ) * - + 65 + + + 44 + - CASE 19 WHEN - 73 THEN NULL WHEN + MIN( DISTINCT - 94 ) THEN 70 + MIN( ALL - + 70 ) END * + - 56 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6621
SELECT - + COUNT ( - COALESCE ( - + 88, + - 8 + - - 10 * + 69 ) ) * - + 65 + + + 44 + - CASE 19 WHEN - 73 THEN NULL WHEN + MIN ( DISTINCT - 94 ) THEN 70 + MIN ( ALL - + 70 ) END * + - 56 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6622
SELECT ALL - 34 DIV + MAX( DISTINCT + 27 ) * + 1 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL - 34 / + MAX ( DISTINCT + 27 ) * + 1 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6623
SELECT ALL + 22 AS col2, + CAST( NULL AS SIGNED ) + 11 + + 30 AS col2
----
22
NULL

skipif mysql # not compatible
query II rowsort label-6623
SELECT ALL + 22 AS col2, + CAST ( NULL AS INTEGER ) + 11 + + 30 AS col2
----
22
NULL

query I rowsort
SELECT + + 53 * - + 10
----
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT ALL + - COUNT( * ) * 41 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL + - COUNT ( * ) * 41 AS col0
----
-41

query II rowsort
SELECT + 99 AS col1, 65 * 19
----
99
1235

query II rowsort
SELECT + - 1 AS col1, 69
----
-1
69

query I rowsort
SELECT + 7 * + - 67 - - - 74 AS col2
----
-543

query I rowsort
SELECT - 77 * + 37
----
-2849

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT DISTINCT + + COUNT( * ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT + + COUNT ( * ) * COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT ALL + - ( - COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL + - ( - COUNT ( * ) ) col2
----
1

query I rowsort
SELECT + - 26 * - - 65 AS col0
----
-1690

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6633
SELECT DISTINCT ( - 55 ) AS col2, 89 * - - CAST( ( + + 48 ) AS SIGNED ) AS col2
----
-55
4272

skipif mysql # not compatible
query II rowsort label-6633
SELECT DISTINCT ( - 55 ) AS col2, 89 * - - CAST ( ( + + 48 ) AS INTEGER ) AS col2
----
-55
4272

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT DISTINCT + 1 * - COUNT( * ) + + - 52 + 41 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT + 1 * - COUNT ( * ) + + - 52 + 41 AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6635
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) + MAX( 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) + MAX ( 45 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT DISTINCT CASE - COUNT( * ) WHEN COALESCE ( 88, + COUNT( * ) ) THEN NULL ELSE - 79 END col2
----
-79

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT CASE - COUNT ( * ) WHEN COALESCE ( 88, + COUNT ( * ) ) THEN NULL ELSE - 79 END col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT DISTINCT 97 * ( 6 ) + - - 75 * - COUNT( * ) * + 69
----
-4593

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT 97 * ( 6 ) + - - 75 * - COUNT ( * ) * + 69
----
-4593

query I rowsort
SELECT - 63 + - ( 61 ) * + 94
----
-5797

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6639
SELECT - COALESCE ( + + COUNT( * ), 90 ) + + ( - + 89 ) + + CAST( NULL AS SIGNED ) + - 49 + + CASE + 74 WHEN - - MAX( ALL - 4 ) THEN 57 + + 28 / 54 END / + 38 + 13 / + ( + 91 ) AS col0, 63 - 91 * - - 68 - COUNT( * ) AS col1
----
NULL
-6126

skipif mysql # not compatible
query II rowsort label-6639
SELECT - COALESCE ( + + COUNT ( * ), 90 ) + + ( - + 89 ) + + CAST ( NULL AS INTEGER ) + - 49 + + CASE + 74 WHEN - - MAX ( ALL - 4 ) THEN 57 + + 28 / 54 END / + 38 + 13 / + ( + 91 ) AS col0, 63 - 91 * - - 68 - COUNT ( * ) AS col1
----
NULL
-6126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6640
SELECT ALL CAST( + 89 AS SIGNED ) col0
----
89

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL CAST ( + 89 AS INTEGER ) col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6641
SELECT + 22 DIV + - ( SUM( 91 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6641
SELECT + 22 / + - ( SUM ( 91 ) ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT DISTINCT - 66 + - CASE + 10 WHEN - 52 THEN NULL ELSE COUNT( * ) END + - 87 + + 62 * - - 71 * + ( 55 ) * - 91 AS col0
----
-22032164

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT - 66 + - CASE + 10 WHEN - 52 THEN NULL ELSE COUNT ( * ) END + - 87 + + 62 * - - 71 * + ( 55 ) * - 91 AS col0
----
-22032164

query I rowsort
SELECT - 86 + + 76 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT ALL - COUNT( * ) - + - COUNT( - 98 ) - + 3
----
-3

skipif mysql # not compatible
query I rowsort label-6644
SELECT ALL - COUNT ( * ) - + - COUNT ( - 98 ) - + 3
----
-3

query I rowsort
SELECT DISTINCT + 93 * 70
----
6510

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6646
SELECT - 62 + + - 48 AS col2, ( 22 ) + + 23 + - SUM( DISTINCT + 2 ) DIV 14 * + NULLIF ( - 80, - 69 )
----
-110
45

skipif mysql # not compatible
query II rowsort label-6646
SELECT - 62 + + - 48 AS col2, ( 22 ) + + 23 + - SUM ( DISTINCT + 2 ) / 14 * + NULLIF ( - 80, - 69 )
----
-110
45

query I rowsort
SELECT - - 23 + - 84 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT ( - 91 ) + CASE - 22 WHEN - + NULLIF ( + - COUNT( * ), 76 ) THEN 15 END * + + 73 * - + 21 + - - CASE + - 84 WHEN 53 - + 5 - + + 52 + 52 * + - 16 THEN - 48 ELSE + - 21 * 78 END / - MAX( + + 48 ) * 49 + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6648
SELECT ( - 91 ) + CASE - 22 WHEN - + NULLIF ( + - COUNT ( * ), 76 ) THEN 15 END * + + 73 * - + 21 + - - CASE + - 84 WHEN 53 - + 5 - + + 52 + 52 * + - 16 THEN - 48 ELSE + - 21 * 78 END / - MAX ( + + 48 ) * 49 + - 26
----
NULL

query I rowsort
SELECT - 18 * + - 48 - ( + 76 ) * - 18 col0
----
2232

onlyif mysql # DIV for integer division: 
query I rowsort label-6650
SELECT - 25 DIV - 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6650
SELECT - 25 / - 49 AS col1
----
0

query I rowsort
SELECT ALL - - ( 38 ) AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6652
SELECT - + CAST( + 7 AS SIGNED ) * + - CASE + - 0 WHEN - + ( - 13 ) THEN + 38 * - CAST( NULL AS SIGNED ) + - 8 + COUNT( ALL 34 ) * + + ( - 72 ) + + 72 + 50 END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT - + CAST ( + 7 AS INTEGER ) * + - CASE + - 0 WHEN - + ( - 13 ) THEN + 38 * - CAST ( NULL AS INTEGER ) + - 8 + COUNT ( ALL 34 ) * + + ( - 72 ) + + 72 + 50 END + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT ALL + 11 * 87 AS col1, 0 col1
----
957
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6654
SELECT - 0 + + - SUM( DISTINCT 50 ), + 7 AS col2
----
-50
7

skipif mysql # not compatible
query II rowsort label-6654
SELECT - 0 + + - SUM ( DISTINCT 50 ), + 7 AS col2
----
-50
7

query I rowsort
SELECT - ( - + 64 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6656
SELECT ALL - - SUM( + CAST( NULL AS SIGNED ) ) col0, - 30
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-6656
SELECT ALL - - SUM ( + CAST ( NULL AS INTEGER ) ) col0, - 30
----
NULL
-30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6657
SELECT + 34 * + COUNT( * ) + + + 55 + - 67 * NULLIF ( - 29, 86 ) * + ( - CAST( NULL AS DECIMAL ) ) / + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT + 34 * + COUNT ( * ) + + + 55 + - 67 * NULLIF ( - 29, 86 ) * + ( - CAST ( NULL AS REAL ) ) / + 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT DISTINCT - 28 DIV + + 87 * 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT - 28 / + + 87 * 80 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT ALL 18 + - - 89 + COUNT( - + 9 ) + + - 58 + NULLIF ( - 40, 88 ) * - - COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL 18 + - - 89 + COUNT ( - + 9 ) + + - 58 + NULLIF ( - 40, 88 ) * - - COUNT ( * ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-6660
SELECT + 56 * + 9 + 94 AS col1, 43 + + + COUNT( * ) AS col1
----
598
44

skipif mysql # not compatible
query II rowsort label-6660
SELECT + 56 * + 9 + 94 AS col1, 43 + + + COUNT ( * ) AS col1
----
598
44

query I rowsort
SELECT DISTINCT 23 + + 64
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6662
SELECT + CASE + ( + 94 ) WHEN 95 THEN NULL ELSE 11 * 98 END * + CAST( 90 AS SIGNED ) + - - 86
----
97106

skipif mysql # not compatible
query I rowsort label-6662
SELECT + CASE + ( + 94 ) WHEN 95 THEN NULL ELSE 11 * 98 END * + CAST ( 90 AS INTEGER ) + - - 86
----
97106

onlyif mysql # aggregate syntax: 
query II rowsort label-6663
SELECT 71 AS col0, - COUNT( 58 ) AS col0
----
71
-1

skipif mysql # not compatible
query II rowsort label-6663
SELECT 71 AS col0, - COUNT ( 58 ) AS col0
----
71
-1

query I rowsort
SELECT 93 + 68 * - 1 AS col1
----
25

query I rowsort
SELECT 67 * - 22 * 93 * + 14
----
-1919148

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT 15 * 34 + + COUNT( + 60 ) col0
----
511

skipif mysql # not compatible
query I rowsort label-6666
SELECT 15 * 34 + + COUNT ( + 60 ) col0
----
511

query I rowsort
SELECT ALL 51 + 82
----
133

query I rowsort
SELECT ALL 22 + - 73 AS col2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6669
SELECT DISTINCT 81 + 58 DIV - 49 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT 81 + 58 / - 49 AS col2
----
80

query I rowsort
SELECT ALL - 52 - 26
----
-78

query I rowsort
SELECT 92 * + 1 AS col1
----
92

query I rowsort
SELECT ALL 16 * + - 24 * 79
----
-30336

onlyif mysql # aggregate syntax: 
query II rowsort label-6673
SELECT 8 AS col1, + SUM( - 65 ) AS col1
----
8
-65

skipif mysql # not compatible
query II rowsort label-6673
SELECT 8 AS col1, + SUM ( - 65 ) AS col1
----
8
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6674
SELECT 18 * + COUNT( + 89 ) AS col2, + 62 + + - CAST( 93 AS SIGNED ) * 62
----
18
-5704

skipif mysql # not compatible
query II rowsort label-6674
SELECT 18 * + COUNT ( + 89 ) AS col2, + 62 + + - CAST ( 93 AS INTEGER ) * 62
----
18
-5704

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6675
SELECT 95 AS col1, - COUNT( * ) + - + 62 - - 53 DIV 12 AS col2
----
95
-59

skipif mysql # not compatible
query II rowsort label-6675
SELECT 95 AS col1, - COUNT ( * ) + - + 62 - - 53 / 12 AS col2
----
95
-59

query I rowsort
SELECT ALL + - 70 * + + 39
----
-2730

query I rowsort
SELECT ALL - - 57 * + 67
----
3819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6678
SELECT NULLIF ( + + 80, CAST( - 30 AS SIGNED ) ) + + 2 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6678
SELECT NULLIF ( + + 80, CAST ( - 30 AS INTEGER ) ) + + 2 AS col2
----
82

query I rowsort
SELECT 92 + - + 35 AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6680
SELECT + 32 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6680
SELECT + 32 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + 65 * - - 43
----
-2795

query I rowsort
SELECT DISTINCT - 82 + 13 AS col2
----
-69

query I rowsort
SELECT - 98 * + 53 * 68
----
-353192

query I rowsort
SELECT DISTINCT - 32 + 78 AS col2
----
46

query I rowsort
SELECT DISTINCT - - 23 + + - 95
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT DISTINCT - + SUM( DISTINCT + - 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT - + SUM ( DISTINCT + - 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL - ( - - CASE + 96 WHEN COUNT( * ) THEN NULL WHEN + COUNT( * ) THEN 82 END ) + + + 11 + 1 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL - ( - - CASE + 96 WHEN COUNT ( * ) THEN NULL WHEN + COUNT ( * ) THEN 82 END ) + + + 11 + 1 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6688
SELECT 41 * CAST( NULL AS SIGNED ) - 74 + - + 42 / + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT 41 * CAST ( NULL AS INTEGER ) - 74 + - + 42 / + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT ALL + 83 + - COUNT( * ) + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL + 83 + - COUNT ( * ) + + COUNT ( * )
----
83

query I rowsort
SELECT 48 - - 45 * - - 2 AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT COUNT( - COALESCE ( + - 29, + + 56 / - NULLIF ( - + 13, + 32 ) ) ) * 96 col2
----
96

skipif mysql # not compatible
query I rowsort label-6691
SELECT COUNT ( - COALESCE ( + - 29, + + 56 / - NULLIF ( - + 13, + 32 ) ) ) * 96 col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT DISTINCT 17 + + 89 * SUM( DISTINCT - + 1 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT 17 + + 89 * SUM ( DISTINCT - + 1 ) AS col2
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6693
SELECT NULLIF ( - 23, 78 + + + 35 + 71 * + + 63 * - + 24 * - 34 ) DIV - + 2 + 9 + - SUM( ALL 29 ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-6693
SELECT NULLIF ( - 23, 78 + + + 35 + 71 * + + 63 * - + 24 * - 34 ) / - + 2 + 9 + - SUM ( ALL 29 ) col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6694
SELECT DISTINCT MAX( DISTINCT 99 ) / 48 + + 42 * - 79 * + CAST( NULL AS SIGNED ) / + + 62 * - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6694
SELECT DISTINCT MAX ( DISTINCT 99 ) / 48 + + 42 * - 79 * + CAST ( NULL AS INTEGER ) / + + 62 * - - 7
----
NULL

query I rowsort
SELECT DISTINCT + 65 - - 21 AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6696
SELECT ALL COUNT( * ) DIV COUNT( * ) DIV 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL COUNT ( * ) / COUNT ( * ) / 4 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6697
SELECT CASE 24 WHEN - - 89 + ( + ( + - 42 ) ) * + - 50 THEN NULL ELSE + 23 * - 45 END DIV COALESCE ( - 87, - 93 * - 8 * + + AVG ( 10 ) DIV 94 * - ( 21 ), + 79 ) * 95 * + 65
----
67925

skipif mysql # not compatible
query I rowsort label-6697
SELECT CASE 24 WHEN - - 89 + ( + ( + - 42 ) ) * + - 50 THEN NULL ELSE + 23 * - 45 END / COALESCE ( - 87, - 93 * - 8 * + + AVG ( 10 ) / 94 * - ( 21 ), + 79 ) * 95 * + 65
----
67925

onlyif mysql # DIV for integer division: 
query I rowsort label-6698
SELECT ALL 16 DIV 13
----
1

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL 16 / 13
----
1

query II rowsort
SELECT ALL 98 * 3 AS col0, 55 col1
----
294
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6700
SELECT - CASE - COUNT( * ) WHEN CAST( - 39 AS DECIMAL ) + 92 THEN + + 93 + + CAST( NULL AS SIGNED ) - + 93 * 47 END, 90 AS col0
----
NULL
90

skipif mysql # not compatible
query II rowsort label-6700
SELECT - CASE - COUNT ( * ) WHEN CAST ( - 39 AS REAL ) + 92 THEN + + 93 + + CAST ( NULL AS INTEGER ) - + 93 * 47 END, 90 AS col0
----
NULL
90

query I rowsort
SELECT 92 + 1 col0
----
93

query I rowsort
SELECT + 56 - - + 33
----
89

query I rowsort
SELECT DISTINCT + NULLIF ( - 94, - 23 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-6704
SELECT + + ( + 74 ) / NULLIF ( - 75, + 88 * + - 25 + + COUNT( * ) + - + 82 + - + 60 * + + 3 ) * + CASE + - 78 WHEN + - 15 THEN NULL ELSE - + 9 * CASE - 37 WHEN COUNT( * ) THEN + + 7 WHEN - - 1 THEN NULL WHEN - + 24 + + 74 * + COUNT( * ) + ( + 85 ) THEN NULL ELSE NULL END - + 14 * + + 5 END - + 46 + - 83 - + 68 AS col2, COUNT( 92 ) + + COUNT( * )
----
NULL
2

skipif mysql # not compatible
query II rowsort label-6704
SELECT + + ( + 74 ) / NULLIF ( - 75, + 88 * + - 25 + + COUNT ( * ) + - + 82 + - + 60 * + + 3 ) * + CASE + - 78 WHEN + - 15 THEN NULL ELSE - + 9 * CASE - 37 WHEN COUNT ( * ) THEN + + 7 WHEN - - 1 THEN NULL WHEN - + 24 + + 74 * + COUNT ( * ) + ( + 85 ) THEN NULL ELSE NULL END - + 14 * + + 5 END - + 46 + - 83 - + 68 AS col2, COUNT ( 92 ) + + COUNT ( * )
----
NULL
2

query I rowsort
SELECT ALL + 10 * 18 * - 88
----
-15840

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT + - COUNT( * ) + - 43
----
-44

skipif mysql # not compatible
query I rowsort label-6706
SELECT + - COUNT ( * ) + - 43
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT DISTINCT - SUM( DISTINCT 16 ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT - SUM ( DISTINCT 16 ) col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6708
SELECT - + 66 + - - CASE + AVG ( DISTINCT 69 ) WHEN - + CAST( 95 AS SIGNED ) + + 74 THEN 20 ELSE + 68 + - MIN( - 73 ) END
----
75

skipif mysql # not compatible
query I rowsort label-6708
SELECT - + 66 + - - CASE + AVG ( DISTINCT 69 ) WHEN - + CAST ( 95 AS INTEGER ) + + 74 THEN 20 ELSE + 68 + - MIN ( - 73 ) END
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6709
SELECT ALL + MIN( - + 80 ) DIV + - 99 col1
----
0

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL + MIN ( - + 80 ) / + - 99 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6710
SELECT - 16 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-6710
SELECT - 16 / 94
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6711
SELECT ALL 86 + - COUNT( * ) AS col2, 64 AS col2
----
85
64

skipif mysql # not compatible
query II rowsort label-6711
SELECT ALL 86 + - COUNT ( * ) AS col2, 64 AS col2
----
85
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6712
SELECT ALL + 94 DIV - 90 + SUM( ALL - 34 )
----
-35

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL + 94 / - 90 + SUM ( ALL - 34 )
----
-35

query I rowsort
SELECT - + 83 * ( - 19 ) AS col1
----
1577

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT - MAX( DISTINCT + - 79 ) + - 97 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-6714
SELECT - MAX ( DISTINCT + - 79 ) + - 97 AS col0
----
-18

query II rowsort
SELECT + ( - 71 ) col2, 93 AS col0
----
-71
93

query I rowsort
SELECT ALL 38 * + 15 * - 51 + - - 44
----
-29026

query I rowsort
SELECT ALL + 34 * + 34
----
1156

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT + 42 DIV + + 31 - - 99 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-6718
SELECT + 42 / + + 31 - - 99 AS col0
----
100

query I rowsort
SELECT ALL - ( 81 ) * + 71 AS col1
----
-5751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6720
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 59 * - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 59 * - 11 AS col2
----
NULL

query I rowsort
SELECT - 48 * + - 9 + 9
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT NULLIF ( 72, + - CASE + NULLIF ( + - 15, - 81 ) WHEN + 40 THEN - + 3 + - 25 + COUNT( * ) WHEN + + COUNT( * ) THEN - + ( + 46 ) * - 88 * 89 * + + 2 - 25 WHEN + 88 THEN NULL END ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6722
SELECT NULLIF ( 72, + - CASE + NULLIF ( + - 15, - 81 ) WHEN + 40 THEN - + 3 + - 25 + COUNT ( * ) WHEN + + COUNT ( * ) THEN - + ( + 46 ) * - 88 * 89 * + + 2 - 25 WHEN + 88 THEN NULL END ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT - MIN( ALL - + 88 ) + + + ( - - 90 ) * + 7 AS col1
----
718

skipif mysql # not compatible
query I rowsort label-6723
SELECT - MIN ( ALL - + 88 ) + + + ( - - 90 ) * + 7 AS col1
----
718

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6724
SELECT + 66 * + COUNT( * ) * - 80 * - 57 DIV - COUNT( * ) - + 5 * - COUNT( ALL 40 ) * NULLIF ( + + 59, - 4 * + + 96 + - - 37 + + 37 ) + + + ( - - 55 ) AS col1, - 52 AS col1
----
-300610
-52

skipif mysql # not compatible
query II rowsort label-6724
SELECT + 66 * + COUNT ( * ) * - 80 * - 57 / - COUNT ( * ) - + 5 * - COUNT ( ALL 40 ) * NULLIF ( + + 59, - 4 * + + 96 + - - 37 + + 37 ) + + + ( - - 55 ) AS col1, - 52 AS col1
----
-300610
-52

query I rowsort
SELECT NULLIF ( + - 95, + 14 * - 88 )
----
-95

query I rowsort
SELECT - 40 + 58 * - 35
----
-2070

onlyif mysql # aggregate syntax: 
query II rowsort label-6727
SELECT DISTINCT + 44 AS col1, COUNT( * )
----
44
1

skipif mysql # not compatible
query II rowsort label-6727
SELECT DISTINCT + 44 AS col1, COUNT ( * )
----
44
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6728
SELECT ALL + 52 * + + MIN( DISTINCT 32 ), + 44 AS col2
----
1664
44

skipif mysql # not compatible
query II rowsort label-6728
SELECT ALL + 52 * + + MIN ( DISTINCT 32 ), + 44 AS col2
----
1664
44

query I rowsort
SELECT + 3 * + 80 + - 18
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT NULLIF ( - 7, + 81 * COUNT( * ) * + 57 + + 38 + - 79 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-6730
SELECT NULLIF ( - 7, + 81 * COUNT ( * ) * + 57 + + 38 + - 79 ) AS col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-6731
SELECT ALL + 61 DIV + 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL + 61 / + 89 AS col0
----
0

query I rowsort
SELECT + 4 * + 87 * + 79 * + - 44 AS col1
----
-1209648

query I rowsort
SELECT + 63 + 39 - + 64
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT DISTINCT - 60 * - CASE + SUM( ALL + 63 ) WHEN - 37 THEN NULL WHEN + 39 THEN - 58 END - + ( - ( + 33 ) ) + - - ( + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT - 60 * - CASE + SUM ( ALL + 63 ) WHEN - 37 THEN NULL WHEN + 39 THEN - 58 END - + ( - ( + 33 ) ) + - - ( + 71 )
----
NULL

query I rowsort
SELECT + 39 * - 44
----
-1716

query I rowsort
SELECT - 44 * 96 AS col2
----
-4224

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6737
SELECT ALL CAST( NULL AS DECIMAL ) / - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL CAST ( NULL AS REAL ) / - 97
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6738
SELECT - CASE ( + 48 ) WHEN 21 + + 32 + COUNT( * ) THEN NULL WHEN CAST( - 74 AS SIGNED ) * - 69 + ( - 0 ) * - 48 THEN NULL WHEN 74 THEN + 69 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6738
SELECT - CASE ( + 48 ) WHEN 21 + + 32 + COUNT ( * ) THEN NULL WHEN CAST ( - 74 AS INTEGER ) * - 69 + ( - 0 ) * - 48 THEN NULL WHEN 74 THEN + 69 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT ALL + NULLIF ( - + 45, - 3 * + + COUNT( * ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL + NULLIF ( - + 45, - 3 * + + COUNT ( * ) ) AS col0
----
-45

query II rowsort
SELECT - + 99 AS col0, + 70 AS col1
----
-99
70

onlyif mysql # aggregate syntax: 
query II rowsort label-6741
SELECT ALL 12 AS col2, + NULLIF ( + MIN( ALL 75 ), 73 ) + - + ( + 99 ) AS col2
----
12
-24

skipif mysql # not compatible
query II rowsort label-6741
SELECT ALL 12 AS col2, + NULLIF ( + MIN ( ALL 75 ), 73 ) + - + ( + 99 ) AS col2
----
12
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6742
SELECT + CAST( NULL AS SIGNED ) * - 10 * 74 AS col1, + 24
----
NULL
24

skipif mysql # not compatible
query II rowsort label-6742
SELECT + CAST ( NULL AS INTEGER ) * - 10 * 74 AS col1, + 24
----
NULL
24

query I rowsort
SELECT ALL 74 + 47 + + - 78 + + 64
----
107

query I rowsort
SELECT - 44 - + - ( - 65 )
----
-109

query I rowsort
SELECT + - 93 + + 75 AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6746
SELECT - ( MIN( ALL + CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6746
SELECT - ( MIN ( ALL + CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT DISTINCT 2 + + MAX( 1 ) - + - 42 col1
----
45

skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT 2 + + MAX ( 1 ) - + - 42 col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6748
SELECT + - CASE 20 WHEN CAST( + 44 AS SIGNED ) THEN - 46 END * ( 32 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT + - CASE 20 WHEN CAST ( + 44 AS INTEGER ) THEN - 46 END * ( 32 ) AS col1
----
NULL

query I rowsort
SELECT - - 54 * - 58
----
-3132

query I rowsort
SELECT ALL + 74 + + 37
----
111

query II rowsort
SELECT - 97, 96 AS col1
----
-97
96

query I rowsort
SELECT DISTINCT - 4 + + 55 + + + 4 * - 68 AS col1
----
-221

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT DISTINCT MIN( ALL + ( + ( + 67 ) ) )
----
67

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT MIN ( ALL + ( + ( + 67 ) ) )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6754
SELECT CAST( + - 92 AS SIGNED ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6754
SELECT CAST ( + - 92 AS INTEGER ) AS col0
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-6755
SELECT + - 4 AS col2, 91 DIV + 67
----
-4
1

skipif mysql # not compatible
query II rowsort label-6755
SELECT + - 4 AS col2, 91 / + 67
----
-4
1

query II rowsort
SELECT ALL + 32, 28 AS col1
----
32
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6757
SELECT + CAST( NULL AS SIGNED ) AS col1, 63
----
NULL
63

skipif mysql # not compatible
query II rowsort label-6757
SELECT + CAST ( NULL AS INTEGER ) AS col1, 63
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT - 0 * + + 83 + - - ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6758
SELECT - 0 * + + 83 + - - ( + COUNT ( * ) )
----
1

query I rowsort
SELECT + 17 * + 5 col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6760
SELECT ALL + 21 AS col1, 95 - 96 + 57 + - ( + ( + MAX( + 27 ) ) ) * + - 37 * - 37 * 44
----
21
-1626316

skipif mysql # not compatible
query II rowsort label-6760
SELECT ALL + 21 AS col1, 95 - 96 + 57 + - ( + ( + MAX ( + 27 ) ) ) * + - 37 * - 37 * 44
----
21
-1626316

query I rowsort
SELECT DISTINCT 58 * COALESCE ( 45, - 11 )
----
2610

query II rowsort
SELECT ALL + 66 AS col0, + 63 AS col1
----
66
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT + CASE COUNT( * ) WHEN - ( + 68 ) THEN + + ( ( + ( ( - 59 ) ) ) ) * - 38 + 51 WHEN 21 THEN NULL END * 86 + - + ( 28 ) * - 60 * + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6763
SELECT + CASE COUNT ( * ) WHEN - ( + 68 ) THEN + + ( ( + ( ( - 59 ) ) ) ) * - 38 + 51 WHEN 21 THEN NULL END * 86 + - + ( 28 ) * - 60 * + 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT + ( - - 87 ) - + 99 - 83 + - 45 - + + 53 * + - SUM( + + 34 ) AS col1
----
1662

skipif mysql # not compatible
query I rowsort label-6764
SELECT + ( - - 87 ) - + 99 - 83 + - 45 - + + 53 * + - SUM ( + + 34 ) AS col1
----
1662

query II rowsort
SELECT + 26 AS col2, + 70
----
26
70

query I rowsort
SELECT ALL - ( + 13 ) AS col2
----
-13

query I rowsort
SELECT 1 * COALESCE ( + 74, - 60 )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6768
SELECT + 83, - COUNT( * ) AS col2
----
83
-1

skipif mysql # not compatible
query II rowsort label-6768
SELECT + 83, - COUNT ( * ) AS col2
----
83
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6769
SELECT DISTINCT - COALESCE ( - 26, + CASE + MAX( DISTINCT + - 62 ) WHEN + - COUNT( * ) THEN - 8 END DIV - 84 - - + 75 + - 41 * - 18 ) col1
----
26

skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT - COALESCE ( - 26, + CASE + MAX ( DISTINCT + - 62 ) WHEN + - COUNT ( * ) THEN - 8 END / - 84 - - + 75 + - 41 * - 18 ) col1
----
26

query I rowsort
SELECT 17 - + 31
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-6771
SELECT ALL - 53, - COUNT( * ) * + 86 AS col0
----
-53
-86

skipif mysql # not compatible
query II rowsort label-6771
SELECT ALL - 53, - COUNT ( * ) * + 86 AS col0
----
-53
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT ALL + NULLIF ( - COUNT( * ), - + 88 ) + 49 * + 73 AS col2
----
3576

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL + NULLIF ( - COUNT ( * ), - + 88 ) + 49 * + 73 AS col2
----
3576

query I rowsort
SELECT DISTINCT - 76 + - 75
----
-151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6774
SELECT ALL - 19 + SUM( - 33 ) * 26 DIV + ( - - 17 ) + 98
----
29

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL - 19 + SUM ( - 33 ) * 26 / + ( - - 17 ) + 98
----
29

query II rowsort
SELECT - + 44 AS col2, ( + ( - - 65 ) ) AS col2
----
-44
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT 60 * - + NULLIF ( + - 54, - CASE - - 44 WHEN + - 87 + + - 72 THEN COUNT( * ) * - + 89 * 78 WHEN - + ( + 29 ) THEN + + 46 WHEN - - COUNT( * ) THEN NULL END * - 56 * - + SUM( ALL - 74 ) + NULLIF ( 20, + - 98 - + 5 ) ) AS col2
----
3240

skipif mysql # not compatible
query I rowsort label-6776
SELECT 60 * - + NULLIF ( + - 54, - CASE - - 44 WHEN + - 87 + + - 72 THEN COUNT ( * ) * - + 89 * 78 WHEN - + ( + 29 ) THEN + + 46 WHEN - - COUNT ( * ) THEN NULL END * - 56 * - + SUM ( ALL - 74 ) + NULLIF ( 20, + - 98 - + 5 ) ) AS col2
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT + 12 - + + 76 * - 83 * + COUNT( + - 14 ) AS col0
----
6320

skipif mysql # not compatible
query I rowsort label-6777
SELECT + 12 - + + 76 * - 83 * + COUNT ( + - 14 ) AS col0
----
6320

query I rowsort
SELECT ( - 51 ) + 14 col1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-6779
SELECT + ( - 35 ) * 57 DIV + 22
----
-90

skipif mysql # not compatible
query I rowsort label-6779
SELECT + ( - 35 ) * 57 / + 22
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT DISTINCT + + 29 * + MIN( ALL + COALESCE ( - - 27, - - 66 ) ) col1
----
783

skipif mysql # not compatible
query I rowsort label-6780
SELECT DISTINCT + + 29 * + MIN ( ALL + COALESCE ( - - 27, - - 66 ) ) col1
----
783

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6781
SELECT ALL - 67 * + COALESCE ( + + COUNT( * ), COUNT( * ) * 75 - - 68 + 12 DIV + 37, - 49 * COUNT( * ), 45 ) * 38 + + + 59 * - 96 + + 83 * - 34 * - + 1 AS col2
----
-5388

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL - 67 * + COALESCE ( + + COUNT ( * ), COUNT ( * ) * 75 - - 68 + 12 / + 37, - 49 * COUNT ( * ), 45 ) * 38 + + + 59 * - 96 + + 83 * - 34 * - + 1 AS col2
----
-5388

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT ALL COUNT( * ) + + - 96 + 84 * + 21 AS col0
----
1669

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL COUNT ( * ) + + - 96 + 84 * + 21 AS col0
----
1669

query II rowsort
SELECT ALL 64 AS col2, 47 AS col0
----
64
47

query II rowsort
SELECT DISTINCT + 75 AS col1, 67
----
75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6785
SELECT DISTINCT + + CASE + ( - COUNT( * ) ) WHEN + + 39 THEN - COUNT( ALL + - 78 ) * 42 * + 77 WHEN + - 84 THEN + 0 + - 14 + + - 99 + 76 * - ( COUNT( * ) ) + - 1 * + 62 + CAST( + ( + ( CASE - CAST( + COUNT( * ) AS SIGNED ) WHEN - COUNT( * ) THEN NULL WHEN + COALESCE ( + 1, - COUNT( * ) / 3, 1 ) THEN + 56 + + 98 ELSE - 54 END ) ) AS SIGNED ) / - + 2 END + 10 + - + 17 + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT + + CASE + ( - COUNT ( * ) ) WHEN + + 39 THEN - COUNT ( ALL + - 78 ) * 42 * + 77 WHEN + - 84 THEN + 0 + - 14 + + - 99 + 76 * - ( COUNT ( * ) ) + - 1 * + 62 + CAST ( + ( + ( CASE - CAST ( + COUNT ( * ) AS INTEGER ) WHEN - COUNT ( * ) THEN NULL WHEN + COALESCE ( + 1, - COUNT ( * ) / 3, 1 ) THEN + 56 + + 98 ELSE - 54 END ) ) AS INTEGER ) / - + 2 END + 10 + - + 17 + 25 AS col2
----
NULL

query II rowsort
SELECT - ( 55 ) AS col0, + 10 * + 62 - + 49 + - + 93
----
-55
478

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT ALL - 0 + + COUNT( * ) * - 0 col0
----
0

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL - 0 + + COUNT ( * ) * - 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT ALL + + COUNT( * ) - 72 + - + 59 * - CASE - 47 WHEN - - 95 * 90 + 5 THEN + MIN( - 89 ) WHEN - - 64 THEN NULL ELSE NULL END + - - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL + + COUNT ( * ) - 72 + - + 59 * - CASE - 47 WHEN - - 95 * 90 + 5 THEN + MIN ( - 89 ) WHEN - - 64 THEN NULL ELSE NULL END + - - 31 AS col2
----
NULL

query I rowsort
SELECT - 53 + 93
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT - + MAX( ALL + 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-6790
SELECT - + MAX ( ALL + 15 )
----
-15

query I rowsort
SELECT ALL - COALESCE ( + 46, + + 30, + 78 ) AS col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6792
SELECT - CASE 33 WHEN + CAST( NULL AS SIGNED ) THEN NULLIF ( - - 66, + 19 * + + 75 - - 13 ) * + 70 ELSE NULL END + - - 22 * + COUNT( - 68 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT - CASE 33 WHEN + CAST ( NULL AS INTEGER ) THEN NULLIF ( - - 66, + 19 * + + 75 - - 13 ) * + 70 ELSE NULL END + - - 22 * + COUNT ( - 68 ) AS col1
----
NULL

query I rowsort
SELECT + 41 * - 60 AS col0
----
-2460

onlyif mysql # aggregate syntax: 
query II rowsort label-6794
SELECT COUNT( * ), COUNT( * ) col1
----
1
1

skipif mysql # not compatible
query II rowsort label-6794
SELECT COUNT ( * ), COUNT ( * ) col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL MIN( - 50 ) * - 23 col1
----
1150

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL MIN ( - 50 ) * - 23 col1
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT ALL - NULLIF ( + - CASE + 7 WHEN + - SUM( + 81 ) THEN + + 34 * - 78 * - 4 END, + 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL - NULLIF ( + - CASE + 7 WHEN + - SUM ( + 81 ) THEN + + 34 * - 78 * - 4 END, + 59 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT + 58 * + + COALESCE ( + 85, + - MIN( DISTINCT + - 41 ), - 39 ) - + 48 AS col1
----
4882

skipif mysql # not compatible
query I rowsort label-6797
SELECT + 58 * + + COALESCE ( + 85, + - MIN ( DISTINCT + - 41 ), - 39 ) - + 48 AS col1
----
4882

query II rowsort
SELECT 86 * + 24 AS col1, 68
----
2064
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6799
SELECT ALL 99 * - 55 AS col0, + 75 AS col0, + + CAST( NULL AS SIGNED ) + 3 col1
----
-5445
75
NULL

skipif mysql # not compatible
query III rowsort label-6799
SELECT ALL 99 * - 55 AS col0, + 75 AS col0, + + CAST ( NULL AS INTEGER ) + 3 col1
----
-5445
75
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6800
SELECT 88 / - CAST( NULL AS SIGNED ) + MIN( 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6800
SELECT 88 / - CAST ( NULL AS INTEGER ) + MIN ( 28 )
----
NULL

query II rowsort
SELECT 11 * + - 98, 7 + - 91 * - - 51 AS col2
----
-1078
-4634

query I rowsort
SELECT 52 * - 5 - 62 AS col1
----
-322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6803
SELECT CASE + 2 WHEN CAST( NULL AS SIGNED ) * - COUNT( * ) THEN NULL WHEN - - 19 THEN + - MIN( DISTINCT 38 ) * - + 14 WHEN 80 + - 49 THEN NULL END + - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT CASE + 2 WHEN CAST ( NULL AS INTEGER ) * - COUNT ( * ) THEN NULL WHEN - - 19 THEN + - MIN ( DISTINCT 38 ) * - + 14 WHEN 80 + - 49 THEN NULL END + - - 75
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6804
SELECT 37 - - SUM( - 84 ) + + - COALESCE ( - 78, - 20 DIV 11 DIV - 63 ) - 64 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-6804
SELECT 37 - - SUM ( - 84 ) + + - COALESCE ( - 78, - 20 / 11 / - 63 ) - 64 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL COUNT( * ) + 61
----
62

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL COUNT ( * ) + 61
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-6806
SELECT - 57 * + 4 + - 57 DIV + 25 AS col0
----
-230

skipif mysql # not compatible
query I rowsort label-6806
SELECT - 57 * + 4 + - 57 / + 25 AS col0
----
-230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6807
SELECT DISTINCT + COUNT( * ) * + + 23 DIV - 4
----
-5

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT + COUNT ( * ) * + + 23 / - 4
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6808
SELECT DISTINCT NULLIF ( + ( - 64 ), + - ( + CAST( NULL AS SIGNED ) ) ) + + 82 * + 6 AS col2, 64 + + 7
----
428
71

skipif mysql # not compatible
query II rowsort label-6808
SELECT DISTINCT NULLIF ( + ( - 64 ), + - ( + CAST ( NULL AS INTEGER ) ) ) + + 82 * + 6 AS col2, 64 + + 7
----
428
71

onlyif mysql # DIV for integer division: 
query I rowsort label-6809
SELECT ALL 3 + 30 DIV - 75 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL 3 + 30 / - 75 AS col1
----
3

query I rowsort
SELECT ALL + 99 + - ( + 86 ) + + - 19 * + 52 AS col1
----
-975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6811
SELECT 36 + + + 94 * - - ( + CASE - COUNT( * ) WHEN 82 THEN - - CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED ) - - 50 + SUM( + 94 ) + - COUNT( * ) * CAST( NULL AS SIGNED ) * + - 6 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT 36 + + + 94 * - - ( + CASE - COUNT ( * ) WHEN 82 THEN - - CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) - - 50 + SUM ( + 94 ) + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + - 6 ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT ALL ( 5 ) + 45 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT DISTINCT COUNT( * ) * + + 17 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-6813
SELECT DISTINCT COUNT ( * ) * + + 17 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT + SUM( ALL + 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-6814
SELECT + SUM ( ALL + 11 ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT - COALESCE ( NULLIF ( 88, + COUNT( * ) * + 50 - + + 91 * - 18 * - 80 ), 60 ) * + COUNT( * ) * + 21 col2
----
-1848

skipif mysql # not compatible
query I rowsort label-6815
SELECT - COALESCE ( NULLIF ( 88, + COUNT ( * ) * + 50 - + + 91 * - 18 * - 80 ), 60 ) * + COUNT ( * ) * + 21 col2
----
-1848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6816
SELECT - CAST( NULL AS SIGNED ) * + - 13 + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6816
SELECT - CAST ( NULL AS INTEGER ) * + - 13 + 11 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - + 99 ) + + 52
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6818
SELECT ALL CAST( NULL AS SIGNED ) + - NULLIF ( - CAST( + 76 AS SIGNED ), - 89 + 66 + - 36 + - CAST( NULL AS SIGNED ) * + 0 + - - 45 + 84 + 73 - + 67 * + + COUNT( * ) + 23 - + CASE + ( 78 ) WHEN + 55 THEN + + 2 + + + 11 END * - 90 - + COUNT( * ) * COALESCE ( - MAX( ALL - 11 ), - 1 * + - 69 / 44 ) * + - MIN( DISTINCT - 93 ) / - ( + 83 ) + - 34 + - 56 * + 74 + + 66 * + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL CAST ( NULL AS INTEGER ) + - NULLIF ( - CAST ( + 76 AS INTEGER ), - 89 + 66 + - 36 + - CAST ( NULL AS INTEGER ) * + 0 + - - 45 + 84 + 73 - + 67 * + + COUNT ( * ) + 23 - + CASE + ( 78 ) WHEN + 55 THEN + + 2 + + + 11 END * - 90 - + COUNT ( * ) * COALESCE ( - MAX ( ALL - 11 ), - 1 * + - 69 / 44 ) * + - MIN ( DISTINCT - 93 ) / - ( + 83 ) + - 34 + - 56 * + 74 + + 66 * + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT ALL - 15 * 29 + + + 30 * - + COUNT( * ) AS col2
----
-465

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL - 15 * 29 + + + 30 * - + COUNT ( * ) AS col2
----
-465

query I rowsort
SELECT DISTINCT 24 - - 67 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT - 98 * - 79 + - COUNT( * ) AS col1
----
7741

skipif mysql # not compatible
query I rowsort label-6821
SELECT - 98 * - 79 + - COUNT ( * ) AS col1
----
7741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6822
SELECT + 42 - + - CAST( NULL AS SIGNED ) - 62 * - 88 * - 18 + 86 * - MAX( - - 98 ) * + - 40 * - + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6822
SELECT + 42 - + - CAST ( NULL AS INTEGER ) - 62 * - 88 * - 18 + 86 * - MAX ( - - 98 ) * + - 40 * - + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT DISTINCT - 22 * + - COUNT( * ) - + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-6823
SELECT DISTINCT - 22 * + - COUNT ( * ) - + COUNT ( * )
----
21

query I rowsort
SELECT - ( + 54 ) * + 19 + 83
----
-943

query I rowsort
SELECT DISTINCT - ( + 87 ) AS col0
----
-87

query I rowsort
SELECT DISTINCT - 78 * 1 AS col2
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6827
SELECT ALL + COUNT( * ) * + NULLIF ( - 91, - COUNT( * ) DIV + COALESCE ( + 37, - 41 ) + + 7 ) DIV 50 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL + COUNT ( * ) * + NULLIF ( - 91, - COUNT ( * ) / + COALESCE ( + 37, - 41 ) + + 7 ) / 50 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6828
SELECT ALL 5 DIV + - 5
----
-1

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL 5 / + - 5
----
-1

query I rowsort
SELECT 92 + - - 41 AS col2
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-6830
SELECT 2 + - + 75 + 86 DIV 57
----
-72

skipif mysql # not compatible
query I rowsort label-6830
SELECT 2 + - + 75 + 86 / 57
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6831
SELECT COUNT( * ) DIV - + 76
----
0

skipif mysql # not compatible
query I rowsort label-6831
SELECT COUNT ( * ) / - + 76
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6832
SELECT COALESCE ( + SUM( + 74 ), - 37 * + CAST( NULL AS SIGNED ) )
----
74

skipif mysql # not compatible
query I rowsort label-6832
SELECT COALESCE ( + SUM ( + 74 ), - 37 * + CAST ( NULL AS INTEGER ) )
----
74

query I rowsort
SELECT + 40 * - - 91 AS col2
----
3640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6834
SELECT - MAX( + 25 ) * + + CAST( NULL AS SIGNED ) + + 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6834
SELECT - MAX ( + 25 ) * + + CAST ( NULL AS INTEGER ) + + 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT ALL - COUNT( * ) * - + 48 + - ( - 89 ) AS col2
----
137

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL - COUNT ( * ) * - + 48 + - ( - 89 ) AS col2
----
137

query I rowsort
SELECT ALL 98 * - 55 AS col1
----
-5390

query I rowsort
SELECT + 4 * - 22
----
-88

query I rowsort
SELECT DISTINCT + 1 * + - 70 + - 47 - - 93 + - 37
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT + MAX( ALL + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-6839
SELECT + MAX ( ALL + 35 )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-6840
SELECT ALL 62 * - CASE + + 17 WHEN - ( 51 ) THEN NULL WHEN + + 21 * 13 THEN - COUNT( * ) END AS col0, - 13 AS col0
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-6840
SELECT ALL 62 * - CASE + + 17 WHEN - ( 51 ) THEN NULL WHEN + + 21 * 13 THEN - COUNT ( * ) END AS col0, - 13 AS col0
----
NULL
-13

query I rowsort
SELECT + 74 * - 32 AS col1
----
-2368

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT - 85 - COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-6842
SELECT - 85 - COUNT ( * )
----
-86

query I rowsort
SELECT + NULLIF ( + - 71, + 75 + ( - - 47 ) ) AS col0
----
-71

query I rowsort
SELECT ALL + 69 * - ( + 95 ) + + - 37
----
-6592

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6845
SELECT + - CASE 32 WHEN 63 THEN - - 95 * + + CAST( NULL AS SIGNED ) * - 5 - + + 33 WHEN + 25 THEN NULL END AS col1, - 90 AS col2
----
NULL
-90

skipif mysql # not compatible
query II rowsort label-6845
SELECT + - CASE 32 WHEN 63 THEN - - 95 * + + CAST ( NULL AS INTEGER ) * - 5 - + + 33 WHEN + 25 THEN NULL END AS col1, - 90 AS col2
----
NULL
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6846
SELECT ALL + 83 * - COUNT( * ) * - CAST( - ( 64 ) AS SIGNED ) + - + 10 AS col1
----
-5322

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL + 83 * - COUNT ( * ) * - CAST ( - ( 64 ) AS INTEGER ) + - + 10 AS col1
----
-5322

query II rowsort
SELECT + NULLIF ( + - 96, - + 15 ), 99 AS col1
----
-96
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6848
SELECT + - ( + - 29 ) - - - 18 DIV - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6848
SELECT + - ( + - 29 ) - - - 18 / - COUNT ( * ) AS col1
----
47

query II rowsort
SELECT ALL - 20 col2, + 20 * - - 74 AS col0
----
-20
1480

query I rowsort
SELECT ALL 57 * + 3
----
171

query I rowsort
SELECT + 40 + - 95
----
-55

query I rowsort
SELECT - ( ( 73 ) ) - - 72 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6853
SELECT + 54 + - 80 + COUNT( * ) * + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6853
SELECT + 54 + - 80 + COUNT ( * ) * + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6854
SELECT ALL 61 col1, - COUNT( * )
----
61
-1

skipif mysql # not compatible
query II rowsort label-6854
SELECT ALL 61 col1, - COUNT ( * )
----
61
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6855
SELECT - + 54 * 67 DIV COUNT( * ) + 27 DIV 1
----
-3591

skipif mysql # not compatible
query I rowsort label-6855
SELECT - + 54 * 67 / COUNT ( * ) + 27 / 1
----
-3591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6856
SELECT ALL CASE + NULLIF ( + - COUNT( * ), - - CASE - SUM( ALL + CAST( NULL AS SIGNED ) ) WHEN 9 * - MIN( + 64 ) THEN + 30 * - - COUNT( * ) * + - ( - + 14 ) WHEN + 12 THEN + 14 + + + 39 * - + 68 * + 25 ELSE - CASE - CAST( 75 AS SIGNED ) WHEN + 2 - + 17 - - ( + MAX( DISTINCT + - 24 ) ) THEN NULL WHEN - - 86 * COUNT( * ) THEN 99 ELSE + 65 * + 54 END END + - + 90 + - - 66 * - ( CAST( NULL AS DECIMAL ) ) ) WHEN + 10 THEN + 10 / + + AVG ( ALL + 47 ) + 84 ELSE 16 END
----
16

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL CASE + NULLIF ( + - COUNT ( * ), - - CASE - SUM ( ALL + CAST ( NULL AS INTEGER ) ) WHEN 9 * - MIN ( + 64 ) THEN + 30 * - - COUNT ( * ) * + - ( - + 14 ) WHEN + 12 THEN + 14 + + + 39 * - + 68 * + 25 ELSE - CASE - CAST ( 75 AS INTEGER ) WHEN + 2 - + 17 - - ( + MAX ( DISTINCT + - 24 ) ) THEN NULL WHEN - - 86 * COUNT ( * ) THEN 99 ELSE + 65 * + 54 END END + - + 90 + - - 66 * - ( CAST ( NULL AS REAL ) ) ) WHEN + 10 THEN + 10 / + + AVG ( ALL + 47 ) + 84 ELSE 16 END
----
16

query I rowsort
SELECT - 46 + + 47
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6858
SELECT DISTINCT + 16 * + MAX( 18 ) * CAST( + 95 AS SIGNED ) * - 96 AS col1
----
-2626560

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT + 16 * + MAX ( 18 ) * CAST ( + 95 AS INTEGER ) * - 96 AS col1
----
-2626560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6859
SELECT - CASE - + CAST( NULL AS SIGNED ) WHEN - 99 * 88 THEN NULL WHEN - 9 * 99 + - - MIN( DISTINCT - 4 ) THEN - COUNT( * ) END + - - ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT - CASE - + CAST ( NULL AS INTEGER ) WHEN - 99 * 88 THEN NULL WHEN - 9 * 99 + - - MIN ( DISTINCT - 4 ) THEN - COUNT ( * ) END + - - ( - COUNT ( * ) )
----
NULL

query I rowsort
SELECT - 58 * 8 AS col1
----
-464

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT DISTINCT + COUNT( DISTINCT - 73 ) * 5 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT + COUNT ( DISTINCT - 73 ) * 5 AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6862
SELECT DISTINCT + 57 DIV + - COALESCE ( + - 6, - - 28 ) + + 37 * + - 20 AS col1
----
-731

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT + 57 / + - COALESCE ( + - 6, - - 28 ) + + 37 * + - 20 AS col1
----
-731

query I rowsort
SELECT DISTINCT + CASE 1 WHEN 33 THEN NULL WHEN - 84 - - + 51 THEN 4 / + 43 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6864
SELECT ALL + 2 DIV 61 + 1
----
1

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL + 2 / 61 + 1
----
1

query I rowsort
SELECT - 98 + + 62 AS col0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-6866
SELECT ALL - 24 DIV + 58 + + 13 * - + 71
----
-923

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL - 24 / + 58 + + 13 * - + 71
----
-923

query I rowsort
SELECT - 48 * - - 93 + 27 * 74 AS col2
----
-2466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6868
SELECT DISTINCT + CAST( 20 AS SIGNED ) DIV - MIN( ALL + + 28 )
----
0

skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT + CAST ( 20 AS INTEGER ) / - MIN ( ALL + + 28 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6869
SELECT ALL + COUNT( * ) DIV + ( - CAST( + - 84 AS SIGNED ) ) + ( 3 ) + - CAST( - - 95 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL + COUNT ( * ) / + ( - CAST ( + - 84 AS INTEGER ) ) + ( 3 ) + - CAST ( - - 95 AS INTEGER )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-6870
SELECT 63 DIV - + 68 + - - 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-6870
SELECT 63 / - + 68 + - - 78 AS col2
----
78

query I rowsort
SELECT - 38 + + 78 + 55 col0
----
95

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6872
SELECT + 73 / - 2 * - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) - + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT + 73 / - 2 * - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) - + + 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6873
SELECT - COALESCE ( - 2, - - CASE 83 WHEN - - ( + CAST( NULL AS SIGNED ) ) THEN + 7 - 19 ELSE NULL END ) * 59, COUNT( * ) AS col1
----
118
1

skipif mysql # not compatible
query II rowsort label-6873
SELECT - COALESCE ( - 2, - - CASE 83 WHEN - - ( + CAST ( NULL AS INTEGER ) ) THEN + 7 - 19 ELSE NULL END ) * 59, COUNT ( * ) AS col1
----
118
1

query I rowsort
SELECT + NULLIF ( - 15, 7 * + 50 ) + + + 34
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6875
SELECT ALL + 99 * + ( + COUNT( * ) ) - - CASE - 83 WHEN + 95 THEN - 8 * - 43 - - 10 + 54 + - COUNT( * ) * CASE - 69 WHEN + COUNT( - 93 ) THEN - 94 * 72 / + + 64 / + COALESCE ( + 52, CAST( NULL AS SIGNED ) ) END END * - + COUNT( * ) + + AVG ( - ( - - 5 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL + 99 * + ( + COUNT ( * ) ) - - CASE - 83 WHEN + 95 THEN - 8 * - 43 - - 10 + 54 + - COUNT ( * ) * CASE - 69 WHEN + COUNT ( - 93 ) THEN - 94 * 72 / + + 64 / + COALESCE ( + 52, CAST ( NULL AS INTEGER ) ) END END * - + COUNT ( * ) + + AVG ( - ( - - 5 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 88 * + 58 AS col0
----
-5104

query I rowsort
SELECT DISTINCT + + ( 72 )
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-6878
SELECT - ( 26 ) * - 23 + - - 54 + + COUNT( * ) AS col2, COUNT( * ) - - 7 AS col1
----
653
8

skipif mysql # not compatible
query II rowsort label-6878
SELECT - ( 26 ) * - 23 + - - 54 + + COUNT ( * ) AS col2, COUNT ( * ) - - 7 AS col1
----
653
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT DISTINCT SUM( ALL 74 ) * 7 + - - 20 * 92 AS col0
----
2358

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT SUM ( ALL 74 ) * 7 + - - 20 * 92 AS col0
----
2358

query II rowsort
SELECT ALL + 39 * - 4 * - ( + - 35 ) AS col1, 27
----
-5460
27

query I rowsort
SELECT DISTINCT - 81 * - 40 * 14
----
45360

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT 12 * + 86 * + COUNT( * ) AS col2
----
1032

skipif mysql # not compatible
query I rowsort label-6882
SELECT 12 * + 86 * + COUNT ( * ) AS col2
----
1032

query II rowsort
SELECT - 1 AS col2, 54 AS col1
----
-1
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6884
SELECT 27 + 6 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6884
SELECT 27 + 6 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 37 + 43
----
80

query I rowsort
SELECT ALL 93 + 81 * 12
----
1065

query I rowsort
SELECT ALL - 30 + - 25
----
-55

query I rowsort
SELECT 17 + - 92
----
-75

query I rowsort
SELECT DISTINCT 28 + - 13
----
15

query I rowsort
SELECT 27 + 86 AS col0
----
113

query I rowsort
SELECT 30 - - + 94 * 48 + + 69
----
4611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6892
SELECT CAST( NULL AS SIGNED ) / + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT CAST ( NULL AS INTEGER ) / + 8 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( + 34 ) * - + 73 - - COALESCE ( + + 2, 90 * 28 ) - 55
----
-2535

query I rowsort
SELECT 31 * + 67 * + 32 + 97 + + 36 * + + NULLIF ( 41, + 35 ) col2
----
68037

onlyif mysql # aggregate syntax: 
query II rowsort label-6895
SELECT ALL - CASE + 96 WHEN 44 + + - 72 THEN MIN( - 80 ) * 56 + 68 + + 37 + - 41 + + 82 / 98 * + + COUNT( * ) END - + 42 - 98 AS col1, - 32 + CASE - ( + 88 ) WHEN + 31 THEN NULL WHEN - COUNT( * ) * + + 52 - + 64 THEN - + 31 ELSE NULL END - 47 * - ( - + 83 ) - + 48
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6895
SELECT ALL - CASE + 96 WHEN 44 + + - 72 THEN MIN ( - 80 ) * 56 + 68 + + 37 + - 41 + + 82 / 98 * + + COUNT ( * ) END - + 42 - 98 AS col1, - 32 + CASE - ( + 88 ) WHEN + 31 THEN NULL WHEN - COUNT ( * ) * + + 52 - + 64 THEN - + 31 ELSE NULL END - 47 * - ( - + 83 ) - + 48
----
NULL
NULL

query I rowsort
SELECT ALL + 41 * + 49 AS col1
----
2009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6897
SELECT 12 AS col0, + ( + - 43 ) / + 56 - + 25 + + COUNT( DISTINCT - 63 ) + + 26 * - + 67 - ( + 15 ) / - + CAST( NULL AS SIGNED ) * + SUM( DISTINCT + 97 ) * - - 2 + - + 93 AS col0
----
12
NULL

skipif mysql # not compatible
query II rowsort label-6897
SELECT 12 AS col0, + ( + - 43 ) / + 56 - + 25 + + COUNT ( DISTINCT - 63 ) + + 26 * - + 67 - ( + 15 ) / - + CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT + 97 ) * - - 2 + - + 93 AS col0
----
12
NULL

query II rowsort
SELECT DISTINCT - ( 7 ) - + 47, + 25 AS col2
----
-54
25

query II rowsort
SELECT ALL - + AVG ( + - CASE + 69 WHEN + 7 THEN - 25 ELSE NULL END ), - 19 + + 61 AS col2
----
NULL
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6900
SELECT ALL - 28 DIV 17 + 64 * + 10
----
639

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL - 28 / 17 + 64 * + 10
----
639

query I rowsort
SELECT DISTINCT - ( + COALESCE ( - 90, + 91 - - 81 ) )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6902
SELECT CAST( + - COUNT( * ) AS SIGNED ) - + 18 * + 93
----
-1675

skipif mysql # not compatible
query I rowsort label-6902
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) - + 18 * + 93
----
-1675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6903
SELECT - 86 / + - 28 + CAST( NULL AS SIGNED ) + 91 + ( + 91 ) * + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6903
SELECT - 86 / + - 28 + CAST ( NULL AS INTEGER ) + 91 + ( + 91 ) * + 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT + 95 - + - 96 - COUNT( * ) + + 99 * - - 80 AS col0
----
8110

skipif mysql # not compatible
query I rowsort label-6904
SELECT + 95 - + - 96 - COUNT ( * ) + + 99 * - - 80 AS col0
----
8110

onlyif mysql # DIV for integer division: 
query I rowsort label-6905
SELECT ALL - - 32 DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL - - 32 / - 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT - ( MIN( ALL + 12 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-6906
SELECT - ( MIN ( ALL + 12 ) )
----
-12

query I rowsort
SELECT ALL 75 * - 67 AS col2
----
-5025

query I rowsort
SELECT ALL + 32 * - - 70
----
2240

query I rowsort
SELECT DISTINCT - 41 + + 23
----
-18

query I rowsort
SELECT ALL - 82 + + 59 col0
----
-23

query I rowsort
SELECT + CASE 97 WHEN - 74 THEN - - 53 + + 14 / - - 0 WHEN + - 15 * - 13 THEN NULL END
----
NULL

query I rowsort
SELECT - - ( - 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT ALL + COUNT( * ) + 18 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL + COUNT ( * ) + 18 AS col0
----
19

query II rowsort
SELECT ALL 43 AS col0, + 73 * 79
----
43
5767

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6915
SELECT ALL 98 AS col0, COUNT( * ) DIV - 44
----
98
0

skipif mysql # not compatible
query II rowsort label-6915
SELECT ALL 98 AS col0, COUNT ( * ) / - 44
----
98
0

query II rowsort
SELECT DISTINCT 49 AS col2, - 16
----
49
-16

query I rowsort
SELECT DISTINCT 40 + + 21 + - 54 AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6918
SELECT DISTINCT COUNT( * ), 28 AS col2
----
1
28

skipif mysql # not compatible
query II rowsort label-6918
SELECT DISTINCT COUNT ( * ), 28 AS col2
----
1
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6919
SELECT ALL COALESCE ( - + 94, - + 55 * + ( 86 ), 25 DIV + COUNT( * ) + + MIN( ALL + 44 ) - + 48 ) + - COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL COALESCE ( - + 94, - + 55 * + ( 86 ), 25 / + COUNT ( * ) + + MIN ( ALL + 44 ) - + 48 ) + - COUNT ( * ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT ALL 75 + - + SUM( DISTINCT - + 27 ) col1
----
102

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL 75 + - + SUM ( DISTINCT - + 27 ) col1
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-6921
SELECT ALL 87 DIV - + 8 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL 87 / - + 8 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT ALL 39 - + MIN( 96 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL 39 - + MIN ( 96 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-6923
SELECT 46 * + + 72, COUNT( * ) * ( 50 ) AS col2
----
3312
50

skipif mysql # not compatible
query II rowsort label-6923
SELECT 46 * + + 72, COUNT ( * ) * ( 50 ) AS col2
----
3312
50

query II rowsort
SELECT 3 AS col0, - 45 AS col0
----
3
-45

query II rowsort
SELECT DISTINCT 81, 75 * 8 col0
----
81
600

query II rowsort
SELECT DISTINCT 34 AS col2, + ( 54 ) * - 34 AS col1
----
34
-1836

query I rowsort
SELECT ALL - NULLIF ( 62, - NULLIF ( 74, - - 71 ) ) col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6928
SELECT + 65 DIV 2 * - - CAST( 93 AS SIGNED ) + 64 * + 68, - 15 AS col0
----
7328
-15

skipif mysql # not compatible
query II rowsort label-6928
SELECT + 65 / 2 * - - CAST ( 93 AS INTEGER ) + 64 * + 68, - 15 AS col0
----
7328
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT ( - 7 ) + + + COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-6929
SELECT ( - 7 ) + + + COUNT ( * ) AS col0
----
-6

query II rowsort
SELECT DISTINCT - + 52 AS col1, 62 + - 51 AS col1
----
-52
11

onlyif mysql # aggregate syntax: 
query II rowsort label-6931
SELECT ALL + 99 * + 3 * - 36 - 17 AS col0, COUNT( * ) - + - 60 AS col2
----
-10709
61

skipif mysql # not compatible
query II rowsort label-6931
SELECT ALL + 99 * + 3 * - 36 - 17 AS col0, COUNT ( * ) - + - 60 AS col2
----
-10709
61

query I rowsort
SELECT 84 + - 43
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT COUNT( * ) * - - 60 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-6933
SELECT COUNT ( * ) * - - 60 AS col0
----
60

query I rowsort
SELECT ALL - 38 * + 83 + + 67
----
-3087

query I rowsort
SELECT - 93 + - 35 + - - 72 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-6936
SELECT DISTINCT 80 * + 76 * - COUNT( - - 92 ) + 77 * 59 + + COUNT( * ) col1, - 84
----
-1536
-84

skipif mysql # not compatible
query II rowsort label-6936
SELECT DISTINCT 80 * + 76 * - COUNT ( - - 92 ) + 77 * 59 + + COUNT ( * ) col1, - 84
----
-1536
-84

query I rowsort
SELECT DISTINCT 81 * + 25
----
2025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6938
SELECT + 22 * + 21 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6938
SELECT + 22 * + 21 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6939
SELECT DISTINCT - 45 + + ( + + 39 ) + + 51 DIV + + 23 * + COUNT( * ) * 1
----
-4

skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT - 45 + + ( + + 39 ) + + 51 / + + 23 * + COUNT ( * ) * 1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6940
SELECT - + 22 DIV + COUNT( * ), - 27 AS col1
----
-22
-27

skipif mysql # not compatible
query II rowsort label-6940
SELECT - + 22 / + COUNT ( * ), - 27 AS col1
----
-22
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT - + 17 + COUNT( * ) - + 0 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-6941
SELECT - + 17 + COUNT ( * ) - + 0 AS col0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6942
SELECT ALL - 11 + 71 AS col1, 34 + + - 73 * 84 + - CAST( NULL AS SIGNED ) AS col2
----
60
NULL

skipif mysql # not compatible
query II rowsort label-6942
SELECT ALL - 11 + 71 AS col1, 34 + + - 73 * 84 + - CAST ( NULL AS INTEGER ) AS col2
----
60
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6943
SELECT - 95 * 37, - 35 DIV - MIN( + 44 ) AS col1
----
-3515
0

skipif mysql # not compatible
query II rowsort label-6943
SELECT - 95 * 37, - 35 / - MIN ( + 44 ) AS col1
----
-3515
0

query II rowsort
SELECT 13, - 7 * 22 AS col1
----
13
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT - - ( - - 1 ) * + CASE CASE + 25 WHEN - - 40 + - 61 THEN 4 + - 13 WHEN - 47 THEN 93 END WHEN + 24 THEN - 95 * - - CASE COUNT( * ) WHEN + COUNT( * ) THEN - 47 ELSE + - 88 END WHEN - + 92 * 28 THEN + + 0 * + - COUNT( * ) * + 67 + - COUNT( * ) * 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6945
SELECT - - ( - - 1 ) * + CASE CASE + 25 WHEN - - 40 + - 61 THEN 4 + - 13 WHEN - 47 THEN 93 END WHEN + 24 THEN - 95 * - - CASE COUNT ( * ) WHEN + COUNT ( * ) THEN - 47 ELSE + - 88 END WHEN - + 92 * 28 THEN + + 0 * + - COUNT ( * ) * + 67 + - COUNT ( * ) * 43 END
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-6946
SELECT ( - 40 ) * - + 14 + 72 AS col1, 10 * 29 - + 20, - 3 * NULLIF ( + 94, - + 94 - + COUNT( * ) ) + + - 57 AS col2
----
632
270
-339

skipif mysql # not compatible
query III rowsort label-6946
SELECT ( - 40 ) * - + 14 + 72 AS col1, 10 * 29 - + 20, - 3 * NULLIF ( + 94, - + 94 - + COUNT ( * ) ) + + - 57 AS col2
----
632
270
-339

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6947
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) * 66
----
NULL

query I rowsort
SELECT - 88 * + 34 AS col0
----
-2992

onlyif mysql # aggregate syntax: 
query II rowsort label-6949
SELECT ALL + COUNT( * ) + 15, + 73 AS col0
----
16
73

skipif mysql # not compatible
query II rowsort label-6949
SELECT ALL + COUNT ( * ) + 15, + 73 AS col0
----
16
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6950
SELECT ALL + CAST( + + 74 AS SIGNED ) + - 15 * - - 71 + 16 + 14 + 40 - + 44 + ( 43 ) + + CAST( NULL AS SIGNED ) + 53 * - 14 * CASE - 54 WHEN - 19 THEN NULL WHEN - 16 - CAST( - 14 AS SIGNED ) THEN - 70 * 12 ELSE NULL END + 37 * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL + CAST ( + + 74 AS INTEGER ) + - 15 * - - 71 + 16 + 14 + 40 - + 44 + ( 43 ) + + CAST ( NULL AS INTEGER ) + 53 * - 14 * CASE - 54 WHEN - 19 THEN NULL WHEN - 16 - CAST ( - 14 AS INTEGER ) THEN - 70 * 12 ELSE NULL END + 37 * 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT ALL CASE - ( - ( 52 ) ) WHEN - 46 * + COUNT( * ) * 47 * + COUNT( * ) THEN NULL ELSE - + 61 END + 31 - + 1 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL CASE - ( - ( 52 ) ) WHEN - 46 * + COUNT ( * ) * 47 * + COUNT ( * ) THEN NULL ELSE - + 61 END + 31 - + 1 AS col0
----
-31

query II rowsort
SELECT + 75 + 44, COALESCE ( + 88, + 39 * 11 ) AS col2
----
119
88

query I rowsort
SELECT ALL - ( - 58 ) * + 71
----
4118

onlyif mysql # aggregate syntax: 
query II rowsort label-6954
SELECT ALL + COUNT( * ) - + 86 * + + ( - 1 ) * + 61, - NULLIF ( - 15, 17 * - 46 * - 82 + ( - - COUNT( * ) ) - + 32 ) * + 31 + + 74 + + 72 + - 69 * 79 + - 48 AS col2
----
5247
-4888

skipif mysql # not compatible
query II rowsort label-6954
SELECT ALL + COUNT ( * ) - + 86 * + + ( - 1 ) * + 61, - NULLIF ( - 15, 17 * - 46 * - 82 + ( - - COUNT ( * ) ) - + 32 ) * + 31 + + 74 + + 72 + - 69 * 79 + - 48 AS col2
----
5247
-4888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6955
SELECT - 22 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6955
SELECT - 22 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT + 27 * - - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-6956
SELECT + 27 * - - COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT + 45 + - SUM( - - 3 ) * - + 85
----
300

skipif mysql # not compatible
query I rowsort label-6957
SELECT + 45 + - SUM ( - - 3 ) * - + 85
----
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6958
SELECT - CASE + + NULLIF ( + + CAST( + COALESCE ( - 40, - 47 ) AS SIGNED ), + COUNT( 66 ) ) WHEN 60 THEN - - 99 * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6958
SELECT - CASE + + NULLIF ( + + CAST ( + COALESCE ( - 40, - 47 ) AS INTEGER ), + COUNT ( 66 ) ) WHEN 60 THEN - - 99 * - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6959
SELECT DISTINCT 68 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT 68 / 85
----
0

query II rowsort
SELECT ALL COALESCE ( + 22, + - 46 ), + 44 col2
----
22
44

query I rowsort
SELECT ALL 86 - 15
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT ALL ( - NULLIF ( - + MAX( + - COALESCE ( 8, + NULLIF ( 99, + 14 ) * + 81 - + 15 * + 58 * - 92 + 23 ) ), - 3 + - 52 + - 44 * + + 66 ) ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL ( - NULLIF ( - + MAX ( + - COALESCE ( 8, + NULLIF ( 99, + 14 ) * + 81 - + 15 * + 58 * - 92 + 23 ) ), - 3 + - 52 + - 44 * + + 66 ) ) AS col2
----
-8

query I rowsort
SELECT + 9 + + 44 * - 91 col1
----
-3995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6964
SELECT - CASE COALESCE ( - COUNT( + 38 ), - NULLIF ( 88, + CAST( NULL AS SIGNED ) ) / + 54 ) WHEN + 46 * - 7 THEN + + 65 + - 37 + + AVG ( DISTINCT - 41 ) WHEN + 36 - 98 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT - CASE COALESCE ( - COUNT ( + 38 ), - NULLIF ( 88, + CAST ( NULL AS INTEGER ) ) / + 54 ) WHEN + 46 * - 7 THEN + + 65 + - 37 + + AVG ( DISTINCT - 41 ) WHEN + 36 - 98 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6965
SELECT DISTINCT COUNT( * ) / - CASE - 54 WHEN - CAST( NULL AS SIGNED ) THEN + 44 WHEN - + 37 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT COUNT ( * ) / - CASE - 54 WHEN - CAST ( NULL AS INTEGER ) THEN + 44 WHEN - + 37 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6966
SELECT - 55 DIV + - 75
----
0

skipif mysql # not compatible
query I rowsort label-6966
SELECT - 55 / + - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT ALL 80 * MIN( + 35 )
----
2800

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL 80 * MIN ( + 35 )
----
2800

query I rowsort
SELECT + ( + 82 ) + + + 75
----
157

query I rowsort
SELECT DISTINCT + 26 * + + 91 + 31 AS col1
----
2397

query I rowsort
SELECT + 74 * 44 + - + 7 AS col0
----
3249

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT + COUNT( DISTINCT - 6 ) * - 55 * - 90 col0
----
4950

skipif mysql # not compatible
query I rowsort label-6971
SELECT + COUNT ( DISTINCT - 6 ) * - 55 * - 90 col0
----
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT ALL 78 * + ( 6 ) * - - 15 * + - COUNT( * ) + + 90 + - + 69 + - 90 + + 75
----
-7014

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL 78 * + ( 6 ) * - - 15 * + - COUNT ( * ) + + 90 + - + 69 + - 90 + + 75
----
-7014

query I rowsort
SELECT - ( + + ( - + 28 ) )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6974
SELECT DISTINCT - 65 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT - 65 * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT ALL 99 * + COUNT( * ) * + - 16 + + + 61 * - 92 AS col2
----
-7196

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL 99 * + COUNT ( * ) * + - 16 + + + 61 * - 92 AS col2
----
-7196

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT DISTINCT - 93 * 23 * - - NULLIF ( - 32, - 70 / 16 ) * + - 10 + COUNT( * ) * + - 96 * - ( 0 ) + - - 45 + 28 + + + 66 AS col2
----
-684341

skipif mysql # not compatible
query I rowsort label-6976
SELECT DISTINCT - 93 * 23 * - - NULLIF ( - 32, - 70 / 16 ) * + - 10 + COUNT ( * ) * + - 96 * - ( 0 ) + - - 45 + 28 + + + 66 AS col2
----
-684341

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6977
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS DECIMAL ) * - 90 + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6977
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS REAL ) * - 90 + 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6978
SELECT ALL 86 * - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL 86 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT ALL - COUNT( * ) * - 65 + - 41 * + 86 * + + COUNT( * ) + + + 51
----
-3410

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL - COUNT ( * ) * - 65 + - 41 * + 86 * + + COUNT ( * ) + + + 51
----
-3410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6980
SELECT + 80 - + COUNT( DISTINCT CAST( + 16 AS SIGNED ) )
----
79

skipif mysql # not compatible
query I rowsort label-6980
SELECT + 80 - + COUNT ( DISTINCT CAST ( + 16 AS INTEGER ) )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6981
SELECT CASE - 49 WHEN - COUNT( * ) THEN 18 END * + - CAST( MAX( DISTINCT + + 38 ) AS SIGNED ) + - 60 + + 86 + + ( - + ( - COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6981
SELECT CASE - 49 WHEN - COUNT ( * ) THEN 18 END * + - CAST ( MAX ( DISTINCT + + 38 ) AS INTEGER ) + - 60 + + 86 + + ( - + ( - COUNT ( * ) ) ) AS col2
----
NULL

query I rowsort
SELECT - 63 * + 49 AS col1
----
-3087

query I rowsort
SELECT ALL - 49 * - - 44
----
-2156

query I rowsort
SELECT + - 28 * 56 + + + ( - - 45 )
----
-1523

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6985
SELECT + NULLIF ( - 49, + CAST( NULL AS SIGNED ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-6985
SELECT + NULLIF ( - 49, + CAST ( NULL AS INTEGER ) ) AS col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6986
SELECT + 20 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6986
SELECT + 20 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT ALL + SUM( - ( + - 65 ) ) col1
----
65

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL + SUM ( - ( + - 65 ) ) col1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6988
SELECT ALL + CAST( - ( 27 ) AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL + CAST ( - ( 27 ) AS INTEGER )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT ALL + 65 * ( + 79 ) - + + SUM( ALL + 20 ) col0
----
5115

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL + 65 * ( + 79 ) - + + SUM ( ALL + 20 ) col0
----
5115

query I rowsort
SELECT 17 * 77 * + 79 + - - 99 + - - 69 + + + 64 * - 20 * + 61 AS col0
----
25499

query I rowsort
SELECT + 46 * - 61 AS col2
----
-2806

query I rowsort
SELECT - 22 + - + 14
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6993
SELECT - COUNT( * ) DIV 5 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-6993
SELECT - COUNT ( * ) / 5 / + 25
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6994
SELECT ALL + COUNT( * ) DIV + + 32
----
0

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL + COUNT ( * ) / + + 32
----
0

query I rowsort
SELECT - 39 * + 67 AS col0
----
-2613

query I rowsort
SELECT DISTINCT CASE - 45 WHEN 3 THEN - + 85 * - 20 / 18 ELSE 45 END AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6997
SELECT ALL - 36 * 86 DIV - 15
----
206

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL - 36 * 86 / - 15
----
206

onlyif mysql # DIV for integer division: 
query I rowsort label-6998
SELECT - 68 + - 89 DIV 4 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-6998
SELECT - 68 + - 89 / 4 AS col2
----
-90

query II rowsort
SELECT 41, 91 + - - 51 + + ( + 14 ) * + 48 + + 8 + - + 31 - - 76 - - 20 AS col0
----
41
887

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT - CASE - 57 WHEN - 13 + - - COUNT( * ) / 52 * - + 42 THEN - + 31 WHEN + - 59 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7000
SELECT - CASE - 57 WHEN - 13 + - - COUNT ( * ) / 52 * - + 42 THEN - + 31 WHEN + - 59 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7001
SELECT DISTINCT CAST( + - 20 AS SIGNED ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-7001
SELECT DISTINCT CAST ( + - 20 AS INTEGER ) AS col1
----
-20

query I rowsort
SELECT ALL - 10 + + - 6 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT - 49 + MAX( ALL + - 21 ) * CASE + COUNT( * ) WHEN + 58 + COALESCE ( + 44, - AVG ( DISTINCT - 42 ) / - + COUNT( * ), 15 ) + COUNT( * ) THEN - - 31 * 42 * + 13 + - - 88 + - - 16 ELSE + - 59 END
----
1190

skipif mysql # not compatible
query I rowsort label-7003
SELECT - 49 + MAX ( ALL + - 21 ) * CASE + COUNT ( * ) WHEN + 58 + COALESCE ( + 44, - AVG ( DISTINCT - 42 ) / - + COUNT ( * ), 15 ) + COUNT ( * ) THEN - - 31 * 42 * + 13 + - - 88 + - - 16 ELSE + - 59 END
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT - + MIN( + + 99 ) + - 76 AS col0
----
-175

skipif mysql # not compatible
query I rowsort label-7004
SELECT - + MIN ( + + 99 ) + - 76 AS col0
----
-175

query I rowsort
SELECT - ( 36 ) col2
----
-36

query I rowsort
SELECT - - 16 + + 42 * - ( - + COALESCE ( + - 59, 46, - - 67 ) ) AS col2
----
-2462

query I rowsort
SELECT ALL 14 + + 91 + - 20 AS col0
----
85

query I rowsort
SELECT - 84 + 74
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-7009
SELECT DISTINCT 63 col0, COUNT( * )
----
63
1

skipif mysql # not compatible
query II rowsort label-7009
SELECT DISTINCT 63 col0, COUNT ( * )
----
63
1

query I rowsort
SELECT DISTINCT 23 * - - 0 * 54 * + - 73 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7011
SELECT ALL + COUNT( ALL - + 37 ) / + 53 * + + COUNT( - + 63 ) + - CASE + COUNT( * ) WHEN + 32 * - SUM( ALL + ( + 87 ) ) / - + 74 THEN - 98 + + + 51 + + 55 END * ( + 24 ) + - + 43 + 87 + NULLIF ( - 62, 25 ) + - CAST( NULL AS DECIMAL ) / COUNT( * ) * + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL + COUNT ( ALL - + 37 ) / + 53 * + + COUNT ( - + 63 ) + - CASE + COUNT ( * ) WHEN + 32 * - SUM ( ALL + ( + 87 ) ) / - + 74 THEN - 98 + + + 51 + + 55 END * ( + 24 ) + - + 43 + 87 + NULLIF ( - 62, 25 ) + - CAST ( NULL AS REAL ) / COUNT ( * ) * + 52 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7012
SELECT 37 + - - CAST( - - 2 AS SIGNED ) + CASE 43 WHEN - 34 THEN - - 75 / + 96 WHEN 79 THEN + 26 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7012
SELECT 37 + - - CAST ( - - 2 AS INTEGER ) + CASE 43 WHEN - 34 THEN - - 75 / + 96 WHEN 79 THEN + 26 ELSE NULL END
----
NULL

query I rowsort
SELECT 75 * - 5 + 76 + 9 + + + 53 + 46 + + - 2 * + + 47 col0
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT CASE + - SUM( - + ( 51 ) ) WHEN 91 THEN + 41 WHEN 99 * - 47 THEN NULL WHEN + 50 * + 23 + NULLIF ( + 92, - ( + - 7 ) ) THEN + 63 ELSE NULL END * - 69 + + + 59 + - + 95 / CASE 2 WHEN 11 THEN + 8 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7014
SELECT CASE + - SUM ( - + ( 51 ) ) WHEN 91 THEN + 41 WHEN 99 * - 47 THEN NULL WHEN + 50 * + 23 + NULLIF ( + 92, - ( + - 7 ) ) THEN + 63 ELSE NULL END * - 69 + + + 59 + - + 95 / CASE 2 WHEN 11 THEN + 8 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT + MAX( - 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-7015
SELECT + MAX ( - 72 ) AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7016
SELECT - - COALESCE ( + 69, - SUM( + 9 ) + + + COUNT( + CAST( NULL AS SIGNED ) ), - + 57 * COUNT( * ) * - + 33 * - 88 ) * - COUNT( * ) - - 73 - + 49 col2, 9
----
-45
9

skipif mysql # not compatible
query II rowsort label-7016
SELECT - - COALESCE ( + 69, - SUM ( + 9 ) + + + COUNT ( + CAST ( NULL AS INTEGER ) ), - + 57 * COUNT ( * ) * - + 33 * - 88 ) * - COUNT ( * ) - - 73 - + 49 col2, 9
----
-45
9

query I rowsort
SELECT ALL - 20 * - 75 * 31 AS col1
----
46500

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT ALL - 4 + + COUNT( * ) * + - 97 + COUNT( - - 99 ) + + 36 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL - 4 + + COUNT ( * ) * + - 97 + COUNT ( - - 99 ) + + 36 AS col0
----
-64

query I rowsort
SELECT DISTINCT 70 * - - 51
----
3570

onlyif mysql # aggregate syntax: 
query II rowsort label-7020
SELECT ALL + COUNT( * ) - - 67 * + ( + 65 ) + 26 * + + 37 AS col1, 7
----
5318
7

skipif mysql # not compatible
query II rowsort label-7020
SELECT ALL + COUNT ( * ) - - 67 * + ( + 65 ) + 26 * + + 37 AS col1, 7
----
5318
7

query I rowsort
SELECT DISTINCT + 1 - + - 95
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7022
SELECT CAST( NULL AS SIGNED ) + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7022
SELECT CAST ( NULL AS INTEGER ) + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT COUNT( * ) * + 80 * - 42
----
-3360

skipif mysql # not compatible
query I rowsort label-7023
SELECT COUNT ( * ) * + 80 * - 42
----
-3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7024
SELECT ALL NULLIF ( - + 53, + 67 ) * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL NULLIF ( - + 53, + 67 ) * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT 62 + ( + COUNT( * ) ) + CASE + 37 WHEN 70 + - + 72 THEN - 8 ELSE + 33 END - 72 * - + NULLIF ( + 23, - 61 ) AS col0
----
1752

skipif mysql # not compatible
query I rowsort label-7025
SELECT 62 + ( + COUNT ( * ) ) + CASE + 37 WHEN 70 + - + 72 THEN - 8 ELSE + 33 END - 72 * - + NULLIF ( + 23, - 61 ) AS col0
----
1752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7026
SELECT DISTINCT + SUM( DISTINCT + + 24 ) / - - 56 * COUNT( * ) + + COUNT( * ) * - 50 * + AVG ( ALL - 89 ) + - + 82 + - 88 * CAST( NULL AS SIGNED ) / + - 28 AS col2, ( + COUNT( * ) )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7026
SELECT DISTINCT + SUM ( DISTINCT + + 24 ) / - - 56 * COUNT ( * ) + + COUNT ( * ) * - 50 * + AVG ( ALL - 89 ) + - + 82 + - 88 * CAST ( NULL AS INTEGER ) / + - 28 AS col2, ( + COUNT ( * ) )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT 71 + + SUM( ALL + NULLIF ( 61, 56 ) ) - 23 * 14
----
-190

skipif mysql # not compatible
query I rowsort label-7027
SELECT 71 + + SUM ( ALL + NULLIF ( 61, 56 ) ) - 23 * 14
----
-190

query I rowsort
SELECT ALL + 78 + 64 * + + 29
----
1934

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7029
SELECT CAST( 38 AS SIGNED ) * + 24
----
912

skipif mysql # not compatible
query I rowsort label-7029
SELECT CAST ( 38 AS INTEGER ) * + 24
----
912

query I rowsort
SELECT 55 - + 27 AS col1
----
28

query I rowsort
SELECT 61 * 50
----
3050

query I rowsort
SELECT 96 + + 47 col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT ALL + - COALESCE ( + + 99, - 58 * ( + COUNT( * ) ) ) * + 3
----
-297

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL + - COALESCE ( + + 99, - 58 * ( + COUNT ( * ) ) ) * + 3
----
-297

query I rowsort
SELECT ALL 29 + - 73
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT ALL - 76 + + + COUNT( * ) * - 41 + - 6 + + - 42
----
-165

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL - 76 + + + COUNT ( * ) * - 41 + - 6 + + - 42
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7036
SELECT ALL - 59 + 41 AS col2, 35 * CAST( NULL AS SIGNED ) * - 31 / + COUNT( + 42 )
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-7036
SELECT ALL - 59 + 41 AS col2, 35 * CAST ( NULL AS INTEGER ) * - 31 / + COUNT ( + 42 )
----
-18
NULL

query I rowsort
SELECT 59 * + + 9
----
531

query I rowsort
SELECT DISTINCT + - 94 + - - 10
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT ALL - MAX( ALL + + 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL - MAX ( ALL + + 96 ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT DISTINCT 30 + + - COALESCE ( + COUNT( ALL + 5 ), - 59 * 69 * 46 + + 43 - + ( - + 5 ) + + - COUNT( - 66 ) * 48 )
----
29

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT 30 + + - COALESCE ( + COUNT ( ALL + 5 ), - 59 * 69 * 46 + + 43 - + ( - + 5 ) + + - COUNT ( - 66 ) * 48 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL + NULLIF ( - + 93, + COUNT( * ) * + + 34 ) * + 54 * + - MIN( DISTINCT - - 14 ) * - + COUNT( * ) AS col0
----
-70308

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL + NULLIF ( - + 93, + COUNT ( * ) * + + 34 ) * + 54 * + - MIN ( DISTINCT - - 14 ) * - + COUNT ( * ) AS col0
----
-70308

query I rowsort
SELECT - CASE + ( - 21 ) WHEN + - 88 * - + 51 THEN + 31 * 2 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT + ( + COALESCE ( + NULLIF ( 35, 35 / + ( 31 ) * + SUM( DISTINCT + 5 ) + - - 44 + + CASE + 62 WHEN - 88 THEN NULL WHEN 58 THEN - 53 * + - 99 ELSE NULL END ), 47, 82 ) )
----
35

skipif mysql # not compatible
query I rowsort label-7043
SELECT + ( + COALESCE ( + NULLIF ( 35, 35 / + ( 31 ) * + SUM ( DISTINCT + 5 ) + - - 44 + + CASE + 62 WHEN - 88 THEN NULL WHEN 58 THEN - 53 * + - 99 ELSE NULL END ), 47, 82 ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT + 36 * + - MIN( DISTINCT + 79 )
----
-2844

skipif mysql # not compatible
query I rowsort label-7044
SELECT + 36 * + - MIN ( DISTINCT + 79 )
----
-2844

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT ALL + 33 - - CAST( - 21 AS SIGNED ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL + 33 - - CAST ( - 21 AS INTEGER ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT NULLIF ( + - 64, - 69 - + + ( - MIN( ALL + + 69 ) ) ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-7046
SELECT NULLIF ( + - 64, - 69 - + + ( - MIN ( ALL + + 69 ) ) ) AS col1
----
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-7047
SELECT DISTINCT + 0 DIV + - 7, - 8 AS col0
----
0
-8

skipif mysql # not compatible
query II rowsort label-7047
SELECT DISTINCT + 0 / + - 7, - 8 AS col0
----
0
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7048
SELECT - 2 * + SUM( DISTINCT 94 ) * 3 * + - ( - + ( - CAST( + COUNT( * ) AS SIGNED ) ) ) * 16 + + + 29 AS col1
----
9053

skipif mysql # not compatible
query I rowsort label-7048
SELECT - 2 * + SUM ( DISTINCT 94 ) * 3 * + - ( - + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) ) * 16 + + + 29 AS col1
----
9053

query I rowsort
SELECT ALL - - ( - 59 ) AS col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7050
SELECT DISTINCT CASE 53 WHEN + - 50 THEN + 14 + - + 43 WHEN - 61 - CAST( 88 AS SIGNED ) THEN NULL END * 57 * - + MAX( 95 ) * + + ( 9 ) - + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT CASE 53 WHEN + - 50 THEN + 14 + - + 43 WHEN - 61 - CAST ( 88 AS INTEGER ) THEN NULL END * 57 * - + MAX ( 95 ) * + + ( 9 ) - + 64 AS col0
----
NULL

query II rowsort
SELECT + - ( 0 ) AS col2, ( - 77 )
----
0
-77

query I rowsort
SELECT ( + 45 ) * 61
----
2745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7053
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + AVG ( - - 68 ) + + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + AVG ( - - 68 ) + + - 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT ALL COUNT( * ) * + + 25
----
25

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL COUNT ( * ) * + + 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT 17 * + - 36 + + 46 + - COUNT( * ) + - + 24 + - ( - 38 ) AS col0
----
-553

skipif mysql # not compatible
query I rowsort label-7055
SELECT 17 * + - 36 + + 46 + - COUNT ( * ) + - + 24 + - ( - 38 ) AS col0
----
-553

onlyif mysql # DIV for integer division: 
query II rowsort label-7056
SELECT 36 DIV 28 * 64 AS col1, ( - 34 ) AS col2
----
64
-34

skipif mysql # not compatible
query II rowsort label-7056
SELECT 36 / 28 * 64 AS col1, ( - 34 ) AS col2
----
64
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7057
SELECT DISTINCT - 13, + CAST( NULL AS SIGNED ) AS col0
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-7057
SELECT DISTINCT - 13, + CAST ( NULL AS INTEGER ) AS col0
----
-13
NULL

query I rowsort
SELECT 55 - 95 + - + 70 + + 42 * - + 94
----
-4058

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT + 49 * - COUNT( * ) + + COUNT( * ) + - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-7059
SELECT + 49 * - COUNT ( * ) + + COUNT ( * ) + - COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT ( - COUNT( * ) ) * - 96
----
96

skipif mysql # not compatible
query I rowsort label-7060
SELECT ( - COUNT ( * ) ) * - 96
----
96

query I rowsort
SELECT ALL 68 + + - 67 AS col2
----
1

query I rowsort
SELECT 45 + + + 2
----
47

query I rowsort
SELECT ALL 44 + + 3
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7064
SELECT ALL 3 + + + 47 DIV - - 86 * 78 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL 3 + + + 47 / - - 86 * 78 AS col0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7065
SELECT 4 AS col0, + COALESCE ( 47, 72 DIV + + 9 + + - 44 ) + + 42
----
4
89

skipif mysql # not compatible
query II rowsort label-7065
SELECT 4 AS col0, + COALESCE ( 47, 72 / + + 9 + + - 44 ) + + 42
----
4
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7066
SELECT ( + 77 ) DIV 27
----
2

skipif mysql # not compatible
query I rowsort label-7066
SELECT ( + 77 ) / 27
----
2

query I rowsort
SELECT 97 * - 37 * - 36
----
129204

onlyif mysql # aggregate syntax: 
query II rowsort label-7068
SELECT DISTINCT 38 + - + 11 + + 19 * - 83 / 84 / - 15 + 27 * - + 63 * - - CASE - + COALESCE ( 72, + + 4 * - - 92, - 4 - - 5 - + 56 / 40 * + 70 ) WHEN - 93 THEN 91 + - + 61 * + 3 END * COUNT( * ) AS col0, + 71 * + 52 * ( COUNT( * ) ) + - 99
----
NULL
3593

skipif mysql # not compatible
query II rowsort label-7068
SELECT DISTINCT 38 + - + 11 + + 19 * - 83 / 84 / - 15 + 27 * - + 63 * - - CASE - + COALESCE ( 72, + + 4 * - - 92, - 4 - - 5 - + 56 / 40 * + 70 ) WHEN - 93 THEN 91 + - + 61 * + 3 END * COUNT ( * ) AS col0, + 71 * + 52 * ( COUNT ( * ) ) + - 99
----
NULL
3593

query I rowsort
SELECT DISTINCT + 65 * - 58 AS col0
----
-3770

query I rowsort
SELECT ALL 67 + - + 4 AS col1
----
63

query II rowsort
SELECT + 80 AS col2, - 78
----
80
-78

query I rowsort
SELECT DISTINCT 31 + + 19 AS col2
----
50

query I rowsort
SELECT ALL - 30 + - 39 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT + SUM( ALL 17 )
----
17

skipif mysql # not compatible
query I rowsort label-7074
SELECT + SUM ( ALL 17 )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7075
SELECT ALL MAX( ALL - + ( - + 39 ) ) AS col0, - 83 + + - COUNT( * ) + + - 54
----
39
-138

skipif mysql # not compatible
query II rowsort label-7075
SELECT ALL MAX ( ALL - + ( - + 39 ) ) AS col0, - 83 + + - COUNT ( * ) + + - 54
----
39
-138

query I rowsort
SELECT + 32 + - + 65 + 94
----
61

query I rowsort
SELECT - - 84 * - 59 col0
----
-4956

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL - + ( + 50 ) - + 86 * - COALESCE ( - 61, - 60, - 66 + + 54 - 73, + + COUNT( * ) ) * + ( - 69 ) AS col1
----
361924

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL - + ( + 50 ) - + 86 * - COALESCE ( - 61, - 60, - 66 + + 54 - 73, + + COUNT ( * ) ) * + ( - 69 ) AS col1
----
361924

query I rowsort
SELECT DISTINCT - - 54 * + ( 45 )
----
2430

query I rowsort
SELECT - - ( - 31 ) + - 44
----
-75

query I rowsort
SELECT DISTINCT + 70 * + - ( - 93 ) + 71
----
6581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7082
SELECT ALL + + NULLIF ( + 63, CAST( - - 70 AS SIGNED ) )
----
63

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL + + NULLIF ( + 63, CAST ( - - 70 AS INTEGER ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT + SUM( DISTINCT - 76 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-7083
SELECT + SUM ( DISTINCT - 76 ) AS col1
----
-76

query I rowsort
SELECT ALL + 22 * 33
----
726

query I rowsort
SELECT COALESCE ( - 6, + 87 * + 40 * 25 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT NULLIF ( + SUM( ALL + + 44 ), + 10 * - - 76 + + 65 / - 35 + + 35 / ( 56 ) ) col1
----
44

skipif mysql # not compatible
query I rowsort label-7086
SELECT NULLIF ( + SUM ( ALL + + 44 ), + 10 * - - 76 + + 65 / - 35 + + 35 / ( 56 ) ) col1
----
44

query I rowsort
SELECT ALL + NULLIF ( - - 4, - 63 ) AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7088
SELECT NULLIF ( 93, + CAST( ( 12 ) AS SIGNED ) )
----
93

skipif mysql # not compatible
query I rowsort label-7088
SELECT NULLIF ( 93, + CAST ( ( 12 ) AS INTEGER ) )
----
93

query I rowsort
SELECT - 75 * - 8
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT DISTINCT + MIN( ALL 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT + MIN ( ALL 49 ) AS col2
----
49

query I rowsort
SELECT + 45 + + 51 AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7092
SELECT + 14, - 71 + - CAST( - 42 AS SIGNED ) + + 83 + 23 AS col2
----
14
77

skipif mysql # not compatible
query II rowsort label-7092
SELECT + 14, - 71 + - CAST ( - 42 AS INTEGER ) + + 83 + 23 AS col2
----
14
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT DISTINCT NULLIF ( + + 85, 88 / + 30 * - 94 - + 97 ) * COUNT( * ) + 66 + - 23 + + - 65 * COUNT( - + NULLIF ( - + 35, 4 ) ) * - + ( + + 48 )
----
3248

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT NULLIF ( + + 85, 88 / + 30 * - 94 - + 97 ) * COUNT ( * ) + 66 + - 23 + + - 65 * COUNT ( - + NULLIF ( - + 35, 4 ) ) * - + ( + + 48 )
----
3248

onlyif mysql # aggregate syntax: 
query II rowsort label-7094
SELECT ALL 95 * + 6 * + 51 + + - CASE 83 WHEN - 21 THEN - 44 WHEN + COUNT( * ) THEN NULL END * - 64 * 37 + - 18, 91 col2
----
NULL
91

skipif mysql # not compatible
query II rowsort label-7094
SELECT ALL 95 * + 6 * + 51 + + - CASE 83 WHEN - 21 THEN - 44 WHEN + COUNT ( * ) THEN NULL END * - 64 * 37 + - 18, 91 col2
----
NULL
91

query II rowsort
SELECT + 68, - 31 - - 54 AS col2
----
68
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT SUM( ALL - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-7096
SELECT SUM ( ALL - 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT ALL 1 * + + ( - 8 ) * + COUNT( * ) + + 11 + - 47
----
-44

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL 1 * + + ( - 8 ) * + COUNT ( * ) + + 11 + - 47
----
-44

query I rowsort
SELECT - 9 * - 60
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT - CASE AVG ( 74 ) WHEN - - 76 * - 53 + + COUNT( * ) + 79 THEN 5 - 89 ELSE + - COUNT( * ) * + 34 + + 11 + + - 78 * 91 END * 27 - + 46
----
192221

skipif mysql # not compatible
query I rowsort label-7099
SELECT - CASE AVG ( 74 ) WHEN - - 76 * - 53 + + COUNT ( * ) + 79 THEN 5 - 89 ELSE + - COUNT ( * ) * + 34 + + 11 + + - 78 * 91 END * 27 - + 46
----
192221

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7100
SELECT ALL 79, NULLIF ( - 35, - 80 DIV - + 45 ) DIV + MIN( DISTINCT 85 ) * - 28 + 96 - - 53 AS col0
----
79
149

skipif mysql # not compatible
query II rowsort label-7100
SELECT ALL 79, NULLIF ( - 35, - 80 / - + 45 ) / + MIN ( DISTINCT 85 ) * - 28 + 96 - - 53 AS col0
----
79
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT COUNT( ALL - 33 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7101
SELECT COUNT ( ALL - 33 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 6 + - 59
----
-53

query II rowsort
SELECT ALL 37 AS col2, 32 AS col1
----
37
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7104
SELECT + SUM( + + 95 ) + + + COUNT( * ) + - - 35 - - COUNT( + 65 ) * 97, - CAST( 92 AS SIGNED ) DIV + 25 - - 61 - - - 0 + + 11 * - + 71 AS col2
----
228
-723

skipif mysql # not compatible
query II rowsort label-7104
SELECT + SUM ( + + 95 ) + + + COUNT ( * ) + - - 35 - - COUNT ( + 65 ) * 97, - CAST ( 92 AS INTEGER ) / + 25 - - 61 - - - 0 + + 11 * - + 71 AS col2
----
228
-723

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT DISTINCT 2 + - MAX( DISTINCT - + ( - + 84 ) ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT 2 + - MAX ( DISTINCT - + ( - + 84 ) ) AS col2
----
-82

query I rowsort
SELECT - COALESCE ( - 15, + 78 * - - 81 * - + 13 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT + SUM( + 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7107
SELECT + SUM ( + 1 ) AS col2
----
1

query I rowsort
SELECT + 21 * + 59 + - + 77
----
1162

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT + 91 * + COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-7109
SELECT + 91 * + COUNT ( * ) AS col0
----
91

query I rowsort
SELECT + 35 - + + 64
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7111
SELECT ALL 88 * 60 + + + 7 DIV + 47 + - - ( 6 ), SUM( ALL - 23 ) AS col2
----
5286
-23

skipif mysql # not compatible
query II rowsort label-7111
SELECT ALL 88 * 60 + + + 7 / + 47 + - - ( 6 ), SUM ( ALL - 23 ) AS col2
----
5286
-23

query I rowsort
SELECT + - 27 * - - 80
----
-2160

query I rowsort
SELECT ALL + 16 * + + 50 AS col2
----
800

onlyif mysql # DIV for integer division: 
query I rowsort label-7114
SELECT + - 78 DIV + 50
----
-1

skipif mysql # not compatible
query I rowsort label-7114
SELECT + - 78 / + 50
----
-1

query I rowsort
SELECT ALL + 72 * - - 30
----
2160

query I rowsort
SELECT + 33 - + 32 + + 25 + + - 92 * 45
----
-4114

onlyif mysql # aggregate syntax: 
query II rowsort label-7117
SELECT ALL 39, COUNT( * ) AS col1
----
39
1

skipif mysql # not compatible
query II rowsort label-7117
SELECT ALL 39, COUNT ( * ) AS col1
----
39
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7118
SELECT 36 AS col2, COUNT( * ) * - - 21 + 85 AS col0
----
36
106

skipif mysql # not compatible
query II rowsort label-7118
SELECT 36 AS col2, COUNT ( * ) * - - 21 + 85 AS col0
----
36
106

onlyif mysql # aggregate syntax: 
query II rowsort label-7119
SELECT - + COUNT( * ), 27 + - 74 AS col0
----
-1
-47

skipif mysql # not compatible
query II rowsort label-7119
SELECT - + COUNT ( * ), 27 + - 74 AS col0
----
-1
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-7120
SELECT - 20 DIV - 4 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7120
SELECT - 20 / - 4 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT + 60 * + 35 - 76 + COUNT( * ) * + 8 AS col1
----
2032

skipif mysql # not compatible
query I rowsort label-7121
SELECT + 60 * + 35 - 76 + COUNT ( * ) * + 8 AS col1
----
2032

onlyif mysql # aggregate syntax: 
query II rowsort label-7122
SELECT ALL - 63 * COUNT( * ) AS col1, 5 AS col2
----
-63
5

skipif mysql # not compatible
query II rowsort label-7122
SELECT ALL - 63 * COUNT ( * ) AS col1, 5 AS col2
----
-63
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7123
SELECT - 75 DIV - ( 59 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7123
SELECT - 75 / - ( 59 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7124
SELECT ALL COUNT( + 41 ) DIV - ( - NULLIF ( + MAX( - - 95 ), 61 ) ) * - 41 + + NULLIF ( 27, - 43 * + + COUNT( * ) * + COUNT( * ) )
----
27

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL COUNT ( + 41 ) / - ( - NULLIF ( + MAX ( - - 95 ), 61 ) ) * - 41 + + NULLIF ( 27, - 43 * + + COUNT ( * ) * + COUNT ( * ) )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7125
SELECT ALL ( + 56 ) DIV + + 95 - - - 29 + + + 86
----
57

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL ( + 56 ) / + + 95 - - - 29 + + + 86
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-7126
SELECT DISTINCT 54 DIV + 52 + + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT 54 / + 52 + + - 58
----
-57

query II rowsort
SELECT ALL - 82 * + 42, - 50 col1
----
-3444
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7128
SELECT DISTINCT COUNT( + + 4 ) / + CAST( NULL AS SIGNED ) + CAST( + 44 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT COUNT ( + + 4 ) / + CAST ( NULL AS INTEGER ) + CAST ( + 44 AS INTEGER )
----
NULL

query II rowsort
SELECT + 33 + 47 + + 54 * + + 39 * + 5 * - 9 * + + 24, + 77 AS col0
----
-2274400
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT + 41 * - MAX( + 92 ) + 73
----
-3699

skipif mysql # not compatible
query I rowsort label-7130
SELECT + 41 * - MAX ( + 92 ) + 73
----
-3699

query I rowsort
SELECT ( + 28 ) col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT DISTINCT + MAX( - - 96 )
----
96

skipif mysql # not compatible
query I rowsort label-7132
SELECT DISTINCT + MAX ( - - 96 )
----
96

query II rowsort
SELECT DISTINCT + ( - - 44 ) AS col0, - 52 AS col2
----
44
-52

query I rowsort
SELECT ALL ( + 4 ) * - 56 + 0 * + 92 + - 7
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT ( + - MIN( - 72 ) )
----
72

skipif mysql # not compatible
query I rowsort label-7135
SELECT ( + - MIN ( - 72 ) )
----
72

query I rowsort
SELECT ALL - COALESCE ( - - CASE - 67 WHEN - 85 * - - 52 THEN - COALESCE ( + - 16, 24 + - 81 - 47, 24 + - + 16 - - 32 ) END, - 45 + + 96 * - + 40 )
----
3885

query II rowsort
SELECT ALL 50 - 14, + 3 AS col2
----
36
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7138
SELECT DISTINCT - 47 DIV - 64, + 27 - - 91 * 19 * - + 40 * ( - 73 ) AS col1
----
0
5048707

skipif mysql # not compatible
query II rowsort label-7138
SELECT DISTINCT - 47 / - 64, + 27 - - 91 * 19 * - + 40 * ( - 73 ) AS col1
----
0
5048707

query I rowsort
SELECT ALL - - 37 * + 9
----
333

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT - 75 * + MIN( ALL 13 ) * - 51 AS col0
----
49725

skipif mysql # not compatible
query I rowsort label-7140
SELECT - 75 * + MIN ( ALL 13 ) * - 51 AS col0
----
49725

query I rowsort
SELECT 6 + + 13 AS col2
----
19

query I rowsort
SELECT + 89 * 42 * + 96 AS col1
----
358848

query I rowsort
SELECT ALL - NULLIF ( + ( - 83 ), 70 ) * + 34 AS col0
----
2822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7144
SELECT ALL CAST( 17 AS SIGNED ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL CAST ( 17 AS INTEGER ) AS col0
----
17

query I rowsort
SELECT ALL + + 45 * + 27 + + - 64 AS col1
----
1151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7146
SELECT + CAST( NULL AS SIGNED ) * + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7146
SELECT + CAST ( NULL AS INTEGER ) * + + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT ALL - COUNT( ALL 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL - COUNT ( ALL 97 )
----
-1

query I rowsort
SELECT + 55 * - - 61 AS col2
----
3355

query I rowsort
SELECT ALL - + 33 * - + 83 + - + 5 AS col0
----
2734

query I rowsort
SELECT 75 + - + 80 AS col1
----
-5

query I rowsort
SELECT - 21 * + ( CASE + 89 WHEN + + 4 THEN 94 WHEN 94 THEN - 77 + 26 END ) AS col0
----
NULL

query I rowsort
SELECT + 31 + + ( 31 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT MIN( + 41 ) + 97 * + 30 - 14 + + 91 - 83 + + + 19 col1
----
2964

skipif mysql # not compatible
query I rowsort label-7153
SELECT MIN ( + 41 ) + 97 * + 30 - 14 + + 91 - 83 + + + 19 col1
----
2964

query I rowsort
SELECT ALL - 49 + - 98 + - 8
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT ALL 87 + + - COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL 87 + + - COUNT ( * ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7156
SELECT ALL COUNT( - 3 ) + - ( - COALESCE ( - - 79, + 37 ) ) AS col0, + 32
----
80
32

skipif mysql # not compatible
query II rowsort label-7156
SELECT ALL COUNT ( - 3 ) + - ( - COALESCE ( - - 79, + 37 ) ) AS col0, + 32
----
80
32

query II rowsort
SELECT + 98, + 56 AS col0
----
98
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7158
SELECT 96, MIN( DISTINCT 76 ) AS col1
----
96
76

skipif mysql # not compatible
query II rowsort label-7158
SELECT 96, MIN ( DISTINCT 76 ) AS col1
----
96
76

query I rowsort
SELECT + 37 * ( - 36 ) + 3 AS col0
----
-1329

query I rowsort
SELECT ALL 28 + + - 49
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-7161
SELECT DISTINCT 86 + - + 85 - + 51 AS col0, CASE 10 WHEN + 39 THEN - 7 - + - 16 WHEN MAX( + 42 ) THEN NULL END + + MIN( ALL - 34 ) AS col2
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-7161
SELECT DISTINCT 86 + - + 85 - + 51 AS col0, CASE 10 WHEN + 39 THEN - 7 - + - 16 WHEN MAX ( + 42 ) THEN NULL END + + MIN ( ALL - 34 ) AS col2
----
-50
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7162
SELECT ALL - 16, - COUNT( * ) * + 16 AS col2
----
-16
-16

skipif mysql # not compatible
query II rowsort label-7162
SELECT ALL - 16, - COUNT ( * ) * + 16 AS col2
----
-16
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7163
SELECT 23 DIV - COUNT( * ) + COUNT( * ) AS col1, - COALESCE ( 52, - + 64 * 58, - NULLIF ( + COUNT( * ), - 38 ) * + - 48 DIV - 2 + + 79 * + ( + CAST( + + SUM( - 25 ) AS SIGNED ) ) ) * + 51
----
-22
-2652

skipif mysql # not compatible
query II rowsort label-7163
SELECT 23 / - COUNT ( * ) + COUNT ( * ) AS col1, - COALESCE ( 52, - + 64 * 58, - NULLIF ( + COUNT ( * ), - 38 ) * + - 48 / - 2 + + 79 * + ( + CAST ( + + SUM ( - 25 ) AS INTEGER ) ) ) * + 51
----
-22
-2652

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7164
SELECT ALL - 26, 55 * - - CAST( 40 AS SIGNED ) AS col0
----
-26
2200

skipif mysql # not compatible
query II rowsort label-7164
SELECT ALL - 26, 55 * - - CAST ( 40 AS INTEGER ) AS col0
----
-26
2200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7165
SELECT ALL + 33 / + - 41 / 86 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL + 33 / + - 41 / 86 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7166
SELECT DISTINCT - 78 + - - ( COALESCE ( + 63, COUNT( ALL + 19 ) ) ) AS col1, + 25 + 50
----
-15
75

skipif mysql # not compatible
query II rowsort label-7166
SELECT DISTINCT - 78 + - - ( COALESCE ( + 63, COUNT ( ALL + 19 ) ) ) AS col1, + 25 + 50
----
-15
75

onlyif mysql # DIV for integer division: 
query II rowsort label-7167
SELECT DISTINCT - 3 AS col2, + ( 23 ) DIV 22
----
-3
1

skipif mysql # not compatible
query II rowsort label-7167
SELECT DISTINCT - 3 AS col2, + ( 23 ) / 22
----
-3
1

query I rowsort
SELECT DISTINCT + 15 * 58
----
870

query I rowsort
SELECT 80 * - + 27
----
-2160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7170
SELECT ALL - 16 AS col1, CASE 91 WHEN ( - 28 ) * + - 61 + - 56 + - + 15 * - + CAST( + 21 AS SIGNED ) + + COUNT( * ) THEN + 35 - - ( - 27 ) END / - 42 * - + 32
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-7170
SELECT ALL - 16 AS col1, CASE 91 WHEN ( - 28 ) * + - 61 + - 56 + - + 15 * - + CAST ( + 21 AS INTEGER ) + + COUNT ( * ) THEN + 35 - - ( - 27 ) END / - 42 * - + 32
----
-16
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7171
SELECT DISTINCT - 42 - + 69 + - 49 AS col0, - 80 DIV - ( + 89 ) + - + 70
----
-160
-70

skipif mysql # not compatible
query II rowsort label-7171
SELECT DISTINCT - 42 - + 69 + - 49 AS col0, - 80 / - ( + 89 ) + - + 70
----
-160
-70

onlyif mysql # DIV for integer division: 
query II rowsort label-7172
SELECT ALL - ( ( - + 77 ) ), + 21 DIV - 37 + 37 + + 12 * + - 40 AS col1
----
77
-443

skipif mysql # not compatible
query II rowsort label-7172
SELECT ALL - ( ( - + 77 ) ), + 21 / - 37 + 37 + + 12 * + - 40 AS col1
----
77
-443

query I rowsort
SELECT ALL - 61 - 75
----
-136

query I rowsort
SELECT ALL - NULLIF ( + 43, - 38 * + + ( - 26 ) ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT DISTINCT - 99 * + ( + - CASE MAX( 59 ) WHEN - + 11 * - 18 - + COUNT( * ) + + 16 * + COUNT( * ) THEN - + 66 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7175
SELECT DISTINCT - 99 * + ( + - CASE MAX ( 59 ) WHEN - + 11 * - 18 - + COUNT ( * ) + + 16 * + COUNT ( * ) THEN - + 66 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT + + 11 * + 97 + - - COUNT( * ) * + SUM( - 5 ) AS col2
----
1062

skipif mysql # not compatible
query I rowsort label-7176
SELECT + + 11 * + 97 + - - COUNT ( * ) * + SUM ( - 5 ) AS col2
----
1062

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT + 73 * + 97 * + - COUNT( * ) col0
----
-7081

skipif mysql # not compatible
query I rowsort label-7177
SELECT + 73 * + 97 * + - COUNT ( * ) col0
----
-7081

onlyif mysql # DIV for integer division: 
query I rowsort label-7178
SELECT + 48 + - + 74 + - 80 DIV - 1
----
54

skipif mysql # not compatible
query I rowsort label-7178
SELECT + 48 + - + 74 + - 80 / - 1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7179
SELECT DISTINCT + - CAST( - + 12 AS SIGNED ) * - 3, - 83 AS col1
----
-36
-83

skipif mysql # not compatible
query II rowsort label-7179
SELECT DISTINCT + - CAST ( - + 12 AS INTEGER ) * - 3, - 83 AS col1
----
-36
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7180
SELECT + 89 * 93 + - + 50 * 94 + - 29 * - 42 + - 9 + - CASE - CAST( NULL AS SIGNED ) WHEN 99 THEN ( COALESCE ( - SUM( ALL 34 ), - 93 ) ) WHEN - + 15 * + COUNT( * ) THEN NULL END + - - COUNT( * ) + - 65 * - SUM( - - 64 ) - + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7180
SELECT + 89 * 93 + - + 50 * 94 + - 29 * - 42 + - 9 + - CASE - CAST ( NULL AS INTEGER ) WHEN 99 THEN ( COALESCE ( - SUM ( ALL 34 ), - 93 ) ) WHEN - + 15 * + COUNT ( * ) THEN NULL END + - - COUNT ( * ) + - 65 * - SUM ( - - 64 ) - + COUNT ( * ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT ALL + 56 DIV + 43 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL + 56 / + 43 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT + 15 * 59 - - 49 + + + ( - + COUNT( * ) )
----
933

skipif mysql # not compatible
query I rowsort label-7182
SELECT + 15 * 59 - - 49 + + + ( - + COUNT ( * ) )
----
933

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT ALL - 64 + 50 + + COUNT( * ) + + COALESCE ( 32, - 62 * - - 55 + MIN( ALL + - 33 ) * + 31, - + 76 ) * + 30 AS col2
----
947

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL - 64 + 50 + + COUNT ( * ) + + COALESCE ( 32, - 62 * - - 55 + MIN ( ALL + - 33 ) * + 31, - + 76 ) * + 30 AS col2
----
947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7184
SELECT ALL + + ( 50 ) * + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL + + ( 50 ) * + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 21 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT 0 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-7185
SELECT 0 / 71
----
0

query I rowsort
SELECT DISTINCT + 62 * - 36
----
-2232

query I rowsort
SELECT ALL 95 + - - 89 + 26 * 11 + - + 41 AS col0
----
429

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT NULLIF ( - 4, - + ( 58 ) + + 88 - - COUNT( * ) )
----
-4

skipif mysql # not compatible
query I rowsort label-7188
SELECT NULLIF ( - 4, - + ( 58 ) + + 88 - - COUNT ( * ) )
----
-4

query I rowsort
SELECT ALL - 91 + + 6 * + 76 AS col2
----
365

query I rowsort
SELECT 36 - + + 61
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT - COUNT( ALL - 9 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7191
SELECT - COUNT ( ALL - 9 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 3 * 60 * - + 77
----
-13860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7193
SELECT + COALESCE ( + 35, + COUNT( DISTINCT - 26 ) ) DIV 5
----
7

skipif mysql # not compatible
query I rowsort label-7193
SELECT + COALESCE ( + 35, + COUNT ( DISTINCT - 26 ) ) / 5
----
7

query I rowsort
SELECT + 50 * + 16
----
800

query I rowsort
SELECT + 20 + + - 92 + + - ( - + 30 ) - + 77 * - + 72 AS col2
----
5502

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT MAX( 87 )
----
87

skipif mysql # not compatible
query I rowsort label-7196
SELECT MAX ( 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT ALL + COUNT( + 67 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL + COUNT ( + 67 ) AS col2
----
1

query I rowsort
SELECT - 2 - ( NULLIF ( 57, + 30 ) ) + + + 24
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT + CASE - 63 WHEN COUNT( * ) THEN + 66 WHEN + COUNT( * ) / 92 * + + 63 - + + 96 * 76 - - 46 THEN NULL END * 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7199
SELECT + CASE - 63 WHEN COUNT ( * ) THEN + 66 WHEN + COUNT ( * ) / 92 * + + 63 - + + 96 * 76 - - 46 THEN NULL END * 23 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7200
SELECT ALL + + 45 * 64 * - + ( - COALESCE ( + - 8, + NULLIF ( + - 67, 77 * - CAST( - SUM( ALL 36 ) AS DECIMAL ) ) ) )
----
-23040

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL + + 45 * 64 * - + ( - COALESCE ( + - 8, + NULLIF ( + - 67, 77 * - CAST ( - SUM ( ALL 36 ) AS REAL ) ) ) )
----
-23040

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT + + COUNT( * ) * 23 + + 36
----
59

skipif mysql # not compatible
query I rowsort label-7201
SELECT + + COUNT ( * ) * 23 + + 36
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7202
SELECT DISTINCT - 18 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT - 18 / + 60
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7203
SELECT + CASE - + ( - 76 ) WHEN 3 + + + 16 / COUNT( * ) THEN + 58 * - 7 + + 89 / - NULLIF ( + 61, + 2 + 17 / - 72 ) + + 21 WHEN - + 79 THEN NULL END * 28 + 78 * - + COUNT( * ) + 94 AS col1, - 14 AS col0
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-7203
SELECT + CASE - + ( - 76 ) WHEN 3 + + + 16 / COUNT ( * ) THEN + 58 * - 7 + + 89 / - NULLIF ( + 61, + 2 + 17 / - 72 ) + + 21 WHEN - + 79 THEN NULL END * 28 + 78 * - + COUNT ( * ) + 94 AS col1, - 14 AS col0
----
NULL
-14

query I rowsort
SELECT DISTINCT 25 * - 5
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT ALL + + COUNT( ALL 62 ) * COUNT( * ) + + 31 * ( - 98 )
----
-3037

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL + + COUNT ( ALL 62 ) * COUNT ( * ) + + 31 * ( - 98 )
----
-3037

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT - CASE 25 WHEN - 83 THEN - 46 * - COUNT( * ) + - 56 - - - 52 - - - 15 * - 40 * - - COUNT( 10 ) WHEN - ( + 27 ) - - - 39 + - - 51 - 13 + - 97 * + 34 THEN - CASE + - 52 WHEN + + 87 THEN 21 ELSE NULL END END * CASE + + 94 WHEN - 1 THEN - + 87 + - 42 ELSE + + 85 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7206
SELECT - CASE 25 WHEN - 83 THEN - 46 * - COUNT ( * ) + - 56 - - - 52 - - - 15 * - 40 * - - COUNT ( 10 ) WHEN - ( + 27 ) - - - 39 + - - 51 - 13 + - 97 * + 34 THEN - CASE + - 52 WHEN + + 87 THEN 21 ELSE NULL END END * CASE + + 94 WHEN - 1 THEN - + 87 + - 42 ELSE + + 85 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7207
SELECT - CAST( + 94 AS SIGNED ) + - - ( + 74 )
----
-20

skipif mysql # not compatible
query I rowsort label-7207
SELECT - CAST ( + 94 AS INTEGER ) + - - ( + 74 )
----
-20

query I rowsort
SELECT DISTINCT + 60 + + NULLIF ( + + 61, 71 * + 97 * + 6 ) AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT ALL - COUNT( * ) + SUM( DISTINCT - + 77 )
----
-78

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL - COUNT ( * ) + SUM ( DISTINCT - + 77 )
----
-78

query I rowsort
SELECT ALL NULLIF ( + 38, + 39 ) * + 47 col0
----
1786

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7211
SELECT - - 22 - MAX( ALL ( 6 ) ) AS col0, - 84 DIV + 91
----
16
0

skipif mysql # not compatible
query II rowsort label-7211
SELECT - - 22 - MAX ( ALL ( 6 ) ) AS col0, - 84 / + 91
----
16
0

query I rowsort
SELECT DISTINCT NULLIF ( - 0, + 62 )
----
0

query I rowsort
SELECT DISTINCT + 0 + + 85 + + + 81
----
166

query I rowsort
SELECT ALL - - 61 + + - 73
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT + MAX( - CASE + 1 WHEN + 91 THEN 19 ELSE - 35 END ) + + 63 col0
----
98

skipif mysql # not compatible
query I rowsort label-7215
SELECT + MAX ( - CASE + 1 WHEN + 91 THEN 19 ELSE - 35 END ) + + 63 col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7216
SELECT DISTINCT + 50 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT + 50 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT - COUNT( * ) - - 86 - - - SUM( - 93 ) + + 45 + 71 * + 50 AS col2
----
3773

skipif mysql # not compatible
query I rowsort label-7217
SELECT - COUNT ( * ) - - 86 - - - SUM ( - 93 ) + + 45 + 71 * + 50 AS col2
----
3773

query I rowsort
SELECT ALL + 32 * + 39 col0
----
1248

onlyif mysql # aggregate syntax: 
query II rowsort label-7219
SELECT - COALESCE ( + 59, - 0 ) + 57 + + 32 AS col2, COUNT( * ) * - - 30 AS col2
----
30
30

skipif mysql # not compatible
query II rowsort label-7219
SELECT - COALESCE ( + 59, - 0 ) + 57 + + 32 AS col2, COUNT ( * ) * - - 30 AS col2
----
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT - MAX( - - 84 ) + - + 58 AS col0
----
-142

skipif mysql # not compatible
query I rowsort label-7220
SELECT - MAX ( - - 84 ) + - + 58 AS col0
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT ALL + MIN( DISTINCT 98 ) - + 88 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL + MIN ( DISTINCT 98 ) - + 88 AS col1
----
10

query I rowsort
SELECT DISTINCT CASE - 75 WHEN - 12 + + 80 THEN 27 * 37 END
----
NULL

query I rowsort
SELECT ALL - 33 * 49 AS col1
----
-1617

onlyif mysql # aggregate syntax: 
query II rowsort label-7224
SELECT - 80 + - COUNT( * ) * + 41 AS col2, - COUNT( * )
----
-121
-1

skipif mysql # not compatible
query II rowsort label-7224
SELECT - 80 + - COUNT ( * ) * + 41 AS col2, - COUNT ( * )
----
-121
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7225
SELECT ALL MAX( - 41 ) DIV + COUNT( * ) - + 19
----
-60

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL MAX ( - 41 ) / + COUNT ( * ) - + 19
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT COUNT( * ) * + + 80 + + 37
----
117

skipif mysql # not compatible
query I rowsort label-7226
SELECT COUNT ( * ) * + + 80 + + 37
----
117

query I rowsort
SELECT DISTINCT + ( + - 45 ) col2
----
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7228
SELECT - 90 * + CAST( NULL AS DECIMAL ) + - 95 * - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7228
SELECT - 90 * + CAST ( NULL AS REAL ) + - 95 * - 22 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7229
SELECT - CAST( - 88 AS SIGNED ) * - CAST( NULL AS SIGNED ) * - 74 + + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7229
SELECT - CAST ( - 88 AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - 74 + + 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT ALL ( + 12 ) * NULLIF ( + + 51, - COUNT( ALL 89 ) ) AS col1
----
612

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL ( + 12 ) * NULLIF ( + + 51, - COUNT ( ALL 89 ) ) AS col1
----
612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7231
SELECT ALL COUNT( * ) * - COALESCE ( - ( 48 ) DIV 31, - 10 * 81 ) + - 38 col0
----
-37

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL COUNT ( * ) * - COALESCE ( - ( 48 ) / 31, - 10 * 81 ) + - 38 col0
----
-37

query I rowsort
SELECT + NULLIF ( 80, 9 + 24 )
----
80

query I rowsort
SELECT ALL ( + 18 ) * 32 AS col2
----
576

query I rowsort
SELECT ( ( - NULLIF ( 63, 73 ) ) ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT DISTINCT 84 * + COUNT( * ) col1
----
84

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT 84 * + COUNT ( * ) col1
----
84

query I rowsort
SELECT ALL - 62 * 13 + 89
----
-717

onlyif mysql # DIV for integer division: 
query I rowsort label-7237
SELECT + 24 DIV 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7237
SELECT + 24 / 91 AS col2
----
0

query I rowsort
SELECT DISTINCT 82 * - 13 + 21
----
-1045

query I rowsort
SELECT ALL 51 * 73 + - 12 AS col1
----
3711

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT CASE SUM( - 78 ) WHEN + 91 * COUNT( * ) THEN 80 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7240
SELECT CASE SUM ( - 78 ) WHEN + 91 * COUNT ( * ) THEN 80 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 52 * 71 + + 29 AS col2
----
-3663

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT + MAX( - 13 ) + + ( 98 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-7242
SELECT + MAX ( - 13 ) + + ( 98 ) AS col2
----
85

query I rowsort
SELECT DISTINCT + 19 * 21 + + 75 col1
----
474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7244
SELECT ALL 35 DIV COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL 35 / COUNT ( * )
----
35

query I rowsort
SELECT + 41 * 63 AS col0
----
2583

query I rowsort
SELECT ALL 29 * - 43
----
-1247

query I rowsort
SELECT + 93 + 57 AS col1
----
150

query I rowsort
SELECT ALL NULLIF ( - 39, 55 ) AS col1
----
-39

query I rowsort
SELECT DISTINCT - 91 - + 28
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT ALL ( - NULLIF ( + COALESCE ( 31, CASE 96 WHEN - 87 + + 12 THEN - COALESCE ( COUNT( * ), 46 ) * ( 84 + 9 * COUNT( 62 ) ) ELSE + 96 * - 80 + 38 END ), + CASE - 33 WHEN COUNT( * ) + + 80 THEN - 74 + - 80 WHEN - COUNT( * ) THEN NULL END ) ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL ( - NULLIF ( + COALESCE ( 31, CASE 96 WHEN - 87 + + 12 THEN - COALESCE ( COUNT ( * ), 46 ) * ( 84 + 9 * COUNT ( 62 ) ) ELSE + 96 * - 80 + 38 END ), + CASE - 33 WHEN COUNT ( * ) + + 80 THEN - 74 + - 80 WHEN - COUNT ( * ) THEN NULL END ) ) AS col0
----
-31

query I rowsort
SELECT DISTINCT 28 * 37
----
1036

query I rowsort
SELECT 84 * NULLIF ( - 59, 46 * - 5 + 16 )
----
-4956

query I rowsort
SELECT 74 * 55
----
4070

query I rowsort
SELECT 9 * 66
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT 80 - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-7255
SELECT 80 - COUNT ( * )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7256
SELECT 96 * CAST( 91 AS SIGNED ) AS col0
----
8736

skipif mysql # not compatible
query I rowsort label-7256
SELECT 96 * CAST ( 91 AS INTEGER ) AS col0
----
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT 99 * - COALESCE ( 20, + 10 * + 31, 98, COALESCE ( COUNT( * ), SUM( 50 ), 59 ) )
----
-1980

skipif mysql # not compatible
query I rowsort label-7257
SELECT 99 * - COALESCE ( 20, + 10 * + 31, 98, COALESCE ( COUNT ( * ), SUM ( 50 ), 59 ) )
----
-1980

onlyif mysql # DIV for integer division: 
query I rowsort label-7258
SELECT 8 * COALESCE ( + 39 DIV - 15, - 43 * NULLIF ( + 16, 90 ) + 47 )
----
-16

skipif mysql # not compatible
query I rowsort label-7258
SELECT 8 * COALESCE ( + 39 / - 15, - 43 * NULLIF ( + 16, 90 ) + 47 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT ALL + 39 + COUNT( - 27 ) * 56 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL + 39 + COUNT ( - 27 ) * 56 AS col2
----
95

query I rowsort
SELECT ALL - 29 + + 73 AS col1
----
44

query I rowsort
SELECT 23 * - 67 - 21
----
-1562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7262
SELECT DISTINCT + - NULLIF ( 33, - MIN( DISTINCT 38 ) / - 14 - - 94 * 38 ) * COALESCE ( CAST( NULL AS SIGNED ), 88 ) AS col0
----
-2904

skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT + - NULLIF ( 33, - MIN ( DISTINCT 38 ) / - 14 - - 94 * 38 ) * COALESCE ( CAST ( NULL AS INTEGER ), 88 ) AS col0
----
-2904

query I rowsort
SELECT 96 * 12 AS col0
----
1152

query I rowsort
SELECT ALL - 68 + 54
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT - COALESCE ( - 52, - 35 * COUNT( * ) ) * - 45 + COUNT( * )
----
-2339

skipif mysql # not compatible
query I rowsort label-7265
SELECT - COALESCE ( - 52, - 35 * COUNT ( * ) ) * - 45 + COUNT ( * )
----
-2339

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7266
SELECT + CAST( NULL AS SIGNED ) * + 42 + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT + CAST ( NULL AS INTEGER ) * + 42 + 74
----
NULL

query I rowsort
SELECT ALL - + 25 col0
----
-25

query I rowsort
SELECT ALL + 2 + 61 AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7269
SELECT + + CAST( + 75 AS SIGNED ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-7269
SELECT + + CAST ( + 75 AS INTEGER ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ALL - 33 + COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL - 33 + COUNT ( * ) AS col2
----
-32

query I rowsort
SELECT DISTINCT + 74 + + ( - 47 ) * + 52
----
-2370

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT + MAX( 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7272
SELECT + MAX ( 8 ) AS col0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7273
SELECT + 27 * - 66 + COUNT( * ) DIV 22 AS col1
----
-1782

skipif mysql # not compatible
query I rowsort label-7273
SELECT + 27 * - 66 + COUNT ( * ) / 22 AS col1
----
-1782

query I rowsort
SELECT DISTINCT - 83 * + 54
----
-4482

query I rowsort
SELECT 78 * + 83
----
6474

query I rowsort
SELECT - 58 * - 93
----
5394

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT + 97 + 65 * + COUNT( * )
----
162

skipif mysql # not compatible
query I rowsort label-7277
SELECT + 97 + 65 * + COUNT ( * )
----
162

query I rowsort
SELECT DISTINCT 23 - - 75 AS col2
----
98

query I rowsort
SELECT 65 * + - NULLIF ( CASE + 94 WHEN - 46 THEN + 77 * + 31 ELSE NULL END, + CASE 99 WHEN 98 * 71 THEN - 2 END ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7280
SELECT DISTINCT 16 DIV - + 19 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7280
SELECT DISTINCT 16 / - + 19 * COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7281
SELECT CAST( 72 AS SIGNED ) - 43 * - 28
----
1276

skipif mysql # not compatible
query I rowsort label-7281
SELECT CAST ( 72 AS INTEGER ) - 43 * - 28
----
1276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7282
SELECT MIN( 29 ) DIV + COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-7282
SELECT MIN ( 29 ) / + COUNT ( * ) AS col1
----
29

query I rowsort
SELECT ALL 51 * - 77 AS col1
----
-3927

query I rowsort
SELECT 64 * 45
----
2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7285
SELECT 19 * - COALESCE ( COALESCE ( CASE COUNT( ALL - 91 ) WHEN + AVG ( 7 ) * 67 THEN NULL ELSE - SUM( 66 ) END, 5 ), 24 + 94 DIV 75 ) col1
----
1254

skipif mysql # not compatible
query I rowsort label-7285
SELECT 19 * - COALESCE ( COALESCE ( CASE COUNT ( ALL - 91 ) WHEN + AVG ( 7 ) * 67 THEN NULL ELSE - SUM ( 66 ) END, 5 ), 24 + 94 / 75 ) col1
----
1254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7286
SELECT 89 + CAST( NULL AS SIGNED ) + + 28 * COUNT( * ) / 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7286
SELECT 89 + CAST ( NULL AS INTEGER ) + + 28 * COUNT ( * ) / 88 AS col2
----
NULL

query I rowsort
SELECT ALL 9 * - - ( + 53 ) * + 22 AS col1
----
10494

query I rowsort
SELECT DISTINCT 21 * - 61
----
-1281

onlyif mysql # DIV for integer division: 
query I rowsort label-7289
SELECT ALL 79 + - 3 DIV + 59
----
79

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL 79 + - 3 / + 59
----
79

query I rowsort
SELECT DISTINCT + 25 + - 71
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT ALL + COUNT( * ) + - - 69 + MAX( 43 )
----
113

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL + COUNT ( * ) + - - 69 + MAX ( 43 )
----
113

query I rowsort
SELECT 24 + + 58 col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT COUNT( DISTINCT 20 )
----
1

skipif mysql # not compatible
query I rowsort label-7293
SELECT COUNT ( DISTINCT 20 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7294
SELECT DISTINCT + - 30 * + CAST( COUNT( * ) AS SIGNED ) + 3 * + 3
----
-21

skipif mysql # not compatible
query I rowsort label-7294
SELECT DISTINCT + - 30 * + CAST ( COUNT ( * ) AS INTEGER ) + 3 * + 3
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT MIN( DISTINCT + + 44 ) * 19 AS col1
----
836

skipif mysql # not compatible
query I rowsort label-7295
SELECT MIN ( DISTINCT + + 44 ) * 19 AS col1
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT SUM( ALL + 75 ) col2
----
75

skipif mysql # not compatible
query I rowsort label-7296
SELECT SUM ( ALL + 75 ) col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7297
SELECT - 80 DIV + - 72 + 62 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-7297
SELECT - 80 / + - 72 + 62 AS col2
----
63

query I rowsort
SELECT ALL - + ( 99 ) * 64 + 36 * - 1 AS col0
----
-6372

query I rowsort
SELECT DISTINCT + - 99 * + - ( - 39 ) + - 28 col0
----
-3889

query I rowsort
SELECT ALL + - 58 * - NULLIF ( 27, + 10 ) AS col2
----
1566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7301
SELECT DISTINCT - + NULLIF ( + 33, ( + MIN( + 19 ) ) * - CAST( NULL AS SIGNED ) )
----
-33

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT - + NULLIF ( + 33, ( + MIN ( + 19 ) ) * - CAST ( NULL AS INTEGER ) )
----
-33

query I rowsort
SELECT ALL + - 83 - 21 * 26
----
-629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7303
SELECT - ( - CAST( NULL AS SIGNED ) ) / - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT - ( - CAST ( NULL AS INTEGER ) ) / - 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT ALL + - COUNT( + - 0 ) * - ( + 50 * + 33 )
----
1650

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL + - COUNT ( + - 0 ) * - ( + 50 * + 33 )
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT 13 * + COUNT( * ) - - 83 * 97
----
8064

skipif mysql # not compatible
query I rowsort label-7305
SELECT 13 * + COUNT ( * ) - - 83 * 97
----
8064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7306
SELECT ALL - + CAST( 45 AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL - + CAST ( 45 AS INTEGER ) AS col1
----
-45

query I rowsort
SELECT + NULLIF ( + 15, 1 + ( 38 ) )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT - + COALESCE ( 23, 9 * - ( COUNT( * ) ) + 17 * 34 ) * + 37 + + 41
----
-810

skipif mysql # not compatible
query I rowsort label-7308
SELECT - + COALESCE ( 23, 9 * - ( COUNT ( * ) ) + 17 * 34 ) * + 37 + + 41
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT COUNT( - 34 ) - - COUNT( DISTINCT 30 - 73 ) * + 82
----
83

skipif mysql # not compatible
query I rowsort label-7309
SELECT COUNT ( - 34 ) - - COUNT ( DISTINCT 30 - 73 ) * + 82
----
83

query I rowsort
SELECT + 56 * + ( - 43 ) * + 22 + - 45
----
-53021

query I rowsort
SELECT - 64 * - - 11 AS col2
----
-704

query I rowsort
SELECT ALL 75 * 54 col2
----
4050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7313
SELECT - SUM( ALL - CAST( + 88 AS SIGNED ) ) + 1 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-7313
SELECT - SUM ( ALL - CAST ( + 88 AS INTEGER ) ) + 1 AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7314
SELECT + NULLIF ( - 55, COALESCE ( + ( 14 ), - 19 + + 88, - 58 ) ) - - ( - CAST( + NULLIF ( ( + CAST( 24 AS SIGNED ) ), 10 ) AS SIGNED ) ) DIV 36 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-7314
SELECT + NULLIF ( - 55, COALESCE ( + ( 14 ), - 19 + + 88, - 58 ) ) - - ( - CAST ( + NULLIF ( ( + CAST ( 24 AS INTEGER ) ), 10 ) AS INTEGER ) ) / 36 AS col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7315
SELECT - COUNT( * ) * + + COUNT( * ) DIV + 7
----
0

skipif mysql # not compatible
query I rowsort label-7315
SELECT - COUNT ( * ) * + + COUNT ( * ) / + 7
----
0

query I rowsort
SELECT + 34 * + 27 col0
----
918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7317
SELECT ALL + 1 * - - COUNT( * ) DIV - 12
----
0

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL + 1 * - - COUNT ( * ) / - 12
----
0

query II rowsort
SELECT 31 AS col1, - 0 + - 37 + + 17
----
31
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7319
SELECT DISTINCT 74 + CAST( NULL AS SIGNED ) * COUNT( + 28 ) + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT 74 + CAST ( NULL AS INTEGER ) * COUNT ( + 28 ) + 32 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7320
SELECT - CASE + ( - COALESCE ( + ( CAST( NULL AS SIGNED ) ), + 61, 2 ) ) WHEN 37 THEN 68 WHEN 25 THEN 43 * - 36 - - COUNT( * ) ELSE NULL END * 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT - CASE + ( - COALESCE ( + ( CAST ( NULL AS INTEGER ) ), + 61, 2 ) ) WHEN 37 THEN 68 WHEN 25 THEN 43 * - 36 - - COUNT ( * ) ELSE NULL END * 29 AS col2
----
NULL

query II rowsort
SELECT 55, 73 AS col1
----
55
73

query I rowsort
SELECT ALL - 39 + 48 col2
----
9

query I rowsort
SELECT DISTINCT + 84 + - 82
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7324
SELECT ALL CASE - 23 WHEN + 96 * 78 THEN NULL WHEN + CASE + AVG ( 51 ) WHEN - ( + 95 ) THEN 64 WHEN 57 + 28 THEN NULL WHEN + CASE 24 WHEN 9 THEN - 11 * CAST( + ( - COUNT( * ) ) * 97 AS DECIMAL ) + - 78 END THEN NULL END THEN 80 END + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL CASE - 23 WHEN + 96 * 78 THEN NULL WHEN + CASE + AVG ( 51 ) WHEN - ( + 95 ) THEN 64 WHEN 57 + 28 THEN NULL WHEN + CASE 24 WHEN 9 THEN - 11 * CAST ( + ( - COUNT ( * ) ) * 97 AS REAL ) + - 78 END THEN NULL END THEN 80 END + 9 AS col1
----
NULL

query I rowsort
SELECT + 67 * - 80 AS col2
----
-5360

onlyif mysql # aggregate syntax: 
query II rowsort label-7326
SELECT ALL 73 AS col1, COUNT( * ) + 83 * 53 AS col1
----
73
4400

skipif mysql # not compatible
query II rowsort label-7326
SELECT ALL 73 AS col1, COUNT ( * ) + 83 * 53 AS col1
----
73
4400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7327
SELECT + 44 * CAST( NULL AS SIGNED ) * + 66 / + ( - 98 / 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT + 44 * CAST ( NULL AS INTEGER ) * + 66 / + ( - 98 / 67 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7328
SELECT - COUNT( * ) AS col2, + 61 - - 15 AS col1
----
-1
76

skipif mysql # not compatible
query II rowsort label-7328
SELECT - COUNT ( * ) AS col2, + 61 - - 15 AS col1
----
-1
76

query II rowsort
SELECT 50 AS col0, 75 AS col2
----
50
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7330
SELECT + 20 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-7330
SELECT + 20 / + 87
----
0

query I rowsort
SELECT + 32 - + 8 AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7332
SELECT + COUNT( * ) * - + 19 DIV - - 72 * 31
----
0

skipif mysql # not compatible
query I rowsort label-7332
SELECT + COUNT ( * ) * - + 19 / - - 72 * 31
----
0

query I rowsort
SELECT + + 21 - - 83 + NULLIF ( 56, 51 )
----
160

query I rowsort
SELECT + 10 * - 11 * + 11 col0
----
-1210

query I rowsort
SELECT DISTINCT - 77 * - 77 + - 13 col2
----
5916

query I rowsort
SELECT DISTINCT - 74 * 4 - + 73 AS col1
----
-369

onlyif mysql # aggregate syntax: 
query II rowsort label-7337
SELECT ALL + - COUNT( * ) AS col1, - 68
----
-1
-68

skipif mysql # not compatible
query II rowsort label-7337
SELECT ALL + - COUNT ( * ) AS col1, - 68
----
-1
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT MAX( ALL 72 ) * - + 41 * 22 - MIN( 94 ) * 34 AS col0
----
-68140

skipif mysql # not compatible
query I rowsort label-7338
SELECT MAX ( ALL 72 ) * - + 41 * 22 - MIN ( 94 ) * 34 AS col0
----
-68140

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT ALL + SUM( ALL + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL + SUM ( ALL + 35 )
----
35

query I rowsort
SELECT DISTINCT + - ( + 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT + COUNT( * ) + + 30 + - ( - 11 ) + 96 AS col1
----
138

skipif mysql # not compatible
query I rowsort label-7341
SELECT + COUNT ( * ) + + 30 + - ( - 11 ) + 96 AS col1
----
138

query I rowsort
SELECT + - 81 * 12 - 11 AS col1
----
-983

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT + - MAX( ALL - COALESCE ( - 70, 79 ) ) * SUM( ALL - 2 )
----
140

skipif mysql # not compatible
query I rowsort label-7343
SELECT + - MAX ( ALL - COALESCE ( - 70, 79 ) ) * SUM ( ALL - 2 )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT - - 89 * + COUNT( * ) col2
----
89

skipif mysql # not compatible
query I rowsort label-7344
SELECT - - 89 * + COUNT ( * ) col2
----
89

query I rowsort
SELECT + + 19 + + 61 + + 80 * 61
----
4960

onlyif mysql # DIV for integer division: 
query I rowsort label-7346
SELECT - + 52 * 20 DIV - 83 + 39 + COALESCE ( - 48 + + 10, 58 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7346
SELECT - + 52 * 20 / - 83 + 39 + COALESCE ( - 48 + + 10, 58 ) AS col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7347
SELECT - 40 DIV 1 * - 22 + 64 * - COUNT( * )
----
816

skipif mysql # not compatible
query I rowsort label-7347
SELECT - 40 / 1 * - 22 + 64 * - COUNT ( * )
----
816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7348
SELECT + CASE + - CASE 36 WHEN + MAX( DISTINCT - 47 ) THEN NULL ELSE ( - 75 ) * 19 END WHEN ( 77 ) THEN 64 + + COUNT( * ) * 57 WHEN 26 + + 43 * CAST( NULL AS SIGNED ) THEN NULL END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-7348
SELECT + CASE + - CASE 36 WHEN + MAX ( DISTINCT - 47 ) THEN NULL ELSE ( - 75 ) * 19 END WHEN ( 77 ) THEN 64 + + COUNT ( * ) * 57 WHEN 26 + + 43 * CAST ( NULL AS INTEGER ) THEN NULL END * 82
----
NULL

query I rowsort
SELECT - ( 88 ) * - + 63 + 99
----
5643

query II rowsort
SELECT + - 38 AS col2, - 14 AS col0
----
-38
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-7351
SELECT ALL 67 DIV + + 27 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL 67 / + + 27 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7352
SELECT - COUNT( * ) DIV + - ( - 58 ) + 99 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-7352
SELECT - COUNT ( * ) / + - ( - 58 ) + 99 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7353
SELECT ALL + + COALESCE ( - 95, 43 - CAST( MAX( DISTINCT 27 ) AS SIGNED ), - 90 )
----
-95

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL + + COALESCE ( - 95, 43 - CAST ( MAX ( DISTINCT 27 ) AS INTEGER ), - 90 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT ALL + MIN( + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL + MIN ( + 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT - COUNT( * ) + + COUNT( * ) * + 51 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-7355
SELECT - COUNT ( * ) + + COUNT ( * ) * + 51 AS col0
----
50

query I rowsort
SELECT DISTINCT + 87 * 89 * + 88 * - 17
----
-11583528

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT + 56 * + + ( + COUNT( * ) ) * + CASE + SUM( ALL 29 ) WHEN - 86 THEN NULL ELSE + 91 END + 61 + 2 AS col0
----
5159

skipif mysql # not compatible
query I rowsort label-7357
SELECT + 56 * + + ( + COUNT ( * ) ) * + CASE + SUM ( ALL 29 ) WHEN - 86 THEN NULL ELSE + 91 END + 61 + 2 AS col0
----
5159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7358
SELECT + ( - CAST( NULL AS SIGNED ) ) / - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7358
SELECT + ( - CAST ( NULL AS INTEGER ) ) / - 18
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7359
SELECT - COUNT( * ) + - 45, + 93 AS col0
----
-46
93

skipif mysql # not compatible
query II rowsort label-7359
SELECT - COUNT ( * ) + - 45, + 93 AS col0
----
-46
93

query I rowsort
SELECT DISTINCT ( - COALESCE ( 13, - 0 ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT ALL ( - + ( - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL ( - + ( - COUNT ( * ) ) )
----
1

query I rowsort
SELECT ALL 43 * - 99 + - 62 * + 2 * + 42 + 78
----
-9387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7363
SELECT ALL + ( + - 91 ) + CAST( NULL AS SIGNED ) * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL + ( + - 91 ) + CAST ( NULL AS INTEGER ) * 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7364
SELECT DISTINCT CASE - - CAST( NULL AS SIGNED ) WHEN + 83 THEN NULL ELSE 60 * + 65 END
----
3900

skipif mysql # not compatible
query I rowsort label-7364
SELECT DISTINCT CASE - - CAST ( NULL AS INTEGER ) WHEN + 83 THEN NULL ELSE 60 * + 65 END
----
3900

query I rowsort
SELECT ALL 62 + - 2 + + + 68
----
128

query II rowsort
SELECT ALL + 80 * + - 56, + ( - - 63 ) AS col1
----
-4480
63

query I rowsort
SELECT - NULLIF ( - 47, - 72 )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7368
SELECT ALL - 7 + 10 AS col2, + COUNT( * ) / CASE 58 WHEN - 97 * + 15 + + COALESCE ( NULLIF ( + COUNT( * ), COUNT( * ) + 4 ) + - 88, + 22 * 95 ) THEN + 37 END * 72 AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7368
SELECT ALL - 7 + 10 AS col2, + COUNT ( * ) / CASE 58 WHEN - 97 * + 15 + + COALESCE ( NULLIF ( + COUNT ( * ), COUNT ( * ) + 4 ) + - 88, + 22 * 95 ) THEN + 37 END * 72 AS col0
----
3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7369
SELECT DISTINCT + ( - + MAX( + - 59 ) ) + + CAST( NULL AS SIGNED ) + + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT + ( - + MAX ( + - 59 ) ) + + CAST ( NULL AS INTEGER ) + + 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT - 91 * - COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-7370
SELECT - 91 * - COUNT ( * ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT - CASE - + 42 WHEN - 42 / COUNT( * ) + 84 THEN 34 WHEN 97 THEN 17 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7371
SELECT - CASE - + 42 WHEN - 42 / COUNT ( * ) + 84 THEN 34 WHEN 97 THEN 17 END AS col2
----
NULL

query I rowsort
SELECT - 8 + 69 col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT + COUNT( * ) - + MIN( + 18 ) - + 98 + 10
----
-105

skipif mysql # not compatible
query I rowsort label-7373
SELECT + COUNT ( * ) - + MIN ( + 18 ) - + 98 + 10
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT ALL - - 87 - 75 * - - MIN( - 57 ) col0
----
4362

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL - - 87 - 75 * - - MIN ( - 57 ) col0
----
4362

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7375
SELECT ALL - 89 - + 83 + - + 63 + - ( - 30 ) - + MIN( ALL + 87 ) * 28 DIV - 15
----
-43

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL - 89 - + 83 + - + 63 + - ( - 30 ) - + MIN ( ALL + 87 ) * 28 / - 15
----
-43

query I rowsort
SELECT ALL - NULLIF ( + + 67, - 64 )
----
-67

query I rowsort
SELECT + + 9 + - 45 AS col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7378
SELECT ALL - COUNT( * ) DIV + 65 * - 62 + + 75 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL - COUNT ( * ) / + 65 * - 62 + + 75 AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7379
SELECT - ( + CAST( 58 AS SIGNED ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-7379
SELECT - ( + CAST ( 58 AS INTEGER ) ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT + - NULLIF ( + - 39, - 53 / + 50 ) + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-7380
SELECT + - NULLIF ( + - 39, - 53 / + 50 ) + + COUNT ( * )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7381
SELECT - 27 DIV + 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7381
SELECT - 27 / + 54 AS col2
----
0

query I rowsort
SELECT + ( + 89 ) * 18 AS col0
----
1602

query I rowsort
SELECT + - 19 * - 58 + 56 + + 68
----
1226

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT DISTINCT - MIN( NULLIF ( - 23, + + 59 ) ) * + 88 AS col1
----
2024

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT - MIN ( NULLIF ( - 23, + + 59 ) ) * + 88 AS col1
----
2024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7385
SELECT + - 85 * - CAST( + + COUNT( + 68 ) AS SIGNED ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-7385
SELECT + - 85 * - CAST ( + + COUNT ( + 68 ) AS INTEGER ) AS col0
----
85

query I rowsort
SELECT COALESCE ( + 78, 60 * + 77 * 59 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT + 8 * COUNT( * ) * + - 15 + - COALESCE ( 69, - 73 ) + + 68
----
-121

skipif mysql # not compatible
query I rowsort label-7387
SELECT + 8 * COUNT ( * ) * + - 15 + - COALESCE ( 69, - 73 ) + + 68
----
-121

query I rowsort
SELECT + 77 * - 57 AS col2
----
-4389

query I rowsort
SELECT DISTINCT - ( - + ( - - 27 ) ) AS col0
----
27

query I rowsort
SELECT ALL - NULLIF ( + 71, - 63 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT + COUNT( - + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-7391
SELECT + COUNT ( - + 12 )
----
1

query I rowsort
SELECT + 3 * - 65 - + 21 + ( + 12 ) + + 51 * + 10 AS col1
----
306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7393
SELECT DISTINCT 83 + + - CAST( 42 AS SIGNED ) + + MAX( + 62 )
----
103

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT 83 + + - CAST ( 42 AS INTEGER ) + + MAX ( + 62 )
----
103

query I rowsort
SELECT 0 + 84 AS col0
----
84

query I rowsort
SELECT 3 * - + 85
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT ALL COUNT( - 36 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL COUNT ( - 36 ) + COUNT ( * )
----
2

query II rowsort
SELECT + 90 AS col0, 58
----
90
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT COUNT( ALL - 3 ) - 56 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-7398
SELECT COUNT ( ALL - 3 ) - 56 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT ALL 63 + - 3 * ( - 47 ) * - 15 + COUNT( * ) AS col2
----
-2051

skipif mysql # not compatible
query I rowsort label-7399
SELECT ALL 63 + - 3 * ( - 47 ) * - 15 + COUNT ( * ) AS col2
----
-2051

query I rowsort
SELECT ALL - ( - + 82 ) + ( + 59 )
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT ALL + MIN( ALL - - 13 ) + - 33 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL + MIN ( ALL - - 13 ) + - 33 AS col2
----
-20

query I rowsort
SELECT 15 + 8 - + - 75 + 16 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT 18 * SUM( - - 20 )
----
360

skipif mysql # not compatible
query I rowsort label-7403
SELECT 18 * SUM ( - - 20 )
----
360

query I rowsort
SELECT ( + + 53 ) * - COALESCE ( 65, - 45 + 56 ) AS col1
----
-3445

query I rowsort
SELECT 8 * + + 80 col1
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT 44 * - + COUNT( * ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-7406
SELECT 44 * - + COUNT ( * ) AS col1
----
-44

query I rowsort
SELECT 50 + + + 38 + - 70 AS col0
----
18

query II rowsort
SELECT - 77 col0, 14 + - 63 AS col2
----
-77
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT DISTINCT 49 - - COUNT( DISTINCT - 46 )
----
50

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT 49 - - COUNT ( DISTINCT - 46 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7410
SELECT ALL + CAST( - 9 AS SIGNED ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL + CAST ( - 9 AS INTEGER ) AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7411
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) * + 9 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) * + 9 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7412
SELECT + 50 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT + 50 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT DISTINCT CASE - 0 WHEN ( 54 ) THEN NULL WHEN COUNT( * ) - + COUNT( * ) THEN - 10 * 48 END * + NULLIF ( 35 + + 34 * + 9, COUNT( * ) + - CASE - 29 + + 58 WHEN 10 + 8 THEN 7 * + 21 WHEN + 16 * + MAX( 61 * - 41 ) THEN NULL END * 83 )
----
-163680

skipif mysql # not compatible
query I rowsort label-7413
SELECT DISTINCT CASE - 0 WHEN ( 54 ) THEN NULL WHEN COUNT ( * ) - + COUNT ( * ) THEN - 10 * 48 END * + NULLIF ( 35 + + 34 * + 9, COUNT ( * ) + - CASE - 29 + + 58 WHEN 10 + 8 THEN 7 * + 21 WHEN + 16 * + MAX ( 61 * - 41 ) THEN NULL END * 83 )
----
-163680

query I rowsort
SELECT DISTINCT + - 22 * + - 7
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT - 16 * + COUNT( * ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-7415
SELECT - 16 * + COUNT ( * ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT - COUNT( DISTINCT - 6 ) * - 49
----
49

skipif mysql # not compatible
query I rowsort label-7416
SELECT - COUNT ( DISTINCT - 6 ) * - 49
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT - COUNT( * ) - - 94 * 63 AS col0
----
5921

skipif mysql # not compatible
query I rowsort label-7417
SELECT - COUNT ( * ) - - 94 * 63 AS col0
----
5921

query I rowsort
SELECT - NULLIF ( - 90, + - ( ( + 79 ) ) )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7419
SELECT ALL + COUNT( * ) AS col2, MAX( + 88 )
----
1
88

skipif mysql # not compatible
query II rowsort label-7419
SELECT ALL + COUNT ( * ) AS col2, MAX ( + 88 )
----
1
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT + MAX( ALL - - 3 ) + - + 77 - - 43 * ( - 82 )
----
-3600

skipif mysql # not compatible
query I rowsort label-7420
SELECT + MAX ( ALL - - 3 ) + - + 77 - - 43 * ( - 82 )
----
-3600

query I rowsort
SELECT ALL - + 80 * + + 76 AS col2
----
-6080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7422
SELECT 75 / - + CASE 16 WHEN + CAST( + 22 AS SIGNED ) * ( 32 ) - AVG ( + 98 ) THEN 78 WHEN 36 THEN + ( - 15 ) + COUNT( * ) * - 70 ELSE - ( 7 ) * - 35 END * + 80 + + ( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT 75 / - + CASE 16 WHEN + CAST ( + 22 AS INTEGER ) * ( 32 ) - AVG ( + 98 ) THEN 78 WHEN 36 THEN + ( - 15 ) + COUNT ( * ) * - 70 ELSE - ( 7 ) * - 35 END * + 80 + + ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT - COALESCE ( + + 24, - + MIN( DISTINCT - 48 ), + + COUNT( DISTINCT + 7 ) * 55 )
----
-24

skipif mysql # not compatible
query I rowsort label-7423
SELECT - COALESCE ( + + 24, - + MIN ( DISTINCT - 48 ), + + COUNT ( DISTINCT + 7 ) * 55 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT ALL - CASE + 29 WHEN - 13 * - + COUNT( ALL + - 66 ) THEN 81 * 76 + + 24 * - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL - CASE + 29 WHEN - 13 * - + COUNT ( ALL + - 66 ) THEN 81 * 76 + + 24 * - 18 END
----
NULL

query I rowsort
SELECT ( - 63 ) * - + 57 - + 39 AS col1
----
3552

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7426
SELECT + COUNT( * ) + 52 + NULLIF ( + CAST( NULL AS DECIMAL ), 98 ) + - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7426
SELECT + COUNT ( * ) + 52 + NULLIF ( + CAST ( NULL AS REAL ), 98 ) + - 86 AS col1
----
NULL

query I rowsort
SELECT + 1 * 9 * - - 84 - - - 87
----
669

query I rowsort
SELECT - 15 + + 86
----
71

query I rowsort
SELECT 74 + - 98 AS col1
----
-24

query I rowsort
SELECT ALL 16 * + 34 AS col1
----
544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7431
SELECT 80 DIV - 88 * + SUM( + 81 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7431
SELECT 80 / - 88 * + SUM ( + 81 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT + COUNT( * ) * + 2 + 30 * + 95
----
2852

skipif mysql # not compatible
query I rowsort label-7432
SELECT + COUNT ( * ) * + 2 + 30 * + 95
----
2852

query II rowsort
SELECT 85 AS col0, - 0 AS col2
----
85
0

query I rowsort
SELECT DISTINCT 51 + - 54 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7435
SELECT ALL - 52 + + + CASE - + 22 WHEN 73 THEN - 11 / 36 WHEN CAST( + 4 AS SIGNED ) THEN - ( + 18 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL - 52 + + + CASE - + 22 WHEN 73 THEN - 11 / 36 WHEN CAST ( + 4 AS INTEGER ) THEN - ( + 18 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-7436
SELECT + 45 col2, - 56 * + - 78 + + 77 AS col1, + COUNT( * ) * + - 55 - + 88
----
45
4445
-143

skipif mysql # not compatible
query III rowsort label-7436
SELECT + 45 col2, - 56 * + - 78 + + 77 AS col1, + COUNT ( * ) * + - 55 - + 88
----
45
4445
-143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7437
SELECT ALL CAST( NULL AS SIGNED ) + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL CAST ( NULL AS INTEGER ) + 35
----
NULL

query I rowsort
SELECT NULLIF ( - + 76, - - 51 ) + - 70 AS col0
----
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7439
SELECT 99 * CAST( - 13 AS SIGNED ) * + + 38 + - 0 AS col0
----
-48906

skipif mysql # not compatible
query I rowsort label-7439
SELECT 99 * CAST ( - 13 AS INTEGER ) * + + 38 + - 0 AS col0
----
-48906

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7440
SELECT 66 AS col1, - SUM( ALL - ( 97 ) ) DIV - 90
----
66
-1

skipif mysql # not compatible
query II rowsort label-7440
SELECT 66 AS col1, - SUM ( ALL - ( 97 ) ) / - 90
----
66
-1

query I rowsort
SELECT 53 * + 68
----
3604

onlyif mysql # DIV for integer division: 
query I rowsort label-7442
SELECT 24 + 22 DIV - 46 + - 70 * + 6
----
-396

skipif mysql # not compatible
query I rowsort label-7442
SELECT 24 + 22 / - 46 + - 70 * + 6
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT COUNT( * ) * MIN( ALL - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-7443
SELECT COUNT ( * ) * MIN ( ALL - 29 )
----
-29

query I rowsort
SELECT ALL 43 * - 40
----
-1720

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT DISTINCT COALESCE ( - SUM( DISTINCT + + 21 ), - + COUNT( * ) + 59 + - 54 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT COALESCE ( - SUM ( DISTINCT + + 21 ), - + COUNT ( * ) + 59 + - 54 ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT - CASE 39 WHEN - 9 THEN + + 9 / - - 24 * COUNT( * ) + + 57 + + COUNT( * ) * 86 END + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-7446
SELECT - CASE 39 WHEN - 9 THEN + + 9 / - - 24 * COUNT ( * ) + + 57 + + COUNT ( * ) * 86 END + 39
----
NULL

query I rowsort
SELECT ALL + 87 * + 21
----
1827

onlyif mysql # DIV for integer division: 
query I rowsort label-7448
SELECT - 0 DIV 43 + + 63 - ( - 68 ) AS col0
----
131

skipif mysql # not compatible
query I rowsort label-7448
SELECT - 0 / 43 + + 63 - ( - 68 ) AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT 34 + SUM( + 10 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7449
SELECT 34 + SUM ( + 10 ) AS col2
----
44

query I rowsort
SELECT 21 + + 41 - + 71 AS col1
----
-9

query I rowsort
SELECT ALL - COALESCE ( + + 64, 85 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT + NULLIF ( + 77, + + 10 ) + COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-7452
SELECT + NULLIF ( + 77, + + 10 ) + COUNT ( * ) AS col1
----
78

query I rowsort
SELECT - + 26 - + 24 + - - 20 AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7454
SELECT ALL - 0 AS col2, CASE 65 WHEN + + 95 THEN NULL WHEN + - 45 THEN CAST( + 21 AS SIGNED ) ELSE 67 * 83 - 54 END + - 53
----
0
5454

skipif mysql # not compatible
query II rowsort label-7454
SELECT ALL - 0 AS col2, CASE 65 WHEN + + 95 THEN NULL WHEN + - 45 THEN CAST ( + 21 AS INTEGER ) ELSE 67 * 83 - 54 END + - 53
----
0
5454

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT - + SUM( ALL + ( + 59 ) ) * - 71 AS col0
----
4189

skipif mysql # not compatible
query I rowsort label-7455
SELECT - + SUM ( ALL + ( + 59 ) ) * - 71 AS col0
----
4189

query I rowsort
SELECT - 59 + 59 AS col1
----
0

query I rowsort
SELECT - 86 + + + 43 AS col2
----
-43

query I rowsort
SELECT - 73 * + 21 + 56 * + 18 AS col0
----
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT - - SUM( DISTINCT - + 52 ) * 62
----
-3224

skipif mysql # not compatible
query I rowsort label-7459
SELECT - - SUM ( DISTINCT - + 52 ) * 62
----
-3224

onlyif mysql # DIV for integer division: 
query I rowsort label-7460
SELECT - 61 DIV + ( + - 68 ) + + 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-7460
SELECT - 61 / + ( + - 68 ) + + 56 AS col2
----
56

query I rowsort
SELECT DISTINCT + NULLIF ( + + 62, + 69 ) AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7462
SELECT COALESCE ( + COUNT( * ), - 68 + - 61, + 64 * - + CAST( - SUM( 56 ) AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7462
SELECT COALESCE ( + COUNT ( * ), - 68 + - 61, + 64 * - + CAST ( - SUM ( 56 ) AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 66 * - + COALESCE ( 99, - - 7, + 92, + - 57 ) AS col0
----
6534

query II rowsort
SELECT ALL + ( - + 91 ), - 60 col2
----
-91
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT DISTINCT + COUNT( * ) * + 60 * - 71 - - COUNT( * ) + + + SUM( - 39 ) - + 2 * + 69
----
-4436

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT + COUNT ( * ) * + 60 * - 71 - - COUNT ( * ) + + + SUM ( - 39 ) - + 2 * + 69
----
-4436

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT 12 * + - 60 * 68 + + COALESCE ( + + CASE + - COUNT( * ) WHEN 31 * + COALESCE ( + 33, 95 ) THEN + 40 ELSE NULL END, 51 - - 8 ) * + 71
----
-44771

skipif mysql # not compatible
query I rowsort label-7466
SELECT 12 * + - 60 * 68 + + COALESCE ( + + CASE + - COUNT ( * ) WHEN 31 * + COALESCE ( + 33, 95 ) THEN + 40 ELSE NULL END, 51 - - 8 ) * + 71
----
-44771

onlyif mysql # DIV for integer division: 
query I rowsort label-7467
SELECT + 4 DIV - + 5
----
0

skipif mysql # not compatible
query I rowsort label-7467
SELECT + 4 / - + 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL - 87 * 17 - 40 * COUNT( * ) - - 74
----
-1445

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL - 87 * 17 - 40 * COUNT ( * ) - - 74
----
-1445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7469
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), 31 ) * + + 94 AS col1
----
-2914

skipif mysql # not compatible
query I rowsort label-7469
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), 31 ) * + + 94 AS col1
----
-2914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7470
SELECT + 21 * ( + CAST( + - ( + - 31 ) AS SIGNED ) )
----
651

skipif mysql # not compatible
query I rowsort label-7470
SELECT + 21 * ( + CAST ( + - ( + - 31 ) AS INTEGER ) )
----
651

query II rowsort
SELECT - 91 * + 37 AS col1, - 87
----
-3367
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT DISTINCT CASE WHEN NOT + MIN( DISTINCT - 71 ) NOT BETWEEN ( - 47 + 85 ) AND ( 50 ) THEN - 19 END * - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT CASE WHEN NOT + MIN ( DISTINCT - 71 ) NOT BETWEEN ( - 47 + 85 ) AND ( 50 ) THEN - 19 END * - 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT - 68 - + 15 * + + AVG ( ALL + 34 ) * - CASE - COUNT( * ) WHEN - 66 * COUNT( * ) THEN - AVG ( DISTINCT 54 ) WHEN COUNT( * ) THEN NULL END * - 29 - + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7473
SELECT - 68 - + 15 * + + AVG ( ALL + 34 ) * - CASE - COUNT ( * ) WHEN - 66 * COUNT ( * ) THEN - AVG ( DISTINCT 54 ) WHEN COUNT ( * ) THEN NULL END * - 29 - + 16
----
NULL

query I rowsort
SELECT ALL 56 * + 80 col0
----
4480

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT + 61 * - + COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-7475
SELECT + 61 * - + COUNT ( * ) AS col2
----
-61

query I rowsort
SELECT DISTINCT 2 * + 81 * - ( - 86 ) AS col0
----
13932

query I rowsort
SELECT + 7 * + - 2 AS col2
----
-14

query I rowsort
SELECT DISTINCT + 39 + + - 67
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-7479
SELECT ALL 60 + 2 DIV 72 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL 60 + 2 / 72 AS col1
----
60

query I rowsort
SELECT ALL 65 * 5 AS col1
----
325

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT + + 95 * - 65 * SUM( DISTINCT + 70 )
----
-432250

skipif mysql # not compatible
query I rowsort label-7481
SELECT + + 95 * - 65 * SUM ( DISTINCT + 70 )
----
-432250

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ALL - NULLIF ( - 4, - MAX( ALL - 42 ) ) + - + 10
----
-6

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL - NULLIF ( - 4, - MAX ( ALL - 42 ) ) + - + 10
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT ALL - 15 + + - 82 + ( 58 ) - 48 * + MIN( ALL 85 ) AS col0
----
-4119

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL - 15 + + - 82 + ( 58 ) - 48 * + MIN ( ALL 85 ) AS col0
----
-4119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7484
SELECT + + 51 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT + + 51 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT + - 59 - + 46 + - CASE + 80 WHEN COUNT( * ) THEN + - 83 + - 0 END - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-7485
SELECT + - 59 - + 46 + - CASE + 80 WHEN COUNT ( * ) THEN + - 83 + - 0 END - 55
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7486
SELECT ALL - CAST( - 89 AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL - CAST ( - 89 AS INTEGER ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT + COUNT( * ) + - 97 + + + 14 col2
----
-82

skipif mysql # not compatible
query I rowsort label-7487
SELECT + COUNT ( * ) + - 97 + + + 14 col2
----
-82

query I rowsort
SELECT - 6 * - 16 col0
----
96

query I rowsort
SELECT DISTINCT - 21 * - 97 * + + 75 AS col2
----
152775

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7490
SELECT CAST( NULL AS SIGNED ) AS col0, 18 AS col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-7490
SELECT CAST ( NULL AS INTEGER ) AS col0, 18 AS col2
----
NULL
18

query I rowsort
SELECT ALL - 25 * + 80 AS col2
----
-2000

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT 89 * + COUNT( * ) - - 67 - - + 44 + 66 * + - 94 * - MIN( 16 ) * 24 + + 50 * 99
----
2387486

skipif mysql # not compatible
query I rowsort label-7492
SELECT 89 * + COUNT ( * ) - - 67 - - + 44 + 66 * + - 94 * - MIN ( 16 ) * 24 + + 50 * 99
----
2387486

query II rowsort
SELECT ALL + 54, 68 AS col2
----
54
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7494
SELECT CAST( NULL AS SIGNED ), 69 AS col1
----
NULL
69

skipif mysql # not compatible
query II rowsort label-7494
SELECT CAST ( NULL AS INTEGER ), 69 AS col1
----
NULL
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT + MAX( - NULLIF ( - 43, - 10 - 90 ) )
----
43

skipif mysql # not compatible
query I rowsort label-7495
SELECT + MAX ( - NULLIF ( - 43, - 10 - 90 ) )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7496
SELECT - 80 + - COUNT( * ) + - 31 * + COUNT( * ) * + 87 * - + 8 + + 97 + COUNT( * ) DIV 79 DIV 2
----
21592

skipif mysql # not compatible
query I rowsort label-7496
SELECT - 80 + - COUNT ( * ) + - 31 * + COUNT ( * ) * + 87 * - + 8 + + 97 + COUNT ( * ) / 79 / 2
----
21592

query I rowsort
SELECT - 98 * - 83 AS col1
----
8134

query II rowsort
SELECT ALL + 82 col1, 45 * + 41
----
82
1845

onlyif mysql # DIV for integer division: 
query I rowsort label-7499
SELECT ALL + 66 DIV - + 97 - 79 + - 51
----
-130

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL + 66 / - + 97 - 79 + - 51
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7500
SELECT DISTINCT + 35 * + + CAST( + 56 AS SIGNED ) * - 71 AS col0
----
-139160

skipif mysql # not compatible
query I rowsort label-7500
SELECT DISTINCT + 35 * + + CAST ( + 56 AS INTEGER ) * - 71 AS col0
----
-139160

onlyif mysql # aggregate syntax: 
query II rowsort label-7501
SELECT ALL + 60 AS col2, + CASE + COUNT( * ) WHEN + ( + ( - 68 ) ) THEN CASE + 14 WHEN 82 THEN + 10 END + 3 ELSE - 67 END + 33 col0
----
60
-34

skipif mysql # not compatible
query II rowsort label-7501
SELECT ALL + 60 AS col2, + CASE + COUNT ( * ) WHEN + ( + ( - 68 ) ) THEN CASE + 14 WHEN 82 THEN + 10 END + 3 ELSE - 67 END + 33 col0
----
60
-34

query I rowsort
SELECT ( + + 32 ) AS col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7503
SELECT DISTINCT 8 DIV - 84 * - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7503
SELECT DISTINCT 8 / - 84 * - 48 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT - COUNT( * ) + + 85
----
84

skipif mysql # not compatible
query I rowsort label-7504
SELECT - COUNT ( * ) + + 85
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-7505
SELECT - 26 DIV + + COALESCE ( - 10, - 8 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7505
SELECT - 26 / + + COALESCE ( - 10, - 8 ) AS col2
----
2

query I rowsort
SELECT + 8 * - - 47
----
376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7507
SELECT ALL 13 * COUNT( - 4 ) * - ( + + 36 ) + + 92 + + 3 + + + CAST( NULL AS SIGNED ) + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL 13 * COUNT ( - 4 ) * - ( + + 36 ) + + 92 + + 3 + + + CAST ( NULL AS INTEGER ) + 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7508
SELECT 94 col0, - COUNT( * )
----
94
-1

skipif mysql # not compatible
query II rowsort label-7508
SELECT 94 col0, - COUNT ( * )
----
94
-1

query I rowsort
SELECT - 61 * - + NULLIF ( ( - 76 ), + + 69 - - 56 + 77 * + 63 * 43 )
----
-4636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7510
SELECT DISTINCT - MIN( ALL + + ( + + 40 ) ) * + NULLIF ( 11, + CAST( - + 74 AS SIGNED ) * + 35 + + 69 * + ( + 78 - COUNT( * ) * CAST( NULL AS SIGNED ) ) + + AVG ( DISTINCT 75 ) ) AS col2
----
-440

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT - MIN ( ALL + + ( + + 40 ) ) * + NULLIF ( 11, + CAST ( - + 74 AS INTEGER ) * + 35 + + 69 * + ( + 78 - COUNT ( * ) * CAST ( NULL AS INTEGER ) ) + + AVG ( DISTINCT 75 ) ) AS col2
----
-440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7511
SELECT ALL - + 61 + - CAST( 37 AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL - + 61 + - CAST ( 37 AS INTEGER )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT - COUNT( + - 61 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7512
SELECT - COUNT ( + - 61 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7513
SELECT ALL + COUNT( * ) + + COUNT( * ) + - 60, 30 * - CASE + + 29 WHEN + 70 * 83 THEN ( NULLIF ( COUNT( * ), ( 20 ) + + COALESCE ( + ( + COUNT( * ) ), 18 * MIN( 26 * + 11 ), - 3 - 13 ) ) ) + COALESCE ( + 10, - 42 ) END * - COUNT( * ) AS col2
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-7513
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + - 60, 30 * - CASE + + 29 WHEN + 70 * 83 THEN ( NULLIF ( COUNT ( * ), ( 20 ) + + COALESCE ( + ( + COUNT ( * ) ), 18 * MIN ( 26 * + 11 ), - 3 - 13 ) ) ) + COALESCE ( + 10, - 42 ) END * - COUNT ( * ) AS col2
----
-58
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7514
SELECT ALL + 55 + - 79 * COUNT( * ) + COUNT( * ) DIV 41 + - 6 DIV 11 + 31 + 85 * 0
----
7

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL + 55 + - 79 * COUNT ( * ) + COUNT ( * ) / 41 + - 6 / 11 + 31 + 85 * 0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT ( 26 ) + + + 31 + COALESCE ( + - COUNT( * ), + + 57 + - + 7 )
----
56

skipif mysql # not compatible
query I rowsort label-7515
SELECT ( 26 ) + + + 31 + COALESCE ( + - COUNT ( * ), + + 57 + - + 7 )
----
56

query I rowsort
SELECT ALL + - 61 + + + CASE - 3 WHEN - 99 - - - 96 THEN NULL WHEN - 33 THEN + ( - 24 ) ELSE NULL END + 73 AS col1
----
NULL

query I rowsort
SELECT + 55 + - 33 * - 92
----
3091

query II rowsort
SELECT DISTINCT 75 AS col1, 66
----
75
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7519
SELECT ALL 38 + - ( 3 ) DIV - - 78 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL 38 + - ( 3 ) / - - 78 AS col1
----
38

query I rowsort
SELECT 53 + + + 61
----
114

query I rowsort
SELECT - 77 * + - 70
----
5390

query I rowsort
SELECT - NULLIF ( 46, + - 69 * 93 ) + + 10 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL + SUM( 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL + SUM ( 30 ) AS col1
----
30

query I rowsort
SELECT ALL 4 - + 12
----
-8

query III rowsort
SELECT - 53 AS col0, + COALESCE ( + + 79, - 68 * 16 ) * 80 col0, 73 col1
----
-53
6320
73

query I rowsort
SELECT ALL CASE - - 75 WHEN + 44 THEN 19 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT DISTINCT COUNT( * ) - + 22
----
-21

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT COUNT ( * ) - + 22
----
-21

query I rowsort
SELECT ALL + 93 * - ( 92 )
----
-8556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7529
SELECT CAST( NULL AS SIGNED ) + + - NULLIF ( + - SUM( DISTINCT + 94 ), MAX( ALL + ( + ( - - 22 ) ) ) * 71 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7529
SELECT CAST ( NULL AS INTEGER ) + + - NULLIF ( + - SUM ( DISTINCT + 94 ), MAX ( ALL + ( + ( - - 22 ) ) ) * 71 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT COUNT( * ) + + + NULLIF ( + + 72, - - MIN( ALL + 48 ) )
----
73

skipif mysql # not compatible
query I rowsort label-7530
SELECT COUNT ( * ) + + + NULLIF ( + + 72, - - MIN ( ALL + 48 ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT DISTINCT COUNT( * ) * 6 * 60 * - 47
----
-16920

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT COUNT ( * ) * 6 * 60 * - 47
----
-16920

onlyif mysql # aggregate syntax: 
query II rowsort label-7532
SELECT ALL - COUNT( ALL + 97 ) AS col2, + 49 AS col2
----
-1
49

skipif mysql # not compatible
query II rowsort label-7532
SELECT ALL - COUNT ( ALL + 97 ) AS col2, + 49 AS col2
----
-1
49

onlyif mysql # DIV for integer division: 
query II rowsort label-7533
SELECT 44 DIV - 35 AS col2, - 26 AS col2
----
-1
-26

skipif mysql # not compatible
query II rowsort label-7533
SELECT 44 / - 35 AS col2, - 26 AS col2
----
-1
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT ALL MIN( DISTINCT ( - ( + + ( + - 52 ) ) ) ) * 74 AS col1
----
3848

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL MIN ( DISTINCT ( - ( + + ( + - 52 ) ) ) ) * 74 AS col1
----
3848

query I rowsort
SELECT + 16 * - - 90 * - - 38 + + 92 AS col1
----
54812

onlyif mysql # DIV for integer division: 
query I rowsort label-7536
SELECT 86 DIV COALESCE ( - 3, 33 * 80 ) + + + ( + + 83 )
----
55

skipif mysql # not compatible
query I rowsort label-7536
SELECT 86 / COALESCE ( - 3, 33 * 80 ) + + + ( + + 83 )
----
55

query I rowsort
SELECT 69 * 49 AS col1
----
3381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7538
SELECT CAST( NULL AS SIGNED ) * - MIN( DISTINCT + - 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT CAST ( NULL AS INTEGER ) * - MIN ( DISTINCT + - 24 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT MAX( + 79 ) * + + 68 + - 75 - 8 - ( COUNT( * ) ) - 1 / - 61 + - CASE 98 WHEN NULLIF ( + 58, 88 ) * - COUNT( * ) THEN 17 / - 33 WHEN 79 THEN NULL END * + 70 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT MAX ( + 79 ) * + + 68 + - 75 - 8 - ( COUNT ( * ) ) - 1 / - 61 + - CASE 98 WHEN NULLIF ( + 58, 88 ) * - COUNT ( * ) THEN 17 / - 33 WHEN 79 THEN NULL END * + 70 col2
----
NULL

query I rowsort
SELECT 88 - + + 53 + + + 68 + 0 * + + 23 * 32 + - 29
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL - COUNT( * ) + - 96 + - 66 + + + COUNT( * )
----
-162

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL - COUNT ( * ) + - 96 + - 66 + + + COUNT ( * )
----
-162

query II rowsort
SELECT ALL - + 25 + + 60 + - 38 * - - 84 AS col1, + 13
----
-3157
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7543
SELECT - 25 DIV - + ( 43 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7543
SELECT - 25 / - + ( 43 ) AS col1
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( 5, + + 77 ) AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7545
SELECT ALL - 23 DIV + 3
----
-7

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL - 23 / + 3
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT - + SUM( DISTINCT + 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-7546
SELECT - + SUM ( DISTINCT + 97 ) AS col1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7547
SELECT ALL - MIN( DISTINCT - + 61 ) * - 16 * 4 - - - COUNT( - 71 ) - 98 * + 95 * + - COUNT( * ) + - 40 DIV - 70 AS col1
----
5405

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL - MIN ( DISTINCT - + 61 ) * - 16 * 4 - - - COUNT ( - 71 ) - 98 * + 95 * + - COUNT ( * ) + - 40 / - 70 AS col1
----
5405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7548
SELECT ALL + - 41 * + + 77 + + COUNT( * ) * - - CAST( + + 84 AS SIGNED ) * + - 81
----
-9961

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL + - 41 * + + 77 + + COUNT ( * ) * - - CAST ( + + 84 AS INTEGER ) * + - 81
----
-9961

query I rowsort
SELECT DISTINCT + COALESCE ( + 95, + 36 + 11 ) * - + 44 AS col2
----
-4180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7550
SELECT 92 + COUNT( * ) DIV COUNT( * ) DIV 64
----
92

skipif mysql # not compatible
query I rowsort label-7550
SELECT 92 + COUNT ( * ) / COUNT ( * ) / 64
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7551
SELECT ( - 83 ) * + - 67 AS col2, - 49 * - COUNT( * ) * 43 AS col1
----
5561
2107

skipif mysql # not compatible
query II rowsort label-7551
SELECT ( - 83 ) * + - 67 AS col2, - 49 * - COUNT ( * ) * 43 AS col1
----
5561
2107

query I rowsort
SELECT 8 + - + 79 AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7553
SELECT COALESCE ( + COUNT( * ), - 38 + - + 59 * - 48 - - + 64 * + - 49 ) * 65 AS col2, 91 * + - CAST( NULL AS SIGNED ) * COUNT( * )
----
65
NULL

skipif mysql # not compatible
query II rowsort label-7553
SELECT COALESCE ( + COUNT ( * ), - 38 + - + 59 * - 48 - - + 64 * + - 49 ) * 65 AS col2, 91 * + - CAST ( NULL AS INTEGER ) * COUNT ( * )
----
65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT DISTINCT SUM( ALL 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-7554
SELECT DISTINCT SUM ( ALL 19 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT + MAX( DISTINCT + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-7555
SELECT + MAX ( DISTINCT + 9 )
----
9

query I rowsort
SELECT ALL 33 * + - 37
----
-1221

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT 43 - + MAX( + ( + 68 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-7557
SELECT 43 - + MAX ( + ( + 68 ) )
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7558
SELECT - 99 DIV 22 + + 74 AS col0, COUNT( * )
----
70
1

skipif mysql # not compatible
query II rowsort label-7558
SELECT - 99 / 22 + + 74 AS col0, COUNT ( * )
----
70
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT DISTINCT - 95 * + ( 73 ) + + + COUNT( * )
----
-6934

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT - 95 * + ( 73 ) + + + COUNT ( * )
----
-6934

query I rowsort
SELECT + COALESCE ( - 75, - 95 )
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-7561
SELECT COUNT( * ) col0, - 18 + + 48 col2
----
1
30

skipif mysql # not compatible
query II rowsort label-7561
SELECT COUNT ( * ) col0, - 18 + + 48 col2
----
1
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7562
SELECT + MIN( ALL - CAST( - 93 AS SIGNED ) ) * - + 26 AS col0
----
-2418

skipif mysql # not compatible
query I rowsort label-7562
SELECT + MIN ( ALL - CAST ( - 93 AS INTEGER ) ) * - + 26 AS col0
----
-2418

query I rowsort
SELECT DISTINCT - 18 * - 92 + 43 AS col2
----
1699

onlyif mysql # aggregate syntax: 
query II rowsort label-7564
SELECT + COUNT( * ) col2, SUM( ALL + + 62 ) + - 23 AS col1
----
1
39

skipif mysql # not compatible
query II rowsort label-7564
SELECT + COUNT ( * ) col2, SUM ( ALL + + 62 ) + - 23 AS col1
----
1
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7565
SELECT ALL - 73 * - ( + 95 ) + - 52 DIV + + COUNT( * )
----
6883

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL - 73 * - ( + 95 ) + - 52 / + + COUNT ( * )
----
6883

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT DISTINCT + + SUM( - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT + + SUM ( - 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT DISTINCT + COUNT( DISTINCT - 95 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT + COUNT ( DISTINCT - 95 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT + - ( + 55 ) + - COUNT( * ) * + + 88 AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-7568
SELECT + - ( + 55 ) + - COUNT ( * ) * + + 88 AS col2
----
-143

query I rowsort
SELECT + 81 * - - 37 * - - 50 AS col1
----
149850

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT - - 83 * 44 + - + COUNT( * ) * + - 84
----
3736

skipif mysql # not compatible
query I rowsort label-7570
SELECT - - 83 * 44 + - + COUNT ( * ) * + - 84
----
3736

onlyif mysql # aggregate syntax: 
query II rowsort label-7571
SELECT - - 97 + ( 58 ) col1, NULLIF ( + 25, SUM( + 37 ) ) - - + 23
----
155
48

skipif mysql # not compatible
query II rowsort label-7571
SELECT - - 97 + ( 58 ) col1, NULLIF ( + 25, SUM ( + 37 ) ) - - + 23
----
155
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT DISTINCT - COUNT( * ) - + 6
----
-7

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT - COUNT ( * ) - + 6
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-7573
SELECT DISTINCT + 56 col0, MAX( ALL + - ( - + 32 ) ) AS col2
----
56
32

skipif mysql # not compatible
query II rowsort label-7573
SELECT DISTINCT + 56 col0, MAX ( ALL + - ( - + 32 ) ) AS col2
----
56
32

query I rowsort
SELECT ALL - 0 * ( + 90 )
----
0

query I rowsort
SELECT + 83 * - 57 AS col1
----
-4731

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7576
SELECT - CASE + COUNT( * ) WHEN + 41 THEN NULL WHEN + + 31 THEN + 92 * 75 DIV - + 50 * - - 66 ELSE - + 68 END + - + ( COUNT( DISTINCT ( 5 ) ) ) + 32 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7576
SELECT - CASE + COUNT ( * ) WHEN + 41 THEN NULL WHEN + + 31 THEN + 92 * 75 / - + 50 * - - 66 ELSE - + 68 END + - + ( COUNT ( DISTINCT ( 5 ) ) ) + 32 AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7577
SELECT - - NULLIF ( + 59, - - ( - - 39 ) DIV + CAST( NULL AS SIGNED ) DIV - 9 DIV ( 47 ) DIV + 45 + 41 - 48 ) DIV COUNT( * ) col2
----
59

skipif mysql # not compatible
query I rowsort label-7577
SELECT - - NULLIF ( + 59, - - ( - - 39 ) / + CAST ( NULL AS INTEGER ) / - 9 / ( 47 ) / + 45 + 41 - 48 ) / COUNT ( * ) col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-7578
SELECT DISTINCT MIN( 84 ) col1, 25 + + 64
----
84
89

skipif mysql # not compatible
query II rowsort label-7578
SELECT DISTINCT MIN ( 84 ) col1, 25 + + 64
----
84
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7579
SELECT ALL - COUNT( - + 47 ) DIV - CAST( + COALESCE ( SUM( ALL - 9 ), + 10 * - 23 ) AS SIGNED ) * + 96
----
0

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL - COUNT ( - + 47 ) / - CAST ( + COALESCE ( SUM ( ALL - 9 ), + 10 * - 23 ) AS INTEGER ) * + 96
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7580
SELECT - 86 DIV - 58 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7580
SELECT - 86 / - 58 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT ALL + COUNT( * ) + - 70
----
-69

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL + COUNT ( * ) + - 70
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL CASE - + 29 WHEN - - 13 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL CASE - + 29 WHEN - - 13 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL 33 + + 41
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7584
SELECT ALL - 4 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL - 4 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 9 * - - 80 * + 15 AS col0
----
-10800

query I rowsort
SELECT + 15 + COALESCE ( 26, 46 + 36 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-7587
SELECT - 79 * + COUNT( * ) AS col2, - 44 AS col1
----
-79
-44

skipif mysql # not compatible
query II rowsort label-7587
SELECT - 79 * + COUNT ( * ) AS col2, - 44 AS col1
----
-79
-44

query I rowsort
SELECT + COALESCE ( - 92, - 65, - + 42 + - 54 + + + 12 + - 91 )
----
-92

query II rowsort
SELECT ALL + 14 AS col1, 17
----
14
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7590
SELECT DISTINCT - 74 DIV - + 65 + - 55 * - 27 * + + 62 AS col1
----
92071

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT - 74 / - + 65 + - 55 * - 27 * + + 62 AS col1
----
92071

onlyif mysql # aggregate syntax: 
query II rowsort label-7591
SELECT DISTINCT + 26, 63 + - + ( 16 ) + + + COUNT( * ) + - 59 AS col1
----
26
-11

skipif mysql # not compatible
query II rowsort label-7591
SELECT DISTINCT + 26, 63 + - + ( 16 ) + + + COUNT ( * ) + - 59 AS col1
----
26
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-7592
SELECT ALL - 41 DIV ( - ( + 71 ) ) + + 86
----
86

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL - 41 / ( - ( + 71 ) ) + + 86
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT DISTINCT + ( + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT + ( + COUNT ( * ) ) col1
----
1

query II rowsort
SELECT + 14, 9 AS col0
----
14
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7595
SELECT DISTINCT 59 DIV - 89 * + 4 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT 59 / - 89 * + 4 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT + 96 * 60 + 39 * - COUNT( * ) + - 61 + - COUNT( * ) + - - 14
----
5673

skipif mysql # not compatible
query I rowsort label-7596
SELECT + 96 * 60 + 39 * - COUNT ( * ) + - 61 + - COUNT ( * ) + - - 14
----
5673

query I rowsort
SELECT + ( + 88 ) * - 54 AS col2
----
-4752

query I rowsort
SELECT + + 62 + - 15
----
47

query III rowsort
SELECT + - 28 col2, - 19 - 91 * 15 AS col1, - 4
----
-28
-1384
-4

query II rowsort
SELECT + + 5 AS col2, - 7
----
5
-7

query I rowsort
SELECT ALL 44 * + 40
----
1760

query II rowsort
SELECT + 71 AS col2, - COALESCE ( + ( + 64 ), - - 64 ) AS col0
----
71
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT + COUNT( * ) * - ( 99 ) * - 33 + 83 + 50 AS col2
----
3400

skipif mysql # not compatible
query I rowsort label-7603
SELECT + COUNT ( * ) * - ( 99 ) * - 33 + 83 + 50 AS col2
----
3400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7604
SELECT - CASE + ( + - 0 ) WHEN 25 + + 47 THEN + 99 WHEN + + 61 THEN NULL ELSE - CASE CASE + + 57 WHEN + 20 THEN MIN( + 26 ) * ( COALESCE ( CASE 82 WHEN + 40 THEN 79 + + 61 WHEN + 8 THEN + COUNT( * ) + COALESCE ( - 24, + ( 19 ), + COUNT( * ) ) * - CAST( NULL AS DECIMAL ) ELSE NULL END, COUNT( * ) ) - 17 ) + 39 ELSE NULL END WHEN - 29 / 55 THEN 61 WHEN CAST( - 86 AS SIGNED ) + - ( ( COUNT( * ) ) + 88 ) THEN + 90 / - 70 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT - CASE + ( + - 0 ) WHEN 25 + + 47 THEN + 99 WHEN + + 61 THEN NULL ELSE - CASE CASE + + 57 WHEN + 20 THEN MIN ( + 26 ) * ( COALESCE ( CASE 82 WHEN + 40 THEN 79 + + 61 WHEN + 8 THEN + COUNT ( * ) + COALESCE ( - 24, + ( 19 ), + COUNT ( * ) ) * - CAST ( NULL AS REAL ) ELSE NULL END, COUNT ( * ) ) - 17 ) + 39 ELSE NULL END WHEN - 29 / 55 THEN 61 WHEN CAST ( - 86 AS INTEGER ) + - ( ( COUNT ( * ) ) + 88 ) THEN + 90 / - 70 END END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7605
SELECT - COUNT( * ) AS col2, 14 + + NULLIF ( - 27, - 29 ) AS col0
----
-1
-13

skipif mysql # not compatible
query II rowsort label-7605
SELECT - COUNT ( * ) AS col2, 14 + + NULLIF ( - 27, - 29 ) AS col0
----
-1
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7606
SELECT - CAST( 35 AS SIGNED ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-7606
SELECT - CAST ( 35 AS INTEGER ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT - - COUNT( * ) * + 45 * - 48 AS col2
----
-2160

skipif mysql # not compatible
query I rowsort label-7607
SELECT - - COUNT ( * ) * + 45 * - 48 AS col2
----
-2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT - CAST( - AVG ( - 3 ) AS SIGNED ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7608
SELECT - CAST ( - AVG ( - 3 ) AS INTEGER ) AS col2
----
-3

query I rowsort
SELECT DISTINCT 34 * - 89 * - 58 * - - 78
----
13689624

query I rowsort
SELECT + 45 * - 37 col1
----
-1665

query I rowsort
SELECT DISTINCT 69 * + - 93 AS col1
----
-6417

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL ( COUNT( * ) ) + COUNT( * ) * 98 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL ( COUNT ( * ) ) + COUNT ( * ) * 98 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT - COUNT( * ) - 30 * - - 53 * 48 + - - 96 AS col1
----
-76225

skipif mysql # not compatible
query I rowsort label-7613
SELECT - COUNT ( * ) - 30 * - - 53 * 48 + - - 96 AS col1
----
-76225

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT + 9 + - COUNT( * ) - + + 5
----
3

skipif mysql # not compatible
query I rowsort label-7614
SELECT + 9 + - COUNT ( * ) - + + 5
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7615
SELECT - 15 * + - COUNT( * ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7615
SELECT - 15 * + - COUNT ( * ) * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 63 + - + 81 * - 96
----
7713

query I rowsort
SELECT + 86 + - - 74 * + 97 col1
----
7264

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT 33 + - CASE - + SUM( DISTINCT + 4 ) WHEN - - 60 THEN NULL WHEN + + 96 / 53 THEN 51 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7618
SELECT 33 + - CASE - + SUM ( DISTINCT + 4 ) WHEN - - 60 THEN NULL WHEN + + 96 / 53 THEN 51 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT 43 + + 75 + - 32 + CASE COUNT( * ) WHEN 16 THEN NULL WHEN 74 THEN - + 90 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7619
SELECT 43 + + 75 + - 32 + CASE COUNT ( * ) WHEN 16 THEN NULL WHEN 74 THEN - + 90 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7620
SELECT ALL + 27 DIV 25
----
1

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL + 27 / 25
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT 62 + + 24 + - 3 * + SUM( - 17 ) * + 77 - + 74 - 5 * - 33
----
4104

skipif mysql # not compatible
query I rowsort label-7621
SELECT 62 + + 24 + - 3 * + SUM ( - 17 ) * + 77 - + 74 - 5 * - 33
----
4104

query I rowsort
SELECT 68 * + 36
----
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT ALL + 28 * - - COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL + 28 * - - COUNT ( * ) AS col1
----
28

query I rowsort
SELECT 0 * + 10 + + 75 * 94 + - 51 AS col0
----
6999

query I rowsort
SELECT DISTINCT - ( - - 90 ) AS col1
----
-90

query I rowsort
SELECT DISTINCT - 55 * 74
----
-4070

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7627
SELECT - MAX( + - 30 ) / - - CASE - - 84 WHEN - 89 THEN 14 WHEN + 84 THEN NULL ELSE NULL END * - - COALESCE ( COUNT( * ), + + ( + 23 ) + - 23 / ( - 15 + - 60 ) ) / + 25 - CASE + 43 WHEN - COALESCE ( - 25, 5 ) + 69 THEN NULL WHEN 9 * + MIN( - 73 ) THEN + 55 + 54 * CAST( NULL AS DECIMAL ) END + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7627
SELECT - MAX ( + - 30 ) / - - CASE - - 84 WHEN - 89 THEN 14 WHEN + 84 THEN NULL ELSE NULL END * - - COALESCE ( COUNT ( * ), + + ( + 23 ) + - 23 / ( - 15 + - 60 ) ) / + 25 - CASE + 43 WHEN - COALESCE ( - 25, 5 ) + 69 THEN NULL WHEN 9 * + MIN ( - 73 ) THEN + 55 + 54 * CAST ( NULL AS REAL ) END + 88 AS col2
----
NULL

query I rowsort
SELECT - 5 * + 33
----
-165

query I rowsort
SELECT + 56 * 0 + + 62 AS col1
----
62

query I rowsort
SELECT ALL - 66 - + 69
----
-135

query I rowsort
SELECT - 72 * - + 67 AS col1
----
4824

onlyif mysql # DIV for integer division: 
query I rowsort label-7632
SELECT ALL - 44 DIV + 97 * 81 * + 89 * + 38
----
0

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL - 44 / + 97 * 81 * + 89 * + 38
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7633
SELECT ( + - ( + CASE + - 5 WHEN - + 94 / CAST( NULL AS SIGNED ) THEN SUM( 63 ) ELSE NULL END ) ) * - CASE + 35 WHEN + 49 + - + 78 THEN 94 * 56 ELSE + 19 END + - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7633
SELECT ( + - ( + CASE + - 5 WHEN - + 94 / CAST ( NULL AS INTEGER ) THEN SUM ( 63 ) ELSE NULL END ) ) * - CASE + 35 WHEN + 49 + - + 78 THEN 94 * 56 ELSE + 19 END + - 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT MIN( DISTINCT 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-7634
SELECT MIN ( DISTINCT 80 ) AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7635
SELECT 35 DIV - ( + + 66 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7635
SELECT 35 / - ( + + 66 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7636
SELECT ALL ( 36 ) + NULLIF ( + 96, - 29 ) DIV - + 86 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL ( 36 ) + NULLIF ( + 96, - 29 ) / - + 86 AS col0
----
35

query I rowsort
SELECT 22 + - - 23 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT ALL 18 + 42 * - COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL 18 + 42 * - COUNT ( * ) AS col0
----
-24

query I rowsort
SELECT - 88 + 99 * - 21
----
-2167

query I rowsort
SELECT DISTINCT + 32 * - 27 - 6 + 82 AS col0
----
-788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7641
SELECT ALL CAST( + + MIN( + + 74 ) AS SIGNED ) + - 8
----
66

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL CAST ( + + MIN ( + + 74 ) AS INTEGER ) + - 8
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7642
SELECT ( 94 ) + + - 42 + + 63 DIV 31 * - NULLIF ( + + 12, 78 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7642
SELECT ( 94 ) + + - 42 + + 63 / 31 * - NULLIF ( + + 12, 78 ) AS col1
----
28

query I rowsort
SELECT ALL 28 + 78
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-7644
SELECT 83 AS col2, + MIN( + 21 ) * + 57 col1
----
83
1197

skipif mysql # not compatible
query II rowsort label-7644
SELECT 83 AS col2, + MIN ( + 21 ) * + 57 col1
----
83
1197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7645
SELECT ALL CAST( NULL AS SIGNED ) + + 39 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL CAST ( NULL AS INTEGER ) + + 39 col1
----
NULL

query II rowsort
SELECT ALL 44 col2, 26 AS col2
----
44
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT COUNT( * ) * + ( + 3 ) * 4 * - 25 col2
----
-300

skipif mysql # not compatible
query I rowsort label-7647
SELECT COUNT ( * ) * + ( + 3 ) * 4 * - 25 col2
----
-300

query I rowsort
SELECT 72 + 33 AS col1
----
105

query I rowsort
SELECT ALL 74 + 24
----
98

query II rowsort
SELECT 75, + ( - 80 ) AS col2
----
75
-80

query I rowsort
SELECT ALL 50 * - 5
----
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT CASE + 43 WHEN + - 5 * - - 10 - + - COUNT( * ) * 83 THEN NULL WHEN - NULLIF ( - + 64, 11 ) THEN NULL ELSE ( - 34 ) END * - + 27 + COALESCE ( 83, + ( NULLIF ( 41, 58 + 67 * - 10 ) ), + ( 17 ) + 79 ) - + NULLIF ( - SUM( 7 ), 75 )
----
1008

skipif mysql # not compatible
query I rowsort label-7652
SELECT CASE + 43 WHEN + - 5 * - - 10 - + - COUNT ( * ) * 83 THEN NULL WHEN - NULLIF ( - + 64, 11 ) THEN NULL ELSE ( - 34 ) END * - + 27 + COALESCE ( 83, + ( NULLIF ( 41, 58 + 67 * - 10 ) ), + ( 17 ) + 79 ) - + NULLIF ( - SUM ( 7 ), 75 )
----
1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7653
SELECT ALL CASE + COUNT( * ) WHEN 48 * - COUNT( * ) THEN NULL WHEN 90 * 40 - - 32 THEN NULLIF ( - + CAST( - MAX( DISTINCT - 27 ) AS SIGNED ), - + 45 ) DIV COUNT( * ) ELSE + 19 END - - 54
----
73

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL CASE + COUNT ( * ) WHEN 48 * - COUNT ( * ) THEN NULL WHEN 90 * 40 - - 32 THEN NULLIF ( - + CAST ( - MAX ( DISTINCT - 27 ) AS INTEGER ), - + 45 ) / COUNT ( * ) ELSE + 19 END - - 54
----
73

query II rowsort
SELECT ALL 15, 32 * - 96 AS col1
----
15
-3072

query I rowsort
SELECT ALL 14 * 82
----
1148

query I rowsort
SELECT DISTINCT 73 - - 14
----
87

query II rowsort
SELECT - 22 AS col2, - NULLIF ( + 84, + 65 ) col0
----
-22
-84

query I rowsort
SELECT ALL 8 - + + 81
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7659
SELECT - COUNT( * ) DIV - - 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7659
SELECT - COUNT ( * ) / - - 11 AS col2
----
0

query I rowsort
SELECT DISTINCT - COALESCE ( - - 3, + 24 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7661
SELECT ALL + 79 DIV - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL + 79 / - 88 AS col2
----
0

query I rowsort
SELECT + 69 * - 48
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT ALL - MAX( + 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL - MAX ( + 4 ) AS col1
----
-4

query II rowsort
SELECT DISTINCT - 8, - 51 AS col0
----
-8
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-7665
SELECT - 6 AS col0, 73 * - COUNT( * )
----
-6
-73

skipif mysql # not compatible
query II rowsort label-7665
SELECT - 6 AS col0, 73 * - COUNT ( * )
----
-6
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT MAX( 36 )
----
36

skipif mysql # not compatible
query I rowsort label-7666
SELECT MAX ( 36 )
----
36

query I rowsort
SELECT ALL + CASE 15 WHEN + 65 THEN + + 35 END * - - 54 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7668
SELECT ALL - MAX( 41 ) + + COUNT( - 7 ) - + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL - MAX ( 41 ) + + COUNT ( - 7 ) - + ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + + 90 AS col1, - 23
----
90
-23

query I rowsort
SELECT 6 + 14
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT ALL + - COUNT( * ) * + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL + - COUNT ( * ) * + - COUNT ( * )
----
1

query I rowsort
SELECT ( + - 18 ) * + 83
----
-1494

query I rowsort
SELECT DISTINCT + 72 + - 48
----
24

query II rowsort
SELECT DISTINCT - - 51 AS col0, + 34
----
51
34

onlyif mysql # aggregate syntax: 
query II rowsort label-7675
SELECT ALL - - 28 + + - 60 * - 78, 44 * - ( 6 ) - - + COUNT( * ) AS col0
----
4708
-263

skipif mysql # not compatible
query II rowsort label-7675
SELECT ALL - - 28 + + - 60 * - 78, 44 * - ( 6 ) - - + COUNT ( * ) AS col0
----
4708
-263

query I rowsort
SELECT ALL + 39 * + 38
----
1482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7677
SELECT ALL + MAX( 46 ) + - + COALESCE ( + - 66, + + CAST( 84 AS SIGNED ) + - 18, + + 5, - NULLIF ( 11, CASE + 44 WHEN + + 28 THEN 65 * - 34 - 48 * 17 ELSE + 92 END + 43 ) ) + 14
----
126

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL + MAX ( 46 ) + - + COALESCE ( + - 66, + + CAST ( 84 AS INTEGER ) + - 18, + + 5, - NULLIF ( 11, CASE + 44 WHEN + + 28 THEN 65 * - 34 - 48 * 17 ELSE + 92 END + 43 ) ) + 14
----
126

onlyif mysql # DIV for integer division: 
query II rowsort label-7678
SELECT ALL - 99 + 97 + + 29 * - - 55, 25 DIV - 41 AS col2
----
1593
0

skipif mysql # not compatible
query II rowsort label-7678
SELECT ALL - 99 + 97 + + 29 * - - 55, 25 / - 41 AS col2
----
1593
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7679
SELECT ALL + CAST( NULL AS SIGNED ) * + + 58 * - MIN( 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 58 * - MIN ( 97 )
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - 70, + 91 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT - COUNT( * ) - + + 91 * + 23 * ( 62 ) AS col2
----
-129767

skipif mysql # not compatible
query I rowsort label-7681
SELECT - COUNT ( * ) - + + 91 * + 23 * ( 62 ) AS col2
----
-129767

query I rowsort
SELECT DISTINCT 15 * 89 AS col1
----
1335

query I rowsort
SELECT DISTINCT 33 - + 59
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-7684
SELECT ALL + COUNT( * ) * - 70 AS col0, + 79
----
-70
79

skipif mysql # not compatible
query II rowsort label-7684
SELECT ALL + COUNT ( * ) * - 70 AS col0, + 79
----
-70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT + 74 * - MAX( DISTINCT + 59 )
----
-4366

skipif mysql # not compatible
query I rowsort label-7685
SELECT + 74 * - MAX ( DISTINCT + 59 )
----
-4366

query I rowsort
SELECT + 9 * + 58
----
522

query I rowsort
SELECT + 26 - + + ( 68 )
----
-42

query I rowsort
SELECT - 38 * - 96 AS col1
----
3648

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7689
SELECT + COUNT( * ) * ( 16 ) DIV - 53 AS col2, 30
----
0
30

skipif mysql # not compatible
query II rowsort label-7689
SELECT + COUNT ( * ) * ( 16 ) / - 53 AS col2, 30
----
0
30

query I rowsort
SELECT - CASE - 13 WHEN - 91 + - + 45 + 74 + - - 91 + - 8 - + - 97 THEN + - 11 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 90 + 21 col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT - ( SUM( - - 24 ) ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-7692
SELECT - ( SUM ( - - 24 ) ) AS col0
----
-24

query I rowsort
SELECT + ( 55 ) + - 14 + + 39 + - 37 + + 64 AS col0
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-7694
SELECT ALL + 50 * - - 52 * ( + 78 ) + - + COALESCE ( - + 32, + AVG ( DISTINCT - ( + 84 ) ) ) DIV + - 56
----
202800

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL + 50 * - - 52 * ( + 78 ) + - + COALESCE ( - + 32, + AVG ( DISTINCT - ( + 84 ) ) ) / + - 56
----
202800

query I rowsort
SELECT DISTINCT + ( + + 10 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT + COUNT( * ) * - 26 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-7696
SELECT + COUNT ( * ) * - 26 AS col0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-7697
SELECT - - 73 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-7697
SELECT - - 73 / - 79
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7698
SELECT ALL + + CASE AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) WHEN + 26 THEN NULL WHEN NULLIF ( + + COUNT( * ), + 38 ) THEN NULL ELSE 7 END * + 68 + + ( + - MAX( ALL + 88 ) ) * + + 27 + + + 0 + - 96 DIV - 84 AS col1
----
-1899

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL + + CASE AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) WHEN + 26 THEN NULL WHEN NULLIF ( + + COUNT ( * ), + 38 ) THEN NULL ELSE 7 END * + 68 + + ( + - MAX ( ALL + 88 ) ) * + + 27 + + + 0 + - 96 / - 84 AS col1
----
-1899

query I rowsort
SELECT + + 87 + + + 9 - + - 94
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT + - COUNT( * ) * 21 * - + 51
----
1071

skipif mysql # not compatible
query I rowsort label-7700
SELECT + - COUNT ( * ) * 21 * - + 51
----
1071

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7701
SELECT DISTINCT CAST( NULL AS SIGNED ) DIV - + 96 AS col0, 23 DIV 55 + - 42 AS col1
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-7701
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + 96 AS col0, 23 / 55 + - 42 AS col1
----
NULL
-42

query I rowsort
SELECT DISTINCT - 96 * 71 + 75 + + 68 + + 37 AS col1
----
-6636

query I rowsort
SELECT DISTINCT + + 55 * + 84 AS col2
----
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT ALL - CASE 47 WHEN + 27 THEN - + 80 END * COUNT( * ) + + 94 + 6 + AVG ( ALL 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL - CASE 47 WHEN + 27 THEN - + 80 END * COUNT ( * ) + + 94 + 6 + AVG ( ALL 42 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT - COUNT( * ) * + 83
----
-83

skipif mysql # not compatible
query I rowsort label-7705
SELECT - COUNT ( * ) * + 83
----
-83

query II rowsort
SELECT ALL + 98 AS col2, - 36
----
98
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT COALESCE ( - 84, - MIN( DISTINCT + 43 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-7707
SELECT COALESCE ( - 84, - MIN ( DISTINCT + 43 ) )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT + SUM( DISTINCT 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-7708
SELECT + SUM ( DISTINCT 67 ) AS col0
----
67

query I rowsort
SELECT ALL + ( 74 ) * - 32 - 71
----
-2439

onlyif mysql # aggregate syntax: 
query II rowsort label-7710
SELECT DISTINCT + 59 * + 11 * + 27 AS col2, - COUNT( * ) col0
----
17523
-1

skipif mysql # not compatible
query II rowsort label-7710
SELECT DISTINCT + 59 * + 11 * + 27 AS col2, - COUNT ( * ) col0
----
17523
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7711
SELECT ALL CAST( COALESCE ( - + COUNT( * ), - + COUNT( * ) * + + 59 * - - 98, 97 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL CAST ( COALESCE ( - + COUNT ( * ), - + COUNT ( * ) * + + 59 * - - 98, 97 ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 62 * + + ( - - 76 ) AS col0
----
4712

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT + 41 * - SUM( ALL 13 ) + - 1 AS col1
----
-534

skipif mysql # not compatible
query I rowsort label-7713
SELECT + 41 * - SUM ( ALL 13 ) + - 1 AS col1
----
-534

query II rowsort
SELECT + 3 + + - 89 + + 93 AS col2, 7 col2
----
7
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7715
SELECT - 14 DIV + + 69 * - + 23
----
0

skipif mysql # not compatible
query I rowsort label-7715
SELECT - 14 / + + 69 * - + 23
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7716
SELECT 65 AS col2, - 22 DIV ( - 37 ) * + + 1 * - - 70
----
65
0

skipif mysql # not compatible
query II rowsort label-7716
SELECT 65 AS col2, - 22 / ( - 37 ) * + + 1 * - - 70
----
65
0

query I rowsort
SELECT + 55 + + 28 AS col0
----
83

query I rowsort
SELECT ALL 61 * + 18 AS col1
----
1098

query I rowsort
SELECT ALL - 6 * - + 30 AS col0
----
180

query I rowsort
SELECT ALL 78 * - 20 AS col0
----
-1560

query I rowsort
SELECT DISTINCT - 97 * 55
----
-5335

query II rowsort
SELECT ALL 77 AS col0, 89
----
77
89

query I rowsort
SELECT + 24 * - 73 * + 43 AS col0
----
-75336

query I rowsort
SELECT DISTINCT + ( + 54 ) * 73
----
3942

query I rowsort
SELECT ALL ( + 61 ) + - + 46 + + + 2 col0
----
17

query I rowsort
SELECT - NULLIF ( 12, 27 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7727
SELECT DISTINCT + 22, COUNT( * ) + CAST( 92 AS SIGNED ) AS col1
----
22
93

skipif mysql # not compatible
query II rowsort label-7727
SELECT DISTINCT + 22, COUNT ( * ) + CAST ( 92 AS INTEGER ) AS col1
----
22
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT ALL + 96 + + COUNT( * ) + 30 + 23
----
150

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL + 96 + + COUNT ( * ) + 30 + 23
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL - 38 + + COUNT( * ) * CASE + NULLIF ( - 59, + 3 * - 27 + + + ( 84 ) ) WHEN 77 THEN 25 + CASE - COUNT( * ) WHEN + 42 * - 98 THEN NULL WHEN 52 THEN NULL WHEN + 4 THEN NULL ELSE 43 END WHEN 60 THEN - 93 ELSE COUNT( * ) END + 32
----
-5

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL - 38 + + COUNT ( * ) * CASE + NULLIF ( - 59, + 3 * - 27 + + + ( 84 ) ) WHEN 77 THEN 25 + CASE - COUNT ( * ) WHEN + 42 * - 98 THEN NULL WHEN 52 THEN NULL WHEN + 4 THEN NULL ELSE 43 END WHEN 60 THEN - 93 ELSE COUNT ( * ) END + 32
----
-5

query I rowsort
SELECT + - 33 - 74
----
-107

query I rowsort
SELECT + + 58 - + 31
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7732
SELECT ALL + CAST( - MIN( - 28 ) AS SIGNED ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL + CAST ( - MIN ( - 28 ) AS INTEGER ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT NULLIF ( 11, + ( - AVG ( DISTINCT 65 ) ) * + + 30 + COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-7733
SELECT NULLIF ( 11, + ( - AVG ( DISTINCT 65 ) ) * + + 30 + COUNT ( * ) )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7734
SELECT ALL + 85 DIV - + 64 + 70 + + COALESCE ( 83, - 58 ) + + - 53 * - 50 + + 75 - - 2
----
2879

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL + 85 / - + 64 + 70 + + COALESCE ( 83, - 58 ) + + - 53 * - 50 + + 75 - - 2
----
2879

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7735
SELECT ALL SUM( DISTINCT + CAST( 18 AS SIGNED ) ) * 75 AS col1
----
1350

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL SUM ( DISTINCT + CAST ( 18 AS INTEGER ) ) * 75 AS col1
----
1350

onlyif mysql # DIV for integer division: 
query I rowsort label-7736
SELECT ALL - 42 DIV - 83 * + 93 + + 69 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL - 42 / - 83 * + 93 + + 69 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT DISTINCT + COUNT( * ) * ( + 99 )
----
99

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT + COUNT ( * ) * ( + 99 )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7738
SELECT DISTINCT - 99 DIV - + 78 + + 36
----
37

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT - 99 / - + 78 + + 36
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT ALL - COUNT( DISTINCT + - 56 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL - COUNT ( DISTINCT + - 56 ) AS col0
----
-1

query I rowsort
SELECT ALL 57 - - 59 + 66 AS col0
----
182

query I rowsort
SELECT 37 * + + 13 * 72 * + - ( + - 21 )
----
727272

onlyif mysql # aggregate syntax: 
query II rowsort label-7742
SELECT 72 * - + 69 AS col0, MIN( DISTINCT - 18 )
----
-4968
-18

skipif mysql # not compatible
query II rowsort label-7742
SELECT 72 * - + 69 AS col0, MIN ( DISTINCT - 18 )
----
-4968
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7743
SELECT CAST( NULL AS SIGNED ) + 43 + + - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT CAST ( NULL AS INTEGER ) + 43 + + - 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT MAX( - + 15 ) * 25 AS col0
----
-375

skipif mysql # not compatible
query I rowsort label-7744
SELECT MAX ( - + 15 ) * 25 AS col0
----
-375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7745
SELECT ALL COUNT( * ) DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL COUNT ( * ) / + 79
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7746
SELECT DISTINCT - COUNT( * ) AS col1, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-7746
SELECT DISTINCT - COUNT ( * ) AS col1, - COUNT ( * )
----
-1
-1

query I rowsort
SELECT ALL + 9 * + - 73 AS col1
----
-657

query II rowsort
SELECT + 99 AS col2, + 37 AS col0
----
99
37

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7749
SELECT ALL - 13, CAST( NULL AS DECIMAL ) - 15 AS col0
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-7749
SELECT ALL - 13, CAST ( NULL AS REAL ) - 15 AS col0
----
-13
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7750
SELECT ALL + 82 * 86 AS col0, - COUNT( * ) AS col1
----
7052
-1

skipif mysql # not compatible
query II rowsort label-7750
SELECT ALL + 82 * 86 AS col0, - COUNT ( * ) AS col1
----
7052
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7751
SELECT CASE + - 50 WHEN + CAST( MAX( DISTINCT - - 14 ) AS SIGNED ) THEN NULL ELSE 6 END * MAX( DISTINCT + 99 )
----
594

skipif mysql # not compatible
query I rowsort label-7751
SELECT CASE + - 50 WHEN + CAST ( MAX ( DISTINCT - - 14 ) AS INTEGER ) THEN NULL ELSE 6 END * MAX ( DISTINCT + 99 )
----
594

query I rowsort
SELECT 87 * 19
----
1653

query II rowsort
SELECT 91 AS col1, - 18 AS col0
----
91
-18

query II rowsort
SELECT 29, 78 - 69 AS col2
----
29
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT ALL - 10 * - + MAX( ALL - 58 ) * - 2 + - 85
----
1075

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL - 10 * - + MAX ( ALL - 58 ) * - 2 + - 85
----
1075

query II rowsort
SELECT - 62 AS col2, - ( + - 83 )
----
-62
83

query II rowsort
SELECT 37 AS col2, 60 AS col0
----
37
60

query I rowsort
SELECT 77 - + 87
----
-10

query II rowsort
SELECT ALL 67, - 87 * - 36 AS col0
----
67
3132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7760
SELECT DISTINCT 90 + - AVG ( ALL - 80 ) + - 72 * + CAST( NULL AS SIGNED ) * 23 AS col1, - 18, 6 * - - 83 + + COUNT( DISTINCT - ( + 81 ) ) - + 1 + 65 AS col2
----
NULL
-18
563

skipif mysql # not compatible
query III rowsort label-7760
SELECT DISTINCT 90 + - AVG ( ALL - 80 ) + - 72 * + CAST ( NULL AS INTEGER ) * 23 AS col1, - 18, 6 * - - 83 + + COUNT ( DISTINCT - ( + 81 ) ) - + 1 + 65 AS col2
----
NULL
-18
563

query I rowsort
SELECT ALL - 10 + 22 + 55 col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT ALL + 11 + 7 * - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL + 11 + 7 * - COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7763
SELECT ALL 12 col2, - COUNT( * ) * + 15
----
12
-15

skipif mysql # not compatible
query II rowsort label-7763
SELECT ALL 12 col2, - COUNT ( * ) * + 15
----
12
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT MAX( + 5 ) - + 82
----
-77

skipif mysql # not compatible
query I rowsort label-7764
SELECT MAX ( + 5 ) - + 82
----
-77

query I rowsort
SELECT 65 + - 59 + 28
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7766
SELECT 12 + 91 + COUNT( * ) + - + SUM( DISTINCT - CAST( + 90 AS SIGNED ) ) * - - 93
----
8474

skipif mysql # not compatible
query I rowsort label-7766
SELECT 12 + 91 + COUNT ( * ) + - + SUM ( DISTINCT - CAST ( + 90 AS INTEGER ) ) * - - 93
----
8474

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT DISTINCT - + 59 * + 43 - COUNT( * ) AS col2
----
-2538

skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT - + 59 * + 43 - COUNT ( * ) AS col2
----
-2538

onlyif mysql # aggregate syntax: 
query III rowsort label-7768
SELECT - COUNT( * ) AS col0, - COUNT( * ) AS col0, + - 7
----
-1
-1
-7

skipif mysql # not compatible
query III rowsort label-7768
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) AS col0, + - 7
----
-1
-1
-7

query I rowsort
SELECT ALL - 32 + + 20 * ( 49 ) AS col2
----
948

query I rowsort
SELECT ALL - + 21 * 70 AS col2
----
-1470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7771
SELECT + MIN( ALL + 78 ) DIV CAST( - 64 AS SIGNED ) DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-7771
SELECT + MIN ( ALL + 78 ) / CAST ( - 64 AS INTEGER ) / + 55
----
0

query I rowsort
SELECT + 5 * - 46 AS col2
----
-230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7773
SELECT DISTINCT COUNT( * ) DIV 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7773
SELECT DISTINCT COUNT ( * ) / 70 AS col2
----
0

query II rowsort
SELECT + - 4, - 40 AS col0
----
-4
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT 91 + 85 + + MAX( DISTINCT - 98 ) + - ( COUNT( * ) ) * COUNT( * ) * - 5
----
83

skipif mysql # not compatible
query I rowsort label-7775
SELECT 91 + 85 + + MAX ( DISTINCT - 98 ) + - ( COUNT ( * ) ) * COUNT ( * ) * - 5
----
83

query I rowsort
SELECT 46 * 30
----
1380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7777
SELECT ALL - SUM( - ( - - CAST( + 36 AS SIGNED ) ) ) col1
----
36

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL - SUM ( - ( - - CAST ( + 36 AS INTEGER ) ) ) col1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7778
SELECT ALL - CAST( - 85 AS SIGNED ) AS col2, - 70
----
85
-70

skipif mysql # not compatible
query II rowsort label-7778
SELECT ALL - CAST ( - 85 AS INTEGER ) AS col2, - 70
----
85
-70

query II rowsort
SELECT DISTINCT 86 * - + 51 col1, 46 * + - 55 AS col1
----
-4386
-2530

query I rowsort
SELECT ALL 4 * - - 41 AS col2
----
164

query II rowsort
SELECT ALL 15 * + 75 * - 81, - 40 col2
----
-91125
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT SUM( DISTINCT + 68 ) * - COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-7782
SELECT SUM ( DISTINCT + 68 ) * - COUNT ( * ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT CASE + COUNT( * ) WHEN - 4 THEN + 18 / 16 WHEN - 62 THEN NULL WHEN + ( + ( + + ( - - COALESCE ( + COUNT( * ), + 37, + + 57 ) ) ) ) THEN NULL ELSE + - 22 END * - 64 + - 99 * - - 30 + + AVG ( ALL 33 ) * 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT CASE + COUNT ( * ) WHEN - 4 THEN + 18 / 16 WHEN - 62 THEN NULL WHEN + ( + ( + + ( - - COALESCE ( + COUNT ( * ), + 37, + + 57 ) ) ) ) THEN NULL ELSE + - 22 END * - 64 + - 99 * - - 30 + + AVG ( ALL 33 ) * 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT + COUNT( * ) * - SUM( 16 ) + - - 0
----
-16

skipif mysql # not compatible
query I rowsort label-7784
SELECT + COUNT ( * ) * - SUM ( 16 ) + - - 0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7785
SELECT ALL COUNT( * ) DIV - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL COUNT ( * ) / - + COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7786
SELECT ALL 49 + - + MIN( - + 88 ) + + - 3 + - 90 + - - CAST( 3 AS SIGNED ) * + 93 * 22 * + 64 + - - 91 AS col2
----
392967

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL 49 + - + MIN ( - + 88 ) + + - 3 + - 90 + - - CAST ( 3 AS INTEGER ) * + 93 * 22 * + 64 + - - 91 AS col2
----
392967

query I rowsort
SELECT 97 * - 34 AS col2
----
-3298

query I rowsort
SELECT ALL - 79 + 64 * + ( - - 19 )
----
1137

query I rowsort
SELECT 3 + + - 42 col0
----
-39

query I rowsort
SELECT 12 + - 24 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-7791
SELECT 1 + - 65 AS col0, - 54 * - 78 + - 43 * + + 12 * COUNT( * )
----
-64
3696

skipif mysql # not compatible
query II rowsort label-7791
SELECT 1 + - 65 AS col0, - 54 * - 78 + - 43 * + + 12 * COUNT ( * )
----
-64
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT ALL COUNT( * ) + + 17 * + 0 * + - 36 + 77 + 98 + + ( + 50 ) + - COALESCE ( - ( 80 ), - COUNT( - ( 53 ) ) * + 92 ) * + 67 + - 5 + 79 * 38 AS col2
----
8583

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL COUNT ( * ) + + 17 * + 0 * + - 36 + 77 + 98 + + ( + 50 ) + - COALESCE ( - ( 80 ), - COUNT ( - ( 53 ) ) * + 92 ) * + 67 + - 5 + 79 * 38 AS col2
----
8583

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7793
SELECT + CAST( 89 AS SIGNED ) col2, - 89 AS col0
----
89
-89

skipif mysql # not compatible
query II rowsort label-7793
SELECT + CAST ( 89 AS INTEGER ) col2, - 89 AS col0
----
89
-89

query I rowsort
SELECT - 47 + 46 col2
----
-1

query I rowsort
SELECT ALL + 96 + + 81 * + 91 * + 86
----
634002

query I rowsort
SELECT - + 34 col0
----
-34

query I rowsort
SELECT DISTINCT + 69 + - - 79 * + + 76 AS col0
----
6073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7798
SELECT DISTINCT - CASE - - 71 WHEN - + 33 / 3 * + - 38 + - 78 THEN - ( + 37 ) WHEN NULLIF ( - 40, + CASE - 75 WHEN + - 19 / + 44 * CAST( - + 37 AS SIGNED ) THEN NULL WHEN + - MAX( + 12 ) + + 82 THEN NULL ELSE + 90 END + - 91 ) THEN NULL WHEN 51 THEN NULL ELSE + COUNT( * ) END + + 86 * 76 col2
----
6535

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT - CASE - - 71 WHEN - + 33 / 3 * + - 38 + - 78 THEN - ( + 37 ) WHEN NULLIF ( - 40, + CASE - 75 WHEN + - 19 / + 44 * CAST ( - + 37 AS INTEGER ) THEN NULL WHEN + - MAX ( + 12 ) + + 82 THEN NULL ELSE + 90 END + - 91 ) THEN NULL WHEN 51 THEN NULL ELSE + COUNT ( * ) END + + 86 * 76 col2
----
6535

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT ALL + COUNT( DISTINCT 93 ) - 70 col0
----
-69

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL + COUNT ( DISTINCT 93 ) - 70 col0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-7800
SELECT + 36 * + - COUNT( * ), COUNT( * ) * + 33 AS col0
----
-36
33

skipif mysql # not compatible
query II rowsort label-7800
SELECT + 36 * + - COUNT ( * ), COUNT ( * ) * + 33 AS col0
----
-36
33

query I rowsort
SELECT ALL NULLIF ( - - 31, - 7 ) AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7802
SELECT CASE COUNT( * ) WHEN + - CAST( NULL AS SIGNED ) THEN COUNT( * ) * NULLIF ( + 64, + COUNT( * ) + 98 ) WHEN + 82 THEN NULL ELSE - - 24 + 55 * + 26 - COUNT( * ) * + 0 END
----
1454

skipif mysql # not compatible
query I rowsort label-7802
SELECT CASE COUNT ( * ) WHEN + - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) * NULLIF ( + 64, + COUNT ( * ) + 98 ) WHEN + 82 THEN NULL ELSE - - 24 + 55 * + 26 - COUNT ( * ) * + 0 END
----
1454

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT DISTINCT - ( + - COUNT( + COALESCE ( + 4, - 15, - - 52 ) ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT - ( + - COUNT ( + COALESCE ( + 4, - 15, - - 52 ) ) ) col1
----
1

query I rowsort
SELECT ALL + 95 - 97 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7805
SELECT - COUNT( * ) * + - 52 AS col1, + 65
----
52
65

skipif mysql # not compatible
query II rowsort label-7805
SELECT - COUNT ( * ) * + - 52 AS col1, + 65
----
52
65

query I rowsort
SELECT - 16 - - - 17 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT - + COUNT( + 43 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7807
SELECT - + COUNT ( + 43 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL + - 89 * + MIN( ALL + - 21 )
----
1869

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL + - 89 * + MIN ( ALL + - 21 )
----
1869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7809
SELECT DISTINCT + 24 col2, + 37 * CAST( CASE - - COUNT( * ) WHEN - COUNT( + - 70 ) + ( SUM( DISTINCT 76 ) ) THEN NULL WHEN - COUNT( * ) THEN + 6 WHEN + CAST( - COUNT( * ) AS SIGNED ) THEN - ( - 61 ) END AS SIGNED ) - + - 93 + + - 25 + COUNT( * ) * 73 * 54
----
24
NULL

skipif mysql # not compatible
query II rowsort label-7809
SELECT DISTINCT + 24 col2, + 37 * CAST ( CASE - - COUNT ( * ) WHEN - COUNT ( + - 70 ) + ( SUM ( DISTINCT 76 ) ) THEN NULL WHEN - COUNT ( * ) THEN + 6 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) THEN - ( - 61 ) END AS INTEGER ) - + - 93 + + - 25 + COUNT ( * ) * 73 * 54
----
24
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + 16 * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + 16 * + 7
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7811
SELECT - ( + + COUNT( * ) ) DIV + - 23
----
0

skipif mysql # not compatible
query I rowsort label-7811
SELECT - ( + + COUNT ( * ) ) / + - 23
----
0

query I rowsort
SELECT + 23 * + COALESCE ( - + 70, 0 ) * - 83 * - ( + 54 ) + 48
----
-7215972

onlyif mysql # aggregate syntax: 
query II rowsort label-7813
SELECT - 98 * - ( + COUNT( ALL 86 ) ) AS col0, - 94 * MIN( ALL + 36 ) AS col0
----
98
-3384

skipif mysql # not compatible
query II rowsort label-7813
SELECT - 98 * - ( + COUNT ( ALL 86 ) ) AS col0, - 94 * MIN ( ALL + 36 ) AS col0
----
98
-3384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7814
SELECT 46 / + 39 / + 82 * + - 64 * - ( CAST( NULL AS SIGNED ) ) + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7814
SELECT 46 / + 39 / + 82 * + - 64 * - ( CAST ( NULL AS INTEGER ) ) + - 49
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT ALL + 55 DIV 47 col2
----
1

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL + 55 / 47 col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7816
SELECT - ( CAST( + + 40 AS SIGNED ) ) DIV - - NULLIF ( + 25, COUNT( * ) + + 19 - - 18 * + + 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-7816
SELECT - ( CAST ( + + 40 AS INTEGER ) ) / - - NULLIF ( + 25, COUNT ( * ) + + 19 - - 18 * + + 65 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT - MIN( DISTINCT - - 63 ) * 37
----
-2331

skipif mysql # not compatible
query I rowsort label-7817
SELECT - MIN ( DISTINCT - - 63 ) * 37
----
-2331

onlyif mysql # DIV for integer division: 
query I rowsort label-7818
SELECT DISTINCT + 35 * - - 76 + 60 DIV + NULLIF ( + - 15, - + AVG ( DISTINCT + + 55 ) + - 25 ) AS col2
----
2656

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT + 35 * - - 76 + 60 / + NULLIF ( + - 15, - + AVG ( DISTINCT + + 55 ) + - 25 ) AS col2
----
2656

query I rowsort
SELECT ALL + 51 * - - 62 + - - 50 + - + 23 * + ( 66 ) * + 48
----
-69652

onlyif mysql # DIV for integer division: 
query II rowsort label-7820
SELECT DISTINCT + 29 AS col2, 63 DIV - 26 AS col2
----
29
-2

skipif mysql # not compatible
query II rowsort label-7820
SELECT DISTINCT + 29 AS col2, 63 / - 26 AS col2
----
29
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT ALL - 2 * ( - SUM( DISTINCT 92 ) ) + - COUNT( * ) col0
----
183

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL - 2 * ( - SUM ( DISTINCT 92 ) ) + - COUNT ( * ) col0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT SUM( + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-7822
SELECT SUM ( + 47 )
----
47

query I rowsort
SELECT DISTINCT 43 * - 98 AS col2
----
-4214

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT + NULLIF ( 16, - 22 * + 9 + + - COUNT( * ) + ( + 1 ) + 20 / + 9 * 2 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-7824
SELECT + NULLIF ( 16, - 22 * + 9 + + - COUNT ( * ) + ( + 1 ) + 20 / + 9 * 2 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7825
SELECT DISTINCT - 8 * + + 92 * - 54 + SUM( DISTINCT - 38 ) * 20 AS col1, COUNT( * ) AS col2
----
38984
1

skipif mysql # not compatible
query II rowsort label-7825
SELECT DISTINCT - 8 * + + 92 * - 54 + SUM ( DISTINCT - 38 ) * 20 AS col1, COUNT ( * ) AS col2
----
38984
1

query I rowsort
SELECT ALL + 24 * 50 + - 9 * - 0
----
1200

query I rowsort
SELECT + ( + + 4 ) * + 10
----
40

query II rowsort
SELECT 34 AS col0, - 22
----
34
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT + + 20 - + 9 + - 53 + - COUNT( * ) + 22 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7829
SELECT + + 20 - + 9 + - 53 + - COUNT ( * ) + 22 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT ALL MIN( - + 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL MIN ( - + 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL - MIN( 48 ) - - 69
----
21

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL - MIN ( 48 ) - - 69
----
21

query II rowsort
SELECT DISTINCT + 69 AS col0, - NULLIF ( + 30, - 3 * + 93 * - + 37 ) * - - 91 - 90
----
69
-2820

onlyif mysql # DIV for integer division: 
query I rowsort label-7833
SELECT ALL 90 DIV - + 53 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL 90 / - + 53 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT + 64 + COUNT( ALL - + 16 )
----
65

skipif mysql # not compatible
query I rowsort label-7834
SELECT + 64 + COUNT ( ALL - + 16 )
----
65

query I rowsort
SELECT + 34 - + 11 - + 14 AS col0
----
9

query I rowsort
SELECT + 78 + - 62 AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7837
SELECT ALL 17 * - COUNT( * ) * - COUNT( * ) + + 33 AS col1, - 81 AS col2
----
50
-81

skipif mysql # not compatible
query II rowsort label-7837
SELECT ALL 17 * - COUNT ( * ) * - COUNT ( * ) + + 33 AS col1, - 81 AS col2
----
50
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7838
SELECT + + COALESCE ( + COALESCE ( 41, - - COUNT( * ) ), - 39 ) DIV + COUNT( * ) - + CAST( + 0 AS SIGNED ) * - 41
----
41

skipif mysql # not compatible
query I rowsort label-7838
SELECT + + COALESCE ( + COALESCE ( 41, - - COUNT ( * ) ), - 39 ) / + COUNT ( * ) - + CAST ( + 0 AS INTEGER ) * - 41
----
41

query II rowsort
SELECT - - COALESCE ( 72, - 36 ) * - 9 AS col1, 73 AS col0
----
-648
73

query I rowsort
SELECT + - 44 + - - 2 AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7841
SELECT - + COUNT( * ) * + CAST( - COUNT( * ) AS SIGNED ) AS col0, 24
----
1
24

skipif mysql # not compatible
query II rowsort label-7841
SELECT - + COUNT ( * ) * + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 24
----
1
24

query I rowsort
SELECT ALL + + 54 * - 70 AS col1
----
-3780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7843
SELECT DISTINCT NULLIF ( - + 86, + - 87 * COUNT( * ) ) AS col2, CAST( NULL AS SIGNED )
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-7843
SELECT DISTINCT NULLIF ( - + 86, + - 87 * COUNT ( * ) ) AS col2, CAST ( NULL AS INTEGER )
----
-86
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7844
SELECT ALL + COUNT( DISTINCT - 68 ) * - 90 DIV 27
----
-3

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL + COUNT ( DISTINCT - 68 ) * - 90 / 27
----
-3

query I rowsort
SELECT DISTINCT ( + 31 ) col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT + 19 * - 33 + - + 88 + 14 - + + 93 + + + 62 + + 11 - - - 23 * + + COUNT( * )
----
-744

skipif mysql # not compatible
query I rowsort label-7846
SELECT + 19 * - 33 + - + 88 + 14 - + + 93 + + + 62 + + 11 - - - 23 * + + COUNT ( * )
----
-744

query I rowsort
SELECT + CASE 91 WHEN - 59 THEN NULL WHEN + 85 THEN - 55 / - 64 END * 38 - 47 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7848
SELECT - CAST( NULL AS SIGNED ) * + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-7848
SELECT - CAST ( NULL AS INTEGER ) * + 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7849
SELECT ALL MAX( DISTINCT CAST( + 45 AS SIGNED ) ) DIV 91 + + 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL MAX ( DISTINCT CAST ( + 45 AS INTEGER ) ) / 91 + + 31 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7850
SELECT - CAST( + 14 AS SIGNED ) + - COUNT( ALL 9 ) + 94 * - NULLIF ( + + 34, - 64 ) + + 53 * - ( + + 67 ) AS col2
----
-6762

skipif mysql # not compatible
query I rowsort label-7850
SELECT - CAST ( + 14 AS INTEGER ) + - COUNT ( ALL 9 ) + 94 * - NULLIF ( + + 34, - 64 ) + + 53 * - ( + + 67 ) AS col2
----
-6762

onlyif mysql # DIV for integer division: 
query II rowsort label-7851
SELECT ALL ( + 68 ) DIV - 92 + + 46 * + + 15 + - + 23 + + - 39, - 16 AS col2
----
628
-16

skipif mysql # not compatible
query II rowsort label-7851
SELECT ALL ( + 68 ) / - 92 + + 46 * + + 15 + - + 23 + + - 39, - 16 AS col2
----
628
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7852
SELECT + 99 * + - COUNT( * ) + + - 58 DIV - 89 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-7852
SELECT + 99 * + - COUNT ( * ) + + - 58 / - 89 AS col0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7853
SELECT ALL + 7 DIV + 70 + - 76 + + 19 AS col1, + COUNT( * ) * + 3
----
-57
3

skipif mysql # not compatible
query II rowsort label-7853
SELECT ALL + 7 / + 70 + - 76 + + 19 AS col1, + COUNT ( * ) * + 3
----
-57
3

query II rowsort
SELECT ( 11 ), - 89 AS col1
----
11
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT ALL + 88 * MIN( DISTINCT + - 40 )
----
-3520

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL + 88 * MIN ( DISTINCT + - 40 )
----
-3520

query I rowsort
SELECT - 14 + 80 - + 65
----
1

query I rowsort
SELECT + 90 + - 52 AS col1
----
38

query I rowsort
SELECT - 86 * - 33 * 9 * 71 + + + ( - 71 )
----
1813411

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT - ( - 16 ) * - - 92 - 27 * COUNT( 68 )
----
1445

skipif mysql # not compatible
query I rowsort label-7859
SELECT - ( - 16 ) * - - 92 - 27 * COUNT ( 68 )
----
1445

query I rowsort
SELECT ALL + + ( + 44 )
----
44

query I rowsort
SELECT - + 74 + - ( - - 11 ) AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7862
SELECT - - NULLIF ( - 72, + 39 * + ( - COUNT( * ) ) * 96 * - 32 + - 97 + - MAX( + 57 ) * 12 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT - - NULLIF ( - 72, + 39 * + ( - COUNT ( * ) ) * 96 * - 32 + - 97 + - MAX ( + 57 ) * 12 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT 8 * - 52 * - MAX( ALL 0 ) + 12
----
12

skipif mysql # not compatible
query I rowsort label-7863
SELECT 8 * - 52 * - MAX ( ALL 0 ) + 12
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL + + COUNT( * ) * ( 20 )
----
20

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL + + COUNT ( * ) * ( 20 )
----
20

query I rowsort
SELECT DISTINCT ( + + 80 ) AS col0
----
80

query II rowsort
SELECT ALL + 28 - - 16, 69 * - ( + 17 ) * 28 - - + 83 AS col2
----
44
-32761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7867
SELECT + CAST( + COUNT( + ( - 50 ) ) AS SIGNED ) * - COALESCE ( - 64, + + 45 + - 80 )
----
64

skipif mysql # not compatible
query I rowsort label-7867
SELECT + CAST ( + COUNT ( + ( - 50 ) ) AS INTEGER ) * - COALESCE ( - 64, + + 45 + - 80 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT DISTINCT COALESCE ( + 51, + 81 ) * + CASE - AVG ( - 20 ) WHEN - 80 THEN - MAX( DISTINCT - - 14 ) ELSE 34 * + ( + 62 ) + - 79 * + 26 + - 90 + - + 27 END - + ( + 66 ) + + ( COUNT( 7 ) ) + 13 * + MIN( ALL 39 ) * 57
----
25621

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT COALESCE ( + 51, + 81 ) * + CASE - AVG ( - 20 ) WHEN - 80 THEN - MAX ( DISTINCT - - 14 ) ELSE 34 * + ( + 62 ) + - 79 * + 26 + - 90 + - + 27 END - + ( + 66 ) + + ( COUNT ( 7 ) ) + 13 * + MIN ( ALL 39 ) * 57
----
25621

onlyif mysql # DIV for integer division: 
query I rowsort label-7869
SELECT 9 DIV + - 20 * + 98
----
0

skipif mysql # not compatible
query I rowsort label-7869
SELECT 9 / + - 20 * + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT MIN( + 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-7870
SELECT MIN ( + 15 ) AS col1
----
15

query I rowsort
SELECT 58 * 68 * - 2 AS col1
----
-7888

onlyif mysql # DIV for integer division: 
query I rowsort label-7872
SELECT ALL 51 DIV + 70 * 88 col2
----
0

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL 51 / + 70 * 88 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7873
SELECT 89 DIV 23 * + + 47 * + + MIN( DISTINCT 90 ) AS col1
----
12690

skipif mysql # not compatible
query I rowsort label-7873
SELECT 89 / 23 * + + 47 * + + MIN ( DISTINCT 90 ) AS col1
----
12690

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ALL MIN( DISTINCT + 42 ) + + 49
----
91

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL MIN ( DISTINCT + 42 ) + + 49
----
91

query I rowsort
SELECT DISTINCT 8 + + + ( - CASE - + 11 WHEN - 83 THEN + 89 - + + 60 * + 18 * - + 74 END ) * + + 19 + + 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7876
SELECT 38 - + 25 + 5 * + 77 + - 38 * + CAST( - NULLIF ( 47, - CASE + + 32 WHEN + 82 - + + 73 THEN NULL WHEN - 97 + 36 THEN + 8 / COUNT( * ) - - - 21 + COUNT( * ) * + - 71 + 98 ELSE - 88 END ) AS SIGNED )
----
2184

skipif mysql # not compatible
query I rowsort label-7876
SELECT 38 - + 25 + 5 * + 77 + - 38 * + CAST ( - NULLIF ( 47, - CASE + + 32 WHEN + 82 - + + 73 THEN NULL WHEN - 97 + 36 THEN + 8 / COUNT ( * ) - - - 21 + COUNT ( * ) * + - 71 + 98 ELSE - 88 END ) AS INTEGER )
----
2184

query I rowsort
SELECT ALL 92 * + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7878
SELECT ALL 69 + - 34 + + SUM( ALL + 96 ) * - 80 * + 34 + + ( - - 74 ) AS col1, + 50
----
-261011
50

skipif mysql # not compatible
query II rowsort label-7878
SELECT ALL 69 + - 34 + + SUM ( ALL + 96 ) * - 80 * + 34 + + ( - - 74 ) AS col1, + 50
----
-261011
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT DISTINCT 27 * CAST( + 66 AS SIGNED )
----
1782

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT 27 * CAST ( + 66 AS INTEGER )
----
1782

query I rowsort
SELECT ALL 86 + 33 AS col1
----
119

query II rowsort
SELECT + 39 col0, 69
----
39
69

query I rowsort
SELECT ALL 33 * - + 74 col2
----
-2442

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT DISTINCT + COUNT( * ) + + 64 - - + 57 + - 98 * + - ( - - 31 ) + + 42 AS col2
----
3202

skipif mysql # not compatible
query I rowsort label-7883
SELECT DISTINCT + COUNT ( * ) + + 64 - - + 57 + - 98 * + - ( - - 31 ) + + 42 AS col2
----
3202

query I rowsort
SELECT DISTINCT 85 + - 0
----
85

query I rowsort
SELECT DISTINCT 20 + - 46 * + + 81 AS col1
----
-3706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7886
SELECT ALL - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 96 * + + 32
----
3072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7888
SELECT ALL - NULLIF ( + 64, - 51 - COUNT( * ) + + SUM( DISTINCT CAST( + 96 AS SIGNED ) ) ) * - 2 * - 68
----
-8704

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL - NULLIF ( + 64, - 51 - COUNT ( * ) + + SUM ( DISTINCT CAST ( + 96 AS INTEGER ) ) ) * - 2 * - 68
----
-8704

onlyif mysql # DIV for integer division: 
query I rowsort label-7889
SELECT 2 DIV + + 34
----
0

skipif mysql # not compatible
query I rowsort label-7889
SELECT 2 / + + 34
----
0

query I rowsort
SELECT ALL - CASE - 29 WHEN - + 71 THEN + + 48 END col2
----
NULL

query I rowsort
SELECT DISTINCT - 2 * + + NULLIF ( 56, + 19 ) AS col0
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT ALL + NULLIF ( ( + + COUNT( * ) ), + 88 - - - 82 + - 22 ) - + ( + 73 ) * + 99 col2
----
-7226

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL + NULLIF ( ( + + COUNT ( * ) ), + 88 - - - 82 + - 22 ) - + ( + 73 ) * + 99 col2
----
-7226

query I rowsort
SELECT DISTINCT - + COALESCE ( - 92, - ( 66 ) * + 8 - 11 ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7894
SELECT 63 / - ( + CAST( NULL AS SIGNED ) ) + COUNT( * ) * - 52, - 55 AS col2
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-7894
SELECT 63 / - ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * - 52, - 55 AS col2
----
NULL
-55

query II rowsort
SELECT 32, + 16 * + - 57 AS col2
----
32
-912

query I rowsort
SELECT + + ( - 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT - 55 - - COUNT( * ) - + COUNT( * ) + 4 * + 32
----
73

skipif mysql # not compatible
query I rowsort label-7897
SELECT - 55 - - COUNT ( * ) - + COUNT ( * ) + 4 * + 32
----
73

query I rowsort
SELECT + 29 * 23 AS col0
----
667

query I rowsort
SELECT 35 - - + 70
----
105

query II rowsort
SELECT + 67 AS col2, + 67 * + 44
----
67
2948

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7901
SELECT + 91 * + 66 * + - MAX( + ( 26 ) ) + - + 99 DIV 12
----
-156164

skipif mysql # not compatible
query I rowsort label-7901
SELECT + 91 * + 66 * + - MAX ( + ( 26 ) ) + - + 99 / 12
----
-156164

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT 73 * MIN( ALL 68 )
----
4964

skipif mysql # not compatible
query I rowsort label-7902
SELECT 73 * MIN ( ALL 68 )
----
4964

query I rowsort
SELECT DISTINCT + 14 + - 93 + 76
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT + 62 + + + 61 + COUNT( * )
----
124

skipif mysql # not compatible
query I rowsort label-7904
SELECT + 62 + + + 61 + COUNT ( * )
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7905
SELECT + COALESCE ( - 51, + 9 + + CAST( - + ( 22 ) AS SIGNED ) + - + 84 * SUM( - 12 ) DIV + 47 + + 2 + + 4 + - 5 * - + CASE + - ( 64 ) WHEN + 42 THEN NULL WHEN - + 21 THEN - - 23 + 53 * 16 WHEN ( - COUNT( * ) ) + 80 THEN + 75 * - 89 ELSE NULL END + + 87, + COUNT( * ) ) - 95 DIV - 83
----
-50

skipif mysql # not compatible
query I rowsort label-7905
SELECT + COALESCE ( - 51, + 9 + + CAST ( - + ( 22 ) AS INTEGER ) + - + 84 * SUM ( - 12 ) / + 47 + + 2 + + 4 + - 5 * - + CASE + - ( 64 ) WHEN + 42 THEN NULL WHEN - + 21 THEN - - 23 + 53 * 16 WHEN ( - COUNT ( * ) ) + 80 THEN + 75 * - 89 ELSE NULL END + + 87, + COUNT ( * ) ) - 95 / - 83
----
-50

query I rowsort
SELECT DISTINCT - 22 * + 9 * - - 87 AS col2
----
-17226

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT 52 + CASE 98 WHEN 15 THEN + 74 ELSE COUNT( * ) * - 77 END + 4 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-7907
SELECT 52 + CASE 98 WHEN 15 THEN + 74 ELSE COUNT ( * ) * - 77 END + 4 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT + COUNT( * ) + 96
----
97

skipif mysql # not compatible
query I rowsort label-7908
SELECT + COUNT ( * ) + 96
----
97

query II rowsort
SELECT 40, + ( 60 ) + - 87 AS col2
----
40
-27

query I rowsort
SELECT ALL 86 + + 93 AS col0
----
179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7911
SELECT ALL COUNT( * ) + - 29 DIV + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL COUNT ( * ) + - 29 / + COUNT ( * )
----
-28

query II rowsort
SELECT ALL 21 + - + 31 col2, 86 * + ( + + 79 ) + - 69 col1
----
-10
6725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7913
SELECT 81 + + AVG ( + CAST( NULL AS SIGNED ) ) + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7913
SELECT 81 + + AVG ( + CAST ( NULL AS INTEGER ) ) + + - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL 36 AS col1, + 40 AS col0
----
36
40

query II rowsort
SELECT 70 AS col0, - 46
----
70
-46

query II rowsort
SELECT ALL 94 AS col2, + ( + - 11 )
----
94
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT DISTINCT COUNT( * ) + - - 94
----
95

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT COUNT ( * ) + - - 94
----
95

query I rowsort
SELECT 88 * - - 5 + - 13
----
427

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT MIN( + - 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-7919
SELECT MIN ( + - 78 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT DISTINCT 16 * + 6 - + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT 16 * + 6 - + COUNT ( * )
----
95

query II rowsort
SELECT ALL - 51 col1, + 73 col2
----
-51
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7922
SELECT DISTINCT COUNT( * ) * CAST( + - 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT COUNT ( * ) * CAST ( + - 88 AS INTEGER )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT SUM( ALL - - 60 ) * - + COUNT( * ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-7923
SELECT SUM ( ALL - - 60 ) * - + COUNT ( * ) AS col0
----
-60

query I rowsort
SELECT ( + 56 ) * - 68 AS col0
----
-3808

query I rowsort
SELECT 6 * 61
----
366

query I rowsort
SELECT 12 + - 53 * 79 AS col1
----
-4175

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT DISTINCT + 26 * + MIN( ALL + 24 ) - + 30
----
594

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT + 26 * + MIN ( ALL + 24 ) - + 30
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT ALL - MAX( ALL - 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL - MAX ( ALL - 65 ) AS col2
----
65

query II rowsort
SELECT ALL - 57, + 88 AS col1
----
-57
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT 31 * + MAX( DISTINCT + ( + 81 ) )
----
2511

skipif mysql # not compatible
query I rowsort label-7930
SELECT 31 * + MAX ( DISTINCT + ( + 81 ) )
----
2511

query II rowsort
SELECT DISTINCT + - 38, - 49 AS col2
----
-38
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7932
SELECT CAST( + - 57 AS SIGNED ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-7932
SELECT CAST ( + - 57 AS INTEGER ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT + - ( + COUNT( ALL 21 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7933
SELECT + - ( + COUNT ( ALL 21 ) ) AS col0
----
-1

query I rowsort
SELECT - 87 + + 90 * 58 col1
----
5133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7935
SELECT ALL + - 56 AS col1, COUNT( * ) / + 39 - + - CAST( NULL AS SIGNED ) - + - 56 col1
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-7935
SELECT ALL + - 56 AS col1, COUNT ( * ) / + 39 - + - CAST ( NULL AS INTEGER ) - + - 56 col1
----
-56
NULL

query I rowsort
SELECT - 0 + - 53
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7937
SELECT COALESCE ( + 83, + 5, + - 18 ), + 6 DIV MAX( + 66 ) - 7 AS col1
----
83
-7

skipif mysql # not compatible
query II rowsort label-7937
SELECT COALESCE ( + 83, + 5, + - 18 ), + 6 / MAX ( + 66 ) - 7 AS col1
----
83
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT + 68 * - - 40 + - SUM( - 48 ) * + 55
----
5360

skipif mysql # not compatible
query I rowsort label-7938
SELECT + 68 * - - 40 + - SUM ( - 48 ) * + 55
----
5360

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT - MIN( DISTINCT - 44 ) + 88 + - 66 * - COUNT( * ) + + CASE - - 12 WHEN - + 59 THEN NULL ELSE - 86 * 43 * + 30 + 18 END * - 94
----
10426866

skipif mysql # not compatible
query I rowsort label-7939
SELECT - MIN ( DISTINCT - 44 ) + 88 + - 66 * - COUNT ( * ) + + CASE - - 12 WHEN - + 59 THEN NULL ELSE - 86 * 43 * + 30 + 18 END * - 94
----
10426866

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ALL - - 47 * COUNT( * ) col0
----
47

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL - - 47 * COUNT ( * ) col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7941
SELECT - + COUNT( * ) DIV - - 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7941
SELECT - + COUNT ( * ) / - - 53 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7942
SELECT + - ( 80 ) * + + 88 * + CAST( - + 26 AS SIGNED ) * + 25 + + ( + + 12 ) + - 51 * + - 91
----
4580653

skipif mysql # not compatible
query I rowsort label-7942
SELECT + - ( 80 ) * + + 88 * + CAST ( - + 26 AS INTEGER ) * + 25 + + ( + + 12 ) + - 51 * + - 91
----
4580653

query I rowsort
SELECT ALL + 85 * - + 75 + - ( - - 11 )
----
-6386

query I rowsort
SELECT - 16 + + 91 AS col1
----
75

query I rowsort
SELECT ALL - + 67 + - 62 AS col1
----
-129

query I rowsort
SELECT - ( + + 53 ) + 36
----
-17

query I rowsort
SELECT - 69 * + 69
----
-4761

query II rowsort
SELECT + 30 AS col1, 31 + 20
----
30
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7949
SELECT DISTINCT + 18 DIV - 85 + 47
----
47

skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT + 18 / - 85 + 47
----
47

query II rowsort
SELECT + 69 AS col2, - 47 + 33 + - 15 + 78 * - 10
----
69
-809

onlyif mysql # DIV for integer division: 
query I rowsort label-7951
SELECT - ( + 71 ) DIV - 48
----
1

skipif mysql # not compatible
query I rowsort label-7951
SELECT - ( + 71 ) / - 48
----
1

query I rowsort
SELECT ALL 33 * + 77 AS col1
----
2541

query I rowsort
SELECT ALL ( - - 35 ) - 93 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT ALL CASE 89 WHEN - + 34 * + 43 * - 74 * MAX( - 62 ) * - 91 THEN 38 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL CASE 89 WHEN - + 34 * + 43 * - 74 * MAX ( - 62 ) * - 91 THEN 38 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 15 + + - 9 + 7 * + + 25
----
181

query I rowsort
SELECT + 74 * - 50 AS col0
----
-3700

onlyif mysql # aggregate syntax: 
query II rowsort label-7957
SELECT - 38 - COUNT( * ) AS col1, + ( + 24 ) AS col1
----
-39
24

skipif mysql # not compatible
query II rowsort label-7957
SELECT - 38 - COUNT ( * ) AS col1, + ( + 24 ) AS col1
----
-39
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT ALL + 30 * 66 * - COUNT( * )
----
-1980

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL + 30 * 66 * - COUNT ( * )
----
-1980

query I rowsort
SELECT 2 * 96 - 33 AS col1
----
159

query I rowsort
SELECT ALL + ( 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT ALL 19 * - - COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL 19 * - - COUNT ( * ) AS col2
----
19

query I rowsort
SELECT - 78 + - 24 AS col1
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT + NULLIF ( - 46, + 19 + + - COUNT( * ) / 42 / - 93 - 51 + 2 )
----
-46

skipif mysql # not compatible
query I rowsort label-7963
SELECT + NULLIF ( - 46, + 19 + + - COUNT ( * ) / 42 / - 93 - 51 + 2 )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7964
SELECT ( CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT ( CAST ( NULL AS INTEGER ) ) col1
----
NULL

query II rowsort
SELECT + + 62 - 33 col1, + 39 + + 13
----
29
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7966
SELECT ALL COUNT( * ) / - - CASE + 70 WHEN - 91 + CAST( NULL AS SIGNED ) * 77 THEN + 8 END * 64 + COALESCE ( - 42, - ( + 72 ) * + COUNT( * ) ) * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL COUNT ( * ) / - - CASE + 70 WHEN - 91 + CAST ( NULL AS INTEGER ) * 77 THEN + 8 END * 64 + COALESCE ( - 42, - ( + 72 ) * + COUNT ( * ) ) * 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT - CAST( NULL AS SIGNED ) / + 96 + 0 + + - 43 - 97 * + 90 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7967
SELECT - CAST ( NULL AS INTEGER ) / + 96 + 0 + + - 43 - 97 * + 90 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT + + CASE 95 WHEN - 27 THEN - + 41 + 75 + + 71 * 99 + + 6 * - NULLIF ( 44, + - ( - COUNT( * ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT + + CASE 95 WHEN - 27 THEN - + 41 + 75 + + 71 * 99 + + 6 * - NULLIF ( 44, + - ( - COUNT ( * ) ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7969
SELECT DISTINCT + COALESCE ( 84, - - CAST( NULL AS SIGNED ), - - 27 + 22 ) * + + 97 * - 85 * - - NULLIF ( + CASE 47 WHEN - 27 THEN NULL WHEN - - 60 - + + 56 / - 39 THEN 19 ELSE NULL END, 39 * - 69 ) * 43 * - AVG ( DISTINCT 70 ) * - 63 + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT + COALESCE ( 84, - - CAST ( NULL AS INTEGER ), - - 27 + 22 ) * + + 97 * - 85 * - - NULLIF ( + CASE 47 WHEN - 27 THEN NULL WHEN - - 60 - + + 56 / - 39 THEN 19 ELSE NULL END, 39 * - 69 ) * 43 * - AVG ( DISTINCT 70 ) * - 63 + - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT + + COUNT( * ) * COUNT( * ) + + 58
----
59

skipif mysql # not compatible
query I rowsort label-7970
SELECT + + COUNT ( * ) * COUNT ( * ) + + 58
----
59

query I rowsort
SELECT ALL - 41 * ( 44 ) + 74 AS col0
----
-1730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7972
SELECT DISTINCT + COUNT( * ) * - NULLIF ( - 14, + CASE - ( + 76 ) WHEN - 27 + - 17 THEN + 30 * - 81 WHEN + 36 / + 6 + - + 53 THEN + 30 * 22 ELSE NULL END ) + + + 58 * + + 55 * COUNT( * ) * + CAST( - - COUNT( * ) AS SIGNED ) - + 66 * 92 + 33 / - CASE 1 WHEN 9 THEN NULL WHEN + 92 THEN 93 WHEN CAST( NULL AS SIGNED ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT + COUNT ( * ) * - NULLIF ( - 14, + CASE - ( + 76 ) WHEN - 27 + - 17 THEN + 30 * - 81 WHEN + 36 / + 6 + - + 53 THEN + 30 * 22 ELSE NULL END ) + + + 58 * + + 55 * COUNT ( * ) * + CAST ( - - COUNT ( * ) AS INTEGER ) - + 66 * 92 + 33 / - CASE 1 WHEN 9 THEN NULL WHEN + 92 THEN 93 WHEN CAST ( NULL AS INTEGER ) THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7973
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - COUNT( * ) * - 94 + + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT - CAST ( NULL AS REAL ) * - COUNT ( * ) * - 94 + + - 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT + COUNT( * ) + - + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7974
SELECT + COUNT ( * ) + - + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT - 1 * - 81 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT - - ( + COUNT( ALL - + 73 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7976
SELECT - - ( + COUNT ( ALL - + 73 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7977
SELECT + - CASE + 54 WHEN - 86 THEN - CAST( NULL AS SIGNED ) ELSE NULL END + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT + - CASE + 54 WHEN - 86 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END + 27
----
NULL

query I rowsort
SELECT - 56 * - ( 69 ) + + 73 AS col0
----
3937

query I rowsort
SELECT ALL ( - + 42 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT DISTINCT + COALESCE ( 49, + - 8 + - COUNT( * ) ) * - 9 + - 29
----
-470

skipif mysql # not compatible
query I rowsort label-7980
SELECT DISTINCT + COALESCE ( 49, + - 8 + - COUNT ( * ) ) * - 9 + - 29
----
-470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7981
SELECT ALL 90 * CAST( NULL AS SIGNED ) - + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL 90 * CAST ( NULL AS INTEGER ) - + 99 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7982
SELECT DISTINCT COUNT( * ), - 0 / - CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7982
SELECT DISTINCT COUNT ( * ), - 0 / - CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

query I rowsort
SELECT + 92 + + + 91 AS col2
----
183

query I rowsort
SELECT - 98 - + 10 AS col1
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT + 6 * + 4 / - CASE + 0 WHEN + 57 THEN - 28 * + + 51 END / - 64 * + COUNT( * ) * + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT + 6 * + 4 / - CASE + 0 WHEN + 57 THEN - 28 * + + 51 END / - 64 * + COUNT ( * ) * + - 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7986
SELECT + ( + MIN( DISTINCT 0 ) ) + + 7 - 82 + - - ( + CAST( 96 AS SIGNED ) ) * 59 DIV - 57
----
-174

skipif mysql # not compatible
query I rowsort label-7986
SELECT + ( + MIN ( DISTINCT 0 ) ) + + 7 - 82 + - - ( + CAST ( 96 AS INTEGER ) ) * 59 / - 57
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT - 74 - + - COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-7987
SELECT - 74 - + - COUNT ( * ) AS col1
----
-73

query I rowsort
SELECT - 91 * - 31 AS col1
----
2821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7989
SELECT DISTINCT ( - CAST( + 21 AS SIGNED ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT ( - CAST ( + 21 AS INTEGER ) ) AS col1
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7990
SELECT ALL + 70 DIV + 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL + 70 / + 62 AS col1
----
1

query I rowsort
SELECT - 38 + + + ( ( + ( + + ( - 8 ) ) ) )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7992
SELECT ALL - COUNT( - 49 ) DIV - 67 * - 35 + - + 76 + 81
----
5

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL - COUNT ( - 49 ) / - 67 * - 35 + - + 76 + 81
----
5

query I rowsort
SELECT - 55 * + 73 col0
----
-4015

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT DISTINCT NULLIF ( + COUNT( * ), 8 * + + SUM( + 95 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT NULLIF ( + COUNT ( * ), 8 * + + SUM ( + 95 ) )
----
1

query I rowsort
SELECT - 32 * - + 67
----
2144

query II rowsort
SELECT ALL 66 col0, - 89
----
66
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT COUNT( * ) * + CASE COUNT( - + 27 ) WHEN SUM( - + ( - 77 ) ) THEN NULL ELSE + 70 + MIN( ALL - 31 ) END AS col1
----
39

skipif mysql # not compatible
query I rowsort label-7997
SELECT COUNT ( * ) * + CASE COUNT ( - + 27 ) WHEN SUM ( - + ( - 77 ) ) THEN NULL ELSE + 70 + MIN ( ALL - 31 ) END AS col1
----
39

query I rowsort
SELECT ALL - + 68 + - - 75 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ALL + + 5 * - COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL + + 5 * - COUNT ( * ) AS col2
----
-5

query I rowsort
SELECT + 82 * - 17 * 0 + 27
----
27

query I rowsort
SELECT 40 + + - 76
----
-36

query I rowsort
SELECT ALL - - 76 + + - 16 * + ( - - 8 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT + + 72 * 32 * + SUM( DISTINCT + - 37 ) + - COUNT( * ) * 87 + + 29
----
-85306

skipif mysql # not compatible
query I rowsort label-8003
SELECT + + 72 * 32 * + SUM ( DISTINCT + - 37 ) + - COUNT ( * ) * 87 + + 29
----
-85306

onlyif mysql # DIV for integer division: 
query I rowsort label-8004
SELECT 48 DIV + + 79 + + 90
----
90

skipif mysql # not compatible
query I rowsort label-8004
SELECT 48 / + + 79 + + 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT DISTINCT + COUNT( * ) + - 41 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT + COUNT ( * ) + - 41 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT + COUNT( * ) * + 31 * 94 AS col2
----
2914

skipif mysql # not compatible
query I rowsort label-8006
SELECT + COUNT ( * ) * + 31 * 94 AS col2
----
2914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8007
SELECT + - CAST( NULL AS SIGNED ) * 10 + + + COUNT( * ) + 72 + 29 + - 23 + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8007
SELECT + - CAST ( NULL AS INTEGER ) * 10 + + + COUNT ( * ) + 72 + 29 + - 23 + + 5
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8008
SELECT + 42 * COUNT( * ) * - COUNT( * ) AS col0, - NULLIF ( 23, 64 * + 73 * - COUNT( * ) + - - ( - - ( + 82 ) ) ) DIV - 42 col1
----
-42
0

skipif mysql # not compatible
query II rowsort label-8008
SELECT + 42 * COUNT ( * ) * - COUNT ( * ) AS col0, - NULLIF ( 23, 64 * + 73 * - COUNT ( * ) + - - ( - - ( + 82 ) ) ) / - 42 col1
----
-42
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT - 21 * + COUNT( * ) + - COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-8009
SELECT - 21 * + COUNT ( * ) + - COUNT ( * )
----
-22

query I rowsort
SELECT ALL 91 * + 50 AS col0
----
4550

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT ALL - COUNT( * ) * 77 col2
----
-77

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL - COUNT ( * ) * 77 col2
----
-77

query I rowsort
SELECT ALL + 33 - 64
----
-31

query I rowsort
SELECT ALL 18 - + 32 col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-8014
SELECT - 15 AS col0, - COUNT( + 58 )
----
-15
-1

skipif mysql # not compatible
query II rowsort label-8014
SELECT - 15 AS col0, - COUNT ( + 58 )
----
-15
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT COUNT( * ) + - 51 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-8015
SELECT COUNT ( * ) + - 51 AS col2
----
-50

query I rowsort
SELECT ( + 87 ) * + 64
----
5568

query I rowsort
SELECT 32 * - 64
----
-2048

query I rowsort
SELECT DISTINCT ( - 70 ) * 4
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT COUNT( * ) + + + MIN( + 57 ) * COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-8019
SELECT COUNT ( * ) + + + MIN ( + 57 ) * COUNT ( * )
----
58

query I rowsort
SELECT 22 * 20
----
440

query I rowsort
SELECT DISTINCT 55 * + + 78
----
4290

query I rowsort
SELECT 47 + + 18
----
65

query II rowsort
SELECT DISTINCT - 58 + - 75 * + 29 - 96, - 13 col0
----
-2329
-13

query I rowsort
SELECT 57 + - - 94 + - + 95
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT ALL - COUNT( * ) + 36 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL - COUNT ( * ) + 36 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT DISTINCT NULLIF ( + - 68, - MIN( 7 ) ) + COUNT( * ) col2
----
-67

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT NULLIF ( + - 68, - MIN ( 7 ) ) + COUNT ( * ) col2
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-8027
SELECT 55 * + 52 DIV + - 4 AS col0
----
-715

skipif mysql # not compatible
query I rowsort label-8027
SELECT 55 * + 52 / + - 4 AS col0
----
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL MAX( + - 96 ) + - 25 + - 82 + - - 21 col2
----
-182

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL MAX ( + - 96 ) + - 25 + - 82 + - - 21 col2
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ALL 94 + + - 10 * SUM( ALL + + 41 )
----
-316

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL 94 + + - 10 * SUM ( ALL + + 41 )
----
-316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8030
SELECT + CASE 37 WHEN 26 + + MIN( + + 7 ) * 76 + - 1 + + + 43 * - + 17 + + - 61 THEN + + 30 END * - CAST( + 87 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT + CASE 37 WHEN 26 + + MIN ( + + 7 ) * 76 + - 1 + + + 43 * - + 17 + + - 61 THEN + + 30 END * - CAST ( + 87 AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT + - SUM( 21 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8031
SELECT + - SUM ( 21 ) AS col1
----
-21

query I rowsort
SELECT ALL - 97 + + - 41 AS col1
----
-138

query I rowsort
SELECT DISTINCT - 95 * 35
----
-3325

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT ALL - + 69 * COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL - + 69 * COUNT ( * )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8035
SELECT DISTINCT CAST( NULL AS SIGNED ) / COUNT( * ) AS col0, - 20
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-8035
SELECT DISTINCT CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col0, - 20
----
NULL
-20

query I rowsort
SELECT 7 * - 99 + - 40
----
-733

query I rowsort
SELECT 80 + + 12 col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT ALL - CAST( - + 47 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL - CAST ( - + 47 AS INTEGER )
----
47

query I rowsort
SELECT 90 + - 97
----
-7

query I rowsort
SELECT 25 * - - 89
----
2225

query I rowsort
SELECT 96 + + 87
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8042
SELECT 32 DIV + CAST( + - COUNT( * ) AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-8042
SELECT 32 / + CAST ( + - COUNT ( * ) AS INTEGER )
----
-32

query I rowsort
SELECT DISTINCT 74 * - - NULLIF ( - 82, - 24 )
----
-6068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8044
SELECT DISTINCT - SUM( ALL - - 54 ) DIV 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT - SUM ( ALL - - 54 ) / 64 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8045
SELECT ALL ( - COUNT( * ) ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL ( - COUNT ( * ) ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 91 + + 79 col2
----
170

query I rowsort
SELECT ALL ( + + 68 ) * + 75 * - + 19
----
-96900

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT - 20 * + ( - COUNT( * ) ) * + 69
----
1380

skipif mysql # not compatible
query I rowsort label-8048
SELECT - 20 * + ( - COUNT ( * ) ) * + 69
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT - 79 + - + COUNT( 5 )
----
-80

skipif mysql # not compatible
query I rowsort label-8049
SELECT - 79 + - + COUNT ( 5 )
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-8050
SELECT - 54, MAX( DISTINCT 99 ) AS col0
----
-54
99

skipif mysql # not compatible
query II rowsort label-8050
SELECT - 54, MAX ( DISTINCT 99 ) AS col0
----
-54
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT + 55 + + COUNT( + 51 ) + ( - 89 )
----
-33

skipif mysql # not compatible
query I rowsort label-8051
SELECT + 55 + + COUNT ( + 51 ) + ( - 89 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT + 61 + COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-8052
SELECT + 61 + COUNT ( * ) AS col0
----
62

query I rowsort
SELECT + 78 * - + 94 AS col2
----
-7332

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT + COUNT( * ) + MAX( ALL 54 ) * ( + 81 ) AS col0
----
4375

skipif mysql # not compatible
query I rowsort label-8054
SELECT + COUNT ( * ) + MAX ( ALL 54 ) * ( + 81 ) AS col0
----
4375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8055
SELECT DISTINCT CASE - - COUNT( * ) WHEN - + 81 THEN NULL WHEN - - 22 * + 28 * - MAX( DISTINCT 42 ) THEN - 7 ELSE + 8 END + - 4 + - - CAST( - 31 AS SIGNED ) + - 18 * - + 52 DIV - + COUNT( * ) DIV + COUNT( * ) col2
----
-963

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT CASE - - COUNT ( * ) WHEN - + 81 THEN NULL WHEN - - 22 * + 28 * - MAX ( DISTINCT 42 ) THEN - 7 ELSE + 8 END + - 4 + - - CAST ( - 31 AS INTEGER ) + - 18 * - + 52 / - + COUNT ( * ) / + COUNT ( * ) col2
----
-963

query I rowsort
SELECT ALL 36 * - 23 col2
----
-828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8057
SELECT + 8 + - 36 + - - COUNT( * ) * 3 DIV - + SUM( + 70 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-8057
SELECT + 8 + - 36 + - - COUNT ( * ) * 3 / - + SUM ( + 70 ) AS col1
----
-28

query I rowsort
SELECT ALL 78 + - 41 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT ALL - + 38 + 2 + + 9 * COUNT( * ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL - + 38 + 2 + + 9 * COUNT ( * ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT ALL + 18 * + COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL + 18 * + COUNT ( * ) AS col2
----
18

query I rowsort
SELECT + - 12 + - + 64 AS col0
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT - 40 DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8062
SELECT - 40 / - 91 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT + + COUNT( * ) + 47
----
48

skipif mysql # not compatible
query I rowsort label-8063
SELECT + + COUNT ( * ) + 47
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8064
SELECT 46 / CASE + + 99 WHEN + 37 THEN NULL WHEN 93 THEN + COUNT( - 46 ) - 88 + - - CAST( - 3 AS SIGNED ) END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT 46 / CASE + + 99 WHEN + 37 THEN NULL WHEN 93 THEN + COUNT ( - 46 ) - 88 + - - CAST ( - 3 AS INTEGER ) END + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + ( + 49 ) + 59
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8066
SELECT + COUNT( * ) * + 36 + - CAST( NULL AS SIGNED ) - + + 1 + - + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT + COUNT ( * ) * + 36 + - CAST ( NULL AS INTEGER ) - + + 1 + - + 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT DISTINCT + MAX( DISTINCT 18 )
----
18

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT + MAX ( DISTINCT 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT - + SUM( DISTINCT - 18 ) * 39 AS col0
----
702

skipif mysql # not compatible
query I rowsort label-8068
SELECT - + SUM ( DISTINCT - 18 ) * 39 AS col0
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT - 83 + COUNT( * ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-8069
SELECT - 83 + COUNT ( * ) AS col2
----
-82

query I rowsort
SELECT COALESCE ( - 31, + 78 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT - COUNT( * ) * - 24 + 90
----
114

skipif mysql # not compatible
query I rowsort label-8071
SELECT - COUNT ( * ) * - 24 + 90
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT + MAX( DISTINCT ( - 88 ) ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-8072
SELECT + MAX ( DISTINCT ( - 88 ) ) AS col1
----
-88

query I rowsort
SELECT ALL - 75 * - 33 AS col1
----
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT ALL - 2 * + + COUNT( * ) * - 45
----
90

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL - 2 * + + COUNT ( * ) * - 45
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8075
SELECT ALL + CAST( - 59 AS SIGNED ) col1
----
-59

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL + CAST ( - 59 AS INTEGER ) col1
----
-59

query I rowsort
SELECT DISTINCT + 6 * + 94 + - 28 AS col1
----
536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8077
SELECT ALL + CAST( 85 AS SIGNED ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL + CAST ( 85 AS INTEGER ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-8078
SELECT COUNT( * ) AS col1, 46 col0
----
1
46

skipif mysql # not compatible
query II rowsort label-8078
SELECT COUNT ( * ) AS col1, 46 col0
----
1
46

query I rowsort
SELECT DISTINCT + ( - + 81 )
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-8080
SELECT DISTINCT 92 col1, - MAX( ALL + 83 )
----
92
-83

skipif mysql # not compatible
query II rowsort label-8080
SELECT DISTINCT 92 col1, - MAX ( ALL + 83 )
----
92
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8081
SELECT ALL + 12 * COUNT( * ) + - CAST( - ( + COUNT( * ) ) AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL + 12 * COUNT ( * ) + - CAST ( - ( + COUNT ( * ) ) AS INTEGER )
----
13

query I rowsort
SELECT - 55 * + 56 AS col0
----
-3080

query I rowsort
SELECT + 61 * - + 94 AS col1
----
-5734

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT ALL + ( + - MIN( DISTINCT 81 ) ) + + 15 + - 68
----
-134

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL + ( + - MIN ( DISTINCT 81 ) ) + + 15 + - 68
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT MIN( DISTINCT + + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-8085
SELECT MIN ( DISTINCT + + 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT - COALESCE ( COUNT( * ), + 21 * + 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-8086
SELECT - COALESCE ( COUNT ( * ), + 21 * + 43 )
----
-1

query I rowsort
SELECT - 25 * - + COALESCE ( + + 4, - - 70 + - 98 )
----
100

query II rowsort
SELECT 48 AS col2, - 35 * - - ( - 77 ) AS col1
----
48
2695

query I rowsort
SELECT + 1 * 75 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT ALL - 58 + - SUM( - 75 )
----
17

skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL - 58 + - SUM ( - 75 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT + COUNT( * ) * - - 51 * + 57 AS col1
----
2907

skipif mysql # not compatible
query I rowsort label-8091
SELECT + COUNT ( * ) * - - 51 * + 57 AS col1
----
2907

query II rowsort
SELECT - 42 AS col0, + 57 AS col0
----
-42
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8093
SELECT + 76, CAST( NULL AS SIGNED ) AS col1
----
76
NULL

skipif mysql # not compatible
query II rowsort label-8093
SELECT + 76, CAST ( NULL AS INTEGER ) AS col1
----
76
NULL

query I rowsort
SELECT + 95 * 27 AS col2
----
2565

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8095
SELECT - 99 AS col2, + 78 * CAST( - 28 AS SIGNED ) DIV 70 AS col2
----
-99
-31

skipif mysql # not compatible
query II rowsort label-8095
SELECT - 99 AS col2, + 78 * CAST ( - 28 AS INTEGER ) / 70 AS col2
----
-99
-31

query II rowsort
SELECT DISTINCT + 74 AS col1, + 85
----
74
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8097
SELECT + 97 * - + 89 DIV + COUNT( * ) * + ( COUNT( * ) )
----
-8633

skipif mysql # not compatible
query I rowsort label-8097
SELECT + 97 * - + 89 / + COUNT ( * ) * + ( COUNT ( * ) )
----
-8633

query II rowsort
SELECT 80 AS col2, 23 AS col2
----
80
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8099
SELECT + 39 * 44 AS col1, - CAST( NULL AS SIGNED ) AS col2
----
1716
NULL

skipif mysql # not compatible
query II rowsort label-8099
SELECT + 39 * 44 AS col1, - CAST ( NULL AS INTEGER ) AS col2
----
1716
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT DISTINCT + ( + + 56 ) + + 81 + - COUNT( * )
----
136

skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT + ( + + 56 ) + + 81 + - COUNT ( * )
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-8101
SELECT ALL - 70 + + COUNT( * ) AS col2, 8
----
-69
8

skipif mysql # not compatible
query II rowsort label-8101
SELECT ALL - 70 + + COUNT ( * ) AS col2, 8
----
-69
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8102
SELECT ALL + CAST( NULL AS DECIMAL ) / + - COUNT( * ) * 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL + CAST ( NULL AS REAL ) / + - COUNT ( * ) * 34 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8103
SELECT 25 DIV + - 92
----
0

skipif mysql # not compatible
query I rowsort label-8103
SELECT 25 / + - 92
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8104
SELECT CAST( NULL AS SIGNED ) + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8104
SELECT CAST ( NULL AS INTEGER ) + 91 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 53 * - 9
----
477

query I rowsort
SELECT 31 + - 30 + + + 73
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8107
SELECT ALL - 81 + + + COUNT( * ) AS col1, - 27
----
-80
-27

skipif mysql # not compatible
query II rowsort label-8107
SELECT ALL - 81 + + + COUNT ( * ) AS col1, - 27
----
-80
-27

query I rowsort
SELECT ALL 31 + + - CASE WHEN NOT NULL > ( NULL ) THEN NULL WHEN NULL IS NULL THEN 72 ELSE NULL END AS col2
----
-41

query I rowsort
SELECT 50 + - 79 + - 90
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL + 36 * COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL + 36 * COUNT ( * )
----
36

query I rowsort
SELECT DISTINCT - 59 - + 7
----
-66

query I rowsort
SELECT - NULLIF ( ( 18 ), 85 ) + 0
----
-18

query I rowsort
SELECT + 93 + + 64 * - 21
----
-1251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8114
SELECT DISTINCT + NULLIF ( COUNT( * ), + ( - + CASE CAST( NULL AS SIGNED ) WHEN + ( 87 ) * 67 THEN NULL WHEN + - 39 * MIN( ALL - 44 ) THEN + - 72 + 18 * - - COUNT( * ) WHEN - 22 THEN NULL END ) + - ( + COUNT( * ) ) ) DIV - ( - 56 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT + NULLIF ( COUNT ( * ), + ( - + CASE CAST ( NULL AS INTEGER ) WHEN + ( 87 ) * 67 THEN NULL WHEN + - 39 * MIN ( ALL - 44 ) THEN + - 72 + 18 * - - COUNT ( * ) WHEN - 22 THEN NULL END ) + - ( + COUNT ( * ) ) ) / - ( - 56 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8115
SELECT 2 DIV - 35 + - 84 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8115
SELECT 2 / - 35 + - 84 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT ALL + SUM( - 39 ) * - 36 * + 46
----
64584

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL + SUM ( - 39 ) * - 36 * + 46
----
64584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8117
SELECT - 68 + + + 91 * + - COALESCE ( - 92, 39 ) * ( + COUNT( DISTINCT + - 26 ) ) - 35 - 48 * ( + + COALESCE ( - 98, 50 ) ) - - - 8 + - + COALESCE ( + 49, 88 DIV - 75, - 2 * + - 37, + 22 )
----
12916

skipif mysql # not compatible
query I rowsort label-8117
SELECT - 68 + + + 91 * + - COALESCE ( - 92, 39 ) * ( + COUNT ( DISTINCT + - 26 ) ) - 35 - 48 * ( + + COALESCE ( - 98, 50 ) ) - - - 8 + - + COALESCE ( + 49, 88 / - 75, - 2 * + - 37, + 22 )
----
12916

query I rowsort
SELECT DISTINCT + 83 * 25 + - - 93
----
2168

query I rowsort
SELECT COALESCE ( - 19, + 40 ) * + 52 + + + 8 AS col1
----
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT ALL - 33 + + COUNT( * ) * 97
----
64

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL - 33 + + COUNT ( * ) * 97
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8121
SELECT + - 90 / + - CAST( NULL AS SIGNED ) * - 87 + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-8121
SELECT + - 90 / + - CAST ( NULL AS INTEGER ) * - 87 + - 99
----
NULL

query II rowsort
SELECT DISTINCT + 22 * - 50 col2, 69
----
-1100
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8123
SELECT ALL - + ( - ( 12 ) ) AS col1, CAST( NULL AS SIGNED ) * 8 AS col2, + 91 * + 91 AS col1
----
12
NULL
8281

skipif mysql # not compatible
query III rowsort label-8123
SELECT ALL - + ( - ( 12 ) ) AS col1, CAST ( NULL AS INTEGER ) * 8 AS col2, + 91 * + 91 AS col1
----
12
NULL
8281

query II rowsort
SELECT ALL - 90 AS col1, - 34
----
-90
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT ALL 98 + - - COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL 98 + - - COUNT ( * ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT COALESCE ( - COUNT( * ), - 75 * 81 ) * - 16 * + 59 + 98 AS col0
----
1042

skipif mysql # not compatible
query I rowsort label-8126
SELECT COALESCE ( - COUNT ( * ), - 75 * 81 ) * - 16 * + 59 + 98 AS col0
----
1042

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8127
SELECT CAST( NULL AS DECIMAL ) + + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-8127
SELECT CAST ( NULL AS REAL ) + + + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL ( 83 ) + - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL ( 83 ) + - COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8129
SELECT DISTINCT - 92 AS col1, 70 * - 10 * - ( NULLIF ( + 73, 15 * - COUNT( * ) - + + ( - 3 ) ) ) + + + 55 - + 56 + - 39 AS col0
----
-92
51060

skipif mysql # not compatible
query II rowsort label-8129
SELECT DISTINCT - 92 AS col1, 70 * - 10 * - ( NULLIF ( + 73, 15 * - COUNT ( * ) - + + ( - 3 ) ) ) + + + 55 - + 56 + - 39 AS col0
----
-92
51060

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8130
SELECT ( - 93 ) * - - 39 + - CAST( NULL AS SIGNED ) AS col1, 99 * - 90
----
NULL
-8910

skipif mysql # not compatible
query II rowsort label-8130
SELECT ( - 93 ) * - - 39 + - CAST ( NULL AS INTEGER ) AS col1, 99 * - 90
----
NULL
-8910

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT COUNT( * ) * 52
----
52

skipif mysql # not compatible
query I rowsort label-8131
SELECT COUNT ( * ) * 52
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT + MIN( DISTINCT 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8132
SELECT + MIN ( DISTINCT 74 ) AS col0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8133
SELECT DISTINCT 43 - + 14 + - 57 + 31 DIV + - ( + 54 )
----
-28

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT 43 - + 14 + - 57 + 31 / + - ( + 54 )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-8134
SELECT 73 AS col0, 65 - + 20 + COUNT( * ) + + 97 * + 89 * 47 AS col2
----
73
405797

skipif mysql # not compatible
query II rowsort label-8134
SELECT 73 AS col0, 65 - + 20 + COUNT ( * ) + + 97 * + 89 * 47 AS col2
----
73
405797

query II rowsort
SELECT ALL 16, 81 AS col0
----
16
81

query II rowsort
SELECT 19 AS col1, 94 * + 28 col0
----
19
2632

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT ALL + + COUNT( * ) * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL + + COUNT ( * ) * - COUNT ( * ) AS col0
----
-1

query II rowsort
SELECT ALL 38 AS col0, 12 AS col1
----
38
12

query II rowsort
SELECT DISTINCT + 52 AS col0, - 12 * + - 60 * 53
----
52
38160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8140
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT - 43 + + + 80 AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-8142
SELECT 4 * - - SUM( DISTINCT 29 ) col1, 38 * - - CASE COUNT( * ) WHEN - - 96 * - 68 * - + 79 + 56 THEN 24 - - 90 ELSE NULL END col1
----
116
NULL

skipif mysql # not compatible
query II rowsort label-8142
SELECT 4 * - - SUM ( DISTINCT 29 ) col1, 38 * - - CASE COUNT ( * ) WHEN - - 96 * - 68 * - + 79 + 56 THEN 24 - - 90 ELSE NULL END col1
----
116
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT COUNT( * ) + 70 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-8143
SELECT COUNT ( * ) + 70 AS col0
----
71

query I rowsort
SELECT + ( 45 ) col2
----
45

query I rowsort
SELECT + 40 * + 80 AS col1
----
3200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8146
SELECT + 49 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8146
SELECT + 49 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8147
SELECT ALL - + 34 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL - + 34 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 27 * + 13 * + 99 col1
----
34749

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT DISTINCT - + COUNT( * ) + 64 + ( - + MIN( DISTINCT - - 86 ) ) * - 56 + 19 + 6 + - + 22
----
4882

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT - + COUNT ( * ) + 64 + ( - + MIN ( DISTINCT - - 86 ) ) * - 56 + 19 + 6 + - + 22
----
4882

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8150
SELECT - - 24 + - COUNT( ALL + 83 ) DIV - - 90, + 33 AS col1
----
24
33

skipif mysql # not compatible
query II rowsort label-8150
SELECT - - 24 + - COUNT ( ALL + 83 ) / - - 90, + 33 AS col1
----
24
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8151
SELECT - 16 DIV + 76 * COALESCE ( 10, - - 60 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8151
SELECT - 16 / + 76 * COALESCE ( 10, - - 60 ) AS col0
----
0

query I rowsort
SELECT ALL - - 80 * - 87 + - 51 AS col2
----
-7011

query II rowsort
SELECT DISTINCT + 71 * + - 93 AS col2, - 93
----
-6603
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8154
SELECT - 80 DIV + + 25 * + COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8154
SELECT - 80 / + + 25 * + COUNT ( * ) AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8155
SELECT + 86 DIV 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8155
SELECT + 86 / 61 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL + SUM( - 24 ) * - 54 col1
----
1296

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL + SUM ( - 24 ) * - 54 col1
----
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT + COUNT( DISTINCT + 38 ) * - - 28 * - + COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-8157
SELECT + COUNT ( DISTINCT + 38 ) * - - 28 * - + COUNT ( * ) AS col0
----
-28

query I rowsort
SELECT - 74 - + 99 AS col1
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT 44 * - COUNT( * ) - + 64
----
-108

skipif mysql # not compatible
query I rowsort label-8159
SELECT 44 * - COUNT ( * ) - + 64
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-8160
SELECT ALL + 53 * - NULLIF ( - + MIN( DISTINCT - 6 ), + + COUNT( * ) ) AS col1, 63 AS col0
----
-318
63

skipif mysql # not compatible
query II rowsort label-8160
SELECT ALL + 53 * - NULLIF ( - + MIN ( DISTINCT - 6 ), + + COUNT ( * ) ) AS col1, 63 AS col0
----
-318
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT + MIN( - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-8161
SELECT + MIN ( - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-8162
SELECT MIN( ALL + 77 ) AS col1, 59
----
77
59

skipif mysql # not compatible
query II rowsort label-8162
SELECT MIN ( ALL + 77 ) AS col1, 59
----
77
59

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8163
SELECT AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col2, 53
----
NULL
53

skipif mysql # not compatible
query II rowsort label-8163
SELECT AVG ( DISTINCT + CAST ( NULL AS REAL ) ) AS col2, 53
----
NULL
53

query I rowsort
SELECT - 70 * 77 * 23 + + ( + 20 ) AS col1
----
-123950

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT + MIN( ALL + + 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-8165
SELECT + MIN ( ALL + + 87 ) AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8166
SELECT + 42 + + 67 * - CASE - CASE - CAST( - 67 AS SIGNED ) WHEN - + NULLIF ( - - COUNT( * ), + 26 - + 41 ) * - 46 / - NULLIF ( + - 27, 58 ) - + + CAST( NULL AS SIGNED ) THEN NULL WHEN + 29 THEN + COUNT( * ) ELSE NULL END WHEN - - COUNT( * ) THEN NULL ELSE + - CAST( ( - + 10 ) AS SIGNED ) END AS col2
----
-628

skipif mysql # not compatible
query I rowsort label-8166
SELECT + 42 + + 67 * - CASE - CASE - CAST ( - 67 AS INTEGER ) WHEN - + NULLIF ( - - COUNT ( * ), + 26 - + 41 ) * - 46 / - NULLIF ( + - 27, 58 ) - + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 29 THEN + COUNT ( * ) ELSE NULL END WHEN - - COUNT ( * ) THEN NULL ELSE + - CAST ( ( - + 10 ) AS INTEGER ) END AS col2
----
-628

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8167
SELECT + 60 DIV + CAST( + 40 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8167
SELECT + 60 / + CAST ( + 40 AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT SUM( ALL ( - 78 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-8168
SELECT SUM ( ALL ( - 78 ) )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT COUNT( * ) * - 88 + - + CASE + 94 WHEN - 81 THEN NULL WHEN + 86 THEN - 19 ELSE - + 79 + - COALESCE ( + 80, SUM( DISTINCT 81 ) + + ( + - 52 ) ) END + - 58 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8169
SELECT COUNT ( * ) * - 88 + - + CASE + 94 WHEN - 81 THEN NULL WHEN + 86 THEN - 19 ELSE - + 79 + - COALESCE ( + 80, SUM ( DISTINCT 81 ) + + ( + - 52 ) ) END + - 58 AS col1
----
13

query I rowsort
SELECT DISTINCT CASE - - 29 WHEN + + 13 - + 31 * - 72 / - + 96 + + 42 * - 91 + - 94 THEN + + ( - 33 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT ALL - MIN( - - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL - MIN ( - - 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT + - COUNT( * ) * + + 73 * 54 + 36
----
-3906

skipif mysql # not compatible
query I rowsort label-8172
SELECT + - COUNT ( * ) * + + 73 * 54 + 36
----
-3906

onlyif mysql # aggregate syntax: 
query II rowsort label-8173
SELECT DISTINCT + 27 + + COUNT( * ) * + + SUM( DISTINCT + - 60 ) AS col2, - 51
----
-33
-51

skipif mysql # not compatible
query II rowsort label-8173
SELECT DISTINCT + 27 + + COUNT ( * ) * + + SUM ( DISTINCT + - 60 ) AS col2, - 51
----
-33
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8174
SELECT ALL + 58 DIV - + 41
----
-1

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL + 58 / - + 41
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8175
SELECT + ( + 32 ) DIV + 47 + + 27 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8175
SELECT + ( + 32 ) / + 47 + + 27 AS col2
----
27

query I rowsort
SELECT - - 18 col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8177
SELECT - COUNT( * ) * + + ( - COUNT( * ) ) DIV 72 col2, 53 * - COUNT( * )
----
0
-53

skipif mysql # not compatible
query II rowsort label-8177
SELECT - COUNT ( * ) * + + ( - COUNT ( * ) ) / 72 col2, 53 * - COUNT ( * )
----
0
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8178
SELECT DISTINCT 90 + CAST( NULL AS SIGNED ) * 63 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT 90 + CAST ( NULL AS INTEGER ) * 63 * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - 33 + + ( - 47 ) AS col2
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8180
SELECT DISTINCT + MIN( DISTINCT - - 42 ) + - 30 * 75 DIV + + 25 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT + MIN ( DISTINCT - - 42 ) + - 30 * 75 / + + 25 AS col0
----
-48

query I rowsort
SELECT ALL 74 + - 24 col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT DISTINCT - 40 * - 16 - + COUNT( * ) + SUM( - + 35 ) AS col1
----
604

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT - 40 * - 16 - + COUNT ( * ) + SUM ( - + 35 ) AS col1
----
604

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT + 80 + + SUM( ALL + - 60 ) * 5
----
-220

skipif mysql # not compatible
query I rowsort label-8183
SELECT + 80 + + SUM ( ALL + - 60 ) * 5
----
-220

query I rowsort
SELECT - 45 * + 35 AS col2
----
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT + SUM( COALESCE ( + - 98, - 47 ) )
----
-98

skipif mysql # not compatible
query I rowsort label-8185
SELECT + SUM ( COALESCE ( + - 98, - 47 ) )
----
-98

query I rowsort
SELECT - 50 + + + 21 AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT - 9 * - - CAST( - 27 AS SIGNED )
----
243

skipif mysql # not compatible
query I rowsort label-8187
SELECT - 9 * - - CAST ( - 27 AS INTEGER )
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT DISTINCT + CASE - + COUNT( * ) WHEN + - 80 / 74 + + 14 - + 74 - + + 44 THEN - 14 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT + CASE - + COUNT ( * ) WHEN + - 80 / 74 + + 14 - + 74 - + + 44 THEN - 14 END AS col1
----
NULL

query I rowsort
SELECT - 79 * + 88 AS col1
----
-6952

query I rowsort
SELECT ALL - 77 * 58 AS col1
----
-4466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8191
SELECT ALL - 22 * + + CASE - 16 WHEN + 1 * + + 20 * + CAST( 46 AS SIGNED ) + 60 + - COUNT( * ) THEN NULL ELSE + COUNT( * ) * + 83 END, CAST( NULL AS SIGNED ) AS col0
----
-1826
NULL

skipif mysql # not compatible
query II rowsort label-8191
SELECT ALL - 22 * + + CASE - 16 WHEN + 1 * + + 20 * + CAST ( 46 AS INTEGER ) + 60 + - COUNT ( * ) THEN NULL ELSE + COUNT ( * ) * + 83 END, CAST ( NULL AS INTEGER ) AS col0
----
-1826
NULL

query I rowsort
SELECT - 84 * - 29 AS col1
----
2436

query I rowsort
SELECT - 43 * 47
----
-2021

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT ALL + COALESCE ( 73, + - 15 * 97 * + COUNT( DISTINCT + 45 ) * + - 29 - SUM( + 28 ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL + COALESCE ( 73, + - 15 * 97 * + COUNT ( DISTINCT + 45 ) * + - 29 - SUM ( + 28 ) ) AS col1
----
73

query I rowsort
SELECT - 19 * - + 73 col0
----
1387

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT COALESCE ( 24, MAX( - - 0 ) )
----
24

skipif mysql # not compatible
query I rowsort label-8196
SELECT COALESCE ( 24, MAX ( - - 0 ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT + - CASE - - COUNT( - + 35 ) WHEN + 88 + 0 THEN + + 15 * 33 END * + COUNT( * ) * - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8197
SELECT + - CASE - - COUNT ( - + 35 ) WHEN + 88 + 0 THEN + + 15 * 33 END * + COUNT ( * ) * - 19 AS col1
----
NULL

query I rowsort
SELECT + + ( 36 )
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8199
SELECT - - 98 - - 24 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8199
SELECT - - 98 - - 24 * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT ALL 93 * 12 + COUNT( - 17 ) + + + 36 * - - 84
----
4141

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL 93 * 12 + COUNT ( - 17 ) + + + 36 * - - 84
----
4141

onlyif mysql # DIV for integer division: 
query I rowsort label-8201
SELECT + 4 DIV + 14 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8201
SELECT + 4 / + 14 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8202
SELECT DISTINCT + + COUNT( * ) * 47 DIV + 9 + - - ( 4 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT + + COUNT ( * ) * 47 / + 9 + - - ( 4 ) AS col1
----
9

query I rowsort
SELECT DISTINCT - 35 + 49 AS col1
----
14

query I rowsort
SELECT DISTINCT 23 + - 16
----
7

query I rowsort
SELECT + 98 * + + 37
----
3626

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT COUNT( * ) + - - 49
----
50

skipif mysql # not compatible
query I rowsort label-8206
SELECT COUNT ( * ) + - - 49
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8207
SELECT ALL 70 col1, 14 + MIN( DISTINCT + + COALESCE ( + 46, - ( - + 3 ) ) ) AS col1
----
70
60

skipif mysql # not compatible
query II rowsort label-8207
SELECT ALL 70 col1, 14 + MIN ( DISTINCT + + COALESCE ( + 46, - ( - + 3 ) ) ) AS col1
----
70
60

query I rowsort
SELECT ALL 27 - + ( + 25 )
----
2

query II rowsort
SELECT DISTINCT 75 col0, 72
----
75
72

query I rowsort
SELECT DISTINCT - 8 * + ( + 12 )
----
-96

query II rowsort
SELECT DISTINCT 29 AS col0, 32 AS col1
----
29
32

query II rowsort
SELECT ALL 80 AS col2, 18
----
80
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT DISTINCT - SUM( DISTINCT - - 32 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT - SUM ( DISTINCT - - 32 ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT COUNT( * ) * + 33 col1
----
33

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT COUNT ( * ) * + 33 col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8215
SELECT - 18 DIV + 16 + 79 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8215
SELECT - 18 / + 16 + 79 AS col2
----
78

query I rowsort
SELECT 69 * - 91 AS col2
----
-6279

query I rowsort
SELECT 56 - 22 * + - 14 col2
----
364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8218
SELECT 59 DIV COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-8218
SELECT 59 / COUNT ( * ) AS col2
----
59

query II rowsort
SELECT DISTINCT - 98 AS col2, + ( - 53 ) + + - 80 + + + 93
----
-98
-40

query I rowsort
SELECT DISTINCT + 46 * - - CASE + 31 WHEN - 15 * + 6 * 82 + + 74 THEN NULL WHEN + 24 - + 39 - - 29 THEN 85 - - 93 END * 6 AS col1
----
NULL

query I rowsort
SELECT ALL - 91 + + - 51 AS col2
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8222
SELECT 55 DIV - - 27 - - + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-8222
SELECT 55 / - - 27 - - + COUNT ( * )
----
3

query I rowsort
SELECT 84 * + 41
----
3444

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT ALL + 19 + CASE - + 87 WHEN - COUNT( * ) THEN - - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL + 19 + CASE - + 87 WHEN - COUNT ( * ) THEN - - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8225
SELECT DISTINCT + 91 * 28 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT + 91 * 28 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8226
SELECT + 32 * - COALESCE ( + CASE - ( 59 ) WHEN + 61 THEN NULL ELSE 46 + + 61 END, + + ( + 60 ), 38 - + 39 DIV 80 + - 18 + - 35 + ( COUNT( * ) ) - + + COUNT( * ) * + - 90 * + + COUNT( * ) * - + 53 * + + 49 * - CAST( NULL AS SIGNED ) ) + - ( 49 ) AS col2
----
-3473

skipif mysql # not compatible
query I rowsort label-8226
SELECT + 32 * - COALESCE ( + CASE - ( 59 ) WHEN + 61 THEN NULL ELSE 46 + + 61 END, + + ( + 60 ), 38 - + 39 / 80 + - 18 + - 35 + ( COUNT ( * ) ) - + + COUNT ( * ) * + - 90 * + + COUNT ( * ) * - + 53 * + + 49 * - CAST ( NULL AS INTEGER ) ) + - ( 49 ) AS col2
----
-3473

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT 22 - COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8227
SELECT 22 - COUNT ( * ) AS col2
----
21

query II rowsort
SELECT - 10 + - 24 AS col1, 60
----
-34
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8229
SELECT + + AVG ( - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT + + AVG ( - + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8230
SELECT - 93 * - CAST( + 78 AS SIGNED ) AS col0
----
7254

skipif mysql # not compatible
query I rowsort label-8230
SELECT - 93 * - CAST ( + 78 AS INTEGER ) AS col0
----
7254

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT ALL - + COUNT( * ) + + 51 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL - + COUNT ( * ) + + 51 AS col2
----
50

query I rowsort
SELECT ALL + 97 + 74 AS col2
----
171

query I rowsort
SELECT DISTINCT - 39 + 1 AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8234
SELECT DISTINCT + - 11 + - CAST( NULL AS SIGNED ) + + 25 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT + - 11 + - CAST ( NULL AS INTEGER ) + + 25 * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ALL - 6 + - 82 * - - COUNT( + 17 ) * 91 + + + 28
----
-7440

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL - 6 + - 82 * - - COUNT ( + 17 ) * 91 + + + 28
----
-7440

query I rowsort
SELECT COALESCE ( + 54, - 38 * - 36 ) + + 62 AS col0
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-8237
SELECT ALL + COUNT( * ) AS col2, 22 col2
----
1
22

skipif mysql # not compatible
query II rowsort label-8237
SELECT ALL + COUNT ( * ) AS col2, 22 col2
----
1
22

query I rowsort
SELECT 58 + 48 AS col1
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8239
SELECT - 95 * + 47 * - - COALESCE ( - 15, - ( + + COUNT( * ) ) DIV - - 41 - + 31 + - + COUNT( * ) + + + 61 + - - 57 ) * - - 5
----
334875

skipif mysql # not compatible
query I rowsort label-8239
SELECT - 95 * + 47 * - - COALESCE ( - 15, - ( + + COUNT ( * ) ) / - - 41 - + 31 + - + COUNT ( * ) + + + 61 + - - 57 ) * - - 5
----
334875

onlyif mysql # aggregate syntax: 
query II rowsort label-8240
SELECT DISTINCT 64 col2, COUNT( * ) AS col1
----
64
1

skipif mysql # not compatible
query II rowsort label-8240
SELECT DISTINCT 64 col2, COUNT ( * ) AS col1
----
64
1

query II rowsort
SELECT 22 AS col2, + 10 AS col2
----
22
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8242
SELECT 9 + - + 5 + + ( + + NULLIF ( - CAST( NULL AS SIGNED ), + 93 + 29 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8242
SELECT 9 + - + 5 + + ( + + NULLIF ( - CAST ( NULL AS INTEGER ), + 93 + 29 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8243
SELECT + ( - CAST( NULL AS SIGNED ) ) * - + SUM( ALL - 77 ) + - - 5 + - CAST( - 84 AS SIGNED ) * - - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8243
SELECT + ( - CAST ( NULL AS INTEGER ) ) * - + SUM ( ALL - 77 ) + - - 5 + - CAST ( - 84 AS INTEGER ) * - - 61
----
NULL

query II rowsort
SELECT NULLIF ( + 96, - 70 ) * 30 AS col0, - ( + + 11 )
----
2880
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8245
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 41 + - 67
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8247
SELECT ALL + CAST( - + 32 AS SIGNED ) * SUM( 15 ) col1
----
-480

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL + CAST ( - + 32 AS INTEGER ) * SUM ( 15 ) col1
----
-480

onlyif mysql # DIV for integer division: 
query I rowsort label-8248
SELECT 31 + + + 20 DIV + 99 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8248
SELECT 31 + + + 20 / + 99 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT COUNT( + - 40 ) - - ( + 99 )
----
100

skipif mysql # not compatible
query I rowsort label-8249
SELECT COUNT ( + - 40 ) - - ( + 99 )
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8250
SELECT CAST( 46 AS SIGNED ) DIV - COUNT( * ) + - MIN( ALL + + 91 )
----
-137

skipif mysql # not compatible
query I rowsort label-8250
SELECT CAST ( 46 AS INTEGER ) / - COUNT ( * ) + - MIN ( ALL + + 91 )
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8251
SELECT CAST( - 4 AS SIGNED ) + MAX( ALL - + 44 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-8251
SELECT CAST ( - 4 AS INTEGER ) + MAX ( ALL - + 44 ) AS col0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-8252
SELECT ALL 79 DIV + + 43 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL 79 / + + 43 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8253
SELECT 50 * + CAST( + + ( + 16 ) AS SIGNED )
----
800

skipif mysql # not compatible
query I rowsort label-8253
SELECT 50 * + CAST ( + + ( + 16 ) AS INTEGER )
----
800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8254
SELECT COUNT( + + ( - 93 ) ) / + CASE 33 WHEN - COUNT( * ) THEN 83 WHEN + 67 - - CAST( - + 12 AS SIGNED ) THEN - COUNT( * ) END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT COUNT ( + + ( - 93 ) ) / + CASE 33 WHEN - COUNT ( * ) THEN 83 WHEN + 67 - - CAST ( - + 12 AS INTEGER ) THEN - COUNT ( * ) END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT COUNT( ALL + 81 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8255
SELECT COUNT ( ALL + 81 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 45 * + + 11 + + ( + 40 ) AS col1
----
535

query I rowsort
SELECT ALL 95 * - - 0 * + + 74 + - 69 + 86 + 36 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT DISTINCT MIN( - 29 ) * + - 47 + 74 AS col1
----
1437

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT MIN ( - 29 ) * + - 47 + 74 AS col1
----
1437

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT + COALESCE ( 32, - 71 + - 85 * - 8 + - 34 + - 56, - SUM( - 59 ) )
----
32

skipif mysql # not compatible
query I rowsort label-8259
SELECT + COALESCE ( 32, - 71 + - 85 * - 8 + - 34 + - 56, - SUM ( - 59 ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT SUM( DISTINCT - 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8260
SELECT SUM ( DISTINCT - 84 ) AS col2
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8261
SELECT - CAST( 72 AS SIGNED ) / + - MAX( + + 9 ) - CAST( NULL AS SIGNED ) + - 16 + - + COUNT( * ) * 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8261
SELECT - CAST ( 72 AS INTEGER ) / + - MAX ( + + 9 ) - CAST ( NULL AS INTEGER ) + - 16 + - + COUNT ( * ) * 40 AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( - 98, + - NULLIF ( + 57, - - 47 ) )
----
-98

query I rowsort
SELECT + NULLIF ( - 61, + ( 65 ) + - 89 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8264
SELECT - + 5 * 26 + - CAST( NULL AS SIGNED ) * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8264
SELECT - + 5 * 26 + - CAST ( NULL AS INTEGER ) * 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8265
SELECT + COUNT( * ) * + CAST( NULL AS DECIMAL ), + 77 AS col2
----
NULL
77

skipif mysql # not compatible
query II rowsort label-8265
SELECT + COUNT ( * ) * + CAST ( NULL AS REAL ), + 77 AS col2
----
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT DISTINCT ( 67 ) * - + 49 + + COUNT( * )
----
-3282

skipif mysql # not compatible
query I rowsort label-8266
SELECT DISTINCT ( 67 ) * - + 49 + + COUNT ( * )
----
-3282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8267
SELECT - COUNT( * ) DIV - 5 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8267
SELECT - COUNT ( * ) / - 5 AS col1
----
0

query I rowsort
SELECT ALL 13 - - 47 AS col1
----
60

query I rowsort
SELECT DISTINCT + 96 * - 84
----
-8064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8270
SELECT ALL + + COUNT( * ) * - 41 * - NULLIF ( + SUM( ALL 42 ), - 13 ) * + - ( NULLIF ( - 83, + 0 * + CASE + AVG ( - 14 ) WHEN - 21 THEN NULL WHEN + MAX( ALL + - 46 ) + + CASE + 58 WHEN 21 THEN 97 WHEN + 9 THEN + 44 + + 55 - - ( + 52 ) - - 99 ELSE 42 * CAST( + 65 AS SIGNED ) END * 49 THEN - - CASE 55 WHEN + 64 - - 44 THEN NULL WHEN COALESCE ( + 17, CAST( NULL AS SIGNED ) + 89 * - COUNT( * ), 23 + COUNT( * ) / 94 ) THEN - 0 WHEN ( + COUNT( DISTINCT 37 ) ) * 7 + 82 THEN - 98 END END * + 26 ) ) + 18
----
142944

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL + + COUNT ( * ) * - 41 * - NULLIF ( + SUM ( ALL 42 ), - 13 ) * + - ( NULLIF ( - 83, + 0 * + CASE + AVG ( - 14 ) WHEN - 21 THEN NULL WHEN + MAX ( ALL + - 46 ) + + CASE + 58 WHEN 21 THEN 97 WHEN + 9 THEN + 44 + + 55 - - ( + 52 ) - - 99 ELSE 42 * CAST ( + 65 AS INTEGER ) END * 49 THEN - - CASE 55 WHEN + 64 - - 44 THEN NULL WHEN COALESCE ( + 17, CAST ( NULL AS INTEGER ) + 89 * - COUNT ( * ), 23 + COUNT ( * ) / 94 ) THEN - 0 WHEN ( + COUNT ( DISTINCT 37 ) ) * 7 + 82 THEN - 98 END END * + 26 ) ) + 18
----
142944

onlyif mysql # DIV for integer division: 
query I rowsort label-8271
SELECT - + ( + + 88 ) DIV + 53 col2
----
-1

skipif mysql # not compatible
query I rowsort label-8271
SELECT - + ( + + 88 ) / + 53 col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8272
SELECT + - 63 * + 13 * 57 + - 49 * - COUNT( * ) * + - 12 + 14 AS col1, + ( - CAST( 79 AS SIGNED ) ) AS col1
----
-47257
-79

skipif mysql # not compatible
query II rowsort label-8272
SELECT + - 63 * + 13 * 57 + - 49 * - COUNT ( * ) * + - 12 + 14 AS col1, + ( - CAST ( 79 AS INTEGER ) ) AS col1
----
-47257
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT - COALESCE ( + COUNT( * ), - COALESCE ( - - 31, + 70 * 10 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8273
SELECT - COALESCE ( + COUNT ( * ), - COALESCE ( - - 31, + 70 * 10 ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT - - MAX( DISTINCT - 28 ) * 85 + 7
----
-2373

skipif mysql # not compatible
query I rowsort label-8274
SELECT - - MAX ( DISTINCT - 28 ) * 85 + 7
----
-2373

query II rowsort
SELECT - + 83 + + + 70 col1, - 73 AS col1
----
-13
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8276
SELECT - - COUNT( * ) DIV - 24 + + CAST( + 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-8276
SELECT - - COUNT ( * ) / - 24 + + CAST ( + 6 AS INTEGER )
----
6

query I rowsort
SELECT - + 39 - - 31
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8278
SELECT ALL + + 29 * + CAST( NULL AS DECIMAL ) - + - 63 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL + + 29 * + CAST ( NULL AS REAL ) - + - 63 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT - 86 - COUNT( DISTINCT + 10 ) + - 18 AS col1
----
-105

skipif mysql # not compatible
query I rowsort label-8279
SELECT - 86 - COUNT ( DISTINCT + 10 ) + - 18 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT DISTINCT COUNT( ALL + 3 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT COUNT ( ALL + 3 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT ALL COALESCE ( - + 64, 10 * - + COUNT( * ) )
----
-64

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL COALESCE ( - + 64, 10 * - + COUNT ( * ) )
----
-64

query I rowsort
SELECT ALL 74 * - 56 AS col0
----
-4144

query I rowsort
SELECT - 91 * + 58 AS col2
----
-5278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8284
SELECT - 50 + + COUNT( ALL NULLIF ( - 34, - 30 - + 63 ) ) * + - 65 - - NULLIF ( + + COALESCE ( - 75, - - CAST( - 66 AS SIGNED ) + - 74 + + ( - - 33 ) ), + 31 + + + 57 )
----
-190

skipif mysql # not compatible
query I rowsort label-8284
SELECT - 50 + + COUNT ( ALL NULLIF ( - 34, - 30 - + 63 ) ) * + - 65 - - NULLIF ( + + COALESCE ( - 75, - - CAST ( - 66 AS INTEGER ) + - 74 + + ( - - 33 ) ), + 31 + + + 57 )
----
-190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8285
SELECT + 73 + 93 * + - 42 * - CAST( NULL AS SIGNED ) * 9 * + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8285
SELECT + 73 + 93 * + - 42 * - CAST ( NULL AS INTEGER ) * 9 * + - 47
----
NULL

query I rowsort
SELECT DISTINCT ( + + 54 ) AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8287
SELECT + CAST( - 48 AS SIGNED ) * - - 53 AS col0
----
-2544

skipif mysql # not compatible
query I rowsort label-8287
SELECT + CAST ( - 48 AS INTEGER ) * - - 53 AS col0
----
-2544

query II rowsort
SELECT - 41 AS col2, ( 2 )
----
-41
2

query I rowsort
SELECT ALL 32 + - - 3
----
35

query I rowsort
SELECT ALL - 18 + - COALESCE ( + 33, - - 71 )
----
-51

query I rowsort
SELECT ALL + 64 * 32 * 97 AS col2
----
198656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT + CAST( NULL AS SIGNED ) * - + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT + CAST ( NULL AS INTEGER ) * - + 38 AS col2
----
NULL

query I rowsort
SELECT ALL 25 + - - 60
----
85

query I rowsort
SELECT DISTINCT - 46 * - 39
----
1794

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL + 91 + ( + 7 ) + + COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL + 91 + ( + 7 ) + + COUNT ( * ) AS col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8296
SELECT + COALESCE ( + COUNT( * ), - - CASE MAX( ALL + + 57 ) WHEN - 24 THEN - - 32 + + 36 DIV - 36 END + COUNT( * ) * + 46 )
----
1

skipif mysql # not compatible
query I rowsort label-8296
SELECT + COALESCE ( + COUNT ( * ), - - CASE MAX ( ALL + + 57 ) WHEN - 24 THEN - - 32 + + 36 / - 36 END + COUNT ( * ) * + 46 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT + 83 * + COUNT( - 71 )
----
83

skipif mysql # not compatible
query I rowsort label-8297
SELECT + 83 * + COUNT ( - 71 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT + 60 * + + CASE + 42 WHEN MIN( DISTINCT 98 ) THEN + 3 + - 18 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT + 60 * + + CASE + 42 WHEN MIN ( DISTINCT 98 ) THEN + 3 + - 18 END AS col2
----
NULL

query II rowsort
SELECT 96 AS col0, 21 AS col0
----
96
21

query I rowsort
SELECT DISTINCT 40 * - 7
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT - - COUNT( * ) * COUNT( * ) - - + COUNT( * ) * + ( - 84 )
----
-83

skipif mysql # not compatible
query I rowsort label-8301
SELECT - - COUNT ( * ) * COUNT ( * ) - - + COUNT ( * ) * + ( - 84 )
----
-83

query I rowsort
SELECT ALL + 89 * + 53 AS col0
----
4717

query I rowsort
SELECT + + 78 * - 11
----
-858

query II rowsort
SELECT ALL + + 25, 82 + + 32 * + 45 * + + 30 AS col0
----
25
43282

query I rowsort
SELECT 9 * + - 32 + + + 4 * + 72 * + 40
----
11232

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT + - COUNT( * ) - + 32 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-8306
SELECT + - COUNT ( * ) - + 32 AS col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8307
SELECT + + 34 + - NULLIF ( - 1, - COUNT( * ) ) / 79 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT + + 34 + - NULLIF ( - 1, - COUNT ( * ) ) / 79 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8308
SELECT + 17 * COALESCE ( - 33, + COUNT( * ) * + 42 ) DIV - 94 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8308
SELECT + 17 * COALESCE ( - 33, + COUNT ( * ) * + 42 ) / - 94 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8309
SELECT - - CASE - + 82 WHEN - + 34 THEN - 5 * 56 - SUM( - 0 ) WHEN - 90 THEN 29 * 71 END + CAST( - + 30 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8309
SELECT - - CASE - + 82 WHEN - + 34 THEN - 5 * 56 - SUM ( - 0 ) WHEN - 90 THEN 29 * 71 END + CAST ( - + 30 AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + - 14 AS col2, 81
----
-14
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8311
SELECT ALL + COALESCE ( CAST( 82 AS SIGNED ), + 89 ) col2
----
82

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL + COALESCE ( CAST ( 82 AS INTEGER ), + 89 ) col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8312
SELECT ALL 68 DIV + 67 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL 68 / + 67 AS col1
----
1

query I rowsort
SELECT - 32 + 48 * 87 col1
----
4144

query I rowsort
SELECT ALL - 31 * 29 * 45 AS col2
----
-40455

query I rowsort
SELECT DISTINCT + 77 * + - 18 * - + 61
----
84546

onlyif mysql # aggregate syntax: 
query II rowsort label-8316
SELECT - ( + 89 ) + 46 + 39 + + - 35 + COUNT( * ) + COUNT( * ) AS col0, ( + 46 ) * - 13
----
-37
-598

skipif mysql # not compatible
query II rowsort label-8316
SELECT - ( + 89 ) + 46 + 39 + + - 35 + COUNT ( * ) + COUNT ( * ) AS col0, ( + 46 ) * - 13
----
-37
-598

query I rowsort
SELECT DISTINCT 44 + + 55 + + - 83 + + 4 * - 42
----
-152

query I rowsort
SELECT ALL NULLIF ( 80, - 16 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT DISTINCT + 77 + - COUNT( ALL 19 )
----
76

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT + 77 + - COUNT ( ALL 19 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8320
SELECT ALL + 60 + - - 16 * - CASE 70 WHEN + 49 THEN NULL WHEN - - 78 THEN 65 * 37 * 64 + CAST( + 57 AS SIGNED ) - - 37 END AS col1, 7 + - + 47 AS col0
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-8320
SELECT ALL + 60 + - - 16 * - CASE 70 WHEN + 49 THEN NULL WHEN - - 78 THEN 65 * 37 * 64 + CAST ( + 57 AS INTEGER ) - - 37 END AS col1, 7 + - + 47 AS col0
----
NULL
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-8321
SELECT DISTINCT - 5 + 9 + + 0 * MAX( - ( - 11 ) ) + - + 6, COUNT( * ) + - + 44 AS col1
----
-2
-43

skipif mysql # not compatible
query II rowsort label-8321
SELECT DISTINCT - 5 + 9 + + 0 * MAX ( - ( - 11 ) ) + - + 6, COUNT ( * ) + - + 44 AS col1
----
-2
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8322
SELECT DISTINCT CAST( + 95 AS SIGNED ) AS col1, CAST( NULL AS SIGNED ) * + - 7 AS col0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-8322
SELECT DISTINCT CAST ( + 95 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) * + - 7 AS col0
----
95
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8323
SELECT DISTINCT - COALESCE ( - + 77, + ( 4 ) + ( + MAX( DISTINCT - 95 ) ) ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT - COALESCE ( - + 77, + ( 4 ) + ( + MAX ( DISTINCT - 95 ) ) ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT DISTINCT - COALESCE ( COUNT( * ), + + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT - COALESCE ( COUNT ( * ), + + COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT ALL 29 * - 66
----
-1914

query I rowsort
SELECT + 99 + + + 76
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT ALL + CASE - - COUNT( * ) WHEN - 71 * - 47 / - - CASE COUNT( * ) WHEN + 5 THEN + - 86 * + 45 * + COUNT( * ) * + SUM( - - 90 ) + - + MAX( 45 ) END + - 42 * 32 THEN - COUNT( * ) WHEN - + 5 * + + 73 * - 20 THEN + - 7 * 57 - + + 61 END - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL + CASE - - COUNT ( * ) WHEN - 71 * - 47 / - - CASE COUNT ( * ) WHEN + 5 THEN + - 86 * + 45 * + COUNT ( * ) * + SUM ( - - 90 ) + - + MAX ( 45 ) END + - 42 * 32 THEN - COUNT ( * ) WHEN - + 5 * + + 73 * - 20 THEN + - 7 * 57 - + + 61 END - 29
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8328
SELECT DISTINCT + 60 - + ( - CAST( NULL AS SIGNED ) ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT + 60 - + ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8329
SELECT DISTINCT - + COALESCE ( COALESCE ( + + 88, - + 46, - - 91 + - + 9 - + 24 * 96 ), - COUNT( * ) * 7 + MIN( ALL - 73 ) ) AS col0, + 91 * - - COUNT( * ) AS col2
----
-88
91

skipif mysql # not compatible
query II rowsort label-8329
SELECT DISTINCT - + COALESCE ( COALESCE ( + + 88, - + 46, - - 91 + - + 9 - + 24 * 96 ), - COUNT ( * ) * 7 + MIN ( ALL - 73 ) ) AS col0, + 91 * - - COUNT ( * ) AS col2
----
-88
91

query I rowsort
SELECT 25 * + - ( - 68 ) col2
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT - MIN( DISTINCT + - 41 ) + COUNT( * ) + 12 * - 76 AS col2
----
-870

skipif mysql # not compatible
query I rowsort label-8331
SELECT - MIN ( DISTINCT + - 41 ) + COUNT ( * ) + 12 * - 76 AS col2
----
-870

onlyif mysql # DIV for integer division: 
query I rowsort label-8332
SELECT DISTINCT + 36 DIV - ( + ( 52 ) ) + + + 63 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT + 36 / - ( + ( 52 ) ) + + + 63 AS col1
----
63

query II rowsort
SELECT ALL 59 * 27 AS col1, 86 col0
----
1593
86

query I rowsort
SELECT + 37 + + 25 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT MAX( ALL + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-8335
SELECT MAX ( ALL + 40 )
----
40

query I rowsort
SELECT ALL + ( + 24 ) * ( + + 14 )
----
336

query I rowsort
SELECT ALL NULLIF ( + 61, 88 ) + ( 22 ) + 79 * - - 66 + + + 22 AS col0
----
5319

query I rowsort
SELECT + 95 - 1
----
94

query I rowsort
SELECT 34 - + 64 col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT ALL 62 * - + COUNT( * ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL 62 * - + COUNT ( * ) AS col2
----
-62

query I rowsort
SELECT 40 * - 60
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT CASE - 60 WHEN + NULLIF ( MAX( - - 75 ), - - ( - 41 ) + + 52 ) + + AVG ( ALL - + 6 ) * + 74 THEN + - NULLIF ( 25, + ( + + NULLIF ( - 63, - 8 + + 46 - - 26 * + 86 * + 31 - + + COUNT( * ) * - AVG ( ALL + 31 ) ) ) + - - 47 ) * - + 14 ELSE NULL END * - 20 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8342
SELECT CASE - 60 WHEN + NULLIF ( MAX ( - - 75 ), - - ( - 41 ) + + 52 ) + + AVG ( ALL - + 6 ) * + 74 THEN + - NULLIF ( 25, + ( + + NULLIF ( - 63, - 8 + + 46 - - 26 * + 86 * + 31 - + + COUNT ( * ) * - AVG ( ALL + 31 ) ) ) + - - 47 ) * - + 14 ELSE NULL END * - 20 + - + COUNT ( * )
----
NULL

query I rowsort
SELECT 85 + - + ( 80 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8344
SELECT ALL 56 + + - COUNT( * ) * - COUNT( * ) DIV - CAST( 49 AS SIGNED ) col0
----
56

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL 56 + + - COUNT ( * ) * - COUNT ( * ) / - CAST ( 49 AS INTEGER ) col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8345
SELECT DISTINCT CAST( - 65 AS SIGNED ) + + + 66 col2
----
1

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT CAST ( - 65 AS INTEGER ) + + + 66 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL + MIN( + 66 ) + - 77 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL + MIN ( + 66 ) + - 77 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-8347
SELECT ( - 83 ) - + 39 AS col0, 19 * + ( - 61 ) + - NULLIF ( + 12, 32 + + + 54 + - 97 + - ( + COUNT( * ) ) * - 63 + - 48 ) AS col1
----
-122
-1171

skipif mysql # not compatible
query II rowsort label-8347
SELECT ( - 83 ) - + 39 AS col0, 19 * + ( - 61 ) + - NULLIF ( + 12, 32 + + + 54 + - 97 + - ( + COUNT ( * ) ) * - 63 + - 48 ) AS col1
----
-122
-1171

query II rowsort
SELECT 90 AS col0, 66
----
90
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8349
SELECT ALL - COUNT( * ) * - - SUM( - 76 ), 4 * - 50 * ( - MAX( + 9 ) ) * + NULLIF ( + + 91, 88 ) + - 77 col1
----
76
163723

skipif mysql # not compatible
query II rowsort label-8349
SELECT ALL - COUNT ( * ) * - - SUM ( - 76 ), 4 * - 50 * ( - MAX ( + 9 ) ) * + NULLIF ( + + 91, 88 ) + - 77 col1
----
76
163723

query II rowsort
SELECT 99, - 85 AS col2
----
99
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8351
SELECT ALL 96 DIV NULLIF ( - ( - 23 ), 75 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL 96 / NULLIF ( - ( - 23 ), 75 ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT ALL 55 + + MIN( + 60 ) * + + 74 AS col0
----
4495

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL 55 + + MIN ( + 60 ) * + + 74 AS col0
----
4495

query II rowsort
SELECT 71 AS col1, 58 + - 71 AS col2
----
71
-13

query I rowsort
SELECT 10 + + 46 AS col0
----
56

query I rowsort
SELECT 13 - 49 + 33 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8356
SELECT ALL - 28 * - COUNT( * ) / - ( - MAX( ALL + + ( + CAST( NULL AS SIGNED ) ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL - 28 * - COUNT ( * ) / - ( - MAX ( ALL + + ( + CAST ( NULL AS INTEGER ) ) ) ) AS col0
----
NULL

query I rowsort
SELECT 90 * + 81 AS col2
----
7290

query I rowsort
SELECT 94 * 86 * - 93 * 73 col1
----
-54882276

query I rowsort
SELECT ALL 13 * 3 AS col0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8360
SELECT DISTINCT 13 AS col1, MAX( - + 53 )
----
13
-53

skipif mysql # not compatible
query II rowsort label-8360
SELECT DISTINCT 13 AS col1, MAX ( - + 53 )
----
13
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT ALL 89 * 2 * + + COUNT( * ) * + + 67 col2
----
11926

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL 89 * 2 * + + COUNT ( * ) * + + 67 col2
----
11926

query II rowsort
SELECT 88, + 17 * COALESCE ( + 97, - + 54 - ( + - 12 ) + 68 ) AS col1
----
88
1649

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8363
SELECT ALL - CASE + 39 WHEN + 33 * + 8 THEN NULL WHEN + - COUNT( * ) THEN - CASE 74 WHEN - - 10 THEN + 52 * 96 * 31 + 90 DIV + COUNT( * ) ELSE NULL END + - 79 ELSE - 70 END AS col2, - 28 AS col0
----
70
-28

skipif mysql # not compatible
query II rowsort label-8363
SELECT ALL - CASE + 39 WHEN + 33 * + 8 THEN NULL WHEN + - COUNT ( * ) THEN - CASE 74 WHEN - - 10 THEN + 52 * 96 * 31 + 90 / + COUNT ( * ) ELSE NULL END + - 79 ELSE - 70 END AS col2, - 28 AS col0
----
70
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT DISTINCT CASE + 94 WHEN - - COUNT( - 16 ) THEN NULL ELSE + + 85 * - - 51 * - + 45 END col1
----
-195075

skipif mysql # not compatible
query I rowsort label-8364
SELECT DISTINCT CASE + 94 WHEN - - COUNT ( - 16 ) THEN NULL ELSE + + 85 * - - 51 * - + 45 END col1
----
-195075

query II rowsort
SELECT + - 91, - ( - 68 ) AS col0
----
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT CASE 21 WHEN + 15 * - 44 THEN - COUNT( * ) ELSE + + 97 END AS col1
----
97

skipif mysql # not compatible
query I rowsort label-8366
SELECT CASE 21 WHEN + 15 * - 44 THEN - COUNT ( * ) ELSE + + 97 END AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8367
SELECT SUM( + 58 ) * - + ( + + 67 ) * - - 2 + - 60 - ( + 21 ) * - CAST( NULL AS SIGNED ) * + COUNT( * ) / - - COALESCE ( - + 42, - 82 ) * 51 + 76 + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT SUM ( + 58 ) * - + ( + + 67 ) * - - 2 + - 60 - ( + 21 ) * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) / - - COALESCE ( - + 42, - 82 ) * 51 + 76 + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT ALL - - 14 * - - 57 * + COUNT( * )
----
798

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL - - 14 * - - 57 * + COUNT ( * )
----
798

query I rowsort
SELECT - 18 * - 5 - 67
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT DISTINCT - + COALESCE ( + 63, - - 32 * - MAX( 69 ) + 60 ) * - + 80 + - ( 70 ) AS col1
----
4970

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT - + COALESCE ( + 63, - - 32 * - MAX ( 69 ) + 60 ) * - + 80 + - ( 70 ) AS col1
----
4970

query II rowsort
SELECT DISTINCT - + 70 AS col1, + 84
----
-70
84

query I rowsort
SELECT ALL - - ( 74 )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8373
SELECT - CAST( NULL AS SIGNED ) * + - ( AVG ( DISTINCT 40 ) ) + + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT - CAST ( NULL AS INTEGER ) * + - ( AVG ( DISTINCT 40 ) ) + + - 78
----
NULL

query I rowsort
SELECT DISTINCT - 21 + - 16 AS col0
----
-37

query I rowsort
SELECT 89 + - ( + 63 ) AS col1
----
26

query I rowsort
SELECT - 43 * - + 43 + - CASE + 9 WHEN - 32 THEN NULL WHEN - COALESCE ( - 85, + 50, + AVG ( 8 ) ) THEN 72 ELSE NULL END - - 81 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT DISTINCT - 59 + - - SUM( 9 )
----
-50

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT - 59 + - - SUM ( 9 )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8378
SELECT ALL + 5 + + + 20 - 31 * + CAST( + 95 AS SIGNED ) + + COUNT( * ) + 8 - COUNT( * ) * 5 * - + ( 9 )
----
-2866

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL + 5 + + + 20 - 31 * + CAST ( + 95 AS INTEGER ) + + COUNT ( * ) + 8 - COUNT ( * ) * 5 * - + ( 9 )
----
-2866

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT - COUNT( ALL - 69 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8379
SELECT - COUNT ( ALL - 69 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT DISTINCT COALESCE ( - NULLIF ( - + 48, - - 36 ), + - 46 ) + ( - + ( - + COUNT( * ) ) )
----
49

skipif mysql # not compatible
query I rowsort label-8380
SELECT DISTINCT COALESCE ( - NULLIF ( - + 48, - - 36 ), + - 46 ) + ( - + ( - + COUNT ( * ) ) )
----
49

query I rowsort
SELECT 59 * - + 51
----
-3009

onlyif mysql # aggregate syntax: 
query II rowsort label-8382
SELECT 76, - COUNT( + - 86 ) * + 46 AS col1
----
76
-46

skipif mysql # not compatible
query II rowsort label-8382
SELECT 76, - COUNT ( + - 86 ) * + 46 AS col1
----
76
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8383
SELECT ALL 73 * MIN( - + CAST( 47 AS SIGNED ) ) * 80 * + 19
----
-5215120

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL 73 * MIN ( - + CAST ( 47 AS INTEGER ) ) * 80 * + 19
----
-5215120

onlyif mysql # DIV for integer division: 
query I rowsort label-8384
SELECT 65 + 48 DIV + 57 col2
----
65

skipif mysql # not compatible
query I rowsort label-8384
SELECT 65 + 48 / + 57 col2
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8385
SELECT + COUNT( * ) * + - 91 AS col0, - 46
----
-91
-46

skipif mysql # not compatible
query II rowsort label-8385
SELECT + COUNT ( * ) * + - 91 AS col0, - 46
----
-91
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT - CASE 77 WHEN + COUNT( * ) THEN 59 WHEN - - 43 THEN + COUNT( * ) * - + 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT - CASE 77 WHEN + COUNT ( * ) THEN 59 WHEN - - 43 THEN + COUNT ( * ) * - + 69 END
----
NULL

query I rowsort
SELECT ALL 1 - - 88 + - 72 AS col0
----
17

query I rowsort
SELECT + 25 + + 86 + - 15 + - 72
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8389
SELECT + 83 DIV + 69 col2
----
1

skipif mysql # not compatible
query I rowsort label-8389
SELECT + 83 / + 69 col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8390
SELECT + 1 + - + COUNT( * ) + + - 97 + 31 DIV 87 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-8390
SELECT + 1 + - + COUNT ( * ) + + - 97 + 31 / 87 AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8391
SELECT ALL 65 - + COUNT( * ) + + 47 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL 65 - + COUNT ( * ) + + 47 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8392
SELECT + COUNT( * ) + SUM( NULLIF ( - + 98, - + 41 ) ) * - NULLIF ( CAST( + + 94 AS SIGNED ), 12 * + 14 )
----
9213

skipif mysql # not compatible
query I rowsort label-8392
SELECT + COUNT ( * ) + SUM ( NULLIF ( - + 98, - + 41 ) ) * - NULLIF ( CAST ( + + 94 AS INTEGER ), 12 * + 14 )
----
9213

query I rowsort
SELECT + + 66 + - 10 * - + 12 + + ( - + 25 )
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT - 8 * ( + - 58 ) + + COUNT( * )
----
465

skipif mysql # not compatible
query I rowsort label-8394
SELECT - 8 * ( + - 58 ) + + COUNT ( * )
----
465

onlyif mysql # DIV for integer division: 
query I rowsort label-8395
SELECT ALL ( 21 ) DIV - 17 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL ( 21 ) / - 17 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8396
SELECT + - 96 * - 78 * + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT + - 96 * - 78 * + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 91 + - 74 * - 30
----
2311

query II rowsort
SELECT ALL 44, + 34 + + 95 * 72 AS col0
----
44
6874

query I rowsort
SELECT DISTINCT 95 * - + 81 col1
----
-7695

query I rowsort
SELECT ALL + ( + ( - 85 ) ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT + 83 + - SUM( DISTINCT 77 )
----
6

skipif mysql # not compatible
query I rowsort label-8401
SELECT + 83 + - SUM ( DISTINCT 77 )
----
6

query I rowsort
SELECT - 91 * 45 + 18 AS col2
----
-4077

query I rowsort
SELECT DISTINCT + + ( + 98 ) AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8404
SELECT - ( - 15 ) * - 49 + 7 * - + MAX( - + 4 ) DIV - - MAX( ALL + ( + 95 ) ) - + 31 * - 37 * 66 col0
----
74967

skipif mysql # not compatible
query I rowsort label-8404
SELECT - ( - 15 ) * - 49 + 7 * - + MAX ( - + 4 ) / - - MAX ( ALL + ( + 95 ) ) - + 31 * - 37 * 66 col0
----
74967

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL - 58 * COUNT( * ) * + 54 + + + 3 col2
----
-3129

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL - 58 * COUNT ( * ) * + 54 + + + 3 col2
----
-3129

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT SUM( - + 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-8406
SELECT SUM ( - + 23 )
----
-23

query II rowsort
SELECT - - 40 + - 64, 64 col0
----
-24
64

query I rowsort
SELECT ALL 94 * - 11 + - - 87 AS col0
----
-947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8409
SELECT - NULLIF ( 36, - 64 ) * 65 * CASE + 22 WHEN - 31 * + 59 * NULLIF ( - CASE + - COUNT( * ) WHEN + 73 THEN - 97 ELSE NULL END, + CASE + 85 WHEN + + ( - + COUNT( * ) ) THEN NULL WHEN 75 + 92 + + + 71 * + 59 THEN 49 * + - 76 + - 50 ELSE NULL END ) * - + 70 + MAX( DISTINCT + 68 ) * + - 64 THEN NULL WHEN 23 + - 19 * - + ( + 54 ) * - CAST( + - NULLIF ( - 94, - 26 - 22 * MIN( ALL 86 ) ) AS SIGNED ) THEN - COUNT( * ) ELSE NULL END * + NULLIF ( - 26 * - COUNT( * ) - 98, 83 + + ( 63 + 35 / ( 47 + 50 ) ) ) + - 19 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT - NULLIF ( 36, - 64 ) * 65 * CASE + 22 WHEN - 31 * + 59 * NULLIF ( - CASE + - COUNT ( * ) WHEN + 73 THEN - 97 ELSE NULL END, + CASE + 85 WHEN + + ( - + COUNT ( * ) ) THEN NULL WHEN 75 + 92 + + + 71 * + 59 THEN 49 * + - 76 + - 50 ELSE NULL END ) * - + 70 + MAX ( DISTINCT + 68 ) * + - 64 THEN NULL WHEN 23 + - 19 * - + ( + 54 ) * - CAST ( + - NULLIF ( - 94, - 26 - 22 * MIN ( ALL 86 ) ) AS INTEGER ) THEN - COUNT ( * ) ELSE NULL END * + NULLIF ( - 26 * - COUNT ( * ) - 98, 83 + + ( 63 + 35 / ( 47 + 50 ) ) ) + - 19 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT ALL - 71 * + 34 / - 49 + - 54 + + 57 * CASE - ( - + 74 ) WHEN CAST( NULL AS SIGNED ) THEN - 66 END * CASE + 52 WHEN + COALESCE ( - - 99, - + 67, 84 + CAST( NULL AS SIGNED ), - 40 ) + - 46 THEN NULL ELSE - 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL - 71 * + 34 / - 49 + - 54 + + 57 * CASE - ( - + 74 ) WHEN CAST ( NULL AS INTEGER ) THEN - 66 END * CASE + 52 WHEN + COALESCE ( - - 99, - + 67, 84 + CAST ( NULL AS INTEGER ), - 40 ) + - 46 THEN NULL ELSE - 49 END
----
NULL

query II rowsort
SELECT DISTINCT + 18 * - 70, - 3 AS col0
----
-1260
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8412
SELECT ALL + CAST( NULL AS SIGNED ) / + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL + CAST ( NULL AS INTEGER ) / + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ALL + 0 * - 32 * + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL + 0 * - 32 * + + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT DISTINCT + 27 * + - 46 * - - 62
----
-77004

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT ALL ( - 3 ) * COUNT( * ) + + COUNT( - + 84 ) - - 42
----
40

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL ( - 3 ) * COUNT ( * ) + + COUNT ( - + 84 ) - - 42
----
40

query I rowsort
SELECT DISTINCT + 18 * - 1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8417
SELECT - CAST( + 38 AS SIGNED ) * - ( - COALESCE ( 52, + - COUNT( * ) * + 42 ) ) - 52 AS col1
----
-2028

skipif mysql # not compatible
query I rowsort label-8417
SELECT - CAST ( + 38 AS INTEGER ) * - ( - COALESCE ( 52, + - COUNT ( * ) * + 42 ) ) - 52 AS col1
----
-2028

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT MAX( - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-8418
SELECT MAX ( - 1 )
----
-1

query I rowsort
SELECT 65 * - 27 + + 74 AS col0
----
-1681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8420
SELECT - CAST( NULL AS SIGNED ) * + AVG ( + 12 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8420
SELECT - CAST ( NULL AS INTEGER ) * + AVG ( + 12 ) AS col2
----
NULL

query I rowsort
SELECT + 37 + 12 AS col1
----
49

query II rowsort
SELECT DISTINCT ( - 11 ), 23 AS col2
----
-11
23

query I rowsort
SELECT ALL 95 * - 62 * + - 79 AS col2
----
465310

onlyif mysql # DIV for integer division: 
query I rowsort label-8424
SELECT ALL - 65 DIV - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL - 65 / - 73 AS col2
----
0

query I rowsort
SELECT + 77 * - 15 * + 77
----
-88935

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT - 48 + SUM( - - 13 )
----
-35

skipif mysql # not compatible
query I rowsort label-8426
SELECT - 48 + SUM ( - - 13 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT - NULLIF ( - ( - - 28 ), + COUNT( * ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8427
SELECT - NULLIF ( - ( - - 28 ), + COUNT ( * ) ) AS col2
----
28

query I rowsort
SELECT - - 51 * 55 * 14 * - - 89
----
3495030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8429
SELECT + - 45 * + 76 * + CAST( NULL AS SIGNED ) * + + 35 * - - MAX( + + 16 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8429
SELECT + - 45 * + 76 * + CAST ( NULL AS INTEGER ) * + + 35 * - - MAX ( + + 16 ) AS col2
----
NULL

query II rowsort
SELECT ALL 84 * 81 AS col0, 14 col1
----
6804
14

query I rowsort
SELECT DISTINCT COALESCE ( 10, 70, + 48 ) AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8432
SELECT DISTINCT - COUNT( * ) + + 56 + - - NULLIF ( CASE + 50 WHEN 4 THEN NULL ELSE - 12 - - 70 * + + CAST( NULL AS SIGNED ) * + 98 END, 81 - COUNT( * ) ) * - + 17 * 73 * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT - COUNT ( * ) + + 56 + - - NULLIF ( CASE + 50 WHEN 4 THEN NULL ELSE - 12 - - 70 * + + CAST ( NULL AS INTEGER ) * + 98 END, 81 - COUNT ( * ) ) * - + 17 * 73 * 69
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8433
SELECT DISTINCT - 57 + - 44 DIV - 56 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT - 57 + - 44 / - 56 AS col0
----
-57

query I rowsort
SELECT + + 24 + - + 58 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-8435
SELECT + + 18 * 96 + 76 * - + COUNT( * ) + - COUNT( * ) AS col2, 89
----
1651
89

skipif mysql # not compatible
query II rowsort label-8435
SELECT + + 18 * 96 + 76 * - + COUNT ( * ) + - COUNT ( * ) AS col2, 89
----
1651
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8436
SELECT COALESCE ( + 92, - CASE - 91 WHEN 73 THEN - CAST( - 2 AS SIGNED ) ELSE - + 12 END ) DIV + 45 + - + 92 * + 12 * + COUNT( * ) * 30 + + 19 AS col2
----
-33099

skipif mysql # not compatible
query I rowsort label-8436
SELECT COALESCE ( + 92, - CASE - 91 WHEN 73 THEN - CAST ( - 2 AS INTEGER ) ELSE - + 12 END ) / + 45 + - + 92 * + 12 * + COUNT ( * ) * 30 + + 19 AS col2
----
-33099

query I rowsort
SELECT + + 74 + + 42
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8438
SELECT ALL 55 / 7 * - CAST( NULL AS SIGNED ) + + - ( 38 ) + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL 55 / 7 * - CAST ( NULL AS INTEGER ) + + - ( 38 ) + 70
----
NULL

query I rowsort
SELECT + 84 * - 84
----
-7056

query I rowsort
SELECT ALL + - 58 col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8441
SELECT + CAST( 56 AS SIGNED ) * - + 3 - + 84
----
-252

skipif mysql # not compatible
query I rowsort label-8441
SELECT + CAST ( 56 AS INTEGER ) * - + 3 - + 84
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT DISTINCT + MAX( ALL 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT + MAX ( ALL 82 ) AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8443
SELECT DISTINCT + 31 DIV - 47 + 79 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT + 31 / - 47 + 79 AS col1
----
79

query I rowsort
SELECT - 50 + 51 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT + SUM( DISTINCT - 1 ) * - 26 + + 99 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-8445
SELECT + SUM ( DISTINCT - 1 ) * - 26 + + 99 AS col0
----
125

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8446
SELECT - 90 * - 59 * - 39 - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT - 90 * - 59 * - 39 - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + ( 3 ) * 49 + + ( 18 )
----
165

query II rowsort
SELECT ( + ( + 5 ) ) AS col2, 22 AS col2
----
5
22

query I rowsort
SELECT DISTINCT - COALESCE ( 57, - 85 * + 68 ) AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8450
SELECT DISTINCT + CASE WHEN 95 <= NULL THEN 73 / 20 * - NULLIF ( - 32, + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / - CASE - - 23 WHEN + 87 THEN - 10 WHEN + ( - 50 ) * + - 35 + + + ( - - 46 ) THEN + 82 * + 74 - - 56 * - + 54 * - + 76 * + MAX( ALL + 98 ) WHEN - + 91 THEN + COUNT( * ) END * - + 93 + - 73 + COUNT( * ) ) * - ( + - ( + COUNT( * ) ) ) * + - 26 * + 70 - - 88 WHEN - CAST( NULL AS DECIMAL ) * 68 <= - 4 THEN - 41 + 93 ELSE NULL END * 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT + CASE WHEN 95 <= NULL THEN 73 / 20 * - NULLIF ( - 32, + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - CASE - - 23 WHEN + 87 THEN - 10 WHEN + ( - 50 ) * + - 35 + + + ( - - 46 ) THEN + 82 * + 74 - - 56 * - + 54 * - + 76 * + MAX ( ALL + 98 ) WHEN - + 91 THEN + COUNT ( * ) END * - + 93 + - 73 + COUNT ( * ) ) * - ( + - ( + COUNT ( * ) ) ) * + - 26 * + 70 - - 88 WHEN - CAST ( NULL AS REAL ) * 68 <= - 4 THEN - 41 + 93 ELSE NULL END * 30 AS col2
----
NULL

query I rowsort
SELECT 94 + - 57
----
37

query I rowsort
SELECT 13 + 29
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT ALL - MIN( + 12 ) * - 5
----
60

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL - MIN ( + 12 ) * - 5
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8454
SELECT 19 * - MAX( - - 74 ) col1, + 2 * + CAST( NULL AS SIGNED ) AS col2
----
-1406
NULL

skipif mysql # not compatible
query II rowsort label-8454
SELECT 19 * - MAX ( - - 74 ) col1, + 2 * + CAST ( NULL AS INTEGER ) AS col2
----
-1406
NULL

query I rowsort
SELECT 90 + - 78
----
12

query II rowsort
SELECT 39 AS col1, 58 AS col1
----
39
58

query I rowsort
SELECT 3 * 87 AS col0
----
261

query I rowsort
SELECT 38 + - 89
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT - SUM( DISTINCT 70 ) * + 35 AS col0
----
-2450

skipif mysql # not compatible
query I rowsort label-8459
SELECT - SUM ( DISTINCT 70 ) * + 35 AS col0
----
-2450

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT ALL - + CASE COUNT( * ) WHEN + + 96 THEN + 63 END + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL - + CASE COUNT ( * ) WHEN + + 96 THEN + 63 END + 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8461
SELECT DISTINCT - 52 DIV - - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT - 52 / - - COUNT ( * )
----
-52

query I rowsort
SELECT DISTINCT - 41 + - 52 AS col2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8463
SELECT + 65 + + NULLIF ( + + COALESCE ( - - COUNT( + 33 ), CAST( - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) + + ( + 54 ) - - + COUNT( * ) DIV + - ( + 73 ), 96, + 51 ), + - 6 * - + 72 - AVG ( + 89 ) )
----
66

skipif mysql # not compatible
query I rowsort label-8463
SELECT + 65 + + NULLIF ( + + COALESCE ( - - COUNT ( + 33 ), CAST ( - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) + + ( + 54 ) - - + COUNT ( * ) / + - ( + 73 ), 96, + 51 ), + - 6 * - + 72 - AVG ( + 89 ) )
----
66

query I rowsort
SELECT ALL - 8 + + 13 * 40 AS col0
----
512

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT SUM( + ( + 90 ) ) + - + 23 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-8465
SELECT SUM ( + ( + 90 ) ) + - + 23 AS col2
----
67

query I rowsort
SELECT ALL + 28 + - + ( - 9 ) + 32 + - - 56
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8467
SELECT 15 + MIN( + ( + 31 ) ) - + 76 + - CASE - - 74 WHEN + + 33 THEN + ( + 56 ) * AVG ( - ( 99 ) ) WHEN - 89 THEN + COALESCE ( - - 95, - CAST( NULL AS SIGNED ) * 80 ) + 26 * - ( - 58 ) WHEN 10 THEN NULL ELSE NULL END * - NULLIF ( + CASE 34 WHEN COUNT( * ) - - 96 THEN + 16 WHEN + 34 + + MIN( DISTINCT + 74 ) + 22 THEN NULL WHEN - 23 * - 59 / + 50 + - 53 THEN NULL END, + - COUNT( + ( 76 ) ) ) * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT 15 + MIN ( + ( + 31 ) ) - + 76 + - CASE - - 74 WHEN + + 33 THEN + ( + 56 ) * AVG ( - ( 99 ) ) WHEN - 89 THEN + COALESCE ( - - 95, - CAST ( NULL AS INTEGER ) * 80 ) + 26 * - ( - 58 ) WHEN 10 THEN NULL ELSE NULL END * - NULLIF ( + CASE 34 WHEN COUNT ( * ) - - 96 THEN + 16 WHEN + 34 + + MIN ( DISTINCT + 74 ) + 22 THEN NULL WHEN - 23 * - 59 / + 50 + - 53 THEN NULL END, + - COUNT ( + ( 76 ) ) ) * 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT 46 + - COUNT( * ) - 83 + + COUNT( * ) * - 25 col1
----
-63

skipif mysql # not compatible
query I rowsort label-8468
SELECT 46 + - COUNT ( * ) - 83 + + COUNT ( * ) * - 25 col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8469
SELECT - CAST( NULL AS SIGNED ) + + ( - 2 ) - - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8469
SELECT - CAST ( NULL AS INTEGER ) + + ( - 2 ) - - 8 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL SUM( + + 6 ) + - 82 * 58 col1
----
-4750

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL SUM ( + + 6 ) + - 82 * 58 col1
----
-4750

onlyif mysql # aggregate syntax: 
query II rowsort label-8471
SELECT - 25 AS col0, + SUM( DISTINCT + 51 ) * - ( + + 60 ) col0
----
-25
-3060

skipif mysql # not compatible
query II rowsort label-8471
SELECT - 25 AS col0, + SUM ( DISTINCT + 51 ) * - ( + + 60 ) col0
----
-25
-3060

query I rowsort
SELECT 38 + ( + - 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT ALL - + 36 * COUNT( * ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL - + 36 * COUNT ( * ) AS col0
----
-36

query I rowsort
SELECT DISTINCT + 65 - 15 * 36 * - - 82 AS col0
----
-44215

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT DISTINCT ( - COUNT( * ) ) - NULLIF ( 82, - - COUNT( * ) )
----
-83

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT ( - COUNT ( * ) ) - NULLIF ( 82, - - COUNT ( * ) )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT - SUM( DISTINCT + 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT - SUM ( DISTINCT + 70 ) AS col2
----
-70

query I rowsort
SELECT ALL - 51 - + 80 AS col0
----
-131

query I rowsort
SELECT 85 * - 23 AS col2
----
-1955

onlyif mysql # DIV for integer division: 
query I rowsort label-8479
SELECT ALL 32 DIV + - 57
----
0

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL 32 / + - 57
----
0

query I rowsort
SELECT 4 + 8 + - 46
----
-34

query I rowsort
SELECT ALL 50 * - 25
----
-1250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8482
SELECT 75 * - - CAST( NULL AS SIGNED ) * 32 * + COALESCE ( COUNT( * ), + 42, - ( + - 79 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT 75 * - - CAST ( NULL AS INTEGER ) * 32 * + COALESCE ( COUNT ( * ), + 42, - ( + - 79 ) )
----
NULL

query II rowsort
SELECT DISTINCT 85 * - - 28, - 7 AS col0
----
2380
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8484
SELECT DISTINCT 49 * - NULLIF ( + + COUNT( DISTINCT + - 3 ), + 99 + + - 13 ) DIV + - 54 + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT 49 * - NULLIF ( + + COUNT ( DISTINCT + - 3 ), + 99 + + - 13 ) / + - 54 + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - ( - ( + - 47 ) ) AS col0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8486
SELECT 19 DIV + + 21 * NULLIF ( 56, - 91 ) * + 90 * 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8486
SELECT 19 / + + 21 * NULLIF ( 56, - 91 ) * + 90 * 72 AS col0
----
0

query I rowsort
SELECT ALL ( - 90 ) + - 26 * 95 + - 83 AS col2
----
-2643

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT 0 * - - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8488
SELECT 0 * - - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8489
SELECT ALL - MAX( - - NULLIF ( + 69, - - 53 ) ), + 70 + + COUNT( * ) AS col2
----
-69
71

skipif mysql # not compatible
query II rowsort label-8489
SELECT ALL - MAX ( - - NULLIF ( + 69, - - 53 ) ), + 70 + + COUNT ( * ) AS col2
----
-69
71

query I rowsort
SELECT - 53 * 69 + - 50 AS col2
----
-3707

query I rowsort
SELECT ALL - 48 + + + 83 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-8492
SELECT ALL - 39 + + 24 DIV 77
----
-39

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL - 39 + + 24 / 77
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT DISTINCT - 12 + NULLIF ( - ( 78 ), SUM( + - 4 ) / - 35 * 98 )
----
-90

skipif mysql # not compatible
query I rowsort label-8493
SELECT DISTINCT - 12 + NULLIF ( - ( 78 ), SUM ( + - 4 ) / - 35 * 98 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT - COUNT( ALL 57 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8494
SELECT - COUNT ( ALL 57 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 19 + 68
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT DISTINCT + + COUNT( * ) + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT + + COUNT ( * ) + + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL - 57 + COUNT( + - 43 )
----
-56

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL - 57 + COUNT ( + - 43 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8498
SELECT 30 * - + CAST( + 11 AS SIGNED ) * 62 + MIN( ALL + - 95 ) DIV + 83 + + - COALESCE ( - - 65, - CAST( + + COUNT( * ) AS SIGNED ) + - 32 * 21 )
----
-20526

skipif mysql # not compatible
query I rowsort label-8498
SELECT 30 * - + CAST ( + 11 AS INTEGER ) * 62 + MIN ( ALL + - 95 ) / + 83 + + - COALESCE ( - - 65, - CAST ( + + COUNT ( * ) AS INTEGER ) + - 32 * 21 )
----
-20526

query I rowsort
SELECT 94 - + - 2 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT 9 * + + COUNT( 96 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8500
SELECT 9 * + + COUNT ( 96 ) AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8501
SELECT COALESCE ( + + COUNT( * ), - CAST( + 3 AS SIGNED ), 72 DIV + 0 + + 63 + - 51 ) DIV + 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8501
SELECT COALESCE ( + + COUNT ( * ), - CAST ( + 3 AS INTEGER ), 72 / + 0 + + 63 + - 51 ) / + 33 AS col2
----
0

query I rowsort
SELECT - + 86 col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8503
SELECT ALL - 61 - + + CAST( + COUNT( * ) AS SIGNED ) DIV - 79 AS col2, - 6 + - ( - ( + 8 ) ) * + 11 AS col2
----
-61
82

skipif mysql # not compatible
query II rowsort label-8503
SELECT ALL - 61 - + + CAST ( + COUNT ( * ) AS INTEGER ) / - 79 AS col2, - 6 + - ( - ( + 8 ) ) * + 11 AS col2
----
-61
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8504
SELECT ALL 32 - - 86 DIV 36 + + COALESCE ( + COALESCE ( + 68, - + 91 ), - 63 + - - 82, CAST( + 64 AS SIGNED ) )
----
102

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL 32 - - 86 / 36 + + COALESCE ( + COALESCE ( + 68, - + 91 ), - 63 + - - 82, CAST ( + 64 AS INTEGER ) )
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8505
SELECT DISTINCT + 69 DIV - + 3 + + + MAX( + 77 )
----
54

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT + 69 / - + 3 + + + MAX ( + 77 )
----
54

query I rowsort
SELECT 9 - + 15 col0
----
-6

query I rowsort
SELECT 68 + 69 AS col1
----
137

onlyif mysql # DIV for integer division: 
query II rowsort label-8508
SELECT ALL 57 * - 11 - - - 87 + + - 90 DIV + 70, + 12 + - 55 AS col1
----
-715
-43

skipif mysql # not compatible
query II rowsort label-8508
SELECT ALL 57 * - 11 - - - 87 + + - 90 / + 70, + 12 + - 55 AS col1
----
-715
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL - 87 * COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL - 87 * COUNT ( * )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT NULLIF ( + + 83, MAX( - - 14 ) ) col1
----
83

skipif mysql # not compatible
query I rowsort label-8510
SELECT NULLIF ( + + 83, MAX ( - - 14 ) ) col1
----
83

query I rowsort
SELECT ALL + ( - 57 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT DISTINCT - 97 * - SUM( 13 ) AS col0
----
1261

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT - 97 * - SUM ( 13 ) AS col0
----
1261

onlyif mysql # DIV for integer division: 
query I rowsort label-8513
SELECT 15 DIV + 24 + + 86 * 67
----
5762

skipif mysql # not compatible
query I rowsort label-8513
SELECT 15 / + 24 + + 86 * 67
----
5762

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT DISTINCT 37 * - ( - - COUNT( * ) ) * + 0 + - - 94 + - 0
----
94

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT 37 * - ( - - COUNT ( * ) ) * + 0 + - - 94 + - 0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT ALL + SUM( ALL - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL + SUM ( ALL - 41 )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8516
SELECT 88 * 90 + + + 40 DIV 97 DIV - MAX( 91 ) * COUNT( * )
----
7920

skipif mysql # not compatible
query I rowsort label-8516
SELECT 88 * 90 + + + 40 / 97 / - MAX ( 91 ) * COUNT ( * )
----
7920

query I rowsort
SELECT ALL - 84 * 75 + + 40 + + COALESCE ( 75, - 4 ) - - 4 col2
----
-6181

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT MIN( + ( - 58 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-8518
SELECT MIN ( + ( - 58 ) )
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8519
SELECT - 66 DIV 44 DIV - 62 AS col0, ( + - 49 ) * - ( - ( + CASE + 80 WHEN 87 DIV 63 + + - NULLIF ( - 57, + + 75 - 80 * + - ( + 29 ) ) THEN NULL ELSE - + COUNT( * ) END ) ) * - 42 + + ( 32 )
----
0
-2026

skipif mysql # not compatible
query II rowsort label-8519
SELECT - 66 / 44 / - 62 AS col0, ( + - 49 ) * - ( - ( + CASE + 80 WHEN 87 / 63 + + - NULLIF ( - 57, + + 75 - 80 * + - ( + 29 ) ) THEN NULL ELSE - + COUNT ( * ) END ) ) * - 42 + + ( 32 )
----
0
-2026

query I rowsort
SELECT + 25 + - 28 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8521
SELECT - 49 * NULLIF ( - - COUNT( * ), - 90 ) * + + NULLIF ( 47, - 72 ) + - + 22, 0 AS col0
----
-2325
0

skipif mysql # not compatible
query II rowsort label-8521
SELECT - 49 * NULLIF ( - - COUNT ( * ), - 90 ) * + + NULLIF ( 47, - 72 ) + - + 22, 0 AS col0
----
-2325
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT MIN( 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-8522
SELECT MIN ( 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT ALL - 52 * + + 20 * COUNT( ALL + 49 ) + 60 * + 14 AS col2
----
-200

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL - 52 * + + 20 * COUNT ( ALL + 49 ) + 60 * + 14 AS col2
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT ALL + COUNT( DISTINCT 25 ) * - ( 61 ) * 2 + 11 + - 86 col2
----
-197

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL + COUNT ( DISTINCT 25 ) * - ( 61 ) * 2 + 11 + - 86 col2
----
-197

query I rowsort
SELECT + 95 + - - 31
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-8526
SELECT ALL + 64, COUNT( * ) - COUNT( * ) AS col1
----
64
0

skipif mysql # not compatible
query II rowsort label-8526
SELECT ALL + 64, COUNT ( * ) - COUNT ( * ) AS col1
----
64
0

query I rowsort
SELECT + 12 * - 41 AS col2
----
-492

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8528
SELECT - - 85 * - 81 - COUNT( * ) DIV - 26 + 13 + + 5 AS col0
----
-6867

skipif mysql # not compatible
query I rowsort label-8528
SELECT - - 85 * - 81 - COUNT ( * ) / - 26 + 13 + + 5 AS col0
----
-6867

query I rowsort
SELECT ALL - 8 * + 52 AS col2
----
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT ALL COUNT( * ) + - + 69
----
-68

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL COUNT ( * ) + - + 69
----
-68

query I rowsort
SELECT + - 11 + + 32
----
21

query II rowsort
SELECT + + 36 + 63 + 56 * - - 95 * + + 18, 75 col1
----
95859
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT DISTINCT - COUNT( * ) - + ( + + COALESCE ( + 54, - 58 * 6 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-8533
SELECT DISTINCT - COUNT ( * ) - + ( + + COALESCE ( + 54, - 58 * 6 ) )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT - NULLIF ( + COUNT( * ), + - COUNT( * ) * - 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-8534
SELECT - NULLIF ( + COUNT ( * ), + - COUNT ( * ) * - 41 )
----
-1

query II rowsort
SELECT + 50 + + - 71 + - 43, 77 AS col1
----
-64
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8536
SELECT DISTINCT 20 - - 31 + + 30 + + 96 / - + COUNT( * ) * - 5 * - NULLIF ( 49, - ( - 66 ) * 42 ) + + - 28 - 1 * + 2 * - 52 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT DISTINCT 20 - - 31 + + 30 + + 96 / - + COUNT ( * ) * - 5 * - NULLIF ( 49, - ( - 66 ) * 42 ) + + - 28 - 1 * + 2 * - 52 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8537
SELECT ALL - CASE - COALESCE ( 44, - 94, - MAX( DISTINCT + - 43 ) * 78 * + COUNT( * ), - 19 * + MAX( DISTINCT - 88 ) - - + 44 ) WHEN + - CAST( NULL AS SIGNED ) * ( 80 ) * 46 THEN NULL WHEN - 88 * - + 73 / 37 + - - 86 THEN - CAST( - + ( 39 ) AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL - CASE - COALESCE ( 44, - 94, - MAX ( DISTINCT + - 43 ) * 78 * + COUNT ( * ), - 19 * + MAX ( DISTINCT - 88 ) - - + 44 ) WHEN + - CAST ( NULL AS INTEGER ) * ( 80 ) * 46 THEN NULL WHEN - 88 * - + 73 / 37 + - - 86 THEN - CAST ( - + ( 39 ) AS REAL ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8538
SELECT DISTINCT - - 35 * + COUNT( * ) * + 73 AS col0, COUNT( * ) * 49 * + - 21 * 32 * - - CAST( NULL AS SIGNED )
----
2555
NULL

skipif mysql # not compatible
query II rowsort label-8538
SELECT DISTINCT - - 35 * + COUNT ( * ) * + 73 AS col0, COUNT ( * ) * 49 * + - 21 * 32 * - - CAST ( NULL AS INTEGER )
----
2555
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8539
SELECT DISTINCT - 73 * - MIN( + 5 ) + - + 42 DIV - + 4 - 37
----
338

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT - 73 * - MIN ( + 5 ) + - + 42 / - + 4 - 37
----
338

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8540
SELECT + 21 * + + CAST( - SUM( 20 ) AS SIGNED ) * - - 4 AS col1
----
-1680

skipif mysql # not compatible
query I rowsort label-8540
SELECT + 21 * + + CAST ( - SUM ( 20 ) AS INTEGER ) * - - 4 AS col1
----
-1680

query I rowsort
SELECT ALL + + 68 * 98 - - - ( - 5 ) * - 48 AS col1
----
6424

query I rowsort
SELECT DISTINCT + 24 * + 69 * - 82
----
-135792

query I rowsort
SELECT - COALESCE ( 62, + - 56 ) AS col1
----
-62

query I rowsort
SELECT - + 55 + - 1 * - 43 * + + 54
----
2267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8545
SELECT ALL - CASE + 90 WHEN + 70 * - 16 * - 93 + - 49 + 95 + CASE - COALESCE ( - CAST( + 25 AS SIGNED ), - 98, - COUNT( * ) - + COUNT( * ) ) WHEN - 42 THEN 33 END THEN NULL WHEN + 83 * + 78 / - - COUNT( * ) THEN + - 72 + - + 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL - CASE + 90 WHEN + 70 * - 16 * - 93 + - 49 + 95 + CASE - COALESCE ( - CAST ( + 25 AS INTEGER ), - 98, - COUNT ( * ) - + COUNT ( * ) ) WHEN - 42 THEN 33 END THEN NULL WHEN + 83 * + 78 / - - COUNT ( * ) THEN + - 72 + - + 45 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT - 85 * - + COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8546
SELECT - 85 * - + COUNT ( * ) AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT ALL + CAST( NULL AS SIGNED ) * CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL + CAST ( NULL AS INTEGER ) * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8548
SELECT - 37 DIV - 69 col2
----
0

skipif mysql # not compatible
query I rowsort label-8548
SELECT - 37 / - 69 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8549
SELECT ALL - 40 DIV + - 77 * - - CAST( + + 96 AS SIGNED ) * + + 14 + 49 + + 61 * - + COUNT( * ) + + SUM( ALL - 54 )
----
-66

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL - 40 / + - 77 * - - CAST ( + + 96 AS INTEGER ) * + + 14 + 49 + + 61 * - + COUNT ( * ) + + SUM ( ALL - 54 )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8550
SELECT - CAST( NULL AS SIGNED ) * - 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8550
SELECT - CAST ( NULL AS INTEGER ) * - 79 AS col0
----
NULL

query I rowsort
SELECT ( + - 80 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT - 25 * 30 * SUM( - 9 )
----
6750

skipif mysql # not compatible
query I rowsort label-8552
SELECT - 25 * 30 * SUM ( - 9 )
----
6750

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT ( - - NULLIF ( - 79, + 92 * 20 + + + COUNT( * ) ) )
----
-79

skipif mysql # not compatible
query I rowsort label-8553
SELECT ( - - NULLIF ( - 79, + 92 * 20 + + + COUNT ( * ) ) )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8554
SELECT DISTINCT + COUNT( ALL 94 ) * + CAST( NULL AS SIGNED ) / 98 + - - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT + COUNT ( ALL 94 ) * + CAST ( NULL AS INTEGER ) / 98 + - - 8 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT ALL + 24 * - + 58 + - COALESCE ( - 12, + + 60, + - CAST( NULL AS SIGNED ) * - + 5 ) col2
----
-1380

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + 24 * - + 58 + - COALESCE ( - 12, + + 60, + - CAST ( NULL AS INTEGER ) * - + 5 ) col2
----
-1380

query I rowsort
SELECT - 95 * - 17 AS col2
----
1615

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8557
SELECT DISTINCT + 67 col1, - CAST( - NULLIF ( + 1, - 32 ) AS SIGNED )
----
67
1

skipif mysql # not compatible
query II rowsort label-8557
SELECT DISTINCT + 67 col1, - CAST ( - NULLIF ( + 1, - 32 ) AS INTEGER )
----
67
1

query I rowsort
SELECT ( 21 ) col1
----
21

query I rowsort
SELECT ALL + 66 * + 72 + - 74 - + 61 + 18
----
4635

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT - CASE + COUNT( * ) WHEN + 19 THEN + 97 WHEN + 18 THEN + 92 / 88 - - - 65 / - 4 ELSE NULL END * - 78 * + + 70 * + 60 + - + ( - COUNT( * ) ) * + + CASE + - 33 WHEN + COUNT( - - 56 ) + - CASE + 74 WHEN 90 * - - 56 + 65 + + COUNT( * ) THEN 70 END THEN COUNT( * ) WHEN + 48 / + - CASE - ( 2 ) WHEN - CASE - 67 WHEN 39 THEN - 19 END THEN 0 END / - 63 THEN - 53 END + + CASE 22 WHEN + 52 THEN - 1 WHEN 25 THEN 10 + 23 ELSE 74 * 8 + 12 * 43 END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8560
SELECT - CASE + COUNT ( * ) WHEN + 19 THEN + 97 WHEN + 18 THEN + 92 / 88 - - - 65 / - 4 ELSE NULL END * - 78 * + + 70 * + 60 + - + ( - COUNT ( * ) ) * + + CASE + - 33 WHEN + COUNT ( - - 56 ) + - CASE + 74 WHEN 90 * - - 56 + 65 + + COUNT ( * ) THEN 70 END THEN COUNT ( * ) WHEN + 48 / + - CASE - ( 2 ) WHEN - CASE - 67 WHEN 39 THEN - 19 END THEN 0 END / - 63 THEN - 53 END + + CASE 22 WHEN + 52 THEN - 1 WHEN 25 THEN 10 + 23 ELSE 74 * 8 + 12 * 43 END * 82
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8561
SELECT ALL + - CAST( NULL AS SIGNED ) col2, 61
----
NULL
61

skipif mysql # not compatible
query II rowsort label-8561
SELECT ALL + - CAST ( NULL AS INTEGER ) col2, 61
----
NULL
61

query I rowsort
SELECT - - 82 + + 2
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8563
SELECT + + 2 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-8563
SELECT + + 2 / + 43
----
0

query I rowsort
SELECT + 81 + - + 36
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8565
SELECT ALL 51 * + - CAST( + NULLIF ( - 51, COUNT( * ) ) AS SIGNED )
----
2601

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL 51 * + - CAST ( + NULLIF ( - 51, COUNT ( * ) ) AS INTEGER )
----
2601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8566
SELECT DISTINCT + ( 70 ) DIV ( - 2 ) + + ( - COUNT( * ) ) + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT + ( 70 ) / ( - 2 ) + + ( - COUNT ( * ) ) + COUNT ( * )
----
-35

query I rowsort
SELECT ALL 8 * + 36 AS col0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT DISTINCT + 3 * - CASE - 40 WHEN + 58 + + ( 81 ) * + 26 THEN NULL WHEN + 86 / + - 76 * - - 42 THEN + - ( - - 4 ) / 47 + 60 WHEN - - ( - 16 ) + - 23 + - - 76 + COALESCE ( SUM( 62 ), + - COUNT( * ), + 73 + 73 ) * + - COUNT( * ) * + 10 + + COUNT( * ) * - 31 THEN NULL END + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT + 3 * - CASE - 40 WHEN + 58 + + ( 81 ) * + 26 THEN NULL WHEN + 86 / + - 76 * - - 42 THEN + - ( - - 4 ) / 47 + 60 WHEN - - ( - 16 ) + - 23 + - - 76 + COALESCE ( SUM ( 62 ), + - COUNT ( * ), + 73 + 73 ) * + - COUNT ( * ) * + 10 + + COUNT ( * ) * - 31 THEN NULL END + 53
----
NULL

query II rowsort
SELECT ALL 5, - 33 AS col1
----
5
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-8570
SELECT + 5 DIV - - 82
----
0

skipif mysql # not compatible
query I rowsort label-8570
SELECT + 5 / - - 82
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8571
SELECT + - 75 DIV + 11
----
-6

skipif mysql # not compatible
query I rowsort label-8571
SELECT + - 75 / + 11
----
-6

query II rowsort
SELECT + - 64 * - 69 AS col2, - 85
----
4416
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT + CAST( + + 34 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-8573
SELECT + CAST ( + + 34 AS INTEGER )
----
34

query II rowsort
SELECT DISTINCT - 90 AS col2, 65
----
-90
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8575
SELECT - NULLIF ( - NULLIF ( + 97, - CAST( + + 60 AS DECIMAL ) + + - COUNT( * ) ), 10 * + 16 ) col1
----
97

skipif mysql # not compatible
query I rowsort label-8575
SELECT - NULLIF ( - NULLIF ( + 97, - CAST ( + + 60 AS REAL ) + + - COUNT ( * ) ), 10 * + 16 ) col1
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-8576
SELECT - 11 col0, - 12 DIV + 47 AS col0
----
-11
0

skipif mysql # not compatible
query II rowsort label-8576
SELECT - 11 col0, - 12 / + 47 AS col0
----
-11
0

query I rowsort
SELECT + 2 - 72 col0
----
-70

query II rowsort
SELECT DISTINCT + 67 col0, 86 * + + 44 - 78 AS col1
----
67
3706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8579
SELECT DISTINCT 95 AS col0, + 79 * - 50 * - 41 - - MIN( - NULLIF ( + + CAST( NULL AS SIGNED ), 66 ) )
----
95
NULL

skipif mysql # not compatible
query II rowsort label-8579
SELECT DISTINCT 95 AS col0, + 79 * - 50 * - 41 - - MIN ( - NULLIF ( + + CAST ( NULL AS INTEGER ), 66 ) )
----
95
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8580
SELECT ALL + 51 + + 46, + ( - NULLIF ( 4, + ( + COUNT( * ) ) ) ) * + 2 AS col0
----
97
-8

skipif mysql # not compatible
query II rowsort label-8580
SELECT ALL + 51 + + 46, + ( - NULLIF ( 4, + ( + COUNT ( * ) ) ) ) * + 2 AS col0
----
97
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT DISTINCT + 42 * + + NULLIF ( - COUNT( * ), - + COUNT( ALL 84 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8581
SELECT DISTINCT + 42 * + + NULLIF ( - COUNT ( * ), - + COUNT ( ALL 84 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT DISTINCT 32 + 51 * + COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT 32 + 51 * + COUNT ( * ) AS col2
----
83

query I rowsort
SELECT ALL + NULLIF ( + - 35, + 76 ) * + 33 * - - 88 col0
----
-101640

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL MIN( ALL - + 94 ) + + 80
----
-14

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL MIN ( ALL - + 94 ) + + 80
----
-14

query I rowsort
SELECT 29 - - 65 AS col2
----
94

query I rowsort
SELECT ALL + 25 * - 90
----
-2250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8587
SELECT CAST( NULL AS SIGNED ) + 77 + + - ( CAST( NULL AS SIGNED ) ) * - 64 + + COUNT( DISTINCT - ( + + 5 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8587
SELECT CAST ( NULL AS INTEGER ) + 77 + + - ( CAST ( NULL AS INTEGER ) ) * - 64 + + COUNT ( DISTINCT - ( + + 5 ) )
----
NULL

query I rowsort
SELECT 38 * - 50 * + ( + 6 ) AS col2
----
-11400

query I rowsort
SELECT 25 * - + 86 + + 6 + + - 1
----
-2145

query I rowsort
SELECT ALL - 52 + - ( 13 )
----
-65

query I rowsort
SELECT - COALESCE ( 97, 9 * + 98 ) * + 98 + + 44
----
-9462

onlyif mysql # DIV for integer division: 
query I rowsort label-8592
SELECT ALL + 80 DIV - - 42 col2
----
1

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL + 80 / - - 42 col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8593
SELECT ALL - COALESCE ( + + MIN( + + 87 ), - 73, + + 79 ) AS col0, COUNT( - + 5 )
----
-87
1

skipif mysql # not compatible
query II rowsort label-8593
SELECT ALL - COALESCE ( + + MIN ( + + 87 ), - 73, + + 79 ) AS col0, COUNT ( - + 5 )
----
-87
1

query I rowsort
SELECT DISTINCT - 62 * - 21
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT 47 + 46 + - 12 + + NULLIF ( - - 13, + + 14 ) * + COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8595
SELECT 47 + 46 + - 12 + + NULLIF ( - - 13, + + 14 ) * + COUNT ( * ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT ALL - CASE - 73 WHEN - - 92 * - COUNT( * ) THEN + 1 WHEN 5 - + 82 THEN NULL END - - 30 + 35 * 42 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL - CASE - 73 WHEN - - 92 * - COUNT ( * ) THEN + 1 WHEN 5 - + 82 THEN NULL END - - 30 + 35 * 42 + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8597
SELECT 18 DIV + + 38
----
0

skipif mysql # not compatible
query I rowsort label-8597
SELECT 18 / + + 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + 43 * + COUNT( * ) - + 68 * + COUNT( * ) + - 26 + + 45 * - 25 + - + 19 - - 73 * - 8
----
-1779

skipif mysql # not compatible
query I rowsort label-8598
SELECT + 43 * + COUNT ( * ) - + 68 * + COUNT ( * ) + - 26 + + 45 * - 25 + - + 19 - - 73 * - 8
----
-1779

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT COALESCE ( - 56, + 62 * MAX( DISTINCT - 52 ) ) * 55 + + 23
----
-3057

skipif mysql # not compatible
query I rowsort label-8599
SELECT COALESCE ( - 56, + 62 * MAX ( DISTINCT - 52 ) ) * 55 + + 23
----
-3057

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT DISTINCT - MAX( + ( + 43 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-8600
SELECT DISTINCT - MAX ( + ( + 43 ) )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-8601
SELECT ALL + + 94 - - COUNT( * ) AS col1, 7 AS col2
----
95
7

skipif mysql # not compatible
query II rowsort label-8601
SELECT ALL + + 94 - - COUNT ( * ) AS col1, 7 AS col2
----
95
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8602
SELECT DISTINCT + - 27 * - CAST( NULL AS SIGNED ), ( + MIN( DISTINCT - 39 ) ) AS col1
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-8602
SELECT DISTINCT + - 27 * - CAST ( NULL AS INTEGER ), ( + MIN ( DISTINCT - 39 ) ) AS col1
----
NULL
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT - ( + MIN( - 15 ) )
----
15

skipif mysql # not compatible
query I rowsort label-8603
SELECT - ( + MIN ( - 15 ) )
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8604
SELECT - 98 + 17 + - 74 + - 4 * - CAST( NULL AS DECIMAL ) - - ( 77 ) / + AVG ( DISTINCT + + 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8604
SELECT - 98 + 17 + - 74 + - 4 * - CAST ( NULL AS REAL ) - - ( 77 ) / + AVG ( DISTINCT + + 26 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT 88 * + CAST( + 35 AS SIGNED ) * - 87 - 45 - 44 * 80 * - - 74 AS col0
----
-528485

skipif mysql # not compatible
query I rowsort label-8605
SELECT 88 * + CAST ( + 35 AS INTEGER ) * - 87 - 45 - 44 * 80 * - - 74 AS col0
----
-528485

query I rowsort
SELECT 17 + - 40 AS col2
----
-23

query I rowsort
SELECT ALL 65 + 79
----
144

query I rowsort
SELECT 94 + + + 28
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT ALL CASE + COUNT( * ) WHEN - + 27 THEN + 11 + + + 27 + + - 56 * - 27 * + 52 ELSE NULL END + - COUNT( * ) * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL CASE + COUNT ( * ) WHEN - + 27 THEN + 11 + + + 27 + + - 56 * - 27 * + 52 ELSE NULL END + - COUNT ( * ) * 78
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8610
SELECT COUNT( * ) + - CAST( NULL AS DECIMAL ) + + 71 + AVG ( - + 73 ) * - 13 + - + 66 / 20 * - + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT COUNT ( * ) + - CAST ( NULL AS REAL ) + + 71 + AVG ( - + 73 ) * - 13 + - + 66 / 20 * - + 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8611
SELECT ALL + COUNT( ALL - + 40 ) + CAST( + 3 AS SIGNED ) * - 70 + - NULLIF ( - - COUNT( * ), - COUNT( * ) ) * + 74
----
-283

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL + COUNT ( ALL - + 40 ) + CAST ( + 3 AS INTEGER ) * - 70 + - NULLIF ( - - COUNT ( * ), - COUNT ( * ) ) * + 74
----
-283

query II rowsort
SELECT ALL 17 col1, - 54
----
17
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-8613
SELECT 13 + - 19 * ( + 19 ) + - - NULLIF ( + 87, - - COUNT( - 82 ) ) AS col0, 67
----
-261
67

skipif mysql # not compatible
query II rowsort label-8613
SELECT 13 + - 19 * ( + 19 ) + - - NULLIF ( + 87, - - COUNT ( - 82 ) ) AS col0, 67
----
-261
67

query I rowsort
SELECT 84 * + - 57
----
-4788

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT 19 * - + 32 * - COUNT( * ) AS col2
----
608

skipif mysql # not compatible
query I rowsort label-8615
SELECT 19 * - + 32 * - COUNT ( * ) AS col2
----
608

onlyif mysql # aggregate syntax: 
query II rowsort label-8616
SELECT ALL 76 AS col0, 46 * + COUNT( * )
----
76
46

skipif mysql # not compatible
query II rowsort label-8616
SELECT ALL 76 AS col0, 46 * + COUNT ( * )
----
76
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT ( + + NULLIF ( - 76, - 38 * 58 ) ) * - + COUNT( * ) * + 45
----
3420

skipif mysql # not compatible
query I rowsort label-8617
SELECT ( + + NULLIF ( - 76, - 38 * 58 ) ) * - + COUNT ( * ) * + 45
----
3420

query I rowsort
SELECT ALL + 94 * + + 96
----
9024

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT ALL + 9 * MIN( DISTINCT + + 61 ) - - 81
----
630

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL + 9 * MIN ( DISTINCT + + 61 ) - - 81
----
630

query I rowsort
SELECT DISTINCT - 76 * - 7 AS col2
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT COUNT( * ) - + 2 col2
----
-1

skipif mysql # not compatible
query I rowsort label-8621
SELECT COUNT ( * ) - + 2 col2
----
-1

query II rowsort
SELECT + 53 col0, 91
----
53
91

query I rowsort
SELECT 63 * 36
----
2268

query I rowsort
SELECT ALL 48 * - 56
----
-2688

query I rowsort
SELECT 34 * - 77 * 76
----
-198968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8626
SELECT + COUNT( * ), CAST( NULL AS SIGNED ) * - 4 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8626
SELECT + COUNT ( * ), CAST ( NULL AS INTEGER ) * - 4 AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8627
SELECT - COUNT( * ) AS col0, COUNT( - + 55 ) + - 17
----
-1
-16

skipif mysql # not compatible
query II rowsort label-8627
SELECT - COUNT ( * ) AS col0, COUNT ( - + 55 ) + - 17
----
-1
-16

query II rowsort
SELECT ALL + 69 * 55 + - - 69 AS col1, 1 AS col0
----
3864
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8629
SELECT + 7 - - SUM( DISTINCT - 97 ) * - + ( + 22 ) * + SUM( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8629
SELECT + 7 - - SUM ( DISTINCT - 97 ) * - + ( + 22 ) * + SUM ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL - + 46 AS col2, + 33 AS col1
----
-46
33

query I rowsort
SELECT + 16 + + 8
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8632
SELECT - 30 DIV 13
----
-2

skipif mysql # not compatible
query I rowsort label-8632
SELECT - 30 / 13
----
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8633
SELECT 53 * ( + CAST( NULL AS SIGNED ) ) AS col2, - 21 DIV CAST( 56 AS SIGNED ) AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8633
SELECT 53 * ( + CAST ( NULL AS INTEGER ) ) AS col2, - 21 / CAST ( 56 AS INTEGER ) AS col0
----
NULL
0

query I rowsort
SELECT ALL - 53 * - 3
----
159

query I rowsort
SELECT DISTINCT - 36 + CASE WHEN + 9 IS NOT NULL THEN - + 87 ELSE NULL END
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8636
SELECT - + ( + - CASE + + 5 WHEN - + SUM( ALL 73 ) * - - 36 - - 26 THEN NULL WHEN + 25 * + 48 THEN + 8 ELSE NULL END ) + - CAST( - 64 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT - + ( + - CASE + + 5 WHEN - + SUM ( ALL 73 ) * - - 36 - - 26 THEN NULL WHEN + 25 * + 48 THEN + 8 ELSE NULL END ) + - CAST ( - 64 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 3 + - + 32 AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8638
SELECT - + 78, CAST( + 11 AS SIGNED ) AS col0
----
-78
11

skipif mysql # not compatible
query II rowsort label-8638
SELECT - + 78, CAST ( + 11 AS INTEGER ) AS col0
----
-78
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT DISTINCT - COUNT( * ) + + 70
----
69

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT - COUNT ( * ) + + 70
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8640
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 78 * + COALESCE ( - - SUM( DISTINCT + 83 ), + 93, + CASE - + 91 WHEN + + AVG ( - 68 ) / + - MIN( 3 ) - + - 87 * + - 7 THEN - - 20 + COUNT( * ) * 4 + + 59 * 25 * - 90 + COUNT( * ) ELSE + 89 * - COUNT( 33 ) + + + 96 END )
----
NULL
6474

skipif mysql # not compatible
query II rowsort label-8640
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 78 * + COALESCE ( - - SUM ( DISTINCT + 83 ), + 93, + CASE - + 91 WHEN + + AVG ( - 68 ) / + - MIN ( 3 ) - + - 87 * + - 7 THEN - - 20 + COUNT ( * ) * 4 + + 59 * 25 * - 90 + COUNT ( * ) ELSE + 89 * - COUNT ( 33 ) + + + 96 END )
----
NULL
6474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8641
SELECT - + 6 * + 55 DIV + + COUNT( * )
----
-330

skipif mysql # not compatible
query I rowsort label-8641
SELECT - + 6 * + 55 / + + COUNT ( * )
----
-330

query I rowsort
SELECT ALL - 1 + - 12 AS col2
----
-13

query I rowsort
SELECT ALL COALESCE ( + 78, 57 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8644
SELECT + 56 * - - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8644
SELECT + 56 * - - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT DISTINCT COUNT( * ) * - MAX( - - 99 ) * + 51
----
-5049

skipif mysql # not compatible
query I rowsort label-8645
SELECT DISTINCT COUNT ( * ) * - MAX ( - - 99 ) * + 51
----
-5049

onlyif mysql # DIV for integer division: 
query I rowsort label-8646
SELECT DISTINCT - 7 DIV 19 col2
----
0

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT - 7 / 19 col2
----
0

query I rowsort
SELECT ALL - ( - 25 ) - 83 AS col0
----
-58

query I rowsort
SELECT + CASE - 87 WHEN + + CASE 14 WHEN 81 THEN - + 59 / - 46 END THEN + 71 * 23 + - - 34 ELSE NULL END * - 80 AS col0
----
NULL

query I rowsort
SELECT - 36 + - + 31 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT + COUNT( * ) - 26 + - - 5 * + + 44 AS col0
----
195

skipif mysql # not compatible
query I rowsort label-8650
SELECT + COUNT ( * ) - 26 + - - 5 * + + 44 AS col0
----
195

query II rowsort
SELECT - 54 * + 2 AS col1, + 30 AS col2
----
-108
30

query I rowsort
SELECT + ( - ( + - 77 ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT + 30 * + 59 * - NULLIF ( + COUNT( * ), - + 90 ) AS col2
----
-1770

skipif mysql # not compatible
query I rowsort label-8653
SELECT + 30 * + 59 * - NULLIF ( + COUNT ( * ), - + 90 ) AS col2
----
-1770

query I rowsort
SELECT + 36 * + 73 AS col1
----
2628

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT + 18 * 36 + + + COUNT( * ) / + CASE 64 WHEN 66 THEN NULL WHEN + - 68 * + - CASE - 81 WHEN + 14 + + 87 THEN - - 80 WHEN - + 96 THEN NULL END THEN 80 * 15 + + 46 ELSE NULL END * + + COALESCE ( + 36, - 51 * - 56 ) / - 60 + + 33 * + + 14 + + 57 + - 4 + 56 + 92 - - - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT + 18 * 36 + + + COUNT ( * ) / + CASE 64 WHEN 66 THEN NULL WHEN + - 68 * + - CASE - 81 WHEN + 14 + + 87 THEN - - 80 WHEN - + 96 THEN NULL END THEN 80 * 15 + + 46 ELSE NULL END * + + COALESCE ( + 36, - 51 * - 56 ) / - 60 + + 33 * + + 14 + + 57 + - 4 + 56 + 92 - - - 15 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8656
SELECT ALL CAST( NULL AS SIGNED ) * NULLIF ( - + 98, 4 ) * 95 * - CASE - - COUNT( - - 87 ) WHEN 60 / CAST( + 47 AS SIGNED ) THEN - 80 WHEN 39 THEN NULL ELSE NULL END + + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL CAST ( NULL AS INTEGER ) * NULLIF ( - + 98, 4 ) * 95 * - CASE - - COUNT ( - - 87 ) WHEN 60 / CAST ( + 47 AS INTEGER ) THEN - 80 WHEN 39 THEN NULL ELSE NULL END + + - 80
----
NULL

query I rowsort
SELECT + 0 * 23 - + 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT ALL - ( COUNT( - 55 ) ) * - ( - 45 ) * ( + COALESCE ( + MIN( - 16 ), - 83 * 88, 67 ) ) AS col0
----
720

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL - ( COUNT ( - 55 ) ) * - ( - 45 ) * ( + COALESCE ( + MIN ( - 16 ), - 83 * 88, 67 ) ) AS col0
----
720

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8659
SELECT + - 51 + + - CAST( NULL AS SIGNED ), + 95 DIV 57 * - 89 AS col2
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-8659
SELECT + - 51 + + - CAST ( NULL AS INTEGER ), + 95 / 57 * - 89 AS col2
----
NULL
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT + ( - MIN( - ( ( 4 ) ) ) ) * + 16 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8660
SELECT + ( - MIN ( - ( ( 4 ) ) ) ) * + 16 AS col2
----
64

query I rowsort
SELECT - 43 * - ( + 42 ) * 38 * 51 * + 50 + - + 49 * - 21 * ( 6 ) + - - 36 - - - 81 - - 44 + ( 40 ) AS col0
----
175007613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8662
SELECT ALL + 80 * - + 58 + - - CAST( - + NULLIF ( - 46, + + COUNT( ALL - + 56 ) + + 64 ) AS SIGNED ) AS col1
----
-4594

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL + 80 * - + 58 + - - CAST ( - + NULLIF ( - 46, + + COUNT ( ALL - + 56 ) + + 64 ) AS INTEGER ) AS col1
----
-4594

query II rowsort
SELECT ALL - 9 * - - 83 + + 14 + - 16 AS col0, 72
----
-749
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT + 16 + - + CAST( + - 67 AS SIGNED ) + - - 99 col2
----
182

skipif mysql # not compatible
query I rowsort label-8664
SELECT + 16 + - + CAST ( + - 67 AS INTEGER ) + - - 99 col2
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8665
SELECT ALL + NULLIF ( 2, - - ( ( MAX( - - 70 ) ) ) * 45 * + - 54 + - + 50 + COUNT( * ) * + 48 ) DIV ( + 57 )
----
0

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL + NULLIF ( 2, - - ( ( MAX ( - - 70 ) ) ) * 45 * + - 54 + - + 50 + COUNT ( * ) * + 48 ) / ( + 57 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8666
SELECT DISTINCT + CAST( 17 AS SIGNED ) AS col1, 68 + - + 93 DIV + 98 * - 15 + - - 5 AS col2
----
17
73

skipif mysql # not compatible
query II rowsort label-8666
SELECT DISTINCT + CAST ( 17 AS INTEGER ) AS col1, 68 + - + 93 / + 98 * - 15 + - - 5 AS col2
----
17
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT + - CASE + 33 WHEN - 12 THEN NULL ELSE 70 + 87 END + 68 * ( + 63 ) * 76 * - COUNT( * )
----
-325741

skipif mysql # not compatible
query I rowsort label-8667
SELECT + - CASE + 33 WHEN - 12 THEN NULL ELSE 70 + 87 END + 68 * ( + 63 ) * 76 * - COUNT ( * )
----
-325741

query I rowsort
SELECT - 57 * + 29 * 69
----
-114057

onlyif mysql # DIV for integer division: 
query I rowsort label-8669
SELECT ALL + 93 DIV 50 col1
----
1

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL + 93 / 50 col1
----
1

query I rowsort
SELECT - 56 - - 85 + + - 74 col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT + 26 + COUNT( * ) * + 85 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-8671
SELECT + 26 + COUNT ( * ) * + 85 AS col1
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8672
SELECT COUNT( * ) AS col0, CAST( 26 AS SIGNED )
----
1
26

skipif mysql # not compatible
query II rowsort label-8672
SELECT COUNT ( * ) AS col0, CAST ( 26 AS INTEGER )
----
1
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT ALL MIN( NULLIF ( - 5, - 31 ) ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL MIN ( NULLIF ( - 5, - 31 ) ) AS col1
----
-5

query I rowsort
SELECT - 20 + 67 AS col2
----
47

query I rowsort
SELECT - 79 * + + 62
----
-4898

query I rowsort
SELECT - 96 + + - 50
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT ALL - 21 - + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL - 21 - + COUNT ( * )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8678
SELECT ALL CAST( + - 49 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL CAST ( + - 49 AS INTEGER )
----
-49

query II rowsort
SELECT ALL + 21 - - 74 + 53 AS col1, 64 * + 79
----
148
5056

query I rowsort
SELECT DISTINCT ( + - 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8681
SELECT - 66 * 13 DIV + + 78 AS col0, 56 DIV MIN( DISTINCT 66 ) AS col1
----
-11
0

skipif mysql # not compatible
query II rowsort label-8681
SELECT - 66 * 13 / + + 78 AS col0, 56 / MIN ( DISTINCT 66 ) AS col1
----
-11
0

query I rowsort
SELECT DISTINCT ( + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT - ( + - MAX( + + 61 ) ) + 8 + + 31 * - - MIN( ALL 84 )
----
2673

skipif mysql # not compatible
query I rowsort label-8683
SELECT - ( + - MAX ( + + 61 ) ) + 8 + + 31 * - - MIN ( ALL 84 )
----
2673

query I rowsort
SELECT - 13 * ( 46 ) AS col1
----
-598

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8685
SELECT + COUNT( * ) + NULLIF ( COUNT( * ), 76 ) DIV + 51
----
1

skipif mysql # not compatible
query I rowsort label-8685
SELECT + COUNT ( * ) + NULLIF ( COUNT ( * ), 76 ) / + 51
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8686
SELECT ALL + 58 DIV - + 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL + 58 / - + 62 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8687
SELECT DISTINCT 59 * 94 DIV + ( + 76 )
----
72

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT 59 * 94 / + ( + 76 )
----
72

query I rowsort
SELECT ALL 77 + 84 AS col0
----
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8689
SELECT ALL + 52 DIV - - COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL + 52 / - - COUNT ( * ) AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8690
SELECT DISTINCT - 6 DIV - 99 + + 31 + - - 29
----
60

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT - 6 / - 99 + + 31 + - - 29
----
60

query I rowsort
SELECT ALL + - 29 col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8692
SELECT + 1, - CAST( 49 AS SIGNED ) AS col1
----
1
-49

skipif mysql # not compatible
query II rowsort label-8692
SELECT + 1, - CAST ( 49 AS INTEGER ) AS col1
----
1
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8693
SELECT + 42 - 56 / CAST( NULL AS SIGNED ) + - 70 + - 80 + MIN( DISTINCT 46 ) + + 6 AS col0, + 48 * CASE 31 WHEN + NULLIF ( 87, 76 ) THEN - - 37 END * 71 col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8693
SELECT + 42 - 56 / CAST ( NULL AS INTEGER ) + - 70 + - 80 + MIN ( DISTINCT 46 ) + + 6 AS col0, + 48 * CASE 31 WHEN + NULLIF ( 87, 76 ) THEN - - 37 END * 71 col1
----
NULL
NULL

query I rowsort
SELECT ALL - COALESCE ( 23, + 40 ) col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8695
SELECT ALL MAX( + - 20 ) + - - 24, 32 DIV + 86 + - 14 AS col2
----
4
-14

skipif mysql # not compatible
query II rowsort label-8695
SELECT ALL MAX ( + - 20 ) + - - 24, 32 / + 86 + - 14 AS col2
----
4
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-8696
SELECT + 69 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-8696
SELECT + 69 / 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8697
SELECT ALL + 36 + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - SUM( DISTINCT + + 17 ) * + 13 + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + 36 + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - SUM ( DISTINCT + + 17 ) * + 13 + 61
----
NULL

query II rowsort
SELECT + 74 AS col2, 50 * + 26 AS col0
----
74
1300

query I rowsort
SELECT ALL - 67 + - 32 AS col2
----
-99

query I rowsort
SELECT + + 16 col2
----
16

query I rowsort
SELECT ALL 36 + + 59 col1
----
95

query I rowsort
SELECT DISTINCT 49 * 12 AS col0
----
588

query I rowsort
SELECT - 19 * 36 * - 60 AS col0
----
41040

onlyif mysql # aggregate syntax: 
query II rowsort label-8704
SELECT + MIN( - + 42 ) + + - 69, 49 col2
----
-111
49

skipif mysql # not compatible
query II rowsort label-8704
SELECT + MIN ( - + 42 ) + + - 69, 49 col2
----
-111
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8705
SELECT COUNT( * ) * - - 47 * 46 DIV 44 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-8705
SELECT COUNT ( * ) * - - 47 * 46 / 44 AS col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8706
SELECT - 7 * + 3 DIV + 55 + 17 + - - 23
----
40

skipif mysql # not compatible
query I rowsort label-8706
SELECT - 7 * + 3 / + 55 + 17 + - - 23
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT ALL COALESCE ( - 1, + 41, ( + + NULLIF ( - + COUNT( * ), + - 73 ) ), + + ( 93 ) + - 56 + + + 32 ) - + 70 + 80 + CASE - COALESCE ( - - 63, CASE - 33 WHEN - - COUNT( ALL 39 ) * 73 * - 6 THEN + - 82 END ) WHEN + COALESCE ( + - 6, 65 * - 85 ) + - 8 THEN + 10 * ( 26 ) WHEN COUNT( * ) THEN NULL ELSE NULL END * + + 38 / 7 / 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL COALESCE ( - 1, + 41, ( + + NULLIF ( - + COUNT ( * ), + - 73 ) ), + + ( 93 ) + - 56 + + + 32 ) - + 70 + 80 + CASE - COALESCE ( - - 63, CASE - 33 WHEN - - COUNT ( ALL 39 ) * 73 * - 6 THEN + - 82 END ) WHEN + COALESCE ( + - 6, 65 * - 85 ) + - 8 THEN + 10 * ( 26 ) WHEN COUNT ( * ) THEN NULL ELSE NULL END * + + 38 / 7 / 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8708
SELECT 96, 5 + + COUNT( * ) AS col1
----
96
6

skipif mysql # not compatible
query II rowsort label-8708
SELECT 96, 5 + + COUNT ( * ) AS col1
----
96
6

query I rowsort
SELECT ALL + 35 * 50 AS col2
----
1750

query I rowsort
SELECT 48 * - 19
----
-912

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8711
SELECT 9 AS col2, - 39 / - CAST( NULL AS SIGNED ) / + 54
----
9
NULL

skipif mysql # not compatible
query II rowsort label-8711
SELECT 9 AS col2, - 39 / - CAST ( NULL AS INTEGER ) / + 54
----
9
NULL

query II rowsort
SELECT - 35 AS col1, - 33
----
-35
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8713
SELECT CAST( NULL AS SIGNED ) * - ( - 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8713
SELECT CAST ( NULL AS INTEGER ) * - ( - 75 )
----
NULL

query I rowsort
SELECT 73 * - 88
----
-6424

query I rowsort
SELECT ALL + 26 * 95
----
2470

query I rowsort
SELECT ALL - 72 * + + 95 * 18 AS col0
----
-123120

query I rowsort
SELECT COALESCE ( + 35, + 19, 13 ) * - 61
----
-2135

query I rowsort
SELECT DISTINCT + 54 * - 79
----
-4266

query I rowsort
SELECT ALL - 99 + + - 90 + - 65 col2
----
-254

query II rowsort
SELECT ALL 4 AS col1, 77 AS col0
----
4
77

query I rowsort
SELECT - + COALESCE ( - - 41, + + 14 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT DISTINCT + + NULLIF ( - 93, + + 88 ) + + 14 + - COUNT( * ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT + + NULLIF ( - 93, + + 88 ) + + 14 + - COUNT ( * ) AS col1
----
-80

query I rowsort
SELECT + 26 + 38 AS col2
----
64

query I rowsort
SELECT - COALESCE ( + - 66, + 46, - 48 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT + 10 - - COUNT( * ) + + 99 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-8725
SELECT + 10 - - COUNT ( * ) + + 99 AS col1
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8726
SELECT + + 86 * - COUNT( * ) + 33 - - 11 DIV + 1
----
-42

skipif mysql # not compatible
query I rowsort label-8726
SELECT + + 86 * - COUNT ( * ) + 33 - - 11 / + 1
----
-42

query I rowsort
SELECT ALL 20 + - 94
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT 10 * - - ( + + ( - + COALESCE ( 85, + - CASE + COUNT( * ) WHEN + 55 THEN + 83 ELSE NULL END * + + ( - 34 ) * - 23 ) ) ) * 98 + 98 * - - MAX( + 75 ) AS col1
----
-75950

skipif mysql # not compatible
query I rowsort label-8728
SELECT 10 * - - ( + + ( - + COALESCE ( 85, + - CASE + COUNT ( * ) WHEN + 55 THEN + 83 ELSE NULL END * + + ( - 34 ) * - 23 ) ) ) * 98 + 98 * - - MAX ( + 75 ) AS col1
----
-75950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8729
SELECT DISTINCT + + COUNT( * ) DIV ( + 21 ) + + 17 + - 9 - + - 5 - - NULLIF ( COUNT( * ), COUNT( DISTINCT 30 ) + + 26 + - 65 ) + - 40 + - 17 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT + + COUNT ( * ) / ( + 21 ) + + 17 + - 9 - + - 5 - - NULLIF ( COUNT ( * ), COUNT ( DISTINCT 30 ) + + 26 + - 65 ) + - 40 + - 17 AS col2
----
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8730
SELECT AVG ( + CAST( NULL AS DECIMAL ) ) + - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8730
SELECT AVG ( + CAST ( NULL AS REAL ) ) + - 40 AS col1
----
NULL

query II rowsort
SELECT ALL - + 42, + 9 AS col0
----
-42
9

query I rowsort
SELECT ALL - ( + COALESCE ( - 13, + + 79 ) ) - + 12
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8733
SELECT + 53, + 96 DIV - 73 * COUNT( * ) AS col2
----
53
-1

skipif mysql # not compatible
query II rowsort label-8733
SELECT + 53, + 96 / - 73 * COUNT ( * ) AS col2
----
53
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT 87 * + COUNT( * ) * + + 21 * - 72 AS col0
----
-131544

skipif mysql # not compatible
query I rowsort label-8734
SELECT 87 * + COUNT ( * ) * + + 21 * - 72 AS col0
----
-131544

query I rowsort
SELECT DISTINCT + 20 - - ( + + 49 ) + + 52
----
121

query II rowsort
SELECT ALL - ( + + 40 ) AS col2, + NULLIF ( + - 29, - 35 ) * - 37 AS col0
----
-40
1073

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT - 78 * COUNT( * ) + + 75 + - COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8737
SELECT - 78 * COUNT ( * ) + + 75 + - COUNT ( * ) AS col0
----
-4

query II rowsort
SELECT DISTINCT 85 * - + 78, 26 col2
----
-6630
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT 19 + + COUNT( * ) * - + 74
----
-55

skipif mysql # not compatible
query I rowsort label-8739
SELECT 19 + + COUNT ( * ) * - + 74
----
-55

query I rowsort
SELECT ( 13 ) * + 85 AS col0
----
1105

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT COUNT( * ) + + 49
----
50

skipif mysql # not compatible
query I rowsort label-8741
SELECT COUNT ( * ) + + 49
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8742
SELECT ( + 84 ) - + 56 + - + 11 + + MIN( CAST( + 27 AS SIGNED ) ) * 63 + - 17 AS col2
----
1701

skipif mysql # not compatible
query I rowsort label-8742
SELECT ( + 84 ) - + 56 + - + 11 + + MIN ( CAST ( + 27 AS INTEGER ) ) * 63 + - 17 AS col2
----
1701

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8743
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 6 * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 6 * 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT ALL 84 * 89 * + COUNT( * )
----
7476

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL 84 * 89 * + COUNT ( * )
----
7476

onlyif mysql # DIV for integer division: 
query I rowsort label-8745
SELECT ( 19 ) DIV + + 87
----
0

skipif mysql # not compatible
query I rowsort label-8745
SELECT ( 19 ) / + + 87
----
0

query I rowsort
SELECT ALL 1 + - - 2 + + 49 + 59
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8747
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 15 AS col2, 24 * 57 / - ( - 50 ) + CASE + - ( - + 4 ) WHEN + 41 THEN NULL WHEN + 60 THEN NULL WHEN + 27 THEN 77 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8747
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 15 AS col2, 24 * 57 / - ( - 50 ) + CASE + - ( - + 4 ) WHEN + 41 THEN NULL WHEN + 60 THEN NULL WHEN + 27 THEN 77 END
----
NULL
NULL

query I rowsort
SELECT DISTINCT 6 + + 75 AS col0
----
81

query I rowsort
SELECT + NULLIF ( + 71, - 55 ) * - + 49 AS col1
----
-3479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8750
SELECT ALL 41 + CAST( NULL AS SIGNED ) * + ( - COALESCE ( + 19, + 25 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL 41 + CAST ( NULL AS INTEGER ) * + ( - COALESCE ( + 19, + 25 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 0 + + 29
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8752
SELECT - MIN( DISTINCT 2 ), - 49 AS col2
----
-2
-49

skipif mysql # not compatible
query II rowsort label-8752
SELECT - MIN ( DISTINCT 2 ), - 49 AS col2
----
-2
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8753
SELECT + 24 DIV - 11 + - COUNT( ALL - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-8753
SELECT + 24 / - 11 + - COUNT ( ALL - 3 )
----
-3

query II rowsort
SELECT - 7 + + 79 AS col2, + 65 * + 69 + 46
----
72
4531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8755
SELECT DISTINCT + CAST( + 46 AS SIGNED ) * + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT + CAST ( + 46 AS INTEGER ) * + COUNT ( * )
----
46

query I rowsort
SELECT ALL - 20 + - - 37 AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8757
SELECT - 83 + - - 92 AS col1, NULLIF ( + 72, + CASE CASE + - 16 WHEN 93 THEN COUNT( + + 76 ) END WHEN + 68 THEN + 2 WHEN - + 91 THEN NULL END )
----
9
72

skipif mysql # not compatible
query II rowsort label-8757
SELECT - 83 + - - 92 AS col1, NULLIF ( + 72, + CASE CASE + - 16 WHEN 93 THEN COUNT ( + + 76 ) END WHEN + 68 THEN + 2 WHEN - + 91 THEN NULL END )
----
9
72

query I rowsort
SELECT DISTINCT 52 * + 62 AS col1
----
3224

onlyif mysql # aggregate syntax: 
query II rowsort label-8759
SELECT + COUNT( 6 ) AS col1, 15 * + MAX( - 86 ) * - - 2 + - 11 AS col2
----
1
-2591

skipif mysql # not compatible
query II rowsort label-8759
SELECT + COUNT ( 6 ) AS col1, 15 * + MAX ( - 86 ) * - - 2 + - 11 AS col2
----
1
-2591

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT + 40 - + CASE 92 WHEN - + COUNT( * ) * + COUNT( * ) + - 17 THEN NULL WHEN - 64 + + - 26 THEN NULL ELSE 97 END
----
-57

skipif mysql # not compatible
query I rowsort label-8760
SELECT + 40 - + CASE 92 WHEN - + COUNT ( * ) * + COUNT ( * ) + - 17 THEN NULL WHEN - 64 + + - 26 THEN NULL ELSE 97 END
----
-57

query I rowsort
SELECT - 10 * - - 87
----
-870

onlyif mysql # DIV for integer division: 
query I rowsort label-8762
SELECT ALL - + 23 DIV 45 - - 10 - 57
----
-47

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL - + 23 / 45 - - 10 - 57
----
-47

query I rowsort
SELECT - 56 - ( - + 35 ) AS col2
----
-21

query I rowsort
SELECT ALL - 34 * + 78
----
-2652

query I rowsort
SELECT ALL - ( 71 ) * + 86 * - 87 + - 13 + 58 col2
----
531267

query I rowsort
SELECT COALESCE ( - + ( + 52 ), - - 97 + + 34 ) AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8767
SELECT + 70, COUNT( * ) + - + NULLIF ( 5, 34 + COALESCE ( 37, - - 23 ) + + - CASE + 3 WHEN + 30 THEN - 19 ELSE - + 79 / - CAST( - + COALESCE ( 3, - 84 ) AS SIGNED ) - - 0 END * + 44 ) AS col0
----
70
-4

skipif mysql # not compatible
query II rowsort label-8767
SELECT + 70, COUNT ( * ) + - + NULLIF ( 5, 34 + COALESCE ( 37, - - 23 ) + + - CASE + 3 WHEN + 30 THEN - 19 ELSE - + 79 / - CAST ( - + COALESCE ( 3, - 84 ) AS INTEGER ) - - 0 END * + 44 ) AS col0
----
70
-4

query I rowsort
SELECT - 20 + + - 3
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT 62 * - - NULLIF ( - COUNT( * ), - + 48 ) + - + 10 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-8769
SELECT 62 * - - NULLIF ( - COUNT ( * ), - + 48 ) + - + 10 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT + 60 * + CASE 64 WHEN - 31 THEN 95 / CASE WHEN NOT NULL IS NOT NULL THEN COUNT( * ) END * + 36 WHEN + - 81 THEN NULL WHEN + 69 THEN + 44 * 9 END + + - 91 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT + 60 * + CASE 64 WHEN - 31 THEN 95 / CASE WHEN NOT NULL IS NOT NULL THEN COUNT ( * ) END * + 36 WHEN + - 81 THEN NULL WHEN + 69 THEN + 44 * 9 END + + - 91 * + + COUNT ( * )
----
NULL

query I rowsort
SELECT + 78 - - + 13 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT ALL 79 * - COUNT( * ) + + - 33 * - + 57 + - - ( - ( 85 ) ) AS col0
----
1717

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL 79 * - COUNT ( * ) + + - 33 * - + 57 + - - ( - ( 85 ) ) AS col0
----
1717

query I rowsort
SELECT - 7 * + 23
----
-161

query I rowsort
SELECT DISTINCT COALESCE ( - 33, 54 * + 33, + 39, + 74 ) AS col2
----
-33

query I rowsort
SELECT ALL ( + 75 ) AS col1
----
75

query I rowsort
SELECT + 42 + - 27 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT MIN( DISTINCT + 16 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-8777
SELECT MIN ( DISTINCT + 16 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT + 53 * - - COUNT( * ) * + + 99 AS col0
----
5247

skipif mysql # not compatible
query I rowsort label-8778
SELECT + 53 * - - COUNT ( * ) * + + 99 AS col0
----
5247

query I rowsort
SELECT ALL 52 * + 82 AS col1
----
4264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8780
SELECT + - CAST( NULL AS SIGNED ) * - 77 * + ( + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT + - CAST ( NULL AS INTEGER ) * - 77 * + ( + 30 )
----
NULL

query I rowsort
SELECT DISTINCT + 71 + - 64
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT - - MAX( ALL - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-8782
SELECT - - MAX ( ALL - 67 )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8783
SELECT ALL + ( CAST( COUNT( * ) AS SIGNED ) ) - + + 64 * + 48 * - COALESCE ( 57, 66 )
----
175105

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL + ( CAST ( COUNT ( * ) AS INTEGER ) ) - + + 64 * + 48 * - COALESCE ( 57, 66 )
----
175105

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT + + 43 - + COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-8784
SELECT + + 43 - + COUNT ( * ) AS col0
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-8785
SELECT ALL 81 AS col0, 64 DIV - - 84 AS col1
----
81
0

skipif mysql # not compatible
query II rowsort label-8785
SELECT ALL 81 AS col0, 64 / - - 84 AS col1
----
81
0

query I rowsort
SELECT + 72 + + 32 AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT + COUNT( * ) + - 85 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8787
SELECT + COUNT ( * ) + - 85 AS col1
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8788
SELECT ALL + 97 DIV + COUNT( * ) col2
----
97

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL + 97 / + COUNT ( * ) col2
----
97

query I rowsort
SELECT + 38 + - - 89
----
127

query I rowsort
SELECT - - 28 - 52
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT - NULLIF ( - 61, SUM( 91 ) )
----
61

skipif mysql # not compatible
query I rowsort label-8791
SELECT - NULLIF ( - 61, SUM ( 91 ) )
----
61

query I rowsort
SELECT + 52 + - 50 AS col2
----
2

query II rowsort
SELECT DISTINCT + 98, 63 AS col0
----
98
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8794
SELECT DISTINCT - 31 * + + COALESCE ( + 72, 70 * - 42 - 75 DIV + ( + - 21 ) ) * + - 36 - - 82 col2
----
80434

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT - 31 * + + COALESCE ( + 72, 70 * - 42 - 75 / + ( + - 21 ) ) * + - 36 - - 82 col2
----
80434

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8795
SELECT ALL + 73 * 3 DIV + 43, - 74 * - 70 + + - CASE + CASE - ( - ( + 33 ) ) WHEN - SUM( DISTINCT + 80 ) THEN NULL WHEN + 61 * + - COUNT( * ) + - COALESCE ( COUNT( * ), - 55 + 81 * 92, - 73 ) THEN NULL WHEN - + MAX( DISTINCT - 4 ) + + + 29 THEN 44 WHEN 21 DIV - 56 * - + 21 + + + 2 THEN + 34 * 46 END WHEN + COUNT( DISTINCT - 95 ) * - 77 THEN + 90 * 38 + + ( 49 ) ELSE NULL END AS col0
----
5
NULL

skipif mysql # not compatible
query II rowsort label-8795
SELECT ALL + 73 * 3 / + 43, - 74 * - 70 + + - CASE + CASE - ( - ( + 33 ) ) WHEN - SUM ( DISTINCT + 80 ) THEN NULL WHEN + 61 * + - COUNT ( * ) + - COALESCE ( COUNT ( * ), - 55 + 81 * 92, - 73 ) THEN NULL WHEN - + MAX ( DISTINCT - 4 ) + + + 29 THEN 44 WHEN 21 / - 56 * - + 21 + + + 2 THEN + 34 * 46 END WHEN + COUNT ( DISTINCT - 95 ) * - 77 THEN + 90 * 38 + + ( 49 ) ELSE NULL END AS col0
----
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT - COALESCE ( - + 16, + - 19, - 42 ) * - 55 + MAX( DISTINCT - + COALESCE ( + 44, 48 - + 74, + + 36 + + 36 ) ) + 32
----
-892

skipif mysql # not compatible
query I rowsort label-8796
SELECT - COALESCE ( - + 16, + - 19, - 42 ) * - 55 + MAX ( DISTINCT - + COALESCE ( + 44, 48 - + 74, + + 36 + + 36 ) ) + 32
----
-892

query II rowsort
SELECT + + 93 AS col2, 6 AS col0
----
93
6

query I rowsort
SELECT ALL 38 * - 18
----
-684

query I rowsort
SELECT - 50 * 87 col1
----
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8800
SELECT + CAST( + 67 AS SIGNED ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-8800
SELECT + CAST ( + 67 AS INTEGER ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT ALL + MAX( NULLIF ( + 60, - - 92 ) )
----
60

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL + MAX ( NULLIF ( + 60, - - 92 ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT - 69 * + + 50 + - COUNT( * ) * 96 AS col2
----
-3546

skipif mysql # not compatible
query I rowsort label-8802
SELECT - 69 * + + 50 + - COUNT ( * ) * 96 AS col2
----
-3546

query I rowsort
SELECT + 14 * 67 AS col0
----
938

onlyif mysql # DIV for integer division: 
query II rowsort label-8804
SELECT ALL 0 DIV 75 + + 30 * + 60, 82 AS col2
----
1800
82

skipif mysql # not compatible
query II rowsort label-8804
SELECT ALL 0 / 75 + + 30 * + 60, 82 AS col2
----
1800
82

query I rowsort
SELECT ALL 6 * + 26 + + 41
----
197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8806
SELECT DISTINCT - ( + + 88 ) * + 83 - + + CASE - 11 WHEN + SUM( DISTINCT + 77 ) THEN NULL ELSE + AVG ( DISTINCT 56 ) END + - CASE CAST( + - 33 AS SIGNED ) WHEN - 76 THEN NULL WHEN - 75 THEN 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT - ( + + 88 ) * + 83 - + + CASE - 11 WHEN + SUM ( DISTINCT + 77 ) THEN NULL ELSE + AVG ( DISTINCT 56 ) END + - CASE CAST ( + - 33 AS INTEGER ) WHEN - 76 THEN NULL WHEN - 75 THEN 77 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT DISTINCT - MIN( ALL 80 ) * + COUNT( * ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT - MIN ( ALL 80 ) * + COUNT ( * ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT + 31 * + 31 + - NULLIF ( - - 50, + + 39 ) + + - ( - - 10 ) * + - MIN( DISTINCT + + 76 ) AS col2
----
1671

skipif mysql # not compatible
query I rowsort label-8808
SELECT + 31 * + 31 + - NULLIF ( - - 50, + + 39 ) + + - ( - - 10 ) * + - MIN ( DISTINCT + + 76 ) AS col2
----
1671

query I rowsort
SELECT ALL + 68 + - 66 - 22
----
-20

query I rowsort
SELECT - 56 * - 32 + - + 46
----
1746

query I rowsort
SELECT 53 + + 6 AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT DISTINCT - 95 * + CAST( - 98 AS SIGNED )
----
9310

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT - 95 * + CAST ( - 98 AS INTEGER )
----
9310

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT 63 + - + 54 + - 29 + + - 42 * + - COUNT( + 17 ) + - 78 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-8813
SELECT 63 + - + 54 + - 29 + + - 42 * + - COUNT ( + 17 ) + - 78 AS col2
----
-56

query II rowsort
SELECT 98 + - - 38 col0, + 18
----
136
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT COUNT( * ) + + 37 + + 73
----
111

skipif mysql # not compatible
query I rowsort label-8815
SELECT COUNT ( * ) + + 37 + + 73
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-8816
SELECT ALL + 69 - - + NULLIF ( + + 91, - 85 + + + 75 - + 94 + - - 10 * 93 ) DIV + 12 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL + 69 - - + NULLIF ( + + 91, - 85 + + + 75 - + 94 + - - 10 * 93 ) / + 12 AS col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8817
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 89 - + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 89 - + - 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8818
SELECT - COALESCE ( CAST( - 61 AS SIGNED ), - 2 * + 83 + 1 ) + - + ( - 55 ) * + 22 + ( - 42 ) * - + ( + - 7 ) + - 89 DIV + CAST( - + AVG ( + - 31 ) AS SIGNED ) AS col0, COUNT( * )
----
975
1

skipif mysql # not compatible
query II rowsort label-8818
SELECT - COALESCE ( CAST ( - 61 AS INTEGER ), - 2 * + 83 + 1 ) + - + ( - 55 ) * + 22 + ( - 42 ) * - + ( + - 7 ) + - 89 / + CAST ( - + AVG ( + - 31 ) AS INTEGER ) AS col0, COUNT ( * )
----
975
1

query I rowsort
SELECT 36 + + + 5 + - + 75 * + 78 * + 40
----
-233959

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8820
SELECT 82 + - 96 + + 45 * - COUNT( * ) AS col2, 77 DIV - + 63 AS col1
----
-59
-1

skipif mysql # not compatible
query II rowsort label-8820
SELECT 82 + - 96 + + 45 * - COUNT ( * ) AS col2, 77 / - + 63 AS col1
----
-59
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8821
SELECT + CASE ( + 64 ) WHEN - - 68 / + 71 / 17 + - + CAST( + - 18 AS SIGNED ) THEN - 28 END * 7 * + + 16 + ( 34 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8821
SELECT + CASE ( + 64 ) WHEN - - 68 / + 71 / 17 + - + CAST ( + - 18 AS INTEGER ) THEN - 28 END * 7 * + + 16 + ( 34 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT COALESCE ( - ( - - ( + - 3 ) ), + NULLIF ( 17, 44 * - - 54 / + - NULLIF ( + NULLIF ( - 4, 92 + + + COUNT( - - 38 ) + 8 * - 13 - + 24 ), + + 15 ) * - 38 ) ) * - + 69 * - 15
----
3105

skipif mysql # not compatible
query I rowsort label-8822
SELECT COALESCE ( - ( - - ( + - 3 ) ), + NULLIF ( 17, 44 * - - 54 / + - NULLIF ( + NULLIF ( - 4, 92 + + + COUNT ( - - 38 ) + 8 * - 13 - + 24 ), + + 15 ) * - 38 ) ) * - + 69 * - 15
----
3105

onlyif mysql # aggregate syntax: 
query II rowsort label-8823
SELECT + 78 + + - ( - + ( + 16 ) ) - - - COALESCE ( + - 75, + MAX( + 90 ) * 15 ) - 48 AS col1, + 68 AS col0
----
121
68

skipif mysql # not compatible
query II rowsort label-8823
SELECT + 78 + + - ( - + ( + 16 ) ) - - - COALESCE ( + - 75, + MAX ( + 90 ) * 15 ) - 48 AS col1, + 68 AS col0
----
121
68

query I rowsort
SELECT ALL + 68 * + 66 + + 16
----
4504

query I rowsort
SELECT ( + + ( - 35 ) ) + + 20 AS col0
----
-15

query I rowsort
SELECT 92 * 37
----
3404

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT DISTINCT 71 * MAX( ALL + 60 )
----
4260

skipif mysql # not compatible
query I rowsort label-8827
SELECT DISTINCT 71 * MAX ( ALL + 60 )
----
4260

query I rowsort
SELECT DISTINCT ( ( - - 46 ) ) col0
----
46

query I rowsort
SELECT DISTINCT + 74 * 63 - - 24 AS col0
----
4686

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL COUNT( * ) + + 27 + + 32 + - ( + - NULLIF ( + 72, 9 ) ) + 73 AS col2
----
205

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL COUNT ( * ) + + 27 + + 32 + - ( + - NULLIF ( + 72, 9 ) ) + 73 AS col2
----
205

query I rowsort
SELECT - 85 * + 20
----
-1700

query I rowsort
SELECT ALL 55 + - - 16 + - 0 * + ( + 58 ) + + + 12
----
83

query I rowsort
SELECT 22 - + - 21
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8834
SELECT DISTINCT ( + + COUNT( * ) ) + - - 7 + - MAX( - + 79 ) * 30 DIV - 43 + ( - COUNT( * ) ) * + 54
----
-101

skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT ( + + COUNT ( * ) ) + - - 7 + - MAX ( - + 79 ) * 30 / - 43 + ( - COUNT ( * ) ) * + 54
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8835
SELECT - CAST( - 23 AS SIGNED ) * + 64 - + 85 + + 73 * + 1 AS col0
----
1460

skipif mysql # not compatible
query I rowsort label-8835
SELECT - CAST ( - 23 AS INTEGER ) * + 64 - + 85 + + 73 * + 1 AS col0
----
1460

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT 73 + + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8836
SELECT 73 + + COUNT ( * ) AS col2
----
74

query I rowsort
SELECT DISTINCT 26 + + - NULLIF ( + 39, - - 42 - - 87 )
----
-13

query I rowsort
SELECT ALL 85 + 2 * + ( - - 30 ) + - 17
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT ( + + COUNT( * ) ) * - 10 + 21 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8839
SELECT ( + + COUNT ( * ) ) * - 10 + 21 AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8840
SELECT DISTINCT CAST( + + 13 AS SIGNED ) + 81 + + COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT CAST ( + + 13 AS INTEGER ) + 81 + + COUNT ( * ) AS col0
----
95

query I rowsort
SELECT DISTINCT - NULLIF ( - - 29, + 70 - - 8 + + 64 * - ( - - 74 ) ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT DISTINCT 84 * COALESCE ( - 58, 97, 16 + - COUNT( * ) )
----
-4872

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT 84 * COALESCE ( - 58, 97, 16 + - COUNT ( * ) )
----
-4872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8843
SELECT CASE 44 WHEN + 19 * - - 44 + + 6 THEN + 43 ELSE - ( + CAST( NULL AS SIGNED ) ) - 30 + - 97 END * - 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT CASE 44 WHEN + 19 * - - 44 + + 6 THEN + 43 ELSE - ( + CAST ( NULL AS INTEGER ) ) - 30 + - 97 END * - 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT ALL + COUNT( * ) * 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL + COUNT ( * ) * 70 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ( COUNT( * ) ) - + 51 * - 73
----
3724

skipif mysql # not compatible
query I rowsort label-8845
SELECT ( COUNT ( * ) ) - + 51 * - 73
----
3724

query I rowsort
SELECT 97 + - 92
----
5

query I rowsort
SELECT 7 + - 47 * + 92 AS col0
----
-4317

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT DISTINCT COUNT( ALL + 84 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT COUNT ( ALL + 84 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8849
SELECT 16 DIV + 22
----
0

skipif mysql # not compatible
query I rowsort label-8849
SELECT 16 / + 22
----
0

query I rowsort
SELECT 22 - - 68 * - 49 col1
----
-3310

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT ALL MIN( 59 ) + 56 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL MIN ( 59 ) + 56 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT 32 + - CASE 41 WHEN 33 + COALESCE ( 43 + + 76 * 78, COUNT( * ) ) THEN ( - 78 ) WHEN 32 - COUNT( * ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8852
SELECT 32 + - CASE 41 WHEN 33 + COALESCE ( 43 + + 76 * 78, COUNT ( * ) ) THEN ( - 78 ) WHEN 32 - COUNT ( * ) THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8853
SELECT NULLIF ( + COUNT( * ), + COUNT( * ) - - 68 ) + + 58 DIV + 27
----
3

skipif mysql # not compatible
query I rowsort label-8853
SELECT NULLIF ( + COUNT ( * ), + COUNT ( * ) - - 68 ) + + 58 / + 27
----
3

query I rowsort
SELECT 12 + 41 * 35 AS col2
----
1447

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT ALL - NULLIF ( 95, + MIN( 6 ) ) + 28 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL - NULLIF ( 95, + MIN ( 6 ) ) + 28 AS col2
----
-67

query I rowsort
SELECT 22 + - 90 AS col1
----
-68

query I rowsort
SELECT 31 + 66 * 5 col1
----
361

query I rowsort
SELECT 67 - ( 30 ) AS col1
----
37

query I rowsort
SELECT - ( - 91 ) * 34 + - 18 col0
----
3076

query I rowsort
SELECT ALL 24 * + 61 + + 84 AS col0
----
1548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT ALL + CAST( NULL AS SIGNED ) * 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL + CAST ( NULL AS INTEGER ) * 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT COUNT( * ) * 72 + 66 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-8862
SELECT COUNT ( * ) * 72 + 66 AS col2
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8863
SELECT CASE - 82 WHEN + CAST( + SUM( 11 ) AS SIGNED ) + 26 THEN NULL ELSE + CAST( 86 AS SIGNED ) * + COALESCE ( 93 DIV 40 - 73, - 21, 14 ) END AS col0
----
-6106

skipif mysql # not compatible
query I rowsort label-8863
SELECT CASE - 82 WHEN + CAST ( + SUM ( 11 ) AS INTEGER ) + 26 THEN NULL ELSE + CAST ( 86 AS INTEGER ) * + COALESCE ( 93 / 40 - 73, - 21, 14 ) END AS col0
----
-6106

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8864
SELECT DISTINCT + ( 86 ) * - COUNT( * ) + - ( CASE CAST( NULL AS DECIMAL ) WHEN + 9 - 30 THEN NULL WHEN + ( + 32 ) * COUNT( * ) THEN - CASE 47 WHEN - ( 19 ) THEN NULL WHEN - 20 THEN NULL ELSE 89 * 1 - 45 END + 26 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT + ( 86 ) * - COUNT ( * ) + - ( CASE CAST ( NULL AS REAL ) WHEN + 9 - 30 THEN NULL WHEN + ( + 32 ) * COUNT ( * ) THEN - CASE 47 WHEN - ( 19 ) THEN NULL WHEN - 20 THEN NULL ELSE 89 * 1 - 45 END + 26 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL + 13 * + 69 AS col0
----
897

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT + SUM( ALL + NULLIF ( 32, + 33 ) )
----
32

skipif mysql # not compatible
query I rowsort label-8866
SELECT + SUM ( ALL + NULLIF ( 32, + 33 ) )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8867
SELECT + CAST( NULL AS SIGNED ) * 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8867
SELECT + CAST ( NULL AS INTEGER ) * 8 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT + 23 * 97 + - COUNT( * ) AS col1
----
2230

skipif mysql # not compatible
query I rowsort label-8868
SELECT + 23 * 97 + - COUNT ( * ) AS col1
----
2230

query I rowsort
SELECT DISTINCT 48 * 86 - 44 AS col1
----
4084

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8870
SELECT ALL COUNT( * ) * 53 - 65 DIV - 18 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL COUNT ( * ) * 53 - 65 / - 18 AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8871
SELECT + CAST( 66 AS SIGNED ) * ( + 7 ) AS col2
----
462

skipif mysql # not compatible
query I rowsort label-8871
SELECT + CAST ( 66 AS INTEGER ) * ( + 7 ) AS col2
----
462

onlyif mysql # DIV for integer division: 
query I rowsort label-8872
SELECT ALL 83 DIV - 58
----
-1

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL 83 / - 58
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT ALL SUM( DISTINCT COALESCE ( 83, 14 - - 13 ) ) * - 66
----
-5478

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL SUM ( DISTINCT COALESCE ( 83, 14 - - 13 ) ) * - 66
----
-5478

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT + NULLIF ( 1, COUNT( - 11 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8874
SELECT + NULLIF ( 1, COUNT ( - 11 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT - 85 * 3 + + MAX( ALL - 70 + + 61 )
----
-264

skipif mysql # not compatible
query I rowsort label-8875
SELECT - 85 * 3 + + MAX ( ALL - 70 + + 61 )
----
-264

query I rowsort
SELECT + 64 + + 32 * 79
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT + + 12 * MIN( 77 )
----
924

skipif mysql # not compatible
query I rowsort label-8877
SELECT + + 12 * MIN ( 77 )
----
924

query I rowsort
SELECT + - 6 * - 89
----
534

query I rowsort
SELECT ALL 8 * ( + 28 )
----
224

onlyif mysql # DIV for integer division: 
query I rowsort label-8880
SELECT + 77 + - 91 DIV 85
----
76

skipif mysql # not compatible
query I rowsort label-8880
SELECT + 77 + - 91 / 85
----
76

query I rowsort
SELECT - - ( - 75 ) * 27 + 19 * - 23
----
-2462

query I rowsort
SELECT + 4 * 17 AS col1
----
68

query I rowsort
SELECT - - 22 * + 39 + - 11 col2
----
847

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT DISTINCT SUM( ALL 71 )
----
71

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT SUM ( ALL 71 )
----
71

query I rowsort
SELECT DISTINCT 92 + - 18 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ALL + - ( 81 ) + CASE AVG ( - 3 ) WHEN + 99 * - COUNT( * ) + 7 THEN NULL WHEN - ( 65 ) / 7 THEN 82 + COALESCE ( COUNT( * ), - 47 * + 99, ( 40 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL + - ( 81 ) + CASE AVG ( - 3 ) WHEN + 99 * - COUNT ( * ) + 7 THEN NULL WHEN - ( 65 ) / 7 THEN 82 + COALESCE ( COUNT ( * ), - 47 * + 99, ( 40 ) ) END AS col2
----
NULL

query I rowsort
SELECT - + 80 + + 87
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL + 74 + 29 * COUNT( * )
----
103

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL + 74 + 29 * COUNT ( * )
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT DISTINCT CASE COUNT( * ) WHEN CASE + 0 WHEN + 78 THEN NULL WHEN - 51 THEN + 8 / - 48 ELSE + 76 * + ( ( 77 ) ) END + ( 26 ) / + 97 THEN NULL WHEN 90 THEN + 60 + - 76 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT CASE COUNT ( * ) WHEN CASE + 0 WHEN + 78 THEN NULL WHEN - 51 THEN + 8 / - 48 ELSE + 76 * + ( ( 77 ) ) END + ( 26 ) / + 97 THEN NULL WHEN 90 THEN + 60 + - 76 ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8890
SELECT - CASE - 64 WHEN - ( 32 ) + ( + 51 + - COUNT( * ) ) THEN 39 WHEN + 89 * + COUNT( * ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 22 * - COUNT( * ) THEN - 81 ELSE 62 + 48 * - 27 END AS col1
----
1234

skipif mysql # not compatible
query I rowsort label-8890
SELECT - CASE - 64 WHEN - ( 32 ) + ( + 51 + - COUNT ( * ) ) THEN 39 WHEN + 89 * + COUNT ( * ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 22 * - COUNT ( * ) THEN - 81 ELSE 62 + 48 * - 27 END AS col1
----
1234

query I rowsort
SELECT ALL + - 22 + + 48 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT + NULLIF ( COALESCE ( + COUNT( * ), + 45 - - 51 ), - COUNT( + 60 ) + + ( 54 - - ( + 86 ) ) ) * ( MIN( ALL 30 ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-8892
SELECT + NULLIF ( COALESCE ( + COUNT ( * ), + 45 - - 51 ), - COUNT ( + 60 ) + + ( 54 - - ( + 86 ) ) ) * ( MIN ( ALL 30 ) ) AS col0
----
30

query I rowsort
SELECT - 76 + NULLIF ( + 41, 12 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT - 91 * - COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8894
SELECT - 91 * - COUNT ( * ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT DISTINCT - 99 + - COUNT( * ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT - 99 + - COUNT ( * ) AS col2
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8896
SELECT ALL - 54 DIV - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL - 54 / - COUNT ( * )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8897
SELECT ALL - 81 - - 3 + + ( COUNT( * ) ) DIV 47
----
-78

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL - 81 - - 3 + + ( COUNT ( * ) ) / 47
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT + SUM( 46 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8898
SELECT + SUM ( 46 ) AS col0
----
46

query I rowsort
SELECT - 7 - 72
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT + COALESCE ( COUNT( * ), - 83 ) * 17 + 51 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8900
SELECT + COALESCE ( COUNT ( * ), - 83 ) * 17 + 51 AS col1
----
68

query I rowsort
SELECT + 90 * + 56 AS col1
----
5040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8902
SELECT ALL + MIN( - 52 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL + MIN ( - 52 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( + ( - 61 ) ) * - 35
----
-2135

query I rowsort
SELECT ALL + NULLIF ( + 42, - 86 + 39 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT DISTINCT COALESCE ( + - 95, - 89 + 92 * + 28, COUNT( * ) ) * - 9
----
855

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT COALESCE ( + - 95, - 89 + 92 * + 28, COUNT ( * ) ) * - 9
----
855

query I rowsort
SELECT DISTINCT + 91 * + 58
----
5278

query I rowsort
SELECT + 30 - 91 * + 28
----
-2518

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT DISTINCT - MIN( - 21 ) * - 8
----
-168

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT - MIN ( - 21 ) * - 8
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-8909
SELECT + 23 DIV - + 79
----
0

skipif mysql # not compatible
query I rowsort label-8909
SELECT + 23 / - + 79
----
0

query I rowsort
SELECT - 61 * 49
----
-2989

onlyif mysql # DIV for integer division: 
query I rowsort label-8911
SELECT + 49 - - 12 DIV + 19 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-8911
SELECT + 49 - - 12 / + 19 AS col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8912
SELECT ALL COALESCE ( 79, - 26 DIV - 3 + - 37, - 0 ) DIV 10 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL COALESCE ( 79, - 26 / - 3 + - 37, - 0 ) / 10 AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT + + 75 DIV - 75 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8913
SELECT + + 75 / - 75 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT ALL + MAX( 84 ) * - COUNT( * ) + + 45 * NULLIF ( 25 * + 97 + 40, + CASE + 66 WHEN 86 + + 83 THEN 84 * + COUNT( * ) END ) AS col0
----
110841

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL + MAX ( 84 ) * - COUNT ( * ) + + 45 * NULLIF ( 25 * + 97 + 40, + CASE + 66 WHEN 86 + + 83 THEN 84 * + COUNT ( * ) END ) AS col0
----
110841

onlyif mysql # DIV for integer division: 
query I rowsort label-8915
SELECT DISTINCT 37 * 20 DIV 31 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT 37 * 20 / 31 AS col0
----
23

query I rowsort
SELECT ALL + NULLIF ( ( + 12 ), 57 * CASE + 6 WHEN + 95 THEN + 17 END ) * 4 + 35
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT + 25 DIV + 11 + + 90
----
92

skipif mysql # not compatible
query I rowsort label-8917
SELECT + 25 / + 11 + + 90
----
92

query I rowsort
SELECT + ( + 14 ) * 17
----
238

query I rowsort
SELECT + ( - + 22 ) + - 36 * 85 AS col2
----
-3082

query I rowsort
SELECT ALL - CASE + AVG ( ALL + 12 ) WHEN 55 * + 83 THEN + 12 END * - 18 + 25 * - 89 AS col1
----
NULL

query I rowsort
SELECT + 91 + 43 * 48 col0
----
2155

query I rowsort
SELECT + ( 49 ) + - 42 col2
----
7

query I rowsort
SELECT - - 68 * + 6 + - 37 AS col2
----
371

onlyif mysql # DIV for integer division: 
query I rowsort label-8924
SELECT ALL - 62 + - + 84 + - 68 DIV 7 AS col2
----
-155

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL - 62 + - + 84 + - 68 / 7 AS col2
----
-155

query I rowsort
SELECT - + ( - + ( 63 ) )
----
63

query I rowsort
SELECT DISTINCT 6 - - 7 AS col0
----
13

query I rowsort
SELECT ( - 3 ) + - + 9 + 43 * + 13
----
547

query I rowsort
SELECT 76 + 24
----
100

query I rowsort
SELECT 86 + 63 - + 5 * + 20 AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8930
SELECT ( COUNT( * ) ) + NULLIF ( + 24, + CAST( - 3 AS SIGNED ) * ( + MIN( ALL 25 ) ) ) + 8
----
33

skipif mysql # not compatible
query I rowsort label-8930
SELECT ( COUNT ( * ) ) + NULLIF ( + 24, + CAST ( - 3 AS INTEGER ) * ( + MIN ( ALL 25 ) ) ) + 8
----
33

query I rowsort
SELECT 92 - - NULLIF ( - 49, - 88 ) + - 95 * 49
----
-4612

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT 66 + MIN( + ( 52 ) ) AS col2
----
118

skipif mysql # not compatible
query I rowsort label-8932
SELECT 66 + MIN ( + ( 52 ) ) AS col2
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8933
SELECT 1 - 0 DIV ( - MIN( 49 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8933
SELECT 1 - 0 / ( - MIN ( 49 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT ALL - SUM( ALL 86 ) * + + COUNT( * ) * COUNT( * ) + 15
----
-71

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL - SUM ( ALL 86 ) * + + COUNT ( * ) * COUNT ( * ) + 15
----
-71

query I rowsort
SELECT ALL 7 * + + 68
----
476

query I rowsort
SELECT 82 * + 11 AS col0
----
902

query I rowsort
SELECT ALL - ( - COALESCE ( NULLIF ( + 43, + 67 / 59 ), + 35 + 88 ) ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL - MIN( 1 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL - MIN ( 1 ) col1
----
-1

query I rowsort
SELECT 98 * + 80 AS col1
----
7840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8940
SELECT - 2 / - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - COUNT( * ) * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT - 2 / - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - COUNT ( * ) * 6
----
NULL

query II rowsort
SELECT DISTINCT - 39 AS col2, 48
----
-39
48

query I rowsort
SELECT 88 + - 34 + + 48 col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT DISTINCT - MIN( + + 31 ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT - MIN ( + + 31 ) col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8944
SELECT - - 99 * + + 74 * - - 30 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8944
SELECT - - 99 * + + 74 * - - 30 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT CASE 67 WHEN + CASE - 51 WHEN AVG ( DISTINCT 32 ) THEN - ( + 49 ) END THEN NULL WHEN - 26 THEN - 12 - + 30 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT ALL + - COUNT( * ) + - - 99
----
98

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL + - COUNT ( * ) + - - 99
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT DISTINCT - - 55 + - - 28 / + CAST( NULL AS SIGNED ) + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT - - 55 + - - 28 / + CAST ( NULL AS INTEGER ) + + 75
----
NULL

query I rowsort
SELECT ALL 26 + - 79 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT - 95 + COALESCE ( 96, - 44, - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8949
SELECT - 95 + COALESCE ( 96, - 44, - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT DISTINCT - 7 + + COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT - 7 + + COUNT ( * ) AS col0
----
-6

query I rowsort
SELECT 5 + 61
----
66

query II rowsort
SELECT DISTINCT - + 88, 78 AS col1
----
-88
78

query I rowsort
SELECT + 62 * - - 53 AS col1
----
3286

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT - COUNT( - 38 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8954
SELECT - COUNT ( - 38 ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8955
SELECT 69, + 77 DIV ( + COUNT( 85 ) ) col1
----
69
77

skipif mysql # not compatible
query II rowsort label-8955
SELECT 69, + 77 / ( + COUNT ( 85 ) ) col1
----
69
77

query I rowsort
SELECT + 45 + 63 AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT 44 * - 56 + COUNT( * ) * - 74 AS col0
----
-2538

skipif mysql # not compatible
query I rowsort label-8957
SELECT 44 * - 56 + COUNT ( * ) * - 74 AS col0
----
-2538

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT CASE WHEN NOT 55 NOT IN ( - 99 * - ( - ( MIN( ( + 46 ) ) ) ) + 50 ) THEN 30 * + 7 END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT CASE WHEN NOT 55 NOT IN ( - 99 * - ( - ( MIN ( ( + 46 ) ) ) ) + 50 ) THEN 30 * + 7 END + COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8959
SELECT DISTINCT 37 DIV - + NULLIF ( - - 77, + 11 ) * 52 + + NULLIF ( 57, + 98 + + 96 )
----
57

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT 37 / - + NULLIF ( - - 77, + 11 ) * 52 + + NULLIF ( 57, + 98 + + 96 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT DISTINCT - 64 - + + 32 * COUNT( * ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT - 64 - + + 32 * COUNT ( * ) AS col0
----
-96

query II rowsort
SELECT DISTINCT - 51 AS col0, - 51
----
-51
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8962
SELECT 54 DIV + 62 * + 76
----
0

skipif mysql # not compatible
query I rowsort label-8962
SELECT 54 / + 62 * + 76
----
0

query II rowsort
SELECT ALL 14, 85 AS col2
----
14
85

query II rowsort
SELECT 92 + + + 51 col2, 0
----
143
0

query I rowsort
SELECT ALL 20 * + 51 * - 79 AS col2
----
-80580

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT 63 * MAX( 31 )
----
1953

skipif mysql # not compatible
query I rowsort label-8966
SELECT 63 * MAX ( 31 )
----
1953

query I rowsort
SELECT ( + 73 ) + + + ( + 18 ) AS col2
----
91

query I rowsort
SELECT ALL 66 * + + 54 AS col0
----
3564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8969
SELECT CAST( - - 5 AS SIGNED ) + ( - - COUNT( * ) )
----
6

skipif mysql # not compatible
query I rowsort label-8969
SELECT CAST ( - - 5 AS INTEGER ) + ( - - COUNT ( * ) )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT COUNT( * ) * + COALESCE ( - 3, + 5 + + 9 * CASE WHEN NULL NOT IN ( - 42 ) THEN - 8 ELSE NULL END, 57 * 76 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8970
SELECT COUNT ( * ) * + COALESCE ( - 3, + 5 + + 9 * CASE WHEN NULL NOT IN ( - 42 ) THEN - 8 ELSE NULL END, 57 * 76 ) AS col0
----
-3

query I rowsort
SELECT ALL 54 + + 87 + ( - 41 ) * + 90
----
-3549

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT ( COUNT( * ) ) - - 81 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-8972
SELECT ( COUNT ( * ) ) - - 81 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT ALL COUNT( * ) * + 69 * - COALESCE ( - 28, 88 * COUNT( * ) + + 75 ) * + 37 col1
----
71484

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL COUNT ( * ) * + 69 * - COALESCE ( - 28, 88 * COUNT ( * ) + + 75 ) * + 37 col1
----
71484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8974
SELECT COALESCE ( + + CAST( + 4 AS SIGNED ), 63 - + 11, COUNT( * ) + 39 ) DIV 3
----
1

skipif mysql # not compatible
query I rowsort label-8974
SELECT COALESCE ( + + CAST ( + 4 AS INTEGER ), 63 - + 11, COUNT ( * ) + 39 ) / 3
----
1

query II rowsort
SELECT - 84 - - 26, + 35 + - 13 AS col2
----
-58
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8976
SELECT ALL 54 * - 11 + CAST( - 54 AS SIGNED ) * COUNT( * )
----
-648

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL 54 * - 11 + CAST ( - 54 AS INTEGER ) * COUNT ( * )
----
-648

query I rowsort
SELECT + 93 * + ( - 27 )
----
-2511

query I rowsort
SELECT - + 9 * - 34 + + 39 + + 56 * 37 - 24
----
2393

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT + SUM( + 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-8979
SELECT + SUM ( + 18 ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL + + ( - 5 ) + + COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL + + ( - 5 ) + + COUNT ( * ) AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8981
SELECT + CAST( 17 AS SIGNED ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8981
SELECT + CAST ( 17 AS INTEGER ) AS col2
----
17

query II rowsort
SELECT 97 * 11 AS col0, 7
----
1067
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT ALL - + NULLIF ( + - 23, - CASE - 92 WHEN - 39 THEN 91 + NULLIF ( + 84 + COUNT( * ) / - CASE 53 WHEN + 58 + - 2 * 99 THEN - MIN( 71 ) * - 86 ELSE NULL END, 63 + 38 ) WHEN - 7 THEN NULL ELSE NULL END * 46 )
----
23

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL - + NULLIF ( + - 23, - CASE - 92 WHEN - 39 THEN 91 + NULLIF ( + 84 + COUNT ( * ) / - CASE 53 WHEN + 58 + - 2 * 99 THEN - MIN ( 71 ) * - 86 ELSE NULL END, 63 + 38 ) WHEN - 7 THEN NULL ELSE NULL END * 46 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT ALL - - 2 * - MAX( DISTINCT + + 20 )
----
-40

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL - - 2 * - MAX ( DISTINCT + + 20 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT COUNT( ( + 1 ) ) - 58
----
-57

skipif mysql # not compatible
query I rowsort label-8985
SELECT COUNT ( ( + 1 ) ) - 58
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT DISTINCT - COUNT( * ) - - + 87 + NULLIF ( + + NULLIF ( - 69, 31 * + 39 ), + ( - 5 ) ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT - COUNT ( * ) - - + 87 + NULLIF ( + + NULLIF ( - 69, 31 * + 39 ), + ( - 5 ) ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT DISTINCT + NULLIF ( + - 6, MAX( ALL + 63 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT + NULLIF ( + - 6, MAX ( ALL + 63 ) )
----
-6

query I rowsort
SELECT - + 5 + - + 46
----
-51

query I rowsort
SELECT + 95 * + 53 + + - NULLIF ( - + 42, - 74 ) AS col2
----
5077

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT ALL CASE 76 WHEN - - 7 THEN - COUNT( * ) * - 87 + 48 * + 33 + AVG ( ALL 29 + 35 ) * 92 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL CASE 76 WHEN - - 7 THEN - COUNT ( * ) * - 87 + 48 * + 33 + AVG ( ALL 29 + 35 ) * 92 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 85 + + - 76 AS col0
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT - CASE + 3 WHEN + + 52 + CASE + CASE - COUNT( * ) WHEN - 63 THEN COUNT( * ) + 60 END WHEN + 52 / - 22 + - 90 THEN - 87 WHEN + 81 + 51 THEN 12 ELSE 25 END THEN 34 END + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT - CASE + 3 WHEN + + 52 + CASE + CASE - COUNT ( * ) WHEN - 63 THEN COUNT ( * ) + 60 END WHEN + 52 / - 22 + - 90 THEN - 87 WHEN + 81 + 51 THEN 12 ELSE 25 END THEN 34 END + 25
----
NULL

query I rowsort
SELECT - ( 33 ) + 34 AS col0
----
1

query I rowsort
SELECT ALL NULLIF ( - 32, + 40 )
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-8995
SELECT ALL 66 * + COUNT( * ) * 7, + 53 AS col0
----
462
53

skipif mysql # not compatible
query II rowsort label-8995
SELECT ALL 66 * + COUNT ( * ) * 7, + 53 AS col0
----
462
53

query I rowsort
SELECT DISTINCT - 78 + - 52 col2
----
-130

query II rowsort
SELECT 32 AS col2, - 89
----
32
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-8998
SELECT + 48 DIV + 66 * - 7
----
0

skipif mysql # not compatible
query I rowsort label-8998
SELECT + 48 / + 66 * - 7
----
0

query I rowsort
SELECT ALL 13 + 18 * 33 + - - 29
----
636

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT - COUNT( * ) + - 18 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-9000
SELECT - COUNT ( * ) + - 18 AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9001
SELECT - CAST( + + 82 AS SIGNED ) + - 64 + 48 * COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-9001
SELECT - CAST ( + + 82 AS INTEGER ) + - 64 + 48 * COUNT ( * )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9002
SELECT + 1 + + 33 + + CAST( - - 59 AS SIGNED ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-9002
SELECT + 1 + + 33 + + CAST ( - - 59 AS INTEGER ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT DISTINCT MAX( ALL - 7 ) + MAX( - 4 ) + 87 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT MAX ( ALL - 7 ) + MAX ( - 4 ) + 87 AS col1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9004
SELECT + 71 + 48 + + + 76 DIV + + 8 - 33
----
95

skipif mysql # not compatible
query I rowsort label-9004
SELECT + 71 + 48 + + + 76 / + + 8 - 33
----
95

query I rowsort
SELECT + 77 + - 24 col2
----
53

query I rowsort
SELECT DISTINCT ( - + 80 ) col1
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9007
SELECT DISTINCT COUNT( * ) + - 91 + - 34 AS col2, + NULLIF ( + + 2, + 11 ) DIV 23 + 42
----
-124
42

skipif mysql # not compatible
query II rowsort label-9007
SELECT DISTINCT COUNT ( * ) + - 91 + - 34 AS col2, + NULLIF ( + + 2, + 11 ) / 23 + 42
----
-124
42

query I rowsort
SELECT ALL + 96 * 77 + - - 2 - 50 col0
----
7344

query I rowsort
SELECT ( + 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT - 72 / - 84 * - + 65 + COUNT( 8 ) + + ( - 64 ) * - 0 + + CASE 55 WHEN - 67 THEN + 29 WHEN - 13 THEN NULL ELSE NULL END / - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT - 72 / - 84 * - + 65 + COUNT ( 8 ) + + ( - 64 ) * - 0 + + CASE 55 WHEN - 67 THEN + 29 WHEN - 13 THEN NULL ELSE NULL END / - 54 AS col2
----
NULL

query I rowsort
SELECT ALL + 2 * - - 32 col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL + COUNT( * ) * + 76 + - 94 + + - 9 * - 33 * 78
----
23148

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL + COUNT ( * ) * + 76 + - 94 + + - 9 * - 33 * 78
----
23148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9013
SELECT + NULLIF ( - 3, NULLIF ( 51, - CASE + CAST( NULL AS SIGNED ) WHEN + 69 + + MIN( 25 + - 87 ) THEN - COUNT( * ) + - 51 WHEN + 89 THEN 95 END + - 36 * + COUNT( * ) ) + + CAST( NULL AS SIGNED ) ) + + 99 * + 46
----
4551

skipif mysql # not compatible
query I rowsort label-9013
SELECT + NULLIF ( - 3, NULLIF ( 51, - CASE + CAST ( NULL AS INTEGER ) WHEN + 69 + + MIN ( 25 + - 87 ) THEN - COUNT ( * ) + - 51 WHEN + 89 THEN 95 END + - 36 * + COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) ) + + 99 * + 46
----
4551

query I rowsort
SELECT + + 47 * + + CASE 74 WHEN + - 79 THEN - 60 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT - 55 * + 52 + + SUM( - 26 ) * 49 col1
----
-4134

skipif mysql # not compatible
query I rowsort label-9015
SELECT - 55 * + 52 + + SUM ( - 26 ) * 49 col1
----
-4134

query I rowsort
SELECT - 14 - - 37
----
23

query II rowsort
SELECT + + 81, 67 * + - 9 AS col0
----
81
-603

query II rowsort
SELECT ALL + 24 col0, + 20 * - 68
----
24
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT + MIN( ALL - - 69 ) * + + CASE - - CASE + - 25 WHEN 4 + + 71 THEN NULL ELSE ( ( - 2 ) ) END WHEN - 17 THEN - 46 - 42 ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9019
SELECT + MIN ( ALL - - 69 ) * + + CASE - - CASE + - 25 WHEN 4 + + 71 THEN NULL ELSE ( ( - 2 ) ) END WHEN - 17 THEN - 46 - 42 ELSE NULL END + - COUNT ( * )
----
NULL

query I rowsort
SELECT + 71 * + 89 AS col2
----
6319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9021
SELECT DISTINCT + CASE 7 WHEN + - ( 87 ) THEN - CAST( NULL AS SIGNED ) WHEN + 13 / - 55 THEN + CAST( NULL AS SIGNED ) ELSE 51 END * - 22 AS col2
----
-1122

skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT + CASE 7 WHEN + - ( 87 ) THEN - CAST ( NULL AS INTEGER ) WHEN + 13 / - 55 THEN + CAST ( NULL AS INTEGER ) ELSE 51 END * - 22 AS col2
----
-1122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9022
SELECT DISTINCT 59 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9022
SELECT DISTINCT 59 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT - 98 DIV 38 * + 64
----
-128

skipif mysql # not compatible
query I rowsort label-9023
SELECT - 98 / 38 * + 64
----
-128

query I rowsort
SELECT + 79 * - 69 * COALESCE ( + + 68, + - 31, 6 ) + + 73 AS col0
----
-370595

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT ALL + + CASE - - 37 WHEN - 99 THEN - 97 WHEN + AVG ( 16 ) THEN + 47 + + ( - 95 - + 61 ) ELSE - 50 * COUNT( * ) END AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL + + CASE - - 37 WHEN - 99 THEN - 97 WHEN + AVG ( 16 ) THEN + 47 + + ( - 95 - + 61 ) ELSE - 50 * COUNT ( * ) END AS col0
----
-50

query I rowsort
SELECT + + 51 * + 92 * - 12 col2
----
-56304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9027
SELECT + 92 * - CASE + - MAX( ALL CAST( NULL AS SIGNED ) ) WHEN - 26 THEN NULLIF ( - ( - 27 ), 58 ) END / 3 + 3 * 74 + 16 * - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9027
SELECT + 92 * - CASE + - MAX ( ALL CAST ( NULL AS INTEGER ) ) WHEN - 26 THEN NULLIF ( - ( - 27 ), 58 ) END / 3 + 3 * 74 + 16 * - 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9028
SELECT DISTINCT + MAX( DISTINCT - 59 ) DIV + + 28
----
-2

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT + MAX ( DISTINCT - 59 ) / + + 28
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9029
SELECT - - 70 DIV ( 37 ) * + 58 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9029
SELECT - - 70 / ( 37 ) * + 58 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT - COALESCE ( - 73, - 80 * - 22 * + 43 ) + ( COUNT( * ) ) * MIN( DISTINCT + 16 )
----
89

skipif mysql # not compatible
query I rowsort label-9030
SELECT - COALESCE ( - 73, - 80 * - 22 * + 43 ) + ( COUNT ( * ) ) * MIN ( DISTINCT + 16 )
----
89

query I rowsort
SELECT ALL CASE - 74 WHEN 87 THEN + 93 END AS col1
----
NULL

query II rowsort
SELECT - 59 AS col1, 12 + + 52
----
-59
64

query I rowsort
SELECT DISTINCT + 37 * 42 AS col1
----
1554

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT - NULLIF ( ( - 94 ), + + 4 + - 60 + MIN( DISTINCT 48 ) ) * - 43
----
-4042

skipif mysql # not compatible
query I rowsort label-9034
SELECT - NULLIF ( ( - 94 ), + + 4 + - 60 + MIN ( DISTINCT 48 ) ) * - 43
----
-4042

query I rowsort
SELECT ALL + 64 + + - 89 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-9036
SELECT ALL + COUNT( * ) * - 40, - 69 * + ( + 15 ) + 94 AS col2
----
-40
-941

skipif mysql # not compatible
query II rowsort label-9036
SELECT ALL + COUNT ( * ) * - 40, - 69 * + ( + 15 ) + 94 AS col2
----
-40
-941

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9037
SELECT ALL - 64 + ( + NULLIF ( + - COUNT( * ), 46 * + - COUNT( * ) + 4 ) ) DIV 95
----
-64

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - 64 + ( + NULLIF ( + - COUNT ( * ), 46 * + - COUNT ( * ) + 4 ) ) / 95
----
-64

query I rowsort
SELECT ALL - 92 + - + 23
----
-115

onlyif mysql # DIV for integer division: 
query II rowsort label-9039
SELECT 4 AS col0, 59 DIV - 44
----
4
-1

skipif mysql # not compatible
query II rowsort label-9039
SELECT 4 AS col0, 59 / - 44
----
4
-1

query I rowsort
SELECT - 7 * + - 20 * + 29 AS col1
----
4060

query I rowsort
SELECT - ( + 7 ) * 85 AS col2
----
-595

query I rowsort
SELECT ALL ( - ( - 60 ) )
----
60

query III rowsort
SELECT 18, 59 AS col2, 3 * + 38 AS col2
----
18
59
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT ALL CAST( + 30 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL CAST ( + 30 AS INTEGER )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9045
SELECT - 71 DIV - ( + 90 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9045
SELECT - 71 / - ( + 90 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT ALL + 29 + 51 * + - ( - NULLIF ( 67, ( + 0 ) + + 7 / 76 ) ) + COUNT( * ) * 13
----
3459

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL + 29 + 51 * + - ( - NULLIF ( 67, ( + 0 ) + + 7 / 76 ) ) + COUNT ( * ) * 13
----
3459

onlyif mysql # aggregate syntax: 
query II rowsort label-9047
SELECT DISTINCT ( 6 ) AS col0, COUNT( * )
----
6
1

skipif mysql # not compatible
query II rowsort label-9047
SELECT DISTINCT ( 6 ) AS col0, COUNT ( * )
----
6
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9048
SELECT - COUNT( * ), 56 AS col0
----
-1
56

skipif mysql # not compatible
query II rowsort label-9048
SELECT - COUNT ( * ), 56 AS col0
----
-1
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9049
SELECT DISTINCT CAST( - 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT CAST ( - 1 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT DISTINCT + NULLIF ( + + 4, + COUNT( * ) ) + + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT + NULLIF ( + + 4, + COUNT ( * ) ) + + + COUNT ( * )
----
5

query I rowsort
SELECT ALL 53 * - 7
----
-371

query I rowsort
SELECT + 59 + 32
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9053
SELECT DISTINCT - + 98 DIV + 37
----
-2

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT - + 98 / + 37
----
-2

query I rowsort
SELECT ALL + + 36 - - 38 + + + 99 - + - 26
----
199

query I rowsort
SELECT - 19 + - - 9 AS col1
----
-10

query I rowsort
SELECT + 89 * - 18 AS col0
----
-1602

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT ALL 58 * - COUNT( * ) + + 15 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL 58 * - COUNT ( * ) + + 15 AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9058
SELECT - 52 * - 85 * 44 + + - 60 + - - 48 * CAST( NULL AS SIGNED ) * - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT - 52 * - 85 * 44 + + - 60 + - - 48 * CAST ( NULL AS INTEGER ) * - 36 AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( - + 22, - ( ( 54 ) ) ) * - 60 + 1
----
1321

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9060
SELECT + - 43 DIV + - 14 - - COUNT( * ) + - COUNT( * ) + + 38 + + 94 * 38
----
3613

skipif mysql # not compatible
query I rowsort label-9060
SELECT + - 43 / + - 14 - - COUNT ( * ) + - COUNT ( * ) + + 38 + + 94 * 38
----
3613

onlyif mysql # DIV for integer division: 
query I rowsort label-9061
SELECT ALL + 7 DIV ( ( 54 ) ) + - 33 * + 47 - + 35 DIV + 93
----
-1551

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL + 7 / ( ( 54 ) ) + - 33 * + 47 - + 35 / + 93
----
-1551

query I rowsort
SELECT DISTINCT + - 94 * - 43 + 44 AS col1
----
4086

query I rowsort
SELECT ALL + 35 * - 56 * - + 98 AS col2
----
192080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9064
SELECT + CASE - + 66 WHEN + SUM( DISTINCT - - 45 ) THEN - - 49 ELSE NULL END - - 18 + MIN( DISTINCT ( CAST( - 28 AS SIGNED ) ) ) * + ( 60 / - 20 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9064
SELECT + CASE - + 66 WHEN + SUM ( DISTINCT - - 45 ) THEN - - 49 ELSE NULL END - - 18 + MIN ( DISTINCT ( CAST ( - 28 AS INTEGER ) ) ) * + ( 60 / - 20 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9065
SELECT - 5, 76 * + - 18 * - + 67 * - 41 * - MAX( + 41 ) DIV + COUNT( * ) col2
----
-5
154073736

skipif mysql # not compatible
query II rowsort label-9065
SELECT - 5, 76 * + - 18 * - + 67 * - 41 * - MAX ( + 41 ) / + COUNT ( * ) col2
----
-5
154073736

query I rowsort
SELECT 8 * 70 * 3 + 76 - + - ( - + 18 ) AS col0
----
1738

query II rowsort
SELECT + 94 AS col2, ( - 72 ) * + + 78
----
94
-5616

onlyif mysql # aggregate syntax: 
query II rowsort label-9068
SELECT + - 98, - SUM( ALL - 86 ) AS col1
----
-98
86

skipif mysql # not compatible
query II rowsort label-9068
SELECT + - 98, - SUM ( ALL - 86 ) AS col1
----
-98
86

query I rowsort
SELECT + 71 * 16 + - - 28
----
1164

query I rowsort
SELECT ALL - 2 * 60 AS col2
----
-120

query I rowsort
SELECT DISTINCT 8 * - + 47 * 95 AS col1
----
-35720

query I rowsort
SELECT ALL 67 + - 87 / 39 * + CASE + ( + 10 ) WHEN + 73 * + 65 THEN + 4 + 89 WHEN 18 THEN NULL END * 17 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 2 + - 34 * 4 AS col2
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT ALL + 32 + + - 16 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL + 32 + + - 16 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT ALL 37 + - + ( - + 23 ) + - - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL 37 + - + ( - + 23 ) + - - COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT CASE + 3 WHEN + 91 THEN - 46 ELSE 72 + + 66 END + COUNT( * ) AS col2
----
139

skipif mysql # not compatible
query I rowsort label-9076
SELECT CASE + 3 WHEN + 91 THEN - 46 ELSE 72 + + 66 END + COUNT ( * ) AS col2
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9077
SELECT 11 DIV CAST( COALESCE ( CAST( NULL AS SIGNED ), + 39 + + COUNT( * ), 34 + + MIN( DISTINCT 78 ) ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9077
SELECT 11 / CAST ( COALESCE ( CAST ( NULL AS INTEGER ), + 39 + + COUNT ( * ), 34 + + MIN ( DISTINCT 78 ) ) AS INTEGER ) AS col1
----
0

query I rowsort
SELECT 81 + + 1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9079
SELECT 17 * + 31 * NULLIF ( 17, 21 + - CASE + ( - CASE ( - CAST( 32 AS SIGNED ) ) WHEN + 52 + + 99 * 66 THEN NULL WHEN 28 THEN 25 ELSE NULL END ) WHEN - NULLIF ( 72, - 47 ) THEN NULL WHEN COUNT( * ) * + 5 THEN - 10 * - 58 ELSE NULL END + - CASE 97 WHEN CAST( NULL AS DECIMAL ) + + 12 * + 21 THEN COUNT( * ) + 86 * 48 WHEN 49 * CAST( - ( COALESCE ( + COUNT( * ), 68 ) ) AS SIGNED ) THEN ( 41 ) ELSE - 54 * - MAX( 63 ) END )
----
8959

skipif mysql # not compatible
query I rowsort label-9079
SELECT 17 * + 31 * NULLIF ( 17, 21 + - CASE + ( - CASE ( - CAST ( 32 AS INTEGER ) ) WHEN + 52 + + 99 * 66 THEN NULL WHEN 28 THEN 25 ELSE NULL END ) WHEN - NULLIF ( 72, - 47 ) THEN NULL WHEN COUNT ( * ) * + 5 THEN - 10 * - 58 ELSE NULL END + - CASE 97 WHEN CAST ( NULL AS REAL ) + + 12 * + 21 THEN COUNT ( * ) + 86 * 48 WHEN 49 * CAST ( - ( COALESCE ( + COUNT ( * ), 68 ) ) AS INTEGER ) THEN ( 41 ) ELSE - 54 * - MAX ( 63 ) END )
----
8959

query I rowsort
SELECT 26 - + + 77
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-9081
SELECT COUNT( * ) + - MAX( DISTINCT - + 14 ) col0, - 85 * - ( - - COUNT( * ) )
----
15
85

skipif mysql # not compatible
query II rowsort label-9081
SELECT COUNT ( * ) + - MAX ( DISTINCT - + 14 ) col0, - 85 * - ( - - COUNT ( * ) )
----
15
85

query I rowsort
SELECT ALL - ( 33 ) + - 57 AS col0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9083
SELECT 10 + - NULLIF ( - COUNT( * ), - - COALESCE ( + - CAST( NULL AS SIGNED ), - ( 18 ) * + 24 ) ) * 21
----
31

skipif mysql # not compatible
query I rowsort label-9083
SELECT 10 + - NULLIF ( - COUNT ( * ), - - COALESCE ( + - CAST ( NULL AS INTEGER ), - ( 18 ) * + 24 ) ) * 21
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT 16 + - COUNT( * ) * 59 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-9084
SELECT 16 + - COUNT ( * ) * 59 AS col0
----
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9085
SELECT DISTINCT CASE - 89 WHEN - 48 + 73 THEN NULL WHEN - + CAST( 70 AS DECIMAL ) * + 31 + + 3 THEN - 22 END - - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT CASE - 89 WHEN - 48 + 73 THEN NULL WHEN - + CAST ( 70 AS REAL ) * + 31 + + 3 THEN - 22 END - - 74 AS col0
----
NULL

query I rowsort
SELECT ALL + 98 - 89
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT 6 * - COUNT( DISTINCT 40 ) * - ( COUNT( * ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9087
SELECT 6 * - COUNT ( DISTINCT 40 ) * - ( COUNT ( * ) ) AS col2
----
6

query I rowsort
SELECT 42 * + ( 61 )
----
2562

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT - MAX( - - 93 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-9089
SELECT - MAX ( - - 93 ) AS col2
----
-93

query I rowsort
SELECT ( + 21 ) * + 51
----
1071

query I rowsort
SELECT CASE + 23 WHEN - 96 THEN NULL ELSE - 74 END AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9092
SELECT + CAST( 10 AS SIGNED ) DIV + SUM( + - 86 ) + - + 91 * + 80 + - + 46 AS col1
----
-7326

skipif mysql # not compatible
query I rowsort label-9092
SELECT + CAST ( 10 AS INTEGER ) / + SUM ( + - 86 ) + - + 91 * + 80 + - + 46 AS col1
----
-7326

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT 53 * + ( COUNT( + 22 ) ) + - 47 * COUNT( * ) * + SUM( ALL - 65 ) * 66 + - 79 * + 41 AS col1
----
198444

skipif mysql # not compatible
query I rowsort label-9093
SELECT 53 * + ( COUNT ( + 22 ) ) + - 47 * COUNT ( * ) * + SUM ( ALL - 65 ) * 66 + - 79 * + 41 AS col1
----
198444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9094
SELECT DISTINCT - 47 DIV - 61 + + COUNT( + - 62 ) - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT - 47 / - 61 + + COUNT ( + - 62 ) - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - ( - 84 ) + - 15 + - 75
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT + - 23 * + - 12 + + ( + COALESCE ( - CAST( + 63 AS SIGNED ), - 44 ) ) col1
----
213

skipif mysql # not compatible
query I rowsort label-9096
SELECT + - 23 * + - 12 + + ( + COALESCE ( - CAST ( + 63 AS INTEGER ), - 44 ) ) col1
----
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9097
SELECT ALL - COALESCE ( + CAST( NULL AS SIGNED ), ( + 95 ) ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL - COALESCE ( + CAST ( NULL AS INTEGER ), ( + 95 ) ) AS col1
----
-95

query I rowsort
SELECT ALL + + 24 + - 95
----
-71

query II rowsort
SELECT DISTINCT + 4 + - - 57, 60 col0
----
61
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT 64 * 73 + - - NULLIF ( 24, + 2 * - - 42 / 14 * MIN( ALL + 65 ) * AVG ( + 56 ) ) * + 25 AS col2
----
5272

skipif mysql # not compatible
query I rowsort label-9100
SELECT 64 * 73 + - - NULLIF ( 24, + 2 * - - 42 / 14 * MIN ( ALL + 65 ) * AVG ( + 56 ) ) * + 25 AS col2
----
5272

query I rowsort
SELECT 72 * 8
----
576

query II rowsort
SELECT DISTINCT - 43 AS col1, 69 - - 55
----
-43
124

query II rowsort
SELECT 48 AS col0, 70
----
48
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT - 82 * CAST( NULL AS SIGNED ) + + 58 - 79 * 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT - 82 * CAST ( NULL AS INTEGER ) + + 58 - 79 * 6 AS col0
----
NULL

query I rowsort
SELECT ALL 90 * 19
----
1710

query II rowsort
SELECT DISTINCT 79, 14 * + - 30 + + 68 col0
----
79
-352

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9107
SELECT DISTINCT 35 AS col1, - 54 * + CAST( NULL AS SIGNED )
----
35
NULL

skipif mysql # not compatible
query II rowsort label-9107
SELECT DISTINCT 35 AS col1, - 54 * + CAST ( NULL AS INTEGER )
----
35
NULL

query I rowsort
SELECT NULLIF ( + 98, + 4 * - ( ( - + 35 ) ) * + 91 * - 84 ) * 94
----
9212

onlyif mysql # aggregate syntax: 
query II rowsort label-9109
SELECT - 96, COUNT( * ) * - COUNT( * ) AS col1
----
-96
-1

skipif mysql # not compatible
query II rowsort label-9109
SELECT - 96, COUNT ( * ) * - COUNT ( * ) AS col1
----
-96
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9110
SELECT CAST( NULL AS SIGNED ) - 3 + - + 68 + - 35 * + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT CAST ( NULL AS INTEGER ) - 3 + - + 68 + - 35 * + 99 AS col1
----
NULL

query I rowsort
SELECT 51 * - 48
----
-2448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9112
SELECT - - CAST( NULL AS SIGNED ) AS col2, - CASE NULLIF ( + - 59, - - 78 ) WHEN - COUNT( * ) + + 45 * 63 * ( 23 ) + + 88 THEN NULL WHEN + 0 THEN + 57 - - 41 ELSE - 40 END * 41 + 53
----
NULL
1693

skipif mysql # not compatible
query II rowsort label-9112
SELECT - - CAST ( NULL AS INTEGER ) AS col2, - CASE NULLIF ( + - 59, - - 78 ) WHEN - COUNT ( * ) + + 45 * 63 * ( 23 ) + + 88 THEN NULL WHEN + 0 THEN + 57 - - 41 ELSE - 40 END * 41 + 53
----
NULL
1693

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT ALL + COUNT( DISTINCT 42 )
----
1

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL + COUNT ( DISTINCT 42 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9114
SELECT ALL COUNT( * ) AS col2, - 9 AS col2
----
1
-9

skipif mysql # not compatible
query II rowsort label-9114
SELECT ALL COUNT ( * ) AS col2, - 9 AS col2
----
1
-9

query I rowsort
SELECT ALL - + 93 * 83
----
-7719

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL NULLIF ( + 55, + AVG ( DISTINCT + 30 ) + + 69 - + 69 * - 24 ) * + 25 * - COUNT( DISTINCT 53 )
----
-1375

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL NULLIF ( + 55, + AVG ( DISTINCT + 30 ) + + 69 - + 69 * - 24 ) * + 25 * - COUNT ( DISTINCT 53 )
----
-1375

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT - MIN( - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-9117
SELECT - MIN ( - 4 )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9118
SELECT - 67 AS col2, - COUNT( * ) * - 34
----
-67
34

skipif mysql # not compatible
query II rowsort label-9118
SELECT - 67 AS col2, - COUNT ( * ) * - 34
----
-67
34

query I rowsort
SELECT ALL + - 64 + + 44 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT - ( + - MIN( DISTINCT + - ( - 56 ) ) )
----
56

skipif mysql # not compatible
query I rowsort label-9120
SELECT - ( + - MIN ( DISTINCT + - ( - 56 ) ) )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9121
SELECT + - 63 + 80 + COUNT( * ) * - - 34 * + + CASE + NULLIF ( + + AVG ( - - 12 ), 22 ) WHEN + 54 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - + 11 THEN 89 WHEN - 33 THEN - COUNT( * ) * 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9121
SELECT + - 63 + 80 + COUNT ( * ) * - - 34 * + + CASE + NULLIF ( + + AVG ( - - 12 ), 22 ) WHEN + 54 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - + 11 THEN 89 WHEN - 33 THEN - COUNT ( * ) * 56 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9122
SELECT - 26 * + 78 + 19, SUM( 30 ) AS col1
----
-2009
30

skipif mysql # not compatible
query II rowsort label-9122
SELECT - 26 * + 78 + 19, SUM ( 30 ) AS col1
----
-2009
30

query II rowsort
SELECT + 90 AS col2, + 7 AS col1
----
90
7

query II rowsort
SELECT ALL + 71 AS col0, - 18
----
71
-18

query II rowsort
SELECT + + 15 col1, 19 * + - 74 AS col2
----
15
-1406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT ALL - CAST( 2 AS SIGNED ) * - + 63 + + + 95 AS col1
----
221

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL - CAST ( 2 AS INTEGER ) * - + 63 + + + 95 AS col1
----
221

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT DISTINCT - 62 * - 77 + - + 27 - + ( + + 29 ) * + + COUNT( * ) + - COUNT( * ) AS col0
----
4717

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT - 62 * - 77 + - + 27 - + ( + + 29 ) * + + COUNT ( * ) + - COUNT ( * ) AS col0
----
4717

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT DISTINCT - NULLIF ( NULLIF ( + COUNT( * ), + 66 ), - 90 * + + 58 - - + 46 ) * - + 38 + 41
----
79

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT - NULLIF ( NULLIF ( + COUNT ( * ), + 66 ), - 90 * + + 58 - - + 46 ) * - + 38 + 41
----
79

query I rowsort
SELECT ALL + 33 * + - 16 + + - ( - 18 )
----
-510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9130
SELECT - 80 + 97 + 10 + - ( + COALESCE ( + 78, - + 14 * - CASE COUNT( * ) WHEN + SUM( DISTINCT + 71 ) THEN 68 * + 98 WHEN NULLIF ( + 36, 69 - + COUNT( * ) * 41 ) THEN MIN( ALL 52 ) END + 50 ) ) DIV + 88
----
27

skipif mysql # not compatible
query I rowsort label-9130
SELECT - 80 + 97 + 10 + - ( + COALESCE ( + 78, - + 14 * - CASE COUNT ( * ) WHEN + SUM ( DISTINCT + 71 ) THEN 68 * + 98 WHEN NULLIF ( + 36, 69 - + COUNT ( * ) * 41 ) THEN MIN ( ALL 52 ) END + 50 ) ) / + 88
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-9131
SELECT + 91 * - + 24 * - + 88 - - 37 * - 47 AS col1, + 31 DIV - + 99 * + 39 * - + 71 AS col0
----
190453
0

skipif mysql # not compatible
query II rowsort label-9131
SELECT + 91 * - + 24 * - + 88 - - 37 * - 47 AS col1, + 31 / - + 99 * + 39 * - + 71 AS col0
----
190453
0

query I rowsort
SELECT DISTINCT + 87 * - 57 col1
----
-4959

onlyif mysql # aggregate syntax: 
query II rowsort label-9133
SELECT 96 * - + 80 * COUNT( * ) - + - 38 AS col2, COUNT( * )
----
-7642
1

skipif mysql # not compatible
query II rowsort label-9133
SELECT 96 * - + 80 * COUNT ( * ) - + - 38 AS col2, COUNT ( * )
----
-7642
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT COALESCE ( ( + NULLIF ( - 63, 37 + + 71 ) ), + 2 * - COUNT( * ) ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-9134
SELECT COALESCE ( ( + NULLIF ( - 63, 37 + + 71 ) ), + 2 * - COUNT ( * ) ) AS col0
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-9135
SELECT + 2 DIV - + 97 AS col0, 65
----
0
65

skipif mysql # not compatible
query II rowsort label-9135
SELECT + 2 / - + 97 AS col0, 65
----
0
65

query I rowsort
SELECT ALL - 19 * 84 + - 73 AS col0
----
-1669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9137
SELECT DISTINCT + 88 * - CASE + 54 WHEN - 55 + + + COUNT( * ) THEN CASE + COUNT( * ) WHEN + + 34 THEN NULL WHEN - 47 * MIN( DISTINCT 61 ) + - 2 THEN ( ( ( COUNT( * ) ) ) ) / 62 + 43 * 14 ELSE + 25 * - 26 END + CAST( NULL AS SIGNED ) * 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT + 88 * - CASE + 54 WHEN - 55 + + + COUNT ( * ) THEN CASE + COUNT ( * ) WHEN + + 34 THEN NULL WHEN - 47 * MIN ( DISTINCT 61 ) + - 2 THEN ( ( ( COUNT ( * ) ) ) ) / 62 + 43 * 14 ELSE + 25 * - 26 END + CAST ( NULL AS INTEGER ) * 91 END
----
NULL

query I rowsort
SELECT - 90 * - - 66 * - 43 AS col2
----
255420

query I rowsort
SELECT ALL + ( + + 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT DISTINCT 96 * MAX( - 24 ) - 36 * 62 AS col2
----
-4536

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT 96 * MAX ( - 24 ) - 36 * 62 AS col2
----
-4536

query I rowsort
SELECT ALL + ( + + 57 )
----
57

query I rowsort
SELECT 34 * + 13 - + - 72 AS col0
----
514

query I rowsort
SELECT ALL - ( + 87 ) * - ( 37 ) + - CASE ( - ( 4 ) ) WHEN + 73 THEN 23 ELSE + 36 END + + 50 - 9 AS col1
----
3224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9144
SELECT ALL + CAST( + ( - + 15 ) AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL + CAST ( + ( - + 15 ) AS INTEGER )
----
-15

query I rowsort
SELECT DISTINCT ( NULLIF ( ( + CASE + + 89 WHEN + - 74 THEN NULL WHEN 36 THEN 76 END ), + 91 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9146
SELECT COUNT( CAST( + 74 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9146
SELECT COUNT ( CAST ( + 74 AS INTEGER ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT + 82 + - 21 - - 82 * COUNT( * )
----
143

skipif mysql # not compatible
query I rowsort label-9147
SELECT + 82 + - 21 - - 82 * COUNT ( * )
----
143

query I rowsort
SELECT + ( + - 93 ) - + - 57
----
-36

query I rowsort
SELECT + 58 + - 81 + + ( + 73 ) AS col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9150
SELECT + COUNT( * ) DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-9150
SELECT + COUNT ( * ) / 55
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9151
SELECT + - MIN( + - CAST( NULL AS SIGNED ) ) + CASE - 91 WHEN COUNT( ALL + 27 ) * + - ( - 95 ) THEN - 30 WHEN + 1 - - 43 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT + - MIN ( + - CAST ( NULL AS INTEGER ) ) + CASE - 91 WHEN COUNT ( ALL + 27 ) * + - ( - 95 ) THEN - 30 WHEN + 1 - - 43 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 9 * + 23
----
207

query I rowsort
SELECT ALL + 98 + ( + 12 ) col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT + + 92 * + COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-9154
SELECT + + 92 * + COUNT ( * ) AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9155
SELECT ALL + CAST( + 73 AS SIGNED ) + - 6 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL + CAST ( + 73 AS INTEGER ) + - 6 AS col0
----
67

query I rowsort
SELECT + 40 * 38 + - + 16
----
1504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9157
SELECT DISTINCT + - 50 DIV - + 30 + - ( - - 65 ) + - MIN( DISTINCT 62 ) + + 93 + - 76 + - 18 * MAX( ALL - ( + 14 ) - - 18 * 10 ) * 80
----
-239149

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT + - 50 / - + 30 + - ( - - 65 ) + - MIN ( DISTINCT 62 ) + + 93 + - 76 + - 18 * MAX ( ALL - ( + 14 ) - - 18 * 10 ) * 80
----
-239149

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT ALL - 57 DIV + + 80 + - - COALESCE ( + + 7, - - 86 ) + 64 DIV - - 2 + + 30 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL - 57 / + + 80 + - - COALESCE ( + + 7, - - 86 ) + 64 / - - 2 + + 30 AS col2
----
69

query I rowsort
SELECT - ( + + ( + 9 ) ) AS col1
----
-9

query I rowsort
SELECT ALL + 1 * - 37 * 66 * 7 AS col0
----
-17094

query I rowsort
SELECT ( + 65 ) * + + 74 - + - 77 col0
----
4887

onlyif mysql # aggregate syntax: 
query II rowsort label-9162
SELECT - 2 - - MAX( + 14 ), - NULLIF ( - 23, + COUNT( * ) * - COUNT( * ) ) AS col2
----
12
23

skipif mysql # not compatible
query II rowsort label-9162
SELECT - 2 - - MAX ( + 14 ), - NULLIF ( - 23, + COUNT ( * ) * - COUNT ( * ) ) AS col2
----
12
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9163
SELECT DISTINCT - 75 DIV + 94 - - - ( + 16 ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT - 75 / + 94 - - - ( + 16 ) col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9164
SELECT ALL + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 78 * 43
----
3354

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT ( + COALESCE ( COUNT( * ), + - COALESCE ( + - COUNT( * ), - SUM( DISTINCT - 95 ) + - SUM( DISTINCT + 0 ) ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9166
SELECT ( + COALESCE ( COUNT ( * ), + - COALESCE ( + - COUNT ( * ), - SUM ( DISTINCT - 95 ) + - SUM ( DISTINCT + 0 ) ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT ALL + MAX( DISTINCT - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL + MAX ( DISTINCT - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT - 42 + - MAX( ALL + 82 ) + 2 + - 85 * AVG ( DISTINCT 75 ) / COUNT( * ) * - CASE - - 33 WHEN + 9 - - MAX( ALL - 76 ) THEN 51 + - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT - 42 + - MAX ( ALL + 82 ) + 2 + - 85 * AVG ( DISTINCT 75 ) / COUNT ( * ) * - CASE - - 33 WHEN + 9 - - MAX ( ALL - 76 ) THEN 51 + - 75 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9169
SELECT DISTINCT + NULLIF ( - 7, + 96 ) * 18 DIV - ( + 83 ) AS col0, - 48 * + + 65
----
1
-3120

skipif mysql # not compatible
query II rowsort label-9169
SELECT DISTINCT + NULLIF ( - 7, + 96 ) * 18 / - ( + 83 ) AS col0, - 48 * + + 65
----
1
-3120

query I rowsort
SELECT ( + 58 ) col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9171
SELECT 38 * + + NULLIF ( + 63, 57 ) DIV NULLIF ( COUNT( * ), - 44 * + 83 + 27 + 61 * + COUNT( * ) ) + COUNT( * )
----
2395

skipif mysql # not compatible
query I rowsort label-9171
SELECT 38 * + + NULLIF ( + 63, 57 ) / NULLIF ( COUNT ( * ), - 44 * + 83 + 27 + 61 * + COUNT ( * ) ) + COUNT ( * )
----
2395

onlyif mysql # DIV for integer division: 
query I rowsort label-9172
SELECT - 89 DIV 37
----
-2

skipif mysql # not compatible
query I rowsort label-9172
SELECT - 89 / 37
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT - SUM( ALL + 32 ) * - 26 * - COALESCE ( - + 85, + 82, - 9 ) * + 44 + - COUNT( * ) * - - 69
----
3111611

skipif mysql # not compatible
query I rowsort label-9173
SELECT - SUM ( ALL + 32 ) * - 26 * - COALESCE ( - + 85, + 82, - 9 ) * + 44 + - COUNT ( * ) * - - 69
----
3111611

query I rowsort
SELECT ALL + 39 * - 4 col0
----
-156

query II rowsort
SELECT COALESCE ( 51, + 71 * - 2 + - 62 ), + 51
----
51
51

query I rowsort
SELECT + 88 + + 4 AS col2
----
92

query I rowsort
SELECT - 0 * ( + 53 ) AS col2
----
0

query I rowsort
SELECT DISTINCT ( + - 68 ) col2
----
-68

query II rowsort
SELECT DISTINCT - 85 * 7 * + 87 AS col0, + 71 * 4 + + 10
----
-51765
294

query I rowsort
SELECT 45 * + 8
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT ALL 47 + ( + MAX( 64 ) )
----
111

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL 47 + ( + MAX ( 64 ) )
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9182
SELECT ALL 72 col0, 89 * CAST( 47 AS SIGNED ) * - MIN( 82 ) col1
----
72
-343006

skipif mysql # not compatible
query II rowsort label-9182
SELECT ALL 72 col0, 89 * CAST ( 47 AS INTEGER ) * - MIN ( 82 ) col1
----
72
-343006

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT - MIN( + - 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9183
SELECT - MIN ( + - 14 ) AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9184
SELECT + NULLIF ( SUM( DISTINCT + 5 ), + 39 + - + 41 ) * 46 + + 20 * + 57 DIV COUNT( * ) + + - 43
----
1327

skipif mysql # not compatible
query I rowsort label-9184
SELECT + NULLIF ( SUM ( DISTINCT + 5 ), + 39 + - + 41 ) * 46 + + 20 * + 57 / COUNT ( * ) + + - 43
----
1327

query I rowsort
SELECT ALL + - 10 + 84 * - 26 + 78
----
-2116

onlyif mysql # DIV for integer division: 
query I rowsort label-9186
SELECT 83 - + 63 DIV + NULLIF ( 32, + 93 * 44 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-9186
SELECT 83 - + 63 / + NULLIF ( 32, + 93 * 44 ) AS col0
----
82

query I rowsort
SELECT ALL 16 + + + 13 AS col0
----
29

query I rowsort
SELECT 29 - - 14 AS col1
----
43

query I rowsort
SELECT ALL + 36 * 29 AS col2
----
1044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9190
SELECT ALL + COUNT( * ) + 87 DIV + 20 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL + COUNT ( * ) + 87 / + 20 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT ALL - CASE NULLIF ( + 44, - - CASE ( - COUNT( * ) ) WHEN COALESCE ( + - 76, + 47 + + + ( 24 ) ) + - 27 THEN + COUNT( * ) + + 52 * + 37 WHEN - COUNT( * ) THEN NULL END ) WHEN 70 / ( 4 * 23 ) THEN NULL WHEN 95 THEN + 10 / COUNT( * ) + + 15 END + 44 * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL - CASE NULLIF ( + 44, - - CASE ( - COUNT ( * ) ) WHEN COALESCE ( + - 76, + 47 + + + ( 24 ) ) + - 27 THEN + COUNT ( * ) + + 52 * + 37 WHEN - COUNT ( * ) THEN NULL END ) WHEN 70 / ( 4 * 23 ) THEN NULL WHEN 95 THEN + 10 / COUNT ( * ) + + 15 END + 44 * 38
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT DISTINCT + ( - + 96 ) DIV + 25 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9192
SELECT DISTINCT + ( - + 96 ) / + 25 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL + MAX( ALL - ( - 90 ) ) + - + 23
----
67

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL + MAX ( ALL - ( - 90 ) ) + - + 23
----
67

query I rowsort
SELECT 98 - 12
----
86

query I rowsort
SELECT ALL + 75 * - ( + 41 ) * - 39 * + + 49 * - - NULLIF ( 68, 5 ) col2
----
399590100

onlyif mysql # aggregate syntax: 
query II rowsort label-9196
SELECT 29 + 52 + + 85, ( + + SUM( ALL 51 ) ) col2
----
166
51

skipif mysql # not compatible
query II rowsort label-9196
SELECT 29 + 52 + + 85, ( + + SUM ( ALL 51 ) ) col2
----
166
51

query I rowsort
SELECT + 49 - - 79 AS col0
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9198
SELECT - 75, MIN( ALL + 89 ) DIV + - 52 AS col0
----
-75
-1

skipif mysql # not compatible
query II rowsort label-9198
SELECT - 75, MIN ( ALL + 89 ) / + - 52 AS col0
----
-75
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9199
SELECT 90 DIV - 73 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9199
SELECT 90 / - 73 AS col2
----
-1

query I rowsort
SELECT ALL 32 - - + 29
----
61

query I rowsort
SELECT 77 * 78
----
6006

query I rowsort
SELECT 21 * - 47
----
-987

query I rowsort
SELECT ALL COALESCE ( + 41, 56 ) - + 76 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT - 15 + + COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-9204
SELECT - 15 + + COUNT ( * ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-9205
SELECT ALL - COALESCE ( 46, + 71 ), 69 - + 97 + + 1 + + COALESCE ( 33, ( + COUNT( * ) ) ) * 63 AS col0
----
-46
2052

skipif mysql # not compatible
query II rowsort label-9205
SELECT ALL - COALESCE ( 46, + 71 ), 69 - + 97 + + 1 + + COALESCE ( 33, ( + COUNT ( * ) ) ) * 63 AS col0
----
-46
2052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9206
SELECT - 70 DIV + 89 + - 54 DIV CAST( - AVG ( 47 ) AS SIGNED ) * - COUNT( * ) - + ( + 78 ) * - 82 * 93 * 80
----
47586239

skipif mysql # not compatible
query I rowsort label-9206
SELECT - 70 / + 89 + - 54 / CAST ( - AVG ( 47 ) AS INTEGER ) * - COUNT ( * ) - + ( + 78 ) * - 82 * 93 * 80
----
47586239

query I rowsort
SELECT 1 * - - 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT ALL 84 / CASE - - 15 WHEN 17 * - 85 * 31 * + - ( 52 ) + - 10 THEN + COUNT( * ) + 35 * - 29 ELSE NULL END / 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL 84 / CASE - - 15 WHEN 17 * - 85 * 31 * + - ( 52 ) + - 10 THEN + COUNT ( * ) + 35 * - 29 ELSE NULL END / 86
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9209
SELECT NULLIF ( - + 90, + - 56 ) * - 63 AS col2, + 72 + - 33 DIV NULLIF ( - - 58, 81 ) + + 48 * 31 AS col0
----
5670
1560

skipif mysql # not compatible
query II rowsort label-9209
SELECT NULLIF ( - + 90, + - 56 ) * - 63 AS col2, + 72 + - 33 / NULLIF ( - - 58, 81 ) + + 48 * 31 AS col0
----
5670
1560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9210
SELECT DISTINCT COUNT( - + 4 ) - - + ( ( + 4 ) ) - + 29 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT COUNT ( - + 4 ) - - + ( ( + 4 ) ) - + 29 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9211
SELECT + 18, MIN( - 62 ) AS col2
----
18
-62

skipif mysql # not compatible
query II rowsort label-9211
SELECT + 18, MIN ( - 62 ) AS col2
----
18
-62

query I rowsort
SELECT NULLIF ( NULLIF ( 68, AVG ( - 78 ) ), + 71 * - 6 + - COALESCE ( - 44, 97 / - 73 * + 74 ) + 38 ) * - 94
----
-6392

query I rowsort
SELECT - 44 * + 1 - + - 97
----
53

query I rowsort
SELECT 70 * - 24 - + 84 col1
----
-1764

query II rowsort
SELECT ALL + ( + 18 ) * - ( 24 ) AS col0, 68
----
-432
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9216
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) * + COUNT( * ) / + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9216
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + COUNT ( * ) / + 35
----
NULL

query II rowsort
SELECT + 84 col2, 61 col1
----
84
61

query II rowsort
SELECT ALL - 0 AS col0, - 9 AS col2
----
0
-9

query I rowsort
SELECT DISTINCT + 25 + - 92 AS col0
----
-67

query II rowsort
SELECT DISTINCT - 77 AS col1, + 21 + - + 70 AS col2
----
-77
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-9221
SELECT ALL + 8 + + 38 DIV - 96 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL + 8 + + 38 / - 96 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9222
SELECT DISTINCT + ( - 30 ) + - 88 + + + ( 30 ) - + + 43 AS col1, COUNT( * )
----
-131
1

skipif mysql # not compatible
query II rowsort label-9222
SELECT DISTINCT + ( - 30 ) + - 88 + + + ( 30 ) - + + 43 AS col1, COUNT ( * )
----
-131
1

query II rowsort
SELECT 37 AS col0, - ( + 98 )
----
37
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9224
SELECT - 47 DIV 38 + - - 48 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9224
SELECT - 47 / 38 + - - 48 AS col2
----
47

query I rowsort
SELECT - 56 + + + 98
----
42

query I rowsort
SELECT - 31 * + - 47 col2
----
1457

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT + + SUM( DISTINCT + 0 ) * 47 + - + NULLIF ( - - 14, 42 ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-9227
SELECT + + SUM ( DISTINCT + 0 ) * 47 + - + NULLIF ( - - 14, 42 ) col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT + COUNT( * ) - NULLIF ( 27, + 95 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-9228
SELECT + COUNT ( * ) - NULLIF ( 27, + 95 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-9229
SELECT ALL - 81 * - + 26 AS col2, MIN( 68 )
----
2106
68

skipif mysql # not compatible
query II rowsort label-9229
SELECT ALL - 81 * - + 26 AS col2, MIN ( 68 )
----
2106
68

query I rowsort
SELECT 87 - - 67 * - + 44
----
-2861

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT + ( + + 3 ) + + COUNT( * ) + - 53
----
-49

skipif mysql # not compatible
query I rowsort label-9231
SELECT + ( + + 3 ) + + COUNT ( * ) + - 53
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL + - ( + + ( NULLIF ( + 14, - - 63 + ( + NULLIF ( + + 52, - + 62 / - COUNT( * ) ) ) ) ) ) + - + SUM( ALL + ( - 38 ) ) * + 65
----
2456

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL + - ( + + ( NULLIF ( + 14, - - 63 + ( + NULLIF ( + + 52, - + 62 / - COUNT ( * ) ) ) ) ) ) + - + SUM ( ALL + ( - 38 ) ) * + 65
----
2456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9233
SELECT + CAST( NULL AS SIGNED ) col1, + ( - 92 )
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-9233
SELECT + CAST ( NULL AS INTEGER ) col1, + ( - 92 )
----
NULL
-92

query I rowsort
SELECT ALL - 15 + 71 * - 94
----
-6689

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT - MIN( ALL 52 ) - - 88
----
36

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT - MIN ( ALL 52 ) - - 88
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT - COUNT( * ) + + 97
----
96

skipif mysql # not compatible
query I rowsort label-9236
SELECT - COUNT ( * ) + + 97
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9237
SELECT - 81, SUM( + - 57 ) AS col0
----
-81
-57

skipif mysql # not compatible
query II rowsort label-9237
SELECT - 81, SUM ( + - 57 ) AS col0
----
-81
-57

query II rowsort
SELECT 54 col1, - ( + + 21 ) * - - 8 + + 83 AS col0
----
54
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT 92 * NULLIF ( - MAX( DISTINCT - ( 20 ) ), - - 28 * 31 / + + 31 * ( 67 ) ) AS col2
----
1840

skipif mysql # not compatible
query I rowsort label-9239
SELECT 92 * NULLIF ( - MAX ( DISTINCT - ( 20 ) ), - - 28 * 31 / + + 31 * ( 67 ) ) AS col2
----
1840

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT ALL + MAX( DISTINCT 64 )
----
64

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL + MAX ( DISTINCT 64 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9241
SELECT ALL - + CAST( NULL AS SIGNED ) - + 27 * + 48 * - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL - + CAST ( NULL AS INTEGER ) - + 27 * + 48 * - 36
----
NULL

query II rowsort
SELECT - + 69, + 5 AS col2
----
-69
5

query I rowsort
SELECT ALL 43 - - + 28 * + + 44 col1
----
1275

query I rowsort
SELECT 10 * 62
----
620

onlyif mysql # DIV for integer division: 
query I rowsort label-9245
SELECT ALL - 74 DIV - 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL - 74 / - 39 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT DISTINCT - CASE ( 84 ) WHEN + - 47 THEN 34 + + + CAST( NULL AS SIGNED ) * 61 - + 96 + - + 57 WHEN - - 46 THEN NULL END * + - 82 + + ( + 48 ) * 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT - CASE ( 84 ) WHEN + - 47 THEN 34 + + + CAST ( NULL AS INTEGER ) * 61 - + 96 + - + 57 WHEN - - 46 THEN NULL END * + - 82 + + ( + 48 ) * 53 AS col2
----
NULL

query II rowsort
SELECT ALL - ( - 67 ) AS col2, 48 + + 39 + + NULLIF ( - 0, - 63 / + 89 * - 30 + + 2 + - 13 + - 31 + + 83 )
----
67
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9248
SELECT 0 DIV 80 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-9248
SELECT 0 / 80 / 45
----
0

query I rowsort
SELECT 36 * COALESCE ( + 88, + + 32 ) * + + 47
----
148896

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT ALL 25 * 99 * - 72 * - 80 * 1 * COUNT( * ) AS col0
----
14256000

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL 25 * 99 * - 72 * - 80 * 1 * COUNT ( * ) AS col0
----
14256000

query I rowsort
SELECT 7 + - - 4
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT COUNT( * ) + + + 57 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9252
SELECT COUNT ( * ) + + + 57 AS col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9253
SELECT + 90 / - 59 / + CASE 48 WHEN - 62 THEN NULL ELSE 79 END * - CAST( NULL AS SIGNED ) - - 97 - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT + 90 / - 59 / + CASE 48 WHEN - 62 THEN NULL ELSE 79 END * - CAST ( NULL AS INTEGER ) - - 97 - 18
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9254
SELECT MAX( DISTINCT - 31 ) AS col0, + 60
----
-31
60

skipif mysql # not compatible
query II rowsort label-9254
SELECT MAX ( DISTINCT - 31 ) AS col0, + 60
----
-31
60

query I rowsort
SELECT 61 + - - 19 * + + 69
----
1372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9256
SELECT + AVG ( DISTINCT + - 31 ) * - - CAST( NULL AS SIGNED ) + - 40 * 7 * - + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9256
SELECT + AVG ( DISTINCT + - 31 ) * - - CAST ( NULL AS INTEGER ) + - 40 * 7 * - + 21 AS col1
----
NULL

query I rowsort
SELECT ALL 14 * + 63 + + - 41 AS col1
----
841

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9258
SELECT - 27 * - CAST( + - ( 82 ) AS SIGNED ) + - 38
----
-2252

skipif mysql # not compatible
query I rowsort label-9258
SELECT - 27 * - CAST ( + - ( 82 ) AS INTEGER ) + - 38
----
-2252

query I rowsort
SELECT + 53 + - 16 col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL - 18 * CASE + 30 WHEN - - 41 THEN + - 23 * - 42 WHEN - + 52 + 8 + + 77 THEN NULL END + - COUNT( * ) / + + COUNT( * ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL - 18 * CASE + 30 WHEN - - 41 THEN + - 23 * - 42 WHEN - + 52 + 8 + + 77 THEN NULL END + - COUNT ( * ) / + + COUNT ( * ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT MIN( 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9261
SELECT MIN ( 71 ) AS col0
----
71

query I rowsort
SELECT 13 * 7 + 42
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT ALL 57 * + COALESCE ( + MIN( ALL 56 ), + 70 ) + - - COUNT( * ) + + ( 38 )
----
3231

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL 57 * + COALESCE ( + MIN ( ALL 56 ), + 70 ) + - - COUNT ( * ) + + ( 38 )
----
3231

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT MIN( 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9264
SELECT MIN ( 54 ) AS col2
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9265
SELECT 74 * NULLIF ( + 91, 31 + - 37 + 79 - + - NULLIF ( - + 44, - + 80 * + 67 + - COUNT( - 24 ) ) * + ( - COUNT( * ) ) ) DIV MAX( DISTINCT 75 * 74 ) + 57 + - 27 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9265
SELECT 74 * NULLIF ( + 91, 31 + - 37 + 79 - + - NULLIF ( - + 44, - + 80 * + 67 + - COUNT ( - 24 ) ) * + ( - COUNT ( * ) ) ) / MAX ( DISTINCT 75 * 74 ) + 57 + - 27 AS col2
----
31

query I rowsort
SELECT ALL 94 * - + 55
----
-5170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9267
SELECT ALL + CASE + CAST( 64 AS SIGNED ) WHEN + - 20 + - 14 * - + 36 * + + 55 / - COUNT( * ) THEN - 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL + CASE + CAST ( 64 AS INTEGER ) WHEN + - 20 + - 14 * - + 36 * + + 55 / - COUNT ( * ) THEN - 55 END
----
NULL

query I rowsort
SELECT - + 99 + - - 15 AS col2
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9269
SELECT DISTINCT - COUNT( * ) * - 37 DIV + + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT - COUNT ( * ) * - 37 / + + 85 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9270
SELECT + COALESCE ( - - NULLIF ( + 9, + - CASE + 30 WHEN - MAX( ALL + 59 ) + COUNT( * ) THEN NULL WHEN - + 15 THEN - 57 ELSE NULL END ), 27 * + 98 + CASE 53 WHEN 73 THEN ( - 41 ) WHEN + 80 THEN - 66 - - 59 END, - 1 DIV - CAST( - ( 14 ) AS SIGNED ) ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9270
SELECT + COALESCE ( - - NULLIF ( + 9, + - CASE + 30 WHEN - MAX ( ALL + 59 ) + COUNT ( * ) THEN NULL WHEN - + 15 THEN - 57 ELSE NULL END ), 27 * + 98 + CASE 53 WHEN 73 THEN ( - 41 ) WHEN + 80 THEN - 66 - - 59 END, - 1 / - CAST ( - ( 14 ) AS INTEGER ) ) AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9271
SELECT ALL - - 42 + + ( 88 ) + MAX( ALL + - 67 ) * - COUNT( * ) DIV - 71 + 59 - - - COUNT( * ) AS col2
----
188

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL - - 42 + + ( 88 ) + MAX ( ALL + - 67 ) * - COUNT ( * ) / - 71 + 59 - - - COUNT ( * ) AS col2
----
188

query I rowsort
SELECT ALL 60 * + 9 col0
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT DISTINCT - 86 - + 75 * 3 * SUM( 11 )
----
-2561

skipif mysql # not compatible
query I rowsort label-9273
SELECT DISTINCT - 86 - + 75 * 3 * SUM ( 11 )
----
-2561

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT ALL + 58 - - COUNT( * ) + 34 * + 11 + COALESCE ( 58, - COUNT( * ) * 41 + + COUNT( * ), 4, + 80 )
----
491

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL + 58 - - COUNT ( * ) + 34 * + 11 + COALESCE ( 58, - COUNT ( * ) * 41 + + COUNT ( * ), 4, + 80 )
----
491

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT + + MIN( + 63 ) * COUNT( DISTINCT 77 ) * - 5 * - + 18 col2
----
5670

skipif mysql # not compatible
query I rowsort label-9275
SELECT + + MIN ( + 63 ) * COUNT ( DISTINCT 77 ) * - 5 * - + 18 col2
----
5670

query I rowsort
SELECT - + 47 * 5 * + 89
----
-20915

query II rowsort
SELECT + - 78 - - - 96 col2, + 8 + + 15 AS col0
----
-174
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9278
SELECT + + COALESCE ( + + 14, + - COUNT( * ) ) - - COUNT( ALL CAST( NULL AS SIGNED ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-9278
SELECT + + COALESCE ( + + 14, + - COUNT ( * ) ) - - COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
14

query I rowsort
SELECT - 93 * - + 12
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT ALL - CASE - 94 WHEN - - ( + 26 ) THEN COALESCE ( + 71, - - 48 * - - 41 + + 7 - 71 * + - 34 * + 66 + - 49 ) * - ( - 42 * + COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL - CASE - 94 WHEN - - ( + 26 ) THEN COALESCE ( + 71, - - 48 * - - 41 + + 7 - 71 * + - 34 * + 66 + - 49 ) * - ( - 42 * + COUNT ( * ) ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9281
SELECT - 20 DIV + 77 AS col2, - ( - - CAST( - 95 AS SIGNED ) )
----
0
95

skipif mysql # not compatible
query II rowsort label-9281
SELECT - 20 / + 77 AS col2, - ( - - CAST ( - 95 AS INTEGER ) )
----
0
95

query II rowsort
SELECT ALL - 32 * + - 90, - NULLIF ( - 50, + - 3 ) AS col2
----
2880
50

query I rowsort
SELECT - 26 - - 52 AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9284
SELECT DISTINCT - COUNT( + 80 ) * - 49 * - 56 - - 60 + - COUNT( * ) - ( + + 91 ) + COUNT( * ) DIV 91 * - CAST( - - SUM( DISTINCT - 43 ) AS SIGNED ) AS col0
----
-2776

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT - COUNT ( + 80 ) * - 49 * - 56 - - 60 + - COUNT ( * ) - ( + + 91 ) + COUNT ( * ) / 91 * - CAST ( - - SUM ( DISTINCT - 43 ) AS INTEGER ) AS col0
----
-2776

query I rowsort
SELECT ALL CASE + 60 WHEN - - 87 + + 90 THEN + + 61 WHEN 30 THEN NULL WHEN + - 83 - + - 37 THEN + 71 + + - 91 * - - 0 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9286
SELECT 40 AS col1, MAX( - 49 ) + - 70 AS col2
----
40
-119

skipif mysql # not compatible
query II rowsort label-9286
SELECT 40 AS col1, MAX ( - 49 ) + - 70 AS col2
----
40
-119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9287
SELECT ALL ( + CAST( + 42 AS SIGNED ) ) AS col1, - ( - CAST( NULL AS SIGNED ) ) * + 79 AS col1
----
42
NULL

skipif mysql # not compatible
query II rowsort label-9287
SELECT ALL ( + CAST ( + 42 AS INTEGER ) ) AS col1, - ( - CAST ( NULL AS INTEGER ) ) * + 79 AS col1
----
42
NULL

query I rowsort
SELECT - 7 * + 64
----
-448

query II rowsort
SELECT - 66 + - 79 * 10 * - 81, - 57 AS col1
----
63924
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9290
SELECT DISTINCT - 84 DIV + COUNT( * ) + - 93
----
-177

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT - 84 / + COUNT ( * ) + - 93
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT ALL 42 DIV - 61 * 62 * - 20 + 75 + - ( 89 )
----
-14

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL 42 / - 61 * 62 * - 20 + 75 + - ( 89 )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9292
SELECT ALL - MAX( - 90 ) DIV - + 76 + + 22 * MIN( DISTINCT + 82 ) * - 23 * + - 15 * + COUNT( * ) AS col0
----
622379

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL - MAX ( - 90 ) / - + 76 + + 22 * MIN ( DISTINCT + 82 ) * - 23 * + - 15 * + COUNT ( * ) AS col0
----
622379

onlyif mysql # DIV for integer division: 
query I rowsort label-9293
SELECT DISTINCT - 7 DIV - ( - - 72 ) + + 16
----
16

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT - 7 / - ( - - 72 ) + + 16
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9294
SELECT ALL + 25, CASE - + SUM( ALL + 0 ) WHEN - 76 THEN NULL ELSE - 96 END * - - 70 - - - 73 AS col2
----
25
-6793

skipif mysql # not compatible
query II rowsort label-9294
SELECT ALL + 25, CASE - + SUM ( ALL + 0 ) WHEN - 76 THEN NULL ELSE - 96 END * - - 70 - - - 73 AS col2
----
25
-6793

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9295
SELECT + 30 * - MAX( 52 ) * - CAST( CASE + - ( - 72 ) WHEN + ( - - 3 ) * - 84 THEN + 60 - + 18 * - 7 ELSE NULL END AS SIGNED ) / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT + 30 * - MAX ( 52 ) * - CAST ( CASE + - ( - 72 ) WHEN + ( - - 3 ) * - 84 THEN + 60 - + 18 * - 7 ELSE NULL END AS INTEGER ) / - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9296
SELECT ALL + CAST( + 16 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL + CAST ( + 16 AS INTEGER ) AS col0
----
16

query I rowsort
SELECT ( - - 24 ) col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-9298
SELECT - 97 * 18 DIV + NULLIF ( 52, + 5 ) - - ( + 18 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-9298
SELECT - 97 * 18 / + NULLIF ( 52, + 5 ) - - ( + 18 ) AS col1
----
-15

query I rowsort
SELECT - 76 * + 22 AS col0
----
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT + MAX( - 48 ) + 51
----
3

skipif mysql # not compatible
query I rowsort label-9300
SELECT + MAX ( - 48 ) + 51
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9301
SELECT ALL + COUNT( * ) * + 4 - SUM( DISTINCT - + ( 0 ) ) + + + 58, - 67 * + 27 + + 39 * + 10 AS col0
----
62
-1419

skipif mysql # not compatible
query II rowsort label-9301
SELECT ALL + COUNT ( * ) * + 4 - SUM ( DISTINCT - + ( 0 ) ) + + + 58, - 67 * + 27 + + 39 * + 10 AS col0
----
62
-1419

query I rowsort
SELECT ALL + 49 * - 93 + + 22 * 19
----
-4139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9303
SELECT ALL 3 * 99 / - 6 * + CAST( NULL AS SIGNED ) - AVG ( ALL + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL 3 * 99 / - 6 * + CAST ( NULL AS INTEGER ) - AVG ( ALL + 60 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT DISTINCT - 32 * + + ( - 50 ) + - COUNT( * )
----
1599

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT - 32 * + + ( - 50 ) + - COUNT ( * )
----
1599

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT + - 93 + - + 72 - - COUNT( * ) AS col2
----
-164

skipif mysql # not compatible
query I rowsort label-9305
SELECT + - 93 + - + 72 - - COUNT ( * ) AS col2
----
-164

query I rowsort
SELECT ALL + 12 * - 26 - - - 59 + - - 66 AS col0
----
-305

query II rowsort
SELECT + 54 AS col2, - 90 * 11 + 18
----
54
-972

query I rowsort
SELECT + + 18 + - + 29 + - - 17
----
6

query I rowsort
SELECT + 24 * - 24 AS col0
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL 94 * + COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL 94 * + COUNT ( * ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT ALL - COUNT( + 98 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL - COUNT ( + 98 ) AS col2
----
-1

query I rowsort
SELECT + 27 * - 9 + 65 + + 15 * + 33 AS col1
----
317

query I rowsort
SELECT + ( - - 53 ) + + 37 AS col2
----
90

query I rowsort
SELECT ALL 51 * - NULLIF ( + 18, 90 ) * - 26 + - 10 AS col1
----
23858

onlyif mysql # aggregate syntax: 
query II rowsort label-9315
SELECT DISTINCT 21, 95 * - + COUNT( * ) col0
----
21
-95

skipif mysql # not compatible
query II rowsort label-9315
SELECT DISTINCT 21, 95 * - + COUNT ( * ) col0
----
21
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT ALL - COUNT( * ) * + 13
----
-13

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL - COUNT ( * ) * + 13
----
-13

query I rowsort
SELECT + - 91 + 95 - 62 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT - + 75 * - COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-9318
SELECT - + 75 * - COUNT ( * ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9319
SELECT DISTINCT SUM( - + 61 ) AS col0, 27 * 35 + + 36
----
-61
981

skipif mysql # not compatible
query II rowsort label-9319
SELECT DISTINCT SUM ( - + 61 ) AS col0, 27 * 35 + + 36
----
-61
981

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT DISTINCT SUM( ALL - + 18 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT SUM ( ALL - + 18 ) col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-9321
SELECT - 78 + 99 * COALESCE ( - 59, - 38 * + 15 * - - 65 DIV - 47 + - 5 ) DIV ( - ( - + 43 ) )
----
-213

skipif mysql # not compatible
query I rowsort label-9321
SELECT - 78 + 99 * COALESCE ( - 59, - 38 * + 15 * - - 65 / - 47 + - 5 ) / ( - ( - + 43 ) )
----
-213

query I rowsort
SELECT ALL + 11 + - + 26
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT + 8 + - - ( - COUNT( * ) )
----
7

skipif mysql # not compatible
query I rowsort label-9323
SELECT + 8 + - - ( - COUNT ( * ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT 26 + COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-9324
SELECT 26 + COUNT ( * ) AS col0
----
27

query I rowsort
SELECT ALL NULLIF ( - 54, - 53 + 84 ) + + 14 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL - 21 + 6 + - + COUNT( + ( + 82 ) ) * 5 * + ( + 62 )
----
-325

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL - 21 + 6 + - + COUNT ( + ( + 82 ) ) * 5 * + ( + 62 )
----
-325

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT ALL - 12 + - COUNT( * ) * - - COUNT( 35 )
----
-13

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL - 12 + - COUNT ( * ) * - - COUNT ( 35 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9328
SELECT + 94 * - ( + 31 ) * + CASE - - COALESCE ( - 98, + + 70 ) WHEN + 69 THEN - + SUM( 42 ) WHEN - 8 * CAST( - + COUNT( * ) AS SIGNED ) / + 55 + 61 THEN - MIN( DISTINCT + 4 ) END + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT + 94 * - ( + 31 ) * + CASE - - COALESCE ( - 98, + + 70 ) WHEN + 69 THEN - + SUM ( 42 ) WHEN - 8 * CAST ( - + COUNT ( * ) AS INTEGER ) / + 55 + 61 THEN - MIN ( DISTINCT + 4 ) END + 60 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9329
SELECT DISTINCT - COALESCE ( - - 76, - + 58, 14 DIV + 67 + ( + 69 ) + - NULLIF ( + ( - - 5 ), 91 ) ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT - COALESCE ( - - 76, - + 58, 14 / + 67 + ( + 69 ) + - NULLIF ( + ( - - 5 ), 91 ) ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT 89 * - CASE MIN( - 81 ) WHEN + 50 THEN NULL WHEN - 51 THEN - - AVG ( DISTINCT - + 3 ) + 55 * 20 - - COALESCE ( ( - 63 ), - 47 ) END * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT 89 * - CASE MIN ( - 81 ) WHEN + 50 THEN NULL WHEN - 51 THEN - - AVG ( DISTINCT - + 3 ) + 55 * 20 - - COALESCE ( ( - 63 ), - 47 ) END * 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT ALL - 77 - 40 + - - COUNT( * ) AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL - 77 - 40 + - - COUNT ( * ) AS col2
----
-116

query II rowsort
SELECT ALL - 2 * + 79 AS col1, COALESCE ( - - 36, - 23 )
----
-158
36

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9333
SELECT - 79 * 3 DIV COALESCE ( 22, - - NULLIF ( + 74, CAST( 74 AS DECIMAL ) * - 36 DIV - 4 * - 72 - - 62 + 97 ) ) + - 33
----
-43

skipif mysql # not compatible
query I rowsort label-9333
SELECT - 79 * 3 / COALESCE ( 22, - - NULLIF ( + 74, CAST ( 74 AS REAL ) * - 36 / - 4 * - 72 - - 62 + 97 ) ) + - 33
----
-43

query I rowsort
SELECT DISTINCT + CASE + + 69 WHEN + 66 THEN 50 END * + 28
----
NULL

query I rowsort
SELECT 21 * - 80 AS col1
----
-1680

query I rowsort
SELECT + 99 * - 0 AS col0
----
0

query I rowsort
SELECT 41 + - - 40 AS col0
----
81

query I rowsort
SELECT - 66 * - + 88
----
5808

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT ALL + 76 / + 51 * - CASE - 72 WHEN - 52 + + 83 THEN - MAX( - 79 ) END * - 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL + 76 / + 51 * - CASE - 72 WHEN - 52 + + 83 THEN - MAX ( - 79 ) END * - 71 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9340
SELECT + ( + + 65 ) DIV + + 92 * + 34, + 92 * - 36 AS col0
----
0
-3312

skipif mysql # not compatible
query II rowsort label-9340
SELECT + ( + + 65 ) / + + 92 * + 34, + 92 * - 36 AS col0
----
0
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT ALL NULLIF ( 0, 8 * COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL NULLIF ( 0, 8 * COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9342
SELECT DISTINCT COUNT( * ) DIV MIN( - 74 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT COUNT ( * ) / MIN ( - 74 ) AS col0
----
0

query I rowsort
SELECT ALL + 26 + - 63
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9344
SELECT ALL + 15 DIV - MAX( ALL + 44 ) * - - 57 * + 66 + - 32 + + NULLIF ( + + 63, + 96 * - + 87 + + 55 ) + + - COUNT( * ) AS col1, - 2 * 80 DIV - 18
----
30
8

skipif mysql # not compatible
query II rowsort label-9344
SELECT ALL + 15 / - MAX ( ALL + 44 ) * - - 57 * + 66 + - 32 + + NULLIF ( + + 63, + 96 * - + 87 + + 55 ) + + - COUNT ( * ) AS col1, - 2 * 80 / - 18
----
30
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9345
SELECT DISTINCT ( + NULLIF ( + 85, - COUNT( * ) * + 89 ) ) + - SUM( COALESCE ( 56, + - 90 ) ) AS col2, - 98
----
29
-98

skipif mysql # not compatible
query II rowsort label-9345
SELECT DISTINCT ( + NULLIF ( + 85, - COUNT ( * ) * + 89 ) ) + - SUM ( COALESCE ( 56, + - 90 ) ) AS col2, - 98
----
29
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9346
SELECT ALL 2 + - COALESCE ( 78, COUNT( * ), - + 38 ) + + 18 + + 20 * - 34 + + 29 + - 31, 91 DIV 70 col2
----
-740
1

skipif mysql # not compatible
query II rowsort label-9346
SELECT ALL 2 + - COALESCE ( 78, COUNT ( * ), - + 38 ) + + 18 + + 20 * - 34 + + 29 + - 31, 91 / 70 col2
----
-740
1

query I rowsort
SELECT 29 + 26 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT ALL NULLIF ( 89, + 84 / - CASE - COUNT( * ) WHEN - 48 THEN - 77 WHEN 33 THEN COUNT( ALL 83 ) * + - SUM( DISTINCT 63 ) + - - COUNT( * ) + ( - + COUNT( * ) ) + 55 * - 67 END ) + 82 AS col2
----
171

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL NULLIF ( 89, + 84 / - CASE - COUNT ( * ) WHEN - 48 THEN - 77 WHEN 33 THEN COUNT ( ALL 83 ) * + - SUM ( DISTINCT 63 ) + - - COUNT ( * ) + ( - + COUNT ( * ) ) + 55 * - 67 END ) + 82 AS col2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT ALL - 26 + ( + COUNT( * ) )
----
-25

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL - 26 + ( + COUNT ( * ) )
----
-25

query I rowsort
SELECT 54 - - - 75 AS col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT CAST( 40 AS SIGNED ) - + - 33 + - 25
----
48

skipif mysql # not compatible
query I rowsort label-9351
SELECT CAST ( 40 AS INTEGER ) - + - 33 + - 25
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9352
SELECT ( + 45 ) DIV 33 - + 9
----
-8

skipif mysql # not compatible
query I rowsort label-9352
SELECT ( + 45 ) / 33 - + 9
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9353
SELECT - 33 AS col1, - 99 * MIN( - 91 ) * - 3
----
-33
-27027

skipif mysql # not compatible
query II rowsort label-9353
SELECT - 33 AS col1, - 99 * MIN ( - 91 ) * - 3
----
-33
-27027

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT 86 + - COUNT( ALL + 2 )
----
85

skipif mysql # not compatible
query I rowsort label-9354
SELECT 86 + - COUNT ( ALL + 2 )
----
85

query I rowsort
SELECT DISTINCT - 8 - - - 29 + + 97
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT COUNT( DISTINCT - COALESCE ( + 49, + 44 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9356
SELECT COUNT ( DISTINCT - COALESCE ( + 49, + 44 ) )
----
1

query I rowsort
SELECT ALL - 90 * + 88 AS col0
----
-7920

onlyif mysql # aggregate syntax: 
query II rowsort label-9358
SELECT + COUNT( * ) AS col2, - 35 * + + ( + 14 ) AS col1
----
1
-490

skipif mysql # not compatible
query II rowsort label-9358
SELECT + COUNT ( * ) AS col2, - 35 * + + ( + 14 ) AS col1
----
1
-490

query I rowsort
SELECT DISTINCT 11 * + + NULLIF ( - 17, - - 61 )
----
-187

onlyif mysql # DIV for integer division: 
query I rowsort label-9360
SELECT + 48 * 12 DIV - 61 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9360
SELECT + 48 * 12 / - 61 AS col2
----
-9

query II rowsort
SELECT + + 90, 53 AS col2
----
90
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL - MIN( ALL 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL - MIN ( ALL 13 ) AS col1
----
-13

query I rowsort
SELECT 65 * 68 + + + 35 AS col0
----
4455

query I rowsort
SELECT - 97 * 22
----
-2134

onlyif mysql # aggregate syntax: 
query II rowsort label-9365
SELECT ALL - - 67 col1, MIN( + - 47 ) AS col1
----
67
-47

skipif mysql # not compatible
query II rowsort label-9365
SELECT ALL - - 67 col1, MIN ( + - 47 ) AS col1
----
67
-47

query I rowsort
SELECT + 50 + 79 AS col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ALL + - 64 + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL + - 64 + COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-9368
SELECT + 6, - COUNT( * ) * + 82 * + COUNT( * ) col1
----
6
-82

skipif mysql # not compatible
query II rowsort label-9368
SELECT + 6, - COUNT ( * ) * + 82 * + COUNT ( * ) col1
----
6
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL 17 + - - COUNT( * ) * - 84 * + - COUNT( * ) - COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL 17 + - - COUNT ( * ) * - 84 * + - COUNT ( * ) - COUNT ( * )
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9370
SELECT SUM( 4 ) * + - COUNT( * ) * + CASE + 32 WHEN 86 THEN NULL ELSE + CASE - NULLIF ( ( + 3 ), + CAST( NULL AS SIGNED ) ) WHEN + 4 THEN - 2 WHEN + - 82 THEN NULL END END + + AVG ( + 64 ) + + 38 - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT SUM ( 4 ) * + - COUNT ( * ) * + CASE + 32 WHEN 86 THEN NULL ELSE + CASE - NULLIF ( ( + 3 ), + CAST ( NULL AS INTEGER ) ) WHEN + 4 THEN - 2 WHEN + - 82 THEN NULL END END + + AVG ( + 64 ) + + 38 - 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL - - MIN( DISTINCT - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL - - MIN ( DISTINCT - 27 )
----
-27

query I rowsort
SELECT ALL + + CASE + 90 WHEN + ( + 61 ) * + 16 + 21 + + + 60 THEN NULL WHEN 62 THEN - - 33 ELSE NULL END * + ( 99 ) col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9373
SELECT - CAST( NULL AS DECIMAL ) + - COALESCE ( 42, 45 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT - CAST ( NULL AS REAL ) + - COALESCE ( 42, 45 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9374
SELECT ALL - + CAST( + 39 AS SIGNED ) + 84, + COALESCE ( ( + + 70 ), + CAST( 67 AS SIGNED ), - + 56 DIV COALESCE ( 39, + ( 99 ) ) ) AS col1
----
45
70

skipif mysql # not compatible
query II rowsort label-9374
SELECT ALL - + CAST ( + 39 AS INTEGER ) + 84, + COALESCE ( ( + + 70 ), + CAST ( 67 AS INTEGER ), - + 56 / COALESCE ( 39, + ( 99 ) ) ) AS col1
----
45
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9375
SELECT CAST( + NULLIF ( 16, + + 97 ) AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-9375
SELECT CAST ( + NULLIF ( 16, + + 97 ) AS INTEGER )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9376
SELECT ALL + 20 + - 11 * - CAST( + - 8 AS SIGNED ) * - + 47 AS col2
----
4156

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL + 20 + - 11 * - CAST ( + - 8 AS INTEGER ) * - + 47 AS col2
----
4156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9377
SELECT - AVG ( DISTINCT - 3 ) * + 16 * CAST( NULL AS SIGNED ) * - ( + 85 ) + - + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT - AVG ( DISTINCT - 3 ) * + 16 * CAST ( NULL AS INTEGER ) * - ( + 85 ) + - + 26 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9378
SELECT + 73 - NULLIF ( + ( - 73 ), - - 65 + - + 12 + + - 66 / - 89 * - CAST( 92 AS DECIMAL ) )
----
146

skipif mysql # not compatible
query I rowsort label-9378
SELECT + 73 - NULLIF ( + ( - 73 ), - - 65 + - + 12 + + - 66 / - 89 * - CAST ( 92 AS REAL ) )
----
146

query I rowsort
SELECT DISTINCT - NULLIF ( - - 16, 45 ) + 50
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9380
SELECT 43 AS col2, COUNT( DISTINCT + 47 )
----
43
1

skipif mysql # not compatible
query II rowsort label-9380
SELECT 43 AS col2, COUNT ( DISTINCT + 47 )
----
43
1

query I rowsort
SELECT DISTINCT 72 + 7 AS col0
----
79

query I rowsort
SELECT DISTINCT + ( + 47 ) + + 27 col0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9383
SELECT ALL 48 DIV 22
----
2

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL 48 / 22
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9384
SELECT ALL 7 + ( + CAST( NULL AS SIGNED ) ) / + 54 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL 7 + ( + CAST ( NULL AS INTEGER ) ) / + 54 / + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 66 * 90
----
5940

query I rowsort
SELECT + 89 + 3
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT + MIN( DISTINCT + + 25 ) + - MIN( 12 ) * - 6
----
97

skipif mysql # not compatible
query I rowsort label-9387
SELECT + MIN ( DISTINCT + + 25 ) + - MIN ( 12 ) * - 6
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9388
SELECT - COUNT( * ) col1, 34
----
-1
34

skipif mysql # not compatible
query II rowsort label-9388
SELECT - COUNT ( * ) col1, 34
----
-1
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9389
SELECT - COALESCE ( - - 41, - 3 + + + SUM( 84 ) + + + COUNT( * ) DIV COUNT( * ) * - 31 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9389
SELECT - COALESCE ( - - 41, - 3 + + + SUM ( 84 ) + + + COUNT ( * ) / COUNT ( * ) * - 31 ) AS col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9390
SELECT ALL COALESCE ( - - 96, CAST( 90 AS SIGNED ), 52 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL COALESCE ( - - 96, CAST ( 90 AS INTEGER ), 52 ) AS col1
----
96

query II rowsort
SELECT ALL 90, + 92 AS col2
----
90
92

query I rowsort
SELECT DISTINCT 70 * - + 29 col1
----
-2030

query I rowsort
SELECT + 85 * - 5 + - + 84
----
-509

onlyif mysql # DIV for integer division: 
query I rowsort label-9394
SELECT - 12 DIV + ( + - 71 ) + + 65 - - + 12 + COALESCE ( + 59, - 38 * + 60 + - + 21 )
----
136

skipif mysql # not compatible
query I rowsort label-9394
SELECT - 12 / + ( + - 71 ) + + 65 - - + 12 + COALESCE ( + 59, - 38 * + 60 + - + 21 )
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9395
SELECT + + 95 + COUNT( * ) DIV + 20 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9395
SELECT + + 95 + COUNT ( * ) / + 20 AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9396
SELECT - + COUNT( * ) DIV - 85 + 7
----
7

skipif mysql # not compatible
query I rowsort label-9396
SELECT - + COUNT ( * ) / - 85 + 7
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9397
SELECT - - CAST( NULL AS SIGNED ) + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9397
SELECT - - CAST ( NULL AS INTEGER ) + 96 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 60 * + 96 + + 67
----
5827

query II rowsort
SELECT ALL + + 65 AS col1, NULLIF ( 64, - 89 * + 79 * 88 ) AS col2
----
65
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT ALL - ( 54 ) * COUNT( * ) + - ( - 9 ) * + 24 - + SUM( 37 )
----
125

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL - ( 54 ) * COUNT ( * ) + - ( - 9 ) * + 24 - + SUM ( 37 )
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9401
SELECT + - 70 DIV COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-9401
SELECT + - 70 / COUNT ( * ) AS col1
----
-70

query I rowsort
SELECT ALL 27 * 67 + + + 32 AS col1
----
1841

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9403
SELECT ALL - 42 * - 72 * - 76 * - + 79 * + NULLIF ( - - ( + CASE WHEN + 65 IS NULL THEN - CAST( AVG ( + + 6 ) AS DECIMAL ) * + 24 + + 11 ELSE NULL END ), + + 77 * + 57 + + 82 ) + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL - 42 * - 72 * - 76 * - + 79 * + NULLIF ( - - ( + CASE WHEN + 65 IS NULL THEN - CAST ( AVG ( + + 6 ) AS REAL ) * + 24 + + 11 ELSE NULL END ), + + 77 * + 57 + + 82 ) + 92 AS col0
----
NULL

query I rowsort
SELECT - 71 + - + 89 AS col2
----
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT + 14 DIV 17
----
0

skipif mysql # not compatible
query I rowsort label-9405
SELECT + 14 / 17
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT + MAX( - - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-9406
SELECT + MAX ( - - 56 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9407
SELECT CASE NULLIF ( 80, - 54 * + COUNT( * ) ) WHEN - - CAST( - CAST( 27 AS DECIMAL ) AS SIGNED ) THEN 21 WHEN + COALESCE ( + 71, - 21, - + 60 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9407
SELECT CASE NULLIF ( 80, - 54 * + COUNT ( * ) ) WHEN - - CAST ( - CAST ( 27 AS REAL ) AS INTEGER ) THEN 21 WHEN + COALESCE ( + 71, - 21, - + 60 ) THEN NULL END
----
NULL

query II rowsort
SELECT 20, - 93 + + 17 AS col2
----
20
-76

query I rowsort
SELECT DISTINCT - 80 * + - 77 AS col1
----
6160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT ALL 20 * - - 58 + - COUNT( * ) * COUNT( * ) + + 24 * - + CAST( NULL AS SIGNED ) * - + 82 - - NULLIF ( 60, + ( 39 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL 20 * - - 58 + - COUNT ( * ) * COUNT ( * ) + + 24 * - + CAST ( NULL AS INTEGER ) * - + 82 - - NULLIF ( 60, + ( 39 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9411
SELECT ALL CASE - 5 WHEN - 63 THEN - SUM( - CAST( NULL AS SIGNED ) ) ELSE + + COALESCE ( - - CAST( + 11 AS SIGNED ), - ( ( - 42 ) ) ) DIV - - COALESCE ( + 33, + - 96 ) + - 19 * + + 29 + + 48 END AS col2
----
-503

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL CASE - 5 WHEN - 63 THEN - SUM ( - CAST ( NULL AS INTEGER ) ) ELSE + + COALESCE ( - - CAST ( + 11 AS INTEGER ), - ( ( - 42 ) ) ) / - - COALESCE ( + 33, + - 96 ) + - 19 * + + 29 + + 48 END AS col2
----
-503

query I rowsort
SELECT ALL - 62 * - 78 AS col1
----
4836

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT - 13 * COUNT( - 52 )
----
-13

skipif mysql # not compatible
query I rowsort label-9413
SELECT - 13 * COUNT ( - 52 )
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-9414
SELECT + 25 * + 82 * NULLIF ( - 4, COUNT( * ) ) AS col2, - 26 AS col0
----
-8200
-26

skipif mysql # not compatible
query II rowsort label-9414
SELECT + 25 * + 82 * NULLIF ( - 4, COUNT ( * ) ) AS col2, - 26 AS col0
----
-8200
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT DISTINCT - COUNT( DISTINCT - + 73 ) * 69 * - 64 AS col1
----
4416

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT - COUNT ( DISTINCT - + 73 ) * 69 * - 64 AS col1
----
4416

query I rowsort
SELECT ALL - 62 * + + 87
----
-5394

query III rowsort
SELECT - 77 - + 87 AS col1, + 81, 74 col2
----
-164
81
74

onlyif mysql # aggregate syntax: 
query II rowsort label-9418
SELECT + 83 * + + 68 AS col2, - NULLIF ( 87, COALESCE ( 37, + - ( 68 ) / + CASE - - 28 WHEN + 58 + 37 THEN 52 END * - + 74 * + 7, - + 77 * 61 + 49 ) * + 98 ) * - COALESCE ( 60 * - COUNT( * ), COUNT( * ) )
----
5644
-5220

skipif mysql # not compatible
query II rowsort label-9418
SELECT + 83 * + + 68 AS col2, - NULLIF ( 87, COALESCE ( 37, + - ( 68 ) / + CASE - - 28 WHEN + 58 + 37 THEN 52 END * - + 74 * + 7, - + 77 * 61 + 49 ) * + 98 ) * - COALESCE ( 60 * - COUNT ( * ), COUNT ( * ) )
----
5644
-5220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT ALL CAST( ( 25 ) AS SIGNED ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL CAST ( ( 25 ) AS INTEGER ) AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9420
SELECT ALL + CAST( NULL AS SIGNED ) * + 83 AS col0, MAX( DISTINCT 88 ) * - + COUNT( * ) * - 84 + - ( + + 53 ) * + COUNT( * ) + - - ( CASE - 44 WHEN + + CAST( + 60 AS SIGNED ) THEN - COUNT( * ) WHEN - 53 * + 40 + 78 THEN NULL WHEN - 61 * 56 THEN 78 ELSE - 94 END ) - + 68 AS col2
----
NULL
7177

skipif mysql # not compatible
query II rowsort label-9420
SELECT ALL + CAST ( NULL AS INTEGER ) * + 83 AS col0, MAX ( DISTINCT 88 ) * - + COUNT ( * ) * - 84 + - ( + + 53 ) * + COUNT ( * ) + - - ( CASE - 44 WHEN + + CAST ( + 60 AS INTEGER ) THEN - COUNT ( * ) WHEN - 53 * + 40 + 78 THEN NULL WHEN - 61 * 56 THEN 78 ELSE - 94 END ) - + 68 AS col2
----
NULL
7177

query I rowsort
SELECT - 47 * - - 99 AS col2
----
-4653

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT - ( COUNT( DISTINCT - 89 ) ) * + 47
----
-47

skipif mysql # not compatible
query I rowsort label-9422
SELECT - ( COUNT ( DISTINCT - 89 ) ) * + 47
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-9423
SELECT + COUNT( * ) - 69 AS col1, + ( 91 ) * 21 + - + 46 + + - 77
----
-68
1788

skipif mysql # not compatible
query II rowsort label-9423
SELECT + COUNT ( * ) - 69 AS col1, + ( 91 ) * 21 + - + 46 + + - 77
----
-68
1788

onlyif mysql # DIV for integer division: 
query I rowsort label-9424
SELECT ALL - 18 DIV + + 1 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL - 18 / + + 1 AS col2
----
-18

query I rowsort
SELECT - ( - 53 ) * - + 19
----
-1007

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT DISTINCT + MIN( 18 ) col2
----
18

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT + MIN ( 18 ) col2
----
18

query I rowsort
SELECT ALL 49 * + 58 + 95 / + CASE + - 59 WHEN - 67 THEN - - 1 WHEN + 27 - - + NULLIF ( NULLIF ( 2, - + 17 ), 20 + - 81 ) THEN + - 70 END + - - 54 * - 41
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9428
SELECT DISTINCT + - 14 / - 73 * + 90 + + - CAST( NULL AS DECIMAL ) + - - ( - + ( + + 60 ) ) * + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT + - 14 / - 73 * + 90 + + - CAST ( NULL AS REAL ) + - - ( - + ( + + 60 ) ) * + 61 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9429
SELECT DISTINCT - - 82 DIV 95 + - 8 + + 54
----
46

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT - - 82 / 95 + - 8 + + 54
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9430
SELECT ALL 15 * + 84 * 36 + - 61 + + - SUM( - 73 ) + 18 AS col2, - 91 + + 97 AS col1
----
45390
6

skipif mysql # not compatible
query II rowsort label-9430
SELECT ALL 15 * + 84 * 36 + - 61 + + - SUM ( - 73 ) + 18 AS col2, - 91 + + 97 AS col1
----
45390
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9431
SELECT + + COUNT( * ) * - 10 AS col0, 58 DIV - 59 * + 38 * - 36 * 33
----
-10
0

skipif mysql # not compatible
query II rowsort label-9431
SELECT + + COUNT ( * ) * - 10 AS col0, 58 / - 59 * + 38 * - 36 * 33
----
-10
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9432
SELECT ALL - 66 DIV 95 + - COUNT( * ) + - + MAX( + 44 ) * - - 4
----
-177

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL - 66 / 95 + - COUNT ( * ) + - + MAX ( + 44 ) * - - 4
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT - 76 * 49 + COALESCE ( + COUNT( * ), - - 91 ) AS col2
----
-3723

skipif mysql # not compatible
query I rowsort label-9433
SELECT - 76 * 49 + COALESCE ( + COUNT ( * ), - - 91 ) AS col2
----
-3723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9434
SELECT + 88 * COUNT( ( + 45 ) ) * - 69 + + NULLIF ( - + CAST( NULL AS SIGNED ), 36 ) * - 10 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9434
SELECT + 88 * COUNT ( ( + 45 ) ) * - 69 + + NULLIF ( - + CAST ( NULL AS INTEGER ), 36 ) * - 10 col1
----
NULL

query I rowsort
SELECT - 35 + - + 56 AS col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9436
SELECT ALL 79 * COALESCE ( + - CAST( - 71 AS SIGNED ), - + 4 + + 6, - + SUM( - 82 ) * 67 + + 3 + - COUNT( * ) * - 37 + ( - 72 ), - - 22 ) AS col2
----
5609

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL 79 * COALESCE ( + - CAST ( - 71 AS INTEGER ), - + 4 + + 6, - + SUM ( - 82 ) * 67 + + 3 + - COUNT ( * ) * - 37 + ( - 72 ), - - 22 ) AS col2
----
5609

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9437
SELECT 45 + CAST( 72 AS SIGNED ) * 46 + - CAST( NULL AS SIGNED ) + - 18 - 22 AS col0, 9 * + CAST( + 3 AS SIGNED )
----
NULL
27

skipif mysql # not compatible
query II rowsort label-9437
SELECT 45 + CAST ( 72 AS INTEGER ) * 46 + - CAST ( NULL AS INTEGER ) + - 18 - 22 AS col0, 9 * + CAST ( + 3 AS INTEGER )
----
NULL
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9438
SELECT ALL CAST( NULL AS SIGNED ) + 31 + - - 57 - 91 * 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL CAST ( NULL AS INTEGER ) + 31 + - - 57 - 91 * 54 AS col2
----
NULL

query I rowsort
SELECT 75 * + 77 * 81 AS col1
----
467775

query I rowsort
SELECT ALL + 12 - 17 col2
----
-5

query I rowsort
SELECT DISTINCT 78 * - 41
----
-3198

query II rowsort
SELECT + 6, - 36 AS col2
----
6
-36

query I rowsort
SELECT 64 + + + ( + 84 ) AS col2
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9444
SELECT ALL 96 - + COUNT( * ) DIV - 32
----
96

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL 96 - + COUNT ( * ) / - 32
----
96

query I rowsort
SELECT 35 * 79 AS col1
----
2765

query I rowsort
SELECT 74 + - + 41 * + - 90
----
3764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9447
SELECT - CAST( NULL AS SIGNED ) * + 89 + COALESCE ( + 32, 22 + + 44 ) + + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT - CAST ( NULL AS INTEGER ) * + 89 + COALESCE ( + 32, 22 + + 44 ) + + 93 AS col1
----
NULL

query I rowsort
SELECT 89 - + 64 * - 52 + + ( + 54 ) AS col2
----
3471

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT 60 * - - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-9449
SELECT 60 * - - COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT 63 + COUNT( * ) col0
----
64

skipif mysql # not compatible
query I rowsort label-9450
SELECT 63 + COUNT ( * ) col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9451
SELECT ALL 73 AS col0, COUNT( * ) + - CAST( NULL AS SIGNED ) col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-9451
SELECT ALL 73 AS col0, COUNT ( * ) + - CAST ( NULL AS INTEGER ) col1
----
73
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9452
SELECT DISTINCT 77, - COUNT( 19 ) AS col2
----
77
-1

skipif mysql # not compatible
query II rowsort label-9452
SELECT DISTINCT 77, - COUNT ( 19 ) AS col2
----
77
-1

query I rowsort
SELECT ALL - 31 * 60
----
-1860

query I rowsort
SELECT 86 * 6
----
516

query I rowsort
SELECT 89 + + - 2
----
87

query II rowsort
SELECT 92 AS col1, - 51
----
92
-51

query I rowsort
SELECT ALL + 86 + - 53
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9458
SELECT ALL - 32 * - COUNT( * ) * + COUNT( * ) AS col0, + 97
----
32
97

skipif mysql # not compatible
query II rowsort label-9458
SELECT ALL - 32 * - COUNT ( * ) * + COUNT ( * ) AS col0, + 97
----
32
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9459
SELECT 0, 55 + MIN( + CAST( NULL AS SIGNED ) ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9459
SELECT 0, 55 + MIN ( + CAST ( NULL AS INTEGER ) ) AS col2
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9460
SELECT 5 DIV + - 38
----
0

skipif mysql # not compatible
query I rowsort label-9460
SELECT 5 / + - 38
----
0

query II rowsort
SELECT 76 + ( + - 25 ), - 60 * - 86 * - 85 AS col0
----
51
-438600

query II rowsort
SELECT - 95 AS col0, - ( - - 45 ) AS col2
----
-95
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9463
SELECT - 3 + + + 34 + - + 83 DIV ( 77 ) * - 33 - 40
----
24

skipif mysql # not compatible
query I rowsort label-9463
SELECT - 3 + + + 34 + - + 83 / ( 77 ) * - 33 - 40
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL + - COUNT( * ) + + - 42 * 64 * - 15 AS col1
----
40319

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL + - COUNT ( * ) + + - 42 * 64 * - 15 AS col1
----
40319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9465
SELECT DISTINCT + CAST( + 46 AS SIGNED ) * - COALESCE ( + CAST( + - 79 AS SIGNED ), COUNT( * ) * - - MIN( ALL - 45 ) * 3 + 69 - - 56 ) AS col0, 82 * - CAST( NULL AS SIGNED ) - - + 43 * 67 + + - MAX( ALL - COALESCE ( - ( 63 ), - 70 * 36, 15 ) ) + MIN( DISTINCT + 20 ) * 53 * NULLIF ( - COUNT( * ), + ( - MIN( + 4 ) ) ) AS col0
----
3634
NULL

skipif mysql # not compatible
query II rowsort label-9465
SELECT DISTINCT + CAST ( + 46 AS INTEGER ) * - COALESCE ( + CAST ( + - 79 AS INTEGER ), COUNT ( * ) * - - MIN ( ALL - 45 ) * 3 + 69 - - 56 ) AS col0, 82 * - CAST ( NULL AS INTEGER ) - - + 43 * 67 + + - MAX ( ALL - COALESCE ( - ( 63 ), - 70 * 36, 15 ) ) + MIN ( DISTINCT + 20 ) * 53 * NULLIF ( - COUNT ( * ), + ( - MIN ( + 4 ) ) ) AS col0
----
3634
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9466
SELECT ALL - COUNT( * ) + - MAX( DISTINCT + 53 ), 61 AS col2
----
-54
61

skipif mysql # not compatible
query II rowsort label-9466
SELECT ALL - COUNT ( * ) + - MAX ( DISTINCT + 53 ), 61 AS col2
----
-54
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT DISTINCT - 90 + - + COUNT( * ) * - 95
----
5

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT - 90 + - + COUNT ( * ) * - 95
----
5

query II rowsort
SELECT - + 57, + 93 AS col0
----
-57
93

query I rowsort
SELECT ALL - - 45 + - 22 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT ALL + - 82 / + CASE 61 WHEN + 3 * + + 64 * + + COALESCE ( - - 7, - COUNT( * ) ) + 87 THEN + 70 + - CASE + 82 WHEN - ( - CASE WHEN NOT 42 IS NOT NULL THEN + + CASE + + COUNT( * ) WHEN + 19 / 26 - 98 THEN - ( - 22 ) * + 63 ELSE NULL END + 82 WHEN 2 IS NOT NULL THEN NULL ELSE 6 END ) + 75 THEN 46 + ( + 68 + 81 ) ELSE NULL END WHEN - 57 THEN NULL WHEN 78 + 9 THEN 53 ELSE NULL END / + 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL + - 82 / + CASE 61 WHEN + 3 * + + 64 * + + COALESCE ( - - 7, - COUNT ( * ) ) + 87 THEN + 70 + - CASE + 82 WHEN - ( - CASE WHEN NOT 42 IS NOT NULL THEN + + CASE + + COUNT ( * ) WHEN + 19 / 26 - 98 THEN - ( - 22 ) * + 63 ELSE NULL END + 82 WHEN 2 IS NOT NULL THEN NULL ELSE 6 END ) + 75 THEN 46 + ( + 68 + 81 ) ELSE NULL END WHEN - 57 THEN NULL WHEN 78 + 9 THEN 53 ELSE NULL END / + 23 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9471
SELECT 12 col0, ( + 35 ) DIV - 41 + - COUNT( * ) * + + COUNT( ALL + 53 ) * - - 52 AS col0
----
12
-52

skipif mysql # not compatible
query II rowsort label-9471
SELECT 12 col0, ( + 35 ) / - 41 + - COUNT ( * ) * + + COUNT ( ALL + 53 ) * - - 52 AS col0
----
12
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT ALL 49 * - 32 - MIN( + 48 ) AS col1
----
-1616

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL 49 * - 32 - MIN ( + 48 ) AS col1
----
-1616

query I rowsort
SELECT ALL + 16 - 7 - - 98 AS col0
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT + + NULLIF ( + 51, 47 + + 47 + + - CAST( NULL AS SIGNED ) - - + 76 * - 18 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9474
SELECT + + NULLIF ( + 51, 47 + + 47 + + - CAST ( NULL AS INTEGER ) - - + 76 * - 18 ) AS col2
----
51

query I rowsort
SELECT DISTINCT - + ( + 24 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9476
SELECT DISTINCT - 62 AS col2, - 77 * - 57 + + - NULLIF ( + 0, CAST( NULL AS SIGNED ) * + 14 * - 19 - - - NULLIF ( - - 25, + 0 DIV - 28 DIV 5 DIV + - 85 * + - CAST( NULL AS SIGNED ) ) ) DIV NULLIF ( + COUNT( * ), - 54 ) AS col2
----
-62
4389

skipif mysql # not compatible
query II rowsort label-9476
SELECT DISTINCT - 62 AS col2, - 77 * - 57 + + - NULLIF ( + 0, CAST ( NULL AS INTEGER ) * + 14 * - 19 - - - NULLIF ( - - 25, + 0 / - 28 / 5 / + - 85 * + - CAST ( NULL AS INTEGER ) ) ) / NULLIF ( + COUNT ( * ), - 54 ) AS col2
----
-62
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT DISTINCT - - MAX( + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT - - MAX ( + 41 )
----
41

query I rowsort
SELECT DISTINCT - + 27 * - 77
----
2079

query I rowsort
SELECT CASE + - ( - - 98 ) WHEN - - 33 THEN + 65 END * - + 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT CASE 78 WHEN AVG ( - 13 ) / 68 * - 75 / - + 16 + ( + + ( - 82 ) ) THEN COUNT( * ) / + ( - + ( + 48 ) ) * + 58 * 0 WHEN - 75 + + 64 * - - ( + 51 ) THEN NULLIF ( 54, 19 + + 63 ) ELSE NULL END * 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9480
SELECT CASE 78 WHEN AVG ( - 13 ) / 68 * - 75 / - + 16 + ( + + ( - 82 ) ) THEN COUNT ( * ) / + ( - + ( + 48 ) ) * + 58 * 0 WHEN - 75 + + 64 * - - ( + 51 ) THEN NULLIF ( 54, 19 + + 63 ) ELSE NULL END * 2 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9481
SELECT DISTINCT 83 * 55 DIV + 5 col1
----
913

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT 83 * 55 / + 5 col1
----
913

onlyif mysql # aggregate syntax: 
query II rowsort label-9482
SELECT ALL COUNT( * ) * + ( + MAX( - - 88 ) ) AS col2, + 66 AS col0
----
88
66

skipif mysql # not compatible
query II rowsort label-9482
SELECT ALL COUNT ( * ) * + ( + MAX ( - - 88 ) ) AS col2, + 66 AS col0
----
88
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT DISTINCT - COUNT( * ) * 40
----
-40

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT - COUNT ( * ) * 40
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT DISTINCT 47 * - ( - + COUNT( DISTINCT 76 ) ) * 35 AS col0
----
1645

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT 47 * - ( - + COUNT ( DISTINCT 76 ) ) * 35 AS col0
----
1645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9485
SELECT 60 * ( - - ( + - CAST( + NULLIF ( 37, AVG ( ALL - 40 ) ) AS SIGNED ) ) ) AS col0
----
-2220

skipif mysql # not compatible
query I rowsort label-9485
SELECT 60 * ( - - ( + - CAST ( + NULLIF ( 37, AVG ( ALL - 40 ) ) AS INTEGER ) ) ) AS col0
----
-2220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9486
SELECT CAST( 47 AS SIGNED ) * COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9486
SELECT CAST ( 47 AS INTEGER ) * COUNT ( * ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT - SUM( DISTINCT + 96 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-9487
SELECT - SUM ( DISTINCT + 96 ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT COUNT( DISTINCT 64 ) * - 39 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-9488
SELECT COUNT ( DISTINCT 64 ) * - 39 AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9489
SELECT CAST( - + 1 AS SIGNED ) + - + 25
----
-26

skipif mysql # not compatible
query I rowsort label-9489
SELECT CAST ( - + 1 AS INTEGER ) + - + 25
----
-26

query II rowsort
SELECT ALL 46 + 96 AS col0, - 28 + + 33
----
142
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9491
SELECT DISTINCT + + 85 + - COUNT( * ) DIV + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT + + 85 + - COUNT ( * ) / + COUNT ( * ) AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9492
SELECT - CASE 41 WHEN + 22 + - 25 THEN NULL WHEN + - CAST( NULL AS SIGNED ) THEN + 26 * 84 + 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9492
SELECT - CASE 41 WHEN + 22 + - 25 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) THEN + 26 * 84 + 46 END
----
NULL

query I rowsort
SELECT ALL - 88 + + 5 - + + 46
----
-129

query II rowsort
SELECT DISTINCT + 30 * - - 21 col0, 35
----
630
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT DISTINCT + COUNT( * ) + + 13 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT + COUNT ( * ) + + 13 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT DISTINCT SUM( DISTINCT + - NULLIF ( + 87, + 96 ) ) + - - 98 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT SUM ( DISTINCT + - NULLIF ( + 87, + 96 ) ) + - - 98 AS col1
----
11

query I rowsort
SELECT ALL - 28 + 29 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT DISTINCT + - 80 * - MAX( ALL 65 ) AS col0
----
5200

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT + - 80 * - MAX ( ALL 65 ) AS col0
----
5200

query I rowsort
SELECT - 94 * 10
----
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT ALL + COUNT( * ) * 41 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL + COUNT ( * ) * 41 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT ALL - ( - COUNT( * ) ) - + MAX( 4 ) + + - 26 * + 40 AS col2
----
-1043

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL - ( - COUNT ( * ) ) - + MAX ( 4 ) + + - 26 * + 40 AS col2
----
-1043

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT COUNT( ALL - 11 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9502
SELECT COUNT ( ALL - 11 ) AS col2
----
1

query I rowsort
SELECT - - 81 * 17 + - - 87
----
1464

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT - - 0 * + COUNT( * ) - + - 86
----
86

skipif mysql # not compatible
query I rowsort label-9504
SELECT - - 0 * + COUNT ( * ) - + - 86
----
86

query I rowsort
SELECT - 54 * + 52 + 18 * + 42
----
-2052

query I rowsort
SELECT - 51 * - 43 + - 23 * + 27 * 6
----
-1533

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9507
SELECT + ( + - COUNT( DISTINCT - 35 ) ) DIV + MAX( - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-9507
SELECT + ( + - COUNT ( DISTINCT - 35 ) ) / + MAX ( - 86 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9508
SELECT DISTINCT + 21 DIV - + 44
----
0

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT + 21 / - + 44
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9509
SELECT - 57 * - 96 + - - 82 + + COALESCE ( 11, - - 86 * + - 96 * - COUNT( * ) ), + COUNT( * ) col2
----
5565
1

skipif mysql # not compatible
query II rowsort label-9509
SELECT - 57 * - 96 + - - 82 + + COALESCE ( 11, - - 86 * + - 96 * - COUNT ( * ) ), + COUNT ( * ) col2
----
5565
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT + COUNT( DISTINCT ( 92 ) ) - 53 * - 91 AS col1
----
4824

skipif mysql # not compatible
query I rowsort label-9510
SELECT + COUNT ( DISTINCT ( 92 ) ) - 53 * - 91 AS col1
----
4824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9511
SELECT - COUNT( * ) + + 25 + + - NULLIF ( + 53, + COUNT( * ) ) + - 63 + + 37 * + + CAST( NULL AS SIGNED ) AS col0, - NULLIF ( + 18, - 58 ) * - 82 * COUNT( * )
----
NULL
1476

skipif mysql # not compatible
query II rowsort label-9511
SELECT - COUNT ( * ) + + 25 + + - NULLIF ( + 53, + COUNT ( * ) ) + - 63 + + 37 * + + CAST ( NULL AS INTEGER ) AS col0, - NULLIF ( + 18, - 58 ) * - 82 * COUNT ( * )
----
NULL
1476

query I rowsort
SELECT ALL 42 * 40 * - 72 * + 65
----
-7862400

query I rowsort
SELECT ALL + 58 * 49
----
2842

query I rowsort
SELECT ALL + 67 * - 76 + 55 - - 6 AS col1
----
-5031

query I rowsort
SELECT + 19 * + 18 * - 5 + - 92
----
-1802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9516
SELECT + CAST( NULL AS SIGNED ) * - 91 * COALESCE ( + + CASE + COUNT( * ) WHEN + 1 + + COUNT( * ) * - 10 THEN + 63 / - + 15 END, + + 95 * + + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT + CAST ( NULL AS INTEGER ) * - 91 * COALESCE ( + + CASE + COUNT ( * ) WHEN + 1 + + COUNT ( * ) * - 10 THEN + 63 / - + 15 END, + + 95 * + + 67 )
----
NULL

query II rowsort
SELECT + 77 + - 78 + - + 64 AS col0, - 49 AS col1
----
-65
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9518
SELECT COUNT( * ), - 86 AS col2
----
1
-86

skipif mysql # not compatible
query II rowsort label-9518
SELECT COUNT ( * ), - 86 AS col2
----
1
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT MAX( - ( + - 66 ) )
----
66

skipif mysql # not compatible
query I rowsort label-9519
SELECT MAX ( - ( + - 66 ) )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9520
SELECT ALL 75 * - MIN( ALL 81 ) + + 36 + + 22 AS col2, 96
----
-6017
96

skipif mysql # not compatible
query II rowsort label-9520
SELECT ALL 75 * - MIN ( ALL 81 ) + + 36 + + 22 AS col2, 96
----
-6017
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT COUNT( - 11 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9521
SELECT COUNT ( - 11 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT + COUNT( * ) + - + COUNT( * ) + CASE + 8 WHEN - - CASE - - 91 WHEN - + 64 THEN NULL WHEN - + NULLIF ( - - 36, + 76 * - 45 * - 19 ) - + 2 / 12 + - + 97 THEN + COALESCE ( + 37, 91 ) * - 73 WHEN - COUNT( * ) + COUNT( * ) * 77 THEN 51 + + MAX( - 9 + - 83 * - 63 ) * 9 ELSE NULL END THEN - 60 ELSE NULL END * 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT + COUNT ( * ) + - + COUNT ( * ) + CASE + 8 WHEN - - CASE - - 91 WHEN - + 64 THEN NULL WHEN - + NULLIF ( - - 36, + 76 * - 45 * - 19 ) - + 2 / 12 + - + 97 THEN + COALESCE ( + 37, 91 ) * - 73 WHEN - COUNT ( * ) + COUNT ( * ) * 77 THEN 51 + + MAX ( - 9 + - 83 * - 63 ) * 9 ELSE NULL END THEN - 60 ELSE NULL END * 44 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9523
SELECT ALL - 69 + + + ( - 46 ) + - 95 * - 15 - + CAST( CAST( - CASE 0 WHEN + - SUM( ALL 28 ) THEN NULL WHEN + 74 THEN NULL WHEN + ( + + ( - 72 ) ) THEN - 47 + + - 90 END AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL - 69 + + + ( - 46 ) + - 95 * - 15 - + CAST ( CAST ( - CASE 0 WHEN + - SUM ( ALL 28 ) THEN NULL WHEN + 74 THEN NULL WHEN + ( + + ( - 72 ) ) THEN - 47 + + - 90 END AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + - 34 ) col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL ( - 55 ) + + MAX( - - 26 ) * COALESCE ( + + ( - + 13 ), 20 )
----
-393

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL ( - 55 ) + + MAX ( - - 26 ) * COALESCE ( + + ( - + 13 ), 20 )
----
-393

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9526
SELECT ALL COUNT( * ) DIV - 21 * NULLIF ( - 92, COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL COUNT ( * ) / - 21 * NULLIF ( - 92, COUNT ( * ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL + COUNT( * ) + - 49 + - + 18 - + 31 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL + COUNT ( * ) + - 49 + - + 18 - + 31 AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9528
SELECT DISTINCT + 59 * MAX( + 67 ) + COUNT( * ) + + 14 - + CAST( NULL AS SIGNED ) * 7 / 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT + 59 * MAX ( + 67 ) + COUNT ( * ) + + 14 - + CAST ( NULL AS INTEGER ) * 7 / 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT ALL 38 * + MIN( DISTINCT + ( + 15 ) ) AS col0
----
570

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL 38 * + MIN ( DISTINCT + ( + 15 ) ) AS col0
----
570

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9530
SELECT - 42 DIV 48 * 60 AS col2, - COUNT( - CASE - ( 24 ) WHEN - 22 THEN + 58 * - 42 END ) * - 66
----
0
0

skipif mysql # not compatible
query II rowsort label-9530
SELECT - 42 / 48 * 60 AS col2, - COUNT ( - CASE - ( 24 ) WHEN - 22 THEN + 58 * - 42 END ) * - 66
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT + COUNT( * ) + CAST( + 65 AS SIGNED ) * - 43 - 82 + 6 AS col2
----
-2870

skipif mysql # not compatible
query I rowsort label-9531
SELECT + COUNT ( * ) + CAST ( + 65 AS INTEGER ) * - 43 - 82 + 6 AS col2
----
-2870

query II rowsort
SELECT ALL 82 * 6 - + 42 + + + ( + 81 ), 25 * - 51 AS col1
----
531
-1275

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT + COUNT( * ) + + 79 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9533
SELECT + COUNT ( * ) + + 79 AS col2
----
80

query I rowsort
SELECT NULLIF ( 49, 27 )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9535
SELECT + - COALESCE ( + - COALESCE ( - 42, - 31 ), 79, - 86 + - ( 2 ) ) + + CAST( - 53 AS SIGNED ) + + COUNT( ALL + ( 67 ) ) + + 64 DIV 92 DIV 35 * 18 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-9535
SELECT + - COALESCE ( + - COALESCE ( - 42, - 31 ), 79, - 86 + - ( 2 ) ) + + CAST ( - 53 AS INTEGER ) + + COUNT ( ALL + ( 67 ) ) + + 64 / 92 / 35 * 18 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT - - SUM( ALL + 3 ) col0
----
3

skipif mysql # not compatible
query I rowsort label-9536
SELECT - - SUM ( ALL + 3 ) col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT SUM( + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-9537
SELECT SUM ( + 40 )
----
40

query I rowsort
SELECT ALL - ( - + 49 ) col0
----
49

query I rowsort
SELECT + - 2 * - 77
----
154

query I rowsort
SELECT - 28 * + 38
----
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT - NULLIF ( - 19, + + 34 * 53 / - 16 + - COUNT( * ) ) + - 38
----
-19

skipif mysql # not compatible
query I rowsort label-9541
SELECT - NULLIF ( - 19, + + 34 * 53 / - 16 + - COUNT ( * ) ) + - 38
----
-19

query I rowsort
SELECT ( 57 ) col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9543
SELECT 44 DIV 75 + + NULLIF ( - COUNT( * ), - MIN( + - 42 ) ) DIV - 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9543
SELECT 44 / 75 + + NULLIF ( - COUNT ( * ), - MIN ( + - 42 ) ) / - 41 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9544
SELECT CAST( ( + + 53 ) AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-9544
SELECT CAST ( ( + + 53 ) AS INTEGER )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9545
SELECT ALL + COUNT( * ), ( 60 ) * - + ( + ( ( - NULLIF ( 21, + + 38 * - - ( + 51 ) + + 56 ) ) ) ) + + 8 + + 9 AS col1
----
1
1277

skipif mysql # not compatible
query II rowsort label-9545
SELECT ALL + COUNT ( * ), ( 60 ) * - + ( + ( ( - NULLIF ( 21, + + 38 * - - ( + 51 ) + + 56 ) ) ) ) + + 8 + + 9 AS col1
----
1
1277

query II rowsort
SELECT + 48 AS col2, + 77
----
48
77

query II rowsort
SELECT DISTINCT + 96 AS col2, 48 - + 35 AS col2
----
96
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9548
SELECT + 6 AS col1, - COUNT( * ) AS col0
----
6
-1

skipif mysql # not compatible
query II rowsort label-9548
SELECT + 6 AS col1, - COUNT ( * ) AS col0
----
6
-1

query I rowsort
SELECT DISTINCT + ( + 48 ) AS col2
----
48

query I rowsort
SELECT - 1 * 31 * 91
----
-2821

query I rowsort
SELECT ALL 59 * - 11 + + 67
----
-582

query II rowsort
SELECT + 17 AS col2, - 16 col0
----
17
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9553
SELECT - 65 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9553
SELECT - 65 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 71 * - 77 AS col2, ( 16 )
----
-5467
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9555
SELECT ALL - 96 * + 85 + - COUNT( * ) + 61 * + - CAST( - - 5 AS SIGNED ) * 56 * + COALESCE ( + 91, + 30 ) + - NULLIF ( + 11, 20 * + 14 + - 39 ) AS col1
----
-1562452

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL - 96 * + 85 + - COUNT ( * ) + 61 * + - CAST ( - - 5 AS INTEGER ) * 56 * + COALESCE ( + 91, + 30 ) + - NULLIF ( + 11, 20 * + 14 + - 39 ) AS col1
----
-1562452

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9556
SELECT - CAST( NULL AS DECIMAL ) * + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-9556
SELECT - CAST ( NULL AS REAL ) * + 69
----
NULL

query I rowsort
SELECT ALL - 80 * + 42 + + 27 AS col0
----
-3333

query I rowsort
SELECT DISTINCT ( + 99 ) * 50
----
4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9559
SELECT ALL + NULLIF ( - 79, + COALESCE ( - + 57, + 33, - 66, + 7 ) + + ( - CAST( 39 AS SIGNED ) ) + - 20 ) * + 76 * - + 54 AS col0
----
324216

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL + NULLIF ( - 79, + COALESCE ( - + 57, + 33, - 66, + 7 ) + + ( - CAST ( 39 AS INTEGER ) ) + - 20 ) * + 76 * - + 54 AS col0
----
324216

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT - 67 * 39 + 82 + 96 * COUNT( * ) + - COUNT( * ) AS col2
----
-2436

skipif mysql # not compatible
query I rowsort label-9560
SELECT - 67 * 39 + 82 + 96 * COUNT ( * ) + - COUNT ( * ) AS col2
----
-2436

onlyif mysql # DIV for integer division: 
query II rowsort label-9561
SELECT ALL - 6 AS col0, - 15 DIV 74 DIV - 77 * - + 45 AS col2
----
-6
0

skipif mysql # not compatible
query II rowsort label-9561
SELECT ALL - 6 AS col0, - 15 / 74 / - 77 * - + 45 AS col2
----
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT NULLIF ( - 94, - COUNT( ALL - 78 ) * CASE 29 WHEN - 23 THEN - 92 + - - 99 WHEN + COUNT( * ) THEN NULL ELSE NULL END )
----
-94

skipif mysql # not compatible
query I rowsort label-9562
SELECT NULLIF ( - 94, - COUNT ( ALL - 78 ) * CASE 29 WHEN - 23 THEN - 92 + - - 99 WHEN + COUNT ( * ) THEN NULL ELSE NULL END )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT ( - COUNT( * ) ) + ( + ( + + 91 ) )
----
90

skipif mysql # not compatible
query I rowsort label-9563
SELECT ( - COUNT ( * ) ) + ( + ( + + 91 ) )
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-9564
SELECT 19 * - 0 DIV + - 81 + - 30 - + - 9 * + + 97 - + ( - 26 ) DIV - 85, 0 AS col1
----
843
0

skipif mysql # not compatible
query II rowsort label-9564
SELECT 19 * - 0 / + - 81 + - 30 - + - 9 * + + 97 - + ( - 26 ) / - 85, 0 AS col1
----
843
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9565
SELECT DISTINCT + 87 * 11 DIV + 56 + + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-9565
SELECT DISTINCT + 87 * 11 / + 56 + + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9566
SELECT ALL MIN( + 31 ), COUNT( * ) col1
----
31
1

skipif mysql # not compatible
query II rowsort label-9566
SELECT ALL MIN ( + 31 ), COUNT ( * ) col1
----
31
1

query II rowsort
SELECT - 82 AS col1, + 47 * - 22 AS col1
----
-82
-1034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9568
SELECT DISTINCT CAST( + + 90 AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT CAST ( + + 90 AS INTEGER )
----
90

query I rowsort
SELECT 57 + - 97 AS col2
----
-40

query I rowsort
SELECT DISTINCT 0 * + 97
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9571
SELECT + 79 DIV 47 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9571
SELECT + 79 / 47 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT - 88 * + 61 + - COUNT( * )
----
-5369

skipif mysql # not compatible
query I rowsort label-9572
SELECT - 88 * + 61 + - COUNT ( * )
----
-5369

onlyif mysql # aggregate syntax: 
query II rowsort label-9573
SELECT - - 65 AS col2, CASE + 32 WHEN + COUNT( * ) THEN - + 76 + - 37 + 28 END AS col1
----
65
NULL

skipif mysql # not compatible
query II rowsort label-9573
SELECT - - 65 AS col2, CASE + 32 WHEN + COUNT ( * ) THEN - + 76 + - 37 + 28 END AS col1
----
65
NULL

query II rowsort
SELECT + 6 AS col2, 46 AS col2
----
6
46

query II rowsort
SELECT DISTINCT + 58 + 9, 95 AS col1
----
67
95

query I rowsort
SELECT ALL - 4 + 49 + - - 51
----
96

query I rowsort
SELECT 68 * - 90 * - + 71 - - 10 AS col0
----
434530

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT COUNT( - 3 ) + - 81 + - + 92 + + 83 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-9578
SELECT COUNT ( - 3 ) + - 81 + - + 92 + + 83 AS col0
----
-89

query I rowsort
SELECT DISTINCT 24 + 42
----
66

query I rowsort
SELECT ALL + 41 + - 74 AS col2
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-9581
SELECT + 11 DIV 52 + 13
----
13

skipif mysql # not compatible
query I rowsort label-9581
SELECT + 11 / 52 + 13
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT + 23 * 23 + + MAX( DISTINCT - + 27 ) AS col1
----
502

skipif mysql # not compatible
query I rowsort label-9582
SELECT + 23 * 23 + + MAX ( DISTINCT - + 27 ) AS col1
----
502

query I rowsort
SELECT 5 * + 98 + - - 34 - + 45 + - 32 * - 31 AS col1
----
1471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9584
SELECT + CAST( + - 64 AS SIGNED ) + - + ( 72 ) AS col2
----
-136

skipif mysql # not compatible
query I rowsort label-9584
SELECT + CAST ( + - 64 AS INTEGER ) + - + ( 72 ) AS col2
----
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-9585
SELECT 65 DIV 12
----
5

skipif mysql # not compatible
query I rowsort label-9585
SELECT 65 / 12
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT ALL - + MIN( ( - 93 ) )
----
93

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL - + MIN ( ( - 93 ) )
----
93

query I rowsort
SELECT DISTINCT - + 61 * - 46 * + 30 - + 40 AS col0
----
84140

query I rowsort
SELECT 34 * + - 17
----
-578

query I rowsort
SELECT ALL - 58 * 54 col0
----
-3132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9590
SELECT - ( - - CASE 18 WHEN + NULLIF ( - ( + ( - - CAST( - 54 AS SIGNED ) ) ), 48 - + CASE WHEN NOT NULL > - 80 THEN + 21 - + COUNT( * ) END + + 9 - - 80 + - + 77 * + 93 * 15 ) * - + COALESCE ( COUNT( * ), + 61 * + 51 ) + - 38 THEN + 55 / COALESCE ( - CAST( NULL AS SIGNED ), 42 + + ( - COUNT( * ) ), 49 ) WHEN + CASE WHEN NOT 73 = 54 THEN 76 + - 6 ELSE NULL END THEN + 81 ELSE - CASE + ( + 12 ) WHEN + COUNT( ALL 3 ) THEN + 64 WHEN + 36 THEN NULL END / - COUNT( * ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9590
SELECT - ( - - CASE 18 WHEN + NULLIF ( - ( + ( - - CAST ( - 54 AS INTEGER ) ) ), 48 - + CASE WHEN NOT NULL > - 80 THEN + 21 - + COUNT ( * ) END + + 9 - - 80 + - + 77 * + 93 * 15 ) * - + COALESCE ( COUNT ( * ), + 61 * + 51 ) + - 38 THEN + 55 / COALESCE ( - CAST ( NULL AS INTEGER ), 42 + + ( - COUNT ( * ) ), 49 ) WHEN + CASE WHEN NOT 73 = 54 THEN 76 + - 6 ELSE NULL END THEN + 81 ELSE - CASE + ( + 12 ) WHEN + COUNT ( ALL 3 ) THEN + 64 WHEN + 36 THEN NULL END / - COUNT ( * ) END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT 13 * - NULLIF ( 33, MAX( DISTINCT 94 ) - + 93 )
----
-429

skipif mysql # not compatible
query I rowsort label-9591
SELECT 13 * - NULLIF ( 33, MAX ( DISTINCT 94 ) - + 93 )
----
-429

query II rowsort
SELECT - 19 * 69, 48 + - 76 AS col0
----
-1311
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT DISTINCT + + CASE COALESCE ( - 67, - COUNT( * ) * + 6 * - 52 ) WHEN 86 THEN - ( + COUNT( * ) ) + 56 ELSE NULL END + 15 - + ( - 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT + + CASE COALESCE ( - 67, - COUNT ( * ) * + 6 * - 52 ) WHEN 86 THEN - ( + COUNT ( * ) ) + 56 ELSE NULL END + 15 - + ( - 96 )
----
NULL

query I rowsort
SELECT DISTINCT 34 + 39
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9595
SELECT DISTINCT - COUNT( * ) + + + 73 DIV - 2 * + + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT - COUNT ( * ) + + + 73 / - 2 * + + COUNT ( * )
----
-37

query II rowsort
SELECT ALL 19 + + + 40 * 22, 92 AS col2
----
899
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT MAX( + 43 ) + + 39 * - 13 AS col2
----
-464

skipif mysql # not compatible
query I rowsort label-9597
SELECT MAX ( + 43 ) + + 39 * - 13 AS col2
----
-464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9598
SELECT DISTINCT - 99 + + 77 + - - 12 - ( - ( COUNT( * ) ) ) * - 30 + + 91 * 70 - SUM( + - 31 ) + - 99 + ( - 27 ) * + 56 DIV 28 AS col2, + 96 DIV + CAST( NULL AS SIGNED ) + + 15 col0
----
6208
NULL

skipif mysql # not compatible
query II rowsort label-9598
SELECT DISTINCT - 99 + + 77 + - - 12 - ( - ( COUNT ( * ) ) ) * - 30 + + 91 * 70 - SUM ( + - 31 ) + - 99 + ( - 27 ) * + 56 / 28 AS col2, + 96 / + CAST ( NULL AS INTEGER ) + + 15 col0
----
6208
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9599
SELECT ALL COUNT( * ), ( - 92 ) AS col2
----
1
-92

skipif mysql # not compatible
query II rowsort label-9599
SELECT ALL COUNT ( * ), ( - 92 ) AS col2
----
1
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9600
SELECT 54 * - + COALESCE ( + + 95, - + AVG ( + 8 ), - 41, - + ( + - 6 ) - - + 83 * - + CAST( + CAST( 36 AS SIGNED ) AS SIGNED ) ) * + CASE + CASE + - 41 WHEN - ( - + 60 ) THEN NULL WHEN - + 11 THEN 67 * - 31 ELSE + ( 40 ) END WHEN - 36 THEN 9 WHEN 53 THEN ( - 1 ) WHEN + 13 / 52 + 49 THEN NULL END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT 54 * - + COALESCE ( + + 95, - + AVG ( + 8 ), - 41, - + ( + - 6 ) - - + 83 * - + CAST ( + CAST ( 36 AS INTEGER ) AS INTEGER ) ) * + CASE + CASE + - 41 WHEN - ( - + 60 ) THEN NULL WHEN - + 11 THEN 67 * - 31 ELSE + ( 40 ) END WHEN - 36 THEN 9 WHEN 53 THEN ( - 1 ) WHEN + 13 / 52 + 49 THEN NULL END * COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT 41 AS col1, - 75 * + - 9
----
41
675

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT 70 * - - MAX( 40 ) * + ( 85 ) AS col1
----
238000

skipif mysql # not compatible
query I rowsort label-9602
SELECT 70 * - - MAX ( 40 ) * + ( 85 ) AS col1
----
238000

onlyif mysql # aggregate syntax: 
query II rowsort label-9603
SELECT DISTINCT - 28 * - MAX( - 86 ), - 76 * + - MIN( - 87 ) AS col0
----
-2408
-6612

skipif mysql # not compatible
query II rowsort label-9603
SELECT DISTINCT - 28 * - MAX ( - 86 ), - 76 * + - MIN ( - 87 ) AS col0
----
-2408
-6612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9604
SELECT + COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9604
SELECT + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT ALL 24 * + 42
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT SUM( + 39 ) col2
----
39

skipif mysql # not compatible
query I rowsort label-9606
SELECT SUM ( + 39 ) col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT SUM( + + 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9607
SELECT SUM ( + + 45 ) AS col1
----
45

query II rowsort
SELECT + 33 AS col2, 48
----
33
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9609
SELECT + NULLIF ( - - ( COUNT( DISTINCT + + 44 ) ), - + COUNT( DISTINCT - + 60 ) ) AS col2, 56
----
1
56

skipif mysql # not compatible
query II rowsort label-9609
SELECT + NULLIF ( - - ( COUNT ( DISTINCT + + 44 ) ), - + COUNT ( DISTINCT - + 60 ) ) AS col2, 56
----
1
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9610
SELECT + MAX( + 72 ) * - - ( - 26 ) AS col0, + 82 AS col0
----
-1872
82

skipif mysql # not compatible
query II rowsort label-9610
SELECT + MAX ( + 72 ) * - - ( - 26 ) AS col0, + 82 AS col0
----
-1872
82

query I rowsort
SELECT + 76 - - - 76 AS col1
----
0

query I rowsort
SELECT + 31 - 91 * 56 * 88 AS col2
----
-448417

onlyif mysql # DIV for integer division: 
query I rowsort label-9613
SELECT - 1 DIV + - 48 + ( 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9613
SELECT - 1 / + - 48 + ( 83 ) AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9614
SELECT DISTINCT + 42 * - - AVG ( ALL - 67 ) * - ( - COUNT( * ) ) * + 17 * 27 + - 70 + - - 85 * 55 / - + CAST( NULL AS SIGNED ) * + - MIN( DISTINCT - - 41 ) + - 58 + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT + 42 * - - AVG ( ALL - 67 ) * - ( - COUNT ( * ) ) * + 17 * 27 + - 70 + - - 85 * 55 / - + CAST ( NULL AS INTEGER ) * + - MIN ( DISTINCT - - 41 ) + - 58 + + 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9615
SELECT + COUNT( * ) AS col2, - 3 * - CAST( NULL AS SIGNED ) / + + 24 * COUNT( * ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9615
SELECT + COUNT ( * ) AS col2, - 3 * - CAST ( NULL AS INTEGER ) / + + 24 * COUNT ( * ) AS col2
----
1
NULL

query I rowsort
SELECT + 58 * - ( 97 ) AS col2
----
-5626

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ALL - 9 * - CASE - ( 57 ) WHEN - NULLIF ( + 59, + - ( + 38 ) ) * - MAX( DISTINCT + - 48 ) + 79 / - 23 THEN 84 END + ( + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL - 9 * - CASE - ( 57 ) WHEN - NULLIF ( + 59, + - ( + 38 ) ) * - MAX ( DISTINCT + - 48 ) + 79 / - 23 THEN 84 END + ( + 34 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9618
SELECT - + 98 DIV + - 58 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9618
SELECT - + 98 / + - 58 AS col2
----
1

query II rowsort
SELECT ALL + 89, + 89
----
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT - - COUNT( * ) - - COUNT( ALL + 7 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9620
SELECT - - COUNT ( * ) - - COUNT ( ALL + 7 ) AS col2
----
2

query II rowsort
SELECT ALL 22 AS col2, 5 AS col1
----
22
5

query I rowsort
SELECT - - ( - 88 ) AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9623
SELECT - + 82, 0 - - - CAST( + 61 AS SIGNED ) AS col0
----
-82
-61

skipif mysql # not compatible
query II rowsort label-9623
SELECT - + 82, 0 - - - CAST ( + 61 AS INTEGER ) AS col0
----
-82
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9624
SELECT - 3 DIV 67 + 6 + + COUNT( * ) * 95 + + 5 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-9624
SELECT - 3 / 67 + 6 + + COUNT ( * ) * 95 + + 5 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL + COALESCE ( + 64, - 9, + COALESCE ( - 1, 75 * - - COUNT( * ) ) - 10 ) + + 34 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL + COALESCE ( + 64, - 9, + COALESCE ( - 1, 75 * - - COUNT ( * ) ) - 10 ) + + 34 AS col0
----
98

query I rowsort
SELECT - ( + + 57 ) + + 0 AS col1
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-9627
SELECT ALL + 76 * - MAX( + 17 ) AS col1, + 51 * - 26 * + 78
----
-1292
-103428

skipif mysql # not compatible
query II rowsort label-9627
SELECT ALL + 76 * - MAX ( + 17 ) AS col1, + 51 * - 26 * + 78
----
-1292
-103428

onlyif mysql # DIV for integer division: 
query I rowsort label-9628
SELECT - - 71 DIV - + 99 * - 82
----
0

skipif mysql # not compatible
query I rowsort label-9628
SELECT - - 71 / - + 99 * - 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9629
SELECT ALL - 65 + + - 83 / + COUNT( + 20 ) * - + 78 / + CAST( NULL AS SIGNED ) * 54 + ( - 75 ) + + - SUM( - + 76 ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL - 65 + + - 83 / + COUNT ( + 20 ) * - + 78 / + CAST ( NULL AS INTEGER ) * 54 + ( - 75 ) + + - SUM ( - + 76 ) - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9630
SELECT - ( + COUNT( DISTINCT - 57 ) ) AS col0, + ( + - 40 )
----
-1
-40

skipif mysql # not compatible
query II rowsort label-9630
SELECT - ( + COUNT ( DISTINCT - 57 ) ) AS col0, + ( + - 40 )
----
-1
-40

query I rowsort
SELECT ALL - - 91 + - 2 AS col1
----
89

query II rowsort
SELECT DISTINCT - 25 col0, 64 AS col2
----
-25
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT ALL + COUNT( * ) + - 44 + - NULLIF ( - + 4, + 77 + + 73 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL + COUNT ( * ) + - 44 + - NULLIF ( - + 4, + 77 + + 73 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT DISTINCT - - 41 + + MAX( - 74 )
----
-33

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT - - 41 + + MAX ( - 74 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT ALL - 13 * COUNT( * ) * - - 60
----
-780

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL - 13 * COUNT ( * ) * - - 60
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT - 90 - - - MIN( DISTINCT - 14 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-9636
SELECT - 90 - - - MIN ( DISTINCT - 14 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT - CASE - 52 WHEN + 97 THEN - NULLIF ( 2, COUNT( * ) ) END - 8 / + + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT - CASE - 52 WHEN + 97 THEN - NULLIF ( 2, COUNT ( * ) ) END - 8 / + + 66 AS col2
----
NULL

query I rowsort
SELECT + 72 * - 26 * + 79 AS col1
----
-147888

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT DISTINCT ( MAX( DISTINCT - + 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT ( MAX ( DISTINCT - + 56 ) )
----
-56

query I rowsort
SELECT ALL ( + + ( + 5 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT - COUNT( 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-9641
SELECT - COUNT ( 37 )
----
-1

query I rowsort
SELECT - 15 * + COALESCE ( - - COALESCE ( + 53, 39 ), + 72, 11 ) - + 62 AS col0
----
-857

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT DISTINCT + NULLIF ( - 11, + - COUNT( * ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT + NULLIF ( - 11, + - COUNT ( * ) ) AS col2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9644
SELECT - CAST( NULL AS SIGNED ) / + 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9644
SELECT - CAST ( NULL AS INTEGER ) / + 38 col0
----
NULL

query I rowsort
SELECT + 82 * - 69
----
-5658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9646
SELECT + COUNT( * ) * - - 35, - CASE - COUNT( * ) WHEN - 26 THEN - 20 WHEN - 5 THEN ( + - 4 ) + - + 72 WHEN MIN( DISTINCT + NULLIF ( + - 57, 69 ) ) THEN - 27 / CAST( 56 AS SIGNED ) ELSE NULL END AS col1
----
35
NULL

skipif mysql # not compatible
query II rowsort label-9646
SELECT + COUNT ( * ) * - - 35, - CASE - COUNT ( * ) WHEN - 26 THEN - 20 WHEN - 5 THEN ( + - 4 ) + - + 72 WHEN MIN ( DISTINCT + NULLIF ( + - 57, 69 ) ) THEN - 27 / CAST ( 56 AS INTEGER ) ELSE NULL END AS col1
----
35
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9647
SELECT DISTINCT + COUNT( * ) * + 58 DIV - 65 * - COUNT( * ), 57 col0
----
0
57

skipif mysql # not compatible
query II rowsort label-9647
SELECT DISTINCT + COUNT ( * ) * + 58 / - 65 * - COUNT ( * ), 57 col0
----
0
57

query I rowsort
SELECT + 38 * + 97
----
3686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9649
SELECT ALL + COUNT( ALL + + 38 ) * - 11 + - 8 + + COALESCE ( - 26, + 30 ) + 59 DIV + + 67 * + 46
----
-45

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL + COUNT ( ALL + + 38 ) * - 11 + - 8 + + COALESCE ( - 26, + 30 ) + 59 / + + 67 * + 46
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT - COUNT( ALL + 2 ) * + 76 + + - 46 * 70 * + COUNT( DISTINCT - 20 )
----
-3296

skipif mysql # not compatible
query I rowsort label-9650
SELECT - COUNT ( ALL + 2 ) * + 76 + + - 46 * 70 * + COUNT ( DISTINCT - 20 )
----
-3296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9651
SELECT - 5 * 48 + CAST( + + 22 AS SIGNED )
----
-218

skipif mysql # not compatible
query I rowsort label-9651
SELECT - 5 * 48 + CAST ( + + 22 AS INTEGER )
----
-218

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT DISTINCT - 64 * 56 + 30 - - 2 * 0 + + - ( + COUNT( * ) ) AS col0
----
-3555

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT - 64 * 56 + 30 - - 2 * 0 + + - ( + COUNT ( * ) ) AS col0
----
-3555

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT + - COUNT( ALL + 72 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9653
SELECT + - COUNT ( ALL + 72 ) AS col1
----
-1

query I rowsort
SELECT + 92 + + - 29 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT + + CASE 30 WHEN + + 23 THEN NULL WHEN + - COUNT( * ) THEN NULL WHEN + 0 * + 42 THEN + CASE 19 WHEN + 94 THEN NULL WHEN + - ( - + 86 ) + - - 39 - - CASE - + 17 WHEN - 15 + - + 75 * 19 * - COALESCE ( + 37, - 36 ) THEN NULL WHEN - 55 THEN - + COUNT( * ) WHEN COUNT( * ) * 4 + + COUNT( * ) THEN 66 END / - 62 * ( - 71 ) THEN 43 * - 2 + + CASE 38 + - ( - 46 ) WHEN ( - 99 ) THEN NULL WHEN 95 + - 21 THEN 60 END * 7 ELSE NULL END + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT + + CASE 30 WHEN + + 23 THEN NULL WHEN + - COUNT ( * ) THEN NULL WHEN + 0 * + 42 THEN + CASE 19 WHEN + 94 THEN NULL WHEN + - ( - + 86 ) + - - 39 - - CASE - + 17 WHEN - 15 + - + 75 * 19 * - COALESCE ( + 37, - 36 ) THEN NULL WHEN - 55 THEN - + COUNT ( * ) WHEN COUNT ( * ) * 4 + + COUNT ( * ) THEN 66 END / - 62 * ( - 71 ) THEN 43 * - 2 + + CASE 38 + - ( - 46 ) WHEN ( - 99 ) THEN NULL WHEN 95 + - 21 THEN 60 END * 7 ELSE NULL END + 62 END
----
NULL

query I rowsort
SELECT + - 75 + - 14 - 7 * - 11 + 50 * - 49
----
-2462

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL 89 * 76 * - - SUM( 85 ) + - NULLIF ( + 34, CASE + 98 WHEN - + 44 / + COUNT( * ) THEN NULL WHEN + 56 + + 45 THEN - - MIN( DISTINCT + - 7 ) ELSE - - ( + - 63 ) + - 82 END * - - 9 ) * + 3
----
574838

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL 89 * 76 * - - SUM ( 85 ) + - NULLIF ( + 34, CASE + 98 WHEN - + 44 / + COUNT ( * ) THEN NULL WHEN + 56 + + 45 THEN - - MIN ( DISTINCT + - 7 ) ELSE - - ( + - 63 ) + - 82 END * - - 9 ) * + 3
----
574838

query II rowsort
SELECT - 95 * + 48, + 33 * - 36 * + - 52 AS col1
----
-4560
61776

query I rowsort
SELECT - + 59 + - - 63 * + 87
----
5422

query I rowsort
SELECT ALL + ( 19 ) + + + 76 AS col0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9661
SELECT + MIN( - NULLIF ( + + ( 46 ), - 71 ) ) AS col2, COUNT( * ) * + 58 * - 54
----
-46
-3132

skipif mysql # not compatible
query II rowsort label-9661
SELECT + MIN ( - NULLIF ( + + ( 46 ), - 71 ) ) AS col2, COUNT ( * ) * + 58 * - 54
----
-46
-3132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9662
SELECT + CAST( NULL AS SIGNED ) * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT + CAST ( NULL AS INTEGER ) * 33
----
NULL

query I rowsort
SELECT - 55 * + + 63
----
-3465

query I rowsort
SELECT + 66 + - 75 - - - 27
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT - 72 - + - 22 + - 29 * - + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-9665
SELECT - 72 - + - 22 + - 29 * - + COUNT ( * )
----
-21

query I rowsort
SELECT ALL ( ( + + 89 ) ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT - 36 + + COUNT( * ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-9667
SELECT - 36 + + COUNT ( * ) AS col2
----
-35

query I rowsort
SELECT DISTINCT NULLIF ( - 93, NULLIF ( 89, AVG ( - 37 ) ) )
----
-93

query I rowsort
SELECT DISTINCT + 65 * - 89 AS col2
----
-5785

query I rowsort
SELECT 98 * - 66 AS col0
----
-6468

query II rowsort
SELECT 9 AS col0, - 72 - - 95 + + 56
----
9
79

query I rowsort
SELECT DISTINCT - ( - ( + - ( + 88 ) ) )
----
-88

query I rowsort
SELECT 49 + 51
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9674
SELECT ALL - CAST( COUNT( ALL + 18 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL - CAST ( COUNT ( ALL + 18 ) AS INTEGER )
----
-1

query II rowsort
SELECT 23 * 87 * + + 59, 44 AS col0
----
118059
44

query I rowsort
SELECT DISTINCT + 3 * + 66 AS col2
----
198

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9677
SELECT - COALESCE ( + 72, - CAST( + + 46 AS SIGNED ) DIV - 70, - - 92 ) DIV - - 43
----
-1

skipif mysql # not compatible
query I rowsort label-9677
SELECT - COALESCE ( + 72, - CAST ( + + 46 AS INTEGER ) / - 70, - - 92 ) / - - 43
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9678
SELECT + COALESCE ( SUM( - 30 ), - 16 + - - 17 ), 15 AS col2
----
-30
15

skipif mysql # not compatible
query II rowsort label-9678
SELECT + COALESCE ( SUM ( - 30 ), - 16 + - - 17 ), 15 AS col2
----
-30
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT DISTINCT - + 87 + + + ( - COUNT( * ) )
----
-88

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT - + 87 + + + ( - COUNT ( * ) )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9680
SELECT 78 DIV - 29 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9680
SELECT 78 / - 29 AS col1
----
-2

query I rowsort
SELECT + 29 - + 27 + - 14 + - 91
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT DISTINCT + - 82 * 82 * + COALESCE ( - 91, - - 9 * + MIN( DISTINCT - - 35 ) )
----
611884

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT + - 82 * 82 * + COALESCE ( - 91, - - 9 * + MIN ( DISTINCT - - 35 ) )
----
611884

query I rowsort
SELECT ALL 96 + + 17 * 80 * + 77
----
104816

onlyif mysql # aggregate syntax: 
query II rowsort label-9684
SELECT + 30, - COUNT( * ) AS col1
----
30
-1

skipif mysql # not compatible
query II rowsort label-9684
SELECT + 30, - COUNT ( * ) AS col1
----
30
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9685
SELECT DISTINCT - - NULLIF ( + 86, COALESCE ( - CAST( NULL AS SIGNED ), 40 + + + 94 ) + + COUNT( * ) ) col2
----
86

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT - - NULLIF ( + 86, COALESCE ( - CAST ( NULL AS INTEGER ), 40 + + + 94 ) + + COUNT ( * ) ) col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT - ( + 13 ) - + COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-9686
SELECT - ( + 13 ) - + COUNT ( * ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT DISTINCT - MAX( ALL - - 41 ) - - + COUNT( * ) + + 97
----
57

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT - MAX ( ALL - - 41 ) - - + COUNT ( * ) + + 97
----
57

query I rowsort
SELECT DISTINCT 80 * - - 94
----
7520

query II rowsort
SELECT 62, 31 + + 51 AS col0
----
62
82

query I rowsort
SELECT ( 82 ) + - 34 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT DISTINCT 66 * + CASE 73 WHEN + 30 THEN + COUNT( * ) / + 71 + - NULLIF ( - 78, - + 58 ) WHEN + - MIN( DISTINCT - 16 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT DISTINCT 66 * + CASE 73 WHEN + 30 THEN + COUNT ( * ) / + 71 + - NULLIF ( - 78, - + 58 ) WHEN + - MIN ( DISTINCT - 16 ) THEN NULL END
----
NULL

query I rowsort
SELECT 8 * + ( + 83 ) AS col2
----
664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9693
SELECT - 64 AS col2, 96 + - + MIN( CAST( 80 AS SIGNED ) ) AS col2
----
-64
16

skipif mysql # not compatible
query II rowsort label-9693
SELECT - 64 AS col2, 96 + - + MIN ( CAST ( 80 AS INTEGER ) ) AS col2
----
-64
16

query II rowsort
SELECT 0 AS col0, 71
----
0
71

query II rowsort
SELECT ALL 66 col2, 54 * - CASE - - 57 WHEN - 29 THEN NULL WHEN - + 75 THEN 50 - CASE NULLIF ( - + 5, NULLIF ( - 17, 23 ) ) WHEN - 41 THEN NULL WHEN + 81 * + 53 THEN + + NULLIF ( - 15, - + 17 ) * - - 92 END END AS col2
----
66
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9696
SELECT ALL 17 AS col1, COUNT( * ) DIV 59 DIV 1 DIV + + COUNT( * ) * - 41 AS col1
----
17
0

skipif mysql # not compatible
query II rowsort label-9696
SELECT ALL 17 AS col1, COUNT ( * ) / 59 / 1 / + + COUNT ( * ) * - 41 AS col1
----
17
0

query I rowsort
SELECT 98 / + CASE 67 WHEN - 89 THEN 36 END
----
NULL

query I rowsort
SELECT 33 * + 78
----
2574

query III rowsort
SELECT ALL 75 AS col0, + 58 * 74 * 72 AS col0, + + 43 * 22
----
75
309024
946

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT COUNT( * ) * + ( - - 62 )
----
62

skipif mysql # not compatible
query I rowsort label-9700
SELECT COUNT ( * ) * + ( - - 62 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9701
SELECT ALL - MIN( ALL CAST( NULL AS DECIMAL ) ) * + 52 + + 96 AS col0, NULLIF ( + + 27, + + 23 ) + CAST( - 95 AS SIGNED )
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-9701
SELECT ALL - MIN ( ALL CAST ( NULL AS REAL ) ) * + 52 + + 96 AS col0, NULLIF ( + + 27, + + 23 ) + CAST ( - 95 AS INTEGER )
----
NULL
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-9702
SELECT DISTINCT 52 DIV - 36 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT 52 / - 36 AS col2
----
-1

query II rowsort
SELECT + 47 + - - ( 50 ) * - 74 col0, 15
----
-3653
15

query I rowsort
SELECT ALL + 30 + - 48 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query III rowsort label-9705
SELECT ( + COUNT( * ) ) AS col1, + 57 * + + 26 AS col1, - 16
----
1
1482
-16

skipif mysql # not compatible
query III rowsort label-9705
SELECT ( + COUNT ( * ) ) AS col1, + 57 * + + 26 AS col1, - 16
----
1
1482
-16

query I rowsort
SELECT - 89 * - 81 + - 26
----
7183

query II rowsort
SELECT ALL - 21, + 25 col0
----
-21
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT ALL - 80 + + MIN( DISTINCT - 6 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL - 80 + + MIN ( DISTINCT - 6 ) AS col2
----
-86

query I rowsort
SELECT ALL 83 + + + 5 + - CASE - 28 WHEN + - 55 THEN 51 ELSE NULL END * 80
----
NULL

query I rowsort
SELECT - 27 + + NULLIF ( - ( + 72 ), + + 10 ) AS col1
----
-99

query I rowsort
SELECT ALL + 89 + + 38 AS col1
----
127

query I rowsort
SELECT - COALESCE ( 95, + ( - ( 64 ) ) )
----
-95

query I rowsort
SELECT ( - 1 ) * + 93
----
-93

query I rowsort
SELECT DISTINCT - 87 - - 29 AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9715
SELECT + CAST( + 22 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-9715
SELECT + CAST ( + 22 AS INTEGER )
----
22

query II rowsort
SELECT + 70 AS col2, - NULLIF ( + - ( 17 ), 68 )
----
70
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9717
SELECT 82 * - CAST( + + 31 AS SIGNED )
----
-2542

skipif mysql # not compatible
query I rowsort label-9717
SELECT 82 * - CAST ( + + 31 AS INTEGER )
----
-2542

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9718
SELECT COUNT( * ) + - + 13 DIV - 77 col1
----
1

skipif mysql # not compatible
query I rowsort label-9718
SELECT COUNT ( * ) + - + 13 / - 77 col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9719
SELECT DISTINCT - 3, COUNT( * ) AS col2
----
-3
1

skipif mysql # not compatible
query II rowsort label-9719
SELECT DISTINCT - 3, COUNT ( * ) AS col2
----
-3
1

query I rowsort
SELECT ALL - 93 * - 30 AS col2
----
2790

query I rowsort
SELECT DISTINCT - 37 * - COALESCE ( - 63, - 18 ) AS col0
----
-2331

query I rowsort
SELECT ALL + 82 * - - 39 AS col2
----
3198

query I rowsort
SELECT - 66 - - 43 AS col0
----
-23

query I rowsort
SELECT - 83 * 10
----
-830

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT - MAX( ALL - 97 )
----
97

skipif mysql # not compatible
query I rowsort label-9725
SELECT - MAX ( ALL - 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT - 77 + COUNT( + 88 )
----
-76

skipif mysql # not compatible
query I rowsort label-9726
SELECT - 77 + COUNT ( + 88 )
----
-76

query II rowsort
SELECT + 41 * - 6, - ( + 68 ) AS col1
----
-246
-68

query I rowsort
SELECT ALL 47 + + 51
----
98

query I rowsort
SELECT + 53 + + + 52 * - 50 AS col0
----
-2547

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9730
SELECT DISTINCT - COALESCE ( - - 57, MAX( ALL - + 87 ) DIV 0 + + 93 * - 93 ) + - 7 + - 53 DIV + ( + + 86 ) * SUM( + 8 ) + + 16
----
-48

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT - COALESCE ( - - 57, MAX ( ALL - + 87 ) / 0 + + 93 * - 93 ) + - 7 + - 53 / + ( + + 86 ) * SUM ( + 8 ) + + 16
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9731
SELECT ALL CAST( NULL AS SIGNED ) + - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL CAST ( NULL AS INTEGER ) + - 81 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9732
SELECT ALL 0 * - + CAST( NULL AS DECIMAL ) col1, + 16 AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-9732
SELECT ALL 0 * - + CAST ( NULL AS REAL ) col1, + 16 AS col1
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT + 23 + - 65 * + COUNT( - 43 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-9733
SELECT + 23 + - 65 * + COUNT ( - 43 ) AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9734
SELECT ALL CAST( NULL AS SIGNED ) + - 49 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL CAST ( NULL AS INTEGER ) + - 49 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT + 75 + + + ( COUNT( * ) )
----
76

skipif mysql # not compatible
query I rowsort label-9735
SELECT + 75 + + + ( COUNT ( * ) )
----
76

query I rowsort
SELECT + 71 * - 34 * 77 * + + 24
----
-4461072

query I rowsort
SELECT NULLIF ( + ( + 85 ), + 86 )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9738
SELECT ALL 28 DIV 95 DIV - + CAST( + MIN( DISTINCT - 20 ) AS SIGNED ) + + SUM( 74 )
----
74

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL 28 / 95 / - + CAST ( + MIN ( DISTINCT - 20 ) AS INTEGER ) + + SUM ( 74 )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9739
SELECT ALL - + 21 * + CAST( + 70 AS SIGNED ) * + 68 + 37
----
-99923

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL - + 21 * + CAST ( + 70 AS INTEGER ) * + 68 + 37
----
-99923

query I rowsort
SELECT ALL + 73 * + 72 - + 85 * + 89 AS col2
----
-2309

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT + NULLIF ( 65, - 61 * + COUNT( * ) )
----
65

skipif mysql # not compatible
query I rowsort label-9741
SELECT + NULLIF ( 65, - 61 * + COUNT ( * ) )
----
65

query II rowsort
SELECT - 48 * + 40 AS col1, 3 AS col2
----
-1920
3

query I rowsort
SELECT DISTINCT - - 15 * + ( + 28 ) AS col1
----
420

query I rowsort
SELECT DISTINCT + NULLIF ( + ( + - 10 ), + ( + 45 ) )
----
-10

query I rowsort
SELECT + 14 - + - 69 AS col0
----
83

query I rowsort
SELECT ALL + 7 * - 35 * + 77 - 77
----
-18942

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT - - 36 * + + CASE - + 36 WHEN + - 78 - + 87 / + 11 THEN - - 61 END * - 57 * COUNT( 10 ) * - 21 + ( + 45 ) * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT - - 36 * + + CASE - + 36 WHEN + - 78 - + 87 / + 11 THEN - - 61 END * - 57 * COUNT ( 10 ) * - 21 + ( + 45 ) * + 20
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9748
SELECT COUNT( * ) AS col0, 40 * - 74 * - 17 + + + COUNT( * ) + SUM( ALL - 83 ) AS col0
----
1
50238

skipif mysql # not compatible
query II rowsort label-9748
SELECT COUNT ( * ) AS col0, 40 * - 74 * - 17 + + + COUNT ( * ) + SUM ( ALL - 83 ) AS col0
----
1
50238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9749
SELECT ALL + COUNT( * ) DIV 47 * - 46
----
0

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL + COUNT ( * ) / 47 * - 46
----
0

query I rowsort
SELECT DISTINCT + 6 * - + 51
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT ALL + COUNT( * ) * 2 + - + 0 col2
----
2

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL + COUNT ( * ) * 2 + - + 0 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT - CASE + COUNT( * ) WHEN + 73 THEN - 65 * + 19 * - + 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT - CASE + COUNT ( * ) WHEN + 73 THEN - 65 * + 19 * - + 85 END
----
NULL

query I rowsort
SELECT - 53 * + + 56 AS col2
----
-2968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9754
SELECT ALL COALESCE ( + 41, + + 22 DIV + - 90 * + 48, ( - COUNT( * ) ) )
----
41

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL COALESCE ( + 41, + + 22 / + - 90 * + 48, ( - COUNT ( * ) ) )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL - 52 + - 84 * COUNT( * )
----
-136

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - 52 + - 84 * COUNT ( * )
----
-136

query II rowsort
SELECT ALL 71 AS col2, + 29 AS col0
----
71
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT - MAX( - - 88 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-9757
SELECT - MAX ( - - 88 ) AS col0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9758
SELECT 49, 12 + + 30 + + + COUNT( * ) + + - 73 DIV + 12 AS col0
----
49
37

skipif mysql # not compatible
query II rowsort label-9758
SELECT 49, 12 + + 30 + + + COUNT ( * ) + + - 73 / + 12 AS col0
----
49
37

query I rowsort
SELECT - 94 + - + 15 AS col0
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9760
SELECT ALL - 16 + 7 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL - 16 + 7 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9761
SELECT ALL CAST( + 28 AS SIGNED ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL CAST ( + 28 AS INTEGER ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT - 87 - - CASE - - 2 WHEN - ( + - 61 ) + + - 82 THEN NULL WHEN + - 34 * 71 + + + 87 + + 67 + - 9 THEN NULL WHEN - 23 + + + 35 - + 99 THEN + - 72 * + + COUNT( - 85 ) * + 20 + - NULLIF ( + 10, - NULLIF ( + CASE - 95 WHEN - COALESCE ( - + 90, + 42 - - + 91, - 99 ) THEN - ( - 96 ) END, 15 ) ) / - 65 + - 85 * 90 END + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9762
SELECT - 87 - - CASE - - 2 WHEN - ( + - 61 ) + + - 82 THEN NULL WHEN + - 34 * 71 + + + 87 + + 67 + - 9 THEN NULL WHEN - 23 + + + 35 - + 99 THEN + - 72 * + + COUNT ( - 85 ) * + 20 + - NULLIF ( + 10, - NULLIF ( + CASE - 95 WHEN - COALESCE ( - + 90, + 42 - - + 91, - 99 ) THEN - ( - 96 ) END, 15 ) ) / - 65 + - 85 * 90 END + - 65
----
NULL

query III rowsort
SELECT ALL 58 + - 27 * - - 38 AS col1, 44 AS col1, 98 + - 78 * - 22 AS col2
----
-968
44
1814

query I rowsort
SELECT + - 2 * - 37 + - ( - 88 )
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT - + 33 + + + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-9765
SELECT - + 33 + + + COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-9766
SELECT + - ( 93 ) + - + COUNT( * ) + + ( - + ( 86 ) ) AS col1, + 95
----
-180
95

skipif mysql # not compatible
query II rowsort label-9766
SELECT + - ( 93 ) + - + COUNT ( * ) + + ( - + ( 86 ) ) AS col1, + 95
----
-180
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9767
SELECT - + NULLIF ( + CAST( + 95 AS SIGNED ), 35 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-9767
SELECT - + NULLIF ( + CAST ( + 95 AS INTEGER ), 35 ) AS col2
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9768
SELECT DISTINCT + 33 DIV + - 51 - + 3 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT + 33 / + - 51 - + 3 AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9769
SELECT + - 9 * - - 31 * + COUNT( * ) + 96 + + COUNT( * ) DIV - COUNT( * )
----
-184

skipif mysql # not compatible
query I rowsort label-9769
SELECT + - 9 * - - 31 * + COUNT ( * ) + 96 + + COUNT ( * ) / - COUNT ( * )
----
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9770
SELECT - + CASE CAST( NULL AS SIGNED ) WHEN - 16 THEN - 31 END * - - CAST( - - 35 AS SIGNED ) + - + ( + CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col1, + SUM( ALL + CAST( 68 AS SIGNED ) ) * MAX( 94 ) col2
----
NULL
6392

skipif mysql # not compatible
query II rowsort label-9770
SELECT - + CASE CAST ( NULL AS INTEGER ) WHEN - 16 THEN - 31 END * - - CAST ( - - 35 AS INTEGER ) + - + ( + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col1, + SUM ( ALL + CAST ( 68 AS INTEGER ) ) * MAX ( 94 ) col2
----
NULL
6392

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT + COUNT( * ) + 64
----
65

skipif mysql # not compatible
query I rowsort label-9771
SELECT + COUNT ( * ) + 64
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-9772
SELECT + 32 AS col0, 47 * 92 * 0 * - + NULLIF ( 68, + 6 + - - MAX( - + 11 ) * + 35 + + + 30 / + 54 * 32 / 80 ) - + 71 col1
----
32
-71

skipif mysql # not compatible
query II rowsort label-9772
SELECT + 32 AS col0, 47 * 92 * 0 * - + NULLIF ( 68, + 6 + - - MAX ( - + 11 ) * + 35 + + + 30 / + 54 * 32 / 80 ) - + 71 col1
----
32
-71

query II rowsort
SELECT DISTINCT + + 24 AS col2, ( 97 ) * - 3 * + + 27
----
24
-7857

query I rowsort
SELECT + - 57 + + COALESCE ( + 94, + 88 ) AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9775
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0, 57 + - COUNT( DISTINCT + CAST( - 47 AS SIGNED ) ) - + NULLIF ( 68, - - 24 ) col1
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-9775
SELECT ALL + CAST ( NULL AS REAL ) AS col0, 57 + - COUNT ( DISTINCT + CAST ( - 47 AS INTEGER ) ) - + NULLIF ( 68, - - 24 ) col1
----
NULL
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT + 34 DIV - 93 col2
----
0

skipif mysql # not compatible
query I rowsort label-9776
SELECT + 34 / - 93 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9777
SELECT DISTINCT + 43 DIV 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9777
SELECT DISTINCT + 43 / 66 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT - 26 * COUNT( * ) + + 65 * - - 66 * - 9 AS col1
----
-38636

skipif mysql # not compatible
query I rowsort label-9778
SELECT - 26 * COUNT ( * ) + + 65 * - - 66 * - 9 AS col1
----
-38636

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT ALL - SUM( ALL + + 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL - SUM ( ALL + + 57 ) AS col1
----
-57

query I rowsort
SELECT DISTINCT 37 * + 21 AS col1
----
777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9781
SELECT ALL + COALESCE ( - 81, + - 82 + - 54 * - + 84 * 45 * + 37, - 39 ) + ( - 49 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL + COALESCE ( - 81, + - 82 + - 54 * - + 84 * 45 * + 37, - 39 ) + ( - 49 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT ALL - 65 + CASE - - 62 WHEN 54 THEN + 51 WHEN + COUNT( * ) THEN NULL ELSE NULL END + - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL - 65 + CASE - - 62 WHEN 54 THEN + 51 WHEN + COUNT ( * ) THEN NULL ELSE NULL END + - 16 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 1 + - + 3
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL 94 + + MIN( 48 ) * 94 + + + 64 AS col0
----
4670

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL 94 + + MIN ( 48 ) * 94 + + + 64 AS col0
----
4670

query I rowsort
SELECT ALL - 20 + - - 37 + - - 11 + 0 + - 21 AS col0
----
7

query I rowsort
SELECT 49 + - 39 + - 96 + - 78 AS col2
----
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-9787
SELECT DISTINCT + 75 DIV + 83 * + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT + 75 / + 83 * + 96 AS col2
----
0

query I rowsort
SELECT 39 + + + 23
----
62

query I rowsort
SELECT DISTINCT - 85 - - - 4 + 81 + 79 + + + 97
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9790
SELECT ALL COUNT( - + 91 ) AS col0, ( 23 ) + + COUNT( * ) + - CAST( NULL AS SIGNED ) * + 68 * - COALESCE ( - 19, - + 79 * + + COALESCE ( + 40, COUNT( * ) * + NULLIF ( + 6, + ( + 15 ) ) + + 75, COUNT( - 86 ) ) ) / - 24 + - 87 + - ( + 21 ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9790
SELECT ALL COUNT ( - + 91 ) AS col0, ( 23 ) + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + 68 * - COALESCE ( - 19, - + 79 * + + COALESCE ( + 40, COUNT ( * ) * + NULLIF ( + 6, + ( + 15 ) ) + + 75, COUNT ( - 86 ) ) ) / - 24 + - 87 + - ( + 21 ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9791
SELECT ALL + + MAX( ALL - + 76 ) * - COUNT( * ) - 78, - ( - - COUNT( * ) ) col1
----
-2
-1

skipif mysql # not compatible
query II rowsort label-9791
SELECT ALL + + MAX ( ALL - + 76 ) * - COUNT ( * ) - 78, - ( - - COUNT ( * ) ) col1
----
-2
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT DISTINCT - + 23 - COUNT( * ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT - + 23 - COUNT ( * ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT ALL + + ( + - 81 ) * - SUM( + - 26 ) + - - 16 col1
----
-2090

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL + + ( + - 81 ) * - SUM ( + - 26 ) + - - 16 col1
----
-2090

query I rowsort
SELECT - 46 * 98 AS col1
----
-4508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9795
SELECT + 16 + - + 41 + CASE - AVG ( - CAST( - 6 AS SIGNED ) ) WHEN 72 THEN + MAX( - ( + + 17 ) ) WHEN - - CAST( NULL AS DECIMAL ) THEN - + 48 ELSE NULL END * - 3 / + 82 AS col2, + 47
----
NULL
47

skipif mysql # not compatible
query II rowsort label-9795
SELECT + 16 + - + 41 + CASE - AVG ( - CAST ( - 6 AS INTEGER ) ) WHEN 72 THEN + MAX ( - ( + + 17 ) ) WHEN - - CAST ( NULL AS REAL ) THEN - + 48 ELSE NULL END * - 3 / + 82 AS col2, + 47
----
NULL
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT + 30 + - + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-9796
SELECT + 30 + - + COUNT ( * )
----
29

query I rowsort
SELECT ( 25 ) * + 24 col2
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT + NULLIF ( 37, - + CASE 52 WHEN - ( 72 ) THEN 77 WHEN + - 0 THEN + - AVG ( ALL - + 34 ) WHEN + 35 THEN + - COUNT( * ) ELSE 63 / 97 + + 98 + 15 + + - 18 + + 76 * + 3 END + - + 97 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9798
SELECT + NULLIF ( 37, - + CASE 52 WHEN - ( 72 ) THEN 77 WHEN + - 0 THEN + - AVG ( ALL - + 34 ) WHEN + 35 THEN + - COUNT ( * ) ELSE 63 / 97 + + 98 + 15 + + - 18 + + 76 * + 3 END + - + 97 ) AS col0
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9799
SELECT - 5 * + 45 - + AVG ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9799
SELECT - 5 * + 45 - + AVG ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9800
SELECT DISTINCT + + MIN( DISTINCT + - 39 ) DIV - 31
----
1

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT + + MIN ( DISTINCT + - 39 ) / - 31
----
1

query I rowsort
SELECT ALL 62 * 19 AS col2
----
1178

onlyif mysql # aggregate syntax: 
query II rowsort label-9802
SELECT - COUNT( * ) * + 73 * - 15 + + 99 col1, 79
----
1194
79

skipif mysql # not compatible
query II rowsort label-9802
SELECT - COUNT ( * ) * + 73 * - 15 + + 99 col1, 79
----
1194
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT + - ( + COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9803
SELECT + - ( + COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT DISTINCT 96 + 36 AS col1
----
132

query I rowsort
SELECT 7 - + 14 * + + 57 * 53
----
-42287

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT DISTINCT + MIN( + 89 ) + 22 - + - 66 AS col0
----
177

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT + MIN ( + 89 ) + 22 - + - 66 AS col0
----
177

query II rowsort
SELECT DISTINCT - 91 AS col2, - 17 - - - 94 AS col0
----
-91
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-9808
SELECT ALL MAX( + 79 ) + + 45 AS col2, COALESCE ( + 84, 7 )
----
124
84

skipif mysql # not compatible
query II rowsort label-9808
SELECT ALL MAX ( + 79 ) + + 45 AS col2, COALESCE ( + 84, 7 )
----
124
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9809
SELECT DISTINCT 54 DIV + - 43
----
-1

skipif mysql # not compatible
query I rowsort label-9809
SELECT DISTINCT 54 / + - 43
----
-1

query I rowsort
SELECT ALL + 88 + 67 AS col0
----
155

query I rowsort
SELECT ALL - 34 + + 59
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9812
SELECT ALL 88 DIV + MAX( - 46 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL 88 / + MAX ( - 46 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9813
SELECT 49 DIV - 19 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9813
SELECT 49 / - 19 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT ALL ( - + COUNT( * ) ) * + 88 + - 85 + + 10 - + 14 * + 83 - + 24 * - ( - 14 )
----
-1661

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL ( - + COUNT ( * ) ) * + 88 + - 85 + + 10 - + 14 * + 83 - + 24 * - ( - 14 )
----
-1661

query I rowsort
SELECT ( 77 ) + + - COALESCE ( 80, + 80 ) * + 7
----
-483

onlyif mysql # aggregate syntax: 
query II rowsort label-9816
SELECT ALL ( COUNT( * ) ) * + 3 AS col1, + 71
----
3
71

skipif mysql # not compatible
query II rowsort label-9816
SELECT ALL ( COUNT ( * ) ) * + 3 AS col1, + 71
----
3
71

query II rowsort
SELECT DISTINCT 31 AS col2, 65
----
31
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT ALL ( 10 ) * - + COUNT( ALL - 55 ) + 15 col0
----
5

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL ( 10 ) * - + COUNT ( ALL - 55 ) + 15 col0
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-9819
SELECT DISTINCT 70 AS col0, + 96 DIV + - 9 AS col1
----
70
-10

skipif mysql # not compatible
query II rowsort label-9819
SELECT DISTINCT 70 AS col0, + 96 / + - 9 AS col1
----
70
-10

query I rowsort
SELECT - ( - NULLIF ( + + 75, - - 93 ) )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT DISTINCT NULLIF ( - 66, + 95 - 78 + - COALESCE ( - COUNT( * ), MAX( DISTINCT + + ( - 54 ) ) ) ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT NULLIF ( - 66, + 95 - 78 + - COALESCE ( - COUNT ( * ), MAX ( DISTINCT + + ( - 54 ) ) ) ) AS col0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9822
SELECT - - NULLIF ( - 77, + - CAST( - 89 AS SIGNED ) )
----
-77

skipif mysql # not compatible
query I rowsort label-9822
SELECT - - NULLIF ( - 77, + - CAST ( - 89 AS INTEGER ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT + 44 + - - AVG ( - 25 ) + - AVG ( - ( - - 34 ) ) * - CASE + + 46 WHEN + + MAX( DISTINCT + - 72 ) THEN - 54 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9823
SELECT + 44 + - - AVG ( - 25 ) + - AVG ( - ( - - 34 ) ) * - CASE + + 46 WHEN + + MAX ( DISTINCT + - 72 ) THEN - 54 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 14 * + - 47 AS col1
----
-658

onlyif mysql # aggregate syntax: 
query II rowsort label-9825
SELECT - 53 - - COUNT( * ) + COUNT( * ) AS col2, - 74 * + + 29 AS col0
----
-51
-2146

skipif mysql # not compatible
query II rowsort label-9825
SELECT - 53 - - COUNT ( * ) + COUNT ( * ) AS col2, - 74 * + + 29 AS col0
----
-51
-2146

onlyif mysql # aggregate syntax: 
query II rowsort label-9826
SELECT - COUNT( * ) AS col2, 40 * 56
----
-1
2240

skipif mysql # not compatible
query II rowsort label-9826
SELECT - COUNT ( * ) AS col2, 40 * 56
----
-1
2240

onlyif mysql # aggregate syntax: 
query II rowsort label-9827
SELECT COALESCE ( + 29, + MAX( + 46 ) + 1 ), 16 col1
----
29
16

skipif mysql # not compatible
query II rowsort label-9827
SELECT COALESCE ( + 29, + MAX ( + 46 ) + 1 ), 16 col1
----
29
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9828
SELECT ALL 41 / + 55 * - - NULLIF ( - AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ), + 70 * + 82 ) / + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL 41 / + 55 * - - NULLIF ( - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ), + 70 * + 82 ) / + 72 AS col1
----
NULL

query II rowsort
SELECT - 80 + 78 + + 27, 18 - - 83 AS col1
----
25
101

query I rowsort
SELECT 95 + - - 9 * - COALESCE ( + 48, - + 5 )
----
-337

query I rowsort
SELECT ALL + - 79 + + + 7
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT DISTINCT + COALESCE ( COUNT( * ), - 34, - 33 ) * + 38 + 71
----
109

skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT + COALESCE ( COUNT ( * ), - 34, - 33 ) * + 38 + 71
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT ALL + CASE + + 18 WHEN + 60 * - - 67 THEN NULL ELSE - NULLIF ( - + 45, - MIN( - 42 ) ) * + 39 END * 37 + + 78 AS col0
----
65013

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL + CASE + + 18 WHEN + 60 * - - 67 THEN NULL ELSE - NULLIF ( - + 45, - MIN ( - 42 ) ) * + 39 END * 37 + + 78 AS col0
----
65013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9834
SELECT ALL CAST( NULL AS SIGNED ) * - + 69 + - 35 * - - 26 + + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL CAST ( NULL AS INTEGER ) * - + 69 + - 35 * - - 26 + + + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT DISTINCT + 80 * + - ( + 62 ) + - MIN( DISTINCT - ( + - 99 ) )
----
-5059

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT + 80 * + - ( + 62 ) + - MIN ( DISTINCT - ( + - 99 ) )
----
-5059

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT DISTINCT 68 * + - COUNT( * ) + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT 68 * + - COUNT ( * ) + COUNT ( * )
----
-67

query I rowsort
SELECT ALL - 2 * + 13 + 85
----
59

query I rowsort
SELECT NULLIF ( - - 63, + - 26 ) col1
----
63

query I rowsort
SELECT ALL + 52 * - 88 + 33
----
-4543

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9840
SELECT DISTINCT + CASE COALESCE ( CAST( NULL AS SIGNED ), + 15 ) WHEN + - 85 THEN NULL WHEN - + ( 4 ) - - + 85 THEN + + ( + 30 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT + CASE COALESCE ( CAST ( NULL AS INTEGER ), + 15 ) WHEN + - 85 THEN NULL WHEN - + ( 4 ) - - + 85 THEN + + ( + 30 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 93 * + 70 * 40 col2
----
-260400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT ALL 61 * CAST( - - 96 AS SIGNED ) + ( 95 )
----
5951

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL 61 * CAST ( - - 96 AS INTEGER ) + ( 95 )
----
5951

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT + MIN( DISTINCT ( + 62 ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9843
SELECT + MIN ( DISTINCT ( + 62 ) ) AS col0
----
62

query I rowsort
SELECT DISTINCT - 69 * 80 * + ( 57 ) - - + 0 AS col2
----
-314640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9845
SELECT - 71 * - COUNT( * ), CASE - + ( 46 ) WHEN - COALESCE ( + - 4, + 37 * + 48 + + CASE + NULLIF ( - 7, 4 * 61 * + 7 ) WHEN + - 9 THEN - 94 WHEN + - 27 * + - 31 THEN + 66 * CAST( NULL AS SIGNED ) END ) THEN AVG ( DISTINCT + + 14 ) WHEN ( - 96 ) * - 29 * - - 67 * + + 22 * - 83 THEN NULL END AS col2
----
71
NULL

skipif mysql # not compatible
query II rowsort label-9845
SELECT - 71 * - COUNT ( * ), CASE - + ( 46 ) WHEN - COALESCE ( + - 4, + 37 * + 48 + + CASE + NULLIF ( - 7, 4 * 61 * + 7 ) WHEN + - 9 THEN - 94 WHEN + - 27 * + - 31 THEN + 66 * CAST ( NULL AS INTEGER ) END ) THEN AVG ( DISTINCT + + 14 ) WHEN ( - 96 ) * - 29 * - - 67 * + + 22 * - 83 THEN NULL END AS col2
----
71
NULL

query I rowsort
SELECT + COALESCE ( + + 60, ( - 56 ) + - - NULLIF ( - - 6, 65 / - 46 ) )
----
60

query I rowsort
SELECT ALL 82 * - + 89 AS col2
----
-7298

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT ALL - 36 * - 94 - COUNT( * )
----
3383

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL - 36 * - 94 - COUNT ( * )
----
3383

query II rowsort
SELECT + 68, + 27 AS col1
----
68
27

query I rowsort
SELECT - 64 + + 29
----
-35

query I rowsort
SELECT DISTINCT + ( - - 22 ) col0
----
22

query II rowsort
SELECT ALL + 84, 82 AS col1
----
84
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT + NULLIF ( COUNT( * ), + - 47 ) + - ( + 66 )
----
-65

skipif mysql # not compatible
query I rowsort label-9853
SELECT + NULLIF ( COUNT ( * ), + - 47 ) + - ( + 66 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9854
SELECT DISTINCT 84, CAST( - 19 AS SIGNED ) AS col0
----
84
-19

skipif mysql # not compatible
query II rowsort label-9854
SELECT DISTINCT 84, CAST ( - 19 AS INTEGER ) AS col0
----
84
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-9855
SELECT ALL 99 DIV - 90 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL 99 / - 90 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT + ( + 64 ) * COUNT( * ) + - ( 9 )
----
55

skipif mysql # not compatible
query I rowsort label-9856
SELECT + ( + 64 ) * COUNT ( * ) + - ( 9 )
----
55

query II rowsort
SELECT ALL + 36 AS col0, - 89 + + 38 * 16
----
36
519

query I rowsort
SELECT + 42 * - 10 AS col1
----
-420

query I rowsort
SELECT - 12 + + - 92
----
-104

query I rowsort
SELECT - + 13 + - + 76 + - + 14 * + 99 * 7 col1
----
-9791

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT ALL - 39 + - + SUM( + 65 ) AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL - 39 + - + SUM ( + 65 ) AS col0
----
-104

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9862
SELECT ALL 39 * + + ( - - CAST( NULL AS DECIMAL ) ) + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL 39 * + + ( - - CAST ( NULL AS REAL ) ) + 64
----
NULL

query I rowsort
SELECT ALL - + 31 + 35 + - 28
----
-24

query I rowsort
SELECT - ( - + 90 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT DISTINCT MIN( - - 32 ) * 42 AS col2
----
1344

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT MIN ( - - 32 ) * 42 AS col2
----
1344

query I rowsort
SELECT - ( + + 54 ) + + - 81
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT ALL 84 + - COUNT( * ) * 37 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL 84 + - COUNT ( * ) * 37 AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9868
SELECT ALL + CAST( NULL AS SIGNED ) + - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL + CAST ( NULL AS INTEGER ) + - 10 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9869
SELECT DISTINCT - + 89 DIV + + 98 * + COUNT( * ) * + + CASE + 70 WHEN - + 49 THEN + + 16 + + + 88 + - + 47 * - ( + ( + CAST( NULL AS SIGNED ) ) ) DIV + + ( + 71 ) * 0 + + + 48 + - 60 WHEN + 17 + + + 21 * 55 THEN NULL ELSE COUNT( * ) END AS col2, - COUNT( * ) + - 43 - + ( - + 85 )
----
0
41

skipif mysql # not compatible
query II rowsort label-9869
SELECT DISTINCT - + 89 / + + 98 * + COUNT ( * ) * + + CASE + 70 WHEN - + 49 THEN + + 16 + + + 88 + - + 47 * - ( + ( + CAST ( NULL AS INTEGER ) ) ) / + + ( + 71 ) * 0 + + + 48 + - 60 WHEN + 17 + + + 21 * 55 THEN NULL ELSE COUNT ( * ) END AS col2, - COUNT ( * ) + - 43 - + ( - + 85 )
----
0
41

query III rowsort
SELECT - 63, - 44 AS col0, + 42 * - 32 AS col1
----
-63
-44
-1344

query II rowsort
SELECT 21 AS col1, 81 + + 61 - 41
----
21
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9872
SELECT + ( - COUNT( * ) ) * + - 29 * - - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9872
SELECT + ( - COUNT ( * ) ) * + - 29 * - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9873
SELECT + COUNT( * ), 86 AS col0
----
1
86

skipif mysql # not compatible
query II rowsort label-9873
SELECT + COUNT ( * ), 86 AS col0
----
1
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9874
SELECT ALL - 58 DIV + 77 + - - COALESCE ( + 71, COUNT( * ) + - + 58 ) * 34 + - + COUNT( * )
----
2413

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL - 58 / + 77 + - - COALESCE ( + 71, COUNT ( * ) + - + 58 ) * 34 + - + COUNT ( * )
----
2413

query I rowsort
SELECT DISTINCT 78 * - - 38 AS col2
----
2964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9876
SELECT DISTINCT + CAST( + 69 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT + CAST ( + 69 AS INTEGER )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT - 7 * + - SUM( DISTINCT - 13 )
----
-91

skipif mysql # not compatible
query I rowsort label-9877
SELECT - 7 * + - SUM ( DISTINCT - 13 )
----
-91

query I rowsort
SELECT ALL - 61 * - 34 * 31
----
64294

query I rowsort
SELECT ALL + COALESCE ( 76, + + 25 * + + 1 * + 16 ) * ( - 84 ) - + 37 * 41 * + 47
----
-77683

query I rowsort
SELECT ( - ( + + 2 ) )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9881
SELECT - SUM( 14 ) / - + CAST( NULL AS SIGNED ) - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9881
SELECT - SUM ( 14 ) / - + CAST ( NULL AS INTEGER ) - 68
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9882
SELECT ALL + 42 DIV + 54 * ( - 56 ) - - 0 DIV 24 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL + 42 / + 54 * ( - 56 ) - - 0 / 24 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT - SUM( + + 97 ) * - 40 + - 15 col1
----
3865

skipif mysql # not compatible
query I rowsort label-9883
SELECT - SUM ( + + 97 ) * - 40 + - 15 col1
----
3865

query I rowsort
SELECT - 47 * 77 AS col0
----
-3619

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT DISTINCT + CASE + 49 WHEN + 60 * - 77 / ( MIN( DISTINCT + + 40 ) ) / - 41 THEN NULL WHEN - SUM( ALL 25 ) THEN - + COUNT( * ) * AVG ( ALL + 31 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT + CASE + 49 WHEN + 60 * - 77 / ( MIN ( DISTINCT + + 40 ) ) / - 41 THEN NULL WHEN - SUM ( ALL 25 ) THEN - + COUNT ( * ) * AVG ( ALL + 31 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9886
SELECT DISTINCT + CASE - 36 WHEN 58 THEN 7 + + 96 WHEN - + 38 + + - 95 THEN NULL WHEN + 42 THEN NULL WHEN COUNT( * ) THEN - 61 + + ( + - 31 ) * - 11 * - 1 + + CAST( NULL AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT + CASE - 36 WHEN 58 THEN 7 + + 96 WHEN - + 38 + + - 95 THEN NULL WHEN + 42 THEN NULL WHEN COUNT ( * ) THEN - 61 + + ( + - 31 ) * - 11 * - 1 + + CAST ( NULL AS INTEGER ) ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT 29 * + 32, 23 col2
----
928
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT DISTINCT - 44 * - CASE + ( 52 ) WHEN 96 * + - 76 THEN + COUNT( * ) * - 53 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT - 44 * - CASE + ( 52 ) WHEN 96 * + - 76 THEN + COUNT ( * ) * - 53 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT CASE - COUNT( * ) WHEN - + 18 * - 84 + - COUNT( * ) THEN NULL ELSE 57 END AS col1
----
57

skipif mysql # not compatible
query I rowsort label-9889
SELECT CASE - COUNT ( * ) WHEN - + 18 * - 84 + - COUNT ( * ) THEN NULL ELSE 57 END AS col1
----
57

query I rowsort
SELECT - 81 * - + 96
----
7776

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT - 26 * + - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT - 26 * + - COUNT ( * )
----
26

query I rowsort
SELECT + NULLIF ( - 84, + 51 )
----
-84

query II rowsort
SELECT DISTINCT + ( + - 17 ) AS col1, - 36
----
-17
-36

query I rowsort
SELECT ALL - NULLIF ( + 3, - 24 )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9895
SELECT + + 98 DIV + 53 - - - 92 * - + 25 * + 12 * + - COUNT( * )
----
-27599

skipif mysql # not compatible
query I rowsort label-9895
SELECT + + 98 / + 53 - - - 92 * - + 25 * + 12 * + - COUNT ( * )
----
-27599

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT - + SUM( + 19 ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-9896
SELECT - + SUM ( + 19 ) col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT ALL 46 + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL 46 + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9898
SELECT 55 DIV - ( COUNT( * ) ) * - + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-9898
SELECT 55 / - ( COUNT ( * ) ) * - + COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL MAX( ALL + 24 ) + 77 col0
----
101

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL MAX ( ALL + 24 ) + 77 col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT COUNT( * ) * + 35 * + - 9 AS col1
----
-315

skipif mysql # not compatible
query I rowsort label-9900
SELECT COUNT ( * ) * + 35 * + - 9 AS col1
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT COUNT( * ) * 63 * + 56 * + 30 * - 36 * - 62 col1
----
236234880

skipif mysql # not compatible
query I rowsort label-9901
SELECT COUNT ( * ) * 63 * + 56 * + 30 * - 36 * - 62 col1
----
236234880

query III rowsort
SELECT + 51 + - - 57 AS col1, 34 AS col1, + 61 AS col0
----
108
34
61

query I rowsort
SELECT DISTINCT - ( - ( ( - 57 ) ) ) * + - 23 + ( 15 ) * - 54 * - 43
----
36141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9904
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) * + ( + 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9904
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) * + ( + 19 )
----
NULL

query I rowsort
SELECT ALL + 66 + 59 + + - ( - + 35 ) + + 83 * + 42 col0
----
3646

query I rowsort
SELECT ALL + 2 * - 13 * + 42
----
-1092

onlyif mysql # DIV for integer division: 
query I rowsort label-9907
SELECT 81 + - + 38 DIV - 20 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-9907
SELECT 81 + - + 38 / - 20 AS col1
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9908
SELECT ALL - 91 - 2, COUNT( * ) DIV - - 40 + + 68 col1
----
-93
68

skipif mysql # not compatible
query II rowsort label-9908
SELECT ALL - 91 - 2, COUNT ( * ) / - - 40 + + 68 col1
----
-93
68

query I rowsort
SELECT DISTINCT 57 * + 38 col2
----
2166

query I rowsort
SELECT ALL + 2 - 74 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT DISTINCT ( + + SUM( DISTINCT - 13 ) ) - - + 83
----
70

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT ( + + SUM ( DISTINCT - 13 ) ) - - + 83
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9912
SELECT DISTINCT - 84, - CASE - + 81 WHEN - - 77 + + 40 THEN + 81 / - COUNT( * ) END * + 75 * 35 * + 45 AS col0
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-9912
SELECT DISTINCT - 84, - CASE - + 81 WHEN - - 77 + + 40 THEN + 81 / - COUNT ( * ) END * + 75 * 35 * + 45 AS col0
----
-84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT ALL 66 - + + MAX( 13 ) + 76 + CASE WHEN NOT 8 BETWEEN NULL AND 70 * + 34 THEN - 90 * + + 81 * - 92 END * + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL 66 - + + MAX ( 13 ) + 76 + CASE WHEN NOT 8 BETWEEN NULL AND 70 * + 34 THEN - 90 * + + 81 * - 92 END * + - 26
----
NULL

query I rowsort
SELECT 62 + 32 + + 0 col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9915
SELECT 68 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9915
SELECT 68 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 30 * + 55
----
1650

query I rowsort
SELECT ALL + 12 * - - 37 AS col2
----
444

query I rowsort
SELECT ( - + 87 ) + - 29 AS col1
----
-116

query I rowsort
SELECT 58 * 63 AS col1
----
3654

query I rowsort
SELECT ALL ( + - ( + 60 ) ) * - 82
----
4920

query I rowsort
SELECT 67 * - 71 AS col2
----
-4757

query I rowsort
SELECT ALL 58 * + ( 3 ) AS col1
----
174

query I rowsort
SELECT DISTINCT - 58 * + 61 AS col1
----
-3538

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9924
SELECT ( + MAX( + 83 ) ) DIV 16 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9924
SELECT ( + MAX ( + 83 ) ) / 16 AS col2
----
5

query I rowsort
SELECT 83 * - 39 AS col1
----
-3237

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT DISTINCT - COALESCE ( 77, + MAX( - 2 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT - COALESCE ( 77, + MAX ( - 2 ) )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9927
SELECT MIN( - + CAST( NULL AS SIGNED ) ) * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT MIN ( - + CAST ( NULL AS INTEGER ) ) * - 28
----
NULL

query I rowsort
SELECT 93 * + - 99 * - 13 AS col1
----
119691

query I rowsort
SELECT 9 + - 59
----
-50

query I rowsort
SELECT ALL - ( ( - ( - 82 ) ) ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT DISTINCT - MAX( 98 ) + - 24 - SUM( DISTINCT 23 )
----
-145

skipif mysql # not compatible
query I rowsort label-9931
SELECT DISTINCT - MAX ( 98 ) + - 24 - SUM ( DISTINCT 23 )
----
-145

query I rowsort
SELECT ALL - - 60 + COALESCE ( 43, - 61 + - 63 + - 87 )
----
103

query I rowsort
SELECT ALL 90 * + + 37 * + 74
----
246420

query II rowsort
SELECT ALL - 91, 81 col0
----
-91
81

query I rowsort
SELECT DISTINCT - 89 + 9 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT DISTINCT + 31 + 8 * + NULLIF ( 3, - 34 + - 56 - + COUNT( * ) + - - COALESCE ( + + 73, - 30 * + ( - + 95 ) * + + 40 * - - 21 * + 23 ) + ( + COUNT( * ) ) / + 39 )
----
55

skipif mysql # not compatible
query I rowsort label-9936
SELECT DISTINCT + 31 + 8 * + NULLIF ( 3, - 34 + - 56 - + COUNT ( * ) + - - COALESCE ( + + 73, - 30 * + ( - + 95 ) * + + 40 * - - 21 * + 23 ) + ( + COUNT ( * ) ) / + 39 )
----
55

query I rowsort
SELECT + 83 + ( + 57 ) + 70 * + 8 + - 28 * - - COALESCE ( - - 41, - - ( - 15 ), 60 - - 21 )
----
-448

query I rowsort
SELECT DISTINCT - ( - 33 ) - - 64 AS col1
----
97

query I rowsort
SELECT ALL + 37 * 59
----
2183

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT ALL COUNT( * ) - + 22
----
-21

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL COUNT ( * ) - + 22
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9941
SELECT COUNT( * ), COUNT( * ) DIV + 6 * + COUNT( * ) AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-9941
SELECT COUNT ( * ), COUNT ( * ) / + 6 * + COUNT ( * ) AS col1
----
1
0

query I rowsort
SELECT - 90 * - + 17 - 24 AS col0
----
1506

onlyif mysql # aggregate syntax: 
query II rowsort label-9943
SELECT ALL - 85 AS col1, 39 * - ( + - COUNT( * ) ) AS col1
----
-85
39

skipif mysql # not compatible
query II rowsort label-9943
SELECT ALL - 85 AS col1, 39 * - ( + - COUNT ( * ) ) AS col1
----
-85
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9944
SELECT ALL ( + - COUNT( * ) ) DIV 32 DIV + 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL ( + - COUNT ( * ) ) / 32 / + 63 AS col1
----
0

query II rowsort
SELECT ALL 18 * 35 AS col1, 60
----
630
60

query II rowsort
SELECT ALL ( + + 83 ) * 64 + + 14, + 73 AS col2
----
5326
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT + SUM( DISTINCT + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-9947
SELECT + SUM ( DISTINCT + 64 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9948
SELECT 44 * CAST( NULL AS SIGNED ) * - ( SUM( DISTINCT - 49 ) ) + + - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9948
SELECT 44 * CAST ( NULL AS INTEGER ) * - ( SUM ( DISTINCT - 49 ) ) + + - 69 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9949
SELECT 83 + - 57 + + 41 DIV + - CAST( NULL AS DECIMAL ) AS col1, + 84 DIV + 46
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9949
SELECT 83 + - 57 + + 41 / + - CAST ( NULL AS REAL ) AS col1, + 84 / + 46
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9950
SELECT + CASE 97 WHEN - + AVG ( DISTINCT - 57 ) THEN + NULLIF ( + CAST( - + 99 AS DECIMAL ), 23 ) + - COUNT( * ) + - - 31 * AVG ( + 37 ) * - COUNT( * ) + + + 88 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT + CASE 97 WHEN - + AVG ( DISTINCT - 57 ) THEN + NULLIF ( + CAST ( - + 99 AS REAL ), 23 ) + - COUNT ( * ) + - - 31 * AVG ( + 37 ) * - COUNT ( * ) + + + 88 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT + MIN( DISTINCT 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9951
SELECT + MIN ( DISTINCT 21 ) AS col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9952
SELECT 93 DIV - - 68 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9952
SELECT 93 / - - 68 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9953
SELECT ALL 16 * - - 20 + + 30 + 5, + 71 DIV - COUNT( * ) col1
----
355
-71

skipif mysql # not compatible
query II rowsort label-9953
SELECT ALL 16 * - - 20 + + 30 + 5, + 71 / - COUNT ( * ) col1
----
355
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9954
SELECT DISTINCT 54 * NULLIF ( + CASE ( + 7 ) WHEN 26 + - 29 THEN NULLIF ( 47, + - SUM( + 66 ) * 25 * CASE 81 WHEN + CASE + COUNT( * ) WHEN - 91 * + + 85 + - 51 THEN NULL WHEN - - CAST( NULL AS DECIMAL ) / 47 THEN 38 + 77 ELSE + 64 END THEN NULL ELSE 65 + - + 72 + ( - 44 ) END ) - - 13 - - + 97 WHEN - 71 * + 30 + - 82 + ( + 53 ) + + 63 * 6 THEN CAST( NULL AS SIGNED ) ELSE NULL END, 88 + COALESCE ( - 72, CAST( NULL AS SIGNED ), 16 * 49 ) * 20 ) / + COUNT( * ) + CASE - 54 WHEN 32 + 66 * 12 THEN 0 + - 58 * - COUNT( * ) WHEN + 32 * + NULLIF ( - COUNT( * ), 23 ) + COUNT( * ) THEN NULL WHEN + 3 + SUM( ( 27 ) ) THEN 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9954
SELECT DISTINCT 54 * NULLIF ( + CASE ( + 7 ) WHEN 26 + - 29 THEN NULLIF ( 47, + - SUM ( + 66 ) * 25 * CASE 81 WHEN + CASE + COUNT ( * ) WHEN - 91 * + + 85 + - 51 THEN NULL WHEN - - CAST ( NULL AS REAL ) / 47 THEN 38 + 77 ELSE + 64 END THEN NULL ELSE 65 + - + 72 + ( - 44 ) END ) - - 13 - - + 97 WHEN - 71 * + 30 + - 82 + ( + 53 ) + + 63 * 6 THEN CAST ( NULL AS INTEGER ) ELSE NULL END, 88 + COALESCE ( - 72, CAST ( NULL AS INTEGER ), 16 * 49 ) * 20 ) / + COUNT ( * ) + CASE - 54 WHEN 32 + 66 * 12 THEN 0 + - 58 * - COUNT ( * ) WHEN + 32 * + NULLIF ( - COUNT ( * ), 23 ) + COUNT ( * ) THEN NULL WHEN + 3 + SUM ( ( 27 ) ) THEN 17 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9955
SELECT 23 DIV 40 * - 78
----
0

skipif mysql # not compatible
query I rowsort label-9955
SELECT 23 / 40 * - 78
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9956
SELECT ALL - 51 + 34 AS col1, - CASE - COUNT( * ) WHEN 19 + + CAST( NULL AS SIGNED ) + - 76 - - 30 + + COUNT( + - 83 ) * - + COUNT( * ) THEN + 68 WHEN 8 THEN NULL END
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-9956
SELECT ALL - 51 + 34 AS col1, - CASE - COUNT ( * ) WHEN 19 + + CAST ( NULL AS INTEGER ) + - 76 - - 30 + + COUNT ( + - 83 ) * - + COUNT ( * ) THEN + 68 WHEN 8 THEN NULL END
----
-17
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9957
SELECT DISTINCT + - CASE 97 WHEN + - ( + ( 57 ) ) THEN NULL WHEN - COALESCE ( - 19, - CASE + 25 WHEN CASE 12 WHEN - - 2 * 29 DIV + + 16 + - 48 THEN NULL WHEN + + ( - COUNT( * ) ) THEN NULL WHEN - 50 THEN - + 63 END * + 20 + + + COUNT( * ) THEN - + CASE + ( - 26 ) WHEN 34 THEN - - ( + - 41 ) - + + ( - ( CAST( - AVG ( DISTINCT 56 ) AS SIGNED ) ) ) - + 39 * - 89 END WHEN - 28 DIV + 85 + - COUNT( DISTINCT 19 ) THEN 28 + - 38 END, COUNT( * ) * - 82 ) * 39 THEN NULL ELSE + 12 DIV 79 END
----
0

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT + - CASE 97 WHEN + - ( + ( 57 ) ) THEN NULL WHEN - COALESCE ( - 19, - CASE + 25 WHEN CASE 12 WHEN - - 2 * 29 / + + 16 + - 48 THEN NULL WHEN + + ( - COUNT ( * ) ) THEN NULL WHEN - 50 THEN - + 63 END * + 20 + + + COUNT ( * ) THEN - + CASE + ( - 26 ) WHEN 34 THEN - - ( + - 41 ) - + + ( - ( CAST ( - AVG ( DISTINCT 56 ) AS INTEGER ) ) ) - + 39 * - 89 END WHEN - 28 / + 85 + - COUNT ( DISTINCT 19 ) THEN 28 + - 38 END, COUNT ( * ) * - 82 ) * 39 THEN NULL ELSE + 12 / 79 END
----
0

query I rowsort
SELECT DISTINCT ( - 72 ) + - 13
----
-85

query I rowsort
SELECT ALL - 2 * - 2 col2
----
4

query I rowsort
SELECT + ( 31 ) AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9961
SELECT - + 32 - - + 21 + CAST( NULL AS SIGNED ) / - 76 * + MIN( DISTINCT 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT - + 32 - - + 21 + CAST ( NULL AS INTEGER ) / - 76 * + MIN ( DISTINCT 76 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9962
SELECT ALL + CASE + COUNT( * ) WHEN ( + CAST( NULL AS SIGNED ) ) / - ( - + 38 ) THEN + 20 ELSE - ( - COUNT( - 69 ) ) + + COUNT( * ) END
----
2

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL + CASE + COUNT ( * ) WHEN ( + CAST ( NULL AS INTEGER ) ) / - ( - + 38 ) THEN + 20 ELSE - ( - COUNT ( - 69 ) ) + + COUNT ( * ) END
----
2

query I rowsort
SELECT + 20 - + ( + 19 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL - 44 - - - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL - 44 - - - COUNT ( * )
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-9965
SELECT DISTINCT - - 90 - + COUNT( * ) col0, + ( + + 9 ) col0
----
89
9

skipif mysql # not compatible
query II rowsort label-9965
SELECT DISTINCT - - 90 - + COUNT ( * ) col0, + ( + + 9 ) col0
----
89
9

query II rowsort
SELECT DISTINCT + 53 * + 85 AS col1, + 10
----
4505
10

query I rowsort
SELECT + - 95 + - 65 AS col0
----
-160

query I rowsort
SELECT ALL + - 77 * + 59 + 79
----
-4464

query I rowsort
SELECT - + 20 + - 72 AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT + ( + - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT + ( + - CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT - 72 * 44
----
-3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9972
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + CASE 96 WHEN ( - COALESCE ( - 46, + - 57 ) ) THEN - - 40 ELSE + 49 * + 47 + + 99 + - - 46 + - - 92 * - 41 / 16 - + - CASE - COUNT( * ) WHEN - + 70 THEN NULL WHEN 69 THEN - 30 / ( - 35 ) + + 54 END - COUNT( ALL + CAST( + - 58 AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + CASE 96 WHEN ( - COALESCE ( - 46, + - 57 ) ) THEN - - 40 ELSE + 49 * + 47 + + 99 + - - 46 + - - 92 * - 41 / 16 - + - CASE - COUNT ( * ) WHEN - + 70 THEN NULL WHEN 69 THEN - 30 / ( - 35 ) + + 54 END - COUNT ( ALL + CAST ( + - 58 AS INTEGER ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9973
SELECT ALL COALESCE ( - 58, - + NULLIF ( + - COALESCE ( - + 76, - ( ( - CASE CAST( NULL AS SIGNED ) WHEN - + 4 * + 49 * - + 88 * - 96 + 33 THEN NULL WHEN + CASE WHEN NOT ( NULL ) NOT BETWEEN + 59 AND - - 20 / - 25 + 83 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 57 * + + 64 + - + 31 + - 87 - + - 15 THEN + + 68 ELSE NULL END * NULLIF ( - - 28, - + 22 ) * + - 37 * + + 35 * + 76 + + 59 - 42 THEN + 73 + - NULLIF ( ( 93 ), + ( + 16 ) ) END ) ) ), - 72 - + 38 * + 48 ) + 79 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL COALESCE ( - 58, - + NULLIF ( + - COALESCE ( - + 76, - ( ( - CASE CAST ( NULL AS INTEGER ) WHEN - + 4 * + 49 * - + 88 * - 96 + 33 THEN NULL WHEN + CASE WHEN NOT ( NULL ) NOT BETWEEN + 59 AND - - 20 / - 25 + 83 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 57 * + + 64 + - + 31 + - 87 - + - 15 THEN + + 68 ELSE NULL END * NULLIF ( - - 28, - + 22 ) * + - 37 * + + 35 * + 76 + + 59 - 42 THEN + 73 + - NULLIF ( ( 93 ), + ( + 16 ) ) END ) ) ), - 72 - + 38 * + 48 ) + 79 ) AS col0
----
-58

query I rowsort
SELECT - 48 + - 39
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9975
SELECT - COUNT( * ) * + - ( - CAST( NULL AS SIGNED ) ) * 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9975
SELECT - COUNT ( * ) * + - ( - CAST ( NULL AS INTEGER ) ) * 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT DISTINCT - COUNT( * ) * + 81 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT - COUNT ( * ) * + 81 AS col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9977
SELECT DISTINCT 71 DIV - CASE 24 WHEN - 38 THEN - + ( 21 ) WHEN - - COUNT( * ) DIV 70 + - 90 THEN COALESCE ( - 67, - 14, - 73 * 44 * 34 - + COUNT( * ) ) ELSE + CAST( SUM( ALL 81 ) AS SIGNED ) END col2
----
0

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT 71 / - CASE 24 WHEN - 38 THEN - + ( 21 ) WHEN - - COUNT ( * ) / 70 + - 90 THEN COALESCE ( - 67, - 14, - 73 * 44 * 34 - + COUNT ( * ) ) ELSE + CAST ( SUM ( ALL 81 ) AS INTEGER ) END col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT - 77 + COUNT( * ) + - - 49 * - COUNT( * )
----
-125

skipif mysql # not compatible
query I rowsort label-9978
SELECT - 77 + COUNT ( * ) + - - 49 * - COUNT ( * )
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9979
SELECT ALL - CAST( NULL AS SIGNED ) + + + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL - CAST ( NULL AS INTEGER ) + + + 97 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9980
SELECT DISTINCT 6 + + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT 6 + + + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT 23 AS col0, + 71
----
23
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9982
SELECT + CASE 46 WHEN + 68 DIV + - 79 + - + 20 THEN + 47 DIV - 17 * 76 ELSE - 83 + 29 + - 76 * 2 END DIV NULLIF ( + COALESCE ( 51, + ( + 42 ) DIV + 39 ), - 46 ) + + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9982
SELECT + CASE 46 WHEN + 68 / + - 79 + - + 20 THEN + 47 / - 17 * 76 ELSE - 83 + 29 + - 76 * 2 END / NULLIF ( + COALESCE ( 51, + ( + 42 ) / + 39 ), - 46 ) + + COUNT ( * )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT ( - CAST( + + 10 AS SIGNED ) )
----
-10

skipif mysql # not compatible
query I rowsort label-9983
SELECT ( - CAST ( + + 10 AS INTEGER ) )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9984
SELECT - 41 DIV 29 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9984
SELECT - 41 / 29 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT + 47 + + COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-9985
SELECT + 47 + + COUNT ( * ) AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9986
SELECT ( - CAST( + 74 AS SIGNED ) ) col2, CAST( NULL AS SIGNED ) + NULLIF ( + 63, + 74 ) col2
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-9986
SELECT ( - CAST ( + 74 AS INTEGER ) ) col2, CAST ( NULL AS INTEGER ) + NULLIF ( + 63, + 74 ) col2
----
-74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ALL 6 * 1 * 4 + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL 6 * 1 * 4 + COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT + SUM( + + 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9988
SELECT + SUM ( + + 55 ) AS col2
----
55

query I rowsort
SELECT + COALESCE ( - 97, 15, + 82 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9990
SELECT ( + ( CAST( NULL AS DECIMAL ) ) ), - COUNT( * ) col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-9990
SELECT ( + ( CAST ( NULL AS REAL ) ) ), - COUNT ( * ) col1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT ALL + ( 49 ) * - - COUNT( DISTINCT 23 )
----
49

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL + ( 49 ) * - - COUNT ( DISTINCT 23 )
----
49

query I rowsort
SELECT ALL + 31 * + 49 + + - 81 + 55
----
1493

query I rowsort
SELECT DISTINCT 94 * + - 19
----
-1786

query I rowsort
SELECT - + ( 7 ) * 74 AS col2
----
-518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9995
SELECT ALL + + NULLIF ( - 45, 73 + - + COUNT( * ) * CAST( NULL AS SIGNED ) * - ( 48 ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL + + NULLIF ( - 45, 73 + - + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - ( 48 ) ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT DISTINCT + CASE + 64 WHEN + 35 THEN NULL ELSE - COUNT( + 49 ) END col0
----
-1

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT + CASE + 64 WHEN + 35 THEN NULL ELSE - COUNT ( + 49 ) END col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9997
SELECT + - CASE CAST( NULL AS DECIMAL ) WHEN + + COUNT( * ) THEN 34 END + COUNT( * ) * - 2 * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT + - CASE CAST ( NULL AS REAL ) WHEN + + COUNT ( * ) THEN 34 END + COUNT ( * ) * - 2 * + 6
----
NULL

query II rowsort
SELECT DISTINCT + + 30 AS col2, + 25
----
30
25

onlyif mysql # aggregate syntax: 
query II rowsort label-9999
SELECT + 9 * - 85 + + 35 + - CASE + - 44 WHEN 59 THEN + 35 ELSE NULL END * - COALESCE ( - ( - - COUNT( * ) ), - + 57 ) / AVG ( 68 ) + 44 * - COUNT( * ), 67 * 1 * + + 16 AS col0
----
NULL
1072

skipif mysql # not compatible
query II rowsort label-9999
SELECT + 9 * - 85 + + 35 + - CASE + - 44 WHEN 59 THEN + 35 ELSE NULL END * - COALESCE ( - ( - - COUNT ( * ) ), - + 57 ) / AVG ( 68 ) + 44 * - COUNT ( * ), 67 * 1 * + + 16 AS col0
----
NULL
1072

