hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL + 76, 29 AS col0
----
76
29

onlyif mysql # aggregate syntax: 
query II rowsort label-1
SELECT 60 * - 67 + + COUNT( * ) AS col2, 95
----
-4019
95

skipif mysql # not compatible
query II rowsort label-1
SELECT 60 * - 67 + + COUNT ( * ) AS col2, 95
----
-4019
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2
SELECT + 0 + + + 33 DIV 43 - + + 75 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-2
SELECT + 0 + + + 33 / 43 - + + 75 AS col0
----
-75

query II rowsort
SELECT + 76 + - 69 + + + 66 AS col1, - 77
----
73
-77

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5
SELECT + 93 DIV - MAX( + 23 )
----
-4

skipif mysql # not compatible
query I rowsort label-5
SELECT + 93 / - MAX ( + 23 )
----
-4

query I rowsort
SELECT DISTINCT - 52 * - 88
----
4576

onlyif mysql # DIV for integer division: 
query I rowsort label-7
SELECT DISTINCT 17 DIV + - 48
----
0

skipif mysql # not compatible
query I rowsort label-7
SELECT DISTINCT 17 / + - 48
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8
SELECT CASE 43 WHEN 59 THEN 71 + - CAST( - + 62 AS SIGNED ) * - 7 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8
SELECT CASE 43 WHEN 59 THEN 71 + - CAST ( - + 62 AS INTEGER ) * - 7 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT 98 * 92 + NULLIF ( + 37, 31 + - 14 + + 7 * - + COUNT( * ) * + + ( 50 ) ) * 76
----
11828

skipif mysql # not compatible
query I rowsort label-9
SELECT 98 * 92 + NULLIF ( + 37, 31 + - 14 + + 7 * - + COUNT ( * ) * + + ( 50 ) ) * 76
----
11828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-10
SELECT ALL + 65 * + CASE WHEN ( NULL ) = - 84 THEN + 89 / - 78 * + CASE + - 76 WHEN - - 30 / MAX( DISTINCT 47 ) * CAST( + 6 AS SIGNED ) + - 72 THEN 66 * COUNT( * ) * - 91 + - 84 * - 20 + - 3 / + 77 ELSE NULL END ELSE NULL END * 0 - + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL + 65 * + CASE WHEN ( NULL ) = - 84 THEN + 89 / - 78 * + CASE + - 76 WHEN - - 30 / MAX ( DISTINCT 47 ) * CAST ( + 6 AS INTEGER ) + - 72 THEN 66 * COUNT ( * ) * - 91 + - 84 * - 20 + - 3 / + 77 ELSE NULL END ELSE NULL END * 0 - + 58 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-11
SELECT CASE 26 WHEN + COUNT( DISTINCT + + CAST( NULL AS DECIMAL ) ) * - 56 * 64 + - 16 + - - ( - 23 ) THEN - ( - 29 ) * - 2 + + 16 * + + 84 * + + 93 / + CASE 43 WHEN COUNT( * ) * + CASE - COUNT( * ) WHEN - 48 * + + COUNT( + 53 ) THEN NULL WHEN - 30 THEN MIN( - 82 ) END - ( 33 ) THEN 4 WHEN - + 33 THEN NULL ELSE NULL END ELSE NULL END AS col2, + 23 AS col1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-11
SELECT CASE 26 WHEN + COUNT ( DISTINCT + + CAST ( NULL AS REAL ) ) * - 56 * 64 + - 16 + - - ( - 23 ) THEN - ( - 29 ) * - 2 + + 16 * + + 84 * + + 93 / + CASE 43 WHEN COUNT ( * ) * + CASE - COUNT ( * ) WHEN - 48 * + + COUNT ( + 53 ) THEN NULL WHEN - 30 THEN MIN ( - 82 ) END - ( 33 ) THEN 4 WHEN - + 33 THEN NULL ELSE NULL END ELSE NULL END AS col2, + 23 AS col1
----
NULL
23

query I rowsort
SELECT + 52 * 71 AS col2
----
3692

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-13
SELECT ALL 40 * - NULLIF ( 80, + - ( 59 ) ) * - - COUNT( * ) * - 82 - - + 43 + - + COALESCE ( - + 84, NULLIF ( - 16, + - ( + 69 ) ) + 45 DIV 99 * 48 * - 1 )
----
262527

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL 40 * - NULLIF ( 80, + - ( 59 ) ) * - - COUNT ( * ) * - 82 - - + 43 + - + COALESCE ( - + 84, NULLIF ( - 16, + - ( + 69 ) ) + 45 / 99 * 48 * - 1 )
----
262527

query I rowsort
SELECT 70 * + 64 AS col2
----
4480

query I rowsort
SELECT 31 * 84 * - ( - + 56 )
----
145824

query I rowsort
SELECT ALL - ( + 12 ) + 21
----
9

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

skipif mysql # not compatible
query I rowsort label-17
SELECT COUNT ( * ) / - 32 AS col0
----
0

query II rowsort
SELECT - 59 + - 41 + + 51 * - - 3 * 57 AS col2, 85 AS col0
----
8621
85

onlyif mysql # aggregate syntax: 
query II rowsort label-19
SELECT - COUNT( * ) * + 5 + 61 AS col1, + 2
----
56
2

skipif mysql # not compatible
query II rowsort label-19
SELECT - COUNT ( * ) * + 5 + 61 AS col1, + 2
----
56
2

query I rowsort
SELECT - ( - - 21 )
----
-21

query II rowsort
SELECT ALL + 93 + - ( - 50 ) AS col1, + 82 AS col1
----
143
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-22
SELECT 87 - 19 - + - 44 * + + 95 - - 52 * + + COUNT( * ) DIV - COUNT( * ) AS col2
----
4196

skipif mysql # not compatible
query I rowsort label-22
SELECT 87 - 19 - + - 44 * + + 95 - - 52 * + + COUNT ( * ) / - COUNT ( * ) AS col2
----
4196

query II rowsort
SELECT ALL 46, - 43 AS col0
----
46
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-24
SELECT DISTINCT - - 2 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT - - 2 / + 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT + COUNT( * ) - - - 35 - - 65 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-25
SELECT + COUNT ( * ) - - - 35 - - 65 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT DISTINCT COALESCE ( - 77, 29, - 62 * SUM( ALL - + 14 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT COALESCE ( - 77, 29, - 62 * SUM ( ALL - + 14 ) )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-27
SELECT ALL + 32 + + 90 DIV 70
----
33

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL + 32 + + 90 / 70
----
33

query II rowsort
SELECT DISTINCT 34 AS col2, 67 AS col2
----
34
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-29
SELECT ALL ( - ( - COUNT( * ) ) ) + - 72 + - NULLIF ( - - 11, - + AVG ( - + 40 ) ) + + 94 * + CASE + + 31 WHEN ( CAST( NULL AS SIGNED ) ) THEN + - 39 WHEN - - 83 * - + COUNT( * ) / - 10 THEN NULL END + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL ( - ( - COUNT ( * ) ) ) + - 72 + - NULLIF ( - - 11, - + AVG ( - + 40 ) ) + + 94 * + CASE + + 31 WHEN ( CAST ( NULL AS INTEGER ) ) THEN + - 39 WHEN - - 83 * - + COUNT ( * ) / - 10 THEN NULL END + + 10
----
NULL

query I rowsort
SELECT DISTINCT + CASE + 39 WHEN + 84 / + + 65 THEN - 71 END * ( - - 30 ) AS col1
----
NULL

query I rowsort
SELECT 28 * + + 26 + - 60 AS col1
----
668

query II rowsort
SELECT 36 AS col0, 82 + + 84 AS col2
----
36
166

query I rowsort
SELECT 14 * + 79 AS col2
----
1106

query II rowsort
SELECT ALL - 50 AS col0, 64 + 62
----
-50
126

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT DISTINCT - CASE 55 WHEN + + MIN( ALL + - 65 ) * - 24 + + 70 - - 84 THEN - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-35
SELECT DISTINCT - CASE 55 WHEN + + MIN ( ALL + - 65 ) * - 24 + + 70 - - 84 THEN - 12 END
----
NULL

query I rowsort
SELECT DISTINCT 12 - 2 AS col0
----
10

query I rowsort
SELECT 40 * - 49 AS col0
----
-1960

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

query I rowsort
SELECT DISTINCT 76 * + - 33 AS col0
----
-2508

query I rowsort
SELECT - 45 * - 43 + - 68
----
1867

query I rowsort
SELECT ALL 11 * - 95 * ( - + 44 ) * + 58 + 92
----
2666932

query I rowsort
SELECT 30 * 7 * 71
----
14910

query I rowsort
SELECT 65 * + 18 col1
----
1170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-44
SELECT ALL - 1, 4 + - + CAST( - - 4 AS SIGNED ) * - 3 DIV - 96 * 94 * - COUNT( DISTINCT ( - + 24 ) ) AS col2
----
-1
4

skipif mysql # not compatible
query II rowsort label-44
SELECT ALL - 1, 4 + - + CAST ( - - 4 AS INTEGER ) * - 3 / - 96 * 94 * - COUNT ( DISTINCT ( - + 24 ) ) AS col2
----
-1
4

query I rowsort
SELECT + 50 - ( - - 52 ) AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-46
SELECT DISTINCT 29 + - - 43 + - 41 * - ( + 8 ) * CAST( NULL AS SIGNED ) * + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT 29 + - - 43 + - 41 * - ( + 8 ) * CAST ( NULL AS INTEGER ) * + 5 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-47
SELECT ALL 3 / CAST( NULL AS SIGNED ) * - 97 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL 3 / CAST ( NULL AS INTEGER ) * - 97 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-48
SELECT DISTINCT + 79 DIV - 57 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-48
SELECT DISTINCT + 79 / - 57 AS col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-49
SELECT - 91 / - COUNT ( * )
----
91

query I rowsort
SELECT ALL - 57 + + + ( + 62 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-51
SELECT + 0 - COUNT( * ) AS col0, 27 + + 49 - 63 * + + 10 * 7 * - 55
----
-1
242626

skipif mysql # not compatible
query II rowsort label-51
SELECT + 0 - COUNT ( * ) AS col0, 27 + + 49 - 63 * + + 10 * 7 * - 55
----
-1
242626

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT ALL COUNT( + 95 ) + + 75 + - 0 * + COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL COUNT ( + 95 ) + + 75 + - 0 * + COUNT ( * ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-53
SELECT 33 + + MIN( 9 ) * + + 10 + + 25 * + + 53 AS col2, + COUNT( * )
----
1448
1

skipif mysql # not compatible
query II rowsort label-53
SELECT 33 + + MIN ( 9 ) * + + 10 + + 25 * + + 53 AS col2, + COUNT ( * )
----
1448
1

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

skipif mysql # not compatible
query II rowsort label-54
SELECT DISTINCT - COUNT ( * ) AS col1, - 70 AS col1
----
-1
-70

query I rowsort
SELECT + 57 + + 55 AS col2
----
112

query I rowsort
SELECT 23 + ( + + 41 )
----
64

query I rowsort
SELECT + NULLIF ( + 52, + 76 * - 57 - + 22 + + 65 ) * - 24 + 2
----
-1246

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ALL 49 * SUM( + 42 ) AS col0
----
2058

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL 49 * SUM ( + 42 ) AS col0
----
2058

query II rowsort
SELECT DISTINCT - 15 AS col0, 90 + - + 72
----
-15
18

query I rowsort
SELECT DISTINCT 58 + - - 90 AS col0
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-61
SELECT - COALESCE ( - - COUNT( * ), + 46 + - 22 + + 71 * - 27 DIV + 12 ) + - COUNT( * ) DIV - 15
----
-1

skipif mysql # not compatible
query I rowsort label-61
SELECT - COALESCE ( - - COUNT ( * ), + 46 + - 22 + + 71 * - 27 / + 12 ) + - COUNT ( * ) / - 15
----
-1

query I rowsort
SELECT ALL 77 + 92
----
169

onlyif mysql # DIV for integer division: 
query II rowsort label-63
SELECT ( - 18 ) + - 45 DIV 77 * - - 17 AS col1, + 62 AS col1
----
-18
62

skipif mysql # not compatible
query II rowsort label-63
SELECT ( - 18 ) + - 45 / 77 * - - 17 AS col1, + 62 AS col1
----
-18
62

query I rowsort
SELECT 24 + - 12 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT MAX( DISTINCT - COALESCE ( + - 30, - 93, 53 * + + 54 * - 52 * CASE - + 29 WHEN 1 THEN NULL ELSE - 68 END ) ) * - ( 58 ) + - 36
----
-1776

skipif mysql # not compatible
query I rowsort label-65
SELECT MAX ( DISTINCT - COALESCE ( + - 30, - 93, 53 * + + 54 * - 52 * CASE - + 29 WHEN 1 THEN NULL ELSE - 68 END ) ) * - ( 58 ) + - 36
----
-1776

onlyif mysql # DIV for integer division: 
query I rowsort label-66
SELECT ALL - 96 DIV ( ( - 61 ) )
----
1

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL - 96 / ( ( - 61 ) )
----
1

query I rowsort
SELECT 11 + 31
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT 14 DIV - NULLIF ( + 39, - 27 )
----
0

skipif mysql # not compatible
query I rowsort label-68
SELECT 14 / - NULLIF ( + 39, - 27 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-69
SELECT 21 + - COUNT( * ) - 76 + - - ( + + 27 ) + 9 * CASE WHEN - CAST( NULL AS SIGNED ) BETWEEN + 98 + + + 68 AND + 3 * + COUNT( * ) + - 64 * - 39 * - 32 DIV + COUNT( * ) THEN NULL ELSE 62 DIV 10 END + ( - 60 ) + + - 50
----
-85

skipif mysql # not compatible
query I rowsort label-69
SELECT 21 + - COUNT ( * ) - 76 + - - ( + + 27 ) + 9 * CASE WHEN - CAST ( NULL AS INTEGER ) BETWEEN + 98 + + + 68 AND + 3 * + COUNT ( * ) + - 64 * - 39 * - 32 / + COUNT ( * ) THEN NULL ELSE 62 / 10 END + ( - 60 ) + + - 50
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT ALL COUNT( * ) * - 3 col1
----
-3

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL COUNT ( * ) * - 3 col1
----
-3

query I rowsort
SELECT 70 * + 18 + + + 41 * - 16 AS col2
----
604

onlyif mysql # DIV for integer division: 
query II rowsort label-72
SELECT DISTINCT - 24 * + - 42, + 39 + 87 DIV 84 AS col1
----
1008
40

skipif mysql # not compatible
query II rowsort label-72
SELECT DISTINCT - 24 * + - 42, + 39 + 87 / 84 AS col1
----
1008
40

query I rowsort
SELECT - ( + 65 ) * - + 84 + - 10 + 25
----
5475

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT ALL - COUNT( * ) * - 9 * 14
----
126

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL - COUNT ( * ) * - 9 * 14
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT DISTINCT - CASE - 81 WHEN + 80 THEN + ( 45 ) - + COALESCE ( - 68, 40 ) WHEN + ( COUNT( + 41 ) ) * + + 95 THEN - - AVG ( - 54 ) * 69 * + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-75
SELECT DISTINCT - CASE - 81 WHEN + 80 THEN + ( 45 ) - + COALESCE ( - 68, 40 ) WHEN + ( COUNT ( + 41 ) ) * + + 95 THEN - - AVG ( - 54 ) * 69 * + 62 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT - COUNT( * ) * - 86 * 70 + + COUNT( * )
----
6021

skipif mysql # not compatible
query I rowsort label-77
SELECT - COUNT ( * ) * - 86 * 70 + + COUNT ( * )
----
6021

query I rowsort
SELECT - 93 * CASE - 8 WHEN - 51 THEN + ( - 67 ) * 36 ELSE - + 66 END AS col2
----
6138

query I rowsort
SELECT ALL + 18 * 75 + - + 2
----
1348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-80
SELECT ALL - NULLIF ( + - ( - + 26 ), 44 * - 86 / CAST( NULL AS SIGNED ) / + 43 + 2 ) * - COUNT( + 64 ) * + + 98 / CASE - ( CAST( NULL AS SIGNED ) ) WHEN - 28 / + 22 + - CAST( NULL AS SIGNED ) THEN - - ( - 80 ) + - 60 - + 63 + - MIN( - 10 ) - COUNT( * ) + ( - - 43 ) END * + 40 + - + COUNT( ALL 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL - NULLIF ( + - ( - + 26 ), 44 * - 86 / CAST ( NULL AS INTEGER ) / + 43 + 2 ) * - COUNT ( + 64 ) * + + 98 / CASE - ( CAST ( NULL AS INTEGER ) ) WHEN - 28 / + 22 + - CAST ( NULL AS INTEGER ) THEN - - ( - 80 ) + - 60 - + 63 + - MIN ( - 10 ) - COUNT ( * ) + ( - - 43 ) END * + 40 + - + COUNT ( ALL 5 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-81
SELECT ALL - ( ( ( 7 ) ) ) * + CAST( NULL AS SIGNED ) + 43
----
NULL

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

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

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

query I rowsort
SELECT - - 11 * - 45
----
-495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-84
SELECT COALESCE ( + - 83, + - 43 + - 32 + + CAST( NULL AS SIGNED ) * - COUNT( * ) * + 68 + + - CASE CASE - ( - MAX( ALL 42 ) ) WHEN MIN( + 5 ) * + COALESCE ( - COUNT( * ), - 47 + + 88, + 3 * + 63 + NULLIF ( + + 10, + + 17 + + 91 ) ) THEN - - 80 END WHEN - - 18 + - + CAST( NULL AS SIGNED ) THEN + - CASE 98 WHEN COUNT( - - 53 ) * 31 DIV + COUNT( * ) + + - 23 + 82 THEN 62 WHEN - 3 + 18 THEN NULL ELSE - SUM( + 91 ) END + - COUNT( * ) WHEN 21 THEN NULL ELSE NULL END, 10 + COUNT( * ), - 89 DIV - 10 ) * 26 + - 99
----
-2257

skipif mysql # not compatible
query I rowsort label-84
SELECT COALESCE ( + - 83, + - 43 + - 32 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + 68 + + - CASE CASE - ( - MAX ( ALL 42 ) ) WHEN MIN ( + 5 ) * + COALESCE ( - COUNT ( * ), - 47 + + 88, + 3 * + 63 + NULLIF ( + + 10, + + 17 + + 91 ) ) THEN - - 80 END WHEN - - 18 + - + CAST ( NULL AS INTEGER ) THEN + - CASE 98 WHEN COUNT ( - - 53 ) * 31 / + COUNT ( * ) + + - 23 + 82 THEN 62 WHEN - 3 + 18 THEN NULL ELSE - SUM ( + 91 ) END + - COUNT ( * ) WHEN 21 THEN NULL ELSE NULL END, 10 + COUNT ( * ), - 89 / - 10 ) * 26 + - 99
----
-2257

onlyif mysql # aggregate syntax: 
query II rowsort label-85
SELECT + MIN( - - 69 ), 5 * - + NULLIF ( 23, - COUNT( DISTINCT + 35 ) ) col1
----
69
-115

skipif mysql # not compatible
query II rowsort label-85
SELECT + MIN ( - - 69 ), 5 * - + NULLIF ( 23, - COUNT ( DISTINCT + 35 ) ) col1
----
69
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT ALL MAX( ALL + 37 ) + - 23 * - + 11 + + 93 + + + 62 AS col2
----
445

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL MAX ( ALL + 37 ) + - 23 * - + 11 + + 93 + + + 62 AS col2
----
445

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-88
SELECT ALL - 65 + - + ( + 35 ) DIV + + 11 col2
----
-68

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL - 65 + - + ( + 35 ) / + + 11 col2
----
-68

query I rowsort
SELECT + + 79 * + - 48 AS col0
----
-3792

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

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL + ( + COUNT ( * ) ) / - 64
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-91
SELECT - - 10 - + + 49, - 29 / - - CAST( NULL AS SIGNED ) col1
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-91
SELECT - - 10 - + + 49, - 29 / - - CAST ( NULL AS INTEGER ) col1
----
-39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT + - 4 * CASE - - 51 WHEN + 25 THEN + 7 + - + ( - 89 ) / - 34 / 50 * COUNT( * ) * - COUNT( * ) * + - 17 * - - 10 - - MAX( ALL - 60 ) / - 66 * 22 WHEN 41 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-92
SELECT + - 4 * CASE - - 51 WHEN + 25 THEN + 7 + - + ( - 89 ) / - 34 / 50 * COUNT ( * ) * - COUNT ( * ) * + - 17 * - - 10 - - MAX ( ALL - 60 ) / - 66 * 22 WHEN 41 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - - 81 col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT + + NULLIF ( - 42, + NULLIF ( - MIN( NULLIF ( - + 6, - 78 ) ), - + ( + 53 ) ) * + COUNT( * ) ) + - + COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-94
SELECT + + NULLIF ( - 42, + NULLIF ( - MIN ( NULLIF ( - + 6, - 78 ) ), - + ( + 53 ) ) * + COUNT ( * ) ) + - + COUNT ( * ) AS col0
----
-43

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

query I rowsort
SELECT ALL 1 - - 36 AS col0
----
37

query I rowsort
SELECT + 7 * - 36 * 8 AS col2
----
-2016

query I rowsort
SELECT - 13 * 12 AS col2
----
-156

query I rowsort
SELECT + 83 - 33 AS col2
----
50

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

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

query I rowsort
SELECT ALL 65 * - 82
----
-5330

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-103
SELECT DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN + ( + COUNT( * ) ) * 51 THEN - + 21 * - 39 * + COALESCE ( + + 62, - + 98, + 44 * - 16 + + 73 * - 57 * - 58 + - - 86 + - 33 ) WHEN COUNT( * ) * + - 27 THEN NULL WHEN + - 10 THEN 5 + - - 66 - + 92 + 34 * + + 35 * + SUM( ALL + + 73 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN + ( + COUNT ( * ) ) * 51 THEN - + 21 * - 39 * + COALESCE ( + + 62, - + 98, + 44 * - 16 + + 73 * - 57 * - 58 + - - 86 + - 33 ) WHEN COUNT ( * ) * + - 27 THEN NULL WHEN + - 10 THEN 5 + - - 66 - + 92 + 34 * + + 35 * + SUM ( ALL + + 73 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-104
SELECT ALL 4 AS col2, - 54 DIV - + 32
----
4
1

skipif mysql # not compatible
query II rowsort label-104
SELECT ALL 4 AS col2, - 54 / - + 32
----
4
1

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT + 23 + - COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-105
SELECT + 23 + - COUNT ( * ) AS col0
----
22

query II rowsort
SELECT ALL + 85, + 73 col1
----
85
73

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT + 41 * NULLIF ( NULLIF ( 53, 24 * MIN( ALL + - 67 ) ), - 14 ) * COUNT( * ) AS col2
----
2173

skipif mysql # not compatible
query I rowsort label-107
SELECT + 41 * NULLIF ( NULLIF ( 53, 24 * MIN ( ALL + - 67 ) ), - 14 ) * COUNT ( * ) AS col2
----
2173

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-109
SELECT + 14 AS col0, - ( + COUNT( + 90 ) )
----
14
-1

skipif mysql # not compatible
query II rowsort label-109
SELECT + 14 AS col0, - ( + COUNT ( + 90 ) )
----
14
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT ALL 31 DIV - + 30 + - 61 + - 10 + + ( ( - 51 ) )
----
-123

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL 31 / - + 30 + - 61 + - 10 + + ( ( - 51 ) )
----
-123

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

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

query II rowsort
SELECT + 25 AS col1, - 12
----
25
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT ALL + 6 * - 1 + - + SUM( DISTINCT + + ( - 25 ) )
----
19

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL + 6 * - 1 + - + SUM ( DISTINCT + + ( - 25 ) )
----
19

query I rowsort
SELECT - CASE 17 WHEN - 53 + 40 THEN + 99 * + 5 WHEN + 36 THEN NULL ELSE NULL END / 53 AS col1
----
NULL

query I rowsort
SELECT ALL + 99 * - ( - 17 ) + - 53
----
1630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-116
SELECT ALL - 49 * ( COUNT( * ) ) + + + 3 DIV + 37 + + - 5 + + + 70 * 26 * + 51 * - 75 AS col2
----
-6961554

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL - 49 * ( COUNT ( * ) ) + + + 3 / + 37 + + - 5 + + + 70 * 26 * + 51 * - 75 AS col2
----
-6961554

onlyif mysql # aggregate syntax: 
query II rowsort label-117
SELECT + COUNT( * ) AS col2, + COUNT( * ) * 27 + - - ( + 55 )
----
1
82

skipif mysql # not compatible
query II rowsort label-117
SELECT + COUNT ( * ) AS col2, + COUNT ( * ) * 27 + - - ( + 55 )
----
1
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-118
SELECT ALL + NULLIF ( + + CAST( + 49 AS SIGNED ), + CASE - 13 WHEN AVG ( ALL + 79 ) * + 76 * COUNT( - 47 ) * + 43 THEN NULL WHEN - - 70 + + 78 THEN NULL WHEN - 97 * + 55 * + + 19 - - CASE WHEN + 50 <> - - 24 THEN - AVG ( 11 ) END * - 73 THEN - + 93 ELSE NULL END + - + 66 )
----
49

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL + NULLIF ( + + CAST ( + 49 AS INTEGER ), + CASE - 13 WHEN AVG ( ALL + 79 ) * + 76 * COUNT ( - 47 ) * + 43 THEN NULL WHEN - - 70 + + 78 THEN NULL WHEN - 97 * + 55 * + + 19 - - CASE WHEN + 50 <> - - 24 THEN - AVG ( 11 ) END * - 73 THEN - + 93 ELSE NULL END + - + 66 )
----
49

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

skipif mysql # not compatible
query I rowsort label-119
SELECT - 82 / COUNT ( * )
----
-82

query II rowsort
SELECT - 26 + - 87 * - 65 col1, - 89
----
5629
-89

query I rowsort
SELECT - 95 * + 97
----
-9215

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT ALL SUM( 78 ) * 40 * + 4 + 58 * + + 36 AS col0
----
14568

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL SUM ( 78 ) * 40 * + 4 + 58 * + + 36 AS col0
----
14568

query I rowsort
SELECT - 35 - 3 AS col0
----
-38

query I rowsort
SELECT DISTINCT + COALESCE ( + 0, + 33 + + - 20 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT DISTINCT 8 * + 44 - - + 29 * + COUNT( * ) * + 82 * - 27 + + - 3
----
-63857

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT 8 * + 44 - - + 29 * + COUNT ( * ) * + 82 * - 27 + + - 3
----
-63857

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-127
SELECT + 66 * + ( - 84 ) + - + ( - AVG ( + 52 ) ) * ( MAX( DISTINCT CAST( NULL AS SIGNED ) ) ) - 70 + - 42 / + COALESCE ( - COUNT( * ), 36, + ( - 97 ) - 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-127
SELECT + 66 * + ( - 84 ) + - + ( - AVG ( + 52 ) ) * ( MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) ) - 70 + - 42 / + COALESCE ( - COUNT ( * ), 36, + ( - 97 ) - 84 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-128
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col2, 9 + + 35
----
NULL
44

skipif mysql # not compatible
query II rowsort label-128
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2, 9 + + 35
----
NULL
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-129
SELECT ( 72 ) * - SUM( ALL - - 13 ) + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-129
SELECT ( 72 ) * - SUM ( ALL - - 13 ) + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 66 AS col1, - 59 AS col0
----
66
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-131
SELECT ALL + + 83 * CAST( - + 47 AS SIGNED ) AS col0, + 89 + - - 56
----
-3901
145

skipif mysql # not compatible
query II rowsort label-131
SELECT ALL + + 83 * CAST ( - + 47 AS INTEGER ) AS col0, + 89 + - - 56
----
-3901
145

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT - + 39 + - + COUNT( * ) * + 49 + 35
----
-53

skipif mysql # not compatible
query I rowsort label-132
SELECT - + 39 + - + COUNT ( * ) * + 49 + 35
----
-53

query II rowsort
SELECT - - 64 + + + 99 * 1 AS col1, 26
----
163
26

query I rowsort
SELECT + 11 + 10 - - 18 * 98 + + 43
----
1828

onlyif mysql # aggregate syntax: 
query II rowsort label-135
SELECT - 60 AS col1, - MAX( DISTINCT - + 56 ) AS col0
----
-60
56

skipif mysql # not compatible
query II rowsort label-135
SELECT - 60 AS col1, - MAX ( DISTINCT - + 56 ) AS col0
----
-60
56

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-136
SELECT - 64 / + 74 * + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) + + - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-136
SELECT - 64 / + 74 * + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) + + - 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT + 72 + + MIN( + 78 )
----
150

skipif mysql # not compatible
query I rowsort label-137
SELECT + 72 + + MIN ( + 78 )
----
150

query I rowsort
SELECT DISTINCT + 96 * + 58
----
5568

query I rowsort
SELECT + 60 + - 44
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-140
SELECT + 77 DIV ( + 35 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-140
SELECT + 77 / ( + 35 ) AS col0
----
2

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-143
SELECT 56 * - 59 / + CASE - COUNT( DISTINCT + 91 ) WHEN 26 THEN CAST( 59 AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-143
SELECT 56 * - 59 / + CASE - COUNT ( DISTINCT + 91 ) WHEN 26 THEN CAST ( 59 AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-144
SELECT COUNT( * ) * + CASE + 76 WHEN + + 78 THEN + - 80 END, 4 AS col1
----
NULL
4

skipif mysql # not compatible
query II rowsort label-144
SELECT COUNT ( * ) * + CASE + 76 WHEN + + 78 THEN + - 80 END, 4 AS col1
----
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT ALL 5 + - + MAX( 1 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-145
SELECT ALL 5 + - + MAX ( 1 ) AS col1
----
4

query I rowsort
SELECT 46 + - + CASE - + 72 WHEN - 90 THEN - - ( - + COALESCE ( + 38, - + 32, + - 21 ) ) END AS col2
----
NULL

query II rowsort
SELECT DISTINCT 17 + 20 col2, 72
----
37
72

query I rowsort
SELECT ALL 82 * 78 AS col1
----
6396

query I rowsort
SELECT ALL ( - 46 ) + - 59 * - 1 col1
----
13

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

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

query I rowsort
SELECT ALL - 71 + 65
----
-6

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

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL - NULLIF ( - 90, - + COUNT ( * ) )
----
90

query I rowsort
SELECT COALESCE ( 90, - ( + CASE + 16 WHEN - 13 THEN 74 END ) ) * + + 25 AS col1
----
2250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-154
SELECT + COUNT( * ) * - 14 DIV + 59 + + + 92 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-154
SELECT + COUNT ( * ) * - 14 / + 59 + + + 92 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT ALL - 59 + + MIN( ALL - - 77 )
----
18

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL - 59 + + MIN ( ALL - - 77 )
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-156
SELECT + 19 * - 64 AS col1, 50 + 83 + - + 98 DIV - + 59
----
-1216
134

skipif mysql # not compatible
query II rowsort label-156
SELECT + 19 * - 64 AS col1, 50 + 83 + - + 98 / - + 59
----
-1216
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-157
SELECT + 14 * CAST( + 18 AS SIGNED ) * - - 78 + - + COUNT( * ) * - + 67
----
19723

skipif mysql # not compatible
query I rowsort label-157
SELECT + 14 * CAST ( + 18 AS INTEGER ) * - - 78 + - + COUNT ( * ) * - + 67
----
19723

query I rowsort
SELECT ALL + 98 - 33 + - 11 AS col0
----
54

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-160
SELECT DISTINCT NULLIF ( NULLIF ( CAST( NULL AS SIGNED ), 78 ), + + 59 ) * + + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT NULLIF ( NULLIF ( CAST ( NULL AS INTEGER ), 78 ), + + 59 ) * + + 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL + - NULLIF ( 73, + + 66 * - 53 - 58 + - 57 ) - + NULLIF ( 83, - 31 + - 24 * NULLIF ( + 46, 12 * - + COUNT( * ) * 87 + - 58 ) * + 81 * + 73 + + 35 - - COUNT( * ) * 97 ) * 35 AS col1
----
-2978

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL + - NULLIF ( 73, + + 66 * - 53 - 58 + - 57 ) - + NULLIF ( 83, - 31 + - 24 * NULLIF ( + 46, 12 * - + COUNT ( * ) * 87 + - 58 ) * + 81 * + 73 + + 35 - - COUNT ( * ) * 97 ) * 35 AS col1
----
-2978

query I rowsort
SELECT COALESCE ( - - 23, + 66 )
----
23

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

onlyif mysql # aggregate syntax: 
query II rowsort label-164
SELECT - 9 + 65 col0, COUNT( * ) + - + 37 + + COUNT( * ) * - 42
----
56
-78

skipif mysql # not compatible
query II rowsort label-164
SELECT - 9 + 65 col0, COUNT ( * ) + - + 37 + + COUNT ( * ) * - 42
----
56
-78

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

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

query I rowsort
SELECT DISTINCT + 65 * 6 AS col1
----
390

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-167
SELECT ALL 34 AS col0, 42 + - - CAST( NULL AS SIGNED )
----
34
NULL

skipif mysql # not compatible
query II rowsort label-167
SELECT ALL 34 AS col0, 42 + - - CAST ( NULL AS INTEGER )
----
34
NULL

query I rowsort
SELECT ALL 48 * + NULLIF ( - + 72, 15 + - - 81 + + 52 )
----
-3456

query I rowsort
SELECT 11 * - - 13
----
143

query II rowsort
SELECT 14 + - 78 - 30, + 96 AS col0
----
-94
96

query I rowsort
SELECT 56 + - 50 AS col2
----
6

query I rowsort
SELECT ALL - 47 * + 75
----
-3525

query I rowsort
SELECT 65 + + 35
----
100

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

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

query I rowsort
SELECT ALL 64 + - 12
----
52

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

skipif mysql # not compatible
query I rowsort label-176
SELECT 55 / + 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT MIN( + + 23 ) - + + 37 + + - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-177
SELECT MIN ( + + 23 ) - + + 37 + + - COUNT ( * )
----
-15

query II rowsort
SELECT ALL + 76 + + COALESCE ( + 35, 70, + 40 ) AS col2, + 43
----
111
43

query II rowsort
SELECT ALL 34 * - 19 * + 17 AS col0, - 55 * - 69 AS col1
----
-10982
3795

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT 81 DIV - + 41
----
-1

skipif mysql # not compatible
query I rowsort label-180
SELECT 81 / - + 41
----
-1

query I rowsort
SELECT DISTINCT 63 + - 21 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT ALL 78 * COUNT( * ) * + 34 - + + 87
----
2565

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL 78 * COUNT ( * ) * + 34 - + + 87
----
2565

query I rowsort
SELECT ALL 25 * 43
----
1075

query I rowsort
SELECT + + NULLIF ( + - 82, - - 4 ) AS col2
----
-82

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

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

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

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

query I rowsort
SELECT ALL 14 * + + 57 AS col2
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT 22 * + COUNT( * ) + - NULLIF ( + 20, + 92 * 22 / - 3 ) + - 66 + + - 99
----
-163

skipif mysql # not compatible
query I rowsort label-188
SELECT 22 * + COUNT ( * ) + - NULLIF ( + 20, + 92 * 22 / - 3 ) + - 66 + + - 99
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-189
SELECT ALL - + CASE - CAST( COUNT( * ) AS SIGNED ) WHEN + + 2 THEN CASE CASE 97 WHEN + 95 + + CAST( NULL AS SIGNED ) THEN NULL ELSE + 85 + SUM( DISTINCT - + 76 ) END WHEN + 77 THEN + 33 * - MIN( DISTINCT 29 ) * - + 68 + 57 * 75 / - - COALESCE ( - + 40, + 32 ) WHEN + 97 THEN - 63 ELSE + - 79 / 83 - - - 12 * 8 * + + CAST( 23 AS SIGNED ) * + - 28 * + 21 * + 14 * + COUNT( * ) + - - 2 * + + 52 END WHEN - 89 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL - + CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN + + 2 THEN CASE CASE 97 WHEN + 95 + + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 85 + SUM ( DISTINCT - + 76 ) END WHEN + 77 THEN + 33 * - MIN ( DISTINCT 29 ) * - + 68 + 57 * 75 / - - COALESCE ( - + 40, + 32 ) WHEN + 97 THEN - 63 ELSE + - 79 / 83 - - - 12 * 8 * + + CAST ( 23 AS INTEGER ) * + - 28 * + 21 * + 14 * + COUNT ( * ) + - - 2 * + + 52 END WHEN - 89 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-190
SELECT + NULLIF ( 53, 16 - + - 45 ) + + + 98 AS col1, 58 * NULLIF ( + 81, 25 + 62 + - MIN( + - NULLIF ( - - 9, - 68 ) ) * - + 26 ) AS col2
----
151
4698

skipif mysql # not compatible
query II rowsort label-190
SELECT + NULLIF ( 53, 16 - + - 45 ) + + + 98 AS col1, 58 * NULLIF ( + 81, 25 + 62 + - MIN ( + - NULLIF ( - - 9, - 68 ) ) * - + 26 ) AS col2
----
151
4698

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

query I rowsort
SELECT + 33 + + 72
----
105

query II rowsort
SELECT DISTINCT - 66 AS col1, 13 AS col1
----
-66
13

query I rowsort
SELECT ALL - + NULLIF ( - 80, 34 ) * - - 66 col1
----
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT 25 + + NULLIF ( + NULLIF ( 67, 64 ), + - COUNT( * ) * + 7 * - - 30 + + 19 - 21 * + 62 ) + - 87
----
5

skipif mysql # not compatible
query I rowsort label-195
SELECT 25 + + NULLIF ( + NULLIF ( 67, 64 ), + - COUNT ( * ) * + 7 * - - 30 + + 19 - 21 * + 62 ) + - 87
----
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-197
SELECT ALL + ( + 40 ) * + 25 + + 66 + + 82 + + + 45 + - CASE 87 WHEN SUM( - + 94 ) * + - 85 + 78 THEN + ( - + 99 ) * + 68 * 32 + 77 * + CAST( - + CAST( 2 AS DECIMAL ) AS DECIMAL ) * 83 WHEN COUNT( * ) THEN - + 31 ELSE NULL END + 58 * 55 AS col2, 72 + 40 + 65 - - 82 + + 68
----
NULL
327

skipif mysql # not compatible
query II rowsort label-197
SELECT ALL + ( + 40 ) * + 25 + + 66 + + 82 + + + 45 + - CASE 87 WHEN SUM ( - + 94 ) * + - 85 + 78 THEN + ( - + 99 ) * + 68 * 32 + 77 * + CAST ( - + CAST ( 2 AS REAL ) AS REAL ) * 83 WHEN COUNT ( * ) THEN - + 31 ELSE NULL END + 58 * 55 AS col2, 72 + 40 + 65 - - 82 + + 68
----
NULL
327

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT 2 * + ( - MAX( DISTINCT + - 60 ) ) * - 62 - 33 AS col1
----
-7473

skipif mysql # not compatible
query I rowsort label-198
SELECT 2 * + ( - MAX ( DISTINCT + - 60 ) ) * - 62 - 33 AS col1
----
-7473

query I rowsort
SELECT DISTINCT + 59 + - ( 7 )
----
52

query I rowsort
SELECT ALL 42 + + - 7
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-201
SELECT - 33, 84 * - 65 + - CASE - 24 WHEN + COUNT( * ) + + + 63 + - + CAST( + CASE COUNT( * ) WHEN NULLIF ( COUNT( * ), + COALESCE ( + + 57, + 73 - 59, + 32 + + + 75 + - + 68 - + 18 ) - - AVG ( ALL 31 ) ) / 59 THEN NULL WHEN - + CAST( NULL AS SIGNED ) * - 84 THEN NULL WHEN - - 44 + + + 71 + - - AVG ( DISTINCT + 32 ) + + - COUNT( * ) + + CAST( - + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS SIGNED ) * + COUNT( * ) THEN + + 22 WHEN - + 39 THEN - 82 END AS SIGNED ) - - 59 THEN - 94 ELSE NULL END * - 87 + 51 * - 29 AS col2
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-201
SELECT - 33, 84 * - 65 + - CASE - 24 WHEN + COUNT ( * ) + + + 63 + - + CAST ( + CASE COUNT ( * ) WHEN NULLIF ( COUNT ( * ), + COALESCE ( + + 57, + 73 - 59, + 32 + + + 75 + - + 68 - + 18 ) - - AVG ( ALL 31 ) ) / 59 THEN NULL WHEN - + CAST ( NULL AS INTEGER ) * - 84 THEN NULL WHEN - - 44 + + + 71 + - - AVG ( DISTINCT + 32 ) + + - COUNT ( * ) + + CAST ( - + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + COUNT ( * ) THEN + + 22 WHEN - + 39 THEN - 82 END AS INTEGER ) - - 59 THEN - 94 ELSE NULL END * - 87 + 51 * - 29 AS col2
----
-33
NULL

query I rowsort
SELECT ALL ( - + ( - 14 ) ) + - - 80 AS col0
----
94

query I rowsort
SELECT + 24 + ( + 47 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT - NULLIF ( - 24, + COUNT( ALL + 16 ) ) + 43 - 64
----
3

skipif mysql # not compatible
query I rowsort label-204
SELECT - NULLIF ( - 24, + COUNT ( ALL + 16 ) ) + 43 - 64
----
3

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

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

skipif mysql # not compatible
query I rowsort label-206
SELECT + 1 / + 97
----
0

query I rowsort
SELECT - 6 + + 9 AS col0
----
3

query I rowsort
SELECT ALL - 16 + + 39
----
23

query I rowsort
SELECT - NULLIF ( + 44, 29 ) AS col2
----
-44

query I rowsort
SELECT DISTINCT - 7 + 12
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-211
SELECT 1 AS col0, CASE - + 46 WHEN - - 81 THEN 83 * - + 51 / + 61 * - - 91 + 93 * - COUNT( * ) * 89 END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-211
SELECT 1 AS col0, CASE - + 46 WHEN - - 81 THEN 83 * - + 51 / + 61 * - - 91 + 93 * - COUNT ( * ) * 89 END AS col0
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-212
SELECT ALL + 89 + - COUNT( * ) + - 12 DIV - 74
----
88

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

query I rowsort
SELECT - 70 + 66
----
-4

query II rowsort
SELECT ALL 54 AS col0, - 68 AS col2
----
54
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-215
SELECT DISTINCT 6 AS col2, CAST( NULL AS SIGNED ) * - 18 / - - ( - ( + + CAST( - 24 AS SIGNED ) ) )
----
6
NULL

skipif mysql # not compatible
query II rowsort label-215
SELECT DISTINCT 6 AS col2, CAST ( NULL AS INTEGER ) * - 18 / - - ( - ( + + CAST ( - 24 AS INTEGER ) ) )
----
6
NULL

query I rowsort
SELECT - 47 + + 68
----
21

query I rowsort
SELECT ALL - 16 * 45
----
-720

query I rowsort
SELECT ALL + 89 + + + 8
----
97

query II rowsort
SELECT - 65 AS col1, 57 col0
----
-65
57

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT - MIN( DISTINCT + 44 ) + + COUNT( * ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-220
SELECT - MIN ( DISTINCT + 44 ) + + COUNT ( * ) col2
----
-43

query I rowsort
SELECT - 11 * - + 82 col1
----
902

query I rowsort
SELECT - 17 * + - 12 AS col1
----
204

query I rowsort
SELECT - ( 29 ) + - 57
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT - - ( - COUNT( * ) ) * + + 89 + + - COUNT( + 38 )
----
-90

skipif mysql # not compatible
query I rowsort label-225
SELECT - - ( - COUNT ( * ) ) * + + 89 + + - COUNT ( + 38 )
----
-90

query I rowsort
SELECT - ( - + 88 ) + - ( ( 92 ) ) col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT DISTINCT - ( + 55 ) * + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT - ( + 55 ) * + COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-228
SELECT + 60 * 15 * 70 + + COALESCE ( - + COUNT( * ), 63 ) + - ( - 23 ) DIV + COUNT( * )
----
63022

skipif mysql # not compatible
query I rowsort label-228
SELECT + 60 * 15 * 70 + + COALESCE ( - + COUNT ( * ), 63 ) + - ( - 23 ) / + COUNT ( * )
----
63022

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT ALL + - 76 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL + - 76 / - 84
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-230
SELECT ALL + + 38 AS col1, - 21 * - + COUNT( * )
----
38
21

skipif mysql # not compatible
query II rowsort label-230
SELECT ALL + + 38 AS col1, - 21 * - + COUNT ( * )
----
38
21

query I rowsort
SELECT - - 77 * + 19 AS col2
----
1463

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-232
SELECT ALL + - 47 AS col0, CAST( - 76 AS SIGNED ) * + 45 + - + 47
----
-47
-3467

skipif mysql # not compatible
query II rowsort label-232
SELECT ALL + - 47 AS col0, CAST ( - 76 AS INTEGER ) * + 45 + - + 47
----
-47
-3467

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-234
SELECT ALL + + COALESCE ( - 52, - 18, 68 DIV + - 36 ) * 41 + - 89 * + 73 AS col0
----
-8629

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL + + COALESCE ( - 52, - 18, 68 / + - 36 ) * 41 + - 89 * + 73 AS col0
----
-8629

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-235
SELECT + + 94, CAST( - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
94
NULL

skipif mysql # not compatible
query II rowsort label-235
SELECT + + 94, CAST ( - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
94
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-236
SELECT ALL + 81 AS col2, 99 * + COUNT( * ) - + 6 DIV - - COUNT( * ) + + + 0 AS col1
----
81
93

skipif mysql # not compatible
query II rowsort label-236
SELECT ALL + 81 AS col2, 99 * + COUNT ( * ) - + 6 / - - COUNT ( * ) + + + 0 AS col1
----
81
93

onlyif mysql # aggregate syntax: 
query II rowsort label-237
SELECT ALL + 27 AS col2, COUNT( ALL + + 15 ) AS col2
----
27
1

skipif mysql # not compatible
query II rowsort label-237
SELECT ALL + 27 AS col2, COUNT ( ALL + + 15 ) AS col2
----
27
1

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT DISTINCT + COUNT( * ) * + - CASE 12 WHEN - 13 THEN - + 75 * - 85 END + + 33 + - + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT + COUNT ( * ) * + - CASE 12 WHEN - 13 THEN - + 75 * - 85 END + + 33 + - + 64 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-239
SELECT - 25 * + ( + 43 ) AS col1, - 74 + - CAST( NULL AS SIGNED )
----
-1075
NULL

skipif mysql # not compatible
query II rowsort label-239
SELECT - 25 * + ( + 43 ) AS col1, - 74 + - CAST ( NULL AS INTEGER )
----
-1075
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT COUNT( + 28 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-241
SELECT COUNT ( + 28 ) col2
----
1

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

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

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

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

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

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

query I rowsort
SELECT + 95 - + ( 8 )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-246
SELECT ALL COUNT( * ) * - - 51 + - 81 - - NULLIF ( COUNT( 2 ), - + 61 ) + ( ( - - SUM( - 41 ) ) ) DIV - 55 * - 77 * - 25 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-246
SELECT ALL COUNT ( * ) * - - 51 + - 81 - - NULLIF ( COUNT ( 2 ), - + 61 ) + ( ( - - SUM ( - 41 ) ) ) / - 55 * - 77 * - 25 AS col0
----
-29

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

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

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

query I rowsort
SELECT ALL + 85 * + - 72
----
-6120

onlyif mysql # aggregate syntax: 
query II rowsort label-250
SELECT ALL 70 * COUNT( * ) AS col0, + 84
----
70
84

skipif mysql # not compatible
query II rowsort label-250
SELECT ALL 70 * COUNT ( * ) AS col0, + 84
----
70
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-251
SELECT DISTINCT 88 * + ( + - COALESCE ( COUNT( * ), - + 6 DIV + - 53 - - 20 + - ( + SUM( DISTINCT CAST( NULL AS SIGNED ) ) ) ) )
----
-88

skipif mysql # not compatible
query I rowsort label-251
SELECT DISTINCT 88 * + ( + - COALESCE ( COUNT ( * ), - + 6 / + - 53 - - 20 + - ( + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ) ) )
----
-88

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

onlyif mysql # DIV for integer division: 
query II rowsort label-253
SELECT - NULLIF ( - ( 94 ), - + 88 ) DIV 58 AS col2, - 90
----
1
-90

skipif mysql # not compatible
query II rowsort label-253
SELECT - NULLIF ( - ( 94 ), - + 88 ) / 58 AS col2, - 90
----
1
-90

query I rowsort
SELECT ALL 23 * + 78 * + - 32
----
-57408

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

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

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

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

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

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

query I rowsort
SELECT ALL NULLIF ( - 32, - - ( 57 ) ) AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-259
SELECT - CAST( 84 AS SIGNED ) AS col2, + 8 AS col2
----
-84
8

skipif mysql # not compatible
query II rowsort label-259
SELECT - CAST ( 84 AS INTEGER ) AS col2, + 8 AS col2
----
-84
8

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

query I rowsort
SELECT - 57 - 64 - 15
----
-136

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

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

query II rowsort
SELECT + ( + 69 ) AS col0, 93 - + 5
----
69
88

query I rowsort
SELECT - + 66 * + ( + 30 ) * - - 75 * 71 + + 33 AS col2
----
-10543467

query I rowsort
SELECT DISTINCT - 44 * - - 98 * - 75 * + 82 col0
----
26518800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-266
SELECT DISTINCT - - 74 * - - CASE - CAST( + 42 AS SIGNED ) WHEN + 45 * + COUNT( 34 ) - COUNT( * ) THEN COUNT( * ) * 55 + + 77 / - 94 / + 8 / 25 + 27 + - 35 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-266
SELECT DISTINCT - - 74 * - - CASE - CAST ( + 42 AS INTEGER ) WHEN + 45 * + COUNT ( 34 ) - COUNT ( * ) THEN COUNT ( * ) * 55 + + 77 / - 94 / + 8 / 25 + 27 + - 35 ELSE NULL END
----
NULL

query I rowsort
SELECT - 62 * 39 * + 93
----
-224874

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT - - 89 - COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-268
SELECT - - 89 - COUNT ( * ) AS col1
----
88

query II rowsort
SELECT - - 40 * + 58, 2 AS col2
----
2320
2

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT ALL - MAX( - - 2 ) + - COUNT( ALL 33 ) + - 64 col1
----
-67

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL - MAX ( - - 2 ) + - COUNT ( ALL 33 ) + - 64 col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT - + COUNT( * ) * - 40 * + - 86 * - 8 + + COALESCE ( 7, - COALESCE ( + - MIN( DISTINCT + 4 ), + - 59 + + + 78 ) )
----
27527

skipif mysql # not compatible
query I rowsort label-271
SELECT - + COUNT ( * ) * - 40 * + - 86 * - 8 + + COALESCE ( 7, - COALESCE ( + - MIN ( DISTINCT + 4 ), + - 59 + + + 78 ) )
----
27527

query II rowsort
SELECT - 65 * - - 6, + 4 + 62 AS col1
----
-390
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-273
SELECT ALL + + 32 DIV 24 DIV + 61 * 78 - ( - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL + + 32 / 24 / + 61 * 78 - ( - COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-274
SELECT 4 DIV - CAST( - + ( - 46 ) AS SIGNED ) + - 21 + 80 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-274
SELECT 4 / - CAST ( - + ( - 46 ) AS INTEGER ) + - 21 + 80 AS col0
----
59

query I rowsort
SELECT 59 * + 10
----
590

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT ALL 89 + + MIN( ALL 32 )
----
121

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL 89 + + MIN ( ALL 32 )
----
121

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT 49 + - - 79 * ( + - COUNT( * ) )
----
-30

skipif mysql # not compatible
query I rowsort label-278
SELECT 49 + - - 79 * ( + - COUNT ( * ) )
----
-30

query I rowsort
SELECT ALL 83 * ( - 97 ) * + 26
----
-209326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-280
SELECT ALL + CASE - 78 WHEN + 37 * + - 72 / - 86 * 45 + + 67 THEN NULL WHEN - - CAST( - - ( - - CAST( + 49 AS SIGNED ) ) AS SIGNED ) THEN - + COUNT( * ) * - 8 END - 10 * + + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL + CASE - 78 WHEN + 37 * + - 72 / - 86 * 45 + + 67 THEN NULL WHEN - - CAST ( - - ( - - CAST ( + 49 AS INTEGER ) ) AS INTEGER ) THEN - + COUNT ( * ) * - 8 END - 10 * + + 82 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-281
SELECT MAX( DISTINCT CAST( 22 AS SIGNED ) ) + + + MAX( ALL + 78 ) col0
----
100

skipif mysql # not compatible
query I rowsort label-281
SELECT MAX ( DISTINCT CAST ( 22 AS INTEGER ) ) + + + MAX ( ALL + 78 ) col0
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-282
SELECT ALL + 26 * + 86 * 10 DIV - + 1 AS col1
----
-22360

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL + 26 * + 86 * 10 / - + 1 AS col1
----
-22360

onlyif mysql # DIV for integer division: 
query I rowsort label-283
SELECT ALL 35 - 13 + + 41 DIV - 22
----
21

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL 35 - 13 + + 41 / - 22
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-284
SELECT MIN( ALL 54 ) * + 83 * 10 * - CAST( NULL AS SIGNED ) * - - ( MIN( DISTINCT + ( - 45 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-284
SELECT MIN ( ALL 54 ) * + 83 * 10 * - CAST ( NULL AS INTEGER ) * - - ( MIN ( DISTINCT + ( - 45 ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-285
SELECT CASE - + 31 WHEN + 79 THEN NULL WHEN - + 55 * - + 83 THEN NULL ELSE + MAX( ALL 21 ) + 1 END + - + 66 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-285
SELECT CASE - + 31 WHEN + 79 THEN NULL WHEN - + 55 * - + 83 THEN NULL ELSE + MAX ( ALL 21 ) + 1 END + - + 66 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT ( ( + + CASE 37 WHEN - 21 THEN NULL WHEN + - 61 / + 48 * + - 19 + - + 73 + + 12 THEN - SUM( - ( + 69 ) ) ELSE NULL END ) ) * - - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-286
SELECT ( ( + + CASE 37 WHEN - 21 THEN NULL WHEN + - 61 / + 48 * + - 19 + - + 73 + + 12 THEN - SUM ( - ( + 69 ) ) ELSE NULL END ) ) * - - 74
----
NULL

query II rowsort
SELECT 64, + 23 AS col0
----
64
23

query II rowsort
SELECT ALL 19, 53 AS col1
----
19
53

onlyif mysql # aggregate syntax: 
query II rowsort label-289
SELECT ( + COUNT( * ) ) * 94 AS col2, 59 AS col1
----
94
59

skipif mysql # not compatible
query II rowsort label-289
SELECT ( + COUNT ( * ) ) * 94 AS col2, 59 AS col1
----
94
59

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

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

query I rowsort
SELECT ALL 80 * + 36
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT 62 + + - 8 * COUNT( * ) * + 91
----
-666

skipif mysql # not compatible
query I rowsort label-292
SELECT 62 + + - 8 * COUNT ( * ) * + 91
----
-666

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT - 19 - + COUNT( * ) * COUNT( * ) - - COUNT( * ) * MAX( DISTINCT - ( - 70 ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-293
SELECT - 19 - + COUNT ( * ) * COUNT ( * ) - - COUNT ( * ) * MAX ( DISTINCT - ( - 70 ) ) AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-294
SELECT ALL ( CASE + 21 WHEN + CAST( NULL AS SIGNED ) * - - 42 THEN - ( - 11 ) * 55 + + + 88 END ) * + 61 * + 52 * + 75 * 9 * + CAST( ( COUNT( * ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL ( CASE + 21 WHEN + CAST ( NULL AS INTEGER ) * - - 42 THEN - ( - 11 ) * 55 + + + 88 END ) * + 61 * + 52 * + 75 * 9 * + CAST ( ( COUNT ( * ) ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 63 * + 40 - + ( 14 ) * + NULLIF ( 86, + 98 ) * 40
----
-50680

onlyif mysql # aggregate syntax: 
query II rowsort label-296
SELECT - + 54 AS col2, COUNT( ALL + ( ( - 21 ) ) )
----
-54
1

skipif mysql # not compatible
query II rowsort label-296
SELECT - + 54 AS col2, COUNT ( ALL + ( ( - 21 ) ) )
----
-54
1

onlyif mysql # DIV for integer division: 
query I rowsort label-297
SELECT + ( 5 ) DIV + - 8 + 91 col1
----
91

skipif mysql # not compatible
query I rowsort label-297
SELECT + ( 5 ) / + - 8 + 91 col1
----
91

query I rowsort
SELECT ALL + - 84 + + 78 + - 41 * 81
----
-3327

onlyif mysql # DIV for integer division: 
query I rowsort label-299
SELECT DISTINCT - 7 DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT - 7 / + 46
----
0

query II rowsort
SELECT DISTINCT 64 + 47 * + 81 AS col1, + 15
----
3871
15

query I rowsort
SELECT + ( + 80 ) + + - 16 + - + 77 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT ALL - COUNT( * ) + + + 51
----
50

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL - COUNT ( * ) + + + 51
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-303
SELECT DISTINCT - ( + 24 ) + 53 DIV - 17 - + 93 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT - ( + 24 ) + 53 / - 17 - + 93 AS col0
----
-120

query I rowsort
SELECT - - ( 29 ) * + 38 + - - 85 * - + 64
----
-4338

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-305
SELECT 3 DIV + 97 + + COUNT( * ) + 96 + - 70 + + ( + - ( - - 41 ) ) DIV - COUNT( * ) AS col2, - 93
----
68
-93

skipif mysql # not compatible
query II rowsort label-305
SELECT 3 / + 97 + + COUNT ( * ) + 96 + - 70 + + ( + - ( - - 41 ) ) / - COUNT ( * ) AS col2, - 93
----
68
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT - MAX( + - 18 ) + 58 + - 64 * NULLIF ( + - 70, + - 13 * + + 86 ) AS col2
----
4556

skipif mysql # not compatible
query I rowsort label-306
SELECT - MAX ( + - 18 ) + 58 + - 64 * NULLIF ( + - 70, + - 13 * + + 86 ) AS col2
----
4556

query I rowsort
SELECT ALL + + 4 + - 74
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT + COUNT( * ) * - 16 - - COUNT( + + 42 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-308
SELECT + COUNT ( * ) * - 16 - - COUNT ( + + 42 ) AS col1
----
-15

query I rowsort
SELECT ( + 95 ) * - - 72 * - 80 + + 87 * + 24
----
-545112

query I rowsort
SELECT ALL - 57 + 71
----
14

query I rowsort
SELECT 43 * + - 40
----
-1720

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

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

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

skipif mysql # not compatible
query I rowsort label-313
SELECT 49 / + - 42
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-314
SELECT DISTINCT - ( 28 ) AS col0, + NULLIF ( + MIN( ALL 2 ), 84 ) AS col0
----
-28
2

skipif mysql # not compatible
query II rowsort label-314
SELECT DISTINCT - ( 28 ) AS col0, + NULLIF ( + MIN ( ALL 2 ), 84 ) AS col0
----
-28
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-315
SELECT MIN( 62 ) DIV COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-315
SELECT MIN ( 62 ) / COUNT ( * ) AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-316
SELECT DISTINCT - 67 DIV 35 * - 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT - 67 / 35 * - 49 AS col0
----
49

query I rowsort
SELECT 58 * - + 92
----
-5336

onlyif mysql # DIV for integer division: 
query II rowsort label-318
SELECT 64 DIV 52 AS col1, + 12
----
1
12

skipif mysql # not compatible
query II rowsort label-318
SELECT 64 / 52 AS col1, + 12
----
1
12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-320
SELECT + CASE - 32 WHEN - + 89 - 23 * + ( + + SUM( DISTINCT - NULLIF ( - + 99, 29 ) ) ) + + 46 THEN NULL WHEN - 95 THEN + 31 ELSE NULL END * CAST( - ( 71 ) AS SIGNED ) - - + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-320
SELECT + CASE - 32 WHEN - + 89 - 23 * + ( + + SUM ( DISTINCT - NULLIF ( - + 99, 29 ) ) ) + + 46 THEN NULL WHEN - 95 THEN + 31 ELSE NULL END * CAST ( - ( 71 ) AS INTEGER ) - - + 78
----
NULL

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

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL COUNT ( ALL 89 ) * - + ( 30 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT DISTINCT COUNT( * ) * + + COUNT( + 47 )
----
1

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT COUNT ( * ) * + + COUNT ( + 47 )
----
1

query I rowsort
SELECT ALL + 95 * - + 95
----
-9025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-324
SELECT DISTINCT CASE - 9 WHEN - 1 * - + 82 THEN - 7 WHEN COUNT( * ) THEN NULL ELSE - 73 END + + 43 - - 42 DIV ( 43 ) * - + 2
----
-30

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT CASE - 9 WHEN - 1 * - + 82 THEN - 7 WHEN COUNT ( * ) THEN NULL ELSE - 73 END + + 43 - - 42 / ( 43 ) * - + 2
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-325
SELECT 73 + - 30, 83 + - - COALESCE ( - - 72, 42 ) + 72 + - - 92 - + COUNT( * ) + + 28 AS col0
----
43
346

skipif mysql # not compatible
query II rowsort label-325
SELECT 73 + - 30, 83 + - - COALESCE ( - - 72, 42 ) + 72 + - - 92 - + COUNT ( * ) + + 28 AS col0
----
43
346

query I rowsort
SELECT - NULLIF ( - ( 23 ), + - 3 )
----
23

query I rowsort
SELECT 46 + - 25
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT - COUNT( * ) - + 5 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-328
SELECT - COUNT ( * ) - + 5 AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT DISTINCT + NULLIF ( - 47, + 25 + - ( 1 ) ) + - - 52 + + SUM( ALL 72 ) + + 18 + 87 * 28 + + - 62 DIV - - 67 + + ( 3 ) * + + 40 * - 8
----
1571

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT + NULLIF ( - 47, + 25 + - ( 1 ) ) + - - 52 + + SUM ( ALL 72 ) + + 18 + 87 * 28 + + - 62 / - - 67 + + ( 3 ) * + + 40 * - 8
----
1571

query II rowsort
SELECT ALL + 95 + 87 * - - ( + 49 ) col1, 55 AS col2
----
4358
55

onlyif mysql # aggregate syntax: 
query II rowsort label-331
SELECT ALL + 78 + + - 11, COUNT( * ) col2
----
67
1

skipif mysql # not compatible
query II rowsort label-331
SELECT ALL + 78 + + - 11, COUNT ( * ) col2
----
67
1

query I rowsort
SELECT DISTINCT + 67 + - - 77 * - - 24
----
1915

query I rowsort
SELECT - - 46 col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-334
SELECT DISTINCT + ( - 94 ), COUNT( 69 ) + + 20 AS col0
----
-94
21

skipif mysql # not compatible
query II rowsort label-334
SELECT DISTINCT + ( - 94 ), COUNT ( 69 ) + + 20 AS col0
----
-94
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-335
SELECT ALL 50 + CAST( AVG ( DISTINCT + - 43 ) AS SIGNED ), 48 AS col2
----
7
48

skipif mysql # not compatible
query II rowsort label-335
SELECT ALL 50 + CAST ( AVG ( DISTINCT + - 43 ) AS INTEGER ), 48 AS col2
----
7
48

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT + MIN( DISTINCT - 22 ) + - 41 * - + 34
----
1372

skipif mysql # not compatible
query I rowsort label-336
SELECT + MIN ( DISTINCT - 22 ) + - 41 * - + 34
----
1372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-337
SELECT DISTINCT CAST( AVG ( ALL - 76 ) AS SIGNED ) + - 78 + - 50 col0
----
-204

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT CAST ( AVG ( ALL - 76 ) AS INTEGER ) + - 78 + - 50 col0
----
-204

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-338
SELECT + CAST( NULL AS DECIMAL ) * 85 - - + COUNT( + 84 ) * - COUNT( * ) * + 98 + COUNT( * ) + + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-338
SELECT + CAST ( NULL AS REAL ) * 85 - - + COUNT ( + 84 ) * - COUNT ( * ) * + 98 + COUNT ( * ) + + 37 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 12 * 64 AS col2
----
768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-340
SELECT - MAX( + 76 ) DIV + ( 10 ) - + COALESCE ( + 89, COUNT( * ) + 66 - - 63 + - + COALESCE ( - NULLIF ( + 52, + 78 + - COUNT( * ) ), + 32 + 33 + + COUNT( * ) DIV + + 57 + - + COUNT( * ), - 14 * + 75 * 32 - + ( + 33 ) ) * 94 + - 79 DIV ( - ( - ( + 27 ) ) ) ) * + - 54 AS col1
----
4799

skipif mysql # not compatible
query I rowsort label-340
SELECT - MAX ( + 76 ) / + ( 10 ) - + COALESCE ( + 89, COUNT ( * ) + 66 - - 63 + - + COALESCE ( - NULLIF ( + 52, + 78 + - COUNT ( * ) ), + 32 + 33 + + COUNT ( * ) / + + 57 + - + COUNT ( * ), - 14 * + 75 * 32 - + ( + 33 ) ) * 94 + - 79 / ( - ( - ( + 27 ) ) ) ) * + - 54 AS col1
----
4799

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

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

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

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

query I rowsort
SELECT + 0 - - 96 * - 85 AS col1
----
-8160

query I rowsort
SELECT + - 13 * 61 + + 58
----
-735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-345
SELECT ALL - 2 DIV + MAX( - 91 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL - 2 / + MAX ( - 91 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-346
SELECT + NULLIF ( 4, + 96 * - 74 + CAST( NULL AS SIGNED ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-346
SELECT + NULLIF ( 4, + 96 * - 74 + CAST ( NULL AS INTEGER ) ) AS col2
----
4

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

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

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

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

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

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

query I rowsort
SELECT + 88 + - 83 * 26 AS col2
----
-2070

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

query I rowsort
SELECT + 64 * 19 AS col2
----
1216

query I rowsort
SELECT - 70 * + 42
----
-2940

query I rowsort
SELECT - 82 + - + 81
----
-163

query I rowsort
SELECT - 10 + + 96 + - 42 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT SUM( ALL - - 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-356
SELECT SUM ( ALL - - 36 ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-357
SELECT COUNT( * ) AS col1, - 23 + - - ( + CAST( + 58 AS SIGNED ) ) + + 48 col0
----
1
83

skipif mysql # not compatible
query II rowsort label-357
SELECT COUNT ( * ) AS col1, - 23 + - - ( + CAST ( + 58 AS INTEGER ) ) + + 48 col0
----
1
83

query I rowsort
SELECT DISTINCT + 82 + + + 67 col0
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-359
SELECT - 1 DIV - 17
----
0

skipif mysql # not compatible
query I rowsort label-359
SELECT - 1 / - 17
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-360
SELECT ALL + - CAST( NULL AS SIGNED ) + COALESCE ( + - COUNT( * ), + 19 * - 61 + - CASE + + 32 WHEN - 98 THEN NULL ELSE - - SUM( - + 71 ) * - MAX( ALL 38 ) + + + MIN( + 56 ) + - - 5 + COUNT( * ) END, COUNT( * ) ) + MAX( DISTINCT - 31 ) * 59 * + 70 / + - SUM( 71 ), - 17 * + 40 * - 74 AS col1
----
NULL
50320

skipif mysql # not compatible
query II rowsort label-360
SELECT ALL + - CAST ( NULL AS INTEGER ) + COALESCE ( + - COUNT ( * ), + 19 * - 61 + - CASE + + 32 WHEN - 98 THEN NULL ELSE - - SUM ( - + 71 ) * - MAX ( ALL 38 ) + + + MIN ( + 56 ) + - - 5 + COUNT ( * ) END, COUNT ( * ) ) + MAX ( DISTINCT - 31 ) * 59 * + 70 / + - SUM ( 71 ), - 17 * + 40 * - 74 AS col1
----
NULL
50320

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT + 50 * + 5 + + 14 + COUNT( - 80 ) * + - ( + + 4 ) AS col2
----
260

skipif mysql # not compatible
query I rowsort label-361
SELECT + 50 * + 5 + + 14 + COUNT ( - 80 ) * + - ( + + 4 ) AS col2
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT - 59 * - SUM( ALL - + 19 ) col1
----
-1121

skipif mysql # not compatible
query I rowsort label-362
SELECT - 59 * - SUM ( ALL - + 19 ) col1
----
-1121

query I rowsort
SELECT ALL - 7 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT DISTINCT - - COUNT( * ) + 51 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT - - COUNT ( * ) + 51 AS col1
----
52

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

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

query I rowsort
SELECT ALL ( 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT - ( + + CASE + 97 WHEN + 24 THEN + - 4 WHEN + ( ( + + ( + 95 ) ) ) THEN + COUNT( * ) * - 67 END ) - + NULLIF ( - - 93, - 64 - + 11 ) + + 4 / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-367
SELECT - ( + + CASE + 97 WHEN + 24 THEN + - 4 WHEN + ( ( + + ( + 95 ) ) ) THEN + COUNT ( * ) * - 67 END ) - + NULLIF ( - - 93, - 64 - + 11 ) + + 4 / - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-368
SELECT - - CASE - COUNT( * ) WHEN CAST( NULL AS SIGNED ) * + 24 / 53 - SUM( - ( - + 27 ) ) + ( + CASE + 93 WHEN 92 THEN + 38 + - 23 ELSE CASE + + COALESCE ( + 26, 19, + 84 ) WHEN + COUNT( * ) * + 43 THEN NULL ELSE 79 END * 95 * - NULLIF ( - 45, - 43 + + 94 + - CAST( NULL AS SIGNED ) ) END ) + 68 + + NULLIF ( 53, 18 + COUNT( * ) / AVG ( DISTINCT - 73 ) ) * 49 / 54 * + COUNT( * ) THEN - 78 + + 63 - - MIN( - 43 ) END + - 2 * - - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-368
SELECT - - CASE - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) * + 24 / 53 - SUM ( - ( - + 27 ) ) + ( + CASE + 93 WHEN 92 THEN + 38 + - 23 ELSE CASE + + COALESCE ( + 26, 19, + 84 ) WHEN + COUNT ( * ) * + 43 THEN NULL ELSE 79 END * 95 * - NULLIF ( - 45, - 43 + + 94 + - CAST ( NULL AS INTEGER ) ) END ) + 68 + + NULLIF ( 53, 18 + COUNT ( * ) / AVG ( DISTINCT - 73 ) ) * 49 / 54 * + COUNT ( * ) THEN - 78 + + 63 - - MIN ( - 43 ) END + - 2 * - - 85 AS col1
----
NULL

query I rowsort
SELECT + - 61 + + 84
----
23

query I rowsort
SELECT DISTINCT - ( 40 ) - 58
----
-98

query II rowsort
SELECT - 86 AS col1, - 4
----
-86
-4

query I rowsort
SELECT ALL 1 - - 1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-373
SELECT DISTINCT CASE + 35 WHEN - 66 + - 92 THEN CAST( NULL AS SIGNED ) END AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-373
SELECT DISTINCT CASE + 35 WHEN - 66 + - 92 THEN CAST ( NULL AS INTEGER ) END AS col2, COUNT ( * )
----
NULL
1

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

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

query I rowsort
SELECT ALL 60 * + 38 col1
----
2280

onlyif mysql # DIV for integer division: 
query II rowsort label-376
SELECT DISTINCT 72 DIV + 73, - 50 + - 57 AS col2
----
0
-107

skipif mysql # not compatible
query II rowsort label-376
SELECT DISTINCT 72 / + 73, - 50 + - 57 AS col2
----
0
-107

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-378
SELECT + 12 * 34 / - - 33 * + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT + 12 * 34 / - - 33 * + + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL 24 * - 80 AS col0
----
-1920

query I rowsort
SELECT ALL 0 * - - 79
----
0

query II rowsort
SELECT 67 * + 34 + + 43 + + 96 AS col1, 20 - 43 + + + 72 col1
----
2417
49

query I rowsort
SELECT DISTINCT 29 * - 22
----
-638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-383
SELECT ALL COUNT( * ) DIV - - 72 DIV + ( ( - COUNT( * ) ) ) + + COUNT( * ) + + + COUNT( + ( + ( + + 14 ) ) ) * 56
----
57

skipif mysql # not compatible
query I rowsort label-383
SELECT ALL COUNT ( * ) / - - 72 / + ( ( - COUNT ( * ) ) ) + + COUNT ( * ) + + + COUNT ( + ( + ( + + 14 ) ) ) * 56
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-384
SELECT DISTINCT 11 DIV - MIN( DISTINCT - 78 )
----
0

skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT 11 / - MIN ( DISTINCT - 78 )
----
0

query II rowsort
SELECT ( - 65 ), 90 AS col2
----
-65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT ALL + MIN( DISTINCT 46 )
----
46

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL + MIN ( DISTINCT 46 )
----
46

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

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

query I rowsort
SELECT + 11 * 13 AS col2
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-389
SELECT ALL 60 * + + 74 * - + 99 * 48 + 19 DIV - 31 AS col1
----
-21098880

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL 60 * + + 74 * - + 99 * 48 + 19 / - 31 AS col1
----
-21098880

query II rowsort
SELECT + 15, + 56 * - 19 + 31 + - + 1 * 74 AS col1
----
15
-1107

query II rowsort
SELECT ( - + 6 ) AS col0, - 25 * 96 col1
----
-6
-2400

query I rowsort
SELECT + 75 * 93
----
6975

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT ALL + 13 * COUNT( - 41 ) * + COUNT( * ) + + - MIN( DISTINCT 52 ) + 71 - + 63 / CASE + + COALESCE ( - ( + COUNT( * ) ), CASE 12 WHEN 8 THEN NULL WHEN - + COUNT( * ) THEN - NULLIF ( + 90, - + COUNT( * ) ) ELSE NULL END ) WHEN - 59 + COUNT( * ) THEN + + 6 ELSE 6 * - + 25 + - 88 + - 88 + - 68 END * + - ( - 46 ) * - ( CASE + 8 WHEN - 74 THEN + 99 WHEN + 67 THEN + COUNT( * ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL + 13 * COUNT ( - 41 ) * + COUNT ( * ) + + - MIN ( DISTINCT 52 ) + 71 - + 63 / CASE + + COALESCE ( - ( + COUNT ( * ) ), CASE 12 WHEN 8 THEN NULL WHEN - + COUNT ( * ) THEN - NULLIF ( + 90, - + COUNT ( * ) ) ELSE NULL END ) WHEN - 59 + COUNT ( * ) THEN + + 6 ELSE 6 * - + 25 + - 88 + - 88 + - 68 END * + - ( - 46 ) * - ( CASE + 8 WHEN - 74 THEN + 99 WHEN + 67 THEN + COUNT ( * ) ELSE NULL END ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT ALL - COUNT( * ) * - 33 col1
----
33

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL - COUNT ( * ) * - 33 col1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-396
SELECT ALL - + 74 * - 42 * 2 * - 16 * + - 75 + + CAST( 18 AS SIGNED )
----
7459218

skipif mysql # not compatible
query I rowsort label-396
SELECT ALL - + 74 * - 42 * 2 * - 16 * + - 75 + + CAST ( 18 AS INTEGER )
----
7459218

query I rowsort
SELECT - 57 * - + 36 AS col2
----
2052

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

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

query I rowsort
SELECT - 15 + - 51
----
-66

query II rowsort
SELECT ALL + - NULLIF ( + 11, + 64 ) - - 47, + 69 AS col0
----
36
69

query I rowsort
SELECT 55 * - ( - 18 ) AS col2
----
990

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

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

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

skipif mysql # not compatible
query I rowsort label-403
SELECT - ( + - MAX ( 78 ) )
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT NULLIF ( - + 50, + COUNT( * ) ) * + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-405
SELECT NULLIF ( - + 50, + COUNT ( * ) ) * + COUNT ( * )
----
-50

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

query I rowsort
SELECT 58 * - 64
----
-3712

query I rowsort
SELECT 94 * + 53 AS col0
----
4982

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT ALL COUNT( 90 ) + CASE SUM( - 46 ) WHEN + + 41 THEN NULL ELSE + COUNT( * ) - - 29 * 73 END
----
2119

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL COUNT ( 90 ) + CASE SUM ( - 46 ) WHEN + + 41 THEN NULL ELSE + COUNT ( * ) - - 29 * 73 END
----
2119

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT COUNT( DISTINCT - 25 ) - + 4 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-410
SELECT COUNT ( DISTINCT - 25 ) - + 4 AS col1
----
-3

query I rowsort
SELECT ALL 53 + - 67 + 36
----
22

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-412
SELECT CASE - 75 WHEN 67 THEN NULL WHEN 48 THEN + - 54 END * + - 67 * 13 * 35 * + - ( - - 9 ) + + CAST( NULL AS DECIMAL ) + - 52 * - ( - 94 ) * + 64, 51 + - 25 + - 10 * + + 2 DIV - 77 AS col0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-412
SELECT CASE - 75 WHEN 67 THEN NULL WHEN 48 THEN + - 54 END * + - 67 * 13 * 35 * + - ( - - 9 ) + + CAST ( NULL AS REAL ) + - 52 * - ( - 94 ) * + 64, 51 + - 25 + - 10 * + + 2 / - 77 AS col0
----
NULL
26

query I rowsort
SELECT ALL 70 * - 73
----
-5110

query II rowsort
SELECT DISTINCT + 54 + + 95 + + 66, + 49 AS col1
----
215
49

query I rowsort
SELECT ALL 47 + + 0 * 25
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT DISTINCT COUNT( * ) * COUNT( * ) * + 39 col2
----
39

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * + 39 col2
----
39

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

skipif mysql # not compatible
query I rowsort label-417
SELECT COUNT ( * ) / 61
----
0

query II rowsort
SELECT ALL 17 + 71 AS col0, + ( - + 40 )
----
88
-40

query I rowsort
SELECT + 0 * 1 + - 51 col2
----
-51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-421
SELECT CAST( NULL AS SIGNED ) * + + 20 + 53, CAST( NULL AS SIGNED ) col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-421
SELECT CAST ( NULL AS INTEGER ) * + + 20 + 53, CAST ( NULL AS INTEGER ) col0
----
NULL
NULL

query I rowsort
SELECT 19 - 51
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT SUM( ALL ( + - 95 ) ) + 48 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-423
SELECT SUM ( ALL ( + - 95 ) ) + 48 AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-424
SELECT ALL 63 + 17, - CAST( 54 AS SIGNED ) * - COALESCE ( CAST( + + 75 AS SIGNED ), + 0 + 77 ) + - - 9 * 21 + + + 4 DIV + - 62 * - + COUNT( * ) + + - 54 AS col0
----
80
4185

skipif mysql # not compatible
query II rowsort label-424
SELECT ALL 63 + 17, - CAST ( 54 AS INTEGER ) * - COALESCE ( CAST ( + + 75 AS INTEGER ), + 0 + 77 ) + - - 9 * 21 + + + 4 / + - 62 * - + COUNT ( * ) + + - 54 AS col0
----
80
4185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-425
SELECT ALL 75 * + + 21 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL 75 * + + 21 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 67 * 98 - + 48 + 23 + - 2 * 19
----
-6629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-427
SELECT ALL - 91 / - CAST( NULL AS SIGNED ) * - 77 * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL - 91 / - CAST ( NULL AS INTEGER ) * - 77 * + 67
----
NULL

query I rowsort
SELECT 52 * + 46 AS col2
----
2392

query I rowsort
SELECT DISTINCT - - 19 AS col1
----
19

query I rowsort
SELECT DISTINCT - CASE WHEN NOT - 70 IS NOT NULL THEN + 72 ELSE - 88 END
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT ALL - + NULLIF ( - - COUNT( * ), + COALESCE ( 87, + + COUNT( * ) * 77 * - + 94, + AVG ( ALL 38 ) + 91 ) / + ( + + 31 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL - + NULLIF ( - - COUNT ( * ), + COALESCE ( 87, + + COUNT ( * ) * 77 * - + 94, + AVG ( ALL 38 ) + 91 ) / + ( + + 31 ) )
----
-1

query I rowsort
SELECT 90 + - 88 * - 44 * 52
----
201434

query I rowsort
SELECT - ( 2 ) * + + 30 AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-434
SELECT DISTINCT MAX( + 42 ) * - 12 + - + SUM( DISTINCT 78 ) + + - CASE - ( 45 ) WHEN 98 THEN 25 WHEN + 22 * - 83 + + - 8 * + - CAST( NULL AS SIGNED ) + + COUNT( + 35 ) + - 37 * + 47 THEN NULL END * - 13 - + 98 AS col2, + 40 col1
----
NULL
40

skipif mysql # not compatible
query II rowsort label-434
SELECT DISTINCT MAX ( + 42 ) * - 12 + - + SUM ( DISTINCT 78 ) + + - CASE - ( 45 ) WHEN 98 THEN 25 WHEN + 22 * - 83 + + - 8 * + - CAST ( NULL AS INTEGER ) + + COUNT ( + 35 ) + - 37 * + 47 THEN NULL END * - 13 - + 98 AS col2, + 40 col1
----
NULL
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-435
SELECT ALL - COALESCE ( + - 54, + - 83 * + 1 DIV + 61, + 61 * - ( - 74 ) DIV + COALESCE ( - - 4, CAST( 42 AS SIGNED ), + - 92 + - 10 * + 23 * - - 99 ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL - COALESCE ( + - 54, + - 83 * + 1 / + 61, + 61 * - ( - 74 ) / + COALESCE ( - - 4, CAST ( 42 AS INTEGER ), + - 92 + - 10 * + 23 * - - 99 ) ) AS col1
----
54

query I rowsort
SELECT ALL + 95 * + - 51 AS col2
----
-4845

onlyif mysql # aggregate syntax: 
query II rowsort label-437
SELECT 92 * - - COUNT( * ), 9 * + 7 col2
----
92
63

skipif mysql # not compatible
query II rowsort label-437
SELECT 92 * - - COUNT ( * ), 9 * + 7 col2
----
92
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-438
SELECT + ( + COUNT( * ) ) - + + 98 DIV COUNT( * ) + + 47 * - COUNT( * ) * 55
----
-2682

skipif mysql # not compatible
query I rowsort label-438
SELECT + ( + COUNT ( * ) ) - + + 98 / COUNT ( * ) + + 47 * - COUNT ( * ) * 55
----
-2682

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT - 46 + + 39 * - SUM( + + 3 ) AS col1
----
-163

skipif mysql # not compatible
query I rowsort label-439
SELECT - 46 + + 39 * - SUM ( + + 3 ) AS col1
----
-163

query I rowsort
SELECT 69 + + + 47 + - 50 AS col2
----
66

query II rowsort
SELECT ALL 77, + 46 AS col0
----
77
46

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

skipif mysql # not compatible
query I rowsort label-442
SELECT CAST ( + 56 AS INTEGER ) / - 71 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-443
SELECT 94 + + 76 * + ( - + COUNT( * ) ), + 49 * - - 33 AS col1
----
18
1617

skipif mysql # not compatible
query II rowsort label-443
SELECT 94 + + 76 * + ( - + COUNT ( * ) ), + 49 * - - 33 AS col1
----
18
1617

query I rowsort
SELECT 65 + + 90
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-445
SELECT ALL 37, - 14 + - COUNT( * ) + - ( + 43 ) - - 80 + + - 90 + + ( 72 ) * - 65 * - 10 * - - 44 * + MAX( 96 ) + - - 33 + + ( - 57 ) - CASE - 57 WHEN + CASE + ( - - NULLIF ( 40, 86 ) ) WHEN + 53 THEN NULL WHEN + - 1 * CAST( NULL AS SIGNED ) THEN NULL ELSE ( + MAX( + 14 ) ) - + - COUNT( * ) - - - CAST( NULL AS SIGNED ) END THEN 95 / 79 + + 50 END AS col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-445
SELECT ALL 37, - 14 + - COUNT ( * ) + - ( + 43 ) - - 80 + + - 90 + + ( 72 ) * - 65 * - 10 * - - 44 * + MAX ( 96 ) + - - 33 + + ( - 57 ) - CASE - 57 WHEN + CASE + ( - - NULLIF ( 40, 86 ) ) WHEN + 53 THEN NULL WHEN + - 1 * CAST ( NULL AS INTEGER ) THEN NULL ELSE ( + MAX ( + 14 ) ) - + - COUNT ( * ) - - - CAST ( NULL AS INTEGER ) END THEN 95 / 79 + + 50 END AS col1
----
37
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-446
SELECT ALL 47 DIV 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL 47 / 78 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-447
SELECT 84 + + COUNT( * ) * CAST( - 31 AS SIGNED ) + + 29
----
82

skipif mysql # not compatible
query I rowsort label-447
SELECT 84 + + COUNT ( * ) * CAST ( - 31 AS INTEGER ) + + 29
----
82

query I rowsort
SELECT ALL - 40 * - + 5 AS col1
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-449
SELECT COUNT( * ) * - 46 + CAST( - ( - + 47 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-449
SELECT COUNT ( * ) * - 46 + CAST ( - ( - + 47 ) AS INTEGER )
----
1

query I rowsort
SELECT ALL 8 * - ( - 80 ) + ( + 12 )
----
652

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT 83 * - - SUM( 14 ) col2
----
1162

skipif mysql # not compatible
query I rowsort label-451
SELECT 83 * - - SUM ( 14 ) col2
----
1162

onlyif mysql # aggregate syntax: 
query II rowsort label-452
SELECT COUNT( * ) AS col2, + 13 * + 3 + + 14 AS col0
----
1
53

skipif mysql # not compatible
query II rowsort label-452
SELECT COUNT ( * ) AS col2, + 13 * + 3 + + 14 AS col0
----
1
53

query II rowsort
SELECT + 13 AS col2, + 74 AS col0
----
13
74

query I rowsort
SELECT ALL + 75 * 18 + 25
----
1375

query I rowsort
SELECT 9 * + 7 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT DISTINCT + COUNT( * ) * + 29 - - ( - 42 ) * + 91
----
-3793

skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT + COUNT ( * ) * + 29 - - ( - 42 ) * + 91
----
-3793

query II rowsort
SELECT ALL + 89 AS col1, + 47 - - 71
----
89
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-458
SELECT 95 AS col1, COUNT( * ) DIV - - 35 * - COALESCE ( - 61, + 32 * - - ( - ( - 31 ) ) ) AS col0
----
95
0

skipif mysql # not compatible
query II rowsort label-458
SELECT 95 AS col1, COUNT ( * ) / - - 35 * - COALESCE ( - 61, + 32 * - - ( - ( - 31 ) ) ) AS col0
----
95
0

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT + 48 * + ( + - 94 ) * + ( - ( COUNT( * ) ) ) col2
----
4512

skipif mysql # not compatible
query I rowsort label-459
SELECT + 48 * + ( + - 94 ) * + ( - ( COUNT ( * ) ) ) col2
----
4512

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT - SUM( + + ( - ( - 10 ) ) ) - 43 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-460
SELECT - SUM ( + + ( - ( - 10 ) ) ) - 43 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT ALL + MAX( ALL - + NULLIF ( 14, + 83 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL + MAX ( ALL - + NULLIF ( 14, + 83 ) )
----
-14

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

query II rowsort
SELECT + - 59 AS col2, - 33
----
-59
-33

query I rowsort
SELECT - - 79 * 36 + + 1 + 90 * 63 * - 42 AS col2
----
-235295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-465
SELECT + + 26 * + 99 * 48 + - - 78 + + CAST( COUNT( 29 ) AS SIGNED ) * - - 22 DIV - - COUNT( * ) - + 30
----
123622

skipif mysql # not compatible
query I rowsort label-465
SELECT + + 26 * + 99 * 48 + - - 78 + + CAST ( COUNT ( 29 ) AS INTEGER ) * - - 22 / - - COUNT ( * ) - + 30
----
123622

query I rowsort
SELECT DISTINCT + 68 * - 51 * ( 37 ) * - 6
----
769896

onlyif mysql # aggregate syntax: 
query II rowsort label-467
SELECT ALL + 94 AS col0, CASE COUNT( * ) WHEN + + 48 THEN NULL WHEN - - 7 * - - ( 41 ) + + 5 / - 11 * 57 + 27 / + 7 * - 96 + - 85 THEN + 59 END col2
----
94
NULL

skipif mysql # not compatible
query II rowsort label-467
SELECT ALL + 94 AS col0, CASE COUNT ( * ) WHEN + + 48 THEN NULL WHEN - - 7 * - - ( 41 ) + + 5 / - 11 * 57 + 27 / + 7 * - 96 + - 85 THEN + 59 END col2
----
94
NULL

query I rowsort
SELECT - 47 * + - 49 - + 93 AS col2
----
2210

query I rowsort
SELECT DISTINCT + + 76 * + + 42
----
3192

onlyif mysql # aggregate syntax: 
query II rowsort label-470
SELECT + + CASE - 73 WHEN + 67 / SUM( DISTINCT - 23 ) + + - 86 + + 69 - - + 37 THEN + ( 88 ) END - 3 * 32 + + - 43 AS col2, 91 AS col1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-470
SELECT + + CASE - 73 WHEN + 67 / SUM ( DISTINCT - 23 ) + + - 86 + + 69 - - + 37 THEN + ( 88 ) END - 3 * 32 + + - 43 AS col2, 91 AS col1
----
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT + 64 * + MAX( - + 83 )
----
-5312

skipif mysql # not compatible
query I rowsort label-471
SELECT + 64 * + MAX ( - + 83 )
----
-5312

query I rowsort
SELECT + - 80 * + 28 AS col2
----
-2240

onlyif mysql # aggregate syntax: 
query II rowsort label-473
SELECT - NULLIF ( - + COUNT( * ), 10 ), + 78 AS col2
----
1
78

skipif mysql # not compatible
query II rowsort label-473
SELECT - NULLIF ( - + COUNT ( * ), 10 ), + 78 AS col2
----
1
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-474
SELECT + 21 + - - COUNT( * ) * + - 84 / ( + + 2 ) - + + COALESCE ( - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) + - 48 + - 63 * - + COUNT( * ) * + 71 * - 7 + + + COUNT( * ) ) + - 83 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT + 21 + - - COUNT ( * ) * + - 84 / ( + + 2 ) - + + COALESCE ( - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) + - 48 + - 63 * - + COUNT ( * ) * + 71 * - 7 + + + COUNT ( * ) ) + - 83 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT + + MIN( ALL + 52 ) * + - 22 * + + CASE WHEN NOT - COALESCE ( - 49, + + 99 * + 61 + - 31, + COUNT( * ) ) > + 75 THEN - COUNT( * ) END col2
----
1144

skipif mysql # not compatible
query I rowsort label-475
SELECT + + MIN ( ALL + 52 ) * + - 22 * + + CASE WHEN NOT - COALESCE ( - 49, + + 99 * + 61 + - 31, + COUNT ( * ) ) > + 75 THEN - COUNT ( * ) END col2
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT + + 72 + - - ( + + 94 ) + - COUNT( * ) AS col1
----
165

skipif mysql # not compatible
query I rowsort label-476
SELECT + + 72 + - - ( + + 94 ) + - COUNT ( * ) AS col1
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-477
SELECT + COUNT( * ) - - - ( 66 ), 95 DIV - 53 AS col2
----
-65
-1

skipif mysql # not compatible
query II rowsort label-477
SELECT + COUNT ( * ) - - - ( 66 ), 95 / - 53 AS col2
----
-65
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT + NULLIF ( + SUM( DISTINCT + - NULLIF ( - 37, + 6 ) ), + COUNT( * ) + COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-478
SELECT + NULLIF ( + SUM ( DISTINCT + - NULLIF ( - 37, + 6 ) ), + COUNT ( * ) + COUNT ( * ) )
----
37

query I rowsort
SELECT ALL - 92 + - 74 AS col1
----
-166

query I rowsort
SELECT - COALESCE ( + + 28, 63, + 49 + - 46 ) AS col0
----
-28

query I rowsort
SELECT DISTINCT 6 + + 45 + 57 + - 35 col2
----
73

query I rowsort
SELECT DISTINCT 0 + + 78 + - 2 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT + COUNT( * ) + - + ( - 25 ) + - 36 col1
----
-10

skipif mysql # not compatible
query I rowsort label-483
SELECT + COUNT ( * ) + - + ( - 25 ) + - 36 col1
----
-10

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-486
SELECT - 5 DIV + COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-486
SELECT - 5 / + COUNT ( * ) AS col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-487
SELECT + 52 * COUNT( * ) DIV + 18
----
2

skipif mysql # not compatible
query I rowsort label-487
SELECT + 52 * COUNT ( * ) / + 18
----
2

query I rowsort
SELECT DISTINCT - ( - 24 ) * + + 27
----
648

onlyif mysql # DIV for integer division: 
query I rowsort label-489
SELECT DISTINCT 93 DIV + 21
----
4

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT 93 / + 21
----
4

query I rowsort
SELECT ALL + NULLIF ( - 69, - + 44 ) * - 98 AS col0
----
6762

query II rowsort
SELECT ( 58 ) AS col1, ( - 45 ) col0
----
58
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-492
SELECT ALL - 74 * 27 DIV + COALESCE ( - 37, 82 * 85 - MIN( ALL + 80 ), 36, + 55 + - 29 )
----
54

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL - 74 * 27 / + COALESCE ( - 37, 82 * 85 - MIN ( ALL + 80 ), 36, + 55 + - 29 )
----
54

query I rowsort
SELECT DISTINCT + 70 * + 89 - + 46 + + - 25 + - + 8 * + 97
----
5383

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

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT - 95 * - COUNT( * ) * - COUNT( * ) + + + COUNT( ALL + + ( + - 23 ) ) col0
----
-94

skipif mysql # not compatible
query I rowsort label-495
SELECT - 95 * - COUNT ( * ) * - COUNT ( * ) + + + COUNT ( ALL + + ( + - 23 ) ) col0
----
-94

query I rowsort
SELECT ALL + 89 * + - 4
----
-356

query I rowsort
SELECT - 99 * - 1 - - + 79 AS col2
----
178

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

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

query I rowsort
SELECT ALL + - 87 * + - 34
----
2958

query II rowsort
SELECT - 25 + 58, - 41 + - 15 * - - 95 * 70 AS col2
----
33
-99791

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT + - 7 * - ( + + 16 ) - - 98 + + - 70 + + 39 + + + COUNT( + - 64 )
----
180

skipif mysql # not compatible
query I rowsort label-501
SELECT + - 7 * - ( + + 16 ) - - 98 + + - 70 + + 39 + + + COUNT ( + - 64 )
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT - + COUNT( 85 ) * + + 8
----
-8

skipif mysql # not compatible
query I rowsort label-502
SELECT - + COUNT ( 85 ) * + + 8
----
-8

query I rowsort
SELECT + + 0 * - 97 + - + 42 AS col0
----
-42

query I rowsort
SELECT - + 81 + - 81
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-505
SELECT ALL - - 11 * - MAX( ALL 78 ) DIV - - 3 + - + 66
----
-352

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL - - 11 * - MAX ( ALL 78 ) / - - 3 + - + 66
----
-352

query I rowsort
SELECT - - 7 + 92 + 13
----
112

query I rowsort
SELECT + - 43 + - + 62
----
-105

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

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

query I rowsort
SELECT ALL + 85 * + 81 + - + 16 + + 49 + 33 AS col1
----
6951

query I rowsort
SELECT ALL NULLIF ( + ( 4 ), 38 ) * - - ( + 16 ) + - ( - - 26 ) + + + 43 - + 92
----
-11

query I rowsort
SELECT ALL - 51 * + 58 * + 62 AS col2
----
-183396

query II rowsort
SELECT DISTINCT 25, 22 + - 7 * - + 41 AS col1
----
25
309

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-514
SELECT ALL 30 DIV - 9 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL 30 / - 9 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT DISTINCT SUM( ALL - + 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT SUM ( ALL - + 38 ) AS col1
----
-38

query II rowsort
SELECT ALL 42, NULLIF ( - - 58, ( - 5 ) ) AS col1
----
42
58

query I rowsort
SELECT + 6 + - + 81
----
-75

query I rowsort
SELECT + 64 * + + 82 AS col1
----
5248

query I rowsort
SELECT + 82 + ( + 90 )
----
172

query I rowsort
SELECT ALL ( - 2 ) * 81 AS col2
----
-162

query I rowsort
SELECT + 93 + + 72 AS col1
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-522
SELECT + 70 + + 86 + + + MAX( ALL + - NULLIF ( - + 37, - 69 ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-522
SELECT + 70 + + 86 + + + MAX ( ALL + - NULLIF ( - + 37, - 69 ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT 12 * - MAX( - + 3 ) col0
----
36

skipif mysql # not compatible
query I rowsort label-523
SELECT 12 * - MAX ( - + 3 ) col0
----
36

query I rowsort
SELECT 18 + NULLIF ( + 52, - + 75 )
----
70

query II rowsort
SELECT ALL 52 * 33 * + - 37 AS col1, + 35
----
-63492
35

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

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL - MAX ( 19 )
----
-19

query I rowsort
SELECT 27 * - ( 88 )
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT 63 + COUNT( - 13 ) * + 88
----
151

skipif mysql # not compatible
query I rowsort label-528
SELECT 63 + COUNT ( - 13 ) * + 88
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-529
SELECT ALL - CAST( NULL AS SIGNED ) / - NULLIF ( 64 * + COUNT( * ), + 49 + 16 * + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL - CAST ( NULL AS INTEGER ) / - NULLIF ( 64 * + COUNT ( * ), + 49 + 16 * + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-530
SELECT DISTINCT - NULLIF ( 48, CAST( - 17 AS SIGNED ) * + 36 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT - NULLIF ( 48, CAST ( - 17 AS INTEGER ) * + 36 ) AS col2
----
-48

query I rowsort
SELECT ALL - 16 + + 10
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-532
SELECT 59 DIV + MAX( DISTINCT 95 * 76 )
----
0

skipif mysql # not compatible
query I rowsort label-532
SELECT 59 / + MAX ( DISTINCT 95 * 76 )
----
0

query I rowsort
SELECT - 73 * + 76 - 74
----
-5622

query I rowsort
SELECT ALL - NULLIF ( 63, + 6 + - 64 ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT COALESCE ( + 35, 17 * + COUNT( * ) - COUNT( * ), MAX( - 12 ) ) - + ( 52 )
----
-17

skipif mysql # not compatible
query I rowsort label-535
SELECT COALESCE ( + 35, 17 * + COUNT ( * ) - COUNT ( * ), MAX ( - 12 ) ) - + ( 52 )
----
-17

query I rowsort
SELECT 52 + + 77
----
129

query I rowsort
SELECT DISTINCT - 53 + - 45 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT MAX( - 55 ) * ( 85 + COUNT( * ) ) - 82
----
-4812

skipif mysql # not compatible
query I rowsort label-538
SELECT MAX ( - 55 ) * ( 85 + COUNT ( * ) ) - 82
----
-4812

query I rowsort
SELECT DISTINCT + 54 + + 80 col0
----
134

query I rowsort
SELECT 87 - 53
----
34

query I rowsort
SELECT ALL + 81 + 47 * 90
----
4311

query I rowsort
SELECT DISTINCT 89 * - 97 AS col2
----
-8633

query I rowsort
SELECT DISTINCT NULLIF ( - 77, 84 ) + - ( 98 )
----
-175

query I rowsort
SELECT 77 + + 76
----
153

query I rowsort
SELECT DISTINCT - 91 * - ( 13 )
----
1183

query I rowsort
SELECT 93 * - 72
----
-6696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-547
SELECT ALL ( - 19 ) - CAST( NULL AS SIGNED ) * 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-547
SELECT ALL ( - 19 ) - CAST ( NULL AS INTEGER ) * 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT DISTINCT COUNT( * ) * + 90 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT COUNT ( * ) * + 90 AS col1
----
90

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

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

query I rowsort
SELECT ALL + 73 * - 13 AS col2
----
-949

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT ALL - 19 * - MAX( 81 )
----
1539

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL - 19 * - MAX ( 81 )
----
1539

query I rowsort
SELECT 34 * 88 AS col2
----
2992

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

skipif mysql # not compatible
query I rowsort label-553
SELECT COUNT ( * ) / + 88
----
0

query I rowsort
SELECT 8 + 44 AS col1
----
52

query I rowsort
SELECT 47 * - NULLIF ( 84, + ( 47 ) )
----
-3948

query I rowsort
SELECT 18 + COALESCE ( 87, - 61 ) * + ( + 53 )
----
4629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-557
SELECT 13 * - SUM( ALL + CAST( 32 AS SIGNED ) + - ( + 81 ) )
----
637

skipif mysql # not compatible
query I rowsort label-557
SELECT 13 * - SUM ( ALL + CAST ( 32 AS INTEGER ) + - ( + 81 ) )
----
637

query I rowsort
SELECT ALL + 48 + 97 col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT DISTINCT + SUM( + 51 ) * 25 AS col2
----
1275

skipif mysql # not compatible
query I rowsort label-559
SELECT DISTINCT + SUM ( + 51 ) * 25 AS col2
----
1275

query I rowsort
SELECT + 21 + - 45 * 65
----
-2904

query I rowsort
SELECT ALL 0 * 86
----
0

query I rowsort
SELECT ALL + 87 + 4 AS col0
----
91

query I rowsort
SELECT 13 - + 73 * - 43
----
3152

onlyif mysql # DIV for integer division: 
query I rowsort label-564
SELECT + 61 DIV - 57 + 92
----
91

skipif mysql # not compatible
query I rowsort label-564
SELECT + 61 / - 57 + 92
----
91

query I rowsort
SELECT + + 6 * + 48 - + 86 col0
----
202

query I rowsort
SELECT ALL 27 + - 63 * ( + 84 )
----
-5265

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-568
SELECT DISTINCT + COUNT( 88 ) DIV 79 col2
----
0

skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT + COUNT ( 88 ) / 79 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT ALL - MIN( ( 95 ) ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL - MIN ( ( 95 ) ) AS col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-570
SELECT DISTINCT COUNT( - 85 ) + + COALESCE ( 31 + 74 * - 60, 15 + 67 DIV - 7 ) * + 89 AS col0
----
-392400

skipif mysql # not compatible
query I rowsort label-570
SELECT DISTINCT COUNT ( - 85 ) + + COALESCE ( 31 + 74 * - 60, 15 + 67 / - 7 ) * + 89 AS col0
----
-392400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-571
SELECT SUM( DISTINCT 82 ) * + CAST( 35 AS SIGNED ) + + 1 * + 60 col1
----
2930

skipif mysql # not compatible
query I rowsort label-571
SELECT SUM ( DISTINCT 82 ) * + CAST ( 35 AS INTEGER ) + + 1 * + 60 col1
----
2930

query I rowsort
SELECT ALL - 60 + + 54 AS col2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-573
SELECT DISTINCT 11 DIV 4
----
2

skipif mysql # not compatible
query I rowsort label-573
SELECT DISTINCT 11 / 4
----
2

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT 77 * + SUM( 72 )
----
5544

skipif mysql # not compatible
query I rowsort label-576
SELECT 77 * + SUM ( 72 )
----
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT 12 * + ( - COUNT( ALL - 27 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-577
SELECT 12 * + ( - COUNT ( ALL - 27 ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT 83 + COUNT( * ) - + 8
----
76

skipif mysql # not compatible
query I rowsort label-578
SELECT 83 + COUNT ( * ) - + 8
----
76

query I rowsort
SELECT DISTINCT - 4 * + - 25 col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT ALL MIN( DISTINCT - - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL MIN ( DISTINCT - - 99 )
----
99

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

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

query I rowsort
SELECT 2 * + - 29 * - 66 col2
----
3828

query I rowsort
SELECT DISTINCT 76 * 87 AS col1
----
6612

onlyif mysql # DIV for integer division: 
query I rowsort label-584
SELECT - 47 + - + COALESCE ( ( + 38 ), 69 ) + 53 DIV - 3 AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-584
SELECT - 47 + - + COALESCE ( ( + 38 ), 69 ) + 53 / - 3 AS col2
----
-102

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT + NULLIF ( + + 57, COUNT( * ) + + COALESCE ( - 27 + - ( 82 - 68 * 56 ) * 56, 28 ) ) + ( + CASE - 64 WHEN 80 THEN NULL ELSE 17 + - 80 * + 66 END ) AS col1
----
-5206

skipif mysql # not compatible
query I rowsort label-586
SELECT + NULLIF ( + + 57, COUNT ( * ) + + COALESCE ( - 27 + - ( 82 - 68 * 56 ) * 56, 28 ) ) + ( + CASE - 64 WHEN 80 THEN NULL ELSE 17 + - 80 * + 66 END ) AS col1
----
-5206

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT - SUM( ALL - - 79 ) + + CASE + 27 WHEN 4 * + 66 THEN NULL WHEN CASE 94 WHEN - 30 THEN NULL ELSE - 46 END THEN NULL ELSE 10 END * + 19
----
111

skipif mysql # not compatible
query I rowsort label-587
SELECT - SUM ( ALL - - 79 ) + + CASE + 27 WHEN 4 * + 66 THEN NULL WHEN CASE 94 WHEN - 30 THEN NULL ELSE - 46 END THEN NULL ELSE 10 END * + 19
----
111

query I rowsort
SELECT + 69 + + - 34 AS col2
----
35

query I rowsort
SELECT DISTINCT + 61 + - 26 col0
----
35

query I rowsort
SELECT DISTINCT ( 35 ) col0
----
35

query I rowsort
SELECT ALL 51 + + + 70 AS col1
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT - + 46 + - ( 35 ) * MAX( ALL 25 ) AS col0
----
-921

skipif mysql # not compatible
query I rowsort label-592
SELECT - + 46 + - ( 35 ) * MAX ( ALL 25 ) AS col0
----
-921

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT ALL + + 80 + MAX( 68 ) * NULLIF ( 87 * COUNT( * ) + + 0, - 34 ) AS col2
----
5996

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL + + 80 + MAX ( 68 ) * NULLIF ( 87 * COUNT ( * ) + + 0, - 34 ) AS col2
----
5996

query I rowsort
SELECT ALL 31 + - + 39 * + 6 AS col1
----
-203

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-595
SELECT - CAST( NULL AS DECIMAL ) * + 59 * 19 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT - CAST ( NULL AS REAL ) * + 59 * 19 col1
----
NULL

query I rowsort
SELECT + 14 * + + ( - 78 ) AS col2
----
-1092

query I rowsort
SELECT ALL + 73 * - 63 + - 65
----
-4664

query I rowsort
SELECT + - 30 + 42 + + 97 AS col0
----
109

query I rowsort
SELECT ALL - 94 * - 14 * + 27 + 43
----
35575

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT + COUNT( * ) * + 10 + - 65
----
-55

skipif mysql # not compatible
query I rowsort label-600
SELECT + COUNT ( * ) * + 10 + - 65
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-601
SELECT DISTINCT NULLIF ( - COUNT( CAST( NULL AS SIGNED ) ), 58 ) * - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-601
SELECT DISTINCT NULLIF ( - COUNT ( CAST ( NULL AS INTEGER ) ), 58 ) * - 55 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT DISTINCT 75 * 32 + ( 92 + - COUNT( * ) ) + + 53 * 26 AS col2
----
3869

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT 75 * 32 + ( 92 + - COUNT ( * ) ) + + 53 * 26 AS col2
----
3869

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-603
SELECT ALL COUNT( + CAST( NULL AS DECIMAL ) ) * 60
----
0

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL COUNT ( + CAST ( NULL AS REAL ) ) * 60
----
0

query I rowsort
SELECT ALL 0 * - 86 + - 91
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-605
SELECT ( + - 53 ) * 21 - - 77 * CAST( - 16 AS SIGNED ) AS col2
----
-2345

skipif mysql # not compatible
query I rowsort label-605
SELECT ( + - 53 ) * 21 - - 77 * CAST ( - 16 AS INTEGER ) AS col2
----
-2345

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

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

query I rowsort
SELECT + 57 * - 54 AS col0
----
-3078

query I rowsort
SELECT + ( - 66 ) * - 42 AS col2
----
2772

query I rowsort
SELECT CASE + + COALESCE ( + - 82, ( - 43 ) ) WHEN 81 THEN 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL + 71 * - - 98 * 77 * 15 - - SUM( 76 )
----
8036566

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL + 71 * - - 98 * 77 * 15 - - SUM ( 76 )
----
8036566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-611
SELECT CASE - ( + 13 ) WHEN 80 * CAST( 87 AS SIGNED ) - NULLIF ( - 3, 62 ) THEN COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-611
SELECT CASE - ( + 13 ) WHEN 80 * CAST ( 87 AS INTEGER ) - NULLIF ( - 3, 62 ) THEN COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 45 * + - 80 + + 45 AS col2
----
-3555

onlyif mysql # DIV for integer division: 
query I rowsort label-613
SELECT ALL 41 * + - 38 DIV - 19
----
82

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL 41 * + - 38 / - 19
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-614
SELECT + 53 DIV - 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-614
SELECT + 53 / - 62 AS col2
----
0

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

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

query I rowsort
SELECT ALL + 19 * 5
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-618
SELECT + 23 DIV - 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-618
SELECT + 23 / - 72 AS col2
----
0

query I rowsort
SELECT 55 * + 15 + + COALESCE ( + 85, + 60 * 3, 29 ) AS col0
----
910

query I rowsort
SELECT - 99 * 24 AS col1
----
-2376

query I rowsort
SELECT - ( - 92 ) col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-622
SELECT COUNT( * ) AS col0, - NULLIF ( + SUM( ALL CAST( NULL AS SIGNED ) ), 30 + + 11 )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-622
SELECT COUNT ( * ) AS col0, - NULLIF ( + SUM ( ALL CAST ( NULL AS INTEGER ) ), 30 + + 11 )
----
1
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT - COUNT( ALL - ( - - 61 ) ) - 55
----
-56

skipif mysql # not compatible
query I rowsort label-624
SELECT - COUNT ( ALL - ( - - 61 ) ) - 55
----
-56

query I rowsort
SELECT + 63 * + 19 AS col0
----
1197

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

query I rowsort
SELECT DISTINCT + 29 + + - 3
----
26

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-630
SELECT - 24 AS col2, COUNT( * ) * - - 69 AS col0
----
-24
69

skipif mysql # not compatible
query II rowsort label-630
SELECT - 24 AS col2, COUNT ( * ) * - - 69 AS col0
----
-24
69

query I rowsort
SELECT ALL - 20 + - - 78
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT + - 14 + + COUNT( * ) * 45
----
31

skipif mysql # not compatible
query I rowsort label-632
SELECT + - 14 + + COUNT ( * ) * 45
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-633
SELECT - + 76, COUNT( * ) + - + 93 + - ( + 53 ) AS col1
----
-76
-145

skipif mysql # not compatible
query II rowsort label-633
SELECT - + 76, COUNT ( * ) + - + 93 + - ( + 53 ) AS col1
----
-76
-145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-634
SELECT + + 40 + - + 94 * + 16 DIV COUNT( * ) AS col0
----
-1464

skipif mysql # not compatible
query I rowsort label-634
SELECT + + 40 + - + 94 * + 16 / COUNT ( * ) AS col0
----
-1464

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT - - COUNT( DISTINCT - + 59 ) + - 92 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-636
SELECT - - COUNT ( DISTINCT - + 59 ) + - 92 AS col0
----
-91

query I rowsort
SELECT DISTINCT + + 2 * 55 AS col1
----
110

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

skipif mysql # not compatible
query I rowsort label-638
SELECT + COUNT ( DISTINCT + 7 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-639
SELECT ALL + 85 DIV + - 46
----
-1

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL + 85 / + - 46
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-640
SELECT ALL + SUM( - + 37 ) / + CAST( NULL AS SIGNED ) * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL + SUM ( - + 37 ) / + CAST ( NULL AS INTEGER ) * 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT ALL ( - COUNT( * ) ) / + - 17 - 62 * 67 - - CASE - 99 WHEN 86 + 4 * + 91 THEN - 70 WHEN - 49 THEN - 14 / - 60 ELSE NULL END / - 58 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL ( - COUNT ( * ) ) / + - 17 - 62 * 67 - - CASE - 99 WHEN 86 + 4 * + 91 THEN - 70 WHEN - 49 THEN - 14 / - 60 ELSE NULL END / - 58 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT DISTINCT - 35 * 11 + + COUNT( * )
----
-384

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT - 35 * 11 + + COUNT ( * )
----
-384

query I rowsort
SELECT - + 7 * + 22 - - - 46
----
-200

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

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

query I rowsort
SELECT + - 33 * + 28 - + 70 * 55 AS col0
----
-4774

onlyif mysql # DIV for integer division: 
query I rowsort label-646
SELECT + + 58 - - 73 + - 52 DIV - 15 AS col0
----
134

skipif mysql # not compatible
query I rowsort label-646
SELECT + + 58 - - 73 + - 52 / - 15 AS col0
----
134

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

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

query I rowsort
SELECT - + 47 * + - 71
----
3337

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT - SUM( DISTINCT - + 97 ) * + COUNT( * ) - 7
----
90

skipif mysql # not compatible
query I rowsort label-649
SELECT - SUM ( DISTINCT - + 97 ) * + COUNT ( * ) - 7
----
90

query I rowsort
SELECT + 83 * + ( - 52 ) AS col2
----
-4316

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT ALL ( - MIN( ALL 66 ) ) * - 64
----
4224

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL ( - MIN ( ALL 66 ) ) * - 64
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT - 15 * COUNT( ALL 76 ) + - + 42
----
-57

skipif mysql # not compatible
query I rowsort label-653
SELECT - 15 * COUNT ( ALL 76 ) + - + 42
----
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT ALL ( ( COUNT( * ) ) ) * + 33 * 4
----
132

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL ( ( COUNT ( * ) ) ) * + 33 * 4
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-656
SELECT DISTINCT CAST( NULL AS SIGNED ) * 55 col1, + COUNT( + + 82 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-656
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 55 col1, + COUNT ( + + 82 )
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-657
SELECT 56 + + - CAST( NULL AS SIGNED ) - - MIN( + 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-657
SELECT 56 + + - CAST ( NULL AS INTEGER ) - - MIN ( + 48 )
----
NULL

query I rowsort
SELECT ALL 75 + 23 + 91 + ( 9 ) AS col2
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-659
SELECT DISTINCT 87 + + ( CAST( + 78 AS SIGNED ) ) col1
----
165

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT 87 + + ( CAST ( + 78 AS INTEGER ) ) col1
----
165

query I rowsort
SELECT 46 * 5 * + 39 * 56
----
502320

query I rowsort
SELECT DISTINCT 65 col2
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT NULLIF ( + 29, 26 + - + 54 * - 5 ) * - COUNT( - 31 - 10 * - 97 )
----
-29

skipif mysql # not compatible
query I rowsort label-663
SELECT NULLIF ( + 29, 26 + - + 54 * - 5 ) * - COUNT ( - 31 - 10 * - 97 )
----
-29

query I rowsort
SELECT + 83 + + - 39
----
44

query I rowsort
SELECT 88 * + - ( + + 87 ) AS col1
----
-7656

query I rowsort
SELECT CASE 89 WHEN - 94 THEN NULL WHEN + ( - ( 66 ) ) * 36 THEN 34 / ( - 76 ) END
----
NULL

query I rowsort
SELECT 19 + - 46 * - 95 * 55
----
240369

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL + COALESCE ( 24, - ( MAX( - 77 ) ) * 33 ) * 51 AS col2
----
1224

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL + COALESCE ( 24, - ( MAX ( - 77 ) ) * 33 ) * 51 AS col2
----
1224

query II rowsort
SELECT - 10 + 23 AS col2, + 35 col2
----
13
35

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT - 49 * - + SUM( ALL - ( + 79 ) ) col2
----
-3871

skipif mysql # not compatible
query I rowsort label-670
SELECT - 49 * - + SUM ( ALL - ( + 79 ) ) col2
----
-3871

query I rowsort
SELECT DISTINCT + 55 - - 94
----
149

query I rowsort
SELECT ALL 37 * ( - ( - - 3 ) )
----
-111

query I rowsort
SELECT DISTINCT - 75 - + 57
----
-132

query I rowsort
SELECT DISTINCT + 6 * + ( - 0 ) AS col1
----
0

query I rowsort
SELECT + CASE + 16 WHEN + 10 THEN - 73 WHEN 99 / 47 + COALESCE ( - 75 + 43, - 25 + + 79 ) * 43 THEN 77 * 57 ELSE 60 + + 82 END col1
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-676
SELECT - 54 DIV 71 + + 86 + 4 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-676
SELECT - 54 / 71 + + 86 + 4 AS col2
----
90

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

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

query I rowsort
SELECT COALESCE ( 49, 86 ) * - - 3 * - 29
----
-4263

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT - NULLIF ( + + 40, + SUM( DISTINCT - 10 ) ) + 65 * 70 col1
----
4510

skipif mysql # not compatible
query I rowsort label-679
SELECT - NULLIF ( + + 40, + SUM ( DISTINCT - 10 ) ) + 65 * 70 col1
----
4510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-680
SELECT COUNT( * ) DIV - 89 DIV - SUM( ALL - CAST( + COALESCE ( 28, ( 10 ) * - 0 + ( - 31 ) ) AS SIGNED ) ) + MIN( DISTINCT 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-680
SELECT COUNT ( * ) / - 89 / - SUM ( ALL - CAST ( + COALESCE ( 28, ( 10 ) * - 0 + ( - 31 ) ) AS INTEGER ) ) + MIN ( DISTINCT 92 ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT DISTINCT - 90 * + COUNT( * ) + 48 + - 55 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-681
SELECT DISTINCT - 90 * + COUNT ( * ) + 48 + - 55 AS col1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-682
SELECT DISTINCT - 79 DIV 7 * - - 65 + - COUNT( * ) AS col0
----
-716

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT - 79 / 7 * - - 65 + - COUNT ( * ) AS col0
----
-716

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT ALL - 64 * 89 * - MAX( DISTINCT 47 ) AS col0
----
267712

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL - 64 * 89 * - MAX ( DISTINCT 47 ) AS col0
----
267712

query I rowsort
SELECT DISTINCT - ( 40 ) AS col1
----
-40

query I rowsort
SELECT DISTINCT - CASE 46 WHEN - - 76 THEN - - 66 + 34 + 2 / - 25 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-686
SELECT DISTINCT - COUNT( * ) + + 73 * + + 88, - 6 AS col0
----
6423
-6

skipif mysql # not compatible
query II rowsort label-686
SELECT DISTINCT - COUNT ( * ) + + 73 * + + 88, - 6 AS col0
----
6423
-6

query I rowsort
SELECT 31 * + ( + - 95 )
----
-2945

query I rowsort
SELECT ALL - ( + + 61 ) + - 15 AS col2
----
-76

query II rowsort
SELECT + 91, + 49 AS col0
----
91
49

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

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

query I rowsort
SELECT 65 * - ( + 57 ) + - + 12 AS col1
----
-3717

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-693
SELECT ALL CASE - + CAST( NULL AS SIGNED ) WHEN + 33 THEN + 10 END + AVG ( 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL CASE - + CAST ( NULL AS INTEGER ) WHEN + 33 THEN + 10 END + AVG ( 90 )
----
NULL

query I rowsort
SELECT ALL 34 + - - 78 col0
----
112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-695
SELECT 46 - MAX( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT 46 - MAX ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-696
SELECT DISTINCT COUNT( * ) AS col0, + 88 * 40 col0, 29 + - - 52
----
1
3520
81

skipif mysql # not compatible
query III rowsort label-696
SELECT DISTINCT COUNT ( * ) AS col0, + 88 * 40 col0, 29 + - - 52
----
1
3520
81

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT ALL + COUNT( ALL - 43 ) + + - 65 + 16 + + 30 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL + COUNT ( ALL - 43 ) + + - 65 + 16 + + 30 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-698
SELECT 33 * + 62 * + 9, - MAX( DISTINCT + + 70 ) * 39 AS col2
----
18414
-2730

skipif mysql # not compatible
query II rowsort label-698
SELECT 33 * + 62 * + 9, - MAX ( DISTINCT + + 70 ) * 39 AS col2
----
18414
-2730

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

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

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

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT SUM ( DISTINCT - 28 )
----
-28

query II rowsort
SELECT ALL - 23 AS col0, 86
----
-23
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-702
SELECT + COALESCE ( + 24, - 77 * - - 65, + - 36, - 46 DIV + MAX( 68 ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-702
SELECT + COALESCE ( + 24, - 77 * - - 65, + - 36, - 46 / + MAX ( 68 ) ) AS col0
----
24

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

query I rowsort
SELECT - COALESCE ( 19, - 25 )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-705
SELECT DISTINCT + 18 DIV 64 + + + 26
----
26

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT + 18 / 64 + + + 26
----
26

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

skipif mysql # not compatible
query I rowsort label-706
SELECT ( + + SUM ( ALL - 94 ) ) * - COUNT ( * ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT + 88 * 95 * ( ( - - 32 ) ) * COUNT( * )
----
267520

skipif mysql # not compatible
query I rowsort label-707
SELECT + 88 * 95 * ( ( - - 32 ) ) * COUNT ( * )
----
267520

query I rowsort
SELECT 92 + - 53
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT DISTINCT COUNT( ALL + 93 ) * + 55 + 48 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT COUNT ( ALL + 93 ) * + 55 + 48 AS col2
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-710
SELECT ALL 84 * - CAST( + + 45 AS SIGNED ) + + COUNT( * )
----
-3779

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL 84 * - CAST ( + + 45 AS INTEGER ) + + COUNT ( * )
----
-3779

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT - 54 + 53 + - + 71 * - - COALESCE ( - 55, + 2 * - 59 ) * + COUNT( * ) + + 61
----
3965

skipif mysql # not compatible
query I rowsort label-711
SELECT - 54 + 53 + - + 71 * - - COALESCE ( - 55, + 2 * - 59 ) * + COUNT ( * ) + + 61
----
3965

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

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

query I rowsort
SELECT ALL - 50 * 67
----
-3350

query I rowsort
SELECT ALL - 89 * 55 * - 99 + - 77 + 49 AS col2
----
484577

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT 96 DIV - 41 + - 49 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-715
SELECT 96 / - 41 + - 49 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT ALL - COALESCE ( + + 38, - - COUNT( * ) ) * + - 66 * + 31 + + SUM( ALL - 51 ) + 30 col2
----
77727

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL - COALESCE ( + + 38, - - COUNT ( * ) ) * + - 66 * + 31 + + SUM ( ALL - 51 ) + 30 col2
----
77727

query I rowsort
SELECT - 83 + - 98 AS col0
----
-181

query I rowsort
SELECT COALESCE ( - 57, + - 0 * - - COALESCE ( 19, + 65 ) + + 56 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT 96 * + 71 + - - 12 + + MIN( DISTINCT + CASE WHEN ( + 51 ) >= ( - ( - 32 ) ) THEN + 26 + + 11 ELSE NULL END ) * + 64 * MIN( - 35 ) col0
----
-76052

skipif mysql # not compatible
query I rowsort label-719
SELECT 96 * + 71 + - - 12 + + MIN ( DISTINCT + CASE WHEN ( + 51 ) >= ( - ( - 32 ) ) THEN + 26 + + 11 ELSE NULL END ) * + 64 * MIN ( - 35 ) col0
----
-76052

onlyif mysql # aggregate syntax: 
query II rowsort label-720
SELECT - 76 + 1 AS col1, COUNT( DISTINCT 42 ) + + 88 + + + 33 * - 23 AS col1
----
-75
-670

skipif mysql # not compatible
query II rowsort label-720
SELECT - 76 + 1 AS col1, COUNT ( DISTINCT 42 ) + + 88 + + + 33 * - 23 AS col1
----
-75
-670

query I rowsort
SELECT + NULLIF ( - + 69, + 99 ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT - 40 + - 10 + + COUNT( * ) * 54 * + - 52 AS col2
----
-2858

skipif mysql # not compatible
query I rowsort label-722
SELECT - 40 + - 10 + + COUNT ( * ) * 54 * + - 52 AS col2
----
-2858

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

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

query I rowsort
SELECT DISTINCT + 2 * 60 + NULLIF ( + ( - + 21 ), - 59 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT + MIN( - + 88 ) * COUNT( * ) + - ( - + COUNT( * ) ) + - 45 + - 15
----
-147

skipif mysql # not compatible
query I rowsort label-725
SELECT + MIN ( - + 88 ) * COUNT ( * ) + - ( - + COUNT ( * ) ) + - 45 + - 15
----
-147

query I rowsort
SELECT + 4 * - + 63 AS col1
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT - COUNT( * ) * SUM( + 35 ) * 14 * + 46 + - 2
----
-22542

skipif mysql # not compatible
query I rowsort label-727
SELECT - COUNT ( * ) * SUM ( + 35 ) * 14 * + 46 + - 2
----
-22542

onlyif mysql # aggregate syntax: 
query II rowsort label-728
SELECT COUNT( * ), - 48 * - 25 col1
----
1
1200

skipif mysql # not compatible
query II rowsort label-728
SELECT COUNT ( * ), - 48 * - 25 col1
----
1
1200

query I rowsort
SELECT - 98 + - 43 * + + 47 AS col2
----
-2119

query II rowsort
SELECT + 15 AS col1, - ( 5 ) AS col0
----
15
-5

query I rowsort
SELECT - CASE + 13 WHEN - 89 - - 9 THEN - - 69 END + + 71 / 53
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-733
SELECT ALL + 53 DIV - - MAX( DISTINCT - 96 )
----
0

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL + 53 / - - MAX ( DISTINCT - 96 )
----
0

query I rowsort
SELECT DISTINCT + ( + 92 ) AS col0
----
92

query I rowsort
SELECT ALL - COALESCE ( + 30, + 97 - + 78 * - 51 )
----
-30

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-738
SELECT ALL COALESCE ( - - 94, 74 DIV - + 86 * + - 92 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL COALESCE ( - - 94, 74 / - + 86 * + - 92 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT - - SUM( + + COALESCE ( + - 8, + - 59 ) ) + - 88
----
-96

skipif mysql # not compatible
query I rowsort label-739
SELECT - - SUM ( + + COALESCE ( + - 8, + - 59 ) ) + - 88
----
-96

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

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

query I rowsort
SELECT - 58 + + + 54
----
-4

query II rowsort
SELECT ALL 10 AS col1, 27 * 90 AS col2
----
10
2430

query I rowsort
SELECT DISTINCT - 89 * - 82 + + - COALESCE ( - 71, + 31 ) AS col1
----
7369

query I rowsort
SELECT - 25 * + 22 + + 50
----
-500

query I rowsort
SELECT + - COALESCE ( 65, - + 86, 42 ) + - + 13 AS col1
----
-78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT + + 70 + - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-747
SELECT + + 70 + - - COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT - + COALESCE ( - 55, - MIN( ALL - - 14 ) ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-748
SELECT - + COALESCE ( - 55, - MIN ( ALL - - 14 ) ) AS col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-749
SELECT DISTINCT + 62 + + COALESCE ( - 1, MIN( - 22 ) ) + + 54 DIV - 18
----
58

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT + 62 + + COALESCE ( - 1, MIN ( - 22 ) ) + + 54 / - 18
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-750
SELECT ALL - 4 + - 11 + + - ( - CAST( + - ( + 87 ) AS SIGNED ) ) AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL - 4 + - 11 + + - ( - CAST ( + - ( + 87 ) AS INTEGER ) ) AS col0
----
-102

query I rowsort
SELECT ALL - 40 + - 20 AS col0
----
-60

query I rowsort
SELECT + 88 * - 7 * + + 55 AS col2
----
-33880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-753
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN 83 * - AVG ( + NULLIF ( + 52, 29 * - 16 + - 35 * NULLIF ( + 62, + 61 ) ) ) THEN 59 END + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN 83 * - AVG ( + NULLIF ( + 52, 29 * - 16 + - 35 * NULLIF ( + 62, + 61 ) ) ) THEN 59 END + + 69
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-754
SELECT + ( - 2 ), - 25 + - CASE - ( MIN( CAST( NULL AS SIGNED ) ) ) WHEN 77 THEN NULL WHEN - 31 * 54 + MIN( ALL - 61 ) THEN 27 / 82 + 45 END AS col2
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-754
SELECT + ( - 2 ), - 25 + - CASE - ( MIN ( CAST ( NULL AS INTEGER ) ) ) WHEN 77 THEN NULL WHEN - 31 * 54 + MIN ( ALL - 61 ) THEN 27 / 82 + 45 END AS col2
----
-2
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-755
SELECT + MAX( DISTINCT COALESCE ( 67, - 31 ) ) * 2 * - 73 + + ( + COALESCE ( + ( + 72 ), 79 + COUNT( * ) * 70 ) ) - - 74 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT + MAX ( DISTINCT COALESCE ( 67, - 31 ) ) * 2 * - 73 + + ( + COALESCE ( + ( + 72 ), 79 + COUNT ( * ) * 70 ) ) - - 74 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 47 * 28
----
1316

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-757
SELECT + 53 * + CAST( NULL AS DECIMAL ) * + ( - 28 ) * 51 / - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-757
SELECT + 53 * + CAST ( NULL AS REAL ) * + ( - 28 ) * 51 / - 64
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-758
SELECT ALL + 52 DIV 8 + + ( + + MAX( - 27 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL + 52 / 8 + + ( + + MAX ( - 27 ) )
----
-21

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

onlyif mysql # aggregate syntax: 
query II rowsort label-760
SELECT ALL ( - + 29 ) * - 81 * - 97 - - 31 AS col2, COUNT( ALL + - 92 )
----
-227822
1

skipif mysql # not compatible
query II rowsort label-760
SELECT ALL ( - + 29 ) * - 81 * - 97 - - 31 AS col2, COUNT ( ALL + - 92 )
----
-227822
1

query II rowsort
SELECT + ( + 61 ) col0, - 11
----
61
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-762
SELECT ALL + COALESCE ( + + 59, COUNT( * ) ) AS col1, 31 * - MAX( DISTINCT - + 7 ) * - + MIN( ALL 38 ) + + 53 * 59 AS col0
----
59
-5119

skipif mysql # not compatible
query II rowsort label-762
SELECT ALL + COALESCE ( + + 59, COUNT ( * ) ) AS col1, 31 * - MAX ( DISTINCT - + 7 ) * - + MIN ( ALL 38 ) + + 53 * 59 AS col0
----
59
-5119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-763
SELECT DISTINCT + COUNT( DISTINCT - 55 ) DIV - COUNT( * ) + - 44 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT + COUNT ( DISTINCT - 55 ) / - COUNT ( * ) + - 44 AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-764
SELECT ALL - 75 / - 2 + + 44 + - 74 + 77 * - - CAST( NULL AS SIGNED ) - - + AVG ( ALL 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL - 75 / - 2 + + 44 + - 74 + 77 * - - CAST ( NULL AS INTEGER ) - - + AVG ( ALL 53 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT + NULLIF ( - + 67, - MIN( + 78 ) ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-765
SELECT + NULLIF ( - + 67, - MIN ( + 78 ) ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT - MAX( + + 78 ) * + + 40 * 98
----
-305760

skipif mysql # not compatible
query I rowsort label-766
SELECT - MAX ( + + 78 ) * + + 40 * 98
----
-305760

query I rowsort
SELECT + 57 + - ( 17 ) - - - 23 AS col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-768
SELECT CAST( - 97 AS SIGNED ) * - 26 + + 53 AS col1
----
2575

skipif mysql # not compatible
query I rowsort label-768
SELECT CAST ( - 97 AS INTEGER ) * - 26 + + 53 AS col1
----
2575

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT COALESCE ( + - 71, - COUNT( * ), + + MIN( ALL + + 0 ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-769
SELECT COALESCE ( + - 71, - COUNT ( * ), + + MIN ( ALL + + 0 ) ) AS col0
----
-71

query I rowsort
SELECT ALL + 97 col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-771
SELECT DISTINCT + + CASE + 18 WHEN - 60 * + CAST( NULL AS SIGNED ) + + 13 / 86 * + 1 * - SUM( - 76 ) + 21 THEN NULL WHEN CAST( NULL AS SIGNED ) * - 78 THEN 85 END * + AVG ( DISTINCT + 23 - - 85 * - ( 15 / 16 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT + + CASE + 18 WHEN - 60 * + CAST ( NULL AS INTEGER ) + + 13 / 86 * + 1 * - SUM ( - 76 ) + 21 THEN NULL WHEN CAST ( NULL AS INTEGER ) * - 78 THEN 85 END * + AVG ( DISTINCT + 23 - - 85 * - ( 15 / 16 ) ) AS col1
----
NULL

query I rowsort
SELECT - - 57 + - 17
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT ALL 3 * + + 74 DIV 24 * - 74 DIV 37
----
-18

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL 3 * + + 74 / 24 * - 74 / 37
----
-18

query II rowsort
SELECT + 68 * - 2 + 11 AS col0, + 3 * - + 35 + 76
----
-125
-29

query I rowsort
SELECT - + 80 * + 15 * 94
----
-112800

query I rowsort
SELECT - + 74 * 42 + 41 + + 39 * ( 37 ) * + ( 57 )
----
79184

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

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

query I rowsort
SELECT 22 * ( + 79 ) AS col0
----
1738

query II rowsort
SELECT 53 - - 84 AS col0, - 99
----
137
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT - CASE - 15 WHEN - + ( + CASE + 34 WHEN - 62 THEN NULL WHEN 9 THEN NULL ELSE + 91 + - 97 * 1 END ) * 2 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-780
SELECT - CASE - 15 WHEN - + ( + CASE + 34 WHEN - 62 THEN NULL WHEN 9 THEN NULL ELSE + 91 + - 97 * 1 END ) * 2 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-781
SELECT ALL + - 59 + 7 * + + COALESCE ( 95, + NULLIF ( - CASE + 30 WHEN CAST( 46 AS DECIMAL ) + - COUNT( * ) / + 27 THEN NULL WHEN + 12 + + SUM( + 23 + + 35 ) * + COUNT( * ) THEN - 80 - ( - 45 ) END, + 14 * + 76 ) * 41 - 59 ) AS col1
----
606

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL + - 59 + 7 * + + COALESCE ( 95, + NULLIF ( - CASE + 30 WHEN CAST ( 46 AS REAL ) + - COUNT ( * ) / + 27 THEN NULL WHEN + 12 + + SUM ( + 23 + + 35 ) * + COUNT ( * ) THEN - 80 - ( - 45 ) END, + 14 * + 76 ) * 41 - 59 ) AS col1
----
606

query II rowsort
SELECT DISTINCT + 66 + 35, 18 AS col2
----
101
18

query I rowsort
SELECT ALL + + 47 + - - 15 * - 84 AS col2
----
-1213

query I rowsort
SELECT DISTINCT - 11 + + ( + 48 ) - 98
----
-61

query I rowsort
SELECT + 11 + 25 + + 99 + COALESCE ( 39, 11 )
----
174

onlyif mysql # aggregate syntax: 
query II rowsort label-786
SELECT DISTINCT ( - - COUNT( * ) ), 32 * + 88 - + + 34 - + 59 AS col2
----
1
2723

skipif mysql # not compatible
query II rowsort label-786
SELECT DISTINCT ( - - COUNT ( * ) ), 32 * + 88 - + + 34 - + 59 AS col2
----
1
2723

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-787
SELECT ALL + + CASE - + ( - - NULLIF ( + 61, + 65 ) ) WHEN + CAST( NULL AS DECIMAL ) THEN + AVG ( ALL 55 ) END + + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL + + CASE - + ( - - NULLIF ( + 61, + 65 ) ) WHEN + CAST ( NULL AS REAL ) THEN + AVG ( ALL 55 ) END + + 87 AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-789
SELECT + ( + + 58 ) - + 13 + + - COUNT ( * ) AS col2
----
44

query I rowsort
SELECT 12 + - + 57 AS col1
----
-45

query I rowsort
SELECT 21 + - 73 * + 65
----
-4724

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-792
SELECT ALL CAST( - ( - 48 ) AS SIGNED ) + - 16, - 16 + - COUNT( * ) AS col2
----
32
-17

skipif mysql # not compatible
query II rowsort label-792
SELECT ALL CAST ( - ( - 48 ) AS INTEGER ) + - 16, - 16 + - COUNT ( * ) AS col2
----
32
-17

query I rowsort
SELECT ALL + NULLIF ( 41, - 72 ) * + - NULLIF ( + 74, - 28 + + 11 )
----
-3034

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT - COUNT ( + 96 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-797
SELECT CASE + COUNT( * ) WHEN - COUNT( 81 ) THEN NULL ELSE 57 END DIV - 89 + COUNT( * ) + 39
----
40

skipif mysql # not compatible
query I rowsort label-797
SELECT CASE + COUNT ( * ) WHEN - COUNT ( 81 ) THEN NULL ELSE 57 END / - 89 + COUNT ( * ) + 39
----
40

query II rowsort
SELECT DISTINCT - 95 AS col2, - ( + 57 ) + + + 64
----
-95
7

onlyif mysql # DIV for integer division: 
query I rowsort label-799
SELECT ALL 75 DIV - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL 75 / - 94 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-800
SELECT CAST( 37 AS SIGNED ) DIV 21 DIV 15
----
0

skipif mysql # not compatible
query I rowsort label-800
SELECT CAST ( 37 AS INTEGER ) / 21 / 15
----
0

query I rowsort
SELECT 43 * - + ( - ( - 79 ) )
----
-3397

query I rowsort
SELECT 56 * + 3 AS col0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT COUNT( DISTINCT + 62 ) * 82 * + - COUNT( ALL - 40 ) + + 33
----
-49

skipif mysql # not compatible
query I rowsort label-803
SELECT COUNT ( DISTINCT + 62 ) * 82 * + - COUNT ( ALL - 40 ) + + 33
----
-49

query I rowsort
SELECT ALL 45 * 81
----
3645

query I rowsort
SELECT ALL - CASE - 96 WHEN + 27 THEN - + 53 + + 74 ELSE - + 96 END * - 48 - - - 91 AS col0
----
-4699

query I rowsort
SELECT DISTINCT 74 * + - 9
----
-666

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-807
SELECT DISTINCT - 46 AS col1, ( CAST( - 22 AS SIGNED ) ) AS col1
----
-46
-22

skipif mysql # not compatible
query II rowsort label-807
SELECT DISTINCT - 46 AS col1, ( CAST ( - 22 AS INTEGER ) ) AS col1
----
-46
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-808
SELECT DISTINCT 92 * 44 DIV SUM( + + 35 ) * 86 + + CASE + + 82 WHEN + + 16 THEN + 28 ELSE + 67 END + + 3 * 36
----
10065

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT 92 * 44 / SUM ( + + 35 ) * 86 + + CASE + + 82 WHEN + + 16 THEN + 28 ELSE + 67 END + + 3 * 36
----
10065

query I rowsort
SELECT + 40 * - 39 + - + 85
----
-1645

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-811
SELECT CAST( 43 AS SIGNED ) + + MAX( - - 27 ) - + 86 + - 63 * - MAX( 9 ) * - 56 col0
----
-31768

skipif mysql # not compatible
query I rowsort label-811
SELECT CAST ( 43 AS INTEGER ) + + MAX ( - - 27 ) - + 86 + - 63 * - MAX ( 9 ) * - 56 col0
----
-31768

query I rowsort
SELECT + 93 + - 92
----
1

query II rowsort
SELECT 9, NULLIF ( 56, - ( 25 ) ) col0
----
9
56

query I rowsort
SELECT 90 * ( + - 60 )
----
-5400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-815
SELECT - MAX( CASE - ( + - CAST( NULL AS SIGNED ) ) WHEN + 89 THEN + 8 * 10 ELSE NULL END ) * + - CASE AVG ( + 10 ) WHEN + COUNT( * ) THEN MAX( ALL 31 ) END * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT - MAX ( CASE - ( + - CAST ( NULL AS INTEGER ) ) WHEN + 89 THEN + 8 * 10 ELSE NULL END ) * + - CASE AVG ( + 10 ) WHEN + COUNT ( * ) THEN MAX ( ALL 31 ) END * - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 7 * + - 96 + - 7
----
-679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-817
SELECT DISTINCT + 37 + - + 87 + - 55 + - COALESCE ( - ( - MIN( + 91 ) ), NULLIF ( - 38, 68 + + COALESCE ( CAST( NULL AS SIGNED ), - 87, + ( - 52 ) ) ) + 30 ) AS col0
----
-196

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT + 37 + - + 87 + - 55 + - COALESCE ( - ( - MIN ( + 91 ) ), NULLIF ( - 38, 68 + + COALESCE ( CAST ( NULL AS INTEGER ), - 87, + ( - 52 ) ) ) + 30 ) AS col0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT + 43 + + - COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-818
SELECT + 43 + + - COUNT ( * ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT DISTINCT NULLIF ( ( - COUNT( * ) ), + - 91 ) * + 9
----
-9

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT NULLIF ( ( - COUNT ( * ) ), + - 91 ) * + 9
----
-9

query I rowsort
SELECT ALL - 13 * 45 - + 37 AS col0
----
-622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-821
SELECT + COUNT( * ) DIV + 30 * - ( - + 19 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-821
SELECT + COUNT ( * ) / + 30 * - ( - + 19 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-822
SELECT 36 + - 23 + + 31 - 27 * + CAST( + 62 AS SIGNED ) * + ( - NULLIF ( 33, 0 ) ) - 16 AS col1
----
55270

skipif mysql # not compatible
query I rowsort label-822
SELECT 36 + - 23 + + 31 - 27 * + CAST ( + 62 AS INTEGER ) * + ( - NULLIF ( 33, 0 ) ) - 16 AS col1
----
55270

query I rowsort
SELECT CASE + 14 WHEN 14 THEN NULL ELSE CASE + + ( - 87 ) WHEN + 45 THEN NULL WHEN 3 / 77 THEN 26 ELSE 50 * + 83 END END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-824
SELECT ALL + 22 + - CAST( + 67 AS SIGNED ) AS col2, - 27 + - - 1 AS col0
----
-45
-26

skipif mysql # not compatible
query II rowsort label-824
SELECT ALL + 22 + - CAST ( + 67 AS INTEGER ) AS col2, - 27 + - - 1 AS col0
----
-45
-26

query I rowsort
SELECT 28 * - 41 AS col0
----
-1148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-826
SELECT DISTINCT - CAST( 81 AS SIGNED ) / + CASE - 57 WHEN 31 THEN - ( + 90 ) END + + + ( COALESCE ( + COUNT( * ), ( 21 ), ( + 2 ) * 73 + - 20 ) ) + 69 * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT - CAST ( 81 AS INTEGER ) / + CASE - 57 WHEN 31 THEN - ( + 90 ) END + + + ( COALESCE ( + COUNT ( * ), ( 21 ), ( + 2 ) * 73 + - 20 ) ) + 69 * 80
----
NULL

query I rowsort
SELECT DISTINCT + 83 - - + 29 + - + 24 AS col1
----
88

query I rowsort
SELECT 27 - - 34 col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-829
SELECT DISTINCT COUNT( - + 61 ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-829
SELECT DISTINCT COUNT ( - + 61 ), COUNT ( * )
----
1
1

query I rowsort
SELECT DISTINCT + 84 * + ( + 17 ) * + + ( - - 83 ) AS col1
----
118524

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT 52 * - COUNT( DISTINCT + - 43 ) * 14
----
-728

skipif mysql # not compatible
query I rowsort label-832
SELECT 52 * - COUNT ( DISTINCT + - 43 ) * 14
----
-728

query I rowsort
SELECT 88 * + 81
----
7128

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

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL - MIN ( - CAST ( + 80 AS INTEGER ) ) AS col1
----
80

query II rowsort
SELECT ALL - 76 * - 5 AS col2, + ( 80 )
----
380
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-836
SELECT ALL - 67 * + CAST( NULL AS SIGNED ) * + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL - 67 * + CAST ( NULL AS INTEGER ) * + 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL - NULLIF ( - ( - - 34 ), - + NULLIF ( - + MIN( DISTINCT - ( 29 ) ), - - ( - COUNT( * ) ) * 95 ) )
----
34

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL - NULLIF ( - ( - - 34 ), - + NULLIF ( - + MIN ( DISTINCT - ( 29 ) ), - - ( - COUNT ( * ) ) * 95 ) )
----
34

query II rowsort
SELECT + ( + 75 ) AS col0, 82
----
75
82

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT - 64 * 18 * + MIN( + + 71 ) * 92 AS col1
----
-7524864

skipif mysql # not compatible
query I rowsort label-839
SELECT - 64 * 18 * + MIN ( + + 71 ) * 92 AS col1
----
-7524864

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT CASE - ( - 40 ) WHEN CASE + 28 WHEN - SUM( ALL + 90 ) - - + 17 THEN + 50 ELSE + 24 END THEN - 94 - COALESCE ( 70, 37 ) * - 64 WHEN + 94 + 56 THEN 64 END + NULLIF ( 41, - 55 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-840
SELECT CASE - ( - 40 ) WHEN CASE + 28 WHEN - SUM ( ALL + 90 ) - - + 17 THEN + 50 ELSE + 24 END THEN - 94 - COALESCE ( 70, 37 ) * - 64 WHEN + 94 + 56 THEN 64 END + NULLIF ( 41, - 55 ) AS col2
----
NULL

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

query II rowsort
SELECT DISTINCT 47 * - + 44 * 88 + + + ( 36 ) * - 79 + - 74 AS col1, + 59 * 41 AS col1
----
-184902
2419

query I rowsort
SELECT ALL 21 * + + 50
----
1050

query I rowsort
SELECT DISTINCT - 11 + - 68
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT ALL + - ( COALESCE ( + MAX( DISTINCT + 52 ), - 2, - - 19 ) ) + + - COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL + - ( COALESCE ( + MAX ( DISTINCT + 52 ), - 2, - - 19 ) ) + + - COUNT ( * ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT DISTINCT + COUNT( * ) * NULLIF ( 47, 55 )
----
47

skipif mysql # not compatible
query I rowsort label-846
SELECT DISTINCT + COUNT ( * ) * NULLIF ( 47, 55 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-847
SELECT ALL - SUM( ALL - 29 ) + 22 * 72 * + ( 27 ) * - 89 + + - CAST( - CASE 93 WHEN - COUNT( DISTINCT ( - 75 ) ) THEN NULL WHEN 92 * + 23 THEN 63 + 61 / COUNT( * ) END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL - SUM ( ALL - 29 ) + 22 * 72 * + ( 27 ) * - 89 + + - CAST ( - CASE 93 WHEN - COUNT ( DISTINCT ( - 75 ) ) THEN NULL WHEN 92 * + 23 THEN 63 + 61 / COUNT ( * ) END AS REAL )
----
NULL

query I rowsort
SELECT + - 72 * - ( - - 42 ) AS col2
----
3024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-849
SELECT DISTINCT + ( + 55 ) + - - 90 + CAST( - - 53 AS SIGNED ) * + NULLIF ( + 21, 70 )
----
1258

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT + ( + 55 ) + - - 90 + CAST ( - - 53 AS INTEGER ) * + NULLIF ( + 21, 70 )
----
1258

query I rowsort
SELECT ALL - + 92 * - 60 AS col2
----
5520

query I rowsort
SELECT ALL - 33 * - 66 * - 24 * + ( 45 ) AS col2
----
-2352240

query I rowsort
SELECT - - COALESCE ( - 62, + - 21 ) AS col1
----
-62

query I rowsort
SELECT - - 61 AS col2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-854
SELECT + - CAST( - 74 AS SIGNED ) + - 40
----
34

skipif mysql # not compatible
query I rowsort label-854
SELECT + - CAST ( - 74 AS INTEGER ) + - 40
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT + MIN( ALL + 49 ) * + 66 col1
----
3234

skipif mysql # not compatible
query I rowsort label-855
SELECT + MIN ( ALL + 49 ) * + 66 col1
----
3234

query I rowsort
SELECT ALL ( + - 86 ) - + + 92
----
-178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-857
SELECT ALL 47 - - CAST( NULL AS SIGNED ) - - COUNT( - 99 ) * + + CAST( CASE WHEN NOT ( ( 58 ) NOT IN ( 83 ) ) THEN + 26 * 52 ELSE NULL END AS SIGNED ) / + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL 47 - - CAST ( NULL AS INTEGER ) - - COUNT ( - 99 ) * + + CAST ( CASE WHEN NOT ( ( 58 ) NOT IN ( 83 ) ) THEN + 26 * 52 ELSE NULL END AS INTEGER ) / + 18 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-859
SELECT 1, CASE SUM( - ( + + 7 ) ) WHEN + 13 THEN NULL WHEN - 62 THEN - ( - 1 ) + - 10 + 90 END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-859
SELECT 1, CASE SUM ( - ( + + 7 ) ) WHEN + 13 THEN NULL WHEN - 62 THEN - ( - 1 ) + - 10 + 90 END AS col1
----
1
NULL

query I rowsort
SELECT ALL 0 * + 47 col0
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-862
SELECT - 11 DIV - - SUM( DISTINCT + 99 )
----
0

skipif mysql # not compatible
query I rowsort label-862
SELECT - 11 / - - SUM ( DISTINCT + 99 )
----
0

query I rowsort
SELECT - ( + 25 ) - + 54
----
-79

query I rowsort
SELECT + 58 + 95 AS col0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-865
SELECT + 76 DIV + 24 col1
----
3

skipif mysql # not compatible
query I rowsort label-865
SELECT + 76 / + 24 col1
----
3

query I rowsort
SELECT DISTINCT 47 col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-867
SELECT ALL + 7 DIV - 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL + 7 / - 25 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-868
SELECT 8 / + - 40 + + 21 + CASE - - CAST( NULL AS SIGNED ) WHEN + ( ( + - ( + 72 ) ) ) * 54 * 63 + 74 * 3 + 5 * + COUNT( * ) THEN - CAST( NULL AS SIGNED ) * 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT 8 / + - 40 + + 21 + CASE - - CAST ( NULL AS INTEGER ) WHEN + ( ( + - ( + 72 ) ) ) * 54 * 63 + 74 * 3 + 5 * + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) * 42 END
----
NULL

query I rowsort
SELECT - 22 * - ( + - 27 )
----
-594

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT ALL - MAX( 43 ) * + 3 + - ( - - 66 ) AS col0
----
-195

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL - MAX ( 43 ) * + 3 + - ( - - 66 ) AS col0
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-872
SELECT - 53 * + 91 + 45 + + ( + 28 ) + - COUNT( * ) DIV + MAX( + - NULLIF ( + 42, + 15 * - 69 ) ) * + COALESCE ( COUNT( * ), + MIN( ALL 47 ) * CAST( NULL AS SIGNED ), - 42 * 9 - + 65 ) + 66
----
-4684

skipif mysql # not compatible
query I rowsort label-872
SELECT - 53 * + 91 + 45 + + ( + 28 ) + - COUNT ( * ) / + MAX ( + - NULLIF ( + 42, + 15 * - 69 ) ) * + COALESCE ( COUNT ( * ), + MIN ( ALL 47 ) * CAST ( NULL AS INTEGER ), - 42 * 9 - + 65 ) + 66
----
-4684

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT ALL - COUNT( + 8 ) * + 70 + - 15 * + 76 + - - 63 * + + COUNT( * )
----
-1147

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL - COUNT ( + 8 ) * + 70 + - 15 * + 76 + - - 63 * + + COUNT ( * )
----
-1147

query I rowsort
SELECT DISTINCT - ( - 67 ) * + + 3
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT - - 68 * - - COUNT( * ) * - COUNT( * ) - + 65
----
-133

skipif mysql # not compatible
query I rowsort label-876
SELECT - - 68 * - - COUNT ( * ) * - COUNT ( * ) - + 65
----
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-877
SELECT + CAST( + 54 AS SIGNED ) * + COUNT( * ), - 85 + - 92 col0
----
54
-177

skipif mysql # not compatible
query II rowsort label-877
SELECT + CAST ( + 54 AS INTEGER ) * + COUNT ( * ), - 85 + - 92 col0
----
54
-177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-878
SELECT ALL + - 65 DIV - + ( + 11 ) - + + COUNT( * ) DIV + CAST( + + 25 AS SIGNED ), 3 * - - COUNT( * ) AS col1, + + 66 AS col2
----
5
3
66

skipif mysql # not compatible
query III rowsort label-878
SELECT ALL + - 65 / - + ( + 11 ) - + + COUNT ( * ) / + CAST ( + + 25 AS INTEGER ), 3 * - - COUNT ( * ) AS col1, + + 66 AS col2
----
5
3
66

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT - - ( MAX( DISTINCT - 91 ) ) + - - ( - 39 ) AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-879
SELECT - - ( MAX ( DISTINCT - 91 ) ) + - - ( - 39 ) AS col0
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT + - 85 + + COUNT( + + 58 )
----
-84

skipif mysql # not compatible
query I rowsort label-880
SELECT + - 85 + + COUNT ( + + 58 )
----
-84

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

query I rowsort
SELECT - + 99 + - 18 col0
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-883
SELECT ALL COUNT( * ) AS col1, + 18 + - + 60 DIV - 94
----
1
18

skipif mysql # not compatible
query II rowsort label-883
SELECT ALL COUNT ( * ) AS col1, + 18 + - + 60 / - 94
----
1
18

query I rowsort
SELECT - - 37 * + - 98 * - 79 + - 97 + 2 * - 62
----
286233

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT DISTINCT + + 23 * - COALESCE ( - MIN( DISTINCT ( + 27 ) ), + + 2 + 98, 47, + MIN( - 18 ) ) AS col2
----
621

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT + + 23 * - COALESCE ( - MIN ( DISTINCT ( + 27 ) ), + + 2 + 98, 47, + MIN ( - 18 ) ) AS col2
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT ALL 30 * ( COUNT( * ) ) - + 70 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL 30 * ( COUNT ( * ) ) - + 70 AS col0
----
-40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT + SUM( - 69 ) + + 23
----
-46

skipif mysql # not compatible
query I rowsort label-888
SELECT + SUM ( - 69 ) + + 23
----
-46

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

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

query I rowsort
SELECT + 71 * 91 AS col1
----
6461

query II rowsort
SELECT 48, - ( - - 17 ) col0
----
48
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-892
SELECT + 88 + - 83 + - ( - 38 ) + - - CAST( NULL AS SIGNED ) / + COUNT( + 76 ) + ( - 1 ) + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT + 88 + - 83 + - ( - 38 ) + - - CAST ( NULL AS INTEGER ) / + COUNT ( + 76 ) + ( - 1 ) + - 4
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-893
SELECT + ( - 42 ) + + CAST( NULL AS SIGNED ) * - + 19 AS col1, + 23 AS col1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-893
SELECT + ( - 42 ) + + CAST ( NULL AS INTEGER ) * - + 19 AS col1, + 23 AS col1
----
NULL
23

query II rowsort
SELECT 62 AS col1, - 34 + + 66
----
62
32

query I rowsort
SELECT + 35 * 71
----
2485

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-896
SELECT DISTINCT 90 AS col1, + SUM( + COALESCE ( + + 31, - 77 ) ) DIV + + 36
----
90
0

skipif mysql # not compatible
query II rowsort label-896
SELECT DISTINCT 90 AS col1, + SUM ( + COALESCE ( + + 31, - 77 ) ) / + + 36
----
90
0

query III rowsort
SELECT ALL 42 AS col0, 99 * - 84 + 49 AS col1, + 37 - - 16
----
42
-8267
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-898
SELECT - CAST( + AVG ( DISTINCT + + 39 ) AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-898
SELECT - CAST ( + AVG ( DISTINCT + + 39 ) AS INTEGER )
----
-39

query I rowsort
SELECT DISTINCT 52 + + 9 * 66 * 61 AS col1
----
36286

query I rowsort
SELECT ALL + 3 * + 91
----
273

onlyif mysql # aggregate syntax: 
query II rowsort label-901
SELECT 91 AS col2, 12 + 75 + - + 38 * + COUNT( * )
----
91
49

skipif mysql # not compatible
query II rowsort label-901
SELECT 91 AS col2, 12 + 75 + - + 38 * + COUNT ( * )
----
91
49

query II rowsort
SELECT DISTINCT 28 + - + 92 AS col1, - 25 * + ( - - 44 )
----
-64
-1100

query II rowsort
SELECT ALL 86 + 46 AS col1, - NULLIF ( + 61, - 23 ) AS col2
----
132
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-904
SELECT 99, 97 DIV COUNT( * ) AS col0
----
99
97

skipif mysql # not compatible
query II rowsort label-904
SELECT 99, 97 / COUNT ( * ) AS col0
----
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-905
SELECT - 57 DIV 43
----
-1

skipif mysql # not compatible
query I rowsort label-905
SELECT - 57 / 43
----
-1

query I rowsort
SELECT - 74 * 10
----
-740

query II rowsort
SELECT + 68, + 8 col1
----
68
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-908
SELECT ALL + 58 + - CAST( 97 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL + 58 + - CAST ( 97 AS INTEGER )
----
-39

query I rowsort
SELECT ALL - 77 + - ( - 11 )
----
-66

query II rowsort
SELECT ALL - 32 AS col0, 29 * + ( + + 85 )
----
-32
2465

query I rowsort
SELECT ALL - - 38 - 41 AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-912
SELECT + 29 * + 81 + + NULLIF ( 87, + COUNT( * ) * - 15 - SUM( ALL + 47 ) * ( - + 86 ) + - + 94 ) + - 83 DIV - SUM( ALL 15 + - 54 )
----
2434

skipif mysql # not compatible
query I rowsort label-912
SELECT + 29 * + 81 + + NULLIF ( 87, + COUNT ( * ) * - 15 - SUM ( ALL + 47 ) * ( - + 86 ) + - + 94 ) + - 83 / - SUM ( ALL 15 + - 54 )
----
2434

query I rowsort
SELECT + + 99 AS col2
----
99

query I rowsort
SELECT 14 + + 23 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-915
SELECT DISTINCT - - 62 * + + COUNT( - COALESCE ( - 36, 86 ) ) + - 49 - COUNT( * ) - 61 * - CAST( - 88 AS SIGNED ) * - 94 * 80
----
40367372

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT - - 62 * + + COUNT ( - COALESCE ( - 36, 86 ) ) + - 49 - COUNT ( * ) - 61 * - CAST ( - 88 AS INTEGER ) * - 94 * 80
----
40367372

query I rowsort
SELECT COALESCE ( 80, + 26 ) - 16 * - 93
----
1568

query I rowsort
SELECT 91 * - - 82 AS col2
----
7462

query I rowsort
SELECT ALL + 34 * 71 * - + 80
----
-193120

query I rowsort
SELECT + ( - CASE WHEN - COALESCE ( - 75, 36 ) <= - - 82 + - 17 - + ( 35 ) THEN 33 + 38 END ) AS col1
----
NULL

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

skipif mysql # not compatible
query II rowsort label-920
SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) / + 41
----
-1
0

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

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

query I rowsort
SELECT 37 + + + 16 - + + NULLIF ( + + 29, - 64 ) + - ( 54 )
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-923
SELECT DISTINCT + 34 DIV + 50, + 82 AS col2
----
0
82

skipif mysql # not compatible
query II rowsort label-923
SELECT DISTINCT + 34 / + 50, + 82 AS col2
----
0
82

query I rowsort
SELECT DISTINCT + 25 + 38 + + ( + - 50 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-925
SELECT 56 / - CAST( 46 AS SIGNED ) * + - CASE COUNT( * ) WHEN + + 92 THEN NULL WHEN + 99 THEN NULL WHEN + 37 + 88 THEN + CASE 0 WHEN + + 89 THEN 74 END * 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-925
SELECT 56 / - CAST ( 46 AS INTEGER ) * + - CASE COUNT ( * ) WHEN + + 92 THEN NULL WHEN + 99 THEN NULL WHEN + 37 + 88 THEN + CASE 0 WHEN + + 89 THEN 74 END * 82 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 47 + + 85 + - 11 + - + 73 + + - 41 AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-927
SELECT DISTINCT + ( - 42 ) DIV 27 * 67
----
-67

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT + ( - 42 ) / 27 * 67
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-928
SELECT 72 - MAX( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-928
SELECT 72 - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 40 * 96 * + + 31 AS col2
----
119040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-930
SELECT DISTINCT - 62 + - + NULLIF ( COUNT( * ), + COUNT( * ) + + ( - 84 ) + - 67 ) DIV - COALESCE ( 30, + + COUNT( * ) * - - 44, + + 81 * - 97 )
----
-62

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT - 62 + - + NULLIF ( COUNT ( * ), + COUNT ( * ) + + ( - 84 ) + - 67 ) / - COALESCE ( 30, + + COUNT ( * ) * - - 44, + + 81 * - 97 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT ALL + 8 + - COUNT( * ) + + COUNT( DISTINCT - 47 ) + - - 33 + + 88 + 37 * + 13 * + + CASE - 51 WHEN - + 36 THEN + 99 / 88 WHEN + 50 + 9 * COUNT( * ) THEN NULL ELSE NULL END * COUNT( * ) - - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL + 8 + - COUNT ( * ) + + COUNT ( DISTINCT - 47 ) + - - 33 + + 88 + 37 * + 13 * + + CASE - 51 WHEN - + 36 THEN + 99 / 88 WHEN + 50 + 9 * COUNT ( * ) THEN NULL ELSE NULL END * COUNT ( * ) - - 85 AS col2
----
NULL

query I rowsort
SELECT 62 + + 67
----
129

query II rowsort
SELECT DISTINCT 4 * 21 AS col0, + 32
----
84
32

query II rowsort
SELECT 71 + - 52 col2, + 15 * 35
----
19
525

query I rowsort
SELECT 7 - - - 53
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-936
SELECT COALESCE ( + 90, NULLIF ( CASE - 85 WHEN + 55 * + - 30 * + + NULLIF ( - COUNT( * ), + - 6 + + 91 ) * - 27 * 78 + 31 * + 43 THEN + 29 + 39 ELSE NULL END, - MAX( ALL 54 ) ), MIN( DISTINCT + COALESCE ( - 51, + 53 * 99 ) ) DIV 18 + ( + 8 ) ) - + 52
----
38

skipif mysql # not compatible
query I rowsort label-936
SELECT COALESCE ( + 90, NULLIF ( CASE - 85 WHEN + 55 * + - 30 * + + NULLIF ( - COUNT ( * ), + - 6 + + 91 ) * - 27 * 78 + 31 * + 43 THEN + 29 + 39 ELSE NULL END, - MAX ( ALL 54 ) ), MIN ( DISTINCT + COALESCE ( - 51, + 53 * 99 ) ) / 18 + ( + 8 ) ) - + 52
----
38

query I rowsort
SELECT 90 + - 31 + 74 AS col2
----
133

query II rowsort
SELECT 97 + - 13 AS col0, 0 - 5 AS col0
----
84
-5

query I rowsort
SELECT 57 + - + 81
----
-24

query I rowsort
SELECT ALL 68 * + 31 + + 68
----
2176

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-941
SELECT 37 * 93 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-941
SELECT 37 * 93 + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + 29 * + + 86
----
2494

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-943
SELECT ( + 3 ) + 28 col1, CAST( 40 AS SIGNED ) * - 99
----
31
-3960

skipif mysql # not compatible
query II rowsort label-943
SELECT ( + 3 ) + 28 col1, CAST ( 40 AS INTEGER ) * - 99
----
31
-3960

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT + - 22 * + - 0 * - - 29 * - COUNT( * ) + + - 52 col1
----
-52

skipif mysql # not compatible
query I rowsort label-946
SELECT + - 22 * + - 0 * - - 29 * - COUNT ( * ) + + - 52 col1
----
-52

query I rowsort
SELECT DISTINCT - 52 - + 41 * + 15 + - + 0 * - 62
----
-667

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

skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT + 47 / COUNT ( * )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-949
SELECT + CAST( NULL AS SIGNED ) + 0, 63 col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-949
SELECT + CAST ( NULL AS INTEGER ) + 0, 63 col2
----
NULL
63

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-952
SELECT CASE + - COALESCE ( 52, 21 * - 9 ) WHEN 51 - - + 8 + 83 * - CAST( NULL AS SIGNED ) THEN + 79 * + 70 + - 13 ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-952
SELECT CASE + - COALESCE ( 52, 21 * - 9 ) WHEN 51 - - + 8 + 83 * - CAST ( NULL AS INTEGER ) THEN + 79 * + 70 + - 13 ELSE - COUNT ( * ) END
----
-1

query I rowsort
SELECT + 76 + + 14 + 2 * + 26 * + + 62 + 30
----
3344

query I rowsort
SELECT ALL + 48 * + 36 AS col2
----
1728

onlyif mysql # aggregate syntax: 
query II rowsort label-955
SELECT DISTINCT - 88 AS col0, COUNT( * ) + - 86
----
-88
-85

skipif mysql # not compatible
query II rowsort label-955
SELECT DISTINCT - 88 AS col0, COUNT ( * ) + - 86
----
-88
-85

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

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL - 75 + COUNT ( * ) + - 87 col2
----
-161

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT DISTINCT COUNT( * ), 91 * + - 19 / 68 + + 52 + CASE - 8 WHEN - - 54 + + 95 * COUNT( * ) THEN - 86 ELSE NULL END col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-957
SELECT DISTINCT COUNT ( * ), 91 * + - 19 / 68 + + 52 + CASE - 8 WHEN - - 54 + + 95 * COUNT ( * ) THEN - 86 ELSE NULL END col0
----
1
NULL

query I rowsort
SELECT 81 + + + 49 AS col1
----
130

query I rowsort
SELECT ALL - 76 + 11 * 2 + - 63
----
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-960
SELECT ALL MAX( ALL + ( - 58 ) ) AS col0, COALESCE ( 93, - 67 )
----
-58
93

skipif mysql # not compatible
query II rowsort label-960
SELECT ALL MAX ( ALL + ( - 58 ) ) AS col0, COALESCE ( 93, - 67 )
----
-58
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-961
SELECT 98 AS col2, 83 * + CAST( NULL AS SIGNED ) * + + 59
----
98
NULL

skipif mysql # not compatible
query II rowsort label-961
SELECT 98 AS col2, 83 * + CAST ( NULL AS INTEGER ) * + + 59
----
98
NULL

query I rowsort
SELECT 62 * + 66
----
4092

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT COUNT( 56 ) * ( - + 54 ) * + 98
----
-5292

skipif mysql # not compatible
query I rowsort label-963
SELECT COUNT ( 56 ) * ( - + 54 ) * + 98
----
-5292

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-965
SELECT DISTINCT + COALESCE ( - - 35, + COUNT( * ) ) + - 5 DIV + 3 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT + COALESCE ( - - 35, + COUNT ( * ) ) + - 5 / + 3 AS col2
----
34

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

skipif mysql # not compatible
query I rowsort label-966
SELECT - 63 * - COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-967
SELECT - 57 AS col0, ( - MAX( DISTINCT - 48 ) ) col1
----
-57
48

skipif mysql # not compatible
query II rowsort label-967
SELECT - 57 AS col0, ( - MAX ( DISTINCT - 48 ) ) col1
----
-57
48

query I rowsort
SELECT DISTINCT 92 * - + 9 * 93 col1
----
-77004

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT DISTINCT MAX( ALL - 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-969
SELECT DISTINCT MAX ( ALL - 41 ) AS col0
----
-41

query I rowsort
SELECT DISTINCT - 8 * 56 + + 99 * - COALESCE ( - 53, + 51 )
----
4799

query I rowsort
SELECT ALL + 50 - - 3 AS col2
----
53

query I rowsort
SELECT - - 44 * - 44 AS col1
----
-1936

query I rowsort
SELECT - + 70 - - 67 AS col1
----
-3

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

query I rowsort
SELECT - - 95 - 34 AS col0
----
61

query I rowsort
SELECT - ( + + 46 ) * + 33 * ( - + 70 )
----
106260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-977
SELECT ALL - - 98 * + 98 * + - 85 * + 71 - - CAST( - NULLIF ( + 97, 61 ) AS SIGNED ) + 31 + - + 95 + - 25 + + 78 * - + ( 2 ) * - 83 + COUNT( * ) col0
----
-57947377

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL - - 98 * + 98 * + - 85 * + 71 - - CAST ( - NULLIF ( + 97, 61 ) AS INTEGER ) + 31 + - + 95 + - 25 + + 78 * - + ( 2 ) * - 83 + COUNT ( * ) col0
----
-57947377

query II rowsort
SELECT ALL + 72, + 7 AS col0
----
72
7

query II rowsort
SELECT + 71 AS col1, + 73 AS col0
----
71
73

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL + 18 * + NULLIF ( - + COUNT( * ), 95 )
----
-18

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL + 18 * + NULLIF ( - + COUNT ( * ), 95 )
----
-18

query I rowsort
SELECT + - 54 - + 63
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT + MIN( ALL - 61 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-982
SELECT + MIN ( ALL - 61 ) AS col2
----
-61

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

onlyif mysql # DIV for integer division: 
query I rowsort label-984
SELECT ALL + 73 DIV + 27 + + + 98
----
100

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL + 73 / + 27 + + + 98
----
100

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

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

query I rowsort
SELECT + - 62 * + 41 + 30 AS col2
----
-2512

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT - CASE 70 WHEN - CASE - COUNT( * ) WHEN - 53 THEN - 80 + + COUNT( ALL + - 93 ) + 88 * - 78 + + COUNT( * ) - - COUNT( * ) * - COUNT( * ) * MIN( ALL ( - 59 ) ) ELSE NULL END THEN 94 END / - ( 56 ) + ( 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-987
SELECT - CASE 70 WHEN - CASE - COUNT ( * ) WHEN - 53 THEN - 80 + + COUNT ( ALL + - 93 ) + 88 * - 78 + + COUNT ( * ) - - COUNT ( * ) * - COUNT ( * ) * MIN ( ALL ( - 59 ) ) ELSE NULL END THEN 94 END / - ( 56 ) + ( 15 )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-989
SELECT + + COUNT( * ) + - + 18 + + + CAST( NULL AS SIGNED ) / 24 + - - 66 * 57 - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-989
SELECT + + COUNT ( * ) + - + 18 + + + CAST ( NULL AS INTEGER ) / 24 + - - 66 * 57 - + 92
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT DISTINCT - NULLIF ( + - COUNT( * ), + - 58 ) * 5 + + - MAX( + - 74 )
----
79

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT - NULLIF ( + - COUNT ( * ), + - 58 ) * 5 + + - MAX ( + - 74 )
----
79

query I rowsort
SELECT DISTINCT 83 * - 6 col2
----
-498

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-993
SELECT ALL - SUM( ALL - 25 ) * 77 * + COUNT( - - ( + CAST( NULL AS SIGNED ) ) ) + ( COALESCE ( - 31, - 44, - 46 DIV - CAST( NULL AS SIGNED ) + + NULLIF ( + 66, - NULLIF ( + 80, 5 * - COUNT( * ) ) * COUNT( * ) ) ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL - SUM ( ALL - 25 ) * 77 * + COUNT ( - - ( + CAST ( NULL AS INTEGER ) ) ) + ( COALESCE ( - 31, - 44, - 46 / - CAST ( NULL AS INTEGER ) + + NULLIF ( + 66, - NULLIF ( + 80, 5 * - COUNT ( * ) ) * COUNT ( * ) ) ) ) AS col2
----
-31

query II rowsort
SELECT + ( 27 ) AS col0, + 60
----
27
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT ALL 92 * - 9 * + 92 + + 6 + - 88 + - CASE - 14 WHEN - 20 * 18 / - 6 + 22 + - - 77 + + COUNT( * ) * + + 51 THEN COALESCE ( - 62, - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL 92 * - 9 * + 92 + + 6 + - 88 + - CASE - 14 WHEN - 20 * 18 / - 6 + 22 + - - 77 + + COUNT ( * ) * + + 51 THEN COALESCE ( - 62, - COUNT ( * ) ) END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL + NULLIF ( + + 20, COUNT ( * ) )
----
20

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1000
SELECT + 93 + + 53 + CASE + SUM( ALL 63 ) WHEN + 83 * - + 53 THEN + + COUNT( * ) - + COUNT( * ) END * - CAST( NULL AS SIGNED ) * + + 54 + - 51 * + MAX( 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT + 93 + + 53 + CASE + SUM ( ALL 63 ) WHEN + 83 * - + 53 THEN + + COUNT ( * ) - + COUNT ( * ) END * - CAST ( NULL AS INTEGER ) * + + 54 + - 51 * + MAX ( 4 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT MIN( ALL 73 )
----
73

skipif mysql # not compatible
query I rowsort label-1001
SELECT MIN ( ALL 73 )
----
73

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

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

query I rowsort
SELECT ALL + 90 * 32 col0
----
2880

query I rowsort
SELECT DISTINCT ( - 66 ) AS col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1005
SELECT ALL 21 - ( - CAST( 61 AS SIGNED ) ) + 85 * + COALESCE ( 87, 73 - 77 ) * + + 14 + + 91 col0
----
103703

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL 21 - ( - CAST ( 61 AS INTEGER ) ) + 85 * + COALESCE ( 87, 73 - 77 ) * + + 14 + + 91 col0
----
103703

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1007
SELECT - 92 + - + 36 + + + COALESCE ( + + 85, + - COUNT( * ) - 77, + MAX( + - 32 ) ) + + 32 DIV 40 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1007
SELECT - 92 + - + 36 + + + COALESCE ( + + 85, + - COUNT ( * ) - 77, + MAX ( + - 32 ) ) + + 32 / 40 AS col1
----
-43

query I rowsort
SELECT + 3 + - 74 - + 12 - 5 col0
----
-88

query I rowsort
SELECT - 9 * 54 * + - 13 * - - 39
----
246402

query I rowsort
SELECT DISTINCT COALESCE ( + 23, 21, 60 ) AS col0
----
23

query I rowsort
SELECT - 89 - 25 AS col2
----
-114

query I rowsort
SELECT - - 7 * - + 89 * - 84
----
52332

query II rowsort
SELECT - 3 - + 37 AS col2, + 81 + 57 + + 45 + + 92 * + + 15
----
-40
1563

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT ALL CASE 68 WHEN + 70 THEN - + 48 - ( - MAX( + - 23 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL CASE 68 WHEN + 70 THEN - + 48 - ( - MAX ( + - 23 ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1015
SELECT - - 58 + CAST( + CASE 11 WHEN + + COUNT( * ) - + - 37 THEN NULL WHEN - 91 THEN 48 END AS SIGNED ) + - 95 + - 40, + 72 AS col0
----
NULL
72

skipif mysql # not compatible
query II rowsort label-1015
SELECT - - 58 + CAST ( + CASE 11 WHEN + + COUNT ( * ) - + - 37 THEN NULL WHEN - 91 THEN 48 END AS INTEGER ) + - 95 + - 40, + 72 AS col0
----
NULL
72

query I rowsort
SELECT - 78 * - 95
----
7410

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1019
SELECT ALL - + 70 DIV - 16 + 94 + 91 + - 63 * 54 AS col2
----
-3213

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL - + 70 / - 16 + 94 + 91 + - 63 * 54 AS col2
----
-3213

query I rowsort
SELECT - - NULLIF ( + CASE - 56 WHEN - 57 THEN + + 12 END, 78 / 73 ) + + 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1021
SELECT DISTINCT + 70 DIV COUNT( * ) + ( + ( - 87 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT + 70 / COUNT ( * ) + ( + ( - 87 ) )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT + COALESCE ( + 39, COUNT( * ) )
----
39

skipif mysql # not compatible
query I rowsort label-1022
SELECT + COALESCE ( + 39, COUNT ( * ) )
----
39

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1024
SELECT DISTINCT 51 DIV + COUNT( DISTINCT + 22 ) + - ( + 92 ) AS col1, COALESCE ( + 90, CAST( - 29 AS SIGNED ) - + + ( - 17 ) DIV ( + 4 ) ) * - 37 + + 84 AS col0
----
-41
-3246

skipif mysql # not compatible
query II rowsort label-1024
SELECT DISTINCT 51 / + COUNT ( DISTINCT + 22 ) + - ( + 92 ) AS col1, COALESCE ( + 90, CAST ( - 29 AS INTEGER ) - + + ( - 17 ) / ( + 4 ) ) * - 37 + + 84 AS col0
----
-41
-3246

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1025
SELECT DISTINCT CAST( - 8 AS SIGNED ) DIV - 43 - ( - + 14 ) * - 99 + 56 * + 94 col2, - 16 + + 28 AS col1
----
3878
12

skipif mysql # not compatible
query II rowsort label-1025
SELECT DISTINCT CAST ( - 8 AS INTEGER ) / - 43 - ( - + 14 ) * - 99 + 56 * + 94 col2, - 16 + + 28 AS col1
----
3878
12

query I rowsort
SELECT + 88 * + + 2 AS col0
----
176

query I rowsort
SELECT + 6 + - 55
----
-49

query I rowsort
SELECT + 44 * - 8 + 64 AS col1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT 0 * - NULLIF ( + COUNT( * ), + ( 48 ) * - 56 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1029
SELECT 0 * - NULLIF ( + COUNT ( * ), + ( 48 ) * - 56 ) AS col2
----
0

query I rowsort
SELECT ALL 64 * - - 93 AS col1
----
5952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1031
SELECT CAST( NULL AS SIGNED ) + CASE - 65 WHEN + 29 THEN NULL WHEN 27 * - 51 * + 70 + - + 59 THEN NULL WHEN 47 * + 76 + + 5 THEN + 10 ELSE 73 / 46 END + - 41 / + 81 * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1031
SELECT CAST ( NULL AS INTEGER ) + CASE - 65 WHEN + 29 THEN NULL WHEN 27 * - 51 * + 70 + - + 59 THEN NULL WHEN 47 * + 76 + + 5 THEN + 10 ELSE 73 / 46 END + - 41 / + 81 * + 39
----
NULL

query I rowsort
SELECT ALL 28 * + 66 * - 67 AS col0
----
-123816

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT DISTINCT 87 * 19 * - COUNT( * ) * + 22
----
-36366

skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT 87 * 19 * - COUNT ( * ) * + 22
----
-36366

query I rowsort
SELECT 6 + + 80 + + 11 col0
----
97

query I rowsort
SELECT ALL 22 - - - 3 - - - ( - 74 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT COALESCE ( + CASE + 39 WHEN + ( - 71 ) * COUNT( * ) THEN ( 9 ) WHEN + - 64 + - 42 THEN NULL ELSE + + COUNT( * ) END, - 28, + 54 ) + + + 67 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1036
SELECT COALESCE ( + CASE + 39 WHEN + ( - 71 ) * COUNT ( * ) THEN ( 9 ) WHEN + - 64 + - 42 THEN NULL ELSE + + COUNT ( * ) END, - 28, + 54 ) + + + 67 AS col2
----
68

query I rowsort
SELECT 90 * + 96
----
8640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1038
SELECT ALL 11 col0, + COALESCE ( + + 68, + 52 ) - - + 67 * + COALESCE ( - 99, - - CAST( NULL AS SIGNED ), + + 60 + - - MIN( + 43 ) * - + COUNT( * ) ) AS col1
----
11
-6565

skipif mysql # not compatible
query II rowsort label-1038
SELECT ALL 11 col0, + COALESCE ( + + 68, + 52 ) - - + 67 * + COALESCE ( - 99, - - CAST ( NULL AS INTEGER ), + + 60 + - - MIN ( + 43 ) * - + COUNT ( * ) ) AS col1
----
11
-6565

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

skipif mysql # not compatible
query I rowsort label-1039
SELECT 32 + - - 17 + ( - + COUNT ( * ) ) AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1040
SELECT NULLIF ( - + 91, - 25 * - COUNT( * ) + + 88 ) AS col0, 15 * - + CAST( 45 AS SIGNED )
----
-91
-675

skipif mysql # not compatible
query II rowsort label-1040
SELECT NULLIF ( - + 91, - 25 * - COUNT ( * ) + + 88 ) AS col0, 15 * - + CAST ( 45 AS INTEGER )
----
-91
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT ALL - CASE - - 71 WHEN - 3 THEN + MAX( - 84 ) ELSE - + ( + ( + 69 ) ) END col2
----
69

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL - CASE - - 71 WHEN - 3 THEN + MAX ( - 84 ) ELSE - + ( + ( + 69 ) ) END col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1042
SELECT ALL - 67 * - COALESCE ( - - 29, 31 DIV - + COUNT( * ) ) AS col0, - 16 * - 43 AS col0
----
1943
688

skipif mysql # not compatible
query II rowsort label-1042
SELECT ALL - 67 * - COALESCE ( - - 29, 31 / - + COUNT ( * ) ) AS col0, - 16 * - 43 AS col0
----
1943
688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1043
SELECT DISTINCT NULLIF ( - CAST( - 28 AS SIGNED ), 98 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT NULLIF ( - CAST ( - 28 AS INTEGER ), 98 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT DISTINCT COUNT( * ) * - 79 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT COUNT ( * ) * - 79 AS col1
----
-79

query I rowsort
SELECT ALL - 18 + + 75 AS col2
----
57

query II rowsort
SELECT DISTINCT + 29 AS col1, 23 + + + 17 * - - 90
----
29
1553

query II rowsort
SELECT DISTINCT + NULLIF ( + 89, - - 21 ) AS col2, + 67 * + 69 - 86
----
89
4537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1048
SELECT ALL + COUNT( * ) + + 91 + SUM( DISTINCT + NULLIF ( 6, - + 66 ) ) DIV - + 35
----
92

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL + COUNT ( * ) + + 91 + SUM ( DISTINCT + NULLIF ( 6, - + 66 ) ) / - + 35
----
92

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

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

query I rowsort
SELECT 83 - + 16
----
67

query I rowsort
SELECT ALL - + 73 col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1052
SELECT + 82 DIV + ( 26 ) + - - SUM( ALL - 19 ) * - 28 + 10 * 78 + 22 + + + 70
----
1407

skipif mysql # not compatible
query I rowsort label-1052
SELECT + 82 / + ( 26 ) + - - SUM ( ALL - 19 ) * - 28 + 10 * 78 + 22 + + + 70
----
1407

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1054
SELECT - CASE + 23 WHEN - 8 / - CAST( NULL AS SIGNED ) THEN - 74 * + 82 * + - 86 * - ( + 9 ) + - 4 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1054
SELECT - CASE + 23 WHEN - 8 / - CAST ( NULL AS INTEGER ) THEN - 74 * + 82 * + - 86 * - ( + 9 ) + - 4 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + CASE - 44 WHEN + 53 THEN NULL ELSE - 38 END + + 86
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT DISTINCT + 63 + + COUNT( * ) + + 58 + 80 + - 20 * - + 39 + + 85 * + + 60 AS col1
----
6082

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT + 63 + + COUNT ( * ) + + 58 + 80 + - 20 * - + 39 + + 85 * + + 60 AS col1
----
6082

query II rowsort
SELECT ALL - 93, - 63 AS col1
----
-93
-63

query I rowsort
SELECT - 78 * + 29 AS col2
----
-2262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1059
SELECT DISTINCT - + CASE + 5 WHEN - COUNT( * ) * + + CASE - COUNT( * ) WHEN + 28 * + 52 + 84 THEN + CAST( - 53 AS SIGNED ) WHEN - + 0 THEN NULL END THEN 89 END + 35 + - 58 + - - CAST( NULL AS DECIMAL ) - 89 * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT - + CASE + 5 WHEN - COUNT ( * ) * + + CASE - COUNT ( * ) WHEN + 28 * + 52 + 84 THEN + CAST ( - 53 AS INTEGER ) WHEN - + 0 THEN NULL END THEN 89 END + 35 + - 58 + - - CAST ( NULL AS REAL ) - 89 * - 90
----
NULL

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

query II rowsort
SELECT + 21 col1, 95 col2
----
21
95

query II rowsort
SELECT 41, 10 AS col0
----
41
10

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

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

query I rowsort
SELECT ALL + 62 - + + 35 + - 20
----
7

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

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

query II rowsort
SELECT + 79 AS col2, 28
----
79
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT - ( + 80 ) * COUNT( * ) + - + 35 AS col2
----
-115

skipif mysql # not compatible
query I rowsort label-1067
SELECT - ( + 80 ) * COUNT ( * ) + - + 35 AS col2
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT DISTINCT + COUNT( * ) - + + COUNT( * ) + + + 37 * - - 11
----
407

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT + COUNT ( * ) - + + COUNT ( * ) + + + 37 * - - 11
----
407

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT DISTINCT COUNT( * ) * 84 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT COUNT ( * ) * 84 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT DISTINCT - NULLIF ( + ( - - CASE - COUNT( * ) WHEN - ( - 79 ) * - + 65 * - - CASE + ( 56 ) WHEN + 70 + - 27 THEN 36 * - 57 WHEN - 27 THEN NULL ELSE NULL END THEN - 60 * 58 END ), ( - 51 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT - NULLIF ( + ( - - CASE - COUNT ( * ) WHEN - ( - 79 ) * - + 65 * - - CASE + ( 56 ) WHEN + 70 + - 27 THEN 36 * - 57 WHEN - 27 THEN NULL ELSE NULL END THEN - 60 * 58 END ), ( - 51 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1072
SELECT 87 + - 40 + + 63 + - ( + 84 ) + 95 + - 10 + - 70 * - - CAST( + COUNT( * ) AS SIGNED ) col1
----
41

skipif mysql # not compatible
query I rowsort label-1072
SELECT 87 + - 40 + + 63 + - ( + 84 ) + 95 + - 10 + - 70 * - - CAST ( + COUNT ( * ) AS INTEGER ) col1
----
41

query I rowsort
SELECT 90 * - 0 * 39 AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1075
SELECT ALL MIN( ALL - + 22 ) * 10 * + - NULLIF ( - 77, CAST( - 81 AS SIGNED ) * + - 41 ) * - - 78
----
-1321320

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL MIN ( ALL - + 22 ) * 10 * + - NULLIF ( - 77, CAST ( - 81 AS INTEGER ) * + - 41 ) * - - 78
----
-1321320

query I rowsort
SELECT 96 + + + 29
----
125

query II rowsort
SELECT 70 AS col2, - 74
----
70
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL NULLIF ( - COUNT( * ), - COUNT( * ) ) * + + COUNT( * ) / - + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL NULLIF ( - COUNT ( * ), - COUNT ( * ) ) * + + COUNT ( * ) / - + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT COUNT( * ) + + + 34 col1
----
35

skipif mysql # not compatible
query I rowsort label-1079
SELECT COUNT ( * ) + + + 34 col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT ALL + - 47 * 39 + - MAX( - 12 ) + - + 63 col1
----
-1884

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL + - 47 * 39 + - MAX ( - 12 ) + - + 63 col1
----
-1884

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

skipif mysql # not compatible
query II rowsort label-1081
SELECT COUNT ( * ) AS col2, MAX ( 77 )
----
1
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1082
SELECT ALL 54 + CAST( NULL AS SIGNED ) + 22 - + - COUNT( + 73 ) * - - 53 * - MIN( DISTINCT 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1082
SELECT ALL 54 + CAST ( NULL AS INTEGER ) + 22 - + - COUNT ( + 73 ) * - - 53 * - MIN ( DISTINCT 75 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1083
SELECT 80 - 60 + - + 57 + + MIN( DISTINCT + 17 ) * - - CASE + + 68 WHEN - 96 + CAST( NULL AS SIGNED ) THEN + - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1083
SELECT 80 - 60 + - + 57 + + MIN ( DISTINCT + 17 ) * - - CASE + + 68 WHEN - 96 + CAST ( NULL AS INTEGER ) THEN + - 38 END
----
NULL

query I rowsort
SELECT ALL 94 * - 45 * + 80
----
-338400

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT ALL ( + + 53 ) + + + ( + 8 ) * + COUNT( 45 ) * + 45 * - + 50
----
-17947

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL ( + + 53 ) + + + ( + 8 ) * + COUNT ( 45 ) * + 45 * - + 50
----
-17947

query I rowsort
SELECT - 38 + + - 66
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT ALL - 30 DIV 12 * - + ( + + 4 )
----
8

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL - 30 / 12 * - + ( + + 4 )
----
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT COUNT( DISTINCT + ( - 63 ) ) + 36
----
37

skipif mysql # not compatible
query I rowsort label-1089
SELECT COUNT ( DISTINCT + ( - 63 ) ) + 36
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT - + COALESCE ( + - 75, - 21 DIV - 35 ) col1
----
75

skipif mysql # not compatible
query I rowsort label-1090
SELECT - + COALESCE ( + - 75, - 21 / - 35 ) col1
----
75

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1092
SELECT + 4 + + CAST( COUNT( * ) AS SIGNED ) * 14
----
18

skipif mysql # not compatible
query I rowsort label-1092
SELECT + 4 + + CAST ( COUNT ( * ) AS INTEGER ) * 14
----
18

query I rowsort
SELECT DISTINCT 52 + + + 78
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT 98 + - MIN( + 39 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1094
SELECT 98 + - MIN ( + 39 ) AS col0
----
59

query I rowsort
SELECT ALL - 25 + + + 73 + 9 * - 85
----
-717

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

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

query I rowsort
SELECT ALL 23 * 84 + - 73 AS col1
----
1859

query II rowsort
SELECT + ( + 18 ) col0, + 38
----
18
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1099
SELECT DISTINCT - CAST( - - 54 AS SIGNED ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT - CAST ( - - 54 AS INTEGER ) col2
----
-54

query I rowsort
SELECT + - 79 * - 75
----
5925

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT + CASE - ( + - 57 ) WHEN - COUNT( * ) * 94 + + 50 + + MIN( - 74 ) THEN NULL ELSE + COUNT( ALL 68 ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1101
SELECT + CASE - ( + - 57 ) WHEN - COUNT ( * ) * 94 + + 50 + + MIN ( - 74 ) THEN NULL ELSE + COUNT ( ALL 68 ) END AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1102
SELECT ALL + NULLIF ( - 8, + CASE 8 WHEN + + 70 * + MAX( - 67 ) + + 7 + 86 + 80 - - - 29 + - + SUM( ALL - + 15 ) THEN NULL WHEN + CAST( 25 AS SIGNED ) THEN + - 28 END ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL + NULLIF ( - 8, + CASE 8 WHEN + + 70 * + MAX ( - 67 ) + + 7 + 86 + 80 - - - 29 + - + SUM ( ALL - + 15 ) THEN NULL WHEN + CAST ( 25 AS INTEGER ) THEN + - 28 END ) AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1103
SELECT + ( - - COUNT( * ) ) * + 1 + - 63 + 35 * + CASE 15 WHEN - 90 THEN + 93 + + 26 / + 60 END * - CAST( NULL AS DECIMAL ) AS col0, 57
----
NULL
57

skipif mysql # not compatible
query II rowsort label-1103
SELECT + ( - - COUNT ( * ) ) * + 1 + - 63 + 35 * + CASE 15 WHEN - 90 THEN + 93 + + 26 / + 60 END * - CAST ( NULL AS REAL ) AS col0, 57
----
NULL
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1104
SELECT NULLIF ( - CASE + + 52 WHEN - 27 * 59 THEN - CASE + 66 WHEN + ( COALESCE ( - 0, + 63 * 16 ) ) THEN + 28 END * + 29 * - - 31 + + - 6 + - - 25 - - 77 * - AVG ( + 81 * 7 ) + CAST( NULL AS SIGNED ) WHEN 83 THEN 48 ELSE - ( ( - CASE + 33 WHEN 95 THEN 15 ELSE NULL END ) ) END, 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1104
SELECT NULLIF ( - CASE + + 52 WHEN - 27 * 59 THEN - CASE + 66 WHEN + ( COALESCE ( - 0, + 63 * 16 ) ) THEN + 28 END * + 29 * - - 31 + + - 6 + - - 25 - - 77 * - AVG ( + 81 * 7 ) + CAST ( NULL AS INTEGER ) WHEN 83 THEN 48 ELSE - ( ( - CASE + 33 WHEN 95 THEN 15 ELSE NULL END ) ) END, 45 ) AS col0
----
NULL

query I rowsort
SELECT ALL + ( - 73 ) * - - 15 AS col2
----
-1095

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

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1107
SELECT - 16 + - 71 + + COUNT( ALL 17 ) * - SUM( 16 ) * - CAST( NULL AS DECIMAL ) + - 45 + 69 * ( 16 ) + - 54 + - - 34 / + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-1107
SELECT - 16 + - 71 + + COUNT ( ALL 17 ) * - SUM ( 16 ) * - CAST ( NULL AS REAL ) + - 45 + 69 * ( 16 ) + - 54 + - - 34 / + 47
----
NULL

query I rowsort
SELECT ALL - ( - - 22 ) * - 90 AS col1
----
1980

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

skipif mysql # not compatible
query I rowsort label-1109
SELECT - 69 / + 49
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ALL + COALESCE ( - - 47, - + 54 ) * - 45 + - + 80 + - 83 * COUNT( * )
----
-2278

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL + COALESCE ( - - 47, - + 54 ) * - 45 + - + 80 + - 83 * COUNT ( * )
----
-2278

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT - 80 * + ( - 65 ) * COUNT( * )
----
5200

skipif mysql # not compatible
query I rowsort label-1111
SELECT - 80 * + ( - 65 ) * COUNT ( * )
----
5200

query II rowsort
SELECT - 45 * + 52, 10 AS col2
----
-2340
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1113
SELECT - COALESCE ( + ( - + 84 ), + 77 + + COALESCE ( 16, 73 ) + 5, + - CAST( + - 39 AS SIGNED ) * + 83 * + 96 * CAST( NULL AS SIGNED ) ) * + 62 + + 27 * - 20 AS col2
----
4668

skipif mysql # not compatible
query I rowsort label-1113
SELECT - COALESCE ( + ( - + 84 ), + 77 + + COALESCE ( 16, 73 ) + 5, + - CAST ( + - 39 AS INTEGER ) * + 83 * + 96 * CAST ( NULL AS INTEGER ) ) * + 62 + + 27 * - 20 AS col2
----
4668

query I rowsort
SELECT DISTINCT + 17 * - 58 + 50 AS col0
----
-936

onlyif mysql # DIV for integer division: 
query I rowsort label-1115
SELECT ALL + - 11 + - 98 DIV 3 + + - 51 * - 48 AS col0
----
2405

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL + - 11 + - 98 / 3 + + - 51 * - 48 AS col0
----
2405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1116
SELECT - 3 * + 10 * - CASE - 63 WHEN CAST( + 57 AS SIGNED ) THEN NULL WHEN + COUNT( - 28 ) + 91 THEN + 51 END * - 32 * + + COUNT( * ) - + 87 + + CAST( + - 2 AS SIGNED ) * + 57 * + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1116
SELECT - 3 * + 10 * - CASE - 63 WHEN CAST ( + 57 AS INTEGER ) THEN NULL WHEN + COUNT ( - 28 ) + 91 THEN + 51 END * - 32 * + + COUNT ( * ) - + 87 + + CAST ( + - 2 AS INTEGER ) * + 57 * + 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1117
SELECT - - 70 + - CAST( NULL AS SIGNED ) AS col2, 20 + + 52 + - - COUNT( * ) * + + 45 * + COUNT( * ) col2
----
NULL
117

skipif mysql # not compatible
query II rowsort label-1117
SELECT - - 70 + - CAST ( NULL AS INTEGER ) AS col2, 20 + + 52 + - - COUNT ( * ) * + + 45 * + COUNT ( * ) col2
----
NULL
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ALL + ( + + 10 ) * - - 17 + + COUNT( * ) col0
----
171

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL + ( + + 10 ) * - - 17 + + COUNT ( * ) col0
----
171

query I rowsort
SELECT + + 96 * - 80 AS col1
----
-7680

query I rowsort
SELECT ALL + 90 + + 64
----
154

query I rowsort
SELECT - - 84 * + 38
----
3192

onlyif mysql # aggregate syntax: 
query II rowsort label-1122
SELECT - + MIN( 9 ) AS col2, + 88 AS col2
----
-9
88

skipif mysql # not compatible
query II rowsort label-1122
SELECT - + MIN ( 9 ) AS col2, + 88 AS col2
----
-9
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT ALL - - 32 + 99 + COUNT( * ) * 76 AS col2
----
207

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL - - 32 + 99 + COUNT ( * ) * 76 AS col2
----
207

query I rowsort
SELECT DISTINCT + - 69 + - + 88
----
-157

query II rowsort
SELECT + 71 + + 80 AS col2, + 8
----
151
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1126
SELECT ALL MAX( + + 5 ) AS col2, 95 + 76 AS col0
----
5
171

skipif mysql # not compatible
query II rowsort label-1126
SELECT ALL MAX ( + + 5 ) AS col2, 95 + 76 AS col0
----
5
171

query I rowsort
SELECT DISTINCT + 7 * - 44
----
-308

onlyif mysql # DIV for integer division: 
query I rowsort label-1128
SELECT ALL 68 - - 97 + 85 + - + 0 + 65 * - 16 + + 28 DIV 61 DIV - + 94 AS col0
----
-790

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL 68 - - 97 + 85 + - + 0 + 65 * - 16 + + 28 / 61 / - + 94 AS col0
----
-790

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT + - CASE - 22 WHEN - COUNT( * ) THEN + COUNT( * ) * - 51 + + 4 WHEN - COUNT( * ) THEN - 13 + + 68 END * + + 18 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1130
SELECT + - CASE - 22 WHEN - COUNT ( * ) THEN + COUNT ( * ) * - 51 + + 4 WHEN - COUNT ( * ) THEN - 13 + + 68 END * + + 18 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1131
SELECT - NULLIF ( + COALESCE ( + MIN( + CAST( NULL AS SIGNED ) ), - CAST( 75 AS SIGNED ) ), - NULLIF ( + 13, + 69 ) )
----
75

skipif mysql # not compatible
query I rowsort label-1131
SELECT - NULLIF ( + COALESCE ( + MIN ( + CAST ( NULL AS INTEGER ) ), - CAST ( 75 AS INTEGER ) ), - NULLIF ( + 13, + 69 ) )
----
75

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

query II rowsort
SELECT ALL + 14 - - 87 AS col2, NULLIF ( - 26, 73 ) AS col2
----
101
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1134
SELECT - + 8 DIV 38 AS col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-1134
SELECT - + 8 / 38 AS col2, COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT + 87 * MAX( ALL - 34 ) AS col1
----
-2958

skipif mysql # not compatible
query I rowsort label-1135
SELECT + 87 * MAX ( ALL - 34 ) AS col1
----
-2958

query I rowsort
SELECT + 29 + - 20 AS col0
----
9

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

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

query II rowsort
SELECT + ( + + 40 ) * + + 20 AS col1, ( 42 )
----
800
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT ALL COALESCE ( - 52, MAX( DISTINCT - 9 ) ) * - 59
----
3068

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL COALESCE ( - 52, MAX ( DISTINCT - 9 ) ) * - 59
----
3068

query II rowsort
SELECT ALL + 65 AS col2, 4
----
65
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT + 75 - + - COUNT( - 71 )
----
76

skipif mysql # not compatible
query I rowsort label-1141
SELECT + 75 - + - COUNT ( - 71 )
----
76

query I rowsort
SELECT + 93 * + + 26 AS col1
----
2418

query II rowsort
SELECT ALL + 55 AS col0, - ( - 92 ) - + 50 AS col1
----
55
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT ALL + CASE - - 25 WHEN 57 THEN NULL WHEN MAX( ALL + 53 ) + - 35 THEN 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL + CASE - - 25 WHEN 57 THEN NULL WHEN MAX ( ALL + 53 ) + - 35 THEN 61 END
----
NULL

query I rowsort
SELECT + 57 * - + 56 AS col1
----
-3192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1147
SELECT - MIN( + CAST( - 35 AS SIGNED ) ) * + + ( + 48 ) AS col1
----
1680

skipif mysql # not compatible
query I rowsort label-1147
SELECT - MIN ( + CAST ( - 35 AS INTEGER ) ) * + + ( + 48 ) AS col1
----
1680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1148
SELECT - 12 DIV MAX( + - 98 ) DIV + COUNT( * ) - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1148
SELECT - 12 / MAX ( + - 98 ) / + COUNT ( * ) - - COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1149
SELECT DISTINCT + 73 * - 22 + CASE - + COALESCE ( - 86, - CAST( NULL AS DECIMAL ) * - MIN( 93 ), + CAST( + 51 AS SIGNED ) - + 27 * + 15 * - - 46 ) WHEN - COUNT( * ) + - 77 THEN NULL WHEN - 72 THEN - COUNT( * ) / + 99 * 56 + 48 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1149
SELECT DISTINCT + 73 * - 22 + CASE - + COALESCE ( - 86, - CAST ( NULL AS REAL ) * - MIN ( 93 ), + CAST ( + 51 AS INTEGER ) - + 27 * + 15 * - - 46 ) WHEN - COUNT ( * ) + - 77 THEN NULL WHEN - 72 THEN - COUNT ( * ) / + 99 * 56 + 48 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 88 * + 48 AS col0
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT ALL + - 93 * - + 14 * - COUNT( * ) + - + 63 AS col0
----
-1365

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL + - 93 * - + 14 * - COUNT ( * ) + - + 63 AS col0
----
-1365

query I rowsort
SELECT + 72 + - 48 AS col2
----
24

query II rowsort
SELECT + 35 AS col2, 3 * - + 7 AS col2
----
35
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT + CASE - 44 WHEN + + 81 + + 90 THEN NULL WHEN + 31 * 51 + + MIN( ALL + 12 ) THEN COUNT( * ) * + 64 - + 19 ELSE - + 80 END * - + 52 + 48 * + 70 - + 61 AS col1
----
7459

skipif mysql # not compatible
query I rowsort label-1154
SELECT + CASE - 44 WHEN + + 81 + + 90 THEN NULL WHEN + 31 * 51 + + MIN ( ALL + 12 ) THEN COUNT ( * ) * + 64 - + 19 ELSE - + 80 END * - + 52 + 48 * + 70 - + 61 AS col1
----
7459

query I rowsort
SELECT - 0 + 70
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1156
SELECT ALL AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * - CASE + COUNT( * ) WHEN - 74 + - 67 THEN - - 85 WHEN + 35 THEN NULL ELSE NULL END - + - 54 + - 45 + + - 45 * + 22 * - + 14 * + 79 * + 7 * - + COUNT( DISTINCT - 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - CASE + COUNT ( * ) WHEN - 74 + - 67 THEN - - 85 WHEN + 35 THEN NULL ELSE NULL END - + - 54 + - 45 + + - 45 * + 22 * - + 14 * + 79 * + 7 * - + COUNT ( DISTINCT - 40 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1157
SELECT - + 73 * + + COUNT ( * ) * + 58 AS col2
----
-4234

query II rowsort
SELECT - + 23 + - 59 + + + 3 AS col0, - 15
----
-79
-15

query I rowsort
SELECT + 49 + 99
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1160
SELECT - MAX( + 70 ) + 69 + + NULLIF ( + CAST( + 95 AS SIGNED ), CAST( + 87 AS SIGNED ) ), 90 AS col1
----
94
90

skipif mysql # not compatible
query II rowsort label-1160
SELECT - MAX ( + 70 ) + 69 + + NULLIF ( + CAST ( + 95 AS INTEGER ), CAST ( + 87 AS INTEGER ) ), 90 AS col1
----
94
90

query I rowsort
SELECT - + 35 AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1162
SELECT ( - CAST( 65 AS SIGNED ) ) + 40 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-1162
SELECT ( - CAST ( 65 AS INTEGER ) ) + 40 AS col2
----
-25

query I rowsort
SELECT 38 + - 38 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1164
SELECT - CAST( + 62 AS SIGNED ) - - 14 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-1164
SELECT - CAST ( + 62 AS INTEGER ) - - 14 AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1165
SELECT ALL - 51 * + ( + CAST( NULL AS DECIMAL ) ), NULLIF ( + 79, + 96 * - + 63 + + COUNT( * ) - 55 + + 18 * + COUNT( * ) ) AS col1
----
NULL
79

skipif mysql # not compatible
query II rowsort label-1165
SELECT ALL - 51 * + ( + CAST ( NULL AS REAL ) ), NULLIF ( + 79, + 96 * - + 63 + + COUNT ( * ) - 55 + + 18 * + COUNT ( * ) ) AS col1
----
NULL
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT - 16 + COUNT( * ) col1
----
-15

skipif mysql # not compatible
query I rowsort label-1166
SELECT - 16 + COUNT ( * ) col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT DISTINCT 0 * - 75 * 94 * - 36 * + - 98 * - + 28 * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT 0 * - 75 * 94 * - 36 * + - 98 * - + 28 * - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL 18 * 16
----
288

onlyif mysql # DIV for integer division: 
query II rowsort label-1169
SELECT 91 DIV 23, - 20 DIV - 29 AS col2
----
3
0

skipif mysql # not compatible
query II rowsort label-1169
SELECT 91 / 23, - 20 / - 29 AS col2
----
3
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1170
SELECT COUNT( * ) + + 40, 51 + - 1 * 75 AS col1
----
41
-24

skipif mysql # not compatible
query II rowsort label-1170
SELECT COUNT ( * ) + + 40, 51 + - 1 * 75 AS col1
----
41
-24

query I rowsort
SELECT DISTINCT - 40 * + + 92 * + 6
----
-22080

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1172
SELECT 80 DIV + 86, + NULLIF ( - - COUNT( * ), - - 68 * + - 74 ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-1172
SELECT 80 / + 86, + NULLIF ( - - COUNT ( * ), - - 68 * + - 74 ) AS col1
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1173
SELECT COUNT( 10 ) + SUM( - CAST( NULL AS SIGNED ) ) - - 5 + - - 11 * - - 39 * + - AVG ( + ( 89 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1173
SELECT COUNT ( 10 ) + SUM ( - CAST ( NULL AS INTEGER ) ) - - 5 + - - 11 * - - 39 * + - AVG ( + ( 89 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT 0 * COUNT( + 35 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1174
SELECT 0 * COUNT ( + 35 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1175
SELECT ALL COUNT( + + 22 ) DIV + COALESCE ( + 42, - + 62 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL COUNT ( + + 22 ) / + COALESCE ( + 42, - + 62 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1176
SELECT 59 * + 47 + - - ( - COUNT( * ) ) - COUNT( * ) DIV 85 col0
----
2772

skipif mysql # not compatible
query I rowsort label-1176
SELECT 59 * + 47 + - - ( - COUNT ( * ) ) - COUNT ( * ) / 85 col0
----
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT COUNT( * ) * - - 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1177
SELECT COUNT ( * ) * - - 12 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1178
SELECT DISTINCT SUM( - CAST( + - 38 AS SIGNED ) ) + + 10 + - - 1 + - COALESCE ( - - SUM( ALL - + 23 ), 78 ) * + + 42 AS col1
----
1015

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT SUM ( - CAST ( + - 38 AS INTEGER ) ) + + 10 + - - 1 + - COALESCE ( - - SUM ( ALL - + 23 ), 78 ) * + + 42 AS col1
----
1015

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1180
SELECT ALL COALESCE ( + + COUNT( * ), + - 64 ) + - - 50 + - + 42 + + 52 + - - 18 + - - 85 + + + 71 + - COUNT( * ) DIV + + 98 * + - 44 AS col0
----
235

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL COALESCE ( + + COUNT ( * ), + - 64 ) + - - 50 + - + 42 + + 52 + - - 18 + - - 85 + + + 71 + - COUNT ( * ) / + + 98 * + - 44 AS col0
----
235

onlyif mysql # DIV for integer division: 
query I rowsort label-1181
SELECT - 8 DIV 7 + - + ( + 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-1181
SELECT - 8 / 7 + - + ( + 0 )
----
-1

query II rowsort
SELECT ALL 98 * - 91 AS col0, + 20 * + + 80 * + 33 * + + 4 + 39 + 11 * - - 69
----
-8918
211998

query II rowsort
SELECT 41 + 58 AS col1, 45 + + 60
----
99
105

query I rowsort
SELECT ALL 9 + + 50
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1185
SELECT ALL 78 + MAX( ALL 59 ) DIV + ( 7 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL 78 + MAX ( ALL 59 ) / + ( 7 ) AS col0
----
86

query II rowsort
SELECT + 57 * - + 1 col1, 53 col2
----
-57
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT + 36 * 53 + + 24 + - 40 * - - 81 * - 42 + - ( 54 ) + + - SUM( + 5 ) + - 68 + 54 + - + 88 col0
----
137851

skipif mysql # not compatible
query I rowsort label-1187
SELECT + 36 * 53 + + 24 + - 40 * - - 81 * - 42 + - ( 54 ) + + - SUM ( + 5 ) + - 68 + 54 + - + 88 col0
----
137851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT 17 * - CASE - MIN( DISTINCT - 64 ) WHEN + 10 + COUNT( * ) THEN NULL WHEN - 95 THEN NULL ELSE + ( - 28 ) * - 38 - 66 - - - COALESCE ( 14, - - CAST( - + 45 AS SIGNED ) ) END AS col0
----
-16728

skipif mysql # not compatible
query I rowsort label-1188
SELECT 17 * - CASE - MIN ( DISTINCT - 64 ) WHEN + 10 + COUNT ( * ) THEN NULL WHEN - 95 THEN NULL ELSE + ( - 28 ) * - 38 - 66 - - - COALESCE ( 14, - - CAST ( - + 45 AS INTEGER ) ) END AS col0
----
-16728

query I rowsort
SELECT ALL - 7 - - 76 + 31 AS col0
----
100

query I rowsort
SELECT 35 * - 80 * + 90 * 69 + + 59
----
-17387941

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT + COALESCE ( 15, - 30 - 39 + - 45 + SUM( ALL - - ( - 8 ) ) + - 38 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1191
SELECT + COALESCE ( 15, - 30 - 39 + - 45 + SUM ( ALL - - ( - 8 ) ) + - 38 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT DISTINCT - + COUNT( * ) - 64
----
-65

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT - + COUNT ( * ) - 64
----
-65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT ALL - SUM( + 76 ) * + 84 + + - 0 + - + 83 AS col2
----
-6467

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL - SUM ( + 76 ) * + 84 + + - 0 + - + 83 AS col2
----
-6467

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1195
SELECT ALL 90 DIV COUNT( * ) * - 79
----
-7110

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL 90 / COUNT ( * ) * - 79
----
-7110

query I rowsort
SELECT - + 29 col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT - + SUM( DISTINCT 21 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-1197
SELECT - + SUM ( DISTINCT 21 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT NULLIF ( - COUNT( * ), + + 63 ) * + + ( + 51 ) * - 66
----
3366

skipif mysql # not compatible
query I rowsort label-1198
SELECT NULLIF ( - COUNT ( * ), + + 63 ) * + + ( + 51 ) * - 66
----
3366

query I rowsort
SELECT + NULLIF ( + 35, 15 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT ALL + + 60 * ( + + SUM( 43 ) ) + - + 84
----
2496

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL + + 60 * ( + + SUM ( 43 ) ) + - + 84
----
2496

query I rowsort
SELECT ALL - - 97 * 69 - + 7 AS col2
----
6686

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT + COUNT( * ) * - MAX( - + 80 ) * - 22 * + 57 * + + COALESCE ( CASE + 10 WHEN 30 * - 5 * - 20 * - MAX( DISTINCT - + 90 ) / ( - COUNT( * ) ) + - - 52 - 9 THEN 4 ELSE NULL END, + + 80 + COUNT( * ) )
----
-8125920

skipif mysql # not compatible
query I rowsort label-1202
SELECT + COUNT ( * ) * - MAX ( - + 80 ) * - 22 * + 57 * + + COALESCE ( CASE + 10 WHEN 30 * - 5 * - 20 * - MAX ( DISTINCT - + 90 ) / ( - COUNT ( * ) ) + - - 52 - 9 THEN 4 ELSE NULL END, + + 80 + COUNT ( * ) )
----
-8125920

query I rowsort
SELECT - ( - - 3 )
----
-3

query I rowsort
SELECT ALL - 72 * - + 32 AS col0
----
2304

query I rowsort
SELECT 19 * + 1 * - 97 AS col2
----
-1843

query I rowsort
SELECT 90 - - 61
----
151

query I rowsort
SELECT ALL - COALESCE ( 35, + - 58 ) + + 22 AS col2
----
-13

query I rowsort
SELECT 0 + 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL SUM( DISTINCT - - 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL SUM ( DISTINCT - - 95 ) AS col0
----
95

query I rowsort
SELECT DISTINCT - 9 + 43 AS col0
----
34

query I rowsort
SELECT 9 + - 32
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT DISTINCT - 1 * + + 49 + 1 - + - ( + 60 ) * - 69 + - CASE - COUNT( * ) WHEN - - COUNT( * ) * + 61 - - 24 + - 45 THEN - 63 END + + NULLIF ( - 13, - 41 ) + + 77 * + 1 * + + SUM( ALL - + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT - 1 * + + 49 + 1 - + - ( + 60 ) * - 69 + - CASE - COUNT ( * ) WHEN - - COUNT ( * ) * + 61 - - 24 + - 45 THEN - 63 END + + NULLIF ( - 13, - 41 ) + + 77 * + 1 * + + SUM ( ALL - + 30 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1213
SELECT ALL - COUNT( * ) * + - 76 DIV + 56 + + + 96 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL - COUNT ( * ) * + - 76 / + 56 + + + 96 AS col0
----
97

query II rowsort
SELECT DISTINCT - 93 AS col1, ( + - 27 ) * 7
----
-93
-189

query I rowsort
SELECT 24 * - 62 AS col1
----
-1488

onlyif mysql # aggregate syntax: 
query II rowsort label-1216
SELECT MIN( - 34 ) * - 65 AS col2, - 50 * 60 AS col0
----
2210
-3000

skipif mysql # not compatible
query II rowsort label-1216
SELECT MIN ( - 34 ) * - 65 AS col2, - 50 * 60 AS col0
----
2210
-3000

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1218
SELECT ALL 0 * COUNT( * ) - + 28 + + 30 * 85 + 73 + + + 55 - + 97 * + 85 + + - CAST( NULL AS SIGNED ) - 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL 0 * COUNT ( * ) - + 28 + + 30 * 85 + 73 + + + 55 - + 97 * + 85 + + - CAST ( NULL AS INTEGER ) - 59 col2
----
NULL

query I rowsort
SELECT - 77 - 14 - + 43 + 68
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT DISTINCT - CASE + 37 WHEN 49 THEN + - NULLIF ( + COUNT( * ), 80 * - 37 ) * + 95 + - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT - CASE + 37 WHEN 49 THEN + - NULLIF ( + COUNT ( * ), 80 * - 37 ) * + 95 + - 12 END
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + + 38, 94 + - + 50 )
----
38

query I rowsort
SELECT ALL CASE + 18 WHEN - 54 THEN NULL WHEN + 76 THEN + 48 + - 69 ELSE 61 END * + - 46 col1
----
-2806

query I rowsort
SELECT - 48 * 53 + - - 34 AS col2
----
-2510

query I rowsort
SELECT + - 96 + - 47 AS col1
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT + + 90 * COUNT( * ) + - 94
----
-4

skipif mysql # not compatible
query I rowsort label-1225
SELECT + + 90 * COUNT ( * ) + - 94
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-1226
SELECT DISTINCT + 84 * ( - 52 ) + + + COALESCE ( 72, + - 23 * + 1 + 21 + 17 - - ( - 48 ) + - 37 * + - 17 * + - ( + COUNT( * ) ) ) col2, 62 AS col2
----
-4296
62

skipif mysql # not compatible
query II rowsort label-1226
SELECT DISTINCT + 84 * ( - 52 ) + + + COALESCE ( 72, + - 23 * + 1 + 21 + 17 - - ( - 48 ) + - 37 * + - 17 * + - ( + COUNT ( * ) ) ) col2, 62 AS col2
----
-4296
62

query I rowsort
SELECT + + NULLIF ( - - 52, + 85 ) + 81
----
133

query I rowsort
SELECT + - 15 - - 10 AS col0
----
-5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1230
SELECT DISTINCT CAST( - + ( + - NULLIF ( + - 58, - 36 ) ) AS SIGNED ) * - 89 DIV - - COUNT( * )
----
5162

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT CAST ( - + ( + - NULLIF ( + - 58, - 36 ) ) AS INTEGER ) * - 89 / - - COUNT ( * )
----
5162

query I rowsort
SELECT + 7 + 68 AS col1
----
75

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

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

query I rowsort
SELECT ALL 82 + - 58 + - 63 * 25 AS col0
----
-1551

query II rowsort
SELECT - 18, 97 AS col1
----
-18
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT - 53 + - + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-1235
SELECT - 53 + - + COUNT ( * )
----
-54

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

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

query I rowsort
SELECT ALL 35 + 7 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT + 40 + + MAX( + - 55 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1238
SELECT + 40 + + MAX ( + - 55 ) AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1239
SELECT - 46 + - + COALESCE ( + + CASE 64 WHEN - + 5 * + COUNT( - ( + - CAST( + - 8 AS SIGNED ) ) ) / + 20 THEN + COUNT( * ) END, - 91 * 77 ) * + + 62
----
434388

skipif mysql # not compatible
query I rowsort label-1239
SELECT - 46 + - + COALESCE ( + + CASE 64 WHEN - + 5 * + COUNT ( - ( + - CAST ( + - 8 AS INTEGER ) ) ) / + 20 THEN + COUNT ( * ) END, - 91 * 77 ) * + + 62
----
434388

query I rowsort
SELECT - NULLIF ( 8, ( + + 80 ) )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-1241
SELECT + 17 DIV + 3
----
5

skipif mysql # not compatible
query I rowsort label-1241
SELECT + 17 / + 3
----
5

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL COALESCE ( MIN( ALL - 51 ), + ( 99 ) * - 74 ) * - ( 83 ) col2
----
4233

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL COALESCE ( MIN ( ALL - 51 ), + ( 99 ) * - 74 ) * - ( 83 ) col2
----
4233

query I rowsort
SELECT DISTINCT 34 + + 3
----
37

query I rowsort
SELECT - 63 + + 6
----
-57

query I rowsort
SELECT ALL - COALESCE ( + 31, + + 37 ) + - - 62 + + - 14 + - 55
----
-38

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

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT COUNT ( - + 80 ) AS col2
----
1

query I rowsort
SELECT ( + COALESCE ( - - 11, - 23 * - 20 + 89 ) ) AS col0
----
11

query I rowsort
SELECT - 68 + - + 85
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT - 27 * - COUNT( 93 )
----
27

skipif mysql # not compatible
query I rowsort label-1251
SELECT - 27 * - COUNT ( 93 )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-1252
SELECT - COUNT( * ) * + ( CASE - - 76 WHEN + 5 THEN NULL ELSE - 99 END ) AS col2, 71
----
99
71

skipif mysql # not compatible
query II rowsort label-1252
SELECT - COUNT ( * ) * + ( CASE - - 76 WHEN + 5 THEN NULL ELSE - 99 END ) AS col2, 71
----
99
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1253
SELECT - 12 * + 80 * 25 + - COALESCE ( - - 51, + 82 ) + - 90 + - - 93 + 53 / - COUNT( * ) * + + CAST( NULL AS SIGNED ) / - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1253
SELECT - 12 * + 80 * 25 + - COALESCE ( - - 51, + 82 ) + - 90 + - - 93 + 53 / - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) / - 84 AS col1
----
NULL

query II rowsort
SELECT ALL + 97 col0, 72
----
97
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1255
SELECT + 92, 77 + - + MIN( DISTINCT - + 92 ) + 58 * 33 AS col2
----
92
2083

skipif mysql # not compatible
query II rowsort label-1255
SELECT + 92, 77 + - + MIN ( DISTINCT - + 92 ) + 58 * 33 AS col2
----
92
2083

query II rowsort
SELECT ALL + 85, - 56 * + 32 * + 67 col0
----
85
-120064

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1257
SELECT ALL 10 * ( 23 ) - - - 7 AS col1, - CAST( ( - 7 ) AS SIGNED )
----
223
7

skipif mysql # not compatible
query II rowsort label-1257
SELECT ALL 10 * ( 23 ) - - - 7 AS col1, - CAST ( ( - 7 ) AS INTEGER )
----
223
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT - + 85 + - 24 - - 95 * + + COUNT( DISTINCT + + 4 ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-1258
SELECT - + 85 + - 24 - - 95 * + + COUNT ( DISTINCT + + 4 ) col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT DISTINCT + + MAX( - - ( - - 66 ) ) * + 60 + + - 11
----
3949

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT + + MAX ( - - ( - - 66 ) ) * + 60 + + - 11
----
3949

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

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

query I rowsort
SELECT + 2 * - - 67 + + + 70
----
204

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1263
SELECT + 89 * + 96 - + 91 * + 5 + + + 21 * - MIN( DISTINCT - + 65 ) + + 8 + - 81 AS col1, + 17 + COUNT( * )
----
9381
18

skipif mysql # not compatible
query II rowsort label-1263
SELECT + 89 * + 96 - + 91 * + 5 + + + 21 * - MIN ( DISTINCT - + 65 ) + + 8 + - 81 AS col1, + 17 + COUNT ( * )
----
9381
18

query I rowsort
SELECT - 68 * - 26 col2
----
1768

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT + 38 + + 83 - - + COUNT( * ) col1
----
122

skipif mysql # not compatible
query I rowsort label-1265
SELECT + 38 + + 83 - - + COUNT ( * ) col1
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-1266
SELECT ALL 8 DIV + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL 8 / + 63 AS col2
----
0

query I rowsort
SELECT + + 34 * 60 + + + 90 * 8 * 62 AS col1
----
46680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1268
SELECT - - 46 AS col0, + 36 * COALESCE ( + COUNT( * ), - 68 * - 31 + - MIN( 77 ) * + CAST( - SUM( + + 11 ) AS SIGNED ) ) AS col1
----
46
36

skipif mysql # not compatible
query II rowsort label-1268
SELECT - - 46 AS col0, + 36 * COALESCE ( + COUNT ( * ), - 68 * - 31 + - MIN ( 77 ) * + CAST ( - SUM ( + + 11 ) AS INTEGER ) ) AS col1
----
46
36

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

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

query I rowsort
SELECT ( 23 ) * + 94 - - 0 AS col2
----
2162

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

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

query I rowsort
SELECT ALL NULLIF ( - 11, - 40 ) + - - 33 * 88 AS col2
----
2893

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT + 41 * - + 89 * - CASE - COUNT( * ) WHEN - - 63 / - 93 + - 89 THEN NULL WHEN ( 67 ) + + - 96 THEN + + COUNT( ALL - 50 ) * + 69 * + - 11 / + 94 + 36 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1273
SELECT + 41 * - + 89 * - CASE - COUNT ( * ) WHEN - - 63 / - 93 + - 89 THEN NULL WHEN ( 67 ) + + - 96 THEN + + COUNT ( ALL - 50 ) * + 69 * + - 11 / + 94 + 36 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1274
SELECT SUM( + CAST( + + 81 AS SIGNED ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1274
SELECT SUM ( + CAST ( + + 81 AS INTEGER ) ) AS col0
----
81

query I rowsort
SELECT ALL 29 + + 51 AS col2
----
80

query I rowsort
SELECT ALL CASE - 46 WHEN + - 70 * 88 THEN NULL WHEN - + 31 THEN NULL WHEN + 68 * - 40 THEN NULL WHEN + ( + 17 ) THEN + + 88 ELSE + + ( 87 ) + - 32 END + + 90 + - + 5
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-1277
SELECT + 11 * 26 AS col0, COUNT( * ) + - 51 AS col1
----
286
-50

skipif mysql # not compatible
query II rowsort label-1277
SELECT + 11 * 26 AS col0, COUNT ( * ) + - 51 AS col1
----
286
-50

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

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

query I rowsort
SELECT + 75 * 19 * - 39
----
-55575

query I rowsort
SELECT ALL 21 * 59 * 79 * + 9 * - ( + 74 ) col2
----
-65188746

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT + 27 + - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-1281
SELECT + 27 + - COUNT ( * )
----
26

query II rowsort
SELECT + 45 * - 40 AS col1, + 67 col2
----
-1800
67

query I rowsort
SELECT - 50 + + 62 * + - 86 + - - 77 + - - 2 col1
----
-5303

query I rowsort
SELECT ALL + 75 * + ( 63 )
----
4725

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1285
SELECT DISTINCT ( + 19 ), CAST( - 39 AS SIGNED ) - - 26 + + 95 + - 82 * 70 + + 37 + + + 89 col2
----
19
-5532

skipif mysql # not compatible
query II rowsort label-1285
SELECT DISTINCT ( + 19 ), CAST ( - 39 AS INTEGER ) - - 26 + + 95 + - 82 * 70 + + 37 + + + 89 col2
----
19
-5532

query I rowsort
SELECT ALL 85 * 99
----
8415

query I rowsort
SELECT + ( - 92 ) AS col1
----
-92

query I rowsort
SELECT DISTINCT - + 8 AS col2
----
-8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1290
SELECT - 66 DIV + 75 + 33 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-1290
SELECT - 66 / + 75 + 33 AS col0
----
33

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

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

query I rowsort
SELECT ALL - - 78 + - 92 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT DISTINCT + + 15 + + COUNT( * ) + + COUNT( 36 ) - - ( - COUNT( * ) ) col1
----
16

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT + + 15 + + COUNT ( * ) + + COUNT ( 36 ) - - ( - COUNT ( * ) ) col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-1294
SELECT COUNT( ALL - - 55 ), COALESCE ( - 34, - 76 ) + + CASE + NULLIF ( - - 74, 36 ) WHEN - + 72 THEN + - 64 WHEN - 66 * 22 THEN NULL ELSE NULL END + 91 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1294
SELECT COUNT ( ALL - - 55 ), COALESCE ( - 34, - 76 ) + + CASE + NULLIF ( - - 74, 36 ) WHEN - + 72 THEN + - 64 WHEN - 66 * 22 THEN NULL ELSE NULL END + 91 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT 61 + + + 90 * + - COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-1295
SELECT 61 + + + 90 * + - COUNT ( * ) AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1296
SELECT DISTINCT 88 DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT 88 / - 96 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1297
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) * - 58 AS col0, 68 AS col2
----
58
68

skipif mysql # not compatible
query II rowsort label-1297
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) * - 58 AS col0, 68 AS col2
----
58
68

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

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

query I rowsort
SELECT ( + - ( - + 93 ) ) * 2
----
186

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1301
SELECT DISTINCT 48 AS col2, 75 / + COUNT( * ) / + AVG ( DISTINCT CAST( NULL AS SIGNED ) )
----
48
NULL

skipif mysql # not compatible
query II rowsort label-1301
SELECT DISTINCT 48 AS col2, 75 / + COUNT ( * ) / + AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
48
NULL

query I rowsort
SELECT 50 * 54 AS col2
----
2700

query II rowsort
SELECT 68 col1, 36
----
68
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT ALL 68 DIV - 62 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL 68 / - 62 AS col1
----
-1

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

query I rowsort
SELECT ALL 40 + 85 AS col2
----
125

query I rowsort
SELECT ALL 45 * 78 + + 6 + - - 0 * + ( + + 67 ) col0
----
3516

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT 25 * 90 * - - 8 * + COUNT( * ) - - NULLIF ( 70, - - 88 ) AS col0
----
18070

skipif mysql # not compatible
query I rowsort label-1308
SELECT 25 * 90 * - - 8 * + COUNT ( * ) - - NULLIF ( 70, - - 88 ) AS col0
----
18070

query II rowsort
SELECT - 39 AS col1, 95 + - 62 AS col0
----
-39
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1310
SELECT ALL - NULLIF ( + 93, - 7 - + + COALESCE ( 86, + 96 + 74 + - 71 + - 56 ) + - + SUM( ALL 83 ) * + + ( - 33 ) / + 65 ) * - - CASE ( + 7 ) WHEN + 88 * - CASE 40 WHEN - CASE - 48 WHEN - CAST( ( 99 ) AS DECIMAL ) THEN NULL WHEN ( + COUNT( * ) ) THEN - 63 - + ( - 31 + - 17 ) ELSE NULL END * CAST( NULL AS DECIMAL ) + - COUNT( * ) THEN NULL WHEN CASE + 8 WHEN + 95 * - ( COUNT( * ) / + CAST( NULL AS SIGNED ) ) THEN NULL ELSE ( CAST( NULL AS SIGNED ) ) + - 32 END THEN 84 ELSE - ( SUM( ALL + 21 ) ) + 39 END + 5 THEN NULL WHEN - 40 THEN NULL ELSE + COALESCE ( + 53, + ( 91 ) - + 5 ) END
----
-4929

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL - NULLIF ( + 93, - 7 - + + COALESCE ( 86, + 96 + 74 + - 71 + - 56 ) + - + SUM ( ALL 83 ) * + + ( - 33 ) / + 65 ) * - - CASE ( + 7 ) WHEN + 88 * - CASE 40 WHEN - CASE - 48 WHEN - CAST ( ( 99 ) AS REAL ) THEN NULL WHEN ( + COUNT ( * ) ) THEN - 63 - + ( - 31 + - 17 ) ELSE NULL END * CAST ( NULL AS REAL ) + - COUNT ( * ) THEN NULL WHEN CASE + 8 WHEN + 95 * - ( COUNT ( * ) / + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE ( CAST ( NULL AS INTEGER ) ) + - 32 END THEN 84 ELSE - ( SUM ( ALL + 21 ) ) + 39 END + 5 THEN NULL WHEN - 40 THEN NULL ELSE + COALESCE ( + 53, + ( 91 ) - + 5 ) END
----
-4929

query I rowsort
SELECT 27 * - 77 AS col1
----
-2079

query I rowsort
SELECT ALL - 28 + 12
----
-16

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1314
SELECT ALL - + NULLIF ( - + 98, 50 * - COUNT( * ) ) + - 90 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL - + NULLIF ( - + 98, 50 * - COUNT ( * ) ) + - 90 / - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1315
SELECT DISTINCT 29 * NULLIF ( + 54, CAST( NULL AS SIGNED ) * - 94 - - 22 ), NULLIF ( MAX( DISTINCT - + ( 21 ) ), + 99 ) + + CAST( NULL AS SIGNED ) AS col1
----
1566
NULL

skipif mysql # not compatible
query II rowsort label-1315
SELECT DISTINCT 29 * NULLIF ( + 54, CAST ( NULL AS INTEGER ) * - 94 - - 22 ), NULLIF ( MAX ( DISTINCT - + ( 21 ) ), + 99 ) + + CAST ( NULL AS INTEGER ) AS col1
----
1566
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT + - CASE + + 4 WHEN - 72 / - + 90 THEN + 87 ELSE + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-1317
SELECT + - CASE + + 4 WHEN - 72 / - + 90 THEN + 87 ELSE + COUNT ( * ) END
----
-1

query I rowsort
SELECT DISTINCT - ( + - ( - 1 ) ) AS col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-1319
SELECT 18 * - ( COUNT ( * ) ) + - - 71 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT ALL CASE - 14 WHEN COALESCE ( - 0, + COUNT( * ) + - 39 * COUNT( * ) * - 76 - - ( - - 76 ), + 85 / - + 48 ) THEN NULL WHEN 27 THEN - 82 * - 96 + - 19 * + COUNT( * ) * + SUM( - - NULLIF ( + 78, - 96 ) ) - + + MIN( - 38 ) END + + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL CASE - 14 WHEN COALESCE ( - 0, + COUNT ( * ) + - 39 * COUNT ( * ) * - 76 - - ( - - 76 ), + 85 / - + 48 ) THEN NULL WHEN 27 THEN - 82 * - 96 + - 19 * + COUNT ( * ) * + SUM ( - - NULLIF ( + 78, - 96 ) ) - + + MIN ( - 38 ) END + + 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1321
SELECT DISTINCT + - MAX( 58 ) + - - 64, 63 AS col0
----
6
63

skipif mysql # not compatible
query II rowsort label-1321
SELECT DISTINCT + - MAX ( 58 ) + - - 64, 63 AS col0
----
6
63

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

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

query II rowsort
SELECT ALL 23 - + - 52 AS col1, + 73
----
75
73

query II rowsort
SELECT 16 * - 70, 99 AS col1
----
-1120
99

query I rowsort
SELECT DISTINCT + 92 - 12 AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1326
SELECT 10 * - + CAST( + - 49 AS SIGNED ) - - 3 AS col2
----
493

skipif mysql # not compatible
query I rowsort label-1326
SELECT 10 * - + CAST ( + - 49 AS INTEGER ) - - 3 AS col2
----
493

onlyif mysql # DIV for integer division: 
query I rowsort label-1327
SELECT 60 DIV + 42 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1327
SELECT 60 / + 42 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT ALL - 20 DIV - 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL - 20 / - 25 AS col1
----
0

query I rowsort
SELECT 44 * + ( + 90 ) AS col2
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT - MIN( - ( - ( - 47 ) ) ) - - 56
----
103

skipif mysql # not compatible
query I rowsort label-1330
SELECT - MIN ( - ( - ( - 47 ) ) ) - - 56
----
103

query I rowsort
SELECT DISTINCT NULLIF ( - 44, + - 52 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT ALL + + 12 + - - 58 - ( + NULLIF ( - CASE 22 WHEN COALESCE ( + 40, - CASE - 63 WHEN + + 5 THEN + COUNT( * ) WHEN - COUNT( * ) + 27 * - - 1 / 1 + - SUM( + 36 ) THEN NULL END ) * - AVG ( ALL - 20 ) + + 46 * - + ( + ( + - 44 ) ) * + COUNT( * ) THEN NULL ELSE + 86 * 37 + - 16 END, + 62 * - 95 + MIN( ALL + 88 ) ) ) AS col0
----
3236

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL + + 12 + - - 58 - ( + NULLIF ( - CASE 22 WHEN COALESCE ( + 40, - CASE - 63 WHEN + + 5 THEN + COUNT ( * ) WHEN - COUNT ( * ) + 27 * - - 1 / 1 + - SUM ( + 36 ) THEN NULL END ) * - AVG ( ALL - 20 ) + + 46 * - + ( + ( + - 44 ) ) * + COUNT ( * ) THEN NULL ELSE + 86 * 37 + - 16 END, + 62 * - 95 + MIN ( ALL + 88 ) ) ) AS col0
----
3236

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

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

query I rowsort
SELECT - - 79 + + 26
----
105

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT ALL - - CASE AVG ( ALL - 68 ) WHEN - - AVG ( ALL + 36 ) + + ( - COUNT( * ) ) THEN - COUNT( * ) ELSE NULL END + + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL - - CASE AVG ( ALL - 68 ) WHEN - - AVG ( ALL + 36 ) + + ( - COUNT ( * ) ) THEN - COUNT ( * ) ELSE NULL END + + 79 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL - + CASE WHEN NOT - 74 IN ( + COALESCE ( + 50, - 13, 76 * + - 63 * 21 ) * + 78 * - 21 + + ( + 15 ), 64, + - 81 ) THEN - 25 + - + 10 END * 54 + + COUNT( DISTINCT 56 ) * + COUNT( * ) * - - 29 * - + 56
----
266

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL - + CASE WHEN NOT - 74 IN ( + COALESCE ( + 50, - 13, 76 * + - 63 * 21 ) * + 78 * - 21 + + ( + 15 ), 64, + - 81 ) THEN - 25 + - + 10 END * 54 + + COUNT ( DISTINCT 56 ) * + COUNT ( * ) * - - 29 * - + 56
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT + 57 * + 83 + + + 43 * - 40 + 42 + 40 + - + MIN( + - 66 ) AS col1
----
3159

skipif mysql # not compatible
query I rowsort label-1338
SELECT + 57 * + 83 + + + 43 * - 40 + 42 + 40 + - + MIN ( + - 66 ) AS col1
----
3159

query II rowsort
SELECT + 62 + + 15 + - - ( - 5 ) AS col1, 92 AS col0
----
72
92

query I rowsort
SELECT DISTINCT + + COALESCE ( 21, - 65 )
----
21

query I rowsort
SELECT ALL 94 * - 51 + 79
----
-4715

query I rowsort
SELECT - ( - 18 ) * - - ( + - 44 ) AS col2
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT 36 * + COUNT( * ) - + MIN( ALL + + 6 ) + + + 8 col1
----
38

skipif mysql # not compatible
query I rowsort label-1343
SELECT 36 * + COUNT ( * ) - + MIN ( ALL + + 6 ) + + + 8 col1
----
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT + - 97 * - NULLIF ( - ( + 87 ), + + 60 * + + 69 * - COUNT( * ) + + 67 - ( + ( - + 13 ) ) )
----
-8439

skipif mysql # not compatible
query I rowsort label-1345
SELECT + - 97 * - NULLIF ( - ( + 87 ), + + 60 * + + 69 * - COUNT ( * ) + + 67 - ( + ( - + 13 ) ) )
----
-8439

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT DISTINCT 86 * + 26 + + 17 DIV 40 AS col0
----
2236

skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT 86 * + 26 + + 17 / 40 AS col0
----
2236

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT DISTINCT 52 * - 96 - + - COUNT( * ) AS col1
----
-4991

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT 52 * - 96 - + - COUNT ( * ) AS col1
----
-4991

query I rowsort
SELECT + 12 - 12 + - - 92 AS col1
----
92

query I rowsort
SELECT DISTINCT 17 * - 90 AS col2
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT MAX( - 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1350
SELECT MAX ( - 45 ) AS col1
----
-45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT + CASE + + 74 WHEN - 68 THEN + 2 * + CASE - 38 WHEN + ( + + 75 ) THEN NULL WHEN - - 11 + 90 + + 19 - - + AVG ( - - ( + + 7 ) ) THEN - + 63 ELSE NULL END - 39 WHEN COALESCE ( + 71, 51, + + 75 * - 77 / + 91 + + COUNT( * ) - + 1 ) / - COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1352
SELECT + CASE + + 74 WHEN - 68 THEN + 2 * + CASE - 38 WHEN + ( + + 75 ) THEN NULL WHEN - - 11 + 90 + + 19 - - + AVG ( - - ( + + 7 ) ) THEN - + 63 ELSE NULL END - 39 WHEN COALESCE ( + 71, 51, + + 75 * - 77 / + 91 + + COUNT ( * ) - + 1 ) / - COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1353
SELECT COUNT( * ) AS col1, - 90 * 7 * - 42
----
1
26460

skipif mysql # not compatible
query II rowsort label-1353
SELECT COUNT ( * ) AS col1, - 90 * 7 * - 42
----
1
26460

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT 15 * - + 38 * 3 * + - 63 + - - 2 + + ( - - 85 ) + - SUM( ALL + + 4 )
----
107813

skipif mysql # not compatible
query I rowsort label-1355
SELECT 15 * - + 38 * 3 * + - 63 + - - 2 + + ( - - 85 ) + - SUM ( ALL + + 4 )
----
107813

onlyif mysql # DIV for integer division: 
query I rowsort label-1356
SELECT - 34 - 93 DIV - - 80 col1
----
-35

skipif mysql # not compatible
query I rowsort label-1356
SELECT - 34 - 93 / - - 80 col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT + 45 * - COUNT( * ) * 47 col2
----
-2115

skipif mysql # not compatible
query I rowsort label-1357
SELECT + 45 * - COUNT ( * ) * 47 col2
----
-2115

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT + COUNT( * ) + - 98 * - - 80
----
-7839

skipif mysql # not compatible
query I rowsort label-1358
SELECT + COUNT ( * ) + - 98 * - - 80
----
-7839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1359
SELECT - CAST( COUNT( ALL 97 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1359
SELECT - CAST ( COUNT ( ALL 97 ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT - 80 * + + 81 * + + 89 * + 66 AS col0
----
-38063520

query I rowsort
SELECT ALL - 16 * + 91
----
-1456

query I rowsort
SELECT - 98 + + 30 AS col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-1363
SELECT ALL NULLIF ( 47, - 52 ) * 94 DIV - + ( + 17 )
----
-259

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL NULLIF ( 47, - 52 ) * 94 / - + ( + 17 )
----
-259

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

query II rowsort
SELECT 20, 89 AS col1
----
20
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1366
SELECT ALL + 16 + + COALESCE ( - CASE + COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE 97 DIV - + COUNT( * ) + CAST( 55 AS SIGNED ) - 97 * - 49 - 77 * 67 DIV - + 47 DIV - 29 DIV - 42 END, - 78 - + 95 * - + 86 ) * - COUNT( * ) - 82
----
-8158

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL + 16 + + COALESCE ( - CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE 97 / - + COUNT ( * ) + CAST ( 55 AS INTEGER ) - 97 * - 49 - 77 * 67 / - + 47 / - 29 / - 42 END, - 78 - + 95 * - + 86 ) * - COUNT ( * ) - 82
----
-8158

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

query I rowsort
SELECT - 26 + + 32 - + 38 * - 53 * 21 * 76 AS col0
----
3214350

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

query II rowsort
SELECT + 73, - NULLIF ( 3, 21 ) AS col2
----
73
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1372
SELECT - - COALESCE ( 23, - + 54 DIV + - 61, + 67 + + 80 ) + MIN( 82 ) AS col2
----
105

skipif mysql # not compatible
query I rowsort label-1372
SELECT - - COALESCE ( 23, - + 54 / + - 61, + 67 + + 80 ) + MIN ( 82 ) AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1373
SELECT ALL - - 80 + 66 + + 66 * + - NULLIF ( + 49, 1 + + COUNT( DISTINCT + - 27 ) - + + 14 - + 98 / + CAST( NULL AS SIGNED ) * 92 / - 4 ) AS col1
----
-3088

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL - - 80 + 66 + + 66 * + - NULLIF ( + 49, 1 + + COUNT ( DISTINCT + - 27 ) - + + 14 - + 98 / + CAST ( NULL AS INTEGER ) * 92 / - 4 ) AS col1
----
-3088

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

query I rowsort
SELECT ALL + 47 + - 27 + - - 73 * 29
----
2137

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT - 32 * 18 * - COUNT( * )
----
576

skipif mysql # not compatible
query I rowsort label-1376
SELECT - 32 * 18 * - COUNT ( * )
----
576

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT ALL + 36 DIV + - 48
----
0

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL + 36 / + - 48
----
0

query I rowsort
SELECT - 46 * + ( - + 3 ) AS col2
----
138

query I rowsort
SELECT - + ( + 65 ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT ALL - 45 + - + MAX( ALL 90 ) * - 8 * + 79 AS col1
----
56835

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL - 45 + - + MAX ( ALL 90 ) * - 8 * + 79 AS col1
----
56835

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT ALL + 87 - + 33 * - + MIN( - - 5 )
----
252

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL + 87 - + 33 * - + MIN ( - - 5 )
----
252

query I rowsort
SELECT - 21 + + 56 * + 17 * + 5
----
4739

onlyif mysql # DIV for integer division: 
query I rowsort label-1383
SELECT ALL 12 DIV 7 * - + 42 + + + 39 - - 23 + + 6
----
26

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL 12 / 7 * - + 42 + + + 39 - - 23 + + 6
----
26

query II rowsort
SELECT - 49 * - 1 - - 58 AS col1, - 43
----
107
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1385
SELECT - 71 DIV - MAX( DISTINCT + 18 ) + - 32 + - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-1385
SELECT - 71 / - MAX ( DISTINCT + 18 ) + - 32 + - COUNT ( * )
----
-30

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

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

query I rowsort
SELECT + 88 + 50 + 24 * + + 5
----
258

onlyif mysql # DIV for integer division: 
query II rowsort label-1388
SELECT - CASE 45 WHEN + 2 THEN + + 31 ELSE 87 * + 66 END * - 72 + - 16 DIV + - 98 AS col1, 2 + - ( - + 47 ) - 61 - + 52 * + 20 + - 17 * - + 30 col0
----
413424
-542

skipif mysql # not compatible
query II rowsort label-1388
SELECT - CASE 45 WHEN + 2 THEN + + 31 ELSE 87 * + 66 END * - 72 + - 16 / + - 98 AS col1, 2 + - ( - + 47 ) - 61 - + 52 * + 20 + - 17 * - + 30 col0
----
413424
-542

onlyif mysql # aggregate syntax: 
query II rowsort label-1389
SELECT COUNT( * ) * - 96 + + 42 * + + 85 AS col0, - 8
----
3474
-8

skipif mysql # not compatible
query II rowsort label-1389
SELECT COUNT ( * ) * - 96 + + 42 * + + 85 AS col0, - 8
----
3474
-8

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

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

query I rowsort
SELECT + 28 * - ( 46 )
----
-1288

query I rowsort
SELECT + 24 * + - 57 + - ( 42 ) AS col1
----
-1410

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT 73 * - 17 * 99 * - CASE 17 WHEN + 82 - - + ( 81 ) + - 60 THEN - 9 END * - + ( 26 ) / 21 * 21 + COUNT( DISTINCT - 10 ) * - ( 23 ) * 13 + 89 + - CASE 46 WHEN + + 39 THEN - COALESCE ( 42, + COALESCE ( - 73, + ( + 82 ) ) + + 61 * - 33, + 13 * 57 ) END * + 75 + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT 73 * - 17 * 99 * - CASE 17 WHEN + 82 - - + ( 81 ) + - 60 THEN - 9 END * - + ( 26 ) / 21 * 21 + COUNT ( DISTINCT - 10 ) * - ( 23 ) * 13 + 89 + - CASE 46 WHEN + + 39 THEN - COALESCE ( 42, + COALESCE ( - 73, + ( + 82 ) ) + + 61 * - 33, + 13 * 57 ) END * + 75 + 92 AS col0
----
NULL

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

query II rowsort
SELECT DISTINCT + 86, - COALESCE ( - 81, - + 89 ) col0
----
86
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1396
SELECT DISTINCT - COUNT( * ), - 96 * + 53 AS col0
----
-1
-5088

skipif mysql # not compatible
query II rowsort label-1396
SELECT DISTINCT - COUNT ( * ), - 96 * + 53 AS col0
----
-1
-5088

query I rowsort
SELECT DISTINCT 21 + - 35 AS col2
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1398
SELECT NULLIF ( - 6, - COUNT( * ) * + + COUNT( * ) ) DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-1398
SELECT NULLIF ( - 6, - COUNT ( * ) * + + COUNT ( * ) ) / - 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT 88 * CASE WHEN NULL IS NULL THEN - 26 ELSE NULL END * 99 * 2 + - COUNT( * ) AS col1
----
-453025

skipif mysql # not compatible
query I rowsort label-1399
SELECT 88 * CASE WHEN NULL IS NULL THEN - 26 ELSE NULL END * 99 * 2 + - COUNT ( * ) AS col1
----
-453025

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

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

query I rowsort
SELECT ALL + 51 + - 15 col1
----
36

query I rowsort
SELECT + 17 - - - 79 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-1403
SELECT ALL - 12 AS col1, - COALESCE ( - + 77, 43 ) * + 86 * + COUNT( * ) + 26
----
-12
6648

skipif mysql # not compatible
query II rowsort label-1403
SELECT ALL - 12 AS col1, - COALESCE ( - + 77, 43 ) * + 86 * + COUNT ( * ) + 26
----
-12
6648

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT DISTINCT 95 - 6 - - COUNT( * ) - - COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT 95 - 6 - - COUNT ( * ) - - COUNT ( * ) AS col1
----
91

query I rowsort
SELECT 50 + 58 + - - 64 * 92 AS col2
----
5996

query II rowsort
SELECT - 87 AS col0, + 46 * + 28 * - 66 AS col0
----
-87
-85008

query I rowsort
SELECT + ( + - COALESCE ( + 79, + 63, - - 23 ) ) * + 28 + + + 56
----
-2156

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT DISTINCT - + 98 DIV 71 * + 5 + - + 35 * + 10 * + 38 - 85
----
-13390

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT - + 98 / 71 * + 5 + - + 35 * + 10 * + 38 - 85
----
-13390

onlyif mysql # DIV for integer division: 
query I rowsort label-1409
SELECT + 99 DIV - 51 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1409
SELECT + 99 / - 51 AS col1
----
-1

query I rowsort
SELECT - 69 * + 57 * + 41 AS col2
----
-161253

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT 15 - - 6 + + ( - - 72 ) * + MIN( ALL + 89 ) * 82
----
525477

skipif mysql # not compatible
query I rowsort label-1411
SELECT 15 - - 6 + + ( - - 72 ) * + MIN ( ALL + 89 ) * 82
----
525477

query I rowsort
SELECT 18 * + 66 * - 86 AS col2
----
-102168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1413
SELECT - 32 * - 77 + + 86 + - MIN( ALL 48 ) + + + 41 * 89 DIV COUNT( * ) * + + 44 + + COUNT( - 44 ) + - - 82 col1
----
163141

skipif mysql # not compatible
query I rowsort label-1413
SELECT - 32 * - 77 + + 86 + - MIN ( ALL 48 ) + + + 41 * 89 / COUNT ( * ) * + + 44 + + COUNT ( - 44 ) + - - 82 col1
----
163141

onlyif mysql # DIV for integer division: 
query I rowsort label-1414
SELECT 51 DIV - 41 + + 87
----
86

skipif mysql # not compatible
query I rowsort label-1414
SELECT 51 / - 41 + + 87
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT ALL + ( + - 47 ) * COALESCE ( 54, + COUNT( - + 83 ) )
----
-2538

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL + ( + - 47 ) * COALESCE ( 54, + COUNT ( - + 83 ) )
----
-2538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1416
SELECT 44 * NULLIF ( - 86, + COUNT( * ) * + - 81 * 34 * - 95 / 24 ) AS col2, + 21 * COUNT( * ) + + - 27 - + COUNT( * ) / - + COUNT( * ) * + MIN( DISTINCT - - 25 ) * - 70 + - CAST( NULL AS SIGNED )
----
-3784
NULL

skipif mysql # not compatible
query II rowsort label-1416
SELECT 44 * NULLIF ( - 86, + COUNT ( * ) * + - 81 * 34 * - 95 / 24 ) AS col2, + 21 * COUNT ( * ) + + - 27 - + COUNT ( * ) / - + COUNT ( * ) * + MIN ( DISTINCT - - 25 ) * - 70 + - CAST ( NULL AS INTEGER )
----
-3784
NULL

query I rowsort
SELECT ALL 16 + - ( + 64 ) AS col0
----
-48

query I rowsort
SELECT DISTINCT + 43 * - + 84 AS col0
----
-3612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1419
SELECT ALL - CAST( - + 42 AS SIGNED ) + + + 14 - - 4
----
60

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL - CAST ( - + 42 AS INTEGER ) + + + 14 - - 4
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT ALL COUNT( ALL + 39 ) + - 45 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL COUNT ( ALL + 39 ) + - 45 AS col2
----
-44

query I rowsort
SELECT 50 + - ( - 29 ) col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT MAX( ALL + + 23 ) + 35 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1422
SELECT MAX ( ALL + + 23 ) + 35 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT + 37 * - 35 * + + 84 + + 17 + 58 * - + 4 * + - MIN( - + COALESCE ( - + 12, - 44 ) ) + + NULLIF ( + - 8, + + ( + + COUNT( * ) ) ) * 42 + + 70
----
-106245

skipif mysql # not compatible
query I rowsort label-1423
SELECT + 37 * - 35 * + + 84 + + 17 + 58 * - + 4 * + - MIN ( - + COALESCE ( - + 12, - 44 ) ) + + NULLIF ( + - 8, + + ( + + COUNT ( * ) ) ) * 42 + + 70
----
-106245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1424
SELECT 85 * - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * - 32 + - - COUNT( * ) * + ( MIN( 21 ) ) + - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1424
SELECT 85 * - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 32 + - - COUNT ( * ) * + ( MIN ( 21 ) ) + - - 96
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1426
SELECT ALL CAST( - 41 AS SIGNED ) - + COUNT( * ) * - 28 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL CAST ( - 41 AS INTEGER ) - + COUNT ( * ) * - 28 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT 27 * - COUNT( * ) - 5 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-1427
SELECT 27 * - COUNT ( * ) - 5 AS col2
----
-32

query II rowsort
SELECT - 24 * 61, + 41 AS col0
----
-1464
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1429
SELECT MAX( ALL - - 69 ) + + 84 * + - ( CASE 43 WHEN - + 59 THEN + CAST( - 17 AS SIGNED ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1429
SELECT MAX ( ALL - - 69 ) + + 84 * + - ( CASE 43 WHEN - + 59 THEN + CAST ( - 17 AS INTEGER ) ELSE NULL END )
----
NULL

query I rowsort
SELECT + 90 + 17 * - 76 col1
----
-1202

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

query I rowsort
SELECT ( + + 96 ) * 18 AS col2
----
1728

query I rowsort
SELECT ALL - NULLIF ( - + 58, + 56 - - 14 ) - 0 AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1434
SELECT CASE - 83 WHEN - + 73 - + CAST( NULL AS SIGNED ) - + - 97 THEN NULL WHEN SUM( ALL + ( - - 88 ) ) * 79 THEN - + COALESCE ( + 93, COUNT( * ) ) WHEN - + 13 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1434
SELECT CASE - 83 WHEN - + 73 - + CAST ( NULL AS INTEGER ) - + - 97 THEN NULL WHEN SUM ( ALL + ( - - 88 ) ) * 79 THEN - + COALESCE ( + 93, COUNT ( * ) ) WHEN - + 13 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT DISTINCT + COALESCE ( + - 9, + COUNT( * ) ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT + COALESCE ( + - 9, + COUNT ( * ) ) col0
----
-9

query II rowsort
SELECT - 40 + + - 7 AS col0, 84 * - 29
----
-47
-2436

query I rowsort
SELECT 65 + 92 + - 76
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1438
SELECT - 67 * - ( - 52 ) + - - 19 / + 91 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1438
SELECT - 67 * - ( - 52 ) + - - 19 / + 91 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT - 28 * - - 40 - ( + COUNT( * ) ) + - - 14 AS col2
----
-1107

skipif mysql # not compatible
query I rowsort label-1439
SELECT - 28 * - - 40 - ( + COUNT ( * ) ) + - - 14 AS col2
----
-1107

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1440
SELECT - 66 * - 32 + + 45 AS col0, - COUNT( * ) + + ( - - 69 ) - + COALESCE ( - 70, - 62 ) + - 23 DIV - 21 AS col0
----
2157
139

skipif mysql # not compatible
query II rowsort label-1440
SELECT - 66 * - 32 + + 45 AS col0, - COUNT ( * ) + + ( - - 69 ) - + COALESCE ( - 70, - 62 ) + - 23 / - 21 AS col0
----
2157
139

onlyif mysql # DIV for integer division: 
query I rowsort label-1441
SELECT 44 DIV 12 * 23 * + 49
----
3381

skipif mysql # not compatible
query I rowsort label-1441
SELECT 44 / 12 * 23 * + 49
----
3381

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT ALL - 62 * MIN( ALL 74 ) + + - 79 col0
----
-4667

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL - 62 * MIN ( ALL 74 ) + + - 79 col0
----
-4667

query I rowsort
SELECT ALL + COALESCE ( - 48, - 57 * - + 38 * 4 ) AS col2
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1444
SELECT COALESCE ( 37, + + 83 - - ( - - 29 ) + + + COALESCE ( 45, + - COUNT( * ) ) DIV + - 91 ), COUNT( * ) AS col0
----
37
1

skipif mysql # not compatible
query II rowsort label-1444
SELECT COALESCE ( 37, + + 83 - - ( - - 29 ) + + + COALESCE ( 45, + - COUNT ( * ) ) / + - 91 ), COUNT ( * ) AS col0
----
37
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT ALL + COALESCE ( - 54, 69 ) * + 80 + + 4 - - - MIN( ALL + 52 ) col0
----
-4368

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL + COALESCE ( - 54, 69 ) * + 80 + + 4 - - - MIN ( ALL + 52 ) col0
----
-4368

query I rowsort
SELECT DISTINCT - 29 * - - 99 * + 47 + - + 89 * + 10 * 47 + + 84
----
-176683

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT ALL COUNT( * ) * + 91 + - + COALESCE ( + 7, - 37 * 27 * - 34 + - - ( - 97 ) ) + + 14
----
98

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL COUNT ( * ) * + 91 + - + COALESCE ( + 7, - 37 * 27 * - 34 + - - ( - 97 ) ) + + 14
----
98

query I rowsort
SELECT - 75 + - 92
----
-167

onlyif mysql # aggregate syntax: 
query II rowsort label-1449
SELECT ALL + NULLIF ( + ( - NULLIF ( COUNT( * ), 39 ) ), - + 90 + + ( + + 97 ) ) col0, 96
----
-1
96

skipif mysql # not compatible
query II rowsort label-1449
SELECT ALL + NULLIF ( + ( - NULLIF ( COUNT ( * ), 39 ) ), - + 90 + + ( + + 97 ) ) col0, 96
----
-1
96

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

skipif mysql # not compatible
query I rowsort label-1450
SELECT + COUNT ( * ) * - 44 + - 2 AS col0
----
-46

query I rowsort
SELECT ALL 46 * - + 87 * - 33 + - 58 * 11
----
131428

onlyif mysql # DIV for integer division: 
query II rowsort label-1452
SELECT ALL 89 * - - 97 + - 95 col1, + 57 + - 25 DIV + 62 AS col2
----
8538
57

skipif mysql # not compatible
query II rowsort label-1452
SELECT ALL 89 * - - 97 + - 95 col1, + 57 + - 25 / + 62 AS col2
----
8538
57

query I rowsort
SELECT DISTINCT + 12 * 38
----
456

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1455
SELECT DISTINCT 58 * + COUNT( * ) - - 42, + 55 * + 68 AS col1
----
100
3740

skipif mysql # not compatible
query II rowsort label-1455
SELECT DISTINCT 58 * + COUNT ( * ) - - 42, + 55 * + 68 AS col1
----
100
3740

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT ALL - 85 * COALESCE ( - - 89, - 30 * + 96, + SUM( ALL 78 ) )
----
-7565

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL - 85 * COALESCE ( - - 89, - 30 * + 96, + SUM ( ALL 78 ) )
----
-7565

query I rowsort
SELECT ALL + - 29 col2
----
-29

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

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

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

skipif mysql # not compatible
query I rowsort label-1459
SELECT SUM ( - - 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT 69 * - 74 * + SUM( CASE + 71 WHEN + 1 THEN - 75 END ) - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1460
SELECT 69 * - 74 * + SUM ( CASE + 71 WHEN + 1 THEN - 75 END ) - - 34
----
NULL

query I rowsort
SELECT + - 63 * + 40 AS col0
----
-2520

query I rowsort
SELECT ALL - 8 * + 30
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT ALL + ( + COUNT( 29 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL + ( + COUNT ( 29 ) ) col2
----
1

query I rowsort
SELECT + 1 * 7
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1465
SELECT ALL - CASE + CAST( + - 97 AS SIGNED ) WHEN - SUM( DISTINCT 46 ) THEN 82 WHEN 59 THEN NULL END * + COALESCE ( + 55, COUNT( * ), 92 ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL - CASE + CAST ( + - 97 AS INTEGER ) WHEN - SUM ( DISTINCT 46 ) THEN 82 WHEN 59 THEN NULL END * + COALESCE ( + 55, COUNT ( * ), 92 ) * - + COUNT ( * )
----
NULL

query I rowsort
SELECT + 28 - 1 col0
----
27

query I rowsort
SELECT - 68 * + - 91 - - 86 + - 85 col1
----
6189

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT + - 62 * - 48 + - COUNT( * ) + - 72
----
2903

skipif mysql # not compatible
query I rowsort label-1468
SELECT + - 62 * - 48 + - COUNT ( * ) + - 72
----
2903

query I rowsort
SELECT + 42 * + 58 AS col2
----
2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1470
SELECT ALL + 81 + 83 + - COUNT( * ) * + CAST( NULL AS SIGNED ), + 15 * + 16 * - ( - - COUNT( * ) ) AS col2
----
NULL
-240

skipif mysql # not compatible
query II rowsort label-1470
SELECT ALL + 81 + 83 + - COUNT ( * ) * + CAST ( NULL AS INTEGER ), + 15 * + 16 * - ( - - COUNT ( * ) ) AS col2
----
NULL
-240

query II rowsort
SELECT - + 67 col0, + 96
----
-67
96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1473
SELECT + + 1 * - + 52 * 86 + CASE - 3 WHEN - CAST( + 97 AS SIGNED ) THEN - + 73 END * SUM( DISTINCT 18 ) / + 58 AS col2, + 78 - - 36 AS col2
----
NULL
114

skipif mysql # not compatible
query II rowsort label-1473
SELECT + + 1 * - + 52 * 86 + CASE - 3 WHEN - CAST ( + 97 AS INTEGER ) THEN - + 73 END * SUM ( DISTINCT 18 ) / + 58 AS col2, + 78 - - 36 AS col2
----
NULL
114

onlyif mysql # DIV for integer division: 
query I rowsort label-1474
SELECT DISTINCT 41 + - - 69 + - 41 - - 64 DIV + 13 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT 41 + - - 69 + - 41 - - 64 / + 13 AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1475
SELECT ALL COALESCE ( - 17, + + 30 ) + COUNT( * ) DIV + - 83
----
-17

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL COALESCE ( - 17, + + 30 ) + COUNT ( * ) / + - 83
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT ALL 70 + NULLIF ( + 58, - 41 * - - COUNT( * ) )
----
128

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL 70 + NULLIF ( + 58, - 41 * - - COUNT ( * ) )
----
128

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

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

query I rowsort
SELECT ALL 93 + + 41 AS col0
----
134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT + 63 - 53 - + 61 * COUNT( * ) * 71
----
-4321

skipif mysql # not compatible
query I rowsort label-1480
SELECT + 63 - 53 - + 61 * COUNT ( * ) * 71
----
-4321

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1484
SELECT 25 DIV - - MAX( ALL + 76 ) + + SUM( - - CAST( + 95 AS SIGNED ) ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1484
SELECT 25 / - - MAX ( ALL + 76 ) + + SUM ( - - CAST ( + 95 AS INTEGER ) ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1485
SELECT ALL 17 * + SUM( DISTINCT - + 66 ) - - - 94, SUM( + + 52 ) col0
----
-1216
52

skipif mysql # not compatible
query II rowsort label-1485
SELECT ALL 17 * + SUM ( DISTINCT - + 66 ) - - - 94, SUM ( + + 52 ) col0
----
-1216
52

onlyif mysql # DIV for integer division: 
query I rowsort label-1486
SELECT ALL - NULLIF ( 55, - 39 * - 70 ) DIV - - 76 + 76
----
76

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL - NULLIF ( 55, - 39 * - 70 ) / - - 76 + 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT + 73 * + CASE - 81 WHEN + 54 + - 20 * - ( + 2 ) - - COUNT( + 67 ) THEN MAX( + - 16 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1487
SELECT + 73 * + CASE - 81 WHEN + 54 + - 20 * - ( + 2 ) - - COUNT ( + 67 ) THEN MAX ( + - 16 ) END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT - - 9 + + MAX( ALL 6 )
----
15

skipif mysql # not compatible
query I rowsort label-1489
SELECT - - 9 + + MAX ( ALL 6 )
----
15

query I rowsort
SELECT + + 98 + + 69 + 53 * - 85 * + 53 AS col2
----
-238598

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1491
SELECT - + 92 DIV - 32, MIN( DISTINCT - 17 ) AS col2
----
2
-17

skipif mysql # not compatible
query II rowsort label-1491
SELECT - + 92 / - 32, MIN ( DISTINCT - 17 ) AS col2
----
2
-17

query I rowsort
SELECT 23 * - 15 + + - 22 + - + 17
----
-384

query I rowsort
SELECT - - 18 - + 72
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT - - SUM( + - 26 ) + 26 - - 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1494
SELECT - - SUM ( + - 26 ) + 26 - - 25 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT DISTINCT - MAX( + 31 ) + - 51 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT - MAX ( + 31 ) + - 51 AS col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1496
SELECT ALL - - 78 + + + CAST( - 7 AS SIGNED ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL - - 78 + + + CAST ( - 7 AS INTEGER ) AS col2
----
71

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

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

query I rowsort
SELECT - 88 + + ( - + 75 )
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1499
SELECT DISTINCT + 25 + NULLIF ( - 54, - - 53 * + + 82 * + 94 + + CASE + 40 WHEN + ( + + 13 ) * + 53 + - COUNT( * ) THEN + + CASE 48 WHEN - 90 THEN + 88 + + + 82 WHEN + 59 THEN NULL END WHEN 69 THEN NULL ELSE 79 * + 21 END * - - 75 + + 1 * + CAST( + 50 AS SIGNED ) - - 96 + 37 ) * - 70 col1
----
3805

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT + 25 + NULLIF ( - 54, - - 53 * + + 82 * + 94 + + CASE + 40 WHEN + ( + + 13 ) * + 53 + - COUNT ( * ) THEN + + CASE 48 WHEN - 90 THEN + 88 + + + 82 WHEN + 59 THEN NULL END WHEN 69 THEN NULL ELSE 79 * + 21 END * - - 75 + + 1 * + CAST ( + 50 AS INTEGER ) - - 96 + 37 ) * - 70 col1
----
3805

query I rowsort
SELECT DISTINCT + 3 * 55
----
165

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT ALL 94 + 22 + COUNT( * ) * 48 AS col1
----
164

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL 94 + 22 + COUNT ( * ) * 48 AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT DISTINCT + 84 + - 1 * - + COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT + 84 + - 1 * - + COUNT ( * ) AS col1
----
85

query I rowsort
SELECT DISTINCT + 75 * 45 AS col0
----
3375

query I rowsort
SELECT 43 * - 73
----
-3139

query I rowsort
SELECT 59 + - 89
----
-30

query I rowsort
SELECT DISTINCT 57 - ( 7 )
----
50

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1509
SELECT ALL MAX( ALL 24 ) - + 53 DIV - MIN( - 50 ) col0
----
23

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL MAX ( ALL 24 ) - + 53 / - MIN ( - 50 ) col0
----
23

query I rowsort
SELECT 75 * - 91 AS col0
----
-6825

query I rowsort
SELECT DISTINCT 85 * + 9
----
765

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1512
SELECT AVG ( CASE + - 67 WHEN + - 42 - + - 45 THEN + - 92 + 97 / - - 24 * - 51 * + + 67 END ) * + - COUNT( * ) * + 79 * CAST( + 18 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1512
SELECT AVG ( CASE + - 67 WHEN + - 42 - + - 45 THEN + - 92 + 97 / - - 24 * - 51 * + + 67 END ) * + - COUNT ( * ) * + 79 * CAST ( + 18 AS REAL )
----
NULL

query I rowsort
SELECT 23 * + 15
----
345

query I rowsort
SELECT DISTINCT - 30 * + 91 col1
----
-2730

onlyif mysql # DIV for integer division: 
query I rowsort label-1515
SELECT - 61 * 36 DIV COALESCE ( 25, - 74 ) DIV - 72 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1515
SELECT - 61 * 36 / COALESCE ( 25, - 74 ) / - 72 AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT ALL - CASE - 23 WHEN 27 THEN - + COUNT( + 0 ) * - 96 * + ( - ( + - 47 ) ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL - CASE - 23 WHEN 27 THEN - + COUNT ( + 0 ) * - 96 * + ( - ( + - 47 ) ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1518
SELECT 40 * - - COUNT( * ) * + 36 AS col2, 71 AS col2
----
1440
71

skipif mysql # not compatible
query II rowsort label-1518
SELECT 40 * - - COUNT ( * ) * + 36 AS col2, 71 AS col2
----
1440
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT COUNT( * ) * + 35 * + 47 * - 11
----
-18095

skipif mysql # not compatible
query I rowsort label-1519
SELECT COUNT ( * ) * + 35 * + 47 * - 11
----
-18095

query I rowsort
SELECT + COALESCE ( - - 89, 28, ( - + 90 ) + + 29 + - 49 + - 74 * - 76 ) * - + 17 * - 70
----
105910

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT 32 DIV 2 + - + 65 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-1521
SELECT 32 / 2 + - + 65 AS col2
----
-49

query I rowsort
SELECT 19 - 78 * - - 17
----
-1307

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT DISTINCT + COUNT( + 80 ) + - SUM( + + 95 )
----
-94

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT + COUNT ( + 80 ) + - SUM ( + + 95 )
----
-94

query I rowsort
SELECT ALL 47 + + 45
----
92

query I rowsort
SELECT DISTINCT + 73 + + + 5 + + 82
----
160

query I rowsort
SELECT ALL + ( ( - COALESCE ( + ( - ( 5 ) ), + + 56 ) ) ) AS col0
----
5

query I rowsort
SELECT ALL + 40 + 96
----
136

query I rowsort
SELECT DISTINCT + 88 + + 82 AS col0
----
170

query I rowsort
SELECT ALL + 70 - 4
----
66

query I rowsort
SELECT 53 * + 96 AS col0
----
5088

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT MAX( ALL + + 46 ) * + ( + 28 ) + COUNT( * ) - 3
----
1286

skipif mysql # not compatible
query I rowsort label-1531
SELECT MAX ( ALL + + 46 ) * + ( + 28 ) + COUNT ( * ) - 3
----
1286

query II rowsort
SELECT - 71 AS col1, - 98
----
-71
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1533
SELECT 63 + + CAST( NULL AS SIGNED ) - - 22 + - 32 + + + 15 / 98 / 48 / 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1533
SELECT 63 + + CAST ( NULL AS INTEGER ) - - 22 + - 32 + + + 15 / 98 / 48 / 76 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT ALL COUNT( * ) * 10 * 98 * + 80
----
78400

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL COUNT ( * ) * 10 * 98 * + 80
----
78400

query II rowsort
SELECT + 37 AS col2, ( - 87 )
----
37
-87

query I rowsort
SELECT ALL + 35 * + + 70 * + 64 * + 73
----
11446400

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT 68 + + + 94 * - COUNT( ALL + + NULLIF ( - - 48, + 15 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-1537
SELECT 68 + + + 94 * - COUNT ( ALL + + NULLIF ( - - 48, + 15 ) )
----
-26

query I rowsort
SELECT ALL + 26 * 85
----
2210

query I rowsort
SELECT ALL - 63 * - 26 AS col2
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT COUNT( * ) * 56 + 89 * + - 85 AS col0
----
-7509

skipif mysql # not compatible
query I rowsort label-1540
SELECT COUNT ( * ) * 56 + 89 * + - 85 AS col0
----
-7509

query I rowsort
SELECT 63 * - 41 + + - 7 + - - 53 col2
----
-2537

onlyif mysql # DIV for integer division: 
query II rowsort label-1542
SELECT ALL - 68 AS col2, 90 DIV 69 AS col2
----
-68
1

skipif mysql # not compatible
query II rowsort label-1542
SELECT ALL - 68 AS col2, 90 / 69 AS col2
----
-68
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT COUNT( * ) + - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1543
SELECT COUNT ( * ) + - COUNT ( * ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT ALL + + 62 * - + MAX( - + 82 ) * + ( - 9 )
----
-45756

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL + + 62 * - + MAX ( - + 82 ) * + ( - 9 )
----
-45756

query II rowsort
SELECT DISTINCT - 99, - ( + 81 ) AS col1
----
-99
-81

query I rowsort
SELECT 86 + - - 57 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT ALL + ( - 16 ) + + 20 + - + COALESCE ( COUNT( * ), 43, 49 * 72 )
----
3

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL + ( - 16 ) + + 20 + - + COALESCE ( COUNT ( * ), 43, 49 * 72 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1548
SELECT DISTINCT - - NULLIF ( - 33, - 63 * + 99 * - + 81 + + + 39 + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT - - NULLIF ( - 33, - 63 * + 99 * - + 81 + + + 39 + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) ) col2
----
-33

query I rowsort
SELECT ALL + 51 + 59 * + 60
----
3591

query I rowsort
SELECT ALL 7 * ( + 70 )
----
490

query I rowsort
SELECT DISTINCT 46 + - 35
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-1552
SELECT + + 39 AS col2, COALESCE ( + - 6, - + 87 * + + COUNT( * ) )
----
39
-6

skipif mysql # not compatible
query II rowsort label-1552
SELECT + + 39 AS col2, COALESCE ( + - 6, - + 87 * + + COUNT ( * ) )
----
39
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1553
SELECT - 34 + - 66 * - + ( - ( 57 ) ) + ( + 47 ), 47 + 16 * + - COUNT( * ) AS col0
----
-3749
31

skipif mysql # not compatible
query II rowsort label-1553
SELECT - 34 + - 66 * - + ( - ( 57 ) ) + ( + 47 ), 47 + 16 * + - COUNT ( * ) AS col0
----
-3749
31

query II rowsort
SELECT - 51 AS col2, + 31 - + 31
----
-51
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1555
SELECT + 90 * + ( ( + + CAST( 7 AS SIGNED ) ) ) + - 56 AS col0
----
574

skipif mysql # not compatible
query I rowsort label-1555
SELECT + 90 * + ( ( + + CAST ( 7 AS INTEGER ) ) ) + - 56 AS col0
----
574

onlyif mysql # DIV for integer division: 
query I rowsort label-1556
SELECT + 17 - - ( + ( + 96 ) ) DIV + 2
----
65

skipif mysql # not compatible
query I rowsort label-1556
SELECT + 17 - - ( + ( + 96 ) ) / + 2
----
65

query II rowsort
SELECT ALL - 75 col0, - 97 AS col1
----
-75
-97

query II rowsort
SELECT + ( - 68 ) AS col0, 87
----
-68
87

query I rowsort
SELECT DISTINCT - 83 + 86 * 0
----
-83

query I rowsort
SELECT ALL + 25 + NULLIF ( - 88, + 81 * + 90 + + 62 ) * + 96 * 16 AS col0
----
-135143

onlyif mysql # DIV for integer division: 
query I rowsort label-1561
SELECT ALL - 44 + 43 DIV - - 61 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL - 44 + 43 / - - 61 AS col0
----
-44

query II rowsort
SELECT ALL - 55 AS col2, - 72 - + 18 + - 8 - + 40
----
-55
-138

query II rowsort
SELECT 87, - 46 + ( + + 15 ) + - 17 * + 58 col0
----
87
-1017

query I rowsort
SELECT - - 89 + + 3
----
92

query I rowsort
SELECT ALL 80 - - 83 AS col1
----
163

query I rowsort
SELECT - 11 + - 6 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-1567
SELECT ALL 17 - + 7, COUNT( * ) AS col0
----
10
1

skipif mysql # not compatible
query II rowsort label-1567
SELECT ALL 17 - + 7, COUNT ( * ) AS col0
----
10
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1568
SELECT + 23 DIV 19 AS col2, 30 AS col1
----
1
30

skipif mysql # not compatible
query II rowsort label-1568
SELECT + 23 / 19 AS col2, 30 AS col1
----
1
30

query I rowsort
SELECT - 29 * - 44
----
1276

onlyif mysql # aggregate syntax: 
query II rowsort label-1570
SELECT + 40 + + - COUNT( * ) * + COALESCE ( + + 43, 9 ) AS col2, - COUNT( * ) AS col0
----
-3
-1

skipif mysql # not compatible
query II rowsort label-1570
SELECT + 40 + + - COUNT ( * ) * + COALESCE ( + + 43, 9 ) AS col2, - COUNT ( * ) AS col0
----
-3
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT + MAX( - + 30 ) * 53 + + 86 AS col2
----
-1504

skipif mysql # not compatible
query I rowsort label-1571
SELECT + MAX ( - + 30 ) * 53 + + 86 AS col2
----
-1504

query I rowsort
SELECT ALL + 66 * + + 61 col2
----
4026

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT + NULLIF ( - 9, + COUNT( * ) ) + + 79
----
70

skipif mysql # not compatible
query I rowsort label-1573
SELECT + NULLIF ( - 9, + COUNT ( * ) ) + + 79
----
70

query I rowsort
SELECT ALL NULLIF ( 26, + 49 )
----
26

query I rowsort
SELECT - 63 + + + 36 AS col2
----
-27

query I rowsort
SELECT + ( - + 77 ) * + 91 col2
----
-7007

query I rowsort
SELECT - 39 + 86 AS col2
----
47

query I rowsort
SELECT ALL COALESCE ( - 47, 55 - + + 33 * - 61 * + 18, - 45 )
----
-47

query I rowsort
SELECT DISTINCT CASE + + 35 WHEN - 79 THEN 55 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT ALL COALESCE ( - 20, - - COUNT( * ), - MAX( DISTINCT 86 ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL COALESCE ( - 20, - - COUNT ( * ), - MAX ( DISTINCT 86 ) ) AS col0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-1581
SELECT 95 DIV - 62 + - 84
----
-85

skipif mysql # not compatible
query I rowsort label-1581
SELECT 95 / - 62 + - 84
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1582
SELECT ( 7 ) AS col1, 34 * + CAST( NULL AS DECIMAL ) col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-1582
SELECT ( 7 ) AS col1, 34 * + CAST ( NULL AS REAL ) col1
----
7
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1583
SELECT ALL - ( + 79 ) DIV 42
----
-1

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL - ( + 79 ) / 42
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT ALL 85 * + 80 + 25 + + - COUNT( + 66 )
----
6824

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL 85 * + 80 + 25 + + - COUNT ( + 66 )
----
6824

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT ALL + + 19 * + + 52 + - - COUNT( * ) * - 2 AS col2
----
986

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL + + 19 * + + 52 + - - COUNT ( * ) * - 2 AS col2
----
986

query I rowsort
SELECT - - 7 * 15 + 91 + - 32 AS col0
----
164

query I rowsort
SELECT DISTINCT - 79 * - 29 + + 2 AS col0
----
2293

query II rowsort
SELECT - 96 * 33 AS col1, + 49
----
-3168
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1589
SELECT DISTINCT - - 72 * 7 DIV + 29 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT - - 72 * 7 / + 29 AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1590
SELECT - + 9 * 92 DIV 33 + + + 10 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1590
SELECT - + 9 * 92 / 33 + + + 10 AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1591
SELECT + 42 * 98 + + + COUNT( * ) - - 5 + 84 * - CAST( - 39 AS SIGNED ) * - - 60 + + - COUNT( * ) + ( 67 ) + - 86 - + + 6 col2
----
200656

skipif mysql # not compatible
query I rowsort label-1591
SELECT + 42 * 98 + + + COUNT ( * ) - - 5 + 84 * - CAST ( - 39 AS INTEGER ) * - - 60 + + - COUNT ( * ) + ( 67 ) + - 86 - + + 6 col2
----
200656

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT ALL + COUNT( ALL - 49 ) * - 46 - - 9 - + + 41 * 33 + - 19 * + - 41
----
-611

skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL + COUNT ( ALL - 49 ) * - 46 - - 9 - + + 41 * 33 + - 19 * + - 41
----
-611

query I rowsort
SELECT + ( 25 ) * + 81 * + - ( - - 14 )
----
-28350

query I rowsort
SELECT ALL + - 38 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT DISTINCT - 49 * 11 + + + COALESCE ( - + 73, - - 27, 71 + + - COUNT( * ), - - COUNT( 16 ) ) - + 42
----
-654

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT - 49 * 11 + + + COALESCE ( - + 73, - - 27, 71 + + - COUNT ( * ), - - COUNT ( 16 ) ) - + 42
----
-654

query I rowsort
SELECT ALL 67 * 94 + 57 + - - 77 + - 74 - CASE + 76 WHEN + 32 + + + 80 * 83 * - 93 THEN - + 10 WHEN 42 THEN NULL END * - - 62 / 54 * - 51
----
NULL

query I rowsort
SELECT + - 2 * + 82 AS col2
----
-164

query I rowsort
SELECT + 71 * 33 - 5 * + + 4
----
2323

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

query II rowsort
SELECT ALL 57, - 97 - - 16 * - 7 * + 38 - 61 * - 35 AS col2
----
57
-2218

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT ALL 93 * + CASE 85 WHEN COUNT( * ) * + 42 + - + 90 THEN - - 66 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL 93 * + CASE 85 WHEN COUNT ( * ) * + 42 + - + 90 THEN - - 66 END AS col0
----
NULL

query I rowsort
SELECT + 99 - 55 AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1604
SELECT + 5 DIV + + 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1604
SELECT + 5 / + + 85 AS col0
----
0

query I rowsort
SELECT + 17 * - + 45 col1
----
-765

query I rowsort
SELECT DISTINCT 40 * + 31 AS col2
----
1240

onlyif mysql # aggregate syntax: 
query II rowsort label-1607
SELECT ALL 68, 29 + - ( + 19 ) - 2 * - COUNT( * ) + - + 14 AS col1
----
68
-2

skipif mysql # not compatible
query II rowsort label-1607
SELECT ALL 68, 29 + - ( + 19 ) - 2 * - COUNT ( * ) + - + 14 AS col1
----
68
-2

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL 27 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1611
SELECT + 33 DIV + - 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1611
SELECT + 33 / + - 47 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1612
SELECT - 39 DIV + ( - 68 ) * - - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1612
SELECT - 39 / + ( - 68 ) * - - COUNT ( * ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1613
SELECT DISTINCT 62 DIV - 48 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT 62 / - 48 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1614
SELECT + MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) + 48 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1614
SELECT + MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + 48 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1615
SELECT ALL 91 / CAST( NULL AS SIGNED ) * - ( COUNT( * ) ) * + - 48 * - 1 * + 57 + + + SUM( ALL - ( - 81 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL 91 / CAST ( NULL AS INTEGER ) * - ( COUNT ( * ) ) * + - 48 * - 1 * + 57 + + + SUM ( ALL - ( - 81 ) ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1616
SELECT + 3 DIV + 21
----
0

skipif mysql # not compatible
query I rowsort label-1616
SELECT + 3 / + 21
----
0

query II rowsort
SELECT ALL - 63 + - + 87 + 26, 10 AS col1
----
-124
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1618
SELECT ALL 85 + + COUNT( * ) - + 74 col0, ( - 99 ) + + 45 DIV - 32 + + 92
----
12
-8

skipif mysql # not compatible
query II rowsort label-1618
SELECT ALL 85 + + COUNT ( * ) - + 74 col0, ( - 99 ) + + 45 / - 32 + + 92
----
12
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT ALL + NULLIF ( + + 14, 63 - - + COALESCE ( - + COUNT( * ), 77 ) ) + 57 * 10 AS col0
----
584

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL + NULLIF ( + + 14, 63 - - + COALESCE ( - + COUNT ( * ), 77 ) ) + 57 * 10 AS col0
----
584

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT ALL MIN( DISTINCT + 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL MIN ( DISTINCT + 19 ) AS col1
----
19

query I rowsort
SELECT DISTINCT - 51 + + 64 AS col2
----
13

query I rowsort
SELECT + 80 + - - 91
----
171

query I rowsort
SELECT - + 24 * 30 AS col0
----
-720

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1624
SELECT ALL + 81 DIV COUNT( * ) + - 61, + 92 + - 78 AS col0
----
20
14

skipif mysql # not compatible
query II rowsort label-1624
SELECT ALL + 81 / COUNT ( * ) + - 61, + 92 + - 78 AS col0
----
20
14

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

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

query II rowsort
SELECT + 18, + 45 col1
----
18
45

query I rowsort
SELECT - 86 * - 50
----
4300

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT + COUNT( * ) + - 66 col2
----
-65

skipif mysql # not compatible
query I rowsort label-1628
SELECT + COUNT ( * ) + - 66 col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT DISTINCT - NULLIF ( - 50, 68 * - 38 / + COUNT( - 96 ) + - - 64 + + 9 * 88 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT - NULLIF ( - 50, 68 * - 38 / + COUNT ( - 96 ) + - - 64 + + 9 * 88 ) AS col2
----
50

query I rowsort
SELECT 48 + + - 4 * + 91 AS col2
----
-316

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT ALL - COUNT( * ) * 87 * 26 + COALESCE ( - - 69, - - 21 )
----
-2193

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL - COUNT ( * ) * 87 * 26 + COALESCE ( - - 69, - - 21 )
----
-2193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1633
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - 73 - - 28 ) / - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - 73 - - 28 ) / - + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT + CASE + 10 WHEN + COUNT( * ) * - 35 THEN + + 92 * + ( - - ( + - 33 ) ) - - - MIN( DISTINCT + ( - + 89 ) ) END * 40 * NULLIF ( + - NULLIF ( 49, - + 44 ), - 67 + - COUNT( * ) ) * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1634
SELECT + CASE + 10 WHEN + COUNT ( * ) * - 35 THEN + + 92 * + ( - - ( + - 33 ) ) - - - MIN ( DISTINCT + ( - + 89 ) ) END * 40 * NULLIF ( + - NULLIF ( 49, - + 44 ), - 67 + - COUNT ( * ) ) * - 56
----
NULL

query I rowsort
SELECT DISTINCT - - 2 * - + 0
----
0

query I rowsort
SELECT 17 * 61
----
1037

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1638
SELECT + COUNT( * ) * + 69 * - + 46 * + 45 * + + 51 * + 99 + + 5 - + CAST( + - 75 AS SIGNED ) / - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1638
SELECT + COUNT ( * ) * + 69 * - + 46 * + 45 * + + 51 * + 99 + + 5 - + CAST ( + - 75 AS INTEGER ) / - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT 64 - - COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-1639
SELECT 64 - - COUNT ( * ) AS col1
----
65

query I rowsort
SELECT 72 + - 49 + + - 20 AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1641
SELECT DISTINCT - NULLIF ( + 46, + + 79 - + 31 + - - CAST( 79 AS SIGNED ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT - NULLIF ( + 46, + + 79 - + 31 + - - CAST ( 79 AS INTEGER ) ) AS col2
----
-46

query II rowsort
SELECT 68 * - 15 AS col0, 57 col0
----
-1020
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1643
SELECT 4 * + 4 AS col1, + ( - CAST( NULL AS SIGNED ) ) + + 76 AS col0
----
16
NULL

skipif mysql # not compatible
query II rowsort label-1643
SELECT 4 * + 4 AS col1, + ( - CAST ( NULL AS INTEGER ) ) + + 76 AS col0
----
16
NULL

query I rowsort
SELECT - 53 * - + NULLIF ( 15, - - 73 ) * 43 + - 57 * 39 AS col0
----
31962

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT ALL COUNT( * ) + + 80 col0
----
81

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL COUNT ( * ) + + 80 col0
----
81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1647
SELECT 94 + CAST( 63 AS SIGNED ) AS col2
----
157

skipif mysql # not compatible
query I rowsort label-1647
SELECT 94 + CAST ( 63 AS INTEGER ) AS col2
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-1648
SELECT DISTINCT 39 + 57 * + CASE WHEN NOT NULL <= NULL THEN + 74 ELSE + + 26 DIV - 74 + 57 END AS col0
----
3288

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT 39 + 57 * + CASE WHEN NOT NULL <= NULL THEN + 74 ELSE + + 26 / - 74 + 57 END AS col0
----
3288

query I rowsort
SELECT DISTINCT - 22 * - - 35 AS col1
----
-770

query II rowsort
SELECT ALL 85 + NULLIF ( + 80, 36 ) AS col1, 49 * 7 AS col0
----
165
343

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT DISTINCT COUNT( * ) + + - 69 - - 93
----
25

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT COUNT ( * ) + + - 69 - - 93
----
25

query I rowsort
SELECT DISTINCT 79 + - ( - 15 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT - 87 * + + COUNT( * ) * + 91 AS col1
----
-7917

skipif mysql # not compatible
query I rowsort label-1653
SELECT - 87 * + + COUNT ( * ) * + 91 AS col1
----
-7917

query I rowsort
SELECT 63 * - 81 * - - 35 * + + 58 * - 71
----
735495390

query I rowsort
SELECT ALL 31 * + 33 * - - 57 AS col1
----
58311

query I rowsort
SELECT DISTINCT ( - 49 ) * 88 + 8
----
-4304

query I rowsort
SELECT ALL - 6 - + 30
----
-36

query I rowsort
SELECT DISTINCT - + 93 AS col2
----
-93

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

query I rowsort
SELECT 32 * - 22
----
-704

query I rowsort
SELECT ALL + 46 - - - 26
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT - - COALESCE ( - 93, 67, - 51 + SUM( 60 ) * + COUNT( * ) ) * - 83 * - 35 * 80 - - 85 AS col2
----
-21613115

skipif mysql # not compatible
query I rowsort label-1662
SELECT - - COALESCE ( - 93, 67, - 51 + SUM ( 60 ) * + COUNT ( * ) ) * - 83 * - 35 * 80 - - 85 AS col2
----
-21613115

query II rowsort
SELECT 12 * 81 AS col0, ( 89 ) AS col0
----
972
89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT - ( + COUNT( * ) ) * - 78 * - 81 - - 46 col1
----
-6272

skipif mysql # not compatible
query I rowsort label-1665
SELECT - ( + COUNT ( * ) ) * - 78 * - 81 - - 46 col1
----
-6272

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT ALL 58 + - MAX( DISTINCT 94 ) * MAX( + - 14 ) * + 84 + - 11 + 41 + - + COUNT( * ) * - 64 * - 38 AS col2
----
108200

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL 58 + - MAX ( DISTINCT 94 ) * MAX ( + - 14 ) * + 84 + - 11 + 41 + - + COUNT ( * ) * - 64 * - 38 AS col2
----
108200

onlyif mysql # DIV for integer division: 
query I rowsort label-1668
SELECT DISTINCT + 26 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT + 26 / - 32
----
0

query I rowsort
SELECT ALL + 8 * - - 28
----
224

onlyif mysql # aggregate syntax: 
query II rowsort label-1670
SELECT + 20 AS col0, SUM( DISTINCT + 65 )
----
20
65

skipif mysql # not compatible
query II rowsort label-1670
SELECT + 20 AS col0, SUM ( DISTINCT + 65 )
----
20
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT ALL - 35 + + + 21 - NULLIF ( + COUNT( * ), 92 * + + 13 ) * 29 * - 89 + - + 77 * - 37
----
5416

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL - 35 + + + 21 - NULLIF ( + COUNT ( * ), 92 * + + 13 ) * 29 * - 89 + - + 77 * - 37
----
5416

query I rowsort
SELECT ALL + 81 + + 55
----
136

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

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

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

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

query I rowsort
SELECT ALL - 36 + - 34
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL MIN( DISTINCT 90 )
----
90

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL MIN ( DISTINCT 90 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1677
SELECT 29 * - - MIN( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1677
SELECT 29 * - - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1678
SELECT 21 AS col0, 74 DIV 40 * - - 35
----
21
35

skipif mysql # not compatible
query II rowsort label-1678
SELECT 21 AS col0, 74 / 40 * - - 35
----
21
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT COUNT( * ) + - - 98 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-1679
SELECT COUNT ( * ) + - - 98 AS col1
----
99

query I rowsort
SELECT DISTINCT COALESCE ( + + 65, - 23 ) AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1681
SELECT ALL + 73 * CASE + 80 WHEN + CAST( - 21 AS SIGNED ) THEN + 89 WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL + 73 * CASE + 80 WHEN + CAST ( - 21 AS INTEGER ) THEN + 89 WHEN - COUNT ( * ) THEN NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 19 * + NULLIF ( + 41, + + 83 * - 35 + + 55 ) AS col0
----
779

query I rowsort
SELECT ALL + 58 * - 82 AS col2
----
-4756

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT ALL COUNT( * ) * + 51 + + + ( - - 92 ) * - 29
----
-2617

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL COUNT ( * ) * + 51 + + + ( - - 92 ) * - 29
----
-2617

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT ALL + + 35 * + ( - NULLIF ( - NULLIF ( + 14, + - 1 * + ( + 40 ) * + 28 + - 11 ), ( COUNT( * ) ) ) )
----
490

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL + + 35 * + ( - NULLIF ( - NULLIF ( + 14, + - 1 * + ( + 40 ) * + 28 + - 11 ), ( COUNT ( * ) ) ) )
----
490

query I rowsort
SELECT DISTINCT + 8 * + - 31
----
-248

query I rowsort
SELECT + + 97 * + + 1 AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1689
SELECT ALL - CAST( + + 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL - CAST ( + + 65 AS INTEGER )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1690
SELECT + ( + COUNT( * ) ) / - MAX( ALL - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1690
SELECT + ( + COUNT ( * ) ) / - MAX ( ALL - - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT ALL 31 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL 31 / 97 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1693
SELECT + 64 DIV - + ( + 53 ) + + 90 * - 34 AS col0, COUNT( * ) * - - 60 DIV - 87
----
-3061
0

skipif mysql # not compatible
query II rowsort label-1693
SELECT + 64 / - + ( + 53 ) + + 90 * - 34 AS col0, COUNT ( * ) * - - 60 / - 87
----
-3061
0

query I rowsort
SELECT ALL 58 * + 44
----
2552

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1695
SELECT + - 70 + + 96 * - - 18 * 85 * 97 + CAST( + 24 AS SIGNED ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT + - 70 + + 96 * - - 18 * 85 * 97 + CAST ( + 24 AS INTEGER ) + - CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL + + MAX( DISTINCT - 98 ) * + 77 + 85 AS col1
----
-7461

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL + + MAX ( DISTINCT - 98 ) * + 77 + 85 AS col1
----
-7461

query I rowsort
SELECT ALL 20 * + + 65 AS col0
----
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT ALL - COALESCE ( + 99, - 19, + COUNT( * ) ) * - 8 * + 73 + 35 * ( + COALESCE ( 63, - - 77 * + 57 + - 10 ) ) AS col1
----
60021

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL - COALESCE ( + 99, - 19, + COUNT ( * ) ) * - 8 * + 73 + 35 * ( + COALESCE ( 63, - - 77 * + 57 + - 10 ) ) AS col1
----
60021

query I rowsort
SELECT DISTINCT 11 * 5 col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT ALL - 68 * + + 78 + - COUNT( * ) AS col0
----
-5305

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL - 68 * + + 78 + - COUNT ( * ) AS col0
----
-5305

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT + COALESCE ( - COUNT( * ), - 15 - - 32 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1702
SELECT + COALESCE ( - COUNT ( * ), - 15 - - 32 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT MAX( + - 48 ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-1703
SELECT MAX ( + - 48 ) col2
----
-48

query I rowsort
SELECT DISTINCT + 59 * ( 86 )
----
5074

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT ALL + MAX( 75 ) * + 74 + - 66 + - - 14
----
5498

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL + MAX ( 75 ) * + 74 + - 66 + - - 14
----
5498

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1706
SELECT - 56 * - COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) * + 56 * 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1706
SELECT - 56 * - COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) * + 56 * 13 AS col2
----
0

query I rowsort
SELECT - 33 + 34
----
1

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

query I rowsort
SELECT DISTINCT COALESCE ( - + 41, ( 97 ) ) col1
----
-41

query I rowsort
SELECT + 20 * 13
----
260

query I rowsort
SELECT - COALESCE ( + 12, - 11 ) * + + 96
----
-1152

onlyif mysql # aggregate syntax: 
query II rowsort label-1712
SELECT ALL + 41 * - COUNT( * ), - 68 * + COALESCE ( + 97, - COALESCE ( + 16, ( + 13 ) ), - 96 ) AS col0
----
-41
-6596

skipif mysql # not compatible
query II rowsort label-1712
SELECT ALL + 41 * - COUNT ( * ), - 68 * + COALESCE ( + 97, - COALESCE ( + 16, ( + 13 ) ), - 96 ) AS col0
----
-41
-6596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1713
SELECT - 38 + 40 + + - CAST( + + ( + + COUNT( * ) ) AS SIGNED ) * - - 76 + + 37 + + 60 * - MAX( DISTINCT - 54 )
----
3203

skipif mysql # not compatible
query I rowsort label-1713
SELECT - 38 + 40 + + - CAST ( + + ( + + COUNT ( * ) ) AS INTEGER ) * - - 76 + + 37 + + 60 * - MAX ( DISTINCT - 54 )
----
3203

query II rowsort
SELECT - 49, 65 AS col2
----
-49
65

query I rowsort
SELECT DISTINCT + - 75 - - NULLIF ( - ( 27 ), + 27 )
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT DISTINCT + 29 * - + 18 * + + 55 * 80 * COUNT( * ) AS col1
----
-2296800

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT + 29 * - + 18 * + + 55 * 80 * COUNT ( * ) AS col1
----
-2296800

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT ALL + 12 * SUM( 15 ) * - COUNT( * ) AS col1
----
-180

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL + 12 * SUM ( 15 ) * - COUNT ( * ) AS col1
----
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-1719
SELECT - 5 + 62 DIV - - NULLIF ( 42, - 54 * + 12 ) + + 36
----
32

skipif mysql # not compatible
query I rowsort label-1719
SELECT - 5 + 62 / - - NULLIF ( 42, - 54 * + 12 ) + + 36
----
32

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

query I rowsort
SELECT - 19 + + 92 col0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1722
SELECT ALL 82 AS col1, - MIN( DISTINCT - 33 ) + - 80 * - + 91
----
82
7313

skipif mysql # not compatible
query II rowsort label-1722
SELECT ALL 82 AS col1, - MIN ( DISTINCT - 33 ) + - 80 * - + 91
----
82
7313

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT - 62 * COUNT( * ) * - - 50
----
-3100

skipif mysql # not compatible
query I rowsort label-1723
SELECT - 62 * COUNT ( * ) * - - 50
----
-3100

query I rowsort
SELECT - 32 + + 74 AS col1
----
42

query II rowsort
SELECT ALL 16 AS col0, 29 * + - 34 + + 17 * + 2 + - - 78 AS col2
----
16
-874

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

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

query I rowsort
SELECT + + 43 + 12 col1
----
55

query I rowsort
SELECT DISTINCT ( 56 ) AS col2
----
56

query I rowsort
SELECT - - 74 * + 79
----
5846

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1731
SELECT ALL CAST( NULL AS SIGNED ) / ( - ( - COUNT( * ) ) ) + AVG ( DISTINCT + - 24 ) + + 8 * + 22 / 2 * - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL CAST ( NULL AS INTEGER ) / ( - ( - COUNT ( * ) ) ) + AVG ( DISTINCT + - 24 ) + + 8 * + 22 / 2 * - 57
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1734
SELECT ALL + - COUNT( * ) DIV 79 + + MIN( - 63 ) + - 24 + - 1 * - 25
----
-62

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL + - COUNT ( * ) / 79 + + MIN ( - 63 ) + - 24 + - 1 * - 25
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1735
SELECT - CAST( 57 AS SIGNED ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-1735
SELECT - CAST ( 57 AS INTEGER ) col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1736
SELECT ALL 53 DIV - COUNT( * ) + + + 99 col0
----
46

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL 53 / - COUNT ( * ) + + + 99 col0
----
46

query II rowsort
SELECT ALL + - 22 AS col0, - 37
----
-22
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1738
SELECT - 17 DIV - 86 * - 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1738
SELECT - 17 / - 86 * - 21 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1739
SELECT + 23 DIV - 90, - 18 * 78 - - - MIN( DISTINCT 94 ) col1
----
0
-1498

skipif mysql # not compatible
query II rowsort label-1739
SELECT + 23 / - 90, - 18 * 78 - - - MIN ( DISTINCT 94 ) col1
----
0
-1498

onlyif mysql # DIV for integer division: 
query I rowsort label-1740
SELECT ALL 47 DIV + + ( - 94 ) + + 21 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL 47 / + + ( - 94 ) + + 21 AS col2
----
21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1742
SELECT ALL - 24 / + 82 + - + CAST( NULL AS SIGNED ) * + 81 * + 68 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL - 24 / + 82 + - + CAST ( NULL AS INTEGER ) * + 81 * + 68 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ( - 19 ) col1, + 2
----
-19
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT DISTINCT 16 DIV - 42 + - - 73 * 77 * + 4 col2
----
22484

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT 16 / - 42 + - - 73 * 77 * + 4 col2
----
22484

query II rowsort
SELECT ( 35 ) AS col2, - 40 AS col0
----
35
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1746
SELECT DISTINCT 10 DIV - 2 col0
----
-5

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT 10 / - 2 col0
----
-5

query I rowsort
SELECT DISTINCT - 41 * 95 + + - 28 AS col1
----
-3923

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT DISTINCT 28 DIV + + 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT 28 / + + 89 AS col0
----
0

query II rowsort
SELECT ( + + 97 ) AS col2, - 28 * + 86
----
97
-2408

query I rowsort
SELECT 82 * - 39 - + 93 * + 73 AS col1
----
-9987

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1752
SELECT + 33 * + 52 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT + 33 * + 52 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT CASE + 22 WHEN - - 44 THEN NULL WHEN + + 4 THEN + 2 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 31 * + 59 - + 42
----
-1871

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

query II rowsort
SELECT NULLIF ( - - 6, 77 ), - 43 AS col2
----
6
-43

query I rowsort
SELECT 58 * ( + + 0 )
----
0

query I rowsort
SELECT DISTINCT ( + 39 ) * + + 94
----
3666

query I rowsort
SELECT - 80 * 3 + + - 22 AS col2
----
-262

query I rowsort
SELECT ALL - 19 * + + 2 * - + 66
----
2508

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT DISTINCT - CASE + - AVG ( ALL + 87 ) WHEN - 60 * - + 20 THEN + - 59 - + + CASE + + 3 WHEN 78 THEN + 73 - + COUNT( * ) * 1 + 29 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT DISTINCT - CASE + - AVG ( ALL + 87 ) WHEN - 60 * - + 20 THEN + - 59 - + + CASE + + 3 WHEN 78 THEN + 73 - + COUNT ( * ) * 1 + 29 END END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1762
SELECT DISTINCT 68 DIV - + 6 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT 68 / - + 6 AS col1
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT COUNT( * ) * + 51 + + + COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1764
SELECT COUNT ( * ) * + 51 + + + COUNT ( * ) AS col0
----
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT + MAX( + 91 ) + - 16 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-1766
SELECT + MAX ( + 91 ) + - 16 AS col0
----
75

query I rowsort
SELECT ALL + ( + 79 ) AS col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1768
SELECT ALL COUNT( ALL + 78 ) + 44 + + 88 + - - 71 / - 39 * + 24 + - + 14 + - ( + 97 ) * + 42 * + 88 + 40 * 31 + - 57 * + + 17 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL COUNT ( ALL + 78 ) + 44 + + 88 + - - 71 / - 39 * + 24 + - + 14 + - ( + 97 ) * + 42 * + 88 + 40 * 31 + - 57 * + + 17 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 96 * 51 + + COALESCE ( - 87, + 71 )
----
-4983

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1770
SELECT DISTINCT + - 64 * CASE + 66 WHEN COUNT( * ) + - + 74 THEN 50 WHEN - + COUNT( * ) THEN + ( + - 54 ) WHEN 65 DIV 88 + + 50 THEN NULL END col1, 38 + - 83 + + - COUNT( * ) * - 4 DIV - 29 AS col0
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-1770
SELECT DISTINCT + - 64 * CASE + 66 WHEN COUNT ( * ) + - + 74 THEN 50 WHEN - + COUNT ( * ) THEN + ( + - 54 ) WHEN 65 / 88 + + 50 THEN NULL END col1, 38 + - 83 + + - COUNT ( * ) * - 4 / - 29 AS col0
----
NULL
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL - COUNT( * ) + + COUNT( * ) + - + MAX( DISTINCT - + 44 ) + - 94
----
-50

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL - COUNT ( * ) + + COUNT ( * ) + - + MAX ( DISTINCT - + 44 ) + - 94
----
-50

query I rowsort
SELECT 17 - + + 65
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-1773
SELECT ALL - 82 + 15 AS col1, - 65 / CASE 23 WHEN - SUM( DISTINCT 69 ) THEN + COUNT( * ) / - + 95 + - 93 ELSE + 5 * - AVG ( ALL - + 44 ) + + 32 END - - 17 + - + CASE 45 WHEN + + 3 THEN + 50 WHEN + + 54 THEN NULL ELSE NULL END * - 10 + + - ( - COUNT( * ) )
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-1773
SELECT ALL - 82 + 15 AS col1, - 65 / CASE 23 WHEN - SUM ( DISTINCT 69 ) THEN + COUNT ( * ) / - + 95 + - 93 ELSE + 5 * - AVG ( ALL - + 44 ) + + 32 END - - 17 + - + CASE 45 WHEN + + 3 THEN + 50 WHEN + + 54 THEN NULL ELSE NULL END * - 10 + + - ( - COUNT ( * ) )
----
-67
NULL

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

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

query I rowsort
SELECT ALL - 76 * - 29 * + 88 * - 22
----
-4266944

query I rowsort
SELECT ALL - CASE - 69 WHEN 0 + - 29 + - 13 THEN - 44 - - 17 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1777
SELECT + CAST( + 66 AS SIGNED ) DIV - 48 + - - 84 + - + 95 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-1777
SELECT + CAST ( + 66 AS INTEGER ) / - 48 + - - 84 + - + 95 AS col0
----
-12

query I rowsort
SELECT ALL 58 * + 47
----
2726

query I rowsort
SELECT 7 + 15 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1780
SELECT ALL 75 - NULLIF ( - CASE COUNT( * ) WHEN + 8 + 84 + CAST( 39 AS SIGNED ) THEN - ( CAST( NULL AS DECIMAL ) ) + COUNT( * ) * ( - 92 ) ELSE NULL END, - - 93 * + - 72 * 18 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL 75 - NULLIF ( - CASE COUNT ( * ) WHEN + 8 + 84 + CAST ( 39 AS INTEGER ) THEN - ( CAST ( NULL AS REAL ) ) + COUNT ( * ) * ( - 92 ) ELSE NULL END, - - 93 * + - 72 * 18 ) AS col0
----
NULL

query I rowsort
SELECT 13 * - 77
----
-1001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1782
SELECT ALL - MIN( + + CAST( - 9 AS SIGNED ) ) * - 40, + 78 AS col1
----
-360
78

skipif mysql # not compatible
query II rowsort label-1782
SELECT ALL - MIN ( + + CAST ( - 9 AS INTEGER ) ) * - 40, + 78 AS col1
----
-360
78

query II rowsort
SELECT ALL - 87 AS col1, 29
----
-87
29

query I rowsort
SELECT ALL - ( - + 95 ) col0
----
95

query II rowsort
SELECT ALL - 94 col2, 56 * + 36 AS col0
----
-94
2016

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

query I rowsort
SELECT 3 * 25 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT 39 * + - 56 * - COUNT( * ) AS col1
----
2184

skipif mysql # not compatible
query I rowsort label-1788
SELECT 39 * + - 56 * - COUNT ( * ) AS col1
----
2184

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

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT - MIN ( - 43 )
----
43

query II rowsort
SELECT 37 AS col1, + 40
----
37
40

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT 28 * 70 * SUM( DISTINCT - + 88 ) * ( - - 10 ) col1
----
-1724800

skipif mysql # not compatible
query I rowsort label-1793
SELECT 28 * 70 * SUM ( DISTINCT - + 88 ) * ( - - 10 ) col1
----
-1724800

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

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT - MAX ( - 62 )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1795
SELECT ALL - CAST( 94 AS SIGNED ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL - CAST ( 94 AS INTEGER ) AS col0
----
-94

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

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

query I rowsort
SELECT ALL 61 * - 67 * 72
----
-294264

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1798
SELECT COUNT( * ) DIV + 6 * + - 12, - 81 * + - 52 AS col2
----
0
4212

skipif mysql # not compatible
query II rowsort label-1798
SELECT COUNT ( * ) / + 6 * + - 12, - 81 * + - 52 AS col2
----
0
4212

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1801
SELECT 41 AS col0, 62 + 26 DIV + NULLIF ( + - 37, - 86 )
----
41
62

skipif mysql # not compatible
query II rowsort label-1801
SELECT 41 AS col0, 62 + 26 / + NULLIF ( + - 37, - 86 )
----
41
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1802
SELECT - 16 AS col1, 35 * COUNT( * ) AS col0
----
-16
35

skipif mysql # not compatible
query II rowsort label-1802
SELECT - 16 AS col1, 35 * COUNT ( * ) AS col0
----
-16
35

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1804
SELECT 84 AS col0, COUNT( 14 )
----
84
1

skipif mysql # not compatible
query II rowsort label-1804
SELECT 84 AS col0, COUNT ( 14 )
----
84
1

query II rowsort
SELECT DISTINCT 11, 78 + 49 AS col0
----
11
127

onlyif mysql # aggregate syntax: 
query II rowsort label-1806
SELECT 63 + + COUNT( ALL + + 31 ), COALESCE ( - MAX( - 18 ), + 58 ) AS col0
----
64
18

skipif mysql # not compatible
query II rowsort label-1806
SELECT 63 + + COUNT ( ALL + + 31 ), COALESCE ( - MAX ( - 18 ), + 58 ) AS col0
----
64
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL 41 + - + NULLIF ( COUNT( * ), - 29 * + COUNT( DISTINCT - 12 ) - - AVG ( DISTINCT - 16 ) ) * + 54 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL 41 + - + NULLIF ( COUNT ( * ), - 29 * + COUNT ( DISTINCT - 12 ) - - AVG ( DISTINCT - 16 ) ) * + 54 AS col1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1808
SELECT - 81 DIV + 55
----
-1

skipif mysql # not compatible
query I rowsort label-1808
SELECT - 81 / + 55
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1809
SELECT + COUNT( * ) col2, + ( + 43 ) + - NULLIF ( + + COUNT( * ), + - COUNT( * ) / + 34 ) * 10
----
1
33

skipif mysql # not compatible
query II rowsort label-1809
SELECT + COUNT ( * ) col2, + ( + 43 ) + - NULLIF ( + + COUNT ( * ), + - COUNT ( * ) / + 34 ) * 10
----
1
33

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

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

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

query I rowsort
SELECT 32 + - 90 col0
----
-58

query I rowsort
SELECT ALL 0 + - + 24 AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1814
SELECT DISTINCT - 53 + - CAST( ( + 89 ) AS SIGNED ) AS col2
----
-142

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT - 53 + - CAST ( ( + 89 ) AS INTEGER ) AS col2
----
-142

query I rowsort
SELECT 81 * - 16 * - 63 * - 6 + + 44 + 78
----
-489766

onlyif mysql # DIV for integer division: 
query I rowsort label-1816
SELECT 12 DIV - - 77 * 70 + - 28
----
-28

skipif mysql # not compatible
query I rowsort label-1816
SELECT 12 / - - 77 * 70 + - 28
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT - MAX( ALL - 88 ) + COUNT( * ) + 45
----
134

skipif mysql # not compatible
query I rowsort label-1817
SELECT - MAX ( ALL - 88 ) + COUNT ( * ) + 45
----
134

query I rowsort
SELECT DISTINCT + + 48 * - + 2 * 30 AS col1
----
-2880

query I rowsort
SELECT DISTINCT + 36 - - 76 AS col1
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-1820
SELECT DISTINCT 52 * - + MIN( - 91 ) * - - CASE - 47 WHEN + 63 + 53 THEN 12 + + 39 + 90 * 42 * + 83 ELSE NULL END col0, ( 19 )
----
NULL
19

skipif mysql # not compatible
query II rowsort label-1820
SELECT DISTINCT 52 * - + MIN ( - 91 ) * - - CASE - 47 WHEN + 63 + 53 THEN 12 + + 39 + 90 * 42 * + 83 ELSE NULL END col0, ( 19 )
----
NULL
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1821
SELECT 13 DIV + + 96
----
0

skipif mysql # not compatible
query I rowsort label-1821
SELECT 13 / + + 96
----
0

query I rowsort
SELECT NULLIF ( - - 55, - + 7 + - - 84 / 12 ) AS col1
----
55

query I rowsort
SELECT 23 * - + 99
----
-2277

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

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL - MAX ( - 60 )
----
60

query I rowsort
SELECT - 27 * - - 81
----
-2187

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1827
SELECT ALL - ( - COUNT( * ) ) * - + MIN( DISTINCT - 24 ) AS col0, - COUNT( * )
----
24
-1

skipif mysql # not compatible
query II rowsort label-1827
SELECT ALL - ( - COUNT ( * ) ) * - + MIN ( DISTINCT - 24 ) AS col0, - COUNT ( * )
----
24
-1

query I rowsort
SELECT DISTINCT - 10 * - + 39 * - 17
----
-6630

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

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

query I rowsort
SELECT 29 * - ( + 57 ) + + 70
----
-1583

query I rowsort
SELECT + + ( - 53 ) * + 84 AS col1
----
-4452

query I rowsort
SELECT ALL 68 + 43
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT - 42 + - MAX( - ( - 29 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-1833
SELECT - 42 + - MAX ( - ( - 29 ) )
----
-71

query I rowsort
SELECT - + 62 * + 53
----
-3286

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT ALL + 98 + COUNT( * ) col2
----
99

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL + 98 + COUNT ( * ) col2
----
99

query I rowsort
SELECT ALL + 76 + - ( + 38 ) AS col1
----
38

query I rowsort
SELECT ALL + 17 + + 92 + + + 31 * - 87 + - 74 * - 50 * - - 78 AS col1
----
286012

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1839
SELECT DISTINCT + COALESCE ( - + 54, - - 97, + ( + 94 ) - + MIN( ALL - 95 ) - + NULLIF ( COALESCE ( + + COUNT( * ), + 74 ), COUNT( + 62 ) * - + 47 - - + 21 ) ) + 68 + + + 29 + + NULLIF ( + - 45, + - 11 * - 62 * - 48 + - - CAST( NULL AS SIGNED ) * + 53 + + 18 ) + + 63 * + 70 * + 66
----
291058

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT + COALESCE ( - + 54, - - 97, + ( + 94 ) - + MIN ( ALL - 95 ) - + NULLIF ( COALESCE ( + + COUNT ( * ), + 74 ), COUNT ( + 62 ) * - + 47 - - + 21 ) ) + 68 + + + 29 + + NULLIF ( + - 45, + - 11 * - 62 * - 48 + - - CAST ( NULL AS INTEGER ) * + 53 + + 18 ) + + 63 * + 70 * + 66
----
291058

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1840
SELECT + - ( + 67 ) * CAST( 64 AS SIGNED ) AS col2, + CAST( NULL AS DECIMAL ) AS col0
----
-4288
NULL

skipif mysql # not compatible
query II rowsort label-1840
SELECT + - ( + 67 ) * CAST ( 64 AS INTEGER ) AS col2, + CAST ( NULL AS REAL ) AS col0
----
-4288
NULL

query I rowsort
SELECT DISTINCT + 73 * - - 59 * 76
----
327332

query I rowsort
SELECT + 54 - + 71
----
-17

query I rowsort
SELECT DISTINCT + 24 * - + 33 * + 81
----
-64152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1844
SELECT + 72 * CAST( COUNT( * ) AS SIGNED ) * 47 + - 39 + + - 0 + + 25 * CAST( NULL AS SIGNED ) / - - 44 + - 49 + - 94 + 3 / - 51 * - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT + 72 * CAST ( COUNT ( * ) AS INTEGER ) * 47 + - 39 + + - 0 + + 25 * CAST ( NULL AS INTEGER ) / - - 44 + - 49 + - 94 + 3 / - 51 * - 95 AS col1
----
NULL

query I rowsort
SELECT ALL + 74 - 6
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT + 81 - - COUNT( * ) * MAX( DISTINCT 24 ) + + 24
----
129

skipif mysql # not compatible
query I rowsort label-1846
SELECT + 81 - - COUNT ( * ) * MAX ( DISTINCT 24 ) + + 24
----
129

query II rowsort
SELECT + 40 * + - NULLIF ( + ( 25 ), - 39 + - - 53 ) AS col2, - 8 AS col1
----
-1000
-8

query II rowsort
SELECT DISTINCT 8 AS col1, 65 * - 49 AS col1
----
8
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT - ( COALESCE ( 56, 36 * COUNT( * ) * 14 * - 85 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-1849
SELECT - ( COALESCE ( 56, 36 * COUNT ( * ) * 14 * - 85 ) )
----
-56

query I rowsort
SELECT + 34 - 96 AS col2
----
-62

query I rowsort
SELECT + 4 * - 12 * + 66 AS col0
----
-3168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT - 40 * 41 + - COUNT( * ) + - 78 AS col1
----
-1719

skipif mysql # not compatible
query I rowsort label-1853
SELECT - 40 * 41 + - COUNT ( * ) + - 78 AS col1
----
-1719

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1854
SELECT - COUNT( * ) DIV + CASE + COUNT( * ) WHEN - 84 + CAST( + MIN( + + 84 ) AS DECIMAL ) THEN MAX( + + 84 ) ELSE + 15 * + - CASE - 75 WHEN - 8 THEN NULL ELSE + 71 END * + 74 * 7 + 74 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1854
SELECT - COUNT ( * ) / + CASE + COUNT ( * ) WHEN - 84 + CAST ( + MIN ( + + 84 ) AS REAL ) THEN MAX ( + + 84 ) ELSE + 15 * + - CASE - 75 WHEN - 8 THEN NULL ELSE + 71 END * + 74 * 7 + 74 END AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-1855
SELECT - 4 - + + 11 * + - COUNT ( * ) AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1856
SELECT - CASE - MIN( DISTINCT COALESCE ( 75, - + 96 ) ) WHEN CASE ( - COUNT( * ) ) WHEN + 87 THEN NULL WHEN - - 63 THEN + 36 + - 14 ELSE NULL END THEN - MIN( ( - + CAST( NULL AS SIGNED ) ) ) * - + 25 WHEN + 25 + + + 24 THEN NULL END / + 5 * + 0 + - 62 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT - CASE - MIN ( DISTINCT COALESCE ( 75, - + 96 ) ) WHEN CASE ( - COUNT ( * ) ) WHEN + 87 THEN NULL WHEN - - 63 THEN + 36 + - 14 ELSE NULL END THEN - MIN ( ( - + CAST ( NULL AS INTEGER ) ) ) * - + 25 WHEN + 25 + + + 24 THEN NULL END / + 5 * + 0 + - 62 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT ALL + COALESCE ( + 12, + - 71, - 98, + SUM( 76 ) )
----
12

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL + COALESCE ( + 12, + - 71, - 98, + SUM ( 76 ) )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1858
SELECT + MIN( ALL - 22 ) DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-1858
SELECT + MIN ( ALL - 22 ) / - 50
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT - NULLIF ( + MAX( ALL + 22 ), - 11 ) / CASE + COUNT( 16 ) WHEN 57 THEN + 54 WHEN + - 99 * + SUM( DISTINCT + + 56 ) + - - ( - - ( + - COUNT( * ) ) ) * - 37 THEN NULL ELSE NULL END * 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT - NULLIF ( + MAX ( ALL + 22 ), - 11 ) / CASE + COUNT ( 16 ) WHEN 57 THEN + 54 WHEN + - 99 * + SUM ( DISTINCT + + 56 ) + - - ( - - ( + - COUNT ( * ) ) ) * - 37 THEN NULL ELSE NULL END * 59 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1861
SELECT ALL - CAST( NULL AS SIGNED ) * + 59 + 1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT 61 * - CASE - + 3 WHEN + 18 + + + 93 + + AVG ( DISTINCT + 56 ) - 58 + NULLIF ( COUNT( * ), - COUNT( * ) ) THEN + SUM( ALL - 18 ) ELSE NULL END * + + COUNT( * ) + - + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT 61 * - CASE - + 3 WHEN + 18 + + + 93 + + AVG ( DISTINCT + 56 ) - 58 + NULLIF ( COUNT ( * ), - COUNT ( * ) ) THEN + SUM ( ALL - 18 ) ELSE NULL END * + + COUNT ( * ) + - + 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT ALL 21 * ( - CASE - + 95 WHEN + - ( 12 ) THEN + 61 WHEN + 98 * + + 87 THEN + 97 END ) * + 44 - 38 + - COUNT( * ) * - - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL 21 * ( - CASE - + 95 WHEN + - ( 12 ) THEN + 61 WHEN + 98 * + + 87 THEN + 97 END ) * + 44 - 38 + - COUNT ( * ) * - - 65 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1865
SELECT ( + COALESCE ( + + 28, + - COALESCE ( 4, - NULLIF ( + 47, + COUNT( * ) + - COALESCE ( - 58, - - 6 * + + CASE + - 43 WHEN - - CASE - + ( - + 9 ) WHEN - 79 THEN - - MAX( - + 75 ) - - 57 WHEN - + 12 THEN NULL ELSE - 67 DIV + + 97 + AVG ( ALL + 85 ) END + COUNT( * ) THEN NULL WHEN - ( + ( + 6 ) ) * - - 22 + - 69 + 58 * ( + - 67 ) THEN 57 * - + 97 ELSE + + 72 * CAST( NULL AS SIGNED ) END * 29 * + - COUNT( * ) DIV - ( + 65 * - COUNT( * ) ) ) ) DIV 54 ) + - ( - 90 ), 41 * 98 ) )
----
28

skipif mysql # not compatible
query I rowsort label-1865
SELECT ( + COALESCE ( + + 28, + - COALESCE ( 4, - NULLIF ( + 47, + COUNT ( * ) + - COALESCE ( - 58, - - 6 * + + CASE + - 43 WHEN - - CASE - + ( - + 9 ) WHEN - 79 THEN - - MAX ( - + 75 ) - - 57 WHEN - + 12 THEN NULL ELSE - 67 / + + 97 + AVG ( ALL + 85 ) END + COUNT ( * ) THEN NULL WHEN - ( + ( + 6 ) ) * - - 22 + - 69 + 58 * ( + - 67 ) THEN 57 * - + 97 ELSE + + 72 * CAST ( NULL AS INTEGER ) END * 29 * + - COUNT ( * ) / - ( + 65 * - COUNT ( * ) ) ) ) / 54 ) + - ( - 90 ), 41 * 98 ) )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1866
SELECT - CAST( + AVG ( 83 ) AS SIGNED ) + - 47 + + 36 * - NULLIF ( + 2, + COUNT( * ) * 40 ) * - 10 * - + 3 * - 40 + + 2 / + COUNT( * ) + + CASE + 49 WHEN 0 THEN + 69 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT - CAST ( + AVG ( 83 ) AS INTEGER ) + - 47 + + 36 * - NULLIF ( + 2, + COUNT ( * ) * 40 ) * - 10 * - + 3 * - 40 + + 2 / + COUNT ( * ) + + CASE + 49 WHEN 0 THEN + 69 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 99 * - 21 * 35 + - - ( 63 )
----
-72702

query I rowsort
SELECT DISTINCT - 57 * + + 8 + - 8 + - - 94
----
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT - 85 + COUNT( * ) * SUM( 31 ) + - 99 + - 7 * + 2
----
-167

skipif mysql # not compatible
query I rowsort label-1869
SELECT - 85 + COUNT ( * ) * SUM ( 31 ) + - 99 + - 7 * + 2
----
-167

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1870
SELECT - 36 AS col0, 64 + - CAST( CASE + 20 WHEN + 47 THEN NULL ELSE + 6 END AS SIGNED ) * + 31 + - - CASE + 58 WHEN + 5 * + AVG ( ALL + + 91 ) THEN NULL WHEN + - 66 THEN NULL ELSE + 61 END col2
----
-36
-61

skipif mysql # not compatible
query II rowsort label-1870
SELECT - 36 AS col0, 64 + - CAST ( CASE + 20 WHEN + 47 THEN NULL ELSE + 6 END AS INTEGER ) * + 31 + - - CASE + 58 WHEN + 5 * + AVG ( ALL + + 91 ) THEN NULL WHEN + - 66 THEN NULL ELSE + 61 END col2
----
-36
-61

query I rowsort
SELECT ALL NULLIF ( - - 98, - 89 * - 37 ) AS col1
----
98

query I rowsort
SELECT - CASE + + 84 WHEN + 39 + - 35 THEN + 73 + - 94 END - 6 + + 93 - - 61 * 24 * 84 / 86 + - 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1873
SELECT ALL + NULLIF ( - 70, - CAST( NULL AS SIGNED ) * 4 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL + NULLIF ( - 70, - CAST ( NULL AS INTEGER ) * 4 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT - - ( + 54 ) + - 92 * - 13 * - SUM( ALL - 45 ) + + 8
----
53882

skipif mysql # not compatible
query I rowsort label-1874
SELECT - - ( + 54 ) + - 92 * - 13 * - SUM ( ALL - 45 ) + + 8
----
53882

query I rowsort
SELECT DISTINCT 4 - + 41 AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1876
SELECT ALL + 70 * 51 DIV - 86 col2
----
-41

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL + 70 * 51 / - 86 col2
----
-41

query I rowsort
SELECT ALL 52 * - 89 AS col0
----
-4628

query I rowsort
SELECT + 58 + - 11
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT DISTINCT - COUNT( * ) - + CASE + 42 WHEN - - 81 * 46 / + 31 * ( - - 37 ) THEN + ( - 60 ) / + COALESCE ( + - 53, COUNT( * ), - - 38 ) * 41 WHEN - + 91 THEN 87 ELSE NULL END + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT - COUNT ( * ) - + CASE + 42 WHEN - - 81 * 46 / + 31 * ( - - 37 ) THEN + ( - 60 ) / + COALESCE ( + - 53, COUNT ( * ), - - 38 ) * 41 WHEN - + 91 THEN 87 ELSE NULL END + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT - COUNT( - - 72 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1880
SELECT - COUNT ( - - 72 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT + 34 + + NULLIF ( + 66, + 1 + - ( - COUNT( * ) ) + + COUNT( ALL - + 39 ) * - 69 / + 24 ) * 20 * - 75 AS col0
----
-98966

skipif mysql # not compatible
query I rowsort label-1881
SELECT + 34 + + NULLIF ( + 66, + 1 + - ( - COUNT ( * ) ) + + COUNT ( ALL - + 39 ) * - 69 / + 24 ) * 20 * - 75 AS col0
----
-98966

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT ALL COUNT( * ) * - 64 * 66
----
-4224

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL COUNT ( * ) * - 64 * 66
----
-4224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1883
SELECT DISTINCT 15 AS col2, + CAST( + COUNT( * ) AS SIGNED ) + - 26 * - + ( + 4 )
----
15
105

skipif mysql # not compatible
query II rowsort label-1883
SELECT DISTINCT 15 AS col2, + CAST ( + COUNT ( * ) AS INTEGER ) + - 26 * - + ( + 4 )
----
15
105

query II rowsort
SELECT DISTINCT - 74 AS col0, 80
----
-74
80

query II rowsort
SELECT + 79, + 76 AS col2
----
79
76

query I rowsort
SELECT DISTINCT 80 + - 15 * - + 30
----
530

query I rowsort
SELECT ALL 38 + + 1 + + 71
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1888
SELECT CAST( COUNT( * ) AS SIGNED ) * ( + 15 ) - 69 * + 76
----
-5229

skipif mysql # not compatible
query I rowsort label-1888
SELECT CAST ( COUNT ( * ) AS INTEGER ) * ( + 15 ) - 69 * + 76
----
-5229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1889
SELECT ALL 26 + + CAST( NULL AS SIGNED ) * - - 49 + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL 26 + + CAST ( NULL AS INTEGER ) * - - 49 + 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1890
SELECT 96 AS col0, - COUNT( * ) * - - 79 DIV - 50
----
96
1

skipif mysql # not compatible
query II rowsort label-1890
SELECT 96 AS col0, - COUNT ( * ) * - - 79 / - 50
----
96
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1891
SELECT DISTINCT 44 + + ( - + 94 ) DIV + 23
----
40

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT 44 + + ( - + 94 ) / + 23
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1892
SELECT 93 / - CASE - - MAX( 14 ) WHEN + ( - 23 ) + 55 * - 97 THEN - + 39 * - - 32 * + 52 + 52 + - 22 ELSE NULL END - - - 12 AS col2, + 38 AS col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-1892
SELECT 93 / - CASE - - MAX ( 14 ) WHEN + ( - 23 ) + 55 * - 97 THEN - + 39 * - - 32 * + 52 + 52 + - 22 ELSE NULL END - - - 12 AS col2, + 38 AS col1
----
NULL
38

query II rowsort
SELECT + 97 AS col1, ( - 38 ) AS col2
----
97
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT ALL 79 + - COUNT( * ) * - 73 * + 25 * + + 78 * - 18
----
-2562221

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL 79 + - COUNT ( * ) * - 73 * + 25 * + + 78 * - 18
----
-2562221

query II rowsort
SELECT + + 84, 42 + 50 AS col0
----
84
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1896
SELECT ALL - - MIN( + - CAST( NULL AS SIGNED ) ), COALESCE ( - + 12, + 93 ) AS col0
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-1896
SELECT ALL - - MIN ( + - CAST ( NULL AS INTEGER ) ), COALESCE ( - + 12, + 93 ) AS col0
----
NULL
-12

query II rowsort
SELECT + 74, - 6 * 13 + ( + - 76 ) AS col1
----
74
-154

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

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL + 81 + - + COUNT ( * ) - 73 AS col0
----
7

query I rowsort
SELECT - 47 * + - 96 AS col2
----
4512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1900
SELECT ALL - MAX( + + 42 ) DIV - 17
----
2

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL - MAX ( + + 42 ) / - 17
----
2

query I rowsort
SELECT ALL + ( - 48 ) - + - 4 + 52 * - 27
----
-1448

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1902
SELECT 7 - + 92 * + ( + - CAST( NULL AS SIGNED ) ) AS col0, 25 * + + CAST( NULL AS SIGNED ) col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1902
SELECT 7 - + 92 * + ( + - CAST ( NULL AS INTEGER ) ) AS col0, 25 * + + CAST ( NULL AS INTEGER ) col1
----
NULL
NULL

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

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

query I rowsort
SELECT - 74 - + 28 + + 65
----
-37

query I rowsort
SELECT + 13 * - 31
----
-403

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1906
SELECT ALL - COALESCE ( + 71, + 86, + - 19 ), 59 * - ( - - COUNT( * ) ) DIV 70 * - 93 col2
----
-71
0

skipif mysql # not compatible
query II rowsort label-1906
SELECT ALL - COALESCE ( + 71, + 86, + - 19 ), 59 * - ( - - COUNT ( * ) ) / 70 * - 93 col2
----
-71
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1907
SELECT CASE + 38 WHEN + + 52 * - COUNT( * ) THEN NULL WHEN - + 30 / + 21 THEN + + 15 ELSE - - 83 - 6 END * + COUNT( * ) * + 55 - + ( + + 9 ) - - 6 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT CASE + 38 WHEN + + 52 * - COUNT ( * ) THEN NULL WHEN - + 30 / + 21 THEN + + 15 ELSE - - 83 - 6 END * + COUNT ( * ) * + 55 - + ( + + 9 ) - - 6 * + CAST ( NULL AS REAL )
----
NULL

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

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

query I rowsort
SELECT + 40 + + 18 * + 80 AS col1
----
1480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1910
SELECT DISTINCT COUNT( + - CAST( NULL AS SIGNED ) ) AS col0
----
0

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

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

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

query I rowsort
SELECT ALL + ( + 62 ) * + - 78
----
-4836

query I rowsort
SELECT - 63 * + - 44 AS col1
----
2772

query II rowsort
SELECT ALL + 53, - 38 * - + 24 + - - 31 col1
----
53
943

query I rowsort
SELECT DISTINCT + - 29 * 88 * - 71
----
181192

onlyif mysql # aggregate syntax: 
query III rowsort label-1916
SELECT ALL + COUNT( * ), 70 * - + 31 + 68 col0, - 26 AS col2
----
1
-2102
-26

skipif mysql # not compatible
query III rowsort label-1916
SELECT ALL + COUNT ( * ), 70 * - + 31 + 68 col0, - 26 AS col2
----
1
-2102
-26

query I rowsort
SELECT - - ( - - 41 ) col1
----
41

query I rowsort
SELECT ALL + 14 * - 34
----
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT + COUNT( * ) * - 24 + - - 81 col1
----
57

skipif mysql # not compatible
query I rowsort label-1919
SELECT + COUNT ( * ) * - 24 + - - 81 col1
----
57

query I rowsort
SELECT + 99 * + 53 AS col0
----
5247

query II rowsort
SELECT 36 + 40 AS col1, + 95 + + 91
----
76
186

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT 13 - - - 71 + - + COUNT( DISTINCT - 76 )
----
-59

skipif mysql # not compatible
query I rowsort label-1922
SELECT 13 - - - 71 + - + COUNT ( DISTINCT - 76 )
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-1923
SELECT 51 DIV - + 46, 5 * + 3 + 55 AS col0
----
-1
70

skipif mysql # not compatible
query II rowsort label-1923
SELECT 51 / - + 46, 5 * + 3 + 55 AS col0
----
-1
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1924
SELECT ALL - CAST( + - MIN( 74 ) AS SIGNED ) + - 79 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1924
SELECT ALL - CAST ( + - MIN ( 74 ) AS INTEGER ) + - 79 AS col1
----
-5

query I rowsort
SELECT DISTINCT - 14 + - - NULLIF ( 48, - + 68 ) AS col0
----
34

query I rowsort
SELECT ALL 45 * - 21
----
-945

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1927
SELECT 41 DIV - - SUM( DISTINCT + + 23 ), 38 AS col0
----
1
38

skipif mysql # not compatible
query II rowsort label-1927
SELECT 41 / - - SUM ( DISTINCT + + 23 ), 38 AS col0
----
1
38

query II rowsort
SELECT DISTINCT + 42 + + - 61 AS col0, 32 + - - 18 * 65 * - 64
----
-19
-74848

query I rowsort
SELECT DISTINCT 80 * + + 28 AS col0
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT ALL 39 + 59 * - - COUNT( * ) * + 89 AS col2
----
5290

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL 39 + 59 * - - COUNT ( * ) * + 89 AS col2
----
5290

query I rowsort
SELECT 31 + + 34 + - 21 + 6 * + 21 col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT 67 + - - COUNT( - 3 ) col1
----
68

skipif mysql # not compatible
query I rowsort label-1932
SELECT 67 + - - COUNT ( - 3 ) col1
----
68

query I rowsort
SELECT 38 * - ( + + 81 )
----
-3078

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

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL 81 * - COUNT ( * ) + - 74 AS col1
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT COUNT( ALL 76 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1935
SELECT COUNT ( ALL 76 ) col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT DISTINCT + COALESCE ( - CASE - 51 WHEN - 29 THEN NULL WHEN - - MIN( DISTINCT 90 ) + - - 25 * - 55 * MIN( ALL - 28 ) + 96 THEN + - 92 ELSE + - 38 END, 93 * + 95 - 32 - - 43 + + COUNT( * ) ) * - 39 + - 27
----
-1509

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT + COALESCE ( - CASE - 51 WHEN - 29 THEN NULL WHEN - - MIN ( DISTINCT 90 ) + - - 25 * - 55 * MIN ( ALL - 28 ) + 96 THEN + - 92 ELSE + - 38 END, 93 * + 95 - 32 - - 43 + + COUNT ( * ) ) * - 39 + - 27
----
-1509

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL SUM( - COALESCE ( ( 5 ), 50 ) ) + - + ( 77 ) - + CASE + 96 WHEN 7 * + COUNT( * ) THEN - 68 * - + 58 * - 16 ELSE 50 END * + COUNT( DISTINCT + + 96 ) * - - 46
----
-2382

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL SUM ( - COALESCE ( ( 5 ), 50 ) ) + - + ( 77 ) - + CASE + 96 WHEN 7 * + COUNT ( * ) THEN - 68 * - + 58 * - 16 ELSE 50 END * + COUNT ( DISTINCT + + 96 ) * - - 46
----
-2382

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT DISTINCT + CASE 7 WHEN + - 78 * - + 18 * + 4 * + 53 THEN - - 55 + - 42 + + - COUNT( * ) ELSE NULL END - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT + CASE 7 WHEN + - 78 * - + 18 * + 4 * + 53 THEN - - 55 + - 42 + + - COUNT ( * ) ELSE NULL END - - 23
----
NULL

query I rowsort
SELECT DISTINCT - + 70 col1
----
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT - COUNT( * ) * + 51 + - SUM( ALL + 17 )
----
-68

skipif mysql # not compatible
query I rowsort label-1942
SELECT - COUNT ( * ) * + 51 + - SUM ( ALL + 17 )
----
-68

query I rowsort
SELECT DISTINCT - - 37
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-1944
SELECT ALL - 69 * - CASE - - 61 WHEN + NULLIF ( 80, + 93 ) THEN - - COUNT( DISTINCT + 44 ) END * 69 + 79 AS col1, - NULLIF ( + + ( 24 ), 39 ) + - 17 - - 45
----
NULL
4

skipif mysql # not compatible
query II rowsort label-1944
SELECT ALL - 69 * - CASE - - 61 WHEN + NULLIF ( 80, + 93 ) THEN - - COUNT ( DISTINCT + 44 ) END * 69 + 79 AS col1, - NULLIF ( + + ( 24 ), 39 ) + - 17 - - 45
----
NULL
4

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

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT - ( + + 11 ) * COUNT ( DISTINCT 27 ) AS col1
----
-11

query I rowsort
SELECT DISTINCT - - 3 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT - COALESCE ( + CASE COALESCE ( - COUNT( - 88 ), - + 30 + + 53 ) WHEN + + 29 THEN NULL ELSE + 91 + - 98 END, - 59, + 93 ) * - 76
----
-532

skipif mysql # not compatible
query I rowsort label-1947
SELECT - COALESCE ( + CASE COALESCE ( - COUNT ( - 88 ), - + 30 + + 53 ) WHEN + + 29 THEN NULL ELSE + 91 + - 98 END, - 59, + 93 ) * - 76
----
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT DISTINCT - 76 * - COUNT( ALL + 44 ) + - - 82 AS col2
----
158

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT - 76 * - COUNT ( ALL + 44 ) + - - 82 AS col2
----
158

query I rowsort
SELECT + NULLIF ( - - 64, AVG ( DISTINCT + ( 23 ) ) ) / 94 * 66 * - - CASE - 43 WHEN - 19 THEN 17 END * - 33 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1950
SELECT 1 + ( CAST( NULL AS SIGNED ) ) + + 83 + 44 AS col0, 14 - + 45 AS col0
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-1950
SELECT 1 + ( CAST ( NULL AS INTEGER ) ) + + 83 + 44 AS col0, 14 - + 45 AS col0
----
NULL
-31

query I rowsort
SELECT + - 62 * - 35
----
2170

query I rowsort
SELECT - + CASE + + 62 WHEN 75 * + 39 THEN NULL WHEN + 59 THEN + 78 END * + 84 + + 23
----
NULL

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

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

query II rowsort
SELECT 86 AS col1, + 16 + + ( 68 )
----
86
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1955
SELECT + 99 + + ( 31 ) + ( - CAST( 65 AS SIGNED ) ) - - + 45 * 48 + - COUNT( * ) AS col1
----
2224

skipif mysql # not compatible
query I rowsort label-1955
SELECT + 99 + + ( 31 ) + ( - CAST ( 65 AS INTEGER ) ) - - + 45 * 48 + - COUNT ( * ) AS col1
----
2224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1956
SELECT + 58 - - - COALESCE ( + 23, - + 87 * + COUNT( * ) * + ( - 15 ) ) DIV - ( + + COUNT( * ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1956
SELECT + 58 - - - COALESCE ( + 23, - + 87 * + COUNT ( * ) * + ( - 15 ) ) / - ( + + COUNT ( * ) ) AS col2
----
81

query II rowsort
SELECT ALL - ( - 50 ) * + - 64 col2, + 78 AS col0
----
-3200
78

query I rowsort
SELECT ALL 81 + + - 13 AS col1
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1959
SELECT DISTINCT - 83 + - MAX( ALL - 24 ) * 25, + MIN( 39 ) AS col2
----
517
39

skipif mysql # not compatible
query II rowsort label-1959
SELECT DISTINCT - 83 + - MAX ( ALL - 24 ) * 25, + MIN ( 39 ) AS col2
----
517
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT - COUNT( DISTINCT - 31 ) + 11 + + 85
----
95

skipif mysql # not compatible
query I rowsort label-1960
SELECT - COUNT ( DISTINCT - 31 ) + 11 + + 85
----
95

query II rowsort
SELECT DISTINCT 68 AS col2, + 24 col1
----
68
24

query I rowsort
SELECT ALL - 65 + - 23
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT - 45 + - COUNT( * ) + - - 43 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1963
SELECT - 45 + - COUNT ( * ) + - - 43 AS col2
----
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1965
SELECT - CASE + + COUNT( ALL + 71 ) WHEN - + 80 THEN - 97 * + COALESCE ( - 51, + + CASE + MIN( ALL - 19 ) WHEN - - COUNT( * ) THEN COUNT( * ) + - AVG ( + ( 93 ) ) END - - CASE + ( + COUNT( * ) ) WHEN + - MIN( ALL + 26 ) + 19 THEN + + CAST( NULL AS DECIMAL ) WHEN - 65 THEN + + 52 ELSE NULL END, - 66, - 25 ) / + 33 + - 74 - - MAX( ALL 95 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT - CASE + + COUNT ( ALL + 71 ) WHEN - + 80 THEN - 97 * + COALESCE ( - 51, + + CASE + MIN ( ALL - 19 ) WHEN - - COUNT ( * ) THEN COUNT ( * ) + - AVG ( + ( 93 ) ) END - - CASE + ( + COUNT ( * ) ) WHEN + - MIN ( ALL + 26 ) + 19 THEN + + CAST ( NULL AS REAL ) WHEN - 65 THEN + + 52 ELSE NULL END, - 66, - 25 ) / + 33 + - 74 - - MAX ( ALL 95 ) END
----
NULL

query I rowsort
SELECT - COALESCE ( - - 65, + ( + 86 ), 32 ) + - 43
----
-108

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

query I rowsort
SELECT - 9 * + 16 AS col0
----
-144

query I rowsort
SELECT - 15 * - + 4
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1970
SELECT DISTINCT - 47 + 32 DIV + + 80 AS col2, + COUNT( * ) * + MAX( + - ( - 72 ) ) col2
----
-47
72

skipif mysql # not compatible
query II rowsort label-1970
SELECT DISTINCT - 47 + 32 / + + 80 AS col2, + COUNT ( * ) * + MAX ( + - ( - 72 ) ) col2
----
-47
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT ALL - 38 DIV + 15
----
-2

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL - 38 / + 15
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT ALL - 66 - + + SUM( + + ( + 96 ) )
----
-162

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL - 66 - + + SUM ( + + ( + 96 ) )
----
-162

onlyif mysql # aggregate syntax: 
query II rowsort label-1973
SELECT + 95 AS col1, + COUNT( DISTINCT 64 ) - 3 AS col1
----
95
-2

skipif mysql # not compatible
query II rowsort label-1973
SELECT + 95 AS col1, + COUNT ( DISTINCT 64 ) - 3 AS col1
----
95
-2

query I rowsort
SELECT - 20 * - + 72
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT + SUM( - - 4 ) * 59 + 14
----
250

skipif mysql # not compatible
query I rowsort label-1975
SELECT + SUM ( - - 4 ) * 59 + 14
----
250

onlyif mysql # DIV for integer division: 
query I rowsort label-1976
SELECT - + 54 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-1976
SELECT - + 54 / - 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT - MIN( ALL - + 3 ) * - + 91 + - 12 + 29 * 15
----
150

skipif mysql # not compatible
query I rowsort label-1977
SELECT - MIN ( ALL - + 3 ) * - + 91 + - 12 + 29 * 15
----
150

query I rowsort
SELECT + + 4 * + 21 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT ALL + + 0 * MIN( - 7 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL + + 0 * MIN ( - 7 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT - COUNT( * ) - + + 94 col0
----
-95

skipif mysql # not compatible
query I rowsort label-1980
SELECT - COUNT ( * ) - + + 94 col0
----
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT - + 2 * - COUNT( ALL - - 44 ) + + CASE - COUNT( * ) WHEN + 39 THEN NULL WHEN - 17 THEN - 6 END * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1982
SELECT - + 2 * - COUNT ( ALL - - 44 ) + + CASE - COUNT ( * ) WHEN + 39 THEN NULL WHEN - 17 THEN - 6 END * - 35
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1983
SELECT DISTINCT - - CAST( 16 AS SIGNED ) * - - 10 * + + 51 AS col2
----
8160

skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT - - CAST ( 16 AS INTEGER ) * - - 10 * + + 51 AS col2
----
8160

onlyif mysql # aggregate syntax: 
query II rowsort label-1984
SELECT + 81 * - CASE + - 2 WHEN + 49 * 17 * - 45 THEN - 99 END * - - NULLIF ( - 3, COUNT( * ) ) / - - 58 AS col2, 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-1984
SELECT + 81 * - CASE + - 2 WHEN + 49 * 17 * - 45 THEN - 99 END * - - NULLIF ( - 3, COUNT ( * ) ) / - - 58 AS col2, 78
----
NULL
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT ALL + - 40 * + + 7 * + 83 - - 99 * + 75 + COALESCE ( - COUNT( DISTINCT + - 10 ), + 51 ) + - COUNT( * ) * + + 90 AS col2
----
-15906

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL + - 40 * + + 7 * + 83 - - 99 * + 75 + COALESCE ( - COUNT ( DISTINCT + - 10 ), + 51 ) + - COUNT ( * ) * + + 90 AS col2
----
-15906

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + 58 + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-1986
SELECT + 58 + - COUNT ( * )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT ALL + CAST( NULL AS SIGNED ) * 30 + - 15 + + 42 + + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL + CAST ( NULL AS INTEGER ) * 30 + - 15 + + 42 + + - 21
----
NULL

query I rowsort
SELECT ALL + 42 + 35
----
77

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

query I rowsort
SELECT + 39 + + + 87 AS col1
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1991
SELECT + COUNT( * ) DIV - + 48 * - 83 * - 18 * 16
----
0

skipif mysql # not compatible
query I rowsort label-1991
SELECT + COUNT ( * ) / - + 48 * - 83 * - 18 * 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT + 4 + - MIN( + + 10 ) * ( 31 )
----
-306

skipif mysql # not compatible
query I rowsort label-1992
SELECT + 4 + - MIN ( + + 10 ) * ( 31 )
----
-306

query I rowsort
SELECT ALL 27 + 49 col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT + COUNT( * ) + + - 20 * 86 * + 26 + + COUNT( * )
----
-44718

skipif mysql # not compatible
query I rowsort label-1994
SELECT + COUNT ( * ) + + - 20 * 86 * + 26 + + COUNT ( * )
----
-44718

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1996
SELECT + 85 + - CASE + - 40 WHEN - + 45 * 5 * - 20 THEN NULL WHEN - 54 * MAX( + + 85 ) + 18 THEN + 37 * CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT + 85 + - CASE + - 40 WHEN - + 45 * 5 * - 20 THEN NULL WHEN - 54 * MAX ( + + 85 ) + 18 THEN + 37 * CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT DISTINCT NULLIF ( 15, + + NULLIF ( + - NULLIF ( - 52, - 83 ), + - 1 / + CASE 17 WHEN 58 + + 70 THEN - - NULLIF ( + + 86, - + ( - - 19 ) / - + 14 ) + + 63 * + ( + - 17 ) ELSE - - COUNT( * ) END - + 76 ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT NULLIF ( 15, + + NULLIF ( + - NULLIF ( - 52, - 83 ), + - 1 / + CASE 17 WHEN 58 + + 70 THEN - - NULLIF ( + + 86, - + ( - - 19 ) / - + 14 ) + + 63 * + ( + - 17 ) ELSE - - COUNT ( * ) END - + 76 ) ) AS col1
----
15

query II rowsort
SELECT ALL CASE + 67 WHEN + 11 THEN NULL WHEN + 81 + - 26 - - 76 THEN - 28 END AS col2, - 25 AS col2
----
NULL
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1999
SELECT + CASE + 19 WHEN - AVG ( 41 ) THEN - 84 END + - CAST( NULL AS SIGNED ) * 87 - + - COUNT( * ) + + + NULLIF ( - + 14, + + ( + 2 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT + CASE + 19 WHEN - AVG ( 41 ) THEN - 84 END + - CAST ( NULL AS INTEGER ) * 87 - + - COUNT ( * ) + + + NULLIF ( - + 14, + + ( + 2 ) ) AS col1
----
NULL

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

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

query II rowsort
SELECT ALL - 34 * + 80, - ( + - 71 ) AS col1
----
-2720
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT - COUNT( - 56 ) - - 87 col0
----
86

skipif mysql # not compatible
query I rowsort label-2002
SELECT - COUNT ( - 56 ) - - 87 col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT ALL 61 * - COUNT( * ) * - 14
----
854

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL 61 * - COUNT ( * ) * - 14
----
854

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

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

query I rowsort
SELECT ALL + - 48 * - - 59
----
-2832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2006
SELECT CAST( NULL AS SIGNED ) * + - 95 * 68 + - COUNT( * ) + - 46 * - NULLIF ( + COUNT( * ), + + COUNT( DISTINCT - 56 ) ) - - 63 + + - 47 * + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT CAST ( NULL AS INTEGER ) * + - 95 * 68 + - COUNT ( * ) + - 46 * - NULLIF ( + COUNT ( * ), + + COUNT ( DISTINCT - 56 ) ) - - 63 + + - 47 * + 12 AS col1
----
NULL

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

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

query I rowsort
SELECT - - 31 * - 99 + + + 84
----
-2985

query I rowsort
SELECT - - 73 + 84 + + 11 col0
----
168

query II rowsort
SELECT - + 98 * - - 22, 56 AS col2
----
-2156
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2012
SELECT ALL + 76 DIV + 28 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL + 76 / + 28 AS col0
----
2

query I rowsort
SELECT + NULLIF ( - 39, + ( - 75 ) ) * + + 70 + - - 71 AS col0
----
-2659

query I rowsort
SELECT DISTINCT - 84 + + 46
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2015
SELECT ALL + 26 + - - 63 + - - 1 * - - 68 - + - 59 DIV - 9
----
151

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL + 26 + - - 63 + - - 1 * - - 68 - + - 59 / - 9
----
151

query II rowsort
SELECT 0 + + - 57 * 53 * + 15 AS col0, 38 AS col1
----
-45315
38

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

skipif mysql # not compatible
query I rowsort label-2017
SELECT ( - COUNT ( - - 39 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2018
SELECT ALL - COUNT( * ) * + COUNT( ALL - 21 ) * + CAST( NULL AS DECIMAL ) + + 79 + + 65 + + + COUNT( DISTINCT - - 37 ) / - 22 * - 2 + + - CAST( NULL AS SIGNED ) * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - COUNT ( * ) * + COUNT ( ALL - 21 ) * + CAST ( NULL AS REAL ) + + 79 + + 65 + + + COUNT ( DISTINCT - - 37 ) / - 22 * - 2 + + - CAST ( NULL AS INTEGER ) * + 10
----
NULL

query I rowsort
SELECT + 18 + 85 AS col2
----
103

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2021
SELECT 79 * + SUM( ALL + - 4 ) * ( - 98 ) / NULLIF ( + - CAST( NULL AS SIGNED ), + 98 ) + 60 + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2021
SELECT 79 * + SUM ( ALL + - 4 ) * ( - 98 ) / NULLIF ( + - CAST ( NULL AS INTEGER ), + 98 ) + 60 + - 16
----
NULL

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

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

query I rowsort
SELECT ALL 22 + - 38 AS col2
----
-16

query II rowsort
SELECT ALL 86 - 38 + 28 AS col1, 4 + NULLIF ( + 42, + 79 ) AS col2
----
76
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT SUM( + 26 ) * 55 * - 30
----
-42900

skipif mysql # not compatible
query I rowsort label-2025
SELECT SUM ( + 26 ) * 55 * - 30
----
-42900

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2027
SELECT 54 AS col0, + COUNT( * ) + - 7 AS col0
----
54
-6

skipif mysql # not compatible
query II rowsort label-2027
SELECT 54 AS col0, + COUNT ( * ) + - 7 AS col0
----
54
-6

query I rowsort
SELECT DISTINCT 15 * 17
----
255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2029
SELECT ( 5 ) + - MAX( + 74 ) DIV - + 28 * + COALESCE ( + COUNT( * ), 57 ) + + 28 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-2029
SELECT ( 5 ) + - MAX ( + 74 ) / - + 28 * + COALESCE ( + COUNT ( * ), 57 ) + + 28 AS col1
----
35

query I rowsort
SELECT ALL 20 * - 55
----
-1100

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT MAX( + 42 ) + 73 + + + 96 AS col1
----
211

skipif mysql # not compatible
query I rowsort label-2031
SELECT MAX ( + 42 ) + 73 + + + 96 AS col1
----
211

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT SUM( + 74 ) * + - 75 col2
----
-5550

skipif mysql # not compatible
query I rowsort label-2032
SELECT SUM ( + 74 ) * + - 75 col2
----
-5550

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

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

query I rowsort
SELECT ALL - ( - NULLIF ( + 6, - 84 ) )
----
6

query I rowsort
SELECT + 91 * + 2
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT ALL + 91 * - MAX( 64 ) * + 62 * + 15 - - + COUNT( * ) - - 12 + - + 67 AS col2
----
-5416374

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL + 91 * - MAX ( 64 ) * + 62 * + 15 - - + COUNT ( * ) - - 12 + - + 67 AS col2
----
-5416374

query I rowsort
SELECT ALL - + 33 + - - 70 AS col1
----
37

query I rowsort
SELECT DISTINCT + - 70 * - 55
----
3850

query I rowsort
SELECT ALL 88 + - + 39 AS col0
----
49

query I rowsort
SELECT + 45 * + 10 + + 39
----
489

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

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

query I rowsort
SELECT ALL - 55 + - NULLIF ( - 99, + 46 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2043
SELECT 69 * + - 60 + ( 71 ) * NULLIF ( - 40, - 27 + - - 8 * + + 10 DIV - 63 ) DIV - - 41 + - 61 - MIN( ALL - + 39 )
----
-4231

skipif mysql # not compatible
query I rowsort label-2043
SELECT 69 * + - 60 + ( 71 ) * NULLIF ( - 40, - 27 + - - 8 * + + 10 / - 63 ) / - - 41 + - 61 - MIN ( ALL - + 39 )
----
-4231

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

query I rowsort
SELECT ALL - 6 + 26 + - 37 * - 70 * - 23 + + 23
----
-59527

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT + 7 - 86 - - COUNT( ALL ( + + 39 ) ) + - 38 * - NULLIF ( + COUNT( * ), 97 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-2046
SELECT + 7 - 86 - - COUNT ( ALL ( + + 39 ) ) + - 38 * - NULLIF ( + COUNT ( * ), 97 ) AS col0
----
-40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT + 24 * + + MAX( + 74 )
----
1776

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT + 24 * + + MAX ( + 74 )
----
1776

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2050
SELECT 15 * - CAST( NULL AS DECIMAL ) * - - 58 + 94, ( - + COUNT( * ) ) + 39 * MIN( - + 55 ) * - COUNT( * ) col1
----
NULL
2144

skipif mysql # not compatible
query II rowsort label-2050
SELECT 15 * - CAST ( NULL AS REAL ) * - - 58 + 94, ( - + COUNT ( * ) ) + 39 * MIN ( - + 55 ) * - COUNT ( * ) col1
----
NULL
2144

query I rowsort
SELECT 61 - 94 - - 32
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2052
SELECT 31 * - 24, - 8 DIV + 70 AS col0
----
-744
0

skipif mysql # not compatible
query II rowsort label-2052
SELECT 31 * - 24, - 8 / + 70 AS col0
----
-744
0

query I rowsort
SELECT 70 - - 95
----
165

query I rowsort
SELECT ALL + 79 - - 9 + - 39
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2055
SELECT 45 col0, 45 + - CAST( - 4 AS SIGNED ) * + + 33
----
45
177

skipif mysql # not compatible
query II rowsort label-2055
SELECT 45 col0, 45 + - CAST ( - 4 AS INTEGER ) * + + 33
----
45
177

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT 51 + - 9 - + 0 + + - 63 - + SUM( ALL + 10 ) * 4 * + - 45 * + COUNT( * ) - + MIN( + 99 ) + + 70 col0
----
1750

skipif mysql # not compatible
query I rowsort label-2056
SELECT 51 + - 9 - + 0 + + - 63 - + SUM ( ALL + 10 ) * 4 * + - 45 * + COUNT ( * ) - + MIN ( + 99 ) + + 70 col0
----
1750

query II rowsort
SELECT + 17 col0, 5 * 47
----
17
235

onlyif mysql # DIV for integer division: 
query I rowsort label-2058
SELECT 60 + + - 30 + - 0 DIV - 39 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2058
SELECT 60 + + - 30 + - 0 / - 39 AS col1
----
30

query II rowsort
SELECT ALL 25, - ( - - 51 ) col2
----
25
-51

query II rowsort
SELECT - 26 AS col0, + 71 * + CASE - 50 WHEN - 16 THEN - ( 15 ) WHEN + - 52 + 43 THEN NULL END * - - 52 + - 49 AS col0
----
-26
NULL

query I rowsort
SELECT 56 + - 47 AS col1
----
9

query I rowsort
SELECT 66 + + 32
----
98

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2064
SELECT SUM( DISTINCT + - ( ( - 21 ) ) ) * - MAX( ALL + 88 ) AS col2, 86
----
-1848
86

skipif mysql # not compatible
query II rowsort label-2064
SELECT SUM ( DISTINCT + - ( ( - 21 ) ) ) * - MAX ( ALL + 88 ) AS col2, 86
----
-1848
86

query II rowsort
SELECT ALL - 32 AS col2, 3
----
-32
3

query I rowsort
SELECT 76 + - - 27 AS col0
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2067
SELECT ALL - 42 DIV - MIN( ALL + + 55 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL - 42 / - MIN ( ALL + + 55 ) AS col2
----
0

query I rowsort
SELECT 22 + - 14
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2069
SELECT 51 AS col0, + 17 + - - 27 + + 12 - + 62 - + - CAST( - ( + - 35 ) AS SIGNED ) col0
----
51
29

skipif mysql # not compatible
query II rowsort label-2069
SELECT 51 AS col0, + 17 + - - 27 + + 12 - + 62 - + - CAST ( - ( + - 35 ) AS INTEGER ) col0
----
51
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2070
SELECT DISTINCT - COALESCE ( + - 68, 68 + + ( + COUNT( - 48 ) ) * + COUNT( * ) + + MIN( + 38 ) - - 56 + - + 96 - 99, COUNT( + ( + 69 ) ) + + CAST( - - COUNT( * ) AS SIGNED ), - ( - 4 ) ) * + MAX( - 36 ) * + + 59 * - - CASE + 45 WHEN - COUNT( * ) / + 81 * 75 THEN 16 ELSE + - 25 * - + 12 END
----
-43329600

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT - COALESCE ( + - 68, 68 + + ( + COUNT ( - 48 ) ) * + COUNT ( * ) + + MIN ( + 38 ) - - 56 + - + 96 - 99, COUNT ( + ( + 69 ) ) + + CAST ( - - COUNT ( * ) AS INTEGER ), - ( - 4 ) ) * + MAX ( - 36 ) * + + 59 * - - CASE + 45 WHEN - COUNT ( * ) / + 81 * 75 THEN 16 ELSE + - 25 * - + 12 END
----
-43329600

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT ALL + 51 + NULLIF ( - 75, COUNT( * ) - - NULLIF ( + 9, - ( - 2 ) ) ) - - 62 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL + 51 + NULLIF ( - 75, COUNT ( * ) - - NULLIF ( + 9, - ( - 2 ) ) ) - - 62 AS col1
----
38

query I rowsort
SELECT - + 70 + - 30
----
-100

query I rowsort
SELECT + + 65 + + 87
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2074
SELECT ALL - CAST( - 42 AS SIGNED ) + COUNT( + 49 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL - CAST ( - 42 AS INTEGER ) + COUNT ( + 49 ) AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2075
SELECT + - 95 * 28 * + COUNT( * ) * 70 * CASE - MAX( - 23 ) WHEN + + 7 + + 46 - - 11 THEN - + 20 / 83 / + 40 - - + 79 WHEN - - CAST( NULL AS SIGNED ) * + 58 + - 26 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2075
SELECT + - 95 * 28 * + COUNT ( * ) * 70 * CASE - MAX ( - 23 ) WHEN + + 7 + + 46 - - 11 THEN - + 20 / 83 / + 40 - - + 79 WHEN - - CAST ( NULL AS INTEGER ) * + 58 + - 26 THEN NULL END
----
NULL

query I rowsort
SELECT + - 90 + 13 AS col2
----
-77

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

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

query I rowsort
SELECT + + 15 + - 0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT 4 * + 72 * + 94 - 13 - - 47 + - - 71 - - COALESCE ( - + 93, + 54 ) * 73 + - ( - 42 ) * - 57 * 76 + COUNT( * )
----
-161555

skipif mysql # not compatible
query I rowsort label-2079
SELECT 4 * + 72 * + 94 - 13 - - 47 + - - 71 - - COALESCE ( - + 93, + 54 ) * 73 + - ( - 42 ) * - 57 * 76 + COUNT ( * )
----
-161555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2080
SELECT - + 88 DIV + COUNT( * ) + 6 col0
----
-82

skipif mysql # not compatible
query I rowsort label-2080
SELECT - + 88 / + COUNT ( * ) + 6 col0
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-2081
SELECT ALL + - 87 * + 21 + 34 + + 36 AS col0, COUNT( * )
----
-1757
1

skipif mysql # not compatible
query II rowsort label-2081
SELECT ALL + - 87 * + 21 + 34 + + 36 AS col0, COUNT ( * )
----
-1757
1

query I rowsort
SELECT + 5 + + - 27
----
-22

query I rowsort
SELECT ALL 13 * + 1 + - - 25 AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2084
SELECT MIN( - CAST( NULL AS SIGNED ) ) AS col2, 55 AS col2
----
NULL
55

skipif mysql # not compatible
query II rowsort label-2084
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) AS col2, 55 AS col2
----
NULL
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2085
SELECT ALL + - 88 AS col2, + 80 * + + CASE - - COUNT( * ) WHEN - - CAST( NULL AS SIGNED ) + - - MIN( - NULLIF ( 43, + - ( - ( + - 43 ) ) ) ) + - COUNT( * ) THEN NULL WHEN - + SUM( DISTINCT 49 ) / - 31 + + 61 + - + 5 + - - 56 * + 1 - + 30 * - CAST( - 93 AS SIGNED ) * - 29 + - COUNT( * ) / - - 99 THEN - - ( 23 ) * + CAST( - ( + COALESCE ( + COUNT( * ), 76 ) ) AS SIGNED ) * - 77 ELSE - 12 END * 25 + - 69
----
-88
-24069

skipif mysql # not compatible
query II rowsort label-2085
SELECT ALL + - 88 AS col2, + 80 * + + CASE - - COUNT ( * ) WHEN - - CAST ( NULL AS INTEGER ) + - - MIN ( - NULLIF ( 43, + - ( - ( + - 43 ) ) ) ) + - COUNT ( * ) THEN NULL WHEN - + SUM ( DISTINCT 49 ) / - 31 + + 61 + - + 5 + - - 56 * + 1 - + 30 * - CAST ( - 93 AS INTEGER ) * - 29 + - COUNT ( * ) / - - 99 THEN - - ( 23 ) * + CAST ( - ( + COALESCE ( + COUNT ( * ), 76 ) ) AS INTEGER ) * - 77 ELSE - 12 END * 25 + - 69
----
-88
-24069

query I rowsort
SELECT - + 87 * - 23 * + 96 + - 38 AS col2
----
192058

query I rowsort
SELECT + NULLIF ( + + 76, - + 13 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2088
SELECT - 98 * - CAST( - - 71 AS SIGNED ) * 53
----
368774

skipif mysql # not compatible
query I rowsort label-2088
SELECT - 98 * - CAST ( - - 71 AS INTEGER ) * 53
----
368774

query II rowsort
SELECT + ( + 55 ) AS col2, - 86
----
55
-86

query I rowsort
SELECT ALL + 37 * 56 - - 48 AS col1
----
2120

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT MIN( DISTINCT + 1 ) * + 31 + - + 67 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-2091
SELECT MIN ( DISTINCT + 1 ) * + 31 + - + 67 AS col1
----
-36

query I rowsort
SELECT ALL + NULLIF ( - ( 73 ), - 56 * 66 * + - NULLIF ( - - ( - - 70 ), + - 3 + 71 ) ) AS col1
----
-73

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT + 27 * + + 30 DIV + 10 col2
----
81

skipif mysql # not compatible
query I rowsort label-2094
SELECT + 27 * + + 30 / + 10 col2
----
81

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

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT - 3 / COUNT ( * ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2096
SELECT ALL MAX( ALL - 47 ) col1, - 59
----
-47
-59

skipif mysql # not compatible
query II rowsort label-2096
SELECT ALL MAX ( ALL - 47 ) col1, - 59
----
-47
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-2097
SELECT - 9 + + - 27 + + 3 + - 25 DIV ( + 26 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-2097
SELECT - 9 + + - 27 + + 3 + - 25 / ( + 26 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT DISTINCT + COUNT( * ) + 25 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT + COUNT ( * ) + 25 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT DISTINCT 8 + - + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-2099
SELECT DISTINCT 8 + - + COUNT ( * )
----
7

query I rowsort
SELECT DISTINCT + + 99 + - 53 * 8 * + 78 AS col0
----
-32973

query I rowsort
SELECT - + 94 + ( - + 15 ) + + 21 * + 45 * 44 AS col2
----
41471

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

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

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

query I rowsort
SELECT + - 19 * + ( - + 75 ) AS col0
----
1425

query II rowsort
SELECT - 48 * - 3 AS col1, 2 + + 45
----
144
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT ALL + - COUNT( - 33 ) + - 8 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL + - COUNT ( - 33 ) + - 8 AS col0
----
-9

query I rowsort
SELECT - 76 / + CASE - + ( + - 31 ) WHEN + + 94 * - + 71 THEN 13 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL - 47 * - 69 - - 80, - 61 AS col1
----
3323
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2109
SELECT DISTINCT - - 44 DIV 69, COUNT( * ) + + + COUNT( * ) AS col1
----
0
2

skipif mysql # not compatible
query II rowsort label-2109
SELECT DISTINCT - - 44 / 69, COUNT ( * ) + + + COUNT ( * ) AS col1
----
0
2

query I rowsort
SELECT - - 16 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL - COALESCE ( - MIN( DISTINCT + 30 ), + 3 ) * + - SUM( DISTINCT + + 86 ) * - + 33 + COUNT( * ) * + - 67 * - - ( + - 77 ) + + - ( ( + 30 ) ) AS col1
----
90269

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL - COALESCE ( - MIN ( DISTINCT + 30 ), + 3 ) * + - SUM ( DISTINCT + + 86 ) * - + 33 + COUNT ( * ) * + - 67 * - - ( + - 77 ) + + - ( ( + 30 ) ) AS col1
----
90269

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT - COUNT( ALL + 57 ) * 41 * + 7 AS col2
----
-287

skipif mysql # not compatible
query I rowsort label-2112
SELECT - COUNT ( ALL + 57 ) * 41 * + 7 AS col2
----
-287

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2113
SELECT - + 97 * - 47 * COUNT( * ) * + NULLIF ( 88, - - 74 ) + + ( - ( COALESCE ( - 29, 71 * - - 95 DIV 4 ) ) )
----
401221

skipif mysql # not compatible
query I rowsort label-2113
SELECT - + 97 * - 47 * COUNT ( * ) * + NULLIF ( 88, - - 74 ) + + ( - ( COALESCE ( - 29, 71 * - - 95 / 4 ) ) )
----
401221

onlyif mysql # DIV for integer division: 
query I rowsort label-2114
SELECT ALL - - ( 8 ) DIV - 61 * - - 15 * - 31 + 24 - - + 11 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL - - ( 8 ) / - 61 * - - 15 * - 31 + 24 - - + 11 AS col0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2115
SELECT 48 DIV - 33 + - - 30 DIV 12 + 88 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2115
SELECT 48 / - 33 + - - 30 / 12 + 88 AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2116
SELECT - 93 DIV - - 36 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2116
SELECT - 93 / - - 36 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2117
SELECT + CAST( NULL AS SIGNED ) AS col0, 57 - - 38 * - ( + - 76 ) * - - MIN( ALL - 27 ) AS col2
----
NULL
-77919

skipif mysql # not compatible
query II rowsort label-2117
SELECT + CAST ( NULL AS INTEGER ) AS col0, 57 - - 38 * - ( + - 76 ) * - - MIN ( ALL - 27 ) AS col2
----
NULL
-77919

query I rowsort
SELECT + 69 - 65 - - - 17 * 0
----
4

query I rowsort
SELECT + COALESCE ( 48, + - 17 )
----
48

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

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

query I rowsort
SELECT ALL 57 * + + 67 col2
----
3819

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

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

skipif mysql # not compatible
query I rowsort label-2123
SELECT 88 * CAST ( NULL AS INTEGER ) + + COUNT ( 71 ) + + + COUNT ( * ) * 3 + - 51 AS col0
----
NULL

query I rowsort
SELECT + 39 * + - 82
----
-3198

query I rowsort
SELECT ALL 51 * 42 * 37
----
79254

query I rowsort
SELECT ALL 97 * 33 AS col0
----
3201

query I rowsort
SELECT + 3 * - 62
----
-186

query I rowsort
SELECT COALESCE ( + 3, + 33, + + 84, + 91 ) AS col1
----
3

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

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

query I rowsort
SELECT DISTINCT 69 * - ( - 10 ) * - 92 * - 89 + - 57 * + 75 AS col1
----
5645445

query I rowsort
SELECT ALL 61 * - 37
----
-2257

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT + MIN( ALL + 66 ) * ( 78 ) + + 34 AS col1
----
5182

skipif mysql # not compatible
query I rowsort label-2132
SELECT + MIN ( ALL + 66 ) * ( 78 ) + + 34 AS col1
----
5182

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

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

query I rowsort
SELECT DISTINCT 96 * - + 93
----
-8928

query I rowsort
SELECT DISTINCT ( 9 ) AS col2
----
9

query II rowsort
SELECT 36 * + 64 * - 89, 32 * + 34 * + 94 AS col2
----
-205056
102272

query II rowsort
SELECT DISTINCT 68 AS col2, - 62 AS col2
----
68
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT - COUNT( * ) + + + 99 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-2138
SELECT - COUNT ( * ) + + + 99 AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2139
SELECT ALL + 59 DIV 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + 59 / 60 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT COUNT( * ) + 53 + + 1 DIV - + COUNT( * ) + + 13 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2140
SELECT COUNT ( * ) + 53 + + 1 / - + COUNT ( * ) + + 13 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT 62 + - 83 + + - 59 - 37 * + + COUNT( * ) + + 16 * + 90 * + ( - 16 ) + - + 72 AS col0
----
-23229

skipif mysql # not compatible
query I rowsort label-2141
SELECT 62 + - 83 + + - 59 - 37 * + + COUNT ( * ) + + 16 * + 90 * + ( - 16 ) + - + 72 AS col0
----
-23229

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2142
SELECT ALL 20 DIV + + MIN( 55 ) + + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL 20 / + + MIN ( 55 ) + + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2143
SELECT + 60 + - 66 * ( + 18 ) * + + 13 - + 17 + CASE - - COUNT( * ) WHEN 29 THEN NULL ELSE - COUNT( * ) * - 35 END + + COUNT( * ) - COUNT( + - ( - + NULLIF ( - ( + ( - 91 ) ), - 33 * + 67 ) ) ) * 29 * + - 21 / MAX( DISTINCT - ( + 72 ) ) * + CAST( NULL AS SIGNED ) + + 25 * - + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT + 60 + - 66 * ( + 18 ) * + + 13 - + 17 + CASE - - COUNT ( * ) WHEN 29 THEN NULL ELSE - COUNT ( * ) * - 35 END + + COUNT ( * ) - COUNT ( + - ( - + NULLIF ( - ( + ( - 91 ) ), - 33 * + 67 ) ) ) * 29 * + - 21 / MAX ( DISTINCT - ( + 72 ) ) * + CAST ( NULL AS INTEGER ) + + 25 * - + 57 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2144
SELECT DISTINCT + AVG ( ALL + 63 ) * CASE + - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) * - SUM( + + 28 ) / + COALESCE ( COALESCE ( 3, 69 + - + COUNT( * ) + + 58 - - 90 + COUNT( DISTINCT 71 ) / 88 ), - 63, + 63 * 28 ) * + 0 THEN - 60 + - 60 ELSE NULL END + + + 12 * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT + AVG ( ALL + 63 ) * CASE + - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) * - SUM ( + + 28 ) / + COALESCE ( COALESCE ( 3, 69 + - + COUNT ( * ) + + 58 - - 90 + COUNT ( DISTINCT 71 ) / 88 ), - 63, + 63 * 28 ) * + 0 THEN - 60 + - 60 ELSE NULL END + + + 12 * + 32
----
NULL

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

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

query I rowsort
SELECT 85 * + 54
----
4590

query I rowsort
SELECT NULLIF ( 19, - 27 ) AS col0
----
19

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2150
SELECT DISTINCT - ( 60 ) AS col0, + CAST( - - COALESCE ( - 27, - + 92, + COUNT( * ) * - + 11, 97 ) AS SIGNED ) * 40 + + + 54 AS col0
----
-60
-1026

skipif mysql # not compatible
query II rowsort label-2150
SELECT DISTINCT - ( 60 ) AS col0, + CAST ( - - COALESCE ( - 27, - + 92, + COUNT ( * ) * - + 11, 97 ) AS INTEGER ) * 40 + + + 54 AS col0
----
-60
-1026

query I rowsort
SELECT DISTINCT 16 * + + 52
----
832

onlyif mysql # DIV for integer division: 
query II rowsort label-2152
SELECT ALL + 20 DIV + + 14, + 32 AS col1
----
1
32

skipif mysql # not compatible
query II rowsort label-2152
SELECT ALL + 20 / + + 14, + 32 AS col1
----
1
32

query I rowsort
SELECT DISTINCT + 2 * + 93
----
186

query I rowsort
SELECT 60 * + + 38
----
2280

query I rowsort
SELECT + 16 * 10 * + 62 + - + 13 col0
----
9907

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2156
SELECT ALL 15 + + 53 * - - 80 * + + NULLIF ( + - ( - 47 ), CASE + - 99 WHEN - MAX( + + 76 ) THEN + 24 - 45 ELSE NULL END + - SUM( - 83 ) ) / + CAST( NULL AS DECIMAL ) * COALESCE ( + + 64, + 70 * + - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL 15 + + 53 * - - 80 * + + NULLIF ( + - ( - 47 ), CASE + - 99 WHEN - MAX ( + + 76 ) THEN + 24 - 45 ELSE NULL END + - SUM ( - 83 ) ) / + CAST ( NULL AS REAL ) * COALESCE ( + + 64, + 70 * + - 21 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2157
SELECT 82 + COUNT( + 15 ) DIV + 16 - - - 44 DIV + - 21 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2157
SELECT 82 + COUNT ( + 15 ) / + 16 - - - 44 / + - 21 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT MIN( - - 78 ) * - 12
----
-936

skipif mysql # not compatible
query I rowsort label-2158
SELECT MIN ( - - 78 ) * - 12
----
-936

query I rowsort
SELECT DISTINCT - 30 + + 34 + + 75 * + - 12
----
-896

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

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

query I rowsort
SELECT DISTINCT - 30 * - 52 AS col1
----
1560

onlyif mysql # DIV for integer division: 
query I rowsort label-2162
SELECT ALL - 72 + 10 DIV + 25 * + - 89 + 77 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL - 72 + 10 / + 25 * + - 89 + 77 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT - ( + CASE + COUNT( * ) WHEN 17 THEN 29 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT - ( + CASE + COUNT ( * ) WHEN 17 THEN 29 ELSE NULL END )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT DISTINCT 9 * + 11 * + MIN( - 48 ) * + 72
----
-342144

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT 9 * + 11 * + MIN ( - 48 ) * + 72
----
-342144

query I rowsort
SELECT DISTINCT - 78 - + - 50 AS col1
----
-28

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

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

query I rowsort
SELECT - 24 * - 72 + + 28 * - + 12 - 30 + - - 2 * 14 * 45 AS col1
----
2622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2169
SELECT + 33 DIV + MAX( + 44 )
----
0

skipif mysql # not compatible
query I rowsort label-2169
SELECT + 33 / + MAX ( + 44 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2170
SELECT DISTINCT + 54 / - CAST( NULL AS SIGNED ) - 74 - - + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT + 54 / - CAST ( NULL AS INTEGER ) - 74 - - + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT ( 9 ) - + CASE - CASE - 6 WHEN 67 THEN NULL ELSE 42 + - - 53 + + 78 * + - 83 / + - 96 END WHEN - 40 THEN NULL WHEN 88 + - 86 THEN NULL ELSE 38 + - + COUNT( * ) * 6 * - COUNT( * ) END + - - SUM( + 51 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-2171
SELECT ( 9 ) - + CASE - CASE - 6 WHEN 67 THEN NULL ELSE 42 + - - 53 + + 78 * + - 83 / + - 96 END WHEN - 40 THEN NULL WHEN 88 + - 86 THEN NULL ELSE 38 + - + COUNT ( * ) * 6 * - COUNT ( * ) END + - - SUM ( + 51 ) AS col1
----
16

query I rowsort
SELECT 38 * 71 AS col0
----
2698

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL + - 2 * + MIN( ALL - - 2 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL + - 2 * + MIN ( ALL - - 2 ) AS col2
----
-4

query I rowsort
SELECT 67 * + 86 col1
----
5762

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

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

query I rowsort
SELECT ALL 28 + + 45 + + 98 AS col1
----
171

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

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

query I rowsort
SELECT + 24 * + 70 + - 19 col1
----
1661

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2179
SELECT CASE - 70 WHEN - - 0 * - NULLIF ( + 96, + - 20 ) * - 46 + CASE + + 14 WHEN - - 16 THEN COUNT( 97 ) WHEN - CAST( 23 AS DECIMAL ) THEN + 27 END THEN + - COALESCE ( + + 88, + 53 / + - 77 ) ELSE - 80 + + - 92 + + - NULLIF ( 39, - + 39 * + + 79 ) END * - CASE + 18 WHEN - + 22 THEN 95 + - CASE + 28 WHEN + SUM( DISTINCT - + 67 ) THEN NULL ELSE - 35 END / - - AVG ( ALL 51 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT CASE - 70 WHEN - - 0 * - NULLIF ( + 96, + - 20 ) * - 46 + CASE + + 14 WHEN - - 16 THEN COUNT ( 97 ) WHEN - CAST ( 23 AS REAL ) THEN + 27 END THEN + - COALESCE ( + + 88, + 53 / + - 77 ) ELSE - 80 + + - 92 + + - NULLIF ( 39, - + 39 * + + 79 ) END * - CASE + 18 WHEN - + 22 THEN 95 + - CASE + 28 WHEN + SUM ( DISTINCT - + 67 ) THEN NULL ELSE - 35 END / - - AVG ( ALL 51 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT DISTINCT 93 * - COUNT( * ) + - 42
----
-135

skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT 93 * - COUNT ( * ) + - 42
----
-135

query I rowsort
SELECT ALL ( - 2 ) * 15 + - + 40
----
-70

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2183
SELECT DISTINCT COUNT( * ) * 84 + + 23, COUNT( * ) AS col0
----
107
1

skipif mysql # not compatible
query II rowsort label-2183
SELECT DISTINCT COUNT ( * ) * 84 + + 23, COUNT ( * ) AS col0
----
107
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2184
SELECT - CAST( + 3 AS SIGNED ) + ( + - 41 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-2184
SELECT - CAST ( + 3 AS INTEGER ) + ( + - 41 ) AS col2
----
-44

query I rowsort
SELECT - 2 * - 89 * - 75 AS col2
----
-13350

query I rowsort
SELECT ALL + 54 * - 40 AS col1
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT MIN( - - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-2187
SELECT MIN ( - - 59 )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2188
SELECT ALL + CASE NULLIF ( MIN( ALL ( 77 ) ), - 2 ) WHEN 55 - COALESCE ( COUNT( * ), 72 + + COALESCE ( - 86, 25 ) ) THEN NULL ELSE - 26 + 54 DIV 97 END
----
-26

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL + CASE NULLIF ( MIN ( ALL ( 77 ) ), - 2 ) WHEN 55 - COALESCE ( COUNT ( * ), 72 + + COALESCE ( - 86, 25 ) ) THEN NULL ELSE - 26 + 54 / 97 END
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT ALL CAST( 32 AS SIGNED ) - 99 * 52 AS col0
----
-5116

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL CAST ( 32 AS INTEGER ) - 99 * 52 AS col0
----
-5116

query I rowsort
SELECT - 66 * + 6
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT + CASE - COUNT( ( - 18 ) ) WHEN COUNT( * ) THEN NULL WHEN + ( - 41 ) + MAX( 75 ) THEN NULL WHEN 16 THEN 64 ELSE 38 END * - 61
----
-2318

skipif mysql # not compatible
query I rowsort label-2191
SELECT + CASE - COUNT ( ( - 18 ) ) WHEN COUNT ( * ) THEN NULL WHEN + ( - 41 ) + MAX ( 75 ) THEN NULL WHEN 16 THEN 64 ELSE 38 END * - 61
----
-2318

query I rowsort
SELECT DISTINCT + 0 * - 73
----
0

query I rowsort
SELECT - 42 + - 84
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT + COUNT( * ) * - COUNT( DISTINCT - CASE 17 WHEN + 35 THEN + 3 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2194
SELECT + COUNT ( * ) * - COUNT ( DISTINCT - CASE 17 WHEN + 35 THEN + 3 END ) AS col0
----
0

query I rowsort
SELECT - 53 * 85 + - 50
----
-4555

query I rowsort
SELECT - 0 + + 79
----
79

query I rowsort
SELECT + 76 * + 22
----
1672

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2199
SELECT + COUNT( - 62 ) + 94 DIV - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2199
SELECT + COUNT ( - 62 ) + 94 / - 94 AS col0
----
0

query I rowsort
SELECT DISTINCT + 38 * + 97
----
3686

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT DISTINCT SUM( ALL - 0 ) + + 26 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT SUM ( ALL - 0 ) + + 26 AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2202
SELECT - CASE + 51 WHEN - 42 THEN 91 WHEN NULLIF ( - 15, - 23 * CAST( + 93 AS SIGNED ) ) THEN - 94 * 30 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT - CASE + 51 WHEN - 42 THEN 91 WHEN NULLIF ( - 15, - 23 * CAST ( + 93 AS INTEGER ) ) THEN - 94 * 30 END col0
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL - 20 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2205
SELECT + CAST( 43 AS SIGNED ) DIV + 16 col1
----
2

skipif mysql # not compatible
query I rowsort label-2205
SELECT + CAST ( 43 AS INTEGER ) / + 16 col1
----
2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2207
SELECT - COALESCE ( ( + 0 ), CASE 21 WHEN 32 THEN NULL WHEN 59 + + 69 * 52 THEN NULL ELSE MAX( DISTINCT 97 ) END DIV - 46 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2207
SELECT - COALESCE ( ( + 0 ), CASE 21 WHEN 32 THEN NULL WHEN 59 + + 69 * 52 THEN NULL ELSE MAX ( DISTINCT 97 ) END / - 46 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 39 + 81 AS col0
----
120

query I rowsort
SELECT - COALESCE ( + 24, 60 )
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-2210
SELECT - 69 + 40 DIV 79
----
-69

skipif mysql # not compatible
query I rowsort label-2210
SELECT - 69 + 40 / 79
----
-69

query I rowsort
SELECT + 80 * 42 AS col0
----
3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2212
SELECT DISTINCT 51 DIV - 66 + + COUNT( * ) * 3
----
3

skipif mysql # not compatible
query I rowsort label-2212
SELECT DISTINCT 51 / - 66 + + COUNT ( * ) * 3
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT ALL + MAX( DISTINCT 30 ) * + 12 AS col1
----
360

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL + MAX ( DISTINCT 30 ) * + 12 AS col1
----
360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2214
SELECT DISTINCT 57 DIV COUNT( * ) + - 23 DIV 90 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT 57 / COUNT ( * ) + - 23 / 90 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT ( NULLIF ( COUNT( * ), 30 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2215
SELECT ( NULLIF ( COUNT ( * ), 30 ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2216
SELECT ALL - 80 DIV - 90 + - 83 * 52
----
-4316

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL - 80 / - 90 + - 83 * 52
----
-4316

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT + 82 * CASE - 95 WHEN + 85 THEN 90 - - COUNT( * ) WHEN 27 * + 30 THEN CASE + 18 WHEN + 81 * 25 + + 28 THEN NULL WHEN + 61 * - 5 THEN - 10 / 23 END WHEN - 90 * 56 - 84 THEN NULL ELSE NULL END + - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2218
SELECT + 82 * CASE - 95 WHEN + 85 THEN 90 - - COUNT ( * ) WHEN 27 * + 30 THEN CASE + 18 WHEN + 81 * 25 + + 28 THEN NULL WHEN + 61 * - 5 THEN - 10 / 23 END WHEN - 90 * 56 - 84 THEN NULL ELSE NULL END + - 69 AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2220
SELECT - CAST( 85 AS SIGNED ) * - 94 + - COUNT( * )
----
7989

skipif mysql # not compatible
query I rowsort label-2220
SELECT - CAST ( 85 AS INTEGER ) * - 94 + - COUNT ( * )
----
7989

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

query I rowsort
SELECT - 55 + 77
----
22

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

query I rowsort
SELECT - 84 + + NULLIF ( 41, + 34 * + 65 ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL + MAX( ALL + 37 ) * 2
----
74

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL + MAX ( ALL + 37 ) * 2
----
74

query I rowsort
SELECT - 19 * 6 + + 92
----
-22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT ALL - - 35 * 95 - COUNT( * ) AS col0
----
3324

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL - - 35 * 95 - COUNT ( * ) AS col0
----
3324

query I rowsort
SELECT - - 25 * 75 col0
----
1875

query I rowsort
SELECT ALL - - 35 * 7 AS col2
----
245

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

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

query I rowsort
SELECT DISTINCT - 87 * - 87 AS col2
----
7569

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT - + 65 DIV + 7 col1
----
-9

skipif mysql # not compatible
query I rowsort label-2233
SELECT - + 65 / + 7 col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT - NULLIF ( 10, 26 ) * 4 + + COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-2234
SELECT - NULLIF ( 10, 26 ) * 4 + + COUNT ( * ) AS col2
----
-39

query I rowsort
SELECT CASE 37 WHEN + 8 THEN - 81 * - 41 WHEN - 51 + 29 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2236
SELECT DISTINCT - - ( + 30 ) * + ( 9 * + 48 + CAST( + 1 + 29 AS SIGNED ) ) + - 72
----
13788

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT - - ( + 30 ) * + ( 9 * + 48 + CAST ( + 1 + 29 AS INTEGER ) ) + - 72
----
13788

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT - 42 * + COALESCE ( MAX( 74 ) - + COUNT( * ) * - COUNT( - 24 / + 10 + 94 ), + 89, COALESCE ( + 43, + COUNT( DISTINCT 94 ) * 32 ) ) AS col0
----
-3150

skipif mysql # not compatible
query I rowsort label-2239
SELECT - 42 * + COALESCE ( MAX ( 74 ) - + COUNT ( * ) * - COUNT ( - 24 / + 10 + 94 ), + 89, COALESCE ( + 43, + COUNT ( DISTINCT 94 ) * 32 ) ) AS col0
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL + COUNT( * ) + 23 col2
----
24

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL + COUNT ( * ) + 23 col2
----
24

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

skipif mysql # not compatible
query I rowsort label-2241
SELECT + NULLIF ( COUNT ( * ), + 76 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2242
SELECT ALL - 43 + - NULLIF ( 19 + + MIN( - CAST( + 37 AS SIGNED ) ) * 60, 71 * + 4 ) AS col2
----
2158

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - 43 + - NULLIF ( 19 + + MIN ( - CAST ( + 37 AS INTEGER ) ) * 60, 71 * + 4 ) AS col2
----
2158

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT - ( + 5 ) * - MAX( 9 + + 81 ) AS col2
----
450

skipif mysql # not compatible
query I rowsort label-2243
SELECT - ( + 5 ) * - MAX ( 9 + + 81 ) AS col2
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT ALL COUNT( + 33 ) + COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL COUNT ( + 33 ) + COUNT ( * ) col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT - SUM( - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-2245
SELECT - SUM ( - 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT + COUNT( - 0 ) - - 93 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-2246
SELECT + COUNT ( - 0 ) - - 93 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT DISTINCT + 44 + - + COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT + 44 + - + COUNT ( * ) AS col1
----
43

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

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

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

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

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

query I rowsort
SELECT DISTINCT 97 * - 56 AS col2
----
-5432

query I rowsort
SELECT ALL 21 - 75
----
-54

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2254
SELECT + ( - 93 ) * COUNT( * ) + - MIN( DISTINCT 4 ) DIV - 27
----
-93

skipif mysql # not compatible
query I rowsort label-2254
SELECT + ( - 93 ) * COUNT ( * ) + - MIN ( DISTINCT 4 ) / - 27
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-2255
SELECT 1 * + 36 * COALESCE ( 11 * 6, 27 DIV - 50, 25, 85 )
----
2376

skipif mysql # not compatible
query I rowsort label-2255
SELECT 1 * + 36 * COALESCE ( 11 * 6, 27 / - 50, 25, 85 )
----
2376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2256
SELECT 36 * + + COALESCE ( CAST( NULL AS SIGNED ), + CAST( 5 AS SIGNED ) * 85 ) AS col2
----
15300

skipif mysql # not compatible
query I rowsort label-2256
SELECT 36 * + + COALESCE ( CAST ( NULL AS INTEGER ), + CAST ( 5 AS INTEGER ) * 85 ) AS col2
----
15300

query I rowsort
SELECT DISTINCT 20 * 11 AS col2
----
220

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT COUNT( * ) + - 24 + - 51 * - 81 AS col2
----
4108

skipif mysql # not compatible
query I rowsort label-2259
SELECT COUNT ( * ) + - 24 + - 51 * - 81 AS col2
----
4108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2260
SELECT ALL 49 / + 54 * - CASE - 90 WHEN - 99 / + 55 THEN NULL WHEN 89 THEN NULL ELSE CAST( NULL AS SIGNED ) * - 81 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL 49 / + 54 * - CASE - 90 WHEN - 99 / + 55 THEN NULL WHEN 89 THEN NULL ELSE CAST ( NULL AS INTEGER ) * - 81 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT COUNT( * ) * + - CASE - 69 WHEN + 73 THEN 64 / + 31 END / SUM( ALL 87 * 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT COUNT ( * ) * + - CASE - 69 WHEN + 73 THEN 64 / + 31 END / SUM ( ALL 87 * 23 )
----
NULL

query I rowsort
SELECT ALL - + CASE + 61 WHEN AVG ( + 87 ) + + 87 * 62 THEN 12 + 15 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2263
SELECT 74 DIV + COUNT( ALL 52 )
----
74

skipif mysql # not compatible
query I rowsort label-2263
SELECT 74 / + COUNT ( ALL 52 )
----
74

query I rowsort
SELECT ALL - 49 * + 96 * + 51
----
-239904

query I rowsort
SELECT + 37 + 51
----
88

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

skipif mysql # not compatible
query I rowsort label-2266
SELECT - 77 * - COUNT ( * )
----
77

query I rowsort
SELECT DISTINCT - ( - - CASE 33 WHEN 24 THEN - 38 END )
----
NULL

query I rowsort
SELECT DISTINCT 78 + - 55 AS col2
----
23

query I rowsort
SELECT ALL - ( + 22 ) + CASE WHEN NOT NULL IS NULL THEN + 79 + 73 END / 63 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL - - MAX ( 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT DISTINCT - - CASE - 60 WHEN 70 * + 6 + 66 THEN NULL WHEN ( COUNT( * ) ) THEN + 76 END + + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT - - CASE - 60 WHEN 70 * + 6 + 66 THEN NULL WHEN ( COUNT ( * ) ) THEN + 76 END + + 44 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2272
SELECT ALL + + 95 + CASE 31 WHEN 31 + 18 THEN - 5 - - 19 WHEN 64 THEN ( + CAST( NULL AS SIGNED ) ) + + 9 * 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL + + 95 + CASE 31 WHEN 31 + 18 THEN - 5 - - 19 WHEN 64 THEN ( + CAST ( NULL AS INTEGER ) ) + + 9 * 3 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 47 + + 13
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT 54 - + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-2274
SELECT 54 - + COUNT ( * )
----
53

query I rowsort
SELECT - + CASE - - 25 WHEN + 51 THEN - 95 END
----
NULL

query I rowsort
SELECT - 62 - - 0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2277
SELECT - 76 DIV - COALESCE ( - 34, 7 DIV + 19 + 90 * COUNT( * ) ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-2277
SELECT - 76 / - COALESCE ( - 34, 7 / + 19 + 90 * COUNT ( * ) ) col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT ALL - + COUNT( * ) + + 60 * NULLIF ( 5, + 87 ) AS col0
----
299

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL - + COUNT ( * ) + + 60 * NULLIF ( 5, + 87 ) AS col0
----
299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2279
SELECT - 94 AS col0, - CAST( + + 78 AS SIGNED ) * 30 + COUNT( * ) AS col0
----
-94
-2339

skipif mysql # not compatible
query II rowsort label-2279
SELECT - 94 AS col0, - CAST ( + + 78 AS INTEGER ) * 30 + COUNT ( * ) AS col0
----
-94
-2339

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT 79 * + COUNT( * ) * + 50 * + 15
----
59250

skipif mysql # not compatible
query I rowsort label-2280
SELECT 79 * + COUNT ( * ) * + 50 * + 15
----
59250

query II rowsort
SELECT ALL 50 AS col1, - NULLIF ( + + 61, 48 * 57 ) * ( - 12 + + 15 )
----
50
-183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2282
SELECT ALL + 57 + - CAST( NULL AS SIGNED ) * ( - 89 ) * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL + 57 + - CAST ( NULL AS INTEGER ) * ( - 89 ) * 43
----
NULL

query I rowsort
SELECT ALL - 3 * - 60 col1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT 95 + - - 15 + - 85 * - COUNT( * )
----
195

skipif mysql # not compatible
query I rowsort label-2284
SELECT 95 + - - 15 + - 85 * - COUNT ( * )
----
195

query I rowsort
SELECT ALL 45 - - + 31 * 43 + 70 AS col1
----
1448

query II rowsort
SELECT DISTINCT 10, + 93 AS col2
----
10
93

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

skipif mysql # not compatible
query I rowsort label-2287
SELECT COUNT ( * ) / + 7 AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT COALESCE ( + 96, COUNT( - 88 ), 75 ) + + 58 * - 42
----
-2340

skipif mysql # not compatible
query I rowsort label-2289
SELECT COALESCE ( + 96, COUNT ( - 88 ), 75 ) + + 58 * - 42
----
-2340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT ALL CASE + - 20 WHEN + 4 THEN + CAST( NULL AS SIGNED ) + 0 ELSE - 10 * - 33 END - 35 * + 95
----
-2995

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL CASE + - 20 WHEN + 4 THEN + CAST ( NULL AS INTEGER ) + 0 ELSE - 10 * - 33 END - 35 * + 95
----
-2995

query I rowsort
SELECT DISTINCT 44 * 32
----
1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2292
SELECT 39 + - + 28 * + 6 + COALESCE ( + MIN( 17 ) + + 39 * 65, 29 + CAST( - 97 AS SIGNED ), - COALESCE ( 44, - CASE - ( 72 ) WHEN COUNT( * ) * 89 THEN NULL ELSE CAST( NULL AS SIGNED ) END + - 12, + 54 * + 21 ) ) * + MAX( 66 + 38 ) AS col1
----
265279

skipif mysql # not compatible
query I rowsort label-2292
SELECT 39 + - + 28 * + 6 + COALESCE ( + MIN ( 17 ) + + 39 * 65, 29 + CAST ( - 97 AS INTEGER ), - COALESCE ( 44, - CASE - ( 72 ) WHEN COUNT ( * ) * 89 THEN NULL ELSE CAST ( NULL AS INTEGER ) END + - 12, + 54 * + 21 ) ) * + MAX ( 66 + 38 ) AS col1
----
265279

query I rowsort
SELECT 10 * + + 3 * + 67
----
2010

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL 79 * + COUNT( * ) * - 34 AS col0
----
-2686

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL 79 * + COUNT ( * ) * - 34 AS col0
----
-2686

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT DISTINCT - CASE + NULLIF ( - NULLIF ( - 5, - 4 ), 86 * + 44 ) WHEN 65 + - COUNT( * ) THEN NULL WHEN + 47 - - 99 THEN 80 * - 84 END * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT - CASE + NULLIF ( - NULLIF ( - 5, - 4 ), 86 * + 44 ) WHEN 65 + - COUNT ( * ) THEN NULL WHEN + 47 - - 99 THEN 80 * - 84 END * + 32
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2296
SELECT ALL - CAST( - 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL - CAST ( - 61 AS INTEGER )
----
61

query I rowsort
SELECT DISTINCT - 41 * 7 * - 51 AS col1
----
14637

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

skipif mysql # not compatible
query I rowsort label-2298
SELECT MAX ( + - ( - 62 ) )
----
62

query II rowsort
SELECT ALL - 0, 46 * + 69 AS col2
----
0
3174

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

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

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

query II rowsort
SELECT 10 AS col2, + 37 + - 21 AS col1
----
10
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT - COUNT( * ) * - + 87 + - 11
----
76

skipif mysql # not compatible
query I rowsort label-2303
SELECT - COUNT ( * ) * - + 87 + - 11
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2304
SELECT - 61 DIV + 37
----
-1

skipif mysql # not compatible
query I rowsort label-2304
SELECT - 61 / + 37
----
-1

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

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + - 79
----
NULL

query I rowsort
SELECT ALL + 37 + 48
----
85

query I rowsort
SELECT ( 33 ) + + + 72 * - 40
----
-2847

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT DISTINCT MAX( ALL + + 46 ) + + - 65 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT MAX ( ALL + + 46 ) + + - 65 AS col2
----
-19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT DISTINCT - 46 + + 32 + - COUNT( * ) * NULLIF ( 82 * + 59, + 24 ) col0
----
-4852

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT - 46 + + 32 + - COUNT ( * ) * NULLIF ( 82 * + 59, + 24 ) col0
----
-4852

query I rowsort
SELECT ALL - COALESCE ( - 2, 82 * - 0 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT DISTINCT + NULLIF ( - 49, + + 93 ) + COUNT( * ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT + NULLIF ( - 49, + + 93 ) + COUNT ( * ) col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2313
SELECT 68 + + + 59 * - 97 + - CAST( 40 AS SIGNED )
----
-5695

skipif mysql # not compatible
query I rowsort label-2313
SELECT 68 + + + 59 * - 97 + - CAST ( 40 AS INTEGER )
----
-5695

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT DISTINCT + 85 + + 25 + 64 * COUNT( * ) AS col0
----
174

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT + 85 + + 25 + 64 * COUNT ( * ) AS col0
----
174

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT + 60 + + - MAX( + 53 ) - 0
----
7

skipif mysql # not compatible
query I rowsort label-2316
SELECT + 60 + + - MAX ( + 53 ) - 0
----
7

query I rowsort
SELECT DISTINCT - 44 - + + 75 AS col2
----
-119

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT DISTINCT + COUNT( * ) - 44 * + 88
----
-3871

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT + COUNT ( * ) - 44 * + 88
----
-3871

query I rowsort
SELECT - 86 * - 52 AS col2
----
4472

query I rowsort
SELECT + ( - 15 ) * + 73 AS col0
----
-1095

query I rowsort
SELECT - COALESCE ( - 1, 54 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT DISTINCT + COUNT( * ) * - 33 * - 55 * + COUNT( * ) AS col0
----
1815

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT + COUNT ( * ) * - 33 * - 55 * + COUNT ( * ) AS col0
----
1815

query I rowsort
SELECT - 50 * - 94
----
4700

query I rowsort
SELECT - 56 * - 62
----
3472

query I rowsort
SELECT - 67 - - 35 * - 69
----
-2482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2327
SELECT ALL COALESCE ( + + ( + COUNT( - + ( + 91 ) ) ), 3 * CAST( ( + 33 ) AS SIGNED ), 2 )
----
1

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL COALESCE ( + + ( + COUNT ( - + ( + 91 ) ) ), 3 * CAST ( ( + 33 ) AS INTEGER ), 2 )
----
1

query I rowsort
SELECT DISTINCT + 9 * - 12
----
-108

query I rowsort
SELECT - 20 * 14
----
-280

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT ALL + 64 DIV 39
----
1

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL + 64 / 39
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2331
SELECT - COUNT( * ) DIV 63 * ( - + NULLIF ( ( + 40 ), - 11 ) ) * + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT - COUNT ( * ) / 63 * ( - + NULLIF ( ( + 40 ), - 11 ) ) * + 97 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT ALL - 37 + ( - MIN( ( - 58 ) ) ) col1
----
21

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL - 37 + ( - MIN ( ( - 58 ) ) ) col1
----
21

query I rowsort
SELECT - 25 * + 45
----
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT + COUNT( * ) - - 77
----
78

skipif mysql # not compatible
query I rowsort label-2334
SELECT + COUNT ( * ) - - 77
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2335
SELECT MIN( DISTINCT + 19 ) DIV 55 + + 27
----
27

skipif mysql # not compatible
query I rowsort label-2335
SELECT MIN ( DISTINCT + 19 ) / 55 + + 27
----
27

query I rowsort
SELECT - + 77 + + 41 AS col0
----
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2337
SELECT - - CAST( NULL AS DECIMAL ) + ( + + 31 ) * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT - - CAST ( NULL AS REAL ) + ( + + 31 ) * - 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2338
SELECT ALL + - NULLIF ( + CAST( - 39 AS SIGNED ), - CAST( NULL AS SIGNED ) ) * - NULLIF ( 37 + + COUNT( * ), - AVG ( DISTINCT 77 ) ) AS col0
----
-1482

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL + - NULLIF ( + CAST ( - 39 AS INTEGER ), - CAST ( NULL AS INTEGER ) ) * - NULLIF ( 37 + + COUNT ( * ), - AVG ( DISTINCT 77 ) ) AS col0
----
-1482

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL MAX( ALL - 99 ) * + 26 + + 52 AS col2
----
-2522

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL MAX ( ALL - 99 ) * + 26 + + 52 AS col2
----
-2522

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT - MIN( DISTINCT - 71 ) * + + 13 + - + 25 col0
----
898

skipif mysql # not compatible
query I rowsort label-2340
SELECT - MIN ( DISTINCT - 71 ) * + + 13 + - + 25 col0
----
898

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT + - 20 * - SUM( 19 ) AS col2
----
380

skipif mysql # not compatible
query I rowsort label-2341
SELECT + - 20 * - SUM ( 19 ) AS col2
----
380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2342
SELECT + NULLIF ( - MIN( 56 ), + ( CAST( NULL AS SIGNED ) ) - + 23 )
----
-56

skipif mysql # not compatible
query I rowsort label-2342
SELECT + NULLIF ( - MIN ( 56 ), + ( CAST ( NULL AS INTEGER ) ) - + 23 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2343
SELECT + + CAST( - + 26 AS SIGNED ) * 71
----
-1846

skipif mysql # not compatible
query I rowsort label-2343
SELECT + + CAST ( - + 26 AS INTEGER ) * 71
----
-1846

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2344
SELECT ALL - 65 DIV + 72 + + + ( + - 61 ) * - COALESCE ( + SUM( DISTINCT 50 ) * + 42, + ( 57 ) * - 26 + 98 )
----
128100

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - 65 / + 72 + + + ( + - 61 ) * - COALESCE ( + SUM ( DISTINCT 50 ) * + 42, + ( 57 ) * - 26 + 98 )
----
128100

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT + ( + ( - 76 ) ) * - SUM( DISTINCT 1 ) + 8 - + NULLIF ( + ( 92 ), COUNT( DISTINCT - 38 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-2345
SELECT + ( + ( - 76 ) ) * - SUM ( DISTINCT 1 ) + 8 - + NULLIF ( + ( 92 ), COUNT ( DISTINCT - 38 ) )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT ALL + CASE WHEN NOT - COUNT( * ) <> ( - 67 * - COALESCE ( - 98 * + 36, CASE 68 WHEN 35 * + 44 THEN NULL ELSE 53 END ) ) THEN NULL WHEN COALESCE ( + COUNT( * ), - 28 + - 5 * + COUNT( * ) ) - - 41 IS NOT NULL THEN 78 END AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL + CASE WHEN NOT - COUNT ( * ) <> ( - 67 * - COALESCE ( - 98 * + 36, CASE 68 WHEN 35 * + 44 THEN NULL ELSE 53 END ) ) THEN NULL WHEN COALESCE ( + COUNT ( * ), - 28 + - 5 * + COUNT ( * ) ) - - 41 IS NOT NULL THEN 78 END AS col1
----
78

query I rowsort
SELECT DISTINCT + - 50 AS col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2348
SELECT ALL COUNT( * ) DIV ( + CASE + 76 WHEN + 57 THEN - COALESCE ( 72, - MIN( ALL - 50 ) * 62 + MIN( ALL + 72 ), - 59, 56 + + 34 ) * 43 ELSE 28 END ) * - 8
----
0

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL COUNT ( * ) / ( + CASE + 76 WHEN + 57 THEN - COALESCE ( 72, - MIN ( ALL - 50 ) * 62 + MIN ( ALL + 72 ), - 59, 56 + + 34 ) * 43 ELSE 28 END ) * - 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT ALL COUNT( * ) * MIN( ALL - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL COUNT ( * ) * MIN ( ALL - 91 )
----
-91

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

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

query I rowsort
SELECT DISTINCT 75 * - 95
----
-7125

query I rowsort
SELECT DISTINCT 33 * + 96
----
3168

query I rowsort
SELECT + 4 - - - 70
----
-66

query II rowsort
SELECT ALL 6 AS col2, - 94
----
6
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT + CASE + - CASE - COUNT( DISTINCT + 27 ) WHEN + - 87 THEN NULL WHEN COUNT( * ) THEN + 57 WHEN + 69 THEN NULL END WHEN + 88 * 69 THEN COUNT( * ) * 64 END + 60 * 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2355
SELECT + CASE + - CASE - COUNT ( DISTINCT + 27 ) WHEN + - 87 THEN NULL WHEN COUNT ( * ) THEN + 57 WHEN + 69 THEN NULL END WHEN + 88 * 69 THEN COUNT ( * ) * 64 END + 60 * 93 AS col2
----
NULL

query II rowsort
SELECT - 59, 44 + 74 * 65 col2
----
-59
4854

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2358
SELECT ALL COUNT( * ) AS col2, - CASE - - 62 WHEN + 87 THEN 63 + CAST( NULL AS DECIMAL ) / COUNT( * ) END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2358
SELECT ALL COUNT ( * ) AS col2, - CASE - - 62 WHEN + 87 THEN 63 + CAST ( NULL AS REAL ) / COUNT ( * ) END
----
1
NULL

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

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

query II rowsort
SELECT ALL 17, 1 + 31 AS col2
----
17
32

query I rowsort
SELECT + 44 + - ( 34 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL CASE WHEN + ( COUNT( * ) ) = + + COUNT( DISTINCT ( + NULLIF ( 92, 25 ) ) ) + ( - 90 ) THEN NULL WHEN - 28 IS NULL THEN 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL CASE WHEN + ( COUNT ( * ) ) = + + COUNT ( DISTINCT ( + NULLIF ( 92, 25 ) ) ) + ( - 90 ) THEN NULL WHEN - 28 IS NULL THEN 55 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT ALL ( + 96 ) + + 92 * COUNT( * )
----
188

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL ( + 96 ) + + 92 * COUNT ( * )
----
188

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT - COUNT( * ) + + MIN( - + 40 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-2365
SELECT - COUNT ( * ) + + MIN ( - + 40 ) AS col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2366
SELECT ALL ( + 70 ) DIV + 40 col0, CASE 22 WHEN - 0 * COUNT( DISTINCT - 78 ) THEN 13 WHEN 21 THEN NULL END DIV - 39 + SUM( DISTINCT + 44 ) * + COALESCE ( COUNT( * ) + COUNT( * ), CAST( NULL AS DECIMAL ) ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2366
SELECT ALL ( + 70 ) / + 40 col0, CASE 22 WHEN - 0 * COUNT ( DISTINCT - 78 ) THEN 13 WHEN 21 THEN NULL END / - 39 + SUM ( DISTINCT + 44 ) * + COALESCE ( COUNT ( * ) + COUNT ( * ), CAST ( NULL AS REAL ) ) AS col0
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2367
SELECT ALL COALESCE ( + - 80, 64 DIV + 38 )
----
-80

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL COALESCE ( + - 80, 64 / + 38 )
----
-80

query I rowsort
SELECT + 60 * - 29 AS col1
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT - ( - ( - COUNT( * ) ) ) + 40 * + 80 + 98 AS col2
----
3297

skipif mysql # not compatible
query I rowsort label-2369
SELECT - ( - ( - COUNT ( * ) ) ) + 40 * + 80 + 98 AS col2
----
3297

onlyif mysql # aggregate syntax: 
query II rowsort label-2370
SELECT DISTINCT + SUM( - + 1 ) + - 92 AS col0, - 14 col1
----
-93
-14

skipif mysql # not compatible
query II rowsort label-2370
SELECT DISTINCT + SUM ( - + 1 ) + - 92 AS col0, - 14 col1
----
-93
-14

query I rowsort
SELECT DISTINCT + 43 * - 66 AS col1
----
-2838

query I rowsort
SELECT DISTINCT + 68 * 92
----
6256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2373
SELECT ALL - + 78 DIV COUNT( * ) + + ( + COUNT( * ) ) + - 85 + 65 DIV 89
----
-162

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL - + 78 / COUNT ( * ) + + ( + COUNT ( * ) ) + - 85 + 65 / 89
----
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT DISTINCT - - 51 DIV - - 62 + 3 * - 99
----
-297

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT - - 51 / - - 62 + 3 * - 99
----
-297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2375
SELECT ALL 88 DIV 50 + 56 + - COUNT( * ) * + COUNT( * ) - - 76
----
132

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL 88 / 50 + 56 + - COUNT ( * ) * + COUNT ( * ) - - 76
----
132

query I rowsort
SELECT 71 * 66 * 55 - 56 - + - 44 * + 66 * 43
----
382546

query I rowsort
SELECT - - 65 * + 72 col0
----
4680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2378
SELECT ALL - 60 / 96 * ( + 95 ) + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL - 60 / 96 * ( + 95 ) + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2379
SELECT - + 91 * - 72 * + - ( 52 ) * - + 43 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2379
SELECT - + 91 * - 72 * + - ( 52 ) * - + 43 * - CAST ( NULL AS INTEGER )
----
NULL

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

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

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

query I rowsort
SELECT - 95 + 59
----
-36

query I rowsort
SELECT DISTINCT + - ( + 92 ) * + 47 - 21 AS col0
----
-4345

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT ALL + MIN( 28 ) - + - 68
----
96

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL + MIN ( 28 ) - + - 68
----
96

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

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

query I rowsort
SELECT DISTINCT + 26 * 75 AS col1
----
1950

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

query I rowsort
SELECT 94 * + 89
----
8366

query II rowsort
SELECT 30 + - 8 + + 25 * + 47 AS col1, + 0
----
1197
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2390
SELECT ALL - 65 AS col2, + 2 * 1 + - COUNT( * ) + 63 - - - COALESCE ( + COALESCE ( 87, + CASE + 21 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 45 - AVG ( 12 + 85 ) * + COUNT( * ) THEN NULL WHEN 31 THEN + SUM( ( - 7 ) ) ELSE 44 END * - 33, + 58 ), 54 ) * 25 DIV 77 * - NULLIF ( 70 - 83, 50 * 61 ) AS col2
----
-65
-300

skipif mysql # not compatible
query II rowsort label-2390
SELECT ALL - 65 AS col2, + 2 * 1 + - COUNT ( * ) + 63 - - - COALESCE ( + COALESCE ( 87, + CASE + 21 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 45 - AVG ( 12 + 85 ) * + COUNT ( * ) THEN NULL WHEN 31 THEN + SUM ( ( - 7 ) ) ELSE 44 END * - 33, + 58 ), 54 ) * 25 / 77 * - NULLIF ( 70 - 83, 50 * 61 ) AS col2
----
-65
-300

onlyif mysql # aggregate syntax: 
query II rowsort label-2391
SELECT - 58, 82 - + 10 - - SUM( DISTINCT + - 50 ) + - 43 AS col2
----
-58
-21

skipif mysql # not compatible
query II rowsort label-2391
SELECT - 58, 82 - + 10 - - SUM ( DISTINCT + - 50 ) + - 43 AS col2
----
-58
-21

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

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

query I rowsort
SELECT ALL 56 * + 92
----
5152

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2395
SELECT ALL NULLIF ( 91, CAST( NULL AS SIGNED ) * 57 ) + - + 66 + - 98 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL NULLIF ( 91, CAST ( NULL AS INTEGER ) * 57 ) + - + 66 + - 98 AS col2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-2396
SELECT DISTINCT 85 DIV - - 78 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT 85 / - - 78 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2397
SELECT 39 DIV - + 65
----
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT 39 / - + 65
----
0

query I rowsort
SELECT 10 - - - 71 col0
----
-61

query I rowsort
SELECT 45 * + 28 AS col0
----
1260

query I rowsort
SELECT ALL 20 * - 35 col0
----
-700

query I rowsort
SELECT ALL ( 63 ) + + 82 AS col0
----
145

query I rowsort
SELECT COALESCE ( - 75, + 24, - ( + 52 ) + - + COALESCE ( + 97, - 15 * 58 ) ) * 28
----
-2100

onlyif mysql # DIV for integer division: 
query I rowsort label-2403
SELECT 29 DIV - ( + + 32 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2403
SELECT 29 / - ( + + 32 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2404
SELECT 2, + ( + - NULLIF ( + COUNT( ALL 15 ), 94 ) ) + 36 AS col2
----
2
35

skipif mysql # not compatible
query II rowsort label-2404
SELECT 2, + ( + - NULLIF ( + COUNT ( ALL 15 ), 94 ) ) + 36 AS col2
----
2
35

onlyif mysql # DIV for integer division: 
query II rowsort label-2405
SELECT ALL 49 + - 29 AS col0, 49 DIV + ( NULLIF ( - 71, 7 ) )
----
20
0

skipif mysql # not compatible
query II rowsort label-2405
SELECT ALL 49 + - 29 AS col0, 49 / + ( NULLIF ( - 71, 7 ) )
----
20
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2407
SELECT ALL 11 * 64 DIV + 23 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL 11 * 64 / + 23 AS col1
----
30

query II rowsort
SELECT DISTINCT - 13 + + + 61 AS col0, 35 * - 90
----
48
-3150

query II rowsort
SELECT ALL 74, 30 + + + 34 AS col0
----
74
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT ALL - 80 + 10 + COUNT( ALL + + 97 )
----
-69

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL - 80 + 10 + COUNT ( ALL + + 97 )
----
-69

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

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

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

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

query II rowsort
SELECT ALL 97 col2, + 58
----
97
58

query II rowsort
SELECT - 8, 13 + 42 AS col2
----
-8
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT 77 * NULLIF ( - 29, - ( MIN( ALL + 3 ) ) ) * - SUM( 95 ) AS col2
----
212135

skipif mysql # not compatible
query I rowsort label-2415
SELECT 77 * NULLIF ( - 29, - ( MIN ( ALL + 3 ) ) ) * - SUM ( 95 ) AS col2
----
212135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2416
SELECT DISTINCT - + CAST( - 99 AS SIGNED ) * - - 44 AS col2
----
4356

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT - + CAST ( - 99 AS INTEGER ) * - - 44 AS col2
----
4356

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT ALL + + MAX( ALL - 82 ) - 15 + 46 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL + + MAX ( ALL - 82 ) - 15 + 46 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-2418
SELECT ALL - 65 * MAX( + - ( + 9 ) ), 11 - ( - ( CASE WHEN ( - 71 ) <> NULL THEN + 17 ELSE NULL END ) ) AS col2
----
585
NULL

skipif mysql # not compatible
query II rowsort label-2418
SELECT ALL - 65 * MAX ( + - ( + 9 ) ), 11 - ( - ( CASE WHEN ( - 71 ) <> NULL THEN + 17 ELSE NULL END ) ) AS col2
----
585
NULL

query I rowsort
SELECT ALL 40 * + 99 col2
----
3960

query I rowsort
SELECT DISTINCT - - 45 AS col2
----
45

query II rowsort
SELECT ALL - 2, 57 col2
----
-2
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT ALL - + CASE - ( 39 ) WHEN - COUNT( DISTINCT 61 ) THEN - MAX( ALL 84 ) ELSE + 34 END
----
-34

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL - + CASE - ( 39 ) WHEN - COUNT ( DISTINCT 61 ) THEN - MAX ( ALL 84 ) ELSE + 34 END
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-2423
SELECT ALL - COUNT( * ) AS col2, + 94 * - 3 * + + 88 AS col1
----
-1
-24816

skipif mysql # not compatible
query II rowsort label-2423
SELECT ALL - COUNT ( * ) AS col2, + 94 * - 3 * + + 88 AS col1
----
-1
-24816

query II rowsort
SELECT DISTINCT - - 85 AS col2, 91
----
85
91

query I rowsort
SELECT 25 + + 50 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT 24 + + - COUNT( + + 1 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-2426
SELECT 24 + + - COUNT ( + + 1 ) AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2427
SELECT ALL - ( + 38 ) DIV - - 31 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL - ( + 38 ) / - - 31 + COUNT ( * )
----
0

query I rowsort
SELECT 4 * + - 30 AS col1
----
-120

query II rowsort
SELECT 39 * - - 14 * 48 AS col0, 37 - 74 * - - 62
----
26208
-4551

query I rowsort
SELECT 68 * - 68 * + 67 - - - 78
----
-309886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2431
SELECT DISTINCT - ( 57 ) * + + 90 AS col1, + 81 * NULLIF ( + CAST( NULL AS SIGNED ), - 24 ) / 76
----
-5130
NULL

skipif mysql # not compatible
query II rowsort label-2431
SELECT DISTINCT - ( 57 ) * + + 90 AS col1, + 81 * NULLIF ( + CAST ( NULL AS INTEGER ), - 24 ) / 76
----
-5130
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 14, + + 12 ) + - - 97
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT ALL + 68 + + - COUNT( * ) * + - 36 + - - 66 AS col0
----
170

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL + 68 + + - COUNT ( * ) * + - 36 + - - 66 AS col0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL 15 * + + 56 * + 59 * - COUNT( * ) AS col2
----
-49560

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL 15 * + + 56 * + 59 * - COUNT ( * ) AS col2
----
-49560

query I rowsort
SELECT 29 * 57 AS col0
----
1653

query II rowsort
SELECT ALL - 4 + + 78 AS col1, 53
----
74
53

query I rowsort
SELECT ALL - ( 72 ) * - 36
----
2592

query I rowsort
SELECT 19 + + 88 * - 98 - - 1 AS col0
----
-8604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT DISTINCT - 60 + - 23 + - 92 + + ( - AVG ( - + 91 ) ) * + - 8 * CAST( NULL AS SIGNED ) * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT - 60 + - 23 + - 92 + + ( - AVG ( - + 91 ) ) * + - 8 * CAST ( NULL AS INTEGER ) * + 84
----
NULL

query II rowsort
SELECT ALL 73 + + 80 AS col0, - 51
----
153
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT COUNT( * ) + - + COUNT( * ) * - 4 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2441
SELECT COUNT ( * ) + - + COUNT ( * ) * - 4 AS col1
----
5

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2443
SELECT ALL 66 DIV - 27 AS col1, 93 AS col2
----
-2
93

skipif mysql # not compatible
query II rowsort label-2443
SELECT ALL 66 / - 27 AS col1, 93 AS col2
----
-2
93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2445
SELECT + 52 + - CAST( - ( 84 ) AS SIGNED )
----
136

skipif mysql # not compatible
query I rowsort label-2445
SELECT + 52 + - CAST ( - ( 84 ) AS INTEGER )
----
136

query I rowsort
SELECT ALL - + 42 - - 37 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT DISTINCT + CASE - COUNT( * ) WHEN 29 + - 46 + 7 THEN - - 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT + CASE - COUNT ( * ) WHEN 29 + - 46 + 7 THEN - - 91 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT ALL 31 * - 24 - - 16 + 50 * + - 24 * - 74 * 0 + + COUNT( * )
----
-727

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL 31 * - 24 - - 16 + 50 * + - 24 * - 74 * 0 + + COUNT ( * )
----
-727

query I rowsort
SELECT 12 + - 55
----
-43

query I rowsort
SELECT 99 + - ( + 71 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2451
SELECT DISTINCT + NULLIF ( - + 34, + 14 ) * + - 42 DIV + - 21 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT + NULLIF ( - + 34, + 14 ) * + - 42 / + - 21 AS col1
----
-68

query I rowsort
SELECT - 28 * 93 * + 63 AS col1
----
-164052

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT - 2 + - 95 + - + ( - - 54 ) * + ( - - COUNT( * ) ) col0
----
-151

skipif mysql # not compatible
query I rowsort label-2453
SELECT - 2 + - 95 + - + ( - - 54 ) * + ( - - COUNT ( * ) ) col0
----
-151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2454
SELECT ALL 72 - + 7 + CAST( NULL AS SIGNED ) * - 35 + COUNT( * ), - 18 * - 97 AS col0
----
NULL
1746

skipif mysql # not compatible
query II rowsort label-2454
SELECT ALL 72 - + 7 + CAST ( NULL AS INTEGER ) * - 35 + COUNT ( * ), - 18 * - 97 AS col0
----
NULL
1746

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT - + NULLIF ( 39, - SUM( 68 ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2455
SELECT - + NULLIF ( 39, - SUM ( 68 ) ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-2456
SELECT DISTINCT COUNT( * ) * 82 AS col1, - 24 AS col0
----
82
-24

skipif mysql # not compatible
query II rowsort label-2456
SELECT DISTINCT COUNT ( * ) * 82 AS col1, - 24 AS col0
----
82
-24

query I rowsort
SELECT + 77 * - 77 * - 89 AS col0
----
527681

query I rowsort
SELECT DISTINCT + - 17 AS col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2459
SELECT + 79 DIV + + COUNT( * ) - + - 40 - + 85 + - 2 * 20
----
-6

skipif mysql # not compatible
query I rowsort label-2459
SELECT + 79 / + + COUNT ( * ) - + - 40 - + 85 + - 2 * 20
----
-6

query I rowsort
SELECT + 44 * 73 AS col2
----
3212

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT DISTINCT - ( - + 33 ) * - - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT - ( - + 33 ) * - - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT - - COUNT( * ) * + COUNT( * ) + + 27
----
28

skipif mysql # not compatible
query I rowsort label-2463
SELECT - - COUNT ( * ) * + COUNT ( * ) + + 27
----
28

query I rowsort
SELECT ALL + 94 * ( - 10 ) * 20 * 65 + 39 AS col2
----
-1221961

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT - 57 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-2466
SELECT - 57 / + 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT ALL - 95 * COUNT( * ) * 6 + COUNT( * ) - - + 73
----
-496

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL - 95 * COUNT ( * ) * 6 + COUNT ( * ) - - + 73
----
-496

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

skipif mysql # not compatible
query I rowsort label-2468
SELECT 72 * - COUNT ( * ) * 98 + - 97 AS col2
----
-7153

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2470
SELECT - 21 DIV 5
----
-4

skipif mysql # not compatible
query I rowsort label-2470
SELECT - 21 / 5
----
-4

query I rowsort
SELECT ALL 28 * + - 71 * - 66 + - + 41 AS col0
----
131167

query I rowsort
SELECT 37 * - 10 + ( 85 ) AS col1
----
-285

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

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

query I rowsort
SELECT ALL + 1 * - 73 * 19 * 86 + - 61 + + + 66 * - 77 col0
----
-124425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2475
SELECT - 67 + ( + CAST( NULL AS SIGNED ) ) + + 77 - 49 * + - NULLIF ( + COUNT( * ), - 73 ) + - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT - 67 + ( + CAST ( NULL AS INTEGER ) ) + + 77 - 49 * + - NULLIF ( + COUNT ( * ), - 73 ) + - 71 AS col1
----
NULL

query I rowsort
SELECT ALL CASE - 86 WHEN ( - ( 69 ) ) / - - 98 THEN - + AVG ( - - 0 ) END * - 92 + ( 16 ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT - COUNT( * ) * + CASE ( + 93 ) WHEN ( 11 ) + + 5 * - 6 * - 68 + 31 THEN - 18 * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT - COUNT ( * ) * + CASE ( + 93 ) WHEN ( 11 ) + + 5 * - 6 * - 68 + 31 THEN - 18 * - COUNT ( * ) ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 2 + - 85 AS col1
----
-83

query I rowsort
SELECT ALL - 47 * + 81 col0
----
-3807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2482
SELECT DISTINCT + 92 - - ( 39 ) * - CASE + + CAST( 49 AS SIGNED ) WHEN - - 74 + + + 58 * 41 THEN - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT + 92 - - ( 39 ) * - CASE + + CAST ( 49 AS INTEGER ) WHEN - - 74 + + + 58 * 41 THEN - 74 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT ALL COUNT( * ) - 54 - - 4 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL COUNT ( * ) - 54 - - 4 AS col0
----
-49

query I rowsort
SELECT ALL - + 15 * + 86 AS col1
----
-1290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2486
SELECT - MIN( 55 ) - - 75 + CAST( NULL AS SIGNED ) * + - CAST( + 76 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2486
SELECT - MIN ( 55 ) - - 75 + CAST ( NULL AS INTEGER ) * + - CAST ( + 76 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT - COUNT( * ) + 98 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-2487
SELECT - COUNT ( * ) + 98 AS col0
----
97

query II rowsort
SELECT + 48, + 39 AS col0
----
48
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT ALL - + COUNT( * ) - + - 93
----
92

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL - + COUNT ( * ) - + - 93
----
92

query I rowsort
SELECT - - NULLIF ( - ( - 54 ), + + 57 ) col1
----
54

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

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

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

query II rowsort
SELECT DISTINCT - 47 col1, - 30 AS col0
----
-47
-30

query II rowsort
SELECT DISTINCT - 35, - 23 AS col0
----
-35
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-2495
SELECT ALL - 93 AS col1, + MAX( DISTINCT + 10 ) + - 5
----
-93
5

skipif mysql # not compatible
query II rowsort label-2495
SELECT ALL - 93 AS col1, + MAX ( DISTINCT + 10 ) + - 5
----
-93
5

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

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL - 48 / COUNT ( * ) AS col0
----
-48

query I rowsort
SELECT - - 43 - - 8
----
51

query II rowsort
SELECT ALL 32 AS col0, - 68
----
32
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-2499
SELECT DISTINCT + COUNT( * ), 2 * + + 97 AS col1
----
1
194

skipif mysql # not compatible
query II rowsort label-2499
SELECT DISTINCT + COUNT ( * ), 2 * + + 97 AS col1
----
1
194

query I rowsort
SELECT DISTINCT + 15 * + ( - 90 ) + 60 AS col1
----
-1290

onlyif mysql # DIV for integer division: 
query I rowsort label-2501
SELECT DISTINCT + + 73 DIV - + 7 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT + + 73 / - + 7 AS col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2502
SELECT - - 75 AS col1, - 14 / - + CAST( NULL AS SIGNED ) * - 35 + 48
----
75
NULL

skipif mysql # not compatible
query II rowsort label-2502
SELECT - - 75 AS col1, - 14 / - + CAST ( NULL AS INTEGER ) * - 35 + 48
----
75
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2503
SELECT - + 65 DIV 47 DIV 72 col2
----
0

skipif mysql # not compatible
query I rowsort label-2503
SELECT - + 65 / 47 / 72 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2504
SELECT + + 60 * + 62 + + 61 + + - COUNT( * ) + + + COUNT( * ) + NULLIF ( 57, + ( - 55 ) * 69 ) DIV 72 AS col1
----
3781

skipif mysql # not compatible
query I rowsort label-2504
SELECT + + 60 * + 62 + + 61 + + - COUNT ( * ) + + + COUNT ( * ) + NULLIF ( 57, + ( - 55 ) * 69 ) / 72 AS col1
----
3781

onlyif mysql # DIV for integer division: 
query I rowsort label-2505
SELECT + - 85 * 41 DIV - 94 + 38 * - - 41
----
1595

skipif mysql # not compatible
query I rowsort label-2505
SELECT + - 85 * 41 / - 94 + 38 * - - 41
----
1595

query I rowsort
SELECT - - 49 * + 4 - + 99
----
97

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

query I rowsort
SELECT ALL + + 31 * - - 46 * + + 97 * + 52 + 80
----
7192824

onlyif mysql # aggregate syntax: 
query II rowsort label-2509
SELECT + CASE - 1 WHEN 14 THEN + - COUNT( * ) ELSE NULL END AS col0, 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-2509
SELECT + CASE - 1 WHEN 14 THEN + - COUNT ( * ) ELSE NULL END AS col0, 84
----
NULL
84

query II rowsort
SELECT + 45 * 26 AS col2, + 77 AS col2
----
1170
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT ALL + 73 DIV - + 8 + - 80
----
-89

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL + 73 / - + 8 + - 80
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-2512
SELECT ALL 56 DIV 85 + - + 9 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL 56 / 85 + - + 9 AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2513
SELECT - 62 DIV - 79 + + 57 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-2513
SELECT - 62 / - 79 + + 57 AS col2
----
57

query I rowsort
SELECT + 15 * - ( NULLIF ( CASE + 18 WHEN - - 4 THEN 5 + 85 END, - + 86 ) )
----
NULL

query I rowsort
SELECT + 85 + + - 67 * + - 79 AS col2
----
5378

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT ALL + 57 * + 37 + COUNT( * )
----
2110

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL + 57 * + 37 + COUNT ( * )
----
2110

query II rowsort
SELECT ( + + 85 ) col2, COALESCE ( - 4, - 3 )
----
85
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT + 79 - COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-2518
SELECT + 79 - COUNT ( * ) AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2519
SELECT DISTINCT 91 * - 80 col2, - ( - CAST( NULL AS SIGNED ) ) col2
----
-7280
NULL

skipif mysql # not compatible
query II rowsort label-2519
SELECT DISTINCT 91 * - 80 col2, - ( - CAST ( NULL AS INTEGER ) ) col2
----
-7280
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2520
SELECT ALL + 80 * - 8 - - 36 + COUNT( * ) AS col1, 43 + - 69
----
-603
-26

skipif mysql # not compatible
query II rowsort label-2520
SELECT ALL + 80 * - 8 - - 36 + COUNT ( * ) AS col1, 43 + - 69
----
-603
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT ALL + NULLIF ( + + 60, + - 86 + - 77 * + 91 * - COUNT( * ) * - 20 * - + CASE - 97 WHEN COUNT( * ) THEN ( 22 ) / - 7 ELSE NULL END )
----
60

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL + NULLIF ( + + 60, + - 86 + - 77 * + 91 * - COUNT ( * ) * - 20 * - + CASE - 97 WHEN COUNT ( * ) THEN ( 22 ) / - 7 ELSE NULL END )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2522
SELECT + COUNT( * ) + COUNT( * ) AS col2, - SUM( DISTINCT - - ( - - 49 ) ) * - 64 * + 77 * - + 74 + + 45 + + 92
----
2
-17868791

skipif mysql # not compatible
query II rowsort label-2522
SELECT + COUNT ( * ) + COUNT ( * ) AS col2, - SUM ( DISTINCT - - ( - - 49 ) ) * - 64 * + 77 * - + 74 + + 45 + + 92
----
2
-17868791

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2523
SELECT ALL - 31 * + + CAST( NULL AS SIGNED ) * - COUNT( + + 86 ) * COUNT( 86 ) + + - 80 * - + 71 + + 41 - - 91 * - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL - 31 * + + CAST ( NULL AS INTEGER ) * - COUNT ( + + 86 ) * COUNT ( 86 ) + + - 80 * - + 71 + + 41 - - 91 * - 55 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2524
SELECT DISTINCT CAST( ( COUNT( + 12 ) ) AS SIGNED ) * - - 44
----
44

skipif mysql # not compatible
query I rowsort label-2524
SELECT DISTINCT CAST ( ( COUNT ( + 12 ) ) AS INTEGER ) * - - 44
----
44

query I rowsort
SELECT ALL 54 * + + 18 - + 25 * + 76
----
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT NULLIF ( COALESCE ( 44, 56 ), - + MAX( + 52 ) )
----
44

skipif mysql # not compatible
query I rowsort label-2526
SELECT NULLIF ( COALESCE ( 44, 56 ), - + MAX ( + 52 ) )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2527
SELECT - CAST( + 6 AS SIGNED ) * - 64 + 83 + + - 44 AS col1
----
423

skipif mysql # not compatible
query I rowsort label-2527
SELECT - CAST ( + 6 AS INTEGER ) * - 64 + 83 + + - 44 AS col1
----
423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2528
SELECT - ( + CASE - - 63 WHEN - 69 * - NULLIF ( COUNT( * ), CAST( NULL AS SIGNED ) ) THEN NULL ELSE CASE ( NULLIF ( 22, - 18 * 55 + + 17 * + 47 ) ) WHEN 63 * - 21 THEN NULL WHEN 9 THEN CAST( + ( - 43 ) AS SIGNED ) * CAST( NULL AS DECIMAL ) END END ) - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT - ( + CASE - - 63 WHEN - 69 * - NULLIF ( COUNT ( * ), CAST ( NULL AS INTEGER ) ) THEN NULL ELSE CASE ( NULLIF ( 22, - 18 * 55 + + 17 * + 47 ) ) WHEN 63 * - 21 THEN NULL WHEN 9 THEN CAST ( + ( - 43 ) AS INTEGER ) * CAST ( NULL AS REAL ) END END ) - 22
----
NULL

query I rowsort
SELECT + 96 * + + 76
----
7296

query I rowsort
SELECT + - 38 * + 70 AS col0
----
-2660

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT - + COUNT( * ) + + + 67
----
66

skipif mysql # not compatible
query I rowsort label-2531
SELECT - + COUNT ( * ) + + + 67
----
66

query I rowsort
SELECT + 10 + 57
----
67

query I rowsort
SELECT - + 63 * 54 + - 57 AS col2
----
-3459

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ALL COALESCE ( - - 65, MIN( - 54 ) )
----
65

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL COALESCE ( - - 65, MIN ( - 54 ) )
----
65

query I rowsort
SELECT DISTINCT - 99 / CASE 99 WHEN - 95 * - AVG ( DISTINCT 69 ) THEN ( + 84 ) * 26 ELSE NULL END - 86
----
NULL

query I rowsort
SELECT 21 + + - 92
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT DISTINCT COALESCE ( + 90, + MIN( - - 96 ) - - 13 )
----
90

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT COALESCE ( + 90, + MIN ( - - 96 ) - - 13 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT ALL CASE - COUNT( ALL - 66 ) WHEN + 85 THEN COALESCE ( 26, 99 * 5 + COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL CASE - COUNT ( ALL - 66 ) WHEN + 85 THEN COALESCE ( 26, 99 * 5 + COUNT ( * ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL + - 70 * + 77 + + COUNT( - 65 ) AS col1
----
-5389

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL + - 70 * + 77 + + COUNT ( - 65 ) AS col1
----
-5389

query I rowsort
SELECT ALL - + 8 + + 40
----
32

query I rowsort
SELECT + 17 * + 39
----
663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2542
SELECT ALL + ( + + CAST( + 43 AS SIGNED ) )
----
43

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL + ( + + CAST ( + 43 AS INTEGER ) )
----
43

query I rowsort
SELECT 21 * - + NULLIF ( - + COALESCE ( + 14, + 93 ), + - 92 * - 5 ) AS col2
----
294

query I rowsort
SELECT + 0 + - - 39
----
39

query I rowsort
SELECT ALL - - 82 + - 62 + + 59 * 39 + - + 91 * + + 69
----
-3958

query I rowsort
SELECT ALL + - ( + 36 ) + + 74 AS col1
----
38

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

skipif mysql # not compatible
query I rowsort label-2547
SELECT 70 * + + COUNT ( * ) * - + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT 0 + 85 * COUNT( * ) + + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-2548
SELECT 0 + 85 * COUNT ( * ) + + COUNT ( * )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2549
SELECT DISTINCT CAST( + CASE + + 31 WHEN - 67 THEN - + 96 WHEN + 4 THEN - + COUNT( * ) * - + CAST( NULL AS SIGNED ) ELSE + 54 END AS SIGNED ) + - 60 + 90
----
84

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT CAST ( + CASE + + 31 WHEN - 67 THEN - + 96 WHEN + 4 THEN - + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) ELSE + 54 END AS INTEGER ) + - 60 + 90
----
84

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

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

query I rowsort
SELECT ALL 92 + 70 AS col1
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-2552
SELECT ALL + 45 DIV - 30 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL + 45 / - 30 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2553
SELECT - MIN( ALL - 65 ) DIV + 66 * + COUNT( * ) * - + 1 * - + 45 * + COUNT( * ) - - 64 AS col2, + ( COUNT( * ) ) * 98
----
64
98

skipif mysql # not compatible
query II rowsort label-2553
SELECT - MIN ( ALL - 65 ) / + 66 * + COUNT ( * ) * - + 1 * - + 45 * + COUNT ( * ) - - 64 AS col2, + ( COUNT ( * ) ) * 98
----
64
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT COUNT( - 81 ) + + CASE 49 WHEN - 37 THEN + 74 * - CASE ( - 5 ) WHEN COUNT( * ) THEN 96 * - 42 WHEN + COUNT( * ) THEN NULL END - 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT COUNT ( - 81 ) + + CASE 49 WHEN - 37 THEN + 74 * - CASE ( - 5 ) WHEN COUNT ( * ) THEN 96 * - 42 WHEN + COUNT ( * ) THEN NULL END - 89 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT DISTINCT CASE - 73 WHEN + + COUNT( 21 ) THEN + - SUM( ALL - 73 ) WHEN - - 83 * 24 + + 75 THEN COUNT( ALL - 93 ) WHEN + SUM( 35 ) / + 86 THEN NULL END - - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT CASE - 73 WHEN + + COUNT ( 21 ) THEN + - SUM ( ALL - 73 ) WHEN - - 83 * 24 + + 75 THEN COUNT ( ALL - 93 ) WHEN + SUM ( 35 ) / + 86 THEN NULL END - - 11 AS col1
----
NULL

query I rowsort
SELECT ALL 56 * 43 AS col2
----
2408

onlyif mysql # aggregate syntax: 
query II rowsort label-2557
SELECT 29 * + - 87 * - MIN( - 64 ) * + 70 * - ( - + 63 ) + - 56, COUNT( * ) AS col1
----
-712091576
1

skipif mysql # not compatible
query II rowsort label-2557
SELECT 29 * + - 87 * - MIN ( - 64 ) * + 70 * - ( - + 63 ) + - 56, COUNT ( * ) AS col1
----
-712091576
1

query I rowsort
SELECT DISTINCT 9 - 71 AS col0
----
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-2559
SELECT 55 * 92 DIV 27 * + - 28 - + - 31 AS col1, + 76
----
-5205
76

skipif mysql # not compatible
query II rowsort label-2559
SELECT 55 * 92 / 27 * + - 28 - + - 31 AS col1, + 76
----
-5205
76

query II rowsort
SELECT + 20 AS col1, + 0 AS col0
----
20
0

query II rowsort
SELECT DISTINCT 43 - + 71 * - 30 AS col0, + 56
----
2173
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2562
SELECT CAST( 9 AS SIGNED ) * 85 * + 32 + MAX( + - 52 ) AS col2
----
24428

skipif mysql # not compatible
query I rowsort label-2562
SELECT CAST ( 9 AS INTEGER ) * 85 * + 32 + MAX ( + - 52 ) AS col2
----
24428

query I rowsort
SELECT ALL 84 * 61
----
5124

query I rowsort
SELECT DISTINCT - 14 * + NULLIF ( + + 4, 52 * + 25 ) AS col0
----
-56

query I rowsort
SELECT ALL 38 * - - 99 AS col2
----
3762

query I rowsort
SELECT ALL + ( + 77 ) * - 15 AS col2
----
-1155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2567
SELECT DISTINCT - COUNT( * ) + - CASE + COALESCE ( 21, - ( + 82 ), + 5 * - 22 * + CASE - 26 WHEN - 70 THEN CAST( NULL AS SIGNED ) WHEN - 89 * COUNT( - 15 * - 86 ) THEN + 61 WHEN 35 THEN NULL END * + 43 ) WHEN + COUNT( * ) THEN 3 * 66 WHEN 25 * + 47 THEN 9 DIV - 93 ELSE 6 END + 74 * + 99 AS col1
----
7319

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT - COUNT ( * ) + - CASE + COALESCE ( 21, - ( + 82 ), + 5 * - 22 * + CASE - 26 WHEN - 70 THEN CAST ( NULL AS INTEGER ) WHEN - 89 * COUNT ( - 15 * - 86 ) THEN + 61 WHEN 35 THEN NULL END * + 43 ) WHEN + COUNT ( * ) THEN 3 * 66 WHEN 25 * + 47 THEN 9 / - 93 ELSE 6 END + 74 * + 99 AS col1
----
7319

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT DISTINCT MAX( ALL - 75 ) * + ( - - 11 ) * 79 * - - MAX( DISTINCT 48 )
----
-3128400

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT MAX ( ALL - 75 ) * + ( - - 11 ) * 79 * - - MAX ( DISTINCT 48 )
----
-3128400

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT NULLIF ( - ( - 70 ), SUM( DISTINCT ( + 91 ) ) ) * 54
----
3780

skipif mysql # not compatible
query I rowsort label-2570
SELECT NULLIF ( - ( - 70 ), SUM ( DISTINCT ( + 91 ) ) ) * 54
----
3780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2571
SELECT + MIN( ALL + - 89 ) + - ( - 38 ) * + CAST( NULL AS SIGNED ) * - + 80 * + 44 * - 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT + MIN ( ALL + - 89 ) + - ( - 38 ) * + CAST ( NULL AS INTEGER ) * - + 80 * + 44 * - 83 AS col2
----
NULL

query I rowsort
SELECT CASE 60 WHEN - + 68 THEN ( - 63 ) ELSE + 14 + - - 35 END
----
49

query I rowsort
SELECT 15 + - - 45
----
60

query I rowsort
SELECT - 71 * + - NULLIF ( + + 37, - - 1 ) AS col1
----
2627

query I rowsort
SELECT ALL 40 + - - 23 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT + COUNT( * ) * + + 16 + + - CASE - 29 WHEN + 89 + + 18 / + - COUNT( * ) THEN - MAX( ALL - 44 ) ELSE NULL END * 78 * COUNT( * ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT + COUNT ( * ) * + + 16 + + - CASE - 29 WHEN + 89 + + 18 / + - COUNT ( * ) THEN - MAX ( ALL - 44 ) ELSE NULL END * 78 * COUNT ( * ) + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 5 * + - 71
----
-355

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL - ( MAX( - - 2 ) ) + - + ( 63 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - ( MAX ( - - 2 ) ) + - + ( 63 ) AS col0
----
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2580
SELECT - 37 - + ( + 25 ) / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2580
SELECT - 37 - + ( + 25 ) / CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 94 / + CASE 76 WHEN + - 58 + + 34 / + 16 * + 32 THEN + 73 END * + 60 * + + 89
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2582
SELECT SUM ( ALL 84 )
----
84

query I rowsort
SELECT ALL + ( - 73 ) * - 54 + - 54 AS col0
----
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT ALL - + 88 + - MIN( + - 71 ) + - ( + - 39 ) * - 32 * - MIN( + 90 )
----
112303

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL - + 88 + - MIN ( + - 71 ) + - ( + - 39 ) * - 32 * - MIN ( + 90 )
----
112303

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT COUNT( * ) - - 92 + - 16 + - 25 * - 39 + - - 6 + - - 38 * 31
----
2236

skipif mysql # not compatible
query I rowsort label-2585
SELECT COUNT ( * ) - - 92 + - 16 + - 25 * - 39 + - - 6 + - - 38 * 31
----
2236

onlyif mysql # aggregate syntax: 
query II rowsort label-2586
SELECT ALL + ( + 11 ) * + 47 * COUNT( * ), + COUNT( * ) - + COUNT( * ) AS col2
----
517
0

skipif mysql # not compatible
query II rowsort label-2586
SELECT ALL + ( + 11 ) * + 47 * COUNT ( * ), + COUNT ( * ) - + COUNT ( * ) AS col2
----
517
0

query II rowsort
SELECT + 52, 17 * - 16 AS col1
----
52
-272

query I rowsort
SELECT ALL - COALESCE ( + - 82, + + 82, 34 ) AS col1
----
82

query II rowsort
SELECT ALL - 9 AS col2, 30 AS col1
----
-9
30

query I rowsort
SELECT 48 + COALESCE ( - + 21, 9 )
----
27

query II rowsort
SELECT DISTINCT - 87 AS col0, 99 - NULLIF ( 93, - 42 * - 65 + - 75 / + - 45 )
----
-87
6

query I rowsort
SELECT ALL 3 * + 46
----
138

query I rowsort
SELECT 64 * - 25
----
-1600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2594
SELECT DISTINCT - COALESCE ( - SUM( + 84 ), - + CAST( + 40 AS SIGNED ) * - + 37 + - 92 )
----
84

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT - COALESCE ( - SUM ( + 84 ), - + CAST ( + 40 AS INTEGER ) * - + 37 + - 92 )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2595
SELECT - 15 DIV - 49 DIV - COUNT( * ) + + ( - + 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-2595
SELECT - 15 / - 49 / - COUNT ( * ) + + ( - + 17 )
----
-17

query II rowsort
SELECT + 76 AS col0, 73 AS col2
----
76
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2597
SELECT 83 DIV - - 21
----
3

skipif mysql # not compatible
query I rowsort label-2597
SELECT 83 / - - 21
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2598
SELECT ALL - 88 * ( + - 52 ) * + COALESCE ( 24, CAST( NULL AS SIGNED ) / 55 ) * + 76 / - 72 * COUNT( DISTINCT + - 64 ) + - 73 * + 70 + - 51 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL - 88 * ( + - 52 ) * + COALESCE ( 24, CAST ( NULL AS INTEGER ) / 55 ) * + 76 / - 72 * COUNT ( DISTINCT + - 64 ) + - 73 * + 70 + - 51 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 54 + + + NULLIF ( - - ( - COALESCE ( - 28, - 78 * + + ( 43 ) * - 78 + 8 + 97 ) ), + 85 * - 55 ) * - 26 AS col2
----
-674

query I rowsort
SELECT 89 * - + 24
----
-2136

query I rowsort
SELECT ALL + 25 * 92 AS col1
----
2300

query II rowsort
SELECT 63 * + 7 AS col2, 0 AS col2
----
441
0

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

query II rowsort
SELECT ALL + - 45, + 27 AS col0
----
-45
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT - 8 + - 52 * NULLIF ( 76, + SUM( DISTINCT - - 53 ) + 10 + + 98 * - ( - - COUNT( * ) ) ) AS col0
----
-3960

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT - 8 + - 52 * NULLIF ( 76, + SUM ( DISTINCT - - 53 ) + 10 + + 98 * - ( - - COUNT ( * ) ) ) AS col0
----
-3960

query I rowsort
SELECT DISTINCT + ( - - 63 ) + - 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2607
SELECT 69 * 98 + - + 24 + + - CAST( - 49 AS SIGNED ) + + COUNT( * )
----
6788

skipif mysql # not compatible
query I rowsort label-2607
SELECT 69 * 98 + - + 24 + + - CAST ( - 49 AS INTEGER ) + + COUNT ( * )
----
6788

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2608
SELECT + CASE + 35 WHEN + 63 THEN 63 ELSE - 80 + - - NULLIF ( - 45, + MAX( + 41 ) * - 86 / COALESCE ( + 2, 44 ) + + 47 ) + 34 * + CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT + CASE + 35 WHEN + 63 THEN 63 ELSE - 80 + - - NULLIF ( - 45, + MAX ( + 41 ) * - 86 / COALESCE ( + 2, 44 ) + + 47 ) + 34 * + CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT ALL - 9 + - 64 AS col1
----
-73

query II rowsort
SELECT + - 3 + 18, 29 + - 32 AS col2
----
15
-3

query I rowsort
SELECT ALL + COALESCE ( - 90, - - 30, - - 40 + - 87 )
----
-90

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT DISTINCT - ( - 42 ) * - COALESCE ( 19, + COALESCE ( - 55, - - CASE + ( - + ( - CASE - 4 WHEN - COUNT( * ) + + 63 THEN MIN( - 5 ) * 8 WHEN - 46 * - 12 THEN NULL ELSE + 2 + - 2 * 17 END ) ) WHEN + ( + ( 71 ) ) THEN 98 - + ( 40 ) WHEN - 46 + 57 / 78 THEN NULL ELSE NULL END, 6 ) ) + 48
----
-750

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT - ( - 42 ) * - COALESCE ( 19, + COALESCE ( - 55, - - CASE + ( - + ( - CASE - 4 WHEN - COUNT ( * ) + + 63 THEN MIN ( - 5 ) * 8 WHEN - 46 * - 12 THEN NULL ELSE + 2 + - 2 * 17 END ) ) WHEN + ( + ( 71 ) ) THEN 98 - + ( 40 ) WHEN - 46 + 57 / 78 THEN NULL ELSE NULL END, 6 ) ) + 48
----
-750

query I rowsort
SELECT + - 54 + 83
----
29

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT DISTINCT 14 * COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT 14 * COUNT ( * ) AS col1
----
14

query II rowsort
SELECT DISTINCT 2 AS col0, 40 * + 80
----
2
3200

query I rowsort
SELECT DISTINCT - 15 - 31 * + - 3
----
78

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

skipif mysql # not compatible
query I rowsort label-2620
SELECT + 1 / + 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT + 75 + + - COUNT( * ) + - 16
----
58

skipif mysql # not compatible
query I rowsort label-2621
SELECT + 75 + + - COUNT ( * ) + - 16
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT + 86 * + CASE 78 WHEN + + COUNT( * ) * + 0 * - - 81 * 95 THEN + 16 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2622
SELECT + 86 * + CASE 78 WHEN + + COUNT ( * ) * + 0 * - - 81 * 95 THEN + 16 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2623
SELECT - CASE + - COALESCE ( - + 81, + 0 ) WHEN + + 6 THEN - 92 * - - 69 WHEN + MAX( ALL - 73 ) + 50 * 45 THEN - 11 * - 39 WHEN - 77 THEN NULL ELSE CASE + 54 WHEN + 77 + CASE - 36 WHEN - COALESCE ( - 64, 98 * - 9 + 20, 29 ) / 44 + + 42 THEN - COUNT( ALL + 37 ) * + 68 + + 15 WHEN 22 THEN - 1 ELSE NULL END / - 64 THEN NULLIF ( 71, COUNT( * ) * MIN( DISTINCT 64 ) + CAST( NULL AS SIGNED ) ) END END + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT - CASE + - COALESCE ( - + 81, + 0 ) WHEN + + 6 THEN - 92 * - - 69 WHEN + MAX ( ALL - 73 ) + 50 * 45 THEN - 11 * - 39 WHEN - 77 THEN NULL ELSE CASE + 54 WHEN + 77 + CASE - 36 WHEN - COALESCE ( - 64, 98 * - 9 + 20, 29 ) / 44 + + 42 THEN - COUNT ( ALL + 37 ) * + 68 + + 15 WHEN 22 THEN - 1 ELSE NULL END / - 64 THEN NULLIF ( 71, COUNT ( * ) * MIN ( DISTINCT 64 ) + CAST ( NULL AS INTEGER ) ) END END + 38
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2624
SELECT DISTINCT NULLIF ( + 80, + 30 ) DIV 55 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT NULLIF ( + 80, + 30 ) / 55 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2625
SELECT + 39 DIV + - ( - 61 )
----
0

skipif mysql # not compatible
query I rowsort label-2625
SELECT + 39 / + - ( - 61 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT + 56 + + 78 * + MIN( - 40 ) AS col1
----
-3064

skipif mysql # not compatible
query I rowsort label-2626
SELECT + 56 + + 78 * + MIN ( - 40 ) AS col1
----
-3064

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL NULLIF ( - NULLIF ( - 17, - CASE - CASE COUNT( * ) WHEN + ( - 91 ) THEN + 67 END WHEN 34 / + SUM( DISTINCT - 48 ) THEN NULL WHEN - 97 * + 11 THEN - COUNT( * ) * - 24 + SUM( 47 ) ELSE CASE 7 WHEN 65 THEN 85 WHEN - 99 * NULLIF ( - 48, + COUNT( * ) + 83 ) THEN NULL ELSE NULL END * 27 END ), - 82 / - 37 )
----
17

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL NULLIF ( - NULLIF ( - 17, - CASE - CASE COUNT ( * ) WHEN + ( - 91 ) THEN + 67 END WHEN 34 / + SUM ( DISTINCT - 48 ) THEN NULL WHEN - 97 * + 11 THEN - COUNT ( * ) * - 24 + SUM ( 47 ) ELSE CASE 7 WHEN 65 THEN 85 WHEN - 99 * NULLIF ( - 48, + COUNT ( * ) + 83 ) THEN NULL ELSE NULL END * 27 END ), - 82 / - 37 )
----
17

query I rowsort
SELECT + 32 + - ( - - 66 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT ALL + NULLIF ( + - 15, CAST( + + ( - + 1 ) AS SIGNED ) + + - NULLIF ( 31, + 35 * + + 42 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL + NULLIF ( + - 15, CAST ( + + ( - + 1 ) AS INTEGER ) + + - NULLIF ( 31, + 35 * + + 42 ) )
----
-15

query II rowsort
SELECT DISTINCT - 1 * - + 3, - 0 AS col1
----
3
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2632
SELECT ALL + NULLIF ( - - COUNT( * ), + CAST( - 70 AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL + NULLIF ( - - COUNT ( * ), + CAST ( - 70 AS REAL ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2633
SELECT - 85 * - COUNT( * ) DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-2633
SELECT - 85 * - COUNT ( * ) / + 86
----
0

query I rowsort
SELECT - 2 + - 31 + - - 27 + + - 39 AS col2
----
-45

query I rowsort
SELECT DISTINCT - 11 * - 63
----
693

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

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

query I rowsort
SELECT + ( + ( - + 31 ) ) * + 78 + CASE + 37 WHEN - - 60 THEN - 64 ELSE NULL END
----
NULL

query I rowsort
SELECT - 49 * + - 73
----
3577

query II rowsort
SELECT ALL + ( 63 ), 11 * 58 AS col0
----
63
638

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT ALL + COUNT( + 56 ) * + - 56 + + 11 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL + COUNT ( + 56 ) * + - 56 + + 11 AS col2
----
-45

query I rowsort
SELECT ALL + + 33 col0
----
33

query I rowsort
SELECT DISTINCT - 48 * 78 - - 98 + + 94
----
-3552

onlyif mysql # DIV for integer division: 
query I rowsort label-2644
SELECT - 56 DIV + + 72 * 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2644
SELECT - 56 / + + 72 * 80 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2645
SELECT ALL + + CAST( - 92 AS SIGNED ) * - 77
----
7084

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL + + CAST ( - 92 AS INTEGER ) * - 77
----
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT DISTINCT - 19 * 58 + + MAX( + CASE - + 5 WHEN + 78 THEN 92 END ) * - + 91 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT - 19 * 58 + + MAX ( + CASE - + 5 WHEN + 78 THEN 92 END ) * - + 91 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT ALL - SUM( 9 ) * + - 56 * - + 6 + + + 21 - + 52 * COUNT( * ) AS col1
----
-3055

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL - SUM ( 9 ) * + - 56 * - + 6 + + + 21 - + 52 * COUNT ( * ) AS col1
----
-3055

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT - - 32 * - + MIN( - 54 )
----
1728

skipif mysql # not compatible
query I rowsort label-2648
SELECT - - 32 * - + MIN ( - 54 )
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT ALL + COALESCE ( 62, + 34, - COUNT( * ) ) * - + 2 * + COUNT( * )
----
-124

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL + COALESCE ( 62, + 34, - COUNT ( * ) ) * - + 2 * + COUNT ( * )
----
-124

query I rowsort
SELECT - + 58 * - 39
----
2262

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2651
SELECT + CAST( NULL AS DECIMAL ) * + 11 * AVG ( DISTINCT + 85 ) / - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT + CAST ( NULL AS REAL ) * + 11 * AVG ( DISTINCT + 85 ) / - - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT ALL MIN( 19 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL MIN ( 19 ) col0
----
19

query II rowsort
SELECT - 86 + - - 95 AS col2, + 14
----
9
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2654
SELECT ALL + MAX( 57 ), 82 AS col0
----
57
82

skipif mysql # not compatible
query II rowsort label-2654
SELECT ALL + MAX ( 57 ), 82 AS col0
----
57
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT CASE - 14 WHEN 42 THEN - 39 WHEN + NULLIF ( 10, + 51 ) * - + 49 * MIN( DISTINCT ( - + 20 ) ) + + 51 / - 68 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT CASE - 14 WHEN 42 THEN - 39 WHEN + NULLIF ( 10, + 51 ) * - + 49 * MIN ( DISTINCT ( - + 20 ) ) + + 51 / - 68 THEN NULL END
----
NULL

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

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

query I rowsort
SELECT - 63 * + 57
----
-3591

query I rowsort
SELECT + 69 * + - 32 AS col2
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT DISTINCT 75 * ( - - CASE + 82 WHEN + COUNT( * ) * + 44 + - 78 THEN NULL ELSE - 99 + 62 * - CASE + 1 WHEN - + 18 THEN NULL ELSE - 36 + COUNT( * ) END END ) AS col1
----
155325

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT 75 * ( - - CASE + 82 WHEN + COUNT ( * ) * + 44 + - 78 THEN NULL ELSE - 99 + 62 * - CASE + 1 WHEN - + 18 THEN NULL ELSE - 36 + COUNT ( * ) END END ) AS col1
----
155325

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT + COUNT( * ) - - NULLIF ( + + 53, + + 63 + COUNT( * ) + - 24 * + - 10 - + 17 * COUNT( * ) * - - COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-2660
SELECT + COUNT ( * ) - - NULLIF ( + + 53, + + 63 + COUNT ( * ) + - 24 * + - 10 - + 17 * COUNT ( * ) * - - COUNT ( * ) )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2661
SELECT + 15 - + 22 * + COALESCE ( 28, 22 ) + + - 22, + 20 * + 87 + - CAST( - 63 AS SIGNED ) * + 25 col0
----
-623
3315

skipif mysql # not compatible
query II rowsort label-2661
SELECT + 15 - + 22 * + COALESCE ( 28, 22 ) + + - 22, + 20 * + 87 + - CAST ( - 63 AS INTEGER ) * + 25 col0
----
-623
3315

query I rowsort
SELECT + 33 * - 67 AS col2
----
-2211

query I rowsort
SELECT DISTINCT NULLIF ( + 84, + 44 ) * 46 * - 59
----
-227976

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

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT MAX ( DISTINCT - - 37 )
----
37

query I rowsort
SELECT ALL 74 * - 39 AS col2
----
-2886

query I rowsort
SELECT - 79 + + 7 AS col2
----
-72

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

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

query I rowsort
SELECT ALL 91 * + 42 AS col1
----
3822

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

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

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

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

query I rowsort
SELECT DISTINCT 85 + - 62
----
23

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT 99 DIV + 41 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2673
SELECT 99 / + 41 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2674
SELECT ALL 61 + + 33 + - 68 DIV COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL 61 + + 33 + - 68 / COUNT ( * )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2675
SELECT ALL 20 + + 20 DIV MAX( 33 )
----
20

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL 20 + + 20 / MAX ( 33 )
----
20

query I rowsort
SELECT ( + 46 ) + + 98
----
144

query I rowsort
SELECT ALL + 25 * 59 AS col1
----
1475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2678
SELECT CAST( + 77 AS DECIMAL ) / CASE + 2 WHEN - - 78 THEN NULL WHEN 76 * - COUNT( * ) / + 20 THEN NULL ELSE - 89 * ( 50 ) + 20 + CAST( NULL AS SIGNED ) * - COUNT( * ) END + AVG ( + NULLIF ( + 46, - 98 + 8 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2678
SELECT CAST ( + 77 AS REAL ) / CASE + 2 WHEN - - 78 THEN NULL WHEN 76 * - COUNT ( * ) / + 20 THEN NULL ELSE - 89 * ( 50 ) + 20 + CAST ( NULL AS INTEGER ) * - COUNT ( * ) END + AVG ( + NULLIF ( + 46, - 98 + 8 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 25 + 54
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT DISTINCT - NULLIF ( - + 10, - + 75 + + COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT - NULLIF ( - + 10, - + 75 + + COUNT ( * ) )
----
10

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

skipif mysql # not compatible
query I rowsort label-2681
SELECT + MIN ( - 92 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2682
SELECT CASE 99 WHEN - - 7 THEN 52 + + - 16 * - COUNT( * ) WHEN - COALESCE ( + CAST( 72 AS SIGNED ), + 50 / + - 96 + 33 * 32 ) THEN NULL WHEN 90 THEN NULL ELSE ( 99 ) * + 40 END
----
3960

skipif mysql # not compatible
query I rowsort label-2682
SELECT CASE 99 WHEN - - 7 THEN 52 + + - 16 * - COUNT ( * ) WHEN - COALESCE ( + CAST ( 72 AS INTEGER ), + 50 / + - 96 + 33 * 32 ) THEN NULL WHEN 90 THEN NULL ELSE ( 99 ) * + 40 END
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT COALESCE ( + 31, - COUNT( * ), + 51 ) + - 20 * + 57 + + - 34 + - MAX( 92 )
----
-1235

skipif mysql # not compatible
query I rowsort label-2683
SELECT COALESCE ( + 31, - COUNT ( * ), + 51 ) + - 20 * + 57 + + - 34 + - MAX ( 92 )
----
-1235

query I rowsort
SELECT + NULLIF ( - - 75, + 69 * + 70 - COALESCE ( - 72, - 77 ) + 89 - - + 2 ) * + NULLIF ( + - 99, + + 88 ) * - 23 + 67 AS col2
----
170842

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

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL + - COUNT ( * ) + 26 AS col1
----
25

query I rowsort
SELECT 52 * - + 6 * + ( + - 21 )
----
6552

query I rowsort
SELECT + COALESCE ( - - 95, + 64, - ( 57 ) )
----
95

query I rowsort
SELECT ALL - 67 + - - 44 AS col1
----
-23

query I rowsort
SELECT + 81 * 25
----
2025

onlyif mysql # aggregate syntax: 
query II rowsort label-2690
SELECT ALL + SUM( DISTINCT + 8 ) * + + 35 AS col0, 30
----
280
30

skipif mysql # not compatible
query II rowsort label-2690
SELECT ALL + SUM ( DISTINCT + 8 ) * + + 35 AS col0, 30
----
280
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2691
SELECT DISTINCT - 49 AS col1, + CAST( + 81 AS SIGNED ) AS col2
----
-49
81

skipif mysql # not compatible
query II rowsort label-2691
SELECT DISTINCT - 49 AS col1, + CAST ( + 81 AS INTEGER ) AS col2
----
-49
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT - 17 + COUNT( * ) - 94 AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-2692
SELECT - 17 + COUNT ( * ) - 94 AS col1
----
-110

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT + COUNT( * ) + - + COUNT( * ) + - 45 * - + 35 * - 26 + + 61 * 27
----
-39303

skipif mysql # not compatible
query I rowsort label-2694
SELECT + COUNT ( * ) + - + COUNT ( * ) + - 45 * - + 35 * - 26 + + 61 * 27
----
-39303

query II rowsort
SELECT ALL - + 0 col1, - 4
----
0
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2696
SELECT + 40 + - + 1 + - + COALESCE ( 1, + COUNT( * ), - 3 * + 58 + + 65 * - ( + 45 ) * - COUNT( * ) * + ( - 84 ) ) + 87 * + COUNT( - 78 ) DIV ( + MAX( DISTINCT - 99 ) * 91 )
----
38

skipif mysql # not compatible
query I rowsort label-2696
SELECT + 40 + - + 1 + - + COALESCE ( 1, + COUNT ( * ), - 3 * + 58 + + 65 * - ( + 45 ) * - COUNT ( * ) * + ( - 84 ) ) + 87 * + COUNT ( - 78 ) / ( + MAX ( DISTINCT - 99 ) * 91 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2697
SELECT + 83 * + - COALESCE ( - - 23, - - CAST( - 79 AS SIGNED ) - + 72 + - 55 + - 20 * - 44 + - ( - + 31 ) * NULLIF ( - - ( - 30 ), 75 * - 2 ) * - 30, MAX( ALL - 92 ) + 39 ) AS col1
----
-1909

skipif mysql # not compatible
query I rowsort label-2697
SELECT + 83 * + - COALESCE ( - - 23, - - CAST ( - 79 AS INTEGER ) - + 72 + - 55 + - 20 * - 44 + - ( - + 31 ) * NULLIF ( - - ( - 30 ), 75 * - 2 ) * - 30, MAX ( ALL - 92 ) + 39 ) AS col1
----
-1909

query I rowsort
SELECT ALL + - 69 * - - 57 + + 50 AS col0
----
-3883

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2699
SELECT - SUM( ALL - 40 ) DIV - 1 AS col1, COUNT( * )
----
-40
1

skipif mysql # not compatible
query II rowsort label-2699
SELECT - SUM ( ALL - 40 ) / - 1 AS col1, COUNT ( * )
----
-40
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2700
SELECT 90 * + + 12 + 23 - - MIN( ALL + 49 ) - - 96 AS col1, COALESCE ( + - 19, CASE - + CAST( NULL AS DECIMAL ) WHEN + 31 THEN - 50 END ) - + ( 17 ) AS col0
----
1248
-36

skipif mysql # not compatible
query II rowsort label-2700
SELECT 90 * + + 12 + 23 - - MIN ( ALL + 49 ) - - 96 AS col1, COALESCE ( + - 19, CASE - + CAST ( NULL AS REAL ) WHEN + 31 THEN - 50 END ) - + ( 17 ) AS col0
----
1248
-36

query I rowsort
SELECT ALL - 91 * + ( 7 ) AS col1
----
-637

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2703
SELECT COUNT( * ) + - 63, + CAST( - - 48 AS SIGNED ) AS col0
----
-62
48

skipif mysql # not compatible
query II rowsort label-2703
SELECT COUNT ( * ) + - 63, + CAST ( - - 48 AS INTEGER ) AS col0
----
-62
48

query I rowsort
SELECT 58 + - - 39 + - + ( 34 ) * 35 AS col2
----
-1093

query I rowsort
SELECT 64 * 48 AS col1
----
3072

query I rowsort
SELECT 45 + - + 22 + - + 50
----
-27

query I rowsort
SELECT 54 * + + 92 col2
----
4968

query I rowsort
SELECT DISTINCT 85 + + - 8
----
77

query II rowsort
SELECT ALL 20 + - - 74 AS col1, CASE - + 34 WHEN + + 98 + 13 + - 81 * 22 THEN 31 / - - 2 * - 1 + 64 + - 58 * - 66 ELSE NULL END AS col2
----
94
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT ALL COUNT( * ) * - - 57 / - 32 * - + CASE 98 WHEN 5 + - MIN( ALL 16 ) + + + 25 THEN - COUNT( * ) * - 78 * + - 45 ELSE NULL END / + 35 * + COALESCE ( + MAX( DISTINCT 43 ), 97 - + 55, - 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL COUNT ( * ) * - - 57 / - 32 * - + CASE 98 WHEN 5 + - MIN ( ALL 16 ) + + + 25 THEN - COUNT ( * ) * - 78 * + - 45 ELSE NULL END / + 35 * + COALESCE ( + MAX ( DISTINCT 43 ), 97 - + 55, - 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT MIN( - 94 ) + - MIN( ALL + 41 )
----
-135

skipif mysql # not compatible
query I rowsort label-2711
SELECT MIN ( - 94 ) + - MIN ( ALL + 41 )
----
-135

query I rowsort
SELECT 89 + + 92 + + + 24
----
205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2713
SELECT CASE + 68 WHEN 21 DIV + 66 + + CASE - 94 WHEN + 74 * - 54 THEN - ( + 75 ) WHEN + COUNT( * ) THEN + - CASE 55 WHEN + 67 + 95 * 31 THEN - 11 + - 63 WHEN + 13 THEN NULL WHEN 75 THEN NULL ELSE NULL END ELSE NULL END + 1 + - 47 THEN NULL WHEN - 9 THEN 47 + 23 ELSE - 36 DIV + 67 + - NULLIF ( 92, - COUNT( * ) * + 79 ) END * - 72 AS col0
----
6624

skipif mysql # not compatible
query I rowsort label-2713
SELECT CASE + 68 WHEN 21 / + 66 + + CASE - 94 WHEN + 74 * - 54 THEN - ( + 75 ) WHEN + COUNT ( * ) THEN + - CASE 55 WHEN + 67 + 95 * 31 THEN - 11 + - 63 WHEN + 13 THEN NULL WHEN 75 THEN NULL ELSE NULL END ELSE NULL END + 1 + - 47 THEN NULL WHEN - 9 THEN 47 + 23 ELSE - 36 / + 67 + - NULLIF ( 92, - COUNT ( * ) * + 79 ) END * - 72 AS col0
----
6624

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

skipif mysql # not compatible
query I rowsort label-2714
SELECT MAX ( + - 75 )
----
-75

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

query I rowsort
SELECT DISTINCT + 4 + + 19
----
23

query I rowsort
SELECT + 99 * - - 16
----
1584

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2718
SELECT - 5 * 4 * + 60 + + + 31 + - NULLIF ( + - 96, + ( + CAST( NULL AS SIGNED ) ) ) DIV + 17 AS col2
----
-1164

skipif mysql # not compatible
query I rowsort label-2718
SELECT - 5 * 4 * + 60 + + + 31 + - NULLIF ( + - 96, + ( + CAST ( NULL AS INTEGER ) ) ) / + 17 AS col2
----
-1164

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL SUM( DISTINCT + 58 ) - 33 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL SUM ( DISTINCT + 58 ) - 33 AS col2
----
25

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2721
SELECT - 65 * CAST( - - ( + ( + MIN( ALL - + 11 ) ) ) AS SIGNED )
----
715

skipif mysql # not compatible
query I rowsort label-2721
SELECT - 65 * CAST ( - - ( + ( + MIN ( ALL - + 11 ) ) ) AS INTEGER )
----
715

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2722
SELECT ALL COUNT( * ) DIV + 95 AS col1, + COUNT( ALL - 12 ) + COUNT( * ) - - + 49 AS col1
----
0
51

skipif mysql # not compatible
query II rowsort label-2722
SELECT ALL COUNT ( * ) / + 95 AS col1, + COUNT ( ALL - 12 ) + COUNT ( * ) - - + 49 AS col1
----
0
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL + 30 - - SUM( + 0 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL + 30 - - SUM ( + 0 ) AS col2
----
30

query I rowsort
SELECT DISTINCT - - 80
----
80

query I rowsort
SELECT NULLIF ( + 21, + 93 * - COALESCE ( + - 28, + - 14 ) )
----
21

query I rowsort
SELECT DISTINCT + 36 * - 19 + - 90
----
-774

query II rowsort
SELECT - 81 * + 62 col0, - 97
----
-5022
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT ALL MAX( DISTINCT ( - 67 ) ) * - 99 + 40 * 86
----
10073

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL MAX ( DISTINCT ( - 67 ) ) * - 99 + 40 * 86
----
10073

query I rowsort
SELECT DISTINCT - + NULLIF ( + + 48, 24 )
----
-48

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2731
SELECT ALL + 60 DIV + - ( + COUNT( * ) ) AS col0, 93 * - 50 * - - 75
----
-60
-348750

skipif mysql # not compatible
query II rowsort label-2731
SELECT ALL + 60 / + - ( + COUNT ( * ) ) AS col0, 93 * - 50 * - - 75
----
-60
-348750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2732
SELECT ALL - 70 + 21 - + 55 + - 70 DIV + - CASE - ( COUNT( * ) ) WHEN 63 - 34 * + 89 * + 56 DIV COUNT( * ) * + - 69 + - CAST( NULL AS DECIMAL ) THEN NULL ELSE + COALESCE ( 24, + 51 * + CAST( NULL AS SIGNED ) ) * + 48 END * - 96 col0
----
-104

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL - 70 + 21 - + 55 + - 70 / + - CASE - ( COUNT ( * ) ) WHEN 63 - 34 * + 89 * + 56 / COUNT ( * ) * + - 69 + - CAST ( NULL AS REAL ) THEN NULL ELSE + COALESCE ( 24, + 51 * + CAST ( NULL AS INTEGER ) ) * + 48 END * - 96 col0
----
-104

query I rowsort
SELECT 48 + + 69 AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT 57 + - + 26 - - 47 - + 56 + - COUNT( * ) + 85
----
106

skipif mysql # not compatible
query I rowsort label-2734
SELECT 57 + - + 26 - - 47 - + 56 + - COUNT ( * ) + 85
----
106

query I rowsort
SELECT ALL + 97 + - 63 AS col2
----
34

query I rowsort
SELECT DISTINCT - 43 * + 55 * - 89 AS col0
----
210485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2737
SELECT - 26 + - CAST( - 72 AS SIGNED ) * - 64 AS col2
----
-4634

skipif mysql # not compatible
query I rowsort label-2737
SELECT - 26 + - CAST ( - 72 AS INTEGER ) * - 64 AS col2
----
-4634

query I rowsort
SELECT ALL NULLIF ( - + 40, 2 ) AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT DISTINCT - 52 + + 77 DIV + 44
----
-51

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT - 52 + + 77 / + 44
----
-51

query I rowsort
SELECT ALL + 98 * + 34 * - 54
----
-179928

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT DISTINCT COALESCE ( + + CASE 86 WHEN + ( - + COUNT( 97 ) ) * + + COUNT( - 70 ) THEN NULL ELSE + + 3 END, 4 ) col0
----
3

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT COALESCE ( + + CASE 86 WHEN + ( - + COUNT ( 97 ) ) * + + COUNT ( - 70 ) THEN NULL ELSE + + 3 END, 4 ) col0
----
3

query II rowsort
SELECT - 27 AS col0, + 60
----
-27
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2743
SELECT - ( 44 ) + - CAST( - 74 AS SIGNED ) + - 2 DIV + 99 * + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-2743
SELECT - ( 44 ) + - CAST ( - 74 AS INTEGER ) + - 2 / + 99 * + COUNT ( * )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2744
SELECT DISTINCT NULLIF ( - COALESCE ( - + 83, + CAST( NULL AS SIGNED ) * - + 69 * - 93 - - 68 ), - AVG ( + - 52 ) / + + 58 )
----
83

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT NULLIF ( - COALESCE ( - + 83, + CAST ( NULL AS INTEGER ) * - + 69 * - 93 - - 68 ), - AVG ( + - 52 ) / + + 58 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT - 42 + 18 * - 63 + + SUM( - 0 ) * - + 41 * 26
----
-1176

skipif mysql # not compatible
query I rowsort label-2745
SELECT - 42 + 18 * - 63 + + SUM ( - 0 ) * - + 41 * 26
----
-1176

query II rowsort
SELECT 25, 85 + 44 AS col0
----
25
129

query I rowsort
SELECT + 96 + + 64 - 56 * 3 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2748
SELECT ALL 25 AS col2, CASE + 58 WHEN + + 32 + - - 79 * + 41 + + + COUNT( * ) - - - 42 THEN 99 * - COUNT( * ) * 24 + - MIN( ALL 83 ) * ( + 95 ) * + 68 ELSE NULL END * + 49
----
25
NULL

skipif mysql # not compatible
query II rowsort label-2748
SELECT ALL 25 AS col2, CASE + 58 WHEN + + 32 + - - 79 * + 41 + + + COUNT ( * ) - - - 42 THEN 99 * - COUNT ( * ) * 24 + - MIN ( ALL 83 ) * ( + 95 ) * + 68 ELSE NULL END * + 49
----
25
NULL

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

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL - 81 / 90
----
0

query I rowsort
SELECT ALL 11 * + 64 col2
----
704

query II rowsort
SELECT DISTINCT - 48 * - 99 * 16, + 7 AS col2
----
76032
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT - - ( + 94 ) * - - 36 + 25 + + MAX( ALL - 86 ) + - 11
----
3312

skipif mysql # not compatible
query I rowsort label-2752
SELECT - - ( + 94 ) * - - 36 + 25 + + MAX ( ALL - 86 ) + - 11
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT + + 21 * CASE + + 52 WHEN + COUNT( * ) + - + 77 + + MIN( 76 ) THEN 10 + - 54 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT + + 21 * CASE + + 52 WHEN + COUNT ( * ) + - + 77 + + MIN ( 76 ) THEN 10 + - 54 END AS col2
----
NULL

query I rowsort
SELECT - 38 + - 59 col1
----
-97

query I rowsort
SELECT ALL + - 78 col2
----
-78

query I rowsort
SELECT - 52 + - 42
----
-94

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

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT - 32 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2758
SELECT ALL 14 * + - 31 + + 78, 26 + COUNT( * ) * - NULLIF ( + 35, + - 13 ) AS col1
----
-356
-9

skipif mysql # not compatible
query II rowsort label-2758
SELECT ALL 14 * + - 31 + + 78, 26 + COUNT ( * ) * - NULLIF ( + 35, + - 13 ) AS col1
----
-356
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2759
SELECT ALL - 5 DIV CASE ( + 62 ) WHEN - - COALESCE ( - 46, 51 ) * 51 THEN - 18 ELSE + 67 + 91 END * 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL - 5 / CASE ( + 62 ) WHEN - - COALESCE ( - 46, 51 ) * 51 THEN - 18 ELSE + 67 + 91 END * 23 AS col1
----
0

query I rowsort
SELECT + - 94 + - 94
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT ALL 41 * - - 95 * 57 * MIN( - 58 ) + + + 60 + ( - - COUNT( * ) )
----
-12876809

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL 41 * - - 95 * 57 * MIN ( - 58 ) + + + 60 + ( - - COUNT ( * ) )
----
-12876809

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

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

query I rowsort
SELECT ALL 2 * - + 95 + + 74 AS col0
----
-116

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

skipif mysql # not compatible
query I rowsort label-2764
SELECT MIN ( - + 15 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2765
SELECT CASE 65 WHEN - NULLIF ( + 33, 93 ) THEN NULL WHEN - 69 THEN + + 77 ELSE NULL END * + + 34 + + 70, - 82 + - 81 - 6 + + 7 * - COUNT( ALL + - 52 ) * + MIN( ALL + 88 ) * 40 AS col1
----
NULL
-24809

skipif mysql # not compatible
query II rowsort label-2765
SELECT CASE 65 WHEN - NULLIF ( + 33, 93 ) THEN NULL WHEN - 69 THEN + + 77 ELSE NULL END * + + 34 + + 70, - 82 + - 81 - 6 + + 7 * - COUNT ( ALL + - 52 ) * + MIN ( ALL + 88 ) * 40 AS col1
----
NULL
-24809

query I rowsort
SELECT + ( + 84 ) * - 97
----
-8148

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT - 38 + 66 + - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-2767
SELECT - 38 + 66 + - COUNT ( * )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2768
SELECT ALL 44 + - 33 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL 44 + - 33 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2769
SELECT DISTINCT COUNT ( * ), + CAST ( NULL AS INTEGER ) col0
----
1
NULL

query I rowsort
SELECT DISTINCT 73 + + - 32 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2771
SELECT ALL CASE - + COALESCE ( - - 9, + 48 * 77 * 90 / - - 19 * + CASE + 14 WHEN - CAST( - + MIN( + - 0 ) AS SIGNED ) THEN NULL WHEN + 21 * - 22 THEN + 84 WHEN 29 THEN NULL ELSE 31 + - COUNT( * ) END + 94, + 79 + 54 ) WHEN + 88 THEN 38 ELSE 37 * + 57 - CAST( COUNT( * ) AS SIGNED ) END AS col0
----
2108

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL CASE - + COALESCE ( - - 9, + 48 * 77 * 90 / - - 19 * + CASE + 14 WHEN - CAST ( - + MIN ( + - 0 ) AS INTEGER ) THEN NULL WHEN + 21 * - 22 THEN + 84 WHEN 29 THEN NULL ELSE 31 + - COUNT ( * ) END + 94, + 79 + 54 ) WHEN + 88 THEN 38 ELSE 37 * + 57 - CAST ( COUNT ( * ) AS INTEGER ) END AS col0
----
2108

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL - COALESCE ( + MIN( - - 14 ), - 15 ) + 83 + + - 34
----
35

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL - COALESCE ( + MIN ( - - 14 ), - 15 ) + 83 + + - 34
----
35

query I rowsort
SELECT + 3 * - 60
----
-180

query II rowsort
SELECT 3 col1, + 37 AS col0
----
3
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT ALL ( - CASE 31 WHEN + 64 THEN 68 ELSE MIN( ALL + - 43 ) END )
----
43

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL ( - CASE 31 WHEN + 64 THEN 68 ELSE MIN ( ALL + - 43 ) END )
----
43

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

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

query I rowsort
SELECT + 67 * - 34 * 4
----
-9112

query I rowsort
SELECT - 72 * - 70 AS col2
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT + 84 + - COUNT( * ) * + COALESCE ( + 49, + 60 )
----
35

skipif mysql # not compatible
query I rowsort label-2779
SELECT + 84 + - COUNT ( * ) * + COALESCE ( + 49, + 60 )
----
35

query I rowsort
SELECT DISTINCT - COALESCE ( - - 23, + 73, - 52 ) - - 82 col1
----
59

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2782
SELECT - 80, - 3 + COUNT( * ) * - ( + - 63 ) * + - 74 AS col2
----
-80
-4665

skipif mysql # not compatible
query II rowsort label-2782
SELECT - 80, - 3 + COUNT ( * ) * - ( + - 63 ) * + - 74 AS col2
----
-80
-4665

query I rowsort
SELECT - 25 + + 90 + - - 64
----
129

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2784
SELECT ALL - 3 - + 20 * + 83 + 62 AS col2, - 51 * COUNT( * ) * - CAST( NULL AS DECIMAL ) * + ( NULLIF ( + SUM( 84 ), - 50 * - 93 - - + 25 ) ) * 76 / 20 - 12 * 48
----
-1601
NULL

skipif mysql # not compatible
query II rowsort label-2784
SELECT ALL - 3 - + 20 * + 83 + 62 AS col2, - 51 * COUNT ( * ) * - CAST ( NULL AS REAL ) * + ( NULLIF ( + SUM ( 84 ), - 50 * - 93 - - + 25 ) ) * 76 / 20 - 12 * 48
----
-1601
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT - COUNT( * ) * + COALESCE ( 47, - 84 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-2785
SELECT - COUNT ( * ) * + COALESCE ( 47, - 84 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT ALL - COUNT( - + 23 ) * + 34
----
-34

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL - COUNT ( - + 23 ) * + 34
----
-34

query I rowsort
SELECT DISTINCT 99 - - 79 AS col0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT - COUNT( * ) + - + 99
----
-100

skipif mysql # not compatible
query I rowsort label-2788
SELECT - COUNT ( * ) + - + 99
----
-100

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

query I rowsort
SELECT DISTINCT + 52 * 51 * - 27 + 64 - + 68
----
-71608

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT - MAX( DISTINCT - + 34 ) * - 86
----
-2924

skipif mysql # not compatible
query I rowsort label-2791
SELECT - MAX ( DISTINCT - + 34 ) * - 86
----
-2924

query I rowsort
SELECT ALL - + 50 * 95
----
-4750

onlyif mysql # DIV for integer division: 
query I rowsort label-2793
SELECT - 79 DIV 61 + + 93 - + 97
----
-5

skipif mysql # not compatible
query I rowsort label-2793
SELECT - 79 / 61 + + 93 - + 97
----
-5

query I rowsort
SELECT - + 33 + 79 AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2795
SELECT DISTINCT + + CASE - 28 WHEN 0 / 40 + - COUNT( ALL - 42 ) THEN NULL WHEN - CASE + 80 WHEN 58 THEN - + ( + CASE COUNT( * ) WHEN + CAST( - 46 AS SIGNED ) THEN NULL ELSE AVG ( ALL + 99 ) END ) * - 46 + 98 END THEN - COUNT( * ) - MAX( ALL + 36 ) ELSE - 88 + - 46 * + ( 16 - 52 * + ( 0 + - 23 * 43 ) ) END AS col2
----
-2366512

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT + + CASE - 28 WHEN 0 / 40 + - COUNT ( ALL - 42 ) THEN NULL WHEN - CASE + 80 WHEN 58 THEN - + ( + CASE COUNT ( * ) WHEN + CAST ( - 46 AS INTEGER ) THEN NULL ELSE AVG ( ALL + 99 ) END ) * - 46 + 98 END THEN - COUNT ( * ) - MAX ( ALL + 36 ) ELSE - 88 + - 46 * + ( 16 - 52 * + ( 0 + - 23 * 43 ) ) END AS col2
----
-2366512

query I rowsort
SELECT - + 64 * + 85 AS col2
----
-5440

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2797
SELECT 61, 60 * CAST( NULL AS SIGNED ) AS col0
----
61
NULL

skipif mysql # not compatible
query II rowsort label-2797
SELECT 61, 60 * CAST ( NULL AS INTEGER ) AS col0
----
61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT COUNT( DISTINCT - 20 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2798
SELECT COUNT ( DISTINCT - 20 ) col1
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL 74 / - 12 + + COUNT ( * ) * + 32 AS col2
----
26

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2803
SELECT ALL + COUNT( ALL + NULLIF ( - CAST( + 62 AS SIGNED ), - 89 ) ) DIV - + 30 + 75 * + - 51
----
-3825

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL + COUNT ( ALL + NULLIF ( - CAST ( + 62 AS INTEGER ), - 89 ) ) / - + 30 + 75 * + - 51
----
-3825

query II rowsort
SELECT - 39 * - 63 AS col2, 28 col1
----
2457
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2805
SELECT + + 32 * + 87 * - 18 * CAST( NULL AS DECIMAL ) + - CAST( + - COALESCE ( COUNT( * ), + 0, + 48 * 60 + - 28 + - 52 + + + 82 / + - CAST( - - 99 AS SIGNED ) * 75 / 40 + 29 - 80 ) AS SIGNED ) + + 60 * + 37 * 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT + + 32 * + 87 * - 18 * CAST ( NULL AS REAL ) + - CAST ( + - COALESCE ( COUNT ( * ), + 0, + 48 * 60 + - 28 + - 52 + + + 82 / + - CAST ( - - 99 AS INTEGER ) * 75 / 40 + 29 - 80 ) AS INTEGER ) + + 60 * + 37 * 73 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT + MIN( DISTINCT - + 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-2807
SELECT + MIN ( DISTINCT - + 15 ) AS col1
----
-15

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2809
SELECT ALL 68 + + 31 DIV + COUNT( * ) + + + 34
----
133

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL 68 + + 31 / + COUNT ( * ) + + + 34
----
133

query I rowsort
SELECT 64 * + 25 * - ( + 74 )
----
-118400

onlyif mysql # DIV for integer division: 
query I rowsort label-2811
SELECT ALL 97 DIV 56 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL 97 / 56 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2812
SELECT DISTINCT 26 DIV + 8
----
3

skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT 26 / + 8
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL 91 - + COUNT( - + 58 )
----
90

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL 91 - + COUNT ( - + 58 )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2814
SELECT ( - 33 ) DIV 13
----
-2

skipif mysql # not compatible
query I rowsort label-2814
SELECT ( - 33 ) / 13
----
-2

query I rowsort
SELECT 82 + 89 + 42
----
213

onlyif mysql # aggregate syntax: 
query II rowsort label-2816
SELECT 18 * + 16 AS col0, - 70 * MAX( + ( 67 ) )
----
288
-4690

skipif mysql # not compatible
query II rowsort label-2816
SELECT 18 * + 16 AS col0, - 70 * MAX ( + ( 67 ) )
----
288
-4690

query I rowsort
SELECT ALL 55 * - 20 col0
----
-1100

query II rowsort
SELECT ALL 19 * 85 AS col1, - 59 AS col0
----
1615
-59

query II rowsort
SELECT 34 + 34 AS col0, 75 col1
----
68
75

query I rowsort
SELECT 80 + - 75 - - 43 AS col2
----
48

query I rowsort
SELECT 11 * + 49 AS col1
----
539

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT ALL + 98 DIV 54
----
1

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL + 98 / 54
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2823
SELECT CASE 17 WHEN - ( + - CAST( + 12 AS DECIMAL ) ) THEN 67 WHEN - + 99 + + 97 THEN + 14 * + 68 WHEN COALESCE ( + 96, - 13 ) THEN - ( - 58 ) / - + 29 + 91 * - 50 END / 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT CASE 17 WHEN - ( + - CAST ( + 12 AS REAL ) ) THEN 67 WHEN - + 99 + + 97 THEN + 14 * + 68 WHEN COALESCE ( + 96, - 13 ) THEN - ( - 58 ) / - + 29 + 91 * - 50 END / 64 AS col2
----
NULL

query I rowsort
SELECT ( 97 ) * 36
----
3492

query I rowsort
SELECT ALL - 7 + 65 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT COUNT( * ) * - 44 - 99 + + - 12 AS col0
----
-155

skipif mysql # not compatible
query I rowsort label-2826
SELECT COUNT ( * ) * - 44 - 99 + + - 12 AS col0
----
-155

onlyif mysql # aggregate syntax: 
query II rowsort label-2827
SELECT DISTINCT 13 + - - 7, - COUNT( * ) AS col2
----
20
-1

skipif mysql # not compatible
query II rowsort label-2827
SELECT DISTINCT 13 + - - 7, - COUNT ( * ) AS col2
----
20
-1

query I rowsort
SELECT ALL 17 * - ( + 86 )
----
-1462

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

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

query I rowsort
SELECT DISTINCT + 16 + + 71
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-2831
SELECT DISTINCT + COUNT( * ) * + - 73 AS col2, - 9 * NULLIF ( 10, - 53 )
----
-73
-90

skipif mysql # not compatible
query II rowsort label-2831
SELECT DISTINCT + COUNT ( * ) * + - 73 AS col2, - 9 * NULLIF ( 10, - 53 )
----
-73
-90

query I rowsort
SELECT ALL - - 30 + - 3 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2833
SELECT - - 82 / + + MIN( ALL - 97 ) / + + 40 + + ( - 47 ) + + - CASE + 20 WHEN 28 THEN NULL WHEN - 10 THEN 9 END + - CAST( + 50 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT - - 82 / + + MIN ( ALL - 97 ) / + + 40 + + ( - 47 ) + + - CASE + 20 WHEN 28 THEN NULL WHEN - 10 THEN 9 END + - CAST ( + 50 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT + NULLIF ( 32, + 98 ) * CASE - 9 WHEN - 93 * - - COUNT( * ) THEN 16 - + 17 END / COUNT( * ) * - - COALESCE ( + 95, - - MIN( ALL - ( - 34 ) ) * - 81 ) + - + ( + COUNT( * ) ) + - 97 / 98 - 41 * 4 - - COALESCE ( 77, 87, + ( CASE COUNT( * ) WHEN 99 * - 24 THEN NULL WHEN - ( 25 ) - COUNT( * ) THEN NULL ELSE + 32 * - 55 END ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2834
SELECT + NULLIF ( 32, + 98 ) * CASE - 9 WHEN - 93 * - - COUNT ( * ) THEN 16 - + 17 END / COUNT ( * ) * - - COALESCE ( + 95, - - MIN ( ALL - ( - 34 ) ) * - 81 ) + - + ( + COUNT ( * ) ) + - 97 / 98 - 41 * 4 - - COALESCE ( 77, 87, + ( CASE COUNT ( * ) WHEN 99 * - 24 THEN NULL WHEN - ( 25 ) - COUNT ( * ) THEN NULL ELSE + 32 * - 55 END ) ) col1
----
NULL

query I rowsort
SELECT + 81 * + 27 + - - 67
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT 64 + - 15 * - + SUM( + 82 ) - ( + 9 ) * + 5
----
1249

skipif mysql # not compatible
query I rowsort label-2836
SELECT 64 + - 15 * - + SUM ( + 82 ) - ( + 9 ) * + 5
----
1249

query I rowsort
SELECT 2 * ( + - 29 ) + + - 56 AS col0
----
-114

query II rowsort
SELECT ALL - 54, 34 AS col0
----
-54
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT 92 + - - COUNT( * ) + - 70 - 27 * + + 61 AS col0
----
-1624

skipif mysql # not compatible
query I rowsort label-2839
SELECT 92 + - - COUNT ( * ) + - 70 - 27 * + + 61 AS col0
----
-1624

query I rowsort
SELECT ALL + 39 * + 0 * + 3 AS col1
----
0

query I rowsort
SELECT 63 * - + 56
----
-3528

query I rowsort
SELECT 99 * + - 23 AS col0
----
-2277

query I rowsort
SELECT 8 + + - 40 col0
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2844
SELECT ALL - 44 col2, 59 DIV COUNT( * ) col1
----
-44
59

skipif mysql # not compatible
query II rowsort label-2844
SELECT ALL - 44 col2, 59 / COUNT ( * ) col1
----
-44
59

query I rowsort
SELECT - 86 * - 93 + + 85 + - - 1 AS col0
----
8084

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT 89 * + - ( ( 59 ) ) * COUNT( * )
----
-5251

skipif mysql # not compatible
query I rowsort label-2846
SELECT 89 * + - ( ( 59 ) ) * COUNT ( * )
----
-5251

query II rowsort
SELECT DISTINCT 68 col1, + 54 col2
----
68
54

query I rowsort
SELECT DISTINCT + 21 * + 13 AS col2
----
273

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2850
SELECT DISTINCT COUNT( * ), - COUNT( + 47 ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-2850
SELECT DISTINCT COUNT ( * ), - COUNT ( + 47 ) AS col1
----
1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2851
SELECT DISTINCT CAST( 10 AS SIGNED ) * + 93 * + NULLIF ( - 20, MIN( - + 55 ) / + 56 * - + 88 ) * - 15 AS col2
----
279000

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT CAST ( 10 AS INTEGER ) * + 93 * + NULLIF ( - 20, MIN ( - + 55 ) / + 56 * - + 88 ) * - 15 AS col2
----
279000

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT COALESCE ( - COUNT( * ), - COUNT( * ) * - COALESCE ( + ( + 5 ), 58 ), + 22 + NULLIF ( + + 15, - 34 ) ) * - 48 + + 14
----
62

skipif mysql # not compatible
query I rowsort label-2852
SELECT COALESCE ( - COUNT ( * ), - COUNT ( * ) * - COALESCE ( + ( + 5 ), 58 ), + 22 + NULLIF ( + + 15, - 34 ) ) * - 48 + + 14
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2853
SELECT ALL ( + 28 ) DIV - 63 + 71
----
71

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL ( + 28 ) / - 63 + 71
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2854
SELECT COALESCE ( - 50, + + 26 * + 36 - + 1 + + NULLIF ( + COUNT( * ), CAST( NULL AS SIGNED ) * - 98 / + 8 ) * + SUM( - - 65 ) ) - - 20, 26 col0
----
-30
26

skipif mysql # not compatible
query II rowsort label-2854
SELECT COALESCE ( - 50, + + 26 * + 36 - + 1 + + NULLIF ( + COUNT ( * ), CAST ( NULL AS INTEGER ) * - 98 / + 8 ) * + SUM ( - - 65 ) ) - - 20, 26 col0
----
-30
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT ( + 81 ) DIV 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2855
SELECT ( + 81 ) / 90 AS col2
----
0

query I rowsort
SELECT DISTINCT 17 * - 75 AS col2
----
-1275

query I rowsort
SELECT - 91 * + + 90 * 88 + + - 4
----
-720724

query I rowsort
SELECT - ( + 77 ) AS col1
----
-77

query I rowsort
SELECT DISTINCT - 69 + 90 AS col2
----
21

query I rowsort
SELECT ALL 44 + - 17
----
27

query II rowsort
SELECT 16 AS col1, - 22
----
16
-22

query I rowsort
SELECT - 32 - + 13
----
-45

query II rowsort
SELECT ALL 23 AS col0, + 72 AS col0
----
23
72

query I rowsort
SELECT DISTINCT 6 + 51
----
57

query I rowsort
SELECT 97 * 68 AS col2
----
6596

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2867
SELECT ALL - 76 + 29 DIV 99 - - 49
----
-27

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL - 76 + 29 / 99 - - 49
----
-27

query I rowsort
SELECT 15 * + + ( - 33 )
----
-495

query II rowsort
SELECT - + 30 AS col2, + 20 + + + 51 AS col1
----
-30
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2870
SELECT 5 + + 59 + + 25 DIV - + NULLIF ( - 80, - 23 * - CASE - 10 WHEN - 59 * + 96 THEN NULL WHEN - COUNT( 31 ) THEN NULL ELSE 40 END ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2870
SELECT 5 + + 59 + + 25 / - + NULLIF ( - 80, - 23 * - CASE - 10 WHEN - 59 * + 96 THEN NULL WHEN - COUNT ( 31 ) THEN NULL ELSE 40 END ) AS col0
----
64

query I rowsort
SELECT - 90 + - 71 AS col0
----
-161

query I rowsort
SELECT DISTINCT + 93 * - + 52 * + 77 * 54
----
-20108088

query I rowsort
SELECT ALL 3 * + 38 - + 16 AS col1
----
98

query II rowsort
SELECT DISTINCT + + 13, - 31 AS col2
----
13
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT + COALESCE ( + - MIN( 29 ), 97 )
----
-29

skipif mysql # not compatible
query I rowsort label-2875
SELECT + COALESCE ( + - MIN ( 29 ), 97 )
----
-29

query I rowsort
SELECT DISTINCT 51 * 46 AS col2
----
2346

onlyif mysql # aggregate syntax: 
query II rowsort label-2877
SELECT DISTINCT + MAX( - 89 ), - 39 AS col2
----
-89
-39

skipif mysql # not compatible
query II rowsort label-2877
SELECT DISTINCT + MAX ( - 89 ), - 39 AS col2
----
-89
-39

query I rowsort
SELECT + ( 25 ) - - 95
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2879
SELECT + AVG ( ALL - 41 ) - - CASE CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN + - COUNT( * ) END - COUNT( * ) / - 41 * - + 31 + - + 35 + 6 + - 63 + - + SUM( - 80 ) - + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT + AVG ( ALL - 41 ) - - CASE CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN + - COUNT ( * ) END - COUNT ( * ) / - 41 * - + 31 + - + 35 + 6 + - 63 + - + SUM ( - 80 ) - + 8 AS col1
----
NULL

query I rowsort
SELECT - 73 * - 5
----
365

onlyif mysql # DIV for integer division: 
query II rowsort label-2881
SELECT - 32 DIV + 7, + 21 AS col0
----
-4
21

skipif mysql # not compatible
query II rowsort label-2881
SELECT - 32 / + 7, + 21 AS col0
----
-4
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT + 44 * MIN( DISTINCT 48 )
----
2112

skipif mysql # not compatible
query I rowsort label-2882
SELECT + 44 * MIN ( DISTINCT 48 )
----
2112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2883
SELECT ALL + CASE ( 46 ) WHEN + ( + + 88 ) THEN 87 WHEN - 0 THEN NULL WHEN - 94 * + COUNT( * ) + + CAST( NULL AS SIGNED ) * + 71 THEN + + 63 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL + CASE ( 46 ) WHEN + ( + + 88 ) THEN 87 WHEN - 0 THEN NULL WHEN - 94 * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + 71 THEN + + 63 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 14 - 53
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT DISTINCT CAST( NULL AS SIGNED ) + + CASE - - 84 WHEN 40 + + 45 THEN NULL ELSE + 42 - - 12 - 60 + - 25 * + CASE - NULLIF ( 92, 70 * - - COALESCE ( + 28, + + COUNT( * ) - + COUNT( * ), - 53 ) / - 5 + + 57 ) WHEN 85 + 18 THEN NULL WHEN - 21 THEN NULL ELSE 50 END + MIN( DISTINCT + 4 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + CASE - - 84 WHEN 40 + + 45 THEN NULL ELSE + 42 - - 12 - 60 + - 25 * + CASE - NULLIF ( 92, 70 * - - COALESCE ( + 28, + + COUNT ( * ) - + COUNT ( * ), - 53 ) / - 5 + + 57 ) WHEN 85 + 18 THEN NULL WHEN - 21 THEN NULL ELSE 50 END + MIN ( DISTINCT + 4 ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT - AVG ( ALL 62 ) + + CASE NULLIF ( + 32, ( + 6 ) + - - 36 ) WHEN + SUM( 44 ) + - 20 / 33 THEN 73 + + - 25 WHEN 4 THEN NULL END - + 77 * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2886
SELECT - AVG ( ALL 62 ) + + CASE NULLIF ( + 32, ( + 6 ) + - - 36 ) WHEN + SUM ( 44 ) + - 20 / 33 THEN 73 + + - 25 WHEN 4 THEN NULL END - + 77 * + 19
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2887
SELECT ALL + 32 * + 49, + COUNT( - - 83 ) col2
----
1568
1

skipif mysql # not compatible
query II rowsort label-2887
SELECT ALL + 32 * + 49, + COUNT ( - - 83 ) col2
----
1568
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2888
SELECT - SUM( DISTINCT + 18 ) + - 52 DIV + 37 AS col0, + 20 AS col1
----
-19
20

skipif mysql # not compatible
query II rowsort label-2888
SELECT - SUM ( DISTINCT + 18 ) + - 52 / + 37 AS col0, + 20 AS col1
----
-19
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT + 50 - + 45 * + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-2889
SELECT + 50 - + 45 * + COUNT ( * )
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT ALL + 71 * - COUNT( * ) + 84 + - 48 * 14 AS col1
----
-659

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL + 71 * - COUNT ( * ) + 84 + - 48 * 14 AS col1
----
-659

query I rowsort
SELECT - 16 + + + 54
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2893
SELECT ALL - COUNT( * ) DIV + MIN( + - COALESCE ( + + ( 57 ), + 42, + 60 DIV - 14 ) ) * + 7 + - MIN( ALL + CAST( - - 61 AS SIGNED ) ) AS col2, MIN( DISTINCT - CASE + 67 WHEN 21 + - CAST( NULL AS SIGNED ) THEN + - 43 * 8 ELSE NULL END ) AS col0
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-2893
SELECT ALL - COUNT ( * ) / + MIN ( + - COALESCE ( + + ( 57 ), + 42, + 60 / - 14 ) ) * + 7 + - MIN ( ALL + CAST ( - - 61 AS INTEGER ) ) AS col2, MIN ( DISTINCT - CASE + 67 WHEN 21 + - CAST ( NULL AS INTEGER ) THEN + - 43 * 8 ELSE NULL END ) AS col0
----
-61
NULL

query II rowsort
SELECT ALL + + 88 + - 18, + 68 AS col2
----
70
68

query I rowsort
SELECT - 91 + - + 52 AS col0
----
-143

onlyif mysql # DIV for integer division: 
query I rowsort label-2896
SELECT ALL 35 * + 36 DIV 4 AS col1
----
315

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL 35 * + 36 / 4 AS col1
----
315

query I rowsort
SELECT ALL - 64 * - + 74 AS col2
----
4736

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

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

query I rowsort
SELECT ALL + NULLIF ( + 86, - 52 )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2900
SELECT SUM( ALL + - 72 ) DIV - CASE - SUM( ALL 80 ) WHEN + COALESCE ( + NULLIF ( 45, - - NULLIF ( - COUNT( * ), AVG ( ALL + 59 ) + + 3 ) * - - 76 ), + ( 48 ), + 18 - + 35 ) * - 78 THEN NULL WHEN - COUNT( + 37 ) * 40 + 58 THEN - 71 ELSE 23 + - 47 END - - 81
----
78

skipif mysql # not compatible
query I rowsort label-2900
SELECT SUM ( ALL + - 72 ) / - CASE - SUM ( ALL 80 ) WHEN + COALESCE ( + NULLIF ( 45, - - NULLIF ( - COUNT ( * ), AVG ( ALL + 59 ) + + 3 ) * - - 76 ), + ( 48 ), + 18 - + 35 ) * - 78 THEN NULL WHEN - COUNT ( + 37 ) * 40 + 58 THEN - 71 ELSE 23 + - 47 END - - 81
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT + 46 * COUNT( * ) * + 3 AS col1
----
138

skipif mysql # not compatible
query I rowsort label-2901
SELECT + 46 * COUNT ( * ) * + 3 AS col1
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2902
SELECT CAST( - COALESCE ( + 54, + 45 ) AS SIGNED ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2902
SELECT CAST ( - COALESCE ( + 54, + 45 ) AS INTEGER ) AS col1
----
-54

query I rowsort
SELECT ALL 10 * 2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2904
SELECT ( CAST( NULL AS SIGNED ) ) * + 84 + - 85 + 95 + - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2904
SELECT ( CAST ( NULL AS INTEGER ) ) * + 84 + - 85 + 95 + - 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2905
SELECT ( + ( 98 ) ), + MAX( ALL - - 71 ) col1
----
98
71

skipif mysql # not compatible
query II rowsort label-2905
SELECT ( + ( 98 ) ), + MAX ( ALL - - 71 ) col1
----
98
71

query I rowsort
SELECT + 56 * - 81
----
-4536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2907
SELECT - COUNT( * ) * + 1 DIV + + MIN( 3 ) - - 54 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-2907
SELECT - COUNT ( * ) * + 1 / + + MIN ( 3 ) - - 54 AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2908
SELECT + CAST( NULL AS SIGNED ) AS col2, CAST( + 14 AS SIGNED ) AS col2
----
NULL
14

skipif mysql # not compatible
query II rowsort label-2908
SELECT + CAST ( NULL AS INTEGER ) AS col2, CAST ( + 14 AS INTEGER ) AS col2
----
NULL
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT + COUNT( * ) + 83 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2909
SELECT + COUNT ( * ) + 83 AS col0
----
84

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

query I rowsort
SELECT + 20 * - 24 AS col2
----
-480

query I rowsort
SELECT - 26 * - ( + 41 )
----
1066

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2914
SELECT - 78 * + - 69 + + - 43 + - + ( + 76 ) + + NULLIF ( + - COUNT( * ), + SUM( DISTINCT - CAST( - + 99 AS SIGNED ) ) ) DIV + 56 + + MAX( - 9 ) + + 3 * ( + 47 )
----
5395

skipif mysql # not compatible
query I rowsort label-2914
SELECT - 78 * + - 69 + + - 43 + - + ( + 76 ) + + NULLIF ( + - COUNT ( * ), + SUM ( DISTINCT - CAST ( - + 99 AS INTEGER ) ) ) / + 56 + + MAX ( - 9 ) + + 3 * ( + 47 )
----
5395

query I rowsort
SELECT ALL + 3 * - 4
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL + COUNT( * ) * - + CASE + 27 WHEN + - SUM( - - 75 ) THEN - + 46 END + - - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL + COUNT ( * ) * - + CASE + 27 WHEN + - SUM ( - - 75 ) THEN - + 46 END + - - 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2917
SELECT COALESCE ( 11, - + 30 * ( + 60 ) + - - COALESCE ( COUNT( * ), - + 69 + + 34 * + + MIN( DISTINCT - 11 ) ) ) AS col0, + 19
----
11
19

skipif mysql # not compatible
query II rowsort label-2917
SELECT COALESCE ( 11, - + 30 * ( + 60 ) + - - COALESCE ( COUNT ( * ), - + 69 + + 34 * + + MIN ( DISTINCT - 11 ) ) ) AS col0, + 19
----
11
19

query I rowsort
SELECT + 54 * - 76 AS col1
----
-4104

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2920
SELECT ALL - 78 * - 28 + 18 DIV + - MIN( DISTINCT - - 49 ), 73 * - COUNT( ALL 40 ) * 31 * - 24 AS col1
----
2184
54312

skipif mysql # not compatible
query II rowsort label-2920
SELECT ALL - 78 * - 28 + 18 / + - MIN ( DISTINCT - - 49 ), 73 * - COUNT ( ALL 40 ) * 31 * - 24 AS col1
----
2184
54312

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

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

query I rowsort
SELECT + 40 * 75 + - 87 AS col1
----
2913

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT ALL + - 38 * - - 86 * 0 + + 15 + + + 18 * + + COUNT( * ) col1
----
33

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL + - 38 * - - 86 * 0 + + 15 + + + 18 * + + COUNT ( * ) col1
----
33

query I rowsort
SELECT - - 31 * 30
----
930

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

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

query I rowsort
SELECT - 9 + + 87 - 69 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT ALL + + 7 * - + 12 + COUNT( * ) + COUNT( * ) * - 49 * + 31
----
-1602

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL + + 7 * - + 12 + COUNT ( * ) + COUNT ( * ) * - 49 * + 31
----
-1602

query I rowsort
SELECT DISTINCT - 87 * + 43 AS col2
----
-3741

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT + SUM( + + ( 21 ) ) - 48 + + 15 * - + COALESCE ( + 57, COUNT( * ) ) AS col2
----
-882

skipif mysql # not compatible
query I rowsort label-2931
SELECT + SUM ( + + ( 21 ) ) - 48 + + 15 * - + COALESCE ( + 57, COUNT ( * ) ) AS col2
----
-882

query I rowsort
SELECT ALL - + 24 * + + 48 + + + 71
----
-1081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2933
SELECT - + CAST( + COUNT( * ) AS SIGNED ) + + COUNT( * ) AS col2, SUM( DISTINCT + + CASE 45 WHEN 80 * + + 30 * 28 + + 17 THEN 91 + 72 WHEN - 16 - 66 THEN + 70 * 68 ELSE NULL END ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2933
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) AS col2, SUM ( DISTINCT + + CASE 45 WHEN 80 * + + 30 * 28 + + 17 THEN 91 + 72 WHEN - 16 - 66 THEN + 70 * 68 ELSE NULL END ) AS col1
----
0
NULL

query I rowsort
SELECT - 80 - 22 * COALESCE ( 18, - + 55, - + 30 + - 80 ) AS col1
----
-476

query I rowsort
SELECT - - 44 AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2936
SELECT DISTINCT + - 11 - + ( - 12 ) * COALESCE ( SUM( ALL - 16 ), 14 * + - 46 - - COUNT( * ) - 23 + - - ( + - 78 ) * + - 7, 11 + 43 + + - 82 DIV NULLIF ( - + 43, + CAST( NULL AS SIGNED ) - - 11 + - COALESCE ( 55, - 77 + - COUNT( * ) ) * 80 ) ) + + 45 AS col0
----
-158

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT + - 11 - + ( - 12 ) * COALESCE ( SUM ( ALL - 16 ), 14 * + - 46 - - COUNT ( * ) - 23 + - - ( + - 78 ) * + - 7, 11 + 43 + + - 82 / NULLIF ( - + 43, + CAST ( NULL AS INTEGER ) - - 11 + - COALESCE ( 55, - 77 + - COUNT ( * ) ) * 80 ) ) + + 45 AS col0
----
-158

query I rowsort
SELECT DISTINCT + 9 col0
----
9

query I rowsort
SELECT DISTINCT - + ( 10 ) * - 45 AS col1
----
450

query II rowsort
SELECT 20 col0, - CASE WHEN + 83 IS NULL THEN NULL ELSE + 82 END AS col0
----
20
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2940
SELECT 2 DIV - + 60
----
0

skipif mysql # not compatible
query I rowsort label-2940
SELECT 2 / - + 60
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT ALL - 80 DIV - 58
----
1

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - 80 / - 58
----
1

query I rowsort
SELECT 73 * - - 95 AS col1
----
6935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2943
SELECT ( + - CAST( NULL AS SIGNED ) ) * 61 * + + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2943
SELECT ( + - CAST ( NULL AS INTEGER ) ) * 61 * + + 83 AS col1
----
NULL

query II rowsort
SELECT + 94 AS col1, COALESCE ( COALESCE ( + CASE + 68 WHEN + + 56 THEN + + 0 + + 72 ELSE NULL END, - 60 ), 9 ) + 6
----
94
-54

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

query I rowsort
SELECT DISTINCT + 62 + - + 25 AS col0
----
37

query I rowsort
SELECT ALL CASE 26 WHEN - 59 THEN NULL WHEN + 21 + - 7 THEN 66 ELSE + 62 END + + - 33 + - COALESCE ( 73, - 31 ) + - + ( - 83 ) * - - 21 AS col1
----
1699

query II rowsort
SELECT + 61, 7 * 48 AS col2
----
61
336

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL MIN( + ( 53 ) ) + - NULLIF ( - + COUNT( * ), AVG ( - 61 ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL MIN ( + ( 53 ) ) + - NULLIF ( - + COUNT ( * ), AVG ( - 61 ) ) AS col0
----
54

query I rowsort
SELECT 27 * - + 12 * - + 93
----
30132

query I rowsort
SELECT 98 - + 4 * + + COALESCE ( + 19, - 43 - - - 60 ) AS col0
----
22

query I rowsort
SELECT 17 * 52 AS col0
----
884

query I rowsort
SELECT 52 * + 65 * + 29 * - 67
----
-6567340

query II rowsort
SELECT 68 AS col1, - 36
----
68
-36

query I rowsort
SELECT - 80 * - 36 - 15 + - - ( - + 5 ) col1
----
2860

query I rowsort
SELECT 3 - - 52 + - 51 + CASE - 89 WHEN AVG ( - - 9 ) * 66 + + 38 THEN + 57 WHEN - 51 THEN NULL END / - CASE 60 WHEN 76 THEN - + 51 - - 61 ELSE - 39 END / + + 32
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2957
SELECT ALL 68 - - CAST( 49 AS SIGNED ) DIV - 6
----
60

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL 68 - - CAST ( 49 AS INTEGER ) / - 6
----
60

query I rowsort
SELECT - 51 + - 53 AS col2
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2959
SELECT ALL - 88 * - ( 96 ) DIV + COALESCE ( - COUNT( * ), + 68 * + - 94 ) + 40
----
-8408

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL - 88 * - ( 96 ) / + COALESCE ( - COUNT ( * ), + 68 * + - 94 ) + 40
----
-8408

onlyif mysql # aggregate syntax: 
query II rowsort label-2960
SELECT 82 + - NULLIF ( - 63, - NULLIF ( - 0, + 47 * 62 + + - 71 ) * + MIN( ALL - 93 ) * - - 70 / + 46 ) AS col1, 78 AS col0
----
145
78

skipif mysql # not compatible
query II rowsort label-2960
SELECT 82 + - NULLIF ( - 63, - NULLIF ( - 0, + 47 * 62 + + - 71 ) * + MIN ( ALL - 93 ) * - - 70 / + 46 ) AS col1, 78 AS col0
----
145
78

query I rowsort
SELECT + 34 - - 74 + 20 - - 64
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2962
SELECT 85 AS col0, CAST( NULL AS SIGNED ) AS col2
----
85
NULL

skipif mysql # not compatible
query II rowsort label-2962
SELECT 85 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
85
NULL

query I rowsort
SELECT ALL ( 40 ) col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT COUNT( - 30 ) * + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2964
SELECT COUNT ( - 30 ) * + COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT 51 + - 46 + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2965
SELECT 51 + - 46 + COUNT ( * ) AS col2
----
6

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2967
SELECT 28 * + CAST( + COUNT( * ) AS SIGNED ) * - - ( + + 7 )
----
196

skipif mysql # not compatible
query I rowsort label-2967
SELECT 28 * + CAST ( + COUNT ( * ) AS INTEGER ) * - - ( + + 7 )
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT ALL - NULLIF ( MAX( + 41 ), - 51 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL - NULLIF ( MAX ( + 41 ), - 51 ) AS col0
----
-41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT 18 * - - COUNT( * ) * + COUNT( * ) * 37 * + - 97
----
-64602

skipif mysql # not compatible
query I rowsort label-2970
SELECT 18 * - - COUNT ( * ) * + COUNT ( * ) * 37 * + - 97
----
-64602

onlyif mysql # DIV for integer division: 
query I rowsort label-2971
SELECT ALL 27 + NULLIF ( - 89, - 8 ) - - 22 DIV ( + 57 ) + - 0
----
-62

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL 27 + NULLIF ( - 89, - 8 ) - - 22 / ( + 57 ) + - 0
----
-62

query I rowsort
SELECT 98 - 83
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2973
SELECT ALL - 67 * + 36 + + CASE 77 WHEN - 53 + 77 + 36 * + 15 - + - 88 THEN NULL ELSE - 62 DIV + 42 END + + COUNT( * ) * 36 + + 36 AS col1
----
-2341

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL - 67 * + 36 + + CASE 77 WHEN - 53 + 77 + 36 * + 15 - + - 88 THEN NULL ELSE - 62 / + 42 END + + COUNT ( * ) * 36 + + 36 AS col1
----
-2341

onlyif mysql # DIV for integer division: 
query I rowsort label-2974
SELECT - 33 DIV - 10 + + 88 * - 53
----
-4661

skipif mysql # not compatible
query I rowsort label-2974
SELECT - 33 / - 10 + + 88 * - 53
----
-4661

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2975
SELECT ALL 45 * + + 58 + - - MIN( - COALESCE ( + - 98, 91 ) ) + ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL 45 * + + 58 + - - MIN ( - COALESCE ( + - 98, 91 ) ) + ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2976
SELECT 27 DIV + 12 AS col1, 8, + COUNT( * ) * - + 83 AS col1
----
2
8
-83

skipif mysql # not compatible
query III rowsort label-2976
SELECT 27 / + 12 AS col1, 8, + COUNT ( * ) * - + 83 AS col1
----
2
8
-83

query I rowsort
SELECT + 70 * 55 + ( - 35 )
----
3815

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT COUNT( * ) - + + 38 * + 74 AS col0
----
-2811

skipif mysql # not compatible
query I rowsort label-2978
SELECT COUNT ( * ) - + + 38 * + 74 AS col0
----
-2811

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2979
SELECT ALL - NULLIF ( - 21, + ( - ( CAST( + COUNT( * ) AS DECIMAL ) ) ) ) * - 82 - + 59 + + - 35 + - - COUNT( * ) AS col1
----
-1815

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL - NULLIF ( - 21, + ( - ( CAST ( + COUNT ( * ) AS REAL ) ) ) ) * - 82 - + 59 + + - 35 + - - COUNT ( * ) AS col1
----
-1815

onlyif mysql # aggregate syntax: 
query II rowsort label-2980
SELECT 7 + + COUNT( * ) AS col2, + 79
----
8
79

skipif mysql # not compatible
query II rowsort label-2980
SELECT 7 + + COUNT ( * ) AS col2, + 79
----
8
79

query I rowsort
SELECT 17 + - + 21
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2982
SELECT ALL - 24 * + COUNT( * ) * 25 + - 17 + 46 - + - 95 DIV - 22 AS col2
----
-575

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL - 24 * + COUNT ( * ) * 25 + - 17 + 46 - + - 95 / - 22 AS col2
----
-575

query I rowsort
SELECT 23 * 26 AS col0
----
598

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT DISTINCT 36 * SUM( ALL 42 ) * 4 AS col1
----
6048

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT 36 * SUM ( ALL 42 ) * 4 AS col1
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT DISTINCT - SUM( + 79 ) + + 51 + - 20
----
-48

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT - SUM ( + 79 ) + + 51 + - 20
----
-48

query I rowsort
SELECT ALL + 14 - - 10 + 98
----
122

query I rowsort
SELECT - ( + - 88 ) + - NULLIF ( - NULLIF ( 27, + 62 * - - 73 ), - ( 62 ) )
----
115

query I rowsort
SELECT 48 * - + 56 + - 14 AS col1
----
-2702

query I rowsort
SELECT ALL ( - 95 ) - + - 80 - + NULLIF ( 49, + + 43 ) * - + 8 * + 1 * + 14
----
5473

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT DISTINCT + 9 DIV + 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT + 9 / + 25 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2992
SELECT + COUNT( DISTINCT - 46 ) DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-2992
SELECT + COUNT ( DISTINCT - 46 ) / + 50
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-2993
SELECT + - 96 + - 52, - COUNT( DISTINCT ( 99 ) ) AS col2, + + NULLIF ( - + AVG ( + + CAST( NULL AS DECIMAL ) ), - + ( - + COUNT( * ) ) ) AS col2
----
-148
-1
NULL

skipif mysql # not compatible
query III rowsort label-2993
SELECT + - 96 + - 52, - COUNT ( DISTINCT ( 99 ) ) AS col2, + + NULLIF ( - + AVG ( + + CAST ( NULL AS REAL ) ), - + ( - + COUNT ( * ) ) ) AS col2
----
-148
-1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2994
SELECT ALL + MIN( 14 ), - 95 + + + 97 AS col2
----
14
2

skipif mysql # not compatible
query II rowsort label-2994
SELECT ALL + MIN ( 14 ), - 95 + + + 97 AS col2
----
14
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2995
SELECT ALL + COUNT( * ) * - 15 + COALESCE ( - + 11, COUNT( * ) * + COUNT( * ), + + 39 ) DIV COUNT( * ) AS col0, 6 AS col2
----
-26
6

skipif mysql # not compatible
query II rowsort label-2995
SELECT ALL + COUNT ( * ) * - 15 + COALESCE ( - + 11, COUNT ( * ) * + COUNT ( * ), + + 39 ) / COUNT ( * ) AS col0, 6 AS col2
----
-26
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT + - 52 - + + 79 + + - COUNT( * ) * + COUNT( * ) * CASE - 91 WHEN 49 THEN + + 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2996
SELECT + - 52 - + + 79 + + - COUNT ( * ) * + COUNT ( * ) * CASE - 91 WHEN 49 THEN + + 26 END
----
NULL

query I rowsort
SELECT + - 46 * + 70 AS col2
----
-3220

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

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT + 83 + COUNT ( * ) AS col0
----
84

query I rowsort
SELECT - 51 + 84
----
33

query I rowsort
SELECT DISTINCT + COALESCE ( - 72, 83 ) / - 86 * + + CASE - - 38 WHEN - 73 * + - 44 THEN + 94 END AS col1
----
NULL

query I rowsort
SELECT ALL + 17 + + + 78
----
95

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

skipif mysql # not compatible
query I rowsort label-3002
SELECT - 91 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 44 + 67 AS col2
----
111

query II rowsort
SELECT 77, 18 * - 60 * 76 AS col2
----
77
-82080

query I rowsort
SELECT ALL 73 + 15
----
88

query II rowsort
SELECT - 85 + - ( + + 29 ) AS col1, 10 AS col1
----
-114
10

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

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

query I rowsort
SELECT + 55 * - 12
----
-660

query I rowsort
SELECT - 61 + + CASE 19 WHEN - + 85 THEN NULL ELSE - - 82 * + 22 END + - + 48
----
1695

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3010
SELECT ALL + 29 * - ( CAST( + + 88 AS SIGNED ) ) + + + 14 * 7 * - 53
----
-7746

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL + 29 * - ( CAST ( + + 88 AS INTEGER ) ) + + + 14 * 7 * - 53
----
-7746

query I rowsort
SELECT + ( + 24 ) AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3012
SELECT 18 * COUNT( * ) DIV + 76 * - 52 + MAX( ALL 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3012
SELECT 18 * COUNT ( * ) / + 76 * - 52 + MAX ( ALL 2 ) AS col0
----
2

query I rowsort
SELECT ALL + 27 * 52 col0
----
1404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3014
SELECT DISTINCT + 94 col0, CAST( + CAST( + + COUNT( * ) AS SIGNED ) AS SIGNED ) + + 32 * COUNT( * ) + ( - - 13 )
----
94
46

skipif mysql # not compatible
query II rowsort label-3014
SELECT DISTINCT + 94 col0, CAST ( + CAST ( + + COUNT ( * ) AS INTEGER ) AS INTEGER ) + + 32 * COUNT ( * ) + ( - - 13 )
----
94
46

query I rowsort
SELECT DISTINCT + 35 * - - 62 - - - 13
----
2157

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3016
SELECT ALL NULLIF ( - - 91, - CASE - 33 WHEN + + 40 + + COUNT( * ) * - CAST( NULL AS DECIMAL ) + + - 88 THEN + 23 WHEN + 96 + 60 + 97 + - 82 / - ( 38 ) THEN NULL END + - - 99 ) * + 73
----
6643

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL NULLIF ( - - 91, - CASE - 33 WHEN + + 40 + + COUNT ( * ) * - CAST ( NULL AS REAL ) + + - 88 THEN + 23 WHEN + 96 + 60 + 97 + - 82 / - ( 38 ) THEN NULL END + - - 99 ) * + 73
----
6643

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT ALL - ( - 74 ) * 65 - ( COUNT( * ) )
----
4809

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL - ( - 74 ) * 65 - ( COUNT ( * ) )
----
4809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3020
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * 30 - - NULLIF ( 84, - 87 ) col1
----
114

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * 30 - - NULLIF ( 84, - 87 ) col1
----
114

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

query I rowsort
SELECT - - 57 - + 18
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT - 34 * 25 + - ( - + COUNT( * ) ) + + 81 AS col0
----
-768

skipif mysql # not compatible
query I rowsort label-3023
SELECT - 34 * 25 + - ( - + COUNT ( * ) ) + + 81 AS col0
----
-768

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

skipif mysql # not compatible
query II rowsort label-3024
SELECT - 76 AS col0, CAST ( NULL AS INTEGER )
----
-76
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3025
SELECT ALL + - NULLIF ( - COUNT( * ), - - 47 ) DIV + 13
----
0

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL + - NULLIF ( - COUNT ( * ), - - 47 ) / + 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT - 60 * 46 * - SUM( ALL - + 66 )
----
-182160

skipif mysql # not compatible
query I rowsort label-3026
SELECT - 60 * 46 * - SUM ( ALL - + 66 )
----
-182160

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT ALL 13 * MAX( DISTINCT + + 65 ) + + ( + + 75 ) - - - 97 AS col0
----
823

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL 13 * MAX ( DISTINCT + + 65 ) + + ( + + 75 ) - - - 97 AS col0
----
823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3028
SELECT - - CAST( NULL AS SIGNED ) - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT - - CAST ( NULL AS INTEGER ) - 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3029
SELECT ALL + - 37 * - ( - ( - + 4 ) ) + COUNT( * ) * - 3 + - - 36 + 66 col2, - CAST( NULL AS SIGNED ) + + 56 / - 36 * - 49 * 59 / + - COUNT( ALL + ( + + ( + - 44 ) ) )
----
247
NULL

skipif mysql # not compatible
query II rowsort label-3029
SELECT ALL + - 37 * - ( - ( - + 4 ) ) + COUNT ( * ) * - 3 + - - 36 + 66 col2, - CAST ( NULL AS INTEGER ) + + 56 / - 36 * - 49 * 59 / + - COUNT ( ALL + ( + + ( + - 44 ) ) )
----
247
NULL

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

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

query II rowsort
SELECT ALL - 9 AS col2, 34
----
-9
34

query I rowsort
SELECT ALL ( + + 33 ) * + 85 + - + 19
----
2786

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT - + MIN( ALL 20 ) + - + 48 * + + 50 * 30 + + NULLIF ( + - 9, COUNT( * ) )
----
-72029

skipif mysql # not compatible
query I rowsort label-3033
SELECT - + MIN ( ALL 20 ) + - + 48 * + + 50 * 30 + + NULLIF ( + - 9, COUNT ( * ) )
----
-72029

query I rowsort
SELECT - 58 * - - 19
----
-1102

query I rowsort
SELECT - 63 + - + 48 AS col2
----
-111

query I rowsort
SELECT + 32 - - 12
----
44

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

skipif mysql # not compatible
query I rowsort label-3037
SELECT - MIN ( DISTINCT - 47 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3038
SELECT - CASE + - CASE 30 WHEN + CAST( 14 AS DECIMAL ) THEN + CAST( NULL AS SIGNED ) WHEN + 15 - - 58 THEN NULL WHEN + 57 THEN NULL END WHEN - 19 - - COUNT( * ) + - COUNT( * ) - - 90 * COUNT( * ) THEN 72 END + - 97 + - COUNT( * ) * MAX( DISTINCT + + ( - 85 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT - CASE + - CASE 30 WHEN + CAST ( 14 AS REAL ) THEN + CAST ( NULL AS INTEGER ) WHEN + 15 - - 58 THEN NULL WHEN + 57 THEN NULL END WHEN - 19 - - COUNT ( * ) + - COUNT ( * ) - - 90 * COUNT ( * ) THEN 72 END + - 97 + - COUNT ( * ) * MAX ( DISTINCT + + ( - 85 ) )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3041
SELECT ALL MIN( ALL - 95 ) DIV - + 62 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL MIN ( ALL - 95 ) / - + 62 AS col0
----
1

query I rowsort
SELECT + 38 * + + ( + - 12 )
----
-456

query I rowsort
SELECT + 44 * - + NULLIF ( 85, - 74 ) * 83 * + 30 * 19 col0
----
-176939400

onlyif mysql # DIV for integer division: 
query II rowsort label-3044
SELECT + 61 DIV + 58 AS col0, 26
----
1
26

skipif mysql # not compatible
query II rowsort label-3044
SELECT + 61 / + 58 AS col0, 26
----
1
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ALL COUNT( - 16 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL COUNT ( - 16 ) AS col1
----
1

query I rowsort
SELECT + 32 + - 27
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT + 8 * - + COUNT( + + 92 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3047
SELECT + 8 * - + COUNT ( + + 92 ) AS col2
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-3048
SELECT - 86 DIV 76 * + 59 + 79 - ( - + 1 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3048
SELECT - 86 / 76 * + 59 + 79 - ( - + 1 ) AS col2
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3049
SELECT + 78 + - + 36 + CAST( NULL AS DECIMAL ) + 11 * - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT + 78 + - + 36 + CAST ( NULL AS REAL ) + 11 * - 21 AS col2
----
NULL

query I rowsort
SELECT + 48 * + 44
----
2112

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3052
SELECT - ( + 95 ) DIV + + NULLIF ( CASE + 87 WHEN COUNT( 96 ) THEN 3 + + COUNT( * ) ELSE ( 97 ) END, + - 12 ) + - 5 col0
----
-5

skipif mysql # not compatible
query I rowsort label-3052
SELECT - ( + 95 ) / + + NULLIF ( CASE + 87 WHEN COUNT ( 96 ) THEN 3 + + COUNT ( * ) ELSE ( 97 ) END, + - 12 ) + - 5 col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT + COUNT( * ) * + - 8 - 50 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-3053
SELECT + COUNT ( * ) * + - 8 - 50 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT 88 + + MIN( DISTINCT + - 57 ) + + SUM( + 95 ) AS col0
----
126

skipif mysql # not compatible
query I rowsort label-3054
SELECT 88 + + MIN ( DISTINCT + - 57 ) + + SUM ( + 95 ) AS col0
----
126

query I rowsort
SELECT 6 * - + 27 - - 53
----
-109

query I rowsort
SELECT ALL + + 15 * 27
----
405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3057
SELECT + 40 DIV - MAX( ALL 53 ) - - 85 + - + 56 * 63
----
-3443

skipif mysql # not compatible
query I rowsort label-3057
SELECT + 40 / - MAX ( ALL 53 ) - - 85 + - + 56 * 63
----
-3443

query I rowsort
SELECT DISTINCT 19 * - 48 AS col2
----
-912

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT ALL + 82 * - COUNT( * ) - - 2 + + + 85
----
5

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL + 82 * - COUNT ( * ) - - 2 + + + 85
----
5

query I rowsort
SELECT ALL - - 6 col1
----
6

query I rowsort
SELECT DISTINCT - 49 + 85 AS col1
----
36

query I rowsort
SELECT + 94 * - 10 * - 71
----
66740

query I rowsort
SELECT ALL - ( + 58 ) + + 88
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT 37 * COUNT( - 52 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-3064
SELECT 37 * COUNT ( - 52 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT NULLIF ( MAX( + 46 ), + + COUNT( * ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-3065
SELECT NULLIF ( MAX ( + 46 ), + + COUNT ( * ) ) AS col2
----
46

query II rowsort
SELECT 55 * 30 * 5 + + 27 AS col0, 56 AS col1
----
8277
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT ALL + 75 + 98 + COUNT( * )
----
174

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL + 75 + 98 + COUNT ( * )
----
174

query I rowsort
SELECT 37 + - - 31 * + + 58
----
1835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3069
SELECT DISTINCT ( + 67 ) + 16 * + + ( + 7 ) * - CAST( NULL AS SIGNED ) - - MAX( + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT ( + 67 ) + 16 * + + ( + 7 ) * - CAST ( NULL AS INTEGER ) - - MAX ( + 79 )
----
NULL

query I rowsort
SELECT DISTINCT + 72 * + - 21
----
-1512

query I rowsort
SELECT ALL - NULLIF ( 49, + + 75 ) + + 70 + 57 * + - 42 * 56
----
-134043

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT 98 * - - MAX( - 86 ) AS col0
----
-8428

skipif mysql # not compatible
query I rowsort label-3072
SELECT 98 * - - MAX ( - 86 ) AS col0
----
-8428

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT COUNT( * ) + - - 78 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-3074
SELECT COUNT ( * ) + - - 78 AS col2
----
79

query I rowsort
SELECT ( - 86 ) * - 28 + + 43 AS col2
----
2451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3076
SELECT DISTINCT 51 col0, + NULLIF ( - 87, + - 68 / - - 97 + MAX( + - NULLIF ( + 16, - + 70 * - - CAST( NULL AS SIGNED ) ) ) ) * + 36 * ( + + 99 ) - - CAST( NULL AS DECIMAL ) + + - COUNT( * ) + 76 * + 22 AS col0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-3076
SELECT DISTINCT 51 col0, + NULLIF ( - 87, + - 68 / - - 97 + MAX ( + - NULLIF ( + 16, - + 70 * - - CAST ( NULL AS INTEGER ) ) ) ) * + 36 * ( + + 99 ) - - CAST ( NULL AS REAL ) + + - COUNT ( * ) + 76 * + 22 AS col0
----
51
NULL

query I rowsort
SELECT ALL + NULLIF ( - 51, 15 ) - - + 48 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT COUNT( * ) + ( + - 98 ) + - 12
----
-109

skipif mysql # not compatible
query I rowsort label-3078
SELECT COUNT ( * ) + ( + - 98 ) + - 12
----
-109

query I rowsort
SELECT DISTINCT + 82 - 64 + - 33
----
-15

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

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

query I rowsort
SELECT 61 * - 32 AS col2
----
-1952

query I rowsort
SELECT 68 + - - 43 AS col0
----
111

query I rowsort
SELECT DISTINCT 77 * + 60
----
4620

query I rowsort
SELECT ( 96 ) + + + 73
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-3085
SELECT 81 DIV + 35 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3085
SELECT 81 / + 35 AS col1
----
2

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

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

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

query I rowsort
SELECT DISTINCT + 53 + 37
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT 72 * - - COUNT( + NULLIF ( - ( - 13 ), 52 ) ) * + + 55
----
3960

skipif mysql # not compatible
query I rowsort label-3089
SELECT 72 * - - COUNT ( + NULLIF ( - ( - 13 ), 52 ) ) * + + 55
----
3960

query I rowsort
SELECT ALL 34 + + + 47 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3091
SELECT - 18 + + 47 + - CASE + + 43 WHEN - 47 THEN - 67 * CAST( NULL AS SIGNED ) WHEN - + 66 * - - 38 - - CASE - + COUNT( DISTINCT + 39 ) WHEN - - 40 - + 27 THEN - 7 * + 63 + 55 + 54 WHEN 26 + + 99 THEN NULL END - 16 + + 3 * + - 25 + + - 60 + - 43 * + 11 THEN - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT - 18 + + 47 + - CASE + + 43 WHEN - 47 THEN - 67 * CAST ( NULL AS INTEGER ) WHEN - + 66 * - - 38 - - CASE - + COUNT ( DISTINCT + 39 ) WHEN - - 40 - + 27 THEN - 7 * + 63 + 55 + 54 WHEN 26 + + 99 THEN NULL END - 16 + + 3 * + - 25 + + - 60 + - 43 * + 11 THEN - COUNT ( * ) ELSE NULL END AS col1
----
NULL

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

query I rowsort
SELECT + COALESCE ( + 93, - 3 ) * - - 33
----
3069

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT DISTINCT - SUM( ALL - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT - SUM ( ALL - 67 )
----
67

query I rowsort
SELECT ALL - - 95 + - 25 AS col1
----
70

query I rowsort
SELECT ALL 37 * + 93 AS col1
----
3441

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

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

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

query I rowsort
SELECT 27 * + 3
----
81

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

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

query II rowsort
SELECT ALL 89 AS col2, - 26 * + 80 + 80 * + + 22 * 40
----
89
68320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3102
SELECT 98 AS col0, + 30 + + COUNT( DISTINCT + CASE - 70 WHEN + ( + + CAST( NULL AS SIGNED ) ) THEN + 43 ELSE - - 49 * - CAST( NULL AS DECIMAL ) END ) AS col0
----
98
30

skipif mysql # not compatible
query II rowsort label-3102
SELECT 98 AS col0, + 30 + + COUNT ( DISTINCT + CASE - 70 WHEN + ( + + CAST ( NULL AS INTEGER ) ) THEN + 43 ELSE - - 49 * - CAST ( NULL AS REAL ) END ) AS col0
----
98
30

query I rowsort
SELECT 46 - - - 32 AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3104
SELECT 17 * + CAST( - 41 AS SIGNED )
----
-697

skipif mysql # not compatible
query I rowsort label-3104
SELECT 17 * + CAST ( - 41 AS INTEGER )
----
-697

query II rowsort
SELECT ALL 0 AS col0, 49 AS col2
----
0
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3106
SELECT ALL + ( - 79 ) DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL + ( - 79 ) / 92 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3107
SELECT DISTINCT + 87 * + 78, + 8 / + SUM( + 5 ) * NULLIF ( + 32, 72 ) + + 38 + - COUNT( * ) + - + 52 + - - CASE + - COUNT( * ) WHEN COALESCE ( - + 65, + + NULLIF ( 42, - COUNT( * ) ) + - + 91 + + - CASE - 57 WHEN 80 THEN + - 17 ELSE NULL END ) THEN - 13 END * - 88 / - - 73 AS col1
----
6786
NULL

skipif mysql # not compatible
query II rowsort label-3107
SELECT DISTINCT + 87 * + 78, + 8 / + SUM ( + 5 ) * NULLIF ( + 32, 72 ) + + 38 + - COUNT ( * ) + - + 52 + - - CASE + - COUNT ( * ) WHEN COALESCE ( - + 65, + + NULLIF ( 42, - COUNT ( * ) ) + - + 91 + + - CASE - 57 WHEN 80 THEN + - 17 ELSE NULL END ) THEN - 13 END * - 88 / - - 73 AS col1
----
6786
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3108
SELECT 36, CASE + 56 WHEN - - 6 THEN COUNT( * ) ELSE + 33 * - 46 - + 30 + + - 18 END AS col2
----
36
-1566

skipif mysql # not compatible
query II rowsort label-3108
SELECT 36, CASE + 56 WHEN - - 6 THEN COUNT ( * ) ELSE + 33 * - 46 - + 30 + + - 18 END AS col2
----
36
-1566

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ALL COUNT( - 44 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL COUNT ( - 44 ) col2
----
1

query I rowsort
SELECT DISTINCT - 14 * + - 94
----
1316

query I rowsort
SELECT - 66 + + 46 AS col2
----
-20

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

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

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

skipif mysql # not compatible
query I rowsort label-3114
SELECT - COUNT ( * ) + + 46 / - 4 AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3115
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COALESCE ( + + ( COUNT( * ) ), - COUNT( * ) ) * - COALESCE ( - 80, 95, + 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COALESCE ( + + ( COUNT ( * ) ), - COUNT ( * ) ) * - COALESCE ( - 80, 95, + 52 )
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3117
SELECT ALL - NULLIF ( - + 54, - 52 + - 95 ) + - 99 + - 14 + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL - NULLIF ( - + 54, - 52 + - 95 ) + - 99 + - 14 + + CAST ( NULL AS REAL ) AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 93 * + + 13 + + + 80
----
1289

onlyif mysql # aggregate syntax: 
query II rowsort label-3120
SELECT DISTINCT 81 * - COUNT( * ) + - 38 + - 91 * 80 + 13 AS col1, + ( - 87 ) AS col0
----
-7386
-87

skipif mysql # not compatible
query II rowsort label-3120
SELECT DISTINCT 81 * - COUNT ( * ) + - 38 + - 91 * 80 + 13 AS col1, + ( - 87 ) AS col0
----
-7386
-87

query I rowsort
SELECT ALL + + 17 * + + 64 * 9 + 8 + - 5 * - + 4 AS col1
----
9820

query I rowsort
SELECT + 49 + - + ( - - 84 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT - COUNT( * ) * 38 + - 94 * COUNT( * ) + + COUNT( * ) AS col1
----
-131

skipif mysql # not compatible
query I rowsort label-3123
SELECT - COUNT ( * ) * 38 + - 94 * COUNT ( * ) + + COUNT ( * ) AS col1
----
-131

query II rowsort
SELECT + 6, 19 AS col1
----
6
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3125
SELECT + - 36 DIV + 45 + COUNT( * ) + 61 - + 24 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-3125
SELECT + - 36 / + 45 + COUNT ( * ) + 61 - + 24 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT - COALESCE ( - 71, - 43 * - - COUNT( * ) * - 48 + - ( - 85 ) ) * - COUNT( * ) * + - 38 - CASE + + 29 WHEN - 88 THEN - 69 + + 56 END + - 33 * + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT - COALESCE ( - 71, - 43 * - - COUNT ( * ) * - 48 + - ( - 85 ) ) * - COUNT ( * ) * + - 38 - CASE + + 29 WHEN - 88 THEN - 69 + + 56 END + - 33 * + - 6
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3128
SELECT ALL + MIN( DISTINCT + + 43 ) * + COUNT( * ) + - ( CAST( NULL AS SIGNED ) ) + 15 * + + COUNT( * ) * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL + MIN ( DISTINCT + + 43 ) * + COUNT ( * ) + - ( CAST ( NULL AS INTEGER ) ) + 15 * + + COUNT ( * ) * 97
----
NULL

query I rowsort
SELECT - + 94 + + + 61 AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3130
SELECT - + SUM( - CAST( NULL AS DECIMAL ) ) * - 95 + + 10 + + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT - + SUM ( - CAST ( NULL AS REAL ) ) * - 95 + + 10 + + + 17
----
NULL

query II rowsort
SELECT - 23 AS col0, + 61
----
-23
61

query I rowsort
SELECT DISTINCT + + 32 * - 2 + - 13 AS col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3133
SELECT - 74 AS col1, CASE - + 71 WHEN + 63 + + COUNT( * ) * + COALESCE ( 35, + NULLIF ( + 99, - + 80 ), MIN( ALL + 66 ) / 74 / + COALESCE ( - 20, COALESCE ( 31, 36 / + + 29 + 55 ) + - - 32 ) - + + 91 + + 78 - - 0 ) + + CAST( NULL AS SIGNED ) / - + 15 THEN 4 + - 52 * 31 WHEN 22 - - 15 THEN - CAST( - 32 AS SIGNED ) * 84 END * + NULLIF ( COUNT( DISTINCT - 69 ) * + 24, + 59 ) + + MIN( 99 + - 35 ) * 31 AS col0
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-3133
SELECT - 74 AS col1, CASE - + 71 WHEN + 63 + + COUNT ( * ) * + COALESCE ( 35, + NULLIF ( + 99, - + 80 ), MIN ( ALL + 66 ) / 74 / + COALESCE ( - 20, COALESCE ( 31, 36 / + + 29 + 55 ) + - - 32 ) - + + 91 + + 78 - - 0 ) + + CAST ( NULL AS INTEGER ) / - + 15 THEN 4 + - 52 * 31 WHEN 22 - - 15 THEN - CAST ( - 32 AS INTEGER ) * 84 END * + NULLIF ( COUNT ( DISTINCT - 69 ) * + 24, + 59 ) + + MIN ( 99 + - 35 ) * 31 AS col0
----
-74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL - - 26 * - COUNT( ALL + 4 )
----
-26

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL - - 26 * - COUNT ( ALL + 4 )
----
-26

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3136
SELECT DISTINCT 13 * + SUM( DISTINCT 69 ) + NULLIF ( - 84, + 17 * + - ( 39 ) + ( - CAST( NULL AS SIGNED ) ) - + 49 ) - + - COALESCE ( COALESCE ( - 92, 72 - 95 * 63 ), + 26 ) AS col0
----
721

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT 13 * + SUM ( DISTINCT 69 ) + NULLIF ( - 84, + 17 * + - ( 39 ) + ( - CAST ( NULL AS INTEGER ) ) - + 49 ) - + - COALESCE ( COALESCE ( - 92, 72 - 95 * 63 ), + 26 ) AS col0
----
721

query I rowsort
SELECT ALL 51 * - 54 * ( + + ( + 0 ) ) * 55 - + + 46 AS col2
----
-46

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3140
SELECT 82 col1, - CASE + COUNT( * ) WHEN - + 13 + - 69 THEN - 5 WHEN - 41 * 25 THEN NULL ELSE NULL END * - COUNT( * ) AS col1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-3140
SELECT 82 col1, - CASE + COUNT ( * ) WHEN - + 13 + - 69 THEN - 5 WHEN - 41 * 25 THEN NULL ELSE NULL END * - COUNT ( * ) AS col1
----
82
NULL

query I rowsort
SELECT + 39 * + - 2 col2
----
-78

query II rowsort
SELECT + 45 * + - 32 AS col0, + 23
----
-1440
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT - 94 * + 35 + - - COUNT( DISTINCT 15 ) AS col0
----
-3289

skipif mysql # not compatible
query I rowsort label-3143
SELECT - 94 * + 35 + - - COUNT ( DISTINCT 15 ) AS col0
----
-3289

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

skipif mysql # not compatible
query I rowsort label-3144
SELECT COUNT ( - - 27 )
----
1

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

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

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

skipif mysql # not compatible
query II rowsort label-3146
SELECT - ( - 41 ) AS col1, 75 * - COUNT ( * ) col2
----
41
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3147
SELECT - MAX( DISTINCT - 35 ) + - NULLIF ( - 64, - COUNT( * ) * - - ( - + 44 ) ), CASE - - MAX( ALL 58 ) WHEN - NULLIF ( - ( - - CAST( + ( 35 ) AS SIGNED ) ), - 66 ) * + 61 / + 52 THEN - SUM( 86 ) ELSE NULL END - + + 63 * + CASE - 45 WHEN - + 57 + + - ( - CAST( - 10 AS DECIMAL ) ) THEN NULL WHEN 23 / CAST( NULL AS SIGNED ) THEN COUNT( * ) / - 21 ELSE NULL END AS col2
----
99
NULL

skipif mysql # not compatible
query II rowsort label-3147
SELECT - MAX ( DISTINCT - 35 ) + - NULLIF ( - 64, - COUNT ( * ) * - - ( - + 44 ) ), CASE - - MAX ( ALL 58 ) WHEN - NULLIF ( - ( - - CAST ( + ( 35 ) AS INTEGER ) ), - 66 ) * + 61 / + 52 THEN - SUM ( 86 ) ELSE NULL END - + + 63 * + CASE - 45 WHEN - + 57 + + - ( - CAST ( - 10 AS REAL ) ) THEN NULL WHEN 23 / CAST ( NULL AS INTEGER ) THEN COUNT ( * ) / - 21 ELSE NULL END AS col2
----
99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3148
SELECT ALL CASE 19 WHEN 25 * ( - - 90 ) THEN 67 WHEN CASE + 23 WHEN + 26 * - 36 THEN NULL WHEN - 16 * + 28 - - + 79 + COUNT( * ) - - 21 * + 11 + - + 34 THEN 11 * - NULLIF ( - 89, + CAST( - 75 AS DECIMAL ) ) + - - 89 + - 2 * + 34 * + 52 * + 81 + 32 ELSE NULL END / - 72 THEN + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL CASE 19 WHEN 25 * ( - - 90 ) THEN 67 WHEN CASE + 23 WHEN + 26 * - 36 THEN NULL WHEN - 16 * + 28 - - + 79 + COUNT ( * ) - - 21 * + 11 + - + 34 THEN 11 * - NULLIF ( - 89, + CAST ( - 75 AS REAL ) ) + - - 89 + - 2 * + 34 * + 52 * + 81 + 32 ELSE NULL END / - 72 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT - COALESCE ( - + COUNT( * ), + - 51 + - 74 + + + 2 ) + - + ( COUNT( * ) ) + 23 + - + 62 * + NULLIF ( 66, + + MIN( + 97 ) )
----
-4069

skipif mysql # not compatible
query I rowsort label-3149
SELECT - COALESCE ( - + COUNT ( * ), + - 51 + - 74 + + + 2 ) + - + ( COUNT ( * ) ) + 23 + - + 62 * + NULLIF ( 66, + + MIN ( + 97 ) )
----
-4069

onlyif mysql # aggregate syntax: 
query II rowsort label-3150
SELECT ALL + 38 * COUNT( * ) AS col1, 56
----
38
56

skipif mysql # not compatible
query II rowsort label-3150
SELECT ALL + 38 * COUNT ( * ) AS col1, 56
----
38
56

query II rowsort
SELECT DISTINCT + 20 * - 75, 34 AS col2
----
-1500
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3152
SELECT - + 58 * - MIN( ALL - 47 ), 33 - + 17 AS col0
----
-2726
16

skipif mysql # not compatible
query II rowsort label-3152
SELECT - + 58 * - MIN ( ALL - 47 ), 33 - + 17 AS col0
----
-2726
16

query II rowsort
SELECT ALL - + 3 + - - 66 col0, 82
----
63
82

query I rowsort
SELECT - + 86 col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-3155
SELECT ALL - - 89 DIV + ( 78 ) + - COALESCE ( + 76, + 42 * - 69 + - 77, 40 * + 92 ) + + 47 + + - 27 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL - - 89 / + ( 78 ) + - COALESCE ( + 76, + 42 * - 69 + - 77, 40 * + 92 ) + + 47 + + - 27 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT - - 31 * + - 99 + - COUNT( * )
----
-3070

skipif mysql # not compatible
query I rowsort label-3156
SELECT - - 31 * + - 99 + - COUNT ( * )
----
-3070

query II rowsort
SELECT - - 96 + + 96 AS col2, + 70 - + + 97
----
192
-27

query I rowsort
SELECT + + 35 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3159
SELECT ALL + NULLIF ( - - ( + 5 ), + COALESCE ( - - 52, - 3 + + 30 ) / + 50 / - CAST( NULL AS SIGNED ) * + - 45 ) * 49 + - - 20 + + MAX( DISTINCT + + 65 )
----
330

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL + NULLIF ( - - ( + 5 ), + COALESCE ( - - 52, - 3 + + 30 ) / + 50 / - CAST ( NULL AS INTEGER ) * + - 45 ) * 49 + - - 20 + + MAX ( DISTINCT + + 65 )
----
330

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3160
SELECT - 16 + + 6, - CAST( NULL AS DECIMAL ) AS col0
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-3160
SELECT - 16 + + 6, - CAST ( NULL AS REAL ) AS col0
----
-10
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3161
SELECT + CASE + 37 WHEN - 29 - + 32 THEN + + CAST( 12 AS SIGNED ) + - ( MIN( + 33 ) ) WHEN - 37 THEN NULL END / - COUNT( ALL 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT + CASE + 37 WHEN - 29 - + 32 THEN + + CAST ( 12 AS INTEGER ) + - ( MIN ( + 33 ) ) WHEN - 37 THEN NULL END / - COUNT ( ALL 1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3162
SELECT + 9 DIV - 12 col1
----
0

skipif mysql # not compatible
query I rowsort label-3162
SELECT + 9 / - 12 col1
----
0

query I rowsort
SELECT ALL + 95 * + 83 AS col1
----
7885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3164
SELECT ALL - NULLIF ( + + MAX( DISTINCT - + 33 ), + 98 ) * - CAST( 81 AS SIGNED ) * + 8
----
-21384

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL - NULLIF ( + + MAX ( DISTINCT - + 33 ), + 98 ) * - CAST ( 81 AS INTEGER ) * + 8
----
-21384

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3165
SELECT DISTINCT + 86 * - CAST( - 32 AS SIGNED ), ( - + 73 ) + 57 AS col0
----
2752
-16

skipif mysql # not compatible
query II rowsort label-3165
SELECT DISTINCT + 86 * - CAST ( - 32 AS INTEGER ), ( - + 73 ) + 57 AS col0
----
2752
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3166
SELECT ALL - 81 col2, - CASE + 23 WHEN 83 - + 1 THEN 25 * CASE - COALESCE ( - SUM( - + 98 ), - 39 ) WHEN - 29 * + 35 * + CASE + - COUNT( * ) WHEN 99 + 13 - + - 40 THEN - - AVG ( - 38 ) WHEN - 18 * - + 68 THEN NULL ELSE NULL END * + - 62 + + 80 + - 79 THEN - 59 + + - 16 END * 93 + + 4 WHEN + 39 * - 87 THEN - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * COUNT( * ) END * - 65
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-3166
SELECT ALL - 81 col2, - CASE + 23 WHEN 83 - + 1 THEN 25 * CASE - COALESCE ( - SUM ( - + 98 ), - 39 ) WHEN - 29 * + 35 * + CASE + - COUNT ( * ) WHEN 99 + 13 - + - 40 THEN - - AVG ( - 38 ) WHEN - 18 * - + 68 THEN NULL ELSE NULL END * + - 62 + + 80 + - 79 THEN - 59 + + - 16 END * 93 + + 4 WHEN + 39 * - 87 THEN - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) END * - 65
----
-81
NULL

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

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

query II rowsort
SELECT 48 AS col2, + 68
----
48
68

onlyif mysql # DIV for integer division: 
query II rowsort label-3169
SELECT ALL 53 col0, 31 DIV + 67 * - 91 AS col2
----
53
0

skipif mysql # not compatible
query II rowsort label-3169
SELECT ALL 53 col0, 31 / + 67 * - 91 AS col2
----
53
0

query I rowsort
SELECT 36 + - 54
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3171
SELECT DISTINCT 96 + + NULLIF ( + - 47, + ( + + 44 ) + COUNT( * ) ) + + CAST( - 29 AS SIGNED ) DIV 10 * - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT 96 + + NULLIF ( + - 47, + ( + + 44 ) + COUNT ( * ) ) + + CAST ( - 29 AS INTEGER ) / 10 * - COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT COUNT( * ) + 55 + COALESCE ( + 48, - 25 ) * + - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-3172
SELECT COUNT ( * ) + 55 + COALESCE ( + 48, - 25 ) * + - COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT CASE + 22 WHEN - 37 - - 16 THEN + COALESCE ( + - 0, - - 29 + + ( 22 ) ) ELSE - + COUNT( * ) * + 76 - - 60 END * 3 * + 34
----
-1632

skipif mysql # not compatible
query I rowsort label-3173
SELECT CASE + 22 WHEN - 37 - - 16 THEN + COALESCE ( + - 0, - - 29 + + ( 22 ) ) ELSE - + COUNT ( * ) * + 76 - - 60 END * 3 * + 34
----
-1632

query I rowsort
SELECT ALL 89 + + 9 AS col2
----
98

query I rowsort
SELECT DISTINCT 48 * - 6 AS col2
----
-288

query I rowsort
SELECT DISTINCT 60 + - 60 AS col0
----
0

query I rowsort
SELECT DISTINCT 19 + - 19 + - ( - 70 ) AS col2
----
70

query I rowsort
SELECT ( + ( - + 38 ) ) * - 76
----
2888

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT DISTINCT 12 * - 66 * COUNT( - - 7 )
----
-792

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT 12 * - 66 * COUNT ( - - 7 )
----
-792

query I rowsort
SELECT - 57 + + 38
----
-19

query II rowsort
SELECT ALL 40 AS col1, - 89 + 27
----
40
-62

query I rowsort
SELECT - 70 + - ( - + 58 ) AS col1
----
-12

query II rowsort
SELECT 57 + - 20 * 46, + 77 AS col0
----
-863
77

query I rowsort
SELECT - 97 + - 94 - + ( - 91 ) * ( + - 9 )
----
-1010

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT + COUNT( * ) + 97 + - COUNT( * ) + + ( + 80 ) * 68
----
5537

skipif mysql # not compatible
query I rowsort label-3185
SELECT + COUNT ( * ) + 97 + - COUNT ( * ) + + ( + 80 ) * 68
----
5537

query I rowsort
SELECT DISTINCT - 50 * - 95
----
4750

onlyif mysql # DIV for integer division: 
query I rowsort label-3187
SELECT DISTINCT 85 DIV 14 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT 85 / 14 AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3188
SELECT CAST( NULL AS SIGNED ) + NULLIF ( + ( + 44 ), + AVG ( ALL - + 25 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT CAST ( NULL AS INTEGER ) + NULLIF ( + ( + 44 ), + AVG ( ALL - + 25 ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3189
SELECT ALL - + 71 - + 40 + 20 DIV + 82 * 86 * 60 * + 74
----
-111

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL - + 71 - + 40 + 20 / + 82 * 86 * 60 * + 74
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT - MAX( ALL 68 ) * - 69 + + + 90 * - NULLIF ( + 88, + 98 + AVG ( ALL - 22 ) )
----
-3228

skipif mysql # not compatible
query I rowsort label-3190
SELECT - MAX ( ALL 68 ) * - 69 + + + 90 * - NULLIF ( + 88, + 98 + AVG ( ALL - 22 ) )
----
-3228

query I rowsort
SELECT DISTINCT + - 59 * + - 44
----
2596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3192
SELECT ALL - - ( CASE - COUNT( * ) WHEN + SUM( - - 10 ) / + + 12 * + 77 THEN MAX( + 37 ) * 21 * + CASE + + MAX( 17 ) WHEN 2 - + 20 THEN NULL WHEN + + 40 - 9 * + 62 THEN MIN( ALL - 40 ) + 38 * - + COUNT( * ) / + - 35 * CAST( - 51 AS SIGNED ) END END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - - ( CASE - COUNT ( * ) WHEN + SUM ( - - 10 ) / + + 12 * + 77 THEN MAX ( + 37 ) * 21 * + CASE + + MAX ( 17 ) WHEN 2 - + 20 THEN NULL WHEN + + 40 - 9 * + 62 THEN MIN ( ALL - 40 ) + 38 * - + COUNT ( * ) / + - 35 * CAST ( - 51 AS INTEGER ) END END )
----
NULL

query I rowsort
SELECT DISTINCT + 98 * 60 AS col1
----
5880

query II rowsort
SELECT DISTINCT - 54 * + 71 * 27 AS col1, + 67 AS col1
----
-103518
67

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT - COUNT( DISTINCT 75 ) * + 90 * 36 + - 56 + + 85 + + 7
----
-3204

skipif mysql # not compatible
query I rowsort label-3198
SELECT - COUNT ( DISTINCT 75 ) * + 90 * 36 + - 56 + + 85 + + 7
----
-3204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3199
SELECT 46 + + 86 * + NULLIF ( + + 69, - CAST( + + 90 AS SIGNED ) )
----
5980

skipif mysql # not compatible
query I rowsort label-3199
SELECT 46 + + 86 * + NULLIF ( + + 69, - CAST ( + + 90 AS INTEGER ) )
----
5980

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3202
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 67 * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 67 * + 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3203
SELECT ALL + ( 75 ) * - ( + CAST( NULL AS SIGNED ) ) + + COALESCE ( - - 20, - 51 ) + - + COUNT( * ) + 94 * + 2 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL + ( 75 ) * - ( + CAST ( NULL AS INTEGER ) ) + + COALESCE ( - - 20, - 51 ) + - + COUNT ( * ) + 94 * + 2 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL - 10 + + - 62
----
-72

query I rowsort
SELECT DISTINCT - 55 * + + 56 AS col0
----
-3080

onlyif mysql # aggregate syntax: 
query II rowsort label-3206
SELECT ALL 14 * - 79 AS col2, 30 * + + COALESCE ( ( + 61 ), - COUNT( * ) * - COUNT( * ) ) * - 56 + + 54 col2
----
-1106
-102426

skipif mysql # not compatible
query II rowsort label-3206
SELECT ALL 14 * - 79 AS col2, 30 * + + COALESCE ( ( + 61 ), - COUNT ( * ) * - COUNT ( * ) ) * - 56 + + 54 col2
----
-1106
-102426

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT ALL - 65 + + + COUNT( * ) * + + 32 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL - 65 + + + COUNT ( * ) * + + 32 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL 7 + + NULLIF ( + COUNT( * ), + 63 )
----
8

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL 7 + + NULLIF ( + COUNT ( * ), + 63 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3209
SELECT + 28 * + COUNT( * ) + - - MAX( - - 1 ), 85 * - 79 * - - 97 * + + 81 AS col0
----
29
-52759755

skipif mysql # not compatible
query II rowsort label-3209
SELECT + 28 * + COUNT ( * ) + - - MAX ( - - 1 ), 85 * - 79 * - - 97 * + + 81 AS col0
----
29
-52759755

query I rowsort
SELECT DISTINCT 89 + + 98
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT 95 - - ( - COUNT( * ) ) * - + ( - COUNT( * ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3211
SELECT 95 - - ( - COUNT ( * ) ) * - + ( - COUNT ( * ) ) AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3212
SELECT + COALESCE ( 86, + 75 * - 3 * + + 3 - 99 ) + + COUNT( * ) + 42 + + + CAST( - COUNT( * ) AS SIGNED ) * 16 + - 83
----
30

skipif mysql # not compatible
query I rowsort label-3212
SELECT + COALESCE ( 86, + 75 * - 3 * + + 3 - 99 ) + + COUNT ( * ) + 42 + + + CAST ( - COUNT ( * ) AS INTEGER ) * 16 + - 83
----
30

query I rowsort
SELECT DISTINCT + 70 - - 68 AS col0
----
138

query I rowsort
SELECT + 95 * - 43
----
-4085

query I rowsort
SELECT ALL 35 * 9 col2
----
315

query I rowsort
SELECT ( 98 )
----
98

query I rowsort
SELECT ALL 74 - + 44 AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT DISTINCT ( + + COALESCE ( + CAST( + 50 AS SIGNED ), - 23 ) )
----
50

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT ( + + COALESCE ( + CAST ( + 50 AS INTEGER ), - 23 ) )
----
50

query II rowsort
SELECT ALL + + 23 - - 42, - 80 AS col0
----
65
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3220
SELECT - CAST( - 32 AS SIGNED ) * - + SUM( DISTINCT + 67 ), 27 AS col1
----
-2144
27

skipif mysql # not compatible
query II rowsort label-3220
SELECT - CAST ( - 32 AS INTEGER ) * - + SUM ( DISTINCT + 67 ), 27 AS col1
----
-2144
27

query I rowsort
SELECT ALL 1 * - + 8 * + 66 col2
----
-528

query I rowsort
SELECT + 71 - - ( 34 ) + - 33 + + 83 * + 67
----
5633

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3223
SELECT 72 DIV 18 DIV + MIN( ALL + 84 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3223
SELECT 72 / 18 / + MIN ( ALL + 84 ) AS col2
----
0

query I rowsort
SELECT 21 * - - 64 AS col0
----
1344

onlyif mysql # DIV for integer division: 
query I rowsort label-3225
SELECT 51 DIV 19 * - + 86 AS col0
----
-172

skipif mysql # not compatible
query I rowsort label-3225
SELECT 51 / 19 * - + 86 AS col0
----
-172

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

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

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT - - COUNT ( * ) / + 84 AS col2
----
0

query I rowsort
SELECT DISTINCT - + 85 AS col0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3229
SELECT 13 DIV COUNT( * ) + + + 10 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3229
SELECT 13 / COUNT ( * ) + + + 10 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL - 44 * - - 93 * - COUNT( * )
----
4092

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL - 44 * - - 93 * - COUNT ( * )
----
4092

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT ALL 92 DIV - + 49 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL 92 / - + 49 AS col0
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3233
SELECT DISTINCT 75 * - 52 + + 39 AS col0, CASE + - 32 WHEN - CAST( NULL AS SIGNED ) THEN + 99 / - 8 WHEN + 53 * - NULLIF ( + SUM( ALL + 47 ), + 26 ) + - 21 THEN - - 76 ELSE NULL END
----
-3861
NULL

skipif mysql # not compatible
query II rowsort label-3233
SELECT DISTINCT 75 * - 52 + + 39 AS col0, CASE + - 32 WHEN - CAST ( NULL AS INTEGER ) THEN + 99 / - 8 WHEN + 53 * - NULLIF ( + SUM ( ALL + 47 ), + 26 ) + - 21 THEN - - 76 ELSE NULL END
----
-3861
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT ALL + 68 * - 72 * CASE + - 82 WHEN - 97 * + - COUNT( * ) + COUNT( * ) * - NULLIF ( + 89, 17 ) * - AVG ( DISTINCT + 90 ) * - - COUNT( * ) * COALESCE ( 10, + 39 / ( 96 ) + NULLIF ( - 18, - COUNT( - 82 ) + 57 ), + - 98 + - 26 + - 76 ) THEN NULL ELSE + 1 * - ( - ( + 5 ) ) END AS col0
----
-24480

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL + 68 * - 72 * CASE + - 82 WHEN - 97 * + - COUNT ( * ) + COUNT ( * ) * - NULLIF ( + 89, 17 ) * - AVG ( DISTINCT + 90 ) * - - COUNT ( * ) * COALESCE ( 10, + 39 / ( 96 ) + NULLIF ( - 18, - COUNT ( - 82 ) + 57 ), + - 98 + - 26 + - 76 ) THEN NULL ELSE + 1 * - ( - ( + 5 ) ) END AS col0
----
-24480

query I rowsort
SELECT DISTINCT + ( + 2 ) * - - 1 + + + 67 + + + 36
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT ALL - 61 * - + COUNT( * ) * 30 + + + 46 AS col2
----
1876

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL - 61 * - + COUNT ( * ) * 30 + + + 46 AS col2
----
1876

query I rowsort
SELECT + 50 + - - 46 AS col0
----
96

query II rowsort
SELECT + 39 AS col1, 45 * 93 + + + 22 AS col1
----
39
4207

query I rowsort
SELECT ALL 43 * + 8 + - - 7
----
351

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

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

query I rowsort
SELECT ALL + 69 * - + 93 * + 28 AS col2
----
-179676

onlyif mysql # aggregate syntax: 
query II rowsort label-3242
SELECT COUNT( * ) AS col0, 23 + - + 43 AS col2
----
1
-20

skipif mysql # not compatible
query II rowsort label-3242
SELECT COUNT ( * ) AS col0, 23 + - + 43 AS col2
----
1
-20

query I rowsort
SELECT - 78 + + 13 AS col2
----
-65

query I rowsort
SELECT DISTINCT - 51 * + 22 + - - 89 * - 44
----
-5038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3245
SELECT - MIN( ( + + 52 ) ) + + CAST( NULL AS DECIMAL ) + + - 54 * + - 40 * COALESCE ( AVG ( DISTINCT - 84 ), CAST( NULL AS SIGNED ) + + 45 ) * + 19 + + CAST( NULL AS DECIMAL ) + - + COUNT( * ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT - MIN ( ( + + 52 ) ) + + CAST ( NULL AS REAL ) + + - 54 * + - 40 * COALESCE ( AVG ( DISTINCT - 84 ), CAST ( NULL AS INTEGER ) + + 45 ) * + 19 + + CAST ( NULL AS REAL ) + - + COUNT ( * ) + COUNT ( * )
----
NULL

query I rowsort
SELECT - 48 + + - 53 - + 22 * - 55
----
1109

query II rowsort
SELECT + 16 AS col1, 4 - - + ( - 81 ) AS col0
----
16
-77

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

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

query I rowsort
SELECT DISTINCT - 16 * 11 AS col0
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT - 12 + + 25 * + + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-3250
SELECT - 12 + + 25 * + + COUNT ( * )
----
13

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

query I rowsort
SELECT ALL - 7 * - + 27 col0
----
189

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

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

query I rowsort
SELECT DISTINCT - - 46 * - 99 AS col2
----
-4554

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3256
SELECT - 80 * - 39 - - + 37 - + CAST( NULL AS DECIMAL ) + + ( - 74 ) / + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3256
SELECT - 80 * - 39 - - + 37 - + CAST ( NULL AS REAL ) + + ( - 74 ) / + + 22
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 58 - 47 col1
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-3259
SELECT - 46 DIV - ( + 33 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3259
SELECT - 46 / - ( + 33 ) AS col2
----
1

query I rowsort
SELECT + - 94 * 94 col1
----
-8836

query I rowsort
SELECT - 59 * + 58
----
-3422

onlyif mysql # aggregate syntax: 
query II rowsort label-3262
SELECT + + 20 * - NULLIF ( 38, 18 + - + 32 ) col0, + COUNT( * ) + + ( - 90 ) * + 33 * 31
----
-760
-92069

skipif mysql # not compatible
query II rowsort label-3262
SELECT + + 20 * - NULLIF ( 38, 18 + - + 32 ) col0, + COUNT ( * ) + + ( - 90 ) * + 33 * 31
----
-760
-92069

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

skipif mysql # not compatible
query I rowsort label-3263
SELECT - - COUNT ( * ) + 12
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT + - COUNT( * ) - 97 col2
----
-98

skipif mysql # not compatible
query I rowsort label-3264
SELECT + - COUNT ( * ) - 97 col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT ALL MIN( - 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL MIN ( - 79 ) AS col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3266
SELECT - + CAST( NULL AS SIGNED ) + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-3266
SELECT - + CAST ( NULL AS INTEGER ) + + 71
----
NULL

query I rowsort
SELECT ALL - 65 * - 32 AS col1
----
2080

query I rowsort
SELECT ALL 35 * + 14
----
490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3269
SELECT + COUNT( * ) + 89 + CASE WHEN NOT ( - 87 ) IN ( + + COUNT( * ) / - + 28, + 8 * + 73 + COUNT( * ), 80, + 93 ) THEN + - CAST( NULL AS SIGNED ) * + CAST( - 54 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT + COUNT ( * ) + 89 + CASE WHEN NOT ( - 87 ) IN ( + + COUNT ( * ) / - + 28, + 8 * + 73 + COUNT ( * ), 80, + 93 ) THEN + - CAST ( NULL AS INTEGER ) * + CAST ( - 54 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL ( + - 82 ) + COUNT( DISTINCT - 38 ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL ( + - 82 ) + COUNT ( DISTINCT - 38 ) col2
----
-81

query I rowsort
SELECT + 18 + + - 95
----
-77

query I rowsort
SELECT ALL 92 * 84 AS col2
----
7728

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3273
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 11 + + - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT + CAST ( NULL AS REAL ) + 11 + + - 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT + MAX( + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3274
SELECT + MAX ( + 62 ) AS col2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3275
SELECT ALL - 17 DIV - 49 + 17 + + 5 * + 55 AS col2
----
292

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL - 17 / - 49 + 17 + + 5 * + 55 AS col2
----
292

query I rowsort
SELECT + CASE 42 WHEN - + 13 / 86 THEN + 5 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3277
SELECT + CAST( NULL AS SIGNED ) AS col1, + CASE 26 WHEN - - 43 THEN - 78 * - MIN( DISTINCT - + 25 ) * NULLIF ( + 18, + 38 * + ( + 19 ) * + + 75 ) * 34 * 11 + SUM( - 49 ) * - + 3 * + NULLIF ( + AVG ( ALL 80 ), - 71 ) END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3277
SELECT + CAST ( NULL AS INTEGER ) AS col1, + CASE 26 WHEN - - 43 THEN - 78 * - MIN ( DISTINCT - + 25 ) * NULLIF ( + 18, + 38 * + ( + 19 ) * + + 75 ) * 34 * 11 + SUM ( - 49 ) * - + 3 * + NULLIF ( + AVG ( ALL 80 ), - 71 ) END
----
NULL
NULL

query I rowsort
SELECT + 26 * + 11 * - 98 AS col2
----
-28028

query I rowsort
SELECT ( - + 64 ) col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3280
SELECT + 2 DIV + 64 + 50
----
50

skipif mysql # not compatible
query I rowsort label-3280
SELECT + 2 / + 64 + 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL 20 * 56 * - 68 * COUNT( * ) + COUNT( * ) AS col1
----
-76159

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL 20 * 56 * - 68 * COUNT ( * ) + COUNT ( * ) AS col1
----
-76159

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT ALL COUNT( * ) * + - COUNT( * ) + + 45 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL COUNT ( * ) * + - COUNT ( * ) + + 45 AS col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT DISTINCT 37 DIV ( - + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT 37 / ( - + 71 )
----
0

query I rowsort
SELECT DISTINCT + 13 col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3285
SELECT + SUM( ALL - CAST( NULL AS DECIMAL ) ) * + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT + SUM ( ALL - CAST ( NULL AS REAL ) ) * + 4 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3286
SELECT - CASE - - 96 WHEN - - 81 THEN + + 67 END * - COUNT( * ) - + CAST( + 89 AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3286
SELECT - CASE - - 96 WHEN - - 81 THEN + + 67 END * - COUNT ( * ) - + CAST ( + 89 AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 72 * - 85 AS col0
----
-6120

onlyif mysql # aggregate syntax: 
query II rowsort label-3288
SELECT 11 * + 2 - + 68 + - COUNT( * ) + - ( + + 58 ) * ( 0 ) - - - COUNT( * ), 1 + + 97 + - + 23 AS col0
----
-48
75

skipif mysql # not compatible
query II rowsort label-3288
SELECT 11 * + 2 - + 68 + - COUNT ( * ) + - ( + + 58 ) * ( 0 ) - - - COUNT ( * ), 1 + + 97 + - + 23 AS col0
----
-48
75

query I rowsort
SELECT NULLIF ( 77, + 87 ) AS col1
----
77

query I rowsort
SELECT + 54 + + CASE - 84 WHEN + - 52 THEN + 30 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3291
SELECT + CAST( NULLIF ( + + 57, - CASE - - COUNT( DISTINCT + 44 ) WHEN 59 THEN NULL WHEN 78 THEN NULL WHEN - 94 THEN - 21 + + 79 WHEN - 27 + + + 0 THEN NULL END ) AS SIGNED ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3291
SELECT + CAST ( NULLIF ( + + 57, - CASE - - COUNT ( DISTINCT + 44 ) WHEN 59 THEN NULL WHEN 78 THEN NULL WHEN - 94 THEN - 21 + + 79 WHEN - 27 + + + 0 THEN NULL END ) AS INTEGER ) AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3292
SELECT + CAST( - + 56 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-3292
SELECT + CAST ( - + 56 AS INTEGER )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-3293
SELECT COALESCE ( - 80, 90 - + 14 ) col2, - COUNT( * ) + + - 1 + + 45 AS col1
----
-80
43

skipif mysql # not compatible
query II rowsort label-3293
SELECT COALESCE ( - 80, 90 - + 14 ) col2, - COUNT ( * ) + + - 1 + + 45 AS col1
----
-80
43

query II rowsort
SELECT - 95 * + 28, 44 AS col1
----
-2660
44

query I rowsort
SELECT - 6 * - + 63 AS col0
----
378

onlyif mysql # aggregate syntax: 
query II rowsort label-3296
SELECT ALL + 96 AS col1, - CASE + 53 WHEN + - 60 * + COALESCE ( COUNT( * ), - 88, - 84 + + + 97 ) THEN - - 79 END * - + 74 + + 62
----
96
NULL

skipif mysql # not compatible
query II rowsort label-3296
SELECT ALL + 96 AS col1, - CASE + 53 WHEN + - 60 * + COALESCE ( COUNT ( * ), - 88, - 84 + + + 97 ) THEN - - 79 END * - + 74 + + 62
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ALL + MAX( DISTINCT + 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL + MAX ( DISTINCT + 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT - - ( - 69 ) + + ( - COALESCE ( + - CASE - 38 WHEN + - AVG ( - 55 ) / 81 + + - MAX( DISTINCT + - 48 ) THEN 1 WHEN 6 * - 44 * 88 + COUNT( * ) + - 14 THEN NULL WHEN + + 95 THEN + + ( 53 ) * 87 + - 73 + - 86 END, - 43 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-3298
SELECT - - ( - 69 ) + + ( - COALESCE ( + - CASE - 38 WHEN + - AVG ( - 55 ) / 81 + + - MAX ( DISTINCT + - 48 ) THEN 1 WHEN 6 * - 44 * 88 + COUNT ( * ) + - 14 THEN NULL WHEN + + 95 THEN + + ( 53 ) * 87 + - 73 + - 86 END, - 43 ) )
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3299
SELECT DISTINCT COUNT( * ) AS col0, 70 DIV + - 83 * - 61
----
1
0

skipif mysql # not compatible
query II rowsort label-3299
SELECT DISTINCT COUNT ( * ) AS col0, 70 / + - 83 * - 61
----
1
0

query I rowsort
SELECT - + 98 + - 32 * 67 + + + ( 19 ) * 94 - + - 66 AS col1
----
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL - ( - - ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL - ( - - ( COUNT ( * ) ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3302
SELECT - 53 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3302
SELECT - 53 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT - NULLIF ( + + 1, + MIN( - 82 ) ) + 15 + - 70 * - CASE + + 10 WHEN - 76 + 7 THEN NULL WHEN MIN( DISTINCT + - 34 ) THEN - NULLIF ( 0, + 46 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3303
SELECT - NULLIF ( + + 1, + MIN ( - 82 ) ) + 15 + - 70 * - CASE + + 10 WHEN - 76 + 7 THEN NULL WHEN MIN ( DISTINCT + - 34 ) THEN - NULLIF ( 0, + 46 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 52 * 49
----
2548

query II rowsort
SELECT ALL 16, 89 + - - 26 AS col1
----
16
115

query I rowsort
SELECT DISTINCT + 10 + + 24
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3307
SELECT ALL + - COUNT( * ) DIV + 26 - + ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL + - COUNT ( * ) / + 26 - + ( - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3308
SELECT - 80 DIV + COALESCE ( + 25, + COUNT( ALL + 5 ) DIV - + 99 DIV 87 + + 50 + - - 98, 67 DIV + 88 + - 76 + 30 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3308
SELECT - 80 / + COALESCE ( + 25, + COUNT ( ALL + 5 ) / - + 99 / 87 + + 50 + - - 98, 67 / + 88 + - 76 + 30 ) AS col0
----
-3

query II rowsort
SELECT ALL - 94 AS col1, 28 - - 40
----
-94
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT SUM( ALL 54 )
----
54

skipif mysql # not compatible
query I rowsort label-3310
SELECT SUM ( ALL 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT - COUNT( - + 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-3311
SELECT - COUNT ( - + 66 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3312
SELECT ALL + - 10 * - 25 + - 63 DIV - 12 col2, + ( + ( + MIN( + 63 ) ) )
----
255
63

skipif mysql # not compatible
query II rowsort label-3312
SELECT ALL + - 10 * - 25 + - 63 / - 12 col2, + ( + ( + MIN ( + 63 ) ) )
----
255
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3313
SELECT DISTINCT - CASE + COUNT( * ) WHEN 99 THEN - + 63 WHEN + - ( - 22 ) THEN NULL END + - 6 + + + 95 * 71 * + MIN( ALL - 4 ) * 59 * - 7 / - - 85, + 43 - + 73 AS col2
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-3313
SELECT DISTINCT - CASE + COUNT ( * ) WHEN 99 THEN - + 63 WHEN + - ( - 22 ) THEN NULL END + - 6 + + + 95 * 71 * + MIN ( ALL - 4 ) * 59 * - 7 / - - 85, + 43 - + 73 AS col2
----
NULL
-30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3314
SELECT ALL + ( 49 ) + + COUNT( * ) - CAST( NULL AS DECIMAL ) + 21 + + MAX( - 92 ) + 23 * + + 78 * 98 * - COUNT( * ) + - - 97 * + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL + ( 49 ) + + COUNT ( * ) - CAST ( NULL AS REAL ) + 21 + + MAX ( - 92 ) + 23 * + + 78 * 98 * - COUNT ( * ) + - - 97 * + + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT COUNT( * ) - - 58
----
59

skipif mysql # not compatible
query I rowsort label-3315
SELECT COUNT ( * ) - - 58
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT ALL - - SUM( 84 ) + - 55 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL - - SUM ( 84 ) + - 55 AS col1
----
29

query I rowsort
SELECT 60 - - + 85 AS col2
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-3318
SELECT 45 * 80 * COUNT( * ), - 71 AS col2
----
3600
-71

skipif mysql # not compatible
query II rowsort label-3318
SELECT 45 * 80 * COUNT ( * ), - 71 AS col2
----
3600
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3319
SELECT 81 * COUNT( * ) DIV 27
----
3

skipif mysql # not compatible
query I rowsort label-3319
SELECT 81 * COUNT ( * ) / 27
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3320
SELECT DISTINCT - ( 18 ) AS col0, COALESCE ( + COUNT( * ), - 90 + - 24 ) AS col1
----
-18
1

skipif mysql # not compatible
query II rowsort label-3320
SELECT DISTINCT - ( 18 ) AS col0, COALESCE ( + COUNT ( * ), - 90 + - 24 ) AS col1
----
-18
1

query I rowsort
SELECT DISTINCT 32 * + 17 AS col1
----
544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3322
SELECT ALL 91 + 19 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL 91 + 19 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 84 * + 74 * + 34 AS col1, 81 + - + 90
----
211344
-9

query I rowsort
SELECT DISTINCT 96 * + 60 col0
----
5760

onlyif mysql # DIV for integer division: 
query I rowsort label-3325
SELECT ALL 55 - + 97 DIV 52
----
54

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL 55 - + 97 / 52
----
54

query I rowsort
SELECT ALL 31 * - 65 col1
----
-2015

query I rowsort
SELECT 61 + COALESCE ( - 94, - 41 )
----
-33

query I rowsort
SELECT 6 - 3
----
3

query I rowsort
SELECT + NULLIF ( - - ( 14 ), 16 + - 36 ) * 9 + + 54
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3330
SELECT ALL 95 * 93 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL 95 * 93 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3331
SELECT CASE + COUNT( * ) WHEN CAST( - 13 AS SIGNED ) * - COALESCE ( 14, + + ( + 97 ) ) + + NULLIF ( - 10, 91 ) THEN ( 21 ) WHEN + COUNT( * ) - + - 34 * + 95 * + COUNT( * ) THEN NULL END * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT CASE + COUNT ( * ) WHEN CAST ( - 13 AS INTEGER ) * - COALESCE ( 14, + + ( + 97 ) ) + + NULLIF ( - 10, 91 ) THEN ( 21 ) WHEN + COUNT ( * ) - + - 34 * + 95 * + COUNT ( * ) THEN NULL END * - 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3332
SELECT 1 * - + NULLIF ( + + 46, 84 ) * COUNT( ALL - - 95 ) * - 76 * + 18 * 98 * + - ( - 77 ) * + NULLIF ( + 1, - - 39 * + ( - 19 ) ) + + 54 + CAST( NULL AS SIGNED ), - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3332
SELECT 1 * - + NULLIF ( + + 46, 84 ) * COUNT ( ALL - - 95 ) * - 76 * + 18 * 98 * + - ( - 77 ) * + NULLIF ( + 1, - - 39 * + ( - 19 ) ) + + 54 + CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col1
----
NULL
-1

query I rowsort
SELECT 47 * + - 30 * + 95
----
-133950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3334
SELECT ALL + 89 * - 66, + ( 10 ) * COALESCE ( - COUNT( * ), + 56 ) * 68 + + 13 + + + 27 / + 28 + CAST( NULL AS SIGNED ) + - - 0 AS col1
----
-5874
NULL

skipif mysql # not compatible
query II rowsort label-3334
SELECT ALL + 89 * - 66, + ( 10 ) * COALESCE ( - COUNT ( * ), + 56 ) * 68 + + 13 + + + 27 / + 28 + CAST ( NULL AS INTEGER ) + - - 0 AS col1
----
-5874
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT DISTINCT - 31 * 70 + COUNT( * )
----
-2169

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT - 31 * 70 + COUNT ( * )
----
-2169

query I rowsort
SELECT 80 * + 82 * + + 18
----
118080

query I rowsort
SELECT NULLIF ( 10, ( - ( + + 32 ) ) + - 85 ) AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT ALL - + CAST( + + 82 AS SIGNED ) * + 74
----
-6068

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL - + CAST ( + + 82 AS INTEGER ) * + 74
----
-6068

query II rowsort
SELECT ALL - + 37 + - 85 AS col2, + 37 + + 56 * - - 72 AS col1
----
-122
4069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3340
SELECT ALL + + 75 + 79 + - + 68 + + MAX( - 59 ) * + 59 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL + + 75 + 79 + - + 68 + + MAX ( - 59 ) * + 59 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3341
SELECT - - COALESCE ( SUM( ALL - 93 ), + ( + 59 ), + CAST( + + 98 AS SIGNED ), 65 * + 37 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-3341
SELECT - - COALESCE ( SUM ( ALL - 93 ), + ( + 59 ), + CAST ( + + 98 AS INTEGER ), 65 * + 37 ) AS col2
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3342
SELECT DISTINCT 52 + - COUNT( * ) DIV - - 29
----
52

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT 52 + - COUNT ( * ) / - - 29
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL - - COUNT( * ) + - 76
----
-75

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL - - COUNT ( * ) + - 76
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3344
SELECT - CAST( NULL AS SIGNED ) + - COUNT( + - 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( + - 74 )
----
NULL

query I rowsort
SELECT 29 + + 91 * + 11 * - 38 * + 13 * - 25
----
12362379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3346
SELECT - COUNT( * ) - + ( + - 31 ) AS col1, - CASE - - COUNT( * ) WHEN 92 / + - 20 - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) THEN + + ( - COUNT( * ) ) ELSE NULL END AS col2
----
30
NULL

skipif mysql # not compatible
query II rowsort label-3346
SELECT - COUNT ( * ) - + ( + - 31 ) AS col1, - CASE - - COUNT ( * ) WHEN 92 / + - 20 - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + + ( - COUNT ( * ) ) ELSE NULL END AS col2
----
30
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3347
SELECT DISTINCT + - NULLIF ( - ( - 83 ), - + 21 ) DIV + ( - COUNT( * ) )
----
83

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT + - NULLIF ( - ( - 83 ), - + 21 ) / + ( - COUNT ( * ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT SUM( DISTINCT + 81 ) + - 69 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3348
SELECT SUM ( DISTINCT + 81 ) + - 69 AS col0
----
12

query I rowsort
SELECT - 41 * - 16 + - 71 + - 15 + + + 18 * + - 57 AS col1
----
-456

query I rowsort
SELECT 45 + - 91 col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL + 10 + + 80 * + COUNT( * ) * 39
----
3130

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL + 10 + + 80 * + COUNT ( * ) * 39
----
3130

query I rowsort
SELECT ALL - 46 - - - 86 AS col0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT 61 + - + NULLIF ( - COUNT( + + 91 ), 83 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-3353
SELECT 61 + - + NULLIF ( - COUNT ( + + 91 ), 83 ) col2
----
62

query I rowsort
SELECT 64 * + + 66 AS col2
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT SUM( + NULLIF ( 21, + 86 ) ) + - 67 * 29 AS col1
----
-1922

skipif mysql # not compatible
query I rowsort label-3355
SELECT SUM ( + NULLIF ( 21, + 86 ) ) + - 67 * 29 AS col1
----
-1922

query II rowsort
SELECT ALL 92, 12 AS col0
----
92
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3357
SELECT 80 + - 45 + - - 33 + + - CAST( NULL AS DECIMAL ) - + COUNT( * ) * + COUNT( * ) * + + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT 80 + - 45 + - - 33 + + - CAST ( NULL AS REAL ) - + COUNT ( * ) * + COUNT ( * ) * + + 12 AS col1
----
NULL

query II rowsort
SELECT ALL 12 * 54 * + 93 - - - 72, + 92 * + - 97 AS col1
----
60192
-8924

onlyif mysql # DIV for integer division: 
query I rowsort label-3359
SELECT 61 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-3359
SELECT 61 / + 77
----
0

query I rowsort
SELECT 96 / + CASE + 63 WHEN - - 49 THEN - + 16 END
----
NULL

query II rowsort
SELECT ALL - NULLIF ( 74, - 80 ) AS col1, - 18 * - - 89
----
-74
-1602

query I rowsort
SELECT - 49 * - - 65 * - 0 + - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3363
SELECT COUNT( * ), 18 AS col1
----
1
18

skipif mysql # not compatible
query II rowsort label-3363
SELECT COUNT ( * ), 18 AS col1
----
1
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT - COALESCE ( - ( - 0 ), - 54 * + + COUNT( * ) * 39, - - 52 )
----
0

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT - COALESCE ( - ( - 0 ), - 54 * + + COUNT ( * ) * 39, - - 52 )
----
0

query II rowsort
SELECT + 67 AS col2, + ( - + 47 ) + + 0
----
67
-47

query I rowsort
SELECT DISTINCT - ( - - 89 )
----
-89

query II rowsort
SELECT + 25, 53 + + - 40 AS col2
----
25
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT ALL + - 10 * - SUM( + - 97 )
----
-970

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL + - 10 * - SUM ( + - 97 )
----
-970

query I rowsort
SELECT - 89 * 8 - - 1 + 74 AS col0
----
-637

query I rowsort
SELECT 64 * - 80
----
-5120

query I rowsort
SELECT + 4 + + - ( + 19 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3372
SELECT DISTINCT + ( + - 93 ) + + COALESCE ( - ( + - 40 ), + + 62 + - COALESCE ( - CAST( NULL AS SIGNED ), 59 ) * - 63 DIV 93 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT + ( + - 93 ) + + COALESCE ( - ( + - 40 ), + + 62 + - COALESCE ( - CAST ( NULL AS INTEGER ), 59 ) * - 63 / 93 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL - 41 + - + NULLIF ( ( + ( - + 17 ) ), + - MIN( + 81 ) * - + CASE - + 71 WHEN + 87 THEN NULL WHEN + 48 THEN 54 ELSE - NULLIF ( COUNT( * ), COUNT( * ) / + 74 + 83 ) / 56 END * - 54 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL - 41 + - + NULLIF ( ( + ( - + 17 ) ), + - MIN ( + 81 ) * - + CASE - + 71 WHEN + 87 THEN NULL WHEN + 48 THEN 54 ELSE - NULLIF ( COUNT ( * ), COUNT ( * ) / + 74 + 83 ) / 56 END * - 54 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT + + SUM( ALL 81 )
----
81

skipif mysql # not compatible
query I rowsort label-3374
SELECT + + SUM ( ALL 81 )
----
81

query I rowsort
SELECT + 84 + + 94 + 5 * + + 87
----
613

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT ALL 54 + + NULLIF ( - + 1, 77 * + MAX( ALL + - 78 ) + + 63 ) + 88 * 93
----
8237

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL 54 + + NULLIF ( - + 1, 77 * + MAX ( ALL + - 78 ) + + 63 ) + 88 * 93
----
8237

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT ALL 59 + 97 + - 48 + + + COALESCE ( + 18, - + ( COUNT( * ) ) + + - 90 )
----
126

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL 59 + 97 + - 48 + + + COALESCE ( + 18, - + ( COUNT ( * ) ) + + - 90 )
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT DISTINCT - ( + 77 ) * + - COUNT( + 93 )
----
77

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT - ( + 77 ) * + - COUNT ( + 93 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT ALL - 25 * + SUM( ALL + 4 ) * - 68 AS col0
----
6800

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL - 25 * + SUM ( ALL + 4 ) * - 68 AS col0
----
6800

query I rowsort
SELECT DISTINCT 86 + + + 53 * - 63 * + 96 AS col2
----
-320458

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT - 25 * + - COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-3381
SELECT - 25 * + - COUNT ( * ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT - COUNT( ALL + 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-3382
SELECT - COUNT ( ALL + 69 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT ALL - 34 - - COUNT( - ( - - 97 ) ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL - 34 - - COUNT ( - ( - - 97 ) ) AS col1
----
-33

query II rowsort
SELECT ALL - 92, - 87 AS col1
----
-92
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3385
SELECT - COALESCE ( + + NULLIF ( + - COALESCE ( - MIN( - - COALESCE ( - CASE + 30 WHEN + 66 THEN 53 ELSE - - ( - 64 ) END, - 36 * - 67 ) ), + + 40 DIV + 93 + - + 14 + + - CASE 54 WHEN + - COALESCE ( + - 3, + 54 * ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) THEN - 56 * 81 DIV - NULLIF ( - 97, + + COUNT( - ( + 50 ) ) ) + CASE - 20 WHEN + CAST( NULL AS SIGNED ) - - ( 46 ) * + 23 THEN + 94 ELSE NULL END END + ( + 58 ) * 47 ), + 77 * - 19 + + CAST( + ( + AVG ( DISTINCT - 97 ) ) + + 10 AS SIGNED ) ), 75 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-3385
SELECT - COALESCE ( + + NULLIF ( + - COALESCE ( - MIN ( - - COALESCE ( - CASE + 30 WHEN + 66 THEN 53 ELSE - - ( - 64 ) END, - 36 * - 67 ) ), + + 40 / + 93 + - + 14 + + - CASE 54 WHEN + - COALESCE ( + - 3, + 54 * ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) THEN - 56 * 81 / - NULLIF ( - 97, + + COUNT ( - ( + 50 ) ) ) + CASE - 20 WHEN + CAST ( NULL AS INTEGER ) - - ( 46 ) * + 23 THEN + 94 ELSE NULL END END + ( + 58 ) * 47 ), + 77 * - 19 + + CAST ( + ( + AVG ( DISTINCT - 97 ) ) + + 10 AS INTEGER ) ), 75 ) AS col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT DISTINCT 20 * CAST( + 26 AS SIGNED )
----
520

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT 20 * CAST ( + 26 AS INTEGER )
----
520

onlyif mysql # aggregate syntax: 
query II rowsort label-3387
SELECT DISTINCT MAX( ALL 50 ), + 59 AS col0
----
50
59

skipif mysql # not compatible
query II rowsort label-3387
SELECT DISTINCT MAX ( ALL 50 ), + 59 AS col0
----
50
59

query I rowsort
SELECT + 37 - + ( - + 31 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3389
SELECT ALL + 88 DIV + 28
----
3

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL + 88 / + 28
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT DISTINCT - 70 * COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT - 70 * COUNT ( * )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT - SUM( DISTINCT 11 ) * 68 AS col0
----
-748

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT - SUM ( DISTINCT 11 ) * 68 AS col0
----
-748

query I rowsort
SELECT - 66 * + 0
----
0

query I rowsort
SELECT - 83 - + 44 AS col2
----
-127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3394
SELECT ALL + ( + CAST( - 40 AS SIGNED ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL + ( + CAST ( - 40 AS INTEGER ) ) AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3395
SELECT - COUNT( * ) * - COUNT( * ) * + 16 - + ( ( + + 53 ) ) * CAST( - + ( 88 ) AS SIGNED )
----
4680

skipif mysql # not compatible
query I rowsort label-3395
SELECT - COUNT ( * ) * - COUNT ( * ) * + 16 - + ( ( + + 53 ) ) * CAST ( - + ( 88 ) AS INTEGER )
----
4680

query I rowsort
SELECT ( - 95 ) AS col1
----
-95

query I rowsort
SELECT - 36 * - + 90
----
3240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3398
SELECT - - CAST( NULL AS SIGNED ) + + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT - - CAST ( NULL AS INTEGER ) + + 76 AS col0
----
NULL

query I rowsort
SELECT - - 25 * + + 53
----
1325

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT - 87 * - SUM( + + 25 ) + ( + ( - 10 ) )
----
2165

skipif mysql # not compatible
query I rowsort label-3400
SELECT - 87 * - SUM ( + + 25 ) + ( + ( - 10 ) )
----
2165

query I rowsort
SELECT + + ( + - 28 ) - + 35 * - COALESCE ( 50, - - 81 + - ( - CASE + - 78 WHEN - 39 THEN - - 28 * + ( + - 46 ) END ) ) AS col0
----
1722

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT + + MAX( - + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT + + MAX ( - + 32 )
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-3403
SELECT ALL + 66 * 92 * - 95 + + 42, - COUNT( * ) * 89 * - ( 24 ) + 3 + + 22 AS col2
----
-576798
2161

skipif mysql # not compatible
query II rowsort label-3403
SELECT ALL + 66 * 92 * - 95 + + 42, - COUNT ( * ) * 89 * - ( 24 ) + 3 + + 22 AS col2
----
-576798
2161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3404
SELECT DISTINCT - 48 * + COUNT( * ) + + + 6 + + - 50 + 78 - - 60 + + - 4, CAST( NULL AS SIGNED ) AS col1
----
42
NULL

skipif mysql # not compatible
query II rowsort label-3404
SELECT DISTINCT - 48 * + COUNT ( * ) + + + 6 + + - 50 + 78 - - 60 + + - 4, CAST ( NULL AS INTEGER ) AS col1
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT - 58 * 13 + + 19 * COUNT( * )
----
-735

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT - 58 * 13 + + 19 * COUNT ( * )
----
-735

query I rowsort
SELECT ALL + 1 * + 14 + - 80 + 5
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT CASE + - 82 WHEN + + COUNT( * ) THEN + ( + 1 ) WHEN - 7 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT CASE + - 82 WHEN + + COUNT ( * ) THEN + ( + 1 ) WHEN - 7 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 87 * 94 col1
----
-8178

query I rowsort
SELECT - - 51 * - + 42 * - - 80 + - 3 + + - 25 AS col1
----
-171388

query I rowsort
SELECT + + 60 * + - 94 - - - 23
----
-5663

query I rowsort
SELECT - - 49 + - + 98 * + 77 * - ( - 43 )
----
-324429

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT + 5 DIV 22 + 18 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3412
SELECT + 5 / 22 + 18 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3413
SELECT ALL CASE 42 WHEN 92 THEN - - 53 WHEN - + 1 * 42 THEN + 48 ELSE NULL END * NULLIF ( - 91, 90 * - + 45 + + + 99 * - CAST( NULL AS SIGNED ) ) - - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL CASE 42 WHEN 92 THEN - - 53 WHEN - + 1 * 42 THEN + 48 ELSE NULL END * NULLIF ( - 91, 90 * - + 45 + + + 99 * - CAST ( NULL AS INTEGER ) ) - - 54 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3414
SELECT DISTINCT + 72 DIV - + CAST( - - 44 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT + 72 / - + CAST ( - - 44 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL MAX( ALL + 93 ) col2
----
93

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL MAX ( ALL + 93 ) col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3416
SELECT + 32 DIV 28 DIV NULLIF ( - 85, - SUM( - CASE CAST( + - COALESCE ( 11, - NULLIF ( 43, - 33 DIV CAST( NULL AS DECIMAL ) ) * + 16 ) AS SIGNED ) WHEN 69 THEN NULL ELSE 28 END ) DIV + 64 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3416
SELECT + 32 / 28 / NULLIF ( - 85, - SUM ( - CASE CAST ( + - COALESCE ( 11, - NULLIF ( 43, - 33 / CAST ( NULL AS REAL ) ) * + 16 ) AS INTEGER ) WHEN 69 THEN NULL ELSE 28 END ) / + 64 ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3417
SELECT ALL 38 DIV - MIN( + 59 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL 38 / - MIN ( + 59 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3418
SELECT - CAST( - 95 AS SIGNED ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-3418
SELECT - CAST ( - 95 AS INTEGER ) AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3419
SELECT + COUNT( * ) DIV + 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3419
SELECT + COUNT ( * ) / + 36 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT + COUNT( * ) + - COUNT( * ) + + - 4
----
-4

skipif mysql # not compatible
query I rowsort label-3420
SELECT + COUNT ( * ) + - COUNT ( * ) + + - 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT - 20 - + COUNT( * ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-3421
SELECT - 20 - + COUNT ( * ) AS col1
----
-21

query I rowsort
SELECT ALL 26 * + 6
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT DISTINCT 37 * - + MIN( 80 )
----
-2960

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT 37 * - + MIN ( 80 )
----
-2960

query I rowsort
SELECT ALL COALESCE ( + 60, - 72 - + 76 * + ( - 98 ) ) * - 65
----
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT MIN( ALL 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT MIN ( ALL 55 ) AS col1
----
55

query I rowsort
SELECT DISTINCT 31 * 44 * + - 95 AS col1
----
-129580

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT ALL - MAX( 12 ) + + 16 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL - MAX ( 12 ) + + 16 AS col2
----
4

query II rowsort
SELECT ALL 10, + 0 AS col2
----
10
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3429
SELECT DISTINCT + 39 DIV - - 47 * NULLIF ( + COUNT( * ), + 18 ) + 66 + - - 69
----
135

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT + 39 / - - 47 * NULLIF ( + COUNT ( * ), + 18 ) + 66 + - - 69
----
135

query I rowsort
SELECT + 24 * + 6 * - 31
----
-4464

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT ALL - - CASE - - 8 WHEN - 69 - 38 THEN MAX( 88 ) - - SUM( 27 ) END + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL - - CASE - - 8 WHEN - 69 - 38 THEN MAX ( 88 ) - - SUM ( 27 ) END + + 46
----
NULL

query I rowsort
SELECT ALL - 50 * - 7
----
350

onlyif mysql # aggregate syntax: 
query II rowsort label-3433
SELECT + 57 * + NULLIF ( 97, - 13 * - COUNT( * ) ) + - 41 col0, 55 + + + 57 + + ( - - 38 ) * - COUNT( * ) * + - 87 + 24
----
5488
3442

skipif mysql # not compatible
query II rowsort label-3433
SELECT + 57 * + NULLIF ( 97, - 13 * - COUNT ( * ) ) + - 41 col0, 55 + + + 57 + + ( - - 38 ) * - COUNT ( * ) * + - 87 + 24
----
5488
3442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT - CAST( - 80 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-3434
SELECT - CAST ( - 80 AS INTEGER )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL + 0 - + CASE 72 WHEN - COUNT( * ) THEN + 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL + 0 - + CASE 72 WHEN - COUNT ( * ) THEN + 33 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT COUNT( DISTINCT - 87 ) * 59
----
59

skipif mysql # not compatible
query I rowsort label-3436
SELECT COUNT ( DISTINCT - 87 ) * 59
----
59

query II rowsort
SELECT + 58 AS col1, 84 * - - 41
----
58
3444

onlyif mysql # aggregate syntax: 
query II rowsort label-3438
SELECT ALL - - 3 AS col2, + 60 + - - COUNT( * ) + + - 8 / - 93 - - CASE + - 78 WHEN - 27 * + 28 * 28 + - + 92 + - 61 * 82 THEN + 28 - + 46 * - - 57 / - 40 WHEN + 56 THEN ( - 52 ) * + AVG ( + 93 ) * 15 * 73 - - ( + 52 ) / - 27 * - 21 ELSE + 54 END - - 29 * CASE + + 27 WHEN - 5 THEN NULL WHEN + 47 THEN 10 ELSE NULL END
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3438
SELECT ALL - - 3 AS col2, + 60 + - - COUNT ( * ) + + - 8 / - 93 - - CASE + - 78 WHEN - 27 * + 28 * 28 + - + 92 + - 61 * 82 THEN + 28 - + 46 * - - 57 / - 40 WHEN + 56 THEN ( - 52 ) * + AVG ( + 93 ) * 15 * 73 - - ( + 52 ) / - 27 * - 21 ELSE + 54 END - - 29 * CASE + + 27 WHEN - 5 THEN NULL WHEN + 47 THEN 10 ELSE NULL END
----
3
NULL

query II rowsort
SELECT + 59 AS col2, 11 AS col1
----
59
11

query I rowsort
SELECT DISTINCT + 6 - + + 44
----
-38

query I rowsort
SELECT + 69 + + 12 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT DISTINCT - CASE + 4 WHEN 41 THEN + 36 WHEN - COUNT( - 36 ) THEN - 75 + SUM( DISTINCT - 55 ) * + - 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT - CASE + 4 WHEN 41 THEN + 36 WHEN - COUNT ( - 36 ) THEN - 75 + SUM ( DISTINCT - 55 ) * + - 45 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3443
SELECT DISTINCT 8 * + SUM( ALL - 36 ) AS col1, 14 + - CAST( NULL AS SIGNED )
----
-288
NULL

skipif mysql # not compatible
query II rowsort label-3443
SELECT DISTINCT 8 * + SUM ( ALL - 36 ) AS col1, 14 + - CAST ( NULL AS INTEGER )
----
-288
NULL

query I rowsort
SELECT DISTINCT - 6 * 74
----
-444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT 55 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3445
SELECT 55 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 90 * + ( - 14 ) AS col2
----
-1260

query I rowsort
SELECT ALL - 88 * + 20 * - 42
----
73920

query II rowsort
SELECT - 83 col2, + 74 * + + 93 AS col2
----
-83
6882

onlyif mysql # aggregate syntax: 
query II rowsort label-3449
SELECT 64 AS col1, 3 * + 55 * + MIN( ALL + - COALESCE ( - + 38, - - COALESCE ( + 70, - - 42 + + 47 - + - 31 ) ) ) * + 74 AS col2
----
64
463980

skipif mysql # not compatible
query II rowsort label-3449
SELECT 64 AS col1, 3 * + 55 * + MIN ( ALL + - COALESCE ( - + 38, - - COALESCE ( + 70, - - 42 + + 47 - + - 31 ) ) ) * + 74 AS col2
----
64
463980

query I rowsort
SELECT 80 * - COALESCE ( - 47, 8 ) AS col0
----
3760

query II rowsort
SELECT - 44 AS col1, 80 + 34 col0
----
-44
114

query I rowsort
SELECT ALL ( + 40 ) + + 57 - + 53 AS col0
----
44

query I rowsort
SELECT ALL + 53 + + 60 + + + 50
----
163

query I rowsort
SELECT 79 * 16
----
1264

query II rowsort
SELECT 45 AS col2, 50
----
45
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL COUNT( * ) + 72 - COUNT( + - 76 ) - - - 9
----
63

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL COUNT ( * ) + 72 - COUNT ( + - 76 ) - - - 9
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT 5 + - 7 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT 5 + - 7 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT ALL 12 * - - SUM( + - 13 )
----
-156

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL 12 * - - SUM ( + - 13 )
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL MAX( + 18 ) + + 15 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL MAX ( + 18 ) + + 15 AS col2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3460
SELECT + + COUNT( * ), + 24 AS col0
----
1
24

skipif mysql # not compatible
query II rowsort label-3460
SELECT + + COUNT ( * ), + 24 AS col0
----
1
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3461
SELECT ALL + 65 + + CASE - MIN( ALL - 33 ) WHEN CASE + 39 WHEN + + ( - COUNT( * ) ) THEN NULL WHEN - - 99 THEN NULL WHEN - 22 + - COUNT( * ) THEN - 20 * 51 WHEN - - COUNT( * ) * + - CAST( - COALESCE ( COUNT( * ), + 4 ) AS SIGNED ) + - 43 THEN 19 END THEN NULL WHEN + - MIN( + + 73 ) THEN + 67 + + - NULLIF ( - 0, - 92 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL + 65 + + CASE - MIN ( ALL - 33 ) WHEN CASE + 39 WHEN + + ( - COUNT ( * ) ) THEN NULL WHEN - - 99 THEN NULL WHEN - 22 + - COUNT ( * ) THEN - 20 * 51 WHEN - - COUNT ( * ) * + - CAST ( - COALESCE ( COUNT ( * ), + 4 ) AS INTEGER ) + - 43 THEN 19 END THEN NULL WHEN + - MIN ( + + 73 ) THEN + 67 + + - NULLIF ( - 0, - 92 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 15 - 89 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL - COUNT( DISTINCT - + 42 ) * - 17
----
17

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL - COUNT ( DISTINCT - + 42 ) * - 17
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3464
SELECT ALL - + CASE + CAST( ( + - 19 ) AS SIGNED ) WHEN + CAST( - 76 AS SIGNED ) THEN + COUNT( * ) + + + 65 WHEN + MIN( ALL - - CAST( NULL AS SIGNED ) ) * + - COALESCE ( 61, + NULLIF ( 96, - + 48 ), + 70 + - MIN( - + 30 ) + - 7 * 14 / - - 78 ) THEN 35 - + CAST( NULL AS SIGNED ) WHEN + - 64 * + COUNT( * ) THEN 93 * + 82 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL - + CASE + CAST ( ( + - 19 ) AS INTEGER ) WHEN + CAST ( - 76 AS INTEGER ) THEN + COUNT ( * ) + + + 65 WHEN + MIN ( ALL - - CAST ( NULL AS INTEGER ) ) * + - COALESCE ( 61, + NULLIF ( 96, - + 48 ), + 70 + - MIN ( - + 30 ) + - 7 * 14 / - - 78 ) THEN 35 - + CAST ( NULL AS INTEGER ) WHEN + - 64 * + COUNT ( * ) THEN 93 * + 82 END AS col0
----
NULL

query I rowsort
SELECT - 20 * 70 - 81 - + 40
----
-1521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3466
SELECT ALL + CAST( CASE + - 92 WHEN - + 11 THEN 42 WHEN + COUNT( * ) THEN + CAST( - COALESCE ( - + 89, + - 23 * - 18 + + 87 + 87 + ( 28 ) + - 44 * - - 79 ) AS SIGNED ) + + + 48 ELSE NULL END AS DECIMAL ) - + + ( + + 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL + CAST ( CASE + - 92 WHEN - + 11 THEN 42 WHEN + COUNT ( * ) THEN + CAST ( - COALESCE ( - + 89, + - 23 * - 18 + + 87 + 87 + ( 28 ) + - 44 * - - 79 ) AS INTEGER ) + + + 48 ELSE NULL END AS REAL ) - + + ( + + 61 )
----
NULL

query I rowsort
SELECT - 81 * - 6 * + + 99
----
48114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3468
SELECT ALL - 60, + 86 * + - 29 * COUNT( DISTINCT + 61 ) DIV COUNT( * ) * - 55 + + 30 col0
----
-60
137200

skipif mysql # not compatible
query II rowsort label-3468
SELECT ALL - 60, + 86 * + - 29 * COUNT ( DISTINCT + 61 ) / COUNT ( * ) * - 55 + + 30 col0
----
-60
137200

query I rowsort
SELECT ALL - + NULLIF ( 98, + 93 ) AS col1
----
-98

query I rowsort
SELECT 19 + ( - - 36 )
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-3471
SELECT - - 99 * + + 89 + 48 * - + 68 + + 68 DIV + 53, + 23 AS col2
----
5548
23

skipif mysql # not compatible
query II rowsort label-3471
SELECT - - 99 * + + 89 + 48 * - + 68 + + 68 / + 53, + 23 AS col2
----
5548
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL + + 23 * - COUNT( * ) * 35 AS col1
----
-805

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL + + 23 * - COUNT ( * ) * 35 AS col1
----
-805

query I rowsort
SELECT + ( + - 29 ) * 8
----
-232

query I rowsort
SELECT ALL - COALESCE ( + ( COALESCE ( - 35, 25 ) ), - NULLIF ( + 74, - 75 ) + + 8, + 88 + + 87 ) AS col1
----
35

query I rowsort
SELECT DISTINCT + 5 * - 1 AS col2
----
-5

query I rowsort
SELECT ALL + - ( - - 89 ) * + 63 - + 45 AS col1
----
-5652

query I rowsort
SELECT ALL + 77 * + 46 AS col1
----
3542

query I rowsort
SELECT + 58 + + 74 AS col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT - COUNT( * ) * - ( 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT - COUNT ( * ) * - ( 49 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ALL - - COUNT( * ) * + + 88
----
88

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL - - COUNT ( * ) * + + 88
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3481
SELECT - 80 DIV 65 DIV - 6 * - ( 38 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3481
SELECT - 80 / 65 / - 6 * - ( 38 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3482
SELECT ALL - NULLIF ( CAST( NULL AS DECIMAL ), + - SUM( ALL + 98 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL - NULLIF ( CAST ( NULL AS REAL ), + - SUM ( ALL + 98 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3483
SELECT + 40 * 44 + 26 + - 37 * 66 * - 24 * + ( + CAST( - CASE - - 99 WHEN 40 THEN NULL WHEN COUNT( * ) * + + 66 + - + MAX( + - 19 ) THEN 7 * - COUNT( * ) * 20 ELSE - - 17 END AS SIGNED ) ) AS col2
----
-994550

skipif mysql # not compatible
query I rowsort label-3483
SELECT + 40 * 44 + 26 + - 37 * 66 * - 24 * + ( + CAST ( - CASE - - 99 WHEN 40 THEN NULL WHEN COUNT ( * ) * + + 66 + - + MAX ( + - 19 ) THEN 7 * - COUNT ( * ) * 20 ELSE - - 17 END AS INTEGER ) ) AS col2
----
-994550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3484
SELECT DISTINCT - COALESCE ( - + 81, - - 5 ) col1, + 63 - + 3 + + - 85 - 74 * ( 15 ) * NULLIF ( - + 8, + + ( + 29 ) + 32 ) * - AVG ( ALL + 10 ) - CAST( + 50 AS SIGNED ) * - CASE + SUM( - 96 ) WHEN - 39 THEN - + 72 WHEN AVG ( DISTINCT - + 80 ) THEN NULL ELSE NULL END + - 83
----
81
NULL

skipif mysql # not compatible
query II rowsort label-3484
SELECT DISTINCT - COALESCE ( - + 81, - - 5 ) col1, + 63 - + 3 + + - 85 - 74 * ( 15 ) * NULLIF ( - + 8, + + ( + 29 ) + 32 ) * - AVG ( ALL + 10 ) - CAST ( + 50 AS INTEGER ) * - CASE + SUM ( - 96 ) WHEN - 39 THEN - + 72 WHEN AVG ( DISTINCT - + 80 ) THEN NULL ELSE NULL END + - 83
----
81
NULL

query I rowsort
SELECT 70 + 28
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3486
SELECT ALL + COUNT( * ) / + CAST( NULL AS SIGNED ) * + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL + COUNT ( * ) / + CAST ( NULL AS INTEGER ) * + 74 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3487
SELECT 80 DIV + + 99 * + 93 col1
----
0

skipif mysql # not compatible
query I rowsort label-3487
SELECT 80 / + + 99 * + 93 col1
----
0

query I rowsort
SELECT DISTINCT 55 + - - 46
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-3489
SELECT DISTINCT MIN( - 44 ), COALESCE ( - COALESCE ( 92, NULLIF ( + 7, - 88 + 1 + - 75 * ( 33 ) + + 32 + + + NULLIF ( - 15, + + 97 - - + 94 * 16 * 6 * - 92 + + + 79 + + + 27 ) * - + 91 ) ), - 0 * 51 * + + NULLIF ( - 68, - + 34 + - 76 + + + 8 ) ) AS col0
----
-44
-92

skipif mysql # not compatible
query II rowsort label-3489
SELECT DISTINCT MIN ( - 44 ), COALESCE ( - COALESCE ( 92, NULLIF ( + 7, - 88 + 1 + - 75 * ( 33 ) + + 32 + + + NULLIF ( - 15, + + 97 - - + 94 * 16 * 6 * - 92 + + + 79 + + + 27 ) * - + 91 ) ), - 0 * 51 * + + NULLIF ( - 68, - + 34 + - 76 + + + 8 ) ) AS col0
----
-44
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT COUNT( * ) + - 73 - - 92 * + 55
----
4988

skipif mysql # not compatible
query I rowsort label-3490
SELECT COUNT ( * ) + - 73 - - 92 * + 55
----
4988

query I rowsort
SELECT DISTINCT 98 col0
----
98

query I rowsort
SELECT ALL + 57 + 59 AS col1
----
116

query I rowsort
SELECT 86 + 81
----
167

query I rowsort
SELECT ALL - 94 + 11
----
-83

query I rowsort
SELECT 95 + 12 - 52 * 38
----
-1869

query II rowsort
SELECT 5 + + 91 AS col1, + 25 + 23
----
96
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3497
SELECT COUNT( * ) - - 21 AS col2, 67 + - 77 + + - ( + - 1 ) + - 73 * NULLIF ( + + 19, - 9 + - + CASE 68 WHEN + - 72 * + 43 THEN NULL WHEN + - 14 * - - 17 THEN 99 ELSE NULL END * 68 + + - 54 + + 21 + - 5 - + 32 + + 76 * + + 39 ) * + 96 + + ( + COUNT( * ) ) + - COUNT( * ) DIV - 21
----
22
-133160

skipif mysql # not compatible
query II rowsort label-3497
SELECT COUNT ( * ) - - 21 AS col2, 67 + - 77 + + - ( + - 1 ) + - 73 * NULLIF ( + + 19, - 9 + - + CASE 68 WHEN + - 72 * + 43 THEN NULL WHEN + - 14 * - - 17 THEN 99 ELSE NULL END * 68 + + - 54 + + 21 + - 5 - + 32 + + 76 * + + 39 ) * + 96 + + ( + COUNT ( * ) ) + - COUNT ( * ) / - 21
----
22
-133160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3498
SELECT DISTINCT + 40 + 68 col1, COUNT( * ) + - - 11 - + 79 - NULLIF ( + ( 72 ), + 7 + + ( - - ( + 98 ) ) ) DIV - ( + - 99 )
----
108
-67

skipif mysql # not compatible
query II rowsort label-3498
SELECT DISTINCT + 40 + 68 col1, COUNT ( * ) + - - 11 - + 79 - NULLIF ( + ( 72 ), + 7 + + ( - - ( + 98 ) ) ) / - ( + - 99 )
----
108
-67

query I rowsort
SELECT ALL ( 42 ) - - ( - + 52 ) + - ( - 81 ) * + 54 AS col1
----
4364

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT - 71 + + 80 + + - 32 * - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-3500
SELECT - 71 + + 80 + + - 32 * - COUNT ( * ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-3501
SELECT ALL CASE - COUNT( * ) WHEN 44 + + 86 THEN 42 WHEN 10 THEN - + 39 END AS col0, 76 AS col1
----
NULL
76

skipif mysql # not compatible
query II rowsort label-3501
SELECT ALL CASE - COUNT ( * ) WHEN 44 + + 86 THEN 42 WHEN 10 THEN - + 39 END AS col0, 76 AS col1
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT DISTINCT + 74 * NULLIF ( - 92, + 74 ) * 50 * + 42 * - CASE 20 WHEN + 79 THEN MAX( 30 ) + - CASE + + 9 WHEN ( - 65 ) THEN NULL WHEN 27 THEN + + 5 WHEN - 94 * + - 16 THEN NULL ELSE + 96 - - - 87 + + - 10 / + 50 + - ( 93 ) * - + ( + 74 ) END END - + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT + 74 * NULLIF ( - 92, + 74 ) * 50 * + 42 * - CASE 20 WHEN + 79 THEN MAX ( 30 ) + - CASE + + 9 WHEN ( - 65 ) THEN NULL WHEN 27 THEN + + 5 WHEN - 94 * + - 16 THEN NULL ELSE + 96 - - - 87 + + - 10 / + 50 + - ( 93 ) * - + ( + 74 ) END END - + 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3503
SELECT - COUNT( 84 ) DIV + + 59 + - 89
----
-89

skipif mysql # not compatible
query I rowsort label-3503
SELECT - COUNT ( 84 ) / + + 59 + - 89
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3504
SELECT ALL - 67 * - - 68 + + 93 DIV + MIN( - 49 ) + - SUM( + ( + 77 ) )
----
-4634

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL - 67 * - - 68 + + 93 / + MIN ( - 49 ) + - SUM ( + ( + 77 ) )
----
-4634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3505
SELECT NULLIF ( + COUNT( * ), + CAST( NULL AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3505
SELECT NULLIF ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT DISTINCT - - COUNT( * ) * + 10 * 94
----
940

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - - COUNT ( * ) * + 10 * 94
----
940

query I rowsort
SELECT DISTINCT + - 63 AS col2
----
-63

query I rowsort
SELECT DISTINCT - 48 * - 80 + + + 60 AS col0
----
3900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT + CAST( - - 7 AS SIGNED ) * + + 18 * + + 26
----
3276

skipif mysql # not compatible
query I rowsort label-3509
SELECT + CAST ( - - 7 AS INTEGER ) * + + 18 * + + 26
----
3276

query I rowsort
SELECT - ( + 17 ) col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT + - 23 * 45 - - + COUNT( * ) + 74 AS col1
----
-960

skipif mysql # not compatible
query I rowsort label-3511
SELECT + - 23 * 45 - - + COUNT ( * ) + 74 AS col1
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT MAX( DISTINCT - 84 ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-3512
SELECT MAX ( DISTINCT - 84 ) col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL - 0 * - 79 + COUNT( - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL - 0 * - 79 + COUNT ( - 5 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT COUNT( DISTINCT + 66 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3514
SELECT COUNT ( DISTINCT + 66 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT ALL + 50 * + 54 + - COUNT( ALL + 27 )
----
2699

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL + 50 * + 54 + - COUNT ( ALL + 27 )
----
2699

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT - 98 * 61 - - 22 * - COUNT( * ) col0
----
-6000

skipif mysql # not compatible
query I rowsort label-3516
SELECT - 98 * 61 - - 22 * - COUNT ( * ) col0
----
-6000

query I rowsort
SELECT ALL NULLIF ( - 33, + 40 ) + + - NULLIF ( - 98, + + 22 ) + - NULLIF ( - + 65, 6 * - - 32 )
----
130

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3518
SELECT + CAST( NULL AS DECIMAL ) * - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3518
SELECT + CAST ( NULL AS REAL ) * - 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT MIN( ALL - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-3519
SELECT MIN ( ALL - 5 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT - 31 + 21 DIV 88 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3520
SELECT - 31 + 21 / 88 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT ALL COALESCE ( + + COUNT( 1 ), + 96 )
----
1

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL COALESCE ( + + COUNT ( 1 ), + 96 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3522
SELECT - CAST( NULL AS SIGNED ) col0, - 16 * + 19 * 4
----
NULL
-1216

skipif mysql # not compatible
query II rowsort label-3522
SELECT - CAST ( NULL AS INTEGER ) col0, - 16 * + 19 * 4
----
NULL
-1216

query I rowsort
SELECT - 7 + + 68 AS col1
----
61

query II rowsort
SELECT ALL CASE WHEN NOT - CASE + 67 WHEN + 60 THEN - 26 * 88 ELSE - - 1 END <> - 35 THEN + 5 * - + 8 ELSE NULL END, - 18 AS col0
----
NULL
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3525
SELECT ALL + CAST( NULL AS SIGNED ) - - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + CAST ( NULL AS INTEGER ) - - 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT - 95 * - COUNT( * ) * - - 13 * - 85 AS col1
----
-104975

skipif mysql # not compatible
query I rowsort label-3526
SELECT - 95 * - COUNT ( * ) * - - 13 * - 85 AS col1
----
-104975

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT DISTINCT MIN( - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT MIN ( - 43 )
----
-43

query I rowsort
SELECT ALL ( - 73 )
----
-73

query I rowsort
SELECT DISTINCT + 8 - - 97
----
105

query I rowsort
SELECT DISTINCT ( 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3531
SELECT + + 31 * NULLIF ( 45, AVG ( DISTINCT + 59 ) + - 78 + + COUNT( * ) * - 38 ) AS col0, 57 + COUNT( * ) AS col2
----
1395
58

skipif mysql # not compatible
query II rowsort label-3531
SELECT + + 31 * NULLIF ( 45, AVG ( DISTINCT + 59 ) + - 78 + + COUNT ( * ) * - 38 ) AS col0, 57 + COUNT ( * ) AS col2
----
1395
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT - - 7 + 60 - + CASE - 3 WHEN - + 77 THEN NULL ELSE + + 20 * + 73 END * - + CASE + - 70 WHEN 11 + + - SUM( 47 ) + + 15 - + - 19 THEN + + COUNT( * ) WHEN + - 74 * + - 57 THEN + 23 ELSE NULL END * + 1 - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT - - 7 + 60 - + CASE - 3 WHEN - + 77 THEN NULL ELSE + + 20 * + 73 END * - + CASE + - 70 WHEN 11 + + - SUM ( 47 ) + + 15 - + - 19 THEN + + COUNT ( * ) WHEN + - 74 * + - 57 THEN + 23 ELSE NULL END * + 1 - 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3533
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) - + COUNT( * ) THEN + 26 ELSE - 54 * + 61 END
----
-3294

skipif mysql # not compatible
query I rowsort label-3533
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) - + COUNT ( * ) THEN + 26 ELSE - 54 * + 61 END
----
-3294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3534
SELECT DISTINCT 21, 37 * COALESCE ( CAST( NULL AS SIGNED ), + 70 - - + 47 * - - SUM( + - 5 ) ) AS col1
----
21
-6105

skipif mysql # not compatible
query II rowsort label-3534
SELECT DISTINCT 21, 37 * COALESCE ( CAST ( NULL AS INTEGER ), + 70 - - + 47 * - - SUM ( + - 5 ) ) AS col1
----
21
-6105

query I rowsort
SELECT ALL + 10 * 29
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT - 13 - COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3536
SELECT - 13 - COUNT ( * ) AS col0
----
-14

query II rowsort
SELECT + 49 AS col1, 80 col2
----
49
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3538
SELECT + COUNT( ALL - 83 ) DIV - 61 + - - COUNT( * ) - - - 42 * - - 67 * - + 32 - + - 60 * 61 DIV + - 40 AS col2
----
89958

skipif mysql # not compatible
query I rowsort label-3538
SELECT + COUNT ( ALL - 83 ) / - 61 + - - COUNT ( * ) - - - 42 * - - 67 * - + 32 - + - 60 * 61 / + - 40 AS col2
----
89958

onlyif mysql # aggregate syntax: 
query II rowsort label-3539
SELECT - + COALESCE ( + - 36, 35 * 64 ) + - 40 + 33 + + 31 - 40, SUM( ALL - ( - + 28 ) ) - 15 col2
----
20
13

skipif mysql # not compatible
query II rowsort label-3539
SELECT - + COALESCE ( + - 36, 35 * 64 ) + - 40 + 33 + + 31 - 40, SUM ( ALL - ( - + 28 ) ) - 15 col2
----
20
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3540
SELECT - ( - - 79 ) DIV COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-3540
SELECT - ( - - 79 ) / COUNT ( * ) AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3541
SELECT + - MIN( ALL + - 85 ) * + + 64 + 39 AS col0, COUNT( * ) DIV + 71 + + + 3 AS col2
----
5479
3

skipif mysql # not compatible
query II rowsort label-3541
SELECT + - MIN ( ALL + - 85 ) * + + 64 + 39 AS col0, COUNT ( * ) / + 71 + + + 3 AS col2
----
5479
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3542
SELECT DISTINCT + 11 DIV - - 6 + + 45 + - COUNT( * ) * 61
----
-15

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT + 11 / - - 6 + + 45 + - COUNT ( * ) * 61
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT ALL + 73 * + 79 * COUNT( ALL 93 ) + + 60 AS col1
----
5827

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL + 73 * + 79 * COUNT ( ALL 93 ) + + 60 AS col1
----
5827

query I rowsort
SELECT ALL - 23 * + 9 + + 71
----
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3545
SELECT + CAST( NULL AS SIGNED ) + 80 + + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3545
SELECT + CAST ( NULL AS INTEGER ) + 80 + + 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3546
SELECT ALL + MIN( + + 53 ) AS col1, + 8 * 13 col0
----
53
104

skipif mysql # not compatible
query II rowsort label-3546
SELECT ALL + MIN ( + + 53 ) AS col1, + 8 * 13 col0
----
53
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3547
SELECT + 61 * + - CAST( + 29 AS SIGNED )
----
-1769

skipif mysql # not compatible
query I rowsort label-3547
SELECT + 61 * + - CAST ( + 29 AS INTEGER )
----
-1769

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT + COALESCE ( + COUNT( * ), + - 24 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3548
SELECT + COALESCE ( + COUNT ( * ), + - 24 ) AS col1
----
1

query I rowsort
SELECT ( - + 64 )
----
-64

query I rowsort
SELECT ALL - 46 * - + 69 + + 53
----
3227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3551
SELECT + COUNT( * ) * - - 85 DIV + 16
----
5

skipif mysql # not compatible
query I rowsort label-3551
SELECT + COUNT ( * ) * - - 85 / + 16
----
5

query I rowsort
SELECT ALL 66 - - - 51
----
15

query I rowsort
SELECT 21 - + - 60 * + 17
----
1041

query I rowsort
SELECT COALESCE ( 19, - ( 14 ) ) + - + 95 * 58
----
-5491

query I rowsort
SELECT 34 * + 70 AS col0
----
2380

query I rowsort
SELECT ALL - 68 * 91 AS col1
----
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT 40 + - - 79 + - - MIN( DISTINCT - 39 )
----
80

skipif mysql # not compatible
query I rowsort label-3557
SELECT 40 + - - 79 + - - MIN ( DISTINCT - 39 )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3558
SELECT 11 DIV + + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3558
SELECT 11 / + + 94 AS col0
----
0

query I rowsort
SELECT 49 + + - ( + 85 ) - - 57
----
21

query I rowsort
SELECT 37 * + 99 AS col1
----
3663

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT NULLIF ( + 98, - 96 * + 76 + - COUNT( + - 33 ) ) + - ( - - CASE 81 WHEN 39 + - - 88 + 11 + + 7 THEN 45 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT NULLIF ( + 98, - 96 * + 76 + - COUNT ( + - 33 ) ) + - ( - - CASE 81 WHEN 39 + - - 88 + 11 + + 7 THEN 45 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT - COUNT( * ) - - + 90 + + 39
----
128

skipif mysql # not compatible
query I rowsort label-3562
SELECT - COUNT ( * ) - - + 90 + + 39
----
128

query I rowsort
SELECT ALL 31 * + 23 AS col0
----
713

onlyif mysql # DIV for integer division: 
query I rowsort label-3564
SELECT - 70 * NULLIF ( - 11, + 9 ) + + 16 DIV + 91 * - 8 AS col1
----
770

skipif mysql # not compatible
query I rowsort label-3564
SELECT - 70 * NULLIF ( - 11, + 9 ) + + 16 / + 91 * - 8 AS col1
----
770

query I rowsort
SELECT 17 * + 68 AS col2
----
1156

onlyif mysql # DIV for integer division: 
query I rowsort label-3566
SELECT ALL - - 17 DIV 93 + 97 - - - 24
----
73

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL - - 17 / 93 + 97 - - - 24
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT + MIN( ALL 1 )
----
1

skipif mysql # not compatible
query I rowsort label-3567
SELECT + MIN ( ALL 1 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT ALL + CASE 93 WHEN - - COUNT( * ) THEN - 49 END AS col0, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3568
SELECT ALL + CASE 93 WHEN - - COUNT ( * ) THEN - 49 END AS col0, + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT ALL + MAX( ALL - 12 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL + MAX ( ALL - 12 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL - + 42 + + COUNT( * ) + - 45
----
-86

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - + 42 + + COUNT ( * ) + - 45
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT + COUNT( * ) + + 80 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3571
SELECT + COUNT ( * ) + + 80 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3572
SELECT CASE - COUNT( * ) WHEN - 88 THEN + - ( CAST( + 91 AS SIGNED ) ) * + 85 + - ( - - COUNT( * ) ) ELSE NULL END AS col2, 59 * + COUNT( DISTINCT + 29 ) - + COUNT( * ) + 49
----
NULL
107

skipif mysql # not compatible
query II rowsort label-3572
SELECT CASE - COUNT ( * ) WHEN - 88 THEN + - ( CAST ( + 91 AS INTEGER ) ) * + 85 + - ( - - COUNT ( * ) ) ELSE NULL END AS col2, 59 * + COUNT ( DISTINCT + 29 ) - + COUNT ( * ) + 49
----
NULL
107

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT 42 * - - 69 * COUNT( * ) * - 4 * - + COUNT( * ) + - - 69
----
11661

skipif mysql # not compatible
query I rowsort label-3573
SELECT 42 * - - 69 * COUNT ( * ) * - 4 * - + COUNT ( * ) + - - 69
----
11661

query I rowsort
SELECT ALL - + 12 + + - 59 AS col1
----
-71

query I rowsort
SELECT ALL 60 + + 83 col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT DISTINCT - COUNT( * ) + 23 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT - COUNT ( * ) + 23 AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-3577
SELECT DISTINCT - NULLIF ( COUNT( * ), 74 + - 39 ) AS col2, + 1 AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-3577
SELECT DISTINCT - NULLIF ( COUNT ( * ), 74 + - 39 ) AS col2, + 1 AS col0
----
-1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3578
SELECT ALL 56 / + 14 * - CAST( NULL AS DECIMAL ) / + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL 56 / + 14 * - CAST ( NULL AS REAL ) / + 93
----
NULL

query II rowsort
SELECT 62 * - 47 + + - 56 col2, 86
----
-2970
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3580
SELECT DISTINCT - 25 + - + 8 - - COUNT( * ) - 7 * - CAST( NULL AS SIGNED ) / + - 62 + 9 * - + 40 * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT - 25 + - + 8 - - COUNT ( * ) - 7 * - CAST ( NULL AS INTEGER ) / + - 62 + 9 * - + 40 * - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT ALL + 71 + + NULLIF ( + + 70, COUNT( * ) ) * + COUNT( DISTINCT + 56 ) + 90 - - - NULLIF ( 5, - - 80 - + MAX( DISTINCT NULLIF ( 70, - 74 ) ) ) * + ( - COUNT( ALL + 54 ) ) * 91 - ( + 98 ) AS col0
----
588

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL + 71 + + NULLIF ( + + 70, COUNT ( * ) ) * + COUNT ( DISTINCT + 56 ) + 90 - - - NULLIF ( 5, - - 80 - + MAX ( DISTINCT NULLIF ( 70, - 74 ) ) ) * + ( - COUNT ( ALL + 54 ) ) * 91 - ( + 98 ) AS col0
----
588

query II rowsort
SELECT 89 * - ( - 45 ) AS col0, - 45 AS col1
----
4005
-45

query I rowsort
SELECT 25 * - 10 AS col1
----
-250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3584
SELECT ALL - 98 DIV CAST( - 22 AS SIGNED ) AS col0, + 19 + + COUNT( * )
----
4
20

skipif mysql # not compatible
query II rowsort label-3584
SELECT ALL - 98 / CAST ( - 22 AS INTEGER ) AS col0, + 19 + + COUNT ( * )
----
4
20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3585
SELECT + 89 * - + 94 * - 93 * + 80 - - 55 / 55 - - + 18 * + ( CAST( NULL AS SIGNED ) ) * - - 74, + CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3585
SELECT + 89 * - + 94 * - 93 * + 80 - - 55 / 55 - - + 18 * + ( CAST ( NULL AS INTEGER ) ) * - - 74, + CAST ( NULL AS REAL )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3586
SELECT + 91, - COUNT( * ) + 12 + + 70 AS col0
----
91
81

skipif mysql # not compatible
query II rowsort label-3586
SELECT + 91, - COUNT ( * ) + 12 + + 70 AS col0
----
91
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3587
SELECT DISTINCT CAST( NULL AS SIGNED ) - - ( - - 89 ) AS col0, + 62 + 18 * - + 91 col2
----
NULL
-1576

skipif mysql # not compatible
query II rowsort label-3587
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - ( - - 89 ) AS col0, + 62 + 18 * - + 91 col2
----
NULL
-1576

query I rowsort
SELECT 15 * - + 27
----
-405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3589
SELECT ALL SUM( DISTINCT + - 72 ) * + NULLIF ( 72, + ( + 69 ) / - - 25 * + + MIN( - - CAST( + COALESCE ( - + 60, CASE - 61 WHEN ( - 34 ) * 69 - 90 THEN 6 ELSE NULL END ) AS SIGNED ) ) ), + 56 + - COALESCE ( - - 27, 43, - 62 ) * + + COUNT( * ) col0
----
-5184
29

skipif mysql # not compatible
query II rowsort label-3589
SELECT ALL SUM ( DISTINCT + - 72 ) * + NULLIF ( 72, + ( + 69 ) / - - 25 * + + MIN ( - - CAST ( + COALESCE ( - + 60, CASE - 61 WHEN ( - 34 ) * 69 - 90 THEN 6 ELSE NULL END ) AS INTEGER ) ) ), + 56 + - COALESCE ( - - 27, 43, - 62 ) * + + COUNT ( * ) col0
----
-5184
29

query I rowsort
SELECT DISTINCT + 81 * 0 AS col0
----
0

query II rowsort
SELECT ALL 60 AS col2, 62 col0
----
60
62

query I rowsort
SELECT ALL 12 * 83
----
996

query I rowsort
SELECT 14 * 69 AS col2
----
966

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ( COUNT( * ) ) + + - MIN( ALL - 7 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3594
SELECT ( COUNT ( * ) ) + + - MIN ( ALL - 7 ) AS col1
----
8

query I rowsort
SELECT 52 * + 76 - 35 + 40 * - ( - + 67 ) AS col2
----
6597

query II rowsort
SELECT 39 * - 34 + - 0, 81 AS col1
----
-1326
81

query I rowsort
SELECT DISTINCT ( + - 35 ) col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT DISTINCT COUNT( * ) * + 82 col2
----
82

skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT COUNT ( * ) * + 82 col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3599
SELECT 31 DIV - + 77 * - 75 * - + 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3599
SELECT 31 / - + 77 * - 75 * - + 3 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL + COUNT( * ) + 62 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL + COUNT ( * ) + 62 AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3601
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 76 * + + 4 / - 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 76 * + + 4 / - 97 AS col1
----
NULL

query I rowsort
SELECT ALL + 30 + - 40
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL + COUNT( * ) + COALESCE ( + COUNT( * ), - + ( - 89 ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL + COUNT ( * ) + COALESCE ( + COUNT ( * ), - + ( - 89 ) ) AS col1
----
2

query II rowsort
SELECT - 61 AS col2, 64 * + NULLIF ( + 28, + 71 ) AS col1
----
-61
1792

onlyif mysql # DIV for integer division: 
query I rowsort label-3605
SELECT ( - 47 ) DIV - 19
----
2

skipif mysql # not compatible
query I rowsort label-3605
SELECT ( - 47 ) / - 19
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT + COALESCE ( - 95, COUNT( * ) * - + 38 ) * + 39 + 58 - - 5 * + - 84 - 72 + + 18 + 20 + 72 AS col2
----
-4029

skipif mysql # not compatible
query I rowsort label-3606
SELECT + COALESCE ( - 95, COUNT ( * ) * - + 38 ) * + 39 + 58 - - 5 * + - 84 - 72 + + 18 + 20 + 72 AS col2
----
-4029

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT 42 - + - 20 + + MIN( - - 68 )
----
130

skipif mysql # not compatible
query I rowsort label-3607
SELECT 42 - + - 20 + + MIN ( - - 68 )
----
130

query I rowsort
SELECT ALL 92 + 53 col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT - 75 + + - COUNT( * ) + 42 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-3609
SELECT - 75 + + - COUNT ( * ) + 42 AS col1
----
-34

query I rowsort
SELECT - + 65 col2
----
-65

query I rowsort
SELECT 80 + 16 + 22 - 78
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL - + 10 + - + 49 + 45 - + COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL - + 10 + - + 49 + 45 - + COUNT ( * ) AS col2
----
-15

query I rowsort
SELECT - - ( + - 6 ) AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3614
SELECT ALL - 98, CAST( NULL AS SIGNED ) AS col0
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-3614
SELECT ALL - 98, CAST ( NULL AS INTEGER ) AS col0
----
-98
NULL

query I rowsort
SELECT ALL + - 97 * - + 28
----
2716

query II rowsort
SELECT 11 AS col0, + 17
----
11
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT 75 * + + 68 + - COUNT( * ) + + 95 * + 80 col0
----
12699

skipif mysql # not compatible
query I rowsort label-3617
SELECT 75 * + + 68 + - COUNT ( * ) + + 95 * + 80 col0
----
12699

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT ALL 92 * 62 - + COUNT( * )
----
5703

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL 92 * 62 - + COUNT ( * )
----
5703

onlyif mysql # aggregate syntax: 
query II rowsort label-3619
SELECT DISTINCT - COUNT( * ) col0, 48 + + - 59 - MIN( - 5 ) AS col2
----
-1
-6

skipif mysql # not compatible
query II rowsort label-3619
SELECT DISTINCT - COUNT ( * ) col0, 48 + + - 59 - MIN ( - 5 ) AS col2
----
-1
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3620
SELECT - 86 DIV + 20 + + 93 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3620
SELECT - 86 / + 20 + + 93 AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3621
SELECT CAST( + - 43 AS SIGNED ) + + 54 * + 4 + - ( + 44 ) + - 32 * + 62 + - COUNT( * ) + - 14 * + + CAST( NULL AS SIGNED ) * 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT CAST ( + - 43 AS INTEGER ) + + 54 * + 4 + - ( + 44 ) + - 32 * + 62 + - COUNT ( * ) + - 14 * + + CAST ( NULL AS INTEGER ) * 63 AS col2
----
NULL

query I rowsort
SELECT 34 * - - 67 AS col2
----
2278

query II rowsort
SELECT - 23 * - 26 + - 19 + + 9 * + 96 + - - 28 AS col0, + 67
----
1471
67

query I rowsort
SELECT ALL + ( 28 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3625
SELECT ALL - COUNT( * ) * + CAST( NULL AS SIGNED ) - + + CAST( + 88 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS INTEGER ) - + + CAST ( + 88 AS INTEGER )
----
NULL

query I rowsort
SELECT - 54 * 15
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ALL + CASE + 16 WHEN - MIN( DISTINCT 92 ) THEN NULL ELSE - COUNT( * ) END col2
----
-1

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL + CASE + 16 WHEN - MIN ( DISTINCT 92 ) THEN NULL ELSE - COUNT ( * ) END col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3628
SELECT DISTINCT - CASE + 59 WHEN 20 THEN + 69 * 32 * 7 ELSE 48 END * + 91 * + COUNT( * ) + - - 87 + - + 15 + + 16 + - - 45 * + 42 - - CAST( NULL AS DECIMAL ) * + 15 * - 61 * - 22 * - - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT - CASE + 59 WHEN 20 THEN + 69 * 32 * 7 ELSE 48 END * + 91 * + COUNT ( * ) + - - 87 + - + 15 + + 16 + - - 45 * + 42 - - CAST ( NULL AS REAL ) * + 15 * - 61 * - 22 * - - 8 AS col0
----
NULL

query I rowsort
SELECT - 78 * + 86 + 99
----
-6609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3630
SELECT - COUNT( * ) * - COALESCE ( ( + - 53 ), 88 * 10 + - + COUNT( * ) + + CASE + CASE - - 86 WHEN - 36 THEN + - 1 END WHEN - - 42 DIV ( + 74 ) * - 32 * CAST( - COUNT( * ) AS SIGNED ) THEN NULL ELSE + 73 DIV + 2 END ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3630
SELECT - COUNT ( * ) * - COALESCE ( ( + - 53 ), 88 * 10 + - + COUNT ( * ) + + CASE + CASE - - 86 WHEN - 36 THEN + - 1 END WHEN - - 42 / ( + 74 ) * - 32 * CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL ELSE + 73 / + 2 END ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT - 41 * COUNT( * ) + - 39 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-3631
SELECT - 41 * COUNT ( * ) + - 39 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3632
SELECT + COUNT( * ) AS col0, - 47 AS col1
----
1
-47

skipif mysql # not compatible
query II rowsort label-3632
SELECT + COUNT ( * ) AS col0, - 47 AS col1
----
1
-47

query I rowsort
SELECT - 12 + + + 3 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT - 88 + COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-3634
SELECT - 88 + COUNT ( * ) AS col2
----
-87

query II rowsort
SELECT ALL 21, + ( ( - 65 ) ) AS col0
----
21
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3636
SELECT ALL - + 46 + 89 * + + COUNT( DISTINCT 40 ) * - 24 + - 14 + CAST( NULL AS SIGNED ) + + - COUNT( 94 ) + 73 * 82 * 29 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL - + 46 + 89 * + + COUNT ( DISTINCT 40 ) * - 24 + - 14 + CAST ( NULL AS INTEGER ) + + - COUNT ( 94 ) + 73 * 82 * 29 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3637
SELECT - + NULLIF ( COALESCE ( + ( - + NULLIF ( - COUNT( * ), ( + COUNT( + + CAST( + 65 AS SIGNED ) ) ) * 10 + 87 * - - COUNT( * ) + COUNT( * ) ) ), 77 ), + 52 ) + - - 13 * - 35 AS col2
----
-456

skipif mysql # not compatible
query I rowsort label-3637
SELECT - + NULLIF ( COALESCE ( + ( - + NULLIF ( - COUNT ( * ), ( + COUNT ( + + CAST ( + 65 AS INTEGER ) ) ) * 10 + 87 * - - COUNT ( * ) + COUNT ( * ) ) ), 77 ), + 52 ) + - - 13 * - 35 AS col2
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT - NULLIF ( + - 61, CASE + + 36 WHEN COUNT( * ) THEN - - 84 / - 76 ELSE - 90 * - 99 END ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3638
SELECT - NULLIF ( + - 61, CASE + + 36 WHEN COUNT ( * ) THEN - - 84 / - 76 ELSE - 90 * - 99 END ) AS col2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT ALL - CAST( NULL AS SIGNED ) + NULLIF ( + 73, - 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL - CAST ( NULL AS INTEGER ) + NULLIF ( + 73, - 31 )
----
NULL

query I rowsort
SELECT + 66 + 74 AS col1
----
140

query I rowsort
SELECT - + 59 * + 25 AS col0
----
-1475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3642
SELECT + CAST( + - 24 AS SIGNED ) + 80 * 22 col2
----
1736

skipif mysql # not compatible
query I rowsort label-3642
SELECT + CAST ( + - 24 AS INTEGER ) + 80 * 22 col2
----
1736

query II rowsort
SELECT DISTINCT - 36 col1, - 56
----
-36
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-3644
SELECT - 34 AS col2, COUNT( * ) col1
----
-34
1

skipif mysql # not compatible
query II rowsort label-3644
SELECT - 34 AS col2, COUNT ( * ) col1
----
-34
1

query I rowsort
SELECT + 93 + - 30 * + - 47 + - 63 AS col0
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - 32 + + 47 * COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3646
SELECT - 32 + + 47 * COUNT ( * ) AS col1
----
15

query I rowsort
SELECT + ( - 17 ) + - 16
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-3648
SELECT ALL 76 + + 50 + - 83 DIV + + 79 + + 53
----
178

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL 76 + + 50 + - 83 / + + 79 + + 53
----
178

query I rowsort
SELECT - 46 + + 62 + - 9 * + 64 + + 75 AS col2
----
-485

query I rowsort
SELECT + - 87 + + 15
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3651
SELECT DISTINCT + 77, - COALESCE ( CAST( NULL AS SIGNED ), - 43 ) - 21 * + 94 AS col0
----
77
-1931

skipif mysql # not compatible
query II rowsort label-3651
SELECT DISTINCT + 77, - COALESCE ( CAST ( NULL AS INTEGER ), - 43 ) - 21 * + 94 AS col0
----
77
-1931

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT + + ( + 14 ) * + COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3652
SELECT + + ( + 14 ) * + COUNT ( * ) AS col2
----
14

query I rowsort
SELECT + 18 * + - 70
----
-1260

query I rowsort
SELECT - COALESCE ( + - 74, - 91 ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT CAST( 98 AS SIGNED ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3655
SELECT CAST ( 98 AS INTEGER ) AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3656
SELECT + 2 * COUNT( * ) DIV + 37 * - 25
----
0

skipif mysql # not compatible
query I rowsort label-3656
SELECT + 2 * COUNT ( * ) / + 37 * - 25
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3657
SELECT ( - + COUNT( * ) ) AS col2, COALESCE ( + + 81, - COUNT( * ) + - 76 ) AS col2
----
-1
81

skipif mysql # not compatible
query II rowsort label-3657
SELECT ( - + COUNT ( * ) ) AS col2, COALESCE ( + + 81, - COUNT ( * ) + - 76 ) AS col2
----
-1
81

query II rowsort
SELECT ( + - 31 ) col2, 76 * + - 83 * - 85
----
-31
536180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3659
SELECT ALL + ( + COUNT( * ) ) DIV 67 - - 77 + - - 27 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL + ( + COUNT ( * ) ) / 67 - - 77 + - - 27 AS col0
----
104

query I rowsort
SELECT 36 * - 89 + 32 * - + 9
----
-3492

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT ( COUNT( DISTINCT + ( - 11 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3661
SELECT ( COUNT ( DISTINCT + ( - 11 ) ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3662
SELECT + ( - 42 ) AS col1, CASE - 5 WHEN + - COUNT( * ) THEN - CAST( NULL AS SIGNED ) WHEN 97 THEN NULL END AS col1
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-3662
SELECT + ( - 42 ) AS col1, CASE - 5 WHEN + - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) WHEN 97 THEN NULL END AS col1
----
-42
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT + 13 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3663
SELECT + 13 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3664
SELECT ALL + 46 * - CAST( - CASE + SUM( 92 ) WHEN CAST( + MIN( 30 ) AS SIGNED ) THEN NULL WHEN + 87 THEN - NULLIF ( 80, - COUNT( * ) * + 71 + - 62 ) WHEN COUNT( * ) + - 67 * + 58 * COUNT( * ) THEN NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL + 46 * - CAST ( - CASE + SUM ( 92 ) WHEN CAST ( + MIN ( 30 ) AS INTEGER ) THEN NULL WHEN + 87 THEN - NULLIF ( 80, - COUNT ( * ) * + 71 + - 62 ) WHEN COUNT ( * ) + - 67 * + 58 * COUNT ( * ) THEN NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3665
SELECT DISTINCT - 44 * - 68 + SUM( DISTINCT + - CAST( NULL AS DECIMAL ) ) + CAST( 15 AS SIGNED ) + - 67 + + 13 + 27 + 4 / + 94 * + - SUM( ALL - CAST( NULL AS SIGNED ) ) * - + MAX( + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT - 44 * - 68 + SUM ( DISTINCT + - CAST ( NULL AS REAL ) ) + CAST ( 15 AS INTEGER ) + - 67 + + 13 + 27 + 4 / + 94 * + - SUM ( ALL - CAST ( NULL AS INTEGER ) ) * - + MAX ( + 4 )
----
NULL

query I rowsort
SELECT NULLIF ( - 90, + 64 * + ( - ( - + AVG ( ALL - 84 ) ) ) + 75 / + + 77 + + 48 ) AS col2
----
-90

query I rowsort
SELECT DISTINCT + 10 * 45 + + 73 + + 35 AS col1
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT - 63 * - CASE - COUNT( * ) WHEN + COALESCE ( + COALESCE ( 64, + 29 ), - + 66 ) THEN + 73 ELSE NULL END + - + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3668
SELECT - 63 * - CASE - COUNT ( * ) WHEN + COALESCE ( + COALESCE ( 64, + 29 ), - + 66 ) THEN + 73 ELSE NULL END + - + 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT - 97 * - CASE + - 50 WHEN - MAX( ALL 97 ) * - 36 + - - 46 THEN NULL WHEN + + 25 - + 36 + - 92 + + - 90 THEN NULL ELSE 11 END * - 31 - 10
----
-33087

skipif mysql # not compatible
query I rowsort label-3669
SELECT - 97 * - CASE + - 50 WHEN - MAX ( ALL 97 ) * - 36 + - - 46 THEN NULL WHEN + + 25 - + 36 + - 92 + + - 90 THEN NULL ELSE 11 END * - 31 - 10
----
-33087

query I rowsort
SELECT ALL 18 * - 53 + + 8 AS col1
----
-946

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3671
SELECT - + 22 DIV 21 DIV + MIN( 42 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3671
SELECT - + 22 / 21 / + MIN ( 42 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT - + ( - COUNT( * ) ) * + - 59 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-3672
SELECT - + ( - COUNT ( * ) ) * + - 59 AS col0
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-3673
SELECT ALL + - 5 DIV 23 AS col0, - 31 DIV + 92 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-3673
SELECT ALL + - 5 / 23 AS col0, - 31 / + 92 AS col2
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL + + 39 / - - COALESCE ( + 26, 98 ) * 60 + - + 11 * - CASE - 31 WHEN - 10 THEN - SUM( + 93 ) WHEN + 21 THEN + - 36 WHEN 98 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL + + 39 / - - COALESCE ( + 26, 98 ) * 60 + - + 11 * - CASE - 31 WHEN - 10 THEN - SUM ( + 93 ) WHEN + 21 THEN + - 36 WHEN 98 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT + 9 - - + 92 * - MAX( ALL - 0 ) * - - 75 + 34 * - 63
----
-2133

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT + 9 - - + 92 * - MAX ( ALL - 0 ) * - - 75 + 34 * - 63
----
-2133

onlyif mysql # DIV for integer division: 
query I rowsort label-3676
SELECT ALL - + 63 * - 16 + ( + 21 ) DIV + + 39 AS col2
----
1008

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL - + 63 * - 16 + ( + 21 ) / + + 39 AS col2
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT - + COUNT( * ) + + 10
----
9

skipif mysql # not compatible
query I rowsort label-3677
SELECT - + COUNT ( * ) + + 10
----
9

query I rowsort
SELECT + + 15 * 44 + - 19 AS col0
----
641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3679
SELECT 20 + - + 23 + + + 3 + + - 64 * + - NULLIF ( - - 68, + COUNT( * ) * 48 / 82 + 33 - 65 * AVG ( DISTINCT - CAST( 47 AS SIGNED ) ) ) + - 2 - + 23 * + CAST( NULL AS SIGNED ) * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3679
SELECT 20 + - + 23 + + + 3 + + - 64 * + - NULLIF ( - - 68, + COUNT ( * ) * 48 / 82 + 33 - 65 * AVG ( DISTINCT - CAST ( 47 AS INTEGER ) ) ) + - 2 - + 23 * + CAST ( NULL AS INTEGER ) * - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT COUNT( * ) + + - 44 + 42 * 40 + 77 col0
----
1714

skipif mysql # not compatible
query I rowsort label-3680
SELECT COUNT ( * ) + + - 44 + 42 * 40 + 77 col0
----
1714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3681
SELECT COUNT( * ) * - COUNT( * ) DIV + 44
----
0

skipif mysql # not compatible
query I rowsort label-3681
SELECT COUNT ( * ) * - COUNT ( * ) / + 44
----
0

query I rowsort
SELECT 18 + - ( - 29 )
----
47

query II rowsort
SELECT DISTINCT 82 AS col1, 15 AS col0
----
82
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3684
SELECT ALL CAST( NULL AS SIGNED ) * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL CAST ( NULL AS INTEGER ) * + 38
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3685
SELECT ALL ( + 61 ) DIV MAX( DISTINCT + - 36 ) AS col1, - ( - 30 ) * + - ( - 67 ) + COALESCE ( - 54, + 38 ) + + 9 * 92 * + 2 AS col1
----
-1
3612

skipif mysql # not compatible
query II rowsort label-3685
SELECT ALL ( + 61 ) / MAX ( DISTINCT + - 36 ) AS col1, - ( - 30 ) * + - ( - 67 ) + COALESCE ( - 54, + 38 ) + + 9 * 92 * + 2 AS col1
----
-1
3612

query I rowsort
SELECT ( ( 76 ) ) * + 44 AS col1
----
3344

query II rowsort
SELECT + 44 AS col2, + 27 col0
----
44
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3688
SELECT ALL COUNT( * ) + - COUNT( ALL + CAST( + 3 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL COUNT ( * ) + - COUNT ( ALL + CAST ( + 3 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3689
SELECT - COUNT( - 86 ) * ( - 63 ) + + COUNT( * ) * COUNT( * ) + - 2 * + + 12, ( + 12 ) col0
----
40
12

skipif mysql # not compatible
query II rowsort label-3689
SELECT - COUNT ( - 86 ) * ( - 63 ) + + COUNT ( * ) * COUNT ( * ) + - 2 * + + 12, ( + 12 ) col0
----
40
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3690
SELECT + 10, COUNT( - CASE - - 98 WHEN 81 THEN 39 ELSE + 39 END ) * - 41 AS col2
----
10
-41

skipif mysql # not compatible
query II rowsort label-3690
SELECT + 10, COUNT ( - CASE - - 98 WHEN 81 THEN 39 ELSE + 39 END ) * - 41 AS col2
----
10
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3691
SELECT ALL 77 + + 48 + - + NULLIF ( + + 73, - NULLIF ( + ( COUNT( * ) ), 95 * + CAST( NULL AS SIGNED ) ) ) AS col2, + ( - COUNT( * ) ) + - ( - 71 ) * + 84 AS col2
----
52
5963

skipif mysql # not compatible
query II rowsort label-3691
SELECT ALL 77 + + 48 + - + NULLIF ( + + 73, - NULLIF ( + ( COUNT ( * ) ), 95 * + CAST ( NULL AS INTEGER ) ) ) AS col2, + ( - COUNT ( * ) ) + - ( - 71 ) * + 84 AS col2
----
52
5963

query II rowsort
SELECT DISTINCT - 91 AS col0, + 44 + - + 91
----
-91
-47

query II rowsort
SELECT ALL + 42 + 7 + - + 27 AS col1, 38 AS col1
----
22
38

query I rowsort
SELECT ( - 37 ) * 54 * + 27 col1
----
-53946

query I rowsort
SELECT 68 + 57 + + - 29 AS col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3696
SELECT ALL 23 DIV COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL 23 / COUNT ( * ) AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3697
SELECT + SUM( ALL + CAST( 35 AS SIGNED ) )
----
35

skipif mysql # not compatible
query I rowsort label-3697
SELECT + SUM ( ALL + CAST ( 35 AS INTEGER ) )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT 14 DIV 11 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3698
SELECT 14 / 11 AS col0
----
1

query II rowsort
SELECT + 46, + 75 + - + 29 - + 14 col1
----
46
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3700
SELECT 94 + + COUNT( * ) + 31 DIV 41 + - + 17 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3700
SELECT 94 + + COUNT ( * ) + 31 / 41 + - + 17 AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3701
SELECT ALL + + NULLIF ( + + COUNT( * ), ( 24 ) ) * - + NULLIF ( - CAST( - AVG ( DISTINCT - 25 ) AS SIGNED ), - - 67 * - ( + + 24 ) )
----
25

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL + + NULLIF ( + + COUNT ( * ), ( 24 ) ) * - + NULLIF ( - CAST ( - AVG ( DISTINCT - 25 ) AS INTEGER ), - - 67 * - ( + + 24 ) )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3702
SELECT - COUNT( * ) + + 73 DIV 12 - + 11 col0
----
-6

skipif mysql # not compatible
query I rowsort label-3702
SELECT - COUNT ( * ) + + 73 / 12 - + 11 col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3703
SELECT DISTINCT + 38 - - CAST( 8 AS SIGNED ) - - 74 * + + 93 AS col2
----
6928

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT + 38 - - CAST ( 8 AS INTEGER ) - - 74 * + + 93 AS col2
----
6928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3704
SELECT + + 5 * AVG ( DISTINCT + - 54 ) + + + 10 / - - CAST( NULL AS SIGNED ) / - AVG ( ALL - 22 ) + COUNT( * ) AS col2, 60
----
NULL
60

skipif mysql # not compatible
query II rowsort label-3704
SELECT + + 5 * AVG ( DISTINCT + - 54 ) + + + 10 / - - CAST ( NULL AS INTEGER ) / - AVG ( ALL - 22 ) + COUNT ( * ) AS col2, 60
----
NULL
60

query I rowsort
SELECT + 21 * - 81
----
-1701

query I rowsort
SELECT ALL ( + 9 ) AS col2
----
9

query I rowsort
SELECT DISTINCT + 97 - 85 - - 91 * - 82
----
-7450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3708
SELECT + CAST( 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-3708
SELECT + CAST ( 77 AS INTEGER )
----
77

query I rowsort
SELECT 32 + + 13 AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3710
SELECT ALL - CAST( NULL AS SIGNED ) * 79 * - 66 + - + MAX( - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL - CAST ( NULL AS INTEGER ) * 79 * - 66 + - + MAX ( - 89 )
----
NULL

query I rowsort
SELECT 34 * - 2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-3712
SELECT 15 DIV - + 37 * + + 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3712
SELECT 15 / - + 37 * + + 45 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3713
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 92 * NULLIF ( + 91, + 90 * 75 * + - 33 * COUNT( * ) ) * - 17 + + COUNT( ALL 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 92 * NULLIF ( + 91, + 90 * 75 * + - 33 * COUNT ( * ) ) * - 17 + + COUNT ( ALL 65 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3714
SELECT 5 DIV MIN( + - ( + 32 ) ) * 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3714
SELECT 5 / MIN ( + - ( + 32 ) ) * 36 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT 40 DIV 3 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-3715
SELECT 40 / 3 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT DISTINCT - COUNT( * ) + 44 col0
----
43

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT - COUNT ( * ) + 44 col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3717
SELECT CASE + 80 WHEN + 25 THEN 55 END * CAST( + 70 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3717
SELECT CASE + 80 WHEN + 25 THEN 55 END * CAST ( + 70 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3718
SELECT ALL - CAST( NULL AS DECIMAL ) + - 30 / + COUNT( * ) * + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL - CAST ( NULL AS REAL ) + - 30 / + COUNT ( * ) * + 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3719
SELECT DISTINCT COUNT( + 31 ) AS col2, 29 * 81
----
1
2349

skipif mysql # not compatible
query II rowsort label-3719
SELECT DISTINCT COUNT ( + 31 ) AS col2, 29 * 81
----
1
2349

onlyif mysql # DIV for integer division: 
query II rowsort label-3720
SELECT + ( 22 ) DIV 89 + + - 13 AS col0, + 91 * 57
----
-13
5187

skipif mysql # not compatible
query II rowsort label-3720
SELECT + ( 22 ) / 89 + + - 13 AS col0, + 91 * 57
----
-13
5187

onlyif mysql # DIV for integer division: 
query I rowsort label-3721
SELECT DISTINCT 42 + 99 DIV + 17 + + 16 + + 49 AS col0
----
112

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT 42 + 99 / + 17 + + 16 + + 49 AS col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL + COUNT( * ) + + - 8
----
-7

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL + COUNT ( * ) + + - 8
----
-7

query I rowsort
SELECT ALL 36 + + 7 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT ALL 41 + - + COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL 41 + - + COUNT ( * ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT MAX( ALL - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-3725
SELECT MAX ( ALL - 44 )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3726
SELECT - 85 DIV - + 55 + - - COUNT( * ) + COUNT( * ) * - - 87 + - + 74 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3726
SELECT - 85 / - + 55 + - - COUNT ( * ) + COUNT ( * ) * - - 87 + - + 74 AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT + - COALESCE ( + CAST( NULL AS SIGNED ), + 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-3727
SELECT + - COALESCE ( + CAST ( NULL AS INTEGER ), + 78 ) AS col2
----
-78

query I rowsort
SELECT - 68 + + ( - + 85 )
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-3729
SELECT DISTINCT - MIN( ALL - + 22 ) AS col0, - MIN( DISTINCT 9 )
----
22
-9

skipif mysql # not compatible
query II rowsort label-3729
SELECT DISTINCT - MIN ( ALL - + 22 ) AS col0, - MIN ( DISTINCT 9 )
----
22
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3730
SELECT ALL + + MIN( + ( + 82 ) ) - 79 AS col0, 15
----
3
15

skipif mysql # not compatible
query II rowsort label-3730
SELECT ALL + + MIN ( + ( + 82 ) ) - 79 AS col0, 15
----
3
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3731
SELECT + 34 * - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT + 34 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3732
SELECT + COALESCE ( + + CASE ( + 50 ) WHEN - + 2 THEN - 59 DIV - 2 END, + 9 + + 37 * 46 )
----
1711

skipif mysql # not compatible
query I rowsort label-3732
SELECT + COALESCE ( + + CASE ( + 50 ) WHEN - + 2 THEN - 59 / - 2 END, + 9 + + 37 * 46 )
----
1711

query I rowsort
SELECT - 1 - ( + 32 )
----
-33

query I rowsort
SELECT + 75 * + - 64 * - - 12 col0
----
-57600

query I rowsort
SELECT - 89 * + 42 * + - 84
----
313992

query I rowsort
SELECT + 56 - + 92
----
-36

query I rowsort
SELECT - CASE + 88 WHEN + + 55 THEN NULL ELSE 43 END AS col1
----
-43

query I rowsort
SELECT + 2 + - 97
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3739
SELECT - NULLIF ( - 61, - - 73 * MAX( - CAST( NULL AS SIGNED ) ) + + 36 + + 89 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-3739
SELECT - NULLIF ( - 61, - - 73 * MAX ( - CAST ( NULL AS INTEGER ) ) + + 36 + + 89 ) AS col0
----
61

query I rowsort
SELECT + 96 + - + 75
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT ALL COUNT( + + ( - + NULLIF ( + 58, 32 * + + 74 + 56 * 16 + + - COALESCE ( + - 65, + ( + 40 ) - + 0 ) ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL COUNT ( + + ( - + NULLIF ( + 58, 32 * + + 74 + 56 * 16 + + - COALESCE ( + - 65, + ( + 40 ) - + 0 ) ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT - 72 + + ( MAX( + - 52 ) )
----
-124

skipif mysql # not compatible
query I rowsort label-3742
SELECT - 72 + + ( MAX ( + - 52 ) )
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT - COUNT( * ) + + + 17 + + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-3743
SELECT - COUNT ( * ) + + + 17 + + COUNT ( * )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3744
SELECT ALL CAST( CASE - + 2 WHEN + 29 THEN COUNT( * ) * + 39 + + 29 WHEN - 4 THEN - ( - 34 ) * - + 35 * COUNT( * ) END AS SIGNED ) + + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL CAST ( CASE - + 2 WHEN + 29 THEN COUNT ( * ) * + 39 + + 29 WHEN - 4 THEN - ( - 34 ) * - + 35 * COUNT ( * ) END AS INTEGER ) + + 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3745
SELECT DISTINCT COUNT( * ) DIV - 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT COUNT ( * ) / - 46 AS col1
----
0

query I rowsort
SELECT ALL + 87 + - 21 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT - COUNT( * ) * + + 82 * + 95 * + + 89 * + ( + 8 ) * - + 62 AS col2
----
343881760

skipif mysql # not compatible
query I rowsort label-3747
SELECT - COUNT ( * ) * + + 82 * + 95 * + + 89 * + ( + 8 ) * - + 62 AS col2
----
343881760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3748
SELECT ALL + COALESCE ( CAST( + MAX( DISTINCT 76 ) AS SIGNED ), + COUNT( * ) - + 51 * + 74 ) * - 9
----
-684

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL + COALESCE ( CAST ( + MAX ( DISTINCT 76 ) AS INTEGER ), + COUNT ( * ) - + 51 * + 74 ) * - 9
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT 87 * + + MIN( - 38 ) + - 86 col2
----
-3392

skipif mysql # not compatible
query I rowsort label-3749
SELECT 87 * + + MIN ( - 38 ) + - 86 col2
----
-3392

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT ALL 99 * COUNT( * ) - 76 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL 99 * COUNT ( * ) - 76 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT - COUNT( * ) * - 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-3751
SELECT - COUNT ( * ) * - 26 AS col1
----
26

query I rowsort
SELECT - 82 + - 69
----
-151

query I rowsort
SELECT - NULLIF ( - 39, - 98 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT + COALESCE ( - 65, - 24 + + 4 + + + 41 + 15 * 32 * 47 * + 92 ) * 89 + + MIN( + - 7 )
----
-5792

skipif mysql # not compatible
query I rowsort label-3754
SELECT + COALESCE ( - 65, - 24 + + 4 + + + 41 + 15 * 32 * 47 * + 92 ) * 89 + + MIN ( + - 7 )
----
-5792

query I rowsort
SELECT ALL + - ( 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT DISTINCT + - COALESCE ( - + 4, - SUM( DISTINCT - - 75 ), - - 36, - MIN( DISTINCT + 83 ) ) col0
----
4

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT + - COALESCE ( - + 4, - SUM ( DISTINCT - - 75 ), - - 36, - MIN ( DISTINCT + 83 ) ) col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3757
SELECT + 3 * 87 - + 18 + 89 * + 94 + 27 - - 11 + 17 * - + 77 / - + 46 * - + COUNT( * ) * + NULLIF ( + CAST( NULL AS DECIMAL ), COUNT( * ) ) * - 68 + - 3 - - - ( + 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3757
SELECT + 3 * 87 - + 18 + 89 * + 94 + 27 - - 11 + 17 * - + 77 / - + 46 * - + COUNT ( * ) * + NULLIF ( + CAST ( NULL AS REAL ), COUNT ( * ) ) * - 68 + - 3 - - - ( + 1 ) AS col0
----
NULL

query I rowsort
SELECT - ( - - ( 52 ) )
----
-52

query II rowsort
SELECT DISTINCT + + 97, - 6 * 30 AS col0
----
97
-180

query I rowsort
SELECT - 76 * - + 35 + + - 68 AS col0
----
2592

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3761
SELECT ALL - + 19 * - CAST( + 89 AS SIGNED ), - 24 * + 21 - + 97 col2
----
1691
-601

skipif mysql # not compatible
query II rowsort label-3761
SELECT ALL - + 19 * - CAST ( + 89 AS INTEGER ), - 24 * + 21 - + 97 col2
----
1691
-601

query II rowsort
SELECT + + 49 AS col1, + 8 * + 99 AS col2
----
49
792

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT + + 2 - COUNT( * ) + - 4 + + 52 col1
----
49

skipif mysql # not compatible
query I rowsort label-3763
SELECT + + 2 - COUNT ( * ) + - 4 + + 52 col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT ALL CAST( NULL AS SIGNED ) * - AVG ( DISTINCT 68 ) / - 95 + COALESCE ( + - ( + + 80 ), 92 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT 68 ) / - 95 + COALESCE ( + - ( + + 80 ), 92 ) AS col2
----
NULL

query I rowsort
SELECT - + 33 + + + 2 AS col0
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3766
SELECT ALL + ( - 89 ) * - AVG ( CASE 71 WHEN 50 THEN CAST( NULL AS DECIMAL ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL + ( - 89 ) * - AVG ( CASE 71 WHEN 50 THEN CAST ( NULL AS REAL ) ELSE NULL END )
----
NULL

query I rowsort
SELECT + - 58 + + - 89 AS col1
----
-147

query I rowsort
SELECT ALL + ( + 39 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3769
SELECT COUNT( + CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3769
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT DISTINCT - - 15 * - 70 AS col0
----
-1050

query I rowsort
SELECT + 48 + - + 3
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3772
SELECT DISTINCT 88 DIV - - MAX( + 12 )
----
7

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT 88 / - - MAX ( + 12 )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3773
SELECT - 3 DIV - - 16
----
0

skipif mysql # not compatible
query I rowsort label-3773
SELECT - 3 / - - 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT + COUNT( * ) + - 0
----
1

skipif mysql # not compatible
query I rowsort label-3774
SELECT + COUNT ( * ) + - 0
----
1

query I rowsort
SELECT + 20 * - 45
----
-900

onlyif mysql # DIV for integer division: 
query II rowsort label-3776
SELECT 89 AS col1, 19 DIV + + 67 AS col1
----
89
0

skipif mysql # not compatible
query II rowsort label-3776
SELECT 89 AS col1, 19 / + + 67 AS col1
----
89
0

query I rowsort
SELECT + 85 + + 30 + - 22
----
93

query I rowsort
SELECT - NULLIF ( COALESCE ( + 92, ( + - 68 ) ), 11 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3779
SELECT 70 AS col1, ( 65 ) * + CAST( NULL AS SIGNED ) + - - 9 * + - 56 * - - 13 AS col2
----
70
NULL

skipif mysql # not compatible
query II rowsort label-3779
SELECT 70 AS col1, ( 65 ) * + CAST ( NULL AS INTEGER ) + - - 9 * + - 56 * - - 13 AS col2
----
70
NULL

query II rowsort
SELECT DISTINCT 35 AS col1, + 81 + + 97
----
35
178

onlyif mysql # aggregate syntax: 
query II rowsort label-3781
SELECT + 49 * + COUNT( ALL - 28 ) * + 35 col1, ( + - 26 )
----
1715
-26

skipif mysql # not compatible
query II rowsort label-3781
SELECT + 49 * + COUNT ( ALL - 28 ) * + 35 col1, ( + - 26 )
----
1715
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL 60 + - 48 + COUNT( * ) + 50 + - - 0
----
63

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL 60 + - 48 + COUNT ( * ) + 50 + - - 0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3783
SELECT - CAST( + 45 AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-3783
SELECT - CAST ( + 45 AS INTEGER )
----
-45

query I rowsort
SELECT - ( + - 33 )
----
33

query II rowsort
SELECT 7, - ( + 71 ) AS col0
----
7
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT ALL 1 - 55 + - - 28 + - COALESCE ( + 44, + - COUNT( * ) * + 27 + + 64 ) * + + 18
----
-818

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL 1 - 55 + - - 28 + - COALESCE ( + 44, + - COUNT ( * ) * + 27 + + 64 ) * + + 18
----
-818

query I rowsort
SELECT - ( 68 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3788
SELECT ALL + COUNT( * ) col2, 76 + - - CAST( 64 AS DECIMAL ) * + CAST( NULL AS SIGNED ) + + + 33 + - 26
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3788
SELECT ALL + COUNT ( * ) col2, 76 + - - CAST ( 64 AS REAL ) * + CAST ( NULL AS INTEGER ) + + + 33 + - 26
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3789
SELECT + 82 DIV + 73 + + NULLIF ( + COALESCE ( + 17, - SUM( DISTINCT - 25 ) * + COUNT( * ) DIV - 32 ), - COUNT( * ) DIV 10 + + - 31 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3789
SELECT + 82 / + 73 + + NULLIF ( + COALESCE ( + 17, - SUM ( DISTINCT - 25 ) * + COUNT ( * ) / - 32 ), - COUNT ( * ) / 10 + + - 31 ) AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3790
SELECT ALL MAX( ALL - - 22 ) DIV - - 78 - 61
----
-61

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL MAX ( ALL - - 22 ) / - - 78 - 61
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3791
SELECT DISTINCT + 33, - COUNT( * ) + - 11 - + 56 AS col1
----
33
-68

skipif mysql # not compatible
query II rowsort label-3791
SELECT DISTINCT + 33, - COUNT ( * ) + - 11 - + 56 AS col1
----
33
-68

query I rowsort
SELECT ALL + - 96 * - - 27 + + 0 + + 18 * 42
----
-1836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT ALL 64 / + - 0 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL 64 / + - 0 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT ALL - - 84 * - COALESCE ( - NULLIF ( 56, - + COUNT( * ) + + - COUNT( * ) - - 47 ), + + 24 ) + + + 92 * - COUNT( * )
----
4612

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - - 84 * - COALESCE ( - NULLIF ( 56, - + COUNT ( * ) + + - COUNT ( * ) - - 47 ), + + 24 ) + + + 92 * - COUNT ( * )
----
4612

query I rowsort
SELECT + 75 * + 64 + + - 98 AS col2
----
4702

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT - 88 DIV 27 * - 59 + - 82
----
95

skipif mysql # not compatible
query I rowsort label-3796
SELECT - 88 / 27 * - 59 + - 82
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT ALL - + 17 * SUM( 78 ) AS col1
----
-1326

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL - + 17 * SUM ( 78 ) AS col1
----
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT - 74 * - CASE 38 WHEN - 93 THEN + 76 WHEN + 14 THEN 76 + - COUNT( * ) + - - 69 WHEN + + 32 * - - 72 THEN COUNT( * ) * - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT - 74 * - CASE 38 WHEN - 93 THEN + 76 WHEN + 14 THEN 76 + - COUNT ( * ) + - - 69 WHEN + + 32 * - - 72 THEN COUNT ( * ) * - 28 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT MIN( 86 ) * + 24 AS col0
----
2064

skipif mysql # not compatible
query I rowsort label-3799
SELECT MIN ( 86 ) * + 24 AS col0
----
2064

query II rowsort
SELECT + + 77 * - 58 * + + COALESCE ( - 32, + 79 ) + + 11 AS col1, 69 AS col0
----
142923
69

query I rowsort
SELECT ALL - + ( - 24 ) * - + 7 AS col0
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3802
SELECT DISTINCT - SUM( + + 83 ) AS col2, 44 DIV COUNT( * ) + - SUM( + 95 )
----
-83
-51

skipif mysql # not compatible
query II rowsort label-3802
SELECT DISTINCT - SUM ( + + 83 ) AS col2, 44 / COUNT ( * ) + - SUM ( + 95 )
----
-83
-51

query I rowsort
SELECT DISTINCT - - 89 col1
----
89

query I rowsort
SELECT ALL - - 12 + - 11 AS col1
----
1

query I rowsort
SELECT - 46 * 87 * - 58
----
232116

query I rowsort
SELECT ALL + - 0 + + 12 + + + COALESCE ( 93, - + 26, + - 98 * - 92 * + - 7 * - 32 )
----
105

query I rowsort
SELECT 97 - - 64 * 43 + + 15 + - + 43 * - + ( - + 36 ) + 98 * - 77 AS col1
----
-6230

onlyif mysql # DIV for integer division: 
query I rowsort label-3808
SELECT 24 - 57 DIV - 46
----
25

skipif mysql # not compatible
query I rowsort label-3808
SELECT 24 - 57 / - 46
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3809
SELECT CASE + 35 WHEN - CAST( + + 58 AS SIGNED ) THEN - MIN( ALL ( + + 5 ) ) WHEN + + 62 * 21 - COALESCE ( COUNT( * ), - + 40, - - COALESCE ( + COUNT( + + ( + - 92 ) ), 89 ) * + - 37 ) * 45 - + 96 THEN + 59 END * - 59 / + - 61 * - - NULLIF ( 26, - - 76 / + - ( + 53 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3809
SELECT CASE + 35 WHEN - CAST ( + + 58 AS INTEGER ) THEN - MIN ( ALL ( + + 5 ) ) WHEN + + 62 * 21 - COALESCE ( COUNT ( * ), - + 40, - - COALESCE ( + COUNT ( + + ( + - 92 ) ), 89 ) * + - 37 ) * 45 - + 96 THEN + 59 END * - 59 / + - 61 * - - NULLIF ( 26, - - 76 / + - ( + 53 ) ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT DISTINCT 26 + - 59 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT 26 + - 59 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT COALESCE ( - - 54, + + 66 ) * + 74 * ( 1 ) + + 56 + - ( COUNT( DISTINCT 67 ) )
----
4051

skipif mysql # not compatible
query I rowsort label-3811
SELECT COALESCE ( - - 54, + + 66 ) * + 74 * ( 1 ) + + 56 + - ( COUNT ( DISTINCT 67 ) )
----
4051

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT 59 - 16 * + COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-3812
SELECT 59 - 16 * + COUNT ( * ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3813
SELECT COUNT( * ) + 77 AS col0, 3 + + - 4 * - COALESCE ( + COUNT( * ), - 78 )
----
78
7

skipif mysql # not compatible
query II rowsort label-3813
SELECT COUNT ( * ) + 77 AS col0, 3 + + - 4 * - COALESCE ( + COUNT ( * ), - 78 )
----
78
7

onlyif mysql # DIV for integer division: 
query II rowsort label-3814
SELECT ( + 84 ) DIV - 14 AS col0, 27 + + 74 + 95
----
-6
196

skipif mysql # not compatible
query II rowsort label-3814
SELECT ( + 84 ) / - 14 AS col0, 27 + + 74 + 95
----
-6
196

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT COUNT( * ) * 68 col2
----
68

skipif mysql # not compatible
query I rowsort label-3815
SELECT COUNT ( * ) * 68 col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT 49 * CASE + COUNT( * ) WHEN + - 1 THEN NULL WHEN - 70 THEN + 25 / - 53 END * + + 85 + - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT 49 * CASE + COUNT ( * ) WHEN + - 1 THEN NULL WHEN - 70 THEN + 25 / - 53 END * + + 85 + - 6 AS col1
----
NULL

query II rowsort
SELECT 87 * + + 52 AS col2, + 1 * - - 82 + - + 17 - 22 AS col0
----
4524
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT 58 + - + MIN( - 41 )
----
99

skipif mysql # not compatible
query I rowsort label-3818
SELECT 58 + - + MIN ( - 41 )
----
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3819
SELECT 94 DIV + - CAST( - 55 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3819
SELECT 94 / + - CAST ( - 55 AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT SUM( ALL + - 71 ) * + ( COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-3820
SELECT SUM ( ALL + - 71 ) * + ( COUNT ( * ) )
----
-71

query I rowsort
SELECT 77 + + 3 * + 4 * + - 76 + + - 99 AS col0
----
-934

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT COUNT( * ) * + + MAX( + ( - 9 ) ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT COUNT ( * ) * + + MAX ( + ( - 9 ) ) col1
----
-9

query II rowsort
SELECT ALL 52 * + 74 + - 9, - 79 AS col0
----
3839
-79

query I rowsort
SELECT 6 + - 84 * - 8 + + 72 AS col2
----
750

query I rowsort
SELECT DISTINCT - ( + 87 ) * - - 65 - - 6
----
-5649

onlyif mysql # aggregate syntax: 
query II rowsort label-3826
SELECT ALL - SUM( DISTINCT + 55 ), + 3 + - SUM( DISTINCT 88 ) * + COUNT( * ) AS col1
----
-55
-85

skipif mysql # not compatible
query II rowsort label-3826
SELECT ALL - SUM ( DISTINCT + 55 ), + 3 + - SUM ( DISTINCT 88 ) * + COUNT ( * ) AS col1
----
-55
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3827
SELECT + CASE 56 WHEN + + 39 * + - ( - 61 ) + - 25 / 20 THEN + 98 * - 12 WHEN COALESCE ( + - MIN( DISTINCT + + CAST( + ( 23 ) AS SIGNED ) ), 5 ) * + 83 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3827
SELECT + CASE 56 WHEN + + 39 * + - ( - 61 ) + - 25 / 20 THEN + 98 * - 12 WHEN COALESCE ( + - MIN ( DISTINCT + + CAST ( + ( 23 ) AS INTEGER ) ), 5 ) * + 83 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT - - CAST( NULL AS SIGNED ) / - 46 + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT - - CAST ( NULL AS INTEGER ) / - 46 + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3829
SELECT + CASE + 94 WHEN 59 THEN + AVG ( + + 51 ) WHEN - NULLIF ( + 97, + 84 ) / - - 72 * - 72 + + ( + - 42 ) + 15 THEN + 81 + - NULLIF ( + 72, + 14 ) + 48 * COUNT( * ) * AVG ( + 75 ) * - 50 * - + 25 / - 95 * - 29 ELSE 25 + + + 61 END AS col1, + 43 + + - 29
----
86
14

skipif mysql # not compatible
query II rowsort label-3829
SELECT + CASE + 94 WHEN 59 THEN + AVG ( + + 51 ) WHEN - NULLIF ( + 97, + 84 ) / - - 72 * - 72 + + ( + - 42 ) + 15 THEN + 81 + - NULLIF ( + 72, + 14 ) + 48 * COUNT ( * ) * AVG ( + 75 ) * - 50 * - + 25 / - 95 * - 29 ELSE 25 + + + 61 END AS col1, + 43 + + - 29
----
86
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT - 94 DIV - 24
----
3

skipif mysql # not compatible
query I rowsort label-3830
SELECT - 94 / - 24
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3831
SELECT DISTINCT + 89 * COUNT( * ) AS col2, + 11 AS col0
----
89
11

skipif mysql # not compatible
query II rowsort label-3831
SELECT DISTINCT + 89 * COUNT ( * ) AS col2, + 11 AS col0
----
89
11

query I rowsort
SELECT DISTINCT 82 + - 95 col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT + COUNT( * ) + - - COUNT( * ) + - - 91 * + + 28 + + 25
----
2575

skipif mysql # not compatible
query I rowsort label-3833
SELECT + COUNT ( * ) + - - COUNT ( * ) + - - 91 * + + 28 + + 25
----
2575

query I rowsort
SELECT ALL - 45 + - 28 + + - COALESCE ( - 70, 97 )
----
-3

query I rowsort
SELECT ALL - - 4 col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT + COUNT( * ) * + - 84 + + 68 - - + 5 + NULLIF ( + 45, - COUNT( * ) ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3836
SELECT + COUNT ( * ) * + - 84 + + 68 - - + 5 + NULLIF ( + 45, - COUNT ( * ) ) AS col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3837
SELECT - + COUNT( * ) * - - CAST( NULL AS DECIMAL ) + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT - + COUNT ( * ) * - - CAST ( NULL AS REAL ) + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - + 27 col1
----
-27

query I rowsort
SELECT 55 - 41 * - - 39
----
-1544

onlyif mysql # DIV for integer division: 
query I rowsort label-3840
SELECT 33 + - 41 DIV - 94 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-3840
SELECT 33 + - 41 / - 94 AS col0
----
33

query I rowsort
SELECT ALL + 18 + 13 AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-3842
SELECT ALL - 78 AS col0, 6 * - - 66 * COUNT( * )
----
-78
396

skipif mysql # not compatible
query II rowsort label-3842
SELECT ALL - 78 AS col0, 6 * - - 66 * COUNT ( * )
----
-78
396

query II rowsort
SELECT 22, - 33 col1
----
22
-33

query II rowsort
SELECT - 79 AS col0, 74 AS col0
----
-79
74

query II rowsort
SELECT ALL 80 AS col0, + 89 * - + ( + - 27 ) * + 44
----
80
105732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT DISTINCT - CAST( - AVG ( + - NULLIF ( - + 10, 66 ) ) AS SIGNED ) - CAST( 35 AS SIGNED ) * + 37
----
-1285

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - CAST ( - AVG ( + - NULLIF ( - + 10, 66 ) ) AS INTEGER ) - CAST ( 35 AS INTEGER ) * + 37
----
-1285

query I rowsort
SELECT 68 + + 3 AS col0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-3848
SELECT - 90, - COUNT( * ) AS col1
----
-90
-1

skipif mysql # not compatible
query II rowsort label-3848
SELECT - 90, - COUNT ( * ) AS col1
----
-90
-1

query I rowsort
SELECT DISTINCT + 83 * + 66 * + 93
----
509454

query II rowsort
SELECT - 48 col0, + 50 col0
----
-48
50

query I rowsort
SELECT ALL 71 * - ( + 34 )
----
-2414

query I rowsort
SELECT 74 * - NULLIF ( + 64, - 83 * 81 + + 6 ) * - 50 AS col2
----
236800

query I rowsort
SELECT DISTINCT - 83 * + + 32
----
-2656

query I rowsort
SELECT DISTINCT 61 col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT MAX( ALL + + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT MAX ( ALL + + 37 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3856
SELECT ALL NULLIF ( 86, - 70 * + 67 + - + ( + + NULLIF ( - + CAST( - - ( 4 ) AS SIGNED ), + ( - SUM( - - 66 ) ) * 74 + - 53 + COUNT( * ) - - 82 + - + ( 79 ) + - - 21 ) ) * 54 * + 60 )
----
86

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL NULLIF ( 86, - 70 * + 67 + - + ( + + NULLIF ( - + CAST ( - - ( 4 ) AS INTEGER ), + ( - SUM ( - - 66 ) ) * 74 + - 53 + COUNT ( * ) - - 82 + - + ( 79 ) + - - 21 ) ) * 54 * + 60 )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT 27 AS col1, - ( + 85 ) * - COUNT( * ) * + + MIN( ALL - - 2 ) AS col1
----
27
170

skipif mysql # not compatible
query II rowsort label-3857
SELECT 27 AS col1, - ( + 85 ) * - COUNT ( * ) * + + MIN ( ALL - - 2 ) AS col1
----
27
170

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT + 29 * - NULLIF ( + COUNT( * ), 26 ) + + 69 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-3858
SELECT + 29 * - NULLIF ( + COUNT ( * ), 26 ) + + 69 AS col1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3859
SELECT + + 23 * 45 - - 43 AS col0, + COUNT( * ) * - + 70 * + + MIN( + 23 ) * - + 30
----
1078
48300

skipif mysql # not compatible
query II rowsort label-3859
SELECT + + 23 * 45 - - 43 AS col0, + COUNT ( * ) * - + 70 * + + MIN ( + 23 ) * - + 30
----
1078
48300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3860
SELECT - + CAST( 45 AS SIGNED ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-3860
SELECT - + CAST ( 45 AS INTEGER ) AS col2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3861
SELECT ALL - COALESCE ( - 98, + 24 * + 2 DIV NULLIF ( - 22, + COUNT( * ) ) ) + + + 8 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL - COALESCE ( - 98, + 24 * + 2 / NULLIF ( - 22, + COUNT ( * ) ) ) + + + 8 AS col2
----
106

query I rowsort
SELECT - - 37 - - + 26 - - - NULLIF ( - 89, + 40 ) * 21 + 95 AS col0
----
2027

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3863
SELECT + SUM( DISTINCT CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) ) * - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT + SUM ( DISTINCT CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) ) * - 69 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 44 col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3865
SELECT COUNT( * ) AS col2, 35 AS col2
----
1
35

skipif mysql # not compatible
query II rowsort label-3865
SELECT COUNT ( * ) AS col2, 35 AS col2
----
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT ALL + 69 * + COALESCE ( - 76, - 54 * 45 ) + - 99 * + COUNT( * )
----
-5343

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL + 69 * + COALESCE ( - 76, - 54 * 45 ) + - 99 * + COUNT ( * )
----
-5343

query I rowsort
SELECT DISTINCT + - 86 * 63 + 31 AS col1
----
-5387

query I rowsort
SELECT + + 21 * + + 83
----
1743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3869
SELECT ALL + COALESCE ( 2, + + 18 * SUM( + 87 ), MIN( 44 ) ) * - 3 DIV - 16 * + + 17 * - - ( + - 94 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL + COALESCE ( 2, + + 18 * SUM ( + 87 ), MIN ( 44 ) ) * - 3 / - 16 * + + 17 * - - ( + - 94 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3870
SELECT DISTINCT + - CAST( + - 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT + - CAST ( + - 21 AS INTEGER )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3871
SELECT + 67 * - + 32 + + + NULLIF ( 84, + 1 * 20 + 9 ) + + + CAST( NULL AS SIGNED ), ( 25 ) + - 16 - + + 33 AS col1
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-3871
SELECT + 67 * - + 32 + + + NULLIF ( 84, + 1 * 20 + 9 ) + + + CAST ( NULL AS INTEGER ), ( 25 ) + - 16 - + + 33 AS col1
----
NULL
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT DISTINCT + CASE - - AVG ( DISTINCT - ( + 68 ) ) WHEN - 65 * - + 67 THEN NULL ELSE - + 45 + + + 91 END * - 68 * - COUNT( * ) - - ( + 59 ) - - - 19
----
3168

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT + CASE - - AVG ( DISTINCT - ( + 68 ) ) WHEN - 65 * - + 67 THEN NULL ELSE - + 45 + + + 91 END * - 68 * - COUNT ( * ) - - ( + 59 ) - - - 19
----
3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3873
SELECT - 55 * + - 31 * + COALESCE ( + 95, - 26, CAST( - 88 AS SIGNED ) ) AS col2
----
161975

skipif mysql # not compatible
query I rowsort label-3873
SELECT - 55 * + - 31 * + COALESCE ( + 95, - 26, CAST ( - 88 AS INTEGER ) ) AS col2
----
161975

onlyif mysql # aggregate syntax: 
query II rowsort label-3874
SELECT DISTINCT + + 60 AS col1, + MAX( - - 92 )
----
60
92

skipif mysql # not compatible
query II rowsort label-3874
SELECT DISTINCT + + 60 AS col1, + MAX ( - - 92 )
----
60
92

query I rowsort
SELECT ALL 32 * + + 59 - + 15 - ( - 38 )
----
1911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3876
SELECT DISTINCT - 2 * - 87 * + - 16 * CAST( NULL AS SIGNED ) - + CASE 0 WHEN - 39 - + 32 THEN NULL ELSE 92 + - + COALESCE ( 36, + 24 + + - 25 + + CAST( NULL AS SIGNED ) + - COUNT( * ) * + - 56 * 74 * - + 21 / + 30 * - COUNT( * ) / ( + 85 ) + 6 ) END + - - ( + 41 ) * + ( 75 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT - 2 * - 87 * + - 16 * CAST ( NULL AS INTEGER ) - + CASE 0 WHEN - 39 - + 32 THEN NULL ELSE 92 + - + COALESCE ( 36, + 24 + + - 25 + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + - 56 * 74 * - + 21 / + 30 * - COUNT ( * ) / ( + 85 ) + 6 ) END + - - ( + 41 ) * + ( 75 ) col0
----
NULL

query I rowsort
SELECT ALL - 59 * - 76 * + - 74 AS col0
----
-331816

onlyif mysql # DIV for integer division: 
query I rowsort label-3878
SELECT ALL 49 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL 49 / + 65
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT + 90 * 49 DIV + 16 col1
----
275

skipif mysql # not compatible
query I rowsort label-3879
SELECT + 90 * 49 / + 16 col1
----
275

query I rowsort
SELECT - 96 * + + 79
----
-7584

query II rowsort
SELECT + 7 - - 28, 25 * - 33 AS col0
----
35
-825

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3882
SELECT - COUNT( * ) DIV - 8 AS col2, 73
----
0
73

skipif mysql # not compatible
query II rowsort label-3882
SELECT - COUNT ( * ) / - 8 AS col2, 73
----
0
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT ALL + 96 * - COUNT( 91 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL + 96 * - COUNT ( 91 ) AS col2
----
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-3884
SELECT - COALESCE ( + 39, - 43 ) DIV - 79, + 20 + - 2 AS col1
----
0
18

skipif mysql # not compatible
query II rowsort label-3884
SELECT - COALESCE ( + 39, - 43 ) / - 79, + 20 + - 2 AS col1
----
0
18

query I rowsort
SELECT DISTINCT 7 * 45 * - + NULLIF ( 91, + 12 )
----
-28665

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT ALL NULLIF ( + - MIN( DISTINCT 45 ), + 71 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL NULLIF ( + - MIN ( DISTINCT 45 ), + 71 ) AS col2
----
-45

query I rowsort
SELECT ALL 42 * + + 25 col1
----
1050

query I rowsort
SELECT ALL ( 40 )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3889
SELECT - COALESCE ( + + COUNT( * ), 33 * - MAX( + 33 ) + - 94 ) - - 71 AS col1, 41 + COUNT( * ) + - ( ( - 26 ) ) * + 24
----
70
666

skipif mysql # not compatible
query II rowsort label-3889
SELECT - COALESCE ( + + COUNT ( * ), 33 * - MAX ( + 33 ) + - 94 ) - - 71 AS col1, 41 + COUNT ( * ) + - ( ( - 26 ) ) * + 24
----
70
666

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3890
SELECT ALL CASE + 83 WHEN - - 36 THEN - ( + 76 ) + 61 WHEN - + ( + 99 ) THEN + - CAST( + - COALESCE ( + + 13, - 32 + + + COALESCE ( - 81, - - 69, + + 47 ) ) AS DECIMAL ) - SUM( DISTINCT + - 36 ) * + 93 - ( + 61 ) WHEN 83 THEN NULL WHEN - 87 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL CASE + 83 WHEN - - 36 THEN - ( + 76 ) + 61 WHEN - + ( + 99 ) THEN + - CAST ( + - COALESCE ( + + 13, - 32 + + + COALESCE ( - 81, - - 69, + + 47 ) ) AS REAL ) - SUM ( DISTINCT + - 36 ) * + 93 - ( + 61 ) WHEN 83 THEN NULL WHEN - 87 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 0 + - 92
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3892
SELECT - COALESCE ( - + CAST( NULL AS SIGNED ), - - 43, 19 + - + COUNT( * ) ) * 28 * + 93 - + 19 + CAST( NULL AS SIGNED ) / - - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT - COALESCE ( - + CAST ( NULL AS INTEGER ), - - 43, 19 + - + COUNT ( * ) ) * 28 * + 93 - + 19 + CAST ( NULL AS INTEGER ) / - - 16
----
NULL

query I rowsort
SELECT NULLIF ( + + 91, 91 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3894
SELECT - - 49 DIV - 32 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3894
SELECT - - 49 / - 32 AS col1
----
-1

query I rowsort
SELECT DISTINCT - 44 + + 34 * - - 59
----
1962

query I rowsort
SELECT - - COALESCE ( + + 6, 82 * + 6 - + + 4, + 59 ) AS col1
----
6

query I rowsort
SELECT ALL + + 81 + + 3 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT ALL - 11 + + SUM( ALL - 22 )
----
-33

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL - 11 + + SUM ( ALL - 22 )
----
-33

query I rowsort
SELECT ALL + 31 + + 18 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT - + COUNT( * ) + - + 69
----
-70

skipif mysql # not compatible
query I rowsort label-3900
SELECT - + COUNT ( * ) + - + 69
----
-70

query I rowsort
SELECT ALL ( - + 32 ) AS col1
----
-32

query I rowsort
SELECT 50 * 33 + + 75 - - + 87 * - 76 * 86 * + NULLIF ( - + 47, + 0 )
----
26727429

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL + - MAX( DISTINCT + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL + - MAX ( DISTINCT + 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT - - COUNT( * ) + - ( + 67 ) + + + 22 + - 73 + - ( 36 ) * ( + + 23 ) AS col2
----
-945

skipif mysql # not compatible
query I rowsort label-3904
SELECT - - COUNT ( * ) + - ( + 67 ) + + + 22 + - 73 + - ( 36 ) * ( + + 23 ) AS col2
----
-945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3905
SELECT - COUNT( + 44 ) / - - 28 + - 18 + + 15 + + - CAST( NULL AS SIGNED ) * + + ( + 13 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT - COUNT ( + 44 ) / - - 28 + - 18 + + 15 + + - CAST ( NULL AS INTEGER ) * + + ( + 13 ) AS col0
----
NULL

query I rowsort
SELECT + 39 * - 53
----
-2067

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3907
SELECT ALL + - COUNT( * ) / + - CAST( NULL AS DECIMAL ) AS col0, 42 AS col0
----
NULL
42

skipif mysql # not compatible
query II rowsort label-3907
SELECT ALL + - COUNT ( * ) / + - CAST ( NULL AS REAL ) AS col0, 42 AS col0
----
NULL
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL + SUM( ALL 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL + SUM ( ALL 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT + COUNT( * ) * CASE + 75 WHEN + 74 - NULLIF ( - 13, + 14 ) THEN NULL ELSE ( + COUNT( * ) ) END - - 10
----
11

skipif mysql # not compatible
query I rowsort label-3909
SELECT + COUNT ( * ) * CASE + 75 WHEN + 74 - NULLIF ( - 13, + 14 ) THEN NULL ELSE ( + COUNT ( * ) ) END - - 10
----
11

query I rowsort
SELECT ( ( + 28 ) ) AS col1
----
28

query I rowsort
SELECT + 20 + + + ( + + ( + 81 ) ) AS col1
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3912
SELECT + CASE - CASE + ( COALESCE ( NULLIF ( - COUNT( * ), + NULLIF ( - 9, + COUNT( * ) * - 25 * - - 92 ) ), - 54 * + - COUNT( * ), + 56 + - 55 ) ) WHEN + 48 THEN + + MAX( + - 13 ) END WHEN COUNT( * ) THEN CAST( NULL AS SIGNED ) ELSE 17 END AS col1
----
17

skipif mysql # not compatible
query I rowsort label-3912
SELECT + CASE - CASE + ( COALESCE ( NULLIF ( - COUNT ( * ), + NULLIF ( - 9, + COUNT ( * ) * - 25 * - - 92 ) ), - 54 * + - COUNT ( * ), + 56 + - 55 ) ) WHEN + 48 THEN + + MAX ( + - 13 ) END WHEN COUNT ( * ) THEN CAST ( NULL AS INTEGER ) ELSE 17 END AS col1
----
17

query I rowsort
SELECT ( 84 ) AS col2
----
84

query I rowsort
SELECT - 48 * + 31 + - 41
----
-1529

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT + 66 * + NULLIF ( - - COUNT( * ), + 6 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3915
SELECT + 66 * + NULLIF ( - - COUNT ( * ), + 6 ) AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3916
SELECT COALESCE ( + + 96, - + COUNT( * ) + - SUM( DISTINCT + 36 ) ) * + CAST( - COUNT( * ) AS SIGNED ) + - - 97
----
1

skipif mysql # not compatible
query I rowsort label-3916
SELECT COALESCE ( + + 96, - + COUNT ( * ) + - SUM ( DISTINCT + 36 ) ) * + CAST ( - COUNT ( * ) AS INTEGER ) + - - 97
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3917
SELECT + COUNT( * ) * MAX( DISTINCT + 68 ), + COALESCE ( 41, 1 + + + 73 * + 50, - 44 ) AS col0
----
68
41

skipif mysql # not compatible
query II rowsort label-3917
SELECT + COUNT ( * ) * MAX ( DISTINCT + 68 ), + COALESCE ( 41, 1 + + + 73 * + 50, - 44 ) AS col0
----
68
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL 79 * + 89 + + COUNT( * ) + + - COUNT( * ) + + 16
----
7047

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL 79 * + 89 + + COUNT ( * ) + + - COUNT ( * ) + + 16
----
7047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3919
SELECT - CAST( - SUM( - + 47 ) AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-3919
SELECT - CAST ( - SUM ( - + 47 ) AS INTEGER )
----
-47

query I rowsort
SELECT 29 * 36 + - 98 + 68 AS col2
----
1014

onlyif mysql # DIV for integer division: 
query I rowsort label-3921
SELECT ALL 94 DIV + 5 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL 94 / + 5 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT + COUNT( * ) * + 72
----
72

skipif mysql # not compatible
query I rowsort label-3922
SELECT + COUNT ( * ) * + 72
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-3923
SELECT - 6 + NULLIF ( + + COUNT( * ), + 19 * - + 19 ) + + + 95 AS col0, 92 * - 0
----
90
0

skipif mysql # not compatible
query II rowsort label-3923
SELECT - 6 + NULLIF ( + + COUNT ( * ), + 19 * - + 19 ) + + + 95 AS col0, 92 * - 0
----
90
0

query I rowsort
SELECT 77 * - + 76
----
-5852

query I rowsort
SELECT 12 + + 31
----
43

query I rowsort
SELECT ALL 88 + - 48 col0
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-3927
SELECT - 12 AS col1, + 22 * - 11 + + + 24 + - 23 DIV 49 + - ( + 64 ) DIV - - 1
----
-12
-282

skipif mysql # not compatible
query II rowsort label-3927
SELECT - 12 AS col1, + 22 * - 11 + + + 24 + - 23 / 49 + - ( + 64 ) / - - 1
----
-12
-282

query I rowsort
SELECT ( 62 ) * - ( 63 - - 29 ) AS col2
----
-5704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3929
SELECT 28 + + CAST( ( - COUNT( * ) ) AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-3929
SELECT 28 + + CAST ( ( - COUNT ( * ) ) AS INTEGER )
----
27

query I rowsort
SELECT ALL 68 col2
----
68

query I rowsort
SELECT DISTINCT 93 + - 29
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT ALL 52 + 96 * + COALESCE ( + 55, MIN( 47 ) ) AS col1
----
5332

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL 52 + 96 * + COALESCE ( + 55, MIN ( 47 ) ) AS col1
----
5332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3933
SELECT DISTINCT - ( - COUNT( * ) ) + + AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT - ( - COUNT ( * ) ) + + AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT 87 + + 16 AS col2
----
103

query I rowsort
SELECT ALL - 3 + - COALESCE ( + ( ( 59 ) ) + 56, 29 + 77 )
----
-118

query I rowsort
SELECT 28 * 29
----
812

query I rowsort
SELECT 34 + 83
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT DISTINCT - 22 + 32 * - COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-3938
SELECT DISTINCT - 22 + 32 * - COUNT ( * ) AS col1
----
-54

query I rowsort
SELECT ALL - ( + ( + 77 ) ) - + 47
----
-124

query I rowsort
SELECT 18 * + 86
----
1548

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT 53 * - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-3941
SELECT 53 * - COUNT ( * )
----
-53

query I rowsort
SELECT 27 - - 19 AS col1
----
46

query I rowsort
SELECT ALL + 4 - ( CASE + 42 WHEN + 17 THEN NULL WHEN COALESCE ( + 37, - 73 ) / 89 THEN NULL ELSE 76 * + 43 + - ( + 78 ) END ) * + 10
----
-31896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT 43 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT 43 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( 82 ) * 51 AS col2
----
4182

query I rowsort
SELECT 59 + ( + 21 )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT 62 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-3947
SELECT 62 / 87
----
0

query I rowsort
SELECT 33 * 9 AS col2
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT + 44 * 61 + + COUNT( * ) * - 86
----
2598

skipif mysql # not compatible
query I rowsort label-3949
SELECT + 44 * 61 + + COUNT ( * ) * - 86
----
2598

query I rowsort
SELECT ALL - NULLIF ( + 26, 91 ) AS col0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-3951
SELECT 52 DIV - 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3951
SELECT 52 / - 81 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT 58 * + COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-3952
SELECT 58 * + COUNT ( * ) AS col1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3953
SELECT DISTINCT 96 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT 96 / 99
----
0

query I rowsort
SELECT DISTINCT - ( + NULLIF ( - 6, COALESCE ( 4, 74 - 77 / 7, 27 ) ) ) AS col0
----
6

query I rowsort
SELECT ALL - 97 + 94 AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3956
SELECT DISTINCT + 42 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT + 42 / - 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT CASE 8 WHEN COUNT( * ) + + 6 THEN + CASE 24 WHEN COUNT( * ) * COUNT( * ) + 78 THEN - 72 END * 99 END / - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT CASE 8 WHEN COUNT ( * ) + + 6 THEN + CASE 24 WHEN COUNT ( * ) * COUNT ( * ) + 78 THEN - 72 END * 99 END / - 98
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 36, - 93 ) + + 9 AS col0
----
-27

query I rowsort
SELECT ALL - 70 + + 58 col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT DISTINCT ( - MIN( 59 ) ) + - 7
----
-66

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT ( - MIN ( 59 ) ) + - 7
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT DISTINCT 53 + 14 * ( - MAX( + 40 ) * 67 )
----
-37467

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT 53 + 14 * ( - MAX ( + 40 ) * 67 )
----
-37467

query I rowsort
SELECT ALL 12 + 79 * ( - 35 * 48 + 44 * 83 ) AS col0
----
155800

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT COUNT( * ) * + 73 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3963
SELECT COUNT ( * ) * + 73 AS col0
----
73

query I rowsort
SELECT ALL 88 + 5
----
93

query I rowsort
SELECT 93 - - 24
----
117

query I rowsort
SELECT ALL + 35 + 18 * CASE - 57 WHEN ( 10 ) THEN 54 WHEN + 50 THEN + 21 + 93 * + 87 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT DISTINCT CASE - 38 WHEN 91 * - ( - COUNT( * ) ) - 53 * 89 THEN + 87 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT CASE - 38 WHEN 91 * - ( - COUNT ( * ) ) - 53 * 89 THEN + 87 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3968
SELECT DISTINCT 71 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT 71 / 74
----
0

query I rowsort
SELECT ALL 75 + - 10
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT MIN( ALL + 6 ) - COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3970
SELECT MIN ( ALL + 6 ) - COUNT ( * ) AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3971
SELECT + 98 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3971
SELECT + 98 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 78 + + 68
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT - 72 - CAST( + 47 AS SIGNED )
----
-119

skipif mysql # not compatible
query I rowsort label-3973
SELECT - 72 - CAST ( + 47 AS INTEGER )
----
-119

query I rowsort
SELECT ALL - 3 - - 3 AS col2
----
0

query I rowsort
SELECT - ( + 17 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT - CASE - 50 WHEN + MIN( DISTINCT 35 ) * 76 THEN - 88 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT - CASE - 50 WHEN + MIN ( DISTINCT 35 ) * 76 THEN - 88 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT - - COUNT( - 17 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3977
SELECT - - COUNT ( - 17 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3978
SELECT ALL + 28 * - COALESCE ( 16, 52 DIV - 58 )
----
-448

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL + 28 * - COALESCE ( 16, 52 / - 58 )
----
-448

query I rowsort
SELECT + 94 * 68 col0
----
6392

query I rowsort
SELECT + 38 + + 22
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3981
SELECT ALL - + COUNT( * ) * + NULLIF ( COUNT( * ) DIV COUNT( * ), 59 + - CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL - + COUNT ( * ) * + NULLIF ( COUNT ( * ) / COUNT ( * ), 59 + - CAST ( NULL AS INTEGER ) )
----
-1

query I rowsort
SELECT 47 + - 88 * + 84 AS col0
----
-7345

query I rowsort
SELECT ALL - 68 * - ( NULLIF ( 47, 0 - + 61 * 64 ) * 75 + - 82 ) col2
----
234124

query I rowsort
SELECT DISTINCT - 9 * + 39
----
-351

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3985
SELECT DISTINCT - + 26 DIV - COUNT( DISTINCT 46 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT - + 26 / - COUNT ( DISTINCT 46 ) AS col0
----
26

query I rowsort
SELECT 24 * + NULLIF ( 97, - 59 ) AS col2
----
2328

query I rowsort
SELECT ALL 44 * - 98
----
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT - CASE + 53 WHEN 98 THEN COALESCE ( 79, + 44 * COUNT( * ) ) * - 77 WHEN - 10 THEN NULL ELSE 95 END AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3988
SELECT - CASE + 53 WHEN 98 THEN COALESCE ( 79, + 44 * COUNT ( * ) ) * - 77 WHEN - 10 THEN NULL ELSE 95 END AS col0
----
-95

query I rowsort
SELECT + 79 * + 34 + + 71
----
2757

query I rowsort
SELECT 3 * 62
----
186

query I rowsort
SELECT 78 * - 19
----
-1482

onlyif mysql # DIV for integer division: 
query I rowsort label-3992
SELECT - 3 DIV + 36 + 69 * 55 col2
----
3795

skipif mysql # not compatible
query I rowsort label-3992
SELECT - 3 / + 36 + 69 * 55 col2
----
3795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3993
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3993
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT 58 + + + ( - NULLIF ( + 11, + 79 ) ) * + 4
----
14

query I rowsort
SELECT ALL + 37 * - 51
----
-1887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3996
SELECT 68 + + CAST( ( 52 ) AS SIGNED ) AS col0
----
120

skipif mysql # not compatible
query I rowsort label-3996
SELECT 68 + + CAST ( ( 52 ) AS INTEGER ) AS col0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3997
SELECT ALL COALESCE ( + - 94, - 83, + COUNT( * ) * 87 ) * 15 + - COALESCE ( + ( + 20 ) + CASE - ( - 86 ) - + 3 * + 36 WHEN + 37 / 16 - - 90 THEN NULL WHEN 44 * + 71 THEN 17 WHEN 82 * 89 THEN 88 - - 66 ELSE + NULLIF ( COALESCE ( + 93, + MIN( + 23 ), - ( + CAST( + 24 AS SIGNED ) ) * - 56 ), 23 ) + 29 END, + 76 * 84 + 4 ) AS col2
----
-1552

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL COALESCE ( + - 94, - 83, + COUNT ( * ) * 87 ) * 15 + - COALESCE ( + ( + 20 ) + CASE - ( - 86 ) - + 3 * + 36 WHEN + 37 / 16 - - 90 THEN NULL WHEN 44 * + 71 THEN 17 WHEN 82 * 89 THEN 88 - - 66 ELSE + NULLIF ( COALESCE ( + 93, + MIN ( + 23 ), - ( + CAST ( + 24 AS INTEGER ) ) * - 56 ), 23 ) + 29 END, + 76 * 84 + 4 ) AS col2
----
-1552

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT DISTINCT + 56 * + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT + 56 * + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL COUNT( * ) * 44 * + 92 + 71 * - 82
----
-1774

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL COUNT ( * ) * 44 * + 92 + 71 * - 82
----
-1774

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT COALESCE ( + COUNT( * ), 33 * + 46, + 39 - - 53, COUNT( * ) ) * + 19 - 68 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-4000
SELECT COALESCE ( + COUNT ( * ), 33 * + 46, + 39 - - 53, COUNT ( * ) ) * + 19 - 68 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT DISTINCT 14 * - MAX( ALL 32 ) + 55 * - 14
----
-1218

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT 14 * - MAX ( ALL 32 ) + 55 * - 14
----
-1218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4002
SELECT ALL 83 * AVG ( + 42 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL 83 * AVG ( + 42 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT - COUNT( * ) + + 2 col1
----
1

skipif mysql # not compatible
query I rowsort label-4003
SELECT - COUNT ( * ) + + 2 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT + ( + - 56 ) * + 70 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT + ( + - 56 ) * + 70 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT + 0 * 2 * - MIN( - 76 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4005
SELECT + 0 * 2 * - MIN ( - 76 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT + MAX( DISTINCT + 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4006
SELECT + MAX ( DISTINCT + 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL + CASE - + 53 WHEN + COALESCE ( + 98, - 81 + ( 12 + 46 * - 54 ) ) + + 92 / NULLIF ( 47, + COUNT( * ) / - 61 ) THEN NULL WHEN - 12 THEN ( COALESCE ( 12, 94, - ( CASE 50 WHEN 55 + - 87 THEN NULL ELSE 61 + - 19 END ) ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + CASE - + 53 WHEN + COALESCE ( + 98, - 81 + ( 12 + 46 * - 54 ) ) + + 92 / NULLIF ( 47, + COUNT ( * ) / - 61 ) THEN NULL WHEN - 12 THEN ( COALESCE ( 12, 94, - ( CASE 50 WHEN 55 + - 87 THEN NULL ELSE 61 + - 19 END ) ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4008
SELECT - CASE + - 88 WHEN COUNT( ALL + 14 ) THEN NULL WHEN 0 THEN + NULLIF ( - NULLIF ( COUNT( * ), 52 ), - COUNT( * ) ) / + 71 WHEN - ( 86 ) THEN 53 WHEN 13 THEN - AVG ( ALL 9 ) / - CAST( + 99 * + 25 - - 20 * 84 AS SIGNED ) - + 72 ELSE NULL END + CAST( - 61 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4008
SELECT - CASE + - 88 WHEN COUNT ( ALL + 14 ) THEN NULL WHEN 0 THEN + NULLIF ( - NULLIF ( COUNT ( * ), 52 ), - COUNT ( * ) ) / + 71 WHEN - ( 86 ) THEN 53 WHEN 13 THEN - AVG ( ALL 9 ) / - CAST ( + 99 * + 25 - - 20 * 84 AS INTEGER ) - + 72 ELSE NULL END + CAST ( - 61 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 66 + 7 AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4010
SELECT ALL - 75 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL - 75 / 76
----
0

query I rowsort
SELECT - 47 + 43 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL - 3 + + + COUNT( * ) + - 75 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL - 3 + + + COUNT ( * ) + - 75 AS col2
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4013
SELECT DISTINCT - SUM( DISTINCT - 82 ) DIV MAX( ALL + 97 + - 51 )
----
1

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT - SUM ( DISTINCT - 82 ) / MAX ( ALL + 97 + - 51 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT - + COUNT( ALL + 27 ) + 99 * + 37
----
3662

skipif mysql # not compatible
query I rowsort label-4014
SELECT - + COUNT ( ALL + 27 ) + 99 * + 37
----
3662

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT DISTINCT + 65 - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4015
SELECT DISTINCT + 65 - - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - + COALESCE ( - 13, + 56, - 12 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT + + NULLIF ( - 99, COUNT( * ) ) + 57 col0
----
-42

skipif mysql # not compatible
query I rowsort label-4017
SELECT + + NULLIF ( - 99, COUNT ( * ) ) + 57 col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4018
SELECT ALL + 32 - - 96 DIV COUNT( - 47 ) col2
----
128

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL + 32 - - 96 / COUNT ( - 47 ) col2
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4019
SELECT + 65 * + 79 - CAST( + 58 AS SIGNED ) * 56 AS col0
----
1887

skipif mysql # not compatible
query I rowsort label-4019
SELECT + 65 * + 79 - CAST ( + 58 AS INTEGER ) * 56 AS col0
----
1887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4020
SELECT + - 63 + 22 + + CASE + 13 + + 57 * COUNT( - 46 ) WHEN + 33 THEN ( - CAST( - 84 AS SIGNED ) ) END * - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT + - 63 + 22 + + CASE + 13 + + 57 * COUNT ( - 46 ) WHEN + 33 THEN ( - CAST ( - 84 AS INTEGER ) ) END * - 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT DISTINCT + MIN( ALL - 8 ) * - 88 AS col2
----
704

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT + MIN ( ALL - 8 ) * - 88 AS col2
----
704

query I rowsort
SELECT + 32 + - 50 * - 94
----
4732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4023
SELECT DISTINCT + CASE + NULLIF ( - 28, ( 83 ) * - 37 ) WHEN - 45 THEN 84 ELSE - 61 * CASE 20 * - CASE 52 WHEN - 67 THEN NULL WHEN - 44 / 12 + COUNT( * ) THEN 45 * - 51 END WHEN CASE COUNT( * ) WHEN - MAX( DISTINCT 65 ) + + ( 86 ) * - ( 95 * + COUNT( * ) ) THEN 71 ELSE NULL END THEN 98 * COUNT( * ) WHEN 68 * 25 THEN NULL END + - CASE 16 WHEN + COALESCE ( COUNT( * ), 21 + 53 ) + 14 * - CAST( NULL AS SIGNED ) THEN NULL ELSE + 56 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT + CASE + NULLIF ( - 28, ( 83 ) * - 37 ) WHEN - 45 THEN 84 ELSE - 61 * CASE 20 * - CASE 52 WHEN - 67 THEN NULL WHEN - 44 / 12 + COUNT ( * ) THEN 45 * - 51 END WHEN CASE COUNT ( * ) WHEN - MAX ( DISTINCT 65 ) + + ( 86 ) * - ( 95 * + COUNT ( * ) ) THEN 71 ELSE NULL END THEN 98 * COUNT ( * ) WHEN 68 * 25 THEN NULL END + - CASE 16 WHEN + COALESCE ( COUNT ( * ), 21 + 53 ) + 14 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 56 END END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4024
SELECT ALL 89 DIV 66 * - 9
----
-9

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL 89 / 66 * - 9
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4025
SELECT + - NULLIF ( - 20, 91 - + 3 * 32 ) / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4025
SELECT + - NULLIF ( - 20, 91 - + 3 * 32 ) / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ALL CASE COUNT( * ) WHEN 86 + - SUM( ALL 69 + - 25 ) THEN NULL ELSE 56 END
----
56

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL CASE COUNT ( * ) WHEN 86 + - SUM ( ALL 69 + - 25 ) THEN NULL ELSE 56 END
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT + - ( + 58 ) + - MIN( DISTINCT 84 )
----
-142

skipif mysql # not compatible
query I rowsort label-4027
SELECT + - ( + 58 ) + - MIN ( DISTINCT 84 )
----
-142

query I rowsort
SELECT ALL + 56 * 30 + 31
----
1711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT DISTINCT - ( - 89 ) * CASE 95 WHEN 96 / 23 + + 29 THEN COUNT( * ) WHEN 83 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 45 + 26 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT - ( - 89 ) * CASE 95 WHEN 96 / 23 + + 29 THEN COUNT ( * ) WHEN 83 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 45 + 26 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 78 + - + 77 + + 41 * 0 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT DISTINCT ( 98 ) + - ( SUM( ALL 61 ) )
----
37

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT ( 98 ) + - ( SUM ( ALL 61 ) )
----
37

query I rowsort
SELECT ALL 49 * - 27
----
-1323

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4033
SELECT DISTINCT ( 5 ) DIV 67 + CAST( 65 AS SIGNED ) * - 85
----
-5525

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT ( 5 ) / 67 + CAST ( 65 AS INTEGER ) * - 85
----
-5525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT DISTINCT 84 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT DISTINCT 84 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4035
SELECT ALL SUM( ALL + 88 ) DIV + - 53 + 27 * + CASE + 30 * 71 WHEN 40 + COUNT( * ) THEN NULL WHEN + 76 * - 42 THEN NULL ELSE 23 END
----
620

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL SUM ( ALL + 88 ) / + - 53 + 27 * + CASE + 30 * 71 WHEN 40 + COUNT ( * ) THEN NULL WHEN + 76 * - 42 THEN NULL ELSE 23 END
----
620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4036
SELECT DISTINCT + CASE - - COUNT( * ) WHEN + ( 37 ) * - 56 THEN + COUNT( * ) WHEN + NULLIF ( - CAST( NULL AS SIGNED ), COUNT( * ) ) THEN COUNT( * ) + 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT + CASE - - COUNT ( * ) WHEN + ( 37 ) * - 56 THEN + COUNT ( * ) WHEN + NULLIF ( - CAST ( NULL AS INTEGER ), COUNT ( * ) ) THEN COUNT ( * ) + 39 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4037
SELECT DISTINCT COUNT( * ) DIV 13 * + 15 + + 61 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT COUNT ( * ) / 13 * + 15 + + 61 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) + - COUNT ( * )
----
-2

query I rowsort
SELECT ( + - 3 ) AS col1
----
-3

query I rowsort
SELECT - 7 * + 75
----
-525

query I rowsort
SELECT ALL 10 * + 4 + - 21 col1
----
19

query I rowsort
SELECT ( - - 56 )
----
56

query I rowsort
SELECT ( 14 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL + COUNT( * ) * + NULLIF ( + 48, ( 19 ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL + COUNT ( * ) * + NULLIF ( + 48, ( 19 ) ) AS col2
----
48

query I rowsort
SELECT DISTINCT - 89 * + 98
----
-8722

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4046
SELECT DISTINCT + 44 col0, 96 * - CAST( NULL AS SIGNED ) AS col1
----
44
NULL

skipif mysql # not compatible
query II rowsort label-4046
SELECT DISTINCT + 44 col0, 96 * - CAST ( NULL AS INTEGER ) AS col1
----
44
NULL

query I rowsort
SELECT - 41 * 43
----
-1763

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT DISTINCT - MAX( ALL - - 81 ) * + - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT - MAX ( ALL - - 81 ) * + - COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT + - CASE - 18 WHEN + - 85 THEN + ( - 12 ) WHEN - 59 THEN - MAX( 69 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT + - CASE - 18 WHEN + - 85 THEN + ( - 12 ) WHEN - 59 THEN - MAX ( 69 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + - 10 AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4051
SELECT - MIN( DISTINCT - 5 ) DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-4051
SELECT - MIN ( DISTINCT - 5 ) / + 66
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4052
SELECT COUNT( * ) AS col2, 4 + - ( - MAX( DISTINCT - 3 ) ) * - COUNT( * ) col0
----
1
7

skipif mysql # not compatible
query II rowsort label-4052
SELECT COUNT ( * ) AS col2, 4 + - ( - MAX ( DISTINCT - 3 ) ) * - COUNT ( * ) col0
----
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT - 93 - - ( + - 73 ) + COUNT( * ) * 47
----
-119

skipif mysql # not compatible
query I rowsort label-4053
SELECT - 93 - - ( + - 73 ) + COUNT ( * ) * 47
----
-119

query I rowsort
SELECT - 67 * 80 - 34
----
-5394

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT ALL - + 84 DIV - 9 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL - + 84 / - 9 AS col1
----
9

query I rowsort
SELECT - 7 + - 94
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL + SUM( - 69 ) col1
----
-69

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL + SUM ( - 69 ) col1
----
-69

query II rowsort
SELECT DISTINCT 98 AS col0, 88 - + + 90
----
98
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT - - 61 * - 84 * + - CASE + 47 WHEN 68 THEN 46 / - 58 WHEN - 41 / 73 + 1 THEN 40 - 49 END * + 0 - 42 / 44 + 10 * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4059
SELECT - - 61 * - 84 * + - CASE + 47 WHEN 68 THEN 46 / - 58 WHEN - 41 / 73 + 1 THEN 40 - 49 END * + 0 - 42 / 44 + 10 * + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT - + 15 * + 91 * - 69 - - 93 * 48
----
98649

query I rowsort
SELECT ALL - ( + 80 ) col0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4062
SELECT ALL - + 92 DIV - - 16
----
-5

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL - + 92 / - - 16
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT - ( + ( + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4063
SELECT - ( + ( + COUNT ( * ) ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4064
SELECT - + 65 - + 86 + - CAST( NULL AS SIGNED ) * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT - + 65 - + 86 + - CAST ( NULL AS INTEGER ) * 85
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT - CAST( AVG ( DISTINCT - + 36 ) AS SIGNED ) * + 87 AS col0
----
3132

skipif mysql # not compatible
query I rowsort label-4065
SELECT - CAST ( AVG ( DISTINCT - + 36 ) AS INTEGER ) * + 87 AS col0
----
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT + MIN( ALL - - 10 ) * - + 0
----
0

skipif mysql # not compatible
query I rowsort label-4066
SELECT + MIN ( ALL - - 10 ) * - + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4067
SELECT ALL - 97, - 46 * - 3 + 25 * COUNT( * ) AS col1
----
-97
163

skipif mysql # not compatible
query II rowsort label-4067
SELECT ALL - 97, - 46 * - 3 + 25 * COUNT ( * ) AS col1
----
-97
163

onlyif mysql # aggregate syntax: 
query II rowsort label-4068
SELECT - - 84 col2, COUNT( * ) * + COUNT( * )
----
84
1

skipif mysql # not compatible
query II rowsort label-4068
SELECT - - 84 col2, COUNT ( * ) * + COUNT ( * )
----
84
1

query I rowsort
SELECT - ( + 27 ) + - 11
----
-38

query II rowsort
SELECT ALL - 74 col0, 72 + 94 * 9 AS col0
----
-74
918

query I rowsort
SELECT DISTINCT - 83 + 73 col1
----
-10

query I rowsort
SELECT DISTINCT - 77 + + 48 col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT - COALESCE ( - 42, MAX( - 34 ) )
----
42

skipif mysql # not compatible
query I rowsort label-4073
SELECT - COALESCE ( - 42, MAX ( - 34 ) )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4074
SELECT ALL + 83 + - COUNT( * ) AS col1, + 16 AS col0
----
82
16

skipif mysql # not compatible
query II rowsort label-4074
SELECT ALL + 83 + - COUNT ( * ) AS col1, + 16 AS col0
----
82
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4075
SELECT DISTINCT 67 * - + CAST( - COUNT( * ) AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT 67 * - + CAST ( - COUNT ( * ) AS INTEGER )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL MIN( + - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL MIN ( + - 73 )
----
-73

query I rowsort
SELECT 61 * + - 84 AS col1
----
-5124

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT - CASE - - ( + + MIN( DISTINCT 30 ) ) WHEN 53 THEN NULL WHEN + ( 86 ) THEN 0 END / 16 + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4078
SELECT - CASE - - ( + + MIN ( DISTINCT 30 ) ) WHEN 53 THEN NULL WHEN + ( 86 ) THEN 0 END / 16 + - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT ALL MIN( - 86 ) + + COALESCE ( COUNT( * ), + 55 - 26 )
----
-85

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL MIN ( - 86 ) + + COALESCE ( COUNT ( * ), + 55 - 26 )
----
-85

query I rowsort
SELECT DISTINCT 31 * + - 26 * - 8 AS col0
----
6448

query I rowsort
SELECT 87 * - 48 * + ( + 75 ) AS col0
----
-313200

onlyif mysql # aggregate syntax: 
query II rowsort label-4082
SELECT COUNT( * ) * - 18 AS col0, + 48 + - ( - 48 )
----
-18
96

skipif mysql # not compatible
query II rowsort label-4082
SELECT COUNT ( * ) * - 18 AS col0, + 48 + - ( - 48 )
----
-18
96

query I rowsort
SELECT ALL 66 * + 29
----
1914

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL - 2 - 31 - SUM( 60 ) * COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL - 2 - 31 - SUM ( 60 ) * COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT DISTINCT 83 - 75 * - + COUNT( ALL 14 ) + - 48
----
110

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT 83 - 75 * - + COUNT ( ALL 14 ) + - 48
----
110

query I rowsort
SELECT DISTINCT 95 * - + 97 * + 29 * - 40
----
10689400

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL 30 * + + 63 * + MAX( ALL + + 30 )
----
56700

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL 30 * + + 63 * + MAX ( ALL + + 30 )
----
56700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4088
SELECT DISTINCT 88 * 34 * + + 13 DIV + COUNT( * ) AS col1
----
38896

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT 88 * 34 * + + 13 / + COUNT ( * ) AS col1
----
38896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4089
SELECT DISTINCT + NULLIF ( 8, + - COALESCE ( - SUM( - ( 48 ) ), ( + 70 ) + COUNT( 8 ) ) ) / CASE 17 WHEN 91 / ( - 75 ) THEN CASE + 63 WHEN 22 THEN NULL ELSE 20 END WHEN - CASE 94 WHEN ( 45 ) * 20 THEN NULL ELSE + 52 * + CAST( NULL AS SIGNED ) END + 27 THEN COUNT( ALL 52 ) * 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT + NULLIF ( 8, + - COALESCE ( - SUM ( - ( 48 ) ), ( + 70 ) + COUNT ( 8 ) ) ) / CASE 17 WHEN 91 / ( - 75 ) THEN CASE + 63 WHEN 22 THEN NULL ELSE 20 END WHEN - CASE 94 WHEN ( 45 ) * 20 THEN NULL ELSE + 52 * + CAST ( NULL AS INTEGER ) END + 27 THEN COUNT ( ALL 52 ) * 84 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4090
SELECT 39 DIV COUNT( * ) + 65 * + + 76 + - 44 col2
----
4935

skipif mysql # not compatible
query I rowsort label-4090
SELECT 39 / COUNT ( * ) + 65 * + + 76 + - 44 col2
----
4935

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4091
SELECT ALL 23 - - 81 + - - CASE - CASE 99 WHEN 32 THEN COUNT( * ) + - CASE - 93 WHEN + 35 * 50 THEN COUNT( * ) WHEN COUNT( 33 ) + - 7 THEN NULL ELSE COUNT( * ) END WHEN 75 THEN 39 END WHEN + 53 THEN + 57 WHEN ( - CAST( NULL AS DECIMAL ) ) * CASE COUNT( * ) WHEN 74 + + 94 THEN 66 ELSE NULL END THEN - COUNT( * ) ELSE - 79 END AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL 23 - - 81 + - - CASE - CASE 99 WHEN 32 THEN COUNT ( * ) + - CASE - 93 WHEN + 35 * 50 THEN COUNT ( * ) WHEN COUNT ( 33 ) + - 7 THEN NULL ELSE COUNT ( * ) END WHEN 75 THEN 39 END WHEN + 53 THEN + 57 WHEN ( - CAST ( NULL AS REAL ) ) * CASE COUNT ( * ) WHEN 74 + + 94 THEN 66 ELSE NULL END THEN - COUNT ( * ) ELSE - 79 END AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4092
SELECT 37 + - 33 / CAST( NULL AS SIGNED ) * + COALESCE ( CAST( 84 AS SIGNED ), + 7 + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4092
SELECT 37 + - 33 / CAST ( NULL AS INTEGER ) * + COALESCE ( CAST ( 84 AS INTEGER ), + 7 + 24 )
----
NULL

query I rowsort
SELECT - 49 * 29 + - 33 + - 22 * - 48 AS col0
----
-398

query I rowsort
SELECT + 40 * + CASE - ( + 61 ) WHEN - 0 THEN + 29 / 47 ELSE NULL END * - 7 + - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT + 23 * 49 + - + 58 - + 11 * COUNT( * )
----
1058

skipif mysql # not compatible
query I rowsort label-4095
SELECT + 23 * 49 + - + 58 - + 11 * COUNT ( * )
----
1058

query I rowsort
SELECT ( - 31 ) * - 65 AS col1
----
2015

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4097
SELECT + 91 + CAST( NULL AS SIGNED ) AS col0, 63
----
NULL
63

skipif mysql # not compatible
query II rowsort label-4097
SELECT + 91 + CAST ( NULL AS INTEGER ) AS col0, 63
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT ALL - MAX( + ( + + 88 ) ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL - MAX ( + ( + + 88 ) ) AS col2
----
-88

query I rowsort
SELECT ALL - - 31 * - + 35 + - 20
----
-1105

query I rowsort
SELECT DISTINCT 83 * 43
----
3569

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT ALL - MIN( - 77 ) + - COUNT( * ) + - 70 * + 79 AS col1
----
-5454

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL - MIN ( - 77 ) + - COUNT ( * ) + - 70 * + 79 AS col1
----
-5454

query I rowsort
SELECT 32 * - - 47 + - + 9 AS col2
----
1495

query I rowsort
SELECT ALL - 89 * + 87
----
-7743

onlyif mysql # aggregate syntax: 
query II rowsort label-4104
SELECT 22 + - + COUNT( * ) AS col0, + COUNT( DISTINCT + - 1 ) col0
----
21
1

skipif mysql # not compatible
query II rowsort label-4104
SELECT 22 + - + COUNT ( * ) AS col0, + COUNT ( DISTINCT + - 1 ) col0
----
21
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4105
SELECT DISTINCT + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + + 46 + COUNT( * ) * 90 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 46 + COUNT ( * ) * 90 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4106
SELECT ALL - 39 + + COUNT( * ), 82 AS col0
----
-38
82

skipif mysql # not compatible
query II rowsort label-4106
SELECT ALL - 39 + + COUNT ( * ), 82 AS col0
----
-38
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL - + MIN( - ( - + 60 ) ) + 33 + 77 * + 99 AS col2
----
7596

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL - + MIN ( - ( - + 60 ) ) + 33 + 77 * + 99 AS col2
----
7596

query I rowsort
SELECT DISTINCT + + 14 + - + 13 - + 40 col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT DISTINCT - CAST( NULL AS SIGNED ) + CAST( 40 AS SIGNED ) * - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + CAST ( 40 AS INTEGER ) * - + 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4110
SELECT ALL + - CASE WHEN CAST( + - 45 AS SIGNED ) IN ( 56 ) THEN 43 + COUNT( * ) ELSE NULL END + 92 / 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL + - CASE WHEN CAST ( + - 45 AS INTEGER ) IN ( 56 ) THEN 43 + COUNT ( * ) ELSE NULL END + 92 / 49
----
NULL

query I rowsort
SELECT DISTINCT + 97 + - + 98 AS col0
----
-1

query I rowsort
SELECT 61 + + 1 * + - 91 + 22 + + 69 AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4113
SELECT 6 * + CAST( + 62 AS SIGNED ) AS col1, + COUNT( * ) * - ( + CAST( NULL AS SIGNED ) ) + - ( + COUNT( * ) )
----
372
NULL

skipif mysql # not compatible
query II rowsort label-4113
SELECT 6 * + CAST ( + 62 AS INTEGER ) AS col1, + COUNT ( * ) * - ( + CAST ( NULL AS INTEGER ) ) + - ( + COUNT ( * ) )
----
372
NULL

query I rowsort
SELECT ALL - COALESCE ( - - ( + 8 ), + ( 23 ) * + 35 ) * - 94 AS col1
----
752

query I rowsort
SELECT ALL + 52 - 64 + + 75 * 17
----
1263

query I rowsort
SELECT 87 - + + 14
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4117
SELECT 96 - - - 48 + + ( + 77 ) * - COALESCE ( - 94, + 49 DIV - 76 ) * + COUNT( * )
----
7286

skipif mysql # not compatible
query I rowsort label-4117
SELECT 96 - - - 48 + + ( + 77 ) * - COALESCE ( - 94, + 49 / - 76 ) * + COUNT ( * )
----
7286

query II rowsort
SELECT ALL 38 AS col2, - 20 * + 89 * - 68 + + - 80 col2
----
38
120960

query I rowsort
SELECT ALL - 7 * - 44 AS col1
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT DISTINCT - COUNT( DISTINCT - - 96 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT - COUNT ( DISTINCT - - 96 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT MIN( - + 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-4121
SELECT MIN ( - + 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL - CASE - - 32 WHEN - + ( - 22 ) * + COUNT( * ) + COUNT( * ) / + 45 THEN NULL WHEN MIN( ( 88 ) ) THEN 28 + - NULLIF ( - 84 + 0, COUNT( * ) + - MAX( ALL 84 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL - CASE - - 32 WHEN - + ( - 22 ) * + COUNT ( * ) + COUNT ( * ) / + 45 THEN NULL WHEN MIN ( ( 88 ) ) THEN 28 + - NULLIF ( - 84 + 0, COUNT ( * ) + - MAX ( ALL 84 ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4123
SELECT DISTINCT COUNT( * ) DIV + CASE + 32 WHEN - + 44 THEN NULL ELSE + + NULLIF ( + COUNT( * ), + 90 ) * - 47 END * + 68
----
0

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT COUNT ( * ) / + CASE + 32 WHEN - + 44 THEN NULL ELSE + + NULLIF ( + COUNT ( * ), + 90 ) * - 47 END * + 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4124
SELECT COALESCE ( - + 83, 65 * - + ( + + 88 ) * MAX( ALL + 47 * CAST( + 6 AS SIGNED ) ) + 19 ) * - 40
----
3320

skipif mysql # not compatible
query I rowsort label-4124
SELECT COALESCE ( - + 83, 65 * - + ( + + 88 ) * MAX ( ALL + 47 * CAST ( + 6 AS INTEGER ) ) + 19 ) * - 40
----
3320

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4125
SELECT - 60 AS col0, COUNT( * ) DIV 27 AS col0
----
-60
0

skipif mysql # not compatible
query II rowsort label-4125
SELECT - 60 AS col0, COUNT ( * ) / 27 AS col0
----
-60
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT + - CAST( 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-4126
SELECT + - CAST ( 14 AS INTEGER )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4127
SELECT + 89 * - 91 * + + CAST( NULL AS SIGNED ) / COUNT( * ) * - 46 + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4127
SELECT + 89 * - 91 * + + CAST ( NULL AS INTEGER ) / COUNT ( * ) * - 46 + + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4128
SELECT ALL COUNT( + CAST( 36 AS SIGNED ) ) + + 68 col1
----
69

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL COUNT ( + CAST ( 36 AS INTEGER ) ) + + 68 col1
----
69

query I rowsort
SELECT + + 52 col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT 68 * 85 * - SUM( - 95 )
----
549100

skipif mysql # not compatible
query I rowsort label-4130
SELECT 68 * 85 * - SUM ( - 95 )
----
549100

query I rowsort
SELECT ALL 72 + + - 84 AS col0
----
-12

query I rowsort
SELECT DISTINCT - 51 + - 31 - - ( - - ( - - 98 ) ) + - 10 * ( - 73 )
----
746

onlyif mysql # DIV for integer division: 
query I rowsort label-4133
SELECT - 17 * 48 + - 38 DIV + 97 + + 43 + + 12
----
-761

skipif mysql # not compatible
query I rowsort label-4133
SELECT - 17 * 48 + - 38 / + 97 + + 43 + + 12
----
-761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT ALL + CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL + CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 38 * 56
----
2128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4136
SELECT 75, COUNT( * ) DIV - 83 AS col0
----
75
0

skipif mysql # not compatible
query II rowsort label-4136
SELECT 75, COUNT ( * ) / - 83 AS col0
----
75
0

query I rowsort
SELECT + + NULLIF ( 1, - 87 ) AS col2
----
1

query I rowsort
SELECT ALL + 68 + 18 AS col1
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4139
SELECT CAST( NULL AS DECIMAL ) + - 2 + + AVG ( - - 54 ) - - 14 + - 11 * 98 * + NULLIF ( - 86 + - 22, - 43 * + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT CAST ( NULL AS REAL ) + - 2 + + AVG ( - - 54 ) - - 14 + - 11 * 98 * + NULLIF ( - 86 + - 22, - 43 * + 88 )
----
NULL

query I rowsort
SELECT + 5 + 49 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT ALL + + COUNT( * ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL + + COUNT ( * ) * COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL 88 + - + 21 + - + ( + COALESCE ( 49, 41, 69 + 91 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT DISTINCT + 44 * + + ( - 98 ) * - + 78 * - - 40 * MIN( ALL 67 ) + - ( + 21 ) * - COUNT( * ) AS col0
----
901380501

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT + 44 * + + ( - 98 ) * - + 78 * - - 40 * MIN ( ALL 67 ) + - ( + 21 ) * - COUNT ( * ) AS col0
----
901380501

query I rowsort
SELECT + COALESCE ( - 41, - 54, - + 92 * 84 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ALL + + 37 + SUM( ALL 45 ) + + ( + + NULLIF ( - 74, 2 * 77 ) )
----
8

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL + + 37 + SUM ( ALL 45 ) + + ( + + NULLIF ( - 74, 2 * 77 ) )
----
8

query II rowsort
SELECT + 85 + 65 - - + 19 * 5 AS col2, 94 AS col2
----
245
94

query I rowsort
SELECT - 90 - - - 8 * + 64 col1
----
-602

query II rowsort
SELECT ALL 15, + 11 AS col0
----
15
11

query I rowsort
SELECT DISTINCT 55 * - - 23 col1
----
1265

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT - 84 * - COUNT( * ) col0
----
84

skipif mysql # not compatible
query I rowsort label-4150
SELECT - 84 * - COUNT ( * ) col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL MIN( DISTINCT - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL MIN ( DISTINCT - 75 )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4152
SELECT + 55 + COALESCE ( - CASE + 66 WHEN 72 + - AVG ( 56 ) THEN - 2 WHEN - 70 THEN NULL WHEN - CASE 79 WHEN + 41 DIV + 77 THEN - 26 END DIV + 69 THEN NULL ELSE 5 END, + 45 * - 43 + 17 * COUNT( * ) ) + 75 DIV 52 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4152
SELECT + 55 + COALESCE ( - CASE + 66 WHEN 72 + - AVG ( 56 ) THEN - 2 WHEN - 70 THEN NULL WHEN - CASE 79 WHEN + 41 / + 77 THEN - 26 END / + 69 THEN NULL ELSE 5 END, + 45 * - 43 + 17 * COUNT ( * ) ) + 75 / 52 AS col0
----
51

query I rowsort
SELECT DISTINCT 19 * + - 54 AS col1
----
-1026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4154
SELECT - CAST( NULL AS SIGNED ) + - + 30 + + 43 * + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT - CAST ( NULL AS INTEGER ) + - + 30 + + 43 * + 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT ALL + COUNT( * ) / CASE WHEN NOT ( 2 NOT IN ( - 3 ) ) THEN + 56 * 5 + - 94 * + 39 WHEN - 21 > NULL THEN 41 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL + COUNT ( * ) / CASE WHEN NOT ( 2 NOT IN ( - 3 ) ) THEN + 56 * 5 + - 94 * + 39 WHEN - 21 > NULL THEN 41 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4156
SELECT - 48 * 4 * + + 40 * + + 65 AS col2, 20 DIV - 5
----
-499200
-4

skipif mysql # not compatible
query II rowsort label-4156
SELECT - 48 * 4 * + + 40 * + + 65 AS col2, 20 / - 5
----
-499200
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT + ( + + 10 ) * - 80 + + - CASE - ( + 88 ) WHEN 8 + + SUM( + 60 + - 75 * - 56 ) THEN + 66 - - MIN( DISTINCT 82 ) * AVG ( ( - 42 ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT + ( + + 10 ) * - 80 + + - CASE - ( + 88 ) WHEN 8 + + SUM ( + 60 + - 75 * - 56 ) THEN + 66 - - MIN ( DISTINCT 82 ) * AVG ( ( - 42 ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL COALESCE ( - - CASE + 55 WHEN + 8 THEN - ( - ( 61 ) ) * 32 END, - 55 * - 54 + - MAX( 31 ), 85 ) AS col0
----
2939

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL COALESCE ( - - CASE + 55 WHEN + 8 THEN - ( - ( 61 ) ) * 32 END, - 55 * - 54 + - MAX ( 31 ), 85 ) AS col0
----
2939

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4159
SELECT - 1 DIV - - SUM( 86 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4159
SELECT - 1 / - - SUM ( 86 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4160
SELECT ALL + 48 DIV + 5 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL + 48 / + 5 AS col0
----
9

query I rowsort
SELECT - 18 * + 67 col2
----
-1206

onlyif mysql # aggregate syntax: 
query II rowsort label-4162
SELECT ALL COUNT( * ) col1, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-4162
SELECT ALL COUNT ( * ) col1, - COUNT ( * )
----
1
-1

query I rowsort
SELECT - 88 * + 3
----
-264

onlyif mysql # aggregate syntax: 
query II rowsort label-4164
SELECT 40, COUNT( * ) * - SUM( + ( 91 ) ) AS col1
----
40
-91

skipif mysql # not compatible
query II rowsort label-4164
SELECT 40, COUNT ( * ) * - SUM ( + ( 91 ) ) AS col1
----
40
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT ALL + 76 * - - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL + 76 * - - COUNT ( * )
----
76

query I rowsort
SELECT ( + - 82 ) AS col1
----
-82

query II rowsort
SELECT ALL + 83 AS col2, + 3
----
83
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT 76 DIV 10 + - - 54 DIV + - ( + 60 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4168
SELECT 76 / 10 + - - 54 / + - ( + 60 ) AS col1
----
7

query I rowsort
SELECT ( - - 35 )
----
35

query I rowsort
SELECT ALL + 85 * - 21
----
-1785

query I rowsort
SELECT DISTINCT + ( - 54 ) col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4172
SELECT + 69 * + - CAST( 13 AS SIGNED ) + 69
----
-828

skipif mysql # not compatible
query I rowsort label-4172
SELECT + 69 * + - CAST ( 13 AS INTEGER ) + 69
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT ALL - 42 * + - 83 - - + COUNT( * ) + - 85 + - 91 * 2 + - 8 AS col0
----
3212

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL - 42 * + - 83 - - + COUNT ( * ) + - 85 + - 91 * 2 + - 8 AS col0
----
3212

query I rowsort
SELECT DISTINCT + 55 * - - CASE - + 23 WHEN - 94 THEN + 6 + + - ( ( + ( 53 ) ) ) END * 67
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4175
SELECT - 87 DIV - 65 - - 59 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-4175
SELECT - 87 / - 65 - - 59 AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT ALL 64 * + + 76 + - + CAST( - + NULLIF ( + + 32, + 75 / + 97 ) AS SIGNED ) + 61 AS col2
----
4957

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL 64 * + + 76 + - + CAST ( - + NULLIF ( + + 32, + 75 / + 97 ) AS INTEGER ) + 61 AS col2
----
4957

query I rowsort
SELECT + + 20 * - 63 * + 41 * + - 20 * 30 + 66 AS col0
----
30996066

query I rowsort
SELECT DISTINCT + ( + + 37 ) col1
----
37

query II rowsort
SELECT ALL + - 70 AS col2, 95 AS col1
----
-70
95

query I rowsort
SELECT + - 53 + - - 16
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-4181
SELECT ALL + 72 col0, - COUNT( * ) + + 50 AS col1
----
72
49

skipif mysql # not compatible
query II rowsort label-4181
SELECT ALL + 72 col0, - COUNT ( * ) + + 50 AS col1
----
72
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4182
SELECT + + COUNT( * ) col1, + COUNT( * ) + - + MIN( - 83 )
----
1
84

skipif mysql # not compatible
query II rowsort label-4182
SELECT + + COUNT ( * ) col1, + COUNT ( * ) + - + MIN ( - 83 )
----
1
84

query I rowsort
SELECT 3 * + + 68 + + 93 + 30 * ( - 38 )
----
-843

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL 85 * COUNT( * ) + - 75 + + - 12 + + - NULLIF ( 65, 90 * 56 ) * ( + COUNT( * ) )
----
-67

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL 85 * COUNT ( * ) + - 75 + + - 12 + + - NULLIF ( 65, 90 * 56 ) * ( + COUNT ( * ) )
----
-67

query II rowsort
SELECT DISTINCT + 80, + 80
----
80
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4186
SELECT ALL 29 * 99 + ( + 24 ) DIV - + NULLIF ( - - ( - 26 ), - 33 ) AS col2
----
2871

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL 29 * 99 + ( + 24 ) / - + NULLIF ( - - ( - 26 ), - 33 ) AS col2
----
2871

query I rowsort
SELECT ALL 33 * - 1 AS col2
----
-33

query II rowsort
SELECT + 46 AS col0, 81 AS col0
----
46
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL 93 * 50 + + COUNT( * )
----
4651

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL 93 * 50 + + COUNT ( * )
----
4651

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT 51 * + CASE - + 60 WHEN COALESCE ( - 9, - 61 ) + + 49 THEN NULL ELSE 49 END + + COUNT( * ) AS col1
----
2500

skipif mysql # not compatible
query I rowsort label-4190
SELECT 51 * + CASE - + 60 WHEN COALESCE ( - 9, - 61 ) + + 49 THEN NULL ELSE 49 END + + COUNT ( * ) AS col1
----
2500

query II rowsort
SELECT ALL + + 95, - 0 AS col1
----
95
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4192
SELECT + CASE - 76 WHEN + - 78 DIV 76 + - - COUNT( * ) * - 50 - COUNT( * ) + 49 THEN NULL ELSE - 31 DIV 76 - - 75 END
----
75

skipif mysql # not compatible
query I rowsort label-4192
SELECT + CASE - 76 WHEN + - 78 / 76 + - - COUNT ( * ) * - 50 - COUNT ( * ) + 49 THEN NULL ELSE - 31 / 76 - - 75 END
----
75

query II rowsort
SELECT - 13, + 4 - - 74 + 97 AS col1
----
-13
175

query II rowsort
SELECT DISTINCT 25 AS col2, + 36 AS col1
----
25
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4195
SELECT - COALESCE ( + ( - + CASE - - 88 WHEN - NULLIF ( + 97, 41 * COUNT( * ) ) THEN COUNT( * ) DIV - COUNT( * ) + + 44 * - ( - 30 ) WHEN 13 THEN ( 97 ) ELSE + 81 + - SUM( - 2 ) END ), - 36 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-4195
SELECT - COALESCE ( + ( - + CASE - - 88 WHEN - NULLIF ( + 97, 41 * COUNT ( * ) ) THEN COUNT ( * ) / - COUNT ( * ) + + 44 * - ( - 30 ) WHEN 13 THEN ( 97 ) ELSE + 81 + - SUM ( - 2 ) END ), - 36 ) AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT - CAST( NULLIF ( + 57, CAST( NULL AS SIGNED ) ) AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-4196
SELECT - CAST ( NULLIF ( + 57, CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
-57

query I rowsort
SELECT - 61 * 86 AS col0
----
-5246

onlyif mysql # DIV for integer division: 
query I rowsort label-4198
SELECT + ( 44 ) + + - 77 + - 13 DIV 28 DIV + - NULLIF ( - - 17, 5 DIV 82 ) * 64 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-4198
SELECT + ( 44 ) + + - 77 + - 13 / 28 / + - NULLIF ( - - 17, 5 / 82 ) * 64 AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4199
SELECT - ( MAX( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT - ( MAX ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT + 25 * 66
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT ALL + COUNT( * ) * + - 46 * + 11 * + 90 AS col0
----
-45540

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL + COUNT ( * ) * + - 46 * + 11 * + 90 AS col0
----
-45540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT - 18 + CASE - 74 WHEN + - CAST( - 94 AS SIGNED ) THEN - 49 + 66 WHEN 34 + + 33 THEN - COUNT( * ) ELSE - 86 END + 42 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-4202
SELECT - 18 + CASE - 74 WHEN + - CAST ( - 94 AS INTEGER ) THEN - 49 + 66 WHEN 34 + + 33 THEN - COUNT ( * ) ELSE - 86 END + 42 AS col2
----
-62

query I rowsort
SELECT + 89 * - 82
----
-7298

query I rowsort
SELECT ALL ( 86 ) * + 42
----
3612

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT ALL - COUNT( * ) + + 95 + + COUNT( * ) * - 70 * - COUNT( * ) AS col1
----
164

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - COUNT ( * ) + + 95 + + COUNT ( * ) * - 70 * - COUNT ( * ) AS col1
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT + 41 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT + 41 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ALL COALESCE ( - 34, + + COUNT( * ), + COUNT( * ) + + - ( + COUNT( DISTINCT - 61 ) ) )
----
-34

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL COALESCE ( - 34, + + COUNT ( * ), + COUNT ( * ) + + - ( + COUNT ( DISTINCT - 61 ) ) )
----
-34

query I rowsort
SELECT + 59 * - 92 AS col1
----
-5428

query I rowsort
SELECT ALL 64 + - 40 AS col0
----
24

query I rowsort
SELECT ALL ( 26 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT - 35 * 56 * + - COUNT( * )
----
1960

skipif mysql # not compatible
query I rowsort label-4211
SELECT - 35 * 56 * + - COUNT ( * )
----
1960

onlyif mysql # DIV for integer division: 
query I rowsort label-4212
SELECT ALL 74 DIV - - 92 + - 20 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL 74 / - - 92 + - 20 AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4213
SELECT ALL - 23 / - - 47 + - + CAST( NULL AS SIGNED ) - - 31 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL - 23 / - - 47 + - + CAST ( NULL AS INTEGER ) - - 31 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4214
SELECT + + 87 * + 16 * - MIN( - + CAST( NULL AS SIGNED ) ) * - 47 + + + 9 * - COUNT( * ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT + + 87 * + 16 * - MIN ( - + CAST ( NULL AS INTEGER ) ) * - 47 + + + 9 * - COUNT ( * ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4215
SELECT - 46 - - 91 AS col2, - 18 + + 57 + - 9 * + + CASE + + 92 WHEN - CAST( NULL AS SIGNED ) THEN + 49 WHEN ( 5 ) + 86 / - 21 THEN - COUNT( - NULLIF ( - 20, 73 + + 67 ) ) * - COALESCE ( + MIN( DISTINCT 25 ), - 5, COUNT( * ) + CASE 24 WHEN NULLIF ( 23, - CASE WHEN NULL IS NOT NULL THEN 25 ELSE NULL END * + 47 + + 76 ) THEN NULL ELSE MAX( + 65 ) END ) ELSE NULL END col0
----
45
NULL

skipif mysql # not compatible
query II rowsort label-4215
SELECT - 46 - - 91 AS col2, - 18 + + 57 + - 9 * + + CASE + + 92 WHEN - CAST ( NULL AS INTEGER ) THEN + 49 WHEN ( 5 ) + 86 / - 21 THEN - COUNT ( - NULLIF ( - 20, 73 + + 67 ) ) * - COALESCE ( + MIN ( DISTINCT 25 ), - 5, COUNT ( * ) + CASE 24 WHEN NULLIF ( 23, - CASE WHEN NULL IS NOT NULL THEN 25 ELSE NULL END * + 47 + + 76 ) THEN NULL ELSE MAX ( + 65 ) END ) ELSE NULL END col0
----
45
NULL

query I rowsort
SELECT - 60 * 80 AS col0
----
-4800

query II rowsort
SELECT - 30 * - 4 AS col1, ( + - 99 )
----
120
-99

query I rowsort
SELECT ALL + - 4 AS col2
----
-4

query I rowsort
SELECT ALL + - 17 col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL + CASE ( 8 ) WHEN - - COUNT( * ) THEN 2 WHEN + CASE - - 88 WHEN 91 THEN + 63 WHEN + CASE 95 WHEN + 4 * 52 THEN NULL ELSE 24 END THEN NULL ELSE 14 * + 23 END THEN 33 + - 88 ELSE NULL END * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL + CASE ( 8 ) WHEN - - COUNT ( * ) THEN 2 WHEN + CASE - - 88 WHEN 91 THEN + 63 WHEN + CASE 95 WHEN + 4 * 52 THEN NULL ELSE 24 END THEN NULL ELSE 14 * + 23 END THEN 33 + - 88 ELSE NULL END * + 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4221
SELECT ALL 45 DIV + 23 + + MAX( 27 ) DIV - 84 - - + 25 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL 45 / + 23 + + MAX ( 27 ) / - 84 - - + 25 AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4222
SELECT - - CAST( + 95 AS SIGNED ) * - NULLIF ( COUNT( * ), + MIN( ALL ( + + 32 ) ) + + COALESCE ( + 94 + - ( COUNT( * ) ), 23 - + 3, - 74 * SUM( ALL 87 ) ) ) + CAST( + 61 + - COUNT( * ) * 60 AS SIGNED ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4222
SELECT - - CAST ( + 95 AS INTEGER ) * - NULLIF ( COUNT ( * ), + MIN ( ALL ( + + 32 ) ) + + COALESCE ( + 94 + - ( COUNT ( * ) ), 23 - + 3, - 74 * SUM ( ALL 87 ) ) ) + CAST ( + 61 + - COUNT ( * ) * 60 AS INTEGER ) AS col1
----
-94

query I rowsort
SELECT DISTINCT + 49 * ( - + 32 )
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ALL - ( MAX( - 41 ) )
----
41

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - ( MAX ( - 41 ) )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT 11 * + - 95 * CASE + - 65 WHEN NULLIF ( + COUNT( * ), + + 99 ) THEN 11 ELSE NULL END + 55 * 22 + + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4225
SELECT 11 * + - 95 * CASE + - 65 WHEN NULLIF ( + COUNT ( * ), + + 99 ) THEN 11 ELSE NULL END + 55 * 22 + + 21 AS col0
----
NULL

query I rowsort
SELECT 64 * + 42
----
2688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4227
SELECT + ( 46 ) + - 81 + + ( - 77 ) * + 49 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT + ( 46 ) + - 81 + + ( - 77 ) * + 49 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 50 * + 24 * 24
----
-28800

query I rowsort
SELECT ALL 67 * CASE - 37 WHEN ( + 86 ) - + ( + ( - 89 ) ) THEN - 34 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 2 * 33
----
66

query I rowsort
SELECT 6 + + 80
----
86

query I rowsort
SELECT ALL - 48 * - - 79 * 47 col2
----
-178224

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT NULLIF ( + 74, COUNT( * ) / 4 - 71 + + + 46 * + + COUNT( * ) * + 63 + 95 ) - 33 * + 21 AS col1
----
-619

skipif mysql # not compatible
query I rowsort label-4233
SELECT NULLIF ( + 74, COUNT ( * ) / 4 - 71 + + + 46 * + + COUNT ( * ) * + 63 + 95 ) - 33 * + 21 AS col1
----
-619

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT ALL COALESCE ( - - SUM( DISTINCT + 28 ), + COUNT( * ) ) * - - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL COALESCE ( - - SUM ( DISTINCT + 28 ), + COUNT ( * ) ) * - - COUNT ( * )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4235
SELECT 96 + 34 DIV + 42 * + - 2
----
96

skipif mysql # not compatible
query I rowsort label-4235
SELECT 96 + 34 / + 42 * + - 2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT 2 DIV + + 35 * 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4236
SELECT 2 / + + 35 * 34 AS col1
----
0

query I rowsort
SELECT DISTINCT 1 + - ( 25 )
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-4238
SELECT DISTINCT 40 AS col2, SUM( - - 71 ) + + + 15
----
40
86

skipif mysql # not compatible
query II rowsort label-4238
SELECT DISTINCT 40 AS col2, SUM ( - - 71 ) + + + 15
----
40
86

query I rowsort
SELECT ( - + NULLIF ( 35, + - 69 + + - ( - + 72 ) ) ) + + 7 + - 83
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4240
SELECT ALL 23 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL 23 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 88 + 64 - 44
----
108

query I rowsort
SELECT ALL 47 + - 96 AS col1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-4243
SELECT ALL - 95 + + 41 DIV 57
----
-95

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL - 95 + + 41 / 57
----
-95

query I rowsort
SELECT ALL 38 * 20 AS col2
----
760

query I rowsort
SELECT - 78 * 69
----
-5382

query I rowsort
SELECT ALL NULLIF ( + ( - - 61 ), + - 82 ) + + 57 AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL MAX( ALL - + 81 ) + 48
----
-33

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL MAX ( ALL - + 81 ) + 48
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT - 35 * - MIN( DISTINCT - 16 )
----
-560

skipif mysql # not compatible
query I rowsort label-4248
SELECT - 35 * - MIN ( DISTINCT - 16 )
----
-560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4249
SELECT - 97 DIV + 8 + COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-4249
SELECT - 97 / + 8 + COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - MIN( 22 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4250
SELECT - MIN ( 22 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL - COALESCE ( + SUM( ALL 23 ), - 33 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL - COALESCE ( + SUM ( ALL 23 ), - 33 ) AS col0
----
-23

query I rowsort
SELECT + 58 + + + 41
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4253
SELECT ALL - 70 - + MIN( DISTINCT CAST( - - 31 AS SIGNED ) )
----
-101

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL - 70 - + MIN ( DISTINCT CAST ( - - 31 AS INTEGER ) )
----
-101

query I rowsort
SELECT - 22 * + + 47 + 60
----
-974

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT ALL - - 5 - COUNT( * ) * + - MAX( ALL + - 58 ) + 54 + - 81 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL - - 5 - COUNT ( * ) * + - MAX ( ALL + - 58 ) + 54 + - 81 AS col1
----
-80

query I rowsort
SELECT + ( 13 ) * + - 74 + + 38
----
-924

onlyif mysql # DIV for integer division: 
query II rowsort label-4257
SELECT + + 68 AS col1, 88 * 98 DIV - - 56 AS col1
----
68
154

skipif mysql # not compatible
query II rowsort label-4257
SELECT + + 68 AS col1, 88 * 98 / - - 56 AS col1
----
68
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4258
SELECT ALL + COUNT( * ) / ( + 99 ) - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL + COUNT ( * ) / ( + 99 ) - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT ALL - ( - + 6 ) - - + COUNT( * ) * + CAST( - + 69 AS SIGNED ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL - ( - + 6 ) - - + COUNT ( * ) * + CAST ( - + 69 AS INTEGER ) col2
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT 32 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-4260
SELECT 32 / - 99
----
0

query II rowsort
SELECT + + 48 AS col0, + 37
----
48
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT 91 + 77 + NULLIF ( - 36, - - 48 ) + - 9 + - - COUNT( * ) AS col0
----
124

skipif mysql # not compatible
query I rowsort label-4262
SELECT 91 + 77 + NULLIF ( - 36, - - 48 ) + - 9 + - - COUNT ( * ) AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT NULLIF ( 44, - + COUNT( * ) + + AVG ( + 26 ) + - MIN( DISTINCT - 57 ) / NULLIF ( - 91, 41 ) + + 76 * COALESCE ( + COUNT( * ), 41 ) ) * - 61 AS col1
----
-2684

skipif mysql # not compatible
query I rowsort label-4263
SELECT NULLIF ( 44, - + COUNT ( * ) + + AVG ( + 26 ) + - MIN ( DISTINCT - 57 ) / NULLIF ( - 91, 41 ) + + 76 * COALESCE ( + COUNT ( * ), 41 ) ) * - 61 AS col1
----
-2684

query I rowsort
SELECT DISTINCT - + 1 * - 52 * - ( + - 51 )
----
2652

query II rowsort
SELECT + + 25 AS col1, 51
----
25
51

query I rowsort
SELECT ALL - - 50 * + + 7
----
350

query I rowsort
SELECT 3 * + 11 col1
----
33

query I rowsort
SELECT 93 * - 91
----
-8463

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT DISTINCT - 44 + - + SUM( 12 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT - 44 + - + SUM ( 12 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT ALL SUM( DISTINCT 5 )
----
5

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL SUM ( DISTINCT 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT 41 * + 16 * - COUNT( * ) * - 51
----
33456

skipif mysql # not compatible
query I rowsort label-4271
SELECT 41 * + 16 * - COUNT ( * ) * - 51
----
33456

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4272
SELECT ALL - NULLIF ( - CAST( - - 77 AS SIGNED ), + ( - 93 ) + - 90 ) + ( - 49 ) - - - NULLIF ( - 3, + ( ( NULLIF ( - CAST( NULL AS SIGNED ), + 51 ) ) ) ) DIV + 18 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL - NULLIF ( - CAST ( - - 77 AS INTEGER ), + ( - 93 ) + - 90 ) + ( - 49 ) - - - NULLIF ( - 3, + ( ( NULLIF ( - CAST ( NULL AS INTEGER ), + 51 ) ) ) ) / + 18 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT COUNT( * ) + - MIN( + 27 )
----
-26

skipif mysql # not compatible
query I rowsort label-4273
SELECT COUNT ( * ) + - MIN ( + 27 )
----
-26

query I rowsort
SELECT 31 * 8 AS col2
----
248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT ALL - 26 + - CAST( - + 19 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL - 26 + - CAST ( - + 19 AS INTEGER )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT DISTINCT SUM( DISTINCT NULLIF ( - 29, 43 ) ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT SUM ( DISTINCT NULLIF ( - 29, 43 ) ) AS col2
----
-29

query I rowsort
SELECT DISTINCT 47 + + + 62 + - NULLIF ( + ( 98 ), 29 ) AS col0
----
11

query I rowsort
SELECT ALL 6 + + + COALESCE ( - 52, - 82 ) AS col2
----
-46

query I rowsort
SELECT DISTINCT - COALESCE ( + 66, + 63 + 16 + + 27, - + 58 * 34 ) * 67
----
-4422

query I rowsort
SELECT DISTINCT + 82 + - 91 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT + 76 + + + MAX( - 35 ) * + - 99 AS col2
----
3541

skipif mysql # not compatible
query I rowsort label-4281
SELECT + 76 + + + MAX ( - 35 ) * + - 99 AS col2
----
3541

query II rowsort
SELECT ALL 50 - + + 41 col0, - 47 AS col0
----
9
-47

query I rowsort
SELECT + ( - 74 ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4284
SELECT DISTINCT + MIN( ALL + 45 ) - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT + MIN ( ALL + 45 ) - - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4285
SELECT ALL CAST( 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL CAST ( 41 AS INTEGER )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT - CASE 73 WHEN + 46 + 2 / - - 40 - COUNT( * ) THEN 92 WHEN - - 71 * + COUNT( * ) THEN 92 - 24 ELSE 70 END
----
-70

skipif mysql # not compatible
query I rowsort label-4286
SELECT - CASE 73 WHEN + 46 + 2 / - - 40 - COUNT ( * ) THEN 92 WHEN - - 71 * + COUNT ( * ) THEN 92 - 24 ELSE 70 END
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4287
SELECT + 69 * + - CAST( - 90 AS SIGNED )
----
6210

skipif mysql # not compatible
query I rowsort label-4287
SELECT + 69 * + - CAST ( - 90 AS INTEGER )
----
6210

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT ALL + - ( - MAX( DISTINCT 83 ) )
----
83

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL + - ( - MAX ( DISTINCT 83 ) )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT DISTINCT - 16 * + 80 * + - 6 * - 79 + + + CAST( + - 4 AS SIGNED ) AS col0
----
-606724

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT - 16 * + 80 * + - 6 * - 79 + + + CAST ( + - 4 AS INTEGER ) AS col0
----
-606724

query I rowsort
SELECT ALL CASE - 14 WHEN + + 72 + - 49 THEN NULL WHEN - - 18 - - + 89 THEN NULL ELSE + - 37 END * 51 AS col0
----
-1887

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4291
SELECT + - 78 - + 48 + 92 + + COALESCE ( 10, + - 44 ) + - + 66 DIV - COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4291
SELECT + - 78 - + 48 + 92 + + COALESCE ( 10, + - 44 ) + - + 66 / - COUNT ( * ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT + - COUNT( * ) * 47 + + + 24 * 39 + + + 28 * 43
----
2093

skipif mysql # not compatible
query I rowsort label-4292
SELECT + - COUNT ( * ) * 47 + + + 24 * 39 + + + 28 * 43
----
2093

onlyif mysql # aggregate syntax: 
query II rowsort label-4293
SELECT DISTINCT + MIN( ALL - 8 ) AS col2, - 69
----
-8
-69

skipif mysql # not compatible
query II rowsort label-4293
SELECT DISTINCT + MIN ( ALL - 8 ) AS col2, - 69
----
-8
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL + 33 * + ( - - 48 ) + + + SUM( ALL - 67 ) + + - 96 * 85 * 42 AS col1
----
-341203

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL + 33 * + ( - - 48 ) + + + SUM ( ALL - 67 ) + + - 96 * 85 * 42 AS col1
----
-341203

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT - 2 - + MIN( - - 18 )
----
-20

skipif mysql # not compatible
query I rowsort label-4295
SELECT - 2 - + MIN ( - - 18 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT + CASE + + ( + 23 ) WHEN + 24 THEN + ( - - 71 ) * - 54 / COUNT( * ) WHEN 32 / - - 34 * COUNT( * ) THEN NULL WHEN COUNT( * ) * - 77 - 31 * - 93 THEN 99 - 87 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT + CASE + + ( + 23 ) WHEN + 24 THEN + ( - - 71 ) * - 54 / COUNT ( * ) WHEN 32 / - - 34 * COUNT ( * ) THEN NULL WHEN COUNT ( * ) * - 77 - 31 * - 93 THEN 99 - 87 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL + COUNT( * ) * + + COUNT( * ) + + NULLIF ( + 50, + - COUNT( ALL + 1 ) )
----
51

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) + + NULLIF ( + 50, + - COUNT ( ALL + 1 ) )
----
51

query I rowsort
SELECT + NULLIF ( + - 54, ( 65 ) ) AS col1
----
-54

query I rowsort
SELECT + 48 + 77 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT + 66 + - + COUNT( * ) * - 56
----
122

skipif mysql # not compatible
query I rowsort label-4300
SELECT + 66 + - + COUNT ( * ) * - 56
----
122

query I rowsort
SELECT ALL - 17 * 46 + 33 AS col0
----
-749

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4302
SELECT ALL + 67 + - - CAST( NULL AS DECIMAL ) * - - COUNT( 32 ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL + 67 + - - CAST ( NULL AS REAL ) * - - COUNT ( 32 ) + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4303
SELECT - 93 * - 99 + + 36 + + + COALESCE ( + CAST( + 87 AS SIGNED ), - 74, - 11 + - + 42 ) + - + CASE + 64 WHEN + ( 85 ) THEN NULL WHEN - 35 THEN + SUM( ALL 54 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT - 93 * - 99 + + 36 + + + COALESCE ( + CAST ( + 87 AS INTEGER ), - 74, - 11 + - + 42 ) + - + CASE + 64 WHEN + ( 85 ) THEN NULL WHEN - 35 THEN + SUM ( ALL 54 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL SUM( - 75 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL SUM ( - 75 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL - 95 + + + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL - 95 + + + COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT - ( ( - + MAX( ALL + - 83 ) ) ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-4306
SELECT - ( ( - + MAX ( ALL + - 83 ) ) ) col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT - ( + NULLIF ( COUNT( ALL - - 71 ), - ( 3 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4307
SELECT - ( + NULLIF ( COUNT ( ALL - - 71 ), - ( 3 ) ) )
----
-1

query I rowsort
SELECT DISTINCT - 50 - - 95 * - 29 AS col0
----
-2805

query II rowsort
SELECT 42 col0, + 87 * 11 AS col0
----
42
957

query I rowsort
SELECT - 41 + - - 86 * + 4
----
303

onlyif mysql # DIV for integer division: 
query I rowsort label-4311
SELECT DISTINCT + 78 DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT + 78 / + 94 AS col0
----
0

query I rowsort
SELECT - + 50 + + 38 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT - - 75 + + + MAX( ALL + + 26 )
----
101

skipif mysql # not compatible
query I rowsort label-4313
SELECT - - 75 + + + MAX ( ALL + + 26 )
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT DISTINCT + + 97 DIV 37 + 41
----
43

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT + + 97 / 37 + 41
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT DISTINCT + + 21 * + COUNT( * ) + 48 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT + + 21 * + COUNT ( * ) + 48 AS col2
----
69

query I rowsort
SELECT - + 98 + 79
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4317
SELECT ALL - 87 * + COUNT( - - 88 ) * SUM( - + 69 ) AS col0, - 37 - + 69 DIV - 35
----
6003
-36

skipif mysql # not compatible
query II rowsort label-4317
SELECT ALL - 87 * + COUNT ( - - 88 ) * SUM ( - + 69 ) AS col0, - 37 - + 69 / - 35
----
6003
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4318
SELECT - - 23 DIV - - 62
----
0

skipif mysql # not compatible
query I rowsort label-4318
SELECT - - 23 / - - 62
----
0

query I rowsort
SELECT + + 18 * + 15
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-4320
SELECT + 38 DIV + 88 + 76 + + 15 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4320
SELECT + 38 / + 88 + 76 + + 15 AS col2
----
91

query I rowsort
SELECT - + 49 * - 67
----
3283

query I rowsort
SELECT + - 43 * + + 30
----
-1290

query II rowsort
SELECT ALL + - 73, 69 AS col0
----
-73
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4324
SELECT - 42 + + 75 + 39, + MAX( 94 ) + + + NULLIF ( - 9, - + 89 + - + 50 ) DIV + 88 * 74 AS col1
----
72
94

skipif mysql # not compatible
query II rowsort label-4324
SELECT - 42 + + 75 + 39, + MAX ( 94 ) + + + NULLIF ( - 9, - + 89 + - + 50 ) / + 88 * 74 AS col1
----
72
94

query I rowsort
SELECT ALL - 27 * + ( 29 ) + 1
----
-782

query I rowsort
SELECT ALL + NULLIF ( - 3, + 93 ) col2
----
-3

query II rowsort
SELECT ALL + 10, 80 AS col0
----
10
80

query II rowsort
SELECT + - 0 AS col0, 14 AS col0
----
0
14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4329
SELECT DISTINCT - - 14 DIV - 7 + + CAST( + 6 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT - - 14 / - 7 + + CAST ( + 6 AS INTEGER )
----
4

query II rowsort
SELECT ALL + 57, + 85 + + 45 AS col0
----
57
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4331
SELECT + 78 + - COUNT( * ) * 11 * COALESCE ( + NULLIF ( 71, - CASE - + CAST( NULL AS DECIMAL ) WHEN 94 THEN - - 84 ELSE NULL END - - 38 + ( + ( - 78 ) - - ( - 45 ) * 81 ) ), 93 / 8 + COUNT( * ) / 69 ) * + 10 + + ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT + 78 + - COUNT ( * ) * 11 * COALESCE ( + NULLIF ( 71, - CASE - + CAST ( NULL AS REAL ) WHEN 94 THEN - - 84 ELSE NULL END - - 38 + ( + ( - 78 ) - - ( - 45 ) * 81 ) ), 93 / 8 + COUNT ( * ) / 69 ) * + 10 + + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ( - MIN( - 73 ) ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4332
SELECT ( - MIN ( - 73 ) ) AS col2
----
73

query I rowsort
SELECT + NULLIF ( + 83, + ( + ( + 9 ) ) ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT 99 * - + ( + ( + CASE - + COUNT( * ) WHEN 2 * + - ( - + 40 ) / 49 THEN - COUNT( * ) ELSE + + 71 END ) ) * 81 + MAX( + 18 - 77 ) col2
----
-569408

skipif mysql # not compatible
query I rowsort label-4334
SELECT 99 * - + ( + ( + CASE - + COUNT ( * ) WHEN 2 * + - ( - + 40 ) / 49 THEN - COUNT ( * ) ELSE + + 71 END ) ) * 81 + MAX ( + 18 - 77 ) col2
----
-569408

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT + NULLIF ( - + CASE + 43 WHEN - 36 THEN - COUNT( * ) * - COALESCE ( 51, - 7, - 29 * 70 ) * 28 * 25 END, + CASE 45 WHEN NULLIF ( 44, 21 ) THEN NULL WHEN 93 + - 7 THEN 76 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4335
SELECT + NULLIF ( - + CASE + 43 WHEN - 36 THEN - COUNT ( * ) * - COALESCE ( 51, - 7, - 29 * 70 ) * 28 * 25 END, + CASE 45 WHEN NULLIF ( 44, 21 ) THEN NULL WHEN 93 + - 7 THEN 76 END ) col0
----
NULL

query II rowsort
SELECT DISTINCT + 83 AS col1, - 59
----
83
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT ALL - 73 * 92 * + 68 + COUNT( * )
----
-456687

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL - 73 * 92 * + 68 + COUNT ( * )
----
-456687

query I rowsort
SELECT + 42 * - 49 * - 87
----
179046

query I rowsort
SELECT ALL - 95 * + 68 * 78 + - 26 AS col0
----
-503906

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT + COUNT( * ) * + 13
----
13

skipif mysql # not compatible
query I rowsort label-4340
SELECT + COUNT ( * ) * + 13
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4341
SELECT ALL + 92 AS col2, MAX( + 1 )
----
92
1

skipif mysql # not compatible
query II rowsort label-4341
SELECT ALL + 92 AS col2, MAX ( + 1 )
----
92
1

query I rowsort
SELECT CASE - 18 WHEN + 14 THEN 68 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT - CAST( + 90 AS SIGNED ) * - 73 col0
----
6570

skipif mysql # not compatible
query I rowsort label-4343
SELECT - CAST ( + 90 AS INTEGER ) * - 73 col0
----
6570

query I rowsort
SELECT DISTINCT 88 * - + ( 1 )
----
-88

query I rowsort
SELECT ALL + 91 * + ( - - 86 ) AS col1
----
7826

query I rowsort
SELECT ALL - 37 * 96 AS col2
----
-3552

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4347
SELECT ALL 8 AS col0, COALESCE ( 20, - - CAST( NULL AS SIGNED ) )
----
8
20

skipif mysql # not compatible
query II rowsort label-4347
SELECT ALL 8 AS col0, COALESCE ( 20, - - CAST ( NULL AS INTEGER ) )
----
8
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT DISTINCT COUNT( ALL 82 )
----
1

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT COUNT ( ALL 82 )
----
1

query II rowsort
SELECT - 92 AS col0, - ( - 4 )
----
-92
4

query I rowsort
SELECT ALL - ( 21 ) * 34 AS col0
----
-714

query II rowsort
SELECT ALL - 87 AS col0, - 31 AS col1
----
-87
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4352
SELECT - CAST( 32 AS SIGNED ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-4352
SELECT - CAST ( 32 AS INTEGER ) AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT - 47 + + 24 DIV + - 62
----
-47

skipif mysql # not compatible
query I rowsort label-4353
SELECT - 47 + + 24 / + - 62
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL + MAX( 65 )
----
65

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + MAX ( 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT - MAX( 51 ) + + + ( - 76 ) + 14 * 67
----
811

skipif mysql # not compatible
query I rowsort label-4355
SELECT - MAX ( 51 ) + + + ( - 76 ) + 14 * 67
----
811

query II rowsort
SELECT 75 AS col1, 69 AS col0
----
75
69

query II rowsort
SELECT 12, + ( 65 ) AS col2
----
12
65

query I rowsort
SELECT - 87 * - 58 AS col2
----
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ALL + + COUNT( * ) + - 93 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL + + COUNT ( * ) + - 93 AS col0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT - 27 * - CAST( - 56 AS SIGNED )
----
-1512

skipif mysql # not compatible
query I rowsort label-4360
SELECT - 27 * - CAST ( - 56 AS INTEGER )
----
-1512

query I rowsort
SELECT 46 + + 38 col1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-4362
SELECT ALL 10 AS col1, - COUNT( * )
----
10
-1

skipif mysql # not compatible
query II rowsort label-4362
SELECT ALL 10 AS col1, - COUNT ( * )
----
10
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4363
SELECT DISTINCT + 39 + - + 39 * + 11 + - 78 * - SUM( - 30 ) + + COALESCE ( + 67, + ( - 68 ) ) DIV - 64 AS col2
----
-2731

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT + 39 + - + 39 * + 11 + - 78 * - SUM ( - 30 ) + + COALESCE ( + 67, + ( - 68 ) ) / - 64 AS col2
----
-2731

query I rowsort
SELECT ALL - + ( + - 48 ) + 27 col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4365
SELECT + 54 DIV 12 AS col2, + COUNT( + + 26 )
----
4
1

skipif mysql # not compatible
query II rowsort label-4365
SELECT + 54 / 12 AS col2, + COUNT ( + + 26 )
----
4
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4366
SELECT DISTINCT - - 2 col1, - MIN( + 64 ) AS col2
----
2
-64

skipif mysql # not compatible
query II rowsort label-4366
SELECT DISTINCT - - 2 col1, - MIN ( + 64 ) AS col2
----
2
-64

query I rowsort
SELECT ALL + - 14 + 18 + 13 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL - + COUNT( 79 ) * - 4
----
4

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - + COUNT ( 79 ) * - 4
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-4369
SELECT 46 DIV - 5 AS col1, - 76 AS col1
----
-9
-76

skipif mysql # not compatible
query II rowsort label-4369
SELECT 46 / - 5 AS col1, - 76 AS col1
----
-9
-76

query I rowsort
SELECT 2 * + 60 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT COUNT( * ) * + - ( - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-4371
SELECT COUNT ( * ) * + - ( - 72 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4372
SELECT 12 - - - ( - - 76 ) * + + SUM( - 81 ) * + 31 + + 40 AS col2, 20 + + CASE MAX( + + 29 ) WHEN + COALESCE ( 68, - ( 72 ) ) THEN 74 WHEN + 8 THEN + 21 + - COUNT( * ) END + - CAST( NULL AS DECIMAL ) * - COUNT( * )
----
190888
NULL

skipif mysql # not compatible
query II rowsort label-4372
SELECT 12 - - - ( - - 76 ) * + + SUM ( - 81 ) * + 31 + + 40 AS col2, 20 + + CASE MAX ( + + 29 ) WHEN + COALESCE ( 68, - ( 72 ) ) THEN 74 WHEN + 8 THEN + 21 + - COUNT ( * ) END + - CAST ( NULL AS REAL ) * - COUNT ( * )
----
190888
NULL

query I rowsort
SELECT 15 * 25 AS col1
----
375

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4374
SELECT 21 DIV + 63 AS col0, 94 * COUNT( * ) * + + 1 + - - 14
----
0
108

skipif mysql # not compatible
query II rowsort label-4374
SELECT 21 / + 63 AS col0, 94 * COUNT ( * ) * + + 1 + - - 14
----
0
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL - CASE + + 68 WHEN + 38 THEN NULL WHEN - ( + + COUNT( * ) ) THEN + 2 * - 73 * + - 58 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL - CASE + + 68 WHEN + 38 THEN NULL WHEN - ( + + COUNT ( * ) ) THEN + 2 * - 73 * + - 58 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4376
SELECT ALL 31 + 0 + MAX( + - 37 ) DIV - NULLIF ( - 53, ( 69 ) * + 56 ) + - 72
----
-41

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL 31 + 0 + MAX ( + - 37 ) / - NULLIF ( - 53, ( 69 ) * + 56 ) + - 72
----
-41

query I rowsort
SELECT - CASE + 42 WHEN - 66 + - 16 THEN 11 + + + 53 ELSE NULL END * - 80 + + - 46 * - 13 + - 80 + 83
----
NULL

query I rowsort
SELECT ( - + 27 ) - + - 91 + + 88
----
152

query I rowsort
SELECT 30 + + 51 + + 75 AS col2
----
156

query I rowsort
SELECT NULLIF ( 22, - ( - 4 ) ) + + - 94 AS col2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4381
SELECT ALL 47 * - + 79, CAST( - 82 AS SIGNED ) AS col0
----
-3713
-82

skipif mysql # not compatible
query II rowsort label-4381
SELECT ALL 47 * - + 79, CAST ( - 82 AS INTEGER ) AS col0
----
-3713
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4382
SELECT COALESCE ( + 85, CASE - + ( + CAST( ( - COUNT( * ) ) AS SIGNED ) ) WHEN + 81 THEN - 13 + - + 30 END, + - 55 ) + + 39 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-4382
SELECT COALESCE ( + 85, CASE - + ( + CAST ( ( - COUNT ( * ) ) AS INTEGER ) ) WHEN + 81 THEN - 13 + - + 30 END, + - 55 ) + + 39 AS col0
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4383
SELECT MAX( ALL + 77 ) + NULLIF ( + CASE - - ( ( 47 ) ) WHEN + - 17 THEN NULL ELSE + ( ( 74 ) ) END, 75 * 74 - - CAST( NULL AS SIGNED ) ) + - ( 72 ) * + 36 AS col0
----
-2441

skipif mysql # not compatible
query I rowsort label-4383
SELECT MAX ( ALL + 77 ) + NULLIF ( + CASE - - ( ( 47 ) ) WHEN + - 17 THEN NULL ELSE + ( ( 74 ) ) END, 75 * 74 - - CAST ( NULL AS INTEGER ) ) + - ( 72 ) * + 36 AS col0
----
-2441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4384
SELECT 5 * COUNT( * ) * - 26 + + NULLIF ( 67, - CAST( NULL AS SIGNED ) - - + 23 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-4384
SELECT 5 * COUNT ( * ) * - 26 + + NULLIF ( 67, - CAST ( NULL AS INTEGER ) - - + 23 ) AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4385
SELECT 72 * - MAX( ( - - 85 ) ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT 72 * - MAX ( ( - - 85 ) ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4386
SELECT + CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4386
SELECT + CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4387
SELECT - 75 DIV + 6 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4387
SELECT - 75 / + 6 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT - 44 * + ( - COUNT( * ) )
----
44

skipif mysql # not compatible
query I rowsort label-4388
SELECT - 44 * + ( - COUNT ( * ) )
----
44

query I rowsort
SELECT - - 22 col0
----
22

query II rowsort
SELECT ALL 32 * 53 AS col2, 48 + + + 7 AS col2
----
1696
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT + COUNT( * ) + 95 * + ( + 84 ) * + COUNT( * ) * + 87 - + 85 + - NULLIF ( - 11, - + 72 ) * + - 14 - 75 - 10 col1
----
693937

skipif mysql # not compatible
query I rowsort label-4391
SELECT + COUNT ( * ) + 95 * + ( + 84 ) * + COUNT ( * ) * + 87 - + 85 + - NULLIF ( - 11, - + 72 ) * + - 14 - 75 - 10 col1
----
693937

query I rowsort
SELECT ALL + - 92 * - + 67 * 85
----
523940

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + COUNT( * ) * 10
----
10

skipif mysql # not compatible
query I rowsort label-4393
SELECT + COUNT ( * ) * 10
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4394
SELECT ALL - CAST( NULL AS SIGNED ) + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL - CAST ( NULL AS INTEGER ) + + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL NULLIF ( + 94, 64 + COUNT( * ) - ( + MAX( DISTINCT + 93 ) ) + 6 * + - SUM( DISTINCT 53 ) - 99 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL NULLIF ( + 94, 64 + COUNT ( * ) - ( + MAX ( DISTINCT + 93 ) ) + 6 * + - SUM ( DISTINCT 53 ) - 99 ) AS col0
----
94

query I rowsort
SELECT ALL - + 79 + 7 + + 6
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT - 91 + - 69 - + COUNT( NULLIF ( + 90, - 14 ) ) + - 10 - 9 * + + 27 AS col2
----
-414

skipif mysql # not compatible
query I rowsort label-4397
SELECT - 91 + - 69 - + COUNT ( NULLIF ( + 90, - 14 ) ) + - 10 - 9 * + + 27 AS col2
----
-414

query II rowsort
SELECT DISTINCT COALESCE ( - + 93, + 5 ) AS col2, 60 AS col0
----
-93
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT + 27 + - - 73 DIV - 49 + + + 23
----
49

skipif mysql # not compatible
query I rowsort label-4399
SELECT + 27 + - - 73 / - 49 + + + 23
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT - CASE + COUNT( * ) WHEN + 22 THEN ( - 65 ) ELSE 99 END AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT - CASE + COUNT ( * ) WHEN + 22 THEN ( - 65 ) ELSE 99 END AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4401
SELECT ALL - ( - MAX( DISTINCT 87 ) ), - 73 * - COUNT( * ) AS col2
----
87
73

skipif mysql # not compatible
query II rowsort label-4401
SELECT ALL - ( - MAX ( DISTINCT 87 ) ), - 73 * - COUNT ( * ) AS col2
----
87
73

query I rowsort
SELECT ALL 6 * + 61 - 91
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT - 19 * SUM( - 27 ) + + - 15 * - + 93
----
1908

skipif mysql # not compatible
query I rowsort label-4403
SELECT - 19 * SUM ( - 27 ) + + - 15 * - + 93
----
1908

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4404
SELECT NULLIF ( 93, MIN( DISTINCT ( - - 95 ) ) ) DIV 56 + COALESCE ( - + 43, 42 ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-4404
SELECT NULLIF ( 93, MIN ( DISTINCT ( - - 95 ) ) ) / 56 + COALESCE ( - + 43, 42 ) col0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT 27 * ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT 27 * ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 37 * + - 68 * + + ( - - 52 ) col0
----
-130832

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT COUNT( DISTINCT - + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-4407
SELECT COUNT ( DISTINCT - + 61 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT MAX( DISTINCT - + 31 ) * + COALESCE ( + 58, - 55 * - COUNT( - 86 ) ) * - - 83 + - 14 + + + NULLIF ( - 58, - + 32 ) AS col1
----
-149306

skipif mysql # not compatible
query I rowsort label-4408
SELECT MAX ( DISTINCT - + 31 ) * + COALESCE ( + 58, - 55 * - COUNT ( - 86 ) ) * - - 83 + - 14 + + + NULLIF ( - 58, - + 32 ) AS col1
----
-149306

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT 82 DIV + 25 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4409
SELECT 82 / + 25 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT ALL + 9 * + COALESCE ( SUM( ALL + 23 ), + 36 * 62 - + - 25 )
----
207

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL + 9 * + COALESCE ( SUM ( ALL + 23 ), + 36 * 62 - + - 25 )
----
207

onlyif mysql # aggregate syntax: 
query II rowsort label-4411
SELECT COUNT( * ) AS col1, ( - 0 )
----
1
0

skipif mysql # not compatible
query II rowsort label-4411
SELECT COUNT ( * ) AS col1, ( - 0 )
----
1
0

query II rowsort
SELECT ALL - 27, 74 AS col1
----
-27
74

query I rowsort
SELECT - ( - + 53 ) * + + 87 col1
----
4611

query I rowsort
SELECT ALL 93 * - 63
----
-5859

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT + MIN( DISTINCT - 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-4415
SELECT + MIN ( DISTINCT - 10 ) AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4416
SELECT + - 5 * - COALESCE ( 36, 2, COUNT( * ) * - CAST( NULL AS SIGNED ) DIV - 19 * + - 48 + + 73 ) - + 58 + - 15 AS col0, 96 * - - 61 AS col0
----
107
5856

skipif mysql # not compatible
query II rowsort label-4416
SELECT + - 5 * - COALESCE ( 36, 2, COUNT ( * ) * - CAST ( NULL AS INTEGER ) / - 19 * + - 48 + + 73 ) - + 58 + - 15 AS col0, 96 * - - 61 AS col0
----
107
5856

query II rowsort
SELECT ALL 72 AS col1, 35 + + - 46
----
72
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4418
SELECT DISTINCT - + CASE 17 WHEN + 17 * - CAST( NULL AS SIGNED ) THEN MIN( ALL - 28 ) END + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT - + CASE 17 WHEN + 17 * - CAST ( NULL AS INTEGER ) THEN MIN ( ALL - 28 ) END + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT + - 61 - + 20 + + COUNT( * ) + - ( - + ( 3 ) ) + + 50 + 43 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4419
SELECT + - 61 - + 20 + + COUNT ( * ) + - ( - + ( 3 ) ) + + 50 + 43 AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4420
SELECT ALL - + COUNT( * ) + + - 47 + + 39 + - - COUNT( * ) / - + CASE - - 62 WHEN + COUNT( * ) - COUNT( * ) * CAST( 54 AS DECIMAL ) + COUNT( * ) * + CAST( + 95 AS SIGNED ) * 18 + - COUNT( * ) THEN 54 - - ( - 17 ) WHEN COUNT( * ) * + 34 THEN SUM( DISTINCT + ( + 19 ) ) WHEN 25 THEN NULL END * 47 + 45 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL - + COUNT ( * ) + + - 47 + + 39 + - - COUNT ( * ) / - + CASE - - 62 WHEN + COUNT ( * ) - COUNT ( * ) * CAST ( 54 AS REAL ) + COUNT ( * ) * + CAST ( + 95 AS INTEGER ) * 18 + - COUNT ( * ) THEN 54 - - ( - 17 ) WHEN COUNT ( * ) * + 34 THEN SUM ( DISTINCT + ( + 19 ) ) WHEN 25 THEN NULL END * 47 + 45 col0
----
NULL

query I rowsort
SELECT ALL + + ( 75 ) + 39 * + 59 AS col0
----
2376

query I rowsort
SELECT ALL 61 + + 40 AS col2
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4423
SELECT ALL - 50, - 14 DIV COUNT( * ) AS col2
----
-50
-14

skipif mysql # not compatible
query II rowsort label-4423
SELECT ALL - 50, - 14 / COUNT ( * ) AS col2
----
-50
-14

query I rowsort
SELECT + + 79 + + 98 * + ( - 63 ) - 54 AS col0
----
-6149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT + NULLIF ( - - CAST( 42 AS SIGNED ), 10 ) - - + 51 + - 57 + - 52 * + + NULLIF ( + 67, + + 49 ) AS col0
----
-3448

skipif mysql # not compatible
query I rowsort label-4425
SELECT + NULLIF ( - - CAST ( 42 AS INTEGER ), 10 ) - - + 51 + - 57 + - 52 * + + NULLIF ( + 67, + + 49 ) AS col0
----
-3448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4426
SELECT DISTINCT 23 DIV - - COUNT( * ) + 46 * - 45
----
-2047

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT 23 / - - COUNT ( * ) + 46 * - 45
----
-2047

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL - 98 + COUNT( - - 30 ) col0
----
-97

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - 98 + COUNT ( - - 30 ) col0
----
-97

query I rowsort
SELECT + + 34 * - 88 AS col1
----
-2992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4429
SELECT + - 18 DIV + - NULLIF ( - COUNT( * ), + - 69 )
----
-18

skipif mysql # not compatible
query I rowsort label-4429
SELECT + - 18 / + - NULLIF ( - COUNT ( * ), + - 69 )
----
-18

query I rowsort
SELECT - NULLIF ( + ( - + 17 ), + 73 )
----
17

query I rowsort
SELECT ALL ( + - 7 ) * 98 * 6 AS col2
----
-4116

query I rowsort
SELECT DISTINCT 84 - 24 col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT + 13 * + COUNT( DISTINCT - 16 ) * + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-4433
SELECT + 13 * + COUNT ( DISTINCT - 16 ) * + COUNT ( * )
----
13

query I rowsort
SELECT DISTINCT 19 * + - 4 AS col2
----
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4435
SELECT ( - CAST( NULL AS DECIMAL ) ) AS col0, 32
----
NULL
32

skipif mysql # not compatible
query II rowsort label-4435
SELECT ( - CAST ( NULL AS REAL ) ) AS col0, 32
----
NULL
32

query I rowsort
SELECT + 77 * 58 AS col1
----
4466

query I rowsort
SELECT ( - + 21 ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT DISTINCT + COALESCE ( - SUM( 79 ), COUNT( * ) + + 67, - 12 )
----
-79

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT + COALESCE ( - SUM ( 79 ), COUNT ( * ) + + 67, - 12 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT DISTINCT + SUM( + - 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT + SUM ( + - 4 ) AS col1
----
-4

query II rowsort
SELECT ALL + ( + 24 ), 91 + - - 11 AS col2
----
24
102

query I rowsort
SELECT DISTINCT - 23 * + 26 AS col0
----
-598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4442
SELECT - SUM( + COALESCE ( CAST( + 17 AS SIGNED ), CAST( - + 99 AS DECIMAL ) + - + 59 ) ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT - SUM ( + COALESCE ( CAST ( + 17 AS INTEGER ), CAST ( - + 99 AS REAL ) + - + 59 ) ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4443
SELECT ALL + 33 * + + 88 DIV + 22 AS col0
----
132

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL + 33 * + + 88 / + 22 AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT COUNT( * ) * COUNT( * ) + + + 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4444
SELECT COUNT ( * ) * COUNT ( * ) + + + 52 AS col2
----
53

query I rowsort
SELECT - 76 - - 35
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4446
SELECT - COUNT( * ) + ( - 66 ) * 63 DIV - + ( + 52 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4446
SELECT - COUNT ( * ) + ( - 66 ) * 63 / - + ( + 52 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL COUNT( * ) * - 61 * 97 + NULLIF ( - - 20, - 66 / + 22 + + 61 ) AS col0
----
-5897

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL COUNT ( * ) * - 61 * 97 + NULLIF ( - - 20, - 66 / + 22 + + 61 ) AS col0
----
-5897

query I rowsort
SELECT - - 65 + - 93 AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4449
SELECT DISTINCT - 0 * + 72 * 63 + - - COUNT( + 99 ) * + - CAST( - COUNT( * ) AS SIGNED ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT - 0 * + 72 * 63 + - - COUNT ( + 99 ) * + - CAST ( - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4450
SELECT ALL + - 12 / + - 39 - + 22 * + COALESCE ( 98, - 56 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL + - 12 / + - 39 - + 22 * + COALESCE ( 98, - 56 ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT ALL 33 * - 36 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL 33 * - 36 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT + SUM( DISTINCT - CASE - ( 97 ) WHEN 7 THEN - 84 / 23 WHEN - 56 * 97 THEN + - 52 * - 58 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT + SUM ( DISTINCT - CASE - ( 97 ) WHEN 7 THEN - 84 / 23 WHEN - 56 * 97 THEN + - 52 * - 58 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4453
SELECT - - COUNT( * ) + - - CASE - MAX( 89 ) WHEN COUNT( * ) + + 66 THEN + + 24 - - 75 * + 3 * + - CAST( NULL AS SIGNED ) WHEN - + ( 40 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT - - COUNT ( * ) + - - CASE - MAX ( 89 ) WHEN COUNT ( * ) + + 66 THEN + + 24 - - 75 * + 3 * + - CAST ( NULL AS INTEGER ) WHEN - + ( 40 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - MIN( 59 ) * - + 82 * - COUNT( * ) * COALESCE ( - COUNT( * ), + 94, 43 + + ( 53 ) * - 91 + + + CASE + 86 WHEN + 72 * - 70 THEN + 51 END )
----
4838

skipif mysql # not compatible
query I rowsort label-4454
SELECT - MIN ( 59 ) * - + 82 * - COUNT ( * ) * COALESCE ( - COUNT ( * ), + 94, 43 + + ( 53 ) * - 91 + + + CASE + 86 WHEN + 72 * - 70 THEN + 51 END )
----
4838

query I rowsort
SELECT - + COALESCE ( - 6, - - 47 ) AS col1
----
6

query I rowsort
SELECT ALL + 69 - - 52
----
121

query I rowsort
SELECT - + 89 * - 16 + - 91 AS col1
----
1333

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT - 9 + - COUNT( - 48 ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-4458
SELECT - 9 + - COUNT ( - 48 ) col1
----
-10

query I rowsort
SELECT ALL + ( - 1 ) * - + 60 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT + 96 * COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-4460
SELECT + 96 * COUNT ( * )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4461
SELECT + COUNT( * ) - CASE + + 56 WHEN - 5 + + 90 THEN - + 17 + + 35 * - 96 * ( - 65 ) * + - 47 + - COUNT( * ) WHEN - 41 * 32 THEN - COALESCE ( - ( - 96 ), - 93 / 59, - CAST( NULL AS SIGNED ) + - 68 ) END / - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT + COUNT ( * ) - CASE + + 56 WHEN - 5 + + 90 THEN - + 17 + + 35 * - 96 * ( - 65 ) * + - 47 + - COUNT ( * ) WHEN - 41 * 32 THEN - COALESCE ( - ( - 96 ), - 93 / 59, - CAST ( NULL AS INTEGER ) + - 68 ) END / - 85
----
NULL

query I rowsort
SELECT + 90 + - 20
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4463
SELECT + COUNT( * ) DIV - 71 * + COUNT( * ) * + - 29 * + + NULLIF ( - - 65, - + AVG ( ALL + - CAST( NULL AS SIGNED ) ) ) AS col2, 55 + - 13 + + 82 * - - CASE - 18 WHEN + 88 THEN NULL ELSE - - 58 * - 95 END * + 90 - 42 * + 84
----
0
-40667286

skipif mysql # not compatible
query II rowsort label-4463
SELECT + COUNT ( * ) / - 71 * + COUNT ( * ) * + - 29 * + + NULLIF ( - - 65, - + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) ) AS col2, 55 + - 13 + + 82 * - - CASE - 18 WHEN + 88 THEN NULL ELSE - - 58 * - 95 END * + 90 - 42 * + 84
----
0
-40667286

query I rowsort
SELECT - 60 * + 67
----
-4020

onlyif mysql # DIV for integer division: 
query II rowsort label-4465
SELECT ALL 72 DIV 65 * + 23 col0, 73 DIV - 91
----
23
0

skipif mysql # not compatible
query II rowsort label-4465
SELECT ALL 72 / 65 * + 23 col0, 73 / - 91
----
23
0

query I rowsort
SELECT + 78 + - + ( - 6 )
----
84

query I rowsort
SELECT - NULLIF ( + 95, 35 )
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4468
SELECT ALL 24 * 36 * - - 58 * - 43 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL 24 * 36 * - - 58 * - 43 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT ALL CAST( NULL AS SIGNED ) / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL CAST ( NULL AS INTEGER ) / + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 0 * 95
----
0

query I rowsort
SELECT ALL 18 * 11 * 98
----
19404

query I rowsort
SELECT DISTINCT 29 * + 51 AS col2
----
1479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT + 72 * + 85 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4473
SELECT + 72 * + 85 + - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 93, + 98 * - 38 AS col0
----
93
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL 64 + + COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL 64 + + COUNT ( * ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT SUM( - 75 ) * - 82 + + 23 + + + 27 * + 2 + - 38 * - + 71 + 21
----
8946

skipif mysql # not compatible
query I rowsort label-4476
SELECT SUM ( - 75 ) * - 82 + + 23 + + + 27 * + 2 + - 38 * - + 71 + 21
----
8946

query II rowsort
SELECT + 1 AS col2, + 26 AS col2
----
1
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4478
SELECT ALL 58 + + 66 DIV - - ( 15 ) + - ( - 9 )
----
71

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL 58 + + 66 / - - ( 15 ) + - ( - 9 )
----
71

query I rowsort
SELECT - 90 * + - 27 * + + 46 + - 13
----
111767

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL - COUNT( DISTINCT + - 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL - COUNT ( DISTINCT + - 85 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4481
SELECT ALL - CAST( NULL AS DECIMAL ) + + - 27 + - COALESCE ( + + 81, + 64 ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL - CAST ( NULL AS REAL ) + + - 27 + - COALESCE ( + + 81, + 64 ) + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL 38 + - 88 col1
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT 66 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-4483
SELECT 66 / - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT ALL + + 85 + + MAX( 69 )
----
154

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL + + 85 + + MAX ( 69 )
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-4485
SELECT 65, + MIN( + - 98 ) AS col1
----
65
-98

skipif mysql # not compatible
query II rowsort label-4485
SELECT 65, + MIN ( + - 98 ) AS col1
----
65
-98

query I rowsort
SELECT 0 - - + 38 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT DISTINCT + - ( - COUNT( * ) ) * COUNT( * ) + + 25 col0
----
26

skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT + - ( - COUNT ( * ) ) * COUNT ( * ) + + 25 col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4488
SELECT ( 21 ) / - 45 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT ( 21 ) / - 45 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 89 * + 63
----
5607

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT NULLIF ( - - 14, - SUM( + + ( 36 ) ) ) * - - 81 AS col2
----
1134

skipif mysql # not compatible
query I rowsort label-4490
SELECT NULLIF ( - - 14, - SUM ( + + ( 36 ) ) ) * - - 81 AS col2
----
1134

query II rowsort
SELECT - + 23 col0, - 98 * CASE + 15 WHEN - 13 + + 71 THEN NULL ELSE - 60 END AS col2
----
-23
5880

onlyif mysql # aggregate syntax: 
query II rowsort label-4492
SELECT 20 AS col2, 98 / + 45 / - CASE - COUNT( * ) WHEN + 63 THEN + 20 END col0
----
20
NULL

skipif mysql # not compatible
query II rowsort label-4492
SELECT 20 AS col2, 98 / + 45 / - CASE - COUNT ( * ) WHEN + 63 THEN + 20 END col0
----
20
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4493
SELECT - + 8 * + + 45 - + MIN( DISTINCT 35 ) DIV - 98 * - - 49 col1, COALESCE ( 56, 71, - COUNT( * ) + 79 ) - - 30
----
-360
86

skipif mysql # not compatible
query II rowsort label-4493
SELECT - + 8 * + + 45 - + MIN ( DISTINCT 35 ) / - 98 * - - 49 col1, COALESCE ( 56, 71, - COUNT ( * ) + 79 ) - - 30
----
-360
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ALL - + 13 * + 40 + + + COUNT( * ) + + - 64 AS col2
----
-583

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL - + 13 * + 40 + + + COUNT ( * ) + + - 64 AS col2
----
-583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4495
SELECT ALL - - COUNT( * ) DIV + + 81 * - COALESCE ( 20, - + 46 * - 99 + 71 DIV 86 * + 79 - 29 + - 53 * + CAST( - 73 AS SIGNED ), 22 * + + 23 * 19, - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL - - COUNT ( * ) / + + 81 * - COALESCE ( 20, - + 46 * - 99 + 71 / 86 * + 79 - 29 + - 53 * + CAST ( - 73 AS INTEGER ), 22 * + + 23 * 19, - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT CAST( 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-4496
SELECT CAST ( 99 AS INTEGER )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT 94 + - MAX( + 61 ) * + 51 AS col0
----
-3017

skipif mysql # not compatible
query I rowsort label-4497
SELECT 94 + - MAX ( + 61 ) * + 51 AS col0
----
-3017

query I rowsort
SELECT 38 * 10 AS col1
----
380

query I rowsort
SELECT 57 + 23 + - + ( - 70 ) * + 69 AS col2
----
4910

query I rowsort
SELECT 60 - + 84 + - 72
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL + 50 * - MAX( - 38 ) AS col1
----
1900

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL + 50 * - MAX ( - 38 ) AS col1
----
1900

query I rowsort
SELECT 40 * 86
----
3440

query II rowsort
SELECT 30 AS col0, + 26
----
30
26

query I rowsort
SELECT DISTINCT 83 + - 49 + - - 8 - - + 94 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL COUNT( * ) + - + 35 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL COUNT ( * ) + - + 35 AS col2
----
-34

query II rowsort
SELECT ALL - 78 + - NULLIF ( - 1, - 81 ) AS col2, 51
----
-77
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT + CASE + 10 WHEN + 51 THEN + + 91 * 96 + - - 69 END / - COUNT( * ) + + - 26 + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT + CASE + 10 WHEN + 51 THEN + + 91 * 96 + - - 69 END / - COUNT ( * ) + + - 26 + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ( + - 39 ) * + ( SUM( DISTINCT + 80 ) ) col2
----
-3120

skipif mysql # not compatible
query I rowsort label-4508
SELECT ( + - 39 ) * + ( SUM ( DISTINCT + 80 ) ) col2
----
-3120

query I rowsort
SELECT ALL 82 + + 41
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-4510
SELECT COUNT( * ), + 57 AS col1
----
1
57

skipif mysql # not compatible
query II rowsort label-4510
SELECT COUNT ( * ), + 57 AS col1
----
1
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4511
SELECT + 46, ( - + CAST( NULL AS SIGNED ) ) col1
----
46
NULL

skipif mysql # not compatible
query II rowsort label-4511
SELECT + 46, ( - + CAST ( NULL AS INTEGER ) ) col1
----
46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT 71 - - NULLIF ( + SUM( - 80 ), 4 ) - - 28
----
19

skipif mysql # not compatible
query I rowsort label-4512
SELECT 71 - - NULLIF ( + SUM ( - 80 ), 4 ) - - 28
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4513
SELECT DISTINCT - 42 AS col0, + CASE + + 18 WHEN - 87 THEN - COUNT( * ) ELSE NULL END AS col1
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-4513
SELECT DISTINCT - 42 AS col0, + CASE + + 18 WHEN - 87 THEN - COUNT ( * ) ELSE NULL END AS col1
----
-42
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4514
SELECT DISTINCT + 61 + - + AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) - 48 / + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT + 61 + - + AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) - 48 / + 89
----
NULL

query I rowsort
SELECT ALL + - 41 + - 4
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT DISTINCT 27 DIV + - 60 - + 55
----
-55

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT 27 / + - 60 - + 55
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4517
SELECT ALL + 63 + CAST( + 78 AS SIGNED ) + - + COUNT( * ) - + CASE - ( - CAST( 87 AS SIGNED ) ) WHEN + 19 THEN NULL ELSE - 46 END AS col1
----
186

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL + 63 + CAST ( + 78 AS INTEGER ) + - + COUNT ( * ) - + CASE - ( - CAST ( 87 AS INTEGER ) ) WHEN + 19 THEN NULL ELSE - 46 END AS col1
----
186

query I rowsort
SELECT ( 76 ) * 59
----
4484

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT + - NULLIF ( - - 83, + CASE - + COUNT( * ) WHEN + + 86 + - 68 THEN + MAX( ALL 80 ) ELSE NULL END + 70 ) * - 9 + 49 * + 88
----
5059

skipif mysql # not compatible
query I rowsort label-4519
SELECT + - NULLIF ( - - 83, + CASE - + COUNT ( * ) WHEN + + 86 + - 68 THEN + MAX ( ALL 80 ) ELSE NULL END + 70 ) * - 9 + 49 * + 88
----
5059

onlyif mysql # aggregate syntax: 
query II rowsort label-4520
SELECT - 70 * ( + 92 ) + - - NULLIF ( - + 74, + COUNT( - 51 ) + - - COUNT( * ) + - - COUNT( * ) ) * + 71 + - 29 + + + 94 AS col0, - 75 AS col1
----
-11629
-75

skipif mysql # not compatible
query II rowsort label-4520
SELECT - 70 * ( + 92 ) + - - NULLIF ( - + 74, + COUNT ( - 51 ) + - - COUNT ( * ) + - - COUNT ( * ) ) * + 71 + - 29 + + + 94 AS col0, - 75 AS col1
----
-11629
-75

query I rowsort
SELECT + 62 * - 81 * - - ( - - NULLIF ( 97, - 51 + + 85 ) ) * - 73 - - 46
----
35560828

query II rowsort
SELECT + - 45, - 72 col0
----
-45
-72

query I rowsort
SELECT + 46 + 75
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT 91 * - - ( CASE WHEN NOT 17 NOT IN ( - 17, 25 + - 34 + + - 91 + + 95 ) THEN NULL WHEN NOT NULL BETWEEN ( + 30 * + - 21 / - + NULLIF ( - - ( + + 12 ), + 69 ) + - COUNT( * ) * 37 ) AND ( NULL ) THEN + 65 * - 89 + 74 ELSE NULL END ) + + 16 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT 91 * - - ( CASE WHEN NOT 17 NOT IN ( - 17, 25 + - 34 + + - 91 + + 95 ) THEN NULL WHEN NOT NULL BETWEEN ( + 30 * + - 21 / - + NULLIF ( - - ( + + 12 ), + 69 ) + - COUNT ( * ) * 37 ) AND ( NULL ) THEN + 65 * - 89 + 74 ELSE NULL END ) + + 16 * COUNT ( * )
----
NULL

query I rowsort
SELECT 35 * 54 AS col2
----
1890

query I rowsort
SELECT DISTINCT + 0 * 71 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT ALL - 67 - - MIN( - 14 ) DIV + + 15 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL - 67 - - MIN ( - 14 ) / + + 15 AS col2
----
-67

query I rowsort
SELECT ( + 62 ) * - - 57 AS col1
----
3534

query II rowsort
SELECT ALL + 17, + 11 AS col0
----
17
11

onlyif mysql # DIV for integer division: 
query II rowsort label-4530
SELECT ALL - 17 DIV + + 9 AS col1, 19 AS col1
----
-1
19

skipif mysql # not compatible
query II rowsort label-4530
SELECT ALL - 17 / + + 9 AS col1, 19 AS col1
----
-1
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4531
SELECT + CAST( + + ( - ( + COUNT( * ) ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4531
SELECT + CAST ( + + ( - ( + COUNT ( * ) ) ) AS INTEGER )
----
-1

query I rowsort
SELECT 94 + - 89 * + 9
----
-707

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT - 27 * + 35 + + 16 * + 42 * + - 22 * + MIN( + - 57 ) AS col2
----
841743

skipif mysql # not compatible
query I rowsort label-4533
SELECT - 27 * + 35 + + 16 * + 42 * + - 22 * + MIN ( + - 57 ) AS col2
----
841743

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT - MAX( ALL - + 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4534
SELECT - MAX ( ALL - + 32 ) AS col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4535
SELECT 69 + + 23 - - CASE - - 1 WHEN - - 56 * 82 THEN NULL WHEN + - 52 THEN NULL ELSE + CAST( + COUNT( * ) AS SIGNED ) END + - 12 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4535
SELECT 69 + + 23 - - CASE - - 1 WHEN - - 56 * 82 THEN NULL WHEN + - 52 THEN NULL ELSE + CAST ( + COUNT ( * ) AS INTEGER ) END + - 12 AS col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4536
SELECT ALL - 9 + - - 60, - COUNT( - + 24 ) + - - 28 + + CASE + 77 WHEN - 88 THEN NULL WHEN 21 * - 43 + - - 13 + + 70 THEN - 2 ELSE + - ( - - NULLIF ( + 54, 57 - NULLIF ( COUNT( * ), + 78 / 28 ) ) ) * 76 END + COUNT( * ) * 93 AS col0
----
51
-3984

skipif mysql # not compatible
query II rowsort label-4536
SELECT ALL - 9 + - - 60, - COUNT ( - + 24 ) + - - 28 + + CASE + 77 WHEN - 88 THEN NULL WHEN 21 * - 43 + - - 13 + + 70 THEN - 2 ELSE + - ( - - NULLIF ( + 54, 57 - NULLIF ( COUNT ( * ), + 78 / 28 ) ) ) * 76 END + COUNT ( * ) * 93 AS col0
----
51
-3984

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT - COUNT( * ) + + 84
----
83

skipif mysql # not compatible
query I rowsort label-4537
SELECT - COUNT ( * ) + + 84
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4538
SELECT - 89 * - 36, 15 + - COUNT( * ) + + 57 * - 79 * + 24 + + 76 + + - 67 + + COUNT( * ) - + 71 / NULLIF ( + COUNT( * ), + 5 + - 54 ) / CAST( NULL AS SIGNED ) AS col2
----
3204
NULL

skipif mysql # not compatible
query II rowsort label-4538
SELECT - 89 * - 36, 15 + - COUNT ( * ) + + 57 * - 79 * + 24 + + 76 + + - 67 + + COUNT ( * ) - + 71 / NULLIF ( + COUNT ( * ), + 5 + - 54 ) / CAST ( NULL AS INTEGER ) AS col2
----
3204
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4539
SELECT DISTINCT - 64 + - CAST( - 93 AS SIGNED ) + - + ( - - 59 ) * + - NULLIF ( COUNT( * ), 3 / + 12 + ( + + MAX( - + NULLIF ( - 61, - + 10 ) ) ) )
----
88

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT - 64 + - CAST ( - 93 AS INTEGER ) + - + ( - - 59 ) * + - NULLIF ( COUNT ( * ), 3 / + 12 + ( + + MAX ( - + NULLIF ( - 61, - + 10 ) ) ) )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL - 74 + COUNT( * ) * - 90
----
-164

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL - 74 + COUNT ( * ) * - 90
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT ALL MAX( ( - 6 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL MAX ( ( - 6 ) )
----
-6

query II rowsort
SELECT - ( - 6 ) + - 10 + 43 * 17 * - + ( 81 ) AS col0, + 75 AS col0
----
-59215
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4543
SELECT DISTINCT + COUNT( * ) * + 98 AS col2, 95 * - ( - NULLIF ( - ( - COUNT( * ) ), - COUNT( * ) * - + 81 ) )
----
98
95

skipif mysql # not compatible
query II rowsort label-4543
SELECT DISTINCT + COUNT ( * ) * + 98 AS col2, 95 * - ( - NULLIF ( - ( - COUNT ( * ) ), - COUNT ( * ) * - + 81 ) )
----
98
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL - 47 + - 6 - + MIN( DISTINCT 40 ) * + 21 + 99 * - 88
----
-9605

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL - 47 + - 6 - + MIN ( DISTINCT 40 ) * + 21 + 99 * - 88
----
-9605

onlyif mysql # aggregate syntax: 
query II rowsort label-4545
SELECT - COUNT( * ) + - + 79 AS col2, + COALESCE ( + + ( + 99 ), - 39 ) * + 52
----
-80
5148

skipif mysql # not compatible
query II rowsort label-4545
SELECT - COUNT ( * ) + - + 79 AS col2, + COALESCE ( + + ( + 99 ), - 39 ) * + 52
----
-80
5148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4546
SELECT ALL - 74 + COUNT( * ) + + + 2 + - 29 * MIN( - 68 ) + + - 42 DIV - 39
----
1902

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - 74 + COUNT ( * ) + + + 2 + - 29 * MIN ( - 68 ) + + - 42 / - 39
----
1902

query I rowsort
SELECT ALL 29 * - - 76 * - 93 AS col2
----
-204972

query I rowsort
SELECT DISTINCT - 2 * + 29
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL - COUNT( * ) * + 72 + - 44
----
-116

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL - COUNT ( * ) * + 72 + - 44
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT DISTINCT 64 * + 51 - + COALESCE ( - 31, + + 74 * - - 79 * - COUNT( + + 99 ) + - ( - 83 ) + 63 ) AS col0
----
3295

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT 64 * + 51 - + COALESCE ( - 31, + + 74 * - - 79 * - COUNT ( + + 99 ) + - ( - 83 ) + 63 ) AS col0
----
3295

query II rowsort
SELECT + 86 + + 76 AS col0, 32 + + 76 AS col2
----
162
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT ALL + - 40 * + COUNT( * ) - - 78 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL + - 40 * + COUNT ( * ) - - 78 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT + NULLIF ( COUNT( * ), 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4553
SELECT + NULLIF ( COUNT ( * ), 37 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4554
SELECT - + 51 DIV COALESCE ( + COUNT( 88 ), CAST( NULL AS SIGNED ) )
----
-51

skipif mysql # not compatible
query I rowsort label-4554
SELECT - + 51 / COALESCE ( + COUNT ( 88 ), CAST ( NULL AS INTEGER ) )
----
-51

query I rowsort
SELECT + - 45 * 47 AS col0
----
-2115

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4556
SELECT DISTINCT - COUNT( * ) DIV 99 * 34, + 69 col0
----
0
69

skipif mysql # not compatible
query II rowsort label-4556
SELECT DISTINCT - COUNT ( * ) / 99 * 34, + 69 col0
----
0
69

query I rowsort
SELECT ALL + + 83 AS col1
----
83

query I rowsort
SELECT ALL + CASE + - 57 WHEN + 31 * - CASE - NULLIF ( 24, 46 - - 87 ) WHEN + 69 * + ( - 78 ) THEN NULL WHEN + 7 THEN + 38 WHEN - + 53 THEN + 27 END - 96 THEN + + 27 - 37 WHEN 55 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4559
SELECT + 75 DIV - - 96 * COALESCE ( COUNT( * ), + 80 + - 31, 66 + - + 4 + 62 )
----
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT + 75 / - - 96 * COALESCE ( COUNT ( * ), + 80 + - 31, 66 + - + 4 + 62 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4560
SELECT DISTINCT - 79 DIV 34 + + 9 + + + 74 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT - 79 / 34 + + 9 + + + 74 AS col1
----
81

query I rowsort
SELECT + 89 * NULLIF ( 43, + 79 ) AS col2
----
3827

query I rowsort
SELECT - 33 - - + 52 AS col2
----
19

query I rowsort
SELECT ALL ( ( + 9 ) ) * - 43 AS col0
----
-387

query I rowsort
SELECT + + 49 * 67 - + 68 + + - 38 AS col0
----
3177

query I rowsort
SELECT 44 * + 30 + + 12 * - + 68 + + 38
----
542

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT ALL SUM( - 90 ) * - 56 + + NULLIF ( + + 24, 85 ) * - - 61
----
6504

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL SUM ( - 90 ) * - 56 + + NULLIF ( + + 24, 85 ) * - - 61
----
6504

query I rowsort
SELECT ALL 19 * + + ( + 2 ) * + 92 AS col0
----
3496

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT + MAX( DISTINCT - - 48 ) - + ( - + 31 )
----
79

skipif mysql # not compatible
query I rowsort label-4568
SELECT + MAX ( DISTINCT - - 48 ) - + ( - + 31 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT SUM( ALL 62 )
----
62

skipif mysql # not compatible
query I rowsort label-4569
SELECT SUM ( ALL 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL 13 + - NULLIF ( - MAX( 63 ), MIN( 72 ) + + NULLIF ( 88, - + 96 ) + + 72 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL 13 + - NULLIF ( - MAX ( 63 ), MIN ( 72 ) + + NULLIF ( 88, - + 96 ) + + 72 ) AS col0
----
76

query II rowsort
SELECT 93, + 8 AS col0
----
93
8

query I rowsort
SELECT + 95 * - 55 AS col2
----
-5225

query I rowsort
SELECT + 1 + + 94 col2
----
95

query I rowsort
SELECT DISTINCT 7 + + 94 AS col0
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4575
SELECT - CAST( - SUM( ALL - CAST( NULL AS DECIMAL ) ) AS SIGNED ) + - COUNT( + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT - CAST ( - SUM ( ALL - CAST ( NULL AS REAL ) ) AS INTEGER ) + - COUNT ( + 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT - COUNT( * ) - + 97 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-4576
SELECT - COUNT ( * ) - + 97 AS col2
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT ALL 41 * - - COALESCE ( - - CAST( + 82 AS SIGNED ), 59 ) AS col0
----
3362

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL 41 * - - COALESCE ( - - CAST ( + 82 AS INTEGER ), 59 ) AS col0
----
3362

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT DISTINCT MAX( 52 )
----
52

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT MAX ( 52 )
----
52

query I rowsort
SELECT + 65 * - 65
----
-4225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4580
SELECT - CAST( 51 AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-4580
SELECT - CAST ( 51 AS INTEGER )
----
-51

query I rowsort
SELECT ALL 47 - - 48 + 79 + + + 57
----
231

query I rowsort
SELECT ALL 6 * + + 39
----
234

query I rowsort
SELECT ALL ( 54 ) AS col0
----
54

query I rowsort
SELECT - 70 * - + 69
----
4830

onlyif mysql # DIV for integer division: 
query I rowsort label-4585
SELECT + 90 DIV - 27 + - 52
----
-55

skipif mysql # not compatible
query I rowsort label-4585
SELECT + 90 / - 27 + - 52
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4586
SELECT - + 55 * + ( CAST( - - 61 AS SIGNED ) )
----
-3355

skipif mysql # not compatible
query I rowsort label-4586
SELECT - + 55 * + ( CAST ( - - 61 AS INTEGER ) )
----
-3355

onlyif mysql # DIV for integer division: 
query I rowsort label-4587
SELECT - COALESCE ( 76, + + 39 DIV - - 39 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-4587
SELECT - COALESCE ( 76, + + 39 / - - 39 ) AS col2
----
-76

query I rowsort
SELECT - - 80 - - - 96 * - + ( + 23 ) + 53 * 84
----
6740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4589
SELECT + - 72 col2, 73 + + - CAST( NULL AS SIGNED ) - 98 + + 63 / - + MIN( - 64 )
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-4589
SELECT + - 72 col2, 73 + + - CAST ( NULL AS INTEGER ) - 98 + + 63 / - + MIN ( - 64 )
----
-72
NULL

query I rowsort
SELECT + 90 * 53 * 65 - - 99 AS col0
----
310149

query II rowsort
SELECT ALL + - 7, + 33 AS col2
----
-7
33

query I rowsort
SELECT - 3 * + 29 + 4 AS col0
----
-83

query I rowsort
SELECT ALL - 50 * 97 + + + 89
----
-4761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4594
SELECT - 11 * 25 + 24 + + CASE NULLIF ( COUNT( * ), MIN( CAST( 72 AS SIGNED ) ) ) WHEN + 53 * + - 0 - CASE ( - 78 ) WHEN + 51 * + CASE + - ( - 83 ) WHEN - SUM( ALL 7 ) * 0 THEN 80 WHEN 39 DIV COALESCE ( + 1, COUNT( CAST( 81 AS SIGNED ) ), ( COUNT( * ) ) + MAX( - 55 + + 90 ) ) THEN ( ( 35 ) ) END THEN - 18 WHEN + 77 THEN NULL ELSE NULL END THEN NULL ELSE NULLIF ( - COUNT( * ), + 67 ) * + 82 + - CAST( - 3 AS SIGNED ) END + 59 * + 33 * + SUM( ALL - 15 * - 57 + - 45 ) * NULLIF ( 38 * + NULLIF ( + 46 DIV + 52, + 91 DIV 71 ), - SUM( ALL - CAST( NULL AS SIGNED ) ) ) AS col0
----
-330

skipif mysql # not compatible
query I rowsort label-4594
SELECT - 11 * 25 + 24 + + CASE NULLIF ( COUNT ( * ), MIN ( CAST ( 72 AS INTEGER ) ) ) WHEN + 53 * + - 0 - CASE ( - 78 ) WHEN + 51 * + CASE + - ( - 83 ) WHEN - SUM ( ALL 7 ) * 0 THEN 80 WHEN 39 / COALESCE ( + 1, COUNT ( CAST ( 81 AS INTEGER ) ), ( COUNT ( * ) ) + MAX ( - 55 + + 90 ) ) THEN ( ( 35 ) ) END THEN - 18 WHEN + 77 THEN NULL ELSE NULL END THEN NULL ELSE NULLIF ( - COUNT ( * ), + 67 ) * + 82 + - CAST ( - 3 AS INTEGER ) END + 59 * + 33 * + SUM ( ALL - 15 * - 57 + - 45 ) * NULLIF ( 38 * + NULLIF ( + 46 / + 52, + 91 / 71 ), - SUM ( ALL - CAST ( NULL AS INTEGER ) ) ) AS col0
----
-330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT ALL + + CAST( - 36 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL + + CAST ( - 36 AS INTEGER )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT 95 / - 93 * - 82 + + 91 + CASE + COUNT( * ) WHEN 65 * - + 49 THEN + 65 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT 95 / - 93 * - 82 + + 91 + CASE + COUNT ( * ) WHEN 65 * - + 49 THEN + 65 END AS col0
----
NULL

query I rowsort
SELECT 90 * + 34 - - 58
----
3118

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT + + CASE + - COUNT( ALL + 55 ) WHEN + 48 + - - ( - 53 ) THEN + 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT + + CASE + - COUNT ( ALL + 55 ) WHEN + 48 + - - ( - 53 ) THEN + 46 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4599
SELECT DISTINCT + COALESCE ( + 88, + - 69, + - 98 ) * - 64 + + COUNT( * ) + + 80 * + + 79, + ( + 15 ) AS col0
----
689
15

skipif mysql # not compatible
query II rowsort label-4599
SELECT DISTINCT + COALESCE ( + 88, + - 69, + - 98 ) * - 64 + + COUNT ( * ) + + 80 * + + 79, + ( + 15 ) AS col0
----
689
15

query II rowsort
SELECT + 16 AS col0, 9
----
16
9

query I rowsort
SELECT ALL - 34 + - 19 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4602
SELECT DISTINCT 60 * + + 78 AS col2, COUNT( * )
----
4680
1

skipif mysql # not compatible
query II rowsort label-4602
SELECT DISTINCT 60 * + + 78 AS col2, COUNT ( * )
----
4680
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4603
SELECT ALL + 91 + NULLIF ( + + CASE + 33 WHEN - ( + 18 ) + + 88 + - + ( - - 21 ) * - COUNT( * ) * + + 40 * 0 + 91 + - + MIN( DISTINCT CAST( - 47 AS SIGNED ) ) * + 92 * - - 80 - - 31 THEN NULL WHEN - 53 / 17 THEN 51 ELSE NULL END, 73 / - 61 + - 60 ) + + 68 * 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL + 91 + NULLIF ( + + CASE + 33 WHEN - ( + 18 ) + + 88 + - + ( - - 21 ) * - COUNT ( * ) * + + 40 * 0 + 91 + - + MIN ( DISTINCT CAST ( - 47 AS INTEGER ) ) * + 92 * - - 80 - - 31 THEN NULL WHEN - 53 / 17 THEN 51 ELSE NULL END, 73 / - 61 + - 60 ) + + 68 * 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT 46 + - NULLIF ( 57, + + ( + 23 ) + + COUNT( * ) ) * - + 62 * COALESCE ( + 65, - - 72 + + + ( + - 18 ) * 91 * - + 76 + 10 + - - SUM( - 81 ) * - 86 + + + 92, 24 * - ( 82 * + 26 ), ( 49 ) )
----
229756

skipif mysql # not compatible
query I rowsort label-4604
SELECT 46 + - NULLIF ( 57, + + ( + 23 ) + + COUNT ( * ) ) * - + 62 * COALESCE ( + 65, - - 72 + + + ( + - 18 ) * 91 * - + 76 + 10 + - - SUM ( - 81 ) * - 86 + + + 92, 24 * - ( 82 * + 26 ), ( 49 ) )
----
229756

query I rowsort
SELECT 49 * + + 47 * - + 74
----
-170422

onlyif mysql # aggregate syntax: 
query II rowsort label-4606
SELECT 91 * - - 5 AS col0, SUM( ALL - 76 ) * 32 * 56 + + + COALESCE ( 61, 62 - + 2 )
----
455
-136131

skipif mysql # not compatible
query II rowsort label-4606
SELECT 91 * - - 5 AS col0, SUM ( ALL - 76 ) * 32 * 56 + + + COALESCE ( 61, 62 - + 2 )
----
455
-136131

query I rowsort
SELECT DISTINCT 1 * 1 AS col2
----
1

query I rowsort
SELECT ALL 59 + - ( - 50 )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT COUNT( * ) + MIN( - 56 ) + 98 + - 9
----
34

skipif mysql # not compatible
query I rowsort label-4609
SELECT COUNT ( * ) + MIN ( - 56 ) + 98 + - 9
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4610
SELECT DISTINCT MAX( 72 ) - COALESCE ( + 97, + - 19, - - 67 + - + 91 * - - 20 - + COUNT( * ) + - 11 DIV - 70, 61 ) + + MAX( + - 91 ) AS col0, - 85 AS col0
----
-116
-85

skipif mysql # not compatible
query II rowsort label-4610
SELECT DISTINCT MAX ( 72 ) - COALESCE ( + 97, + - 19, - - 67 + - + 91 * - - 20 - + COUNT ( * ) + - 11 / - 70, 61 ) + + MAX ( + - 91 ) AS col0, - 85 AS col0
----
-116
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT NULLIF ( 21, ( + + COUNT( - 98 ) ) ) * 12 AS col2
----
252

skipif mysql # not compatible
query I rowsort label-4611
SELECT NULLIF ( 21, ( + + COUNT ( - 98 ) ) ) * 12 AS col2
----
252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4612
SELECT ALL MIN( ALL 77 ) DIV 54 * ( - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL MIN ( ALL 77 ) / 54 * ( - COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT 25 + + + ( - 48 ) + - - 53 * - 50 col1
----
-2673

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4614
SELECT CAST( NULL AS SIGNED ) + + + 47 AS col0, - 3 AS col1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-4614
SELECT CAST ( NULL AS INTEGER ) + + + 47 AS col0, - 3 AS col1
----
NULL
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT + 12 DIV + + 29
----
0

skipif mysql # not compatible
query I rowsort label-4615
SELECT + 12 / + + 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL - COALESCE ( - 89, + COUNT( * ) * + 84 ) * 48
----
4272

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL - COALESCE ( - 89, + COUNT ( * ) * + 84 ) * 48
----
4272

query I rowsort
SELECT - 21 + + + 87 AS col1
----
66

query I rowsort
SELECT ALL - - 95 col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4619
SELECT DISTINCT + 12 * - 15 / + 90 * + CAST( NULL AS SIGNED ) AS col0, MIN( - + 53 )
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-4619
SELECT DISTINCT + 12 * - 15 / + 90 * + CAST ( NULL AS INTEGER ) AS col0, MIN ( - + 53 )
----
NULL
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4620
SELECT 20 * 16 AS col0, COUNT( - ( - 64 ) ) - 28 + + COUNT( * ) AS col1
----
320
-26

skipif mysql # not compatible
query II rowsort label-4620
SELECT 20 * 16 AS col0, COUNT ( - ( - 64 ) ) - 28 + + COUNT ( * ) AS col1
----
320
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT - 48 * + - COUNT( * ) + - 4 col1
----
44

skipif mysql # not compatible
query I rowsort label-4621
SELECT - 48 * + - COUNT ( * ) + - 4 col1
----
44

query I rowsort
SELECT + - ( + 71 )
----
-71

query I rowsort
SELECT - 62 * - 30 + - 54 AS col2
----
1806

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT + CASE + - 89 WHEN - + 41 + + - 52 THEN NULL WHEN + MIN( DISTINCT + - 37 ) THEN + - 30 WHEN + 68 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT + CASE + - 89 WHEN - + 41 + + - 52 THEN NULL WHEN + MIN ( DISTINCT + - 37 ) THEN + - 30 WHEN + 68 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT CAST( - ( + 13 ) AS SIGNED ) + - 85 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4625
SELECT CAST ( - ( + 13 ) AS INTEGER ) + - 85 AS col1
----
-98

query I rowsort
SELECT + 28 * - 65 + 3
----
-1817

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT 44 * + 6 + + 1 * - 57 * - MIN( + + 63 ) * - COUNT( * ) AS col0
----
-3327

skipif mysql # not compatible
query I rowsort label-4627
SELECT 44 * + 6 + + 1 * - 57 * - MIN ( + + 63 ) * - COUNT ( * ) AS col0
----
-3327

query I rowsort
SELECT DISTINCT - 5 + - ( 64 ) + - - 96 AS col0
----
27

query I rowsort
SELECT + + 90 * + 82 + + 78 AS col1
----
7458

query I rowsort
SELECT DISTINCT - - 50 + 23 + - - 42 * - 51 + - 25
----
-2094

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT DISTINCT + 78 + - MAX( - ( + 25 ) ) col1
----
103

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT + 78 + - MAX ( - ( + 25 ) ) col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT DISTINCT + 5 * COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT + 5 * COUNT ( * )
----
5

query I rowsort
SELECT 49 - + 44 AS col1
----
5

query I rowsort
SELECT 85 * - ( + 43 ) AS col2
----
-3655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4635
SELECT ALL - COALESCE ( COUNT( * ), + ( - 10 ), + 89 DIV - 16 + + + 91 + - - ( - 82 ) + - + ( - 85 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL - COALESCE ( COUNT ( * ), + ( - 10 ), + 89 / - 16 + + + 91 + - - ( - 82 ) + - + ( - 85 ) ) col1
----
-1

query I rowsort
SELECT 51 * + ( 3 ) + 67 + - 37
----
183

onlyif mysql # aggregate syntax: 
query II rowsort label-4637
SELECT 56 AS col2, - COUNT( * )
----
56
-1

skipif mysql # not compatible
query II rowsort label-4637
SELECT 56 AS col2, - COUNT ( * )
----
56
-1

query I rowsort
SELECT ALL + 60 - + 45 + + COALESCE ( + 72, 37 ) * 38 * - 61
----
-166881

query I rowsort
SELECT 75 * + 80
----
6000

query I rowsort
SELECT 61 * - 62 * + 76 - - 4
----
-287428

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4641
SELECT SUM( ALL 54 ) - + COUNT( * ) - + - ( - COUNT( * ) ) * 4 * - - 46 + ( + CAST( NULL AS DECIMAL ) ) * + MIN( + 34 ) * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT SUM ( ALL 54 ) - + COUNT ( * ) - + - ( - COUNT ( * ) ) * 4 * - - 46 + ( + CAST ( NULL AS REAL ) ) * + MIN ( + 34 ) * - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT COUNT( * ) * + - 34 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-4642
SELECT COUNT ( * ) * + - 34 AS col1
----
-34

query I rowsort
SELECT ALL ( - 8 ) * ( 43 )
----
-344

onlyif mysql # aggregate syntax: 
query II rowsort label-4644
SELECT DISTINCT + 43 * 66 * + 60 col0, + COUNT( * ) + + MAX( + 36 )
----
170280
37

skipif mysql # not compatible
query II rowsort label-4644
SELECT DISTINCT + 43 * 66 * + 60 col0, + COUNT ( * ) + + MAX ( + 36 )
----
170280
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4645
SELECT ( - 68 ) DIV - - MIN( - + 18 )
----
3

skipif mysql # not compatible
query I rowsort label-4645
SELECT ( - 68 ) / - - MIN ( - + 18 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL + COUNT( * ) * + - 69
----
-69

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL + COUNT ( * ) * + - 69
----
-69

query I rowsort
SELECT 0 * + 31 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT - MAX( 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4648
SELECT - MAX ( 12 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT ALL COUNT( * ) * - 15
----
-15

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL COUNT ( * ) * - 15
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-4650
SELECT ALL 88, + 61 DIV + - 91 AS col2
----
88
0

skipif mysql # not compatible
query II rowsort label-4650
SELECT ALL 88, + 61 / + - 91 AS col2
----
88
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT DISTINCT ( COUNT( 76 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT ( COUNT ( 76 ) )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4652
SELECT ALL + - CAST( NULL AS DECIMAL ) + - 82 * ( 0 ) + + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL + - CAST ( NULL AS REAL ) + - 82 * ( 0 ) + + - 86
----
NULL

query I rowsort
SELECT DISTINCT 67 + - 5 * - CASE + COALESCE ( - 99, - - 92 + - 40 * - 72 * - 32 * - + 57, - + 16 * - 46 ) WHEN + ( + 73 ) THEN - 53 * + - 88 * 36 + - 9 + - + 42 ELSE + 77 * 21 END + 69 * 79
----
13603

query II rowsort
SELECT DISTINCT 55 AS col0, - COALESCE ( - 78, - NULLIF ( - ( - 42 ), 56 * - ( - 40 ) + - + 20 ) )
----
55
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4655
SELECT - CAST( 63 AS SIGNED ) * + ( 84 )
----
-5292

skipif mysql # not compatible
query I rowsort label-4655
SELECT - CAST ( 63 AS INTEGER ) * + ( 84 )
----
-5292

query I rowsort
SELECT + + 27 AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4657
SELECT - ( + 37 ) DIV 18 + 40
----
38

skipif mysql # not compatible
query I rowsort label-4657
SELECT - ( + 37 ) / 18 + 40
----
38

query I rowsort
SELECT + 21 - 56 AS col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4659
SELECT ALL - 56 DIV COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL - 56 / COUNT ( * ) AS col1
----
-56

query I rowsort
SELECT ALL + ( - 59 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT DISTINCT - 79 * + SUM( DISTINCT 77 ) + - + 60
----
-6143

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT - 79 * + SUM ( DISTINCT 77 ) + - + 60
----
-6143

query I rowsort
SELECT ALL + 43 * + 8 + + + 20 - - 76 col0
----
440

query I rowsort
SELECT DISTINCT 23 * 73
----
1679

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL - 79 * - 38 * - 20 + + 94 + ( 32 ) * - COUNT( * ) AS col1
----
-59978

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL - 79 * - 38 * - 20 + + 94 + ( 32 ) * - COUNT ( * ) AS col1
----
-59978

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT + NULLIF ( + + 94, COUNT( * ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4665
SELECT + NULLIF ( + + 94, COUNT ( * ) ) AS col2
----
94

query I rowsort
SELECT + 72 * 1 AS col0
----
72

query I rowsort
SELECT + 11 * - 15 * - + 18 + - 51 col1
----
2919

query I rowsort
SELECT 65 * - 35 + + - 92 AS col2
----
-2367

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4669
SELECT ALL 30 * - 59 - - - COUNT( * ) DIV + COUNT( * )
----
-1771

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL 30 * - 59 - - - COUNT ( * ) / + COUNT ( * )
----
-1771

query I rowsort
SELECT ALL + 56 * - + 13
----
-728

onlyif mysql # aggregate syntax: 
query II rowsort label-4671
SELECT COUNT( * ) AS col0, 31 + 16
----
1
47

skipif mysql # not compatible
query II rowsort label-4671
SELECT COUNT ( * ) AS col0, 31 + 16
----
1
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT DISTINCT + 74 * CAST( NULL AS SIGNED ) * - 30 * - 55 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT + 74 * CAST ( NULL AS INTEGER ) * - 30 * - 55 col0
----
NULL

query I rowsort
SELECT - 70 * + + 41
----
-2870

query I rowsort
SELECT + ( - 25 ) + - 53
----
-78

query I rowsort
SELECT - 52 + + 19 + + 7 + + 91 * + 16 + + 28 + - + 61 * + 77 * + 33 + - 48 + + 13
----
-153578

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT DISTINCT - COUNT( * ) + - 56
----
-57

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT - COUNT ( * ) + - 56
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL MIN( + - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL MIN ( + - 28 )
----
-28

query I rowsort
SELECT ALL - 23 * - 51 AS col1
----
1173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4679
SELECT ALL - COALESCE ( COUNT( + - CAST( NULL AS SIGNED ) ), + 44 * + 95 ) + + COUNT( * ) * + 44
----
44

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL - COALESCE ( COUNT ( + - CAST ( NULL AS INTEGER ) ), + 44 * + 95 ) + + COUNT ( * ) * + 44
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4680
SELECT ALL CASE - + 77 WHEN + 60 THEN + 18 WHEN + 11 * - - 55 + + 41 + + + 72 * - 52 * + - 95 THEN - CAST( 41 AS SIGNED ) END + + + 19 - - - COUNT( * ) / - + 2 + + - 23 * + 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL CASE - + 77 WHEN + 60 THEN + 18 WHEN + 11 * - - 55 + + 41 + + + 72 * - 52 * + - 95 THEN - CAST ( 41 AS INTEGER ) END + + + 19 - - - COUNT ( * ) / - + 2 + + - 23 * + 84 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4681
SELECT - 26 + + + COUNT( * ), 27 + - 49 col0
----
-25
-22

skipif mysql # not compatible
query II rowsort label-4681
SELECT - 26 + + + COUNT ( * ), 27 + - 49 col0
----
-25
-22

query I rowsort
SELECT ALL - 63 + - ( - 94 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4683
SELECT - 70 DIV + 19 col2
----
-3

skipif mysql # not compatible
query I rowsort label-4683
SELECT - 70 / + 19 col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT - CASE + 8 WHEN + - COUNT( * ) THEN - 0 WHEN - 13 - + 55 / - 6 - + 3 + - 5 + + 21 THEN NULL WHEN + + 41 THEN + 73 * 47 ELSE - 98 + + - ( - 66 ) * + COALESCE ( + 19, + ( + - 23 ) + - 94 - ( + 8 ) * + 84 ) END * 16
----
-18496

skipif mysql # not compatible
query I rowsort label-4684
SELECT - CASE + 8 WHEN + - COUNT ( * ) THEN - 0 WHEN - 13 - + 55 / - 6 - + 3 + - 5 + + 21 THEN NULL WHEN + + 41 THEN + 73 * 47 ELSE - 98 + + - ( - 66 ) * + COALESCE ( + 19, + ( + - 23 ) + - 94 - ( + 8 ) * + 84 ) END * 16
----
-18496

query I rowsort
SELECT ALL + 71 + - 10 AS col2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT CASE + 93 WHEN - 56 THEN CAST( NULL AS SIGNED ) WHEN + 13 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT CASE + 93 WHEN - 56 THEN CAST ( NULL AS INTEGER ) WHEN + 13 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT + 66 + + - MAX( DISTINCT - - 93 ) + - 59 * + 96 AS col2
----
-5691

skipif mysql # not compatible
query I rowsort label-4687
SELECT + 66 + + - MAX ( DISTINCT - - 93 ) + - 59 * + 96 AS col2
----
-5691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4688
SELECT ( + ( + - CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT ( + ( + - CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4689
SELECT + CAST( - 86 AS SIGNED ) col1
----
-86

skipif mysql # not compatible
query I rowsort label-4689
SELECT + CAST ( - 86 AS INTEGER ) col1
----
-86

query II rowsort
SELECT DISTINCT + 80, 68 AS col2
----
80
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4691
SELECT ALL + 25 DIV + 6 - MAX( ALL - CAST( - 69 AS SIGNED ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL + 25 / + 6 - MAX ( ALL - CAST ( - 69 AS INTEGER ) ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT - ( - COALESCE ( + 54, COUNT( * ) + + 50, 59 * - 9 ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4692
SELECT - ( - COALESCE ( + 54, COUNT ( * ) + + 50, 59 * - 9 ) ) AS col0
----
54

query I rowsort
SELECT COALESCE ( + 13, - - 92 )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4694
SELECT + COALESCE ( + 25, SUM( ALL - 30 ) + + - 65 ) DIV + COUNT( * ) + - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4694
SELECT + COALESCE ( + 25, SUM ( ALL - 30 ) + + - 65 ) / + COUNT ( * ) + - COUNT ( * )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4695
SELECT ALL 51 DIV - 9 - 35 DIV 23 * - COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL 51 / - 9 - 35 / 23 * - COUNT ( * ) AS col2
----
-4

query I rowsort
SELECT + 49 * - 77
----
-3773

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT + CASE + 25 WHEN 80 THEN 92 + + 44 - COUNT( * ) * 26 * - 42 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT + CASE + 25 WHEN 80 THEN 92 + + 44 - COUNT ( * ) * 26 * - 42 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4698
SELECT DISTINCT 89 DIV + - 10, - 94 AS col2
----
-8
-94

skipif mysql # not compatible
query II rowsort label-4698
SELECT DISTINCT 89 / + - 10, - 94 AS col2
----
-8
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4699
SELECT 88 / CASE + ( + ( + 39 ) ) WHEN + 31 THEN MIN( - 97 ) * + CAST( NULL AS SIGNED ) + COUNT( * ) + - 91 + + + 0 + 81 / - + 76 * + ( - + 52 ) END + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT 88 / CASE + ( + ( + 39 ) ) WHEN + 31 THEN MIN ( - 97 ) * + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - 91 + + + 0 + 81 / - + 76 * + ( - + 52 ) END + + 72
----
NULL

query II rowsort
SELECT ( - 56 ) AS col2, 18 * - + 90 * 56 AS col1
----
-56
-90720

query I rowsort
SELECT DISTINCT 42 * 51 AS col0
----
2142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT ALL 0 * - CAST( - + 51 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL 0 * - CAST ( - + 51 AS INTEGER ) AS col0
----
0

query II rowsort
SELECT + 82 * + 29 AS col2, 25 * 18 col0
----
2378
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT + CAST( - - 42 AS SIGNED ) * + CAST( + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT + CAST ( - - 42 AS INTEGER ) * + CAST ( + 0 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4705
SELECT DISTINCT + SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT + SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4706
SELECT CASE - - 29 WHEN 72 THEN NULL WHEN + COUNT( * ) * - COUNT( * ) THEN 68 / - - 48 * - 87 - 80 ELSE CAST( 56 AS SIGNED ) + - MAX( ALL + 8 ) * 48 END AS col1
----
-328

skipif mysql # not compatible
query I rowsort label-4706
SELECT CASE - - 29 WHEN 72 THEN NULL WHEN + COUNT ( * ) * - COUNT ( * ) THEN 68 / - - 48 * - 87 - 80 ELSE CAST ( 56 AS INTEGER ) + - MAX ( ALL + 8 ) * 48 END AS col1
----
-328

query I rowsort
SELECT - 41 + + 28 AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4708
SELECT ALL - 11 * CAST( NULL AS SIGNED ) * ( COALESCE ( + 49, - 58 ) ) + + COUNT( * ), COUNT( * ) - - 41 + CASE - + 7 WHEN + + 19 + 27 THEN 82 END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4708
SELECT ALL - 11 * CAST ( NULL AS INTEGER ) * ( COALESCE ( + 49, - 58 ) ) + + COUNT ( * ), COUNT ( * ) - - 41 + CASE - + 7 WHEN + + 19 + 27 THEN 82 END AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT DISTINCT - 33 * - COALESCE ( 55, + 55 ) + - - 63 + + MIN( DISTINCT + - 29 ) * ( + + 1 ) + + MIN( + - 27 )
----
1822

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT - 33 * - COALESCE ( 55, + 55 ) + - - 63 + + MIN ( DISTINCT + - 29 ) * ( + + 1 ) + + MIN ( + - 27 )
----
1822

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT + 78 * - + COUNT( * ) * 12 * + 28 * 73 + + COUNT( * )
----
-1913183

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT + 78 * - + COUNT ( * ) * 12 * + 28 * 73 + + COUNT ( * )
----
-1913183

query I rowsort
SELECT DISTINCT COALESCE ( 25, + 39, + + 24 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - - CASE 97 WHEN + - 40 * NULLIF ( - 85, - 45 + - COUNT( * ) / - 10 ) + + 59 + 19 + - + 43 THEN NULL WHEN - + 64 THEN + 80 - - 74 WHEN - 98 + - 86 THEN COUNT( ALL - 67 ) * 95 + ( + AVG ( DISTINCT + 96 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT - - CASE 97 WHEN + - 40 * NULLIF ( - 85, - 45 + - COUNT ( * ) / - 10 ) + + 59 + 19 + - + 43 THEN NULL WHEN - + 64 THEN + 80 - - 74 WHEN - 98 + - 86 THEN COUNT ( ALL - 67 ) * 95 + ( + AVG ( DISTINCT + 96 ) ) END AS col2
----
NULL

query I rowsort
SELECT - + 6 * - - ( - + ( + ( + - 37 ) ) ) * 48 AS col0
----
-10656

query I rowsort
SELECT ALL - - 47 + - 71 - - 16 + 98 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT MAX( DISTINCT 6 )
----
6

skipif mysql # not compatible
query I rowsort label-4715
SELECT MAX ( DISTINCT 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT COUNT( * ) * + COALESCE ( - 26, - + 10 + - 92 + 27 ) + - - 61 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4716
SELECT COUNT ( * ) * + COALESCE ( - 26, - + 10 + - 92 + 27 ) + - - 61 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT 44 DIV 2
----
22

skipif mysql # not compatible
query I rowsort label-4717
SELECT 44 / 2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT DISTINCT - COUNT( * ) * 44 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT - COUNT ( * ) * 44 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL + + SUM( ALL + NULLIF ( + - ( - 5 ), - + 27 * - ( - 98 ) ) ) - + 78
----
-73

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL + + SUM ( ALL + NULLIF ( + - ( - 5 ), - + 27 * - ( - 98 ) ) ) - + 78
----
-73

query I rowsort
SELECT 23 + - - 83 * - - 53 AS col0
----
4422

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT + 40 - + SUM( - - 44 ) * - 35 * - - COUNT( * ) * 52
----
80120

skipif mysql # not compatible
query I rowsort label-4721
SELECT + 40 - + SUM ( - - 44 ) * - 35 * - - COUNT ( * ) * 52
----
80120

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT COUNT( * ) * - 70 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4722
SELECT COUNT ( * ) * - 70 AS col0
----
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4723
SELECT - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT - + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT 15 + + 53 * - + 99 * + 43 + + - COUNT( + 42 ) - - 57
----
-225550

skipif mysql # not compatible
query I rowsort label-4724
SELECT 15 + + 53 * - + 99 * + 43 + + - COUNT ( + 42 ) - - 57
----
-225550

onlyif mysql # aggregate syntax: 
query II rowsort label-4725
SELECT + COALESCE ( 10, 18 + - + COUNT( * ) + + ( + 5 ) * + - 35 * - 11 * - + 47 * 85 ), + ( - 55 ) col2
----
10
-55

skipif mysql # not compatible
query II rowsort label-4725
SELECT + COALESCE ( 10, 18 + - + COUNT ( * ) + + ( + 5 ) * + - 35 * - 11 * - + 47 * 85 ), + ( - 55 ) col2
----
10
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT + 9 * + COUNT( * ) * + 16 + - 60 + + 30 * + 17 * + + COUNT( * ) + 92
----
686

skipif mysql # not compatible
query I rowsort label-4726
SELECT + 9 * + COUNT ( * ) * + 16 + - 60 + + 30 * + 17 * + + COUNT ( * ) + 92
----
686

query II rowsort
SELECT ALL - 49 AS col0, ( 65 ) AS col2
----
-49
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4728
SELECT + 3 * + 99 / CAST( NULL AS SIGNED ) + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT + 3 * + 99 / CAST ( NULL AS INTEGER ) + 0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 56, 68 * - - 86 * - ( - ( + 30 ) ) * 61 )
----
-56

query I rowsort
SELECT DISTINCT - 74 * + + 69
----
-5106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT CAST( NULL AS SIGNED ) / - - 59 + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT CAST ( NULL AS INTEGER ) / - - 59 + 83
----
NULL

query II rowsort
SELECT ALL - 65 AS col0, + 85 AS col1
----
-65
85

query I rowsort
SELECT 0 * + + 69
----
0

query II rowsort
SELECT ALL - 36, 73 col1
----
-36
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4735
SELECT + COALESCE ( - CASE - - 82 WHEN ( + + COUNT( * ) ) * + 86 + - + ( + 83 ) THEN + 52 + - 84 * 43 * + 43 - - - 41 WHEN - - 8 + 36 * - AVG ( - - 12 ) THEN 81 END, - 89, + 88 * + 46 - - 90 ) * - CAST( 43 AS SIGNED ) + 85
----
3912

skipif mysql # not compatible
query I rowsort label-4735
SELECT + COALESCE ( - CASE - - 82 WHEN ( + + COUNT ( * ) ) * + 86 + - + ( + 83 ) THEN + 52 + - 84 * 43 * + 43 - - - 41 WHEN - - 8 + 36 * - AVG ( - - 12 ) THEN 81 END, - 89, + 88 * + 46 - - 90 ) * - CAST ( 43 AS INTEGER ) + 85
----
3912

query II rowsort
SELECT 64 AS col0, - 92 AS col0
----
64
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4737
SELECT 34 col1, 95 - CAST( NULL AS SIGNED ) + - + 42
----
34
NULL

skipif mysql # not compatible
query II rowsort label-4737
SELECT 34 col1, 95 - CAST ( NULL AS INTEGER ) + - + 42
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT COUNT( * ) * 9 + + 18 * 69
----
1251

skipif mysql # not compatible
query I rowsort label-4738
SELECT COUNT ( * ) * 9 + + 18 * 69
----
1251

query I rowsort
SELECT 19 + - - 77 AS col2
----
96

query II rowsort
SELECT 90 * + ( + 17 ) AS col2, ( - ( 93 ) ) + + 86 AS col0
----
1530
-7

query I rowsort
SELECT 26 * + ( + 7 ) * + ( - 84 )
----
-15288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4742
SELECT - 64 * + CAST( NULL AS SIGNED ) + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4742
SELECT - 64 * + CAST ( NULL AS INTEGER ) + 99
----
NULL

query II rowsort
SELECT ALL - 64, 30 AS col2
----
-64
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT DISTINCT 88 * + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT 88 * + COUNT ( * )
----
88

query I rowsort
SELECT DISTINCT + 84 + + 0 AS col0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-4746
SELECT 16 * + ( + + 44 ) AS col1, + CASE COALESCE ( - + 68, NULLIF ( - + 29, 35 ) / - 34 ) WHEN 45 THEN + + 94 WHEN - - 63 / - 47 THEN NULL END + + + COUNT( * )
----
704
NULL

skipif mysql # not compatible
query II rowsort label-4746
SELECT 16 * + ( + + 44 ) AS col1, + CASE COALESCE ( - + 68, NULLIF ( - + 29, 35 ) / - 34 ) WHEN 45 THEN + + 94 WHEN - - 63 / - 47 THEN NULL END + + + COUNT ( * )
----
704
NULL

query I rowsort
SELECT DISTINCT 52 * 48 * + 64 * - + 48 AS col0
----
-7667712

query I rowsort
SELECT 39 * 26 + - 21
----
993

query I rowsort
SELECT DISTINCT 78 + + 11 AS col0
----
89

query II rowsort
SELECT ALL 40 col1, 0 col0
----
40
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4751
SELECT DISTINCT 0 DIV - 62 DIV + + COUNT( * ) + + 68
----
68

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT 0 / - 62 / + + COUNT ( * ) + + 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT DISTINCT + COUNT( * ) - - + 78
----
79

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT + COUNT ( * ) - - + 78
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-4753
SELECT 94, 89 DIV + 54 AS col0
----
94
1

skipif mysql # not compatible
query II rowsort label-4753
SELECT 94, 89 / + 54 AS col0
----
94
1

query I rowsort
SELECT - 88 + + 44
----
-44

query I rowsort
SELECT ALL 57 - - - 5
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4756
SELECT AVG ( - - 68 ) + - - MAX( ALL - 53 ) * - CAST( NULL AS SIGNED ) + - + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT AVG ( - - 68 ) + - - MAX ( ALL - 53 ) * - CAST ( NULL AS INTEGER ) + - + 79
----
NULL

query I rowsort
SELECT DISTINCT - 78 * 66 * - - NULLIF ( - - 41, + - 21 + - 24 ) AS col2
----
-211068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4758
SELECT DISTINCT SUM( ALL - 68 ) - - - 51 + - - 26 / - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT SUM ( ALL - 68 ) - - - 51 + - - 26 / - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT + 37 + + 5 + - 82 * - COUNT( * ) col1
----
124

skipif mysql # not compatible
query I rowsort label-4759
SELECT + 37 + + 5 + - 82 * - COUNT ( * ) col1
----
124

query I rowsort
SELECT ALL - 28 - + 58 + 81
----
-5

query I rowsort
SELECT ( + - 92 ) + ( + 77 ) AS col0
----
-15

query II rowsort
SELECT - 92, - 99 AS col2
----
-92
-99

query I rowsort
SELECT + 65 + - 79 * - 91 AS col0
----
7254

query I rowsort
SELECT ALL 74 * - 67 + - 36 AS col2
----
-4994

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4765
SELECT DISTINCT + COUNT( * ) DIV + 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT + COUNT ( * ) / + 16 AS col2
----
0

query I rowsort
SELECT 94 * + 73
----
6862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4767
SELECT ALL + ( + 88 ) * - CAST( NULL AS SIGNED ) - + 22 * - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + ( + 88 ) * - CAST ( NULL AS INTEGER ) - + 22 * - 78 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT DISTINCT + 24 DIV + - 75
----
0

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT + 24 / + - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT COUNT( * ) * - 97 * - COUNT( * ) * - 20 AS col1
----
-1940

skipif mysql # not compatible
query I rowsort label-4769
SELECT COUNT ( * ) * - 97 * - COUNT ( * ) * - 20 AS col1
----
-1940

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT ALL + COUNT( ALL + 76 ) * - 52
----
-52

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL + COUNT ( ALL + 76 ) * - 52
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4771
SELECT 93 * CAST( 34 AS SIGNED )
----
3162

skipif mysql # not compatible
query I rowsort label-4771
SELECT 93 * CAST ( 34 AS INTEGER )
----
3162

query I rowsort
SELECT DISTINCT - ( + 50 ) col1
----
-50

query I rowsort
SELECT ALL - NULLIF ( + + 15, + 49 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL + 39 * + COUNT( * ) + + 70
----
109

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL + 39 * + COUNT ( * ) + + 70
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT 19 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT 19 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL - NULLIF ( CASE + 2 WHEN - 50 + + + ( + 3 ) * COUNT( * ) THEN + COUNT( * ) WHEN + 37 THEN - 63 ELSE NULL END, 75 ) * - ( 59 ) + ( + MIN( + - 56 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL - NULLIF ( CASE + 2 WHEN - 50 + + + ( + 3 ) * COUNT ( * ) THEN + COUNT ( * ) WHEN + 37 THEN - 63 ELSE NULL END, 75 ) * - ( 59 ) + ( + MIN ( + - 56 ) ) col1
----
NULL

query II rowsort
SELECT DISTINCT - ( - - 49 ), + NULLIF ( 28, 87 ) AS col0
----
-49
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4778
SELECT DISTINCT - 26 + 36 DIV - MIN( + + 43 ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT - 26 + 36 / - MIN ( + + 43 ) col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4779
SELECT SUM( - - 61 ) + + + 88 + 51 DIV + 16 + + ( 38 ) * + 60 + + ( 25 ) * - 14
----
2082

skipif mysql # not compatible
query I rowsort label-4779
SELECT SUM ( - - 61 ) + + + 88 + 51 / + 16 + + ( 38 ) * + 60 + + ( 25 ) * - 14
----
2082

query I rowsort
SELECT DISTINCT + ( - 48 ) + + 60 + - 65 + - - 76 * + + 71
----
5343

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT - 50 * + 34 * + + ( + COUNT( * ) ) + 74
----
-1626

skipif mysql # not compatible
query I rowsort label-4781
SELECT - 50 * + 34 * + + ( + COUNT ( * ) ) + 74
----
-1626

query I rowsort
SELECT ALL 89 * + 11 * 96 AS col2
----
93984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT - - 79 / + 76 * + 94 * - ( + 12 ) * + 90 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT - - 79 / + 76 * + 94 * - ( + 12 ) * + 90 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 64 - + 67 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4785
SELECT - COUNT( ALL + 68 ) AS col0, 65
----
-1
65

skipif mysql # not compatible
query II rowsort label-4785
SELECT - COUNT ( ALL + 68 ) AS col0, 65
----
-1
65

query I rowsort
SELECT + 77 - + - 24 + - 90
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL + COUNT( * ) * - 46 * 2 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + COUNT ( * ) * - 46 * 2 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL - 49 * COUNT( + + 86 )
----
-49

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL - 49 * COUNT ( + + 86 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT - - MAX( - 37 ) + - 46 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4789
SELECT - - MAX ( - 37 ) + - 46 AS col1
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4790
SELECT + - 79 DIV + 43
----
-1

skipif mysql # not compatible
query I rowsort label-4790
SELECT + - 79 / + 43
----
-1

query I rowsort
SELECT + 52 * - + ( + - 34 ) AS col2
----
1768

query I rowsort
SELECT + + 5 * 43
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT + SUM( DISTINCT - + 81 ) - - + 81 * + - MIN( DISTINCT - 94 )
----
7533

skipif mysql # not compatible
query I rowsort label-4793
SELECT + SUM ( DISTINCT - + 81 ) - - + 81 * + - MIN ( DISTINCT - 94 )
----
7533

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT - COUNT( * ) * + 81 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4794
SELECT - COUNT ( * ) * + 81 AS col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4795
SELECT ALL CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT + 93 * - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-4796
SELECT + 93 * - COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL - + 0 * ( - COUNT( * ) ) + - - 19 - - 68
----
87

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL - + 0 * ( - COUNT ( * ) ) + - - 19 - - 68
----
87

query I rowsort
SELECT ALL - NULLIF ( - 15, + 30 ) + + - 97 AS col2
----
-82

query I rowsort
SELECT - ( + 78 )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4800
SELECT ALL 60 + - 58 - + - CASE - - ( + 51 ) WHEN - 53 THEN NULL WHEN + 85 THEN - 86 WHEN MAX( + ( + 20 ) ) THEN NULL ELSE + 66 + - COUNT( * ) END - - 4 - - 7 * + - 77 * - COALESCE ( 5, 0 * - - COUNT( * ) * - COALESCE ( COUNT( ALL + 69 ), + 11, + + NULLIF ( 1, - COUNT( * ) * 6 + 3 ) * + SUM( + COALESCE ( + 50, + COALESCE ( ( 96 ), - 48 ) ) ) + CASE - ( + 81 ) + - COUNT( * ) WHEN AVG ( ALL - ( 2 ) ) THEN NULL ELSE - SUM( - 3 ) + + 95 END DIV 13 ) * 65 + - ( 29 - 52 ), + 54 DIV 99, + 47 + 2 )
----
2766

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL 60 + - 58 - + - CASE - - ( + 51 ) WHEN - 53 THEN NULL WHEN + 85 THEN - 86 WHEN MAX ( + ( + 20 ) ) THEN NULL ELSE + 66 + - COUNT ( * ) END - - 4 - - 7 * + - 77 * - COALESCE ( 5, 0 * - - COUNT ( * ) * - COALESCE ( COUNT ( ALL + 69 ), + 11, + + NULLIF ( 1, - COUNT ( * ) * 6 + 3 ) * + SUM ( + COALESCE ( + 50, + COALESCE ( ( 96 ), - 48 ) ) ) + CASE - ( + 81 ) + - COUNT ( * ) WHEN AVG ( ALL - ( 2 ) ) THEN NULL ELSE - SUM ( - 3 ) + + 95 END / 13 ) * 65 + - ( 29 - 52 ), + 54 / 99, + 47 + 2 )
----
2766

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4801
SELECT + CASE + 35 WHEN + AVG ( DISTINCT ( + + 60 ) ) / + + 80 / - COUNT( * ) + - + 18 THEN COALESCE ( - - 32, + 9 * + 81 ) + + + 64 ELSE NULL END + + CAST( + - 85 AS DECIMAL ) + - ( + 41 ) / - + 41 + - 2 + + 50 * + 37 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT + CASE + 35 WHEN + AVG ( DISTINCT ( + + 60 ) ) / + + 80 / - COUNT ( * ) + - + 18 THEN COALESCE ( - - 32, + 9 * + 81 ) + + + 64 ELSE NULL END + + CAST ( + - 85 AS REAL ) + - ( + 41 ) / - + 41 + - 2 + + 50 * + 37 col2
----
NULL

query I rowsort
SELECT - 72 - + - 13
----
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4803
SELECT + 42 + CASE + + CAST( - 25 AS DECIMAL ) WHEN + + SUM( + 85 ) THEN + NULLIF ( 82, - 64 ) DIV 68 * + 90 + 59 + 1 * 79 + + COUNT( * ) ELSE - + 73 END AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-4803
SELECT + 42 + CASE + + CAST ( - 25 AS REAL ) WHEN + + SUM ( + 85 ) THEN + NULLIF ( 82, - 64 ) / 68 * + 90 + 59 + 1 * 79 + + COUNT ( * ) ELSE - + 73 END AS col1
----
-31

query I rowsort
SELECT - 24 * + 35 * - - 69
----
-57960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT DISTINCT - ( 55 ) * - CASE 53 WHEN 62 * 96 * + 83 THEN 13 * - ( + 47 ) * - + CASE - 43 WHEN - - 75 + 28 THEN - 49 + + - NULLIF ( - CAST( NULL AS SIGNED ), - + 28 * + 74 + - - CASE 47 WHEN + COUNT( * ) THEN + 3 ELSE + 66 / + NULLIF ( - 62, 67 ) END ) + CAST( ( ( + 85 ) ) AS SIGNED ) / + ( - AVG ( ALL + 73 ) * + 60 ) WHEN + COUNT( * ) * 41 THEN 13 * 23 ELSE COUNT( * ) END + + ( CAST( NULL AS SIGNED ) ) END * - 47 + ( MAX( 80 ) ) / - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT - ( 55 ) * - CASE 53 WHEN 62 * 96 * + 83 THEN 13 * - ( + 47 ) * - + CASE - 43 WHEN - - 75 + 28 THEN - 49 + + - NULLIF ( - CAST ( NULL AS INTEGER ), - + 28 * + 74 + - - CASE 47 WHEN + COUNT ( * ) THEN + 3 ELSE + 66 / + NULLIF ( - 62, 67 ) END ) + CAST ( ( ( + 85 ) ) AS INTEGER ) / + ( - AVG ( ALL + 73 ) * + 60 ) WHEN + COUNT ( * ) * 41 THEN 13 * 23 ELSE COUNT ( * ) END + + ( CAST ( NULL AS INTEGER ) ) END * - 47 + ( MAX ( 80 ) ) / - 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT ALL - 45 * - + 48 * + 11 + + + COUNT( * )
----
23761

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL - 45 * - + 48 * + 11 + + + COUNT ( * )
----
23761

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT 3 * + COUNT( * ) + - + 14 * ( + 40 ) + - 87 + - 38
----
-682

skipif mysql # not compatible
query I rowsort label-4807
SELECT 3 * + COUNT ( * ) + - + 14 * ( + 40 ) + - 87 + - 38
----
-682

query II rowsort
SELECT DISTINCT + 48 AS col2, 49
----
48
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4809
SELECT ALL + 66 DIV - 63
----
-1

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL + 66 / - 63
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4810
SELECT ALL - ( - COUNT( ALL - 72 ) ) * 0 - - + NULLIF ( + 0, + - NULLIF ( - 11, - 85 * + COUNT( * ) + 15 ) / MAX( - - 34 ) ) * - 49 + - ( + COUNT( * ) ) + + 78 + - + 18 * - ( + CAST( NULL AS SIGNED ) ) - - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL - ( - COUNT ( ALL - 72 ) ) * 0 - - + NULLIF ( + 0, + - NULLIF ( - 11, - 85 * + COUNT ( * ) + 15 ) / MAX ( - - 34 ) ) * - 49 + - ( + COUNT ( * ) ) + + 78 + - + 18 * - ( + CAST ( NULL AS INTEGER ) ) - - 88 AS col0
----
NULL

query I rowsort
SELECT + 28 * + + 19
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT ALL + MIN( + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL + MIN ( + 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT DISTINCT - CASE + - MIN( + + 78 ) WHEN 97 THEN + + 10 + + 61 + - 59 * - - 90 * + - 13 * + + ( - 19 ) END * + 24 * 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT - CASE + - MIN ( + + 78 ) WHEN 97 THEN + + 10 + + 61 + - 59 * - - 90 * + - 13 * + + ( - 19 ) END * + 24 * 49 AS col2
----
NULL

query I rowsort
SELECT - 22 * 97
----
-2134

query I rowsort
SELECT - + 19 * + ( + 45 ) * - 55 + - + 71 - + + COALESCE ( + 82, - 13, - + CASE + + 91 WHEN - + 4 THEN - 84 WHEN - 64 THEN + 53 + - - 94 + - - 80 + 83 * - 93 ELSE + 6 END ) AS col0
----
46872

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL + ( + SUM( + + 58 ) )
----
58

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL + ( + SUM ( + + 58 ) )
----
58

query I rowsort
SELECT - 47 * 6 * - 21
----
5922

query I rowsort
SELECT ALL + 44 * + - 44
----
-1936

query I rowsort
SELECT ALL + ( + 66 ) AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4820
SELECT ALL + 94 * - CASE ( - 37 ) WHEN + - CAST( NULL AS SIGNED ) THEN - + COALESCE ( COUNT( + - 50 ), + 50 ) ELSE + 84 + - - 58 END AS col2
----
-13348

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL + 94 * - CASE ( - 37 ) WHEN + - CAST ( NULL AS INTEGER ) THEN - + COALESCE ( COUNT ( + - 50 ), + 50 ) ELSE + 84 + - - 58 END AS col2
----
-13348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4821
SELECT - - SUM( ( - + 41 ) ) * - 59 * CAST( 10 AS SIGNED ) AS col1
----
24190

skipif mysql # not compatible
query I rowsort label-4821
SELECT - - SUM ( ( - + 41 ) ) * - 59 * CAST ( 10 AS INTEGER ) AS col1
----
24190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4822
SELECT - CAST( + - ( NULLIF ( - + 2, - 77 * + NULLIF ( + + COUNT( ALL + 32 ), - COALESCE ( + 42, + - 18 ) / - 75 + + + 52 + - + 48 ) ) ) AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-4822
SELECT - CAST ( + - ( NULLIF ( - + 2, - 77 * + NULLIF ( + + COUNT ( ALL + 32 ), - COALESCE ( + 42, + - 18 ) / - 75 + + + 52 + - + 48 ) ) ) AS INTEGER )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT - 36 + + - 47 * COALESCE ( + 22, 64, COALESCE ( - + 9, 13, + 33 - 86 - 4 + COALESCE ( 52, 37 * + 91 * + 88 + - MIN( ALL - 8 ) + - 89 ) ) ) + + 43 + - + 72 - - - 10 * + 7 AS col0
----
-1169

skipif mysql # not compatible
query I rowsort label-4823
SELECT - 36 + + - 47 * COALESCE ( + 22, 64, COALESCE ( - + 9, 13, + 33 - 86 - 4 + COALESCE ( 52, 37 * + 91 * + 88 + - MIN ( ALL - 8 ) + - 89 ) ) ) + + 43 + - + 72 - - - 10 * + 7 AS col0
----
-1169

query I rowsort
SELECT + 10 + - 20 + - 69
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4825
SELECT ALL + - 61 DIV - 85 col0
----
0

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL + - 61 / - 85 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL COALESCE ( 77, 22 * - - 77 + COALESCE ( - + 43, + + 51 ) * + COUNT( * ), + 26 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL COALESCE ( 77, 22 * - - 77 + COALESCE ( - + 43, + + 51 ) * + COUNT ( * ), + 26 ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT - + 32 + - + 5 * 24 + MIN( + 27 ) * - 79 + 43
----
-2242

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT - + 32 + - + 5 * 24 + MIN ( + 27 ) * - 79 + 43
----
-2242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4828
SELECT DISTINCT 25 * - COALESCE ( + + 25, + CASE 6 WHEN 58 THEN - - CAST( NULL AS SIGNED ) * 23 WHEN + 43 - CAST( - 44 AS DECIMAL ) + + - 15 - - + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END ) + + - COUNT( * ) AS col1
----
-626

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT 25 * - COALESCE ( + + 25, + CASE 6 WHEN 58 THEN - - CAST ( NULL AS INTEGER ) * 23 WHEN + 43 - CAST ( - 44 AS REAL ) + + - 15 - - + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END ) + + - COUNT ( * ) AS col1
----
-626

query I rowsort
SELECT DISTINCT + - 19 * - 30
----
570

query I rowsort
SELECT - 52 * + 70 - 96 + + 11 col2
----
-3725

query II rowsort
SELECT ALL 37 + - 85, + 80 * 7 AS col2
----
-48
560

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT + 48 + - - ( + COUNT( * ) )
----
49

skipif mysql # not compatible
query I rowsort label-4832
SELECT + 48 + - - ( + COUNT ( * ) )
----
49

query I rowsort
SELECT + 24 + 63
----
87

query I rowsort
SELECT ALL 30 + 34 + - + 50 * 48 * 19 AS col0
----
-45536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4835
SELECT + 36 * + 39 * MIN( ALL + - 99 ) / COUNT( * ) / + ( - + CASE - + CAST( NULL AS SIGNED ) WHEN - NULLIF ( + - 57, + 61 ) THEN + CAST( NULL AS SIGNED ) + + 78 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT + 36 * + 39 * MIN ( ALL + - 99 ) / COUNT ( * ) / + ( - + CASE - + CAST ( NULL AS INTEGER ) WHEN - NULLIF ( + - 57, + 61 ) THEN + CAST ( NULL AS INTEGER ) + + 78 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4836
SELECT 61 AS col2, - COUNT( * ) AS col2
----
61
-1

skipif mysql # not compatible
query II rowsort label-4836
SELECT 61 AS col2, - COUNT ( * ) AS col2
----
61
-1

query I rowsort
SELECT - ( + 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT DISTINCT COUNT( * ) + + 94 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT COUNT ( * ) + + 94 AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT ALL COALESCE ( + - 54, + ( + 73 ) DIV + ( - 9 ), - 73 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL COALESCE ( + - 54, + ( + 73 ) / + ( - 9 ), - 73 ) AS col2
----
-54

query I rowsort
SELECT ALL ( - 89 ) * - 39 AS col2
----
3471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT + CAST( - + ( - - AVG ( ALL + - ( - 72 ) ) ) AS SIGNED ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4841
SELECT + CAST ( - + ( - - AVG ( ALL + - ( - 72 ) ) ) AS INTEGER ) AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4842
SELECT ALL + 24 DIV - 32 + - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL + 24 / - 32 + - + COUNT ( * )
----
-1

query II rowsort
SELECT DISTINCT + 67, 24 * 73 * - - 36 AS col0
----
67
63072

onlyif mysql # DIV for integer division: 
query I rowsort label-4844
SELECT DISTINCT - ( + - 68 ) DIV + 83 - - ( 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT - ( + - 68 ) / + 83 - - ( 29 ) AS col0
----
29

query I rowsort
SELECT + ( - 52 ) col1
----
-52

query I rowsort
SELECT 54 * - 41 AS col0
----
-2214

query I rowsort
SELECT ( - 25 ) * + ( - 85 )
----
2125

query II rowsort
SELECT + 91 col2, 80 AS col0
----
91
80

query I rowsort
SELECT ALL NULLIF ( - 87, - + 25 ) - 94
----
-181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4850
SELECT ALL - COALESCE ( - 2, - CASE - + 35 WHEN + - 21 + 58 + 46 * + 36 THEN + - 97 WHEN - 19 + - 15 THEN + CAST( + 18 AS SIGNED ) - COUNT( * ) + COUNT( * ) ELSE NULL END ) col1
----
2

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL - COALESCE ( - 2, - CASE - + 35 WHEN + - 21 + 58 + 46 * + 36 THEN + - 97 WHEN - 19 + - 15 THEN + CAST ( + 18 AS INTEGER ) - COUNT ( * ) + COUNT ( * ) ELSE NULL END ) col1
----
2

query I rowsort
SELECT ALL 4 * + 82
----
328

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT DISTINCT - NULLIF ( + COUNT( * ), 90 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT - NULLIF ( + COUNT ( * ), 90 ) AS col1
----
-1

query II rowsort
SELECT DISTINCT - - 10 AS col2, 98 - + 46 - 97 * - 86 * + + 51
----
10
425494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4854
SELECT + 53 AS col0, - CASE + - 41 WHEN + 38 - + 42 + + 70 * + 88 + + CAST( NULL AS SIGNED ) THEN - 28 WHEN + - 83 THEN - - 44 WHEN + + ( - NULLIF ( - 20, 29 ) ) * - 18 + + - 64 / - + 21 * + CAST( NULL AS DECIMAL ) * CAST( - COALESCE ( + 95, + 85 - 38 ) AS DECIMAL ) THEN + 68 WHEN - 97 * + 22 - ( COUNT( * ) - - 22 ) THEN NULL END
----
53
NULL

skipif mysql # not compatible
query II rowsort label-4854
SELECT + 53 AS col0, - CASE + - 41 WHEN + 38 - + 42 + + 70 * + 88 + + CAST ( NULL AS INTEGER ) THEN - 28 WHEN + - 83 THEN - - 44 WHEN + + ( - NULLIF ( - 20, 29 ) ) * - 18 + + - 64 / - + 21 * + CAST ( NULL AS REAL ) * CAST ( - COALESCE ( + 95, + 85 - 38 ) AS REAL ) THEN + 68 WHEN - 97 * + 22 - ( COUNT ( * ) - - 22 ) THEN NULL END
----
53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT + + ( + MIN( ALL + 19 ) )
----
19

skipif mysql # not compatible
query I rowsort label-4855
SELECT + + ( + MIN ( ALL + 19 ) )
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4856
SELECT DISTINCT - + COUNT( * ) AS col1, COUNT( * ) * - + COALESCE ( COUNT( * ), - - 30 * - 71 + - 68 - + 43 )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-4856
SELECT DISTINCT - + COUNT ( * ) AS col1, COUNT ( * ) * - + COALESCE ( COUNT ( * ), - - 30 * - 71 + - 68 - + 43 )
----
-1
-1

query I rowsort
SELECT 98 * 77 * + 98
----
739508

query I rowsort
SELECT 13 + - 96
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT + - NULLIF ( + + ( MIN( + + 37 ) ), - 96 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-4859
SELECT + - NULLIF ( + + ( MIN ( + + 37 ) ), - 96 ) AS col2
----
-37

query I rowsort
SELECT + + 90 * - - 84 + + 55 * 76
----
11740

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT 3 - - 77 * - COUNT( * ) + COUNT( * ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4861
SELECT 3 - - 77 * - COUNT ( * ) + COUNT ( * ) AS col0
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4862
SELECT + 34 DIV - 50 * + MIN( ALL + 98 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4862
SELECT + 34 / - 50 * + MIN ( ALL + 98 ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4863
SELECT 46 * + COUNT( * ) + + 52 + - COUNT( * ), CAST( COUNT( DISTINCT 66 ) AS SIGNED ) - - + 12 AS col2
----
97
13

skipif mysql # not compatible
query II rowsort label-4863
SELECT 46 * + COUNT ( * ) + + 52 + - COUNT ( * ), CAST ( COUNT ( DISTINCT 66 ) AS INTEGER ) - - + 12 AS col2
----
97
13

query I rowsort
SELECT ALL + + ( + 35 ) * 9 AS col2
----
315

query I rowsort
SELECT ALL - + ( 54 ) AS col2
----
-54

query II rowsort
SELECT DISTINCT - + 91, + 29 AS col1
----
-91
29

query III rowsort
SELECT - - 82 AS col0, 73, + + 19 AS col2
----
82
73
19

query I rowsort
SELECT ALL - 97 * + + 0 AS col0
----
0

query I rowsort
SELECT DISTINCT + - 92 + 53 + + 98 * - 5
----
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL - + COUNT( * ) + - 70
----
-71

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL - + COUNT ( * ) + - 70
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL + 5 + 10 + + - 81 + + + COUNT( * ) * - 56 + - 77 + + + 73
----
-126

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL + 5 + 10 + + - 81 + + + COUNT ( * ) * - 56 + - 77 + + + 73
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT DISTINCT - 47 + COALESCE ( COUNT( * ), + 67 + + 27, - - 40 ) * + 35
----
-12

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT - 47 + COALESCE ( COUNT ( * ), + 67 + + 27, - - 40 ) * + 35
----
-12

query II rowsort
SELECT 62 AS col0, + CASE 61 WHEN + + 84 THEN - - 64 WHEN + 66 THEN NULL END AS col2
----
62
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4874
SELECT DISTINCT + 79 AS col0, - COUNT( * )
----
79
-1

skipif mysql # not compatible
query II rowsort label-4874
SELECT DISTINCT + 79 AS col0, - COUNT ( * )
----
79
-1

query I rowsort
SELECT + 50 * + + 12 AS col0
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT MAX( - - 15 ) * COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4876
SELECT MAX ( - - 15 ) * COUNT ( * ) AS col1
----
15

query I rowsort
SELECT 0 - - 14
----
14

query I rowsort
SELECT DISTINCT 24 * - 68 AS col0
----
-1632

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4879
SELECT DISTINCT - 94 DIV - 19 AS col1, + COUNT( * ) + - + 68 AS col0
----
4
-67

skipif mysql # not compatible
query II rowsort label-4879
SELECT DISTINCT - 94 / - 19 AS col1, + COUNT ( * ) + - + 68 AS col0
----
4
-67

query I rowsort
SELECT ALL 59 * ( COALESCE ( - COALESCE ( - 45, + ( + 36 ), 55 ), + 25 ) ) AS col2
----
2655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4881
SELECT ALL - CASE - MAX( + - 37 ) WHEN NULLIF ( + - COUNT( * ), - ( 55 ) ) THEN NULL WHEN + 34 THEN NULL ELSE - 71 END - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL - CASE - MAX ( + - 37 ) WHEN NULLIF ( + - COUNT ( * ), - ( 55 ) ) THEN NULL WHEN + 34 THEN NULL ELSE - 71 END - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 35 * - 61
----
-2135

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT - ( - NULLIF ( 47, + NULLIF ( + + 90, - 10 ) * - - COUNT( * ) - - + ( - + 37 ) ) ) * + + 69 + + 31 * - CASE - 14 WHEN - COUNT( * ) - + COUNT( * ) + + 93 * - - 40 THEN - + 3 WHEN + - ( - 21 ) THEN 86 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT - ( - NULLIF ( 47, + NULLIF ( + + 90, - 10 ) * - - COUNT ( * ) - - + ( - + 37 ) ) ) * + + 69 + + 31 * - CASE - 14 WHEN - COUNT ( * ) - + COUNT ( * ) + + 93 * - - 40 THEN - + 3 WHEN + - ( - 21 ) THEN 86 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4884
SELECT 9 + + - MAX( + CAST( NULL AS SIGNED ) ) + 40 + SUM( DISTINCT + 98 ) + 33 * + - 9 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT 9 + + - MAX ( + CAST ( NULL AS INTEGER ) ) + 40 + SUM ( DISTINCT + 98 ) + 33 * + - 9 * 48
----
NULL

query I rowsort
SELECT 18 + + + 6
----
24

query I rowsort
SELECT 25 * + 42 AS col2
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT COUNT( * ) + - + NULLIF ( + - 39, 70 ) - + 76 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-4887
SELECT COUNT ( * ) + - + NULLIF ( + - 39, 70 ) - + 76 AS col1
----
-36

query I rowsort
SELECT ALL + 4 * 61 * - NULLIF ( - - 36, + + 49 - 90 )
----
-8784

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT ALL - COUNT( 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL - COUNT ( 15 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT CASE NULLIF ( + COUNT( * ), 79 * - 76 ) WHEN - + 47 THEN - ( - 61 ) END * + 63 + - - 90 + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4890
SELECT CASE NULLIF ( + COUNT ( * ), 79 * - 76 ) WHEN - + 47 THEN - ( - 61 ) END * + 63 + - - 90 + + 58
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4891
SELECT ALL 11 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL 11 / + 28
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4892
SELECT 60 * - 12 AS col2, MAX( + 68 )
----
-720
68

skipif mysql # not compatible
query II rowsort label-4892
SELECT 60 * - 12 AS col2, MAX ( + 68 )
----
-720
68

query I rowsort
SELECT - 43 + - - COALESCE ( 55, - 77 ) AS col0
----
12

query I rowsort
SELECT DISTINCT - + 17 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4895
SELECT ALL - NULLIF ( - 63, + CAST( ( 58 ) AS SIGNED ) * + 67 - 24 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL - NULLIF ( - 63, + CAST ( ( 58 ) AS INTEGER ) * + 67 - 24 ) AS col0
----
63

query I rowsort
SELECT - NULLIF ( - 86, - 23 - - 89 )
----
86

query II rowsort
SELECT ALL - 61 * + 46, - 1 AS col2
----
-2806
-1

query I rowsort
SELECT + 74 * + - 4 AS col0
----
-296

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT DISTINCT NULLIF ( + 45, + 72 * - - 93 + + 44 * - 45 ) * - 48 * + - MIN( DISTINCT 84 ) + 65 + + 56 AS col1
----
181561

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT NULLIF ( + 45, + 72 * - - 93 + + 44 * - 45 ) * - 48 * + - MIN ( DISTINCT 84 ) + 65 + + 56 AS col1
----
181561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4900
SELECT + MIN( - - CAST( - 53 AS SIGNED ) )
----
-53

skipif mysql # not compatible
query I rowsort label-4900
SELECT + MIN ( - - CAST ( - 53 AS INTEGER ) )
----
-53

query I rowsort
SELECT ALL 58 + - 6 * - ( + 19 )
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL - COUNT( * ) * + 7 col1
----
-7

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL - COUNT ( * ) * + 7 col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT - + MIN( ALL 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT - + MIN ( ALL 44 )
----
-44

query I rowsort
SELECT DISTINCT - + 80 col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL + COUNT( * ) + + + 80 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL + COUNT ( * ) + + + 80 AS col2
----
81

query I rowsort
SELECT 81 + + - 88 + - 99
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL - - 94 + + COUNT( * ) * + - 81 + + 82 - + 88 * + 56
----
-4833

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL - - 94 + + COUNT ( * ) * + - 81 + + 82 - + 88 * + 56
----
-4833

onlyif mysql # aggregate syntax: 
query II rowsort label-4908
SELECT 51 + + COUNT( * ), + 97 AS col1
----
52
97

skipif mysql # not compatible
query II rowsort label-4908
SELECT 51 + + COUNT ( * ), + 97 AS col1
----
52
97

query II rowsort
SELECT - ( - + 48 ) AS col2, + 71
----
48
71

query I rowsort
SELECT - ( COALESCE ( - 53, + - ( + 59 ) ) ) + - 48 * + 73
----
-3451

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4911
SELECT ALL 1 DIV - MAX( ALL 50 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL 1 / - MAX ( ALL 50 ) AS col1
----
0

query I rowsort
SELECT DISTINCT 60 + + 47
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT DISTINCT COUNT( ( - - 8 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT COUNT ( ( - - 8 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4914
SELECT DISTINCT COUNT( * ) * + + 93 * COALESCE ( - ( + CAST( + + 90 AS SIGNED ) ), + 18 + AVG ( ALL - 53 ) ) * + MAX( - + CAST( NULL AS SIGNED ) ) * + 83 * + ( + 9 ) * + - CAST( + 68 AS SIGNED ) * - 48 + + 1 + - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT COUNT ( * ) * + + 93 * COALESCE ( - ( + CAST ( + + 90 AS INTEGER ) ), + 18 + AVG ( ALL - 53 ) ) * + MAX ( - + CAST ( NULL AS INTEGER ) ) * + 83 * + ( + 9 ) * + - CAST ( + 68 AS INTEGER ) * - 48 + + 1 + - 68 AS col2
----
NULL

query I rowsort
SELECT ALL 95 - - 51 col1
----
146

onlyif mysql # DIV for integer division: 
query II rowsort label-4916
SELECT 26 AS col2, 16 DIV + 14 AS col1
----
26
1

skipif mysql # not compatible
query II rowsort label-4916
SELECT 26 AS col2, 16 / + 14 AS col1
----
26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT DISTINCT SUM( ALL 34 )
----
34

skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT SUM ( ALL 34 )
----
34

query I rowsort
SELECT - 59 + + 57 col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT ALL COUNT( - 44 )
----
1

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL COUNT ( - 44 )
----
1

query II rowsort
SELECT 7 AS col2, + 97 AS col1
----
7
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT ALL + COUNT( * ) - - + 46 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL + COUNT ( * ) - - + 46 AS col2
----
47

query I rowsort
SELECT + 11 + 5 + - 70 * - + 4
----
296

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4923
SELECT 23 AS col1, 9 * - 14 * 57 * + 5 + - 40 + + CAST( - 12 AS SIGNED ) col1
----
23
-35962

skipif mysql # not compatible
query II rowsort label-4923
SELECT 23 AS col1, 9 * - 14 * 57 * + 5 + - 40 + + CAST ( - 12 AS INTEGER ) col1
----
23
-35962

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL SUM( ALL + - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL SUM ( ALL + - 94 )
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT DISTINCT COUNT( * ) AS col2, + 73
----
1
73

skipif mysql # not compatible
query II rowsort label-4925
SELECT DISTINCT COUNT ( * ) AS col2, + 73
----
1
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4926
SELECT ALL 70 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL 70 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4927
SELECT ALL - CAST( NULL AS SIGNED ) / + 83 * - - ( + 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL - CAST ( NULL AS INTEGER ) / + 83 * - - ( + 19 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT DISTINCT COUNT( + 11 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT COUNT ( + 11 ) AS col2
----
1

query I rowsort
SELECT ALL 80 * + + 87 * - + 22 + 36 * 38
----
-151752

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT + COUNT( DISTINCT - 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4930
SELECT + COUNT ( DISTINCT - 81 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4931
SELECT - CAST( + 55 AS SIGNED ) DIV + - 79
----
0

skipif mysql # not compatible
query I rowsort label-4931
SELECT - CAST ( + 55 AS INTEGER ) / + - 79
----
0

query I rowsort
SELECT DISTINCT - 24 * + - 45 + - 29
----
1051

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4933
SELECT DISTINCT 37 * + COUNT( * ) + 21 + ( MAX( + 66 ) ) - - - CAST( NULL AS DECIMAL ) - NULLIF ( 37, + ( - 15 ) ) / - + COUNT( * ) + + 49 + + - 79 - 92 * 51 + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT 37 * + COUNT ( * ) + 21 + ( MAX ( + 66 ) ) - - - CAST ( NULL AS REAL ) - NULLIF ( 37, + ( - 15 ) ) / - + COUNT ( * ) + + 49 + + - 79 - 92 * 51 + + 7
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4934
SELECT ALL + COUNT( * ) AS col0, + 0
----
1
0

skipif mysql # not compatible
query II rowsort label-4934
SELECT ALL + COUNT ( * ) AS col0, + 0
----
1
0

query I rowsort
SELECT + + 44 * - 95
----
-4180

query II rowsort
SELECT DISTINCT - - 64 * + - 87 * 13 * - - 98 + 84 * 8, + 44 AS col2
----
-7092960
44

query II rowsort
SELECT + 23 AS col2, - 85 col1
----
23
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4938
SELECT DISTINCT + + 65 * - ( - - 99 ) + - + CAST( + 37 AS SIGNED )
----
-6472

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT + + 65 * - ( - - 99 ) + - + CAST ( + 37 AS INTEGER )
----
-6472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT - COUNT( * ) * + 25
----
-25

skipif mysql # not compatible
query I rowsort label-4940
SELECT - COUNT ( * ) * + 25
----
-25

query I rowsort
SELECT DISTINCT + 56 * 17 AS col1
----
952

query I rowsort
SELECT ALL ( - 70 ) * + 70 AS col1
----
-4900

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL + + 81 * 31 + COUNT( * ) - 72 + - 27 AS col1
----
2413

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL + + 81 * 31 + COUNT ( * ) - 72 + - 27 AS col1
----
2413

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL + COUNT( - 45 )
----
1

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL + COUNT ( - 45 )
----
1

query I rowsort
SELECT DISTINCT 70 * - - COALESCE ( + + 36, - - 25 ) - 90 * + 70 * - + 31
----
197820

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT ALL COUNT( ALL + 94 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL COUNT ( ALL + 94 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT ALL SUM( ALL - 23 ) * + - 80
----
1840

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL SUM ( ALL - 23 ) * + - 80
----
1840

query I rowsort
SELECT ALL COALESCE ( 84, - - 77 )
----
84

query I rowsort
SELECT + 36 * 51
----
1836

query I rowsort
SELECT + 42 * + 1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT + 53 + - MIN( ALL - + 57 )
----
110

skipif mysql # not compatible
query I rowsort label-4951
SELECT + 53 + - MIN ( ALL - + 57 )
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4952
SELECT DISTINCT ( + COUNT( * ) ) DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT ( + COUNT ( * ) ) / 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT - NULLIF ( + COUNT( * ), + 48 / - 42 ) * + ( 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-4953
SELECT - NULLIF ( + COUNT ( * ), + 48 / - 42 ) * + ( 56 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4954
SELECT + 23 - - + CAST( NULL AS SIGNED ) * + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4954
SELECT + 23 - - + CAST ( NULL AS INTEGER ) * + 96 AS col2
----
NULL

query I rowsort
SELECT + 82 * - 17 * + 38
----
-52972

query I rowsort
SELECT ALL - 49 * 82
----
-4018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4957
SELECT + 0 - - 48 - - CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT + 0 - - 48 - - CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4958
SELECT ALL ( + CAST( 49 AS SIGNED ) )
----
49

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL ( + CAST ( 49 AS INTEGER ) )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT ALL ( + CAST( - 4 AS SIGNED ) )
----
-4

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL ( + CAST ( - 4 AS INTEGER ) )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4960
SELECT DISTINCT COUNT( ALL + - NULLIF ( + 41, 67 * - + CAST( NULL AS SIGNED ) + - 22 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT COUNT ( ALL + - NULLIF ( + 41, 67 * - + CAST ( NULL AS INTEGER ) + - 22 ) )
----
1

query I rowsort
SELECT + 64 + + + 36
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT ALL - 41 * 26 DIV + - 72 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - 41 * 26 / + - 72 AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4963
SELECT ALL + 86 + SUM( - 11 ) DIV + - 37 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL + 86 + SUM ( - 11 ) / + - 37 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT + COUNT( * ) + + CASE + 11 WHEN - CASE - + 70 WHEN 92 * - 86 THEN + - 87 END THEN NULL ELSE COALESCE ( 12, 2 ) END
----
13

skipif mysql # not compatible
query I rowsort label-4964
SELECT + COUNT ( * ) + + CASE + 11 WHEN - CASE - + 70 WHEN 92 * - 86 THEN + - 87 END THEN NULL ELSE COALESCE ( 12, 2 ) END
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT - MIN( - 58 ) + + + 64 * 47
----
3066

skipif mysql # not compatible
query I rowsort label-4965
SELECT - MIN ( - 58 ) + + + 64 * 47
----
3066

query I rowsort
SELECT - 48 - + + 71 + - 50
----
-169

query I rowsort
SELECT ALL + + 27 + 37
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT - COUNT( ALL + 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-4968
SELECT - COUNT ( ALL + 48 )
----
-1

query I rowsort
SELECT ALL + NULLIF ( + 2, - ( + 87 ) )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4970
SELECT ALL MAX( ALL - + ( 0 ) ) DIV 26 + + - 43 * 39 * 42 + + COUNT( DISTINCT 68 ) AS col0, COUNT( * ) AS col2
----
-70433
1

skipif mysql # not compatible
query II rowsort label-4970
SELECT ALL MAX ( ALL - + ( 0 ) ) / 26 + + - 43 * 39 * 42 + + COUNT ( DISTINCT 68 ) AS col0, COUNT ( * ) AS col2
----
-70433
1

query I rowsort
SELECT DISTINCT + + 85 * + 16
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT - + COUNT( * ) + - - 74 * + 85 AS col0
----
6289

skipif mysql # not compatible
query I rowsort label-4972
SELECT - + COUNT ( * ) + - - 74 * + 85 AS col0
----
6289

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4973
SELECT ALL + 18 * COUNT( * ) DIV + 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL + 18 * COUNT ( * ) / + 33 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4974
SELECT DISTINCT - 48 / + MIN( - - 31 ) * + ( - 2 ) + - CAST( NULL AS SIGNED ) - - NULLIF ( + 57, - - 40 ) + + 50 + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT - 48 / + MIN ( - - 31 ) * + ( - 2 ) + - CAST ( NULL AS INTEGER ) - - NULLIF ( + 57, - - 40 ) + + 50 + - 82
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4975
SELECT - 7 DIV + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4975
SELECT - 7 / + 66 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4976
SELECT + CASE + 88 WHEN - - 87 * + 80 + 94 * - + 25 THEN NULL ELSE - - 15 DIV - 90 * + 44 * - 20 END
----
0

skipif mysql # not compatible
query I rowsort label-4976
SELECT + CASE + 88 WHEN - - 87 * + 80 + 94 * - + 25 THEN NULL ELSE - - 15 / - 90 * + 44 * - 20 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT NULLIF ( + 23, MAX( 1 ) * + 95 + + - 50 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4977
SELECT NULLIF ( + 23, MAX ( 1 ) * + 95 + + - 50 ) AS col0
----
23

query I rowsort
SELECT - - 71 + + - 17
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4979
SELECT DISTINCT 30 * COUNT( ALL + ( 89 ) ) - COUNT( * ), COUNT( * ) col1
----
29
1

skipif mysql # not compatible
query II rowsort label-4979
SELECT DISTINCT 30 * COUNT ( ALL + ( 89 ) ) - COUNT ( * ), COUNT ( * ) col1
----
29
1

query I rowsort
SELECT + + 97 + + 0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4981
SELECT DISTINCT - + 39 * + 20 - - CAST( + - 37 AS SIGNED ) - 49 * ( - + COUNT( * ) )
----
-768

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT - + 39 * + 20 - - CAST ( + - 37 AS INTEGER ) - 49 * ( - + COUNT ( * ) )
----
-768

onlyif mysql # DIV for integer division: 
query I rowsort label-4982
SELECT DISTINCT - 35 DIV 42 col2
----
0

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT - 35 / 42 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT - COUNT( * ) * - 9 + 62 * + NULLIF ( + ( 81 ), + + 28 ) * 45 AS col2
----
225999

skipif mysql # not compatible
query I rowsort label-4983
SELECT - COUNT ( * ) * - 9 + 62 * + NULLIF ( + ( 81 ), + + 28 ) * 45 AS col2
----
225999

query I rowsort
SELECT 9 + - COALESCE ( 62, 9 ) * - ( - - COALESCE ( - + 72, + 70 - - 98 ) ) AS col1
----
-4455

query I rowsort
SELECT ALL ( + 62 ) * + - 80 + - 88 + + + 17 + + + 0 * 11 AS col0
----
-5031

onlyif mysql # aggregate syntax: 
query II rowsort label-4986
SELECT DISTINCT 23 AS col0, - MAX( - 49 ) * COUNT( * ) * + COUNT( * ) * + + 77 * - COUNT( * ) + 69 + - + 64 * + COUNT( * ) AS col0
----
23
-3768

skipif mysql # not compatible
query II rowsort label-4986
SELECT DISTINCT 23 AS col0, - MAX ( - 49 ) * COUNT ( * ) * + COUNT ( * ) * + + 77 * - COUNT ( * ) + 69 + - + 64 * + COUNT ( * ) AS col0
----
23
-3768

query I rowsort
SELECT 53 + - 17 AS col0
----
36

query II rowsort
SELECT - 84, ( + + 91 ) AS col2
----
-84
91

query I rowsort
SELECT DISTINCT 93 + + 30
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT 88 + - MAX( - - 12 )
----
76

skipif mysql # not compatible
query I rowsort label-4990
SELECT 88 + - MAX ( - - 12 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL 28 + COUNT( * ) + + 85 * - 69 AS col2
----
-5836

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL 28 + COUNT ( * ) + + 85 * - 69 AS col2
----
-5836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4992
SELECT + 45 + 20 + - CAST( NULL AS SIGNED ) + - COUNT( * ) * - 94 + + + NULLIF ( - 8, + CAST( NULL AS SIGNED ) ) + - 97 - - 57 + + 96 * - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT + 45 + 20 + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 94 + + + NULLIF ( - 8, + CAST ( NULL AS INTEGER ) ) + - 97 - - 57 + + 96 * - - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT DISTINCT MIN( + NULLIF ( 91, + 9 - 76 ) ) + - 91 - + + 42
----
-42

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT MIN ( + NULLIF ( 91, + 9 - 76 ) ) + - 91 - + + 42
----
-42

query I rowsort
SELECT DISTINCT + 82 * - + 72 * 56 col1
----
-330624

query I rowsort
SELECT ALL + 13 * + 19
----
247

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT DISTINCT - COALESCE ( 13, COUNT( * ) )
----
-13

skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT - COALESCE ( 13, COUNT ( * ) )
----
-13

query II rowsort
SELECT + 12 * - 38 * + 60 AS col2, + 26 + + 36 AS col0
----
-27360
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4998
SELECT ALL ( + - 37 ) + + 4 + + + ( - 8 ) * - - ( + 58 ) * NULLIF ( + - NULLIF ( + CAST( - 7 AS SIGNED ), - - 6 ), + + 59 ), + 97 * 39 AS col0
----
-3281
3783

skipif mysql # not compatible
query II rowsort label-4998
SELECT ALL ( + - 37 ) + + 4 + + + ( - 8 ) * - - ( + 58 ) * NULLIF ( + - NULLIF ( + CAST ( - 7 AS INTEGER ), - - 6 ), + + 59 ), + 97 * 39 AS col0
----
-3281
3783

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4999
SELECT - COUNT( * ) DIV - - 67 - + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4999
SELECT - COUNT ( * ) / - - 67 - + + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT + + MAX( ALL 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5000
SELECT + + MAX ( ALL 97 ) AS col1
----
97

query II rowsort
SELECT ALL - - 8 AS col1, 50 - - 46 AS col2
----
8
96

query I rowsort
SELECT - 78 - - 74 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT + MAX( ALL - - NULLIF ( - 85, + 30 ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-5003
SELECT + MAX ( ALL - - NULLIF ( - 85, + 30 ) ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-5004
SELECT ALL - NULLIF ( + 40, MIN( - + 59 ) + + - 53 + + 37 ), 72 AS col2
----
-40
72

skipif mysql # not compatible
query II rowsort label-5004
SELECT ALL - NULLIF ( + 40, MIN ( - + 59 ) + + - 53 + + 37 ), 72 AS col2
----
-40
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5005
SELECT ALL - COUNT( * ), - 39 DIV 61 + + - COUNT( * ) AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5005
SELECT ALL - COUNT ( * ), - 39 / 61 + + - COUNT ( * ) AS col1
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT DISTINCT 79 - SUM( + 13 ) * - NULLIF ( 73, - + COUNT( - 19 ) * - COUNT( * ) )
----
1028

skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT 79 - SUM ( + 13 ) * - NULLIF ( 73, - + COUNT ( - 19 ) * - COUNT ( * ) )
----
1028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5007
SELECT ALL + + 7 * + + ( + + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL + + 7 * + + ( + + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT - 99 * 71 * COUNT( ALL + 85 ) + + 86 * 86 + - CASE + - 47 WHEN + 62 THEN NULL WHEN - 75 * 59 THEN + 14 END + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT - 99 * 71 * COUNT ( ALL + 85 ) + + 86 * 86 + - CASE + - 47 WHEN + 62 THEN NULL WHEN - 75 * 59 THEN + 14 END + - 4
----
NULL

query I rowsort
SELECT DISTINCT - - 93 col2
----
93

query I rowsort
SELECT DISTINCT - + 2 col1
----
-2

query II rowsort
SELECT + ( - + ( + 54 ) ) - - + 80 - + 35, 81 AS col1
----
-9
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5012
SELECT ALL + + COALESCE ( - 21, - 95 ) * + CAST( NULL AS SIGNED ) + - - 62 - - NULLIF ( - COALESCE ( - COUNT( * ), + 54 - - + ( - 16 ) * - COUNT( * ) + 56 ), - 22 + 2 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL + + COALESCE ( - 21, - 95 ) * + CAST ( NULL AS INTEGER ) + - - 62 - - NULLIF ( - COALESCE ( - COUNT ( * ), + 54 - - + ( - 16 ) * - COUNT ( * ) + 56 ), - 22 + 2 ) AS col1
----
NULL

query I rowsort
SELECT - 50 * - 54 AS col0
----
2700

query I rowsort
SELECT ALL + 45 * 72
----
3240

onlyif mysql # DIV for integer division: 
query II rowsort label-5015
SELECT + 31, 91 - 83 DIV + 18 AS col2
----
31
87

skipif mysql # not compatible
query II rowsort label-5015
SELECT + 31, 91 - 83 / + 18 AS col2
----
31
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT 45 + + COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-5016
SELECT 45 + + COUNT ( * ) AS col2
----
46

query I rowsort
SELECT ALL - 21 * - 0 * - ( - ( - + 28 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5018
SELECT COUNT( ALL + - 60 ) - + ( 82 ) DIV 57 col2
----
0

skipif mysql # not compatible
query I rowsort label-5018
SELECT COUNT ( ALL + - 60 ) - + ( 82 ) / 57 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5019
SELECT ALL - CASE - - 47 WHEN + SUM( CAST( NULL AS SIGNED ) ) THEN 46 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL - CASE - - 47 WHEN + SUM ( CAST ( NULL AS INTEGER ) ) THEN 46 END col2
----
NULL

query II rowsort
SELECT 58 AS col2, + ( 34 )
----
58
34

query I rowsort
SELECT ALL - ( 71 ) col1
----
-71

query I rowsort
SELECT DISTINCT + 76 * 71 col0
----
5396

query I rowsort
SELECT 44 * - 35
----
-1540

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5024
SELECT ALL 69 AS col2, ( - - CAST( NULL AS DECIMAL ) ) * - 87 * - 16 + + 12 + + - COUNT( * )
----
69
NULL

skipif mysql # not compatible
query II rowsort label-5024
SELECT ALL 69 AS col2, ( - - CAST ( NULL AS REAL ) ) * - 87 * - 16 + + 12 + + - COUNT ( * )
----
69
NULL

query I rowsort
SELECT ALL 47 * - - 63
----
2961

onlyif mysql # DIV for integer division: 
query I rowsort label-5026
SELECT 63 DIV - + 14 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5026
SELECT 63 / - + 14 AS col2
----
-4

query I rowsort
SELECT ALL - ( - 58 ) + - 46 AS col0
----
12

query I rowsort
SELECT 34 - + - 30 AS col2
----
64

query II rowsort
SELECT 58, 31 + - + 17 AS col1
----
58
14

query I rowsort
SELECT 53 + + 23
----
76

query I rowsort
SELECT ALL + 14 * 31
----
434

query I rowsort
SELECT ALL 81 + + + 83
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT ALL + COUNT( * ) + 77 * 1 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL + COUNT ( * ) + 77 * 1 AS col1
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT 71 + + + 89 + - 88 - - 30 + 13 DIV 61 + - 90 * + 87 * + ( - + 7 ) * 48 + - 42 + - 72 AS col2
----
2630868

skipif mysql # not compatible
query I rowsort label-5034
SELECT 71 + + + 89 + - 88 - - 30 + 13 / 61 + - 90 * + 87 * + ( - + 7 ) * 48 + - 42 + - 72 AS col2
----
2630868

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT ALL + MAX( DISTINCT + 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL + MAX ( DISTINCT + 85 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query III rowsort label-5036
SELECT ALL 18 col2, SUM( ALL + - 83 ) * - 18 col2, 33
----
18
1494
33

skipif mysql # not compatible
query III rowsort label-5036
SELECT ALL 18 col2, SUM ( ALL + - 83 ) * - 18 col2, 33
----
18
1494
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT - 49 + - 59 * + - 59 * + 83 * + COUNT( DISTINCT - 8 ) + - COUNT( * ) * + 10 - 3
----
288861

skipif mysql # not compatible
query I rowsort label-5037
SELECT - 49 + - 59 * + - 59 * + 83 * + COUNT ( DISTINCT - 8 ) + - COUNT ( * ) * + 10 - 3
----
288861

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT MIN( - 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-5038
SELECT MIN ( - 67 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT 81 * + - COUNT( * ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-5039
SELECT 81 * + - COUNT ( * ) col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT COUNT( * ) - + ( - - ( - 27 ) ) + 45 + - + MAX( DISTINCT - 52 ) + 46 * + 65
----
3115

skipif mysql # not compatible
query I rowsort label-5040
SELECT COUNT ( * ) - + ( - - ( - 27 ) ) + 45 + - + MAX ( DISTINCT - 52 ) + 46 * + 65
----
3115

query I rowsort
SELECT ALL - 52 * + - 44
----
2288

onlyif mysql # DIV for integer division: 
query I rowsort label-5042
SELECT - 99 DIV - 65
----
1

skipif mysql # not compatible
query I rowsort label-5042
SELECT - 99 / - 65
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5043
SELECT ALL 68 DIV + NULLIF ( 15, + + 95 ) + - - 7
----
11

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL 68 / + NULLIF ( 15, + + 95 ) + - - 7
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL + + COUNT( * ) * + 27
----
27

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL + + COUNT ( * ) * + 27
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT - 97 * - 12 + - COUNT( * ) AS col2
----
1163

skipif mysql # not compatible
query I rowsort label-5045
SELECT - 97 * - 12 + - COUNT ( * ) AS col2
----
1163

query II rowsort
SELECT 48 AS col1, ( + + 72 ) AS col0
----
48
72

query II rowsort
SELECT ALL - - 65 AS col0, 15 AS col0
----
65
15

query I rowsort
SELECT ALL + 75 * + 6
----
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5049
SELECT ALL NULLIF ( - - 50, + CAST( NULL AS SIGNED ) * 84 / 17 ) * 0 AS col0, - COUNT( * ) * - - 66 AS col2
----
0
-66

skipif mysql # not compatible
query II rowsort label-5049
SELECT ALL NULLIF ( - - 50, + CAST ( NULL AS INTEGER ) * 84 / 17 ) * 0 AS col0, - COUNT ( * ) * - - 66 AS col2
----
0
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5050
SELECT DISTINCT + 71, + CAST( NULL AS SIGNED ) AS col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-5050
SELECT DISTINCT + 71, + CAST ( NULL AS INTEGER ) AS col1
----
71
NULL

query II rowsort
SELECT 66, + 88 * 25 * 38 AS col0
----
66
83600

query I rowsort
SELECT - 0 + - 21 + - 87
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5053
SELECT DISTINCT + NULLIF ( - NULLIF ( - ( + COALESCE ( - ( + 98 ), + 47 DIV + 62 * 25 + + + 94 * - - 74 + COUNT( * ) ) ), 55 ), - COUNT( * ) + + 6 )
----
-98

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT + NULLIF ( - NULLIF ( - ( + COALESCE ( - ( + 98 ), + 47 / + 62 * 25 + + + 94 * - - 74 + COUNT ( * ) ) ), 55 ), - COUNT ( * ) + + 6 )
----
-98

query I rowsort
SELECT - 77 + - + 88 + - + 15 AS col0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL + COUNT( * ) * 33 + + 20 * 24
----
513

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL + COUNT ( * ) * 33 + + 20 * 24
----
513

query I rowsort
SELECT - 41 + 2 * + 66 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT COUNT( * ) * + 59 + - 16 * + 35
----
-501

skipif mysql # not compatible
query I rowsort label-5057
SELECT COUNT ( * ) * + 59 + - 16 * + 35
----
-501

query I rowsort
SELECT DISTINCT - 82 + ( - 95 ) AS col2
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT DISTINCT - 73 + + 81 + + 93 * + + 71 * - + MIN( + - 97 )
----
640499

skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT - 73 + + 81 + + 93 * + + 71 * - + MIN ( + - 97 )
----
640499

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL - 82 * NULLIF ( 55, COUNT( * ) ) col0
----
-4510

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL - 82 * NULLIF ( 55, COUNT ( * ) ) col0
----
-4510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5061
SELECT - CAST( - 92 AS SIGNED ) + - + 80 col1
----
12

skipif mysql # not compatible
query I rowsort label-5061
SELECT - CAST ( - 92 AS INTEGER ) + - + 80 col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT ALL 57 DIV 21 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL 57 / 21 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT - COUNT( - + 16 ) + - COUNT( * ) * - 21 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-5063
SELECT - COUNT ( - + 16 ) + - COUNT ( * ) * - 21 AS col0
----
20

query I rowsort
SELECT - - ( + + 12 ) * - 51 * 65 - - + 11
----
-39769

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT + - 36 + + - MIN( + - 79 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-5065
SELECT + - 36 + + - MIN ( + - 79 ) AS col1
----
43

query II rowsort
SELECT ALL - - ( + + 20 ) * - 75 AS col2, + 31 + - 19 - 84 * - 1 col0
----
-1500
96

query I rowsort
SELECT + 30 + + ( - 69 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT - 69 * - - COUNT( * ) + + 4 + + 16 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5068
SELECT - 69 * - - COUNT ( * ) + + 4 + + 16 AS col2
----
-49

query I rowsort
SELECT + 39 * + ( - - 47 )
----
1833

query I rowsort
SELECT DISTINCT - 39 * - 98 AS col2
----
3822

query I rowsort
SELECT DISTINCT + 23 * + 85
----
1955

query I rowsort
SELECT ( + + 47 )
----
47

query I rowsort
SELECT + + 84 + - 3 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5074
SELECT DISTINCT - + ( - + ( 68 ) ) * - CAST( 39 AS SIGNED ) + - + COUNT( * )
----
-2653

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT - + ( - + ( 68 ) ) * - CAST ( 39 AS INTEGER ) + - + COUNT ( * )
----
-2653

query I rowsort
SELECT + - 51 * + 62
----
-3162

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5076
SELECT ALL + ( 52 ) AS col2, ( - COALESCE ( 39, - - COUNT( - + 80 ), - 6 * - 75 - + 20 + - 43 + - NULLIF ( - CASE - 38 WHEN + - 22 + - - 8 * - - 35 - + CASE + - CASE + + 93 WHEN + 90 THEN NULL WHEN - - MAX( ALL + 11 ) * - 79 * - CAST( COUNT( * ) AS DECIMAL ) + - MIN( ALL - + 14 ) + 22 THEN + + ( 23 ) + - CAST( NULL AS DECIMAL ) + - 24 WHEN 87 DIV + 82 THEN NULL END WHEN + 80 THEN NULL ELSE 67 + COALESCE ( COALESCE ( - 83, 46 * + 96 ), - 95 + 90 ) END THEN - 93 ELSE NULL END, 40 ) DIV - 84 * 79 DIV 43, 31 + 89 * 50 ) )
----
52
-39

skipif mysql # not compatible
query II rowsort label-5076
SELECT ALL + ( 52 ) AS col2, ( - COALESCE ( 39, - - COUNT ( - + 80 ), - 6 * - 75 - + 20 + - 43 + - NULLIF ( - CASE - 38 WHEN + - 22 + - - 8 * - - 35 - + CASE + - CASE + + 93 WHEN + 90 THEN NULL WHEN - - MAX ( ALL + 11 ) * - 79 * - CAST ( COUNT ( * ) AS REAL ) + - MIN ( ALL - + 14 ) + 22 THEN + + ( 23 ) + - CAST ( NULL AS REAL ) + - 24 WHEN 87 / + 82 THEN NULL END WHEN + 80 THEN NULL ELSE 67 + COALESCE ( COALESCE ( - 83, 46 * + 96 ), - 95 + 90 ) END THEN - 93 ELSE NULL END, 40 ) / - 84 * 79 / 43, 31 + 89 * 50 ) )
----
52
-39

query I rowsort
SELECT - + 65 - 65 AS col0
----
-130

query I rowsort
SELECT + + 85 * + - 31 * + 41 * 98
----
-10587430

onlyif mysql # DIV for integer division: 
query I rowsort label-5079
SELECT ALL 18 DIV 83 + + 62 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL 18 / 83 + + 62 AS col1
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-5080
SELECT ALL + 73 AS col1, COUNT( * ) AS col1
----
73
1

skipif mysql # not compatible
query II rowsort label-5080
SELECT ALL + 73 AS col1, COUNT ( * ) AS col1
----
73
1

query I rowsort
SELECT + 59 - + ( + 8 ) col1
----
51

query II rowsort
SELECT ALL + 18 AS col0, - 87
----
18
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5083
SELECT + MAX( ALL + 27 ) DIV + 94, 68 + + 81 + - 99 AS col0, + COUNT( * ) * + ( COUNT( * ) ) * CAST( - - 39 AS SIGNED ) AS col2
----
0
50
39

skipif mysql # not compatible
query III rowsort label-5083
SELECT + MAX ( ALL + 27 ) / + 94, 68 + + 81 + - 99 AS col0, + COUNT ( * ) * + ( COUNT ( * ) ) * CAST ( - - 39 AS INTEGER ) AS col2
----
0
50
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5084
SELECT ALL + CAST( NULL AS SIGNED ) * CASE 72 WHEN - 28 * 62 * - 80 + COUNT( * ) / - 6 THEN - 45 ELSE NULL END + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL + CAST ( NULL AS INTEGER ) * CASE 72 WHEN - 28 * 62 * - 80 + COUNT ( * ) / - 6 THEN - 45 ELSE NULL END + 79
----
NULL

query I rowsort
SELECT ALL - 39 * - 47 + - ( 10 ) AS col1
----
1823

query I rowsort
SELECT + 65 * - - 34
----
2210

onlyif mysql # DIV for integer division: 
query II rowsort label-5087
SELECT ALL + 8, + 2 DIV + 48 AS col2
----
8
0

skipif mysql # not compatible
query II rowsort label-5087
SELECT ALL + 8, + 2 / + 48 AS col2
----
8
0

query I rowsort
SELECT + ( 19 ) AS col0
----
19

query I rowsort
SELECT ALL 42 * 62 * 90 + - 2 AS col2
----
234358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5090
SELECT CASE CAST( NULL AS SIGNED ) WHEN + 63 THEN - + 82 * + + COUNT( * ) * + 85 * 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT CASE CAST ( NULL AS INTEGER ) WHEN + 63 THEN - + 82 * + + COUNT ( * ) * + 85 * 3 END
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + - 55, - + 77 )
----
-55

query I rowsort
SELECT + 70 * 65
----
4550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT DISTINCT - CASE 31 WHEN 58 THEN - 95 / + 79 / - - 56 END * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT - CASE 31 WHEN 58 THEN - 95 / + 79 / - - 56 END * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL ( + 0 ) col0
----
0

query I rowsort
SELECT DISTINCT - - 76 * + 67 AS col2
----
5092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5096
SELECT + CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT + CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + ( 78 ) * - 70 AS col0, 60
----
-5460
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT - 44 + - COUNT( DISTINCT 35 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5098
SELECT - 44 + - COUNT ( DISTINCT 35 ) AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5099
SELECT DISTINCT + 74 * + + 19 * - COUNT( * ) * - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT + 74 * + + 19 * - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - - 4 - + 60 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-5101
SELECT DISTINCT 71 AS col2, COUNT( * ) col1
----
71
1

skipif mysql # not compatible
query II rowsort label-5101
SELECT DISTINCT 71 AS col2, COUNT ( * ) col1
----
71
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5102
SELECT ALL + - 1 DIV 81 * ( 56 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL + - 1 / 81 * ( 56 ) AS col0
----
0

query II rowsort
SELECT ALL 15 AS col1, 49 * + + 21 AS col2
----
15
1029

onlyif mysql # aggregate syntax: 
query II rowsort label-5104
SELECT ALL + COUNT( * ) AS col1, - 74 AS col2
----
1
-74

skipif mysql # not compatible
query II rowsort label-5104
SELECT ALL + COUNT ( * ) AS col1, - 74 AS col2
----
1
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5105
SELECT - 3 * + 20 * - 86 AS col2, - 98 * + 46 + + - 84 + + + NULLIF ( + + 86, - SUM( ALL + CAST( - 39 AS DECIMAL ) ) + + - 4 )
----
5160
-4506

skipif mysql # not compatible
query II rowsort label-5105
SELECT - 3 * + 20 * - 86 AS col2, - 98 * + 46 + + - 84 + + + NULLIF ( + + 86, - SUM ( ALL + CAST ( - 39 AS REAL ) ) + + - 4 )
----
5160
-4506

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT ( + + COUNT( 49 ) ) + - 83
----
-82

skipif mysql # not compatible
query I rowsort label-5106
SELECT ( + + COUNT ( 49 ) ) + - 83
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT - COUNT( * ) + + 17 col1
----
16

skipif mysql # not compatible
query I rowsort label-5107
SELECT - COUNT ( * ) + + 17 col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5108
SELECT ALL + 58 DIV - COUNT( - ( 73 ) ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL + 58 / - COUNT ( - ( 73 ) ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ALL - COUNT( * ) + + + 54 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL - COUNT ( * ) + + + 54 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT - COUNT( + - 95 ) + - MAX( DISTINCT 53 ) + 38 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5110
SELECT - COUNT ( + - 95 ) + - MAX ( DISTINCT 53 ) + 38 AS col2
----
-16

query I rowsort
SELECT 29 + + 73 AS col0
----
102

query I rowsort
SELECT ALL ( - NULLIF ( + + ( 49 ), - - 3 ) )
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-5113
SELECT ALL NULLIF ( 53, - 61 * - ( + - MAX( - ( - 12 ) ) ) ) + + 37 AS col0, 40 * - 34 - - COUNT( * ) AS col0
----
90
-1359

skipif mysql # not compatible
query II rowsort label-5113
SELECT ALL NULLIF ( 53, - 61 * - ( + - MAX ( - ( - 12 ) ) ) ) + + 37 AS col0, 40 * - 34 - - COUNT ( * ) AS col0
----
90
-1359

query I rowsort
SELECT - 37 * - - 84 + + - 47 AS col2
----
-3155

onlyif mysql # aggregate syntax: 
query II rowsort label-5115
SELECT ALL 95 * + 75 AS col0, 56 * - 59 * + + COUNT( * )
----
7125
-3304

skipif mysql # not compatible
query II rowsort label-5115
SELECT ALL 95 * + 75 AS col0, 56 * - 59 * + + COUNT ( * )
----
7125
-3304

query I rowsort
SELECT DISTINCT - 17 + + 45 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT 34 + 6 + COALESCE ( - 2, + 36 * 66 ) + 36 + - SUM( ALL 13 ) * + 67 + - - SUM( - - 73 ) AS col1
----
-724

skipif mysql # not compatible
query I rowsort label-5117
SELECT 34 + 6 + COALESCE ( - 2, + 36 * 66 ) + 36 + - SUM ( ALL 13 ) * + 67 + - - SUM ( - - 73 ) AS col1
----
-724

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5118
SELECT 44 + + - 65 * - NULLIF ( COALESCE ( - + 2, AVG ( - + 67 ) DIV - + COUNT( * ) ), + COUNT( * ) ) - + 40 * + + 56
----
-2326

skipif mysql # not compatible
query I rowsort label-5118
SELECT 44 + + - 65 * - NULLIF ( COALESCE ( - + 2, AVG ( - + 67 ) / - + COUNT ( * ) ), + COUNT ( * ) ) - + 40 * + + 56
----
-2326

onlyif mysql # aggregate syntax: 
query II rowsort label-5119
SELECT 47 * - COUNT( * ) AS col0, + MIN( ( + 98 ) )
----
-47
98

skipif mysql # not compatible
query II rowsort label-5119
SELECT 47 * - COUNT ( * ) AS col0, + MIN ( ( + 98 ) )
----
-47
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT + 19 * - 43 + 51 * + 98 * + + ( + 86 ) * + 18 + COUNT( * ) - + 75
----
7736013

skipif mysql # not compatible
query I rowsort label-5120
SELECT + 19 * - 43 + 51 * + 98 * + + ( + 86 ) * + 18 + COUNT ( * ) - + 75
----
7736013

query I rowsort
SELECT DISTINCT - ( + - 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL MAX( DISTINCT - 21 ) * 39 + 95 col2
----
-724

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL MAX ( DISTINCT - 21 ) * 39 + 95 col2
----
-724

query I rowsort
SELECT ALL 93 - + ( - 30 )
----
123

query I rowsort
SELECT ALL 58 * + - 49 * - 7 col2
----
19894

query I rowsort
SELECT 88 + + 40
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5126
SELECT ALL 75 - 32 + - COALESCE ( - - 53, - 73, 85 * - COALESCE ( - COUNT( * ), 40 - + 27 * ( - - CAST( - 65 AS SIGNED ) ) * + 32 * + 23 * 24 - - 41 * 76 * - 47 - + + CASE - 23 WHEN + 56 - - - 75 - - 45 * - - 91 THEN 56 * - - 42 + - 5 + - 85 ELSE + 18 END DIV - ( - COUNT( * ) ) + + 29 - + + 87 ) ) + 17
----
7

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL 75 - 32 + - COALESCE ( - - 53, - 73, 85 * - COALESCE ( - COUNT ( * ), 40 - + 27 * ( - - CAST ( - 65 AS INTEGER ) ) * + 32 * + 23 * 24 - - 41 * 76 * - 47 - + + CASE - 23 WHEN + 56 - - - 75 - - 45 * - - 91 THEN 56 * - - 42 + - 5 + - 85 ELSE + 18 END / - ( - COUNT ( * ) ) + + 29 - + + 87 ) ) + 17
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT + 6 * - NULLIF ( + COUNT( * ), + - 9 ) * + 50 + ( - + 27 ) + + 99
----
-228

skipif mysql # not compatible
query I rowsort label-5127
SELECT + 6 * - NULLIF ( + COUNT ( * ), + - 9 ) * + 50 + ( - + 27 ) + + 99
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT COUNT( * ) * - ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5128
SELECT COUNT ( * ) * - ( - + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT ALL 22 * - - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL 22 * - - COUNT ( * )
----
22

query I rowsort
SELECT - NULLIF ( - COALESCE ( - 16, + + 10 ), + 31 - - - 81 - - 39 * - + 63 ) AS col1
----
-16

query I rowsort
SELECT ALL + 45 * + + 65 AS col0
----
2925

query I rowsort
SELECT ALL + 73 * - - 70
----
5110

onlyif mysql # aggregate syntax: 
query II rowsort label-5133
SELECT ALL COUNT( DISTINCT + 54 ) AS col1, - 39
----
1
-39

skipif mysql # not compatible
query II rowsort label-5133
SELECT ALL COUNT ( DISTINCT + 54 ) AS col1, - 39
----
1
-39

query I rowsort
SELECT ALL + - 6 + 77 col2
----
71

query I rowsort
SELECT - 45 * 28
----
-1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT - CAST( - + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5136
SELECT - CAST ( - + 0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT COUNT( 24 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5137
SELECT COUNT ( 24 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5138
SELECT DISTINCT + 40 DIV - + 38 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT + 40 / - + 38 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5139
SELECT 57 DIV 25 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5139
SELECT 57 / 25 AS col1
----
2

query I rowsort
SELECT 63 * + + 28 AS col0
----
1764

query I rowsort
SELECT 37 - 65
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT DISTINCT - 41 DIV 1 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT - 41 / 1 AS col2
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-5143
SELECT 82 DIV 36 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-5143
SELECT 82 / 36 / 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT COUNT( - 21 ) * + 20 * COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-5144
SELECT COUNT ( - 21 ) * + 20 * COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT ALL ( + 50 ) * 53 + 57 + + 28 * - 67 * COUNT( * ) - COUNT( * ) * + 90 AS col1
----
741

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL ( + 50 ) * 53 + 57 + + 28 * - 67 * COUNT ( * ) - COUNT ( * ) * + 90 AS col1
----
741

query II rowsort
SELECT DISTINCT - 1 AS col2, + 27 * 20 AS col2
----
-1
540

query II rowsort
SELECT + 20 AS col2, + 30 AS col1
----
20
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5148
SELECT DISTINCT COUNT( * ) * - 4 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT COUNT ( * ) * - 4 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5149
SELECT MIN( ( + 95 ) ) - - 96 DIV - + 99 col1, - 10
----
95
-10

skipif mysql # not compatible
query II rowsort label-5149
SELECT MIN ( ( + 95 ) ) - - 96 / - + 99 col1, - 10
----
95
-10

query I rowsort
SELECT ALL + 69 * 50 AS col2
----
3450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5151
SELECT 72 + - 62 - + + MIN( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT 72 + - 62 - + + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT NULLIF ( 56, - 58 * - 86 - 23 + + - COUNT( * ) - 70 - - 79 ) * + 9 col0
----
504

skipif mysql # not compatible
query I rowsort label-5152
SELECT NULLIF ( 56, - 58 * - 86 - 23 + + - COUNT ( * ) - 70 - - 79 ) * + 9 col0
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT MAX( DISTINCT 46 ) * 7 * 76 * + COUNT( * )
----
24472

skipif mysql # not compatible
query I rowsort label-5153
SELECT MAX ( DISTINCT 46 ) * 7 * 76 * + COUNT ( * )
----
24472

onlyif mysql # DIV for integer division: 
query I rowsort label-5154
SELECT ALL 23 DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL 23 / 69
----
0

query I rowsort
SELECT + 63 * - 53 AS col0
----
-3339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5156
SELECT DISTINCT + 91 * 75 + + CAST( CASE + 84 WHEN - + 78 THEN + 59 - ( 40 ) WHEN + 22 * 56 / - 36 + + - CASE 97 WHEN + COUNT( * ) THEN AVG ( DISTINCT - 53 ) WHEN - 57 THEN + + 32 * - 61 WHEN + COUNT( * ) * + - 84 / 34 THEN - + 88 WHEN 41 * + + 78 THEN NULL END + + + 77 * - 12 - ( - + 3 ) THEN + + 62 + - 4 + + COUNT( * ) / + + 18 END AS SIGNED ) * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT + 91 * 75 + + CAST ( CASE + 84 WHEN - + 78 THEN + 59 - ( 40 ) WHEN + 22 * 56 / - 36 + + - CASE 97 WHEN + COUNT ( * ) THEN AVG ( DISTINCT - 53 ) WHEN - 57 THEN + + 32 * - 61 WHEN + COUNT ( * ) * + - 84 / 34 THEN - + 88 WHEN 41 * + + 78 THEN NULL END + + + 77 * - 12 - ( - + 3 ) THEN + + 62 + - 4 + + COUNT ( * ) / + + 18 END AS INTEGER ) * - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL 46 + - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL 46 + - COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT - - 27 + + 51 * COUNT( * ) + - + 3 * + + 31
----
-15

skipif mysql # not compatible
query I rowsort label-5158
SELECT - - 27 + + 51 * COUNT ( * ) + - + 3 * + + 31
----
-15

query II rowsort
SELECT - 39, - 0 AS col1
----
-39
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT - 58 * - + CASE 59 WHEN AVG ( - - 9 ) THEN NULL ELSE - 69 END + + 58 DIV + 35
----
-4001

skipif mysql # not compatible
query I rowsort label-5160
SELECT - 58 * - + CASE 59 WHEN AVG ( - - 9 ) THEN NULL ELSE - 69 END + + 58 / + 35
----
-4001

query I rowsort
SELECT + + ( - - 84 ) * - 30 col1
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT ALL CASE - 98 WHEN 4 THEN 3 * + 80 * + COUNT( * ) + - 76 WHEN - COUNT( * ) THEN + 40 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL CASE - 98 WHEN 4 THEN 3 * + 80 * + COUNT ( * ) + - 76 WHEN - COUNT ( * ) THEN + 40 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT + - SUM( ALL - 50 ) + + 77 AS col2
----
127

skipif mysql # not compatible
query I rowsort label-5163
SELECT + - SUM ( ALL - 50 ) + + 77 AS col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT - - 72 * - MAX( 29 )
----
-2088

skipif mysql # not compatible
query I rowsort label-5164
SELECT - - 72 * - MAX ( 29 )
----
-2088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5165
SELECT - - COALESCE ( - CAST( NULL AS SIGNED ), 94 ), + COUNT( * ) + 52 + + 35 - + - 58 AS col0
----
94
146

skipif mysql # not compatible
query II rowsort label-5165
SELECT - - COALESCE ( - CAST ( NULL AS INTEGER ), 94 ), + COUNT ( * ) + 52 + + 35 - + - 58 AS col0
----
94
146

query I rowsort
SELECT ALL + 97 + 21
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT DISTINCT + 39 + COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5167
SELECT DISTINCT + 39 + COUNT ( * ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT + MAX( DISTINCT - 64 ) + - NULLIF ( - + 88, - 2 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5168
SELECT + MAX ( DISTINCT - 64 ) + - NULLIF ( - + 88, - 2 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT + 32 + + COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-5169
SELECT + 32 + + COUNT ( * ) AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5170
SELECT ALL 19 DIV - + ( 41 ) * 3 * + + 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL 19 / - + ( 41 ) * 3 * + + 7 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT + COUNT( * ) + + - 74
----
-73

skipif mysql # not compatible
query I rowsort label-5171
SELECT + COUNT ( * ) + + - 74
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5172
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) * + + 52 / COUNT( * ) col1, 22
----
NULL
22

skipif mysql # not compatible
query II rowsort label-5172
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + + 52 / COUNT ( * ) col1, 22
----
NULL
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5173
SELECT + 1 + + 3 + - - SUM( 61 ) + 76 DIV 40 - - NULLIF ( + 9, - + COUNT( * ) ) - 7 * 72 * - 72 AS col0
----
36363

skipif mysql # not compatible
query I rowsort label-5173
SELECT + 1 + + 3 + - - SUM ( 61 ) + 76 / 40 - - NULLIF ( + 9, - + COUNT ( * ) ) - 7 * 72 * - 72 AS col0
----
36363

query I rowsort
SELECT + 77 + + + 23
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5175
SELECT ALL - 37 - + MIN( - 16 ) DIV - 37 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL - 37 - + MIN ( - 16 ) / - 37 AS col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5176
SELECT + 94 * - COUNT( * ) DIV + ( + 1 )
----
-94

skipif mysql # not compatible
query I rowsort label-5176
SELECT + 94 * - COUNT ( * ) / + ( + 1 )
----
-94

query I rowsort
SELECT ( + 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT - ( - 80 ) + + + 82 + - COUNT( * ) * + + NULLIF ( - + 17, + 25 )
----
179

skipif mysql # not compatible
query I rowsort label-5178
SELECT - ( - 80 ) + + + 82 + - COUNT ( * ) * + + NULLIF ( - + 17, + 25 )
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT + NULLIF ( - - NULLIF ( ( - MAX( + - ( + - 12 ) ) ), - 61 ), - + 60 ) * + + 37 AS col1
----
-444

skipif mysql # not compatible
query I rowsort label-5179
SELECT + NULLIF ( - - NULLIF ( ( - MAX ( + - ( + - 12 ) ) ), - 61 ), - + 60 ) * + + 37 AS col1
----
-444

query I rowsort
SELECT + ( 62 )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5181
SELECT - 17 DIV - 71 AS col0, - MIN( + ( 77 ) ) AS col1
----
0
-77

skipif mysql # not compatible
query II rowsort label-5181
SELECT - 17 / - 71 AS col0, - MIN ( + ( 77 ) ) AS col1
----
0
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT DISTINCT - 92 DIV - 12
----
7

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT - 92 / - 12
----
7

query I rowsort
SELECT ALL + ( - 22 ) col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5184
SELECT - CAST( NULL AS SIGNED ) * 83 / MAX( 46 ) * COUNT( * ) * + 39 + - - COUNT( * ) * 86 * AVG ( - + 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT - CAST ( NULL AS INTEGER ) * 83 / MAX ( 46 ) * COUNT ( * ) * + 39 + - - COUNT ( * ) * 86 * AVG ( - + 57 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT COALESCE ( + + COUNT( * ), + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-5185
SELECT COALESCE ( + + COUNT ( * ), + 28 )
----
1

query I rowsort
SELECT NULLIF ( - 57, - + 90 + + 67 ) AS col1
----
-57

query I rowsort
SELECT ALL + 82 * + 79 + - 90 AS col1
----
6388

onlyif mysql # DIV for integer division: 
query I rowsort label-5188
SELECT 29 DIV + 13 + - 60
----
-58

skipif mysql # not compatible
query I rowsort label-5188
SELECT 29 / + 13 + - 60
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5189
SELECT DISTINCT + 39, COUNT( * ) * - + 41 - - 82 + - - 28 * - 69 AS col1
----
39
-1891

skipif mysql # not compatible
query II rowsort label-5189
SELECT DISTINCT + 39, COUNT ( * ) * - + 41 - - 82 + - - 28 * - 69 AS col1
----
39
-1891

query II rowsort
SELECT - 33 + + 88 AS col1, 70 * - - 45
----
55
3150

onlyif mysql # aggregate syntax: 
query III rowsort label-5191
SELECT - + 56 * + 85, - 60 - + 9 AS col2, + COUNT( * ) AS col0
----
-4760
-69
1

skipif mysql # not compatible
query III rowsort label-5191
SELECT - + 56 * + 85, - 60 - + 9 AS col2, + COUNT ( * ) AS col0
----
-4760
-69
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT + SUM( - 15 ) * MIN( + - 27 ) * + 83 + + ( - 21 ) * - - COUNT( * )
----
33594

skipif mysql # not compatible
query I rowsort label-5192
SELECT + SUM ( - 15 ) * MIN ( + - 27 ) * + 83 + + ( - 21 ) * - - COUNT ( * )
----
33594

query I rowsort
SELECT - 36 * - - 80 * + 99
----
-285120

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT NULLIF ( + 16, + 49 + - + MAX( ALL - 87 ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-5194
SELECT NULLIF ( + 16, + 49 + - + MAX ( ALL - 87 ) ) AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5195
SELECT ALL + 88 * CAST( NULL AS SIGNED ) + ( + 49 ) * + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL + 88 * CAST ( NULL AS INTEGER ) + ( + 49 ) * + 68 AS col0
----
NULL

query I rowsort
SELECT ALL 93 * 72 AS col1
----
6696

onlyif mysql # DIV for integer division: 
query I rowsort label-5197
SELECT + 63 DIV + ( 83 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5197
SELECT + 63 / + ( 83 ) AS col1
----
0

query I rowsort
SELECT ALL - 30 * + 53 AS col0
----
-1590

onlyif mysql # aggregate syntax: 
query II rowsort label-5199
SELECT - COALESCE ( - + 44, + + 37, + - COUNT( * ) ), 1 AS col1
----
44
1

skipif mysql # not compatible
query II rowsort label-5199
SELECT - COALESCE ( - + 44, + + 37, + - COUNT ( * ) ), 1 AS col1
----
44
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5200
SELECT - - 80 DIV 17 * 19 - + + 37, 21 AS col0
----
39
21

skipif mysql # not compatible
query II rowsort label-5200
SELECT - - 80 / 17 * 19 - + + 37, 21 AS col0
----
39
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5201
SELECT + - CAST( + - 44 AS SIGNED ) DIV - COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-5201
SELECT + - CAST ( + - 44 AS INTEGER ) / - COUNT ( * ) AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5202
SELECT + CAST( NULL AS SIGNED ) + - COUNT( 28 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( 28 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT + SUM( ALL - + 91 ) * - 53 AS col2
----
4823

skipif mysql # not compatible
query I rowsort label-5203
SELECT + SUM ( ALL - + 91 ) * - 53 AS col2
----
4823

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT DISTINCT MAX( 7 )
----
7

skipif mysql # not compatible
query I rowsort label-5204
SELECT DISTINCT MAX ( 7 )
----
7

query I rowsort
SELECT - ( 36 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT - COALESCE ( + 87, + COALESCE ( - - 57, + 30 + + - 56 ) + + 14 + - 8 + - + 40 * - COUNT( * ) * + 61 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-5206
SELECT - COALESCE ( + 87, + COALESCE ( - - 57, + 30 + + - 56 ) + + 14 + - 8 + - + 40 * - COUNT ( * ) * + 61 ) AS col1
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-5207
SELECT + 5 DIV - + 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5207
SELECT + 5 / - + 28 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5208
SELECT DISTINCT 81 DIV - + 65 + 68
----
67

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT 81 / - + 65 + 68
----
67

query I rowsort
SELECT 13 * - 75 col2
----
-975

query I rowsort
SELECT ALL + 66 + + ( + - 36 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT + COUNT( ALL + + 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5211
SELECT + COUNT ( ALL + + 29 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT 11 DIV + - 58 + 89 - 62
----
27

skipif mysql # not compatible
query I rowsort label-5212
SELECT 11 / + - 58 + 89 - 62
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5213
SELECT - 54 * + - COUNT( * ), 29 + 39 AS col0
----
54
68

skipif mysql # not compatible
query II rowsort label-5213
SELECT - 54 * + - COUNT ( * ), 29 + 39 AS col0
----
54
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT 1 * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5214
SELECT 1 * - COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5215
SELECT ALL 81 DIV + 8 - - 57
----
67

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL 81 / + 8 - - 57
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5216
SELECT DISTINCT SUM( + 40 ) + + 60 AS col2, + 2 col2
----
100
2

skipif mysql # not compatible
query II rowsort label-5216
SELECT DISTINCT SUM ( + 40 ) + + 60 AS col2, + 2 col2
----
100
2

query I rowsort
SELECT ALL - 39 - 46 col0
----
-85

query I rowsort
SELECT DISTINCT - + 37 - - 56 * - 95 AS col1
----
-5357

query II rowsort
SELECT ALL - 89 * - - 11 AS col0, + 59 * - 1
----
-979
-59

query I rowsort
SELECT 59 + - 24 AS col0
----
35

query I rowsort
SELECT - 70 * + + 93 * 85 - - + 70
----
-553280

query I rowsort
SELECT 49 - + 11 + - 82
----
-44

query I rowsort
SELECT ALL 3 col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT 34 * + 86 + COUNT( * ) * 4 AS col2
----
2928

skipif mysql # not compatible
query I rowsort label-5224
SELECT 34 * + 86 + COUNT ( * ) * 4 AS col2
----
2928

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT MAX( + 82 ) * - + 22
----
-1804

skipif mysql # not compatible
query I rowsort label-5225
SELECT MAX ( + 82 ) * - + 22
----
-1804

query I rowsort
SELECT 98 + 85 AS col0
----
183

onlyif mysql # DIV for integer division: 
query II rowsort label-5227
SELECT ALL 95 AS col1, 95 DIV - 11 AS col0
----
95
-8

skipif mysql # not compatible
query II rowsort label-5227
SELECT ALL 95 AS col1, 95 / - 11 AS col0
----
95
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5228
SELECT ALL 65 DIV - 46 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL 65 / - 46 AS col1
----
-1

query I rowsort
SELECT 82 + - 12
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5230
SELECT DISTINCT COUNT( * ) * + CAST( + - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT COUNT ( * ) * + CAST ( + - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5231
SELECT MAX( + CAST( - 39 AS SIGNED ) ) + - 78 + - 19 DIV NULLIF ( 52, + COUNT( * ) ), + COALESCE ( + 98, - 22, 68 + + 15 + - CAST( 77 AS SIGNED ) * + - 98 * 60 * 41 ) + - COALESCE ( - 74, + - CAST( NULL AS SIGNED ) + + + 94 DIV 56 ) AS col2
----
-117
172

skipif mysql # not compatible
query II rowsort label-5231
SELECT MAX ( + CAST ( - 39 AS INTEGER ) ) + - 78 + - 19 / NULLIF ( 52, + COUNT ( * ) ), + COALESCE ( + 98, - 22, 68 + + 15 + - CAST ( 77 AS INTEGER ) * + - 98 * 60 * 41 ) + - COALESCE ( - 74, + - CAST ( NULL AS INTEGER ) + + + 94 / 56 ) AS col2
----
-117
172

query I rowsort
SELECT ALL + 10 * + + 66
----
660

query I rowsort
SELECT 72 + 60
----
132

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5234
SELECT ALL 23 * - 20 / + CAST( NULL AS DECIMAL ) * + 71 * 70 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL 23 * - 20 / + CAST ( NULL AS REAL ) * + 71 * 70 * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 78 * - 27 AS col1
----
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT COUNT( - ( - ( - + 21 ) ) ) + 3
----
4

skipif mysql # not compatible
query I rowsort label-5236
SELECT COUNT ( - ( - ( - + 21 ) ) ) + 3
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5237
SELECT DISTINCT COALESCE ( - ( + COUNT( * ) ), - - 52, 32 ) + + 10 AS col1, 80
----
9
80

skipif mysql # not compatible
query II rowsort label-5237
SELECT DISTINCT COALESCE ( - ( + COUNT ( * ) ), - - 52, 32 ) + + 10 AS col1, 80
----
9
80

query II rowsort
SELECT 56, 26 * + 26 AS col0
----
56
676

query I rowsort
SELECT ALL 93 + - 27
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5240
SELECT ALL ( CASE - 64 WHEN - CAST( NULL AS SIGNED ) * - 11 / + COUNT( * ) + 38 THEN 38 WHEN + 2 + MAX( ALL + - 44 ) * + - 24 THEN 92 + - - 13 + + + COUNT( * ) * - + 14 ELSE NULL END ) + + COALESCE ( - - COUNT( * ), NULLIF ( + 17, - 26 / - - 69 + 1 * 10 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL ( CASE - 64 WHEN - CAST ( NULL AS INTEGER ) * - 11 / + COUNT ( * ) + 38 THEN 38 WHEN + 2 + MAX ( ALL + - 44 ) * + - 24 THEN 92 + - - 13 + + + COUNT ( * ) * - + 14 ELSE NULL END ) + + COALESCE ( - - COUNT ( * ), NULLIF ( + 17, - 26 / - - 69 + 1 * 10 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5241
SELECT - 64 * + CASE CASE - - 84 WHEN + - 23 THEN - - COUNT( * ) - 24 END WHEN + CAST( NULL AS SIGNED ) THEN + 41 END * + 23 + + ( - - 30 ) + + COUNT( * ) + + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-5241
SELECT - 64 * + CASE CASE - - 84 WHEN + - 23 THEN - - COUNT ( * ) - 24 END WHEN + CAST ( NULL AS INTEGER ) THEN + 41 END * + 23 + + ( - - 30 ) + + COUNT ( * ) + + + 52
----
NULL

query I rowsort
SELECT DISTINCT 22 + - - 12 AS col0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5243
SELECT 48 DIV + 74 + + 98 + + 35
----
133

skipif mysql # not compatible
query I rowsort label-5243
SELECT 48 / + 74 + + 98 + + 35
----
133

query I rowsort
SELECT ALL ( - + 92 ) + - 16 - 82 AS col1
----
-190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT 95 * + CAST( - - 52 AS SIGNED ) + 76 AS col1
----
5016

skipif mysql # not compatible
query I rowsort label-5245
SELECT 95 * + CAST ( - - 52 AS INTEGER ) + 76 AS col1
----
5016

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT + + COUNT( DISTINCT - + 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5246
SELECT + + COUNT ( DISTINCT - + 27 ) AS col1
----
1

query II rowsort
SELECT DISTINCT - 46 AS col2, - 35 AS col2
----
-46
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5248
SELECT ALL - NULLIF ( - CAST( NULL AS SIGNED ), 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL - NULLIF ( - CAST ( NULL AS INTEGER ), 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT DISTINCT 97 * - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT 97 * - COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT DISTINCT - ( SUM( DISTINCT - + ( + 49 ) ) ) - 97 - + + 42 col0
----
-90

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT - ( SUM ( DISTINCT - + ( + 49 ) ) ) - 97 - + + 42 col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5251
SELECT + 64 * + 61 + 25 - 41 + - 69 + 1 DIV - + 65 * + COUNT( * ) * SUM( ALL + 35 )
----
3819

skipif mysql # not compatible
query I rowsort label-5251
SELECT + 64 * + 61 + 25 - 41 + - 69 + 1 / - + 65 * + COUNT ( * ) * SUM ( ALL + 35 )
----
3819

query II rowsort
SELECT 0, 59 + 89 + 44 AS col0
----
0
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5253
SELECT - 72 DIV + + 81 + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5253
SELECT - 72 / + + 81 + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5254
SELECT ALL + + MAX( - 30 ) DIV - 47 * - MAX( 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL + + MAX ( - 30 ) / - 47 * - MAX ( 94 ) AS col2
----
0

query I rowsort
SELECT - 11 * + 97 * + + 19 AS col1
----
-20273

onlyif mysql # DIV for integer division: 
query I rowsort label-5256
SELECT + 20 DIV 64 DIV + - 19 * - 97
----
0

skipif mysql # not compatible
query I rowsort label-5256
SELECT + 20 / 64 / + - 19 * - 97
----
0

query I rowsort
SELECT - - ( + 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT ALL ( + ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL ( + ( COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT ALL MAX( DISTINCT + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL MAX ( DISTINCT + 96 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5260
SELECT ALL MIN( DISTINCT + + CAST( + - 27 AS SIGNED ) ) col0
----
-27

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL MIN ( DISTINCT + + CAST ( + - 27 AS INTEGER ) ) col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT ALL + COUNT( * ) * + 62
----
62

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL + COUNT ( * ) * + 62
----
62

query II rowsort
SELECT 88 * + 70 AS col0, + 0 + 58
----
6160
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT 62 - + COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5263
SELECT 62 - + COUNT ( * ) AS col1
----
61

query I rowsort
SELECT 1 * 4 * - + 50
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT ALL MIN( + 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL MIN ( + 74 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT 91 * + COUNT( * ) * 69 AS col2
----
6279

skipif mysql # not compatible
query I rowsort label-5266
SELECT 91 * + COUNT ( * ) * 69 AS col2
----
6279

query I rowsort
SELECT DISTINCT ( - 78 ) * 40 * + 94 * 5
----
-1466400

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT DISTINCT MIN( - 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT MIN ( - 85 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT DISTINCT - COUNT( * ) + + 13 + - + ( - 50 ) * COUNT( 15 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT - COUNT ( * ) + + 13 + - + ( - 50 ) * COUNT ( 15 ) AS col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5270
SELECT ALL CAST( NULL AS SIGNED ) * + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL CAST ( NULL AS INTEGER ) * + 35
----
NULL

query I rowsort
SELECT ALL - 16 + + ( - + 21 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - 98 + + - COUNT( * ) + + 17 - + 70
----
-152

skipif mysql # not compatible
query I rowsort label-5272
SELECT - 98 + + - COUNT ( * ) + + 17 - + 70
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT + COUNT( * ) * - 66
----
-66

skipif mysql # not compatible
query I rowsort label-5273
SELECT + COUNT ( * ) * - 66
----
-66

query I rowsort
SELECT 11 * - 33 + - 81
----
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT MAX( - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-5275
SELECT MAX ( - 7 )
----
-7

query I rowsort
SELECT ALL + 98 * 91 - - 56 + - - 44 * - ( - 50 )
----
11174

query I rowsort
SELECT + - 45 - - COALESCE ( + CASE + + 17 WHEN - 80 THEN NULL WHEN 30 THEN - 62 * - + ( - 69 ) * - 51 - - - 63 ELSE + - 22 * 53 + - 3 END, 97 ) col1
----
-1214

query I rowsort
SELECT ALL + - 60 AS col2
----
-60

query I rowsort
SELECT ( + - 3 ) * + 82 - 14
----
-260

query I rowsort
SELECT - 73 * - - 52 * + 28 AS col0
----
-106288

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT + COUNT( * ) * - - 9 + - - 64 * 37 + - + COUNT( * ) AS col0
----
2376

skipif mysql # not compatible
query I rowsort label-5281
SELECT + COUNT ( * ) * - - 9 + - - 64 * 37 + - + COUNT ( * ) AS col0
----
2376

query I rowsort
SELECT ALL + + 26 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT DISTINCT COUNT( * ) * COALESCE ( - 86, - 75 * - 51 + COUNT( * ) * + - NULLIF ( - 47, - COUNT( * ) / - - 28 ) + - ( MAX( - - 40 ) ) + - - 6 - ( + 35 ) * - 82 * COUNT( * ) ) + + 82
----
-4

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT COUNT ( * ) * COALESCE ( - 86, - 75 * - 51 + COUNT ( * ) * + - NULLIF ( - 47, - COUNT ( * ) / - - 28 ) + - ( MAX ( - - 40 ) ) + - - 6 - ( + 35 ) * - 82 * COUNT ( * ) ) + + 82
----
-4

query I rowsort
SELECT + + 18 * NULLIF ( + 23, + 58 * + - 86 ) AS col1
----
414

query II rowsort
SELECT + 18 - - 70, 49 AS col2
----
88
49

query I rowsort
SELECT DISTINCT 88 * - 20 AS col0
----
-1760

query I rowsort
SELECT ALL 54 * 14
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT MIN( ALL + + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-5288
SELECT MIN ( ALL + + 77 )
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5289
SELECT + COUNT( * ) + + 60 + - + COUNT( * ), - 64 * - 53 AS col1
----
60
3392

skipif mysql # not compatible
query II rowsort label-5289
SELECT + COUNT ( * ) + + 60 + - + COUNT ( * ), - 64 * - 53 AS col1
----
60
3392

onlyif mysql # DIV for integer division: 
query I rowsort label-5290
SELECT - 0 DIV 63 * 94
----
0

skipif mysql # not compatible
query I rowsort label-5290
SELECT - 0 / 63 * 94
----
0

query I rowsort
SELECT + 12 + - 25 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-5292
SELECT ALL 82 + - COUNT( ALL + 65 ) AS col0, - 76 AS col0
----
81
-76

skipif mysql # not compatible
query II rowsort label-5292
SELECT ALL 82 + - COUNT ( ALL + 65 ) AS col0, - 76 AS col0
----
81
-76

query I rowsort
SELECT - ( 99 ) AS col0
----
-99

query I rowsort
SELECT + 64 + - 30
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5295
SELECT ALL - NULLIF ( + + 73, + - COUNT( * ) - 51 + + COUNT( * ) + COUNT( * ) ) + + 55 * - 46, - 5 AS col1
----
-2603
-5

skipif mysql # not compatible
query II rowsort label-5295
SELECT ALL - NULLIF ( + + 73, + - COUNT ( * ) - 51 + + COUNT ( * ) + COUNT ( * ) ) + + 55 * - 46, - 5 AS col1
----
-2603
-5

query I rowsort
SELECT + 82 * 75
----
6150

query I rowsort
SELECT - 58 + 69 col2
----
11

query I rowsort
SELECT ALL ( - + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT - 34 + + - 53 + + COUNT( - 31 )
----
-86

skipif mysql # not compatible
query I rowsort label-5299
SELECT - 34 + + - 53 + + COUNT ( - 31 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT ALL 40 + + - COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL 40 + + - COUNT ( * ) AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5301
SELECT - 10 + COUNT( * ) - 53 * - + 59 DIV - COUNT( DISTINCT + 90 ) AS col0
----
-3136

skipif mysql # not compatible
query I rowsort label-5301
SELECT - 10 + COUNT ( * ) - 53 * - + 59 / - COUNT ( DISTINCT + 90 ) AS col0
----
-3136

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ALL + 75 * + CASE - COUNT( * ) WHEN + 24 THEN 62 ELSE NULL END * + - 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL + 75 * + CASE - COUNT ( * ) WHEN + 24 THEN 62 ELSE NULL END * + - 67 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5303
SELECT 95 AS col1, 64 DIV + ( - 23 ) + + + 2 - - + COALESCE ( - - COUNT( * ), - + 67 + - 17, + + 73 * - - 4 DIV + - 99 + + COALESCE ( + 36, 44 ) DIV + 1 )
----
95
1

skipif mysql # not compatible
query II rowsort label-5303
SELECT 95 AS col1, 64 / + ( - 23 ) + + + 2 - - + COALESCE ( - - COUNT ( * ), - + 67 + - 17, + + 73 * - - 4 / + - 99 + + COALESCE ( + 36, 44 ) / + 1 )
----
95
1

query I rowsort
SELECT DISTINCT ( 40 ) AS col0
----
40

query I rowsort
SELECT DISTINCT - 3 - + 46 + + 90 AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5306
SELECT - 64 * - 34 * + - 88 * + 4 - COUNT( * ), + COUNT( * ) + + COUNT( * ) AS col0
----
-765953
2

skipif mysql # not compatible
query II rowsort label-5306
SELECT - 64 * - 34 * + - 88 * + 4 - COUNT ( * ), + COUNT ( * ) + + COUNT ( * ) AS col0
----
-765953
2

query II rowsort
SELECT ALL - 54 - - 30 * - 27, + 41 + - - 56 AS col1
----
-864
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5308
SELECT - 91 DIV + 57 col0
----
-1

skipif mysql # not compatible
query I rowsort label-5308
SELECT - 91 / + 57 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT ALL - 63 * + - SUM( - 85 )
----
-5355

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL - 63 * + - SUM ( - 85 )
----
-5355

query II rowsort
SELECT 48 AS col2, 33 + - ( + - 14 ) * - - 12 AS col1
----
48
201

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT - + CASE - 54 WHEN 76 + 79 THEN - 65 WHEN + 77 THEN + 91 ELSE NULL END / 45 + - - COUNT( * ) * + ( + 90 ) * - 6 * + 67 + + + NULLIF ( + 54, NULLIF ( + ( + 83 ), + COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT - + CASE - 54 WHEN 76 + 79 THEN - 65 WHEN + 77 THEN + 91 ELSE NULL END / 45 + - - COUNT ( * ) * + ( + 90 ) * - 6 * + 67 + + + NULLIF ( + 54, NULLIF ( + ( + 83 ), + COUNT ( * ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5312
SELECT - - 8 DIV + - 14
----
0

skipif mysql # not compatible
query I rowsort label-5312
SELECT - - 8 / + - 14
----
0

query II rowsort
SELECT ALL - ( + 81 ) * + 46 * 14 * - - 33 AS col2, + 3
----
-1721412
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT - - 97 + - COUNT( * ) - 12 + + 70 * 71
----
5054

skipif mysql # not compatible
query I rowsort label-5314
SELECT - - 97 + - COUNT ( * ) - 12 + + 70 * 71
----
5054

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5315
SELECT + MAX( ALL - 26 ) / + + 44 - + 16 - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT + MAX ( ALL - 26 ) / + + 44 - + 16 - + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT + + COUNT( * ) * 97 - 89 * - COUNT( * ) + + + 11 * + - 21
----
-45

skipif mysql # not compatible
query I rowsort label-5316
SELECT + + COUNT ( * ) * 97 - 89 * - COUNT ( * ) + + + 11 * + - 21
----
-45

query I rowsort
SELECT - + 71 * - + 1 * + 33 + - - 41 AS col1
----
2384

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT - 80 * - - 41 + - SUM( DISTINCT - 99 ) col0
----
-3181

skipif mysql # not compatible
query I rowsort label-5318
SELECT - 80 * - - 41 + - SUM ( DISTINCT - 99 ) col0
----
-3181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5319
SELECT DISTINCT 46 DIV - - 69 + - COUNT( * ) + + - 91
----
-92

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT 46 / - - 69 + - COUNT ( * ) + + - 91
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5320
SELECT ALL + 35 * + + CAST( - COUNT( - 52 ) AS SIGNED ) + + 57 * + 85 * - CAST( + - 66 AS SIGNED ) AS col0
----
319735

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL + 35 * + + CAST ( - COUNT ( - 52 ) AS INTEGER ) + + 57 * + 85 * - CAST ( + - 66 AS INTEGER ) AS col0
----
319735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5321
SELECT ALL + CAST( NULL AS SIGNED ) * 3 + + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL + CAST ( NULL AS INTEGER ) * 3 + + 46 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5322
SELECT + SUM( - + 27 ), COUNT( * ) * - 14 AS col0
----
-27
-14

skipif mysql # not compatible
query II rowsort label-5322
SELECT + SUM ( - + 27 ), COUNT ( * ) * - 14 AS col0
----
-27
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT + ( - MAX( - 73 ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-5323
SELECT + ( - MAX ( - 73 ) ) AS col1
----
73

query I rowsort
SELECT ALL 78 * + 27 + 74 * + 53 * - + 13 * - 44 * 50 + - - 87 * + 65
----
112176961

query I rowsort
SELECT 78 * 63 + 59 col1
----
4973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5326
SELECT CASE + CAST( + 63 AS DECIMAL ) WHEN + NULLIF ( + - 41, + - 35 ) * + 94 - 72 + AVG ( + 81 ) * CAST( NULL AS SIGNED ) - 90 * - 24 THEN + COUNT( * ) WHEN - COUNT( * ) THEN - 94 * - 68 - 99 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT CASE + CAST ( + 63 AS REAL ) WHEN + NULLIF ( + - 41, + - 35 ) * + 94 - 72 + AVG ( + 81 ) * CAST ( NULL AS INTEGER ) - 90 * - 24 THEN + COUNT ( * ) WHEN - COUNT ( * ) THEN - 94 * - 68 - 99 ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5327
SELECT + 88 * + 99 AS col1, - CAST( NULL AS SIGNED ) * - 82 + ( + 84 ) col2
----
8712
NULL

skipif mysql # not compatible
query II rowsort label-5327
SELECT + 88 * + 99 AS col1, - CAST ( NULL AS INTEGER ) * - 82 + ( + 84 ) col2
----
8712
NULL

query I rowsort
SELECT + 94 + + 81 AS col0
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5329
SELECT CASE CAST( NULL AS SIGNED ) WHEN + 79 + - CAST( NULL AS SIGNED ) THEN - - 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5329
SELECT CASE CAST ( NULL AS INTEGER ) WHEN + 79 + - CAST ( NULL AS INTEGER ) THEN - - 82 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5330
SELECT + ( 84 ), - 48 + 47 + - + CASE + + COALESCE ( + CASE + CAST( + 68 AS DECIMAL ) WHEN 96 THEN NULL WHEN + 79 * 73 THEN - COUNT( * ) END, - 11 / + 12 + 88 ) WHEN + - 55 THEN + - 7 * - - COUNT( * ) - - 30 - + - COUNT( * ) / + + 91 * - + ( - - MAX( DISTINCT - 46 ) ) - - 50 END + - + ( + 8 ) * + ( - + NULLIF ( - 97, 3 / - 81 + - 74 / - 67 ) ) - + - CASE + 47 WHEN + NULLIF ( - 32, - - 56 ) THEN NULL ELSE - + CASE 44 WHEN 5 THEN 36 WHEN - 64 THEN + 42 * + CAST( + 49 AS SIGNED ) ELSE NULL END / 49 END + - 76 * - SUM( 81 * 78 ) AS col1
----
84
NULL

skipif mysql # not compatible
query II rowsort label-5330
SELECT + ( 84 ), - 48 + 47 + - + CASE + + COALESCE ( + CASE + CAST ( + 68 AS REAL ) WHEN 96 THEN NULL WHEN + 79 * 73 THEN - COUNT ( * ) END, - 11 / + 12 + 88 ) WHEN + - 55 THEN + - 7 * - - COUNT ( * ) - - 30 - + - COUNT ( * ) / + + 91 * - + ( - - MAX ( DISTINCT - 46 ) ) - - 50 END + - + ( + 8 ) * + ( - + NULLIF ( - 97, 3 / - 81 + - 74 / - 67 ) ) - + - CASE + 47 WHEN + NULLIF ( - 32, - - 56 ) THEN NULL ELSE - + CASE 44 WHEN 5 THEN 36 WHEN - 64 THEN + 42 * + CAST ( + 49 AS INTEGER ) ELSE NULL END / 49 END + - 76 * - SUM ( 81 * 78 ) AS col1
----
84
NULL

query I rowsort
SELECT DISTINCT 35 * + + 39 AS col0
----
1365

query I rowsort
SELECT ALL 47 * - 74
----
-3478

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT DISTINCT 5 + - + COUNT( * ) col1
----
4

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT 5 + - + COUNT ( * ) col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT DISTINCT 87 - 56 - - + 0 * + COUNT( * ) * - CASE - - 16 WHEN - + NULLIF ( - 87, + COALESCE ( - 72, COUNT( DISTINCT + 64 ), - 19, + - 52 ) * + + 44 ) * - 20 + + + 31 / - 3 THEN + 75 * + 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT 87 - 56 - - + 0 * + COUNT ( * ) * - CASE - - 16 WHEN - + NULLIF ( - 87, + COALESCE ( - 72, COUNT ( DISTINCT + 64 ), - 19, + - 52 ) * + + 44 ) * - 20 + + + 31 / - 3 THEN + 75 * + 94 END
----
NULL

query I rowsort
SELECT DISTINCT 99 * - + 70 AS col0
----
-6930

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT 97 - - COUNT( + 55 )
----
98

skipif mysql # not compatible
query I rowsort label-5336
SELECT 97 - - COUNT ( + 55 )
----
98

query I rowsort
SELECT 32 * - 68
----
-2176

query II rowsort
SELECT ALL 78 col2, 6 + 65
----
78
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5339
SELECT 72 AS col1, + COUNT( * )
----
72
1

skipif mysql # not compatible
query II rowsort label-5339
SELECT 72 AS col1, + COUNT ( * )
----
72
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5340
SELECT 10, COUNT( * ) AS col1
----
10
1

skipif mysql # not compatible
query II rowsort label-5340
SELECT 10, COUNT ( * ) AS col1
----
10
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5341
SELECT CAST( NULL AS SIGNED ) * + 28 * - + 31 * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT CAST ( NULL AS INTEGER ) * + 28 * - + 31 * 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT DISTINCT + MIN( ALL + - 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT + MIN ( ALL + - 87 ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT - CASE 21 WHEN + - 86 THEN 66 * - 47 * AVG ( + 48 ) * 32 + 95 * - COUNT( * ) + + - 7 - 62 * + - 47 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT - CASE 21 WHEN + - 86 THEN 66 * - 47 * AVG ( + 48 ) * 32 + 95 * - COUNT ( * ) + + - 7 - 62 * + - 47 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5344
SELECT ALL COUNT( * ) AS col1, - 6 DIV + + 93 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-5344
SELECT ALL COUNT ( * ) AS col1, - 6 / + + 93 AS col0
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT 3 * MAX( - 79 )
----
-237

skipif mysql # not compatible
query I rowsort label-5345
SELECT 3 * MAX ( - 79 )
----
-237

query I rowsort
SELECT + 98 * + 25
----
2450

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT + COUNT( * ) + - + NULLIF ( - - COUNT( * ), - 29 + - 97 - + 98 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5347
SELECT + COUNT ( * ) + - + NULLIF ( - - COUNT ( * ), - 29 + - 97 - + 98 ) AS col0
----
0

query I rowsort
SELECT + 55 + + 11 * - + 4 col1
----
11

query I rowsort
SELECT - 64 * + - 51
----
3264

query II rowsort
SELECT ALL - - 8 AS col0, 16 + - + 54 AS col0
----
8
-38

query I rowsort
SELECT ALL 47 + - + 28 * + + 21 AS col1
----
-541

query I rowsort
SELECT DISTINCT - ( - 89 ) AS col2
----
89

query I rowsort
SELECT DISTINCT + + NULLIF ( 37, - ( + 49 ) ) + - + 0 + + 59 + + 14
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT + COUNT( ALL + 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5354
SELECT + COUNT ( ALL + 38 ) AS col0
----
1

query I rowsort
SELECT 24 * - 8 + - 79 + - 83 - 89 col0
----
-443

query II rowsort
SELECT + + 44 col1, - ( + 19 )
----
44
-19

query I rowsort
SELECT + COALESCE ( - 95, NULLIF ( - 95, - 5 ), - 15 + 72 - 2 )
----
-95

query II rowsort
SELECT ALL - 31, 56 AS col0
----
-31
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5359
SELECT + 62 AS col2, - 50, 78 + 94 + 20 * + COUNT( * ) DIV + - 80 AS col1
----
62
-50
172

skipif mysql # not compatible
query III rowsort label-5359
SELECT + 62 AS col2, - 50, 78 + 94 + 20 * + COUNT ( * ) / + - 80 AS col1
----
62
-50
172

query II rowsort
SELECT 11 * + - 43, ( 69 ) AS col2
----
-473
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5361
SELECT 17 DIV + 19 * - - 47
----
0

skipif mysql # not compatible
query I rowsort label-5361
SELECT 17 / + 19 * - - 47
----
0

query I rowsort
SELECT ALL - 47 + 84
----
37

query I rowsort
SELECT 1 * 72 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT DISTINCT - 2 + + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT - 2 + + + COUNT ( * )
----
-1

query I rowsort
SELECT 87 * - ( + - 87 ) AS col2
----
7569

query II rowsort
SELECT 97 + + 81 AS col1, + 68 * ( - - 24 ) AS col1
----
178
1632

query I rowsort
SELECT 21 * 34 + - + 81 AS col2
----
633

query I rowsort
SELECT 42 - - 96
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT 13 * CASE - COUNT( * ) WHEN + 93 THEN NULL WHEN - 85 * - 8 + + - 16 THEN 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT 13 * CASE - COUNT ( * ) WHEN + 93 THEN NULL WHEN - 85 * - 8 + + - 16 THEN 20 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT COUNT( * ) + 1 * + 31 - - 40 + + ( - 98 )
----
-26

skipif mysql # not compatible
query I rowsort label-5370
SELECT COUNT ( * ) + 1 * + 31 - - 40 + + ( - 98 )
----
-26

query I rowsort
SELECT ( + 95 ) - 86
----
9

query I rowsort
SELECT DISTINCT 46 * 16 AS col1
----
736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5373
SELECT 25 + - 9 * 79 - + + 33 + + NULLIF ( + + COUNT( * ), + - 5 * - 66 ) DIV + NULLIF ( - 31, - - 53 ) DIV - 15 AS col1
----
-719

skipif mysql # not compatible
query I rowsort label-5373
SELECT 25 + - 9 * 79 - + + 33 + + NULLIF ( + + COUNT ( * ), + - 5 * - 66 ) / + NULLIF ( - 31, - - 53 ) / - 15 AS col1
----
-719

query I rowsort
SELECT 32 + - 92 * + NULLIF ( - 49, + 10 )
----
4540

onlyif mysql # DIV for integer division: 
query I rowsort label-5375
SELECT ALL 80 * + ( - + 36 ) DIV 2 col0
----
-1440

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL 80 * + ( - + 36 ) / 2 col0
----
-1440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5376
SELECT DISTINCT - ( + - 91 ) * - COUNT( * ) col2, + 12 - + ( - 4 ) - - 5 + + ( - CAST( NULL AS SIGNED ) ) + - 18 * + 24 AS col1
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-5376
SELECT DISTINCT - ( + - 91 ) * - COUNT ( * ) col2, + 12 - + ( - 4 ) - - 5 + + ( - CAST ( NULL AS INTEGER ) ) + - 18 * + 24 AS col1
----
-91
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + 1, - 16 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5378
SELECT ALL ( + CASE + 84 WHEN + 99 - + 97 THEN - 31 ELSE NULL END ) * - COUNT( * ) * - COUNT( * ) * - CAST( NULL AS SIGNED ) * + ( COUNT( * ) ) / COUNT( DISTINCT + 58 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL ( + CASE + 84 WHEN + 99 - + 97 THEN - 31 ELSE NULL END ) * - COUNT ( * ) * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + ( COUNT ( * ) ) / COUNT ( DISTINCT + 58 ) AS col1
----
NULL

query I rowsort
SELECT 49 + 75 AS col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT - COALESCE ( - - 32, + - 47 + - SUM( - - 35 ) * + 79 ) * 89
----
-2848

skipif mysql # not compatible
query I rowsort label-5380
SELECT - COALESCE ( - - 32, + - 47 + - SUM ( - - 35 ) * + 79 ) * 89
----
-2848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT 8 + 67 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT 8 + 67 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5382
SELECT + 48 DIV - + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-5382
SELECT + 48 / - + COUNT ( * )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT DISTINCT 97 DIV + - NULLIF ( 89, + 41 ) + - + 79 * + - 27 * - NULLIF ( 65, + 96 ) AS col1
----
-138646

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT 97 / + - NULLIF ( 89, + 41 ) + - + 79 * + - 27 * - NULLIF ( 65, + 96 ) AS col1
----
-138646

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL 36 + - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL 36 + - COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT 18 + + COALESCE ( - COUNT( * ), + 83 * + + MIN( - 8 ) + COUNT( * ) ) - - COUNT( * ) + + COUNT( * ) + 98 + COUNT( * ) * - 59 * - 26 + + COALESCE ( + MIN( DISTINCT + - 4 ), + 5 ) * - 75
----
1951

skipif mysql # not compatible
query I rowsort label-5385
SELECT 18 + + COALESCE ( - COUNT ( * ), + 83 * + + MIN ( - 8 ) + COUNT ( * ) ) - - COUNT ( * ) + + COUNT ( * ) + 98 + COUNT ( * ) * - 59 * - 26 + + COALESCE ( + MIN ( DISTINCT + - 4 ), + 5 ) * - 75
----
1951

query II rowsort
SELECT ALL - ( - 8 ), 71 col1
----
8
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT DISTINCT - COUNT( * ) * - ( - COUNT( * ) ) + 81
----
80

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT - COUNT ( * ) * - ( - COUNT ( * ) ) + 81
----
80

query I rowsort
SELECT ALL + 5 * + 20 * - + 35 + - 60 + 2 AS col0
----
-3558

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT 97 + 93 + COUNT( ALL + 50 )
----
191

skipif mysql # not compatible
query I rowsort label-5389
SELECT 97 + 93 + COUNT ( ALL + 50 )
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT - 65 + + COUNT( * ) + - 4
----
-68

skipif mysql # not compatible
query I rowsort label-5390
SELECT - 65 + + COUNT ( * ) + - 4
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-5391
SELECT + 48 + + 33 * 54 DIV 35 + - + 84
----
14

skipif mysql # not compatible
query I rowsort label-5391
SELECT + 48 + + 33 * 54 / 35 + - + 84
----
14

query I rowsort
SELECT ALL 71 * + + 95
----
6745

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT DISTINCT 89 * - COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT 89 * - COUNT ( * ) AS col0
----
-89

query I rowsort
SELECT ALL + 72 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT - 59 + COUNT( * ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-5395
SELECT - 59 + COUNT ( * ) AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5396
SELECT ALL 13 * - 93 - - 26 + + 6 * + MAX( + 96 ) * 55 + + CASE - 97 WHEN - + 65 * - CAST( + 62 AS SIGNED ) + 34 + - COUNT( * ) THEN + COUNT( * ) - 45 * 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL 13 * - 93 - - 26 + + 6 * + MAX ( + 96 ) * 55 + + CASE - 97 WHEN - + 65 * - CAST ( + 62 AS INTEGER ) + 34 + - COUNT ( * ) THEN + COUNT ( * ) - 45 * 27 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT + NULLIF ( MIN( + - 31 ), - 24 * + 61 + - 51 ) * + + 13
----
-403

skipif mysql # not compatible
query I rowsort label-5397
SELECT + NULLIF ( MIN ( + - 31 ), - 24 * + 61 + - 51 ) * + + 13
----
-403

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT - 88 * - - MIN( - - 64 )
----
-5632

skipif mysql # not compatible
query I rowsort label-5398
SELECT - 88 * - - MIN ( - - 64 )
----
-5632

onlyif mysql # aggregate syntax: 
query II rowsort label-5399
SELECT COUNT( * ) AS col2, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-5399
SELECT COUNT ( * ) AS col2, COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT - 56 * + ( - - 78 ) + + 31
----
-4337

query I rowsort
SELECT ALL + 16 * + 46 * 0 * - 66
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5402
SELECT - 81 + - - COUNT( * ) * + 63 DIV - + 53 * 85 DIV - - MIN( ALL + 80 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-5402
SELECT - 81 + - - COUNT ( * ) * + 63 / - + 53 * 85 / - - MIN ( ALL + 80 ) AS col0
----
-82

query I rowsort
SELECT - 93 * 94
----
-8742

query I rowsort
SELECT - 52 * + + 27 col0
----
-1404

query II rowsort
SELECT - 78, 17 AS col2
----
-78
17

query I rowsort
SELECT ALL + NULLIF ( + + 13, + 7 ) * - 78
----
-1014

onlyif mysql # DIV for integer division: 
query I rowsort label-5407
SELECT DISTINCT 98 DIV + 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT 98 / + 60 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5408
SELECT DISTINCT CASE 7 WHEN - 69 THEN ( + + CASE - COUNT( * ) WHEN - 35 * + 78 * - + 68 + CAST( + 5 AS SIGNED ) THEN - - ( 28 ) WHEN COALESCE ( - + 38, + + AVG ( ALL - 31 ) + - CAST( NULL AS SIGNED ) * - + 25, + 0 ) THEN + + 3 / - SUM( + - 2 ) + + 6 + - 24 + + MIN( ALL + 24 ) * - 97 - + COUNT( DISTINCT - 76 ) ELSE 53 * + CAST( NULL AS SIGNED ) * - 27 - + + 95 + - COALESCE ( + - 77, COALESCE ( - + 71, - 59 / + - 2 ), - + COUNT( * ) * + 0 + + ( + CAST( + 52 AS SIGNED ) ) + + COUNT( * ) + 20 ) * 42 * - 45 END ) - - 9 WHEN + CASE - ( 3 ) WHEN + 70 THEN 68 ELSE NULL END THEN + CAST( NULL AS SIGNED ) * 27 + - 99 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT CASE 7 WHEN - 69 THEN ( + + CASE - COUNT ( * ) WHEN - 35 * + 78 * - + 68 + CAST ( + 5 AS INTEGER ) THEN - - ( 28 ) WHEN COALESCE ( - + 38, + + AVG ( ALL - 31 ) + - CAST ( NULL AS INTEGER ) * - + 25, + 0 ) THEN + + 3 / - SUM ( + - 2 ) + + 6 + - 24 + + MIN ( ALL + 24 ) * - 97 - + COUNT ( DISTINCT - 76 ) ELSE 53 * + CAST ( NULL AS INTEGER ) * - 27 - + + 95 + - COALESCE ( + - 77, COALESCE ( - + 71, - 59 / + - 2 ), - + COUNT ( * ) * + 0 + + ( + CAST ( + 52 AS INTEGER ) ) + + COUNT ( * ) + 20 ) * 42 * - 45 END ) - - 9 WHEN + CASE - ( 3 ) WHEN + 70 THEN 68 ELSE NULL END THEN + CAST ( NULL AS INTEGER ) * 27 + - 99 END AS col0
----
NULL

query I rowsort
SELECT ALL - - 94 + - 52 * + + 41 * + - 32 AS col2
----
68318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5410
SELECT - CAST( NULL AS SIGNED ) - ( + 78 ) / - 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5410
SELECT - CAST ( NULL AS INTEGER ) - ( + 78 ) / - 99 AS col0
----
NULL

query I rowsort
SELECT - 24 - + - 96 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT + + 4 + + 37 * + MAX( 38 )
----
1410

skipif mysql # not compatible
query I rowsort label-5412
SELECT + + 4 + + 37 * + MAX ( 38 )
----
1410

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT ALL + - 2 + CASE 56 WHEN + MIN( DISTINCT 80 ) THEN - + 25 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL + - 2 + CASE 56 WHEN + MIN ( DISTINCT 80 ) THEN - + 25 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 22 col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT DISTINCT + + 52 + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT + + 52 + COUNT ( * )
----
53

query I rowsort
SELECT + 69 + - 93 AS col0
----
-24

query I rowsort
SELECT + - 85 - - NULLIF ( - + 21, ( - - 42 ) + + + 89 + + + ( 33 ) ) + - 47
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT ALL + 79 * 6 * COUNT( * ) * - - 43 AS col2
----
20382

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL + 79 * 6 * COUNT ( * ) * - - 43 AS col2
----
20382

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT DISTINCT - MIN( - - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT - MIN ( - - 10 )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5420
SELECT - COALESCE ( 77, + - 31 + - + CAST( ( NULLIF ( 73, - AVG ( ALL + - 95 ) ) ) AS SIGNED ) + 32 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-5420
SELECT - COALESCE ( 77, + - 31 + - + CAST ( ( NULLIF ( 73, - AVG ( ALL + - 95 ) ) ) AS INTEGER ) + 32 ) AS col2
----
-77

query I rowsort
SELECT + 9 * 2 AS col2
----
18

query I rowsort
SELECT + + 2 + + 40 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5423
SELECT 27 DIV - - CAST( 92 AS SIGNED ) + + 50 col2
----
50

skipif mysql # not compatible
query I rowsort label-5423
SELECT 27 / - - CAST ( 92 AS INTEGER ) + + 50 col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5424
SELECT ALL 35 / - 6 - + CAST( NULL AS SIGNED ) + - + COUNT( * ) * - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL 35 / - 6 - + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * - 81 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5425
SELECT + + 58 * CAST( NULL AS SIGNED ) * 1 - - - MAX( 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5425
SELECT + + 58 * CAST ( NULL AS INTEGER ) * 1 - - - MAX ( 85 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5426
SELECT + 85 DIV COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-5426
SELECT + 85 / COUNT ( * )
----
85

query I rowsort
SELECT + ( - 94 ) AS col0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5428
SELECT DISTINCT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ), ( 71 ) * 76 * 42 * - 78 AS col0
----
NULL
-17677296

skipif mysql # not compatible
query II rowsort label-5428
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ), ( 71 ) * 76 * 42 * - 78 AS col0
----
NULL
-17677296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5429
SELECT + 18 + 33 * - - NULLIF ( - 7, - - 11 + + CAST( + 30 AS SIGNED ) - - NULLIF ( - SUM( ALL + 97 ), 77 + 64 + + - 24 ) / - COUNT( * ) + - 29 ) AS col1
----
-213

skipif mysql # not compatible
query I rowsort label-5429
SELECT + 18 + 33 * - - NULLIF ( - 7, - - 11 + + CAST ( + 30 AS INTEGER ) - - NULLIF ( - SUM ( ALL + 97 ), 77 + 64 + + - 24 ) / - COUNT ( * ) + - 29 ) AS col1
----
-213

onlyif mysql # DIV for integer division: 
query I rowsort label-5430
SELECT ALL NULLIF ( 40, 68 ) DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL NULLIF ( 40, 68 ) / + 94
----
0

query I rowsort
SELECT ( ( + - COALESCE ( - 14, + - 52 ) ) ) AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5432
SELECT + NULLIF ( COUNT( * ), 0 ) * - 37 DIV + - 42
----
0

skipif mysql # not compatible
query I rowsort label-5432
SELECT + NULLIF ( COUNT ( * ), 0 ) * - 37 / + - 42
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5433
SELECT ( CASE - 24 WHEN - 73 THEN - 67 * + 7 / - - ( + - COALESCE ( COUNT( * ), 26, + 11 * - 0 ) ) WHEN CAST( NULL AS SIGNED ) * COUNT( * ) + - + 10 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5433
SELECT ( CASE - 24 WHEN - 73 THEN - 67 * + 7 / - - ( + - COALESCE ( COUNT ( * ), 26, + 11 * - 0 ) ) WHEN CAST ( NULL AS INTEGER ) * COUNT ( * ) + - + 10 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT ALL COUNT( * ) * + 20
----
20

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL COUNT ( * ) * + 20
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5435
SELECT + 65 * + NULLIF ( 62, + NULLIF ( + 33, 2 + - 55 ) ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT + 65 * + NULLIF ( 62, + NULLIF ( + 33, 2 + - 55 ) ) - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 29 * + 55 AS col2
----
-1595

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT - SUM( DISTINCT + 99 ) * - - 50
----
-4950

skipif mysql # not compatible
query I rowsort label-5437
SELECT - SUM ( DISTINCT + 99 ) * - - 50
----
-4950

query I rowsort
SELECT ( + NULLIF ( - 32, - AVG ( 85 ) ) )
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-5439
SELECT ALL MIN( DISTINCT 99 ) * - - COUNT( - + 1 ) AS col1, - 57
----
99
-57

skipif mysql # not compatible
query II rowsort label-5439
SELECT ALL MIN ( DISTINCT 99 ) * - - COUNT ( - + 1 ) AS col1, - 57
----
99
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5440
SELECT DISTINCT NULLIF ( - + CAST( NULL AS SIGNED ), 42 ) * + + COUNT( ALL + + 47 ) - - + COUNT( - - 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT NULLIF ( - + CAST ( NULL AS INTEGER ), 42 ) * + + COUNT ( ALL + + 47 ) - - + COUNT ( - - 6 ) AS col2
----
NULL

query I rowsort
SELECT + 28 * + - 2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT DISTINCT + 60 * - - 83 + - - COUNT( * ) + - 21
----
4960

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT + 60 * - - 83 + - - COUNT ( * ) + - 21
----
4960

query I rowsort
SELECT + 33 + - - 90 col2
----
123

query I rowsort
SELECT + 10 + - 54 * + - 33
----
1792

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5445
SELECT COALESCE ( + 26, + CAST( NULL AS SIGNED ) + + - 96 ) AS col0, - 43
----
26
-43

skipif mysql # not compatible
query II rowsort label-5445
SELECT COALESCE ( + 26, + CAST ( NULL AS INTEGER ) + + - 96 ) AS col0, - 43
----
26
-43

query I rowsort
SELECT - 59 * 38 + - CASE - 51 WHEN - 95 / 52 THEN - - 86 END
----
NULL

query I rowsort
SELECT DISTINCT + 86 * + - 50 col1
----
-4300

query I rowsort
SELECT DISTINCT - + 87 * 8 AS col2
----
-696

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5449
SELECT ALL - + 54 DIV - 26, + SUM( + - 60 ) + + 27 AS col1
----
2
-33

skipif mysql # not compatible
query II rowsort label-5449
SELECT ALL - + 54 / - 26, + SUM ( + - 60 ) + + 27 AS col1
----
2
-33

query I rowsort
SELECT - NULLIF ( - - 47, - 49 ) AS col2
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5451
SELECT DISTINCT - 92 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT - 92 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT ALL - - SUM( ALL - 76 ) + + - 93 AS col0
----
-169

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL - - SUM ( ALL - 76 ) + + - 93 AS col0
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT - - COUNT( DISTINCT + NULLIF ( 49, - ( + ( + 81 ) ) ) ) * + 6
----
6

skipif mysql # not compatible
query I rowsort label-5453
SELECT - - COUNT ( DISTINCT + NULLIF ( 49, - ( + ( + 81 ) ) ) ) * + 6
----
6

query I rowsort
SELECT + + 73 + ( + - 89 ) AS col0
----
-16

query I rowsort
SELECT ALL + ( 44 ) AS col1
----
44

query I rowsort
SELECT ALL - 98 - - 2 - COALESCE ( - 86, + 39, - 98 ) + + 34 + - - 26 * - - COALESCE ( - 55, + - 55 ) AS col0
----
-1406

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT DISTINCT NULLIF ( + + 90, + CASE COUNT( 39 ) WHEN + COUNT( * ) * ( + 18 ) THEN NULL WHEN COALESCE ( - 91, 86 ) * 22 + - 52 THEN NULL ELSE 29 * - 63 * - CASE - + 59 WHEN COUNT( * ) THEN + + 71 END + - CASE + 27 WHEN 94 THEN + 36 + + 84 WHEN - + 57 + + SUM( - - 17 ) - - + COUNT( * ) * + 24 * - MAX( DISTINCT + ( 72 ) ) * COALESCE ( - 59, + 42 ) + 53 THEN - - 58 * + 89 * + - COUNT( * ) * 77 ELSE NULL END END + - + COUNT( * ) )
----
90

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT NULLIF ( + + 90, + CASE COUNT ( 39 ) WHEN + COUNT ( * ) * ( + 18 ) THEN NULL WHEN COALESCE ( - 91, 86 ) * 22 + - 52 THEN NULL ELSE 29 * - 63 * - CASE - + 59 WHEN COUNT ( * ) THEN + + 71 END + - CASE + 27 WHEN 94 THEN + 36 + + 84 WHEN - + 57 + + SUM ( - - 17 ) - - + COUNT ( * ) * + 24 * - MAX ( DISTINCT + ( 72 ) ) * COALESCE ( - 59, + 42 ) + 53 THEN - - 58 * + 89 * + - COUNT ( * ) * 77 ELSE NULL END END + - + COUNT ( * ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT ALL NULLIF ( + - 5, - 74 ) - - - COUNT( * ) + 92 * + 79
----
7262

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL NULLIF ( + - 5, - 74 ) - - - COUNT ( * ) + 92 * + 79
----
7262

query I rowsort
SELECT - 74 * 89 AS col1
----
-6586

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT DISTINCT - 85 * COUNT( * ) * COUNT( DISTINCT + + 20 ) col1
----
-85

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT - 85 * COUNT ( * ) * COUNT ( DISTINCT + + 20 ) col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL - MIN( DISTINCT + 17 ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL - MIN ( DISTINCT + 17 ) col1
----
-17

query I rowsort
SELECT ( - 55 ) * + - 45
----
2475

query II rowsort
SELECT - 99 * + + 51 + - 94 AS col0, 93 AS col0
----
-5143
93

query I rowsort
SELECT 16 * + + ( + 51 ) AS col1
----
816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5465
SELECT - ( - + 87 ) / 97 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5465
SELECT - ( - + 87 ) / 97 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5466
SELECT ALL 34 DIV - 48
----
0

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL 34 / - 48
----
0

query I rowsort
SELECT ALL 58 * + + 43
----
2494

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT ALL 16 * - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL 16 * - COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT + 60 * SUM( + 9 ) + + 14 + - - 72
----
626

skipif mysql # not compatible
query I rowsort label-5469
SELECT + 60 * SUM ( + 9 ) + + 14 + - - 72
----
626

query I rowsort
SELECT ALL ( - + 12 ) + - 51 AS col1
----
-63

query II rowsort
SELECT 87 AS col1, + 76
----
87
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5472
SELECT ( + CAST( NULL AS DECIMAL ) ) * + 41 + - + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5472
SELECT ( + CAST ( NULL AS REAL ) ) * + 41 + - + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT 76 + 97
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5474
SELECT ALL - + COUNT( ALL CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL - + COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
0

query II rowsort
SELECT ALL + - 27 + - - 24 + - 45 + 38 + 41 * + 51 AS col1, + 89 + + - 56
----
2081
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT MAX( - 43 ) * + 42 col1
----
-1806

skipif mysql # not compatible
query I rowsort label-5476
SELECT MAX ( - 43 ) * + 42 col1
----
-1806

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT 72 * + 96 * 76 * + 43 AS col2
----
22588416

query I rowsort
SELECT + 64 * - + 25
----
-1600

query I rowsort
SELECT - - 31 col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5481
SELECT + 8 - + - CAST( NULL AS SIGNED ) + - 68 * + 9 * - 73 DIV - 5, 26 DIV 18 AS col2, - + 77 * + CASE + 99 WHEN 6 * - 83 * 37 * 26 * COUNT( DISTINCT - 39 ) + + + 82 * 49 THEN NULL ELSE 33 END AS col0
----
NULL
1
-2541

skipif mysql # not compatible
query III rowsort label-5481
SELECT + 8 - + - CAST ( NULL AS INTEGER ) + - 68 * + 9 * - 73 / - 5, 26 / 18 AS col2, - + 77 * + CASE + 99 WHEN 6 * - 83 * 37 * 26 * COUNT ( DISTINCT - 39 ) + + + 82 * 49 THEN NULL ELSE 33 END AS col0
----
NULL
1
-2541

query II rowsort
SELECT - 63 col0, 1
----
-63
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5483
SELECT 64 - - + 80 - COUNT( * ) + - + COUNT( * ) DIV + 78 * + 95 * + 97 * + 65
----
143

skipif mysql # not compatible
query I rowsort label-5483
SELECT 64 - - + 80 - COUNT ( * ) + - + COUNT ( * ) / + 78 * + 95 * + 97 * + 65
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-5484
SELECT - COUNT( * ) * - 64 * - + 4, 6 * - 19 + - MIN( 41 ) * + 10 AS col1
----
-256
-524

skipif mysql # not compatible
query II rowsort label-5484
SELECT - COUNT ( * ) * - 64 * - + 4, 6 * - 19 + - MIN ( 41 ) * + 10 AS col1
----
-256
-524

query I rowsort
SELECT DISTINCT + - 80 * + - 64
----
5120

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT DISTINCT - + 18 * COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT - + 18 * COUNT ( * ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT MAX( DISTINCT + - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-5487
SELECT MAX ( DISTINCT + - 38 )
----
-38

query I rowsort
SELECT ALL + 45 * - 2 AS col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5489
SELECT 91 DIV - 52 * + ( COALESCE ( - - COUNT( * ), 99 * - ( - 91 ) + - - 59, + + 5 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5489
SELECT 91 / - 52 * + ( COALESCE ( - - COUNT ( * ), 99 * - ( - 91 ) + - - 59, + + 5 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5490
SELECT 26 DIV + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-5490
SELECT 26 / + COUNT ( * )
----
26

query I rowsort
SELECT 0 + - 37 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT NULLIF ( - + COUNT( * ), 4 ) + + + 1 - - - 92
----
-92

skipif mysql # not compatible
query I rowsort label-5492
SELECT NULLIF ( - + COUNT ( * ), 4 ) + + + 1 - - - 92
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5493
SELECT COUNT( * ) AS col0, 22 * + + 35 * + 56
----
1
43120

skipif mysql # not compatible
query II rowsort label-5493
SELECT COUNT ( * ) AS col0, 22 * + + 35 * + 56
----
1
43120

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT ALL - COUNT( * ) + - 25 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL - COUNT ( * ) + - 25 AS col1
----
-26

query I rowsort
SELECT DISTINCT 82 * - 93
----
-7626

query I rowsort
SELECT DISTINCT - ( ( - 9 ) ) + 61 + + 27 col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5497
SELECT ALL + COUNT( - + 74 ) + - COALESCE ( COUNT( * ), - + 70 * + COUNT( * ) * + 61 ) DIV + - 87 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL + COUNT ( - + 74 ) + - COALESCE ( COUNT ( * ), - + 70 * + COUNT ( * ) * + 61 ) / + - 87 AS col2
----
1

query I rowsort
SELECT 22 - - 19 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT SUM( DISTINCT + 7 ) col1
----
7

skipif mysql # not compatible
query I rowsort label-5499
SELECT SUM ( DISTINCT + 7 ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT DISTINCT 16 + MIN( 57 ) * ( - - ( 60 ) ) AS col2
----
3436

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT 16 + MIN ( 57 ) * ( - - ( 60 ) ) AS col2
----
3436

query I rowsort
SELECT ALL 74 + 63 * 39
----
2531

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT COUNT( DISTINCT - 63 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5502
SELECT COUNT ( DISTINCT - 63 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5503
SELECT DISTINCT - CAST( - - CAST( - + COUNT( ALL 50 ) AS SIGNED ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT - CAST ( - - CAST ( - + COUNT ( ALL 50 ) AS INTEGER ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL - MIN( ALL + 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL - MIN ( ALL + 73 ) AS col0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5505
SELECT DISTINCT - - 45 DIV ( + 23 ) + + 84 + - 73 * - 83
----
6144

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT - - 45 / ( + 23 ) + + 84 + - 73 * - 83
----
6144

query I rowsort
SELECT + 40 + 29
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT - ( - COUNT( * ) ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5507
SELECT - ( - COUNT ( * ) ) * + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT 87 + + COUNT( * ) + - 20
----
68

skipif mysql # not compatible
query I rowsort label-5508
SELECT 87 + + COUNT ( * ) + - 20
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5509
SELECT + 12 * + 6 + - + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT + 12 * + 6 + - + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT 77 - + 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5511
SELECT + 20 + + + 28 AS col1, + CASE - 77 WHEN + + COUNT( * ) * - + 85 - - CASE CAST( 50 AS SIGNED ) WHEN - 5 THEN COALESCE ( 30, - 78 ) END + - COUNT( * ) * + - 35 THEN - + 34 WHEN + 47 * - - 69 THEN - 80 + + COUNT( * ) + + + 32 + ( + 19 ) ELSE - COUNT( * ) END * + - 72
----
48
72

skipif mysql # not compatible
query II rowsort label-5511
SELECT + 20 + + + 28 AS col1, + CASE - 77 WHEN + + COUNT ( * ) * - + 85 - - CASE CAST ( 50 AS INTEGER ) WHEN - 5 THEN COALESCE ( 30, - 78 ) END + - COUNT ( * ) * + - 35 THEN - + 34 WHEN + 47 * - - 69 THEN - 80 + + COUNT ( * ) + + + 32 + ( + 19 ) ELSE - COUNT ( * ) END * + - 72
----
48
72

query I rowsort
SELECT + + 71 + + ( + 24 )
----
95

query I rowsort
SELECT DISTINCT - 7 * - 19 col0
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ALL MIN( 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL MIN ( 0 ) AS col0
----
0

query I rowsort
SELECT + ( - 8 ) * - + 96 * - 57 AS col2
----
-43776

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT + + COUNT( * ) + + + 79
----
80

skipif mysql # not compatible
query I rowsort label-5516
SELECT + + COUNT ( * ) + + + 79
----
80

query II rowsort
SELECT ALL 37, 74 AS col0
----
37
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5518
SELECT + COUNT( * ) + - 20 DIV 56 * - - 33 AS col2, + ( - - COUNT( * ) ) DIV - CAST( NULL AS DECIMAL ) * 6 - + MIN( - - 43 ) + 16 + - 2 * - 54 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5518
SELECT + COUNT ( * ) + - 20 / 56 * - - 33 AS col2, + ( - - COUNT ( * ) ) / - CAST ( NULL AS REAL ) * 6 - + MIN ( - - 43 ) + 16 + - 2 * - 54 AS col2
----
1
NULL

query I rowsort
SELECT + 0 + - 63 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-5520
SELECT - 6 * COUNT( * ) AS col1, - COUNT( * ) * - 49 AS col1
----
-6
49

skipif mysql # not compatible
query II rowsort label-5520
SELECT - 6 * COUNT ( * ) AS col1, - COUNT ( * ) * - 49 AS col1
----
-6
49

query I rowsort
SELECT - CASE 6 WHEN - 94 + + ( + ( - 56 ) ) THEN - 46 END + - 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5522
SELECT - CASE 66 WHEN - CAST( NULL AS SIGNED ) THEN COALESCE ( + 8, + 17 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT - CASE 66 WHEN - CAST ( NULL AS INTEGER ) THEN COALESCE ( + 8, + 17 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 17 + - 19 AS col2
----
-2

query I rowsort
SELECT - 47 + + - CASE 30 WHEN - 51 * - COALESCE ( + CASE 93 WHEN + 11 THEN NULL ELSE 39 END, - 35 + - - 91 ) THEN + 65 WHEN + 44 THEN NULL END + + 85 AS col1
----
NULL

query I rowsort
SELECT ALL + 71 * - 89 AS col0
----
-6319

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ( CASE 57 WHEN - + 10 - + COUNT( * ) * ( 98 ) THEN - 74 + 39 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT ( CASE 57 WHEN - + 10 - + COUNT ( * ) * ( 98 ) THEN - 74 + 39 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5527
SELECT + 11 + + CAST( NULL AS SIGNED ) AS col0, 47
----
NULL
47

skipif mysql # not compatible
query II rowsort label-5527
SELECT + 11 + + CAST ( NULL AS INTEGER ) AS col0, 47
----
NULL
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5528
SELECT 26 / - COUNT( * ) - + + CAST( NULL AS SIGNED ) + + NULLIF ( - + 51, + + 93 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT 26 / - COUNT ( * ) - + + CAST ( NULL AS INTEGER ) + + NULLIF ( - + 51, + + 93 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5529
SELECT DISTINCT COUNT( * ) * + 49 DIV + - 72 + - 57 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT COUNT ( * ) * + 49 / + - 72 + - 57 AS col0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT COALESCE ( + + ( - 87 ), 25, 94 DIV + 76 - + 65 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-5530
SELECT COALESCE ( + + ( - 87 ), 25, 94 / + 76 - + 65 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT ALL + CASE + 2 WHEN SUM( - 80 ) THEN NULL ELSE - 92 * + 67 + - - 78 END
----
-6086

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL + CASE + 2 WHEN SUM ( - 80 ) THEN NULL ELSE - 92 * + 67 + - - 78 END
----
-6086

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT DISTINCT - MIN( ALL 20 ) * - ( - - 8 ) - + - ( + + 91 )
----
251

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT - MIN ( ALL 20 ) * - ( - - 8 ) - + - ( + + 91 )
----
251

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT - 15 * COUNT( 7 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-5533
SELECT - 15 * COUNT ( 7 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-5534
SELECT - COUNT( * ) + - 61, 55 + ( + - 30 ) * + 21 AS col0
----
-62
-575

skipif mysql # not compatible
query II rowsort label-5534
SELECT - COUNT ( * ) + - 61, 55 + ( + - 30 ) * + 21 AS col0
----
-62
-575

query I rowsort
SELECT ALL + ( + NULLIF ( + 88, - 7 ) )
----
88

query I rowsort
SELECT + 64 * - 44 + + 66 AS col1
----
-2750

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5537
SELECT DISTINCT - CAST( - 59 AS SIGNED ) * + + 81 * CASE 90 WHEN - + 40 + + 71 + - - 46 * + 74 THEN CAST( NULL AS DECIMAL ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT - CAST ( - 59 AS INTEGER ) * + + 81 * CASE 90 WHEN - + 40 + + 71 + - - 46 * + 74 THEN CAST ( NULL AS REAL ) END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5538
SELECT - - 84 * ( + - 41 ) + - 66 DIV + + 93 + - - 77 * + COUNT( * )
----
-3367

skipif mysql # not compatible
query I rowsort label-5538
SELECT - - 84 * ( + - 41 ) + - 66 / + + 93 + - - 77 * + COUNT ( * )
----
-3367

query I rowsort
SELECT ALL + - 21 col0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5540
SELECT - + 74 DIV + - 44 + + + 9 + - 16 * + 47 * + 96 AS col1
----
-72182

skipif mysql # not compatible
query I rowsort label-5540
SELECT - + 74 / + - 44 + + + 9 + - 16 * + 47 * + 96 AS col1
----
-72182

onlyif mysql # DIV for integer division: 
query I rowsort label-5541
SELECT ALL + 19 DIV + - ( + 92 )
----
0

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL + 19 / + - ( + 92 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5542
SELECT + 49 DIV 17 * 91 + + 2
----
184

skipif mysql # not compatible
query I rowsort label-5542
SELECT + 49 / 17 * 91 + + 2
----
184

query I rowsort
SELECT DISTINCT + 86 * - ( - - 99 ) AS col2
----
-8514

query II rowsort
SELECT ALL 37 + + - 16, 53 AS col0
----
21
53

query I rowsort
SELECT - 6 - 73 * + 23 AS col0
----
-1685

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT DISTINCT COUNT( - - 42 ) + 49
----
50

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT COUNT ( - - 42 ) + 49
----
50

query I rowsort
SELECT ALL - COALESCE ( - 40, 84 ) + + - 45
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT ALL CAST( NULL AS SIGNED ) + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL CAST ( NULL AS INTEGER ) + - 59
----
NULL

query I rowsort
SELECT - ( + 71 ) col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT DISTINCT COUNT( * ) + - + 44 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT COUNT ( * ) + - + 44 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT + 47 * COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-5551
SELECT + 47 * COUNT ( * )
----
47

query I rowsort
SELECT + 11 * 91 AS col0
----
1001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5553
SELECT + 70 + - CASE - - COUNT( * ) WHEN CASE + 82 WHEN MIN( DISTINCT - 31 ) * - 1 * 19 * COUNT( * ) + - - 69 / + 9 THEN NULL WHEN 2 THEN - 54 WHEN + + 92 / - SUM( 35 ) + 22 THEN + CAST( NULL AS SIGNED ) END * + COUNT( * ) THEN + 79 WHEN + 88 THEN - 9 ELSE 98 END
----
-28

skipif mysql # not compatible
query I rowsort label-5553
SELECT + 70 + - CASE - - COUNT ( * ) WHEN CASE + 82 WHEN MIN ( DISTINCT - 31 ) * - 1 * 19 * COUNT ( * ) + - - 69 / + 9 THEN NULL WHEN 2 THEN - 54 WHEN + + 92 / - SUM ( 35 ) + 22 THEN + CAST ( NULL AS INTEGER ) END * + COUNT ( * ) THEN + 79 WHEN + 88 THEN - 9 ELSE 98 END
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-5554
SELECT - 14 AS col1, ( + COUNT( * ) ) AS col0
----
-14
1

skipif mysql # not compatible
query II rowsort label-5554
SELECT - 14 AS col1, ( + COUNT ( * ) ) AS col0
----
-14
1

query II rowsort
SELECT 76, 65 col1
----
76
65

query I rowsort
SELECT - 93 + + 84 AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5557
SELECT DISTINCT 99 + 16 + + CAST( - 53 AS SIGNED ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5557
SELECT DISTINCT 99 + 16 + + CAST ( - 53 AS INTEGER ) AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5558
SELECT ALL ( COUNT( * ) ) DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL ( COUNT ( * ) ) / - 76 AS col0
----
0

query II rowsort
SELECT ALL + 25, 88 AS col1
----
25
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5560
SELECT DISTINCT CAST( NULL AS SIGNED ) * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 66
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5561
SELECT ALL ( + + 99 ) DIV - 50 - - 64 + - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL ( + + 99 ) / - 50 - - 64 + - COUNT ( * )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5562
SELECT ALL 47 DIV + 44 - 8 + ( - - MAX( DISTINCT - ( + 78 ) ) )
----
-85

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL 47 / + 44 - 8 + ( - - MAX ( DISTINCT - ( + 78 ) ) )
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5563
SELECT + COUNT( * ) DIV + - 76
----
0

skipif mysql # not compatible
query I rowsort label-5563
SELECT + COUNT ( * ) / + - 76
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5564
SELECT - + 39 * - COUNT( * ) DIV + - 80 AS col1, COUNT( * ) col0
----
0
1

skipif mysql # not compatible
query II rowsort label-5564
SELECT - + 39 * - COUNT ( * ) / + - 80 AS col1, COUNT ( * ) col0
----
0
1

query I rowsort
SELECT DISTINCT + + ( - 1 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5566
SELECT + COALESCE ( + CAST( + - 30 AS SIGNED ), 92 * SUM( ALL ( 9 ) ) + - MAX( + + 41 ), - + 41 ) * + 34 * + 13 * - 70 + CASE - 56 WHEN + 47 THEN ( - 77 ) END / + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5566
SELECT + COALESCE ( + CAST ( + - 30 AS INTEGER ), 92 * SUM ( ALL ( 9 ) ) + - MAX ( + + 41 ), - + 41 ) * + 34 * + 13 * - 70 + CASE - 56 WHEN + 47 THEN ( - 77 ) END / + - 13
----
NULL

query I rowsort
SELECT - 84 * - 29
----
2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5568
SELECT DISTINCT - - 53 col0, COALESCE ( - COUNT( * ), + + 65 * AVG ( + 21 ) DIV + - 11 + - NULLIF ( - 63, - 74 * 0 ) + COALESCE ( + CAST( + MAX( 40 ) AS SIGNED ), + 7, + CASE - - 57 WHEN 46 THEN + SUM( DISTINCT 40 ) END ) + + SUM( + - 38 ), 85, 91 ) AS col2
----
53
-1

skipif mysql # not compatible
query II rowsort label-5568
SELECT DISTINCT - - 53 col0, COALESCE ( - COUNT ( * ), + + 65 * AVG ( + 21 ) / + - 11 + - NULLIF ( - 63, - 74 * 0 ) + COALESCE ( + CAST ( + MAX ( 40 ) AS INTEGER ), + 7, + CASE - - 57 WHEN 46 THEN + SUM ( DISTINCT 40 ) END ) + + SUM ( + - 38 ), 85, 91 ) AS col2
----
53
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT ALL - MIN( + + 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL - MIN ( + + 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT DISTINCT - NULLIF ( - - 51, - 95 + 63 + 9 + 59 * - 94 * - + COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT - NULLIF ( - - 51, - 95 + 63 + 9 + 59 * - 94 * - + COUNT ( * ) )
----
-51

query I rowsort
SELECT + NULLIF ( - 64, + 78 ) * - + 78 AS col2
----
4992

query I rowsort
SELECT DISTINCT - + 76 col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT - COUNT( ALL 21 ) * + 88 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-5573
SELECT - COUNT ( ALL 21 ) * + 88 AS col1
----
-88

query I rowsort
SELECT 86 + + 40
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT + 77 + + + ( - ( + SUM( - 98 ) ) ) AS col2
----
175

skipif mysql # not compatible
query I rowsort label-5575
SELECT + 77 + + + ( - ( + SUM ( - 98 ) ) ) AS col2
----
175

query I rowsort
SELECT ALL + 57 * 40 + + + 88
----
2368

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ( + ( MIN( DISTINCT + 14 ) ) )
----
14

skipif mysql # not compatible
query I rowsort label-5577
SELECT ( + ( MIN ( DISTINCT + 14 ) ) )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT 65 + + + 22 - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-5578
SELECT 65 + + + 22 - COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT COUNT( * ) - + + 30 + 11 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-5579
SELECT COUNT ( * ) - + + 30 + 11 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT DISTINCT MAX( DISTINCT + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT MAX ( DISTINCT + 84 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5581
SELECT ALL + - CAST( NULL AS SIGNED ) + - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT ALL - + COUNT( DISTINCT - + 46 ) + + ( - - 23 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL - + COUNT ( DISTINCT - + 46 ) + + ( - - 23 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5583
SELECT DISTINCT COUNT( * ), - 15 col1
----
1
-15

skipif mysql # not compatible
query II rowsort label-5583
SELECT DISTINCT COUNT ( * ), - 15 col1
----
1
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5584
SELECT DISTINCT - COALESCE ( - COUNT( * ), NULLIF ( - 47, - CAST( - - CASE - + 24 WHEN + 42 THEN NULL WHEN + 48 THEN 89 END AS SIGNED ) ) - + ( COUNT( * ) ) * - 74 DIV + + 45 * + 42, + 51 + - - 85 ) + + - 12 + + ( + - 88 ) DIV 86 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT - COALESCE ( - COUNT ( * ), NULLIF ( - 47, - CAST ( - - CASE - + 24 WHEN + 42 THEN NULL WHEN + 48 THEN 89 END AS INTEGER ) ) - + ( COUNT ( * ) ) * - 74 / + + 45 * + 42, + 51 + - - 85 ) + + - 12 + + ( + - 88 ) / 86 AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5585
SELECT NULLIF ( 74, - CAST( NULL AS SIGNED ) ) DIV 64 * - 76 - + + MIN( DISTINCT + 86 ) + + + NULLIF ( + 64, - - CAST( - 1 AS SIGNED ) ) DIV + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-5585
SELECT NULLIF ( 74, - CAST ( NULL AS INTEGER ) ) / 64 * - 76 - + + MIN ( DISTINCT + 86 ) + + + NULLIF ( + 64, - - CAST ( - 1 AS INTEGER ) ) / + COUNT ( * )
----
-98

query I rowsort
SELECT 45 + + ( - 89 ) AS col2
----
-44

query I rowsort
SELECT ALL - 8 + - + ( + ( - - 69 ) ) + 9
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5588
SELECT DISTINCT + ( - COUNT( * ) ) DIV COALESCE ( COUNT( * ), 78 + + 10, + COUNT( * ) ) + - 33 * COUNT( * ) - - 22 * 86 * + 84 * COUNT( * ) AS col1
----
158894

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT + ( - COUNT ( * ) ) / COALESCE ( COUNT ( * ), 78 + + 10, + COUNT ( * ) ) + - 33 * COUNT ( * ) - - 22 * 86 * + 84 * COUNT ( * ) AS col1
----
158894

query I rowsort
SELECT 25 * - + 37 AS col2
----
-925

query I rowsort
SELECT 61 * + NULLIF ( + 51, 14 + + ( + 54 ) ) col2
----
3111

query I rowsort
SELECT ALL 5 * + 72
----
360

query I rowsort
SELECT 32 + 40 AS col1
----
72

query I rowsort
SELECT 41 + + 60 AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT DISTINCT 99 - - ( 30 ) + - + MAX( - 55 )
----
184

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT 99 - - ( 30 ) + - + MAX ( - 55 )
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT DISTINCT + 81 - - + MAX( + - 71 ) * - - 29 * + 97
----
-199642

skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT + 81 - - + MAX ( + - 71 ) * - - 29 * + 97
----
-199642

query I rowsort
SELECT 76 + + + 46 AS col0
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5597
SELECT DISTINCT - - CAST( + 47 AS SIGNED ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT - - CAST ( + 47 AS INTEGER ) AS col2
----
47

query I rowsort
SELECT - 59 * 84
----
-4956

query I rowsort
SELECT 82 + + 82 + 85
----
249

query I rowsort
SELECT ALL 98 * - 41 AS col0
----
-4018

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT ALL - ( - + COUNT( ALL + + 71 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL - ( - + COUNT ( ALL + + 71 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5602
SELECT DISTINCT - 86 DIV 33
----
-2

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT - 86 / 33
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5603
SELECT 31 DIV + - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5603
SELECT 31 / + - 69 AS col1
----
0

query I rowsort
SELECT ALL + 52 * + 99 col0
----
5148

query I rowsort
SELECT + 8 + 51 AS col2
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5606
SELECT 11 DIV - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5606
SELECT 11 / - 73 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5607
SELECT MAX( 57 ) DIV + COUNT( * ) + - 36
----
21

skipif mysql # not compatible
query I rowsort label-5607
SELECT MAX ( 57 ) / + COUNT ( * ) + - 36
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5608
SELECT CAST( NULL AS DECIMAL ) * 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5608
SELECT CAST ( NULL AS REAL ) * 26 AS col2
----
NULL

query I rowsort
SELECT 0 * 65 AS col0
----
0

query I rowsort
SELECT ALL + 28 + 53 + + 32 AS col2
----
113

query I rowsort
SELECT ( + 70 ) AS col0
----
70

query I rowsort
SELECT ALL - 37 + + 62 AS col2
----
25

query I rowsort
SELECT DISTINCT - + 32 AS col0
----
-32

query I rowsort
SELECT 80 * + 26 AS col1
----
2080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5615
SELECT ALL 72 + + NULLIF ( + 22, - 45 + CASE - 25 WHEN + 3 THEN CAST( - COUNT( * ) AS SIGNED ) * + - 7 END ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL 72 + + NULLIF ( + 22, - 45 + CASE - 25 WHEN + 3 THEN CAST ( - COUNT ( * ) AS INTEGER ) * + - 7 END ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT DISTINCT + COUNT( * ) + - - 26 * - + 78
----
-2027

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT + COUNT ( * ) + - - 26 * - + 78
----
-2027

query I rowsort
SELECT ALL - 87 + - + 39 AS col1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT 67 * + NULLIF ( - 87, 52 + - COALESCE ( + COUNT( * ), - 69 ) ) + - 57 * + 70 AS col0
----
-9819

skipif mysql # not compatible
query I rowsort label-5618
SELECT 67 * + NULLIF ( - 87, 52 + - COALESCE ( + COUNT ( * ), - 69 ) ) + - 57 * + 70 AS col0
----
-9819

query I rowsort
SELECT 45 * 2 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ALL + 67 * COUNT( * ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL + 67 * COUNT ( * ) AS col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5621
SELECT ALL - CAST( NULL AS SIGNED ) - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL - CAST ( NULL AS INTEGER ) - 3 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5622
SELECT ALL + ( + + CASE + - ( NULLIF ( + 45, - ( - + ( + 29 ) ) - 17 - - - 57 ) ) WHEN - - 65 THEN + 67 WHEN - + CAST( NULL AS SIGNED ) THEN NULL ELSE 82 END ) * COUNT( ALL + 8 ) AS col2, 26 AS col2
----
82
26

skipif mysql # not compatible
query II rowsort label-5622
SELECT ALL + ( + + CASE + - ( NULLIF ( + 45, - ( - + ( + 29 ) ) - 17 - - - 57 ) ) WHEN - - 65 THEN + 67 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL ELSE 82 END ) * COUNT ( ALL + 8 ) AS col2, 26 AS col2
----
82
26

query I rowsort
SELECT 35 - + + 88
----
-53

query I rowsort
SELECT 70 * + 59 col0
----
4130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5625
SELECT 77 + + + CAST( 17 AS SIGNED ) * + - 69
----
-1096

skipif mysql # not compatible
query I rowsort label-5625
SELECT 77 + + + CAST ( 17 AS INTEGER ) * + - 69
----
-1096

query I rowsort
SELECT ALL - 49 * - ( + 4 )
----
196

query I rowsort
SELECT DISTINCT 62 col2
----
62

query I rowsort
SELECT 70 - + - 47
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT 79 - + 20 * 91 * NULLIF ( + + ( COUNT( * ) ), + 29 + 26 ) AS col1
----
-1741

skipif mysql # not compatible
query I rowsort label-5629
SELECT 79 - + 20 * 91 * NULLIF ( + + ( COUNT ( * ) ), + 29 + 26 ) AS col1
----
-1741

onlyif mysql # DIV for integer division: 
query I rowsort label-5630
SELECT 50 DIV + 52 * + 72
----
0

skipif mysql # not compatible
query I rowsort label-5630
SELECT 50 / + 52 * + 72
----
0

query I rowsort
SELECT 86 * - 9
----
-774

onlyif mysql # DIV for integer division: 
query I rowsort label-5632
SELECT ALL - 5 DIV NULLIF ( - 70, + + 30 )
----
0

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL - 5 / NULLIF ( - 70, + + 30 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT 60 * - COUNT( * ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-5633
SELECT 60 * - COUNT ( * ) AS col0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-5634
SELECT + 62 DIV + 47 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5634
SELECT + 62 / + 47 AS col2
----
1

query I rowsort
SELECT ALL 68 * - 7 * 10 AS col2
----
-4760

onlyif mysql # DIV for integer division: 
query I rowsort label-5636
SELECT ALL - 5 DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL - 5 / 50
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5637
SELECT - CAST( + ( ( 69 ) ) AS SIGNED ) * - 83 AS col0
----
5727

skipif mysql # not compatible
query I rowsort label-5637
SELECT - CAST ( + ( ( 69 ) ) AS INTEGER ) * - 83 AS col0
----
5727

query I rowsort
SELECT ALL 51 * 73 + + 9
----
3732

query I rowsort
SELECT DISTINCT + 33 * + 56
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT ALL - COUNT( * ) * - ( 33 ) + CASE - 26 + + 49 WHEN CASE NULLIF ( + 55, - 20 / + 98 ) WHEN 78 * - 90 + - AVG ( - 9 ) THEN - 53 END THEN NULL ELSE 61 + 33 * 98 END
----
3328

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL - COUNT ( * ) * - ( 33 ) + CASE - 26 + + 49 WHEN CASE NULLIF ( + 55, - 20 / + 98 ) WHEN 78 * - 90 + - AVG ( - 9 ) THEN - 53 END THEN NULL ELSE 61 + 33 * 98 END
----
3328

query I rowsort
SELECT ALL + COALESCE ( - 59, + 78 + 89, - 90 )
----
-59

query I rowsort
SELECT ALL + 15 * - COALESCE ( 35 * - 4, 88 + - 59 * 54 ) AS col1
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + + 33
----
32

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + + 33
----
32

query I rowsort
SELECT NULLIF ( - 64, 58 ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) + + 11 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) + + 11 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT + 19 * 26 + 4 * + COUNT( * ) AS col1
----
498

skipif mysql # not compatible
query I rowsort label-5646
SELECT + 19 * 26 + 4 * + COUNT ( * ) AS col1
----
498

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5647
SELECT CASE 99 WHEN 9 THEN + 23 * 86 WHEN CAST( - 13 AS DECIMAL ) THEN - 11 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5647
SELECT CASE 99 WHEN 9 THEN + 23 * 86 WHEN CAST ( - 13 AS REAL ) THEN - 11 END AS col1
----
NULL

query I rowsort
SELECT + 90 * 0
----
0

query I rowsort
SELECT + 60 + 77 AS col1
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5650
SELECT ALL COUNT( * ) * - COUNT( - CAST( NULL AS SIGNED ) * - 79 ) + MAX( DISTINCT 83 )
----
83

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL COUNT ( * ) * - COUNT ( - CAST ( NULL AS INTEGER ) * - 79 ) + MAX ( DISTINCT 83 )
----
83

query I rowsort
SELECT DISTINCT 31 * - 17
----
-527

query I rowsort
SELECT + 37 + - 98
----
-61

query I rowsort
SELECT ALL - 12 * 81 + - 32
----
-1004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5654
SELECT + 54 - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-5654
SELECT + 54 - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5655
SELECT ALL 60 DIV + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL 60 / + 65 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ALL 68 * + 94 + - MAX( ALL 48 ) AS col2
----
6344

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL 68 * + 94 + - MAX ( ALL 48 ) AS col2
----
6344

query I rowsort
SELECT - 81 * - 85 + - 16
----
6869

query I rowsort
SELECT DISTINCT 95 * + 83
----
7885

query I rowsort
SELECT 80 * - 36 + 76 * 72 AS col2
----
2592

query I rowsort
SELECT + 18 * 58 AS col1
----
1044

query I rowsort
SELECT + 24 * - 31
----
-744

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT DISTINCT COUNT( * ) * 46
----
46

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT COUNT ( * ) * 46
----
46

query I rowsort
SELECT ALL + 85 * - 84 - 61
----
-7201

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT + 94 + - MAX( DISTINCT ( - 50 ) ) AS col2
----
144

skipif mysql # not compatible
query I rowsort label-5664
SELECT + 94 + - MAX ( DISTINCT ( - 50 ) ) AS col2
----
144

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5665
SELECT + NULLIF ( 2, 25 + COUNT( * ) / 91 ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5665
SELECT + NULLIF ( 2, 25 + COUNT ( * ) / 91 ) + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 53 - + 83 * + 29
----
-2354

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT DISTINCT NULLIF ( + 39, + 88 + - COUNT( * ) ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT NULLIF ( + 39, + 88 + - COUNT ( * ) ) AS col2
----
39

query I rowsort
SELECT - 17 + 26 * - COALESCE ( ( COALESCE ( + 77, + 18 * + 84 + 34 * ( 79 * 27 + 37 ) ) ), 20 * - 95 )
----
-2019

query I rowsort
SELECT ALL - 18 * 35 AS col1
----
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5670
SELECT DISTINCT CASE 88 WHEN CAST( 3 AS SIGNED ) THEN COUNT( * ) - - CAST( NULL AS SIGNED ) * NULLIF ( + 86 + 53 * 37, 55 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT CASE 88 WHEN CAST ( 3 AS INTEGER ) THEN COUNT ( * ) - - CAST ( NULL AS INTEGER ) * NULLIF ( + 86 + 53 * 37, 55 ) END AS col2
----
NULL

query I rowsort
SELECT - 98 + 25 * 58 AS col0
----
1352

query I rowsort
SELECT DISTINCT - 1 * - 46 AS col2
----
46

query I rowsort
SELECT - ( 18 ) + 0 AS col2
----
-18

query I rowsort
SELECT ALL 80 + + 1 * 98
----
178

query I rowsort
SELECT ALL 39 * 35
----
1365

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5676
SELECT - MIN( DISTINCT ( 63 ) ) DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-5676
SELECT - MIN ( DISTINCT ( 63 ) ) / - 77
----
0

query I rowsort
SELECT DISTINCT - 85 * + 9 AS col0
----
-765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5678
SELECT - CAST( - ( 75 ) AS SIGNED ) + + 40 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-5678
SELECT - CAST ( - ( 75 ) AS INTEGER ) + + 40 AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT ALL - COUNT( * ) + - COALESCE ( - 33, + COUNT( * ) * 41 )
----
32

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL - COUNT ( * ) + - COALESCE ( - 33, + COUNT ( * ) * 41 )
----
32

query I rowsort
SELECT - 16 * 61
----
-976

query I rowsort
SELECT - ( - 13 ) + 29 AS col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5682
SELECT ALL - + 73 DIV 79 + NULLIF ( 31 + + COUNT( 53 ), 13 * + 32 - + 68 * 64 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL - + 73 / 79 + NULLIF ( 31 + + COUNT ( 53 ), 13 * + 32 - + 68 * 64 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT - SUM( - 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-5683
SELECT - SUM ( - 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5684
SELECT - - 81 DIV ( COUNT( * ) * COALESCE ( 34, - 13 ) + 18 * 38 )
----
0

skipif mysql # not compatible
query I rowsort label-5684
SELECT - - 81 / ( COUNT ( * ) * COALESCE ( 34, - 13 ) + 18 * 38 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5685
SELECT - - 38 DIV + 75 + - NULLIF ( - COUNT( * ), ( 87 ) ) * - 93 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-5685
SELECT - - 38 / + 75 + - NULLIF ( - COUNT ( * ), ( 87 ) ) * - 93 AS col2
----
-93

query I rowsort
SELECT ALL + - ( - 11 ) * 61 col2
----
671

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5687
SELECT + - CASE CAST( COUNT( * ) AS SIGNED ) WHEN + 5 * 69 THEN - 78 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT + - CASE CAST ( COUNT ( * ) AS INTEGER ) WHEN + 5 * 69 THEN - 78 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5688
SELECT DISTINCT 75 DIV + CAST( 4 - 76 AS SIGNED ) + 95
----
94

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT 75 / + CAST ( 4 - 76 AS INTEGER ) + 95
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5689
SELECT ALL - 66 DIV 82 + - 91 DIV 5
----
-18

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL - 66 / 82 + - 91 / 5
----
-18

query I rowsort
SELECT + 93 * 34
----
3162

query I rowsort
SELECT DISTINCT - + 12 * + 37 AS col2
----
-444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5692
SELECT ALL - + 24 * MIN( DISTINCT - 11 + CAST( 14 + NULLIF ( + 38, 17 / - 16 ) AS SIGNED ) ) - 9 * 62 AS col1
----
-1542

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL - + 24 * MIN ( DISTINCT - 11 + CAST ( 14 + NULLIF ( + 38, 17 / - 16 ) AS INTEGER ) ) - 9 * 62 AS col1
----
-1542

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT - SUM( DISTINCT 96 ) * CASE 99 WHEN + 74 THEN CASE - 32 WHEN + 91 THEN 17 ELSE NULL END * 91 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5693
SELECT - SUM ( DISTINCT 96 ) * CASE 99 WHEN + 74 THEN CASE - 32 WHEN + 91 THEN 17 ELSE NULL END * 91 ELSE NULL END
----
NULL

query I rowsort
SELECT + + 74 * 40 AS col2
----
2960

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT ALL + CASE WHEN NOT + COALESCE ( + ( + AVG ( 74 ) ), 27 * - 66, ( 16 ) ) IS NOT NULL THEN - COUNT( * ) + 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL + CASE WHEN NOT + COALESCE ( + ( + AVG ( 74 ) ), 27 * - 66, ( 16 ) ) IS NOT NULL THEN - COUNT ( * ) + 27 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5696
SELECT + CAST( - ( + 76 ) AS SIGNED ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-5696
SELECT + CAST ( - ( + 76 ) AS INTEGER ) AS col1
----
-76

query I rowsort
SELECT ( - + 95 )
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT DISTINCT + CAST( + + 29 AS SIGNED ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT + CAST ( + + 29 AS INTEGER ) AS col0
----
29

query I rowsort
SELECT + 65 * + + ( 89 ) AS col0
----
5785

query I rowsort
SELECT DISTINCT 76 * 62
----
4712

query I rowsort
SELECT + ( + 0 ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5702
SELECT ALL NULLIF ( + - 12, 18 ) DIV + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL NULLIF ( + - 12, 18 ) / + 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT CASE + MIN( + 25 ) WHEN ( 42 ) - - COUNT( * ) THEN - 0 WHEN + ( 93 ) * + 83 + 8 THEN - 96 - - 38 WHEN ( + 39 ) * - 8 THEN NULL ELSE 92 END AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5703
SELECT CASE + MIN ( + 25 ) WHEN ( 42 ) - - COUNT ( * ) THEN - 0 WHEN + ( 93 ) * + 83 + 8 THEN - 96 - - 38 WHEN ( + 39 ) * - 8 THEN NULL ELSE 92 END AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT ALL CASE + + 68 WHEN COUNT( 45 ) + 41 / - 49 THEN - 44 + 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5704
SELECT ALL CASE + + 68 WHEN COUNT ( 45 ) + 41 / - 49 THEN - 44 + 10 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT + NULLIF ( - - 37, 52 + 80 / SUM( + 86 * 82 ) ) + 36 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-5705
SELECT + NULLIF ( - - 37, 52 + 80 / SUM ( + 86 * 82 ) ) + 36 AS col0
----
73

query I rowsort
SELECT DISTINCT 40 * 42 AS col0
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT + 5 * + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-5707
SELECT + 5 * + COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT CASE + 89 WHEN + COALESCE ( + SUM( DISTINCT - 72 ), 57 ) THEN NULL WHEN + 14 THEN + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5708
SELECT CASE + 89 WHEN + COALESCE ( + SUM ( DISTINCT - 72 ), 57 ) THEN NULL WHEN + 14 THEN + COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT + CASE + - COUNT( * ) WHEN 58 * AVG ( DISTINCT + 71 * 8 ) THEN - 62 WHEN + 30 THEN + COALESCE ( ( + 87 ), MAX( 92 ), 97 + + ( + 96 - 86 ) ) ELSE + 57 + - 93 END * + 40 AS col1
----
-1440

skipif mysql # not compatible
query I rowsort label-5709
SELECT + CASE + - COUNT ( * ) WHEN 58 * AVG ( DISTINCT + 71 * 8 ) THEN - 62 WHEN + 30 THEN + COALESCE ( ( + 87 ), MAX ( 92 ), 97 + + ( + 96 - 86 ) ) ELSE + 57 + - 93 END * + 40 AS col1
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT + MIN( 29 ) - + 71 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-5710
SELECT + MIN ( 29 ) - + 71 AS col0
----
-42

query I rowsort
SELECT 69 + - 18 * - 57
----
1095

query I rowsort
SELECT 76 * + NULLIF ( + 35, 77 ) AS col1
----
2660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5713
SELECT ALL 80 + 62 - MAX( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL 80 + 62 - MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT 86 + 54
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT ALL + COUNT( * ) + + - ( + CASE 64 WHEN 34 THEN + 65 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL + COUNT ( * ) + + - ( + CASE 64 WHEN 34 THEN + 65 END )
----
NULL

query I rowsort
SELECT DISTINCT 92 + ( 38 ) * - 25 AS col2
----
-858

query I rowsort
SELECT 4 - 71 + 47
----
-20

query I rowsort
SELECT DISTINCT + 23 + - + 96
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5719
SELECT COUNT( * ) * 11 DIV 82 - 97 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-5719
SELECT COUNT ( * ) * 11 / 82 - 97 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT + SUM( + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-5720
SELECT + SUM ( + 37 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5721
SELECT - + COALESCE ( - 29, 82 - + COUNT( * ) DIV SUM( - ( + 69 ) * COALESCE ( - CAST( NULL AS SIGNED ) * 79 + + 75, 21 ) ), 81 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-5721
SELECT - + COALESCE ( - 29, 82 - + COUNT ( * ) / SUM ( - ( + 69 ) * COALESCE ( - CAST ( NULL AS INTEGER ) * 79 + + 75, 21 ) ), 81 ) AS col2
----
29

query I rowsort
SELECT ALL - ( - - 32 )
----
-32

query I rowsort
SELECT + 2 * - 47 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL + ( + 85 ) * - MIN( - ( 68 ) )
----
5780

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL + ( + 85 ) * - MIN ( - ( 68 ) )
----
5780

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT ALL + - 89 + MIN( ALL 84 )
----
-5

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL + - 89 + MIN ( ALL 84 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT DISTINCT 20 * - MIN( + 43 ) AS col2
----
-860

skipif mysql # not compatible
query I rowsort label-5726
SELECT DISTINCT 20 * - MIN ( + 43 ) AS col2
----
-860

query I rowsort
SELECT ALL - ( - 24 ) - + 90 AS col0
----
-66

query I rowsort
SELECT 44 * + 92 - 14 AS col0
----
4034

query I rowsort
SELECT + 68 * - 48 AS col0
----
-3264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5730
SELECT DISTINCT + 58 DIV - COUNT( * ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT + 58 / - COUNT ( * ) AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5731
SELECT 0 * CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) - + 90 + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5731
SELECT 0 * CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) - + 90 + - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT MAX( ALL - 32 ) + ( COUNT( * ) ) * 37 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5732
SELECT MAX ( ALL - 32 ) + ( COUNT ( * ) ) * 37 AS col2
----
5

query I rowsort
SELECT - 14 * - 32 + + 6
----
454

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5734
SELECT 85 DIV COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-5734
SELECT 85 / COUNT ( * )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5735
SELECT DISTINCT + 97 DIV - - 2 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-5735
SELECT DISTINCT + 97 / - - 2 AS col0
----
48

query I rowsort
SELECT 45 + - 17
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5737
SELECT ALL + COALESCE ( - CAST( + + ( 98 ) AS SIGNED ), 42, 25 + + COUNT( * ) ) DIV COUNT( * ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL + COALESCE ( - CAST ( + + ( 98 ) AS INTEGER ), 42, 25 + + COUNT ( * ) ) / COUNT ( * ) AS col2
----
-98

query I rowsort
SELECT ALL + 81 * 94 AS col2
----
7614

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5739
SELECT DISTINCT + ( 18 ) / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT + ( 18 ) / - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 35 * - 98 AS col0
----
-3430

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT 60 + - COUNT( * ) + - 0 + 15 * COUNT( DISTINCT 41 ) col2
----
74

skipif mysql # not compatible
query I rowsort label-5741
SELECT 60 + - COUNT ( * ) + - 0 + 15 * COUNT ( DISTINCT 41 ) col2
----
74

query I rowsort
SELECT ALL - NULLIF ( + - 9, + 13 ) * - 90
----
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5743
SELECT ALL - CAST( - 65 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL - CAST ( - 65 AS INTEGER )
----
65

query I rowsort
SELECT DISTINCT - 36 * - 6 * + 91
----
19656

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT ALL + 18 * - + COUNT( * ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL + 18 * - + COUNT ( * ) col0
----
-18

query II rowsort
SELECT DISTINCT - 18 AS col0, - 57 * 32
----
-18
-1824

query II rowsort
SELECT 39, - ( - 64 ) - 21 AS col1
----
39
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5748
SELECT COALESCE ( + MAX( + 47 ), + CASE COUNT( * ) WHEN - 84 THEN + 95 * + 18 ELSE 60 END, - MIN( DISTINCT - 48 ) + 87 ) + 77 * CAST( ( + 67 ) + - 84 * - 4 AS SIGNED ) AS col1
----
31078

skipif mysql # not compatible
query I rowsort label-5748
SELECT COALESCE ( + MAX ( + 47 ), + CASE COUNT ( * ) WHEN - 84 THEN + 95 * + 18 ELSE 60 END, - MIN ( DISTINCT - 48 ) + 87 ) + 77 * CAST ( ( + 67 ) + - 84 * - 4 AS INTEGER ) AS col1
----
31078

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT DISTINCT SUM( - + 76 ) + + 75 + NULLIF ( + 17, 64 )
----
16

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT SUM ( - + 76 ) + + 75 + NULLIF ( + 17, 64 )
----
16

query II rowsort
SELECT 55, 21 AS col2
----
55
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT ALL - 46 + + 29 + COUNT( * ) * + 83
----
66

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL - 46 + + 29 + COUNT ( * ) * + 83
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5752
SELECT ALL NULLIF ( COUNT( * ), 14 / + 81 ) + NULLIF ( 65 + ( + 18 ), + 5 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL NULLIF ( COUNT ( * ), 14 / + 81 ) + NULLIF ( 65 + ( + 18 ), + 5 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT NULLIF ( - 48, - 47 / 70 ) * COUNT( - 20 )
----
-48

skipif mysql # not compatible
query I rowsort label-5753
SELECT NULLIF ( - 48, - 47 / 70 ) * COUNT ( - 20 )
----
-48

query I rowsort
SELECT ALL 27 + - ( - 12 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT ALL MIN( DISTINCT - - 47 ) + + - COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL MIN ( DISTINCT - - 47 ) + + - COUNT ( * ) AS col2
----
46

query II rowsort
SELECT DISTINCT 78 AS col0, 9
----
78
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5757
SELECT 16 + COALESCE ( + ( + COUNT( * ) ), - 41 * CAST( NULL AS SIGNED ) + + 66 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-5757
SELECT 16 + COALESCE ( + ( + COUNT ( * ) ), - 41 * CAST ( NULL AS INTEGER ) + + 66 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT ALL + NULLIF ( 59, ( + COUNT( * ) ) )
----
59

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL + NULLIF ( 59, ( + COUNT ( * ) ) )
----
59

query I rowsort
SELECT 62 + + 35
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT ALL 65 - + COUNT( DISTINCT 70 )
----
64

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL 65 - + COUNT ( DISTINCT 70 )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5761
SELECT 19 AS col2, + COUNT( * ) * - - COUNT( * ) AS col0
----
19
1

skipif mysql # not compatible
query II rowsort label-5761
SELECT 19 AS col2, + COUNT ( * ) * - - COUNT ( * ) AS col0
----
19
1

query I rowsort
SELECT ALL COALESCE ( 12, - 33 )
----
12

query I rowsort
SELECT ALL + 93 - + + 61
----
32

query I rowsort
SELECT 64 * - COALESCE ( NULLIF ( 37, - ( 30 ) * - AVG ( 92 + + 68 ) ), - 0 ) * ( - 5 )
----
11840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5765
SELECT COUNT( * ) + + + 44 + + ( + 75 ) + CASE 65 + + 29 * 0 WHEN 70 THEN 25 + ( + ( + 58 ) ) WHEN CAST( + 80 AS SIGNED ) * + 92 - 29 THEN NULL ELSE NULL END * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-5765
SELECT COUNT ( * ) + + + 44 + + ( + 75 ) + CASE 65 + + 29 * 0 WHEN 70 THEN 25 + ( + ( + 58 ) ) WHEN CAST ( + 80 AS INTEGER ) * + 92 - 29 THEN NULL ELSE NULL END * 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT 0 + - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5766
SELECT 0 + - - COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL - COUNT( DISTINCT - 18 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL - COUNT ( DISTINCT - 18 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5768
SELECT + - COALESCE ( + + 20, + + 83, 71 + 83 DIV - 47 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5768
SELECT + - COALESCE ( + + 20, + + 83, 71 + 83 / - 47 ) AS col1
----
-20

query I rowsort
SELECT - 69 * - 83
----
5727

query I rowsort
SELECT ALL 38 * 62
----
2356

onlyif mysql # DIV for integer division: 
query II rowsort label-5771
SELECT DISTINCT - ( - - 60 ) AS col0, 63 DIV - 77 AS col0
----
-60
0

skipif mysql # not compatible
query II rowsort label-5771
SELECT DISTINCT - ( - - 60 ) AS col0, 63 / - 77 AS col0
----
-60
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5772
SELECT DISTINCT - COALESCE ( + 11, - + 87 + - CASE 89 WHEN CAST( 86 AS DECIMAL ) THEN NULL ELSE COALESCE ( COUNT( * ), - COUNT( * ) * + MIN( - 82 DIV 13 ) ) END ) col1
----
-11

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT - COALESCE ( + 11, - + 87 + - CASE 89 WHEN CAST ( 86 AS REAL ) THEN NULL ELSE COALESCE ( COUNT ( * ), - COUNT ( * ) * + MIN ( - 82 / 13 ) ) END ) col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT MIN( - 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-5773
SELECT MIN ( - 20 ) AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5774
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5774
SELECT CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT 79 * - 32 AS col2
----
-2528

query I rowsort
SELECT ALL - ( 12 )
----
-12

query I rowsort
SELECT DISTINCT 17 * - - 19 + + + 36
----
359

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT ALL SUM( + ( + 9 ) ) * - 77 + + COUNT( * )
----
-692

skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL SUM ( + ( + 9 ) ) * - 77 + + COUNT ( * )
----
-692

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT - 58 * 84 * - COUNT( * )
----
4872

skipif mysql # not compatible
query I rowsort label-5779
SELECT - 58 * 84 * - COUNT ( * )
----
4872

query I rowsort
SELECT - 64 * - 18 * - 30
----
-34560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5781
SELECT - COALESCE ( - CASE + - 11 WHEN + COUNT( * ) THEN NULL ELSE + NULLIF ( + CAST( NULL AS SIGNED ), + 93 + - 0 ) END, - MAX( 81 ) ) * 85
----
6885

skipif mysql # not compatible
query I rowsort label-5781
SELECT - COALESCE ( - CASE + - 11 WHEN + COUNT ( * ) THEN NULL ELSE + NULLIF ( + CAST ( NULL AS INTEGER ), + 93 + - 0 ) END, - MAX ( 81 ) ) * 85
----
6885

query I rowsort
SELECT ALL + 87 + - 42
----
45

query I rowsort
SELECT DISTINCT - 33 * + 25
----
-825

onlyif mysql # DIV for integer division: 
query II rowsort label-5784
SELECT ALL - 60 + + + 44 AS col2, 64 + 0 DIV 42 AS col2
----
-16
64

skipif mysql # not compatible
query II rowsort label-5784
SELECT ALL - 60 + + + 44 AS col2, 64 + 0 / 42 AS col2
----
-16
64

query I rowsort
SELECT - 4 * 84
----
-336

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5786
SELECT ALL + 88 * + + CASE - - CAST( NULL AS DECIMAL ) WHEN 85 * 47 THEN COUNT( * ) ELSE - COUNT( * ) * - 20 END
----
1760

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL + 88 * + + CASE - - CAST ( NULL AS REAL ) WHEN 85 * 47 THEN COUNT ( * ) ELSE - COUNT ( * ) * - 20 END
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT ALL - COALESCE ( + 41, - 80 * 82 ) + ( COUNT( * ) ) * 30 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL - COALESCE ( + 41, - 80 * 82 ) + ( COUNT ( * ) ) * 30 AS col2
----
-11

query I rowsort
SELECT DISTINCT + 70 * - 40 AS col1
----
-2800

query I rowsort
SELECT ALL COALESCE ( - 10, 22 + - + 3 ) col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5790
SELECT - CAST( - - 40 AS SIGNED ) + - 42
----
-82

skipif mysql # not compatible
query I rowsort label-5790
SELECT - CAST ( - - 40 AS INTEGER ) + - 42
----
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-5791
SELECT - 1 + + + 49 AS col0, + 81 - + 63 DIV 32
----
48
80

skipif mysql # not compatible
query II rowsort label-5791
SELECT - 1 + + + 49 AS col0, + 81 - + 63 / 32
----
48
80

query I rowsort
SELECT - 23 * NULLIF ( 13, + + 36 )
----
-299

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT DISTINCT COUNT( ALL ( 3 ) ) * - COUNT( * ) * - ( - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-5793
SELECT DISTINCT COUNT ( ALL ( 3 ) ) * - COUNT ( * ) * - ( - 27 )
----
-27

query I rowsort
SELECT DISTINCT 81 * + - 20
----
-1620

query II rowsort
SELECT ALL - 63 * - + 79 AS col1, 81
----
4977
81

query II rowsort
SELECT - - 58 * - 7 AS col0, + 60 * + + 89 col1
----
-406
5340

onlyif mysql # aggregate syntax: 
query II rowsort label-5797
SELECT DISTINCT 38 * COUNT( * ), + MIN( 68 ) AS col0
----
38
68

skipif mysql # not compatible
query II rowsort label-5797
SELECT DISTINCT 38 * COUNT ( * ), + MIN ( 68 ) AS col0
----
38
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5798
SELECT - 12 - - NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) * 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5798
SELECT - 12 - - NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) * 50 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5799
SELECT + - 8 DIV + - ( 33 )
----
0

skipif mysql # not compatible
query I rowsort label-5799
SELECT + - 8 / + - ( 33 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5800
SELECT + 86 DIV - 12 AS col1, 69 + - 80
----
-7
-11

skipif mysql # not compatible
query II rowsort label-5800
SELECT + 86 / - 12 AS col1, 69 + - 80
----
-7
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT + 26 * - COALESCE ( - 71, - COUNT( * ) * 63 ) AS col2
----
1846

skipif mysql # not compatible
query I rowsort label-5801
SELECT + 26 * - COALESCE ( - 71, - COUNT ( * ) * 63 ) AS col2
----
1846

onlyif mysql # aggregate syntax: 
query II rowsort label-5802
SELECT - - COUNT( ALL + 49 ) AS col0, - 46
----
1
-46

skipif mysql # not compatible
query II rowsort label-5802
SELECT - - COUNT ( ALL + 49 ) AS col0, - 46
----
1
-46

query I rowsort
SELECT ALL + COALESCE ( - + 37, - - 20 ) AS col1
----
-37

query II rowsort
SELECT DISTINCT - 70 * 22 AS col2, - 52 + - - 5 col1
----
-1540
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5805
SELECT + 53 DIV 16 + - 92 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-5805
SELECT + 53 / 16 + - 92 AS col2
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5806
SELECT COUNT( * ) * ( NULLIF ( - - 42, + 48 * ( + MIN( + 77 ) * 92 ) - 53 ) ) - 41 DIV - 30 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-5806
SELECT COUNT ( * ) * ( NULLIF ( - - 42, + 48 * ( + MIN ( + 77 ) * 92 ) - 53 ) ) - 41 / - 30 AS col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5807
SELECT ALL - SUM( ALL + 21 ) DIV + - COALESCE ( + 46, + ( + 54 ) + + CAST( - 31 AS SIGNED ) * + 54 ) + + ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL - SUM ( ALL + 21 ) / + - COALESCE ( + 46, + ( + 54 ) + + CAST ( - 31 AS INTEGER ) * + 54 ) + + ( COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT + ( + - MAX( DISTINCT + 66 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-5808
SELECT + ( + - MAX ( DISTINCT + 66 ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT COUNT( * ) * + - 64 * + SUM( ALL 20 ) + + 21
----
-1259

skipif mysql # not compatible
query I rowsort label-5809
SELECT COUNT ( * ) * + - 64 * + SUM ( ALL 20 ) + + 21
----
-1259

query I rowsort
SELECT + 6 + - 15 AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5811
SELECT + CAST( NULL AS SIGNED ) AS col2, CASE - 50 WHEN 75 + + + 25 THEN - 43 + 44 WHEN + MAX( - 9 ) + + 49 THEN AVG ( 36 ) + 5 END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5811
SELECT + CAST ( NULL AS INTEGER ) AS col2, CASE - 50 WHEN 75 + + + 25 THEN - 43 + 44 WHEN + MAX ( - 9 ) + + 49 THEN AVG ( 36 ) + 5 END AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5812
SELECT ALL ( - + 38 ) * - + 66 * + CAST( - 10 AS DECIMAL ) * + 5 + + COUNT( * ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL ( - + 38 ) * - + 66 * + CAST ( - 10 AS REAL ) * + 5 + + COUNT ( * ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 20 * 44 + 54 AS col0
----
934

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT - COUNT( * ) * 5 - + - 85 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5814
SELECT - COUNT ( * ) * 5 - + - 85 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT DISTINCT 23 * - NULLIF ( ( + + 57 ), + 57 + CASE + MAX( ALL 63 ) WHEN NULLIF ( - ( 31 ), - 60 ) THEN NULL WHEN NULLIF ( - 59, ( + COUNT( * ) ) * + 80 ) * + NULLIF ( - COUNT( * ) * SUM( 85 ), COUNT( * ) ) + + COUNT( * ) THEN - COUNT( * ) * COUNT( * ) + 58 ELSE 13 * 29 - COUNT( * ) END ) AS col2
----
-1311

skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT 23 * - NULLIF ( ( + + 57 ), + 57 + CASE + MAX ( ALL 63 ) WHEN NULLIF ( - ( 31 ), - 60 ) THEN NULL WHEN NULLIF ( - 59, ( + COUNT ( * ) ) * + 80 ) * + NULLIF ( - COUNT ( * ) * SUM ( 85 ), COUNT ( * ) ) + + COUNT ( * ) THEN - COUNT ( * ) * COUNT ( * ) + 58 ELSE 13 * 29 - COUNT ( * ) END ) AS col2
----
-1311

query I rowsort
SELECT + 34 + + CASE + CASE AVG ( ALL + 7 ) WHEN + 0 * 81 THEN NULL WHEN 35 THEN 64 + - ( ( - 16 ) ) ELSE NULL END WHEN - 79 THEN NULL ELSE - 81 END
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT ( - - SUM( DISTINCT 2 ) )
----
2

skipif mysql # not compatible
query I rowsort label-5817
SELECT ( - - SUM ( DISTINCT 2 ) )
----
2

query I rowsort
SELECT - ( - 50 ) + COALESCE ( + 91, + 32 ) AS col1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT ALL + 1 * 79 + - 17 - COALESCE ( - 87, COUNT( * ) ) * 87
----
7631

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL + 1 * 79 + - 17 - COALESCE ( - 87, COUNT ( * ) ) * 87
----
7631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5820
SELECT CASE WHEN NOT - 79 BETWEEN - - 52 * CAST( + CASE ( 14 ) WHEN 33 THEN NULL WHEN + 57 + 62 THEN 24 / 5 ELSE 82 + 90 END AS SIGNED ) AND MIN( CAST( + 82 AS SIGNED ) ) THEN NULL WHEN ( NULL ) BETWEEN ( COUNT( * ) ) AND ( NULL ) THEN NULL ELSE COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5820
SELECT CASE WHEN NOT - 79 BETWEEN - - 52 * CAST ( + CASE ( 14 ) WHEN 33 THEN NULL WHEN + 57 + 62 THEN 24 / 5 ELSE 82 + 90 END AS INTEGER ) AND MIN ( CAST ( + 82 AS INTEGER ) ) THEN NULL WHEN ( NULL ) BETWEEN ( COUNT ( * ) ) AND ( NULL ) THEN NULL ELSE COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT - 80 + - 32 AS col2
----
-112

query I rowsort
SELECT ALL + CASE - ( 14 ) WHEN + 14 THEN + 14 + 92 WHEN - 63 * 53 + - 57 * - 37 THEN 0 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT ALL + 24 * + 26 - SUM( DISTINCT 72 ) AS col1
----
552

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL + 24 * + 26 - SUM ( DISTINCT 72 ) AS col1
----
552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5824
SELECT - 74 * - + CAST( 57 AS SIGNED )
----
4218

skipif mysql # not compatible
query I rowsort label-5824
SELECT - 74 * - + CAST ( 57 AS INTEGER )
----
4218

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT NULLIF ( + MIN( ALL + - ( - - 13 ) ), + - 96 )
----
-13

skipif mysql # not compatible
query I rowsort label-5825
SELECT NULLIF ( + MIN ( ALL + - ( - - 13 ) ), + - 96 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5826
SELECT DISTINCT + 91 * - - CAST( NULL AS SIGNED ) - + 74 * NULLIF ( 79, + ( + COALESCE ( ( + CAST( NULL AS SIGNED ) ), 87 ) ) * 23 + + COUNT( * ) * 13 ) + COALESCE ( 99, - 64 + - AVG ( DISTINCT 62 + ( - 52 ) * CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT + 91 * - - CAST ( NULL AS INTEGER ) - + 74 * NULLIF ( 79, + ( + COALESCE ( ( + CAST ( NULL AS INTEGER ) ), 87 ) ) * 23 + + COUNT ( * ) * 13 ) + COALESCE ( 99, - 64 + - AVG ( DISTINCT 62 + ( - 52 ) * CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT ALL ( CASE + 22 WHEN - 12 / + 51 - 8 THEN + MIN( ALL 23 ) WHEN + COUNT( * ) / 14 THEN NULL ELSE 0 END )
----
0

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL ( CASE + 22 WHEN - 12 / + 51 - 8 THEN + MIN ( ALL 23 ) WHEN + COUNT ( * ) / 14 THEN NULL ELSE 0 END )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5828
SELECT ALL - 21 * + - CASE WHEN NULL NOT BETWEEN - MAX( - 38 ) AND COUNT( * ) * CAST( 64 AS DECIMAL ) + 86 THEN NULL WHEN NULL = ( NULL ) THEN - MAX( 81 ) END - 57 - - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL - 21 * + - CASE WHEN NULL NOT BETWEEN - MAX ( - 38 ) AND COUNT ( * ) * CAST ( 64 AS REAL ) + 86 THEN NULL WHEN NULL = ( NULL ) THEN - MAX ( 81 ) END - 57 - - 78 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT - + 48 * + SUM( DISTINCT - 51 ) col2
----
2448

skipif mysql # not compatible
query I rowsort label-5829
SELECT - + 48 * + SUM ( DISTINCT - 51 ) col2
----
2448

query I rowsort
SELECT ALL + 62 * - ( + 62 ) AS col1
----
-3844

query I rowsort
SELECT DISTINCT + - 78 * 76 AS col2
----
-5928

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT DISTINCT - - 53 * + COALESCE ( COUNT( * ), + 74, + + 1 * 94 - 78 )
----
53

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT - - 53 * + COALESCE ( COUNT ( * ), + 74, + + 1 * 94 - 78 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT - 87 * COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-5833
SELECT - 87 * COUNT ( * )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT - - 21 + COUNT( * ) col2
----
22

skipif mysql # not compatible
query I rowsort label-5834
SELECT - - 21 + COUNT ( * ) col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT DISTINCT - MIN( + NULLIF ( + 81, + 87 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT - MIN ( + NULLIF ( + 81, + 87 ) )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5836
SELECT ALL - + COUNT( * ) + + 67 DIV - 59 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL - + COUNT ( * ) + + 67 / - 59 AS col0
----
-2

query I rowsort
SELECT - ( + 85 ) col0
----
-85

query I rowsort
SELECT - 46 + + 40 col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT ALL 90 + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL 90 + + COUNT ( * )
----
91

query I rowsort
SELECT + 60 + + + 61 AS col1
----
121

query II rowsort
SELECT - 85 AS col1, - 1
----
-85
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5842
SELECT CAST( + 23 AS SIGNED ) DIV - 53 + + - 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-5842
SELECT CAST ( + 23 AS INTEGER ) / - 53 + + - 53 AS col0
----
-53

query II rowsort
SELECT 49 AS col1, + 15 AS col2
----
49
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5844
SELECT CAST( NULL AS SIGNED ) + - 84 / + 75 * - - COUNT( 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5844
SELECT CAST ( NULL AS INTEGER ) + - 84 / + 75 * - - COUNT ( 10 )
----
NULL

query II rowsort
SELECT ALL - 40 col0, ( - + 55 ) AS col0
----
-40
-55

query I rowsort
SELECT DISTINCT + 14 * 21 AS col0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL 22 + COUNT( ALL + 72 ) + + + 59 * - 40 + - - 21
----
-2316

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL 22 + COUNT ( ALL + 72 ) + + + 59 * - 40 + - - 21
----
-2316

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT ALL 10 - - COUNT( + 46 ) + ( + + 47 )
----
58

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL 10 - - COUNT ( + 46 ) + ( + + 47 )
----
58

query II rowsort
SELECT + 62 AS col1, + 5 AS col1
----
62
5

query I rowsort
SELECT 85 * - 56 * 50 * 86 * - NULLIF ( + 94, 52 ) AS col1
----
1923992000

query II rowsort
SELECT ALL - 59 AS col2, + 93 AS col2
----
-59
93

query I rowsort
SELECT ALL 56 * + ( + 10 ) AS col0
----
560

query I rowsort
SELECT 10 * + - 13
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT ALL 68 * - MIN( - 38 ) AS col2
----
2584

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL 68 * - MIN ( - 38 ) AS col2
----
2584

query II rowsort
SELECT ALL - - 31 AS col1, 20 AS col0
----
31
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT 85 * 27 + - COALESCE ( + 27, COUNT( * ) ) AS col1
----
2268

skipif mysql # not compatible
query I rowsort label-5856
SELECT 85 * 27 + - COALESCE ( + 27, COUNT ( * ) ) AS col1
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT ALL - - MAX( ALL + 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL - - MAX ( ALL + 45 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT DISTINCT - COALESCE ( + - ( - 84 ), COUNT( * ) ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT - COALESCE ( + - ( - 84 ), COUNT ( * ) ) col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT ALL MAX( ALL 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL MAX ( ALL 79 ) AS col0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5860
SELECT 29 DIV 89 col0
----
0

skipif mysql # not compatible
query I rowsort label-5860
SELECT 29 / 89 col0
----
0

query I rowsort
SELECT + 81 * 32
----
2592

query I rowsort
SELECT - 64 + 66
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT ALL + 81 * - - ( COUNT( * ) )
----
81

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL + 81 * - - ( COUNT ( * ) )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5864
SELECT COUNT( * ) DIV + 11 * + - 14 + 31
----
31

skipif mysql # not compatible
query I rowsort label-5864
SELECT COUNT ( * ) / + 11 * + - 14 + 31
----
31

query I rowsort
SELECT ALL 78 + 68 * + 85
----
5858

query II rowsort
SELECT - 83 AS col2, - 26 AS col2
----
-83
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT ALL - 89 + + COUNT( * ) * 47 * + COUNT( * ) * 39
----
1744

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL - 89 + + COUNT ( * ) * 47 * + COUNT ( * ) * 39
----
1744

onlyif mysql # aggregate syntax: 
query II rowsort label-5868
SELECT ALL + COUNT( * ) + 18 col1, - COUNT( * ) * 94 + COUNT( * ) AS col2
----
19
-93

skipif mysql # not compatible
query II rowsort label-5868
SELECT ALL + COUNT ( * ) + 18 col1, - COUNT ( * ) * 94 + COUNT ( * ) AS col2
----
19
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5869
SELECT - 44 DIV ( + COUNT( * ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-5869
SELECT - 44 / ( + COUNT ( * ) ) AS col0
----
-44

query I rowsort
SELECT 47 + 40 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5871
SELECT DISTINCT NULLIF ( + + 33, + CAST( NULL AS SIGNED ) + + CAST( + ( + - COUNT( * ) ) AS DECIMAL ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT NULLIF ( + + 33, + CAST ( NULL AS INTEGER ) + + CAST ( + ( + - COUNT ( * ) ) AS REAL ) ) AS col1
----
33

query I rowsort
SELECT ALL - 29 + + 59 AS col2
----
30

query I rowsort
SELECT + 97 - + - 16 AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT + 10 - - ( + 49 ) + 6 * - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-5874
SELECT + 10 - - ( + 49 ) + 6 * - COUNT ( * )
----
53

query I rowsort
SELECT DISTINCT - 73 + - 64
----
-137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5876
SELECT 28 DIV COUNT( * ) - 92 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-5876
SELECT 28 / COUNT ( * ) - 92 AS col1
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5877
SELECT DISTINCT + COUNT( * ) DIV - 96 * 7
----
0

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT + COUNT ( * ) / - 96 * 7
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5878
SELECT MIN( + - 81 ) AS col1, + 3 AS col1
----
-81
3

skipif mysql # not compatible
query II rowsort label-5878
SELECT MIN ( + - 81 ) AS col1, + 3 AS col1
----
-81
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT COUNT( * ) * + - 46 * - + 81 col0
----
3726

skipif mysql # not compatible
query I rowsort label-5879
SELECT COUNT ( * ) * + - 46 * - + 81 col0
----
3726

query I rowsort
SELECT 14 + - - ( + 71 ) + + 4 AS col0
----
89

query I rowsort
SELECT ALL - 66 * 60
----
-3960

onlyif mysql # DIV for integer division: 
query I rowsort label-5882
SELECT DISTINCT + COALESCE ( 97, + 7 DIV - 10 ) - - ( + 66 ) AS col1
----
163

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT + COALESCE ( 97, + 7 / - 10 ) - - ( + 66 ) AS col1
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5883
SELECT ALL CAST( NULL AS SIGNED ) / 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL CAST ( NULL AS INTEGER ) / 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT - 35 * 78 + MAX( ALL - 59 )
----
-2789

skipif mysql # not compatible
query I rowsort label-5884
SELECT - 35 * 78 + MAX ( ALL - 59 )
----
-2789

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5885
SELECT ALL - CAST( - MAX( ALL - + 87 ) AS SIGNED ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL - CAST ( - MAX ( ALL - + 87 ) AS INTEGER ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT - 45 * - 0 + + SUM( - 55 ) + - 94
----
-149

skipif mysql # not compatible
query I rowsort label-5886
SELECT - 45 * - 0 + + SUM ( - 55 ) + - 94
----
-149

query II rowsort
SELECT + 42 * 56, ( + + 89 ) AS col2
----
2352
89

query I rowsort
SELECT + 12 * - ( + 1 ) AS col0
----
-12

query I rowsort
SELECT 67 + - + 82
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5890
SELECT + CAST( - COUNT( * ) AS SIGNED ) col0, + NULLIF ( - 58, + CAST( 8 AS SIGNED ) )
----
-1
-58

skipif mysql # not compatible
query II rowsort label-5890
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) col0, + NULLIF ( - 58, + CAST ( 8 AS INTEGER ) )
----
-1
-58

query I rowsort
SELECT ALL + 1 + - - 19 * - 69
----
-1310

query I rowsort
SELECT ALL 9 * - 5 + 70 AS col0
----
25

query I rowsort
SELECT - 79 * - 90 * 18
----
127980

query I rowsort
SELECT DISTINCT + 52 + - 94 * 29 + 56
----
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT DISTINCT 31 + MIN( ALL + - 88 )
----
-57

skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT 31 + MIN ( ALL + - 88 )
----
-57

query I rowsort
SELECT ALL + - 36 + - 26
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5897
SELECT ALL - - SUM( DISTINCT CAST( + - 88 AS SIGNED ) ) + + 90 + - 86 * + 30 * - 46 AS col2
----
118682

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL - - SUM ( DISTINCT CAST ( + - 88 AS INTEGER ) ) + + 90 + - 86 * + 30 * - 46 AS col2
----
118682

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT DISTINCT 93 + CASE - - 27 WHEN - 35 THEN 26 / - COUNT( * ) + - + 29 WHEN COUNT( * ) * + 80 THEN 52 WHEN 14 THEN ( ( 86 ) ) END / + ( - COUNT( DISTINCT + 85 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT 93 + CASE - - 27 WHEN - 35 THEN 26 / - COUNT ( * ) + - + 29 WHEN COUNT ( * ) * + 80 THEN 52 WHEN 14 THEN ( ( 86 ) ) END / + ( - COUNT ( DISTINCT + 85 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT 15 * MIN( + 5 ) + 12 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-5899
SELECT 15 * MIN ( + 5 ) + 12 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT - + NULLIF ( 8, - COUNT( * ) ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5900
SELECT - + NULLIF ( 8, - COUNT ( * ) ) AS col1
----
-8

query I rowsort
SELECT ALL + 58 + + 57 * - 86 * + 76 * - COALESCE ( 95, - 94 ) * 38 + + 15
----
1344912793

query I rowsort
SELECT + NULLIF ( + ( - ( + 14 ) ), - 68 * + - 65 ) col1
----
-14

query I rowsort
SELECT - - 92 col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT + SUM( - 35 ) + + COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5904
SELECT + SUM ( - 35 ) + + COUNT ( * ) AS col0
----
-34

onlyif mysql # DIV for integer division: 
query II rowsort label-5905
SELECT ALL + + 69 DIV - 26, 82 AS col0
----
-2
82

skipif mysql # not compatible
query II rowsort label-5905
SELECT ALL + + 69 / - 26, 82 AS col0
----
-2
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5906
SELECT + 8 + 57, - 6 * COUNT( * ) col2
----
65
-6

skipif mysql # not compatible
query II rowsort label-5906
SELECT + 8 + 57, - 6 * COUNT ( * ) col2
----
65
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL 78 + + + 68 * + + COALESCE ( + - 67, - 55 + ( + ( 20 ) ) - COUNT( * ) ) AS col2
----
-4478

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL 78 + + + 68 * + + COALESCE ( + - 67, - 55 + ( + ( 20 ) ) - COUNT ( * ) ) AS col2
----
-4478

query I rowsort
SELECT - COALESCE ( 75, + - ( + - ( 17 ) ) + - 2 * + COALESCE ( 25, + 40 ) )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5909
SELECT ALL - 60 - + CAST( SUM( DISTINCT - + 58 ) AS SIGNED ), 4 + + + 18 col0
----
-2
22

skipif mysql # not compatible
query II rowsort label-5909
SELECT ALL - 60 - + CAST ( SUM ( DISTINCT - + 58 ) AS INTEGER ), 4 + + + 18 col0
----
-2
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT ALL + 96 * - + COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL + 96 * - + COUNT ( * ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT DISTINCT + 15 * MAX( - ( 50 ) ) AS col2
----
-750

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT + 15 * MAX ( - ( 50 ) ) AS col2
----
-750

query I rowsort
SELECT - 81 + 77
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5913
SELECT ALL COUNT( * ) col2, 95 + + + 77
----
1
172

skipif mysql # not compatible
query II rowsort label-5913
SELECT ALL COUNT ( * ) col2, 95 + + + 77
----
1
172

query I rowsort
SELECT - ( - + 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5915
SELECT - 56, ( + - 14 ) - + 78 + + - 22 + - 7 + + + COUNT( COALESCE ( - 48, 16 ) ) * 78 AS col0
----
-56
-43

skipif mysql # not compatible
query II rowsort label-5915
SELECT - 56, ( + - 14 ) - + 78 + + - 22 + - 7 + + + COUNT ( COALESCE ( - 48, 16 ) ) * 78 AS col0
----
-56
-43

query I rowsort
SELECT DISTINCT 92 * + 34
----
3128

onlyif mysql # aggregate syntax: 
query II rowsort label-5917
SELECT - 22 * - COUNT( ALL + 50 ), 79 + + 96 col1
----
22
175

skipif mysql # not compatible
query II rowsort label-5917
SELECT - 22 * - COUNT ( ALL + 50 ), 79 + + 96 col1
----
22
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5918
SELECT ALL + CASE - + ( + - 21 ) WHEN + 76 THEN NULL WHEN - 12 THEN - AVG ( CAST( NULL AS SIGNED ) ) * + + 99 ELSE + 87 * - 61 END
----
-5307

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL + CASE - + ( + - 21 ) WHEN + 76 THEN NULL WHEN - 12 THEN - AVG ( CAST ( NULL AS INTEGER ) ) * + + 99 ELSE + 87 * - 61 END
----
-5307

query I rowsort
SELECT ALL + CASE 79 WHEN - 69 * + 48 * + 11 THEN AVG ( ALL + 92 ) WHEN - 92 * 95 THEN 84 + - 77 WHEN 33 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - 86 * + 14
----
-1204

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT - COUNT( * ) * + 84
----
-84

skipif mysql # not compatible
query I rowsort label-5921
SELECT - COUNT ( * ) * + 84
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5922
SELECT ALL + - 17 * + 48 + - CAST( NULL AS SIGNED ) + - 15 * - 6 / CAST( NULL AS SIGNED ) + + AVG ( + 97 ) + + 37 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL + - 17 * + 48 + - CAST ( NULL AS INTEGER ) + - 15 * - 6 / CAST ( NULL AS INTEGER ) + + AVG ( + 97 ) + + 37 col2
----
NULL

query I rowsort
SELECT + - 36 * 81 AS col0
----
-2916

query I rowsort
SELECT ALL + + 96 * 79 * + 9 + - + 24
----
68232

onlyif mysql # DIV for integer division: 
query I rowsort label-5925
SELECT - 63 DIV 20 - + + 35
----
-38

skipif mysql # not compatible
query I rowsort label-5925
SELECT - 63 / 20 - + + 35
----
-38

query I rowsort
SELECT DISTINCT + 29 * + - 70 + 11 + - 96 * - 99 * - 36 + + - 90
----
-344253

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5927
SELECT - SUM( + 31 ) DIV - 22 AS col0, + 25
----
1
25

skipif mysql # not compatible
query II rowsort label-5927
SELECT - SUM ( + 31 ) / - 22 AS col0, + 25
----
1
25

query II rowsort
SELECT ALL + + 43 AS col1, 49
----
43
49

query I rowsort
SELECT + + 67 * + 64 + - 8
----
4280

query II rowsort
SELECT + - 71 AS col1, 9
----
-71
9

query I rowsort
SELECT ALL - 92 * - 63 + + 23 + - 77
----
5742

query I rowsort
SELECT - - ( + 20 )
----
20

query I rowsort
SELECT - 79 * + 76 col1
----
-6004

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5934
SELECT + 83 + NULLIF ( - COUNT( ALL - 43 ), - - COALESCE ( - + CAST( ( - 82 ) AS DECIMAL ), - 75 ) - 22 ) + - 76 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5934
SELECT + 83 + NULLIF ( - COUNT ( ALL - 43 ), - - COALESCE ( - + CAST ( ( - 82 ) AS REAL ), - 75 ) - 22 ) + - 76 AS col2
----
6

query I rowsort
SELECT DISTINCT + 79 * + + 89 AS col1
----
7031

query I rowsort
SELECT ALL + + CASE + 94 WHEN + 83 THEN - 13 ELSE NULL END - - 19
----
NULL

query I rowsort
SELECT DISTINCT 59 * + - COALESCE ( 70, + 31 + - 23 ) AS col2
----
-4130

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT ALL COUNT( * ) * - 67
----
-67

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL COUNT ( * ) * - 67
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT + MAX( + 2 ) - + 61 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-5939
SELECT + MAX ( + 2 ) - + 61 AS col1
----
-59

query I rowsort
SELECT - 58 * 53 * - 76
----
233624

onlyif mysql # aggregate syntax: 
query II rowsort label-5941
SELECT ALL SUM( + 26 ), 90 + + COUNT( * ) * + 18 * + - MAX( - 25 ) AS col0
----
26
540

skipif mysql # not compatible
query II rowsort label-5941
SELECT ALL SUM ( + 26 ), 90 + + COUNT ( * ) * + 18 * + - MAX ( - 25 ) AS col0
----
26
540

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT + 46 + MIN( + 87 ) col1
----
133

skipif mysql # not compatible
query I rowsort label-5942
SELECT + 46 + MIN ( + 87 ) col1
----
133

query I rowsort
SELECT + 22 * + 50 AS col0
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT + 39 - + COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-5944
SELECT + 39 - + COUNT ( * ) AS col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5945
SELECT DISTINCT 45 DIV + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT 45 / + COUNT ( * )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5946
SELECT - 90 * + 63 * - COALESCE ( 69, + 28 DIV + COUNT( DISTINCT - ( + 85 ) ) + + COUNT( * ), 95 + NULLIF ( 81 + + 10 DIV 7, COUNT( * ) ) DIV MIN( DISTINCT + 65 ) ) * + 59 - NULLIF ( 8, - 39 ) AS col0
----
23082562

skipif mysql # not compatible
query I rowsort label-5946
SELECT - 90 * + 63 * - COALESCE ( 69, + 28 / + COUNT ( DISTINCT - ( + 85 ) ) + + COUNT ( * ), 95 + NULLIF ( 81 + + 10 / 7, COUNT ( * ) ) / MIN ( DISTINCT + 65 ) ) * + 59 - NULLIF ( 8, - 39 ) AS col0
----
23082562

onlyif mysql # DIV for integer division: 
query I rowsort label-5947
SELECT DISTINCT + 93 * 57 DIV - 43 col1
----
-123

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT + 93 * 57 / - 43 col1
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5948
SELECT COUNT( * ) DIV + COUNT( * ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5948
SELECT COUNT ( * ) / + COUNT ( * ) - - COUNT ( * )
----
2

query II rowsort
SELECT ALL 98 * - + 74, + 57 + + 70 AS col0
----
-7252
127

query I rowsort
SELECT + 62 * + + ( + 25 ) AS col2
----
1550

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT - MAX( + 53 ) * 52 * - + 71 + + NULLIF ( ( - 23 ), ( COUNT( DISTINCT - 74 ) ) ) * 80
----
193836

skipif mysql # not compatible
query I rowsort label-5951
SELECT - MAX ( + 53 ) * 52 * - + 71 + + NULLIF ( ( - 23 ), ( COUNT ( DISTINCT - 74 ) ) ) * 80
----
193836

onlyif mysql # aggregate syntax: 
query II rowsort label-5952
SELECT - COALESCE ( COUNT( * ), - + 26 + + 63 ) * 88 + - 42 * 54 AS col1, + CASE + 89 WHEN AVG ( 3 ) THEN - 11 - COUNT( * ) END
----
-2356
NULL

skipif mysql # not compatible
query II rowsort label-5952
SELECT - COALESCE ( COUNT ( * ), - + 26 + + 63 ) * 88 + - 42 * 54 AS col1, + CASE + 89 WHEN AVG ( 3 ) THEN - 11 - COUNT ( * ) END
----
-2356
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5953
SELECT DISTINCT + CAST( - 2 AS SIGNED ) * + + COALESCE ( + 16, + 39, - 0 * + 99 + SUM( 26 ) * + 61 ) + 92 col2
----
60

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT + CAST ( - 2 AS INTEGER ) * + + COALESCE ( + 16, + 39, - 0 * + 99 + SUM ( 26 ) * + 61 ) + 92 col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT - 8 - - COUNT( ALL + 28 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-5954
SELECT - 8 - - COUNT ( ALL + 28 ) AS col2
----
-7

query I rowsort
SELECT - 65 + - 71 AS col0
----
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-5956
SELECT ALL 81 DIV - + 64 + 63 + - - 19 + + 32 + - 53 + 7 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL 81 / - + 64 + 63 + - - 19 + + 32 + - 53 + 7 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT - CASE - 34 WHEN + + SUM( DISTINCT 33 ) * + - 58 THEN + + ( + 44 ) * - ( - 18 ) * - 12 + + 34 * + 76 WHEN 24 THEN 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5957
SELECT - CASE - 34 WHEN + + SUM ( DISTINCT 33 ) * + - 58 THEN + + ( + 44 ) * - ( - 18 ) * - 12 + + 34 * + 76 WHEN 24 THEN 14 END
----
NULL

query II rowsort
SELECT ALL + ( + - 70 ), + 40 * - - 83 AS col1
----
-70
3320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5959
SELECT ALL + 25 DIV - 14 + 96 DIV - COALESCE ( - 88, - 24, + 81 DIV + - CASE + 79 WHEN + 11 * 20 THEN NULL ELSE + ( 4 ) END * 73 ) + 31 + + NULLIF ( - 56, + ( + 9 ) * - COALESCE ( CASE CASE + 47 WHEN + 72 - - 31 * 35 THEN - 7 + - 69 * 63 WHEN 61 THEN NULL ELSE 26 + + 74 * 57 END WHEN 46 - COUNT( * ) THEN 3 WHEN + 82 DIV - 57 THEN - 94 ELSE NULL END * CAST( MIN( 22 ) AS SIGNED ), + 37 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL + 25 / - 14 + 96 / - COALESCE ( - 88, - 24, + 81 / + - CASE + 79 WHEN + 11 * 20 THEN NULL ELSE + ( 4 ) END * 73 ) + 31 + + NULLIF ( - 56, + ( + 9 ) * - COALESCE ( CASE CASE + 47 WHEN + 72 - - 31 * 35 THEN - 7 + - 69 * 63 WHEN 61 THEN NULL ELSE 26 + + 74 * 57 END WHEN 46 - COUNT ( * ) THEN 3 WHEN + 82 / - 57 THEN - 94 ELSE NULL END * CAST ( MIN ( 22 ) AS INTEGER ), + 37 ) )
----
-25

query I rowsort
SELECT 13 * - 53 + 58
----
-631

query I rowsort
SELECT CASE + 28 WHEN + 86 THEN ( + 49 ) ELSE - 23 END
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT + - COUNT( * ) * 91 + + COUNT( - - 36 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-5962
SELECT + - COUNT ( * ) * 91 + + COUNT ( - - 36 ) AS col0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5963
SELECT ALL + + 89 + + 79 * - CAST( 65 AS SIGNED ) AS col0, + ( 1 )
----
-5046
1

skipif mysql # not compatible
query II rowsort label-5963
SELECT ALL + + 89 + + 79 * - CAST ( 65 AS INTEGER ) AS col0, + ( 1 )
----
-5046
1

query I rowsort
SELECT ( + + ( + 77 ) )
----
77

query I rowsort
SELECT - 15 + - - 40
----
25

query I rowsort
SELECT - 24 * + 70
----
-1680

query I rowsort
SELECT ALL - ( 56 ) * + - 54 col1
----
3024

query II rowsort
SELECT + 63 + + 99, ( + + 56 ) col2
----
162
56

query I rowsort
SELECT ALL - + 7 col1
----
-7

query I rowsort
SELECT + + NULLIF ( - 63, 50 ) * - + 12 + - - 84
----
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5971
SELECT DISTINCT + 50 - - - SUM( CAST( NULL AS SIGNED ) ) + 97 + + COUNT( * ) * + ( CASE 65 WHEN - - 59 THEN CASE 66 WHEN 48 + 7 THEN CASE - 69 WHEN NULLIF ( - 95, + SUM( 5 ) + 74 ) * NULLIF ( - 2, - 92 / + ( 4 ) ) - - 25 * + 58 THEN NULL WHEN 33 + - 6 * + 26 THEN 44 + COUNT( * ) ELSE 8 END WHEN 10 THEN NULL ELSE NULL END WHEN + CAST( + 40 AS SIGNED ) THEN + COUNT( * ) END ) - 23 / 25 * + 95 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT + 50 - - - SUM ( CAST ( NULL AS INTEGER ) ) + 97 + + COUNT ( * ) * + ( CASE 65 WHEN - - 59 THEN CASE 66 WHEN 48 + 7 THEN CASE - 69 WHEN NULLIF ( - 95, + SUM ( 5 ) + 74 ) * NULLIF ( - 2, - 92 / + ( 4 ) ) - - 25 * + 58 THEN NULL WHEN 33 + - 6 * + 26 THEN 44 + COUNT ( * ) ELSE 8 END WHEN 10 THEN NULL ELSE NULL END WHEN + CAST ( + 40 AS INTEGER ) THEN + COUNT ( * ) END ) - 23 / 25 * + 95 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT + 90 * + 64 + + 72 - - 1 + + 85 * + 24 + - COUNT( * ) AS col2
----
7872

skipif mysql # not compatible
query I rowsort label-5972
SELECT + 90 * + 64 + + 72 - - 1 + + 85 * + 24 + - COUNT ( * ) AS col2
----
7872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5973
SELECT ALL + 17 - - CASE + + 39 WHEN - - 40 - - + 91 THEN - 28 - 91 WHEN - + CAST( NULL AS SIGNED ) THEN NULL ELSE + 43 END
----
60

skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL + 17 - - CASE + + 39 WHEN - - 40 - - + 91 THEN - 28 - 91 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 43 END
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5974
SELECT - COUNT( * ) + + - 51 / + + 97 * + 69 * + + 67 * 43 * - - CAST( NULL AS SIGNED ) * - 22 * - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5974
SELECT - COUNT ( * ) + + - 51 / + + 97 * + 69 * + + 67 * 43 * - - CAST ( NULL AS INTEGER ) * - 22 * - 19 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5975
SELECT 98 DIV - 53 col1
----
-1

skipif mysql # not compatible
query I rowsort label-5975
SELECT 98 / - 53 col1
----
-1

query I rowsort
SELECT 5 + - 72 AS col2
----
-67

query I rowsort
SELECT 79 * - - 15
----
1185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5978
SELECT COUNT( DISTINCT + 37 ) + - COUNT( * ) AS col2, 13 / - CAST( NULL AS SIGNED ) + + 75
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5978
SELECT COUNT ( DISTINCT + 37 ) + - COUNT ( * ) AS col2, 13 / - CAST ( NULL AS INTEGER ) + + 75
----
0
NULL

query I rowsort
SELECT 95 + - - 0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT COUNT( * ) - + ( - 62 ) + + 31 / - CASE 62 WHEN - 11 + + 72 - NULLIF ( + 19, - 29 ) - COUNT( * ) / - 46 THEN 12 * COALESCE ( + 31, 67 ) + + 95 / 44 WHEN 71 THEN NULL WHEN 57 - - 25 THEN NULL WHEN 48 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5980
SELECT COUNT ( * ) - + ( - 62 ) + + 31 / - CASE 62 WHEN - 11 + + 72 - NULLIF ( + 19, - 29 ) - COUNT ( * ) / - 46 THEN 12 * COALESCE ( + 31, 67 ) + + 95 / 44 WHEN 71 THEN NULL WHEN 57 - - 25 THEN NULL WHEN 48 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5981
SELECT CAST( NULL AS SIGNED ) * 51 * + - 64, - 73 AS col2
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-5981
SELECT CAST ( NULL AS INTEGER ) * 51 * + - 64, - 73 AS col2
----
NULL
-73

query I rowsort
SELECT 4 + + - 53 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT COUNT( * ) + - 37 * - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-5983
SELECT COUNT ( * ) + - 37 * - COUNT ( * )
----
38

query I rowsort
SELECT 23 * - 4
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5985
SELECT COALESCE ( 81, - - COUNT( * ) * - COUNT( DISTINCT + 8 ) DIV + + 66 - - 42 + MAX( DISTINCT - 9 ) + + 81 + 28 ) + - 27 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5985
SELECT COALESCE ( 81, - - COUNT ( * ) * - COUNT ( DISTINCT + 8 ) / + + 66 - - 42 + MAX ( DISTINCT - 9 ) + + 81 + 28 ) + - 27 AS col0
----
54

query I rowsort
SELECT DISTINCT 57 * - + 59 AS col0
----
-3363

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5987
SELECT + 72 DIV + NULLIF ( + 31, + 38 ) + + MAX( + 87 ) AS col0, 65 AS col2
----
89
65

skipif mysql # not compatible
query II rowsort label-5987
SELECT + 72 / + NULLIF ( + 31, + 38 ) + + MAX ( + 87 ) AS col0, 65 AS col2
----
89
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5988
SELECT ALL 26 DIV CASE + AVG ( - + 46 ) WHEN 18 THEN NULL ELSE + + COALESCE ( - 81, - 48, 54 ) * - 12 + - 64 + 52 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5988
SELECT ALL 26 / CASE + AVG ( - + 46 ) WHEN 18 THEN NULL ELSE + + COALESCE ( - 81, - 48, 54 ) * - 12 + - 64 + 52 END AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT 52 DIV + 9 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5989
SELECT 52 / + 9 AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5990
SELECT ALL + + 42 + - CAST( - - 57 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL + + 42 + - CAST ( - - 57 AS INTEGER )
----
-15

query I rowsort
SELECT DISTINCT + 95 + + + 21
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5992
SELECT - NULLIF ( + + 7, + ( - - 83 ) ) * CASE + ( 85 ) WHEN - - 28 THEN + 42 * + + 5 WHEN COUNT( * ) THEN + 32 + + CAST( NULL AS SIGNED ) WHEN 55 * SUM( 24 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT - NULLIF ( + + 7, + ( - - 83 ) ) * CASE + ( 85 ) WHEN - - 28 THEN + 42 * + + 5 WHEN COUNT ( * ) THEN + 32 + + CAST ( NULL AS INTEGER ) WHEN 55 * SUM ( 24 ) THEN NULL END
----
NULL

query I rowsort
SELECT 21 * + - 64
----
-1344

query I rowsort
SELECT ALL 55 - - + 25 col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT DISTINCT 60 * + 39 + + COUNT( * ) AS col1
----
2341

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT 60 * + 39 + + COUNT ( * ) AS col1
----
2341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5996
SELECT + - NULLIF ( + SUM( DISTINCT + + 13 ), + - 38 * + - 75 - + NULLIF ( 0, 82 + - 79 ) * 79 ) / CAST( NULL AS SIGNED ) - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5996
SELECT + - NULLIF ( + SUM ( DISTINCT + + 13 ), + - 38 * + - 75 - + NULLIF ( 0, 82 + - 79 ) * 79 ) / CAST ( NULL AS INTEGER ) - 54 AS col0
----
NULL

query I rowsort
SELECT + - ( - ( - COALESCE ( 87, - 13 * - 55 ) ) )
----
-87

query II rowsort
SELECT ALL - 42 AS col0, 29 AS col2
----
-42
29

query I rowsort
SELECT 1 - - 44 col0
----
45

query I rowsort
SELECT + 22 * + ( + 46 ) + 87 AS col0
----
1099

query II rowsort
SELECT + 63, - 16 col0
----
63
-16

query I rowsort
SELECT + 79 * + 44 - - - 91
----
3385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6003
SELECT ALL - + 74 - 52 - + 19 DIV - + 67 - + + 86 - + 35 * + COUNT( * ) * - 96 + - ( 50 ) col2
----
3098

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL - + 74 - 52 - + 19 / - + 67 - + + 86 - + 35 * + COUNT ( * ) * - 96 + - ( 50 ) col2
----
3098

query II rowsort
SELECT 70 - - + COALESCE ( 77, 76 ) + - 1 AS col0, - 53
----
146
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6005
SELECT 16 - - + NULLIF ( - CAST( - - COUNT( * ) AS SIGNED ), 49 * - SUM( + 88 ) - + 21 + + + 49 ) + - 82 DIV 62 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-6005
SELECT 16 - - + NULLIF ( - CAST ( - - COUNT ( * ) AS INTEGER ), 49 * - SUM ( + 88 ) - + 21 + + + 49 ) + - 82 / 62 AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6006
SELECT SUM( ALL CAST( NULL AS SIGNED ) ) * - ( 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT SUM ( ALL CAST ( NULL AS INTEGER ) ) * - ( 39 )
----
NULL

query I rowsort
SELECT 14 * - + 61
----
-854

query II rowsort
SELECT - 87, - 77 + + + 78 col1
----
-87
1

query II rowsort
SELECT - 89 AS col2, - 24 AS col1
----
-89
-24

query I rowsort
SELECT 98 + + CASE - 19 WHEN + 60 THEN ( + - 71 ) ELSE NULL END - - 40 + + + 96
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6011
SELECT ALL 35 DIV COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL 35 / COUNT ( * ) AS col0
----
35

query I rowsort
SELECT 4 * - 24
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT DISTINCT - CASE 7 WHEN - + 0 THEN NULL ELSE + + COUNT( ALL 44 ) + + COUNT( * ) - - 54 + - 65 - - - 42 * + - CASE + 31 WHEN COUNT( * ) THEN + COUNT( * ) - NULLIF ( 79 + 29 * 80, 55 + - 79 * ( - 37 + - ( - 61 ) * 48 ) ) / 23 END + 35 END * COUNT( - 19 + 37 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT - CASE 7 WHEN - + 0 THEN NULL ELSE + + COUNT ( ALL 44 ) + + COUNT ( * ) - - 54 + - 65 - - - 42 * + - CASE + 31 WHEN COUNT ( * ) THEN + COUNT ( * ) - NULLIF ( 79 + 29 * 80, 55 + - 79 * ( - 37 + - ( - 61 ) * 48 ) ) / 23 END + 35 END * COUNT ( - 19 + 37 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT ALL SUM( 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL SUM ( 21 ) AS col1
----
21

query I rowsort
SELECT ALL + 38 + ( 42 )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-6016
SELECT 30 * COUNT( * ) AS col1, 57 * + 24 + 83 * + COUNT( * ) * - ( COUNT( * ) ) * 50
----
30
-2782

skipif mysql # not compatible
query II rowsort label-6016
SELECT 30 * COUNT ( * ) AS col1, 57 * + 24 + 83 * + COUNT ( * ) * - ( COUNT ( * ) ) * 50
----
30
-2782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6017
SELECT ALL + 66 + 36 + 47 * 42 DIV + COUNT( * )
----
2076

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL + 66 + 36 + 47 * 42 / + COUNT ( * )
----
2076

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT 4 * + - COALESCE ( + COUNT( * ), - ( + - 13 ) * - 63, - + 46 + - 73 ) * - 27 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-6018
SELECT 4 * + - COALESCE ( + COUNT ( * ), - ( + - 13 ) * - 63, - + 46 + - 73 ) * - 27 AS col0
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-6019
SELECT DISTINCT COUNT( * ) AS col0, - 80 + + + 36
----
1
-44

skipif mysql # not compatible
query II rowsort label-6019
SELECT DISTINCT COUNT ( * ) AS col0, - 80 + + + 36
----
1
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT 20 - + SUM( 37 ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-6020
SELECT 20 - + SUM ( 37 ) col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT 29 + - + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-6021
SELECT 29 + - + COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6022
SELECT ALL SUM( + 56 ), 24 AS col1
----
56
24

skipif mysql # not compatible
query II rowsort label-6022
SELECT ALL SUM ( + 56 ), 24 AS col1
----
56
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT COUNT( * ) + + + 73 col2
----
74

skipif mysql # not compatible
query I rowsort label-6023
SELECT COUNT ( * ) + + + 73 col2
----
74

query I rowsort
SELECT ALL 44 + + 74
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT ALL 3 * - COUNT( + + 42 )
----
-3

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL 3 * - COUNT ( + + 42 )
----
-3

query I rowsort
SELECT 98 - - - 96 AS col0
----
2

query I rowsort
SELECT DISTINCT - 24 - - 74 * + 1
----
50

query I rowsort
SELECT - 0 + + + ( + - 39 ) AS col2
----
-39

query I rowsort
SELECT - + 85 * 31 AS col0
----
-2635

query I rowsort
SELECT + + 80 * - + 16 AS col2
----
-1280

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT DISTINCT - COUNT( ALL - - 4 ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT - COUNT ( ALL - - 4 ) * + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6032
SELECT + COUNT( ALL 61 ) AS col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-6032
SELECT + COUNT ( ALL 61 ) AS col0, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT ALL + COALESCE ( - CASE + + 88 WHEN + 94 THEN - 60 * COUNT( ALL ( - 20 ) ) ELSE - 66 + - 5 * 34 END, ( 66 ), COUNT( DISTINCT + ( + 82 ) ) ) AS col0
----
236

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL + COALESCE ( - CASE + + 88 WHEN + 94 THEN - 60 * COUNT ( ALL ( - 20 ) ) ELSE - 66 + - 5 * 34 END, ( 66 ), COUNT ( DISTINCT + ( + 82 ) ) ) AS col0
----
236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6034
SELECT + 18 * 64 - - - 79 + + 24 * - + 13 DIV COUNT( * )
----
761

skipif mysql # not compatible
query I rowsort label-6034
SELECT + 18 * 64 - - - 79 + + 24 * - + 13 / COUNT ( * )
----
761

onlyif mysql # DIV for integer division: 
query II rowsort label-6035
SELECT DISTINCT + + 10 AS col1, 94 + + 92 + - - 26 DIV + 71 AS col0
----
10
186

skipif mysql # not compatible
query II rowsort label-6035
SELECT DISTINCT + + 10 AS col1, 94 + + 92 + - - 26 / + 71 AS col0
----
10
186

query I rowsort
SELECT + - 61 + 79
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6037
SELECT ALL + - CAST( NULL AS SIGNED ), + SUM( - 64 ) + - - 68 * - 29 AS col2
----
NULL
-2036

skipif mysql # not compatible
query II rowsort label-6037
SELECT ALL + - CAST ( NULL AS INTEGER ), + SUM ( - 64 ) + - - 68 * - 29 AS col2
----
NULL
-2036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6038
SELECT + 72 / - - 13 - + + 67 * - 45 - - 45 - - CAST( NULL AS SIGNED ) + + 15 * 95 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT + 72 / - - 13 - + + 67 * - 45 - - 45 - - CAST ( NULL AS INTEGER ) + + 15 * 95 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6039
SELECT ALL + 59 * 87 + - CAST( + 41 AS SIGNED ) + + 23 AS col2
----
5115

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL + 59 * 87 + - CAST ( + 41 AS INTEGER ) + + 23 AS col2
----
5115

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6040
SELECT DISTINCT + COUNT( * ) DIV + - 76 * + - 62 + 6 + - ( + - 67 ) AS col1, 66 AS col2
----
73
66

skipif mysql # not compatible
query II rowsort label-6040
SELECT DISTINCT + COUNT ( * ) / + - 76 * + - 62 + 6 + - ( + - 67 ) AS col1, 66 AS col2
----
73
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6041
SELECT - + 65 * - - 52 + - NULLIF ( - - 90, - + 74 * + CASE - COUNT( * ) WHEN + 70 THEN + + SUM( ALL 70 ) END ) + - + 92 DIV 38
----
-3472

skipif mysql # not compatible
query I rowsort label-6041
SELECT - + 65 * - - 52 + - NULLIF ( - - 90, - + 74 * + CASE - COUNT ( * ) WHEN + 70 THEN + + SUM ( ALL 70 ) END ) + - + 92 / 38
----
-3472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6042
SELECT + - 9 DIV 68 * + 29 * + + 73 * - COUNT( * ) + + 30 + NULLIF ( 60, - + AVG ( ALL - 64 ) )
----
90

skipif mysql # not compatible
query I rowsort label-6042
SELECT + - 9 / 68 * + 29 * + + 73 * - COUNT ( * ) + + 30 + NULLIF ( 60, - + AVG ( ALL - 64 ) )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6043
SELECT - + 4 DIV - 96 + - 20 * - + 30 AS col1
----
600

skipif mysql # not compatible
query I rowsort label-6043
SELECT - + 4 / - 96 + - 20 * - + 30 AS col1
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT - 59 * MIN( 24 )
----
-1416

skipif mysql # not compatible
query I rowsort label-6044
SELECT - 59 * MIN ( 24 )
----
-1416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6045
SELECT + SUM( - + ( + + ( - 70 ) ) ) + + NULLIF ( + 56, - 35 ) DIV 62
----
70

skipif mysql # not compatible
query I rowsort label-6045
SELECT + SUM ( - + ( + + ( - 70 ) ) ) + + NULLIF ( + 56, - 35 ) / 62
----
70

query I rowsort
SELECT + CASE + - ( + COALESCE ( + + 27, - 95 ) ) WHEN - 21 * + + 89 - 69 * + ( - 59 ) * + 46 + 47 THEN 17 END
----
NULL

query I rowsort
SELECT DISTINCT 94 * + 48
----
4512

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT MIN( + - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-6048
SELECT MIN ( + - 20 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6049
SELECT ALL 29 + + 27 + CASE ( ( - + ( + 47 ) ) ) WHEN 32 * + CAST( + - 74 AS SIGNED ) * + - NULLIF ( COUNT( * ), + 35 + 88 ) THEN NULL ELSE COUNT( * ) * 6 + - 21 END + + 27 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL 29 + + 27 + CASE ( ( - + ( + 47 ) ) ) WHEN 32 * + CAST ( + - 74 AS INTEGER ) * + - NULLIF ( COUNT ( * ), + 35 + 88 ) THEN NULL ELSE COUNT ( * ) * 6 + - 21 END + + 27 AS col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6050
SELECT DISTINCT COALESCE ( 87, + - 68 DIV + MIN( + + 69 ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT COALESCE ( 87, + - 68 / + MIN ( + + 69 ) ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT ALL + 7 + - + 70 + + + COALESCE ( 73, 60, - CASE - - 68 WHEN - 10 + + + 73 + - + 68 THEN - - CASE - 71 WHEN + 80 + + 40 THEN COALESCE ( 97, + 20, COUNT( * ) ) * ( - COUNT( * ) * CASE - COUNT( * ) / - COALESCE ( - 57, - 36, - 40 ) WHEN - 70 THEN 91 WHEN 27 / + 8 THEN ( + 96 ) WHEN COUNT( * ) + - CASE - ( COUNT( * ) ) + + 42 WHEN 28 + 29 / + 22 THEN 52 ELSE - 5 END * 80 THEN + 18 * + 4 END + - 62 ) ELSE - 86 * + 35 END WHEN + 21 THEN NULL ELSE NULL END + - 43 ) + - CASE 32 WHEN - 21 * - 86 THEN + 88 WHEN ( + 58 ) THEN 73 WHEN 84 * 62 + - 20 THEN MIN( 7 ) * 17 + 74 WHEN + COUNT( * ) THEN NULL ELSE - 94 END
----
104

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL + 7 + - + 70 + + + COALESCE ( 73, 60, - CASE - - 68 WHEN - 10 + + + 73 + - + 68 THEN - - CASE - 71 WHEN + 80 + + 40 THEN COALESCE ( 97, + 20, COUNT ( * ) ) * ( - COUNT ( * ) * CASE - COUNT ( * ) / - COALESCE ( - 57, - 36, - 40 ) WHEN - 70 THEN 91 WHEN 27 / + 8 THEN ( + 96 ) WHEN COUNT ( * ) + - CASE - ( COUNT ( * ) ) + + 42 WHEN 28 + 29 / + 22 THEN 52 ELSE - 5 END * 80 THEN + 18 * + 4 END + - 62 ) ELSE - 86 * + 35 END WHEN + 21 THEN NULL ELSE NULL END + - 43 ) + - CASE 32 WHEN - 21 * - 86 THEN + 88 WHEN ( + 58 ) THEN 73 WHEN 84 * 62 + - 20 THEN MIN ( 7 ) * 17 + 74 WHEN + COUNT ( * ) THEN NULL ELSE - 94 END
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT DISTINCT 22 + + 61 + + 12 + COUNT( * ) / CASE 89 WHEN + - MAX( 97 ) THEN NULL WHEN - 8 + 64 * - 49 THEN + 28 WHEN - 77 THEN - 58 * - COUNT( * ) END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT 22 + + 61 + + 12 + COUNT ( * ) / CASE 89 WHEN + - MAX ( 97 ) THEN NULL WHEN - 8 + 64 * - 49 THEN + 28 WHEN - 77 THEN - 58 * - COUNT ( * ) END * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT ALL SUM( DISTINCT + - 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL SUM ( DISTINCT + - 5 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT DISTINCT COUNT( - COALESCE ( + + 21, 6 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT COUNT ( - COALESCE ( + + 21, 6 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT ALL - ( MIN( ALL - 6 ) ) + - 28 * 20
----
-554

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL - ( MIN ( ALL - 6 ) ) + - 28 * 20
----
-554

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT - 57 + - 65 + + 14 * + COUNT( * ) col0
----
-108

skipif mysql # not compatible
query I rowsort label-6056
SELECT - 57 + - 65 + + 14 * + COUNT ( * ) col0
----
-108

query I rowsort
SELECT DISTINCT + 35 * 73
----
2555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6058
SELECT DISTINCT CASE 14 WHEN + - COALESCE ( + - 96, 23, ( - 37 ) ) * 71 + - - COUNT( * ) THEN NULL WHEN + ( - CAST( 92 AS SIGNED ) ) THEN 22 + + 41 ELSE NULL END / ( COUNT( * ) / - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT CASE 14 WHEN + - COALESCE ( + - 96, 23, ( - 37 ) ) * 71 + - - COUNT ( * ) THEN NULL WHEN + ( - CAST ( 92 AS INTEGER ) ) THEN 22 + + 41 ELSE NULL END / ( COUNT ( * ) / - 60 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT DISTINCT ( - ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT ( - ( COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT DISTINCT - ( ( - - 89 ) ) - + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT - ( ( - - 89 ) ) - + COUNT ( * )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6061
SELECT DISTINCT CAST( + + 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT CAST ( + + 7 AS INTEGER )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6062
SELECT ALL - + 58 - + - CAST( NULL AS SIGNED ) * - 68 * 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL - + 58 - + - CAST ( NULL AS INTEGER ) * - 68 * 78 AS col0
----
NULL

query I rowsort
SELECT ALL - CASE 86 WHEN + 20 THEN + 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT - - COUNT( * ) + + 37
----
38

skipif mysql # not compatible
query I rowsort label-6064
SELECT - - COUNT ( * ) + + 37
----
38

query I rowsort
SELECT ALL + - 60 col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT DISTINCT + COALESCE ( ( ( + COUNT( * ) ) ), - 41 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6066
SELECT DISTINCT + COALESCE ( ( ( + COUNT ( * ) ) ), - 41 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 63 * - 55 + - + 77 AS col1
----
3388

query I rowsort
SELECT ALL - 30 * ( + - 58 ) AS col2
----
1740

query I rowsort
SELECT ALL + 19 * + 84
----
1596

query I rowsort
SELECT - - 13 * - - 8 + + - 88 + 5
----
21

query I rowsort
SELECT + 79 + ( + 69 ) AS col0
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6072
SELECT CASE 60 WHEN 87 + - CAST( NULL AS DECIMAL ) * - COALESCE ( + - 94, - - 77 - 19 + + + COUNT( * ), - - 91 - + - COUNT( * ) ) THEN CAST( NULL AS SIGNED ) + - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6072
SELECT CASE 60 WHEN 87 + - CAST ( NULL AS REAL ) * - COALESCE ( + - 94, - - 77 - 19 + + + COUNT ( * ), - - 91 - + - COUNT ( * ) ) THEN CAST ( NULL AS INTEGER ) + - 92 END
----
NULL

query I rowsort
SELECT ( - 23 ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6074
SELECT ALL + - ( + + 95 ) / - - 62 * - + CAST( NULL AS SIGNED ) + 67 + + ( - 64 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL + - ( + + 95 ) / - - 62 * - + CAST ( NULL AS INTEGER ) + 67 + + ( - 64 ) AS col0
----
NULL

query I rowsort
SELECT ALL - + 12 * + 73 + + + 90 * - 16
----
-2316

query I rowsort
SELECT - COALESCE ( + NULLIF ( 17, + 25 + + 85 + - ( - 24 ) / - + 31 * 4 * - 36 * - 49 ), 23 ) - + 71 * 23
----
-1650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6077
SELECT + 46 * - COALESCE ( - NULLIF ( - 59, + 4 + COUNT( * ) ), + COUNT( * ), + 63 * + - CAST( + + COUNT( * ) AS SIGNED ) ) * - 43 AS col2
----
116702

skipif mysql # not compatible
query I rowsort label-6077
SELECT + 46 * - COALESCE ( - NULLIF ( - 59, + 4 + COUNT ( * ) ), + COUNT ( * ), + 63 * + - CAST ( + + COUNT ( * ) AS INTEGER ) ) * - 43 AS col2
----
116702

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT DISTINCT + COUNT( CASE 31 WHEN 38 THEN 35 * - 59 END ) * 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT + COUNT ( CASE 31 WHEN 38 THEN 35 * - 59 END ) * 20 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT ALL 62 * NULLIF ( - + ( - + 58 ), 4 + 49 * + NULLIF ( 40, 5 ) ) * - - COUNT( * ) + - + 57 - - 86 * + + MIN( 9 ) * 64 + 61 AS col0
----
53136

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL 62 * NULLIF ( - + ( - + 58 ), 4 + 49 * + NULLIF ( 40, 5 ) ) * - - COUNT ( * ) + - + 57 - - 86 * + + MIN ( 9 ) * 64 + 61 AS col0
----
53136

query I rowsort
SELECT + ( - + 46 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT ALL - COUNT( * ) * - 87 * + COUNT( * ) * - + 86 + + 23 AS col1
----
-7459

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL - COUNT ( * ) * - 87 * + COUNT ( * ) * - + 86 + + 23 AS col1
----
-7459

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT DISTINCT - 28 * + 90 + COUNT( * ) AS col1
----
-2519

skipif mysql # not compatible
query I rowsort label-6082
SELECT DISTINCT - 28 * + 90 + COUNT ( * ) AS col1
----
-2519

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6083
SELECT + CAST( NULL AS SIGNED ), - 94 AS col1
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-6083
SELECT + CAST ( NULL AS INTEGER ), - 94 AS col1
----
NULL
-94

query I rowsort
SELECT + 52 - + 71 AS col1
----
-19

query I rowsort
SELECT + 81 * - 74 * + + 96 * ( - 44 ) AS col0
----
25318656

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6086
SELECT + 40 * - - 65 * 85, - 39 * + + 70 + 81 + - ( - 49 ) DIV - 62 - - COUNT( * ) DIV + - 10 * + 93 + - 24 AS col1
----
221000
-2673

skipif mysql # not compatible
query II rowsort label-6086
SELECT + 40 * - - 65 * 85, - 39 * + + 70 + 81 + - ( - 49 ) / - 62 - - COUNT ( * ) / + - 10 * + 93 + - 24 AS col1
----
221000
-2673

query I rowsort
SELECT - 45 * - 81 AS col2
----
3645

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6088
SELECT - CAST( NULL AS SIGNED ) AS col0, 90
----
NULL
90

skipif mysql # not compatible
query II rowsort label-6088
SELECT - CAST ( NULL AS INTEGER ) AS col0, 90
----
NULL
90

query I rowsort
SELECT + 16 + - - 40
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT SUM( + 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6090
SELECT SUM ( + 82 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6091
SELECT DISTINCT ( + MAX( + + 68 ) ) AS col1, 8
----
68
8

skipif mysql # not compatible
query II rowsort label-6091
SELECT DISTINCT ( + MAX ( + + 68 ) ) AS col1, 8
----
68
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6092
SELECT DISTINCT COUNT( * ) AS col0, 67 DIV - + 44 AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-6092
SELECT DISTINCT COUNT ( * ) AS col0, 67 / - + 44 AS col1
----
1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6093
SELECT 7, - COUNT( * ) * - 82 + - 52 col0
----
7
30

skipif mysql # not compatible
query II rowsort label-6093
SELECT 7, - COUNT ( * ) * - 82 + - 52 col0
----
7
30

query II rowsort
SELECT ALL 27, - 86 + + 71 AS col1
----
27
-15

query I rowsort
SELECT 38 + + - 11 * 71 col2
----
-743

onlyif mysql # DIV for integer division: 
query I rowsort label-6096
SELECT ALL + 74 DIV + 8 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL + 74 / + 8 AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6097
SELECT 4 DIV + CAST( 58 AS SIGNED ), + COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-6097
SELECT 4 / + CAST ( 58 AS INTEGER ), + COUNT ( * ) AS col2
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6098
SELECT - 18 + + + 80 - 70 + - CAST( - 14 AS SIGNED ) * + - 45
----
-638

skipif mysql # not compatible
query I rowsort label-6098
SELECT - 18 + + + 80 - 70 + - CAST ( - 14 AS INTEGER ) * + - 45
----
-638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6099
SELECT ALL + CAST( NULL AS SIGNED ) / - - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL + CAST ( NULL AS INTEGER ) / - - 27 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6100
SELECT ( CAST( NULL AS SIGNED ) ) / - - CAST( 97 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT ( CAST ( NULL AS INTEGER ) ) / - - CAST ( 97 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT ALL - - CASE - 78 WHEN + COUNT( - 34 ) * - 62 * 75 * 53 THEN NULL ELSE + + 10 END + + 16 - + - 5 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL - - CASE - 78 WHEN + COUNT ( - 34 ) * - 62 * 75 * 53 THEN NULL ELSE + + 10 END + + 16 - + - 5 AS col1
----
31

query I rowsort
SELECT DISTINCT - 31 + - 51 + + + 89 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT 93 * - - COUNT( * ) + + - 9 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-6103
SELECT 93 * - - COUNT ( * ) + + - 9 AS col1
----
84

query I rowsort
SELECT ALL - + ( - 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT + MAX( + 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-6105
SELECT + MAX ( + 34 ) AS col1
----
34

query I rowsort
SELECT DISTINCT + 96 + + 13 - - 17 * - 44 * 7 AS col2
----
-5127

query I rowsort
SELECT DISTINCT 35 + + + 31 AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6108
SELECT ALL CAST( + - 65 AS SIGNED ) + 28 - + + COUNT( * ) * CASE COUNT( * ) WHEN 20 + + 79 + 26 THEN NULL WHEN - MAX( ALL + 60 ) + + + CAST( + + COUNT( * ) AS SIGNED ) * NULLIF ( 65, 64 * 42 ) + 53 THEN + 52 ELSE - 89 END + 56 * + 34 col1
----
1956

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL CAST ( + - 65 AS INTEGER ) + 28 - + + COUNT ( * ) * CASE COUNT ( * ) WHEN 20 + + 79 + 26 THEN NULL WHEN - MAX ( ALL + 60 ) + + + CAST ( + + COUNT ( * ) AS INTEGER ) * NULLIF ( 65, 64 * 42 ) + 53 THEN + 52 ELSE - 89 END + 56 * + 34 col1
----
1956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6109
SELECT 52 * - - 38 DIV COUNT( ALL 56 ) + + + 26 + COUNT( * )
----
2003

skipif mysql # not compatible
query I rowsort label-6109
SELECT 52 * - - 38 / COUNT ( ALL 56 ) + + + 26 + COUNT ( * )
----
2003

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT DISTINCT + SUM( ALL + 51 ) * - 38 * - + 89 + 29 AS col0
----
172511

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT + SUM ( ALL + 51 ) * - 38 * - + 89 + 29 AS col0
----
172511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6111
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6112
SELECT 29 + + - 80 + - + ( + COUNT( * ) ) AS col0, + 63 AS col0
----
-52
63

skipif mysql # not compatible
query II rowsort label-6112
SELECT 29 + + - 80 + - + ( + COUNT ( * ) ) AS col0, + 63 AS col0
----
-52
63

query I rowsort
SELECT 32 * - 77 AS col0
----
-2464

query I rowsort
SELECT + 19 * 87 + - 89
----
1564

query I rowsort
SELECT 58 * + - 6 AS col1
----
-348

query I rowsort
SELECT 64 + 89 + - 77
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6117
SELECT 48 DIV + - 93 * - 72
----
0

skipif mysql # not compatible
query I rowsort label-6117
SELECT 48 / + - 93 * - 72
----
0

query I rowsort
SELECT DISTINCT 10 * 93 * - + 25 * - 13 AS col0
----
302250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6119
SELECT - 80 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT - 80 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 50 * 13 AS col0
----
-650

query I rowsort
SELECT DISTINCT - ( + - 21 ) * - 12 AS col1
----
-252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6122
SELECT + COUNT( * ) * - + NULLIF ( - COALESCE ( + 52, - COALESCE ( ( 61 ), - COUNT( * ), + + NULLIF ( - 94, + 0 ) - - COUNT( * ) * - 31, - ( - COUNT( DISTINCT + 18 ) ) + - COUNT( * ) ) ), 26 * + 68 ) - 18 DIV 29
----
52

skipif mysql # not compatible
query I rowsort label-6122
SELECT + COUNT ( * ) * - + NULLIF ( - COALESCE ( + 52, - COALESCE ( ( 61 ), - COUNT ( * ), + + NULLIF ( - 94, + 0 ) - - COUNT ( * ) * - 31, - ( - COUNT ( DISTINCT + 18 ) ) + - COUNT ( * ) ) ), 26 * + 68 ) - 18 / 29
----
52

query I rowsort
SELECT 98 + + 57
----
155

query I rowsort
SELECT - - 1 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT - 39 + - 44 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT - 39 + - 44 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT 90 * - COALESCE ( - SUM( DISTINCT - 42 ), - - 15 + - 72, COALESCE ( + - SUM( ALL + - 28 ), + 26, + 27 ) * - 89 * + + 17, + 81 ) * 50
----
-189000

skipif mysql # not compatible
query I rowsort label-6126
SELECT 90 * - COALESCE ( - SUM ( DISTINCT - 42 ), - - 15 + - 72, COALESCE ( + - SUM ( ALL + - 28 ), + 26, + 27 ) * - 89 * + + 17, + 81 ) * 50
----
-189000

query I rowsort
SELECT - - 78 AS col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-6128
SELECT ALL - + SUM( ALL - + 87 ) AS col0, + COUNT( * )
----
87
1

skipif mysql # not compatible
query II rowsort label-6128
SELECT ALL - + SUM ( ALL - + 87 ) AS col0, + COUNT ( * )
----
87
1

query I rowsort
SELECT DISTINCT + 8 * + 54 + 71
----
503

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT - COUNT( 85 ) * + 73 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-6130
SELECT - COUNT ( 85 ) * + 73 AS col0
----
-73

query I rowsort
SELECT ALL 24 * - - 96 * 42
----
96768

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT ALL - SUM( DISTINCT - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL - SUM ( DISTINCT - 56 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6133
SELECT + COUNT( * ) * + COUNT( * ) + CAST( - COUNT( * ) AS SIGNED ) - + COUNT( * ) * + 56 * - 50 + + 54
----
2854

skipif mysql # not compatible
query I rowsort label-6133
SELECT + COUNT ( * ) * + COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER ) - + COUNT ( * ) * + 56 * - 50 + + 54
----
2854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6134
SELECT 39 + - 5 + + + COALESCE ( - CAST( + + 80 AS SIGNED ), + - 93 )
----
-46

skipif mysql # not compatible
query I rowsort label-6134
SELECT 39 + - 5 + + + COALESCE ( - CAST ( + + 80 AS INTEGER ), + - 93 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT COUNT( * ) * + 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6135
SELECT COUNT ( * ) * + 98 AS col0
----
98

query I rowsort
SELECT 49 * - 87
----
-4263

query I rowsort
SELECT 23 - - + 31 col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6138
SELECT ALL - CAST( - - 15 AS SIGNED ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL - CAST ( - - 15 AS INTEGER ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-6139
SELECT COUNT( * ) AS col0, COUNT( * ) * - ( 61 )
----
1
-61

skipif mysql # not compatible
query II rowsort label-6139
SELECT COUNT ( * ) AS col0, COUNT ( * ) * - ( 61 )
----
1
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT DISTINCT - CASE 52 WHEN 22 THEN - 18 ELSE - 9 * + CASE 92 WHEN + 79 + + 39 THEN NULL WHEN + 22 THEN NULL ELSE - 93 + - COUNT( * ) END END
----
-846

skipif mysql # not compatible
query I rowsort label-6140
SELECT DISTINCT - CASE 52 WHEN 22 THEN - 18 ELSE - 9 * + CASE 92 WHEN + 79 + + 39 THEN NULL WHEN + 22 THEN NULL ELSE - 93 + - COUNT ( * ) END END
----
-846

query II rowsort
SELECT DISTINCT - 6 AS col0, NULLIF ( - 93, + 40 + + 5 )
----
-6
-93

query I rowsort
SELECT DISTINCT 39 * - 18
----
-702

query I rowsort
SELECT - 62 - - + 74 col1
----
12

query I rowsort
SELECT - 74 * - - 18
----
-1332

query I rowsort
SELECT ALL - 13 * + 78
----
-1014

query I rowsort
SELECT ALL + ( + ( + ( + 34 ) ) )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6147
SELECT - 73 AS col2, + COUNT( * )
----
-73
1

skipif mysql # not compatible
query II rowsort label-6147
SELECT - 73 AS col2, + COUNT ( * )
----
-73
1

query I rowsort
SELECT ALL - NULLIF ( - 22, + - 37 - 10 ) * + - 53 * 95 * 71 * - 81
----
637038270

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT ALL NULLIF ( - SUM( DISTINCT - 18 ), - 90 ) col1
----
18

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL NULLIF ( - SUM ( DISTINCT - 18 ), - 90 ) col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT DISTINCT + 25 + + MAX( + ( - ( + 65 ) ) )
----
-40

skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT + 25 + + MAX ( + ( - ( + 65 ) ) )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-6151
SELECT + 0 DIV COALESCE ( - ( - 2 ), 75 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6151
SELECT + 0 / COALESCE ( - ( - 2 ), 75 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6152
SELECT - ( + CASE + 0 WHEN - 71 THEN NULL WHEN + 24 * + 22 THEN - 14 WHEN 87 * COUNT( ALL + - CAST( NULL AS SIGNED ) ) * + COUNT( * ) * - - 60 * 71 * - + CASE COUNT( DISTINCT + 68 ) WHEN NULLIF ( CAST( NULL AS DECIMAL ), 6 * - 16 + + 19 ) * 70 THEN ( 76 ) WHEN + 93 + ( + 30 ) * 97 THEN NULL END THEN - 6 * - 23 END ) + + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-6152
SELECT - ( + CASE + 0 WHEN - 71 THEN NULL WHEN + 24 * + 22 THEN - 14 WHEN 87 * COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * - - 60 * 71 * - + CASE COUNT ( DISTINCT + 68 ) WHEN NULLIF ( CAST ( NULL AS REAL ), 6 * - 16 + + 19 ) * 70 THEN ( 76 ) WHEN + 93 + ( + 30 ) * 97 THEN NULL END THEN - 6 * - 23 END ) + + 31
----
NULL

query I rowsort
SELECT - + NULLIF ( 70, + - 32 ) AS col1
----
-70

query I rowsort
SELECT - 67 + 81
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6155
SELECT + - 37 DIV - 63 + - + COUNT( * ) - + 99 AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-6155
SELECT + - 37 / - 63 + - + COUNT ( * ) - + 99 AS col0
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT ALL + 31 + 95 + - + 25 DIV + 35
----
126

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL + 31 + 95 + - + 25 / + 35
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT - + COUNT( * ) + + + 7 + + ( 19 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6157
SELECT - + COUNT ( * ) + + + 7 + + ( 19 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT - SUM( DISTINCT 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-6158
SELECT - SUM ( DISTINCT 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT + + 62 * + 69 + COUNT( * ) * - 86 AS col0
----
4192

skipif mysql # not compatible
query I rowsort label-6159
SELECT + + 62 * + 69 + COUNT ( * ) * - 86 AS col0
----
4192

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT DISTINCT COUNT( * ) * 90 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT COUNT ( * ) * 90 AS col2
----
90

query I rowsort
SELECT + + 76 + + 90
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6162
SELECT DISTINCT + CAST( + + 10 AS SIGNED ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6162
SELECT DISTINCT + CAST ( + + 10 AS INTEGER ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6163
SELECT + 16 + - COUNT( * ) - + 57 DIV 42 col0
----
14

skipif mysql # not compatible
query I rowsort label-6163
SELECT + 16 + - COUNT ( * ) - + 57 / 42 col0
----
14

query I rowsort
SELECT + 39 + 77 AS col1
----
116

query I rowsort
SELECT DISTINCT - 88 - + + 79
----
-167

onlyif mysql # aggregate syntax: 
query II rowsort label-6166
SELECT ( COUNT( * ) ), + 3 AS col0
----
1
3

skipif mysql # not compatible
query II rowsort label-6166
SELECT ( COUNT ( * ) ), + 3 AS col0
----
1
3

query I rowsort
SELECT 89 * + - 34 + + 97 - - 13
----
-2916

query I rowsort
SELECT - 46 * + 34 * - 41 AS col0
----
64124

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6169
SELECT DISTINCT + 65 AS col0, CAST( NULL AS SIGNED ) + + 12 AS col2
----
65
NULL

skipif mysql # not compatible
query II rowsort label-6169
SELECT DISTINCT + 65 AS col0, CAST ( NULL AS INTEGER ) + + 12 AS col2
----
65
NULL

query I rowsort
SELECT + 93 + + 42 * - 27 * + - 29 col1
----
32979

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6171
SELECT ALL 24 * + NULLIF ( COUNT( * ), CAST( NULL AS SIGNED ) + + - 70 ) - - - 86 + - + 39 col0
----
-101

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL 24 * + NULLIF ( COUNT ( * ), CAST ( NULL AS INTEGER ) + + - 70 ) - - - 86 + - + 39 col0
----
-101

query I rowsort
SELECT + 10 * - 59 AS col0
----
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT ALL COUNT( * ) * 80
----
80

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL COUNT ( * ) * 80
----
80

query I rowsort
SELECT ( 63 ) col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6175
SELECT COUNT( * ) * + + 94 + 60 + - 11 AS col0, + 26 + - COUNT( * )
----
143
25

skipif mysql # not compatible
query II rowsort label-6175
SELECT COUNT ( * ) * + + 94 + 60 + - 11 AS col0, + 26 + - COUNT ( * )
----
143
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT NULLIF ( + + COALESCE ( ( + - 4 ), - 43 * - SUM( ALL - 24 ) + + 97 - + 65 ), COUNT( + 6 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-6176
SELECT NULLIF ( + + COALESCE ( ( + - 4 ), - 43 * - SUM ( ALL - 24 ) + + 97 - + 65 ), COUNT ( + 6 ) )
----
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-6177
SELECT DISTINCT + 0, + 85 DIV 45 AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-6177
SELECT DISTINCT + 0, + 85 / 45 AS col1
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6178
SELECT + 74 DIV + ( COUNT( + - 32 ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6178
SELECT + 74 / + ( COUNT ( + - 32 ) ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6179
SELECT - 39 + + CAST( + 96 AS SIGNED ) + + 72 * COALESCE ( - COUNT( * ), - 17 * + 23 )
----
-15

skipif mysql # not compatible
query I rowsort label-6179
SELECT - 39 + + CAST ( + 96 AS INTEGER ) + + 72 * COALESCE ( - COUNT ( * ), - 17 * + 23 )
----
-15

query I rowsort
SELECT + 51 * + COALESCE ( - 39, - 54 ) AS col0
----
-1989

query II rowsort
SELECT + 14 AS col2, + 20 * - - 67 AS col2
----
14
1340

query I rowsort
SELECT + 68 + 84
----
152

query II rowsort
SELECT + 68 AS col2, - 86 * 26 * + 3 * - 25 * - COALESCE ( + 54, - ( - 61 ) + COALESCE ( - 89, - 2, + - 43 ) ) / + 50 + AVG ( - CASE 57 WHEN - 55 THEN - 9 ELSE NULL END )
----
68
NULL

query I rowsort
SELECT COALESCE ( + 69, - - 24 * 19 )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6185
SELECT - NULLIF ( + SUM( 64 ), + + MAX( DISTINCT + 90 ) * ( + 9 ) + + COUNT( * ) / - 26 ) + - - 72 * - MIN( + ( + 67 ) ) + + 92 AS col2, + 17 - - MAX( ALL 22 )
----
-4796
39

skipif mysql # not compatible
query II rowsort label-6185
SELECT - NULLIF ( + SUM ( 64 ), + + MAX ( DISTINCT + 90 ) * ( + 9 ) + + COUNT ( * ) / - 26 ) + - - 72 * - MIN ( + ( + 67 ) ) + + 92 AS col2, + 17 - - MAX ( ALL 22 )
----
-4796
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6186
SELECT DISTINCT + COUNT( * ) col0, - 29 + SUM( - - 60 ) + - 72 + + SUM( + 85 ) * + 69 col0
----
1
5824

skipif mysql # not compatible
query II rowsort label-6186
SELECT DISTINCT + COUNT ( * ) col0, - 29 + SUM ( - - 60 ) + - 72 + + SUM ( + 85 ) * + 69 col0
----
1
5824

onlyif mysql # DIV for integer division: 
query I rowsort label-6187
SELECT DISTINCT + COALESCE ( - - 11, + 24, + 30 DIV - + 60 * + + 44 * + + 16 * + 47 )
----
11

skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT + COALESCE ( - - 11, + 24, + 30 / - + 60 * + + 44 * + + 16 * + 47 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6188
SELECT - - 46 * MAX( ALL 47 ) * + - 40 + 10 - + + 93 - - 31 - - 4 * + 92 * 86 * 25 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT - - 46 * MAX ( ALL 47 ) * + - 40 + 10 - + + 93 - - 31 - - 4 * + 92 * 86 * 25 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - + 41 + 75 col0, 58 col0
----
34
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6190
SELECT ALL 32 * + MIN( - + 77 ) + - + CAST( + 41 AS SIGNED )
----
-2505

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL 32 * + MIN ( - + 77 ) + - + CAST ( + 41 AS INTEGER )
----
-2505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6191
SELECT - - 66 + + COUNT( * ) + + 26 + + 77 / - ( - - 77 ) * - AVG ( ALL CAST( + 16 AS DECIMAL ) ) * - - 23 + + 57 - + 70 + 84 + - 63 / - - ( 87 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6191
SELECT - - 66 + + COUNT ( * ) + + 26 + + 77 / - ( - - 77 ) * - AVG ( ALL CAST ( + 16 AS REAL ) ) * - - 23 + + 57 - + 70 + 84 + - 63 / - - ( 87 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6192
SELECT - + 15 AS col2, COUNT( * ) + + + ( + 48 )
----
-15
49

skipif mysql # not compatible
query II rowsort label-6192
SELECT - + 15 AS col2, COUNT ( * ) + + + ( + 48 )
----
-15
49

query I rowsort
SELECT + 43 + 68 col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT DISTINCT + 52 + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT + 52 + COUNT ( * )
----
53

query I rowsort
SELECT DISTINCT + + 90 * - + 16
----
-1440

onlyif mysql # aggregate syntax: 
query II rowsort label-6196
SELECT 71 AS col1, + SUM( DISTINCT - - 39 ) * + 15 - - NULLIF ( 75, - 51 * 59 ) - - NULLIF ( + ( 1 ), + 50 * + - 72 - + COUNT( * ) + 92 + + SUM( DISTINCT + 69 ) * + COALESCE ( + 23, - SUM( 45 ) ) ) + 54 * 70 AS col0
----
71
4441

skipif mysql # not compatible
query II rowsort label-6196
SELECT 71 AS col1, + SUM ( DISTINCT - - 39 ) * + 15 - - NULLIF ( 75, - 51 * 59 ) - - NULLIF ( + ( 1 ), + 50 * + - 72 - + COUNT ( * ) + 92 + + SUM ( DISTINCT + 69 ) * + COALESCE ( + 23, - SUM ( 45 ) ) ) + 54 * 70 AS col0
----
71
4441

query I rowsort
SELECT - + ( - 57 ) AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6198
SELECT + - 64 DIV + COALESCE ( 96, + 19 ) + - ( - + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-6198
SELECT + - 64 / + COALESCE ( 96, + 19 ) + - ( - + 91 )
----
91

query II rowsort
SELECT 71, + 0 AS col0
----
71
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT - 90 - + 63 * + NULLIF ( - 98, 92 * - - 25 + COUNT( * ) * + 45 ) + - + CASE 27 WHEN - - 16 + - COUNT( * ) THEN - + 53 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT - 90 - + 63 * + NULLIF ( - 98, 92 * - - 25 + COUNT ( * ) * + 45 ) + - + CASE 27 WHEN - - 16 + - COUNT ( * ) THEN - + 53 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT - + 53 AS col2, ( - + 87 ) AS col0
----
-53
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6202
SELECT + NULLIF ( + - ( CASE 75 WHEN 34 THEN + COUNT( * ) * - - NULLIF ( - 54, - + CAST( - NULLIF ( - + 75, + 88 ) AS SIGNED ) * + 2 ) * + - 49 / + 96 * - - 41 + + 6 * COUNT( * ) - 39 END ), + 82 ) / 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6202
SELECT + NULLIF ( + - ( CASE 75 WHEN 34 THEN + COUNT ( * ) * - - NULLIF ( - 54, - + CAST ( - NULLIF ( - + 75, + 88 ) AS INTEGER ) * + 2 ) * + - 49 / + 96 * - - 41 + + 6 * COUNT ( * ) - 39 END ), + 82 ) / 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT ALL COUNT( * ) * 56 col1
----
56

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL COUNT ( * ) * 56 col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6204
SELECT - NULLIF ( CAST( + 23 AS SIGNED ), - + 38 )
----
-23

skipif mysql # not compatible
query I rowsort label-6204
SELECT - NULLIF ( CAST ( + 23 AS INTEGER ), - + 38 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT DISTINCT + ( - 69 ) * - COUNT( * ) * 39 * - CASE + - 36 WHEN + - 84 THEN NULL WHEN 17 THEN - - CASE WHEN NOT NULL NOT BETWEEN - 88 AND - 45 AND 99 IS NOT NULL THEN - COUNT( * ) END * + - 90 * + - 0 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6205
SELECT DISTINCT + ( - 69 ) * - COUNT ( * ) * 39 * - CASE + - 36 WHEN + - 84 THEN NULL WHEN 17 THEN - - CASE WHEN NOT NULL NOT BETWEEN - 88 AND - 45 AND 99 IS NOT NULL THEN - COUNT ( * ) END * + - 90 * + - 0 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT ALL MAX( - - 17 ) * + COUNT( * ) * + - 39
----
-663

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL MAX ( - - 17 ) * + COUNT ( * ) * + - 39
----
-663

query I rowsort
SELECT 31 * + - 48 + - 24 AS col0
----
-1512

query I rowsort
SELECT ( + 59 ) * 29 AS col0
----
1711

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT 57 + + SUM( - - 2 ) + + 31 + + 8
----
98

skipif mysql # not compatible
query I rowsort label-6209
SELECT 57 + + SUM ( - - 2 ) + + 31 + + 8
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT DISTINCT 97 + 86 + - CASE + 38 WHEN 47 + - 22 THEN + + 57 - - COUNT( * ) WHEN 51 THEN NULL END + + COUNT( * ) / + - 88 * COUNT( * ) * 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT 97 + 86 + - CASE + 38 WHEN 47 + - 22 THEN + + 57 - - COUNT ( * ) WHEN 51 THEN NULL END + + COUNT ( * ) / + - 88 * COUNT ( * ) * 14 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT ALL 27 + + 19 * + COUNT( * ) - + 16 - - 57 * - - 10 * 59
----
33660

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL 27 + + 19 * + COUNT ( * ) - + 16 - - 57 * - - 10 * 59
----
33660

query I rowsort
SELECT DISTINCT + 41 * - 95
----
-3895

onlyif mysql # aggregate syntax: 
query II rowsort label-6213
SELECT + ( - 55 ) col1, COUNT( * ) col0
----
-55
1

skipif mysql # not compatible
query II rowsort label-6213
SELECT + ( - 55 ) col1, COUNT ( * ) col0
----
-55
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6214
SELECT - 91 DIV - CASE + 10 WHEN + + ( + 9 ) + - 12 THEN 82 * - + COUNT( * ) ELSE COUNT( * ) * - 10 * - - 43 * 83 END
----
0

skipif mysql # not compatible
query I rowsort label-6214
SELECT - 91 / - CASE + 10 WHEN + + ( + 9 ) + - 12 THEN 82 * - + COUNT ( * ) ELSE COUNT ( * ) * - 10 * - - 43 * 83 END
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6215
SELECT ALL 61 + - CAST( NULL AS SIGNED ) * + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL 61 + - CAST ( NULL AS INTEGER ) * + 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT + + CASE + - 42 WHEN COUNT( * ) * 17 THEN + + 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT + + CASE + - 42 WHEN COUNT ( * ) * 17 THEN + + 11 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6217
SELECT - 58 DIV 56 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6217
SELECT - 58 / 56 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6218
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 67 + + + 99 col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT ALL - 23 + + + 17 + COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL - 23 + + + 17 + COUNT ( * ) AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6221
SELECT ALL - MAX( + 19 ) DIV 96 * - 31 * + + 78 col2
----
0

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL - MAX ( + 19 ) / 96 * - 31 * + + 78 col2
----
0

query II rowsort
SELECT ALL + ( + 28 ) AS col2, 16 AS col1
----
28
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6223
SELECT DISTINCT - 21 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT - 21 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT COALESCE ( + 62, - - 63 - - - 96 )
----
62

query I rowsort
SELECT - 74 + + + ( 39 )
----
-35

query I rowsort
SELECT DISTINCT + + 12 * - 54 AS col0
----
-648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6227
SELECT COUNT( * ) + SUM( DISTINCT 26 ) + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT COUNT ( * ) + SUM ( DISTINCT 26 ) + + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + ( - + 72 ) - + + 35 AS col1
----
-107

query I rowsort
SELECT 33 + + 83 col1
----
116

query I rowsort
SELECT 39 * 9
----
351

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT DISTINCT + COUNT( * ) * + - 94
----
-94

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT + COUNT ( * ) * + - 94
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-6232
SELECT ALL 33 col1, + 17 * COALESCE ( + - 95, CASE - ( - 1 ) WHEN + - MAX( - + 57 ) + - - COUNT( ALL 21 ) THEN NULL WHEN - ( - + 23 ) * - - MIN( ALL - 24 ) THEN NULL WHEN + 18 / - 78 + - 72 + + 48 THEN ( 95 ) ELSE NULL END, - 73 + + 8 ) * ( - 94 )
----
33
151810

skipif mysql # not compatible
query II rowsort label-6232
SELECT ALL 33 col1, + 17 * COALESCE ( + - 95, CASE - ( - 1 ) WHEN + - MAX ( - + 57 ) + - - COUNT ( ALL 21 ) THEN NULL WHEN - ( - + 23 ) * - - MIN ( ALL - 24 ) THEN NULL WHEN + 18 / - 78 + - 72 + + 48 THEN ( 95 ) ELSE NULL END, - 73 + + 8 ) * ( - 94 )
----
33
151810

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT SUM( + 1 ) + - 86 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-6233
SELECT SUM ( + 1 ) + - 86 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT COUNT( + + ( - 15 ) ) + - - 17
----
18

skipif mysql # not compatible
query I rowsort label-6234
SELECT COUNT ( + + ( - 15 ) ) + - - 17
----
18

query I rowsort
SELECT 29 * + - 0 * + 85 AS col1
----
0

query I rowsort
SELECT 67 + 51 * + 86 + + - 36 AS col0
----
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT 42 * - SUM( ALL ( + + 40 ) )
----
-1680

skipif mysql # not compatible
query I rowsort label-6237
SELECT 42 * - SUM ( ALL ( + + 40 ) )
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT ALL 63 + + COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL 63 + + COUNT ( * ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT ALL - MAX( - - 73 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL - MAX ( - - 73 ) AS col1
----
-73

query I rowsort
SELECT 67 * + 45 * - 95 AS col0
----
-286425

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT DISTINCT - COALESCE ( + ( - - 80 ), + 81 - + - 0 - 12 * + COUNT( * ), - - 5 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT - COALESCE ( + ( - - 80 ), + 81 - + - 0 - 12 * + COUNT ( * ), - - 5 ) AS col0
----
-80

query I rowsort
SELECT ALL + 0 + 77 - ( - + 19 ) * - 63 * + - 96 - 81 AS col0
----
114908

query II rowsort
SELECT 61 col0, + 35 - + 3 AS col2
----
61
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL COUNT( * ) + + 65 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL COUNT ( * ) + + 65 AS col2
----
66

query I rowsort
SELECT DISTINCT 21 + 41 AS col1
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-6246
SELECT 74, + 25 DIV COALESCE ( + 72, - 15 ) AS col2
----
74
0

skipif mysql # not compatible
query II rowsort label-6246
SELECT 74, + 25 / COALESCE ( + 72, - 15 ) AS col2
----
74
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6247
SELECT - 2 * - + 42 * + - 7 + + NULLIF ( - 74, + 88 ) DIV + + 66 - + 63 + 86
----
-566

skipif mysql # not compatible
query I rowsort label-6247
SELECT - 2 * - + 42 * + - 7 + + NULLIF ( - 74, + 88 ) / + + 66 - + 63 + 86
----
-566

onlyif mysql # DIV for integer division: 
query II rowsort label-6248
SELECT + + 65 AS col2, 16 DIV - - 75
----
65
0

skipif mysql # not compatible
query II rowsort label-6248
SELECT + + 65 AS col2, 16 / - - 75
----
65
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6249
SELECT + CAST( NULL AS SIGNED ) + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6249
SELECT + CAST ( NULL AS INTEGER ) + 86
----
NULL

query I rowsort
SELECT 14 * 88
----
1232

onlyif mysql # aggregate syntax: 
query II rowsort label-6251
SELECT ALL - + 16 col1, + COUNT( * ) * - + 14 AS col2
----
-16
-14

skipif mysql # not compatible
query II rowsort label-6251
SELECT ALL - + 16 col1, + COUNT ( * ) * - + 14 AS col2
----
-16
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6252
SELECT + MIN( - - 58 ) * - COUNT( * ) + - CAST( NULL AS SIGNED ) * + - ( + - AVG ( + ( 60 ) ) ) * 35 / - 1 * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6252
SELECT + MIN ( - - 58 ) * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + - ( + - AVG ( + ( 60 ) ) ) * 35 / - 1 * + 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6253
SELECT DISTINCT 95 - + 2 - + 16 * - 4 AS col1, MAX( 88 ) * - 59
----
157
-5192

skipif mysql # not compatible
query II rowsort label-6253
SELECT DISTINCT 95 - + 2 - + 16 * - 4 AS col1, MAX ( 88 ) * - 59
----
157
-5192

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT ALL - + COUNT( - 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL - + COUNT ( - 27 )
----
-1

query I rowsort
SELECT DISTINCT - 25 - - 91 col0
----
66

query I rowsort
SELECT + 83 * + 63 AS col0
----
5229

query I rowsort
SELECT ALL - - 89 * 19 * 56 AS col0
----
94696

query I rowsort
SELECT - 5 + - 67 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT - 49 * - + SUM( 43 ) AS col1
----
2107

skipif mysql # not compatible
query I rowsort label-6259
SELECT - 49 * - + SUM ( 43 ) AS col1
----
2107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6260
SELECT 60 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6260
SELECT 60 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - + ( + 3 )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6262
SELECT 31, COUNT( * ) DIV 12 DIV + 72 AS col2
----
31
0

skipif mysql # not compatible
query II rowsort label-6262
SELECT 31, COUNT ( * ) / 12 / + 72 AS col2
----
31
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT MIN( DISTINCT - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-6263
SELECT MIN ( DISTINCT - 16 )
----
-16

query I rowsort
SELECT ALL + 56 * + ( 27 ) + - CASE 27 WHEN + 38 THEN 54 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT ALL - 76 DIV - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL - 76 / - 89 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6266
SELECT DISTINCT 37, - 23 DIV + 82 AS col0
----
37
0

skipif mysql # not compatible
query II rowsort label-6266
SELECT DISTINCT 37, - 23 / + 82 AS col0
----
37
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6267
SELECT - 70 DIV 93 AS col2, + MAX( DISTINCT 2 ) AS col0
----
0
2

skipif mysql # not compatible
query II rowsort label-6267
SELECT - 70 / 93 AS col2, + MAX ( DISTINCT 2 ) AS col0
----
0
2

query I rowsort
SELECT - ( 12 ) * - 46 col0
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT DISTINCT + 85 + - - COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT + 85 + - - COUNT ( * ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT - 51 - + - 6 * - + COUNT( * ) * - 56 AS col2
----
285

skipif mysql # not compatible
query I rowsort label-6270
SELECT - 51 - + - 6 * - + COUNT ( * ) * - 56 AS col2
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT - ( COUNT( * ) ) * + - 99 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-6271
SELECT - ( COUNT ( * ) ) * + - 99 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT ALL 34 * + 61 * - + MIN( ALL + 73 ) AS col2
----
-151402

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL 34 * + 61 * - + MIN ( ALL + 73 ) AS col2
----
-151402

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT DISTINCT 51 + COALESCE ( 75, + COUNT( DISTINCT + 44 ) ) + 45 + + 85
----
256

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT 51 + COALESCE ( 75, + COUNT ( DISTINCT + 44 ) ) + 45 + + 85
----
256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6274
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN CAST( - 85 AS SIGNED ) THEN NULL ELSE + MIN( + 64 ) END AS col1
----
64

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN CAST ( - 85 AS INTEGER ) THEN NULL ELSE + MIN ( + 64 ) END AS col1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6275
SELECT - 80 * COALESCE ( 95, - 97, + 41 * 77 + + COUNT( * ) * + 62 + - + 76 * - 50 ) AS col1, 94 col1
----
-7600
94

skipif mysql # not compatible
query II rowsort label-6275
SELECT - 80 * COALESCE ( 95, - 97, + 41 * 77 + + COUNT ( * ) * + 62 + - + 76 * - 50 ) AS col1, 94 col1
----
-7600
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6276
SELECT ALL ( - 69 ) * - 30 + + COALESCE ( - - COUNT( * ), + 2 DIV + CAST( NULL AS SIGNED ) + NULLIF ( - COUNT( * ), 59 ), + - 12 + + + 44 * 25 + + 43 ) + + COALESCE ( + 54, + 22 )
----
2125

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL ( - 69 ) * - 30 + + COALESCE ( - - COUNT ( * ), + 2 / + CAST ( NULL AS INTEGER ) + NULLIF ( - COUNT ( * ), 59 ), + - 12 + + + 44 * 25 + + 43 ) + + COALESCE ( + 54, + 22 )
----
2125

query I rowsort
SELECT - ( - - 91 ) - 8 AS col2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6278
SELECT - 62 * + CAST( 66 AS SIGNED )
----
-4092

skipif mysql # not compatible
query I rowsort label-6278
SELECT - 62 * + CAST ( 66 AS INTEGER )
----
-4092

onlyif mysql # DIV for integer division: 
query I rowsort label-6279
SELECT ALL - 87 DIV + 23 col2
----
-3

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL - 87 / + 23 col2
----
-3

query I rowsort
SELECT ALL - 23 * + ( - 37 ) AS col1
----
851

query I rowsort
SELECT DISTINCT + + 88 AS col0
----
88

query I rowsort
SELECT ALL - - 83 * + 11 - + 32
----
881

onlyif mysql # aggregate syntax: 
query II rowsort label-6283
SELECT ALL + + MAX( DISTINCT - 6 ) * COUNT( * ) * 67, - 3 col0
----
-402
-3

skipif mysql # not compatible
query II rowsort label-6283
SELECT ALL + + MAX ( DISTINCT - 6 ) * COUNT ( * ) * 67, - 3 col0
----
-402
-3

query I rowsort
SELECT - - 66 - + COALESCE ( - - 99, + 2 + + 50 + 98 ) + + 88 + + 24 + - + 27 * - 61 * 10 AS col0
----
16549

query I rowsort
SELECT - + 7 * + + ( + - 49 ) * + ( - 37 ) * 32
----
-406112

query I rowsort
SELECT + - COALESCE ( + 47, - - 35, - 13 ) + - 3 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-6287
SELECT ALL NULLIF ( + 0, 48 / + COUNT( * ) ) AS col2, + 15 AS col1
----
0
15

skipif mysql # not compatible
query II rowsort label-6287
SELECT ALL NULLIF ( + 0, 48 / + COUNT ( * ) ) AS col2, + 15 AS col1
----
0
15

query I rowsort
SELECT ALL 53 + 32 AS col2
----
85

query II rowsort
SELECT ALL 78 AS col1, - 54 AS col0
----
78
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6290
SELECT ALL SUM( - CAST( + 62 AS SIGNED ) ) * + - 20 * + ( - 34 ) col0
----
-42160

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL SUM ( - CAST ( + 62 AS INTEGER ) ) * + - 20 * + ( - 34 ) col0
----
-42160

query I rowsort
SELECT + 58 + 80 AS col0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6292
SELECT + 64 * + + ( - - COUNT( * ) ) AS col1, + CAST( NULL AS SIGNED ) * 24
----
64
NULL

skipif mysql # not compatible
query II rowsort label-6292
SELECT + 64 * + + ( - - COUNT ( * ) ) AS col1, + CAST ( NULL AS INTEGER ) * 24
----
64
NULL

query II rowsort
SELECT 0 AS col1, 0 * 98 * ( - 96 )
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT + SUM( NULLIF ( - - 32, - COALESCE ( - 48, - - 84 ) ) ) + ( - 17 )
----
15

skipif mysql # not compatible
query I rowsort label-6294
SELECT + SUM ( NULLIF ( - - 32, - COALESCE ( - 48, - - 84 ) ) ) + ( - 17 )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6295
SELECT DISTINCT 45 + - 66 DIV COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-6295
SELECT DISTINCT 45 + - 66 / COUNT ( * )
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-6296
SELECT ALL 4 DIV 23
----
0

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL 4 / 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT ALL - COUNT( * ) + + + 63
----
62

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL - COUNT ( * ) + + + 63
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT - 74 + - COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-6298
SELECT - 74 + - COUNT ( * ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT DISTINCT MAX( 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT MAX ( 99 ) AS col1
----
99

query I rowsort
SELECT DISTINCT 97 + - - 14 AS col0
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6301
SELECT - 26 + - - 86 * - 44 + - 3 + - - COUNT( * ) * 70 * - 65 / COUNT( * ) - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6301
SELECT - 26 + - - 86 * - 44 + - 3 + - - COUNT ( * ) * 70 * - 65 / COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6302
SELECT ALL 75 DIV + 28 - - 65
----
67

skipif mysql # not compatible
query I rowsort label-6302
SELECT ALL 75 / + 28 - - 65
----
67

query I rowsort
SELECT + 38 * 16 AS col1
----
608

query I rowsort
SELECT - 44 * - 47
----
2068

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT DISTINCT + 19 DIV - 46 - - 14
----
14

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT + 19 / - 46 - - 14
----
14

query I rowsort
SELECT DISTINCT - 74 * - - 92 AS col1
----
-6808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6307
SELECT - 38 * - COUNT( * ) DIV + + 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6307
SELECT - 38 * - COUNT ( * ) / + + 51 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT DISTINCT - 25 * - CASE + + 56 WHEN + MIN( ALL 23 ) + - NULLIF ( - + ( + - 23 ), - - 46 * 92 * - 75 * + + 59 + + - COUNT( * ) / COUNT( * ) ) * COUNT( * ) THEN - 12 ELSE ( 73 ) * ( + 70 ) END * - 26 AS col1
----
-3321500

skipif mysql # not compatible
query I rowsort label-6308
SELECT DISTINCT - 25 * - CASE + + 56 WHEN + MIN ( ALL 23 ) + - NULLIF ( - + ( + - 23 ), - - 46 * 92 * - 75 * + + 59 + + - COUNT ( * ) / COUNT ( * ) ) * COUNT ( * ) THEN - 12 ELSE ( 73 ) * ( + 70 ) END * - 26 AS col1
----
-3321500

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT + + COUNT( - 6 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6309
SELECT + + COUNT ( - 6 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6310
SELECT - 65 DIV - - 80 * - ( - 82 )
----
0

skipif mysql # not compatible
query I rowsort label-6310
SELECT - 65 / - - 80 * - ( - 82 )
----
0

query I rowsort
SELECT - - 86 * 44 AS col1
----
3784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6312
SELECT + + CAST( 58 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-6312
SELECT + + CAST ( 58 AS INTEGER )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT - 27 + COUNT( DISTINCT + 61 )
----
-26

skipif mysql # not compatible
query I rowsort label-6313
SELECT - 27 + COUNT ( DISTINCT + 61 )
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6314
SELECT + - 31 DIV COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-6314
SELECT + - 31 / COUNT ( * ) AS col1
----
-31

query I rowsort
SELECT - 40 + - 72 AS col2
----
-112

query I rowsort
SELECT DISTINCT + - 5 * + 42 col0
----
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-6317
SELECT DISTINCT + - 88 DIV + 12
----
-7

skipif mysql # not compatible
query I rowsort label-6317
SELECT DISTINCT + - 88 / + 12
----
-7

query I rowsort
SELECT ALL - 40 + + 41 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6319
SELECT 22 DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-6319
SELECT 22 / + 31
----
0

query I rowsort
SELECT ALL + 59 + + 5
----
64

query I rowsort
SELECT DISTINCT + + 13 * + 62 * + - 22 * - 5 AS col1
----
88660

query I rowsort
SELECT ALL - 90 + 5 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-6323
SELECT COUNT( ALL + 91 ) + - - COUNT( * ) AS col0, 46 AS col1
----
2
46

skipif mysql # not compatible
query II rowsort label-6323
SELECT COUNT ( ALL + 91 ) + - - COUNT ( * ) AS col0, 46 AS col1
----
2
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT ALL - SUM( - - 0 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL - SUM ( - - 0 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT - - NULLIF ( + - 45, COUNT( - 55 ) * - COUNT( * ) * + 80 / + - NULLIF ( - 37, + + 92 ) ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6325
SELECT - - NULLIF ( + - 45, COUNT ( - 55 ) * - COUNT ( * ) * + 80 / + - NULLIF ( - 37, + + 92 ) ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT ALL + 31 + + - MIN( + + 11 ) + 22
----
42

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL + 31 + + - MIN ( + + 11 ) + 22
----
42

query I rowsort
SELECT 77 + - 85
----
-8

query I rowsort
SELECT ALL 46 + - - 92
----
138

query II rowsort
SELECT 39, + 53 + - 23 col0
----
39
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6330
SELECT 42 AS col2, CAST( NULL AS SIGNED ) * + 78 + COUNT( * )
----
42
NULL

skipif mysql # not compatible
query II rowsort label-6330
SELECT 42 AS col2, CAST ( NULL AS INTEGER ) * + 78 + COUNT ( * )
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT DISTINCT - ( - COUNT( * ) ) + ( - COUNT( * ) ) + - - 33 * + 11 * - 17 col0
----
-6171

skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT - ( - COUNT ( * ) ) + ( - COUNT ( * ) ) + - - 33 * + 11 * - 17 col0
----
-6171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6332
SELECT ALL 88, + MIN( - CAST( + 55 AS SIGNED ) ) AS col1
----
88
-55

skipif mysql # not compatible
query II rowsort label-6332
SELECT ALL 88, + MIN ( - CAST ( + 55 AS INTEGER ) ) AS col1
----
88
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-6333
SELECT ALL 39, 41 * COUNT( * ) * + 71 AS col0
----
39
2911

skipif mysql # not compatible
query II rowsort label-6333
SELECT ALL 39, 41 * COUNT ( * ) * + 71 AS col0
----
39
2911

query I rowsort
SELECT 67 * + 16 * - 52 AS col2
----
-55744

query I rowsort
SELECT DISTINCT 34 * 34
----
1156

query I rowsort
SELECT ALL 63 * 80 AS col0
----
5040

query II rowsort
SELECT - 51 AS col1, - 11 + + 38 * + 95
----
-51
3599

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT SUM( DISTINCT 90 ) * + 41 AS col0
----
3690

skipif mysql # not compatible
query I rowsort label-6338
SELECT SUM ( DISTINCT 90 ) * + 41 AS col0
----
3690

query I rowsort
SELECT 63 * + - 26 * + 30 AS col1
----
-49140

query II rowsort
SELECT - 6 AS col2, 41 + 24 * - 96 * 34
----
-6
-78295

query II rowsort
SELECT 58 AS col2, - 41 AS col1
----
58
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT MAX( ALL - 31 ) - - COUNT( DISTINCT - 40 ) + - + ( + 24 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-6342
SELECT MAX ( ALL - 31 ) - - COUNT ( DISTINCT - 40 ) + - + ( + 24 ) AS col2
----
-54

query I rowsort
SELECT ( 32 ) * - 65
----
-2080

query I rowsort
SELECT DISTINCT 62 * 95
----
5890

query II rowsort
SELECT 77, + 83 AS col2
----
77
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6346
SELECT + 35 * - 80 * - + ( + CAST( NULL AS DECIMAL ) ) - - - 16 - 51 + CASE - 57 WHEN 86 + 3 + + COUNT( * ) THEN NULL WHEN + 58 THEN NULL ELSE - + 59 END + 13 * - 30 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6346
SELECT + 35 * - 80 * - + ( + CAST ( NULL AS REAL ) ) - - - 16 - 51 + CASE - 57 WHEN 86 + 3 + + COUNT ( * ) THEN NULL WHEN + 58 THEN NULL ELSE - + 59 END + 13 * - 30 * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT MIN( 38 ) - 41 + - + 77
----
-80

skipif mysql # not compatible
query I rowsort label-6347
SELECT MIN ( 38 ) - 41 + - + 77
----
-80

query II rowsort
SELECT + 76 AS col2, 29 * 6 col1
----
76
174

query I rowsort
SELECT DISTINCT - - ( 43 )
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-6350
SELECT - 2 * + 70 DIV + 49 + + + 63 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-6350
SELECT - 2 * + 70 / + 49 + + + 63 AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6351
SELECT DISTINCT - - 53 * - 11 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT - - 53 * - 11 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT DISTINCT - COUNT( * ) + + ( + - 54 ) - - 75 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT - COUNT ( * ) + + ( + - 54 ) - - 75 AS col2
----
20

query I rowsort
SELECT ALL + 80 * 59 AS col1
----
4720

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT COUNT( * ) * 77 - + 30 + 53 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-6354
SELECT COUNT ( * ) * 77 - + 30 + 53 AS col0
----
100

query I rowsort
SELECT DISTINCT 17 * + 30 * 74 AS col0
----
37740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6356
SELECT ALL - CAST( - 17 AS SIGNED ) + - 48
----
-31

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL - CAST ( - 17 AS INTEGER ) + - 48
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT ALL + + COUNT( * ) + + NULLIF ( + + 3, - 97 )
----
4

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL + + COUNT ( * ) + + NULLIF ( + + 3, - 97 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT ALL - + ( - - COALESCE ( COUNT( * ), + + 45 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL - + ( - - COALESCE ( COUNT ( * ), + + 45 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6359
SELECT CAST( NULL AS SIGNED ) * + 46 * + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6359
SELECT CAST ( NULL AS INTEGER ) * + 46 * + 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6360
SELECT - COUNT( * ) AS col0, 30 AS col0
----
-1
30

skipif mysql # not compatible
query II rowsort label-6360
SELECT - COUNT ( * ) AS col0, 30 AS col0
----
-1
30

query II rowsort
SELECT DISTINCT + 86 + - + 0 AS col2, + 17
----
86
17

query I rowsort
SELECT 48 - 16 * 67 - + 71 + 15 AS col2
----
-1080

onlyif mysql # DIV for integer division: 
query I rowsort label-6363
SELECT DISTINCT + 26 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT + 26 / - 96
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6364
SELECT ALL - SUM( ALL + 53 ) + - CASE - COUNT( * ) WHEN + NULLIF ( + SUM( ALL CAST( NULL AS SIGNED ) ), - 90 + + 2 * 29 ) THEN + COUNT( * ) END * + 12, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6364
SELECT ALL - SUM ( ALL + 53 ) + - CASE - COUNT ( * ) WHEN + NULLIF ( + SUM ( ALL CAST ( NULL AS INTEGER ) ), - 90 + + 2 * 29 ) THEN + COUNT ( * ) END * + 12, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT ALL + COUNT( * ) * 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL + COUNT ( * ) * 16 AS col2
----
16

query I rowsort
SELECT DISTINCT + 27 * + 9 * + 79 * + - ( - ( - NULLIF ( 1, 42 ) ) )
----
-19197

query I rowsort
SELECT ALL + 9 * - - 27 AS col0
----
243

query I rowsort
SELECT 57 + - 36 * + COALESCE ( 18, ( + + 99 ) )
----
-591

query I rowsort
SELECT 67 + + + 80
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT 2 - + SUM( DISTINCT 90 ) * - COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-6370
SELECT 2 - + SUM ( DISTINCT 90 ) * - COUNT ( * ) AS col1
----
92

query I rowsort
SELECT ALL + 37 - + + 88 col2
----
-51

query II rowsort
SELECT 73 * - 13 * + 70 AS col0, + 42 * - 5 + - 37 AS col2
----
-66430
-247

query I rowsort
SELECT 82 + 36 AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT - MAX( 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-6374
SELECT - MAX ( 83 )
----
-83

query II rowsort
SELECT 92 + 40 AS col0, - 73 * 57 AS col2
----
132
-4161

query I rowsort
SELECT ALL + 37 - 56 + 55
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT MAX( DISTINCT 68 ) * + 20
----
1360

skipif mysql # not compatible
query I rowsort label-6377
SELECT MAX ( DISTINCT 68 ) * + 20
----
1360

query I rowsort
SELECT 2 + + 17 + + 28 * + ( 47 ) * - 13
----
-17089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6379
SELECT DISTINCT MIN( ALL - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT COUNT( * ) + - + 92 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-6380
SELECT COUNT ( * ) + - + 92 AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6381
SELECT - CAST( - 94 AS SIGNED ) + 75 * + 48 * - CASE + + COUNT( * ) WHEN + + COUNT( * ) THEN 34 END * - + COUNT( * ) AS col1
----
122494

skipif mysql # not compatible
query I rowsort label-6381
SELECT - CAST ( - 94 AS INTEGER ) + 75 * + 48 * - CASE + + COUNT ( * ) WHEN + + COUNT ( * ) THEN 34 END * - + COUNT ( * ) AS col1
----
122494

query I rowsort
SELECT DISTINCT 98 * + 60
----
5880

query I rowsort
SELECT CASE WHEN ( NULL ) IS NULL THEN + 29 ELSE NULL END * + - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT ALL COUNT( * ) * + + NULLIF ( 16, 42 )
----
16

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL COUNT ( * ) * + + NULLIF ( 16, 42 )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6385
SELECT COALESCE ( + 13, + + 70 DIV CASE + COUNT( * ) WHEN 46 THEN - + 82 ELSE + - AVG ( + 6 ) * + - 8 + - + 40 + 50 * COUNT( * ) - 42 + - 21 * - 2 * + - 59 END * + ( - ( + CASE + 50 WHEN + 75 THEN NULL ELSE + 2 * NULLIF ( + ( 4 ), - COUNT( * ) + + COUNT( * ) ) END ) ) * 97 + 64 ) DIV - 10 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6385
SELECT COALESCE ( + 13, + + 70 / CASE + COUNT ( * ) WHEN 46 THEN - + 82 ELSE + - AVG ( + 6 ) * + - 8 + - + 40 + 50 * COUNT ( * ) - 42 + - 21 * - 2 * + - 59 END * + ( - ( + CASE + 50 WHEN + 75 THEN NULL ELSE + 2 * NULLIF ( + ( 4 ), - COUNT ( * ) + + COUNT ( * ) ) END ) ) * 97 + 64 ) / - 10 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6386
SELECT 49 + - - 17 AS col0, CAST( NULL AS SIGNED ) AS col2, - 61 AS col2
----
66
NULL
-61

skipif mysql # not compatible
query III rowsort label-6386
SELECT 49 + - - 17 AS col0, CAST ( NULL AS INTEGER ) AS col2, - 61 AS col2
----
66
NULL
-61

query I rowsort
SELECT ALL + - 5 * + 53 * - + 81 * - 51 * - ( + 60 ) + + + 42
----
65682942

query I rowsort
SELECT DISTINCT + - COALESCE ( + 72, - 39 ) col0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-6389
SELECT ALL - 46 * + 16 + 47 DIV + + 38 - + - 87 AS col0
----
-648

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL - 46 * + 16 + 47 / + + 38 - + - 87 AS col0
----
-648

query II rowsort
SELECT + 58 + 44, - 54 AS col2
----
102
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6391
SELECT + + COUNT( * ) * - MAX( + CAST( NULL AS SIGNED ) ) + + + 91 - + 59 + - 71 - - - 21 + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6391
SELECT + + COUNT ( * ) * - MAX ( + CAST ( NULL AS INTEGER ) ) + + + 91 - + 59 + - 71 - - - 21 + + 79
----
NULL

query I rowsort
SELECT + + 77 + + NULLIF ( - 27, + 73 ) * - 45 * 32
----
38957

query I rowsort
SELECT + - 2 + + 67 + 70 * + COALESCE ( + ( - 6 ), - 50 ) + + ( + 39 ) AS col0
----
-316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6394
SELECT 40 * + - ( NULLIF ( - CAST( ( - 36 ) AS SIGNED ), - COUNT( * ) ) ) + + 81 + + ( + CAST( + 30 AS SIGNED ) ) AS col1, 55 / + + CASE - 77 WHEN - + 87 THEN COUNT( * ) WHEN + COALESCE ( + - COUNT( * ), - 59, + - 22 ) THEN + 12 END
----
-1329
NULL

skipif mysql # not compatible
query II rowsort label-6394
SELECT 40 * + - ( NULLIF ( - CAST ( ( - 36 ) AS INTEGER ), - COUNT ( * ) ) ) + + 81 + + ( + CAST ( + 30 AS INTEGER ) ) AS col1, 55 / + + CASE - 77 WHEN - + 87 THEN COUNT ( * ) WHEN + COALESCE ( + - COUNT ( * ), - 59, + - 22 ) THEN + 12 END
----
-1329
NULL

query II rowsort
SELECT ALL 8 * + - 31 * - 10 - - 97 AS col1, - 64 AS col0
----
2577
-64

query I rowsort
SELECT ALL 87 * 12 * + 92
----
96048

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT - 51 + + MAX( 83 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6397
SELECT - 51 + + MAX ( 83 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT ALL MAX( ALL - - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL MAX ( ALL - - 34 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6399
SELECT + ( 58 ) DIV - + 46 * - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6399
SELECT + ( 58 ) / - + 46 * - + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT DISTINCT MAX( DISTINCT 44 ) col0
----
44

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT MAX ( DISTINCT 44 ) col0
----
44

query II rowsort
SELECT - 59, + 42 AS col1
----
-59
42

query I rowsort
SELECT ALL + 6 * 57
----
342

query I rowsort
SELECT - 9 * - + 49
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT DISTINCT MIN( - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-6404
SELECT DISTINCT MIN ( - 54 ) AS col1
----
-54

query I rowsort
SELECT DISTINCT ( + ( + 68 ) ) col0
----
68

query I rowsort
SELECT - ( + 18 ) + 24 * - + ( + - 49 )
----
1158

query I rowsort
SELECT - 31 * 2 col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT MIN( 61 )
----
61

skipif mysql # not compatible
query I rowsort label-6408
SELECT MIN ( 61 )
----
61

query I rowsort
SELECT DISTINCT - - 99 + + 40
----
139

query I rowsort
SELECT - + 24 - 10 + - 4
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6411
SELECT - - NULLIF ( + + 22, CAST( - CAST( + 10 AS SIGNED ) AS SIGNED ) ) - - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-6411
SELECT - - NULLIF ( + + 22, CAST ( - CAST ( + 10 AS INTEGER ) AS INTEGER ) ) - - COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT ALL - + COUNT( * ) + 73
----
72

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL - + COUNT ( * ) + 73
----
72

query I rowsort
SELECT - + 74 * - 81 AS col1
----
5994

query I rowsort
SELECT ALL 50 * - + 39 AS col0
----
-1950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6415
SELECT ALL + + COUNT( * ) / - + ( - - 72 ) + - 32 / - 2 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL + + COUNT ( * ) / - + ( - - 72 ) + - 32 / - 2 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + - 74, 96 - + 99 col2
----
-74
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6417
SELECT DISTINCT - 49 DIV + 93 + + 3 * - 91 AS col1
----
-273

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT - 49 / + 93 + + 3 * - 91 AS col1
----
-273

query I rowsort
SELECT + 47 - - 8
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT DISTINCT 35 * + - 5 * COUNT( * ) * SUM( + 52 )
----
-9100

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT 35 * + - 5 * COUNT ( * ) * SUM ( + 52 )
----
-9100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6420
SELECT + - 48 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6420
SELECT + - 48 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + ( + 47 ) AS col2
----
47

query II rowsort
SELECT DISTINCT + + 57 AS col0, + 0 AS col2
----
57
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6423
SELECT + + 73 + - 26 DIV + 4 * - + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-6423
SELECT + + 73 + - 26 / + 4 * - + COUNT ( * )
----
79

query I rowsort
SELECT DISTINCT - 9 * + 51
----
-459

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL 35 * + COUNT( * ) - + 90
----
-55

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL 35 * + COUNT ( * ) - + 90
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6426
SELECT ALL 76 / - + COUNT( * ) / + CAST( NULL AS SIGNED ) * + ( - 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL 76 / - + COUNT ( * ) / + CAST ( NULL AS INTEGER ) * + ( - 83 )
----
NULL

query I rowsort
SELECT + 82 * + 45 col2
----
3690

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT + ( MAX( - - ( 53 ) ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6428
SELECT + ( MAX ( - - ( 53 ) ) ) AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6429
SELECT + CAST( 34 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-6429
SELECT + CAST ( 34 AS INTEGER )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6430
SELECT ALL 40 DIV - - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL 40 / - - 73 AS col2
----
0

query I rowsort
SELECT + 46 * ( - - 34 ) AS col2
----
1564

query I rowsort
SELECT + 51 * 33 * + - 89 * - 36
----
5392332

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT + MAX( ALL 54 ) - - 76
----
130

skipif mysql # not compatible
query I rowsort label-6433
SELECT + MAX ( ALL 54 ) - - 76
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6434
SELECT + ( + 14 ) * + + 77 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6434
SELECT + ( + 14 ) * + + 77 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT COALESCE ( + 57, + 97 ) AS col1
----
57

query I rowsort
SELECT + 92 * - 45 * 10
----
-41400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6437
SELECT ALL COALESCE ( 67, + - 53 + - 66, + CASE + ( + 48 ) WHEN 85 + 27 THEN + 20 WHEN COUNT( * ) * + + NULLIF ( - 94, 76 ) THEN - COUNT( * ) ELSE + + 1 DIV + AVG ( - 6 ) END * 66 ) AS col1, CAST( 48 AS SIGNED ) * - 32
----
67
-1536

skipif mysql # not compatible
query II rowsort label-6437
SELECT ALL COALESCE ( 67, + - 53 + - 66, + CASE + ( + 48 ) WHEN 85 + 27 THEN + 20 WHEN COUNT ( * ) * + + NULLIF ( - 94, 76 ) THEN - COUNT ( * ) ELSE + + 1 / + AVG ( - 6 ) END * 66 ) AS col1, CAST ( 48 AS INTEGER ) * - 32
----
67
-1536

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT DISTINCT 15 * - CASE + + 43 WHEN COUNT( * ) THEN NULL ELSE 17 * - 56 - + 39 END
----
14865

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT 15 * - CASE + + 43 WHEN COUNT ( * ) THEN NULL ELSE 17 * - 56 - + 39 END
----
14865

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT DISTINCT 33 * + MIN( - 36 ) AS col0
----
-1188

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT 33 * + MIN ( - 36 ) AS col0
----
-1188

query I rowsort
SELECT - 44 * - 50 * - 58
----
-127600

query I rowsort
SELECT - 62 - 10 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT ALL COALESCE ( - 25, + 28 * 8 + - + COUNT( * ), + 26 )
----
-25

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL COALESCE ( - 25, + 28 * 8 + - + COUNT ( * ), + 26 )
----
-25

query I rowsort
SELECT + 32 + 90 * 97 + - - 14
----
8776

query I rowsort
SELECT - 38 + - - 51 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT SUM( - - 50 )
----
50

skipif mysql # not compatible
query I rowsort label-6445
SELECT SUM ( - - 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT DISTINCT + 17 + - SUM( + - 2 ) * + - 9 * - + 77 AS col0
----
1403

skipif mysql # not compatible
query I rowsort label-6446
SELECT DISTINCT + 17 + - SUM ( + - 2 ) * + - 9 * - + 77 AS col0
----
1403

query I rowsort
SELECT ALL + + 9 + + + 29
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-6448
SELECT 20 + + MAX( - + 76 ) * COUNT( * ), 71 AS col1
----
-56
71

skipif mysql # not compatible
query II rowsort label-6448
SELECT 20 + + MAX ( - + 76 ) * COUNT ( * ), 71 AS col1
----
-56
71

query I rowsort
SELECT DISTINCT + + 33 * - 89 - + 17
----
-2954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6450
SELECT 12 + COUNT( * ) + - - 99 + + 6 - + - 3 + + 63 DIV 75 DIV + COUNT( * ) + + 52 * + - 19 * - CAST( - ( - 1 ) AS SIGNED ) AS col0
----
1109

skipif mysql # not compatible
query I rowsort label-6450
SELECT 12 + COUNT ( * ) + - - 99 + + 6 - + - 3 + + 63 / 75 / + COUNT ( * ) + + 52 * + - 19 * - CAST ( - ( - 1 ) AS INTEGER ) AS col0
----
1109

query I rowsort
SELECT ALL + NULLIF ( 81, 51 / - 73 ) + + 40 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT DISTINCT - ( - COUNT( * ) ) + + 35
----
36

skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT - ( - COUNT ( * ) ) + + 35
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT COUNT( * ) + + + ( + - 78 )
----
-77

skipif mysql # not compatible
query I rowsort label-6453
SELECT COUNT ( * ) + + + ( + - 78 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6454
SELECT CASE - 62 WHEN - ( - + 84 ) THEN 3 + - 14 WHEN NULLIF ( + - 98, + - AVG ( DISTINCT - 65 ) + 70 - - 11 + + COUNT( * ) + + ( - + 80 ) * - ( + - CAST( NULL AS SIGNED ) ) * + 59 ) * - ( + + 20 ) THEN - 55 + + 59 + + 92 + 28 DIV 95 ELSE 31 END + + 93
----
124

skipif mysql # not compatible
query I rowsort label-6454
SELECT CASE - 62 WHEN - ( - + 84 ) THEN 3 + - 14 WHEN NULLIF ( + - 98, + - AVG ( DISTINCT - 65 ) + 70 - - 11 + + COUNT ( * ) + + ( - + 80 ) * - ( + - CAST ( NULL AS INTEGER ) ) * + 59 ) * - ( + + 20 ) THEN - 55 + + 59 + + 92 + 28 / 95 ELSE 31 END + + 93
----
124

query II rowsort
SELECT ALL - - 4 * - 29 AS col2, ( - + 57 )
----
-116
-57

query I rowsort
SELECT + 45 + - 96 + + 50 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6457
SELECT DISTINCT 69 * + 48 AS col1, + 69 DIV - 58
----
3312
-1

skipif mysql # not compatible
query II rowsort label-6457
SELECT DISTINCT 69 * + 48 AS col1, + 69 / - 58
----
3312
-1

query I rowsort
SELECT DISTINCT - ( - + ( - 33 ) ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT 93 + - 89 + - 13 * + MIN( 28 ) AS col1
----
-360

skipif mysql # not compatible
query I rowsort label-6459
SELECT 93 + - 89 + - 13 * + MIN ( 28 ) AS col1
----
-360

onlyif mysql # aggregate syntax: 
query II rowsort label-6460
SELECT DISTINCT - 5 * - MAX( ALL - 13 ) AS col0, - SUM( DISTINCT 78 )
----
-65
-78

skipif mysql # not compatible
query II rowsort label-6460
SELECT DISTINCT - 5 * - MAX ( ALL - 13 ) AS col0, - SUM ( DISTINCT 78 )
----
-65
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6461
SELECT DISTINCT - MAX( ALL + + 9 ) * + + CAST( NULL AS DECIMAL ) + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT - MAX ( ALL + + 9 ) * + + CAST ( NULL AS REAL ) + 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT 76 * COUNT( * ) col1
----
76

skipif mysql # not compatible
query I rowsort label-6462
SELECT 76 * COUNT ( * ) col1
----
76

query I rowsort
SELECT 12 * + 51
----
612

query I rowsort
SELECT 83 + 72 AS col1
----
155

query I rowsort
SELECT ALL - 87 * + 79
----
-6873

query II rowsort
SELECT ALL - 66 AS col0, 24
----
-66
24

query I rowsort
SELECT 2 * - 32 AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6468
SELECT ALL - MIN( DISTINCT + 82 ) + + - MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL - MIN ( DISTINCT + 82 ) + + - MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 74 + - 1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT DISTINCT 33 + MIN( ( 72 ) ) AS col0
----
105

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT 33 + MIN ( ( 72 ) ) AS col0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-6471
SELECT 92 DIV - 12
----
-7

skipif mysql # not compatible
query I rowsort label-6471
SELECT 92 / - 12
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6472
SELECT ALL MIN( DISTINCT + - 81 ) + - - SUM( + 86 ) * 56 + - COUNT( - 19 ) + + 17 * NULLIF ( ( + MIN( - + 17 ) ), - 46 * 61 ) * COUNT( * ) AS col0, 78 + - 83
----
4445
-5

skipif mysql # not compatible
query II rowsort label-6472
SELECT ALL MIN ( DISTINCT + - 81 ) + - - SUM ( + 86 ) * 56 + - COUNT ( - 19 ) + + 17 * NULLIF ( ( + MIN ( - + 17 ) ), - 46 * 61 ) * COUNT ( * ) AS col0, 78 + - 83
----
4445
-5

query I rowsort
SELECT 1 * NULLIF ( + ( - ( + 30 ) ), 90 ) col2
----
-30

query I rowsort
SELECT 37 + - 85
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-6475
SELECT 59 AS col2, - 15 - - COUNT( * ) AS col1
----
59
-14

skipif mysql # not compatible
query II rowsort label-6475
SELECT 59 AS col2, - 15 - - COUNT ( * ) AS col1
----
59
-14

query I rowsort
SELECT 88 * - 86
----
-7568

onlyif mysql # aggregate syntax: 
query II rowsort label-6477
SELECT DISTINCT + MAX( ALL 16 ) * - - 28 AS col2, 61 AS col0
----
448
61

skipif mysql # not compatible
query II rowsort label-6477
SELECT DISTINCT + MAX ( ALL 16 ) * - - 28 AS col2, 61 AS col0
----
448
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT ALL 49 + + - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL 49 + + - COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT COALESCE ( - 98, COUNT( * ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-6479
SELECT COALESCE ( - 98, COUNT ( * ) ) AS col2
----
-98

query I rowsort
SELECT ALL + 52 * - - 26 AS col2
----
1352

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT ALL + COALESCE ( + - 61, + + COUNT( * ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL + COALESCE ( + - 61, + + COUNT ( * ) ) AS col1
----
-61

query I rowsort
SELECT 88 + + 99
----
187

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6483
SELECT - CASE + 87 WHEN COUNT( * ) THEN + 20 WHEN + - CAST( NULL AS DECIMAL ) THEN - 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6483
SELECT - CASE + 87 WHEN COUNT ( * ) THEN + 20 WHEN + - CAST ( NULL AS REAL ) THEN - 23 ELSE NULL END
----
NULL

query I rowsort
SELECT - 69 * + CASE - 96 WHEN - + 78 THEN - + 80 END AS col2
----
NULL

query I rowsort
SELECT 37 - + - 14
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6486
SELECT - 96 - - 13 - 11 * - 98 + - CAST( - 97 AS SIGNED ) * NULLIF ( + 64, - + 25 ) AS col0
----
7203

skipif mysql # not compatible
query I rowsort label-6486
SELECT - 96 - - 13 - 11 * - 98 + - CAST ( - 97 AS INTEGER ) * NULLIF ( + 64, - + 25 ) AS col0
----
7203

query I rowsort
SELECT 14 * + 41 col2
----
574

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT ALL + SUM( DISTINCT + 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL + SUM ( DISTINCT + 25 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT - + ( COALESCE ( 39, MIN( ALL - 67 ) ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-6489
SELECT - + ( COALESCE ( 39, MIN ( ALL - 67 ) ) ) AS col1
----
-39

query I rowsort
SELECT ALL - 29 * + 37
----
-1073

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT ALL + + 85 * + 20 - + MIN( DISTINCT - - 92 )
----
1608

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL + + 85 * + 20 - + MIN ( DISTINCT - - 92 )
----
1608

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT 93 * + - 28 * - + 95 - MIN( ALL + 97 )
----
247283

skipif mysql # not compatible
query I rowsort label-6492
SELECT 93 * + - 28 * - + 95 - MIN ( ALL + 97 )
----
247283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6493
SELECT 37 * 7 + - - CASE - 70 WHEN + 59 THEN 31 END * 23 * + ( + COALESCE ( 56, - AVG ( 82 ) + - + COALESCE ( - 51, + 66, + - 1 ) + - 19 * + CAST( NULL AS SIGNED ) ) ) * + + COALESCE ( + ( + ( MAX( 17 ) ) ), - MIN( ALL - + 49 ) + + ( CAST( NULL AS SIGNED ) ) * 6 ) + MAX( 1 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6493
SELECT 37 * 7 + - - CASE - 70 WHEN + 59 THEN 31 END * 23 * + ( + COALESCE ( 56, - AVG ( 82 ) + - + COALESCE ( - 51, + 66, + - 1 ) + - 19 * + CAST ( NULL AS INTEGER ) ) ) * + + COALESCE ( + ( + ( MAX ( 17 ) ) ), - MIN ( ALL - + 49 ) + + ( CAST ( NULL AS INTEGER ) ) * 6 ) + MAX ( 1 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6494
SELECT + COALESCE ( - + COUNT( * ), - CAST( NULL AS SIGNED ) * + 36, - 65 * + 67 ) - - - 56
----
-57

skipif mysql # not compatible
query I rowsort label-6494
SELECT + COALESCE ( - + COUNT ( * ), - CAST ( NULL AS INTEGER ) * + 36, - 65 * + 67 ) - - - 56
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6495
SELECT ALL - 18 * - + 45 / + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL - 18 * - + 45 / + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6496
SELECT 67 * + CAST( + - 7 AS SIGNED )
----
-469

skipif mysql # not compatible
query I rowsort label-6496
SELECT 67 * + CAST ( + - 7 AS INTEGER )
----
-469

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL - 9 * + COALESCE ( + COUNT( * ), + - ( - 58 ) ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL - 9 * + COALESCE ( + COUNT ( * ), + - ( - 58 ) ) col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6498
SELECT COUNT( * ) DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-6498
SELECT COUNT ( * ) / + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT ALL - ( - - COUNT( + 83 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL - ( - - COUNT ( + 83 ) )
----
-1

query II rowsort
SELECT ALL - 50 AS col0, + 30 col2
----
-50
30

query I rowsort
SELECT ALL 5 * 84 * + + 46 col2
----
19320

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT DISTINCT COUNT( * ) * - 48 + + 81
----
33

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT COUNT ( * ) * - 48 + + 81
----
33

query I rowsort
SELECT ALL - 92 + - 25
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT ALL MIN( DISTINCT ( 23 ) ) + + + 93 * + 25 AS col0
----
2348

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL MIN ( DISTINCT ( 23 ) ) + + + 93 * + 25 AS col0
----
2348

onlyif mysql # aggregate syntax: 
query II rowsort label-6505
SELECT COUNT( * ) AS col2, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-6505
SELECT COUNT ( * ) AS col2, + COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT 92 + - COUNT( * ) * + 84 col2
----
8

skipif mysql # not compatible
query I rowsort label-6506
SELECT 92 + - COUNT ( * ) * + 84 col2
----
8

query I rowsort
SELECT 30 + + + 2 + 55
----
87

query I rowsort
SELECT ALL + 56 * + 16
----
896

query I rowsort
SELECT DISTINCT - ( + - 91 ) + + 0 - - - 57
----
34

query I rowsort
SELECT 8 - + 36
----
-28

query I rowsort
SELECT ALL - 84 + + ( + - 69 ) AS col2
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT ALL - 11 + + 13 * + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL - 11 + + 13 * + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6513
SELECT DISTINCT + 88, + COUNT( * ) * + + COUNT( * ) AS col0
----
88
1

skipif mysql # not compatible
query II rowsort label-6513
SELECT DISTINCT + 88, + COUNT ( * ) * + + COUNT ( * ) AS col0
----
88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT DISTINCT + + SUM( 41 ) + + 49 col2
----
90

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT + + SUM ( 41 ) + + 49 col2
----
90

query I rowsort
SELECT ALL - 76 - + + 67
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT + SUM( - + ( - 13 ) ) - 38 + + 9 * - - 30
----
245

skipif mysql # not compatible
query I rowsort label-6516
SELECT + SUM ( - + ( - 13 ) ) - 38 + + 9 * - - 30
----
245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6517
SELECT ALL CASE + CASE + + 36 WHEN + COALESCE ( - - 3, - - COUNT( * ) ) THEN NULL WHEN COALESCE ( + 91, + 94 * + 36 * - 2 * 95 + - - 3, - 32 ) + + 2 - + - 47 + - 25 * - 53 THEN + 87 END WHEN - 72 THEN + - CAST( NULL AS SIGNED ) WHEN - 0 + - - NULLIF ( - - 84, 61 * - 37 + 16 ) * 96 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL CASE + CASE + + 36 WHEN + COALESCE ( - - 3, - - COUNT ( * ) ) THEN NULL WHEN COALESCE ( + 91, + 94 * + 36 * - 2 * 95 + - - 3, - 32 ) + + 2 - + - 47 + - 25 * - 53 THEN + 87 END WHEN - 72 THEN + - CAST ( NULL AS INTEGER ) WHEN - 0 + - - NULLIF ( - - 84, 61 * - 37 + 16 ) * 96 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - + 1 + + + 54 AS col2
----
53

query I rowsort
SELECT + 0 - + + 10 AS col1
----
-10

query II rowsort
SELECT DISTINCT - 1 AS col1, - 84 AS col2
----
-1
-84

query I rowsort
SELECT ALL 83 - - ( + 96 ) + 64
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT + AVG ( - - 88 ) / ( - 95 ) * + - CASE - 81 WHEN - ( 34 ) + 21 THEN + - NULLIF ( + - COUNT( * ), + ( + 22 ) ) ELSE NULL END + - 42 + + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6522
SELECT + AVG ( - - 88 ) / ( - 95 ) * + - CASE - 81 WHEN - ( 34 ) + 21 THEN + - NULLIF ( + - COUNT ( * ), + ( + 22 ) ) ELSE NULL END + - 42 + + 50 AS col1
----
NULL

query I rowsort
SELECT ALL - 24 * - 80
----
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT DISTINCT COUNT( ( - 95 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6524
SELECT DISTINCT COUNT ( ( - 95 ) )
----
1

query I rowsort
SELECT DISTINCT 24 * + - 92 + - + 88
----
-2296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6526
SELECT DISTINCT COUNT( * ) AS col2, CAST( NULL AS SIGNED ) / NULLIF ( 68, + CAST( NULL AS SIGNED ) ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6526
SELECT DISTINCT COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) / NULLIF ( 68, + CAST ( NULL AS INTEGER ) ) AS col1
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6527
SELECT - - CAST( NULL AS SIGNED ) AS col0, + 67 * 19 col2
----
NULL
1273

skipif mysql # not compatible
query II rowsort label-6527
SELECT - - CAST ( NULL AS INTEGER ) AS col0, + 67 * 19 col2
----
NULL
1273

onlyif mysql # aggregate syntax: 
query II rowsort label-6528
SELECT - + 75, MAX( - 56 ) col0
----
-75
-56

skipif mysql # not compatible
query II rowsort label-6528
SELECT - + 75, MAX ( - 56 ) col0
----
-75
-56

query I rowsort
SELECT + 55 + + 22
----
77

query I rowsort
SELECT - ( - - 76 )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-6531
SELECT + 69 * + 2 AS col1, SUM( DISTINCT - - COALESCE ( - 65, + - 7, - 8 ) )
----
138
-65

skipif mysql # not compatible
query II rowsort label-6531
SELECT + 69 * + 2 AS col1, SUM ( DISTINCT - - COALESCE ( - 65, + - 7, - 8 ) )
----
138
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6532
SELECT - COUNT( * ) * + 90 DIV 99 * + 84
----
0

skipif mysql # not compatible
query I rowsort label-6532
SELECT - COUNT ( * ) * + 90 / 99 * + 84
----
0

query I rowsort
SELECT DISTINCT + CASE + + ( + 82 ) WHEN 75 THEN - + 26 * 52 * + 28 * - 89 + + 19 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6534
SELECT ALL + 51 DIV + + 1
----
51

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL + 51 / + + 1
----
51

query I rowsort
SELECT + 85 * 35 + 4 AS col1
----
2979

query I rowsort
SELECT DISTINCT 97 * + 2 + - 70 AS col0
----
124

query I rowsort
SELECT ALL + 66 col1
----
66

query I rowsort
SELECT ALL + 27 * + 33 + + 12 col2
----
903

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT - 86 + - COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-6539
SELECT - 86 + - COUNT ( * ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT DISTINCT + 50 * - 60 * - 29 * COUNT( * ) + + 49 + + + 61
----
87110

skipif mysql # not compatible
query I rowsort label-6540
SELECT DISTINCT + 50 * - 60 * - 29 * COUNT ( * ) + + 49 + + + 61
----
87110

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT + MIN( 37 ) * - ( 1 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-6541
SELECT + MIN ( 37 ) * - ( 1 ) AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6542
SELECT - 63 + - SUM( ALL CAST( NULL AS SIGNED ) ), - 12 AS col2
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-6542
SELECT - 63 + - SUM ( ALL CAST ( NULL AS INTEGER ) ), - 12 AS col2
----
NULL
-12

query I rowsort
SELECT CASE - 9 WHEN + - 1 THEN NULL ELSE 7 END
----
7

query I rowsort
SELECT 52 * - 66 + 57 AS col0
----
-3375

query I rowsort
SELECT ALL - 50 * - 3 + + 57
----
207

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6546
SELECT 79 DIV + 26 + - 35 AS col0, COALESCE ( 35, + SUM( ALL - - 76 ) )
----
-32
35

skipif mysql # not compatible
query II rowsort label-6546
SELECT 79 / + 26 + - 35 AS col0, COALESCE ( 35, + SUM ( ALL - - 76 ) )
----
-32
35

query II rowsort
SELECT - 27 + 12 AS col0, - 37 + + + 68 AS col2
----
-15
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6548
SELECT DISTINCT SUM( + 4 ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT SUM ( + 4 ) * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 73 * - - 26 - - 53
----
-1845

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT ALL + COUNT( ALL 75 )
----
1

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL + COUNT ( ALL 75 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT - COUNT( - 84 ) * + 30
----
-30

skipif mysql # not compatible
query I rowsort label-6551
SELECT - COUNT ( - 84 ) * + 30
----
-30

query I rowsort
SELECT ALL + - 40 col2
----
-40

query I rowsort
SELECT DISTINCT + + 49 AS col1
----
49

query I rowsort
SELECT - + 14 * - 52
----
728

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6555
SELECT DISTINCT + + 60 * + - CASE - 18 WHEN + + 28 THEN - - CASE + 21 WHEN - COUNT( * ) * - - 58 + - + 52 - + 0 THEN NULL WHEN + 36 - + 98 THEN NULL ELSE + 41 - - ( + 97 ) - - - CAST( NULL AS DECIMAL ) + MAX( ALL + - 96 ) / 50 END * + 71 WHEN 57 THEN 31 + + 82 + 28 END * - 44 + AVG ( ALL 76 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT + + 60 * + - CASE - 18 WHEN + + 28 THEN - - CASE + 21 WHEN - COUNT ( * ) * - - 58 + - + 52 - + 0 THEN NULL WHEN + 36 - + 98 THEN NULL ELSE + 41 - - ( + 97 ) - - - CAST ( NULL AS REAL ) + MAX ( ALL + - 96 ) / 50 END * + 71 WHEN 57 THEN 31 + + 82 + 28 END * - 44 + AVG ( ALL 76 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT DISTINCT + 86 * COUNT( * ) * ( - MAX( DISTINCT + + 56 ) )
----
-4816

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT + 86 * COUNT ( * ) * ( - MAX ( DISTINCT + + 56 ) )
----
-4816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6557
SELECT + - 75 * + CASE + CASE + 44 WHEN - - CASE - + NULLIF ( - 73, + 14 - 34 ) WHEN - COALESCE ( + - 76, + + 74 + + CAST( 97 AS SIGNED ) ) THEN - - 21 END * + COALESCE ( - + CAST( NULL AS DECIMAL ), MAX( ALL 24 ) ) * - 41 - - ( 55 ) + 24 THEN NULL WHEN + COUNT( * ) + - 1 THEN 82 + + ( 66 ) END WHEN - CAST( NULL AS SIGNED ) / + 50 THEN 43 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6557
SELECT + - 75 * + CASE + CASE + 44 WHEN - - CASE - + NULLIF ( - 73, + 14 - 34 ) WHEN - COALESCE ( + - 76, + + 74 + + CAST ( 97 AS INTEGER ) ) THEN - - 21 END * + COALESCE ( - + CAST ( NULL AS REAL ), MAX ( ALL 24 ) ) * - 41 - - ( 55 ) + 24 THEN NULL WHEN + COUNT ( * ) + - 1 THEN 82 + + ( 66 ) END WHEN - CAST ( NULL AS INTEGER ) / + 50 THEN 43 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT - SUM( DISTINCT + + 72 ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-6558
SELECT - SUM ( DISTINCT + + 72 ) col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT ALL + + CASE + 3 WHEN + COUNT( * ) THEN NULL WHEN - 89 THEN + 76 END * SUM( + 27 ) + - 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL + + CASE + 3 WHEN + COUNT ( * ) THEN NULL WHEN - 89 THEN + 76 END * SUM ( + 27 ) + - 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT ALL + MAX( ALL NULLIF ( + - ( 5 ), - 17 ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL + MAX ( ALL NULLIF ( + - ( 5 ), - 17 ) ) AS col0
----
-5

query I rowsort
SELECT ALL + NULLIF ( 44, + 3 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6562
SELECT - + NULLIF ( + 24, - 18 ) * 1 * - CAST( + COUNT( * ) AS SIGNED ) - - CAST( - COUNT( * ) AS SIGNED ) - - 61
----
84

skipif mysql # not compatible
query I rowsort label-6562
SELECT - + NULLIF ( + 24, - 18 ) * 1 * - CAST ( + COUNT ( * ) AS INTEGER ) - - CAST ( - COUNT ( * ) AS INTEGER ) - - 61
----
84

query I rowsort
SELECT ALL + 41 col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT - 31 + + 56 - COUNT( * ) - + 95 * - 95 * - 86 * COUNT( DISTINCT - - 94 ) * + + 54 AS col0
----
-41912076

skipif mysql # not compatible
query I rowsort label-6564
SELECT - 31 + + 56 - COUNT ( * ) - + 95 * - 95 * - 86 * COUNT ( DISTINCT - - 94 ) * + + 54 AS col0
----
-41912076

query I rowsort
SELECT + - 32 + 76 + - - ( + + 74 ) AS col2
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6566
SELECT DISTINCT - ( 84 ) + + - CAST( 51 AS SIGNED )
----
-135

skipif mysql # not compatible
query I rowsort label-6566
SELECT DISTINCT - ( 84 ) + + - CAST ( 51 AS INTEGER )
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT - MAX( DISTINCT + + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-6567
SELECT - MAX ( DISTINCT + + 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT DISTINCT CASE - ( + COUNT( DISTINCT + 32 ) ) WHEN 92 THEN - - 78 ELSE + 83 END + + 62
----
145

skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT CASE - ( + COUNT ( DISTINCT + 32 ) ) WHEN 92 THEN - - 78 ELSE + 83 END + + 62
----
145

query I rowsort
SELECT DISTINCT 46 + 76
----
122

query I rowsort
SELECT DISTINCT ( + 87 ) + + + 35 * + + 28
----
1067

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT ALL 63 + - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL 63 + - COUNT ( * )
----
62

query I rowsort
SELECT + 18 * 51 + - 26 * + 21
----
372

query I rowsort
SELECT + 63 * + ( + ( - + 65 ) )
----
-4095

query I rowsort
SELECT + ( + + 45 ) AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6575
SELECT ALL - CAST( NULL AS SIGNED ) / - COUNT( * ) / 82 + - + 92 / 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL - CAST ( NULL AS INTEGER ) / - COUNT ( * ) / 82 + - + 92 / 59 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6576
SELECT ALL CAST( NULL AS SIGNED ) + + 60 + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL CAST ( NULL AS INTEGER ) + + 60 + 15 AS col2
----
NULL

query II rowsort
SELECT ( + 20 ) * 41, - 59 * + - 3 col0
----
820
177

query II rowsort
SELECT DISTINCT - 49 AS col1, 47
----
-49
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT COUNT( * ) + + ( - 43 )
----
-42

skipif mysql # not compatible
query I rowsort label-6579
SELECT COUNT ( * ) + + ( - 43 )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-6580
SELECT DISTINCT 56 DIV + 72 * + 9
----
0

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT 56 / + 72 * + 9
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6581
SELECT DISTINCT 3 DIV - 45 col0
----
0

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT 3 / - 45 col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6582
SELECT - 48 DIV 18 + 86, 56 AS col1
----
84
56

skipif mysql # not compatible
query II rowsort label-6582
SELECT - 48 / 18 + 86, 56 AS col1
----
84
56

query I rowsort
SELECT 55 * + 54 AS col0
----
2970

query I rowsort
SELECT ALL 38 * - + 73 AS col0
----
-2774

query I rowsort
SELECT 26 + + 3 AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6586
SELECT ALL + + COUNT( + 97 ) * 59 - + CAST( + 51 AS SIGNED ) * 70 AS col2
----
-3511

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL + + COUNT ( + 97 ) * 59 - + CAST ( + 51 AS INTEGER ) * 70 AS col2
----
-3511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6587
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6587
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6588
SELECT ( 64 ) DIV 6 + + - 32
----
-22

skipif mysql # not compatible
query I rowsort label-6588
SELECT ( 64 ) / 6 + + - 32
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT + 95 * 47 + - COUNT( * ) + - 78 * + 56 * COUNT( * ) + + 17 * 29 * - 69 AS col2
----
-33921

skipif mysql # not compatible
query I rowsort label-6589
SELECT + 95 * 47 + - COUNT ( * ) + - 78 * + 56 * COUNT ( * ) + + 17 * 29 * - 69 AS col2
----
-33921

onlyif mysql # aggregate syntax: 
query II rowsort label-6590
SELECT DISTINCT 0 * 40 * - + 87 col0, ( - COUNT( * ) )
----
0
-1

skipif mysql # not compatible
query II rowsort label-6590
SELECT DISTINCT 0 * 40 * - + 87 col0, ( - COUNT ( * ) )
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT ALL COUNT( * ) * + 87 + - 64
----
23

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL COUNT ( * ) * + 87 + - 64
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6592
SELECT + CASE - 46 WHEN + ( + + 57 ) THEN NULL WHEN - 42 + - - 89 THEN + 98 ELSE + CAST( NULL AS SIGNED ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6592
SELECT + CASE - 46 WHEN + ( + + 57 ) THEN NULL WHEN - 42 + - - 89 THEN + 98 ELSE + CAST ( NULL AS INTEGER ) END col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 38, - 82 ) col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT ALL + - MIN( ALL + - 56 ) + - + 47 - - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL + - MIN ( ALL + - 56 ) + - + 47 - - COUNT ( * )
----
10

query I rowsort
SELECT 12 - - 95 * - 88
----
-8348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6596
SELECT + COUNT( * ) * + CAST( MAX( DISTINCT + - 76 ) AS SIGNED ) * + + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-6596
SELECT + COUNT ( * ) * + CAST ( MAX ( DISTINCT + - 76 ) AS INTEGER ) * + + COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT + 28 + + CASE - 22 WHEN - - 68 * 28 + - + 75 THEN + 88 + + COALESCE ( + COUNT( * ), 89 ) - - 60 * - 52 END - 25 / - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT + 28 + + CASE - 22 WHEN - - 68 * 28 + - + 75 THEN + 88 + + COALESCE ( + COUNT ( * ), 89 ) - - 60 * - 52 END - 25 / - 37 AS col1
----
NULL

query II rowsort
SELECT + + ( ( ( + 3 ) ) ) * + 7 + - 58 AS col0, - 14 AS col0
----
-37
-14

query II rowsort
SELECT ALL 71, - 90 col0
----
71
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6600
SELECT - CAST( + + 94 AS SIGNED ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-6600
SELECT - CAST ( + + 94 AS INTEGER ) AS col2
----
-94

query II rowsort
SELECT - + 89, - 67 * - - 68 + - 41 - 62 + - NULLIF ( + 31, - 55 ) + + 10 AS col2
----
-89
-4680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6602
SELECT + 12 + CAST( NULL AS SIGNED ) + + - 28 + - 14 * + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6602
SELECT + 12 + CAST ( NULL AS INTEGER ) + + - 28 + - 14 * + 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT ALL - COUNT( DISTINCT ( + 52 ) ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL - COUNT ( DISTINCT ( + 52 ) ) + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT MIN( DISTINCT 88 ) + 8 * - - 44 AS col1
----
440

skipif mysql # not compatible
query I rowsort label-6604
SELECT MIN ( DISTINCT 88 ) + 8 * - - 44 AS col1
----
440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6605
SELECT DISTINCT - + 48 + + - SUM( + + ( + 29 ) ) + - CAST( NULL AS SIGNED ) + - 80 + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT - + 48 + + - SUM ( + + ( + 29 ) ) + - CAST ( NULL AS INTEGER ) + - 80 + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT ALL - 48 + - COUNT( 39 ) + + 28 + - 33 * - + 72
----
2355

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL - 48 + - COUNT ( 39 ) + + 28 + - 33 * - + 72
----
2355

query I rowsort
SELECT - 78 + + 23
----
-55

query I rowsort
SELECT ALL - 37 + 63 * - 44
----
-2809

query I rowsort
SELECT 82 + 13 * - - 67 * - ( 32 ) * - + 50 + + 42
----
1393724

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT 85 * 33 * COUNT( * ) AS col0
----
2805

skipif mysql # not compatible
query I rowsort label-6610
SELECT 85 * 33 * COUNT ( * ) AS col0
----
2805

query I rowsort
SELECT 21 + + 72 AS col0
----
93

query I rowsort
SELECT 95 * - 37
----
-3515

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6613
SELECT ALL COUNT( * ) - + 60 DIV 3 * + + COUNT( * ) + - 89 * COUNT( * ) AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL COUNT ( * ) - + 60 / 3 * + + COUNT ( * ) + - 89 * COUNT ( * ) AS col0
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-6614
SELECT 11 * 43 DIV + 62 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-6614
SELECT 11 * 43 / + 62 AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6615
SELECT ALL COUNT( * ) DIV - + ( 88 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL COUNT ( * ) / - + ( 88 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6616
SELECT 52 * - ( COUNT( * ) ) / + COUNT( * ) + + CAST( NULL AS SIGNED ) - + + ( - 36 ) + + CASE - + 53 WHEN - + 38 + + 71 THEN - - 14 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - 73 * + CAST( NULL AS SIGNED ) + + ( + 76 ) THEN NULL ELSE 78 * - 59 END - COUNT( * ) * + + 93 * + 62 - - + 87 + - ( - 60 ) * - - 65 * - COUNT( DISTINCT 82 ) * ( - 20 ) - 7 / 98 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6616
SELECT 52 * - ( COUNT ( * ) ) / + COUNT ( * ) + + CAST ( NULL AS INTEGER ) - + + ( - 36 ) + + CASE - + 53 WHEN - + 38 + + 71 THEN - - 14 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - 73 * + CAST ( NULL AS INTEGER ) + + ( + 76 ) THEN NULL ELSE 78 * - 59 END - COUNT ( * ) * + + 93 * + 62 - - + 87 + - ( - 60 ) * - - 65 * - COUNT ( DISTINCT 82 ) * ( - 20 ) - 7 / 98 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT DISTINCT - 16 - + - 97 - - - ( - + CAST( 20 AS SIGNED ) )
----
101

skipif mysql # not compatible
query I rowsort label-6617
SELECT DISTINCT - 16 - + - 97 - - - ( - + CAST ( 20 AS INTEGER ) )
----
101

query I rowsort
SELECT DISTINCT 15 - + + 63 AS col2
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6619
SELECT ALL 50 * - + 29 * - COUNT( * ) DIV COUNT( * ) * + + 66
----
95700

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL 50 * - + 29 * - COUNT ( * ) / COUNT ( * ) * + + 66
----
95700

query I rowsort
SELECT 46 * + - ( 20 ) AS col1
----
-920

query I rowsort
SELECT ALL 62 * - 25 AS col1
----
-1550

query I rowsort
SELECT 52 + - - 10 * + 52 AS col1
----
572

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6623
SELECT DISTINCT 97 * ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT 97 * ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL 14 * + 32
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT 36 * COUNT( * ) * - 40
----
-1440

skipif mysql # not compatible
query I rowsort label-6625
SELECT 36 * COUNT ( * ) * - 40
----
-1440

query I rowsort
SELECT 26 * 67 + 47
----
1789

query I rowsort
SELECT DISTINCT - + 45 col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6628
SELECT ALL - - CASE + COUNT( * ) WHEN - - CAST( NULL AS DECIMAL ) THEN NULL WHEN + 29 * - + 57 + + 14 THEN + COUNT( * ) ELSE + 52 END AS col1
----
52

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL - - CASE + COUNT ( * ) WHEN - - CAST ( NULL AS REAL ) THEN NULL WHEN + 29 * - + 57 + + 14 THEN + COUNT ( * ) ELSE + 52 END AS col1
----
52

query I rowsort
SELECT 58 * 93 AS col1
----
5394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6630
SELECT ALL + COUNT( * ) DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL + COUNT ( * ) / 92
----
0

query I rowsort
SELECT DISTINCT - 3 * - 2 * + 48 / 12 * + - CASE + + 41 WHEN - 16 THEN NULL WHEN 53 THEN - 99 + 63 END * - 71 + + 92
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6632
SELECT 50 DIV + 37 + + 51 - + + 29 + + 58
----
81

skipif mysql # not compatible
query I rowsort label-6632
SELECT 50 / + 37 + + 51 - + + 29 + + 58
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT ALL - 92 + + 62 + COUNT( ALL + 26 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL - 92 + + 62 + COUNT ( ALL + 26 ) AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6634
SELECT + COALESCE ( + + CAST( NULL AS SIGNED ), 66 + - 53 * 78 ) AS col0
----
-4068

skipif mysql # not compatible
query I rowsort label-6634
SELECT + COALESCE ( + + CAST ( NULL AS INTEGER ), 66 + - 53 * 78 ) AS col0
----
-4068

query I rowsort
SELECT 27 + + 36 - - - 90 AS col2
----
-27

query I rowsort
SELECT ALL 52 + - 12 - + - 24
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6637
SELECT + CASE - + AVG ( DISTINCT + 26 ) WHEN - + ( - + 71 ) THEN NULL WHEN + + 67 THEN NULL ELSE ( ( 63 ) ) END DIV + + COUNT( ALL + + 74 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-6637
SELECT + CASE - + AVG ( DISTINCT + 26 ) WHEN - + ( - + 71 ) THEN NULL WHEN + + 67 THEN NULL ELSE ( ( 63 ) ) END / + + COUNT ( ALL + + 74 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ALL 18 + + MAX( - 83 )
----
-65

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL 18 + + MAX ( - 83 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT DISTINCT 36 * + 71 + - - ( + CASE MIN( DISTINCT - 2 ) WHEN + + 47 * - - 67 THEN NULL WHEN - ( 11 ) THEN - + 72 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT 36 * + 71 + - - ( + CASE MIN ( DISTINCT - 2 ) WHEN + + 47 * - - 67 THEN NULL WHEN - ( 11 ) THEN - + 72 ELSE NULL END )
----
NULL

query I rowsort
SELECT - - 98 col1
----
98

query I rowsort
SELECT ALL - + 63 + - 85
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT ( - 15 ) + - 83 - MIN( + 83 ) + - 65 - + COUNT( * ) AS col1
----
-247

skipif mysql # not compatible
query I rowsort label-6642
SELECT ( - 15 ) + - 83 - MIN ( + 83 ) + - 65 - + COUNT ( * ) AS col1
----
-247

query I rowsort
SELECT 95 + + 90 + + ( - ( - 51 ) )
----
236

query I rowsort
SELECT 30 * 50
----
1500

query I rowsort
SELECT ALL - 29 - + + 58 AS col0
----
-87

query I rowsort
SELECT + 34 * - - 7
----
238

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT DISTINCT - COALESCE ( - 56, - 60 + + 91 + - 71, - - 75 ) * + - COUNT( * ) * + 73 + 39 + 80 AS col0
----
-3969

skipif mysql # not compatible
query I rowsort label-6647
SELECT DISTINCT - COALESCE ( - 56, - 60 + + 91 + - 71, - - 75 ) * + - COUNT ( * ) * + 73 + 39 + 80 AS col0
----
-3969

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT ALL COUNT( + ( - - ( - 17 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL COUNT ( + ( - - ( - 17 ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT ALL - ( + NULLIF ( + 41, + COUNT( - + 69 ) ) ) * + + 99 AS col0
----
-4059

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL - ( + NULLIF ( + 41, + COUNT ( - + 69 ) ) ) * + + 99 AS col0
----
-4059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6650
SELECT - 86 - - - 46 + - CAST( - + COUNT( * ) AS SIGNED ) * + 47 * - 81 col0
----
-3939

skipif mysql # not compatible
query I rowsort label-6650
SELECT - 86 - - - 46 + - CAST ( - + COUNT ( * ) AS INTEGER ) * + 47 * - 81 col0
----
-3939

onlyif mysql # DIV for integer division: 
query I rowsort label-6651
SELECT ALL 92 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL 92 / + 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT DISTINCT CASE WHEN NOT ( - ( - 71 ) ) IS NULL THEN - + COUNT( * ) ELSE NULL END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT CASE WHEN NOT ( - ( - 71 ) ) IS NULL THEN - + COUNT ( * ) ELSE NULL END AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6653
SELECT ALL CASE + - 91 WHEN + CAST( 64 AS SIGNED ) THEN - 15 * + + CASE - 6 WHEN + ( - 75 ) + - + 1 THEN CAST( NULL AS SIGNED ) + + ( COUNT( * ) ) * ( 34 ) WHEN - 18 THEN - + 25 ELSE NULL END - - 67 + + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL CASE + - 91 WHEN + CAST ( 64 AS INTEGER ) THEN - 15 * + + CASE - 6 WHEN + ( - 75 ) + - + 1 THEN CAST ( NULL AS INTEGER ) + + ( COUNT ( * ) ) * ( 34 ) WHEN - 18 THEN - + 25 ELSE NULL END - - 67 + + 12 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6654
SELECT 27 AS col2, + COUNT( * ) + - 45
----
27
-44

skipif mysql # not compatible
query II rowsort label-6654
SELECT 27 AS col2, + COUNT ( * ) + - 45
----
27
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL SUM( DISTINCT + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL SUM ( DISTINCT + 49 )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6656
SELECT ALL 50 - - MIN( ALL 56 ) * - - CASE + + 12 WHEN - + 69 THEN - CAST( 31 AS SIGNED ) ELSE NULL END - + + ( - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL 50 - - MIN ( ALL 56 ) * - - CASE + + 12 WHEN - + 69 THEN - CAST ( 31 AS INTEGER ) ELSE NULL END - + + ( - 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT - 56 * MAX( ( + + 79 ) )
----
-4424

skipif mysql # not compatible
query I rowsort label-6657
SELECT - 56 * MAX ( ( + + 79 ) )
----
-4424

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT - 68 * - + MIN( + 84 ) * - 94 col1
----
-536928

skipif mysql # not compatible
query I rowsort label-6658
SELECT - 68 * - + MIN ( + 84 ) * - 94 col1
----
-536928

query I rowsort
SELECT NULLIF ( - 28, 59 + - 16 )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-6660
SELECT - 20 DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6660
SELECT - 20 / 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT + COALESCE ( - + COUNT( * ), + 60 * - + 42 + + + 7 ) * 51 * - 69 col2
----
3519

skipif mysql # not compatible
query I rowsort label-6661
SELECT + COALESCE ( - + COUNT ( * ), + 60 * - + 42 + + + 7 ) * 51 * - 69 col2
----
3519

query I rowsort
SELECT - COALESCE ( 3, + ( - + 51 ) ) + + 71 * + + 14
----
991

onlyif mysql # DIV for integer division: 
query I rowsort label-6663
SELECT ALL + - ( 95 ) DIV 57
----
-1

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL + - ( 95 ) / 57
----
-1

query I rowsort
SELECT - + 77 * - + ( - 56 ) + 85
----
-4227

query I rowsort
SELECT ALL - 66 * - 94 * + + 20 * - 64 col2
----
-7941120

query I rowsort
SELECT + - 2 * - 48 AS col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6667
SELECT ALL 99 * - - 34 / - 41 * - CAST( NULL AS SIGNED ) + + + ( + 20 ) * + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL 99 * - - 34 / - 41 * - CAST ( NULL AS INTEGER ) + + + ( + 20 ) * + 24 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6668
SELECT + 39 - - 56 DIV - 50
----
38

skipif mysql # not compatible
query I rowsort label-6668
SELECT + 39 - - 56 / - 50
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6669
SELECT + CASE COUNT( * ) WHEN 48 * - 34 * - 94 THEN NULL ELSE + - CAST( NULL AS SIGNED ) - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT + CASE COUNT ( * ) WHEN 48 * - 34 * - 94 THEN NULL ELSE + - CAST ( NULL AS INTEGER ) - 27 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6670
SELECT - 83 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6670
SELECT - 83 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 38 AS col0, 6 AS col2
----
-38
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT - MIN( 66 ) + - 12
----
-78

skipif mysql # not compatible
query I rowsort label-6672
SELECT - MIN ( 66 ) + - 12
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6673
SELECT ALL 98 * - 60 + + 98 - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL 98 * - 60 + + 98 - - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 97 * + - 63 + 99 - - ( - 75 ) * - 35 * + + 52 + + 92
----
142802

query I rowsort
SELECT + - 50 + - 90
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6676
SELECT + - 97 * - - 21 + + CAST( NULL AS SIGNED ) + ( - - 1 ) AS col1, 7 * - 46
----
NULL
-322

skipif mysql # not compatible
query II rowsort label-6676
SELECT + - 97 * - - 21 + + CAST ( NULL AS INTEGER ) + ( - - 1 ) AS col1, 7 * - 46
----
NULL
-322

query I rowsort
SELECT ALL 6 * - 96 + - 65 col1
----
-641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6678
SELECT + + COUNT( * ) + + 84 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6678
SELECT + + COUNT ( * ) + + 84 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT DISTINCT + COUNT( ALL + 58 ) - - + 29 * + + 19 AS col1
----
552

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT + COUNT ( ALL + 58 ) - - + 29 * + + 19 AS col1
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT + 34 * - COUNT( 75 )
----
-34

skipif mysql # not compatible
query I rowsort label-6680
SELECT + 34 * - COUNT ( 75 )
----
-34

query I rowsort
SELECT - 40 * 39 AS col2
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT + 10 + ( 40 ) * - MAX( DISTINCT + 87 ) * + 27
----
-93950

skipif mysql # not compatible
query I rowsort label-6682
SELECT + 10 + ( 40 ) * - MAX ( DISTINCT + 87 ) * + 27
----
-93950

query I rowsort
SELECT ALL 22 * - 35
----
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT ALL COUNT( DISTINCT - 15 )
----
1

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL COUNT ( DISTINCT - 15 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6685
SELECT + 63 + - - 14 + + - 86 + 88 + + 52 DIV 20 * - 11 AS col1, 87
----
57
87

skipif mysql # not compatible
query II rowsort label-6685
SELECT + 63 + - - 14 + + - 86 + 88 + + 52 / 20 * - 11 AS col1, 87
----
57
87

query I rowsort
SELECT + 80 * + 10
----
800

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL MAX( 40 ) * + 84
----
3360

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL MAX ( 40 ) * + 84
----
3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6688
SELECT + 68 + + NULLIF ( + 18, CAST( 83 AS SIGNED ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-6688
SELECT + 68 + + NULLIF ( + 18, CAST ( 83 AS INTEGER ) ) AS col0
----
86

query I rowsort
SELECT + 44 * - 53 AS col1
----
-2332

query II rowsort
SELECT - 52 AS col1, ( - 36 ) col1
----
-52
-36

query I rowsort
SELECT - 9 + + 41 AS col1
----
32

query I rowsort
SELECT ALL NULLIF ( + 97, - 42 * - - 90 * + ( - 25 ) * - ( + - 35 ) )
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6693
SELECT DISTINCT CASE 83 WHEN - 69 THEN + 39 WHEN + + 39 * - CAST( NULL AS DECIMAL ) THEN NULL WHEN - 2 THEN NULL ELSE + 94 END
----
94

skipif mysql # not compatible
query I rowsort label-6693
SELECT DISTINCT CASE 83 WHEN - 69 THEN + 39 WHEN + + 39 * - CAST ( NULL AS REAL ) THEN NULL WHEN - 2 THEN NULL ELSE + 94 END
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT + 85 * - + COUNT( * ) + - 53 AS col1
----
-138

skipif mysql # not compatible
query I rowsort label-6694
SELECT + 85 * - + COUNT ( * ) + - 53 AS col1
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT DISTINCT + 53 * COUNT( DISTINCT 98 )
----
53

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT + 53 * COUNT ( DISTINCT 98 )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6696
SELECT DISTINCT - COUNT( * ) DIV 98 + - 71 * 23 - - COUNT( * ) - + COALESCE ( - - 40, - ( - - 81 ), + 35 ) * - 9 * - - 64 AS col1
----
21408

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT - COUNT ( * ) / 98 + - 71 * 23 - - COUNT ( * ) - + COALESCE ( - - 40, - ( - - 81 ), + 35 ) * - 9 * - - 64 AS col1
----
21408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6697
SELECT DISTINCT - MIN( + 20 ) DIV NULLIF ( 20, + ( - ( + + 71 ) ) ) + - 6 + + 76 + + COUNT( + 35 )
----
70

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT - MIN ( + 20 ) / NULLIF ( 20, + ( - ( + + 71 ) ) ) + - 6 + + 76 + + COUNT ( + 35 )
----
70

query I rowsort
SELECT ALL + ( - - 50 ) AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6699
SELECT DISTINCT ( - 45 ) DIV - - 58 + - 40 - + 82 + 85
----
-37

skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT ( - 45 ) / - - 58 + - 40 - + 82 + 85
----
-37

query II rowsort
SELECT ALL + 77, 41 AS col1
----
77
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6701
SELECT + + CASE - - COUNT( * ) WHEN - + 83 * COUNT( * ) / + 10 + + 72 + - ( - 20 ) * - + 48 * 50 + COUNT( * ) + 88 * + ( 72 ) THEN NULL ELSE - COUNT( - + CAST( - 33 AS SIGNED ) ) - + COALESCE ( + + 59, 68 ) END * - 61 * + 28 + + MAX( ALL - + 81 ) + + ( COALESCE ( 15, + - 25 ) ) AS col0
----
102414

skipif mysql # not compatible
query I rowsort label-6701
SELECT + + CASE - - COUNT ( * ) WHEN - + 83 * COUNT ( * ) / + 10 + + 72 + - ( - 20 ) * - + 48 * 50 + COUNT ( * ) + 88 * + ( 72 ) THEN NULL ELSE - COUNT ( - + CAST ( - 33 AS INTEGER ) ) - + COALESCE ( + + 59, 68 ) END * - 61 * + 28 + + MAX ( ALL - + 81 ) + + ( COALESCE ( 15, + - 25 ) ) AS col0
----
102414

onlyif mysql # DIV for integer division: 
query II rowsort label-6702
SELECT ALL + - 25, 61 + 78 DIV + 38 AS col1
----
-25
63

skipif mysql # not compatible
query II rowsort label-6702
SELECT ALL + - 25, 61 + 78 / + 38 AS col1
----
-25
63

query I rowsort
SELECT DISTINCT + ( + - 90 )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-6704
SELECT ALL - ( + - 60 ) DIV - + 90 + - 8 + + - 61
----
-69

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL - ( + - 60 ) / - + 90 + - 8 + + - 61
----
-69

query II rowsort
SELECT DISTINCT + + 73 col0, + 16
----
73
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6706
SELECT ALL + 10 DIV - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL + 10 / - 78 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6707
SELECT - + 4 DIV - - 46
----
0

skipif mysql # not compatible
query I rowsort label-6707
SELECT - + 4 / - - 46
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6708
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / - CASE 3 WHEN + + CAST( NULL AS SIGNED ) * + 58 THEN 67 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6708
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / - CASE 3 WHEN + + CAST ( NULL AS INTEGER ) * + 58 THEN 67 END AS col0
----
NULL

query I rowsort
SELECT ALL - ( 13 ) * + 39
----
-507

query II rowsort
SELECT 2, - 48 AS col2
----
2
-48

query I rowsort
SELECT ALL + 58 * + 78 * 96
----
434304

query I rowsort
SELECT + ( 93 )
----
93

query II rowsort
SELECT + 85 col0, 20
----
85
20

query I rowsort
SELECT DISTINCT 55 * + 52
----
2860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6715
SELECT COUNT( * ) - + ( + CAST( + 53 AS SIGNED ) ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-6715
SELECT COUNT ( * ) - + ( + CAST ( + 53 AS INTEGER ) ) AS col0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-6716
SELECT ALL 75 DIV - NULLIF ( 97, - + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL 75 / - NULLIF ( 97, - + 77 )
----
0

query II rowsort
SELECT DISTINCT 92 * + - 94 AS col2, + CASE 53 WHEN + ( - - 59 ) THEN NULL WHEN + 77 THEN + 94 END * - + 92 AS col0
----
-8648
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT NULLIF ( - + COUNT( * ), + 45 - + MIN( - 12 ) ) + COALESCE ( + 86, 83 * 69, + 17 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-6718
SELECT NULLIF ( - + COUNT ( * ), + 45 - + MIN ( - 12 ) ) + COALESCE ( + 86, 83 * 69, + 17 ) AS col2
----
85

query I rowsort
SELECT DISTINCT 74 * 69 AS col2
----
5106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6720
SELECT ALL 32 + + - SUM( + 34 ) - - 3 DIV + 8 + - 80
----
-82

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL 32 + + - SUM ( + 34 ) - - 3 / + 8 + - 80
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6721
SELECT ALL 91 + - ( - - COUNT( * ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL 91 + - ( - - COUNT ( * ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 3 * + 6 col1
----
18

query I rowsort
SELECT DISTINCT 38 + + 10 + 24 * + 80 AS col1
----
1968

onlyif mysql # DIV for integer division: 
query I rowsort label-6724
SELECT ALL - 4 DIV 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL - 4 / 81 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT ALL - MIN( DISTINCT + + 98 ) + - - 26
----
-72

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL - MIN ( DISTINCT + + 98 ) + - - 26
----
-72

query I rowsort
SELECT 12 + - 86 + 7 * - + 9 AS col2
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT 43 * + - SUM( DISTINCT + 96 ) * - - 80 AS col1
----
-330240

skipif mysql # not compatible
query I rowsort label-6727
SELECT 43 * + - SUM ( DISTINCT + 96 ) * - - 80 AS col1
----
-330240

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT + COUNT( * ) * - + ( 79 ) * 33 col0
----
-2607

skipif mysql # not compatible
query I rowsort label-6728
SELECT + COUNT ( * ) * - + ( 79 ) * 33 col0
----
-2607

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT - COUNT( ALL + 37 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6729
SELECT - COUNT ( ALL + 37 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT + 65 * + + COUNT( * ) * - + 86 + + 35 * 45
----
-4015

skipif mysql # not compatible
query I rowsort label-6730
SELECT + 65 * + + COUNT ( * ) * - + 86 + + 35 * 45
----
-4015

query I rowsort
SELECT DISTINCT - - 14 col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT + + 96 * ( - COUNT( * ) ) * - 87 - - NULLIF ( - 43, + + ( COUNT( * ) ) * + 92 )
----
8309

skipif mysql # not compatible
query I rowsort label-6732
SELECT + + 96 * ( - COUNT ( * ) ) * - 87 - - NULLIF ( - 43, + + ( COUNT ( * ) ) * + 92 )
----
8309

query I rowsort
SELECT DISTINCT 58 + COALESCE ( + - 34, + 70 )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6734
SELECT + 6 + 17 + + + CAST( + + 81 AS SIGNED ) * 61 AS col1, + 7 AS col1
----
4964
7

skipif mysql # not compatible
query II rowsort label-6734
SELECT + 6 + 17 + + + CAST ( + + 81 AS INTEGER ) * 61 AS col1, + 7 AS col1
----
4964
7

query I rowsort
SELECT ALL + 64 * - - 79
----
5056

onlyif mysql # aggregate syntax: 
query III rowsort label-6736
SELECT 50 * SUM( ALL 94 ) col1, - 16 + + COALESCE ( + - 15, - - COUNT( * ), ( + + 59 ) ) + - + 34, - - COUNT( DISTINCT 73 ) AS col2
----
4700
-65
1

skipif mysql # not compatible
query III rowsort label-6736
SELECT 50 * SUM ( ALL 94 ) col1, - 16 + + COALESCE ( + - 15, - - COUNT ( * ), ( + + 59 ) ) + - + 34, - - COUNT ( DISTINCT 73 ) AS col2
----
4700
-65
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6737
SELECT + COUNT( DISTINCT - CAST( - - ( + 23 ) AS SIGNED ) ) + + 93 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-6737
SELECT + COUNT ( DISTINCT - CAST ( - - ( + 23 ) AS INTEGER ) ) + + 93 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT SUM( + - COALESCE ( - + 25, - + 54 ) )
----
25

skipif mysql # not compatible
query I rowsort label-6738
SELECT SUM ( + - COALESCE ( - + 25, - + 54 ) )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6739
SELECT NULLIF ( + - 95, + 26 * - + ( - 96 ) * + 65 * 54 + ( - 73 ) + + - 94 - - + COUNT( * ) * + CAST( NULL AS SIGNED ) * - + AVG ( + 30 ) + 28 + + 29 * 0 ) * 28 + + - 9 + + 41 * + 21 + 9 col0
----
-1799

skipif mysql # not compatible
query I rowsort label-6739
SELECT NULLIF ( + - 95, + 26 * - + ( - 96 ) * + 65 * 54 + ( - 73 ) + + - 94 - - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - + AVG ( + 30 ) + 28 + + 29 * 0 ) * 28 + + - 9 + + 41 * + 21 + 9 col0
----
-1799

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6740
SELECT CAST( CASE - + 42 WHEN - 57 THEN - 65 * 39 + 81 + + 28 + - ( - CAST( NULL AS SIGNED ) ) * - 8 * + CASE - 59 WHEN - 66 * - - 99 THEN NULL ELSE 84 / + 37 - + CASE + + 88 WHEN - + 67 THEN ( COUNT( * ) ) WHEN + 6 * + CAST( NULL AS SIGNED ) + 13 + + COALESCE ( + + 95, 31 ) + + - 94 + + - 13 / - - 46 * 37 - AVG ( 30 ) THEN NULL WHEN - COALESCE ( - ( + 19 ), + COUNT( * ) + - 12, CAST( NULL AS DECIMAL ) ) THEN NULL END - 60 * 26 END * 0 ELSE 38 END AS SIGNED ) * 95
----
3610

skipif mysql # not compatible
query I rowsort label-6740
SELECT CAST ( CASE - + 42 WHEN - 57 THEN - 65 * 39 + 81 + + 28 + - ( - CAST ( NULL AS INTEGER ) ) * - 8 * + CASE - 59 WHEN - 66 * - - 99 THEN NULL ELSE 84 / + 37 - + CASE + + 88 WHEN - + 67 THEN ( COUNT ( * ) ) WHEN + 6 * + CAST ( NULL AS INTEGER ) + 13 + + COALESCE ( + + 95, 31 ) + + - 94 + + - 13 / - - 46 * 37 - AVG ( 30 ) THEN NULL WHEN - COALESCE ( - ( + 19 ), + COUNT ( * ) + - 12, CAST ( NULL AS REAL ) ) THEN NULL END - 60 * 26 END * 0 ELSE 38 END AS INTEGER ) * 95
----
3610

onlyif mysql # DIV for integer division: 
query I rowsort label-6741
SELECT ALL - 37 DIV - + 34
----
1

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL - 37 / - + 34
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6742
SELECT - ( + COUNT( * ) ) * + 13 * + COUNT( * ) + 29 DIV 8 DIV 25 col1
----
-13

skipif mysql # not compatible
query I rowsort label-6742
SELECT - ( + COUNT ( * ) ) * + 13 * + COUNT ( * ) + 29 / 8 / 25 col1
----
-13

query I rowsort
SELECT ALL - ( + - 24 ) col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT ALL - NULLIF ( 78, - + COALESCE ( - COUNT( * ), - + 46 * + 33 + + 95 ) ) * + COUNT( * ) - - 66
----
-12

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL - NULLIF ( 78, - + COALESCE ( - COUNT ( * ), - + 46 * + 33 + + 95 ) ) * + COUNT ( * ) - - 66
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT 30 + + ( COUNT( * ) )
----
31

skipif mysql # not compatible
query I rowsort label-6745
SELECT 30 + + ( COUNT ( * ) )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6746
SELECT 36 DIV + + 89 * - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6746
SELECT 36 / + + 89 * - 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT COUNT( * ) + + 62 + + 6 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-6747
SELECT COUNT ( * ) + + 62 + + 6 AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6748
SELECT - 81, MIN( + 28 ) - ( 64 ) AS col0
----
-81
-36

skipif mysql # not compatible
query II rowsort label-6748
SELECT - 81, MIN ( + 28 ) - ( 64 ) AS col0
----
-81
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-6749
SELECT 43 AS col1, SUM( - 22 ) + + 93
----
43
71

skipif mysql # not compatible
query II rowsort label-6749
SELECT 43 AS col1, SUM ( - 22 ) + + 93
----
43
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT 55 + - + 28 + - COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6750
SELECT 55 + - + 28 + - COUNT ( * ) AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6751
SELECT 30 * 11 DIV - 8
----
-41

skipif mysql # not compatible
query I rowsort label-6751
SELECT 30 * 11 / - 8
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-6752
SELECT DISTINCT 33 + 38 - 22 DIV - 45 * 30
----
71

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT 33 + 38 - 22 / - 45 * 30
----
71

query I rowsort
SELECT ALL 91 + - + 24 + - 60
----
7

query II rowsort
SELECT - 47, 90 * - 18 AS col2
----
-47
-1620

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6755
SELECT ALL 48 AS col0, - 25 + CAST( 62 AS SIGNED )
----
48
37

skipif mysql # not compatible
query II rowsort label-6755
SELECT ALL 48 AS col0, - 25 + CAST ( 62 AS INTEGER )
----
48
37

query I rowsort
SELECT 55 * - - 21
----
1155

query I rowsort
SELECT - 5 col1
----
-5

query I rowsort
SELECT ALL + 8 + - - 41
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-6759
SELECT DISTINCT 20 DIV 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT 20 / 62 AS col1
----
0

query II rowsort
SELECT 67, 31 col1
----
67
31

query II rowsort
SELECT 40 AS col1, - 85
----
40
-85

query I rowsort
SELECT DISTINCT 84 * - - 6
----
504

query I rowsort
SELECT ALL 89 + 99 AS col1
----
188

query I rowsort
SELECT + 63 * - + 22 AS col0
----
-1386

query I rowsort
SELECT ALL 3 * + 5 * 58 * - 5 - - - 54 AS col0
----
-4404

query II rowsort
SELECT - 72 + 93 + 40 AS col0, 84 col1
----
61
84

query I rowsort
SELECT DISTINCT - - 50 * + 74
----
3700

onlyif mysql # DIV for integer division: 
query I rowsort label-6768
SELECT 96 DIV - + 10 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-6768
SELECT 96 / - + 10 AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6769
SELECT ALL + 34 * + 99 - + - 84 - - CAST( NULL AS SIGNED ) - + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL + 34 * + 99 - + - 84 - - CAST ( NULL AS INTEGER ) - + 38 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT SUM( ALL + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-6770
SELECT SUM ( ALL + 92 ) AS col2
----
92

query I rowsort
SELECT ALL - ( 52 )
----
-52

query I rowsort
SELECT - 95 / 84 + + 71 + CASE - 94 WHEN + 70 THEN - 68 + - - 73 END * - 95 * 74 / - - 26 + + 34
----
NULL

query I rowsort
SELECT + + 63 * 13
----
819

query I rowsort
SELECT + 20 * + 72 + - - 11 * 42 + COALESCE ( - - 27, + 99 )
----
1929

query I rowsort
SELECT + 88 * - 4 AS col2
----
-352

onlyif mysql # DIV for integer division: 
query I rowsort label-6776
SELECT - NULLIF ( + 9, - 48 ) DIV 8 + + 5
----
4

skipif mysql # not compatible
query I rowsort label-6776
SELECT - NULLIF ( + 9, - 48 ) / 8 + + 5
----
4

query I rowsort
SELECT DISTINCT 28 * - - 50
----
1400

onlyif mysql # aggregate syntax: 
query II rowsort label-6778
SELECT MAX( - - 71 ), - 14 * - COALESCE ( - 20, - 48, + - ( 56 ) + - NULLIF ( - 35, 34 / - 59 + + 38 ) ) AS col0
----
71
-280

skipif mysql # not compatible
query II rowsort label-6778
SELECT MAX ( - - 71 ), - 14 * - COALESCE ( - 20, - 48, + - ( 56 ) + - NULLIF ( - 35, 34 / - 59 + + 38 ) ) AS col0
----
71
-280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6779
SELECT ALL 63 * + NULLIF ( COUNT( * ), - + 24 * - 57 + + + 11 + + 88 + - 39 * - 38 + + + COUNT( * ) - - 79 * + 71 + 90 + + + 66 ) AS col2, CAST( NULL AS SIGNED ) AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-6779
SELECT ALL 63 * + NULLIF ( COUNT ( * ), - + 24 * - 57 + + + 11 + + 88 + - 39 * - 38 + + + COUNT ( * ) - - 79 * + 71 + 90 + + + 66 ) AS col2, CAST ( NULL AS INTEGER ) AS col2
----
63
NULL

query I rowsort
SELECT ALL - 82 * - 61 + + + ( + 89 )
----
5091

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT + CASE 35 WHEN + 49 THEN + SUM( - - ( + - 37 ) ) / - ( ( 64 ) ) / 99 / - + 80 + - 45 * COALESCE ( + 99, + 68 * - CASE + + 5 WHEN - 20 THEN + MAX( DISTINCT - - 72 ) + + + 58 WHEN - CASE 6 WHEN SUM( + 5 ) * + 12 THEN CASE WHEN NOT 26 > + + COUNT( * ) + + 64 * - 44 + - - ( - SUM( 45 ) ) THEN + 46 * ( - 34 ) END END THEN 24 + 88 * - 65 ELSE NULL END ) + + 58 ELSE 50 END
----
50

skipif mysql # not compatible
query I rowsort label-6781
SELECT + CASE 35 WHEN + 49 THEN + SUM ( - - ( + - 37 ) ) / - ( ( 64 ) ) / 99 / - + 80 + - 45 * COALESCE ( + 99, + 68 * - CASE + + 5 WHEN - 20 THEN + MAX ( DISTINCT - - 72 ) + + + 58 WHEN - CASE 6 WHEN SUM ( + 5 ) * + 12 THEN CASE WHEN NOT 26 > + + COUNT ( * ) + + 64 * - 44 + - - ( - SUM ( 45 ) ) THEN + 46 * ( - 34 ) END END THEN 24 + 88 * - 65 ELSE NULL END ) + + 58 ELSE 50 END
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-6782
SELECT ALL - 39 + - 19 AS col0, + 97 * + COUNT( * )
----
-58
97

skipif mysql # not compatible
query II rowsort label-6782
SELECT ALL - 39 + - 19 AS col0, + 97 * + COUNT ( * )
----
-58
97

query I rowsort
SELECT + ( + + 80 ) col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6784
SELECT ALL CASE - 9 WHEN 61 + + - ( 16 ) * 39 * + - COUNT( * ) THEN + 41 * 70 - + CAST( - - 70 AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT ALL CASE - 9 WHEN 61 + + - ( 16 ) * 39 * + - COUNT ( * ) THEN + 41 * 70 - + CAST ( - - 70 AS REAL ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6785
SELECT DISTINCT CAST( NULL AS DECIMAL ) + COALESCE ( + + NULLIF ( 9, - + COUNT( * ) + 98 - - + 71 * - 19 * COUNT( * ) + - ( + - 41 ) + + 56 + 57 - COUNT( * ) * - - 81 ), - - 35 * + - 50, - 22 + 31 ) / 87 * 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT CAST ( NULL AS REAL ) + COALESCE ( + + NULLIF ( 9, - + COUNT ( * ) + 98 - - + 71 * - 19 * COUNT ( * ) + - ( + - 41 ) + + 56 + 57 - COUNT ( * ) * - - 81 ), - - 35 * + - 50, - 22 + 31 ) / 87 * 69 AS col1
----
NULL

query I rowsort
SELECT - 50 * CASE 88 WHEN 58 THEN - AVG ( DISTINCT - 96 ) WHEN ( + + 77 ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 76 + - - 99 AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6788
SELECT DISTINCT + 22 DIV CAST( - 75 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT + 22 / CAST ( - 75 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT DISTINCT - COUNT( * ) + 11
----
10

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT - COUNT ( * ) + 11
----
10

query I rowsort
SELECT DISTINCT NULLIF ( + - 21, - 96 )
----
-21

query I rowsort
SELECT - 14 + + - 74
----
-88

query I rowsort
SELECT + 37 + + 16
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6793
SELECT DISTINCT - 32 + - COALESCE ( ( + 60 ), - 37 ) + + 31 DIV 33 + 89
----
-3

skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT - 32 + - COALESCE ( ( + 60 ), - 37 ) + + 31 / 33 + 89
----
-3

query I rowsort
SELECT - 61 + - + 25 + - - 42 + + 0 AS col1
----
-44

query I rowsort
SELECT - NULLIF ( + + 1, - 70 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT DISTINCT - MIN( ( + ( + - 77 ) ) ) * + 82 * 66 + COUNT( * )
----
416725

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT - MIN ( ( + ( + - 77 ) ) ) * + 82 * 66 + COUNT ( * )
----
416725

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT + - COUNT( * ) * + - 0 + + 61 - 46 * + 71 + + - ( COUNT( * ) ) AS col0
----
-3206

skipif mysql # not compatible
query I rowsort label-6797
SELECT + - COUNT ( * ) * + - 0 + + 61 - 46 * + 71 + + - ( COUNT ( * ) ) AS col0
----
-3206

query I rowsort
SELECT - 36 + + - 61
----
-97

query I rowsort
SELECT - ( + + 53 ) AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6800
SELECT ALL MAX( DISTINCT + CAST( NULL AS SIGNED ) ), - COALESCE ( + 60, 88 ) * - 85 AS col2
----
NULL
5100

skipif mysql # not compatible
query II rowsort label-6800
SELECT ALL MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ), - COALESCE ( + 60, 88 ) * - 85 AS col2
----
NULL
5100

query I rowsort
SELECT - 63 * + 80 AS col2
----
-5040

query I rowsort
SELECT ALL 3 * + 17
----
51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6803
SELECT CAST( + - 78 AS SIGNED ) * - CAST( NULL AS DECIMAL ) - - 11 / 71 AS col2, + 74
----
NULL
74

skipif mysql # not compatible
query II rowsort label-6803
SELECT CAST ( + - 78 AS INTEGER ) * - CAST ( NULL AS REAL ) - - 11 / 71 AS col2, + 74
----
NULL
74

query I rowsort
SELECT ALL + 21 * - + ( - + 85 )
----
1785

query I rowsort
SELECT ALL + + 80 * - 97 + - 25 col2
----
-7785

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT ALL + + MAX( ALL - - 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL + + MAX ( ALL - - 24 ) AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6807
SELECT - 2 DIV - COUNT( * ) + + MAX( + NULLIF ( - 84, - NULLIF ( - 81, - ( 71 ) ) ) ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-6807
SELECT - 2 / - COUNT ( * ) + + MAX ( + NULLIF ( - 84, - NULLIF ( - 81, - ( 71 ) ) ) ) AS col1
----
-82

query I rowsort
SELECT + ( 86 ) AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6809
SELECT ALL - CAST( NULL AS SIGNED ) * - - ( - COALESCE ( - + 68, 3 * + - 55 ) ) + + 19 - + 75 * ( COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL - CAST ( NULL AS INTEGER ) * - - ( - COALESCE ( - + 68, 3 * + - 55 ) ) + + 19 - + 75 * ( COUNT ( * ) ) AS col0
----
NULL

query II rowsort
SELECT 7 * 0 * 68 - - - 65 + + 32, 11 * 15 col2
----
-33
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6811
SELECT COALESCE ( + 4, + 14 * + + 14 - - + 82 * + - CAST( NULL AS SIGNED ), + 92 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6811
SELECT COALESCE ( + 4, + 14 * + + 14 - - + 82 * + - CAST ( NULL AS INTEGER ), + 92 ) AS col0
----
4

query I rowsort
SELECT - 86 * - 39
----
3354

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT COALESCE ( 57, + + 32, + 58 * + 10 ) * 32 * + - ( - SUM( ALL + 40 ) ) * 49 + + 87
----
3575127

skipif mysql # not compatible
query I rowsort label-6813
SELECT COALESCE ( 57, + + 32, + 58 * + 10 ) * 32 * + - ( - SUM ( ALL + 40 ) ) * 49 + + 87
----
3575127

query II rowsort
SELECT ALL 10 * 66 * + 31, 8 AS col2
----
20460
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6815
SELECT ALL CASE - 44 WHEN - - 43 - - - 20 THEN - + 28 * + COUNT( * ) ELSE - - 80 END * + - CASE + COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN + 95 THEN - COUNT( * ) + 79 + 36 WHEN - 47 THEN + - 13 END + + 61 + + - 71 AS col2, 57 AS col0
----
NULL
57

skipif mysql # not compatible
query II rowsort label-6815
SELECT ALL CASE - 44 WHEN - - 43 - - - 20 THEN - + 28 * + COUNT ( * ) ELSE - - 80 END * + - CASE + COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN + 95 THEN - COUNT ( * ) + 79 + 36 WHEN - 47 THEN + - 13 END + + 61 + + - 71 AS col2, 57 AS col0
----
NULL
57

onlyif mysql # aggregate syntax: 
query II rowsort label-6816
SELECT ALL + 45 * + + 66 * - + 59 + + ( + - 29 ) AS col1, COALESCE ( COUNT( - - 96 ), + + 9 ) + - 36 + - 91 AS col1
----
-175259
-126

skipif mysql # not compatible
query II rowsort label-6816
SELECT ALL + 45 * + + 66 * - + 59 + + ( + - 29 ) AS col1, COALESCE ( COUNT ( - - 96 ), + + 9 ) + - 36 + - 91 AS col1
----
-175259
-126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6817
SELECT + CAST( - + NULLIF ( + 31, + 75 + 40 ) AS SIGNED ) AS col0, - ( - 90 ) * + ( - 22 )
----
-31
-1980

skipif mysql # not compatible
query II rowsort label-6817
SELECT + CAST ( - + NULLIF ( + 31, + 75 + 40 ) AS INTEGER ) AS col0, - ( - 90 ) * + ( - 22 )
----
-31
-1980

query I rowsort
SELECT + 50 + + 32 * - + 25 - + + 50 AS col0
----
-800

query I rowsort
SELECT ALL 74 * 52 AS col0
----
3848

query I rowsort
SELECT - ( - - 63 )
----
-63

query I rowsort
SELECT - ( - 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT MIN( ALL 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6822
SELECT MIN ( ALL 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT + 19 * ( + COUNT( * ) ) + - 78 * 76
----
-5909

skipif mysql # not compatible
query I rowsort label-6823
SELECT + 19 * ( + COUNT ( * ) ) + - 78 * 76
----
-5909

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT + COUNT( * ) * - 27 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-6824
SELECT + COUNT ( * ) * - 27 AS col2
----
-27

query I rowsort
SELECT - 96 + + + 73 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT ALL 38 * + + COUNT( * ) - + - 52 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL 38 * + + COUNT ( * ) - + - 52 AS col2
----
90

query I rowsort
SELECT DISTINCT CASE + 17 WHEN 66 - 8 - - 68 - + 19 * + 74 * - 92 * - - 25 * + - 2 * 78 THEN - AVG ( DISTINCT - ( + 33 ) ) END
----
NULL

query I rowsort
SELECT ALL 73 * 67 AS col1
----
4891

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT - CASE - + 98 WHEN + 60 * 56 THEN 31 WHEN - NULLIF ( - ( 19 ), + + 48 * + COUNT( ALL + - 0 ) ) THEN NULL END / + + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6829
SELECT - CASE - + 98 WHEN + 60 * 56 THEN 31 WHEN - NULLIF ( - ( 19 ), + + 48 * + COUNT ( ALL + - 0 ) ) THEN NULL END / + + 3 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6830
SELECT ALL + + 25 DIV - 2
----
-12

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL + + 25 / - 2
----
-12

query I rowsort
SELECT - + 21 + - ( - + 49 ) AS col1
----
28

query I rowsort
SELECT - + ( + 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT DISTINCT + 93 * - CASE + 55 WHEN 95 THEN 10 + + 41 WHEN MIN( - 2 ) / 24 + - + 23 * NULLIF ( - 22, + + MIN( ALL - 51 ) + - + 12 + - 58 * + 21 ) + - - 50 + + 38 THEN + + 77 * + + COALESCE ( - + 19, - NULLIF ( + + ( + 84 ), - 5 ) + - - COUNT( * ) * + COUNT( * ) * 54 ) * - 64 + - + 58 - - MIN( 10 ) + + 32 + COUNT( * ) + + 92 * - 69 END * 57 + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT + 93 * - CASE + 55 WHEN 95 THEN 10 + + 41 WHEN MIN ( - 2 ) / 24 + - + 23 * NULLIF ( - 22, + + MIN ( ALL - 51 ) + - + 12 + - 58 * + 21 ) + - - 50 + + 38 THEN + + 77 * + + COALESCE ( - + 19, - NULLIF ( + + ( + 84 ), - 5 ) + - - COUNT ( * ) * + COUNT ( * ) * 54 ) * - 64 + - + 58 - - MIN ( 10 ) + + 32 + COUNT ( * ) + + 92 * - 69 END * 57 + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT ALL + + 49 * - 45 * - 68 - - - 76 - + COUNT( * ) * - + 50
----
149914

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL + + 49 * - 45 * - 68 - - - 76 - + COUNT ( * ) * - + 50
----
149914

onlyif mysql # DIV for integer division: 
query I rowsort label-6835
SELECT - 81 DIV - 10
----
8

skipif mysql # not compatible
query I rowsort label-6835
SELECT - 81 / - 10
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6836
SELECT ALL + + COUNT( * ) DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL + + COUNT ( * ) / - 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT + - 2 - + 36 * COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-6837
SELECT + - 2 - + 36 * COUNT ( * )
----
-38

query I rowsort
SELECT DISTINCT + - 83 * 36
----
-2988

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT DISTINCT - - COALESCE ( ( COUNT( * ) ), + 63 ) * + 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT - - COALESCE ( ( COUNT ( * ) ), + 63 ) * + 33 AS col2
----
33

query II rowsort
SELECT - 98 AS col1, + 75 AS col0
----
-98
75

query I rowsort
SELECT 36 * - - 4 * + 63 * - 67 + + 74 + + + 21 + + - 25
----
-607754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6842
SELECT MAX( - - 2 ) * - ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6842
SELECT MAX ( - - 2 ) * - ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6843
SELECT DISTINCT + 95, + 19 + 57 + - ( + COUNT( * ) ) + + 39 * MIN( 21 ) * - MAX( 96 ) + - - NULLIF ( + 87, + 97 ) + - + 29 + + CAST( NULL AS SIGNED ) * 24 * - 12 AS col1
----
95
NULL

skipif mysql # not compatible
query II rowsort label-6843
SELECT DISTINCT + 95, + 19 + 57 + - ( + COUNT ( * ) ) + + 39 * MIN ( 21 ) * - MAX ( 96 ) + - - NULLIF ( + 87, + 97 ) + - + 29 + + CAST ( NULL AS INTEGER ) * 24 * - 12 AS col1
----
95
NULL

query I rowsort
SELECT DISTINCT + 92 + 50 col1
----
142

query I rowsort
SELECT ALL 37 + - + 12
----
25

query I rowsort
SELECT 35 + - 48
----
-13

query II rowsort
SELECT 10 AS col0, - 76 AS col1
----
10
-76

query I rowsort
SELECT 38 * - + 25 + - 59
----
-1009

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT MAX( ALL 29 ) + - 4 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6849
SELECT MAX ( ALL 29 ) + - 4 AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6850
SELECT ALL + COUNT( * ) + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL + COUNT ( * ) + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT 12 * + - 55 + + - 20 * 87 * - COUNT( - 25 )
----
1080

skipif mysql # not compatible
query I rowsort label-6851
SELECT 12 * + - 55 + + - 20 * 87 * - COUNT ( - 25 )
----
1080

query I rowsort
SELECT DISTINCT 75 * - 83 AS col2
----
-6225

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT DISTINCT - MAX( - 30 ) + - 26 col2
----
4

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT - MAX ( - 30 ) + - 26 col2
----
4

query II rowsort
SELECT ALL 69 * + 89 col0, NULLIF ( - 40, 31 * 71 )
----
6141
-40

query I rowsort
SELECT 55 * - + 57 AS col0
----
-3135

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT DISTINCT + COUNT( * ) * - - 13
----
13

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT + COUNT ( * ) * - - 13
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT ALL SUM( - 81 ) - - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL SUM ( - 81 ) - - COUNT ( * )
----
-80

query I rowsort
SELECT ( - + 63 ) * + - 70 + 61
----
4471

onlyif mysql # aggregate syntax: 
query II rowsort label-6859
SELECT 83 AS col0, COALESCE ( - 64, - + 13 ) * + + MIN( ALL 98 )
----
83
-6272

skipif mysql # not compatible
query II rowsort label-6859
SELECT 83 AS col0, COALESCE ( - 64, - + 13 ) * + + MIN ( ALL 98 )
----
83
-6272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6860
SELECT AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6860
SELECT AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * 2
----
NULL

query I rowsort
SELECT 80 - + 59
----
21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6862
SELECT ALL COUNT( ALL - - COALESCE ( 41, 70 ) ) * + ( - - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL COUNT ( ALL - - COALESCE ( 41, 70 ) ) * + ( - - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 15 AS col1, 21 + + - 94 AS col0
----
15
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT DISTINCT SUM( - - 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-6864
SELECT DISTINCT SUM ( - - 81 ) AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6865
SELECT - CAST( - - 28 AS SIGNED ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-6865
SELECT - CAST ( - - 28 AS INTEGER ) AS col2
----
-28

query I rowsort
SELECT - ( + + 72 ) + - 34 AS col0
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT - 23 + - CASE 19 WHEN - - COUNT( * ) THEN NULL ELSE 89 - + + 80 * + - CASE WHEN NOT 84 IS NULL THEN NULL ELSE - 84 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT - 23 + - CASE 19 WHEN - - COUNT ( * ) THEN NULL ELSE 89 - + + 80 * + - CASE WHEN NOT 84 IS NULL THEN NULL ELSE - 84 END END
----
NULL

query I rowsort
SELECT - 93 - 85 AS col0
----
-178

query II rowsort
SELECT ALL 43, + 37 AS col2
----
43
37

query I rowsort
SELECT + 6 * - + 66
----
-396

onlyif mysql # aggregate syntax: 
query II rowsort label-6871
SELECT DISTINCT COUNT( * ) AS col2, - 71
----
1
-71

skipif mysql # not compatible
query II rowsort label-6871
SELECT DISTINCT COUNT ( * ) AS col2, - 71
----
1
-71

query I rowsort
SELECT 35 * - - 60 + + - 91 + 43
----
2052

query I rowsort
SELECT DISTINCT + + 55 + - 38 - 77 AS col0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6874
SELECT + 73 + + CAST( + 34 AS SIGNED )
----
107

skipif mysql # not compatible
query I rowsort label-6874
SELECT + 73 + + CAST ( + 34 AS INTEGER )
----
107

query I rowsort
SELECT ALL - - 5 + - COALESCE ( - 50, 31 )
----
55

query II rowsort
SELECT - 88 AS col1, - 42
----
-88
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6877
SELECT ALL + 18 + + CAST( + 74 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL + 18 + + CAST ( + 74 AS INTEGER )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6878
SELECT 60 + - COALESCE ( - CAST( NULLIF ( - 54, 32 * + 28 ) AS SIGNED ), + + CASE + + 76 WHEN CASE + 45 WHEN - 35 THEN - 42 WHEN - 30 THEN 29 WHEN - CASE - + 27 WHEN - - 74 + + ( - - 41 ) THEN + - 19 + 11 * COUNT( * ) WHEN - - 18 * + + 39 THEN NULL WHEN + NULLIF ( + + 8, 98 ) * - + 38 * - 27 + - 23 THEN NULL ELSE - 46 END * - MAX( - 86 ) THEN NULL END * 58 THEN + 22 ELSE NULL END, + COUNT( * ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-6878
SELECT 60 + - COALESCE ( - CAST ( NULLIF ( - 54, 32 * + 28 ) AS INTEGER ), + + CASE + + 76 WHEN CASE + 45 WHEN - 35 THEN - 42 WHEN - 30 THEN 29 WHEN - CASE - + 27 WHEN - - 74 + + ( - - 41 ) THEN + - 19 + 11 * COUNT ( * ) WHEN - - 18 * + + 39 THEN NULL WHEN + NULLIF ( + + 8, 98 ) * - + 38 * - 27 + - 23 THEN NULL ELSE - 46 END * - MAX ( - 86 ) THEN NULL END * 58 THEN + 22 ELSE NULL END, + COUNT ( * ) ) AS col1
----
6

query I rowsort
SELECT - 39 * + 91
----
-3549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6880
SELECT CASE 81 WHEN + - ( - 98 ) * + 73 * 32 + + 61 THEN + 0 WHEN CAST( NULL AS SIGNED ) + + 64 THEN + 28 - + 39 ELSE NULL END / + ( - CAST( + 1 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6880
SELECT CASE 81 WHEN + - ( - 98 ) * + 73 * 32 + + 61 THEN + 0 WHEN CAST ( NULL AS INTEGER ) + + 64 THEN + 28 - + 39 ELSE NULL END / + ( - CAST ( + 1 AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL + 69 * + 9 + - 35 * - 32 AS col2, - 42 + - 68 + + CASE + + 98 WHEN + - 28 * + - 57 * - + ( - + 63 ) THEN NULL ELSE 65 END
----
1741
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT - 6 * 2 - + + 81 * COUNT( * ) - - 16 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-6882
SELECT - 6 * 2 - + + 81 * COUNT ( * ) - - 16 AS col1
----
-77

query I rowsort
SELECT DISTINCT + 35 * 63 col0
----
2205

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6884
SELECT ALL CAST( NULL AS DECIMAL ) * 47 * - 4 + 37 - + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL CAST ( NULL AS REAL ) * 47 * - 4 + 37 - + 52 AS col1
----
NULL

query I rowsort
SELECT ALL - ( 70 )
----
-70

onlyif mysql # DIV for integer division: 
query II rowsort label-6886
SELECT + 68 * + 71 - - 51 * 45 DIV + 49, 33 * 92 + + 98 + + 76 + + 23 AS col2
----
4874
3233

skipif mysql # not compatible
query II rowsort label-6886
SELECT + 68 * + 71 - - 51 * 45 / + 49, 33 * 92 + + 98 + + 76 + + 23 AS col2
----
4874
3233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6887
SELECT 55 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT 55 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT 81 * - 18 - - MIN( ALL 34 ) col0
----
-1424

skipif mysql # not compatible
query I rowsort label-6888
SELECT 81 * - 18 - - MIN ( ALL 34 ) col0
----
-1424

query I rowsort
SELECT ALL - 45 - - ( - COALESCE ( - 85, 44 * - 66 * + + 44 + - 7 ) ) * - ( + 85 ) * + ( + 46 ) AS col2
----
-332395

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT + CASE + ( 22 ) WHEN + - 30 THEN + 69 END * 69 + - + MAX( 63 ) * 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6890
SELECT + CASE + ( 22 ) WHEN + - 30 THEN + 69 END * 69 + - + MAX ( 63 ) * 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT COUNT( + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-6891
SELECT COUNT ( + 0 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6892
SELECT DISTINCT 20 * - NULLIF ( + 95, - MAX( + 95 ) ), COUNT( * ) DIV + 86 * - 16 - + 4 AS col1
----
-1900
-4

skipif mysql # not compatible
query II rowsort label-6892
SELECT DISTINCT 20 * - NULLIF ( + 95, - MAX ( + 95 ) ), COUNT ( * ) / + 86 * - 16 - + 4 AS col1
----
-1900
-4

query I rowsort
SELECT DISTINCT - 73 * - + 67 * + 26 AS col2
----
127166

query I rowsort
SELECT DISTINCT 29 * 0
----
0

query I rowsort
SELECT ALL ( 6 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT + 86 * + ( MIN( DISTINCT - + 7 ) ) AS col1
----
-602

skipif mysql # not compatible
query I rowsort label-6896
SELECT + 86 * + ( MIN ( DISTINCT - + 7 ) ) AS col1
----
-602

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6897
SELECT + - CAST( NULL AS DECIMAL ) + + 34 + COUNT( * ) * - - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6897
SELECT + - CAST ( NULL AS REAL ) + + 34 + COUNT ( * ) * - - 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6898
SELECT ALL + NULLIF ( + CASE - 43 WHEN CASE + 37 WHEN + + 8 THEN + 6 ELSE - 41 * - 15 END + + 81 + 27 THEN 37 - - 60 DIV - + 6 WHEN - - COUNT( DISTINCT 67 ) * + - 9 + + - 41 THEN NULL ELSE 89 * - 52 + - + 52 END, 8 ) + 88 + - 78
----
-4670

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL + NULLIF ( + CASE - 43 WHEN CASE + 37 WHEN + + 8 THEN + 6 ELSE - 41 * - 15 END + + 81 + 27 THEN 37 - - 60 / - + 6 WHEN - - COUNT ( DISTINCT 67 ) * + - 9 + + - 41 THEN NULL ELSE 89 * - 52 + - + 52 END, 8 ) + 88 + - 78
----
-4670

query I rowsort
SELECT + 52 + - + ( + ( 94 ) ) AS col2
----
-42

query II rowsort
SELECT + + 42 + 59 * + 79, CASE - 15 WHEN 92 + 11 THEN + 73 WHEN 34 THEN NULL WHEN - 10 THEN + 27 END + 19 + + 40 col1
----
4703
NULL

query I rowsort
SELECT + + 84 - 41
----
43

query I rowsort
SELECT - - 3 * - 5
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT ALL + ( + - 56 ) * + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL + ( + - 56 ) * + COUNT ( * )
----
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-6904
SELECT ALL 18 AS col0, + 29 DIV - 66 AS col0
----
18
0

skipif mysql # not compatible
query II rowsort label-6904
SELECT ALL 18 AS col0, + 29 / - 66 AS col0
----
18
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6905
SELECT + 75 + MIN( ALL - CAST( NULL AS DECIMAL ) ) + - 64 - - + 80 + + 48 - - + 15 + 94 * 72 * 53 * + 30 / CASE + + 69 WHEN 38 THEN ( - 54 ) * - 39 - - + COALESCE ( - 27, - 30 + 91 / - + 19 ) WHEN ( + CAST( + - 36 AS SIGNED ) ) THEN + + MAX( DISTINCT 85 ) END * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6905
SELECT + 75 + MIN ( ALL - CAST ( NULL AS REAL ) ) + - 64 - - + 80 + + 48 - - + 15 + 94 * 72 * 53 * + 30 / CASE + + 69 WHEN 38 THEN ( - 54 ) * - 39 - - + COALESCE ( - 27, - 30 + 91 / - + 19 ) WHEN ( + CAST ( + - 36 AS INTEGER ) ) THEN + + MAX ( DISTINCT 85 ) END * 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6906
SELECT ALL + NULLIF ( - CAST( NULL AS DECIMAL ), - 88 * - + ( - COUNT( * ) ) * 88 - - + COUNT( * ) + + 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL + NULLIF ( - CAST ( NULL AS REAL ), - 88 * - + ( - COUNT ( * ) ) * 88 - - + COUNT ( * ) + + 42 ) AS col0
----
NULL

query II rowsort
SELECT + 74 AS col1, 5 col2
----
74
5

query I rowsort
SELECT + 22 * - 54
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT - 27 * - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-6909
SELECT - 27 * - COUNT ( * )
----
27

query I rowsort
SELECT ( - 93 ) AS col2
----
-93

query I rowsort
SELECT - 45 + - 74
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6912
SELECT + ( + NULLIF ( 97, + + CASE + COUNT( * ) WHEN 19 + - NULLIF ( 1, - + 38 * + 29 / + 38 + - - COUNT( * ) ) + + 86 THEN + + 41 / - NULLIF ( + + COUNT( * ), - 62 * - 89 + - + 36 + - + 49 ) + - 9 WHEN 9 * + 14 THEN CAST( + SUM( 21 ) AS SIGNED ) + 51 * - - 50 + + 53 ELSE + 83 END + - - 30 ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-6912
SELECT + ( + NULLIF ( 97, + + CASE + COUNT ( * ) WHEN 19 + - NULLIF ( 1, - + 38 * + 29 / + 38 + - - COUNT ( * ) ) + + 86 THEN + + 41 / - NULLIF ( + + COUNT ( * ), - 62 * - 89 + - + 36 + - + 49 ) + - 9 WHEN 9 * + 14 THEN CAST ( + SUM ( 21 ) AS INTEGER ) + 51 * - - 50 + + 53 ELSE + 83 END + - - 30 ) ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT ALL - 59 * - + MIN( 83 ) AS col2
----
4897

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL - 59 * - + MIN ( 83 ) AS col2
----
4897

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6914
SELECT 86 * 31 + - 48 - + 55 DIV + ( + COUNT( * ) ) + - + COUNT( * )
----
2562

skipif mysql # not compatible
query I rowsort label-6914
SELECT 86 * 31 + - 48 - + 55 / + ( + COUNT ( * ) ) + - + COUNT ( * )
----
2562

onlyif mysql # aggregate syntax: 
query II rowsort label-6915
SELECT DISTINCT + 6, + 18 + - + MIN( + + 84 ) col2
----
6
-66

skipif mysql # not compatible
query II rowsort label-6915
SELECT DISTINCT + 6, + 18 + - + MIN ( + + 84 ) col2
----
6
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT ALL + MAX( ALL - 99 ) * + 43
----
-4257

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL + MAX ( ALL - 99 ) * + 43
----
-4257

query I rowsort
SELECT COALESCE ( + - 67, + 45 * + 20 )
----
-67

query I rowsort
SELECT ALL 91 * 3
----
273

query II rowsort
SELECT ALL + 19 AS col1, - 81 col1
----
19
-81

query I rowsort
SELECT COALESCE ( - - 0, + 75, + - 56 )
----
0

query I rowsort
SELECT - 38 * - 77
----
2926

query I rowsort
SELECT ALL - 87 * - - 38 AS col1
----
-3306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6923
SELECT COALESCE ( CAST( - 79 AS SIGNED ), + 32, NULLIF ( - 91, - + SUM( 69 ) * 27 ), 94 )
----
-79

skipif mysql # not compatible
query I rowsort label-6923
SELECT COALESCE ( CAST ( - 79 AS INTEGER ), + 32, NULLIF ( - 91, - + SUM ( 69 ) * 27 ), 94 )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6924
SELECT - COALESCE ( - ( + 97 ), 76 * CAST( + - 47 AS SIGNED ), + 92 ) - + + 78 AS col0, + 98 * - - 48 * + 22 AS col2
----
19
103488

skipif mysql # not compatible
query II rowsort label-6924
SELECT - COALESCE ( - ( + 97 ), 76 * CAST ( + - 47 AS INTEGER ), + 92 ) - + + 78 AS col0, + 98 * - - 48 * + 22 AS col2
----
19
103488

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT COALESCE ( - + ( - - COUNT( + + 91 ) ), - 19 * - 87 * - 91 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6925
SELECT COALESCE ( - + ( - - COUNT ( + + 91 ) ), - 19 * - 87 * - 91 ) AS col1
----
-1

query II rowsort
SELECT - 15, 5 * + 34 AS col0
----
-15
170

query I rowsort
SELECT - - ( 71 ) * 59 * + 61 col1
----
255529

query II rowsort
SELECT + - 54 AS col0, 63 AS col2
----
-54
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6929
SELECT ALL + 85 AS col1, + COUNT( * ) AS col0
----
85
1

skipif mysql # not compatible
query II rowsort label-6929
SELECT ALL + 85 AS col1, + COUNT ( * ) AS col0
----
85
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6930
SELECT ALL + + SUM( DISTINCT + - 84 ) * - 32 * - - 57 * - MIN( ALL - 96 ) - + 59 + 29 * + - 3 AS col0, + 50 AS col2
----
14708590
50

skipif mysql # not compatible
query II rowsort label-6930
SELECT ALL + + SUM ( DISTINCT + - 84 ) * - 32 * - - 57 * - MIN ( ALL - 96 ) - + 59 + 29 * + - 3 AS col0, + 50 AS col2
----
14708590
50

query I rowsort
SELECT - ( + 70 ) - - - 84 AS col0
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT - - 32 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-6932
SELECT - - 32 / + 74
----
0

query I rowsort
SELECT ALL - - 71 + + 52
----
123

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6934
SELECT - NULLIF ( - 69, + + CAST( NULL AS DECIMAL ) * - ( 46 ) * 44 )
----
69

skipif mysql # not compatible
query I rowsort label-6934
SELECT - NULLIF ( - 69, + + CAST ( NULL AS REAL ) * - ( 46 ) * 44 )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6935
SELECT - 3 DIV - + 93
----
0

skipif mysql # not compatible
query I rowsort label-6935
SELECT - 3 / - + 93
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6936
SELECT - - 13 + + 86 * + CAST( ( - COUNT( DISTINCT + 39 ) ) AS SIGNED ) + COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-6936
SELECT - - 13 + + 86 * + CAST ( ( - COUNT ( DISTINCT + 39 ) ) AS INTEGER ) + COUNT ( * ) AS col2
----
-72

query II rowsort
SELECT 17 AS col2, 28 col0
----
17
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6938
SELECT + CAST( 80 AS SIGNED ) + 4 + + + COUNT( * ) * + + COUNT( DISTINCT + 55 ) + - 67 - - COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-6938
SELECT + CAST ( 80 AS INTEGER ) + 4 + + + COUNT ( * ) * + + COUNT ( DISTINCT + 55 ) + - 67 - - COUNT ( * ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT + - 33 - + COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-6939
SELECT + - 33 - + COUNT ( * )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-6940
SELECT DISTINCT 68 AS col0, - 15 * - - 34 + + - MIN( DISTINCT 94 ) AS col0
----
68
-604

skipif mysql # not compatible
query II rowsort label-6940
SELECT DISTINCT 68 AS col0, - 15 * - - 34 + + - MIN ( DISTINCT 94 ) AS col0
----
68
-604

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6941
SELECT ALL + 26, 80 * + COUNT( * ) + - - COUNT( * ) * + COUNT( * ) DIV - 85 AS col2
----
26
80

skipif mysql # not compatible
query II rowsort label-6941
SELECT ALL + 26, 80 * + COUNT ( * ) + - - COUNT ( * ) * + COUNT ( * ) / - 85 AS col2
----
26
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT + 34 + - 90 - 20 * - COUNT( * ) * - 64 * + 69 AS col1
----
-88376

skipif mysql # not compatible
query I rowsort label-6942
SELECT + 34 + - 90 - 20 * - COUNT ( * ) * - 64 * + 69 AS col1
----
-88376

query I rowsort
SELECT ALL 46 * + + 8
----
368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6944
SELECT - CAST( - 96 AS SIGNED ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6944
SELECT - CAST ( - 96 AS INTEGER ) AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6945
SELECT - CAST( - 79 AS SIGNED ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-6945
SELECT - CAST ( - 79 AS INTEGER ) AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6946
SELECT + 4 * CAST( - - ( + - 8 ) AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-6946
SELECT + 4 * CAST ( - - ( + - 8 ) AS INTEGER )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT ALL 10 * - - NULLIF ( - - COUNT( * ), + 61 - - + COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL 10 * - - NULLIF ( - - COUNT ( * ), + 61 - - + COUNT ( * ) )
----
10

query I rowsort
SELECT + 16 + + 28 AS col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6949
SELECT + 59 * - 83 - 3 + - - 94 AS col1, - 50 * + COUNT( * ) * - + 36
----
-4806
1800

skipif mysql # not compatible
query II rowsort label-6949
SELECT + 59 * - 83 - 3 + - - 94 AS col1, - 50 * + COUNT ( * ) * - + 36
----
-4806
1800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6950
SELECT + 68 DIV - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-6950
SELECT + 68 / - COUNT ( * )
----
-68

query I rowsort
SELECT ALL 74 * - + 70
----
-5180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6952
SELECT ALL - 27 DIV + CASE - 16 WHEN + + 2 THEN NULL WHEN CAST( + 14 AS SIGNED ) + + - MAX( DISTINCT + 16 ) * + + AVG ( DISTINCT 73 ) - + COUNT( 30 ) + AVG ( 72 ) - + 99 * ( - - 94 ) THEN - + ( 18 ) + + ( 53 ) + + 48 + + + 46 * + CASE - 12 WHEN 39 * - COUNT( * ) THEN + ( + 61 ) ELSE + AVG ( ALL - ( + 63 ) ) * + 32 END - 94 ELSE COUNT( * ) END AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL - 27 / + CASE - 16 WHEN + + 2 THEN NULL WHEN CAST ( + 14 AS INTEGER ) + + - MAX ( DISTINCT + 16 ) * + + AVG ( DISTINCT 73 ) - + COUNT ( 30 ) + AVG ( 72 ) - + 99 * ( - - 94 ) THEN - + ( 18 ) + + ( 53 ) + + 48 + + + 46 * + CASE - 12 WHEN 39 * - COUNT ( * ) THEN + ( + 61 ) ELSE + AVG ( ALL - ( + 63 ) ) * + 32 END - 94 ELSE COUNT ( * ) END AS col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-6953
SELECT ALL 90 DIV + 41 + - - 29
----
31

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL 90 / + 41 + - - 29
----
31

query I rowsort
SELECT 80 + CASE - - 14 WHEN 94 THEN + 7 END + 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT ALL MAX( - + 17 ) + - - 94 + - 86 * COUNT( * ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL MAX ( - + 17 ) + - - 94 + - 86 * COUNT ( * ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT CASE 80 WHEN + - ( - + 7 ) + + 25 * + + COUNT( * ) THEN NULL WHEN - + 60 + - 61 * + + 46 THEN 51 END + COUNT( * ) * - ( - 29 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT CASE 80 WHEN + - ( - + 7 ) + + 25 * + + COUNT ( * ) THEN NULL WHEN - + 60 + - 61 * + + 46 THEN 51 END + COUNT ( * ) * - ( - 29 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6957
SELECT - 27 DIV + COUNT( * ) - + 28 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-6957
SELECT - 27 / + COUNT ( * ) - + 28 AS col0
----
-55

query I rowsort
SELECT 79 * + 73 AS col2
----
5767

onlyif mysql # aggregate syntax: 
query II rowsort label-6959
SELECT - 59 + - + 38 AS col0, - 59 + - CASE 95 WHEN 84 THEN NULL WHEN - - 0 / COUNT( - 19 ) * - 65 + + COUNT( ALL - - 93 ) * - COUNT( * ) + 48 THEN + - 16 ELSE NULL END
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-6959
SELECT - 59 + - + 38 AS col0, - 59 + - CASE 95 WHEN 84 THEN NULL WHEN - - 0 / COUNT ( - 19 ) * - 65 + + COUNT ( ALL - - 93 ) * - COUNT ( * ) + 48 THEN + - 16 ELSE NULL END
----
-97
NULL

query I rowsort
SELECT ALL - + 11 + + 1 AS col2
----
-10

query I rowsort
SELECT ALL 72 + - + 44 AS col2
----
28

query I rowsort
SELECT ALL - + 51 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6963
SELECT DISTINCT 91 + - - 15 * 74 + + + COUNT( * ) + - 57 DIV 93 col0
----
1202

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT 91 + - - 15 * 74 + + + COUNT ( * ) + - 57 / 93 col0
----
1202

query I rowsort
SELECT NULLIF ( - 35, + 1 * + 93 + - + 45 ) AS col0
----
-35

query II rowsort
SELECT 48 + 58 + - 63 * - 52 AS col0, 30 * + 35 * - 50
----
3382
-52500

onlyif mysql # DIV for integer division: 
query I rowsort label-6966
SELECT ALL + 22 + + 66 + - + ( + 35 ) DIV - 86
----
88

skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL + 22 + + 66 + - + ( + 35 ) / - 86
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6967
SELECT - CAST( - ( ( + 62 ) ) AS SIGNED ) * - - COUNT( * ) AS col2, + CAST( NULL AS SIGNED )
----
62
NULL

skipif mysql # not compatible
query II rowsort label-6967
SELECT - CAST ( - ( ( + 62 ) ) AS INTEGER ) * - - COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER )
----
62
NULL

query I rowsort
SELECT - 61 + + - 48 AS col1
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-6969
SELECT 25 * 66 * + - 44 + COUNT( * ) AS col0, + 61
----
-72599
61

skipif mysql # not compatible
query II rowsort label-6969
SELECT 25 * 66 * + - 44 + COUNT ( * ) AS col0, + 61
----
-72599
61

query I rowsort
SELECT - CASE - 53 WHEN - 22 * 76 + - 49 + 13 THEN NULL WHEN 51 THEN - + 33 END
----
NULL

query I rowsort
SELECT + 28 * - 31 * + 38
----
-32984

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT DISTINCT + 37 DIV - + 27 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT + 37 / - + 27 AS col2
----
-1

query I rowsort
SELECT 39 * 92
----
3588

query I rowsort
SELECT 81 + - + 79
----
2

query I rowsort
SELECT 55 * 13 AS col0
----
715

query I rowsort
SELECT 64 * + + 21
----
1344

query I rowsort
SELECT 0 + - ( - 34 ) col1
----
34

query I rowsort
SELECT DISTINCT - 13 * + - ( - 91 )
----
-1183

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT COUNT( DISTINCT + 7 ) + - + 61 * - 6 AS col1
----
367

skipif mysql # not compatible
query I rowsort label-6979
SELECT COUNT ( DISTINCT + 7 ) + - + 61 * - 6 AS col1
----
367

query I rowsort
SELECT 83 - - + 89 col1
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT DISTINCT + 41 + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT + 41 + COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT ALL - 86 + + COUNT( * ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL - 86 + + COUNT ( * ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT DISTINCT MIN( ALL - 60 ) + - - 93 * + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT MIN ( ALL - 60 ) + - - 93 * + COUNT ( * )
----
33

query II rowsort
SELECT DISTINCT - 41 AS col1, 82
----
-41
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6985
SELECT 80 * + COUNT( * ) * - 30 AS col0, - NULLIF ( ( + 62 ), - 43 ) AS col2
----
-2400
-62

skipif mysql # not compatible
query II rowsort label-6985
SELECT 80 * + COUNT ( * ) * - 30 AS col0, - NULLIF ( ( + 62 ), - 43 ) AS col2
----
-2400
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT COUNT( * ) + - 66 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-6986
SELECT COUNT ( * ) + - 66 AS col1
----
-65

query II rowsort
SELECT ALL - 54 AS col0, 92 AS col0
----
-54
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT COUNT( * ) * + 97 * 74 * + + 64
----
459392

skipif mysql # not compatible
query I rowsort label-6988
SELECT COUNT ( * ) * + 97 * 74 * + + 64
----
459392

query I rowsort
SELECT DISTINCT - - 75 AS col2
----
75

query I rowsort
SELECT ALL 79 + - 96 AS col0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-6991
SELECT DISTINCT + + 46 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT + + 46 / 95
----
0

query I rowsort
SELECT 4 - + 89 AS col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6993
SELECT - + ( + 44 ) * + COUNT( * ) * - - 29 + + COUNT( * ) DIV - NULLIF ( + - 95, + AVG ( + 59 ) * - 13 ) * - 78 + 38 + + + 14 + - - 4
----
-1220

skipif mysql # not compatible
query I rowsort label-6993
SELECT - + ( + 44 ) * + COUNT ( * ) * - - 29 + + COUNT ( * ) / - NULLIF ( + - 95, + AVG ( + 59 ) * - 13 ) * - 78 + 38 + + + 14 + - - 4
----
-1220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6994
SELECT MIN( DISTINCT - 28 ) DIV - - 56 + 78 + + 71
----
149

skipif mysql # not compatible
query I rowsort label-6994
SELECT MIN ( DISTINCT - 28 ) / - - 56 + 78 + + 71
----
149

query I rowsort
SELECT + 59 * - - 89 - 92 col2
----
5159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6996
SELECT - COALESCE ( + COUNT( * ), 11 + - CAST( + - 94 AS SIGNED ) + 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-6996
SELECT - COALESCE ( + COUNT ( * ), 11 + - CAST ( + - 94 AS INTEGER ) + 4 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6997
SELECT + + SUM( + ( + 40 ) ), - 91 AS col1
----
40
-91

skipif mysql # not compatible
query II rowsort label-6997
SELECT + + SUM ( + ( + 40 ) ), - 91 AS col1
----
40
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT - ( + MAX( ALL - + 39 ) ) + - 10
----
29

skipif mysql # not compatible
query I rowsort label-6998
SELECT - ( + MAX ( ALL - + 39 ) ) + - 10
----
29

query I rowsort
SELECT 42 * + 38
----
1596

onlyif mysql # aggregate syntax: 
query III rowsort label-7000
SELECT 65 AS col1, 11 + + + 37 col1, COUNT( * ) * - + 41
----
65
48
-41

skipif mysql # not compatible
query III rowsort label-7000
SELECT 65 AS col1, 11 + + + 37 col1, COUNT ( * ) * - + 41
----
65
48
-41

query I rowsort
SELECT - 6 + ( 41 ) + - - 25 AS col0
----
60

query II rowsort
SELECT DISTINCT 67, + 84 AS col1
----
67
84

query I rowsort
SELECT 93 - CASE - 72 WHEN 48 THEN - 45 WHEN + NULLIF ( + 0, - + 83 * ( + 1 ) + + + 79 ) * + - 14 * - 98 THEN NULL ELSE NULL END / - 37 + + 52 col2
----
NULL

query I rowsort
SELECT 64 * - 14 AS col2
----
-896

query I rowsort
SELECT 83 + + 6 AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7006
SELECT ALL + COUNT( * ) * - ( + - COALESCE ( + 38, - - 5 * - 51 * CAST( NULL AS SIGNED ) * + 18 ) ) * + - 26
----
-988

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL + COUNT ( * ) * - ( + - COALESCE ( + 38, - - 5 * - 51 * CAST ( NULL AS INTEGER ) * + 18 ) ) * + - 26
----
-988

onlyif mysql # aggregate syntax: 
query II rowsort label-7007
SELECT 90 * + 83, - MAX( - + 96 ) AS col0
----
7470
96

skipif mysql # not compatible
query II rowsort label-7007
SELECT 90 * + 83, - MAX ( - + 96 ) AS col0
----
7470
96

query II rowsort
SELECT - 37 AS col0, - 40 AS col1
----
-37
-40

query I rowsort
SELECT - 50 + + - 23
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT ALL + 28 + + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL + 28 + + + COUNT ( * )
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7011
SELECT - CAST( NULL AS DECIMAL ) + - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7011
SELECT - CAST ( NULL AS REAL ) + - 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT - 32 * + COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-7012
SELECT - 32 * + COUNT ( * ) AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7013
SELECT - NULLIF ( + 13, + 67 ) + + CAST( 72 AS SIGNED ) - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-7013
SELECT - NULLIF ( + 13, + 67 ) + + CAST ( 72 AS INTEGER ) - COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT CASE 7 WHEN + + 36 * + - MIN( ( 87 ) ) THEN + 68 ELSE 34 END
----
34

skipif mysql # not compatible
query I rowsort label-7014
SELECT CASE 7 WHEN + + 36 * + - MIN ( ( 87 ) ) THEN + 68 ELSE 34 END
----
34

query I rowsort
SELECT 56 * 62 - + 99 + 22 * + 75
----
5023

query I rowsort
SELECT COALESCE ( + + 48, + 78 * - 81, - + 26 ) AS col1
----
48

query I rowsort
SELECT ALL + 45 * 59 + + - 12 + + + 9 - + 48 * 40 AS col0
----
732

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT - SUM( + ( - ( + 28 ) ) ) + - 64 + 65 * 75 AS col2
----
4839

skipif mysql # not compatible
query I rowsort label-7018
SELECT - SUM ( + ( - ( + 28 ) ) ) + - 64 + 65 * 75 AS col2
----
4839

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7019
SELECT ALL + + COUNT( * ) * + COUNT( * ) - - 87 - - MIN( DISTINCT - 21 ) DIV - 78
----
88

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL + + COUNT ( * ) * + COUNT ( * ) - - 87 - - MIN ( DISTINCT - 21 ) / - 78
----
88

query I rowsort
SELECT DISTINCT + 98 col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT - - COUNT( * ) * + 30 * + 77 + COUNT( * ) + - 33 AS col1
----
2278

skipif mysql # not compatible
query I rowsort label-7021
SELECT - - COUNT ( * ) * + 30 * + 77 + COUNT ( * ) + - 33 AS col1
----
2278

query I rowsort
SELECT + + 70 * - 9 AS col0
----
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7023
SELECT ALL + + CAST( - - 5 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL + + CAST ( - - 5 AS INTEGER )
----
5

query II rowsort
SELECT 95 * 64 - - 43 * + 40 AS col2, + 50
----
7800
50

query II rowsort
SELECT + 41 col0, 51 AS col1
----
41
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT + + 20 + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-7026
SELECT + + 20 + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7027
SELECT ALL - 85 * + + 30 - + COUNT( * ) * + 50 DIV - 29
----
-2549

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL - 85 * + + 30 - + COUNT ( * ) * + 50 / - 29
----
-2549

query I rowsort
SELECT + 53 * - 4 * - - 21
----
-4452

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT COUNT( * ) * - - 2 + + - 74 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-7029
SELECT COUNT ( * ) * - - 2 + + - 74 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT ALL + - CASE + COUNT( * ) WHEN + - COUNT( * ) - + - 27 THEN 10 - + 85 * - 49 ELSE NULL END * + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL + - CASE + COUNT ( * ) WHEN + - COUNT ( * ) - + - 27 THEN 10 - + 85 * - 49 ELSE NULL END * + 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7031
SELECT ALL + 54 * + - 20 - + ( - + COUNT( 79 ) ) + - 98 AS col2, - 11 col0
----
-1177
-11

skipif mysql # not compatible
query II rowsort label-7031
SELECT ALL + 54 * + - 20 - + ( - + COUNT ( 79 ) ) + - 98 AS col2, - 11 col0
----
-1177
-11

query I rowsort
SELECT + - 43 * - 76
----
3268

query II rowsort
SELECT ALL + 78 col1, 72 - - - 87 AS col2
----
78
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT + SUM( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-7034
SELECT + SUM ( - 0 )
----
0

query I rowsort
SELECT ALL + + 16 AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7036
SELECT + - CAST( - 0 AS SIGNED ) + + - 96 + 8 * - + 26
----
-304

skipif mysql # not compatible
query I rowsort label-7036
SELECT + - CAST ( - 0 AS INTEGER ) + + - 96 + 8 * - + 26
----
-304

query II rowsort
SELECT + + 19 * - - 32 * + - 67 + - 50 AS col1, 83 + - - 36
----
-40786
119

query I rowsort
SELECT + + COALESCE ( - 58, 24 ) * + + 88 AS col1
----
-5104

query I rowsort
SELECT ALL 87 * NULLIF ( 22, - - 42 )
----
1914

onlyif mysql # DIV for integer division: 
query I rowsort label-7040
SELECT - 99 DIV - - 56 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7040
SELECT - 99 / - - 56 AS col2
----
-1

query I rowsort
SELECT - ( - 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT + ( - 98 ) + - + MIN( 55 ) AS col1
----
-153

skipif mysql # not compatible
query I rowsort label-7042
SELECT + ( - 98 ) + - + MIN ( 55 ) AS col1
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT ALL COUNT( * ) + 89 - - 65 * 90
----
5940

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL COUNT ( * ) + 89 - - 65 * 90
----
5940

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT + ( 87 ) * - COUNT( ALL - 73 )
----
-87

skipif mysql # not compatible
query I rowsort label-7044
SELECT + ( 87 ) * - COUNT ( ALL - 73 )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7045
SELECT + 9 - 78 * - 31 col0, CAST( NULL AS SIGNED ) / + - 47
----
2427
NULL

skipif mysql # not compatible
query II rowsort label-7045
SELECT + 9 - 78 * - 31 col0, CAST ( NULL AS INTEGER ) / + - 47
----
2427
NULL

query II rowsort
SELECT - ( + 2 ) AS col0, + 17 AS col2
----
-2
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7047
SELECT - 32 + CAST( NULL AS SIGNED ) AS col2, + COUNT( + 60 ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7047
SELECT - 32 + CAST ( NULL AS INTEGER ) AS col2, + COUNT ( + 60 ) col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7048
SELECT - ( - - 36 ) AS col2, - 11 * - + 32 * + + COUNT( * )
----
-36
352

skipif mysql # not compatible
query II rowsort label-7048
SELECT - ( - - 36 ) AS col2, - 11 * - + 32 * + + COUNT ( * )
----
-36
352

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT ALL + 23 + + MAX( + - 93 )
----
-70

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL + 23 + + MAX ( + - 93 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT ALL COALESCE ( + - 37, COUNT( * ) )
----
-37

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL COALESCE ( + - 37, COUNT ( * ) )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7051
SELECT ALL 79 - 93 AS col0, CAST( NULL AS SIGNED ) AS col0
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-7051
SELECT ALL 79 - 93 AS col0, CAST ( NULL AS INTEGER ) AS col0
----
-14
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT ALL MIN( - 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL MIN ( - 38 ) AS col1
----
-38

query I rowsort
SELECT DISTINCT - 79 * - 13 AS col2
----
1027

query I rowsort
SELECT ALL + ( + ( + 62 ) ) - - + ( 66 )
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT DISTINCT + SUM( ALL - 21 ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT + SUM ( ALL - 21 ) col0
----
-21

query I rowsort
SELECT ALL - ( + 75 ) * ( - 16 ) + - 50 + - - 80 AS col0
----
1230

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7057
SELECT + - 4 DIV ( + CAST( 56 AS SIGNED ) ) DIV + 91 AS col1, - 71 col2
----
0
-71

skipif mysql # not compatible
query II rowsort label-7057
SELECT + - 4 / ( + CAST ( 56 AS INTEGER ) ) / + 91 AS col1, - 71 col2
----
0
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT ALL + - COUNT( * ) * - NULLIF ( CASE + - 28 WHEN + 94 + + 40 THEN - + COUNT( * ) * + 34 + + 50 * - + 59 ELSE 3 * 15 END, - 54 ) + - 24 + + - 37 * + + 61 + 22 * + 81
----
-454

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL + - COUNT ( * ) * - NULLIF ( CASE + - 28 WHEN + 94 + + 40 THEN - + COUNT ( * ) * + 34 + + 50 * - + 59 ELSE 3 * 15 END, - 54 ) + - 24 + + - 37 * + + 61 + 22 * + 81
----
-454

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT COALESCE ( 37, + MAX( DISTINCT + 97 ), 13 )
----
37

skipif mysql # not compatible
query I rowsort label-7059
SELECT COALESCE ( 37, + MAX ( DISTINCT + 97 ), 13 )
----
37

query I rowsort
SELECT DISTINCT + + 20 col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7061
SELECT ALL - 94 DIV COUNT( * ) * 97 AS col1
----
-9118

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL - 94 / COUNT ( * ) * 97 AS col1
----
-9118

query I rowsort
SELECT ( - CASE + 19 WHEN + 88 THEN - 16 + + - 36 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT DISTINCT + - COUNT( 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT + - COUNT ( 17 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7064
SELECT ALL + COUNT( - - 39 ) AS col1, - 87 * - 59
----
1
5133

skipif mysql # not compatible
query II rowsort label-7064
SELECT ALL + COUNT ( - - 39 ) AS col1, - 87 * - 59
----
1
5133

query I rowsort
SELECT - + 28 - - - 48 + + 7 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT ALL 57 * - - 60 + - - COUNT( * ) AS col0
----
3421

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL 57 * - - 60 + - - COUNT ( * ) AS col0
----
3421

query I rowsort
SELECT DISTINCT - 9 * + 73 * - 93 AS col2
----
61101

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT DISTINCT COUNT( * ) * + 60 * - + 31 + 13 AS col2
----
-1847

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT COUNT ( * ) * + 60 * - + 31 + 13 AS col2
----
-1847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7069
SELECT ALL 62 * + ( + COUNT( * ) ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL 62 * + ( + COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT + NULLIF ( - - 40, + - 57 ) - - - COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-7070
SELECT + NULLIF ( - - 40, + - 57 ) - - - COUNT ( * ) AS col0
----
39

query I rowsort
SELECT 93 + + + 2 + - + 96 + - 11 * 64 AS col0
----
-705

onlyif mysql # DIV for integer division: 
query II rowsort label-7072
SELECT ALL 33 DIV 32 * + + 38 * 77 AS col0, + ( + - 99 )
----
2926
-99

skipif mysql # not compatible
query II rowsort label-7072
SELECT ALL 33 / 32 * + + 38 * 77 AS col0, + ( + - 99 )
----
2926
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7073
SELECT 70 DIV + 8
----
8

skipif mysql # not compatible
query I rowsort label-7073
SELECT 70 / + 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT DISTINCT 80 + - - MIN( + - 75 ) col0
----
5

skipif mysql # not compatible
query I rowsort label-7074
SELECT DISTINCT 80 + - - MIN ( + - 75 ) col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT 83 + - - COUNT( * ) + - - 58 * 28 + + 64 + + 62 col1
----
1834

skipif mysql # not compatible
query I rowsort label-7075
SELECT 83 + - - COUNT ( * ) + - - 58 * 28 + + 64 + + 62 col1
----
1834

onlyif mysql # aggregate syntax: 
query II rowsort label-7076
SELECT COUNT( * ) - CASE - + 0 WHEN - 64 + - + COUNT( * ) / + + 30 - - 53 THEN - 21 * 95 + + + 29 * + 4 WHEN CASE - ( - + 10 ) WHEN + ( 72 ) THEN NULL WHEN ( - + 62 ) THEN NULL ELSE 23 END THEN NULL END + + 29 * 43 AS col1, 64 + + - 75
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-7076
SELECT COUNT ( * ) - CASE - + 0 WHEN - 64 + - + COUNT ( * ) / + + 30 - - 53 THEN - 21 * 95 + + + 29 * + 4 WHEN CASE - ( - + 10 ) WHEN + ( 72 ) THEN NULL WHEN ( - + 62 ) THEN NULL ELSE 23 END THEN NULL END + + 29 * 43 AS col1, 64 + + - 75
----
NULL
-11

query II rowsort
SELECT - 89 AS col0, - 86 AS col2
----
-89
-86

query I rowsort
SELECT DISTINCT 44 - - 62
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT DISTINCT COUNT( * ) - + 2 * + - 22 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT COUNT ( * ) - + 2 * + - 22 AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7080
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7081
SELECT CAST( NULL AS SIGNED ) + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT CAST ( NULL AS INTEGER ) + 15
----
NULL

query II rowsort
SELECT ALL 99 AS col1, - COALESCE ( + 21, - 74 * - + 31, + 21 ) + + 87 AS col0
----
99
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7083
SELECT ALL - ( - 42 ) - - 77 + + + 63 DIV - - CAST( - 54 AS SIGNED )
----
118

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL - ( - 42 ) - - 77 + + + 63 / - - CAST ( - 54 AS INTEGER )
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7084
SELECT COUNT( * ) + - SUM( - CAST( - 1 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7084
SELECT COUNT ( * ) + - SUM ( - CAST ( - 1 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7085
SELECT 8 * + - ( + + COUNT( * ) ) AS col0, - 42
----
-8
-42

skipif mysql # not compatible
query II rowsort label-7085
SELECT 8 * + - ( + + COUNT ( * ) ) AS col0, - 42
----
-8
-42

query I rowsort
SELECT ALL 68 - - 22
----
90

query I rowsort
SELECT 48 * - ( - 0 ) * - - 97 * - COALESCE ( - 28, 15 ) - + - 99 AS col0
----
99

query I rowsort
SELECT ALL - + 84 * - 7
----
588

query I rowsort
SELECT ALL - + ( - 31 ) col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7090
SELECT + COUNT( * ) DIV - + 38 DIV + 12, COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-7090
SELECT + COUNT ( * ) / - + 38 / + 12, COUNT ( * ) AS col1
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7091
SELECT 51 + ( - - 16 ) * + CAST( + - COUNT( + 17 ) AS SIGNED ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-7091
SELECT 51 + ( - - 16 ) * + CAST ( + - COUNT ( + 17 ) AS INTEGER ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT 41 + + MIN( - 94 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-7092
SELECT 41 + + MIN ( - 94 ) AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7093
SELECT - MAX( + 41 ) DIV + + 35 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7093
SELECT - MAX ( + 41 ) / + + 35 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7094
SELECT ALL CAST( - 27 AS SIGNED ) + + NULLIF ( - 83, + 69 ) AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL CAST ( - 27 AS INTEGER ) + + NULLIF ( - 83, + 69 ) AS col1
----
-110

query I rowsort
SELECT ALL - + 30 + - + 82 col0
----
-112

query II rowsort
SELECT - 21 * + 76 + + + 62, 53 AS col0
----
-1534
53

query I rowsort
SELECT ALL - + 13 + 99
----
86

query II rowsort
SELECT DISTINCT - 59 + + 79 AS col0, + 74 col1
----
20
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL - NULLIF ( + COUNT( DISTINCT - 54 ), + 69 + 40 + + + 27 / + 94 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL - NULLIF ( + COUNT ( DISTINCT - 54 ), + 69 + 40 + + + 27 / + 94 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7100
SELECT ALL - 41 + - 79 DIV - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL - 41 + - 79 / - COUNT ( * )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7101
SELECT DISTINCT - 23 + 9, - 33 * - MAX( - 54 ) AS col2
----
-14
-1782

skipif mysql # not compatible
query II rowsort label-7101
SELECT DISTINCT - 23 + 9, - 33 * - MAX ( - 54 ) AS col2
----
-14
-1782

query I rowsort
SELECT 99 * + 34 AS col1
----
3366

query I rowsort
SELECT ALL 91 * + 30
----
2730

query I rowsort
SELECT COALESCE ( ( - 35 ), - 11, 63 ) + + 87 AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7105
SELECT 18 DIV COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-7105
SELECT 18 / COUNT ( * )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7106
SELECT DISTINCT MIN( DISTINCT + 51 ), 22 + - + ( + 50 ) + COALESCE ( + - CAST( - 2 AS SIGNED ), - - 99, + - 3 ) AS col1
----
51
-26

skipif mysql # not compatible
query II rowsort label-7106
SELECT DISTINCT MIN ( DISTINCT + 51 ), 22 + - + ( + 50 ) + COALESCE ( + - CAST ( - 2 AS INTEGER ), - - 99, + - 3 ) AS col1
----
51
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7107
SELECT 8 - - 58 * + - COUNT( * ) DIV + 89
----
8

skipif mysql # not compatible
query I rowsort label-7107
SELECT 8 - - 58 * + - COUNT ( * ) / + 89
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT 14 * COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-7108
SELECT 14 * COUNT ( * ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT CASE 56 WHEN - 84 / - + ( + + 5 ) THEN + 98 WHEN - - 30 THEN - - 22 * + 88 / - 2 + + 77 END + 71 + + 32 + + COUNT( * ) - - 99 / - - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7109
SELECT CASE 56 WHEN - 84 / - + ( + + 5 ) THEN + 98 WHEN - - 30 THEN - - 22 * + 88 / - 2 + + 77 END + 71 + + 32 + + COUNT ( * ) - - 99 / - - 31 AS col2
----
NULL

query I rowsort
SELECT 14 + 55 + - + 58
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7111
SELECT NULLIF ( + ( 22 ), 32 + 76 ) DIV + 10 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7111
SELECT NULLIF ( + ( 22 ), 32 + 76 ) / + 10 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7112
SELECT ALL + 27 * - 90 DIV - + 1
----
2430

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL + 27 * - 90 / - + 1
----
2430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7113
SELECT CAST( + NULLIF ( + COUNT( * ), ( - - 52 ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7113
SELECT CAST ( + NULLIF ( + COUNT ( * ), ( - - 52 ) ) AS INTEGER )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7114
SELECT DISTINCT + 16 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT + 16 / 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT DISTINCT ( + COUNT( * ) ) * - 63 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT ( + COUNT ( * ) ) * - 63 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT ALL 46 + COUNT( * ) * - 84 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL 46 + COUNT ( * ) * - 84 AS col1
----
-38

query I rowsort
SELECT + NULLIF ( + 57, + 94 + - + 0 + - 59 - - 22 )
----
NULL

query I rowsort
SELECT 86 * + + 55 * + 33
----
156090

query I rowsort
SELECT ALL CASE - 81 WHEN - 28 THEN - 40 - + 90 - + 25 END * + 12 + 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT DISTINCT 3 * 47 + COUNT( * ) + + 34 * - 67 AS col1
----
-2136

skipif mysql # not compatible
query I rowsort label-7120
SELECT DISTINCT 3 * 47 + COUNT ( * ) + + 34 * - 67 AS col1
----
-2136

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT ALL - MIN( + - 46 ) * + + 12
----
552

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL - MIN ( + - 46 ) * + + 12
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT ALL 53 * - 85 * + COUNT( * ) * 3 + - - 67
----
-13448

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL 53 * - 85 * + COUNT ( * ) * 3 + - - 67
----
-13448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7123
SELECT ALL - AVG ( - + 72 ) * + + 96 * + + CAST( NULL AS SIGNED ) + - 74 + 89 * - - 21 + CASE + - 0 WHEN + CAST( - + 12 AS SIGNED ) * + 10 + - COUNT( 24 ) THEN NULL ELSE + + 52 + 60 / 72 * + - 47 END + MAX( 51 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL - AVG ( - + 72 ) * + + 96 * + + CAST ( NULL AS INTEGER ) + - 74 + 89 * - - 21 + CASE + - 0 WHEN + CAST ( - + 12 AS INTEGER ) * + 10 + - COUNT ( 24 ) THEN NULL ELSE + + 52 + 60 / 72 * + - 47 END + MAX ( 51 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT + MIN( ALL - + 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-7124
SELECT + MIN ( ALL - + 83 )
----
-83

query I rowsort
SELECT + 92 * + ( 97 )
----
8924

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT DISTINCT + SUM( - ( - - 93 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT + SUM ( - ( - - 93 ) )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT - 16 * MAX( + 80 ) AS col0
----
-1280

skipif mysql # not compatible
query I rowsort label-7127
SELECT - 16 * MAX ( + 80 ) AS col0
----
-1280

onlyif mysql # DIV for integer division: 
query I rowsort label-7128
SELECT ALL + 0 * + + 75 DIV + 9
----
0

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL + 0 * + + 75 / + 9
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT SUM( ALL + 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7129
SELECT SUM ( ALL + 83 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT - 10 + - + 69 + - + SUM( - 39 ) - - COUNT( * ) * 66 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7130
SELECT - 10 + - + 69 + - + SUM ( - 39 ) - - COUNT ( * ) * 66 AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7131
SELECT DISTINCT COUNT( * ) - 45 + - 66, MAX( - 49 ) col1
----
-110
-49

skipif mysql # not compatible
query II rowsort label-7131
SELECT DISTINCT COUNT ( * ) - 45 + - 66, MAX ( - 49 ) col1
----
-110
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-7132
SELECT DISTINCT + COUNT( * ), - 28 AS col1
----
1
-28

skipif mysql # not compatible
query II rowsort label-7132
SELECT DISTINCT + COUNT ( * ), - 28 AS col1
----
1
-28

query I rowsort
SELECT - 32 + + + 50
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7134
SELECT ALL + COUNT( * ) DIV 22 * + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL + COUNT ( * ) / 22 * + 98 AS col1
----
0

query I rowsort
SELECT - 50 * + 83
----
-4150

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT + COUNT( * ) * - 19 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-7136
SELECT + COUNT ( * ) * - 19 AS col1
----
-19

query I rowsort
SELECT - 26 * 27 AS col0
----
-702

query I rowsort
SELECT - 96 + + 27
----
-69

query I rowsort
SELECT - 73 + - 80 col0
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7140
SELECT ALL + CAST( - 77 AS SIGNED ) * COUNT( * ) AS col2, + 28
----
-77
28

skipif mysql # not compatible
query II rowsort label-7140
SELECT ALL + CAST ( - 77 AS INTEGER ) * COUNT ( * ) AS col2, + 28
----
-77
28

query I rowsort
SELECT - 90 * 8
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT DISTINCT SUM( + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT SUM ( + 24 )
----
24

query I rowsort
SELECT ALL - 2 + + + 50 AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-7144
SELECT ALL + ( + + COUNT( * ) ) * - COUNT( * ), - COALESCE ( - 69, 68 + - + 79 ) - 55 + - COUNT( * ) AS col1
----
-1
13

skipif mysql # not compatible
query II rowsort label-7144
SELECT ALL + ( + + COUNT ( * ) ) * - COUNT ( * ), - COALESCE ( - 69, 68 + - + 79 ) - 55 + - COUNT ( * ) AS col1
----
-1
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT ALL + + 26 * + SUM( + - 7 ) AS col1
----
-182

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL + + 26 * + SUM ( + - 7 ) AS col1
----
-182

query I rowsort
SELECT DISTINCT - 29 + + 9 * - 8 * 80 AS col2
----
-5789

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7147
SELECT ALL - + COUNT( * ) + + COALESCE ( + + 5, 33 * - 23 - + COALESCE ( - 50, + + ( 12 ), 58 * 10 * + 70 * + 98 ) - + 44 + + 69 * 54 * - 83 * 35 DIV + COUNT( * ) + - 82 DIV - AVG ( ( + 35 ) ) + + 28 * + 72 )
----
4

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL - + COUNT ( * ) + + COALESCE ( + + 5, 33 * - 23 - + COALESCE ( - 50, + + ( 12 ), 58 * 10 * + 70 * + 98 ) - + 44 + + 69 * 54 * - 83 * 35 / + COUNT ( * ) + - 82 / - AVG ( ( + 35 ) ) + + 28 * + 72 )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7148
SELECT + 74 DIV + 90 * 30
----
0

skipif mysql # not compatible
query I rowsort label-7148
SELECT + 74 / + 90 * 30
----
0

query I rowsort
SELECT - - 15 + + + 8
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7150
SELECT + - CAST( NULL AS SIGNED ) - + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT + - CAST ( NULL AS INTEGER ) - + 8
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7151
SELECT ALL + 46 + - + CAST( NULL AS DECIMAL ) + - - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL + 46 + - + CAST ( NULL AS REAL ) + - - 9 AS col2
----
NULL

query I rowsort
SELECT - + 40 + + + 95 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT - - 66 + + 43 - - + 13 + 72 * + 35 + COUNT( * ) + - + 5 AS col1
----
2638

skipif mysql # not compatible
query I rowsort label-7153
SELECT - - 66 + + 43 - - + 13 + 72 * + 35 + COUNT ( * ) + - + 5 AS col1
----
2638

query I rowsort
SELECT ALL 80 + + ( - 6 ) AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7155
SELECT + - CAST( + 69 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-7155
SELECT + - CAST ( + 69 AS INTEGER )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT ALL + + COALESCE ( 30, - COALESCE ( - 26, + SUM( - 78 ) ) )
----
30

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL + + COALESCE ( 30, - COALESCE ( - 26, + SUM ( - 78 ) ) )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7157
SELECT ALL 20 * CASE MIN( DISTINCT - NULLIF ( + 83, 45 ) ) WHEN - + COUNT( * ) * + 84 * 82 THEN + 48 + 98 + - 21 + + - COALESCE ( 71, 80, + - ( - 24 ) + - + AVG ( ALL - 41 ) ) * 79 * - + AVG ( DISTINCT - 50 ) - - CAST( 52 AS SIGNED ) + + 51 + - 64 * - CAST( NULL AS SIGNED ) - + 67 * - MAX( ALL 61 ) + 4 / SUM( DISTINCT - - ( 75 ) ) + - COUNT( * ) / - 33 / - ( 31 ) / - 98 + - 43 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL 20 * CASE MIN ( DISTINCT - NULLIF ( + 83, 45 ) ) WHEN - + COUNT ( * ) * + 84 * 82 THEN + 48 + 98 + - 21 + + - COALESCE ( 71, 80, + - ( - 24 ) + - + AVG ( ALL - 41 ) ) * 79 * - + AVG ( DISTINCT - 50 ) - - CAST ( 52 AS INTEGER ) + + 51 + - 64 * - CAST ( NULL AS INTEGER ) - + 67 * - MAX ( ALL 61 ) + 4 / SUM ( DISTINCT - - ( 75 ) ) + - COUNT ( * ) / - 33 / - ( 31 ) / - 98 + - 43 END AS col2
----
NULL

query I rowsort
SELECT + 90 + - - 17 AS col0
----
107

query I rowsort
SELECT - - 14 * + 21 AS col2
----
294

onlyif mysql # DIV for integer division: 
query II rowsort label-7160
SELECT - 67 * - 11 + + 18, - 93 DIV ( - ( 65 ) ) * - 48 AS col0
----
755
-48

skipif mysql # not compatible
query II rowsort label-7160
SELECT - 67 * - 11 + + 18, - 93 / ( - ( 65 ) ) * - 48 AS col0
----
755
-48

query II rowsort
SELECT ( - 73 ) AS col1, - 53 col1
----
-73
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7162
SELECT - MIN( - 66 ) DIV 29 + - 67 DIV + ( 94 )
----
2

skipif mysql # not compatible
query I rowsort label-7162
SELECT - MIN ( - 66 ) / 29 + - 67 / + ( 94 )
----
2

query I rowsort
SELECT + ( - + 96 ) * - - 18
----
-1728

query I rowsort
SELECT + COALESCE ( + - 23, - 0 + + + 84 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7165
SELECT - 69 + 42 + COUNT( DISTINCT + + CAST( + 8 AS SIGNED ) ) + NULLIF ( + + COALESCE ( + 2, - 49, + 70 + COUNT( * ) ), + 83 ) * COALESCE ( - 86, CAST( 69 AS SIGNED ) ) * - SUM( 46 ) + - 20 - - + 22 + - 22 + + COUNT( * ) * + 15 / - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7165
SELECT - 69 + 42 + COUNT ( DISTINCT + + CAST ( + 8 AS INTEGER ) ) + NULLIF ( + + COALESCE ( + 2, - 49, + 70 + COUNT ( * ) ), + 83 ) * COALESCE ( - 86, CAST ( 69 AS INTEGER ) ) * - SUM ( 46 ) + - 20 - - + 22 + - 22 + + COUNT ( * ) * + 15 / - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + 19 * + 4 - 12
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT ALL + MIN( ALL - 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL + MIN ( ALL - 99 ) AS col0
----
-99

query I rowsort
SELECT - 18 * - + 40 + 15 AS col1
----
735

query II rowsort
SELECT DISTINCT + 50 col0, + 46
----
50
46

query I rowsort
SELECT + 9 + + + 89 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7171
SELECT + CAST( NULL AS SIGNED ) / ( + 29 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT + CAST ( NULL AS INTEGER ) / ( + 29 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT - COUNT( * ) * SUM( DISTINCT + 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7172
SELECT - COUNT ( * ) * SUM ( DISTINCT + 3 ) AS col2
----
-3

query I rowsort
SELECT + ( - - 85 ) AS col0
----
85

query I rowsort
SELECT NULLIF ( NULLIF ( + + 89, - 47 ), + 32 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7175
SELECT + ( - 40 ) * - COALESCE ( - + ( 92 ), SUM( + 58 ) ) + + + 26 * - 18 AS col1, 29 AS col1
----
-4148
29

skipif mysql # not compatible
query II rowsort label-7175
SELECT + ( - 40 ) * - COALESCE ( - + ( 92 ), SUM ( + 58 ) ) + + + 26 * - 18 AS col1, 29 AS col1
----
-4148
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7176
SELECT + 90 DIV + 8
----
11

skipif mysql # not compatible
query I rowsort label-7176
SELECT + 90 / + 8
----
11

query I rowsort
SELECT - ( + + 0 ) * 37 AS col2
----
0

query I rowsort
SELECT ALL CASE WHEN 98 NOT IN ( - 54 + 63, + 71 ) THEN + 5 END col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT MIN( 17 ) col0
----
17

skipif mysql # not compatible
query I rowsort label-7179
SELECT MIN ( 17 ) col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT ALL SUM( ALL + + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL SUM ( ALL + + 8 )
----
8

query I rowsort
SELECT - 84 + + 39
----
-45

query II rowsort
SELECT - 6, 96 AS col1
----
-6
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT - - COUNT( * ) + + 28
----
29

skipif mysql # not compatible
query I rowsort label-7183
SELECT - - COUNT ( * ) + + 28
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT ALL + 25 + - MAX( 90 ) * + COALESCE ( COALESCE ( - 18, - - 80 ), + 85 * + 26 )
----
1645

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL + 25 + - MAX ( 90 ) * + COALESCE ( COALESCE ( - 18, - - 80 ), + 85 * + 26 )
----
1645

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT - MAX( DISTINCT - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-7185
SELECT - MAX ( DISTINCT - 66 )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7186
SELECT - 67 + + - CAST( NULL AS SIGNED ), - 8 AS col2
----
NULL
-8

skipif mysql # not compatible
query II rowsort label-7186
SELECT - 67 + + - CAST ( NULL AS INTEGER ), - 8 AS col2
----
NULL
-8

query II rowsort
SELECT DISTINCT 16 AS col1, + 54 - - - ( ( + 19 ) ) + + + 89 * - 22 * 88 AS col2
----
16
-172269

onlyif mysql # aggregate syntax: 
query II rowsort label-7188
SELECT ALL - COUNT( * ), - 79 * 62 - - COUNT( * ) + - ( + + 83 ) + - 60 col2
----
-1
-5040

skipif mysql # not compatible
query II rowsort label-7188
SELECT ALL - COUNT ( * ), - 79 * 62 - - COUNT ( * ) + - ( + + 83 ) + - 60 col2
----
-1
-5040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7189
SELECT - 81 + NULLIF ( CAST( NULL AS SIGNED ), - - 48 * + 26 ) * + 84 * + ( + - 12 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7189
SELECT - 81 + NULLIF ( CAST ( NULL AS INTEGER ), - - 48 * + 26 ) * + 84 * + ( + - 12 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7190
SELECT - - ( 91 ), + COUNT( * ) AS col0
----
91
1

skipif mysql # not compatible
query II rowsort label-7190
SELECT - - ( 91 ), + COUNT ( * ) AS col0
----
91
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7191
SELECT ALL - ( - 63 ) + + + CAST( - 71 AS SIGNED ) + - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL - ( - 63 ) + + + CAST ( - 71 AS INTEGER ) + - COUNT ( * )
----
-9

query I rowsort
SELECT - ( + + 19 ) * + - 94
----
1786

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT + 81 * + - 53 * - ( + COUNT( * ) ) * - 7
----
-30051

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT + 81 * + - 53 * - ( + COUNT ( * ) ) * - 7
----
-30051

query I rowsort
SELECT ALL - 23 - - COALESCE ( - + 5, 30 ) - 10 * - 4 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7195
SELECT ALL MAX( CAST( - ( + 69 ) AS SIGNED ) ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL MAX ( CAST ( - ( + 69 ) AS INTEGER ) ) AS col0
----
-69

query I rowsort
SELECT ALL + - 6 * + 2 * 73 col2
----
-876

query I rowsort
SELECT 3 * - NULLIF ( 15, - 41 )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7198
SELECT CAST( + + 58 AS SIGNED ) col0
----
58

skipif mysql # not compatible
query I rowsort label-7198
SELECT CAST ( + + 58 AS INTEGER ) col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7199
SELECT ( + 64 ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7199
SELECT ( + 64 ) * + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT - 23 AS col2, 53 col2
----
-23
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT 82 * + + COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-7201
SELECT 82 * + + COUNT ( * ) AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7202
SELECT DISTINCT 16 DIV + + 77 * 53
----
0

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT 16 / + + 77 * 53
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7203
SELECT DISTINCT 33 DIV + 72 * + + 86
----
0

skipif mysql # not compatible
query I rowsort label-7203
SELECT DISTINCT 33 / + 72 * + + 86
----
0

query I rowsort
SELECT ALL 68 * 82 col0
----
5576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7205
SELECT COALESCE ( 28, - 72 + COUNT( * ) DIV 0 ) * - MAX( ALL + 70 ) * + 44 * 1
----
-86240

skipif mysql # not compatible
query I rowsort label-7205
SELECT COALESCE ( 28, - 72 + COUNT ( * ) / 0 ) * - MAX ( ALL + 70 ) * + 44 * 1
----
-86240

query I rowsort
SELECT ALL 15 * - 9
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT 98 + + + SUM( DISTINCT + ( + ( + 78 ) ) )
----
176

skipif mysql # not compatible
query I rowsort label-7207
SELECT 98 + + + SUM ( DISTINCT + ( + ( + 78 ) ) )
----
176

query I rowsort
SELECT ALL ( + 72 ) * 87 AS col2
----
6264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7209
SELECT 84 * + CAST( NULL AS SIGNED ) + AVG ( ALL 38 ) + - 14 - + + 45 + + 48 * + CAST( 20 AS SIGNED ) * + 42 * + 65 / - CAST( + - 80 AS SIGNED ) * - 35 * 37 * + + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7209
SELECT 84 * + CAST ( NULL AS INTEGER ) + AVG ( ALL 38 ) + - 14 - + + 45 + + 48 * + CAST ( 20 AS INTEGER ) * + 42 * + 65 / - CAST ( + - 80 AS INTEGER ) * - 35 * 37 * + + 73 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT COUNT( + 18 ) + + + 75
----
76

skipif mysql # not compatible
query I rowsort label-7210
SELECT COUNT ( + 18 ) + + + 75
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT DISTINCT COUNT( * ) + - 88
----
-87

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT COUNT ( * ) + - 88
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7212
SELECT ALL - SUM( - CAST( NULL AS SIGNED ) ) AS col1, - 46 + - 46 + + 76 DIV MIN( + 10 ) + - - COUNT( - 29 )
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-7212
SELECT ALL - SUM ( - CAST ( NULL AS INTEGER ) ) AS col1, - 46 + - 46 + + 76 / MIN ( + 10 ) + - - COUNT ( - 29 )
----
NULL
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7213
SELECT DISTINCT COUNT( * ) + + COUNT( * ) + + 23 * - CAST( 9 AS SIGNED )
----
-205

skipif mysql # not compatible
query I rowsort label-7213
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) + + 23 * - CAST ( 9 AS INTEGER )
----
-205

query I rowsort
SELECT DISTINCT 8 + + 44
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT DISTINCT CASE + AVG ( DISTINCT 11 ) WHEN - 38 + - COUNT( * ) THEN + 15 ELSE NULL END + + - 53 + 39 * + + ( + 51 ) * 16 - - 70 * - MIN( DISTINCT - 29 ) * - - 73 + + + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7215
SELECT DISTINCT CASE + AVG ( DISTINCT 11 ) WHEN - 38 + - COUNT ( * ) THEN + 15 ELSE NULL END + + - 53 + 39 * + + ( + 51 ) * 16 - - 70 * - MIN ( DISTINCT - 29 ) * - - 73 + + + 76 AS col1
----
NULL

query I rowsort
SELECT ALL - 96 + + + 27 * 43 * NULLIF ( 90, CASE + NULLIF ( + NULLIF ( - - ( + 56 ), + 50 ), - 21 ) WHEN - 25 THEN - + 44 ELSE - - 19 END - 12 ) * + 60
----
6269304

onlyif mysql # DIV for integer division: 
query I rowsort label-7217
SELECT + ( + 23 ) + - 20 DIV + - COALESCE ( 44, - 99, + 57, - - 20 * - - 16 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-7217
SELECT + ( + 23 ) + - 20 / + - COALESCE ( 44, - 99, + 57, - - 20 * - - 16 ) AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7218
SELECT DISTINCT - COUNT( * ) + - + 40 DIV - ( + 84 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT - COUNT ( * ) + - + 40 / - ( + 84 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 88 + + + 64
----
-24

query II rowsort
SELECT ALL + + 46 + - + 99, 1 * - 25 AS col0
----
-53
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT ALL - + COUNT( + 45 ) + + 82
----
81

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL - + COUNT ( + 45 ) + + 82
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7222
SELECT 17 * - CAST( + COUNT( * ) AS SIGNED ) + - 93 + 58 + - 71 * CAST( 97 AS SIGNED ) * + - 33 + - 28 DIV + - 32 * 41 * MIN( + 64 ) * 72 + - 49 * + COUNT( * ) - - 88 + + 41
----
227299

skipif mysql # not compatible
query I rowsort label-7222
SELECT 17 * - CAST ( + COUNT ( * ) AS INTEGER ) + - 93 + 58 + - 71 * CAST ( 97 AS INTEGER ) * + - 33 + - 28 / + - 32 * 41 * MIN ( + 64 ) * 72 + - 49 * + COUNT ( * ) - - 88 + + 41
----
227299

query I rowsort
SELECT DISTINCT 97 + - 91 col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7224
SELECT - SUM( + 43 ), 2 AS col0
----
-43
2

skipif mysql # not compatible
query II rowsort label-7224
SELECT - SUM ( + 43 ), 2 AS col0
----
-43
2

query I rowsort
SELECT ALL + 52 - - 36
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7226
SELECT ALL COALESCE ( + 4, CASE - - 51 WHEN - + COALESCE ( COUNT( * ), - 43 ) * - ( - ( 80 ) ) * - + COUNT( * ) THEN 0 WHEN + NULLIF ( CASE + - CAST( 93 AS SIGNED ) WHEN - - 17 THEN COUNT( * ) + 60 * 90 END, + 89 ) THEN NULL ELSE NULL END * - + 17 )
----
4

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL COALESCE ( + 4, CASE - - 51 WHEN - + COALESCE ( COUNT ( * ), - 43 ) * - ( - ( 80 ) ) * - + COUNT ( * ) THEN 0 WHEN + NULLIF ( CASE + - CAST ( 93 AS INTEGER ) WHEN - - 17 THEN COUNT ( * ) + 60 * 90 END, + 89 ) THEN NULL ELSE NULL END * - + 17 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7227
SELECT 28 + + - 22 + - 6 * 9 * + + CAST( - - 16 AS SIGNED ) * - 58 + 27 - 29 / - CASE 6 WHEN - - NULLIF ( + 84, ( - COUNT( * ) ) * - 18 * 0 * COALESCE ( - CASE + SUM( - + 26 ) WHEN - AVG ( DISTINCT ( + + 7 ) ) THEN 74 WHEN - COUNT( * ) + NULLIF ( 20, - 57 * + 30 * COALESCE ( - - 12, - COUNT( * ) * - + 68 - 34 / COUNT( * ) + 94 * + 34 * 37 ) ) THEN 15 END, - - 14 ) + + 49 ) * 88 THEN NULL WHEN + COALESCE ( + 53, - CAST( 18 AS SIGNED ) * - 94, 38 * - MIN( 25 ) ) * 25 THEN 90 * - COALESCE ( - COUNT( DISTINCT - CASE 10 WHEN COALESCE ( 95, 54 ) THEN 2 / - 28 + + 93 WHEN + 93 THEN 36 WHEN 42 / + 49 THEN NULL ELSE - 38 END ), ( + NULLIF ( + 30, 41 * - 34 ) ) * 87 ) + + 98 END * + 44 / + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7227
SELECT 28 + + - 22 + - 6 * 9 * + + CAST ( - - 16 AS INTEGER ) * - 58 + 27 - 29 / - CASE 6 WHEN - - NULLIF ( + 84, ( - COUNT ( * ) ) * - 18 * 0 * COALESCE ( - CASE + SUM ( - + 26 ) WHEN - AVG ( DISTINCT ( + + 7 ) ) THEN 74 WHEN - COUNT ( * ) + NULLIF ( 20, - 57 * + 30 * COALESCE ( - - 12, - COUNT ( * ) * - + 68 - 34 / COUNT ( * ) + 94 * + 34 * 37 ) ) THEN 15 END, - - 14 ) + + 49 ) * 88 THEN NULL WHEN + COALESCE ( + 53, - CAST ( 18 AS INTEGER ) * - 94, 38 * - MIN ( 25 ) ) * 25 THEN 90 * - COALESCE ( - COUNT ( DISTINCT - CASE 10 WHEN COALESCE ( 95, 54 ) THEN 2 / - 28 + + 93 WHEN + 93 THEN 36 WHEN 42 / + 49 THEN NULL ELSE - 38 END ), ( + NULLIF ( + 30, 41 * - 34 ) ) * 87 ) + + 98 END * + 44 / + 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7228
SELECT + ( - ( - 7 ) ), 73 + + + ( COUNT( * ) ) col1
----
7
74

skipif mysql # not compatible
query II rowsort label-7228
SELECT + ( - ( - 7 ) ), 73 + + + ( COUNT ( * ) ) col1
----
7
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7229
SELECT - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7229
SELECT - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7230
SELECT 17 - 32 + - 79 DIV + - 71 * COUNT( * ) AS col1, - 61 AS col2
----
-14
-61

skipif mysql # not compatible
query II rowsort label-7230
SELECT 17 - 32 + - 79 / + - 71 * COUNT ( * ) AS col1, - 61 AS col2
----
-14
-61

query I rowsort
SELECT ( - 7 ) col0
----
-7

query I rowsort
SELECT 20 + - 65
----
-45

query II rowsort
SELECT ALL + - 66 - 26, ( + + 58 ) + - 46 AS col2
----
-92
12

query I rowsort
SELECT - 39 + - 98 * + 21 AS col0
----
-2097

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT ALL - COUNT( * ) * - 3 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL - COUNT ( * ) * - 3 AS col1
----
3

query I rowsort
SELECT 97 + - + 72 AS col0
----
25

query I rowsort
SELECT DISTINCT - 96 * 79 AS col2
----
-7584

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT ALL - ( COUNT( - + 66 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL - ( COUNT ( - + 66 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7239
SELECT ALL - 83, COUNT( * ) col1
----
-83
1

skipif mysql # not compatible
query II rowsort label-7239
SELECT ALL - 83, COUNT ( * ) col1
----
-83
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT 18 + - 42 - - NULLIF ( + COUNT( * ), - - 25 )
----
-23

skipif mysql # not compatible
query I rowsort label-7240
SELECT 18 + - 42 - - NULLIF ( + COUNT ( * ), - - 25 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT DISTINCT - CASE + 16 WHEN + COUNT( * ) THEN NULL ELSE ( + + 91 ) END
----
-91

skipif mysql # not compatible
query I rowsort label-7241
SELECT DISTINCT - CASE + 16 WHEN + COUNT ( * ) THEN NULL ELSE ( + + 91 ) END
----
-91

query I rowsort
SELECT - 85 * - 82 + + + 82
----
7052

query I rowsort
SELECT ALL - ( + 60 ) col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT DISTINCT - 34 + + 98 + 81 * - MIN( ALL - 78 )
----
6382

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT - 34 + + 98 + 81 * - MIN ( ALL - 78 )
----
6382

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7245
SELECT ALL - CAST( - + 26 AS SIGNED ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL - CAST ( - + 26 AS INTEGER ) AS col1
----
26

query I rowsort
SELECT ALL 79 + + 44 AS col0
----
123

query I rowsort
SELECT DISTINCT + ( + + 57 ) + 33 AS col0
----
90

query II rowsort
SELECT DISTINCT - 91 AS col0, 71 * 86 * + + 56 AS col0
----
-91
341936

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT 62 * + COUNT( + 19 )
----
62

skipif mysql # not compatible
query I rowsort label-7249
SELECT 62 * + COUNT ( + 19 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT DISTINCT + 98 * + COUNT( * ) * - 55
----
-5390

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT + 98 * + COUNT ( * ) * - 55
----
-5390

query I rowsort
SELECT ALL 19 * 37 AS col0
----
703

query I rowsort
SELECT 39 + - 98
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7253
SELECT DISTINCT COUNT( * ) * + CAST( - COALESCE ( + + COUNT( * ), ( + COUNT( * ) ) + 37 * + COUNT( * ) * 21 / + + 1 * - 40 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT COUNT ( * ) * + CAST ( - COALESCE ( + + COUNT ( * ), ( + COUNT ( * ) ) + 37 * + COUNT ( * ) * 21 / + + 1 * - 40 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT - 84 * - 76 + - + 18 + - COUNT( * ) + + - 13 * + 88
----
5221

skipif mysql # not compatible
query I rowsort label-7254
SELECT - 84 * - 76 + - + 18 + - COUNT ( * ) + + - 13 * + 88
----
5221

query I rowsort
SELECT + NULLIF ( 30, + + 4 + 11 ) AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7256
SELECT ALL - 84 - ( + 2 ) AS col0, CAST( NULL AS SIGNED )
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-7256
SELECT ALL - 84 - ( + 2 ) AS col0, CAST ( NULL AS INTEGER )
----
-86
NULL

query I rowsort
SELECT ALL - ( 84 ) col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7258
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 39 col0
----
NULL
39

skipif mysql # not compatible
query II rowsort label-7258
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 39 col0
----
NULL
39

query I rowsort
SELECT + 29 + + 60 + 50 AS col2
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT DISTINCT - NULLIF ( + COUNT( * ), 50 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT - NULLIF ( + COUNT ( * ), 50 ) AS col0
----
-1

query II rowsort
SELECT - 13 AS col0, 8 + - 41 * + 87 AS col1
----
-13
-3559

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT + 87 * - COUNT( 97 )
----
-87

skipif mysql # not compatible
query I rowsort label-7262
SELECT + 87 * - COUNT ( 97 )
----
-87

query II rowsort
SELECT + 56 * 18 + 90 AS col0, - 2 + + 68 AS col2
----
1098
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7264
SELECT ALL NULLIF ( MIN( DISTINCT - ( - + 40 ) ), + 19 ) DIV + 79 * 52
----
0

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL NULLIF ( MIN ( DISTINCT - ( - + 40 ) ), + 19 ) / + 79 * 52
----
0

query II rowsort
SELECT DISTINCT - 14, 4 * + - 33 AS col2
----
-14
-132

query I rowsort
SELECT DISTINCT 44 * + 43
----
1892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7267
SELECT + + 77 * + + 77 * + 29 / - + 57 / + + ( - 50 ) - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT + + 77 * + + 77 * + 29 / - + 57 / + + ( - 50 ) - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7268
SELECT + 98 AS col0, COUNT( * ) * 91 * 20
----
98
1820

skipif mysql # not compatible
query II rowsort label-7268
SELECT + 98 AS col0, COUNT ( * ) * 91 * 20
----
98
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT ALL + SUM( DISTINCT + 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7269
SELECT ALL + SUM ( DISTINCT + 36 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ALL COUNT( * ) * - + 33 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL COUNT ( * ) * - + 33 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT ALL COUNT( - 18 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL COUNT ( - 18 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7272
SELECT + 34 * - + CASE - 44 WHEN 52 THEN - + COUNT( * ) ELSE - 30 + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7272
SELECT + 34 * - + CASE - 44 WHEN 52 THEN - + COUNT ( * ) ELSE - 30 + + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7273
SELECT ALL + COUNT( * ) DIV 34 DIV - SUM( ALL - - 78 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7273
SELECT ALL + COUNT ( * ) / 34 / - SUM ( ALL - - 78 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7274
SELECT ALL + 10 * + + 14 + MIN( + 5 ) AS col2, 33 DIV + COUNT( * ) + - - 66 AS col1
----
145
99

skipif mysql # not compatible
query II rowsort label-7274
SELECT ALL + 10 * + + 14 + MIN ( + 5 ) AS col2, 33 / + COUNT ( * ) + - - 66 AS col1
----
145
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7275
SELECT + 74 * + 41, - 15 - - COUNT( * ) AS col2
----
3034
-14

skipif mysql # not compatible
query II rowsort label-7275
SELECT + 74 * + 41, - 15 - - COUNT ( * ) AS col2
----
3034
-14

query I rowsort
SELECT ( + - 92 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7277
SELECT ALL + SUM( DISTINCT + - 56 ) * - 18 * 15 * - + CAST( NULL AS SIGNED ) * CASE + 58 WHEN + 67 THEN NULL WHEN 40 THEN 91 ELSE - - ( - - ( + 64 ) ) END + - AVG ( + - 69 ) + COALESCE ( + - 13, + COUNT( * ) / + 4 + + 67 ) / ( 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL + SUM ( DISTINCT + - 56 ) * - 18 * 15 * - + CAST ( NULL AS INTEGER ) * CASE + 58 WHEN + 67 THEN NULL WHEN 40 THEN 91 ELSE - - ( - - ( + 64 ) ) END + - AVG ( + - 69 ) + COALESCE ( + - 13, + COUNT ( * ) / + 4 + + 67 ) / ( 83 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT ALL + 33 * - 86 + + COUNT( * ) AS col2
----
-2837

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL + 33 * - 86 + + COUNT ( * ) AS col2
----
-2837

query I rowsort
SELECT DISTINCT + ( + 30 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7280
SELECT ALL 86 * + MAX( ALL - 66 ) + + - 18 AS col2, - 8 + - 29 + 57
----
-5694
20

skipif mysql # not compatible
query II rowsort label-7280
SELECT ALL 86 * + MAX ( ALL - 66 ) + + - 18 AS col2, - 8 + - 29 + 57
----
-5694
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT ALL 93 * - NULLIF ( 36, - 43 + + - 15 + + - 32 * - COUNT( * ) ) * COUNT( * ) + 91 col1
----
-3257

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL 93 * - NULLIF ( 36, - 43 + + - 15 + + - 32 * - COUNT ( * ) ) * COUNT ( * ) + 91 col1
----
-3257

query I rowsort
SELECT DISTINCT 61 * - 1 + 14 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT - 8 + + 60 + SUM( ALL + 59 ) - - COUNT( * )
----
112

skipif mysql # not compatible
query I rowsort label-7283
SELECT - 8 + + 60 + SUM ( ALL + 59 ) - - COUNT ( * )
----
112

query I rowsort
SELECT ALL + 12 * + 58
----
696

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT COUNT( * ) * + NULLIF ( 11, + 90 + - 31 ) * + 76 * - ( + COUNT( * ) ) + - - 63 + 28
----
-745

skipif mysql # not compatible
query I rowsort label-7285
SELECT COUNT ( * ) * + NULLIF ( 11, + 90 + - 31 ) * + 76 * - ( + COUNT ( * ) ) + - - 63 + 28
----
-745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7286
SELECT NULLIF ( - - NULLIF ( + + 13, - - CAST( + + COUNT( DISTINCT + 54 ) AS SIGNED ) * - MAX( DISTINCT - 28 ) + 40 ), + - 76 + - COUNT( * ) - + 63 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-7286
SELECT NULLIF ( - - NULLIF ( + + 13, - - CAST ( + + COUNT ( DISTINCT + 54 ) AS INTEGER ) * - MAX ( DISTINCT - 28 ) + 40 ), + - 76 + - COUNT ( * ) - + 63 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT NULLIF ( + + 93, + SUM( - 27 ) )
----
93

skipif mysql # not compatible
query I rowsort label-7287
SELECT NULLIF ( + + 93, + SUM ( - 27 ) )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT + COUNT( * ) * 68 + - 34
----
34

skipif mysql # not compatible
query I rowsort label-7288
SELECT + COUNT ( * ) * 68 + - 34
----
34

query I rowsort
SELECT - + 82 * - + 66 col1
----
5412

query II rowsort
SELECT - + 33 + - 77 AS col1, - 37 AS col2
----
-110
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7291
SELECT ALL + - 0 DIV - 87 * - 8 + - - 45 * - 63
----
-2835

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL + - 0 / - 87 * - 8 + - - 45 * - 63
----
-2835

query I rowsort
SELECT ALL + 57 * + 71 + 45 + + 74 - + 77 + + 66 col2
----
4155

query II rowsort
SELECT ALL 57 * + 45 col1, + 79 AS col0
----
2565
79

query I rowsort
SELECT ALL + 61 * 64
----
3904

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT - - 55 * - - COALESCE ( COUNT( * ), - - COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-7295
SELECT - - 55 * - - COALESCE ( COUNT ( * ), - - COUNT ( * ) )
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-7296
SELECT - ( + 7 ), 65 - - 96 + + 82 DIV + 91 AS col2
----
-7
161

skipif mysql # not compatible
query II rowsort label-7296
SELECT - ( + 7 ), 65 - - 96 + + 82 / + 91 AS col2
----
-7
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT + MIN( DISTINCT + + 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7297
SELECT + MIN ( DISTINCT + + 8 ) AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7298
SELECT ALL COUNT( * ) * + 75 DIV + - COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL COUNT ( * ) * + 75 / + - COUNT ( * ) AS col2
----
-75

query I rowsort
SELECT + + 31 * - 9 AS col2
----
-279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7300
SELECT DISTINCT + CAST( - - 28 AS SIGNED ) + - 61 + CAST( NULL AS SIGNED ) col2, + COUNT( * ) * - 89 AS col2
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-7300
SELECT DISTINCT + CAST ( - - 28 AS INTEGER ) + - 61 + CAST ( NULL AS INTEGER ) col2, + COUNT ( * ) * - 89 AS col2
----
NULL
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT + 10 * - + ( - 98 ) * + COUNT( * )
----
980

skipif mysql # not compatible
query I rowsort label-7301
SELECT + 10 * - + ( - 98 ) * + COUNT ( * )
----
980

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT ALL COUNT( * ) + + CASE + 72 WHEN + COUNT( * ) + 23 THEN + - 84 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL COUNT ( * ) + + CASE + 72 WHEN + COUNT ( * ) + 23 THEN + - 84 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7303
SELECT - ( + ( + 17 ) ) + + CAST( NULL AS SIGNED ) - - CAST( 29 AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT - ( + ( + 17 ) ) + + CAST ( NULL AS INTEGER ) - - CAST ( 29 AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7304
SELECT ALL 92 + SUM( DISTINCT CAST( 61 AS SIGNED ) ) * + COUNT( * )
----
153

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL 92 + SUM ( DISTINCT CAST ( 61 AS INTEGER ) ) * + COUNT ( * )
----
153

query I rowsort
SELECT + 4 - - 21 + + NULLIF ( + 17, - 74 ) col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7306
SELECT ALL 17 AS col2, - COUNT( * ) AS col1
----
17
-1

skipif mysql # not compatible
query II rowsort label-7306
SELECT ALL 17 AS col2, - COUNT ( * ) AS col1
----
17
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT + MIN( ALL + 61 ) - - 98 + - 23 * 98
----
-2095

skipif mysql # not compatible
query I rowsort label-7307
SELECT + MIN ( ALL + 61 ) - - 98 + - 23 * 98
----
-2095

query I rowsort
SELECT ALL ( + + 87 ) + + 53 + + ( - 79 ) AS col2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7309
SELECT ALL 56 + - 41 DIV + 50 + - + ( + 9 )
----
47

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL 56 + - 41 / + 50 + - + ( + 9 )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7310
SELECT - 26 DIV + - 71 * + 9 + 21
----
21

skipif mysql # not compatible
query I rowsort label-7310
SELECT - 26 / + - 71 * + 9 + 21
----
21

query I rowsort
SELECT + 20 + - 54
----
-34

query I rowsort
SELECT + 38 * + 69 * 67 + - + 91 + + 21
----
175604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7313
SELECT + COUNT( * ) DIV + 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7313
SELECT + COUNT ( * ) / + 72 AS col0
----
0

query I rowsort
SELECT + 84 * + + 73 col1
----
6132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7315
SELECT ALL + 13 AS col1, CAST( NULL AS SIGNED ) + - - COUNT( * ) * - - 4 - 75
----
13
NULL

skipif mysql # not compatible
query II rowsort label-7315
SELECT ALL + 13 AS col1, CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * - - 4 - 75
----
13
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7316
SELECT CAST( - COALESCE ( - 32, + 32 * - - 23 ) AS SIGNED ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7316
SELECT CAST ( - COALESCE ( - 32, + 32 * - - 23 ) AS INTEGER ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT ( - 55 ) / 92 * ( - + 26 ) * 54 / - CASE + 70 WHEN + ( - 88 ) * + - ( + + 49 ) THEN - 87 END * 23 + - 13 + - - 30 * ( - - 86 ) + 75 * 63 + + NULLIF ( + 54, CASE + 9 WHEN + ( 38 ) THEN MAX( ALL - 77 ) WHEN + 35 THEN - - 6 * + 66 ELSE NULL END ) + - - COUNT( * ) + - 83 + 88 * 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7317
SELECT ( - 55 ) / 92 * ( - + 26 ) * 54 / - CASE + 70 WHEN + ( - 88 ) * + - ( + + 49 ) THEN - 87 END * 23 + - 13 + - - 30 * ( - - 86 ) + 75 * 63 + + NULLIF ( + 54, CASE + 9 WHEN + ( 38 ) THEN MAX ( ALL - 77 ) WHEN + 35 THEN - - 6 * + 66 ELSE NULL END ) + - - COUNT ( * ) + - 83 + 88 * 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7318
SELECT ALL COUNT( * ) DIV 19 - + 31, MAX( 11 ) AS col1
----
-31
11

skipif mysql # not compatible
query II rowsort label-7318
SELECT ALL COUNT ( * ) / 19 - + 31, MAX ( 11 ) AS col1
----
-31
11

query I rowsort
SELECT DISTINCT 1 - + 9 * - + 44 * - 59
----
-23363

query I rowsort
SELECT ALL + 81 * 15
----
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT DISTINCT + COUNT( 69 ) - - 42
----
43

skipif mysql # not compatible
query I rowsort label-7321
SELECT DISTINCT + COUNT ( 69 ) - - 42
----
43

query I rowsort
SELECT DISTINCT 95 * - 63 col2
----
-5985

query I rowsort
SELECT 93 * 3
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7324
SELECT ALL + 82 * - CAST( - 49 AS SIGNED )
----
4018

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL + 82 * - CAST ( - 49 AS INTEGER )
----
4018

query I rowsort
SELECT ALL - ( - 17 )
----
17

query I rowsort
SELECT 83 * - 26 AS col1
----
-2158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7327
SELECT COUNT( * ) + - 3 DIV 80 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7327
SELECT COUNT ( * ) + - 3 / 80 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT ALL - CASE NULLIF ( - COUNT( * ), - 30 ) WHEN + AVG ( DISTINCT - 70 ) THEN NULL ELSE + ( - 84 ) * ( - 45 ) END + COUNT( * ) * + 82
----
-3698

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL - CASE NULLIF ( - COUNT ( * ), - 30 ) WHEN + AVG ( DISTINCT - 70 ) THEN NULL ELSE + ( - 84 ) * ( - 45 ) END + COUNT ( * ) * + 82
----
-3698

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT ALL + COUNT( * ) + 72
----
73

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL + COUNT ( * ) + 72
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT DISTINCT + COUNT( * ) + 30
----
31

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT + COUNT ( * ) + 30
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7331
SELECT DISTINCT NULLIF ( + ( 92 ), + 39 ) + 84 * NULLIF ( 47, - NULLIF ( COUNT( * ), - COUNT( * ) * - COUNT( 70 ) + ( + CAST( NULL AS SIGNED ) ) ) ) AS col0
----
4040

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT NULLIF ( + ( 92 ), + 39 ) + 84 * NULLIF ( 47, - NULLIF ( COUNT ( * ), - COUNT ( * ) * - COUNT ( 70 ) + ( + CAST ( NULL AS INTEGER ) ) ) ) AS col0
----
4040

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7332
SELECT ALL - 19 + + 23 * + CASE COUNT( * ) WHEN 20 THEN - 32 * CAST( 46 AS DECIMAL ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL - 19 + + 23 * + CASE COUNT ( * ) WHEN 20 THEN - 32 * CAST ( 46 AS REAL ) END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7333
SELECT 99 * CAST( + 29 AS SIGNED )
----
2871

skipif mysql # not compatible
query I rowsort label-7333
SELECT 99 * CAST ( + 29 AS INTEGER )
----
2871

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT 8 * - COUNT( 99 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-7334
SELECT 8 * - COUNT ( 99 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT COUNT( * ) + 64
----
65

skipif mysql # not compatible
query I rowsort label-7335
SELECT COUNT ( * ) + 64
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT DISTINCT + 47 * COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-7336
SELECT DISTINCT + 47 * COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT 53 + ( - COUNT( * ) )
----
52

skipif mysql # not compatible
query I rowsort label-7337
SELECT 53 + ( - COUNT ( * ) )
----
52

query I rowsort
SELECT ALL ( - 56 ) + + 6
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT COUNT( * ) * + MAX( - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-7339
SELECT COUNT ( * ) * + MAX ( - 35 ) AS col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7340
SELECT ALL + COALESCE ( - ( + COALESCE ( COUNT( * ), 84 ) ), 59 DIV 67 ) * - 27 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL + COALESCE ( - ( + COALESCE ( COUNT ( * ), 84 ) ), 59 / 67 ) * - 27 AS col0
----
27

query I rowsort
SELECT DISTINCT 97 + 14
----
111

query I rowsort
SELECT 33 - - 7
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7343
SELECT CAST( - 17 AS SIGNED ) * - 44 AS col0
----
748

skipif mysql # not compatible
query I rowsort label-7343
SELECT CAST ( - 17 AS INTEGER ) * - 44 AS col0
----
748

query I rowsort
SELECT ALL 96 * - 63
----
-6048

query I rowsort
SELECT DISTINCT 31 * + 81 AS col1
----
2511

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT ( + MAX( ALL + 52 ) ) * 7
----
364

skipif mysql # not compatible
query I rowsort label-7346
SELECT ( + MAX ( ALL + 52 ) ) * 7
----
364

query I rowsort
SELECT ALL 49 * - 90 AS col0
----
-4410

query I rowsort
SELECT 68 - 60 AS col2
----
8

query I rowsort
SELECT ALL 60 * + 29 AS col2
----
1740

query I rowsort
SELECT ALL - CASE 6 WHEN - ( - 52 ) THEN 39 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 47 * 21
----
987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7352
SELECT ALL - 5 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL - 5 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7353
SELECT + 96 DIV - 74 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7353
SELECT + 96 / - 74 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT ALL - - COUNT( - 25 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL - - COUNT ( - 25 ) AS col1
----
1

query I rowsort
SELECT ALL - + ( 72 )
----
-72

query I rowsort
SELECT + 40 + + 28
----
68

query I rowsort
SELECT 61 * 27 col0
----
1647

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7358
SELECT MIN( DISTINCT - 92 ) * - COUNT( * ) + COUNT( * ) DIV + 66
----
92

skipif mysql # not compatible
query I rowsort label-7358
SELECT MIN ( DISTINCT - 92 ) * - COUNT ( * ) + COUNT ( * ) / + 66
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7359
SELECT ALL MIN( 1 ) DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL MIN ( 1 ) / + 65
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7360
SELECT - CAST( CAST( ( CAST( NULL AS SIGNED ) ) AS SIGNED ) AS SIGNED ) / + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7360
SELECT - CAST ( CAST ( ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS INTEGER ) / + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT - - COUNT( * ) * + 43 - + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-7361
SELECT - - COUNT ( * ) * + 43 - + COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT 40 * + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-7362
SELECT 40 * + COUNT ( * )
----
40

query I rowsort
SELECT ALL - COALESCE ( 35, 25, NULLIF ( + 0, 4 ) * + 91 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT ALL + COUNT( * ) + + 53
----
54

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL + COUNT ( * ) + + 53
----
54

query I rowsort
SELECT + 3 + + 40
----
43

query I rowsort
SELECT ALL + - 45 * - 41
----
1845

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT + COUNT( * ) * - 30 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-7367
SELECT + COUNT ( * ) * - 30 AS col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7368
SELECT - COALESCE ( - 79, + COUNT( * ) - - 28 * 6, COUNT( * ) DIV 15 - 83 )
----
79

skipif mysql # not compatible
query I rowsort label-7368
SELECT - COALESCE ( - 79, + COUNT ( * ) - - 28 * 6, COUNT ( * ) / 15 - 83 )
----
79

query I rowsort
SELECT ALL 95 + 77 AS col0
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7370
SELECT CAST( - 46 AS SIGNED ) col2
----
-46

skipif mysql # not compatible
query I rowsort label-7370
SELECT CAST ( - 46 AS INTEGER ) col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT - MAX( - 13 ) + - 49 * - 92
----
4521

skipif mysql # not compatible
query I rowsort label-7371
SELECT - MAX ( - 13 ) + - 49 * - 92
----
4521

query I rowsort
SELECT - 48 * 88
----
-4224

query I rowsort
SELECT DISTINCT - 26 + - 90 AS col2
----
-116

query I rowsort
SELECT DISTINCT - 10 + 50 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT DISTINCT COUNT( 94 )
----
1

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT COUNT ( 94 )
----
1

query I rowsort
SELECT ALL - ( + - 97 ) + - 80 * - 56 col2
----
4577

query I rowsort
SELECT 34 - - + 5 * - 91
----
-421

query I rowsort
SELECT 43 - + 74 * - 57 AS col1
----
4261

query I rowsort
SELECT ALL - 61 * - 93 AS col2
----
5673

query I rowsort
SELECT ALL - 89 - + 33 * 73
----
-2498

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT ALL COUNT( 9 )
----
1

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL COUNT ( 9 )
----
1

query I rowsort
SELECT 43 + + 54 AS col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7383
SELECT 78 - + + 35 + - 59 DIV COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-7383
SELECT 78 - + + 35 + - 59 / COUNT ( * )
----
-16

query I rowsort
SELECT ALL - 53 * - 14 AS col1
----
742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7385
SELECT ALL + 99 * + 33 * NULLIF ( + 14, + CAST( + SUM( - 9 ) AS SIGNED ) * CASE + AVG ( ALL + 24 ) WHEN COUNT( * ) + 30 THEN - 88 WHEN AVG ( ALL 99 ) / COUNT( * ) THEN NULL WHEN 46 THEN - 90 ELSE + 69 END )
----
45738

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL + 99 * + 33 * NULLIF ( + 14, + CAST ( + SUM ( - 9 ) AS INTEGER ) * CASE + AVG ( ALL + 24 ) WHEN COUNT ( * ) + 30 THEN - 88 WHEN AVG ( ALL 99 ) / COUNT ( * ) THEN NULL WHEN 46 THEN - 90 ELSE + 69 END )
----
45738

query I rowsort
SELECT DISTINCT - 71 - - COALESCE ( 27, + 2 ) AS col2
----
-44

query I rowsort
SELECT ALL + 99 * - - 24
----
2376

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT 26 DIV - - 25 + 80
----
81

skipif mysql # not compatible
query I rowsort label-7388
SELECT 26 / - - 25 + 80
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT DISTINCT + COALESCE ( - + MIN( ALL - ( 6 ) ), 34 * NULLIF ( + 23, + 33 ) )
----
6

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT + COALESCE ( - + MIN ( ALL - ( 6 ) ), 34 * NULLIF ( + 23, + 33 ) )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT + COALESCE ( - 15, 39 - + 99 ) + + COUNT( ALL 86 + ( 89 - + 1 * 99 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-7390
SELECT + COALESCE ( - 15, 39 - + 99 ) + + COUNT ( ALL 86 + ( 89 - + 1 * 99 ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT ALL + NULLIF ( NULLIF ( CASE 43 WHEN 31 THEN MAX( ALL - ( 26 ) ) END, + 77 ), 11 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL + NULLIF ( NULLIF ( CASE 43 WHEN 31 THEN MAX ( ALL - ( 26 ) ) END, + 77 ), 11 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7392
SELECT CAST( 51 AS SIGNED ) * COUNT( DISTINCT 38 * + 9 ) + - COUNT( * ) * 38
----
13

skipif mysql # not compatible
query I rowsort label-7392
SELECT CAST ( 51 AS INTEGER ) * COUNT ( DISTINCT 38 * + 9 ) + - COUNT ( * ) * 38
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT DISTINCT + CASE - + 97 WHEN + COUNT( * ) * 56 THEN NULL ELSE 69 + + SUM( DISTINCT - 22 + 59 ) END
----
106

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT + CASE - + 97 WHEN + COUNT ( * ) * 56 THEN NULL ELSE 69 + + SUM ( DISTINCT - 22 + 59 ) END
----
106

query I rowsort
SELECT ALL + - CASE 94 WHEN + AVG ( + 43 ) * + 37 THEN 72 * 42 + - 20 ELSE 54 END AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT - - 66 * + 90 + + 27 + COUNT( * )
----
5968

skipif mysql # not compatible
query I rowsort label-7395
SELECT - - 66 * + 90 + + 27 + COUNT ( * )
----
5968

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT DISTINCT - - 15 * + SUM( ALL 99 ) + - 34
----
1451

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT - - 15 * + SUM ( ALL 99 ) + - 34
----
1451

query I rowsort
SELECT + 21 + + - 76
----
-55

query I rowsort
SELECT + ( 2 ) AS col1
----
2

query I rowsort
SELECT DISTINCT + + 50 * + 46 + CASE + 89 - 52 WHEN - 61 THEN - 68 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 94 * - - 64 + 16 + 69
----
-5931

query I rowsort
SELECT DISTINCT 8 * + 31
----
248

query I rowsort
SELECT + + 44 * 5 AS col0
----
220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7403
SELECT ALL - - 30 * + + 32 + CAST( NULL AS SIGNED ) * COALESCE ( CAST( + AVG ( ALL 30 ) AS SIGNED ) * ( - 22 - + 57 ), - 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL - - 30 * + + 32 + CAST ( NULL AS INTEGER ) * COALESCE ( CAST ( + AVG ( ALL 30 ) AS INTEGER ) * ( - 22 - + 57 ), - 5 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL + + 64 * + - ( 51 ) + COUNT( * )
----
-3263

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + + 64 * + - ( 51 ) + COUNT ( * )
----
-3263

query I rowsort
SELECT + 23 * - 24
----
-552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7406
SELECT 66 * + COUNT( * ) * 78 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7406
SELECT 66 * + COUNT ( * ) * 78 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7407
SELECT + + 61 + - 61 + - 27 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-7407
SELECT + + 61 + - 61 + - 27 / 56
----
0

query I rowsort
SELECT - - 86 + + 64
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT ALL COUNT( DISTINCT - 88 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL COUNT ( DISTINCT - 88 ) AS col1
----
1

query I rowsort
SELECT + 69 + - + 63 AS col2
----
6

query I rowsort
SELECT - ( + 8 ) AS col0
----
-8

query I rowsort
SELECT + 45 + ( + - 21 ) AS col1
----
24

query I rowsort
SELECT - 77 * - 9 * + ( + 1 ) - + 44 AS col0
----
649

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT + COUNT( * ) + - + 12 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-7414
SELECT + COUNT ( * ) + - + 12 AS col1
----
-11

query I rowsort
SELECT ALL 86 * + 37
----
3182

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT + 91 * - 14 * COUNT( * )
----
-1274

skipif mysql # not compatible
query I rowsort label-7416
SELECT + 91 * - 14 * COUNT ( * )
----
-1274

query II rowsort
SELECT 7, 72 AS col1
----
7
72

query I rowsort
SELECT DISTINCT 62 - - 66
----
128

query I rowsort
SELECT - ( + 68 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT - ( + + MAX( DISTINCT 34 ) ) + CASE + COALESCE ( 1, COUNT( ALL - 38 ) + COUNT( * ) * - ( 54 * 11 ) ) WHEN - COUNT( - 42 ) THEN NULL ELSE 79 END * + 15 AS col0
----
1151

skipif mysql # not compatible
query I rowsort label-7420
SELECT - ( + + MAX ( DISTINCT 34 ) ) + CASE + COALESCE ( 1, COUNT ( ALL - 38 ) + COUNT ( * ) * - ( 54 * 11 ) ) WHEN - COUNT ( - 42 ) THEN NULL ELSE 79 END * + 15 AS col0
----
1151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7421
SELECT - 50 * CAST( - 81 AS SIGNED ) * + 83
----
336150

skipif mysql # not compatible
query I rowsort label-7421
SELECT - 50 * CAST ( - 81 AS INTEGER ) * + 83
----
336150

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT - COUNT( DISTINCT + 87 ) + + CASE 54 WHEN 3 * - 5 THEN NULL WHEN 58 THEN - 86 END + + 83 * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT - COUNT ( DISTINCT + 87 ) + + CASE 54 WHEN 3 * - 5 THEN NULL WHEN 58 THEN - 86 END + + 83 * 36
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT + 79 DIV - 17
----
-4

skipif mysql # not compatible
query I rowsort label-7423
SELECT + 79 / - 17
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT DISTINCT COUNT( - 92 ) * - 51 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT COUNT ( - 92 ) * - 51 AS col0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7425
SELECT ALL CASE + 49 WHEN + 18 * + MAX( 91 ) THEN NULL ELSE - COALESCE ( - 3, 60 + 16 ) DIV COUNT( * ) END
----
3

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL CASE + 49 WHEN + 18 * + MAX ( 91 ) THEN NULL ELSE - COALESCE ( - 3, 60 + 16 ) / COUNT ( * ) END
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7426
SELECT - COUNT( * ) DIV + ( - + 27 )
----
0

skipif mysql # not compatible
query I rowsort label-7426
SELECT - COUNT ( * ) / + ( - + 27 )
----
0

query I rowsort
SELECT ALL - 22 * 60 AS col1
----
-1320

query I rowsort
SELECT ALL ( + 80 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7429
SELECT DISTINCT - COUNT( * ) * - NULLIF ( - + CASE + 6 WHEN 66 THEN - COALESCE ( 74, - 91 * 24, + 91, 36 * - MAX( CAST( - 46 AS SIGNED ) ) ) * + 18 WHEN - 67 * 17 THEN - 80 END, 3 * 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT - COUNT ( * ) * - NULLIF ( - + CASE + 6 WHEN 66 THEN - COALESCE ( 74, - 91 * 24, + 91, 36 * - MAX ( CAST ( - 46 AS INTEGER ) ) ) * + 18 WHEN - 67 * 17 THEN - 80 END, 3 * 96 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT + 19 - - ( - - 38 ) + + SUM( + 81 ) * 43
----
3540

skipif mysql # not compatible
query I rowsort label-7430
SELECT + 19 - - ( - - 38 ) + + SUM ( + 81 ) * 43
----
3540

query I rowsort
SELECT - 25 * 66 * - + 54
----
89100

query I rowsort
SELECT ALL + 77 * 87
----
6699

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT - 70 * - 90 - SUM( + 83 ) AS col1
----
6217

skipif mysql # not compatible
query I rowsort label-7433
SELECT - 70 * - 90 - SUM ( + 83 ) AS col1
----
6217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7434
SELECT CAST( + AVG ( ALL 49 ) AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-7434
SELECT CAST ( + AVG ( ALL 49 ) AS INTEGER )
----
49

query I rowsort
SELECT + - 33 * - - 58
----
-1914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7436
SELECT ALL + - COUNT( * ) DIV + COUNT( * ) + MAX( 12 ) DIV 50
----
-1

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL + - COUNT ( * ) / + COUNT ( * ) + MAX ( 12 ) / 50
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT + + MIN( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-7437
SELECT + + MIN ( 73 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7438
SELECT ALL - + COUNT( * ) DIV 45 + - COUNT( * ) + 15 * 5 + 69 AS col1
----
143

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL - + COUNT ( * ) / 45 + - COUNT ( * ) + 15 * 5 + 69 AS col1
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7439
SELECT DISTINCT + 25 / CAST( NULL AS SIGNED ) * - + 66 / + NULLIF ( - 30 * ( 21 ), 40 * 12 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT + 25 / CAST ( NULL AS INTEGER ) * - + 66 / + NULLIF ( - 30 * ( 21 ), 40 * 12 ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT - COUNT( * ) + 73
----
72

skipif mysql # not compatible
query I rowsort label-7440
SELECT - COUNT ( * ) + 73
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT + + CASE + 69 WHEN - ( - 34 ) - 84 THEN - NULLIF ( COUNT( * ), - 24 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7441
SELECT + + CASE + 69 WHEN - ( - 34 ) - 84 THEN - NULLIF ( COUNT ( * ), - 24 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7442
SELECT ALL + + AVG ( ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL + + AVG ( ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

query I rowsort
SELECT NULLIF ( - 94, + 61 ) * + 44 + + 78
----
-4058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7444
SELECT + - 32 - - - 26 DIV + + COALESCE ( - 84, + 88, 95 + - 90, 78 * + 15 ) * COALESCE ( 90, + COALESCE ( + 47, + MIN( ALL - ( 24 ) ) + + CAST( - MAX( - 47 ) + + COUNT( * ) AS SIGNED ) ) ) + - 55
----
-87

skipif mysql # not compatible
query I rowsort label-7444
SELECT + - 32 - - - 26 / + + COALESCE ( - 84, + 88, 95 + - 90, 78 * + 15 ) * COALESCE ( 90, + COALESCE ( + 47, + MIN ( ALL - ( 24 ) ) + + CAST ( - MAX ( - 47 ) + + COUNT ( * ) AS INTEGER ) ) ) + - 55
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-7445
SELECT DISTINCT + COUNT( * ), - 69 AS col2
----
1
-69

skipif mysql # not compatible
query II rowsort label-7445
SELECT DISTINCT + COUNT ( * ), - 69 AS col2
----
1
-69

query I rowsort
SELECT + + 71 * 39
----
2769

query II rowsort
SELECT 36 AS col1, + 31 AS col2
----
36
31

query I rowsort
SELECT CASE 76 WHEN - + 47 THEN + NULLIF ( + ( - NULLIF ( 20, + 22 ) ), + 53 ) WHEN - 7 * + 23 THEN - ( - 33 ) END
----
NULL

query I rowsort
SELECT ALL + 63 * + 29 - + 60
----
1767

onlyif mysql # DIV for integer division: 
query II rowsort label-7450
SELECT - 68 * - 87, - 79 DIV 82 * 44 AS col0
----
5916
0

skipif mysql # not compatible
query II rowsort label-7450
SELECT - 68 * - 87, - 79 / 82 * 44 AS col0
----
5916
0

query I rowsort
SELECT + 85 + - 89 + - ( - - 24 ) * - 78
----
1868

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7452
SELECT + ( + - 24 ) DIV COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-7452
SELECT + ( + - 24 ) / COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT + COUNT( ALL + + ( - 60 ) ) * NULLIF ( 68, MIN( - 35 ) ) * - COUNT( * ) + + 89
----
21

skipif mysql # not compatible
query I rowsort label-7453
SELECT + COUNT ( ALL + + ( - 60 ) ) * NULLIF ( 68, MIN ( - 35 ) ) * - COUNT ( * ) + + 89
----
21

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7454
SELECT CAST( - - CAST( - - 42 AS DECIMAL ) AS SIGNED ) * - NULLIF ( - 33, - CAST( NULL AS SIGNED ) ) AS col2
----
1386

skipif mysql # not compatible
query I rowsort label-7454
SELECT CAST ( - - CAST ( - - 42 AS REAL ) AS INTEGER ) * - NULLIF ( - 33, - CAST ( NULL AS INTEGER ) ) AS col2
----
1386

onlyif mysql # DIV for integer division: 
query I rowsort label-7455
SELECT ALL 73 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL 73 / 75
----
0

query I rowsort
SELECT 62 * AVG ( DISTINCT + - CASE - ( 99 ) WHEN + 77 * - 69 THEN - 79 * - 81 END ) * 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT 68 - + CAST( 5 AS SIGNED ) - - 70 * 84
----
5943

skipif mysql # not compatible
query I rowsort label-7457
SELECT 68 - + CAST ( 5 AS INTEGER ) - - 70 * 84
----
5943

query II rowsort
SELECT DISTINCT 67 * + - 56 AS col1, - 70 col2
----
-3752
-70

query I rowsort
SELECT DISTINCT 31 * + - 86 AS col1
----
-2666

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT ( 37 ) + - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-7460
SELECT ( 37 ) + - COUNT ( * ) AS col2
----
36

query I rowsort
SELECT 3 - + 85 + - 73
----
-155

query I rowsort
SELECT ALL 66 + + CASE + + 38 WHEN + 59 - 80 THEN AVG ( ALL - 70 ) + 14 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT SUM( + ( - - 16 ) ) + ( 90 ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-7463
SELECT SUM ( + ( - - 16 ) ) + ( 90 ) AS col0
----
106

query I rowsort
SELECT 13 - 90 * - 0 * + 40 + + 0 AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7465
SELECT NULLIF ( - COALESCE ( + - 96, - 37 - + 75, - 16 DIV 12 ), + 21 ) + - COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-7465
SELECT NULLIF ( - COALESCE ( + - 96, - 37 - + 75, - 16 / 12 ), + 21 ) + - COUNT ( * ) AS col1
----
95

query I rowsort
SELECT - ( 78 ) AS col2
----
-78

query I rowsort
SELECT ALL 3 + + NULLIF ( + 80, 77 * + 28 ) - 66 * 62
----
-4009

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT - COALESCE ( - + COUNT( * ), - 4 ) + 46 + - 93
----
-46

skipif mysql # not compatible
query I rowsort label-7468
SELECT - COALESCE ( - + COUNT ( * ), - 4 ) + 46 + - 93
----
-46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7469
SELECT ALL + + NULLIF ( + ( + 78 ), 2 DIV + CAST( NULL AS SIGNED ) + 75 ) DIV - 32 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL + + NULLIF ( + ( + 78 ), 2 / + CAST ( NULL AS INTEGER ) + 75 ) / - 32 AS col0
----
-2

query I rowsort
SELECT ALL - + 51 + - 48
----
-99

query I rowsort
SELECT 39 + 66
----
105

query I rowsort
SELECT ALL 25 + - + 29 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT ALL + COUNT( * ) * + 97
----
97

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL + COUNT ( * ) * + 97
----
97

query II rowsort
SELECT 85 + - - 11 AS col1, 3 + + 98
----
96
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7475
SELECT ( + 49 ) * + 9 * - CASE ( + COUNT( + 44 ) ) WHEN 98 THEN - 30 * - 71 + COUNT( * ) / COALESCE ( 57, CASE 46 WHEN + 22 THEN - CASE + 96 WHEN 98 + + COALESCE ( - 1, - CAST( NULL AS SIGNED ), + MIN( ALL - 80 ) ) THEN - 53 + + 1 WHEN COALESCE ( 87, - 53 + + 26 * + 58 ) + 90 THEN NULL ELSE + NULLIF ( COALESCE ( + NULLIF ( + 29, - 1 * COUNT( * ) ), + 66 * 54 ), 67 ) * + 85 - + 13 * 11 END - - 54 ELSE NULL END ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7475
SELECT ( + 49 ) * + 9 * - CASE ( + COUNT ( + 44 ) ) WHEN 98 THEN - 30 * - 71 + COUNT ( * ) / COALESCE ( 57, CASE 46 WHEN + 22 THEN - CASE + 96 WHEN 98 + + COALESCE ( - 1, - CAST ( NULL AS INTEGER ), + MIN ( ALL - 80 ) ) THEN - 53 + + 1 WHEN COALESCE ( 87, - 53 + + 26 * + 58 ) + 90 THEN NULL ELSE + NULLIF ( COALESCE ( + NULLIF ( + 29, - 1 * COUNT ( * ) ), + 66 * 54 ), 67 ) * + 85 - + 13 * 11 END - - 54 ELSE NULL END ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT + + COUNT( - + 93 )
----
1

skipif mysql # not compatible
query I rowsort label-7476
SELECT + + COUNT ( - + 93 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT ALL - COALESCE ( 63, + COUNT( * ) )
----
-63

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL - COALESCE ( 63, + COUNT ( * ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT - 25 * 69 * - MIN( DISTINCT 93 ) + + 9 AS col0
----
160434

skipif mysql # not compatible
query I rowsort label-7478
SELECT - 25 * 69 * - MIN ( DISTINCT 93 ) + + 9 AS col0
----
160434

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7479
SELECT CASE 12 WHEN - 17 THEN - 12 WHEN 92 * + 57 THEN - 6 WHEN 33 THEN + 7 ELSE 65 + - MIN( DISTINCT - 85 ) END DIV 79 col0
----
1

skipif mysql # not compatible
query I rowsort label-7479
SELECT CASE 12 WHEN - 17 THEN - 12 WHEN 92 * + 57 THEN - 6 WHEN 33 THEN + 7 ELSE 65 + - MIN ( DISTINCT - 85 ) END / 79 col0
----
1

query I rowsort
SELECT 95 * 33
----
3135

query I rowsort
SELECT DISTINCT - COALESCE ( - 47, - 13 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT - ( COUNT( - 84 ) ) * + - 16 * - ( 14 ) + + ( - 50 ) AS col1
----
-274

skipif mysql # not compatible
query I rowsort label-7482
SELECT - ( COUNT ( - 84 ) ) * + - 16 * - ( 14 ) + + ( - 50 ) AS col1
----
-274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7483
SELECT ALL + + 66 * - 28 + 40 - - + CASE - 60 WHEN - CAST( 74 AS SIGNED ) + + 46 THEN - ( COUNT( + 46 ) ) END * - SUM( DISTINCT - 48 * - 94 + 4 / + 31 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL + + 66 * - 28 + 40 - - + CASE - 60 WHEN - CAST ( 74 AS INTEGER ) + + 46 THEN - ( COUNT ( + 46 ) ) END * - SUM ( DISTINCT - 48 * - 94 + 4 / + 31 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT + + 20 * - 66 + MAX( COALESCE ( - 75, 5 + 79 ) )
----
-1395

skipif mysql # not compatible
query I rowsort label-7484
SELECT + + 20 * - 66 + MAX ( COALESCE ( - 75, 5 + 79 ) )
----
-1395

query I rowsort
SELECT 33 + 22 + - 91 + - - 98 * CASE 35 WHEN 69 THEN + 35 WHEN - 52 / + 9 THEN NULL END
----
NULL

query I rowsort
SELECT - 69 * - 93 * + ( + 22 ) - + + 6 + - 58
----
141110

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT COUNT( ALL + 25 ) + + + MIN( - 69 )
----
-68

skipif mysql # not compatible
query I rowsort label-7487
SELECT COUNT ( ALL + 25 ) + + + MIN ( - 69 )
----
-68

query I rowsort
SELECT DISTINCT - ( - ( 63 ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT MIN( DISTINCT 28 ) + + 2 * - 89 * - 35 * 1 AS col1
----
6258

skipif mysql # not compatible
query I rowsort label-7489
SELECT MIN ( DISTINCT 28 ) + + 2 * - 89 * - 35 * 1 AS col1
----
6258

query II rowsort
SELECT - 28 AS col0, 22 + + + 84 AS col0
----
-28
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL 26 + 56 * + MIN( DISTINCT - + 76 ) + + 88 AS col2
----
-4142

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL 26 + 56 * + MIN ( DISTINCT - + 76 ) + + 88 AS col2
----
-4142

query I rowsort
SELECT 78 + + + ( 56 ) AS col0
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT ALL + 40 * CASE 29 WHEN + + COUNT( * ) THEN NULL ELSE COUNT( * ) END * + 96
----
3840

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL + 40 * CASE 29 WHEN + + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END * + 96
----
3840

query II rowsort
SELECT - 39 AS col1, 15 AS col1
----
-39
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7495
SELECT 97 * - + CAST( - + 91 AS SIGNED ) col1
----
8827

skipif mysql # not compatible
query I rowsort label-7495
SELECT 97 * - + CAST ( - + 91 AS INTEGER ) col1
----
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT ALL 90 + 94 + - + 99 + 32 + + SUM( DISTINCT 25 ) + - 72 * - MAX( NULLIF ( 84, - 11 * - 4 ) ) * + CASE - 7 * - ( + COUNT( * ) * 5 ) WHEN - 45 * + 6 THEN NULL WHEN 1 * MAX( DISTINCT 97 * 48 ) THEN - 53 * + 83 ELSE NULL END / + 96 * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL 90 + 94 + - + 99 + 32 + + SUM ( DISTINCT 25 ) + - 72 * - MAX ( NULLIF ( 84, - 11 * - 4 ) ) * + CASE - 7 * - ( + COUNT ( * ) * 5 ) WHEN - 45 * + 6 THEN NULL WHEN 1 * MAX ( DISTINCT 97 * 48 ) THEN - 53 * + 83 ELSE NULL END / + 96 * - 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT COUNT( * ) + - NULLIF ( - + 51, 81 * - 29 + 19 * 7 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-7497
SELECT COUNT ( * ) + - NULLIF ( - + 51, 81 * - 29 + 19 * 7 ) AS col0
----
52

query I rowsort
SELECT CASE + - 61 WHEN + 47 THEN NULL WHEN - 21 THEN NULL WHEN - 4 THEN 86 END / + 24 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7499
SELECT CAST( NULL AS SIGNED ) + + - 37 + + + 23 * + 5 * - 42 + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7499
SELECT CAST ( NULL AS INTEGER ) + + - 37 + + + 23 * + 5 * - 42 + 41
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7500
SELECT MIN( 77 ) * - + 28 AS col0, + 96 * 18
----
-2156
1728

skipif mysql # not compatible
query II rowsort label-7500
SELECT MIN ( 77 ) * - + 28 AS col0, + 96 * 18
----
-2156
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT ALL MAX( + 13 ) + + 59
----
72

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL MAX ( + 13 ) + + 59
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7502
SELECT DISTINCT 19 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT 19 / - 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7503
SELECT DISTINCT - CAST( 13 AS SIGNED ) + + COUNT( * ) * - 65
----
-78

skipif mysql # not compatible
query I rowsort label-7503
SELECT DISTINCT - CAST ( 13 AS INTEGER ) + + COUNT ( * ) * - 65
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT ALL MAX( ( + 37 ) ) * - - 19 * + COUNT( * )
----
703

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL MAX ( ( + 37 ) ) * - - 19 * + COUNT ( * )
----
703

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT + 40 * COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7505
SELECT + 40 * COUNT ( * ) AS col0
----
40

query I rowsort
SELECT ALL + 25 + 49 col0
----
74

query I rowsort
SELECT 40 - - 20 + - - 57 * + 89 + - ( + 33 ) + 76 * - 98
----
-2348

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT ALL + 76 * + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL + 76 * + COUNT ( * )
----
76

query I rowsort
SELECT + ( + + 84 ) - ( - 20 ) col0
----
104

query I rowsort
SELECT 30 * + + 17 col2
----
510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7511
SELECT NULLIF ( + CASE + 50 WHEN + COALESCE ( - - 94, 1 + - 91, ( 61 ) * + 25 + + ( - CAST( NULL AS SIGNED ) + COALESCE ( 83, 80 + + 19 * CASE + 68 * + 67 WHEN - AVG ( - 50 ) THEN + 1 WHEN CASE - NULLIF ( COUNT( ALL + 80 ), + 96 ) WHEN - COUNT( * ) THEN NULL WHEN - 42 THEN NULL ELSE + 72 END THEN 33 * + ( 56 * - COUNT( * ) ) END ) ) ) THEN 67 / MAX( - 95 * 39 ) WHEN AVG ( + NULLIF ( 82, + NULLIF ( 43, + 75 ) + - 35 ) ) THEN COUNT( * ) * + 37 ELSE NULL END, - 32 + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7511
SELECT NULLIF ( + CASE + 50 WHEN + COALESCE ( - - 94, 1 + - 91, ( 61 ) * + 25 + + ( - CAST ( NULL AS INTEGER ) + COALESCE ( 83, 80 + + 19 * CASE + 68 * + 67 WHEN - AVG ( - 50 ) THEN + 1 WHEN CASE - NULLIF ( COUNT ( ALL + 80 ), + 96 ) WHEN - COUNT ( * ) THEN NULL WHEN - 42 THEN NULL ELSE + 72 END THEN 33 * + ( 56 * - COUNT ( * ) ) END ) ) ) THEN 67 / MAX ( - 95 * 39 ) WHEN AVG ( + NULLIF ( 82, + NULLIF ( 43, + 75 ) + - 35 ) ) THEN COUNT ( * ) * + 37 ELSE NULL END, - 32 + 32 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7512
SELECT ALL - - 3 * SUM( 22 ) + 86 * CASE 54 WHEN - 43 THEN 45 * + 56 ELSE CAST( + 43 AS SIGNED ) END * COUNT( * ) + ( 39 ) - 39
----
3764

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL - - 3 * SUM ( 22 ) + 86 * CASE 54 WHEN - 43 THEN 45 * + 56 ELSE CAST ( + 43 AS INTEGER ) END * COUNT ( * ) + ( 39 ) - 39
----
3764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7513
SELECT 10 * + 4 * COUNT( * ) DIV NULLIF ( + - COUNT( * ), + 36 )
----
-40

skipif mysql # not compatible
query I rowsort label-7513
SELECT 10 * + 4 * COUNT ( * ) / NULLIF ( + - COUNT ( * ), + 36 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT DISTINCT - + COUNT( ALL + 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT - + COUNT ( ALL + 9 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7515
SELECT DISTINCT - + COALESCE ( - 29, - 1 + - + 5 + - CAST( + 94 AS SIGNED ) * + COUNT( * ) )
----
29

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT - + COALESCE ( - 29, - 1 + - + 5 + - CAST ( + 94 AS INTEGER ) * + COUNT ( * ) )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7516
SELECT ALL + 60 DIV + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL + 60 / + COUNT ( * ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT - COUNT( * ) * + 46 * ( - 62 ) - + - 21 + + 31
----
2904

skipif mysql # not compatible
query I rowsort label-7517
SELECT - COUNT ( * ) * + 46 * ( - 62 ) - + - 21 + + 31
----
2904

onlyif mysql # DIV for integer division: 
query I rowsort label-7518
SELECT - ( - 48 ) DIV - 53 + 32
----
32

skipif mysql # not compatible
query I rowsort label-7518
SELECT - ( - 48 ) / - 53 + 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT + COUNT( * ) * - 2
----
-2

skipif mysql # not compatible
query I rowsort label-7519
SELECT + COUNT ( * ) * - 2
----
-2

query I rowsort
SELECT ALL - - 62 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT 36 + - COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7521
SELECT 36 + - COUNT ( * ) AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7522
SELECT 72 DIV + - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-7522
SELECT 72 / + - COUNT ( * ) AS col2
----
-72

query I rowsort
SELECT 78 * + - 14
----
-1092

query I rowsort
SELECT DISTINCT - 26 * + 76 col2
----
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT ALL + 71 * CASE - - 31 WHEN + - NULLIF ( - 87, + - ( - COUNT( * ) ) ) - NULLIF ( - COALESCE ( COUNT( * ), 57 ), 48 * 72 + + 24 ) THEN NULL WHEN - 92 + 73 THEN - 59 ELSE 76 END AS col2
----
5396

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL + 71 * CASE - - 31 WHEN + - NULLIF ( - 87, + - ( - COUNT ( * ) ) ) - NULLIF ( - COALESCE ( COUNT ( * ), 57 ), 48 * 72 + + 24 ) THEN NULL WHEN - 92 + 73 THEN - 59 ELSE 76 END AS col2
----
5396

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT - MAX( 52 ) * - 88
----
4576

skipif mysql # not compatible
query I rowsort label-7526
SELECT - MAX ( 52 ) * - 88
----
4576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7527
SELECT ALL + NULLIF ( MIN( ALL + 5 ), 71 / + CASE + 37 WHEN 77 * + 51 THEN CAST( NULL AS SIGNED ) + + 24 ELSE NULL END ) * + COUNT( * ) + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL + NULLIF ( MIN ( ALL + 5 ), 71 / + CASE + 37 WHEN 77 * + 51 THEN CAST ( NULL AS INTEGER ) + + 24 ELSE NULL END ) * + COUNT ( * ) + + COUNT ( * )
----
6

query I rowsort
SELECT - 56 * + 56 AS col0
----
-3136

onlyif mysql # aggregate syntax: 
query II rowsort label-7529
SELECT DISTINCT + 4 AS col0, + COUNT( * ) AS col2
----
4
1

skipif mysql # not compatible
query II rowsort label-7529
SELECT DISTINCT + 4 AS col0, + COUNT ( * ) AS col2
----
4
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7530
SELECT ALL + 35 + 53 * + 43 * + - 78 DIV 39 + 2 AS col2
----
-4521

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL + 35 + 53 * + 43 * + - 78 / 39 + 2 AS col2
----
-4521

query II rowsort
SELECT - ( - - ( + 98 ) ) * - - 63 AS col0, CASE + 51 WHEN + 59 + - 37 THEN 13 WHEN 32 THEN NULL ELSE NULL END
----
-6174
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7532
SELECT - 91 + + + CASE + - 13 WHEN - 28 * - COUNT( * ) THEN NULL ELSE + CAST( + 22 AS SIGNED ) * + 15 + - 37 END - + COUNT( * ) * 89
----
113

skipif mysql # not compatible
query I rowsort label-7532
SELECT - 91 + + + CASE + - 13 WHEN - 28 * - COUNT ( * ) THEN NULL ELSE + CAST ( + 22 AS INTEGER ) * + 15 + - 37 END - + COUNT ( * ) * 89
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7533
SELECT ALL + 16 AS col2, - CAST( NULL AS SIGNED )
----
16
NULL

skipif mysql # not compatible
query II rowsort label-7533
SELECT ALL + 16 AS col2, - CAST ( NULL AS INTEGER )
----
16
NULL

query I rowsort
SELECT DISTINCT + 54 + - 15 * 28 AS col0
----
-366

query I rowsort
SELECT 63 * 99 + + - 38 AS col2
----
6199

query II rowsort
SELECT - 83 col0, 97
----
-83
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT - 2 * - CASE + 93 WHEN + - COUNT( * ) THEN 3 WHEN + - 94 * 32 THEN NULL ELSE + COUNT( * ) END AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7537
SELECT - 2 * - CASE + 93 WHEN + - COUNT ( * ) THEN 3 WHEN + - 94 * 32 THEN NULL ELSE + COUNT ( * ) END AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7538
SELECT - MAX( 0 ) + + + 79 + 41 * + NULLIF ( + 36, + 11 ) + CASE + CAST( + 45 AS SIGNED ) WHEN + 11 THEN NULL WHEN + COUNT( * ) + ( 71 ) THEN 44 ELSE NULL END * - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT - MAX ( 0 ) + + + 79 + 41 * + NULLIF ( + 36, + 11 ) + CASE + CAST ( + 45 AS INTEGER ) WHEN + 11 THEN NULL WHEN + COUNT ( * ) + ( 71 ) THEN 44 ELSE NULL END * - 24 AS col2
----
NULL

query I rowsort
SELECT ALL + 9 * + 33
----
297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7540
SELECT - CAST( NULL AS SIGNED ) + + 80 * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT - CAST ( NULL AS INTEGER ) + + 80 * + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL + 36 + - NULLIF ( - 94, - + 66 * - - COUNT( DISTINCT + 11 ) + - 88 * ( NULLIF ( + 20, + 7 + + 66 ) * - COUNT( * ) + - 91 ) ) * - COALESCE ( 40 * 49, - 21 * 39, - 48 )
----
-184204

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL + 36 + - NULLIF ( - 94, - + 66 * - - COUNT ( DISTINCT + 11 ) + - 88 * ( NULLIF ( + 20, + 7 + + 66 ) * - COUNT ( * ) + - 91 ) ) * - COALESCE ( 40 * 49, - 21 * 39, - 48 )
----
-184204

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT ALL COUNT( * ) + + - 97 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL COUNT ( * ) + + - 97 AS col0
----
-96

query I rowsort
SELECT - 42 + - - 58 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT ALL CASE - 64 WHEN + - 20 THEN - COUNT( * ) + - 78 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL CASE - 64 WHEN + - 20 THEN - COUNT ( * ) + - 78 END AS col0
----
NULL

query I rowsort
SELECT - - 60 + - 40
----
20

query II rowsort
SELECT ALL 34 AS col1, + 93
----
34
93

query I rowsort
SELECT + + 85 + - 47 AS col1
----
38

query I rowsort
SELECT - 77 + + + 56 * - - 6
----
259

query I rowsort
SELECT - 4 + - - 74 col2
----
70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7550
SELECT + CASE CAST( - 66 AS SIGNED ) WHEN - NULLIF ( + + ( - 11 ), 17 - ( + 12 - 11 ) * 32 ) - - 40 THEN 85 + 59 WHEN 97 * + NULLIF ( ( - 11 ), 9 * ( 58 ) + ( 42 ) ) THEN NULL ELSE 46 DIV 81 END - + 66 DIV 47 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7550
SELECT + CASE CAST ( - 66 AS INTEGER ) WHEN - NULLIF ( + + ( - 11 ), 17 - ( + 12 - 11 ) * 32 ) - - 40 THEN 85 + 59 WHEN 97 * + NULLIF ( ( - 11 ), 9 * ( 58 ) + ( 42 ) ) THEN NULL ELSE 46 / 81 END - + 66 / 47 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT CASE - COUNT( * ) WHEN - 51 + - 61 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN - 40 THEN 60 + 63 WHEN 66 THEN 74 + + 50 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7551
SELECT CASE - COUNT ( * ) WHEN - 51 + - 61 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN - 40 THEN 60 + 63 WHEN 66 THEN 74 + + 50 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7552
SELECT + + 33 DIV + 95 col0, 75 AS col2
----
0
75

skipif mysql # not compatible
query II rowsort label-7552
SELECT + + 33 / + 95 col0, 75 AS col2
----
0
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT DISTINCT + COALESCE ( + 61, 15 ) DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT + COALESCE ( + 61, 15 ) / 72
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7554
SELECT + - 58 + - CASE 48 WHEN + ( - 17 ) * - - 91 THEN NULL WHEN - 83 THEN CAST( NULL AS SIGNED ) END / 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7554
SELECT + - 58 + - CASE 48 WHEN + ( - 17 ) * - - 91 THEN NULL WHEN - 83 THEN CAST ( NULL AS INTEGER ) END / 98 AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + 58, - 42 + + 82 )
----
-58

query I rowsort
SELECT + 76 * + + 41 * + 50
----
155800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7557
SELECT - - 83 DIV - + 87 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7557
SELECT - - 83 / - + 87 + COUNT ( * )
----
1

query II rowsort
SELECT + 63 * ( - 62 ) AS col0, 24 AS col0
----
-3906
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7559
SELECT ALL + CASE + 93 WHEN - 10 THEN NULL WHEN - - 91 + + 82 * ( + ( + ( ( 67 ) ) ) ) + + CASE 74 + 24 WHEN 5 THEN NULL ELSE ( - 58 ) END THEN 39 / - COALESCE ( 83, CASE - 67 WHEN + 55 * - ( + 95 * + COALESCE ( - 10, 27, NULLIF ( 72, - 6 * - COUNT( * ) ) * 36 + + ( - 8 + - COUNT( * ) ), 22 ) ) + + 46 THEN 77 / - MAX( 88 ) WHEN + NULLIF ( - 98, - NULLIF ( - CAST( 54 AS SIGNED ), 22 ) ) THEN NULL END + - COALESCE ( 34, + 23 + 74 ), 43 * ( MAX( ALL + 40 ) ) ) + + 99 * 28 END * + 92 + 40 * - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL + CASE + 93 WHEN - 10 THEN NULL WHEN - - 91 + + 82 * ( + ( + ( ( 67 ) ) ) ) + + CASE 74 + 24 WHEN 5 THEN NULL ELSE ( - 58 ) END THEN 39 / - COALESCE ( 83, CASE - 67 WHEN + 55 * - ( + 95 * + COALESCE ( - 10, 27, NULLIF ( 72, - 6 * - COUNT ( * ) ) * 36 + + ( - 8 + - COUNT ( * ) ), 22 ) ) + + 46 THEN 77 / - MAX ( 88 ) WHEN + NULLIF ( - 98, - NULLIF ( - CAST ( 54 AS INTEGER ), 22 ) ) THEN NULL END + - COALESCE ( 34, + 23 + 74 ), 43 * ( MAX ( ALL + 40 ) ) ) + + 99 * 28 END * + 92 + 40 * - 57 AS col0
----
NULL

query II rowsort
SELECT ( - + 85 ) AS col0, 28 + 42
----
-85
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT ALL MIN( DISTINCT - ( 54 ) ) * - 17 * - - 56 * - 91 + + - COUNT( * ) AS col1
----
-4678129

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL MIN ( DISTINCT - ( 54 ) ) * - 17 * - - 56 * - 91 + + - COUNT ( * ) AS col1
----
-4678129

query I rowsort
SELECT ALL 66 * + + 1 + + + 81 AS col2
----
147

query II rowsort
SELECT + ( - - 62 ) AS col1, + 91 AS col1
----
62
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT 67 * 39 * + 92 + + 72 + + 89 + + COUNT( * ) * 36 * 71
----
243113

skipif mysql # not compatible
query I rowsort label-7564
SELECT 67 * 39 * + 92 + + 72 + + 89 + + COUNT ( * ) * 36 * 71
----
243113

query I rowsort
SELECT ALL 35 * - 92 + - 17 AS col0
----
-3237

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT + ( MIN( + 5 ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7566
SELECT + ( MIN ( + 5 ) ) AS col2
----
5

query I rowsort
SELECT NULLIF ( 44, - 2 * + 79 + 10 + + 55 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7568
SELECT + 97 DIV + + 83
----
1

skipif mysql # not compatible
query I rowsort label-7568
SELECT + 97 / + + 83
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT + 22 * - ( - 86 ) - MIN( + 79 ) * - COUNT( * ) * + 88 * 84
----
585860

skipif mysql # not compatible
query I rowsort label-7569
SELECT + 22 * - ( - 86 ) - MIN ( + 79 ) * - COUNT ( * ) * + 88 * 84
----
585860

query I rowsort
SELECT - 37 * - 54 AS col2
----
1998

onlyif mysql # DIV for integer division: 
query I rowsort label-7571
SELECT ALL 55 DIV - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL 55 / - 56 AS col1
----
0

query I rowsort
SELECT DISTINCT 47 * + NULLIF ( + 7, 72 ) + - ( - 84 )
----
413

query I rowsort
SELECT DISTINCT ( - - 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT - 43 + - 57 - + - ( + MAX( - - 6 ) ) + + - 19
----
-113

skipif mysql # not compatible
query I rowsort label-7574
SELECT - 43 + - 57 - + - ( + MAX ( - - 6 ) ) + + - 19
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7575
SELECT DISTINCT 21 * CASE + - ( - + COUNT( * ) ) WHEN - CAST( - 71 AS SIGNED ) + - + COUNT( DISTINCT 70 ) + - 82 * 61 THEN NULL ELSE + 73 END - + COALESCE ( + 76, + MAX( DISTINCT - 67 ) ) * 1 AS col1
----
1457

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT 21 * CASE + - ( - + COUNT ( * ) ) WHEN - CAST ( - 71 AS INTEGER ) + - + COUNT ( DISTINCT 70 ) + - 82 * 61 THEN NULL ELSE + 73 END - + COALESCE ( + 76, + MAX ( DISTINCT - 67 ) ) * 1 AS col1
----
1457

query I rowsort
SELECT ALL 7 * + 64 AS col2
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT DISTINCT + ( - + ( - MIN( 79 ) ) ) * MIN( - 6 ) - + - COUNT( * ) AS col0
----
-473

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT + ( - + ( - MIN ( 79 ) ) ) * MIN ( - 6 ) - + - COUNT ( * ) AS col0
----
-473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7578
SELECT DISTINCT CAST( - COALESCE ( 81, COALESCE ( + + 92, + 63 ), - NULLIF ( - 19, - 11 ), - 87 + NULLIF ( - COUNT( + 89 ), + 75 ) ) AS SIGNED ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT CAST ( - COALESCE ( 81, COALESCE ( + + 92, + 63 ), - NULLIF ( - 19, - 11 ), - 87 + NULLIF ( - COUNT ( + 89 ), + 75 ) ) AS INTEGER ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT - + 98 * + ( - 92 ) + COUNT( * ) + - 73
----
8944

skipif mysql # not compatible
query I rowsort label-7579
SELECT - + 98 * + ( - 92 ) + COUNT ( * ) + - 73
----
8944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7580
SELECT COALESCE ( - CAST( + COUNT( * ) AS SIGNED ), 17 * - - CASE COUNT( * ) WHEN - 38 THEN 20 WHEN COUNT( * ) THEN NULL ELSE 71 + - 53 * 51 END )
----
-1

skipif mysql # not compatible
query I rowsort label-7580
SELECT COALESCE ( - CAST ( + COUNT ( * ) AS INTEGER ), 17 * - - CASE COUNT ( * ) WHEN - 38 THEN 20 WHEN COUNT ( * ) THEN NULL ELSE 71 + - 53 * 51 END )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7581
SELECT - - COALESCE ( 26, + CASE + 13 WHEN - 30 THEN - 4 ELSE NULL END * + + 49 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - + 64 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-7581
SELECT - - COALESCE ( 26, + CASE + 13 WHEN - 30 THEN - 4 ELSE NULL END * + + 49 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - + 64 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT - - COUNT( * ) + - + 12 + 50
----
39

skipif mysql # not compatible
query I rowsort label-7582
SELECT - - COUNT ( * ) + - + 12 + 50
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT - 49 * + - CASE - 92 WHEN - - COUNT( * ) - - - 85 THEN NULL WHEN - 74 + 52 THEN + COUNT( * ) END + - NULLIF ( 39, + ( + MIN( ( 1 ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7583
SELECT - 49 * + - CASE - 92 WHEN - - COUNT ( * ) - - - 85 THEN NULL WHEN - 74 + 52 THEN + COUNT ( * ) END + - NULLIF ( 39, + ( + MIN ( ( 1 ) ) ) )
----
NULL

query II rowsort
SELECT - + 48 + - - 21, - 20 * - - ( ( + 71 ) ) col0
----
-27
-1420

query I rowsort
SELECT - + 37 * 98
----
-3626

query I rowsort
SELECT DISTINCT - + 2 * 64 col2
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7587
SELECT ALL - - CASE CAST( NULL AS SIGNED ) WHEN + 37 * - + SUM( DISTINCT 41 ) + - 52 * - 32 THEN NULL WHEN + 24 THEN NULL ELSE 70 END * + COALESCE ( - COUNT( * ), 59 * + 24 - + 56 * - 50 )
----
-70

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL - - CASE CAST ( NULL AS INTEGER ) WHEN + 37 * - + SUM ( DISTINCT 41 ) + - 52 * - 32 THEN NULL WHEN + 24 THEN NULL ELSE 70 END * + COALESCE ( - COUNT ( * ), 59 * + 24 - + 56 * - 50 )
----
-70

query I rowsort
SELECT DISTINCT + CASE - + 2 WHEN 59 * + - 2 - - 54 + 85 * 61 THEN + 40 + + 96 WHEN 67 THEN CASE 58 WHEN 64 * 96 THEN 91 + - 35 WHEN 83 + + 44 THEN NULL ELSE NULL END * - 53 + + 14 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 60 * + 77 + 87 + - NULLIF ( + ( + 23 ), 56 ) * 56 AS col2
----
-5821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7590
SELECT - 82 * - 52 + 41 * + COUNT( * ) * - 52 + + - 63 - ( - 63 ) + - CAST( NULL AS SIGNED ) * 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7590
SELECT - 82 * - 52 + 41 * + COUNT ( * ) * - 52 + + - 63 - ( - 63 ) + - CAST ( NULL AS INTEGER ) * 97 AS col0
----
NULL

query I rowsort
SELECT ALL - - 60 * - - 61 AS col2
----
3660

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7592
SELECT - CAST( - 34 AS SIGNED ) - + 5 + 90 DIV 29
----
32

skipif mysql # not compatible
query I rowsort label-7592
SELECT - CAST ( - 34 AS INTEGER ) - + 5 + 90 / 29
----
32

query I rowsort
SELECT - - 52 + - ( - - 12 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT ALL + NULLIF ( + - 26, COUNT( * ) )
----
-26

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL + NULLIF ( + - 26, COUNT ( * ) )
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-7595
SELECT COUNT( 96 ), 2 col1
----
1
2

skipif mysql # not compatible
query II rowsort label-7595
SELECT COUNT ( 96 ), 2 col1
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7596
SELECT + 76 DIV - 73 + + 11 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-7596
SELECT + 76 / - 73 + + 11 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT COUNT( * ) + + + 55
----
56

skipif mysql # not compatible
query I rowsort label-7597
SELECT COUNT ( * ) + + + 55
----
56

query I rowsort
SELECT ALL - + 80 + - - ( + ( 97 ) )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7599
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 97 AS col0
----
NULL

query I rowsort
SELECT ALL 51 + + 89 AS col2
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-7601
SELECT ALL + 8 DIV - ( 10 )
----
0

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL + 8 / - ( 10 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7602
SELECT CAST( + 76 AS SIGNED ) * - 91 - 56 AS col0
----
-6972

skipif mysql # not compatible
query I rowsort label-7602
SELECT CAST ( + 76 AS INTEGER ) * - 91 - 56 AS col0
----
-6972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7603
SELECT ALL 74 + CAST( - 84 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL 74 + CAST ( - 84 AS INTEGER )
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-7604
SELECT MIN( + 48 ) * - + 74 + + + 95, 15 AS col1
----
-3457
15

skipif mysql # not compatible
query II rowsort label-7604
SELECT MIN ( + 48 ) * - + 74 + + + 95, 15 AS col1
----
-3457
15

query I rowsort
SELECT ALL 67 * + 96
----
6432

query I rowsort
SELECT 13 * - + 31 AS col1
----
-403

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7607
SELECT CAST( NULL AS SIGNED ) - - - 5 * - 44 + + 92, - 68 AS col2
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-7607
SELECT CAST ( NULL AS INTEGER ) - - - 5 * - 44 + + 92, - 68 AS col2
----
NULL
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT 96 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT 96 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT DISTINCT ( COALESCE ( + 56, 62 ) ) - + COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT ( COALESCE ( + 56, 62 ) ) - + COUNT ( * ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7610
SELECT DISTINCT + 1 - - MAX( - + 5 ) AS col2, 39
----
-4
39

skipif mysql # not compatible
query II rowsort label-7610
SELECT DISTINCT + 1 - - MAX ( - + 5 ) AS col2, 39
----
-4
39

query I rowsort
SELECT 86 * - 22
----
-1892

query II rowsort
SELECT 66, 64 * - 23 AS col2
----
66
-1472

query I rowsort
SELECT - - NULLIF ( + + CASE - + 27 WHEN + - 45 THEN 40 / 65 WHEN 54 * 72 THEN NULL ELSE NULL END, 67 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7614
SELECT DISTINCT - 80 AS col1, COUNT( * ) * - 65 + - 62 * + + 68
----
-80
-4281

skipif mysql # not compatible
query II rowsort label-7614
SELECT DISTINCT - 80 AS col1, COUNT ( * ) * - 65 + - 62 * + + 68
----
-80
-4281

query II rowsort
SELECT ALL + 88 * + 85 * + 9 AS col2, - 55
----
67320
-55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7616
SELECT CAST( NULL AS DECIMAL ) + - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT CAST ( NULL AS REAL ) + - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7617
SELECT 15 + - 95 - + + ( - - 8 ) DIV + - 34 * 94, ( - - 33 ) AS col0
----
-80
33

skipif mysql # not compatible
query II rowsort label-7617
SELECT 15 + - 95 - + + ( - - 8 ) / + - 34 * 94, ( - - 33 ) AS col0
----
-80
33

query I rowsort
SELECT - 9 + + + 26
----
17

query II rowsort
SELECT 66, - 97 AS col0
----
66
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT 54 + 73 + - COUNT( * ) AS col0
----
126

skipif mysql # not compatible
query I rowsort label-7620
SELECT 54 + 73 + - COUNT ( * ) AS col0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-7621
SELECT ALL + 62 + - - COALESCE ( 40, - + 73 DIV - - 3 + - + 94 )
----
102

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL + 62 + - - COALESCE ( 40, - + 73 / - - 3 + - + 94 )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT + 49 + 45 * + 24 + - + COUNT( * )
----
1128

skipif mysql # not compatible
query I rowsort label-7622
SELECT + 49 + 45 * + 24 + - + COUNT ( * )
----
1128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7623
SELECT + 58 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7623
SELECT + 58 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT ALL + COUNT( * ) + - - 33 + - ( COUNT( * ) ) * + 89
----
-55

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL + COUNT ( * ) + - - 33 + - ( COUNT ( * ) ) * + 89
----
-55

query I rowsort
SELECT NULLIF ( - 97, - - 3 ) + - + 94
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT ALL - COUNT( * ) + + CASE 13 WHEN 98 THEN + 60 + + 57 ELSE + 20 END
----
19

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - COUNT ( * ) + + CASE 13 WHEN 98 THEN + 60 + + 57 ELSE + 20 END
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-7627
SELECT MAX( 0 ) + + - 19 AS col0, + 27 AS col0
----
-19
27

skipif mysql # not compatible
query II rowsort label-7627
SELECT MAX ( 0 ) + + - 19 AS col0, + 27 AS col0
----
-19
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7628
SELECT DISTINCT + 22 DIV + 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7628
SELECT DISTINCT + 22 / + 68 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT DISTINCT - 67 + + COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT - 67 + + COUNT ( * ) AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7630
SELECT ( + COUNT( * ) ) * 47 + + 1 - COUNT( DISTINCT - 46 ) * - 72 + - - COALESCE ( + CASE COUNT( * ) WHEN + COUNT( * ) THEN - 50 WHEN 86 * + CAST( + 12 * + 14 AS SIGNED ) THEN + COUNT( * ) + 17 ELSE - 91 END, - 35 - 19 ) - 34 DIV + 70 * COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-7630
SELECT ( + COUNT ( * ) ) * 47 + + 1 - COUNT ( DISTINCT - 46 ) * - 72 + - - COALESCE ( + CASE COUNT ( * ) WHEN + COUNT ( * ) THEN - 50 WHEN 86 * + CAST ( + 12 * + 14 AS INTEGER ) THEN + COUNT ( * ) + 17 ELSE - 91 END, - 35 - 19 ) - 34 / + 70 * COUNT ( * ) AS col0
----
70

query I rowsort
SELECT DISTINCT + 95 * - 38
----
-3610

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ( - - 93 ) * COALESCE ( + COUNT( * ), - - 13 ) * - 54 - 55 + NULLIF ( + - 36, COALESCE ( + MIN( 11 ), + 26 * + COUNT( * ) + 51 ) ) col0
----
-5113

skipif mysql # not compatible
query I rowsort label-7632
SELECT ( - - 93 ) * COALESCE ( + COUNT ( * ), - - 13 ) * - 54 - 55 + NULLIF ( + - 36, COALESCE ( + MIN ( 11 ), + 26 * + COUNT ( * ) + 51 ) ) col0
----
-5113

onlyif mysql # DIV for integer division: 
query I rowsort label-7633
SELECT 71 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-7633
SELECT 71 / + 95
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7634
SELECT COUNT( * ) * - - COALESCE ( MAX( DISTINCT 90 ), ( - 80 ) - 23 + + - COUNT( * ) DIV 98, COALESCE ( 30, + ( 73 ) ), SUM( - 62 ) * + 80 )
----
90

skipif mysql # not compatible
query I rowsort label-7634
SELECT COUNT ( * ) * - - COALESCE ( MAX ( DISTINCT 90 ), ( - 80 ) - 23 + + - COUNT ( * ) / 98, COALESCE ( 30, + ( 73 ) ), SUM ( - 62 ) * + 80 )
----
90

query I rowsort
SELECT ALL - ( + - 55 )
----
55

query I rowsort
SELECT 81 * 9 AS col1
----
729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7637
SELECT 50 DIV - + 55 + CASE - ( - + 21 ) WHEN - 78 THEN NULL WHEN + + 5 THEN - CAST( NULL AS SIGNED ) ELSE + COALESCE ( 71, - MIN( 11 ) + - COUNT( * ) * - 32 ) + + 97 END + + 58 * + ( 58 DIV MAX( 91 ) ) * 77 AS col1
----
168

skipif mysql # not compatible
query I rowsort label-7637
SELECT 50 / - + 55 + CASE - ( - + 21 ) WHEN - 78 THEN NULL WHEN + + 5 THEN - CAST ( NULL AS INTEGER ) ELSE + COALESCE ( 71, - MIN ( 11 ) + - COUNT ( * ) * - 32 ) + + 97 END + + 58 * + ( 58 / MAX ( 91 ) ) * 77 AS col1
----
168

query I rowsort
SELECT ALL - ( - 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT COUNT( * ) + - - 10
----
11

skipif mysql # not compatible
query I rowsort label-7639
SELECT COUNT ( * ) + - - 10
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7640
SELECT 96 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7640
SELECT 96 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7641
SELECT COUNT( * ) * - + 63 col1, 71 * CASE COUNT( * ) WHEN - COUNT( + 42 ) * + 63 + + + AVG ( DISTINCT + 28 ) / - 91 THEN 55 + + 32 WHEN + 41 - - 1 THEN NULL ELSE NULL END * ( + 6 ) AS col1
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-7641
SELECT COUNT ( * ) * - + 63 col1, 71 * CASE COUNT ( * ) WHEN - COUNT ( + 42 ) * + 63 + + + AVG ( DISTINCT + 28 ) / - 91 THEN 55 + + 32 WHEN + 41 - - 1 THEN NULL ELSE NULL END * ( + 6 ) AS col1
----
-63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT COUNT( * ) + 66 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-7642
SELECT COUNT ( * ) + 66 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT ALL + + 93 * COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL + + 93 * COUNT ( * )
----
93

query I rowsort
SELECT ALL - - 14 col0
----
14

query II rowsort
SELECT DISTINCT ( 8 ), + 59 AS col1
----
8
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7646
SELECT ALL - 77 + 43 DIV - 51
----
-77

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL - 77 + 43 / - 51
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT SUM( DISTINCT - 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-7647
SELECT SUM ( DISTINCT - 30 ) AS col1
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7648
SELECT + 33 DIV 33 col2
----
1

skipif mysql # not compatible
query I rowsort label-7648
SELECT + 33 / 33 col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7649
SELECT - CAST( NULL AS SIGNED ) * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7649
SELECT - CAST ( NULL AS INTEGER ) * 78
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7650
SELECT - CAST( - + ( + CASE 32 WHEN CAST( NULL AS SIGNED ) THEN + 64 + + + 63 WHEN - 88 THEN 26 * - COUNT( * ) END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT - CAST ( - + ( + CASE 32 WHEN CAST ( NULL AS INTEGER ) THEN + 64 + + + 63 WHEN - 88 THEN 26 * - COUNT ( * ) END ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT ALL CASE 20 WHEN + ( 66 ) + + 29 + + 90 * - 34 THEN - COUNT( ALL 15 ) * - COUNT( * ) WHEN 35 * 51 THEN + 61 * - 96 + - SUM( DISTINCT 50 ) WHEN + 42 + 48 THEN NULL ELSE 60 * - 67 END
----
-4020

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL CASE 20 WHEN + ( 66 ) + + 29 + + 90 * - 34 THEN - COUNT ( ALL 15 ) * - COUNT ( * ) WHEN 35 * 51 THEN + 61 * - 96 + - SUM ( DISTINCT 50 ) WHEN + 42 + 48 THEN NULL ELSE 60 * - 67 END
----
-4020

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT DISTINCT - 83 + + ( - 4 ) + COUNT( * ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT - 83 + + ( - 4 ) + COUNT ( * ) AS col0
----
-86

query I rowsort
SELECT ALL + - 92 + ( + + 49 )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7654
SELECT - NULLIF ( - + 36, CAST( 44 AS SIGNED ) * + COUNT( * ) )
----
36

skipif mysql # not compatible
query I rowsort label-7654
SELECT - NULLIF ( - + 36, CAST ( 44 AS INTEGER ) * + COUNT ( * ) )
----
36

query I rowsort
SELECT ALL + COALESCE ( + - 23, + 92, 45 ) AS col2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7656
SELECT - + 95 DIV + 90 + 4 + 82 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-7656
SELECT - + 95 / + 90 + 4 + 82 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT + COUNT( DISTINCT 99 ) + 43 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-7657
SELECT + COUNT ( DISTINCT 99 ) + 43 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT ALL MAX( ALL + 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL MAX ( ALL + 55 ) AS col0
----
55

query I rowsort
SELECT + 56 + - 5 col2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7660
SELECT + COALESCE ( + 58, - MIN( ALL + 63 ) DIV CASE - + 90 WHEN + - 71 THEN - 81 WHEN + 93 * 90 THEN NULL END - 47 ) + 49
----
107

skipif mysql # not compatible
query I rowsort label-7660
SELECT + COALESCE ( + 58, - MIN ( ALL + 63 ) / CASE - + 90 WHEN + - 71 THEN - 81 WHEN + 93 * 90 THEN NULL END - 47 ) + 49
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ALL 23 * - ( - 54 ) - + COUNT( * ) AS col1
----
1241

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL 23 * - ( - 54 ) - + COUNT ( * ) AS col1
----
1241

query I rowsort
SELECT ( + + 11 )
----
11

query I rowsort
SELECT DISTINCT + 73 * - 15 AS col2
----
-1095

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT - COUNT( + 5 ) * + CASE 81 WHEN 5 + 0 * + 1 THEN NULL WHEN + + 36 - - 98 * + - 5 THEN + COALESCE ( + 17, - 42 ) * 77 END * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7664
SELECT - COUNT ( + 5 ) * + CASE 81 WHEN 5 + 0 * + 1 THEN NULL WHEN + + 36 - - 98 * + - 5 THEN + COALESCE ( + 17, - 42 ) * 77 END * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7665
SELECT ALL + NULLIF ( - MIN( DISTINCT 88 ), 5 + 3 ) * + 12 + + NULLIF ( - + CAST( + 43 AS SIGNED ), - + MAX( ALL + 65 ) * ( ( COALESCE ( COUNT( * ), - 67, 53 * 80 ) ) ) ) AS col0
----
-1099

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL + NULLIF ( - MIN ( DISTINCT 88 ), 5 + 3 ) * + 12 + + NULLIF ( - + CAST ( + 43 AS INTEGER ), - + MAX ( ALL + 65 ) * ( ( COALESCE ( COUNT ( * ), - 67, 53 * 80 ) ) ) ) AS col0
----
-1099

query I rowsort
SELECT - 84 * 36 AS col1
----
-3024

query I rowsort
SELECT 56 * 78 + - + ( 49 ) col2
----
4319

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT NULLIF ( - 11, - COUNT( * ) * + - 41 * 40 + - + 45 + 52 / - - ( + 79 ) - + - 1 + 44 * - 71 ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-7668
SELECT NULLIF ( - 11, - COUNT ( * ) * + - 41 * 40 + - + 45 + 52 / - - ( + 79 ) - + - 1 + 44 * - 71 ) col0
----
-11

query I rowsort
SELECT NULLIF ( - - 18, 37 + 93 )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7670
SELECT DISTINCT + COALESCE ( - 97, - CASE COUNT( * ) WHEN - 33 THEN + 2 DIV 4 * - MIN( DISTINCT - 30 ) ELSE 67 * 51 END + + 14 ) * ( + COUNT( * ) * - 47 )
----
4559

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT + COALESCE ( - 97, - CASE COUNT ( * ) WHEN - 33 THEN + 2 / 4 * - MIN ( DISTINCT - 30 ) ELSE 67 * 51 END + + 14 ) * ( + COUNT ( * ) * - 47 )
----
4559

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7671
SELECT DISTINCT 3 DIV 19 + + CAST( + + 18 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT 3 / 19 + + CAST ( + + 18 AS INTEGER )
----
18

query I rowsort
SELECT ALL 45 * - 75 + 21
----
-3354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7673
SELECT ALL - + 97 * + + MAX( 71 ) * - ( - - 49 ) + 80 + - 49 * + CAST( NULL AS SIGNED ) - + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL - + 97 * + + MAX ( 71 ) * - ( - - 49 ) + 80 + - 49 * + CAST ( NULL AS INTEGER ) - + 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT COUNT( ALL + 30 )
----
1

skipif mysql # not compatible
query I rowsort label-7674
SELECT COUNT ( ALL + 30 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT ALL + 95 * + NULLIF ( + 32, COUNT( * ) ) + + 79 + - + COUNT( * )
----
3118

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL + 95 * + NULLIF ( + 32, COUNT ( * ) ) + + 79 + - + COUNT ( * )
----
3118

query I rowsort
SELECT - 57 + 41 AS col0
----
-16

query I rowsort
SELECT ALL + 54 + + + 71 AS col2
----
125

query I rowsort
SELECT + ( + + 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT DISTINCT + 43 * MAX( - - 58 )
----
2494

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT + 43 * MAX ( - - 58 )
----
2494

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT + SUM( ALL 97 )
----
97

skipif mysql # not compatible
query I rowsort label-7680
SELECT + SUM ( ALL 97 )
----
97

query I rowsort
SELECT ALL + - 73 * + 37 * - 68 AS col0
----
183668

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT ALL - MIN( + 9 ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - MIN ( + 9 ) col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT + + 24 + + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-7683
SELECT + + 24 + + COUNT ( * )
----
25

query I rowsort
SELECT ALL CASE + 65 WHEN 31 THEN NULL ELSE + + CASE + 75 WHEN 69 THEN - 36 ELSE NULL END END - 19 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - + 11 )
----
-11

query I rowsort
SELECT + 34 + + 78 + + + 46 * - 10
----
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT + 73 * + COUNT( * ) * + MAX( DISTINCT + 2 )
----
146

skipif mysql # not compatible
query I rowsort label-7687
SELECT + 73 * + COUNT ( * ) * + MAX ( DISTINCT + 2 )
----
146

query II rowsort
SELECT ALL 2, 14 AS col2
----
2
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT + 62 + + NULLIF ( - COUNT( * ), - + SUM( ALL + + 74 ) ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7689
SELECT + 62 + + NULLIF ( - COUNT ( * ), - + SUM ( ALL + + 74 ) ) AS col1
----
61

query II rowsort
SELECT 66, - 25 AS col0
----
66
-25

query I rowsort
SELECT + 50 * + 3
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7692
SELECT ALL 56 DIV + + 80 * + CASE - 67 WHEN COUNT( * ) THEN - COUNT( * ) DIV 7 * - 23 * + 51 * 63 ELSE + SUM( DISTINCT 53 ) * 98 END * + 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL 56 / + + 80 * + CASE - 67 WHEN COUNT ( * ) THEN - COUNT ( * ) / 7 * - 23 * + 51 * 63 ELSE + SUM ( DISTINCT 53 ) * 98 END * + 18 AS col1
----
0

query I rowsort
SELECT + ( 94 ) * 2
----
188

query I rowsort
SELECT ALL + 77 * - 16 * + 3
----
-3696

query II rowsort
SELECT + 20 * - - 75 AS col2, 11
----
1500
11

query I rowsort
SELECT + 79 + 71
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT ALL COUNT( - - 4 ) * 58
----
58

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL COUNT ( - - 4 ) * 58
----
58

query I rowsort
SELECT + ( - 83 ) * - 96
----
7968

query I rowsort
SELECT + ( + + 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT 78 * - COUNT( * ) + 47 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7700
SELECT 78 * - COUNT ( * ) + 47 AS col0
----
-31

query II rowsort
SELECT + 88, 75 + + 55 AS col2
----
88
130

onlyif mysql # aggregate syntax: 
query II rowsort label-7702
SELECT + 60 * + 59 AS col2, + COUNT( * )
----
3540
1

skipif mysql # not compatible
query II rowsort label-7702
SELECT + 60 * + 59 AS col2, + COUNT ( * )
----
3540
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT - CASE WHEN NOT 40 NOT BETWEEN - + 90 AND NULL THEN + COALESCE ( + + 83, 86 * + COUNT( + 89 ) ) ELSE NULL END * NULLIF ( ( + 97 ), 91 + - 29 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT - CASE WHEN NOT 40 NOT BETWEEN - + 90 AND NULL THEN + COALESCE ( + + 83, 86 * + COUNT ( + 89 ) ) ELSE NULL END * NULLIF ( ( + 97 ), 91 + - 29 ) col1
----
NULL

query I rowsort
SELECT DISTINCT + CASE + 42 WHEN - + 80 * + 22 THEN + + 90 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7705
SELECT CAST( + CASE MAX( + + 53 ) WHEN + 61 + + 11 + 94 + + + 30 * - 70 / + + ( + 42 ) * + 80 THEN 50 WHEN 89 THEN NULL WHEN 16 THEN NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7705
SELECT CAST ( + CASE MAX ( + + 53 ) WHEN + 61 + + 11 + 94 + + + 30 * - 70 / + + ( + 42 ) * + 80 THEN 50 WHEN 89 THEN NULL WHEN 16 THEN NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7706
SELECT ALL - 26 DIV 60 * + + 17 + 42 AS col1, 39 DIV + ( - + MAX( DISTINCT - - 81 ) ) * + 29 col0
----
42
0

skipif mysql # not compatible
query II rowsort label-7706
SELECT ALL - 26 / 60 * + + 17 + 42 AS col1, 39 / + ( - + MAX ( DISTINCT - - 81 ) ) * + 29 col0
----
42
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT DISTINCT + SUM( ALL + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT + SUM ( ALL + 0 )
----
0

query I rowsort
SELECT + 84 * ( 87 ) + 92 AS col2
----
7400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7709
SELECT DISTINCT - CAST( - + 74 AS SIGNED ) DIV - + NULLIF ( + - NULLIF ( - + MAX( + - 28 ), + 89 + - 48 * - - COALESCE ( + ( + 38 ), 77 DIV 16, + 35 - + 58 DIV + 34, ( - 28 ) - - COUNT( * ) * + 38 ) ), - ( COUNT( * ) ) * 36 + 33 * + 18 ) + 85 * - 24
----
-2038

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT - CAST ( - + 74 AS INTEGER ) / - + NULLIF ( + - NULLIF ( - + MAX ( + - 28 ), + 89 + - 48 * - - COALESCE ( + ( + 38 ), 77 / 16, + 35 - + 58 / + 34, ( - 28 ) - - COUNT ( * ) * + 38 ) ), - ( COUNT ( * ) ) * 36 + 33 * + 18 ) + 85 * - 24
----
-2038

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT - 97 * 13 + - 51 * MAX( ALL + 5 )
----
-1516

skipif mysql # not compatible
query I rowsort label-7710
SELECT - 97 * 13 + - 51 * MAX ( ALL + 5 )
----
-1516

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT ALL - + COUNT( * ) * - 8
----
8

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL - + COUNT ( * ) * - 8
----
8

query I rowsort
SELECT ( 33 ) col2
----
33

query I rowsort
SELECT + - 44 * + + 8 * + 52
----
-18304

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT ALL - - SUM( NULLIF ( - 11, - 12 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL - - SUM ( NULLIF ( - 11, - 12 ) )
----
-11

query I rowsort
SELECT 52 * + 9
----
468

query I rowsort
SELECT ALL - 83 + + + ( 7 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT ALL - 33 / 49 + CASE + + 48 WHEN + 98 * - ( 43 ) * - 44 + + 53 * 95 * + CASE 0 WHEN COUNT( * ) + - COALESCE ( 43, 28, MIN( ( + NULLIF ( - 0, + CASE - 60 WHEN 6 * NULLIF ( 10, - 69 ) THEN NULL WHEN 5 * 72 THEN NULL WHEN + 39 THEN + 68 END ) ) ) * 21 + 45 ) THEN 1 WHEN + 48 - + COUNT( * ) * 93 THEN NULL END THEN 35 ELSE NULL END / 80 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL - 33 / 49 + CASE + + 48 WHEN + 98 * - ( 43 ) * - 44 + + 53 * 95 * + CASE 0 WHEN COUNT ( * ) + - COALESCE ( 43, 28, MIN ( ( + NULLIF ( - 0, + CASE - 60 WHEN 6 * NULLIF ( 10, - 69 ) THEN NULL WHEN 5 * 72 THEN NULL WHEN + 39 THEN + 68 END ) ) ) * 21 + 45 ) THEN 1 WHEN + 48 - + COUNT ( * ) * 93 THEN NULL END THEN 35 ELSE NULL END / 80 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7718
SELECT 62 DIV - SUM( ALL + 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7718
SELECT 62 / - SUM ( ALL + 79 ) AS col0
----
0

query I rowsort
SELECT ALL - - 9 - - - 0 AS col1
----
9

query I rowsort
SELECT 11 * 14 * - ( ( - 40 ) ) * - 24 + + ( - - ( 53 ) ) + + - 76 AS col1
----
-147863

query I rowsort
SELECT - + ( - - 79 )
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-7722
SELECT - + 88 AS col1, + MAX( + 43 ) * 41
----
-88
1763

skipif mysql # not compatible
query II rowsort label-7722
SELECT - + 88 AS col1, + MAX ( + 43 ) * 41
----
-88
1763

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT ALL COUNT( * ) - 75 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL COUNT ( * ) - 75 AS col2
----
-74

query I rowsort
SELECT DISTINCT 3 * + + 70
----
210

query I rowsort
SELECT ALL - 91 * - + 16
----
1456

query I rowsort
SELECT 97 - 85 AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7727
SELECT DISTINCT - 73 * - NULLIF ( + COALESCE ( - + 9, - CAST( NULL AS SIGNED ) * + ( + 54 ) + - 64 * + - 50 + + 22 + COUNT( * ) * + - 96 ), 86 )
----
-657

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT - 73 * - NULLIF ( + COALESCE ( - + 9, - CAST ( NULL AS INTEGER ) * + ( + 54 ) + - 64 * + - 50 + + 22 + COUNT ( * ) * + - 96 ), 86 )
----
-657

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT ALL 37 + - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL 37 + - COUNT ( * )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7729
SELECT 6 + - 78 * - - CAST( NULL AS SIGNED ) + + + 75 + - 35 + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-7729
SELECT 6 + - 78 * - - CAST ( NULL AS INTEGER ) + + + 75 + - 35 + 68
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7730
SELECT 12 DIV + - COALESCE ( 67, - ( + 26 ) * + 6 DIV - + 60 + ( 68 ) * - - 75, - MAX( ALL 43 ) * 37 )
----
0

skipif mysql # not compatible
query I rowsort label-7730
SELECT 12 / + - COALESCE ( 67, - ( + 26 ) * + 6 / - + 60 + ( 68 ) * - - 75, - MAX ( ALL 43 ) * 37 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT ALL - COUNT( * ) + + 16 + - 91 + - 12 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL - COUNT ( * ) + + 16 + - 91 + - 12 AS col0
----
-88

query I rowsort
SELECT DISTINCT AVG ( DISTINCT + 64 ) * + CASE 1 WHEN + - 88 THEN NULL WHEN 56 THEN 48 * - 54 * 2 / + 32 END
----
NULL

query I rowsort
SELECT ALL 1 + - - 26 + - - 34 AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7734
SELECT COUNT( * ) DIV 66 AS col1, 25
----
0
25

skipif mysql # not compatible
query II rowsort label-7734
SELECT COUNT ( * ) / 66 AS col1, 25
----
0
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT DISTINCT COUNT( * ) + + 37 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT COUNT ( * ) + + 37 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT 47 * + MIN( + ( 58 ) )
----
2726

skipif mysql # not compatible
query I rowsort label-7736
SELECT 47 * + MIN ( + ( 58 ) )
----
2726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7737
SELECT NULLIF ( + + 9, - - CASE - 26 WHEN + 99 THEN + COUNT( * ) ELSE 95 * - 91 * + CAST( + 23 AS SIGNED ) END * ( - - 3 ) * + 98 )
----
9

skipif mysql # not compatible
query I rowsort label-7737
SELECT NULLIF ( + + 9, - - CASE - 26 WHEN + 99 THEN + COUNT ( * ) ELSE 95 * - 91 * + CAST ( + 23 AS INTEGER ) END * ( - - 3 ) * + 98 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7738
SELECT - 53 DIV + 83 - - 21
----
21

skipif mysql # not compatible
query I rowsort label-7738
SELECT - 53 / + 83 - - 21
----
21

query I rowsort
SELECT + 26 * + - 96 * - 91
----
227136

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT DISTINCT 65 + COUNT( * ) * + COUNT( * ) + - 24 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT 65 + COUNT ( * ) * + COUNT ( * ) + - 24 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT ALL NULLIF ( 34, 32 + 63 ) + - CASE + 5 WHEN - NULLIF ( + - CASE - + 86 WHEN + + 7 THEN + - 33 + 58 + + 91 / 64 END, 70 + - SUM( ALL + 79 + 87 * 22 ) ) THEN 31 WHEN + 62 THEN NULL ELSE + 31 END
----
3

skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL NULLIF ( 34, 32 + 63 ) + - CASE + 5 WHEN - NULLIF ( + - CASE - + 86 WHEN + + 7 THEN + - 33 + 58 + + 91 / 64 END, 70 + - SUM ( ALL + 79 + 87 * 22 ) ) THEN 31 WHEN + 62 THEN NULL ELSE + 31 END
----
3

query I rowsort
SELECT ALL - + 83 col1
----
-83

query I rowsort
SELECT DISTINCT + 84 - + 2 col2
----
82

query I rowsort
SELECT DISTINCT - 4 - - 65 AS col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7745
SELECT 46 + - COALESCE ( - 49, COUNT( * ) + + 17 + COUNT( * ) * - + 26 ) DIV + + 79 * + - ( - COUNT( - 96 ) ) + + - 93
----
-47

skipif mysql # not compatible
query I rowsort label-7745
SELECT 46 + - COALESCE ( - 49, COUNT ( * ) + + 17 + COUNT ( * ) * - + 26 ) / + + 79 * + - ( - COUNT ( - 96 ) ) + + - 93
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7746
SELECT CAST( - + 19 AS SIGNED ) + + CAST( NULL AS SIGNED ) * NULLIF ( 71, - + 9 ) / + 76 AS col1, + SUM( + + 61 )
----
NULL
61

skipif mysql # not compatible
query II rowsort label-7746
SELECT CAST ( - + 19 AS INTEGER ) + + CAST ( NULL AS INTEGER ) * NULLIF ( 71, - + 9 ) / + 76 AS col1, + SUM ( + + 61 )
----
NULL
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT - 89 * + 72 - - + 15 + - + COUNT( + ( + 56 ) ) + CASE - 18 WHEN 14 THEN + + CASE - 63 WHEN COUNT( * ) THEN + NULLIF ( - 34, SUM( 92 ) + 55 ) + - 53 WHEN + 33 * + COUNT( * ) THEN NULL WHEN AVG ( DISTINCT 2 ) THEN 19 - + 56 END END / + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT - 89 * + 72 - - + 15 + - + COUNT ( + ( + 56 ) ) + CASE - 18 WHEN 14 THEN + + CASE - 63 WHEN COUNT ( * ) THEN + NULLIF ( - 34, SUM ( 92 ) + 55 ) + - 53 WHEN + 33 * + COUNT ( * ) THEN NULL WHEN AVG ( DISTINCT 2 ) THEN 19 - + 56 END END / + 2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7748
SELECT ALL - COUNT( * ) * + 34 + - + COALESCE ( - 39, + + CAST( 5 AS SIGNED ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL - COUNT ( * ) * + 34 + - + COALESCE ( - 39, + + CAST ( 5 AS INTEGER ) ) AS col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7749
SELECT DISTINCT 34 * + 60 AS col0, MAX( + ( - 18 ) ) DIV + COALESCE ( 98, - 84, + - 0 DIV + + 89 ) AS col0
----
2040
0

skipif mysql # not compatible
query II rowsort label-7749
SELECT DISTINCT 34 * + 60 AS col0, MAX ( + ( - 18 ) ) / + COALESCE ( 98, - 84, + - 0 / + + 89 ) AS col0
----
2040
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7750
SELECT 90 * CAST( 38 AS SIGNED ) * - 50 col0
----
-171000

skipif mysql # not compatible
query I rowsort label-7750
SELECT 90 * CAST ( 38 AS INTEGER ) * - 50 col0
----
-171000

query I rowsort
SELECT ALL 15 * - - 0 * + ( - 51 ) * 94
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7752
SELECT 97 + - MAX( - 34 ) AS col1, + COUNT( * )
----
131
1

skipif mysql # not compatible
query II rowsort label-7752
SELECT 97 + - MAX ( - 34 ) AS col1, + COUNT ( * )
----
131
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7753
SELECT ALL COUNT( * ) col0, 65 AS col1
----
1
65

skipif mysql # not compatible
query II rowsort label-7753
SELECT ALL COUNT ( * ) col0, 65 AS col1
----
1
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT ( - 9 ) * + 64 * + MAX( DISTINCT - + 55 )
----
31680

skipif mysql # not compatible
query I rowsort label-7754
SELECT ( - 9 ) * + 64 * + MAX ( DISTINCT - + 55 )
----
31680

onlyif mysql # DIV for integer division: 
query I rowsort label-7755
SELECT 22 DIV + + 73
----
0

skipif mysql # not compatible
query I rowsort label-7755
SELECT 22 / + + 73
----
0

query II rowsort
SELECT 21 AS col1, 41
----
21
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT DISTINCT + COUNT( * ) + + 85
----
86

skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT + COUNT ( * ) + + 85
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7758
SELECT ALL - 60 + + 74 + + 32 DIV - 20
----
13

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL - 60 + + 74 + + 32 / - 20
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT COUNT( * ) + + 87
----
88

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT COUNT ( * ) + + 87
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7760
SELECT ALL 84 + + CAST( NULL AS SIGNED ) + - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL 84 + + CAST ( NULL AS INTEGER ) + - 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT 41 * + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-7761
SELECT 41 * + COUNT ( * )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7762
SELECT ALL - CAST( NULL AS SIGNED ) * - + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 96 AS col2
----
NULL

query I rowsort
SELECT DISTINCT CASE - 21 WHEN + AVG ( + 68 ) THEN NULL ELSE + 29 END col0
----
29

query II rowsort
SELECT 58 AS col2, 22
----
58
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7765
SELECT - - 47 DIV + 38 + - ( ( - COUNT( + 35 ) ) ) * 97 + ( - COUNT( * ) ) - + 59 - - SUM( - + 61 ) - - 96 * 66
----
6313

skipif mysql # not compatible
query I rowsort label-7765
SELECT - - 47 / + 38 + - ( ( - COUNT ( + 35 ) ) ) * 97 + ( - COUNT ( * ) ) - + 59 - - SUM ( - + 61 ) - - 96 * 66
----
6313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7766
SELECT + + COUNT( * ) * - 30 / - - 51 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7766
SELECT + + COUNT ( * ) * - 30 / - - 51 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7767
SELECT ALL - + CASE - 68 WHEN + + ( + - 0 ) THEN - 17 WHEN - 88 THEN NULL WHEN + COUNT( * ) THEN + 5 + - 57 ELSE NULL END * COUNT( * ) - - 88 - + 42 + + + ( + ( + ( 52 ) ) ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL - + CASE - 68 WHEN + + ( + - 0 ) THEN - 17 WHEN - 88 THEN NULL WHEN + COUNT ( * ) THEN + 5 + - 57 ELSE NULL END * COUNT ( * ) - - 88 - + 42 + + + ( + ( + ( 52 ) ) ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7768
SELECT + 37 * + CAST( + 56 AS SIGNED ) + - + COUNT( * ) AS col1
----
2071

skipif mysql # not compatible
query I rowsort label-7768
SELECT + 37 * + CAST ( + 56 AS INTEGER ) + - + COUNT ( * ) AS col1
----
2071

query II rowsort
SELECT ALL - 66 * ( + 73 ), + 92 AS col2
----
-4818
92

onlyif mysql # DIV for integer division: 
query II rowsort label-7770
SELECT DISTINCT - 32 * ( - - 85 ) - - - 13 + - 57 DIV + 17, - 18 AS col2
----
-2736
-18

skipif mysql # not compatible
query II rowsort label-7770
SELECT DISTINCT - 32 * ( - - 85 ) - - - 13 + - 57 / + 17, - 18 AS col2
----
-2736
-18

query II rowsort
SELECT ALL + 12, - 97 * - + 46 col0
----
12
4462

query I rowsort
SELECT ALL + 22 * + + NULLIF ( + 57, - - 91 )
----
1254

query I rowsort
SELECT - - 17 * - 95
----
-1615

query I rowsort
SELECT ALL + 31 * - 91 * 2 AS col1
----
-5642

query I rowsort
SELECT DISTINCT + ( + 26 ) col1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7776
SELECT + - COUNT( + 51 ) DIV - - 82, 51 col2
----
0
51

skipif mysql # not compatible
query II rowsort label-7776
SELECT + - COUNT ( + 51 ) / - - 82, 51 col2
----
0
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7777
SELECT + - 62 DIV + MIN( - 45 )
----
1

skipif mysql # not compatible
query I rowsort label-7777
SELECT + - 62 / + MIN ( - 45 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7778
SELECT - COUNT( * ) + + - 47 + - - 37 + 80 + + 45 - - 79 * + CAST( NULL AS SIGNED ) * COUNT( * ) - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT - COUNT ( * ) + + - 47 + - - 37 + 80 + + 45 - - 79 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) - 37
----
NULL

query II rowsort
SELECT DISTINCT + 12 AS col0, + 42
----
12
42

query II rowsort
SELECT ALL + - 83 col0, 61 AS col2
----
-83
61

query I rowsort
SELECT ALL + + 6 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT - MIN( DISTINCT 58 ) col0
----
-58

skipif mysql # not compatible
query I rowsort label-7782
SELECT - MIN ( DISTINCT 58 ) col0
----
-58

query I rowsort
SELECT ALL + ( - - 17 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7784
SELECT ALL + 18 * - - ( + COUNT( * ) ) * 32 AS col1, COUNT( * ) * + 97 AS col1
----
576
97

skipif mysql # not compatible
query II rowsort label-7784
SELECT ALL + 18 * - - ( + COUNT ( * ) ) * 32 AS col1, COUNT ( * ) * + 97 AS col1
----
576
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT - CASE - - COUNT( * ) WHEN + ( + 55 ) THEN 72 * 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7785
SELECT - CASE - - COUNT ( * ) WHEN + ( + 55 ) THEN 72 * 44 END
----
NULL

query II rowsort
SELECT - ( - + 5 ) AS col1, - 98
----
5
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-7787
SELECT - ( 63 ), CASE + 85 WHEN - COUNT( 27 ) THEN + - 76 + + 78 END * + 42 + ( - + 26 ) * + - 44 AS col2
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-7787
SELECT - ( 63 ), CASE + 85 WHEN - COUNT ( 27 ) THEN + - 76 + + 78 END * + 42 + ( - + 26 ) * + - 44 AS col2
----
-63
NULL

query I rowsort
SELECT DISTINCT 67 + + 74 * + + 5 AS col0
----
437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7789
SELECT DISTINCT + CASE + CASE 13 WHEN + COALESCE ( + - CAST( + + 6 AS SIGNED ), 51, 56 * 34 ) THEN + 58 WHEN + + 65 THEN NULL ELSE + 76 END WHEN + - 96 * + + 75 THEN ( NULLIF ( + 48, 82 / 67 + ( 67 ) ) ) WHEN 24 + + NULLIF ( + ( SUM( ALL + 23 ) ), + AVG ( DISTINCT - 70 ) ) / - 4 THEN + COUNT( * ) WHEN + NULLIF ( 35, 7 * - 68 ) / + 50 THEN NULL ELSE 19 END + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT + CASE + CASE 13 WHEN + COALESCE ( + - CAST ( + + 6 AS INTEGER ), 51, 56 * 34 ) THEN + 58 WHEN + + 65 THEN NULL ELSE + 76 END WHEN + - 96 * + + 75 THEN ( NULLIF ( + 48, 82 / 67 + ( 67 ) ) ) WHEN 24 + + NULLIF ( + ( SUM ( ALL + 23 ) ), + AVG ( DISTINCT - 70 ) ) / - 4 THEN + COUNT ( * ) WHEN + NULLIF ( 35, 7 * - 68 ) / + 50 THEN NULL ELSE 19 END + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - 29 + - 76
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT - MAX( DISTINCT 46 ) * + 24 col0
----
-1104

skipif mysql # not compatible
query I rowsort label-7791
SELECT - MAX ( DISTINCT 46 ) * + 24 col0
----
-1104

query I rowsort
SELECT - ( 78 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT + 60 + COUNT( * ) + - 90 * + - 23 + 59 AS col1
----
2190

skipif mysql # not compatible
query I rowsort label-7793
SELECT + 60 + COUNT ( * ) + - 90 * + - 23 + 59 AS col1
----
2190

onlyif mysql # aggregate syntax: 
query II rowsort label-7794
SELECT - MAX( - - 94 ) + - 73 * 36, - 59 AS col2
----
-2722
-59

skipif mysql # not compatible
query II rowsort label-7794
SELECT - MAX ( - - 94 ) + - 73 * 36, - 59 AS col2
----
-2722
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7795
SELECT - 30 + - COUNT( DISTINCT - 31 ) - + AVG ( DISTINCT 4 ) + + + 83 + CAST( NULL AS SIGNED ) - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7795
SELECT - 30 + - COUNT ( DISTINCT - 31 ) - + AVG ( DISTINCT 4 ) + + + 83 + CAST ( NULL AS INTEGER ) - 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT - COUNT( - 1 ) - + 50
----
-51

skipif mysql # not compatible
query I rowsort label-7796
SELECT - COUNT ( - 1 ) - + 50
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-7797
SELECT ALL + - COUNT( * ) * + - 22 - + 88 * COUNT( * ) * + 88, - 4 AS col0
----
-7722
-4

skipif mysql # not compatible
query II rowsort label-7797
SELECT ALL + - COUNT ( * ) * + - 22 - + 88 * COUNT ( * ) * + 88, - 4 AS col0
----
-7722
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7798
SELECT - 12 + - ( - COUNT( - + ( - 81 ) ) ) col0, + 48
----
-11
48

skipif mysql # not compatible
query II rowsort label-7798
SELECT - 12 + - ( - COUNT ( - + ( - 81 ) ) ) col0, + 48
----
-11
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7799
SELECT ALL + 56 DIV + - 58 + - 61 - - 92
----
31

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL + 56 / + - 58 + - 61 - - 92
----
31

query I rowsort
SELECT ALL + 26 * + 77 AS col1
----
2002

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7801
SELECT + COALESCE ( + + 32, COALESCE ( - COUNT( * ), + 7, + + 62 ) + - COUNT( * ) ) DIV 76 + - 23 AS col1, + COUNT( DISTINCT + 35 ) - 81 - - 42 - + NULLIF ( + NULLIF ( 43, 63 + ( - 1 ) ), + 37 + 32 ) + 56 AS col2
----
-23
-25

skipif mysql # not compatible
query II rowsort label-7801
SELECT + COALESCE ( + + 32, COALESCE ( - COUNT ( * ), + 7, + + 62 ) + - COUNT ( * ) ) / 76 + - 23 AS col1, + COUNT ( DISTINCT + 35 ) - 81 - - 42 - + NULLIF ( + NULLIF ( 43, 63 + ( - 1 ) ), + 37 + 32 ) + 56 AS col2
----
-23
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT + 6 / - + MIN( - CASE - + 24 WHEN + 97 * 82 THEN - 17 WHEN - 25 THEN NULL END ) + + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7802
SELECT + 6 / - + MIN ( - CASE - + 24 WHEN + 97 * 82 THEN - 17 WHEN - 25 THEN NULL END ) + + 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT ALL AVG ( 46 ) / + - CASE 47 WHEN 43 * - 12 + - 59 THEN + + 7 * - 21 + 9 - 69 * 77 * + 63 * ( 13 ) + + COALESCE ( - ( - ( - COALESCE ( 87, - 83 + + 12 ) ) ), COUNT( * ), NULLIF ( + 52, 22 + + 30 ) - 15 / + 71 ) * NULLIF ( COUNT( * ) + 6, 25 / COUNT( * ) ) ELSE NULL END + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL AVG ( 46 ) / + - CASE 47 WHEN 43 * - 12 + - 59 THEN + + 7 * - 21 + 9 - 69 * 77 * + 63 * ( 13 ) + + COALESCE ( - ( - ( - COALESCE ( 87, - 83 + + 12 ) ) ), COUNT ( * ), NULLIF ( + 52, 22 + + 30 ) - 15 / + 71 ) * NULLIF ( COUNT ( * ) + 6, 25 / COUNT ( * ) ) ELSE NULL END + 9 AS col2
----
NULL

query II rowsort
SELECT - 37 * + 31, + 75 AS col2
----
-1147
75

query I rowsort
SELECT DISTINCT + + 16 col2
----
16

query I rowsort
SELECT ALL - - 11 * - + 3 + + 29 * + 85 AS col1
----
2432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7807
SELECT ALL + + 47 DIV 64 DIV NULLIF ( + + NULLIF ( + 55, - 60 * 83 ), - 35 ) * + 29 * + CAST( 14 AS SIGNED ) * + 73 DIV - 81 * COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL + + 47 / 64 / NULLIF ( + + NULLIF ( + 55, - 60 * 83 ), - 35 ) * + 29 * + CAST ( 14 AS INTEGER ) * + 73 / - 81 * COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - - 69 * - 14 AS col0
----
-966

onlyif mysql # aggregate syntax: 
query II rowsort label-7809
SELECT + 27 * + + COUNT( * ) + + 92 AS col0, 92 + + 84
----
119
176

skipif mysql # not compatible
query II rowsort label-7809
SELECT + 27 * + + COUNT ( * ) + + 92 AS col0, 92 + + 84
----
119
176

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT + 56 DIV + 32
----
1

skipif mysql # not compatible
query I rowsort label-7810
SELECT + 56 / + 32
----
1

query I rowsort
SELECT + 74 - 8 col2
----
66

query I rowsort
SELECT CASE 47 WHEN - 90 * 6 THEN NULL WHEN + 50 * 57 + 72 THEN - - 1 * + - 28 END
----
NULL

query I rowsort
SELECT + 44 + - - 35 * + 47
----
1689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7814
SELECT ALL COUNT( * ) AS col1, CAST( ( + CAST( NULL AS SIGNED ) ) AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7814
SELECT ALL COUNT ( * ) AS col1, CAST ( ( + CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7815
SELECT - CAST( + - 54 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-7815
SELECT - CAST ( + - 54 AS INTEGER )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7816
SELECT ALL - CAST( - 38 AS SIGNED ) * 18 + 75 + + 18 + - + 83 + + COUNT( * ) AS col0
----
695

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL - CAST ( - 38 AS INTEGER ) * 18 + 75 + + 18 + - + 83 + + COUNT ( * ) AS col0
----
695

query I rowsort
SELECT DISTINCT - 34 * + - 24 + - 79
----
737

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT MAX( ( - 49 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-7818
SELECT MAX ( ( - 49 ) )
----
-49

query I rowsort
SELECT ( + 72 ) * + COALESCE ( - 36, + 88 * 41 * - 6 ) AS col1
----
-2592

query I rowsort
SELECT 56 * - + 90 AS col0
----
-5040

onlyif mysql # aggregate syntax: 
query II rowsort label-7821
SELECT - 39 AS col1, NULLIF ( + 34, - ( - 17 ) + COUNT( * ) * 85 ) + - 84 AS col0
----
-39
-50

skipif mysql # not compatible
query II rowsort label-7821
SELECT - 39 AS col1, NULLIF ( + 34, - ( - 17 ) + COUNT ( * ) * 85 ) + - 84 AS col0
----
-39
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-7822
SELECT ALL 48 AS col1, + 67 + - + CASE 90 WHEN + + 60 + ( - - 18 ) THEN - - COUNT( * ) WHEN 26 THEN NULL END + - - 30 * - + ( COUNT( * ) ) AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-7822
SELECT ALL 48 AS col1, + 67 + - + CASE 90 WHEN + + 60 + ( - - 18 ) THEN - - COUNT ( * ) WHEN 26 THEN NULL END + - - 30 * - + ( COUNT ( * ) ) AS col1
----
48
NULL

query II rowsort
SELECT ALL - 62, 53 + - ( + 62 ) * + 69 AS col1
----
-62
-4225

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT DISTINCT - CASE WHEN NOT COUNT( DISTINCT 98 ) IS NOT NULL THEN 69 WHEN 92 / + COUNT( * ) <= + - 2 THEN - - 94 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT - CASE WHEN NOT COUNT ( DISTINCT 98 ) IS NOT NULL THEN 69 WHEN 92 / + COUNT ( * ) <= + - 2 THEN - - 94 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT + MIN( - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-7825
SELECT + MIN ( - 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT NULLIF ( + + 64, - COUNT( 12 ) ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-7826
SELECT NULLIF ( + + 64, - COUNT ( 12 ) ) AS col2
----
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7827
SELECT ALL - - 0 / + ( + + ( CAST( NULL AS DECIMAL ) ) ) * + 85 + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL - - 0 / + ( + + ( CAST ( NULL AS REAL ) ) ) * + 85 + 88
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7828
SELECT - ( - + 88 ) DIV - ( + - 23 )
----
3

skipif mysql # not compatible
query I rowsort label-7828
SELECT - ( - + 88 ) / - ( + - 23 )
----
3

query I rowsort
SELECT 84 * - - 76 + + 58 + 63 AS col0
----
6505

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7830
SELECT + 4 DIV 52 * - - 68 * + 54 * 77 - 66 - + + 79 - ( + + COUNT( * ) ) * - 94 - 60 + - - 52 + - 93 col2, + COUNT( * ) + + + ( + 2 )
----
-152
3

skipif mysql # not compatible
query II rowsort label-7830
SELECT + 4 / 52 * - - 68 * + 54 * 77 - 66 - + + 79 - ( + + COUNT ( * ) ) * - 94 - 60 + - - 52 + - 93 col2, + COUNT ( * ) + + + ( + 2 )
----
-152
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT - 69 * + COUNT( * ) + 37 + + 2 col1
----
-30

skipif mysql # not compatible
query I rowsort label-7831
SELECT - 69 * + COUNT ( * ) + 37 + + 2 col1
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7832
SELECT + - 37 DIV + - 63 + - - 78
----
78

skipif mysql # not compatible
query I rowsort label-7832
SELECT + - 37 / + - 63 + - - 78
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT ALL - + ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL - + ( + COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7834
SELECT - CAST( NULL AS SIGNED ) + + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7834
SELECT - CAST ( NULL AS INTEGER ) + + - 31
----
NULL

query I rowsort
SELECT DISTINCT + 21 + + + 94 col1
----
115

onlyif mysql # DIV for integer division: 
query II rowsort label-7836
SELECT - + 36 DIV 78 + + + 2, - 91 + - 5 AS col1
----
2
-96

skipif mysql # not compatible
query II rowsort label-7836
SELECT - + 36 / 78 + + + 2, - 91 + - 5 AS col1
----
2
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7837
SELECT ALL + - SUM( + + 19 ) + NULLIF ( - 53, + CAST( 22 AS SIGNED ) ) * + - 3 AS col2
----
140

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL + - SUM ( + + 19 ) + NULLIF ( - 53, + CAST ( 22 AS INTEGER ) ) * + - 3 AS col2
----
140

query I rowsort
SELECT + 10 * + - COALESCE ( NULLIF ( + 52, - ( 98 ) ), 87 * - 49 ) * - + NULLIF ( - 68, 93 )
----
-35360

query II rowsort
SELECT 21 col0, ( + 2 )
----
21
2

query I rowsort
SELECT 6 * 7
----
42

query I rowsort
SELECT 41 + - + 40 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7842
SELECT ALL - COUNT( * ), 91 AS col2
----
-1
91

skipif mysql # not compatible
query II rowsort label-7842
SELECT ALL - COUNT ( * ), 91 AS col2
----
-1
91

query II rowsort
SELECT 37 AS col0, - 51
----
37
-51

query I rowsort
SELECT ALL NULLIF ( - 92, + + 79 ) + 10
----
-82

query I rowsort
SELECT DISTINCT - CASE + - 36 WHEN + 67 + + 66 / + - 51 THEN 29 * 91 * - + 7 - 31 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7846
SELECT ALL + CAST( NULL AS SIGNED ) - + + 93 * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL + CAST ( NULL AS INTEGER ) - + + 93 * + 20
----
NULL

query I rowsort
SELECT 21 - + + 53
----
-32

query I rowsort
SELECT 57 * + 45 AS col2
----
2565

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT COUNT( * ) - - 10 * 24 AS col1
----
241

skipif mysql # not compatible
query I rowsort label-7849
SELECT COUNT ( * ) - - 10 * 24 AS col1
----
241

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT ( COALESCE ( - 56, + + 15 ) ) * - COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7850
SELECT ( COALESCE ( - 56, + + 15 ) ) * - COUNT ( * ) AS col1
----
56

query I rowsort
SELECT ALL 66 * + 40 AS col1
----
2640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7852
SELECT MAX( DISTINCT ( 3 ) ) DIV COUNT( * ) * + 11
----
33

skipif mysql # not compatible
query I rowsort label-7852
SELECT MAX ( DISTINCT ( 3 ) ) / COUNT ( * ) * + 11
----
33

query II rowsort
SELECT ALL 95 AS col0, 30
----
95
30

query II rowsort
SELECT ALL 46 AS col2, - 84 * - 82 AS col1
----
46
6888

onlyif mysql # aggregate syntax: 
query II rowsort label-7855
SELECT DISTINCT 47, + 92 * - 69 - - + COUNT( ALL - 99 ) + 76 col2
----
47
-6271

skipif mysql # not compatible
query II rowsort label-7855
SELECT DISTINCT 47, + 92 * - 69 - - + COUNT ( ALL - 99 ) + 76 col2
----
47
-6271

onlyif mysql # aggregate syntax: 
query II rowsort label-7856
SELECT COUNT( * ) * - 75 AS col2, 26
----
-75
26

skipif mysql # not compatible
query II rowsort label-7856
SELECT COUNT ( * ) * - 75 AS col2, 26
----
-75
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT COUNT( + 73 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7857
SELECT COUNT ( + 73 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7858
SELECT ALL + 43 * CAST( NULL AS SIGNED ) + + 45 * 98 AS col2, 91 AS col0
----
NULL
91

skipif mysql # not compatible
query II rowsort label-7858
SELECT ALL + 43 * CAST ( NULL AS INTEGER ) + + 45 * 98 AS col2, 91 AS col0
----
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT + 92 * 17 * + COUNT( * ) * + 32 * COUNT( * )
----
50048

skipif mysql # not compatible
query I rowsort label-7859
SELECT + 92 * 17 * + COUNT ( * ) * + 32 * COUNT ( * )
----
50048

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT 46 + CASE + + ( 17 ) WHEN 91 * - 44 THEN - 40 WHEN 33 + - - 42 THEN NULL END + - 30 * + - COUNT( * ) * + - 89 / 29
----
NULL

skipif mysql # not compatible
query I rowsort label-7860
SELECT 46 + CASE + + ( 17 ) WHEN 91 * - 44 THEN - 40 WHEN 33 + - - 42 THEN NULL END + - 30 * + - COUNT ( * ) * + - 89 / 29
----
NULL

query II rowsort
SELECT ALL 37 AS col2, 5 - - 87 AS col0
----
37
92

query I rowsort
SELECT DISTINCT 71 * 65 AS col2
----
4615

query I rowsort
SELECT DISTINCT + + 35 + - + 89 * 45 AS col1
----
-3970

query I rowsort
SELECT ALL + COALESCE ( - + 2, ( + 50 ) + + 15 ) * - 27 + + 96 + + + 30
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT DISTINCT + 75 * 34 + - 34 + + 34 + COUNT( * ) AS col0
----
2551

skipif mysql # not compatible
query I rowsort label-7865
SELECT DISTINCT + 75 * 34 + - 34 + + 34 + COUNT ( * ) AS col0
----
2551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7866
SELECT 14 AS col0, + ( SUM( CAST( NULL AS SIGNED ) ) ) col1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-7866
SELECT 14 AS col0, + ( SUM ( CAST ( NULL AS INTEGER ) ) ) col1
----
14
NULL

query I rowsort
SELECT ALL + - 58 * ( + 85 ) - + 26 + + 89 + + 20 + 81 * - 14 AS col1
----
-5981

query II rowsort
SELECT 51 AS col2, 47 AS col0
----
51
47

query I rowsort
SELECT DISTINCT 43 * 4 * - + 8 + + - 87
----
-1463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7870
SELECT 46 / - CAST( NULL AS SIGNED ) + 4 * - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT 46 / - CAST ( NULL AS INTEGER ) + 4 * - - COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT + 83, + 41 * + - 80 col0
----
83
-3280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7872
SELECT + + ( 96 ) AS col2, - 26 / CAST( NULL AS SIGNED ) + + - 70 * + 95 * - 79 AS col2
----
96
NULL

skipif mysql # not compatible
query II rowsort label-7872
SELECT + + ( 96 ) AS col2, - 26 / CAST ( NULL AS INTEGER ) + + - 70 * + 95 * - 79 AS col2
----
96
NULL

query I rowsort
SELECT 95 * 42 - 42 * 8
----
3654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7874
SELECT COUNT( * ) * + + NULLIF ( - + 64, SUM( 73 ) + - 96 * 24 + 33 * + 31 ) * - 30 + - - 94 + - - COALESCE ( CAST( 91 AS SIGNED ), - ( + 61 ), MIN( + ( 74 ) ) ) + 9 * - NULLIF ( 62 * COUNT( * ) + 32 * + 17, + 80 / - 30 ) + + COALESCE ( MAX( ALL 50 ), 69 * + 8, 91 ) AS col2
----
-3299

skipif mysql # not compatible
query I rowsort label-7874
SELECT COUNT ( * ) * + + NULLIF ( - + 64, SUM ( 73 ) + - 96 * 24 + 33 * + 31 ) * - 30 + - - 94 + - - COALESCE ( CAST ( 91 AS INTEGER ), - ( + 61 ), MIN ( + ( 74 ) ) ) + 9 * - NULLIF ( 62 * COUNT ( * ) + 32 * + 17, + 80 / - 30 ) + + COALESCE ( MAX ( ALL 50 ), 69 * + 8, 91 ) AS col2
----
-3299

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT NULLIF ( + CASE - + 9 WHEN SUM( + 30 ) - SUM( 56 ) THEN NULL WHEN - - 89 * 4 * - + MIN( - - 33 ) * - MAX( DISTINCT - 87 ) THEN NULL WHEN - + 28 THEN + 73 END, + 73 ) + 82 * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7875
SELECT NULLIF ( + CASE - + 9 WHEN SUM ( + 30 ) - SUM ( 56 ) THEN NULL WHEN - - 89 * 4 * - + MIN ( - - 33 ) * - MAX ( DISTINCT - 87 ) THEN NULL WHEN - + 28 THEN + 73 END, + 73 ) + 82 * 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT 34 * - 99 * NULLIF ( 61, 59 + - 11 + - COUNT( * ) ) * + - 44 AS col1
----
9034344

skipif mysql # not compatible
query I rowsort label-7876
SELECT 34 * - 99 * NULLIF ( 61, 59 + - 11 + - COUNT ( * ) ) * + - 44 AS col1
----
9034344

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT DISTINCT - MAX( DISTINCT - 9 ) col2
----
9

skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT - MAX ( DISTINCT - 9 ) col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7878
SELECT ALL - CAST( - - 36 AS SIGNED ) - - - 69 * - COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL - CAST ( - - 36 AS INTEGER ) - - - 69 * - COUNT ( * ) AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7879
SELECT - CAST( - 4 AS SIGNED ) * 16 DIV - 38 + 90 + - + 31 DIV - 34 * - - 41
----
89

skipif mysql # not compatible
query I rowsort label-7879
SELECT - CAST ( - 4 AS INTEGER ) * 16 / - 38 + 90 + - + 31 / - 34 * - - 41
----
89

query I rowsort
SELECT - 37 * - 81
----
2997

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7881
SELECT - 55 + + + 74 AS col2, COALESCE ( - ( - 64 ), + ( - CAST( NULL AS SIGNED ) ) + - - 59 )
----
19
64

skipif mysql # not compatible
query II rowsort label-7881
SELECT - 55 + + + 74 AS col2, COALESCE ( - ( - 64 ), + ( - CAST ( NULL AS INTEGER ) ) + - - 59 )
----
19
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7882
SELECT - COUNT( * ) + + COUNT( * ) * + + COALESCE ( + 99, 80 DIV + 48 DIV + 56 - 92 ), - 82 * - + 65 - CASE - + ( + ( 69 ) ) WHEN 80 THEN NULL WHEN - - 37 + + 43 THEN + CAST( NULL AS SIGNED ) + COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE NULL END AS col1
----
98
NULL

skipif mysql # not compatible
query II rowsort label-7882
SELECT - COUNT ( * ) + + COUNT ( * ) * + + COALESCE ( + 99, 80 / + 48 / + 56 - 92 ), - 82 * - + 65 - CASE - + ( + ( 69 ) ) WHEN 80 THEN NULL WHEN - - 37 + + 43 THEN + CAST ( NULL AS INTEGER ) + COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
98
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7883
SELECT ALL SUM( + - 2 ) AS col1, + 41 DIV + 35
----
-2
1

skipif mysql # not compatible
query II rowsort label-7883
SELECT ALL SUM ( + - 2 ) AS col1, + 41 / + 35
----
-2
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7884
SELECT ALL 19 DIV - 26 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL 19 / - 26 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7885
SELECT - 25 / - CAST( NULL AS SIGNED ) / + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7885
SELECT - 25 / - CAST ( NULL AS INTEGER ) / + 8 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7886
SELECT DISTINCT COALESCE ( + 62, + + 98, - MAX( DISTINCT + 6 ) * - NULLIF ( - + NULLIF ( - SUM( ALL + 8 ), - COALESCE ( + COUNT( * ), + ( - SUM( 10 ) ) + - 41, + CAST( - ( + 3 ) AS SIGNED ) + 17 ) ), + 44 ) - - COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-7886
SELECT DISTINCT COALESCE ( + 62, + + 98, - MAX ( DISTINCT + 6 ) * - NULLIF ( - + NULLIF ( - SUM ( ALL + 8 ), - COALESCE ( + COUNT ( * ), + ( - SUM ( 10 ) ) + - 41, + CAST ( - ( + 3 ) AS INTEGER ) + 17 ) ), + 44 ) - - COUNT ( * ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT + SUM( + 72 ) + + 68 + 74
----
214

skipif mysql # not compatible
query I rowsort label-7887
SELECT + SUM ( + 72 ) + + 68 + 74
----
214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7888
SELECT - - COUNT( * ) DIV - - 42
----
0

skipif mysql # not compatible
query I rowsort label-7888
SELECT - - COUNT ( * ) / - - 42
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7889
SELECT + - 28 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-7889
SELECT + - 28 / + 89
----
0

query I rowsort
SELECT + + 69 + - + 88 AS col1
----
-19

query II rowsort
SELECT - - ( - 14 ), 84 AS col1
----
-14
84

query II rowsort
SELECT ALL - 89 + - NULLIF ( - - 60, - 9 ) + - + 11, + 90 AS col0
----
-160
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7893
SELECT - - CASE + 15 WHEN - + 93 THEN NULL WHEN + - 3 / 79 * - 77 THEN 36 ELSE NULL END * - COUNT( * ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7893
SELECT - - CASE + 15 WHEN - + 93 THEN NULL WHEN + - 3 / 79 * - 77 THEN 36 ELSE NULL END * - COUNT ( * ) + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - ( 91 ) + - + 96 - - 33 * - - 77
----
2354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7896
SELECT DISTINCT + COUNT( * ) * - - 3, 89 AS col0
----
3
89

skipif mysql # not compatible
query II rowsort label-7896
SELECT DISTINCT + COUNT ( * ) * - - 3, 89 AS col0
----
3
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT ALL - CASE 97 WHEN + - 79 + - 17 THEN + + 29 WHEN - COUNT( DISTINCT - 82 ) THEN NULL END + NULLIF ( - - 10, - 47 + - + 8 ) / + + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL - CASE 97 WHEN + - 79 + - 17 THEN + + 29 WHEN - COUNT ( DISTINCT - 82 ) THEN NULL END + NULLIF ( - - 10, - 47 + - + 8 ) / + + 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7898
SELECT ALL 34 + - COUNT( * ), 1 AS col2
----
33
1

skipif mysql # not compatible
query II rowsort label-7898
SELECT ALL 34 + - COUNT ( * ), 1 AS col2
----
33
1

query I rowsort
SELECT DISTINCT - ( 70 ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT ALL + NULLIF ( + COALESCE ( + MAX( DISTINCT - 42 ), 45 ), 69 + + - ( - + 84 ) / - + 10 * 63 )
----
-42

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL + NULLIF ( + COALESCE ( + MAX ( DISTINCT - 42 ), 45 ), 69 + + - ( - + 84 ) / - + 10 * 63 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT ALL 23 * - 16 + - 92 * - 32 * - CASE + 95 WHEN + COUNT( * ) THEN NULL ELSE 59 + + MIN( DISTINCT + 73 ) END
----
-388976

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL 23 * - 16 + - 92 * - 32 * - CASE + 95 WHEN + COUNT ( * ) THEN NULL ELSE 59 + + MIN ( DISTINCT + 73 ) END
----
-388976

onlyif mysql # DIV for integer division: 
query I rowsort label-7902
SELECT + + 71 DIV - - 54 - - 37
----
38

skipif mysql # not compatible
query I rowsort label-7902
SELECT + + 71 / - - 54 - - 37
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7903
SELECT DISTINCT - 38 * - COUNT( * ) * + + 99 + 71 * CAST( 12 AS SIGNED ) AS col1
----
4614

skipif mysql # not compatible
query I rowsort label-7903
SELECT DISTINCT - 38 * - COUNT ( * ) * + + 99 + 71 * CAST ( 12 AS INTEGER ) AS col1
----
4614

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT DISTINCT + 85 * 86 * - NULLIF ( - 49, - 45 ) + 43 DIV 98 + + 69
----
358259

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT + 85 * 86 * - NULLIF ( - 49, - 45 ) + 43 / 98 + + 69
----
358259

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT ALL ( - COUNT( + 69 ) ) * - 67
----
67

skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL ( - COUNT ( + 69 ) ) * - 67
----
67

query II rowsort
SELECT DISTINCT + 93 col0, - ( + 57 ) * 14
----
93
-798

onlyif mysql # aggregate syntax: 
query II rowsort label-7907
SELECT DISTINCT COUNT( + 61 ) * COUNT( * ) AS col1, MIN( + - 46 )
----
1
-46

skipif mysql # not compatible
query II rowsort label-7907
SELECT DISTINCT COUNT ( + 61 ) * COUNT ( * ) AS col1, MIN ( + - 46 )
----
1
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT DISTINCT - 68 * - - COUNT( * ) - + + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT - 68 * - - COUNT ( * ) - + + COUNT ( * )
----
-69

query I rowsort
SELECT - 77 * 80 + - + 30 + + 88 + + CASE + 97 WHEN 73 THEN + 60 END + - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT ALL + ( SUM( DISTINCT - 87 ) ) * - + 1 * - COUNT( * ) - + COUNT( * ) * + 0
----
-87

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL + ( SUM ( DISTINCT - 87 ) ) * - + 1 * - COUNT ( * ) - + COUNT ( * ) * + 0
----
-87

query I rowsort
SELECT ( - - 57 ) col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7912
SELECT + 38 DIV COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7912
SELECT + 38 / COUNT ( * ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT - COUNT( * ) * + + 50
----
-50

skipif mysql # not compatible
query I rowsort label-7913
SELECT - COUNT ( * ) * + + 50
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7914
SELECT ALL ( + - 13 ) DIV - + COUNT( DISTINCT 72 ) + + 63 - + 73 * + COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL ( + - 13 ) / - + COUNT ( DISTINCT 72 ) + + 63 - + 73 * + COUNT ( * ) AS col1
----
3

query I rowsort
SELECT DISTINCT + 20 * + - 14
----
-280

onlyif mysql # DIV for integer division: 
query I rowsort label-7916
SELECT DISTINCT ( 64 ) DIV + + NULLIF ( - 21, - 79 * 92 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT ( 64 ) / + + NULLIF ( - 21, - 79 * 92 ) AS col1
----
-3

query I rowsort
SELECT DISTINCT + 82 col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7918
SELECT ALL ( 47 ) DIV - 22 + + 4
----
2

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL ( 47 ) / - 22 + + 4
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT - 84 * - CASE 64 WHEN - 4 THEN 40 END * COUNT( * ) * + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7919
SELECT - 84 * - CASE 64 WHEN - 4 THEN 40 END * COUNT ( * ) * + 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT DISTINCT + MIN( 25 )
----
25

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT + MIN ( 25 )
----
25

query I rowsort
SELECT ALL 7 * + - 86 AS col1
----
-602

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7922
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0, ( - - 30 )
----
NULL
30

skipif mysql # not compatible
query II rowsort label-7922
SELECT ALL + CAST ( NULL AS REAL ) AS col0, ( - - 30 )
----
NULL
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7923
SELECT - 90 AS col2, 93 + 24 + + COUNT( * ) + - + MAX( DISTINCT 38 )
----
-90
80

skipif mysql # not compatible
query II rowsort label-7923
SELECT - 90 AS col2, 93 + 24 + + COUNT ( * ) + - + MAX ( DISTINCT 38 )
----
-90
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7924
SELECT - CAST( - 40 AS SIGNED ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-7924
SELECT - CAST ( - 40 AS INTEGER ) AS col1
----
40

query I rowsort
SELECT + 48 * 86
----
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT + 65 - ( 9 ) + - + COUNT( * ) + + 3 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7926
SELECT + 65 - ( 9 ) + - + COUNT ( * ) + + 3 AS col2
----
58

query II rowsort
SELECT - + 35, - 89 * + 27 AS col2
----
-35
-2403

query II rowsort
SELECT - 65 AS col0, 83 * - NULLIF ( + 44, + 85 + - 80 )
----
-65
-3652

query I rowsort
SELECT ALL + 4 * + + ( - - 35 ) + + + 6 * - 42 AS col1
----
-112

query II rowsort
SELECT 25 AS col0, 12
----
25
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7931
SELECT DISTINCT + + 63 + + ( + - 43 ), + 34 col0, + - COUNT( * ) + + COUNT( * ) * CAST( NULL AS SIGNED ) * - 26 + - - 65 AS col1
----
20
34
NULL

skipif mysql # not compatible
query III rowsort label-7931
SELECT DISTINCT + + 63 + + ( + - 43 ), + 34 col0, + - COUNT ( * ) + + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 26 + - - 65 AS col1
----
20
34
NULL

query I rowsort
SELECT DISTINCT + 94 * 70 * + - 72 + - 4 + 82
----
-473682

query I rowsort
SELECT DISTINCT - 36 + 33 + - 9 * - 82
----
735

query I rowsort
SELECT DISTINCT - - 51 + 66
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7935
SELECT - - 3 + - CAST( COUNT( * ) AS SIGNED ) + - ( + 44 ) + + COALESCE ( - 55, - + MAX( DISTINCT + 5 ) ) DIV - 11 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-7935
SELECT - - 3 + - CAST ( COUNT ( * ) AS INTEGER ) + - ( + 44 ) + + COALESCE ( - 55, - + MAX ( DISTINCT + 5 ) ) / - 11 AS col1
----
-37

query I rowsort
SELECT - - 97 - 28 col2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7937
SELECT ALL - CAST( 82 AS SIGNED ) + - 3 AS col2, + 26
----
-85
26

skipif mysql # not compatible
query II rowsort label-7937
SELECT ALL - CAST ( 82 AS INTEGER ) + - 3 AS col2, + 26
----
-85
26

query I rowsort
SELECT - - COALESCE ( - + 96, - 76 + - - 97 ) AS col2
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7939
SELECT + + COUNT( * ) DIV + 58 * + - 22
----
0

skipif mysql # not compatible
query I rowsort label-7939
SELECT + + COUNT ( * ) / + 58 * + - 22
----
0

query I rowsort
SELECT ALL + 0 * - + 51 AS col2
----
0

query II rowsort
SELECT + 28, - 18 + + 99 col0
----
28
81

query I rowsort
SELECT - 81 + 41 col0
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-7943
SELECT COUNT( * ) col0, - 5 AS col1
----
1
-5

skipif mysql # not compatible
query II rowsort label-7943
SELECT COUNT ( * ) col0, - 5 AS col1
----
1
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7944
SELECT - CAST( SUM( ALL 97 ) AS DECIMAL ) + - ( + CAST( NULL AS SIGNED ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7944
SELECT - CAST ( SUM ( ALL 97 ) AS REAL ) + - ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7945
SELECT ALL 18 AS col0, - CAST( NULL AS DECIMAL )
----
18
NULL

skipif mysql # not compatible
query II rowsort label-7945
SELECT ALL 18 AS col0, - CAST ( NULL AS REAL )
----
18
NULL

query I rowsort
SELECT - - 45 * 41
----
1845

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT SUM( ALL + + 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-7947
SELECT SUM ( ALL + + 60 ) AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7948
SELECT DISTINCT - 24 DIV 56 - - CAST( 25 AS SIGNED ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7948
SELECT DISTINCT - 24 / 56 - - CAST ( 25 AS INTEGER ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7949
SELECT - 73 * - + COUNT( * ) + - 92 + 97 / COALESCE ( - 96, 18 + + 64 * ( 94 ) + + 41 ) + AVG ( DISTINCT + 61 ) + + + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT - 73 * - + COUNT ( * ) + - 92 + 97 / COALESCE ( - 96, 18 + + 64 * ( 94 ) + + 41 ) + AVG ( DISTINCT + 61 ) + + + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7950
SELECT 31 + 14 * - ( + 68 ) * - 70 * + - ( 29 ) + + 71 + + - 70 - - CASE - + ( ( + - 25 ) ) WHEN + 86 THEN NULL WHEN COALESCE ( 75, - 71 ) THEN + MAX( ALL - 53 ) END + - CAST( NULL AS SIGNED ) * ( + 65 ) * + 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7950
SELECT 31 + 14 * - ( + 68 ) * - 70 * + - ( 29 ) + + 71 + + - 70 - - CASE - + ( ( + - 25 ) ) WHEN + 86 THEN NULL WHEN COALESCE ( 75, - 71 ) THEN + MAX ( ALL - 53 ) END + - CAST ( NULL AS INTEGER ) * ( + 65 ) * + 84 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7951
SELECT ( + 54 ) * - CAST( - 86 AS SIGNED ) - - 59 AS col1
----
4703

skipif mysql # not compatible
query I rowsort label-7951
SELECT ( + 54 ) * - CAST ( - 86 AS INTEGER ) - - 59 AS col1
----
4703

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT COUNT( * ) + 44 col1
----
45

skipif mysql # not compatible
query I rowsort label-7952
SELECT COUNT ( * ) + 44 col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7953
SELECT ALL 43 * 4 AS col2, 25 * + 6 - - CAST( NULL AS SIGNED )
----
172
NULL

skipif mysql # not compatible
query II rowsort label-7953
SELECT ALL 43 * 4 AS col2, 25 * + 6 - - CAST ( NULL AS INTEGER )
----
172
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7954
SELECT DISTINCT ( - 44 ) * 32 DIV + - 28 + - 60 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT ( - 44 ) * 32 / + - 28 + - 60 AS col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7955
SELECT DISTINCT ( ( - - 91 ) ) * + CASE + + 6 WHEN 15 * - + 39 + + - 67 * - 10 THEN + COUNT( * ) WHEN - 17 + COUNT( * ) THEN CAST( + + 78 AS DECIMAL ) WHEN 9 * - 96 + + 13 / + - 57 THEN + + CAST( NULL AS SIGNED ) ELSE NULL END * + 12 - + ( 4 + 92 * 80 ) * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT ( ( - - 91 ) ) * + CASE + + 6 WHEN 15 * - + 39 + + - 67 * - 10 THEN + COUNT ( * ) WHEN - 17 + COUNT ( * ) THEN CAST ( + + 78 AS REAL ) WHEN 9 * - 96 + + 13 / + - 57 THEN + + CAST ( NULL AS INTEGER ) ELSE NULL END * + 12 - + ( 4 + 92 * 80 ) * - 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7956
SELECT ( MAX( ALL - 2 ) ) DIV 42 * - 84
----
0

skipif mysql # not compatible
query I rowsort label-7956
SELECT ( MAX ( ALL - 2 ) ) / 42 * - 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT ALL 96 + - COUNT( * ) - - + 49 - - 31 + + - COUNT( * ) - + ( + 1 ) * + 52 + - + 18 * - + ( - + 2 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL 96 + - COUNT ( * ) - - + 49 - - 31 + + - COUNT ( * ) - + ( + 1 ) * + 52 + - + 18 * - + ( - + 2 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT + 97 * + + COUNT( * ) + + 83 + + SUM( ALL 97 ) * + - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-7958
SELECT + 97 * + + COUNT ( * ) + + 83 + + SUM ( ALL 97 ) * + - COUNT ( * )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7959
SELECT ALL 7 * - ( - NULLIF ( + + 53, + + CASE + COUNT( * ) WHEN + CAST( + - 77 AS SIGNED ) + - 77 / 12 + + 52 THEN NULL ELSE ( COUNT( * ) ) END ) )
----
371

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL 7 * - ( - NULLIF ( + + 53, + + CASE + COUNT ( * ) WHEN + CAST ( + - 77 AS INTEGER ) + - 77 / 12 + + 52 THEN NULL ELSE ( COUNT ( * ) ) END ) )
----
371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7960
SELECT SUM( CAST( NULL AS SIGNED ) ) + + ( - ( + 41 ) ) * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7960
SELECT SUM ( CAST ( NULL AS INTEGER ) ) + + ( - ( + 41 ) ) * + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT ALL 60 + - - COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL 60 + - - COUNT ( * ) AS col0
----
61

query I rowsort
SELECT 94 * + 99 AS col0
----
9306

query I rowsort
SELECT ALL 36 + 92 + + + 37 AS col0
----
165

query I rowsort
SELECT DISTINCT + 20 + 77 + + 15
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT ALL - MIN( DISTINCT - - ( + 56 ) ) + - 92 + - + ( + + 40 ) * + - NULLIF ( + + 10, MIN( ALL + + 35 ) * + 78 * - + COUNT( * ) ) * 29 AS col2
----
11452

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL - MIN ( DISTINCT - - ( + 56 ) ) + - 92 + - + ( + + 40 ) * + - NULLIF ( + + 10, MIN ( ALL + + 35 ) * + 78 * - + COUNT ( * ) ) * 29 AS col2
----
11452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7966
SELECT DISTINCT - 45 / 1 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT - 45 / 1 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 87 + + 59
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7968
SELECT DISTINCT COUNT( * ) + - + CAST( NULL AS SIGNED ) + - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + - 75 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 65 * 68 * + - 44 * - 7
----
1361360

query I rowsort
SELECT ALL - 6 + + ( - 7 ) - 5 * - 15 * - + 71
----
-5338

query I rowsort
SELECT DISTINCT + 37 * - + ( - + 8 ) + 4 * 97 - - 35 AS col2
----
719

query I rowsort
SELECT - + ( + ( - + 90 ) )
----
90

query I rowsort
SELECT 21 + + 13 AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 49 * - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 49 * - 33 AS col0
----
NULL

query I rowsort
SELECT ALL - 46 - - 49
----
3

query I rowsort
SELECT 0 * + 32 + ( - 84 ) + + 70 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT 44 * + COUNT( ALL + 36 ) + CASE - 59 WHEN + 90 * - 80 + + 35 THEN + 50 / 1 / + - 82 * 14 END + + COUNT( * ) * + 10 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT 44 * + COUNT ( ALL + 36 ) + CASE - 59 WHEN + 90 * - 80 + + 35 THEN + 50 / 1 / + - 82 * 14 END + + COUNT ( * ) * + 10 col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7978
SELECT ALL COALESCE ( + + 22, 84 + - + 82, - 35 DIV - 44 * - - COALESCE ( + + 3, - 36 ) ) AS col1, - 4 AS col0
----
22
-4

skipif mysql # not compatible
query II rowsort label-7978
SELECT ALL COALESCE ( + + 22, 84 + - + 82, - 35 / - 44 * - - COALESCE ( + + 3, - 36 ) ) AS col1, - 4 AS col0
----
22
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT DISTINCT - COUNT( * ) * - 48
----
48

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT - COUNT ( * ) * - 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT ALL MAX( DISTINCT 69 )
----
69

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL MAX ( DISTINCT 69 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7981
SELECT ALL + - SUM( ALL - COALESCE ( + - 26, + - 65 ) ) * - 88 / + CASE 24 WHEN - + CAST( MIN( - 90 ) AS SIGNED ) THEN 6 ELSE NULL END * 42 + COUNT( * ) + 27 * - ( 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL + - SUM ( ALL - COALESCE ( + - 26, + - 65 ) ) * - 88 / + CASE 24 WHEN - + CAST ( MIN ( - 90 ) AS INTEGER ) THEN 6 ELSE NULL END * 42 + COUNT ( * ) + 27 * - ( 97 )
----
NULL

query I rowsort
SELECT ALL + ( - 45 ) AS col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7983
SELECT - - CAST( + - 4 AS SIGNED ) col1
----
-4

skipif mysql # not compatible
query I rowsort label-7983
SELECT - - CAST ( + - 4 AS INTEGER ) col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7984
SELECT DISTINCT + 61 DIV ( 49 ) * - ( + + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT + 61 / ( 49 ) * - ( + + 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT 50 + + MAX( ALL 63 ) * + COUNT( * )
----
113

skipif mysql # not compatible
query I rowsort label-7985
SELECT 50 + + MAX ( ALL 63 ) * + COUNT ( * )
----
113

query I rowsort
SELECT ALL - ( + 92 ) * - ( + + 25 ) AS col0
----
2300

onlyif mysql # DIV for integer division: 
query I rowsort label-7987
SELECT 69 DIV + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7987
SELECT 69 / + 71 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT DISTINCT - SUM( ALL 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT - SUM ( ALL 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT ALL - COUNT( * ) * - - 28 * + CASE WHEN NOT ( + 80 ) IN ( + SUM( + 39 ), 18 - + 84 / + - 42 * - + 98, + - NULLIF ( - MIN( + + 35 ), - 41 * 7 ) + - 51 + - + 27 + - + 85 * - MIN( 5 ) ) THEN + 8 END AS col0
----
-224

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL - COUNT ( * ) * - - 28 * + CASE WHEN NOT ( + 80 ) IN ( + SUM ( + 39 ), 18 - + 84 / + - 42 * - + 98, + - NULLIF ( - MIN ( + + 35 ), - 41 * 7 ) + - 51 + - + 27 + - + 85 * - MIN ( 5 ) ) THEN + 8 END AS col0
----
-224

query I rowsort
SELECT ALL + 75 + + + 70 + 97 * - - 39
----
3928

query I rowsort
SELECT ALL 96 + 7 AS col2
----
103

query I rowsort
SELECT 39 * + 37 + + - 50 - - 87 * - + 81 AS col2
----
-5654

query I rowsort
SELECT ALL - ( 27 )
----
-27

query I rowsort
SELECT 40 * - 92 * - 29 AS col0
----
106720

onlyif mysql # aggregate syntax: 
query III rowsort label-7995
SELECT 30 AS col0, 15 * - COUNT( * ) AS col2, 8 + - 45 + - MIN( DISTINCT + 49 ) AS col1
----
30
-15
-86

skipif mysql # not compatible
query III rowsort label-7995
SELECT 30 AS col0, 15 * - COUNT ( * ) AS col2, 8 + - 45 + - MIN ( DISTINCT + 49 ) AS col1
----
30
-15
-86

query I rowsort
SELECT DISTINCT 1 + 43
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT ALL 60 + MIN( DISTINCT - NULLIF ( - 80, - 25 ) ) * 86
----
6940

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL 60 + MIN ( DISTINCT - NULLIF ( - 80, - 25 ) ) * 86
----
6940

onlyif mysql # aggregate syntax: 
query II rowsort label-7998
SELECT DISTINCT 19 + - 28 + + 93 AS col0, COUNT( * ) AS col2
----
84
1

skipif mysql # not compatible
query II rowsort label-7998
SELECT DISTINCT 19 + - 28 + + 93 AS col0, COUNT ( * ) AS col2
----
84
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT MIN( DISTINCT 95 ) * - 7 AS col0
----
-665

skipif mysql # not compatible
query I rowsort label-7999
SELECT MIN ( DISTINCT 95 ) * - 7 AS col0
----
-665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8000
SELECT ALL - 76 + - 81 - - NULLIF ( COALESCE ( - CASE 62 WHEN - 53 + + CAST( - 14 AS SIGNED ) + + - 45 THEN 56 ELSE + 7 * 59 END, + ( + 88 ) ), + 60 + - 10 + + ( - - 49 ) + + 91 / 77 ) * + 87 * 60
----
-2156017

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL - 76 + - 81 - - NULLIF ( COALESCE ( - CASE 62 WHEN - 53 + + CAST ( - 14 AS INTEGER ) + + - 45 THEN 56 ELSE + 7 * 59 END, + ( + 88 ) ), + 60 + - 10 + + ( - - 49 ) + + 91 / 77 ) * + 87 * 60
----
-2156017

query I rowsort
SELECT ALL + 27 * 26
----
702

query I rowsort
SELECT ALL + 16 + + + ( - - CASE 15 WHEN + - 80 THEN + - 69 + + ( + + 42 ) WHEN 56 THEN NULL END ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8003
SELECT DISTINCT - 58 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT - 58 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8004
SELECT ALL 26 * + 18 + 59 * + - CAST( - 52 AS SIGNED )
----
3536

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL 26 * + 18 + 59 * + - CAST ( - 52 AS INTEGER )
----
3536

query I rowsort
SELECT ALL 0 + + ( + 11 )
----
11

query I rowsort
SELECT ( - ( - + 29 ) ) col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT - 14 + + COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-8007
SELECT - 14 + + COUNT ( * ) AS col0
----
-13

query I rowsort
SELECT DISTINCT + ( 39 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8009
SELECT ALL CAST( NULLIF ( 59, - 54 / + 32 + + - 44 ) AS SIGNED ) - + 79 * + 58
----
-4523

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL CAST ( NULLIF ( 59, - 54 / + 32 + + - 44 ) AS INTEGER ) - + 79 * + 58
----
-4523

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT + 36 - - MIN( - ( - - 45 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-8010
SELECT + 36 - - MIN ( - ( - - 45 ) )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT MIN( ALL - ( + 15 ) ) - - + 46 + ( + 22 ) + - + ( - 21 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8011
SELECT MIN ( ALL - ( + 15 ) ) - - + 46 + ( + 22 ) + - + ( - 21 ) AS col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8012
SELECT + 20 DIV - - 52
----
0

skipif mysql # not compatible
query I rowsort label-8012
SELECT + 20 / - - 52
----
0

query I rowsort
SELECT 0 * + 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT + 63 + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-8014
SELECT + 63 + COUNT ( * )
----
64

query I rowsort
SELECT DISTINCT - 51 * + 2 + - 35
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT + MIN( DISTINCT 84 ) * + 67 AS col0
----
5628

skipif mysql # not compatible
query I rowsort label-8016
SELECT + MIN ( DISTINCT 84 ) * + 67 AS col0
----
5628

onlyif mysql # DIV for integer division: 
query I rowsort label-8017
SELECT ALL + 40 DIV - + 84
----
0

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL + 40 / - + 84
----
0

query I rowsort
SELECT DISTINCT + 81 - - - 78 AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8019
SELECT ALL 56 DIV COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL 56 / COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL + MIN( ALL 66 ) * - MIN( - 82 ) AS col1
----
5412

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL + MIN ( ALL 66 ) * - MIN ( - 82 ) AS col1
----
5412

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT + 99 - + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-8021
SELECT + 99 - + COUNT ( * )
----
98

query I rowsort
SELECT + 39 * 9
----
351

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8023
SELECT + COUNT( * ) + - + 3 + + 0 DIV 84 * - + 2 * - COUNT( * ) * 75 * - - 32 + - + 58 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-8023
SELECT + COUNT ( * ) + - + 3 + + 0 / 84 * - + 2 * - COUNT ( * ) * 75 * - - 32 + - + 58 AS col1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8024
SELECT - CAST( NULL AS SIGNED ) - - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT - CAST ( NULL AS INTEGER ) - - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT ALL - COUNT( ALL - ( + NULLIF ( + - 98, + + 7 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL - COUNT ( ALL - ( + NULLIF ( + - 98, + + 7 ) ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8026
SELECT ALL + MIN( DISTINCT - 1 ) * - CASE - 39 WHEN + CASE - - 65 WHEN - 10 / + ( + 52 ) THEN 90 ELSE CAST( - 4 AS DECIMAL ) * + 43 END THEN - 66 WHEN - + CAST( 63 AS SIGNED ) THEN + 51 END * 1 + + + MIN( ALL + 57 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL + MIN ( DISTINCT - 1 ) * - CASE - 39 WHEN + CASE - - 65 WHEN - 10 / + ( + 52 ) THEN 90 ELSE CAST ( - 4 AS REAL ) * + 43 END THEN - 66 WHEN - + CAST ( 63 AS INTEGER ) THEN + 51 END * 1 + + + MIN ( ALL + 57 ) AS col1
----
NULL

query I rowsort
SELECT - ( - 53 ) * - 64
----
-3392

query I rowsort
SELECT + 56 * ( - + 66 ) * + 87
----
-321552

query I rowsort
SELECT ALL 97 * + - ( - + 89 ) AS col2
----
8633

query I rowsort
SELECT - 8 * - + 52
----
416

query I rowsort
SELECT ALL - 7 + - 0 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT ALL CASE + + COUNT( DISTINCT + - 46 ) WHEN + 8 THEN + + 49 + - 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL CASE + + COUNT ( DISTINCT + - 46 ) WHEN + 8 THEN + + 49 + - 24 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT ALL + COUNT( ALL 29 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL + COUNT ( ALL 29 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT DISTINCT COALESCE ( - COUNT( * ), + - 34 + 64 ) * + - 58 + + 94
----
152

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT COALESCE ( - COUNT ( * ), + - 34 + 64 ) * + - 58 + + 94
----
152

query II rowsort
SELECT ALL + 4 AS col0, + 17 * + 19
----
4
323

onlyif mysql # aggregate syntax: 
query II rowsort label-8036
SELECT MIN( - - 98 ) * - 16 + 11, 25 AS col1
----
-1557
25

skipif mysql # not compatible
query II rowsort label-8036
SELECT MIN ( - - 98 ) * - 16 + 11, 25 AS col1
----
-1557
25

query I rowsort
SELECT - 78 * + 15
----
-1170

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL 76 * + 85 + + 5 * + 51 + - ( + 69 ) + COUNT( 58 ) + - - 93 * + 57 * - - 51 * + - 65 + - 51 AS col1
----
-17566219

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL 76 * + 85 + + 5 * + 51 + - ( + 69 ) + COUNT ( 58 ) + - - 93 * + 57 * - - 51 * + - 65 + - 51 AS col1
----
-17566219

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT NULLIF ( + 98, + - COUNT( * ) / + 75 / - - 31 + + - COUNT( * ) + + 42 + 85 * + 24 + 92 )
----
98

skipif mysql # not compatible
query I rowsort label-8039
SELECT NULLIF ( + 98, + - COUNT ( * ) / + 75 / - - 31 + + - COUNT ( * ) + + 42 + 85 * + 24 + 92 )
----
98

query I rowsort
SELECT + 48 * 74 * 60 AS col2
----
213120

query I rowsort
SELECT DISTINCT - 72 * 39 * - NULLIF ( 60, - 26 ) AS col1
----
168480

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT ALL + 17 * + COUNT( ALL - 99 )
----
17

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL + 17 * + COUNT ( ALL - 99 )
----
17

query I rowsort
SELECT + 1 * - 90 + + 85 AS col1
----
-5

query I rowsort
SELECT ALL 13 * 59 + - 33
----
734

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8045
SELECT ALL - 78 * - 12 * - 61 DIV COUNT( * ) + + 65 DIV + - 73 + + 31 AS col0
----
-57065

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL - 78 * - 12 * - 61 / COUNT ( * ) + + 65 / + - 73 + + 31 AS col0
----
-57065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8046
SELECT ALL + 70 * - + CASE NULLIF ( - COUNT( * ), + - 37 + + 85 ) WHEN + 67 THEN NULL WHEN + COUNT( * ) * - - 76 THEN NULL ELSE - ( + + ( + COUNT( ALL - CAST( NULL AS SIGNED ) ) ) ) + - 32 END AS col2
----
2240

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL + 70 * - + CASE NULLIF ( - COUNT ( * ), + - 37 + + 85 ) WHEN + 67 THEN NULL WHEN + COUNT ( * ) * - - 76 THEN NULL ELSE - ( + + ( + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) ) ) + - 32 END AS col2
----
2240

query I rowsort
SELECT ALL + - COALESCE ( - 3, + - 5 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT + + COUNT( DISTINCT + 94 ) + - - 24 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-8048
SELECT + + COUNT ( DISTINCT + 94 ) + - - 24 AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8049
SELECT ALL MAX( ALL CAST( NULL AS SIGNED ) ) * + + 48 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL MAX ( ALL CAST ( NULL AS INTEGER ) ) * + + 48 - + COUNT ( * )
----
NULL

query II rowsort
SELECT + - 45, - ( + 95 ) * + - 23 - + 42 AS col1
----
-45
2143

query I rowsort
SELECT + 90 * + 72 * - 92 col0
----
-596160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8052
SELECT - - 24 + CASE - - 92 WHEN - - ( MAX( - 47 ) ) + - 19 THEN NULL ELSE - 11 * - 37 - 96 END * + CAST( NULL AS SIGNED ), - CASE - + 35 WHEN - CASE - - 92 WHEN MIN( + + 41 ) * - 48 THEN 53 ELSE NULL END THEN 97 + - 92 ELSE NULL END col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8052
SELECT - - 24 + CASE - - 92 WHEN - - ( MAX ( - 47 ) ) + - 19 THEN NULL ELSE - 11 * - 37 - 96 END * + CAST ( NULL AS INTEGER ), - CASE - + 35 WHEN - CASE - - 92 WHEN MIN ( + + 41 ) * - 48 THEN 53 ELSE NULL END THEN 97 + - 92 ELSE NULL END col2
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8053
SELECT ALL + 25 AS col1, CAST( + - 78 AS SIGNED )
----
25
-78

skipif mysql # not compatible
query II rowsort label-8053
SELECT ALL + 25 AS col1, CAST ( + - 78 AS INTEGER )
----
25
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8054
SELECT DISTINCT - CAST( NULL AS SIGNED ), - COUNT( * ) + + 79 + - CASE + 53 WHEN + - 10 THEN + 92 ELSE NULL END * + - 12 * - ( + 22 ) + - - 75 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8054
SELECT DISTINCT - CAST ( NULL AS INTEGER ), - COUNT ( * ) + + 79 + - CASE + 53 WHEN + - 10 THEN + 92 ELSE NULL END * + - 12 * - ( + 22 ) + - - 75 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT - 21 * + COUNT( * ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT - 21 * + COUNT ( * ) col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT DISTINCT - COUNT( * ) * - 98
----
98

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT - COUNT ( * ) * - 98
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8057
SELECT DISTINCT + 5 * 32 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT + 5 * 32 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - - 72 * - + 42 AS col2, 88 AS col2
----
-3024
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT ALL + SUM( + 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL + SUM ( + 42 ) AS col0
----
42

query I rowsort
SELECT + + 33 + 37 AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8061
SELECT + 59 + + CASE 14 WHEN + ( - + COUNT( * ) ) THEN - + 37 ELSE + 81 END + + + 45 + + + MAX( DISTINCT + ( - COALESCE ( ( + ( - + 71 ) ), + + 7 DIV NULLIF ( - 5, + 92 ) * - 44 + - 58 - 78 + 0 ) ) )
----
256

skipif mysql # not compatible
query I rowsort label-8061
SELECT + 59 + + CASE 14 WHEN + ( - + COUNT ( * ) ) THEN - + 37 ELSE + 81 END + + + 45 + + + MAX ( DISTINCT + ( - COALESCE ( ( + ( - + 71 ) ), + + 7 / NULLIF ( - 5, + 92 ) * - 44 + - 58 - 78 + 0 ) ) )
----
256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8062
SELECT ALL CAST( NULL AS SIGNED ) + ( + 39 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL CAST ( NULL AS INTEGER ) + ( + 39 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 44 + 17 col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT ALL 20 + 63 * 69 * - COUNT( * ) * - 7 + + 70 + + + 62 AS col0
----
30581

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL 20 + 63 * 69 * - COUNT ( * ) * - 7 + + 70 + + + 62 AS col0
----
30581

query I rowsort
SELECT ALL 79 + - 80 AS col1
----
-1

query I rowsort
SELECT DISTINCT + 66 * - - 30
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT DISTINCT ( - - COUNT( * ) ) + + + MAX( 69 )
----
70

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT ( - - COUNT ( * ) ) + + + MAX ( 69 )
----
70

query I rowsort
SELECT - ( 58 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT - 55 + + COUNT( * ) * + 85
----
30

skipif mysql # not compatible
query I rowsort label-8069
SELECT - 55 + + COUNT ( * ) * + 85
----
30

query II rowsort
SELECT + 66 * - 32, ( - 8 ) AS col2
----
-2112
-8

query I rowsort
SELECT - ( + - 61 ) col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8072
SELECT + CAST( 41 AS SIGNED ), COUNT( * ) AS col0
----
41
1

skipif mysql # not compatible
query II rowsort label-8072
SELECT + CAST ( 41 AS INTEGER ), COUNT ( * ) AS col0
----
41
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8073
SELECT CAST( + 93 AS SIGNED ), + 28 AS col2
----
93
28

skipif mysql # not compatible
query II rowsort label-8073
SELECT CAST ( + 93 AS INTEGER ), + 28 AS col2
----
93
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8074
SELECT ALL - 34 DIV + + 10 - COUNT( * ) * 10
----
-13

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL - 34 / + + 10 - COUNT ( * ) * 10
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-8075
SELECT ALL + 51 DIV + 70 * - + 31 - + 70 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL + 51 / + 70 * - + 31 - + 70 AS col1
----
-70

query I rowsort
SELECT DISTINCT + NULLIF ( 32, + - 3 ) AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8077
SELECT ALL - + 79 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL - + 79 / + 82 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8078
SELECT + + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8078
SELECT + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8079
SELECT COUNT( DISTINCT - + CAST( + 54 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-8079
SELECT COUNT ( DISTINCT - + CAST ( + 54 AS INTEGER ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8080
SELECT DISTINCT - ( - + 3 ) DIV + 74 - - 45 + 90 AS col2
----
135

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT - ( - + 3 ) / + 74 - - 45 + 90 AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT + COALESCE ( - 61, + COUNT( * ) )
----
-61

skipif mysql # not compatible
query I rowsort label-8081
SELECT + COALESCE ( - 61, + COUNT ( * ) )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8082
SELECT - 32 * + - CAST( NULL AS SIGNED ) - + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8082
SELECT - 32 * + - CAST ( NULL AS INTEGER ) - + 16
----
NULL

query I rowsort
SELECT ALL + 73 * - 79 + 83 + - 48 * + 10 - + - NULLIF ( - 50, + AVG ( - 70 ) ) AS col1
----
-6214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8084
SELECT - + MIN( + - 20 ) DIV - COUNT( * ) - 36 * - - COUNT( * ) DIV 65 * - MIN( 49 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-8084
SELECT - + MIN ( + - 20 ) / - COUNT ( * ) - 36 * - - COUNT ( * ) / 65 * - MIN ( 49 ) AS col2
----
-20

query II rowsort
SELECT DISTINCT - 65 * 65 * + 49, 97 + - 79 AS col2
----
-207025
18

query I rowsort
SELECT ( - + 50 ) + + 43
----
-7

query I rowsort
SELECT DISTINCT ( 38 )
----
38

query I rowsort
SELECT + 57 * + - COALESCE ( - - 95, - 0 ) AS col1
----
-5415

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT - 3 * + + 45 + COUNT( * )
----
-134

skipif mysql # not compatible
query I rowsort label-8089
SELECT - 3 * + + 45 + COUNT ( * )
----
-134

query I rowsort
SELECT ALL 3 + - 30
----
-27

query II rowsort
SELECT ALL 79 + + 72 * + 76, 8 + - 86 AS col2
----
5551
-78

query II rowsort
SELECT 54 col1, - ( 78 ) AS col2
----
54
-78

query II rowsort
SELECT 67, - ( + 75 ) AS col2
----
67
-75

query I rowsort
SELECT DISTINCT 85 + - - 98 col2
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8095
SELECT ALL 43 + + CAST( NULL AS SIGNED ) / + COALESCE ( + 92, 96 + 89, - ( 88 ) * + 53 * 32 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL 43 + + CAST ( NULL AS INTEGER ) / + COALESCE ( + 92, 96 + 89, - ( 88 ) * + 53 * 32 ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8096
SELECT - 63 AS col0, - 46 DIV + + 61 * MAX( ALL + 11 ) - - 94 DIV 80
----
-63
1

skipif mysql # not compatible
query II rowsort label-8096
SELECT - 63 AS col0, - 46 / + + 61 * MAX ( ALL + 11 ) - - 94 / 80
----
-63
1

query I rowsort
SELECT 59 + 12
----
71

onlyif mysql # DIV for integer division: 
query II rowsort label-8098
SELECT - 17 AS col0, + 49 DIV 99 AS col2
----
-17
0

skipif mysql # not compatible
query II rowsort label-8098
SELECT - 17 AS col0, + 49 / 99 AS col2
----
-17
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8099
SELECT DISTINCT COUNT( * ) - - 7 + + 4 + ( + 34 ) * - 39 * - 98 * - 95 + - 59, + COALESCE ( + MAX( ALL + 85 ), COUNT( DISTINCT + - NULLIF ( 36, + 89 ) ) ) * - + 77 col2
----
-12345107
-6545

skipif mysql # not compatible
query II rowsort label-8099
SELECT DISTINCT COUNT ( * ) - - 7 + + 4 + ( + 34 ) * - 39 * - 98 * - 95 + - 59, + COALESCE ( + MAX ( ALL + 85 ), COUNT ( DISTINCT + - NULLIF ( 36, + 89 ) ) ) * - + 77 col2
----
-12345107
-6545

onlyif mysql # aggregate syntax: 
query II rowsort label-8100
SELECT ALL 27, CASE + 73 WHEN ( + 37 ) - - 62 * - SUM( - - 13 ) THEN - + 97 + 73 + 31 WHEN - 17 / - + 77 * - 88 THEN NULL ELSE NULL END AS col0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-8100
SELECT ALL 27, CASE + 73 WHEN ( + 37 ) - - 62 * - SUM ( - - 13 ) THEN - + 97 + 73 + 31 WHEN - 17 / - + 77 * - 88 THEN NULL ELSE NULL END AS col0
----
27
NULL

query II rowsort
SELECT - 28 col1, - 37
----
-28
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8102
SELECT ALL 77 DIV + ( 67 )
----
1

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL 77 / + ( 67 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT ALL CASE - COUNT( * ) WHEN + 98 THEN NULL WHEN - MAX( - 5 ) * + 79 + - 98 * + + 84 THEN NULL ELSE 33 END * + COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL CASE - COUNT ( * ) WHEN + 98 THEN NULL WHEN - MAX ( - 5 ) * + 79 + - 98 * + + 84 THEN NULL ELSE 33 END * + COUNT ( * ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT DISTINCT MIN( + 7 ) - + - 33 + + 8 * 86 AS col1
----
728

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT MIN ( + 7 ) - + - 33 + + 8 * 86 AS col1
----
728

query I rowsort
SELECT ALL 71 * - 0 AS col1
----
0

query I rowsort
SELECT DISTINCT 89 * + - 76 AS col0
----
-6764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8107
SELECT + COALESCE ( 30, 99 * + CAST( - + 58 AS SIGNED ) DIV + - 69 DIV + 9 * 19 + NULLIF ( AVG ( + - 74 ), + ( - 22 ) + - + 53 ) + + 23 * + 89 * - 8 + - + 32, 20 - - COUNT( * ) - + - 77 ) DIV - ( 65 ) + 37
----
37

skipif mysql # not compatible
query I rowsort label-8107
SELECT + COALESCE ( 30, 99 * + CAST ( - + 58 AS INTEGER ) / + - 69 / + 9 * 19 + NULLIF ( AVG ( + - 74 ), + ( - 22 ) + - + 53 ) + + 23 * + 89 * - 8 + - + 32, 20 - - COUNT ( * ) - + - 77 ) / - ( 65 ) + 37
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8108
SELECT - + CASE - 75 WHEN + 71 THEN + 63 * - COUNT( * ) / + 48 * - - 51 / + NULLIF ( + - CAST( NULL AS DECIMAL ), - 30 ) ELSE NULL END * CAST( NULL AS SIGNED ) * + COALESCE ( 93, - COALESCE ( - CASE + COUNT( * ) WHEN + COALESCE ( + - MIN( - - 82 ), + COUNT( * ) - + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + + 95 - + COALESCE ( COALESCE ( + 13, CASE WHEN ( + 25 ) IS NULL THEN - COUNT( * ) + - COUNT( * ) ELSE NULL END + 34 ) + COUNT( * ) * 54, 40, 6 ) / + 3, ( - 37 ) * 23 ) * 13 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN COALESCE ( + COUNT( * ), 55 ) WHEN - 92 THEN NULL END, + 51 ) * - 41 ) + 14 - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT - + CASE - 75 WHEN + 71 THEN + 63 * - COUNT ( * ) / + 48 * - - 51 / + NULLIF ( + - CAST ( NULL AS REAL ), - 30 ) ELSE NULL END * CAST ( NULL AS INTEGER ) * + COALESCE ( 93, - COALESCE ( - CASE + COUNT ( * ) WHEN + COALESCE ( + - MIN ( - - 82 ), + COUNT ( * ) - + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + + 95 - + COALESCE ( COALESCE ( + 13, CASE WHEN ( + 25 ) IS NULL THEN - COUNT ( * ) + - COUNT ( * ) ELSE NULL END + 34 ) + COUNT ( * ) * 54, 40, 6 ) / + 3, ( - 37 ) * 23 ) * 13 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN COALESCE ( + COUNT ( * ), 55 ) WHEN - 92 THEN NULL END, + 51 ) * - 41 ) + 14 - 93
----
NULL

query I rowsort
SELECT - 63 * - - 39 AS col2
----
-2457

query I rowsort
SELECT ALL 33 * - + 68 AS col2
----
-2244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8111
SELECT 75 + + CASE CASE 73 WHEN + - 61 * 15 * 79 THEN NULL WHEN 92 * - 40 / + 82 THEN + CAST( NULL AS SIGNED ) ELSE NULL END WHEN - - ( 35 ) * + 30 * - - 78 THEN - 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT 75 + + CASE CASE 73 WHEN + - 61 * 15 * 79 THEN NULL WHEN 92 * - 40 / + 82 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END WHEN - - ( 35 ) * + 30 * - - 78 THEN - 54 END
----
NULL

query I rowsort
SELECT ALL - 77 * - 26
----
2002

query I rowsort
SELECT - 31 * 78 + - 28 - + 97
----
-2543

query II rowsort
SELECT DISTINCT - 95 col0, + 45
----
-95
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8115
SELECT DISTINCT + + 1 DIV 3
----
0

skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT + + 1 / 3
----
0

query I rowsort
SELECT 44 + 43 + - 70 * 85 + - 48
----
-5911

query I rowsort
SELECT + 96 * + + 77
----
7392

onlyif mysql # DIV for integer division: 
query I rowsort label-8118
SELECT ALL + - 35 + - 14 DIV 20 * - + 2
----
-35

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL + - 35 + - 14 / 20 * - + 2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT DISTINCT + COUNT( * ) + - 74
----
-73

skipif mysql # not compatible
query I rowsort label-8119
SELECT DISTINCT + COUNT ( * ) + - 74
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT 80 * 62 + + + ( + 88 ) * + COUNT( * )
----
5048

skipif mysql # not compatible
query I rowsort label-8120
SELECT 80 * 62 + + + ( + 88 ) * + COUNT ( * )
----
5048

query I rowsort
SELECT + COALESCE ( + + 52, + + 42 * + - COALESCE ( - + 43, - 75 ) )
----
52

query I rowsort
SELECT ALL + - 59 + + 27 * - + 35
----
-1004

onlyif mysql # aggregate syntax: 
query II rowsort label-8123
SELECT - ( 73 ) + COALESCE ( 57, 52, 36 * - 31 * 15 + - + 93 + + 48 * 0 + + COUNT( * ) ) + - 35, 59 * - 14 AS col2
----
-51
-826

skipif mysql # not compatible
query II rowsort label-8123
SELECT - ( 73 ) + COALESCE ( 57, 52, 36 * - 31 * 15 + - + 93 + + 48 * 0 + + COUNT ( * ) ) + - 35, 59 * - 14 AS col2
----
-51
-826

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL + 0 + - 15 + - COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL + 0 + - 15 + - COUNT ( * ) AS col0
----
-16

query I rowsort
SELECT ALL + - 67 + 43 + - 64
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT 60 + - 43 + + 66 * + 72 - COUNT( * ) AS col2
----
4768

skipif mysql # not compatible
query I rowsort label-8126
SELECT 60 + - 43 + + 66 * + 72 - COUNT ( * ) AS col2
----
4768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8127
SELECT ALL + COUNT( * ) DIV 79 col0
----
0

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL + COUNT ( * ) / 79 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT 69 + - 46 + - MIN( + 39 ) * + 43 * 26 * + 63 * + + 78 AS col2
----
-214260205

skipif mysql # not compatible
query I rowsort label-8128
SELECT 69 + - 46 + - MIN ( + 39 ) * + 43 * 26 * + 63 * + + 78 AS col2
----
-214260205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8129
SELECT ALL - 57 + CASE + 40 WHEN - 34 + + + 10 - - - COALESCE ( - ( 52 ), 19 / - 29 + - - 87 * + SUM( + CAST( NULL AS SIGNED ) ) ) THEN + COUNT( * ) ELSE NULL END + - - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL - 57 + CASE + 40 WHEN - 34 + + + 10 - - - COALESCE ( - ( 52 ), 19 / - 29 + - - 87 * + SUM ( + CAST ( NULL AS INTEGER ) ) ) THEN + COUNT ( * ) ELSE NULL END + - - 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL MAX( + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL MAX ( + 85 )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8131
SELECT 65 + - CAST( NULL AS SIGNED ) AS col1, - 92 AS col2
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-8131
SELECT 65 + - CAST ( NULL AS INTEGER ) AS col1, - 92 AS col2
----
NULL
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT DISTINCT NULLIF ( - ( + - 43 ), CASE 81 WHEN + + SUM( + 83 ) THEN + 34 * 69 - + 38 + - 38 - + 99 * 19 + + - 43 END ) * - COUNT( * ) + - 96
----
-139

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT NULLIF ( - ( + - 43 ), CASE 81 WHEN + + SUM ( + 83 ) THEN + 34 * 69 - + 38 + - 38 - + 99 * 19 + + - 43 END ) * - COUNT ( * ) + - 96
----
-139

query I rowsort
SELECT DISTINCT + 68 * - 96 AS col2
----
-6528

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT 74 * - + ( - + COUNT( * ) )
----
74

skipif mysql # not compatible
query I rowsort label-8134
SELECT 74 * - + ( - + COUNT ( * ) )
----
74

query I rowsort
SELECT ALL - 95 - + 5 AS col1
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8136
SELECT CAST( NULL AS SIGNED ) / + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8136
SELECT CAST ( NULL AS INTEGER ) / + 16 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 88 AS col2
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8138
SELECT + + MAX( ALL 93 ), 48 AS col1
----
93
48

skipif mysql # not compatible
query II rowsort label-8138
SELECT + + MAX ( ALL 93 ), 48 AS col1
----
93
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8139
SELECT ALL + + COALESCE ( + - 82, + COUNT( * ) * - 22 + COUNT( * ) / + 11, + 45 / - 39 ) * - 11 + + 74 + + MIN( DISTINCT 16 ) * - 61 + CAST( NULL AS SIGNED ) + + 83 + - COUNT( ALL + CAST( 32 AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL + + COALESCE ( + - 82, + COUNT ( * ) * - 22 + COUNT ( * ) / + 11, + 45 / - 39 ) * - 11 + + 74 + + MIN ( DISTINCT 16 ) * - 61 + CAST ( NULL AS INTEGER ) + + 83 + - COUNT ( ALL + CAST ( 32 AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT ALL ( COUNT( DISTINCT - 50 ) ) * ( 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL ( COUNT ( DISTINCT - 50 ) ) * ( 84 ) AS col0
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-8141
SELECT + 80 DIV + 55 AS col0, + 9 AS col1
----
1
9

skipif mysql # not compatible
query II rowsort label-8141
SELECT + 80 / + 55 AS col0, + 9 AS col1
----
1
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8142
SELECT + SUM( ALL - 31 ), 64 AS col1
----
-31
64

skipif mysql # not compatible
query II rowsort label-8142
SELECT + SUM ( ALL - 31 ), 64 AS col1
----
-31
64

query I rowsort
SELECT + 64 * - 56 AS col2
----
-3584

query I rowsort
SELECT ALL - 26 * 28 + 88
----
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT COUNT( ALL - 96 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8145
SELECT COUNT ( ALL - 96 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT - MAX( ALL + 81 ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-8146
SELECT - MAX ( ALL + 81 ) col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT ALL - 19 * + 50 + - 38 * + 30 + - COUNT( * ) AS col2
----
-2091

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL - 19 * + 50 + - 38 * + 30 + - COUNT ( * ) AS col2
----
-2091

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT DISTINCT COUNT( + 10 ) * 29 + 61
----
90

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT COUNT ( + 10 ) * 29 + 61
----
90

query I rowsort
SELECT ALL + 40 * + + 5 + - 53 col2
----
147

onlyif mysql # aggregate syntax: 
query III rowsort label-8150
SELECT DISTINCT - 54 * + 12 + - ( + COUNT( * ) ) AS col2, + 26 * - 7 + + + 51 AS col2, + 47 * + - 20
----
-649
-131
-940

skipif mysql # not compatible
query III rowsort label-8150
SELECT DISTINCT - 54 * + 12 + - ( + COUNT ( * ) ) AS col2, + 26 * - 7 + + + 51 AS col2, + 47 * + - 20
----
-649
-131
-940

query I rowsort
SELECT DISTINCT + COALESCE ( + - 1, + + 21 * 92 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT ALL + COUNT( * ) * + - 79 + - - 81
----
2

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL + COUNT ( * ) * + - 79 + - - 81
----
2

query I rowsort
SELECT + CASE - 14 WHEN ( 30 ) THEN + 22 / - 38 + - 13 ELSE + 83 + + 37 END
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8154
SELECT MIN( DISTINCT CAST( - + 39 AS SIGNED ) ) col1
----
-39

skipif mysql # not compatible
query I rowsort label-8154
SELECT MIN ( DISTINCT CAST ( - + 39 AS INTEGER ) ) col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT DISTINCT MAX( ALL - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT MAX ( ALL - 42 )
----
-42

query I rowsort
SELECT ALL - 62 * - + 47 AS col1
----
2914

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT + 26 + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-8157
SELECT + 26 + COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT - 32 * + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-8158
SELECT - 32 * + COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT ALL MAX( DISTINCT + + 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL MAX ( DISTINCT + + 31 ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT + COUNT( * ) + - 1 * - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8160
SELECT + COUNT ( * ) + - 1 * - COUNT ( * ) AS col1
----
2

query I rowsort
SELECT - 96 * - ( - + 74 ) * - 58 AS col1
----
412032

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT ALL COALESCE ( 6, - 41, - COUNT( * ) )
----
6

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL COALESCE ( 6, - 41, - COUNT ( * ) )
----
6

query I rowsort
SELECT DISTINCT 19 - NULLIF ( + 68, - - 81 * 97 ) + - 77
----
-126

query I rowsort
SELECT ALL ( - - 81 )
----
81

query I rowsort
SELECT + 43 + + 59 AS col1
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-8166
SELECT + 60 DIV + 22
----
2

skipif mysql # not compatible
query I rowsort label-8166
SELECT + 60 / + 22
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8167
SELECT - 66 * + ( NULLIF ( + + 46, - - COUNT( * ) ) ) AS col0, - 31 + + 41
----
-3036
10

skipif mysql # not compatible
query II rowsort label-8167
SELECT - 66 * + ( NULLIF ( + + 46, - - COUNT ( * ) ) ) AS col0, - 31 + + 41
----
-3036
10

query I rowsort
SELECT - 25 + 31
----
6

query I rowsort
SELECT - ( 30 ) * + 29
----
-870

query II rowsort
SELECT 8 AS col0, 13
----
8
13

query I rowsort
SELECT DISTINCT ( - 17 )
----
-17

query I rowsort
SELECT ALL + 28 * + - 31 * - + 83
----
72044

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT - 6 * - - 62 * - SUM( ALL - 54 ) AS col1
----
-20088

skipif mysql # not compatible
query I rowsort label-8173
SELECT - 6 * - - 62 * - SUM ( ALL - 54 ) AS col1
----
-20088

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ALL + - COUNT( * ) + + 78 * ( - 45 ) AS col1
----
-3511

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL + - COUNT ( * ) + + 78 * ( - 45 ) AS col1
----
-3511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8175
SELECT ALL + 61, ( + 62 ) * - 43 + - 7 + COUNT( * ) - + CAST( NULL AS SIGNED ) * - 91 / - COUNT( * ) col2
----
61
NULL

skipif mysql # not compatible
query II rowsort label-8175
SELECT ALL + 61, ( + 62 ) * - 43 + - 7 + COUNT ( * ) - + CAST ( NULL AS INTEGER ) * - 91 / - COUNT ( * ) col2
----
61
NULL

query I rowsort
SELECT - - 4 col0
----
4

query I rowsort
SELECT - + 74 - - 2 AS col2
----
-72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8178
SELECT ALL + - 47 / + - 29 + + AVG ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL + - 47 / + - 29 + + AVG ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT - - 99 * - - 13
----
1287

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8180
SELECT ALL - MAX( + ( 86 ) ) DIV - 46 + + 71 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL - MAX ( + ( 86 ) ) / - 46 + + 71 AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8181
SELECT COALESCE ( - 84, 4, + - 14 * + 69 ) DIV + + MAX( ALL + 43 ) + + 71 + - - 42 AS col2
----
112

skipif mysql # not compatible
query I rowsort label-8181
SELECT COALESCE ( - 84, 4, + - 14 * + 69 ) / + + MAX ( ALL + 43 ) + + 71 + - - 42 AS col2
----
112

query I rowsort
SELECT - 51 * - - COALESCE ( - 33, - + 42, + 94 ) + + + 73 + - + 93 - - 41 * + 71 - + 7 + - NULLIF ( ( 46 ), - + 38 ) * - 50
----
6867

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8183
SELECT - CASE + - 86 WHEN 51 THEN + - 65 + + 33 * - CASE ( - ( + - 88 ) ) WHEN - 99 THEN NULL WHEN + 12 THEN + - ( - + 80 ) - 49 END WHEN + 92 / + - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8183
SELECT - CASE + - 86 WHEN 51 THEN + - 65 + + 33 * - CASE ( - ( + - 88 ) ) WHEN - 99 THEN NULL WHEN + 12 THEN + - ( - + 80 ) - 49 END WHEN + 92 / + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8184
SELECT ALL - 95 DIV + - COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL - 95 / + - COUNT ( * ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT ALL + + COUNT( * ) * - 23 + - - 73 * 53
----
3846

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL + + COUNT ( * ) * - 23 + - - 73 * 53
----
3846

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT + ( - + 35 ) * + COUNT( * ) + 61
----
26

skipif mysql # not compatible
query I rowsort label-8186
SELECT + ( - + 35 ) * + COUNT ( * ) + 61
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT DISTINCT - CASE + 98 WHEN - - 40 THEN NULL WHEN 61 THEN - - 81 END * + COALESCE ( 93, - + CAST( NULL AS SIGNED ) / - + 15 / + + 27 * - COALESCE ( 12, - + 68 * - 95 ) ) - 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT - CASE + 98 WHEN - - 40 THEN NULL WHEN 61 THEN - - 81 END * + COALESCE ( 93, - + CAST ( NULL AS INTEGER ) / - + 15 / + + 27 * - COALESCE ( 12, - + 68 * - 95 ) ) - 4 AS col2
----
NULL

query I rowsort
SELECT ALL + 79 * - + 49 + + 78 + + + 6 AS col0
----
-3787

onlyif mysql # aggregate syntax: 
query II rowsort label-8189
SELECT 45 AS col0, - COUNT( * ) AS col1
----
45
-1

skipif mysql # not compatible
query II rowsort label-8189
SELECT 45 AS col0, - COUNT ( * ) AS col1
----
45
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8190
SELECT + + COUNT( * ) + - 62 + + 42 AS col0, 40 + + + 42
----
-19
82

skipif mysql # not compatible
query II rowsort label-8190
SELECT + + COUNT ( * ) + - 62 + + 42 AS col0, 40 + + + 42
----
-19
82

query II rowsort
SELECT ALL 75 * + - 89 - - 91, + ( + - 15 ) AS col0
----
-6584
-15

query I rowsort
SELECT DISTINCT 29 * + NULLIF ( - + 75, 70 ) * 81 + - 11 AS col1
----
-176186

query I rowsort
SELECT - + 37 * + 75 AS col0
----
-2775

query I rowsort
SELECT CASE WHEN NOT 64 IS NULL THEN NULL ELSE ( - 79 ) END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8195
SELECT DISTINCT 62 * - + COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT 62 * - + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT + COALESCE ( 16, + 71 + - 52, + - 66 * + 82 - - COUNT( * ), + + 17 )
----
16

skipif mysql # not compatible
query I rowsort label-8196
SELECT + COALESCE ( 16, + 71 + - 52, + - 66 * + 82 - - COUNT ( * ), + + 17 )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8197
SELECT + CAST( NULL AS SIGNED ) AS col2, - 54
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-8197
SELECT + CAST ( NULL AS INTEGER ) AS col2, - 54
----
NULL
-54

query I rowsort
SELECT + 20 * + 54 AS col0
----
1080

query I rowsort
SELECT DISTINCT 26 * + - 11
----
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT ALL COALESCE ( - 27, - NULLIF ( - MIN( - 62 ), + 49 ) - 67, NULLIF ( 37, - 93 * 97 ) - COUNT( * ) * + 53 + + - ( - 12 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL COALESCE ( - 27, - NULLIF ( - MIN ( - 62 ), + 49 ) - 67, NULLIF ( 37, - 93 * 97 ) - COUNT ( * ) * + 53 + + - ( - 12 ) )
----
-27

query II rowsort
SELECT ALL 69, 67 AS col0
----
69
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT DISTINCT MIN( DISTINCT + 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT MIN ( DISTINCT + 81 ) AS col2
----
81

query I rowsort
SELECT - ( - 16 ) AS col0
----
16

query I rowsort
SELECT - 42 * + 71
----
-2982

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8205
SELECT ALL 48 DIV COUNT( * ) * + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL 48 / COUNT ( * ) * + COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT + 30 + + + 51 + + COUNT( * ) - + - 66
----
148

skipif mysql # not compatible
query I rowsort label-8206
SELECT + 30 + + + 51 + + COUNT ( * ) - + - 66
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8207
SELECT + 89 * + 11 AS col1, 47 + - - MAX( ALL - 82 ) DIV 64 * 40 * - - COUNT( * )
----
979
7

skipif mysql # not compatible
query II rowsort label-8207
SELECT + 89 * + 11 AS col1, 47 + - - MAX ( ALL - 82 ) / 64 * 40 * - - COUNT ( * )
----
979
7

query I rowsort
SELECT ALL - 96 * 46
----
-4416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8209
SELECT + 6 DIV - - 26 * + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8209
SELECT + 6 / - - 26 * + COUNT ( * ) col2
----
0

query II rowsort
SELECT 2 AS col2, - 32 * 76
----
2
-2432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8211
SELECT ALL + CAST( NULL AS SIGNED ) + + 52 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL + CAST ( NULL AS INTEGER ) + + 52 col2
----
NULL

query I rowsort
SELECT ALL - 51 + - 89 + + 87 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT ALL + COUNT( * ) * - COUNT( * ) * + 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * + 35 AS col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-8214
SELECT + 35 DIV + 63 * + - 11
----
0

skipif mysql # not compatible
query I rowsort label-8214
SELECT + 35 / + 63 * + - 11
----
0

query I rowsort
SELECT ( - - 77 ) + - - 15 col1
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-8216
SELECT 54 AS col2, 82 DIV - + 48 - - ( 39 )
----
54
38

skipif mysql # not compatible
query II rowsort label-8216
SELECT 54 AS col2, 82 / - + 48 - - ( 39 )
----
54
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8217
SELECT CASE + - NULLIF ( + COUNT( * ), + 41 ) WHEN 15 THEN + + 1 ELSE NULL END col1, - CAST( 3 AS SIGNED )
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-8217
SELECT CASE + - NULLIF ( + COUNT ( * ), + 41 ) WHEN 15 THEN + + 1 ELSE NULL END col1, - CAST ( 3 AS INTEGER )
----
NULL
-3

query II rowsort
SELECT + 19 + + - 49 AS col0, 18 col1
----
-30
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT ALL - COUNT( * ) + + 6 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL - COUNT ( * ) + + 6 AS col0
----
5

query I rowsort
SELECT ALL + + 28 + - + 76
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-8221
SELECT - 0, COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-8221
SELECT - 0, COUNT ( * ) AS col2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT + 76 - - 30 + - 36 * 31 / - 9 * + - CASE + 5 WHEN - - COUNT( * ) THEN - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8222
SELECT + 76 - - 30 + - 36 * 31 / - 9 * + - CASE + 5 WHEN - - COUNT ( * ) THEN - 78 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8223
SELECT - 28 AS col1, ( + 8 ) * 83 - - COUNT( * ) AS col1
----
-28
665

skipif mysql # not compatible
query II rowsort label-8223
SELECT - 28 AS col1, ( + 8 ) * 83 - - COUNT ( * ) AS col1
----
-28
665

query I rowsort
SELECT ALL - + 15 + ( - - 72 ) - - - 7 AS col2
----
50

query I rowsort
SELECT DISTINCT - ( COALESCE ( 97, ( + 43 ) + + + ( + 27 ) ) ) + - 7
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8226
SELECT DISTINCT - NULLIF ( - + NULLIF ( + CAST( NULL AS SIGNED ), - 48 ), + - 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT - NULLIF ( - + NULLIF ( + CAST ( NULL AS INTEGER ), - 48 ), + - 85 )
----
NULL

query I rowsort
SELECT ALL - + 40 * 2 * - 40 * - 43
----
-137600

query I rowsort
SELECT ( 86 ) * + + 76 AS col2
----
6536

query I rowsort
SELECT ALL - - 23 * - 60 * - 55 * + 78 * + 32 + - ( + 48 )
----
189446352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8230
SELECT ALL - - 48 * - 35 + CASE CAST( 17 AS SIGNED ) WHEN + COUNT( * ) + + AVG ( + - 9 ) * + NULLIF ( - 57, 77 * - + 24 ) THEN - 43 WHEN MIN( - 23 ) * + 71 - + + 66 + 52 THEN NULL END + + 21 * + + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL - - 48 * - 35 + CASE CAST ( 17 AS INTEGER ) WHEN + COUNT ( * ) + + AVG ( + - 9 ) * + NULLIF ( - 57, 77 * - + 24 ) THEN - 43 WHEN MIN ( - 23 ) * + 71 - + + 66 + 52 THEN NULL END + + 21 * + + 2 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8231
SELECT - 57 * - CAST( NULL AS SIGNED ) + + COUNT( * ) * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-8231
SELECT - 57 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 43
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8232
SELECT ALL - - COUNT( * ) col0, 29 AS col0
----
1
29

skipif mysql # not compatible
query II rowsort label-8232
SELECT ALL - - COUNT ( * ) col0, 29 AS col0
----
1
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8233
SELECT 75 * 52 AS col0, COUNT( * ) AS col0
----
3900
1

skipif mysql # not compatible
query II rowsort label-8233
SELECT 75 * 52 AS col0, COUNT ( * ) AS col0
----
3900
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8234
SELECT 85 * - 61, + CASE + 85 WHEN + ( - - COALESCE ( - - 61, 48 + - 10 ) ) THEN + + 97 ELSE - 81 END + + ( + - CASE WHEN NOT - 31 = NULL THEN - - COALESCE ( - + 2, + 65 + - COUNT( * ) ) END ) * - 74 * + 29 col2
----
-5185
NULL

skipif mysql # not compatible
query II rowsort label-8234
SELECT 85 * - 61, + CASE + 85 WHEN + ( - - COALESCE ( - - 61, 48 + - 10 ) ) THEN + + 97 ELSE - 81 END + + ( + - CASE WHEN NOT - 31 = NULL THEN - - COALESCE ( - + 2, + 65 + - COUNT ( * ) ) END ) * - 74 * + 29 col2
----
-5185
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8235
SELECT 88 * + + 37 AS col1, SUM( ALL + 66 )
----
3256
66

skipif mysql # not compatible
query II rowsort label-8235
SELECT 88 * + + 37 AS col1, SUM ( ALL + 66 )
----
3256
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL COUNT( ALL + 26 ) * - 31
----
-31

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL COUNT ( ALL + 26 ) * - 31
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8237
SELECT ALL + 27 DIV + + 13
----
2

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL + 27 / + + 13
----
2

query I rowsort
SELECT 68 + + + 45 - 20
----
93

query I rowsort
SELECT 75 * - + 79 col0
----
-5925

query I rowsort
SELECT 10 * + - 67 * - 52
----
34840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8241
SELECT NULLIF ( + 63, - - COUNT( * ) ) DIV + 54 + + - 24
----
-23

skipif mysql # not compatible
query I rowsort label-8241
SELECT NULLIF ( + 63, - - COUNT ( * ) ) / + 54 + + - 24
----
-23

query I rowsort
SELECT ALL 7 + 71 + 19 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT 94 + - SUM( + + 46 )
----
48

skipif mysql # not compatible
query I rowsort label-8243
SELECT 94 + - SUM ( + + 46 )
----
48

query I rowsort
SELECT ALL 25 * ( + ( - 8 ) ) AS col0
----
-200

query I rowsort
SELECT 0 * ( - 70 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT DISTINCT - 55 + + + 91 * - 88 * + CASE + COUNT( * ) WHEN + - 89 THEN - + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT DISTINCT - 55 + + + 91 * - 88 * + CASE + COUNT ( * ) WHEN + - 89 THEN - + 12 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT DISTINCT 60 + CAST( NULL AS SIGNED ) + + + ( + 76 ) + 72 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT 60 + CAST ( NULL AS INTEGER ) + + + ( + 76 ) + 72 col1
----
NULL

query II rowsort
SELECT ALL 71 + 58 AS col0, 96 + + 40 AS col2
----
129
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8249
SELECT ALL CAST( - COALESCE ( 21, 6 * 76 / - ( + + 33 ) * - ( 50 ) * - 46 + 55 * + + ( - 75 ) + - + 52 + + + MIN( + + 38 ) + - ( + CAST( - 50 AS SIGNED ) ) * 1 * - ( - 24 ), - 99 ) AS SIGNED ) + 62 * + 40 * + 12
----
29739

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL CAST ( - COALESCE ( 21, 6 * 76 / - ( + + 33 ) * - ( 50 ) * - 46 + 55 * + + ( - 75 ) + - + 52 + + + MIN ( + + 38 ) + - ( + CAST ( - 50 AS INTEGER ) ) * 1 * - ( - 24 ), - 99 ) AS INTEGER ) + 62 * + 40 * + 12
----
29739

query I rowsort
SELECT DISTINCT 24 + 29 AS col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-8251
SELECT + COUNT( * ) * + 93 AS col1, - 85 + 74 + 23 * 62 AS col1
----
93
1415

skipif mysql # not compatible
query II rowsort label-8251
SELECT + COUNT ( * ) * + 93 AS col1, - 85 + 74 + 23 * 62 AS col1
----
93
1415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8252
SELECT COUNT( * ) + - 12 DIV + - 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8252
SELECT COUNT ( * ) + - 12 / + - 61 AS col2
----
1

query II rowsort
SELECT ALL 77 + 94 AS col1, + 67 AS col1
----
171
67

query II rowsort
SELECT 13 + 46 - - - 18 AS col1, ( + 79 )
----
41
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8255
SELECT 57 * NULLIF ( + + COUNT( * ), CAST( NULL AS SIGNED ) * - ( - CAST( NULL AS SIGNED ) ) - - - 68 + - 94 - 60 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-8255
SELECT 57 * NULLIF ( + + COUNT ( * ), CAST ( NULL AS INTEGER ) * - ( - CAST ( NULL AS INTEGER ) ) - - - 68 + - 94 - 60 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ALL - COUNT( * ) + ( + 66 ) * + + 17
----
1121

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL - COUNT ( * ) + ( + 66 ) * + + 17
----
1121

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT - + COUNT( - 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-8257
SELECT - + COUNT ( - 39 )
----
-1

query I rowsort
SELECT ALL - + 88 - - 64 * + 22 AS col2
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT - COUNT( - 59 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8259
SELECT - COUNT ( - 59 ) col1
----
-1

query I rowsort
SELECT ALL + 92 * COALESCE ( - 65, + 90 )
----
-5980

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT + COALESCE ( - COUNT( * ), + 74, 90 + - 81 ) * + 69 + + 18 * 6 + + + 85 + + - 0 + 37 * + 85 * 28 * - CASE 30 WHEN COUNT( * ) THEN + + 27 WHEN + NULLIF ( + COUNT( * ), + 77 * 69 * - - 97 + ( + 25 ) + - - 89 * + + 0 ) THEN NULL WHEN 87 * 13 THEN NULL ELSE NULL END * + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8261
SELECT + COALESCE ( - COUNT ( * ), + 74, 90 + - 81 ) * + 69 + + 18 * 6 + + + 85 + + - 0 + 37 * + 85 * 28 * - CASE 30 WHEN COUNT ( * ) THEN + + 27 WHEN + NULLIF ( + COUNT ( * ), + 77 * 69 * - - 97 + ( + 25 ) + - - 89 * + + 0 ) THEN NULL WHEN 87 * 13 THEN NULL ELSE NULL END * + 91 AS col2
----
NULL

query II rowsort
SELECT - 32 * 5 AS col0, + 89 * - 4 AS col1
----
-160
-356

onlyif mysql # aggregate syntax: 
query II rowsort label-8263
SELECT 62 * - + 17 AS col0, COUNT( * )
----
-1054
1

skipif mysql # not compatible
query II rowsort label-8263
SELECT 62 * - + 17 AS col0, COUNT ( * )
----
-1054
1

query I rowsort
SELECT 92 + - 38
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT 15 * - MAX( DISTINCT - 77 ) - + - 13 - + 67 AS col1
----
1101

skipif mysql # not compatible
query I rowsort label-8265
SELECT 15 * - MAX ( DISTINCT - 77 ) - + - 13 - + 67 AS col1
----
1101

query I rowsort
SELECT ( - + 99 ) * - 59 + + - 87 + - 3 AS col1
----
5751

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT ( - SUM( - COALESCE ( + + 92, + 45 ) ) ) * + 90 + 59 AS col2
----
8339

skipif mysql # not compatible
query I rowsort label-8267
SELECT ( - SUM ( - COALESCE ( + + 92, + 45 ) ) ) * + 90 + 59 AS col2
----
8339

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT 4 + - 25 * ( + COUNT( * ) )
----
-21

skipif mysql # not compatible
query I rowsort label-8268
SELECT 4 + - 25 * ( + COUNT ( * ) )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT DISTINCT + COUNT( * ) + - + 64 * + + 84
----
-5375

skipif mysql # not compatible
query I rowsort label-8269
SELECT DISTINCT + COUNT ( * ) + - + 64 * + + 84
----
-5375

query I rowsort
SELECT ALL - 68 + - - 11 col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT DISTINCT + COALESCE ( - + 22, + + 62 + 88 + - 35 * - COUNT( * ) ) * - - 89 AS col2
----
-1958

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT + COALESCE ( - + 22, + + 62 + 88 + - 35 * - COUNT ( * ) ) * - - 89 AS col2
----
-1958

query II rowsort
SELECT - 23 * ( ( ( 76 ) ) ) * - 55 + - - ( + 43 ) AS col1, - 99 AS col0
----
96183
-99

query I rowsort
SELECT ALL - ( + 22 ) + + 18 + - 4
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL MIN( DISTINCT + 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL MIN ( DISTINCT + 44 ) AS col2
----
44

query II rowsort
SELECT - 32, + 49 + + 17 * 69 AS col0
----
-32
1222

query I rowsort
SELECT + 77 * - ( 82 ) * + 28
----
-176792

onlyif mysql # aggregate syntax: 
query II rowsort label-8277
SELECT DISTINCT - ( - 33 ) + - COUNT( * ), - 30 AS col0
----
32
-30

skipif mysql # not compatible
query II rowsort label-8277
SELECT DISTINCT - ( - 33 ) + - COUNT ( * ), - 30 AS col0
----
32
-30

query I rowsort
SELECT - 47 * 17
----
-799

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8279
SELECT ALL + CASE + CAST( + 2 AS SIGNED ) WHEN + 59 THEN NULL WHEN + 4 THEN CAST( NULL AS SIGNED ) * - CASE 65 WHEN + 95 THEN NULL WHEN + 69 * + 79 + - + 58 + - - 7 THEN - CASE + CASE + - 79 WHEN + - 53 + - + 27 + - - 39 THEN - 67 WHEN + + 4 + - MAX( ALL + 99 ) + COUNT( * ) + + 55 * - CAST( 6 AS SIGNED ) * - ( 21 ) THEN NULL END WHEN 2 THEN - ( 1 ) ELSE NULL END END WHEN NULLIF ( - COUNT( 8 ), 3 ) THEN NULL ELSE - 33 END * 26 AS col0
----
-858

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL + CASE + CAST ( + 2 AS INTEGER ) WHEN + 59 THEN NULL WHEN + 4 THEN CAST ( NULL AS INTEGER ) * - CASE 65 WHEN + 95 THEN NULL WHEN + 69 * + 79 + - + 58 + - - 7 THEN - CASE + CASE + - 79 WHEN + - 53 + - + 27 + - - 39 THEN - 67 WHEN + + 4 + - MAX ( ALL + 99 ) + COUNT ( * ) + + 55 * - CAST ( 6 AS INTEGER ) * - ( 21 ) THEN NULL END WHEN 2 THEN - ( 1 ) ELSE NULL END END WHEN NULLIF ( - COUNT ( 8 ), 3 ) THEN NULL ELSE - 33 END * 26 AS col0
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT ALL ( + - 73 ) + + COUNT( * ) col1
----
-72

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL ( + - 73 ) + + COUNT ( * ) col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT DISTINCT + 90 * + COUNT( * ) * + 91
----
8190

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT + 90 * + COUNT ( * ) * + 91
----
8190

query I rowsort
SELECT - - 26 + - 38
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8283
SELECT 46, - COUNT( DISTINCT 86 ) col2
----
46
-1

skipif mysql # not compatible
query II rowsort label-8283
SELECT 46, - COUNT ( DISTINCT 86 ) col2
----
46
-1

query I rowsort
SELECT - + 51 + - + 7
----
-58

query I rowsort
SELECT ALL ( + - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL + + 82 - - ( COUNT( * ) ) + - 62 + + 18 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL + + 82 - - ( COUNT ( * ) ) + - 62 + + 18 AS col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8287
SELECT ALL + 7 - 73 DIV 66 * - 52 DIV + 81
----
7

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL + 7 - 73 / 66 * - 52 / + 81
----
7

query I rowsort
SELECT - + ( - - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT + COUNT( DISTINCT 35 ) + + 21 * + - 60
----
-1259

skipif mysql # not compatible
query I rowsort label-8289
SELECT + COUNT ( DISTINCT 35 ) + + 21 * + - 60
----
-1259

query I rowsort
SELECT + 94 * - 84 * + - 48 AS col2
----
379008

onlyif mysql # aggregate syntax: 
query II rowsort label-8291
SELECT DISTINCT 41, COUNT( * ) AS col2
----
41
1

skipif mysql # not compatible
query II rowsort label-8291
SELECT DISTINCT 41, COUNT ( * ) AS col2
----
41
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8292
SELECT + 17 + CASE + 14 WHEN 68 THEN + - 52 * - COUNT( * ) - + CAST( NULL AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT + 17 + CASE + 14 WHEN 68 THEN + - 52 * - COUNT ( * ) - + CAST ( NULL AS REAL ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8293
SELECT + COUNT( * ), - MIN( ALL - - 5 ) + - COUNT( * ) DIV 70 DIV - - COALESCE ( 26, - CASE + 16 WHEN 65 THEN ( 22 ) ELSE NULL END ) col0
----
1
-5

skipif mysql # not compatible
query II rowsort label-8293
SELECT + COUNT ( * ), - MIN ( ALL - - 5 ) + - COUNT ( * ) / 70 / - - COALESCE ( 26, - CASE + 16 WHEN 65 THEN ( 22 ) ELSE NULL END ) col0
----
1
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8294
SELECT ALL + + 53 AS col0, COUNT( ALL CAST( NULL AS SIGNED ) ) AS col1
----
53
0

skipif mysql # not compatible
query II rowsort label-8294
SELECT ALL + + 53 AS col0, COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
53
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8295
SELECT ALL - COUNT( * ) DIV 70 * - 32
----
0

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL - COUNT ( * ) / 70 * - 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT ALL + - COUNT( + 31 ) * 22 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL + - COUNT ( + 31 ) * 22 AS col1
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8297
SELECT DISTINCT 75 * + - 2 - - 48 + - MAX( + - 9 ) DIV - MIN( ALL 75 ) + + - 93
----
-195

skipif mysql # not compatible
query I rowsort label-8297
SELECT DISTINCT 75 * + - 2 - - 48 + - MAX ( + - 9 ) / - MIN ( ALL 75 ) + + - 93
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT DISTINCT + ( - ( CASE + - 46 WHEN + + 8 THEN NULL WHEN 1 + + + 93 + + 83 THEN + SUM( + - 92 ) END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT + ( - ( CASE + - 46 WHEN + + 8 THEN NULL WHEN 1 + + + 93 + + 83 THEN + SUM ( + - 92 ) END ) )
----
NULL

query I rowsort
SELECT + ( - + 69 ) * - 63 AS col0
----
4347

query I rowsort
SELECT - 50 * 9
----
-450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8301
SELECT + COALESCE ( - + 24, - 8 * + + 47 - + 84 + 9 + - 79 + COUNT( * ) + + CASE - - 43 WHEN 83 THEN NULL WHEN + + 26 DIV - 56 + CAST( NULL AS SIGNED ) - 31 THEN ( COUNT( * ) ) + - + COUNT( * ) END + NULLIF ( + 83, - MAX( DISTINCT + 84 ) + + SUM( DISTINCT + 14 ) * + 3 + + 83 ) * + COUNT( * ) DIV + - COUNT( * ) DIV + 64 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-8301
SELECT + COALESCE ( - + 24, - 8 * + + 47 - + 84 + 9 + - 79 + COUNT ( * ) + + CASE - - 43 WHEN 83 THEN NULL WHEN + + 26 / - 56 + CAST ( NULL AS INTEGER ) - 31 THEN ( COUNT ( * ) ) + - + COUNT ( * ) END + NULLIF ( + 83, - MAX ( DISTINCT + 84 ) + + SUM ( DISTINCT + 14 ) * + 3 + + 83 ) * + COUNT ( * ) / + - COUNT ( * ) / + 64 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-8302
SELECT + COUNT( * ) * - 23 * - 74 * - 32, 4 AS col0
----
-54464
4

skipif mysql # not compatible
query II rowsort label-8302
SELECT + COUNT ( * ) * - 23 * - 74 * - 32, 4 AS col0
----
-54464
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT + NULLIF ( - + 13, - 59 * + COUNT( * ) + + 28 + 8 ) - + ( 65 ) + + 80
----
2

skipif mysql # not compatible
query I rowsort label-8303
SELECT + NULLIF ( - + 13, - 59 * + COUNT ( * ) + + 28 + 8 ) - + ( 65 ) + + 80
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8304
SELECT DISTINCT + MIN( + 35 ) col1, - 57
----
35
-57

skipif mysql # not compatible
query II rowsort label-8304
SELECT DISTINCT + MIN ( + 35 ) col1, - 57
----
35
-57

query II rowsort
SELECT 36 * - + 77 - + 2 - + 36 AS col1, 68 * + 4
----
-2810
272

query I rowsort
SELECT NULLIF ( + COALESCE ( - 99, + 43 ), - 91 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL + 66 * - + 89 + - ( - COUNT( * ) )
----
-5873

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL + 66 * - + 89 + - ( - COUNT ( * ) )
----
-5873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8308
SELECT + 90 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT + 90 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 50 * + ( NULLIF ( + + 51, + 72 * - 65 ) ) + 60
----
2610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8310
SELECT NULLIF ( - + CAST( NULL AS SIGNED ), SUM( DISTINCT CAST( NULL AS DECIMAL ) ) ) AS col0, - 79 * - NULLIF ( + - 69, 34 + 55 )
----
NULL
-5451

skipif mysql # not compatible
query II rowsort label-8310
SELECT NULLIF ( - + CAST ( NULL AS INTEGER ), SUM ( DISTINCT CAST ( NULL AS REAL ) ) ) AS col0, - 79 * - NULLIF ( + - 69, 34 + 55 )
----
NULL
-5451

query I rowsort
SELECT ALL - 89 * - 44 + - 29
----
3887

query II rowsort
SELECT - 60 - + COALESCE ( - 96, 92 ), 33 AS col2
----
36
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8313
SELECT + ( - COUNT( * ) ) AS col1, 48
----
-1
48

skipif mysql # not compatible
query II rowsort label-8313
SELECT + ( - COUNT ( * ) ) AS col1, 48
----
-1
48

query I rowsort
SELECT + 30 + - ( - ( - 71 ) ) + ( + 22 ) * - 37
----
-855

query I rowsort
SELECT - + 97 + ( - + 40 )
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-8316
SELECT - - 56 * + 28 * + - 12 + - 10 DIV 77 AS col1
----
-18816

skipif mysql # not compatible
query I rowsort label-8316
SELECT - - 56 * + 28 * + - 12 + - 10 / 77 AS col1
----
-18816

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8317
SELECT ALL + 98 * CAST( + - 4 AS SIGNED ) - + 58 + 76 AS col0, 80
----
-374
80

skipif mysql # not compatible
query II rowsort label-8317
SELECT ALL + 98 * CAST ( + - 4 AS INTEGER ) - + 58 + 76 AS col0, 80
----
-374
80

onlyif mysql # aggregate syntax: 
query II rowsort label-8318
SELECT ALL + COUNT( * ) - 52, 69 * + 32 AS col2
----
-51
2208

skipif mysql # not compatible
query II rowsort label-8318
SELECT ALL + COUNT ( * ) - 52, 69 * + 32 AS col2
----
-51
2208

onlyif mysql # DIV for integer division: 
query I rowsort label-8319
SELECT DISTINCT - 78 DIV + + 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT - 78 / + + 79 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8320
SELECT - 78 + - + 98 AS col1, CAST( NULL AS SIGNED )
----
-176
NULL

skipif mysql # not compatible
query II rowsort label-8320
SELECT - 78 + - + 98 AS col1, CAST ( NULL AS INTEGER )
----
-176
NULL

query I rowsort
SELECT - + 45 * 89 + 79 AS col2
----
-3926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8322
SELECT DISTINCT - NULLIF ( + CAST( + COUNT( * ) AS SIGNED ), + + ( 4 ) + 84 ) DIV + + 66 * - 31 - - 96, 27 AS col1
----
96
27

skipif mysql # not compatible
query II rowsort label-8322
SELECT DISTINCT - NULLIF ( + CAST ( + COUNT ( * ) AS INTEGER ), + + ( 4 ) + 84 ) / + + 66 * - 31 - - 96, 27 AS col1
----
96
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8323
SELECT + - 90 DIV + CAST( - COUNT( * ) AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-8323
SELECT + - 90 / + CAST ( - COUNT ( * ) AS INTEGER )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8324
SELECT ALL - CAST( - 86 AS SIGNED ) * + COUNT( * ) * - 8 + COUNT( * ), 79 AS col0
----
-687
79

skipif mysql # not compatible
query II rowsort label-8324
SELECT ALL - CAST ( - 86 AS INTEGER ) * + COUNT ( * ) * - 8 + COUNT ( * ), 79 AS col0
----
-687
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8325
SELECT - 54 + + 10 + + ( 2 ) col0, + CAST( NULL AS SIGNED )
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-8325
SELECT - 54 + + 10 + + ( 2 ) col0, + CAST ( NULL AS INTEGER )
----
-42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT ALL + COUNT( * ) * - MIN( + - 91 ) * 42 + - ( 21 ) - ( - 67 ) AS col0
----
3868

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL + COUNT ( * ) * - MIN ( + - 91 ) * 42 + - ( 21 ) - ( - 67 ) AS col0
----
3868

onlyif mysql # aggregate syntax: 
query II rowsort label-8327
SELECT DISTINCT + NULLIF ( - SUM( - - ( 18 ) ), - + 69 ) AS col1, 26
----
-18
26

skipif mysql # not compatible
query II rowsort label-8327
SELECT DISTINCT + NULLIF ( - SUM ( - - ( 18 ) ), - + 69 ) AS col1, 26
----
-18
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8328
SELECT DISTINCT + 82 * CAST( 50 AS SIGNED ) AS col2
----
4100

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT + 82 * CAST ( 50 AS INTEGER ) AS col2
----
4100

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT ALL 20 + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL 20 + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT DISTINCT - 91 + COUNT( * ) + 99 * + + ( - 46 ) AS col0
----
-4644

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT - 91 + COUNT ( * ) + 99 * + + ( - 46 ) AS col0
----
-4644

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT - COUNT( * ) + 68 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-8331
SELECT - COUNT ( * ) + 68 AS col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8332
SELECT + 50 + - CAST( + + 86 AS SIGNED ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-8332
SELECT + 50 + - CAST ( + + 86 AS INTEGER ) AS col2
----
-36

query I rowsort
SELECT + 26 * + 83 AS col0
----
2158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8334
SELECT + 96 DIV 49 * - - 46 + - COALESCE ( 17, + + 55 + - - 40, - + COUNT( * ) DIV + 62 * - 90 + + 71 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-8334
SELECT + 96 / 49 * - - 46 + - COALESCE ( 17, + + 55 + - - 40, - + COUNT ( * ) / + 62 * - 90 + + 71 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT + NULLIF ( - 49, + NULLIF ( + 54, - + COUNT( * ) ) ) + + - 76 + + 63
----
-62

skipif mysql # not compatible
query I rowsort label-8335
SELECT + NULLIF ( - 49, + NULLIF ( + 54, - + COUNT ( * ) ) ) + + - 76 + + 63
----
-62

query I rowsort
SELECT ALL 84 * + + 84
----
7056

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT 41 * - 14 + - MIN( ( + 62 ) ) col1
----
-636

skipif mysql # not compatible
query I rowsort label-8337
SELECT 41 * - 14 + - MIN ( ( + 62 ) ) col1
----
-636

query I rowsort
SELECT ALL 2 + + + 20
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-8339
SELECT DISTINCT 13 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-8339
SELECT DISTINCT 13 / + 95
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8340
SELECT ALL 48 * - 38 DIV - COUNT( * ) AS col2
----
1824

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL 48 * - 38 / - COUNT ( * ) AS col2
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT DISTINCT COUNT( * ) + - 89 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT COUNT ( * ) + - 89 AS col0
----
-88

query I rowsort
SELECT 0 * - NULLIF ( - 42, + 4 - - 73 ) * + 91 - + - 6
----
6

query I rowsort
SELECT ( - NULLIF ( + 69, - 84 * - 27 + - + NULLIF ( + 90, 2 ) - - 15 * - 23 * - + 96 * - 21 * 87 ) ) + - 55 AS col0
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT 78 * + COUNT( * ) + 99 * - NULLIF ( - 83, - 51 * + + 19 + - + AVG ( DISTINCT 0 ) - - ( - + 68 ) + - + COUNT( * ) + + ( ( - + 81 ) ) * + 28 ) + - - NULLIF ( 91, - 59 + CASE COUNT( * ) WHEN - 5 * + 59 THEN NULL ELSE + 25 + ( - + 32 ) END ) + + 22
----
8408

skipif mysql # not compatible
query I rowsort label-8344
SELECT 78 * + COUNT ( * ) + 99 * - NULLIF ( - 83, - 51 * + + 19 + - + AVG ( DISTINCT 0 ) - - ( - + 68 ) + - + COUNT ( * ) + + ( ( - + 81 ) ) * + 28 ) + - - NULLIF ( 91, - 59 + CASE COUNT ( * ) WHEN - 5 * + 59 THEN NULL ELSE + 25 + ( - + 32 ) END ) + + 22
----
8408

query I rowsort
SELECT DISTINCT - NULLIF ( + 97, - 29 * + + 83 )
----
-97

query I rowsort
SELECT DISTINCT - + 1 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8347
SELECT ALL + + COALESCE ( - SUM( CAST( NULL AS SIGNED ) ), + + 46 + - + COALESCE ( + 76, + ( + 70 ) ) * + 6 ) * - + ( + - 65 )
----
-26650

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL + + COALESCE ( - SUM ( CAST ( NULL AS INTEGER ) ), + + 46 + - + COALESCE ( + 76, + ( + 70 ) ) * + 6 ) * - + ( + - 65 )
----
-26650

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT COUNT( * ) * - 26 * 14 * - 85 + - MIN( DISTINCT 38 )
----
30902

skipif mysql # not compatible
query I rowsort label-8348
SELECT COUNT ( * ) * - 26 * 14 * - 85 + - MIN ( DISTINCT 38 )
----
30902

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT MIN( ALL + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-8349
SELECT MIN ( ALL + 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT - 85 * + COUNT( * ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-8350
SELECT - 85 * + COUNT ( * ) AS col0
----
-85

query I rowsort
SELECT - - 80 AS col0
----
80

query I rowsort
SELECT 98 + - - 36 + 87 * + + 5
----
569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8353
SELECT - 52 * 93 * - CAST( - ( - + NULLIF ( 99, COUNT( * ) ) ) AS SIGNED )
----
478764

skipif mysql # not compatible
query I rowsort label-8353
SELECT - 52 * 93 * - CAST ( - ( - + NULLIF ( 99, COUNT ( * ) ) ) AS INTEGER )
----
478764

query II rowsort
SELECT ALL - 47 AS col1, 89 AS col2
----
-47
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT ALL - - 14 + + 79 * 73 + + CASE + 65 WHEN - + 7 THEN - + 85 WHEN 56 THEN - MAX( + 57 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL - - 14 + + 79 * 73 + + CASE + 65 WHEN - + 7 THEN - + 85 WHEN 56 THEN - MAX ( + 57 ) END
----
NULL

query I rowsort
SELECT 70 * + 92 * + 95 AS col1
----
611800

query I rowsort
SELECT + 1 + 21
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8358
SELECT 13 DIV 61 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8358
SELECT 13 / 61 * - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8359
SELECT 94 * COUNT( * ) * + CAST( 81 AS SIGNED ) * 4 + 29 AS col1
----
30485

skipif mysql # not compatible
query I rowsort label-8359
SELECT 94 * COUNT ( * ) * + CAST ( 81 AS INTEGER ) * 4 + 29 AS col1
----
30485

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL + 36 + MIN( DISTINCT + + 57 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL + 36 + MIN ( DISTINCT + + 57 ) AS col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8361
SELECT ALL - 82 DIV + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL - 82 / + COUNT ( * )
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-8362
SELECT DISTINCT 43 + ( 52 ) DIV + + 8
----
49

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT 43 + ( 52 ) / + + 8
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT ALL COUNT( * ) + - 36 col2
----
-35

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL COUNT ( * ) + - 36 col2
----
-35

query I rowsort
SELECT ALL 61 * - - 60 AS col2
----
3660

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT ALL - COUNT( * ) * + 20 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL - COUNT ( * ) * + 20 AS col1
----
-20

query III rowsort
SELECT 19 * - - 10 AS col1, + 3 - + 78, - 86 AS col2
----
190
-75
-86

query I rowsort
SELECT DISTINCT - 92 - + + 5 + + 43 + 90 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT ALL - ( + MIN( DISTINCT 97 ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL - ( + MIN ( DISTINCT 97 ) ) AS col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8369
SELECT 9 * ( - - COUNT( * ) ) DIV 34 * + 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8369
SELECT 9 * ( - - COUNT ( * ) ) / 34 * + 46 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8370
SELECT COUNT( * ) - CASE + 1 WHEN 45 DIV 43 THEN - 93 * ( + - 10 ) - 47 + - 83 + - COALESCE ( + 40, - SUM( ALL + 39 ), - 63 * ( - - ( - 1 ) ) ) * 35 DIV 34 END AS col0
----
-758

skipif mysql # not compatible
query I rowsort label-8370
SELECT COUNT ( * ) - CASE + 1 WHEN 45 / 43 THEN - 93 * ( + - 10 ) - 47 + - 83 + - COALESCE ( + 40, - SUM ( ALL + 39 ), - 63 * ( - - ( - 1 ) ) ) * 35 / 34 END AS col0
----
-758

query II rowsort
SELECT + 75 AS col1, 15 AS col0
----
75
15

query I rowsort
SELECT 10 * + 39 * - + COALESCE ( - - 48, - - 94, + + 20 - + 13 ) * 66 - + - 80 + - - 13
----
-1235427

query I rowsort
SELECT ALL - 74 - 75 + - - 18 * - 67
----
-1355

query II rowsort
SELECT + 83, + 10 * 61 * - 92 AS col2
----
83
-56120

onlyif mysql # DIV for integer division: 
query I rowsort label-8375
SELECT + 33 DIV + 7 + - 26 * - 94 + + 72 + - - 61 + + ( - - 36 ) * - 22 * - 47 * + + 89 + - 3 col2
----
3315514

skipif mysql # not compatible
query I rowsort label-8375
SELECT + 33 / + 7 + - 26 * - 94 + + 72 + - - 61 + + ( - - 36 ) * - 22 * - 47 * + + 89 + - 3 col2
----
3315514

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL CASE + - 87 WHEN 30 + - 66 + + + 47 THEN NULL WHEN + COUNT( * ) * 12 + - - 39 THEN - 62 * + 84 + + 26 / + 63 END * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL CASE + - 87 WHEN 30 + - 66 + + + 47 THEN NULL WHEN + COUNT ( * ) * 12 + - - 39 THEN - 62 * + 84 + + 26 / + 63 END * - 85
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8377
SELECT - 79 * 10 * 79 + + + 44 AS col2, CAST( 0 AS SIGNED ) AS col2
----
-62366
0

skipif mysql # not compatible
query II rowsort label-8377
SELECT - 79 * 10 * 79 + + + 44 AS col2, CAST ( 0 AS INTEGER ) AS col2
----
-62366
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8378
SELECT 34 DIV - 65 + - MIN( 10 ) + + 43
----
33

skipif mysql # not compatible
query I rowsort label-8378
SELECT 34 / - 65 + - MIN ( 10 ) + + 43
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL - MAX( 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL - MAX ( 34 )
----
-34

query I rowsort
SELECT 82 + - - 8
----
90

query II rowsort
SELECT ALL - 26 col2, + 2
----
-26
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT DISTINCT COUNT( * ) * COUNT( * ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * COUNT ( * )
----
1

query I rowsort
SELECT 4 * + 78 + + 5
----
317

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT ALL - 82 + - 9 * - - COUNT( * ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL - 82 + - 9 * - - COUNT ( * ) col0
----
-91

query I rowsort
SELECT ALL + 24 + + 97 + + - ( + 54 ) + - 36
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT DISTINCT - + ( + + MAX( - - 58 ) ) * - 86 - - - 91 + 82 + + + 99 * - 93 + + 8
----
-4220

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT - + ( + + MAX ( - - 58 ) ) * - 86 - - - 91 + 82 + + + 99 * - 93 + + 8
----
-4220

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT DISTINCT 42 + COUNT( * ) * - + 69 + ( - 58 ) col1
----
-85

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT 42 + COUNT ( * ) * - + 69 + ( - 58 ) col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT 82 * - - COUNT( * ) * COUNT( * ) + - 25 + - + 21 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-8388
SELECT 82 * - - COUNT ( * ) * COUNT ( * ) + - 25 + - + 21 AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8389
SELECT ALL + COALESCE ( 3, 80 * + + 43 * - - COUNT( * ) ) + CAST( - 57 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL + COALESCE ( 3, 80 * + + 43 * - - COUNT ( * ) ) + CAST ( - 57 AS INTEGER )
----
-54

query II rowsort
SELECT - 72 AS col0, - 8 * + - 94
----
-72
752

onlyif mysql # aggregate syntax: 
query II rowsort label-8391
SELECT + COUNT( * ) + + + 51, - CASE + 1 WHEN - + ( COUNT( * ) ) THEN - 3 ELSE + + 15 END * + 40 AS col0
----
52
-600

skipif mysql # not compatible
query II rowsort label-8391
SELECT + COUNT ( * ) + + + 51, - CASE + 1 WHEN - + ( COUNT ( * ) ) THEN - 3 ELSE + + 15 END * + 40 AS col0
----
52
-600

query I rowsort
SELECT DISTINCT 38 * - - 30 AS col1
----
1140

query I rowsort
SELECT ALL + 5 - + 0 * + - ( - - 60 ) * 58 AS col0
----
5

query I rowsort
SELECT + 55 + + 44 AS col0
----
99

query I rowsort
SELECT - 61 - - COALESCE ( 80, 98 ) AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8396
SELECT - CASE - + 12 WHEN + CASE 73 WHEN - - 62 * 56 THEN + + 84 ELSE 70 - 52 END THEN - 10 * SUM( - CAST( - - 20 AS SIGNED ) ) * - - 85 + 74 + + + COUNT( * ) + - 96 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT - CASE - + 12 WHEN + CASE 73 WHEN - - 62 * 56 THEN + + 84 ELSE 70 - 52 END THEN - 10 * SUM ( - CAST ( - - 20 AS INTEGER ) ) * - - 85 + 74 + + + COUNT ( * ) + - 96 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT - 43 * + 98 + + + COUNT( * ) * NULLIF ( + + 70, - + 13 - + - 43 )
----
-4144

skipif mysql # not compatible
query I rowsort label-8397
SELECT - 43 * + 98 + + + COUNT ( * ) * NULLIF ( + + 70, - + 13 - + - 43 )
----
-4144

query I rowsort
SELECT - 30 * + NULLIF ( - 47, - + 44 )
----
1410

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT + MIN( + 52 ) * + 42 + + 3 col1
----
2187

skipif mysql # not compatible
query I rowsort label-8399
SELECT + MIN ( + 52 ) * + 42 + + 3 col1
----
2187

query I rowsort
SELECT - 1 + + - 67 * - - 11 * - 8 AS col2
----
5895

query I rowsort
SELECT ALL + 6 * + + 5
----
30

query II rowsort
SELECT DISTINCT 6 * + 80, + 94 AS col1
----
480
94

query I rowsort
SELECT DISTINCT - 61 * 60 * 18
----
-65880

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT NULLIF ( + + COUNT( * ), 89 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8404
SELECT NULLIF ( + + COUNT ( * ), 89 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT + 47 + COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-8405
SELECT + 47 + COUNT ( * ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ALL - 38 * 82 * 41 + - SUM( DISTINCT + 9 ) + 62
----
-127703

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL - 38 * 82 * 41 + - SUM ( DISTINCT + 9 ) + 62
----
-127703

query I rowsort
SELECT - 71 * 47 * - + 24
----
80088

query I rowsort
SELECT + ( - - 3 ) + ( - 68 )
----
-65

query I rowsort
SELECT DISTINCT 10 * - 48 + 76 * 9 * - - 28
----
18672

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8410
SELECT - - 91 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8410
SELECT - - 91 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT + CASE + 53 WHEN + NULLIF ( + COUNT( * ), - 47 ) THEN + COUNT( DISTINCT - 90 ) * COUNT( * ) + COALESCE ( + - COUNT( * ), - COUNT( * ) * - 43 / + 62 * CASE + + ( + + COUNT( * ) ) WHEN COALESCE ( + 3, 97 ) THEN + + 83 ELSE - - 57 + + 31 END + + + 71 + 25 * 4 + - 28, 42 + - 59 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8411
SELECT + CASE + 53 WHEN + NULLIF ( + COUNT ( * ), - 47 ) THEN + COUNT ( DISTINCT - 90 ) * COUNT ( * ) + COALESCE ( + - COUNT ( * ), - COUNT ( * ) * - 43 / + 62 * CASE + + ( + + COUNT ( * ) ) WHEN COALESCE ( + 3, 97 ) THEN + + 83 ELSE - - 57 + + 31 END + + + 71 + 25 * 4 + - 28, 42 + - 59 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8412
SELECT DISTINCT 22 * - - 25 + - COUNT( * ) + + + 63 - + 67, 71 AS col0
----
545
71

skipif mysql # not compatible
query II rowsort label-8412
SELECT DISTINCT 22 * - - 25 + - COUNT ( * ) + + + 63 - + 67, 71 AS col0
----
545
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT DISTINCT 5 * + - COUNT( * ) * ( - + 86 ) * - ( + 23 ) + - 38 AS col1
----
-9928

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT 5 * + - COUNT ( * ) * ( - + 86 ) * - ( + 23 ) + - 38 AS col1
----
-9928

query I rowsort
SELECT + 61 * + + 17
----
1037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8415
SELECT ALL 30 * + - NULLIF ( + CAST( + COALESCE ( ( 77 ), - 5 - + 90 - + COUNT( ALL - 34 ) ) AS SIGNED ), + 33 + + 93 )
----
-2310

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL 30 * + - NULLIF ( + CAST ( + COALESCE ( ( 77 ), - 5 - + 90 - + COUNT ( ALL - 34 ) ) AS INTEGER ), + 33 + + 93 )
----
-2310

query I rowsort
SELECT - + 6 * 61 * - 95 + + - 5
----
34765

onlyif mysql # aggregate syntax: 
query II rowsort label-8417
SELECT - MIN( + 28 ) AS col0, 70 + ( ( - - 15 ) ) AS col1
----
-28
85

skipif mysql # not compatible
query II rowsort label-8417
SELECT - MIN ( + 28 ) AS col0, 70 + ( ( - - 15 ) ) AS col1
----
-28
85

query I rowsort
SELECT ALL 57 + + 96 AS col0
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-8419
SELECT + 27 * 36 + + 24 * + COUNT( * ) * COUNT( * ), - ( - 83 ) * - - 61 AS col0
----
996
5063

skipif mysql # not compatible
query II rowsort label-8419
SELECT + 27 * 36 + + 24 * + COUNT ( * ) * COUNT ( * ), - ( - 83 ) * - - 61 AS col0
----
996
5063

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT + - COUNT( * ) * + + 35 * - - 27 AS col1
----
-945

skipif mysql # not compatible
query I rowsort label-8420
SELECT + - COUNT ( * ) * + + 35 * - - 27 AS col1
----
-945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT + + 90 + 52 * + 71 * CAST( 4 AS SIGNED ) + 56 + + 76 + + 53 AS col0
----
15043

skipif mysql # not compatible
query I rowsort label-8421
SELECT + + 90 + 52 * + 71 * CAST ( 4 AS INTEGER ) + 56 + + 76 + + 53 AS col0
----
15043

query I rowsort
SELECT ALL + ( + + 30 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8423
SELECT 82 AS col2, + 84 * NULLIF ( + + 88, 50 * 95 * ( + - 18 ) - - MAX( ALL + 20 ) + - COUNT( * ) - 95 ) DIV - 5 AS col0
----
82
-1478

skipif mysql # not compatible
query II rowsort label-8423
SELECT 82 AS col2, + 84 * NULLIF ( + + 88, 50 * 95 * ( + - 18 ) - - MAX ( ALL + 20 ) + - COUNT ( * ) - 95 ) / - 5 AS col0
----
82
-1478

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ALL COUNT( ALL - + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL COUNT ( ALL - + 71 )
----
1

query II rowsort
SELECT DISTINCT 97 AS col1, + 50
----
97
50

query I rowsort
SELECT + 61 + - 37 - 5 AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8427
SELECT - CAST( NULL AS SIGNED ) AS col0, COUNT( * ) + + - 40 AS col1
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-8427
SELECT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) + + - 40 AS col1
----
NULL
-39

query I rowsort
SELECT + 8 * 64
----
512

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8429
SELECT ALL NULLIF ( - CAST( NULL AS DECIMAL ), - + ( - COUNT( * ) ) * 24 + - 35 ) * - SUM( 75 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL NULLIF ( - CAST ( NULL AS REAL ), - + ( - COUNT ( * ) ) * 24 + - 35 ) * - SUM ( 75 ) AS col2
----
NULL

query II rowsort
SELECT 81 AS col0, + 71 + 77
----
81
148

query I rowsort
SELECT + 77 * + - 47 AS col2
----
-3619

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8432
SELECT - SUM( - - 22 ) DIV - 94 * + 96 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8432
SELECT - SUM ( - - 22 ) / - 94 * + 96 / - COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( + 72, - 0 ) AS col1
----
72

query II rowsort
SELECT ALL + 89 AS col1, - 86 * + 78
----
89
-6708

query II rowsort
SELECT + 82 AS col1, - 60 + + + 20 col0
----
82
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8436
SELECT + CAST( + + ( - 96 ) AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-8436
SELECT + CAST ( + + ( - 96 ) AS INTEGER )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT CAST( 63 AS SIGNED ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-8437
SELECT CAST ( 63 AS INTEGER ) AS col1
----
63

query I rowsort
SELECT + ( + - NULLIF ( - 52, 79 ) ) AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8439
SELECT - + COUNT( * ) DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-8439
SELECT - + COUNT ( * ) / - 41
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8440
SELECT + + 24 * + + CAST( NULL AS SIGNED ) * + + 34 - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT + + 24 * + + CAST ( NULL AS INTEGER ) * + + 34 - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8441
SELECT ALL + - 6 DIV MAX( + + 37 ) DIV - + 74 + + 80 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL + - 6 / MAX ( + + 37 ) / - + 74 + + 80 AS col1
----
80

query I rowsort
SELECT ALL + - 95 * 38
----
-3610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8443
SELECT ALL 32 DIV + - 18 + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL 32 / + - 18 + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL + + 65 * + 68 + - 35 * + 29
----
3405

query I rowsort
SELECT ALL + 65 * 22 AS col2
----
1430

query I rowsort
SELECT + NULLIF ( ( - 83 ), - 0 ) col1
----
-83

query I rowsort
SELECT - COALESCE ( - + 88, 83 - - - 48 ) - + 39
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8448
SELECT - CAST( + 88 AS SIGNED ) + - 9 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-8448
SELECT - CAST ( + 88 AS INTEGER ) + - 9 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT COALESCE ( + + COUNT( * ), - + 48 + + 72, 96 * - - 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8449
SELECT COALESCE ( + + COUNT ( * ), - + 48 + + 72, 96 * - - 27 ) AS col1
----
1

query I rowsort
SELECT ALL - - 40 - + - 36 AS col0
----
76

query I rowsort
SELECT + 44 * - 99 + + - 12 * + + ( - 99 )
----
-3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8452
SELECT ALL 64 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL 64 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( + 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT ALL - - 48 - - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL - - 48 - - COUNT ( * )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8455
SELECT ALL CAST( NULL AS SIGNED ) - + ( CAST( - 30 AS SIGNED ) ) * - + 52, 10 AS col2
----
NULL
10

skipif mysql # not compatible
query II rowsort label-8455
SELECT ALL CAST ( NULL AS INTEGER ) - + ( CAST ( - 30 AS INTEGER ) ) * - + 52, 10 AS col2
----
NULL
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT ALL + MIN( DISTINCT 32 ) * 18
----
576

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL + MIN ( DISTINCT 32 ) * 18
----
576

query I rowsort
SELECT 93 + + + 50
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-8458
SELECT COUNT( * ) + + 31, + 19 AS col0
----
32
19

skipif mysql # not compatible
query II rowsort label-8458
SELECT COUNT ( * ) + + 31, + 19 AS col0
----
32
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8459
SELECT DISTINCT ( COUNT( * ) ) * - + 53 DIV - 64 * - 46 col0
----
0

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT ( COUNT ( * ) ) * - + 53 / - 64 * - 46 col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8460
SELECT 12 DIV 71 col1, - 86 AS col1
----
0
-86

skipif mysql # not compatible
query II rowsort label-8460
SELECT 12 / 71 col1, - 86 AS col1
----
0
-86

query I rowsort
SELECT 48 * 57 * 38 col1
----
103968

query I rowsort
SELECT 19 + 92 AS col1
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8463
SELECT COUNT( * ) * - + CASE 32 WHEN - ( + 2 ) * ( + 80 ) * - CASE 50 WHEN + COUNT( * ) THEN NULL ELSE - 37 END * - ( COUNT( * ) ) * + COUNT( * ) + + - SUM( DISTINCT - 75 ) + + COUNT( * ) * - + 81 THEN NULL WHEN - + COALESCE ( + ( + MIN( - NULLIF ( - 94, + ( 29 ) * - - 25 * + - 36 + - 33 ) ) ), + 75 * + - ( - ( + 37 ) ), + - 4 * - - 8 ) THEN + 33 WHEN + COUNT( DISTINCT 15 ) THEN - 51 DIV 63 ELSE 95 END AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-8463
SELECT COUNT ( * ) * - + CASE 32 WHEN - ( + 2 ) * ( + 80 ) * - CASE 50 WHEN + COUNT ( * ) THEN NULL ELSE - 37 END * - ( COUNT ( * ) ) * + COUNT ( * ) + + - SUM ( DISTINCT - 75 ) + + COUNT ( * ) * - + 81 THEN NULL WHEN - + COALESCE ( + ( + MIN ( - NULLIF ( - 94, + ( 29 ) * - - 25 * + - 36 + - 33 ) ) ), + 75 * + - ( - ( + 37 ) ), + - 4 * - - 8 ) THEN + 33 WHEN + COUNT ( DISTINCT 15 ) THEN - 51 / 63 ELSE 95 END AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT ALL 66 + + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL 66 + + COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT 28 + - - SUM( ALL 93 )
----
121

skipif mysql # not compatible
query I rowsort label-8465
SELECT 28 + - - SUM ( ALL 93 )
----
121

query I rowsort
SELECT 63 + - - 68
----
131

query I rowsort
SELECT NULLIF ( - 95, + 97 ) * - 71 AS col2
----
6745

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT ALL 30 + - 61 + - COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL 30 + - 61 + - COUNT ( * ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT - MAX( DISTINCT COALESCE ( + 20, + 11 + - 9 / + 12 ) ) * + 15 + + CASE + 81 WHEN - 85 / - 50 THEN + ( + MAX( - - 40 ) ) WHEN - ( + - 25 ) + - - 45 - 59 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8469
SELECT - MAX ( DISTINCT COALESCE ( + 20, + 11 + - 9 / + 12 ) ) * + 15 + + CASE + 81 WHEN - 85 / - 50 THEN + ( + MAX ( - - 40 ) ) WHEN - ( + - 25 ) + - - 45 - 59 THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8470
SELECT 16 DIV + 29 + 26 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-8470
SELECT 16 / + 29 + 26 AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8471
SELECT DISTINCT - 19 + - - COALESCE ( - 56, - 18 DIV CAST( NULL AS SIGNED ) * - - CASE 97 WHEN + 26 * + 66 THEN - ( - - 3 ) END ) + + 79 + - NULLIF ( NULLIF ( + + 75, - COUNT( * ) ), + COUNT( * ) * + + 29 + - + 69 ) + - - 24 * + + 68 AS col1
----
1561

skipif mysql # not compatible
query I rowsort label-8471
SELECT DISTINCT - 19 + - - COALESCE ( - 56, - 18 / CAST ( NULL AS INTEGER ) * - - CASE 97 WHEN + 26 * + 66 THEN - ( - - 3 ) END ) + + 79 + - NULLIF ( NULLIF ( + + 75, - COUNT ( * ) ), + COUNT ( * ) * + + 29 + - + 69 ) + - - 24 * + + 68 AS col1
----
1561

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ALL - COUNT( * ) + + COALESCE ( - 87, + 3 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL - COUNT ( * ) + + COALESCE ( - 87, + 3 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT ALL - + COUNT( ALL 87 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL - + COUNT ( ALL 87 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT ALL - COUNT( + + 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL - COUNT ( + + 12 )
----
-1

query I rowsort
SELECT + 29 + + 89 + + + 29 AS col2
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8476
SELECT + 43 + - + CAST( NULL AS SIGNED ) * - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT + 43 + - + CAST ( NULL AS INTEGER ) * - 87
----
NULL

query I rowsort
SELECT ALL - - 88 - 56 AS col1
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8478
SELECT DISTINCT - 12 / CAST( NULL AS DECIMAL ) AS col2, - 47 + + + 16 - + + 36 * - - 5 AS col0
----
NULL
-211

skipif mysql # not compatible
query II rowsort label-8478
SELECT DISTINCT - 12 / CAST ( NULL AS REAL ) AS col2, - 47 + + + 16 - + + 36 * - - 5 AS col0
----
NULL
-211

query I rowsort
SELECT - 18 * + 56 col2
----
-1008

query I rowsort
SELECT DISTINCT - 62 * - 44 AS col2
----
2728

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT DISTINCT + 60 * + NULLIF ( + - MIN( - 34 ), - - 6 ) * + 68 + 34
----
138754

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT + 60 * + NULLIF ( + - MIN ( - 34 ), - - 6 ) * + 68 + 34
----
138754

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT 97 - + - ( + MIN( - 76 ) ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8482
SELECT 97 - + - ( + MIN ( - 76 ) ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT 3 * 64 * - + 24 * - COUNT( * )
----
4608

skipif mysql # not compatible
query I rowsort label-8483
SELECT 3 * 64 * - + 24 * - COUNT ( * )
----
4608

onlyif mysql # DIV for integer division: 
query II rowsort label-8484
SELECT 92 * 72 - 93 AS col2, 35 DIV + 33
----
6531
1

skipif mysql # not compatible
query II rowsort label-8484
SELECT 92 * 72 - 93 AS col2, 35 / + 33
----
6531
1

query I rowsort
SELECT 28 * 38 AS col0
----
1064

query I rowsort
SELECT 32 - 75
----
-43

query II rowsort
SELECT ALL 10 AS col0, - 88
----
10
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT DISTINCT COUNT( + - 31 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8488
SELECT DISTINCT COUNT ( + - 31 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT 54 + + - 74 * + + 65 + - 56 * ( COUNT( * ) )
----
-4812

skipif mysql # not compatible
query I rowsort label-8489
SELECT 54 + + - 74 * + + 65 + - 56 * ( COUNT ( * ) )
----
-4812

onlyif mysql # aggregate syntax: 
query II rowsort label-8490
SELECT 22 AS col0, COUNT( * )
----
22
1

skipif mysql # not compatible
query II rowsort label-8490
SELECT 22 AS col0, COUNT ( * )
----
22
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT MIN( DISTINCT 63 ) + - - CASE 87 WHEN 92 * - ( 43 ) * 80 + - MAX( - 28 ) THEN + 90 + - 18 WHEN 95 + CASE - - 61 WHEN + 3 / ( - CASE - + 2 WHEN + - 36 THEN 14 ELSE NULL END ) THEN - 97 END * - 47 + + + ( - 71 ) THEN + 90 WHEN - 57 THEN NULL ELSE NULL END + COUNT( ALL + - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT MIN ( DISTINCT 63 ) + - - CASE 87 WHEN 92 * - ( 43 ) * 80 + - MAX ( - 28 ) THEN + 90 + - 18 WHEN 95 + CASE - - 61 WHEN + 3 / ( - CASE - + 2 WHEN + - 36 THEN 14 ELSE NULL END ) THEN - 97 END * - 47 + + + ( - 71 ) THEN + 90 WHEN - 57 THEN NULL ELSE NULL END + COUNT ( ALL + - 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT 66 - - + 21 + + COALESCE ( - 37, + 24, + - NULLIF ( - 59, + + NULLIF ( - 6, 50 + + 57 ) ) ) * - COUNT( + ( + 99 ) )
----
124

skipif mysql # not compatible
query I rowsort label-8492
SELECT 66 - - + 21 + + COALESCE ( - 37, + 24, + - NULLIF ( - 59, + + NULLIF ( - 6, 50 + + 57 ) ) ) * - COUNT ( + ( + 99 ) )
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-8493
SELECT 37 DIV 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8493
SELECT 37 / 95 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8494
SELECT 73 DIV 91 * - 11 AS col1, 51
----
0
51

skipif mysql # not compatible
query II rowsort label-8494
SELECT 73 / 91 * - 11 AS col1, 51
----
0
51

query I rowsort
SELECT 44 * 26 * NULLIF ( - + 22, + - 86 ) * + + 34 AS col1
----
-855712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8496
SELECT ( - - 27 ) + + + 77, - CAST( 99 AS SIGNED ) * - COALESCE ( - COUNT( * ), + 16 * - + 46 ) * - 98 * + + 71 * + COUNT( * ) AS col0
----
104
688842

skipif mysql # not compatible
query II rowsort label-8496
SELECT ( - - 27 ) + + + 77, - CAST ( 99 AS INTEGER ) * - COALESCE ( - COUNT ( * ), + 16 * - + 46 ) * - 98 * + + 71 * + COUNT ( * ) AS col0
----
104
688842

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT DISTINCT + COUNT( * ) + 98 - - 42 * COUNT( * )
----
141

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT + COUNT ( * ) + 98 - - 42 * COUNT ( * )
----
141

query I rowsort
SELECT DISTINCT - 68 + + 22 col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8499
SELECT ( CASE 78 WHEN 67 * - - 3 + - 6 THEN - 36 * - 2 + - ( - 33 ) + 82 END ) * 60 + + - CASE + - 19 WHEN + 33 THEN NULL WHEN + CAST( + 89 AS SIGNED ) THEN - 23 WHEN - 76 / + CAST( - 48 AS SIGNED ) * 3 THEN NULL END * + 32 * - + ( - + 49 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8499
SELECT ( CASE 78 WHEN 67 * - - 3 + - 6 THEN - 36 * - 2 + - ( - 33 ) + 82 END ) * 60 + + - CASE + - 19 WHEN + 33 THEN NULL WHEN + CAST ( + 89 AS INTEGER ) THEN - 23 WHEN - 76 / + CAST ( - 48 AS INTEGER ) * 3 THEN NULL END * + 32 * - + ( - + 49 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8500
SELECT ALL CAST( NULL AS SIGNED ) * 90 - + NULLIF ( + AVG ( ALL - CAST( NULL AS SIGNED ) ), 97 + - - 60 * 28 ) col0, 44 AS col1
----
NULL
44

skipif mysql # not compatible
query II rowsort label-8500
SELECT ALL CAST ( NULL AS INTEGER ) * 90 - + NULLIF ( + AVG ( ALL - CAST ( NULL AS INTEGER ) ), 97 + - - 60 * 28 ) col0, 44 AS col1
----
NULL
44

query II rowsort
SELECT - 35 AS col1, 19
----
-35
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8502
SELECT - CAST( - 89 AS SIGNED ) * + + 97 + - - CAST( NULL AS SIGNED ) - - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT - CAST ( - 89 AS INTEGER ) * + + 97 + - - CAST ( NULL AS INTEGER ) - - 32 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8503
SELECT ALL + 21 * + - 46 + - MIN( - CAST( NULL AS SIGNED ) ) + - 72 + 32 * COUNT( * ) * + CAST( + - 70 AS SIGNED ) + 74 - COUNT( * ) + + ( - + CAST( - MIN( ALL + 63 ) AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL + 21 * + - 46 + - MIN ( - CAST ( NULL AS INTEGER ) ) + - 72 + 32 * COUNT ( * ) * + CAST ( + - 70 AS INTEGER ) + 74 - COUNT ( * ) + + ( - + CAST ( - MIN ( ALL + 63 ) AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT + + CASE + 71 WHEN - + 77 THEN NULL WHEN - 33 THEN NULL ELSE 53 END
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8505
SELECT ALL + 57 * - CAST( NULL AS SIGNED ) * 54 / - COUNT( * ) - 70 AS col0, 29
----
NULL
29

skipif mysql # not compatible
query II rowsort label-8505
SELECT ALL + 57 * - CAST ( NULL AS INTEGER ) * 54 / - COUNT ( * ) - 70 AS col0, 29
----
NULL
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT + - 28 * + + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-8506
SELECT + - 28 * + + COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-8507
SELECT ALL - ( - + 40 ) * + - 5, - COUNT( * ) AS col1
----
-200
-1

skipif mysql # not compatible
query II rowsort label-8507
SELECT ALL - ( - + 40 ) * + - 5, - COUNT ( * ) AS col1
----
-200
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8508
SELECT 84 AS col1, - SUM( DISTINCT 60 )
----
84
-60

skipif mysql # not compatible
query II rowsort label-8508
SELECT 84 AS col1, - SUM ( DISTINCT 60 )
----
84
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT 78 * + COUNT( * ) - COUNT( * ) * 79
----
-1

skipif mysql # not compatible
query I rowsort label-8509
SELECT 78 * + COUNT ( * ) - COUNT ( * ) * 79
----
-1

query I rowsort
SELECT + 82 * + 71 AS col2
----
5822

query II rowsort
SELECT - 52 * + ( 92 ) AS col1, - 74 AS col1
----
-4784
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8512
SELECT ALL + CASE - COUNT( * ) WHEN - 10 THEN NULL WHEN - 66 THEN - + 96 WHEN + 94 * - 22 THEN NULL ELSE + CAST( COUNT( * ) AS SIGNED ) END
----
1

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL + CASE - COUNT ( * ) WHEN - 10 THEN NULL WHEN - 66 THEN - + 96 WHEN + 94 * - 22 THEN NULL ELSE + CAST ( COUNT ( * ) AS INTEGER ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT COUNT( + + 54 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8513
SELECT COUNT ( + + 54 ) AS col2
----
1

query I rowsort
SELECT + 85 + - 13 AS col1
----
72

query I rowsort
SELECT + 2 * + + 33
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8516
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT ALL + 61 * + + 34 * - 38 AS col1
----
-78812

query I rowsort
SELECT + 42 + - 68 + + 5 + + 34
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT - 48 * - + ( - 38 ) * - - MIN( + 97 ) * + 38 - 64 + - 88
----
-6723416

skipif mysql # not compatible
query I rowsort label-8519
SELECT - 48 * - + ( - 38 ) * - - MIN ( + 97 ) * + 38 - 64 + - 88
----
-6723416

query I rowsort
SELECT DISTINCT - NULLIF ( 83, + + 74 * 26 + - 52 - 68 ) + + - 80 * 85
----
-6883

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT - COUNT( * ) + + 28 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8521
SELECT - COUNT ( * ) + + 28 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT ALL 18 + - COUNT( ALL + + 69 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL 18 + - COUNT ( ALL + + 69 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT ALL ( MAX( 12 ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL ( MAX ( 12 ) ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8524
SELECT ALL COUNT( * ), + 84 AS col2
----
1
84

skipif mysql # not compatible
query II rowsort label-8524
SELECT ALL COUNT ( * ), + 84 AS col2
----
1
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT ALL 76 - - MAX( DISTINCT + 3 ) + - 25 * - 67 * 89 * 98 AS col2
----
14609429

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL 76 - - MAX ( DISTINCT + 3 ) + - 25 * - 67 * 89 * 98 AS col2
----
14609429

query I rowsort
SELECT - NULLIF ( 84, + + 48 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-8527
SELECT ALL 45 AS col0, COUNT( * ) * 95
----
45
95

skipif mysql # not compatible
query II rowsort label-8527
SELECT ALL 45 AS col0, COUNT ( * ) * 95
----
45
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT - MIN( DISTINCT + ( - + 94 ) ) + - + 7 + - - 58 * - ( - 49 )
----
2929

skipif mysql # not compatible
query I rowsort label-8528
SELECT - MIN ( DISTINCT + ( - + 94 ) ) + - + 7 + - - 58 * - ( - 49 )
----
2929

query I rowsort
SELECT - + ( + 49 ) * - + COALESCE ( - 86, - 23 ) * + + ( - 73 )
----
307622

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8530
SELECT DISTINCT - 23 AS col1, CAST( NULL AS SIGNED )
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-8530
SELECT DISTINCT - 23 AS col1, CAST ( NULL AS INTEGER )
----
-23
NULL

query I rowsort
SELECT ALL - 78 - 50 - + 45 AS col2
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT - COUNT( * ) * + - 40 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8532
SELECT - COUNT ( * ) * + - 40 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT + 11 + - SUM( 70 )
----
-59

skipif mysql # not compatible
query I rowsort label-8533
SELECT + 11 + - SUM ( 70 )
----
-59

query I rowsort
SELECT - 55 * + 26
----
-1430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8535
SELECT - - 46 DIV COUNT( * ) * - 62 + COUNT( * ) DIV - 39
----
-2852

skipif mysql # not compatible
query I rowsort label-8535
SELECT - - 46 / COUNT ( * ) * - 62 + COUNT ( * ) / - 39
----
-2852

query I rowsort
SELECT ALL + - 4 * + 41 * - 7 AS col0
----
1148

query I rowsort
SELECT ALL + + ( 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT ALL - COUNT( * ) * 89 + - + 60
----
-149

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL - COUNT ( * ) * 89 + - + 60
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT DISTINCT - COALESCE ( COUNT( + 14 ), + + ( 18 ) + ( + 54 ) - + 16 ) * - 68
----
68

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT - COALESCE ( COUNT ( + 14 ), + + ( 18 ) + ( + 54 ) - + 16 ) * - 68
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8540
SELECT ALL + 62 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL + 62 / 82
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8541
SELECT + CAST( NULL AS SIGNED ) / 72 + + 51 - + - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8541
SELECT + CAST ( NULL AS INTEGER ) / 72 + + 51 - + - 40 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8542
SELECT 82 / + CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8542
SELECT 82 / + CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 53 * - - 88 AS col2
----
-4664

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT DISTINCT + COALESCE ( 51, - 24 * - 12, + ( + COUNT( * ) ), 50 )
----
51

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT + COALESCE ( 51, - 24 * - 12, + ( + COUNT ( * ) ), 50 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8545
SELECT 32 * - CAST( + 8 AS SIGNED ) - NULLIF ( - 44, 27 ) + 58 - 43 - - 36 + 78 - + COUNT( * ) * - NULLIF ( - + COALESCE ( - 79, + MAX( ALL - 55 ) + MIN( - + 10 ) + + 62 - - 39 - - - CAST( NULL AS SIGNED ) * - 71 * ( - 71 ) - CASE - COUNT( * ) WHEN COUNT( * ) - - 33 + COUNT( * ) THEN + 52 DIV + 96 ELSE COUNT( * ) * - 10 * 43 END, + 46 ), + - COUNT( * ) * - 92 ) + + 17 * - COUNT( * ) + + 59 DIV - 91 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8545
SELECT 32 * - CAST ( + 8 AS INTEGER ) - NULLIF ( - 44, 27 ) + 58 - 43 - - 36 + 78 - + COUNT ( * ) * - NULLIF ( - + COALESCE ( - 79, + MAX ( ALL - 55 ) + MIN ( - + 10 ) + + 62 - - 39 - - - CAST ( NULL AS INTEGER ) * - 71 * ( - 71 ) - CASE - COUNT ( * ) WHEN COUNT ( * ) - - 33 + COUNT ( * ) THEN + 52 / + 96 ELSE COUNT ( * ) * - 10 * 43 END, + 46 ), + - COUNT ( * ) * - 92 ) + + 17 * - COUNT ( * ) + + 59 / - 91 AS col2
----
-21

query I rowsort
SELECT + NULLIF ( - 9, + 84 ) AS col1
----
-9

query I rowsort
SELECT ALL + 10 * + 7
----
70

query I rowsort
SELECT - 92 * 23 + - - 4
----
-2112

query I rowsort
SELECT + 61 * + + 18 AS col1
----
1098

onlyif mysql # aggregate syntax: 
query II rowsort label-8550
SELECT + 79 * + 35, + COALESCE ( - MIN( - 84 ), + 81 ) - + + COUNT( * ) + - + 64 + - + ( 48 ) * + 75 - - 74 * - 63 * 71 AS col1
----
2765
-334583

skipif mysql # not compatible
query II rowsort label-8550
SELECT + 79 * + 35, + COALESCE ( - MIN ( - 84 ), + 81 ) - + + COUNT ( * ) + - + 64 + - + ( 48 ) * + 75 - - 74 * - 63 * 71 AS col1
----
2765
-334583

query I rowsort
SELECT ALL + 93 * + 57 + + 86
----
5387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8552
SELECT + CAST( - 70 AS SIGNED ) col2
----
-70

skipif mysql # not compatible
query I rowsort label-8552
SELECT + CAST ( - 70 AS INTEGER ) col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT DISTINCT - 60 * - 23 + - 31 - + COUNT( * )
----
1348

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT - 60 * - 23 + - 31 - + COUNT ( * )
----
1348

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT + 48 * SUM( 26 ) + - + ( - 20 ) AS col2
----
1268

skipif mysql # not compatible
query I rowsort label-8554
SELECT + 48 * SUM ( 26 ) + - + ( - 20 ) AS col2
----
1268

query I rowsort
SELECT - 25 + - - 2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8556
SELECT + COUNT( * ) DIV 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8556
SELECT + COUNT ( * ) / 74 AS col2
----
0

query I rowsort
SELECT DISTINCT - 85 - + 95
----
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8558
SELECT ALL 71 DIV - - COUNT( * ) AS col0, 31 + - COUNT( * ) AS col0
----
71
30

skipif mysql # not compatible
query II rowsort label-8558
SELECT ALL 71 / - - COUNT ( * ) AS col0, 31 + - COUNT ( * ) AS col0
----
71
30

query I rowsort
SELECT DISTINCT 6 * 1 col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8560
SELECT - CAST( NULL AS SIGNED ) * + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8560
SELECT - CAST ( NULL AS INTEGER ) * + 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT - MAX( 60 ) col2
----
-60

skipif mysql # not compatible
query I rowsort label-8561
SELECT - MAX ( 60 ) col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT ALL - 49 * - + COUNT( * ) + + + 82
----
131

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL - 49 * - + COUNT ( * ) + + + 82
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT MAX( - 92 ) * + - 11
----
1012

skipif mysql # not compatible
query I rowsort label-8563
SELECT MAX ( - 92 ) * + - 11
----
1012

query I rowsort
SELECT ALL - 47 - 42 AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT - + SUM( DISTINCT 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-8565
SELECT - + SUM ( DISTINCT 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT DISTINCT + MIN( DISTINCT + - COALESCE ( + 31, 61 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT + MIN ( DISTINCT + - COALESCE ( + 31, 61 ) )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8567
SELECT DISTINCT + 33 * - 85 DIV - ( - COUNT( * ) )
----
-2805

skipif mysql # not compatible
query I rowsort label-8567
SELECT DISTINCT + 33 * - 85 / - ( - COUNT ( * ) )
----
-2805

onlyif mysql # DIV for integer division: 
query I rowsort label-8568
SELECT + - 41 DIV + 47 - 90 + ( - 20 ) * + 39 AS col2
----
-870

skipif mysql # not compatible
query I rowsort label-8568
SELECT + - 41 / + 47 - 90 + ( - 20 ) * + 39 AS col2
----
-870

query I rowsort
SELECT 14 + ( 47 ) AS col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8570
SELECT + COALESCE ( + 32, + 86 + + - 33, 15 DIV 89 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8570
SELECT + COALESCE ( + 32, + 86 + + - 33, 15 / 89 ) AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8571
SELECT COUNT( * ) * - ( - ( 23 ) ) DIV + 23
----
1

skipif mysql # not compatible
query I rowsort label-8571
SELECT COUNT ( * ) * - ( - ( 23 ) ) / + 23
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8572
SELECT + 65 - COUNT( * ) * 5 DIV 60 + + 25 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-8572
SELECT + 65 - COUNT ( * ) * 5 / 60 + + 25 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT ALL - 81 + - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL - 81 + - + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL - + COALESCE ( - 62, - 97 )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8575
SELECT - + 40 DIV - - COUNT( * ) + 65 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-8575
SELECT - + 40 / - - COUNT ( * ) + 65 AS col1
----
25

query I rowsort
SELECT DISTINCT - 42 * - 34
----
1428

query I rowsort
SELECT ALL + ( + - 17 ) + 5
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL - COUNT( * ) + + - 25 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL - COUNT ( * ) + + - 25 AS col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8579
SELECT DISTINCT 8 DIV + CAST( COALESCE ( 75, - CAST( NULL AS DECIMAL ) ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT 8 / + CAST ( COALESCE ( 75, - CAST ( NULL AS REAL ) ) AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8580
SELECT 63 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-8580
SELECT 63 / 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8581
SELECT ( - + COUNT( * ) ) * - 95 + - ( + 72 ) + - 58 - 87 + ( + NULLIF ( COUNT( * ), + 56 * + COUNT( * ) + + ( - - ( 92 ) ) + 48 * + + 74 + - COUNT( - CAST( NULL AS SIGNED ) ) ) ) * 49 + + 79 * - 0 + 30 + + - 93
----
-136

skipif mysql # not compatible
query I rowsort label-8581
SELECT ( - + COUNT ( * ) ) * - 95 + - ( + 72 ) + - 58 - 87 + ( + NULLIF ( COUNT ( * ), + 56 * + COUNT ( * ) + + ( - - ( 92 ) ) + 48 * + + 74 + - COUNT ( - CAST ( NULL AS INTEGER ) ) ) ) * 49 + + 79 * - 0 + 30 + + - 93
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL 66 - + COUNT( * ) * - + 31 * + 48
----
1554

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL 66 - + COUNT ( * ) * - + 31 * + 48
----
1554

query I rowsort
SELECT ALL - ( + 15 ) AS col2
----
-15

query II rowsort
SELECT DISTINCT 15 AS col1, 74
----
15
74

query I rowsort
SELECT ALL 30 - 86
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT DISTINCT 65 - COUNT( * ) * + 41 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT 65 - COUNT ( * ) * + 41 AS col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8587
SELECT 90, MAX( ALL + - 65 ) AS col1
----
90
-65

skipif mysql # not compatible
query II rowsort label-8587
SELECT 90, MAX ( ALL + - 65 ) AS col1
----
90
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8588
SELECT CAST( NULL AS DECIMAL ) + 76 + + + COUNT( * ) * - + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT CAST ( NULL AS REAL ) + 76 + + + COUNT ( * ) * - + 84 AS col1
----
NULL

query II rowsort
SELECT + ( - 82 ) * + - 61 AS col1, 24
----
5002
24

query I rowsort
SELECT - 19 + ( + 66 )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8591
SELECT + 19 AS col1, + COUNT( * ) DIV - 19 * 73
----
19
0

skipif mysql # not compatible
query II rowsort label-8591
SELECT + 19 AS col1, + COUNT ( * ) / - 19 * 73
----
19
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8592
SELECT - + 24 AS col1, COUNT( * )
----
-24
1

skipif mysql # not compatible
query II rowsort label-8592
SELECT - + 24 AS col1, COUNT ( * )
----
-24
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT ALL + SUM( ALL - - 18 )
----
18

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL + SUM ( ALL - - 18 )
----
18

query I rowsort
SELECT 11 + 43 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL + MAX( + - 47 ) * - 28 AS col2
----
1316

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL + MAX ( + - 47 ) * - 28 AS col2
----
1316

query I rowsort
SELECT 3 + - + 57 AS col1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-8597
SELECT DISTINCT COALESCE ( - - 22, + 20 * - + 88 + - - 95 ) DIV + - 58 + + 7 + + - 81
----
-74

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT COALESCE ( - - 22, + 20 * - + 88 + - - 95 ) / + - 58 + + 7 + + - 81
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-8598
SELECT 49 DIV + 37 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8598
SELECT 49 / + 37 AS col2
----
1

query I rowsort
SELECT + 13 * 90 * + 23 * + - 32 + - 71
----
-861191

query I rowsort
SELECT ALL - 35 * + 41 AS col2
----
-1435

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT ALL + - COUNT( * ) * 23 + - ( + 68 )
----
-91

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL + - COUNT ( * ) * 23 + - ( + 68 )
----
-91

query I rowsort
SELECT - 62 + - 13 AS col1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT ALL + ( 48 ) * 58 * ( + 57 ) + - - 2 DIV + 96
----
158688

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL + ( 48 ) * 58 * ( + 57 ) + - - 2 / + 96
----
158688

onlyif mysql # DIV for integer division: 
query I rowsort label-8604
SELECT DISTINCT - 65 * + 8 + + - 83 + + 4 DIV + 74
----
-603

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT - 65 * + 8 + + - 83 + + 4 / + 74
----
-603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8605
SELECT CAST( CASE - - 74 WHEN + 73 + + COUNT( * ) THEN NULL WHEN 32 * + - CASE - CAST( + - AVG ( DISTINCT 33 ) AS SIGNED ) WHEN - CAST( + - 79 AS SIGNED ) THEN - - 59 + - 13 WHEN 81 * + 18 THEN NULL END + + - 93 THEN + - 9 WHEN 45 THEN 29 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT CAST ( CASE - - 74 WHEN + 73 + + COUNT ( * ) THEN NULL WHEN 32 * + - CASE - CAST ( + - AVG ( DISTINCT 33 ) AS INTEGER ) WHEN - CAST ( + - 79 AS INTEGER ) THEN - - 59 + - 13 WHEN 81 * + 18 THEN NULL END + + - 93 THEN + - 9 WHEN 45 THEN 29 END AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 56 * + - 30, 97 + - + 94 AS col2
----
-1680
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT MIN( 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-8607
SELECT MIN ( 11 ) AS col0
----
11

query I rowsort
SELECT 38 * + ( 55 ) AS col1
----
2090

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT ALL - 39 * + NULLIF ( 68, + 86 / - 1 - - COUNT( * ) + - + ( + 59 ) + - COUNT( * ) )
----
-2652

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL - 39 * + NULLIF ( 68, + 86 / - 1 - - COUNT ( * ) + - + ( + 59 ) + - COUNT ( * ) )
----
-2652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8610
SELECT 57 DIV - ( COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-8610
SELECT 57 / - ( COUNT ( * ) )
----
-57

query I rowsort
SELECT ALL + 94 * + 81 AS col2
----
7614

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT DISTINCT - COALESCE ( + 25, + + 8 + COUNT( * ) * + - COUNT( + + 58 ) * - 13 )
----
-25

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT - COALESCE ( + 25, + + 8 + COUNT ( * ) * + - COUNT ( + + 58 ) * - 13 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8613
SELECT AVG ( - 69 ) * + 7 / ( - CASE - + 63 WHEN CAST( NULL AS DECIMAL ) + - COUNT( * ) THEN NULL WHEN 3 THEN + AVG ( ALL 27 ) ELSE NULL END ) - + + 98 + - - 59 * - 79 * + - COUNT( * ), 65 AS col1
----
NULL
65

skipif mysql # not compatible
query II rowsort label-8613
SELECT AVG ( - 69 ) * + 7 / ( - CASE - + 63 WHEN CAST ( NULL AS REAL ) + - COUNT ( * ) THEN NULL WHEN 3 THEN + AVG ( ALL 27 ) ELSE NULL END ) - + + 98 + - - 59 * - 79 * + - COUNT ( * ), 65 AS col1
----
NULL
65

query I rowsort
SELECT ALL - ( 0 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8615
SELECT + COUNT( * ) * - 47 / + - CAST( NULL AS SIGNED ) + - 35 + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT + COUNT ( * ) * - 47 / + - CAST ( NULL AS INTEGER ) + - 35 + 51
----
NULL

query I rowsort
SELECT - ( 95 ) * + 3
----
-285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8617
SELECT + 88 * - CAST( + 66 AS SIGNED )
----
-5808

skipif mysql # not compatible
query I rowsort label-8617
SELECT + 88 * - CAST ( + 66 AS INTEGER )
----
-5808

query I rowsort
SELECT - 22 - - 55
----
33

query I rowsort
SELECT ALL 74 * - 8 * 50 AS col2
----
-29600

query I rowsort
SELECT DISTINCT 23 * 33
----
759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8621
SELECT ALL - 6 * - 74 + 32 * + + CAST( + 9 AS SIGNED ) + + ( 8 ) * - + COUNT( * )
----
724

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL - 6 * - 74 + 32 * + + CAST ( + 9 AS INTEGER ) + + ( 8 ) * - + COUNT ( * )
----
724

query II rowsort
SELECT - - 0 * 40 AS col2, 88 + - 6
----
0
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT + COUNT( - + 74 ) * - NULLIF ( 94, + 91 + 99 + - 47 - - 98 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-8623
SELECT + COUNT ( - + 74 ) * - NULLIF ( 94, + 91 + 99 + - 47 - - 98 ) AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8624
SELECT DISTINCT + COUNT( 41 ) + + 9 * - CAST( NULL AS SIGNED ) + COUNT( - 93 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8624
SELECT DISTINCT + COUNT ( 41 ) + + 9 * - CAST ( NULL AS INTEGER ) + COUNT ( - 93 ) AS col2
----
NULL

query I rowsort
SELECT + 33 - - 66
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8626
SELECT DISTINCT - 12 + - 42, 7 + - 71 + COUNT( * ) * 70 AS col0
----
-54
6

skipif mysql # not compatible
query II rowsort label-8626
SELECT DISTINCT - 12 + - 42, 7 + - 71 + COUNT ( * ) * 70 AS col0
----
-54
6

query I rowsort
SELECT ALL - 54 + + 78 AS col2
----
24

query I rowsort
SELECT DISTINCT + - 97 + 6
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8629
SELECT - 47 DIV - 66 + - 62
----
-62

skipif mysql # not compatible
query I rowsort label-8629
SELECT - 47 / - 66 + - 62
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT ALL + MAX( ALL + + 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL + MAX ( ALL + + 61 ) AS col2
----
61

query I rowsort
SELECT + 2 + - 36
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8632
SELECT - 8 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8632
SELECT - 8 / + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 20 * - 17 AS col1
----
-340

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8634
SELECT ( - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8634
SELECT ( - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8635
SELECT + 97 AS col1, - ( + MAX( DISTINCT + + 95 ) ) * - 48
----
97
4560

skipif mysql # not compatible
query II rowsort label-8635
SELECT + 97 AS col1, - ( + MAX ( DISTINCT + + 95 ) ) * - 48
----
97
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL COUNT( DISTINCT + 83 ) * + ( - + COUNT( * ) ) - - 30
----
29

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL COUNT ( DISTINCT + 83 ) * + ( - + COUNT ( * ) ) - - 30
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT - 66 * + 97 * COUNT( * )
----
-6402

skipif mysql # not compatible
query I rowsort label-8637
SELECT - 66 * + 97 * COUNT ( * )
----
-6402

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8638
SELECT CASE + + 2 WHEN + - 17 * - 37 THEN + CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT CASE + + 2 WHEN + - 17 * - 37 THEN + CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT 8 * + + ( + COUNT( * ) ) + 14 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-8639
SELECT 8 * + + ( + COUNT ( * ) ) + 14 AS col1
----
22

query I rowsort
SELECT + 30 * - - 72
----
2160

onlyif mysql # DIV for integer division: 
query I rowsort label-8641
SELECT DISTINCT - 26 DIV 8
----
-3

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT - 26 / 8
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8642
SELECT COALESCE ( + + COALESCE ( ( CAST( - + 62 AS SIGNED ) ), - ( - COALESCE ( - 71, - ( CAST( NULL AS SIGNED ) ), - 68 DIV + - 62 + + CAST( + 70 AS SIGNED ) - + + 57 - + + 90 ) ), + 22, - - ( + 24 ) DIV + - 81 ), - 6 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-8642
SELECT COALESCE ( + + COALESCE ( ( CAST ( - + 62 AS INTEGER ) ), - ( - COALESCE ( - 71, - ( CAST ( NULL AS INTEGER ) ), - 68 / + - 62 + + CAST ( + 70 AS INTEGER ) - + + 57 - + + 90 ) ), + 22, - - ( + 24 ) / + - 81 ), - 6 ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT ALL + NULLIF ( 89, + SUM( ALL + 88 ) + COUNT( * ) + 16 + + + COUNT( DISTINCT - 37 ) ) col0
----
89

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL + NULLIF ( 89, + SUM ( ALL + 88 ) + COUNT ( * ) + 16 + + + COUNT ( DISTINCT - 37 ) ) col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT ALL - COUNT( * ) * - 13
----
13

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL - COUNT ( * ) * - 13
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8645
SELECT NULLIF ( COUNT( * ), - CAST( NULL AS SIGNED ) ) AS col0, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-8645
SELECT NULLIF ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * ) AS col1
----
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8646
SELECT - 88 DIV 73 * - 80 col2, - 96 AS col1
----
80
-96

skipif mysql # not compatible
query II rowsort label-8646
SELECT - 88 / 73 * - 80 col2, - 96 AS col1
----
80
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8647
SELECT - 0 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8647
SELECT - 0 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT ALL - COALESCE ( - - 24, - 79 + + COUNT( * ) * COUNT( * ) - + - 47 * + 73 - - SUM( DISTINCT - ( + - 70 ) ) * - - ( 51 ) ) * MIN( + - 10 )
----
240

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL - COALESCE ( - - 24, - 79 + + COUNT ( * ) * COUNT ( * ) - + - 47 * + 73 - - SUM ( DISTINCT - ( + - 70 ) ) * - - ( 51 ) ) * MIN ( + - 10 )
----
240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8649
SELECT - + 90 DIV - 8 DIV COUNT( * ) - - 86 * + 94 AS col1
----
8095

skipif mysql # not compatible
query I rowsort label-8649
SELECT - + 90 / - 8 / COUNT ( * ) - - 86 * + 94 AS col1
----
8095

query I rowsort
SELECT ALL - 36 * + - 7 + 7 * 95 AS col2
----
917

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT - 81 + + ( - SUM( - 96 ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8651
SELECT - 81 + + ( - SUM ( - 96 ) ) AS col2
----
15

query I rowsort
SELECT ALL + 18 + - 3 * + - 65 * - 86 AS col1
----
-16752

query II rowsort
SELECT - + 66, 46 col0
----
-66
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8654
SELECT - + 38 + 14 DIV + - ( 6 ) + + 21
----
-19

skipif mysql # not compatible
query I rowsort label-8654
SELECT - + 38 + 14 / + - ( 6 ) + + 21
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT DISTINCT - ( COUNT( * ) ) + - + 79 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT - ( COUNT ( * ) ) + - + 79 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT - + COUNT( ALL + + 92 ) + 20 * - - 12
----
239

skipif mysql # not compatible
query I rowsort label-8656
SELECT - + COUNT ( ALL + + 92 ) + 20 * - - 12
----
239

query I rowsort
SELECT ALL - - 90 + - 96 col2
----
-6

query I rowsort
SELECT + - 13 + + 61 AS col2
----
48

query I rowsort
SELECT ALL 97 + - 19 AS col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-8660
SELECT + COUNT( DISTINCT 18 ) + - + 33 AS col1, 17 AS col1
----
-32
17

skipif mysql # not compatible
query II rowsort label-8660
SELECT + COUNT ( DISTINCT 18 ) + - + 33 AS col1, 17 AS col1
----
-32
17

query I rowsort
SELECT + 80 + - 86
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT DISTINCT + COALESCE ( - COUNT( * ), - - 38, - COUNT( * ) ) * - 15
----
15

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT + COALESCE ( - COUNT ( * ), - - 38, - COUNT ( * ) ) * - 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT - CASE - 12 WHEN + - 36 * - SUM( 5 ) + - 52 + + 34 + + + 23 * COUNT( * ) THEN NULL WHEN 30 THEN NULL ELSE + 96 + 32 * + 5 END
----
-256

skipif mysql # not compatible
query I rowsort label-8663
SELECT - CASE - 12 WHEN + - 36 * - SUM ( 5 ) + - 52 + + 34 + + + 23 * COUNT ( * ) THEN NULL WHEN 30 THEN NULL ELSE + 96 + 32 * + 5 END
----
-256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), + 19 + - + NULLIF ( + 53, + 31 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), + 19 + - + NULLIF ( + 53, + 31 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8665
SELECT ALL 38, COUNT( * ) + - COUNT( * ) * 5 - - COUNT( * ) * 60 AS col2
----
38
56

skipif mysql # not compatible
query II rowsort label-8665
SELECT ALL 38, COUNT ( * ) + - COUNT ( * ) * 5 - - COUNT ( * ) * 60 AS col2
----
38
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT + COUNT( * ) * + - ( - - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-8666
SELECT + COUNT ( * ) * + - ( - - 42 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8667
SELECT ALL + CAST( + 87 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL + CAST ( + 87 AS INTEGER )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8668
SELECT ALL 43 DIV 11
----
3

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL 43 / 11
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8669
SELECT + CAST( NULL AS SIGNED ), 94 AS col2
----
NULL
94

skipif mysql # not compatible
query II rowsort label-8669
SELECT + CAST ( NULL AS INTEGER ), 94 AS col2
----
NULL
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8670
SELECT DISTINCT 89 DIV 52 * + 53
----
53

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT 89 / 52 * + 53
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8671
SELECT CAST( + - 90 AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-8671
SELECT CAST ( + - 90 AS INTEGER )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8672
SELECT MAX( ALL - 77 ) DIV + 64
----
-1

skipif mysql # not compatible
query I rowsort label-8672
SELECT MAX ( ALL - 77 ) / + 64
----
-1

query I rowsort
SELECT ( 7 ) * 53
----
371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8674
SELECT DISTINCT 42 * + - 23, + 2 + + ( - CAST( - 38 AS SIGNED ) ) / ( + - CASE + 70 WHEN - 96 THEN 64 + - + 49 WHEN - COUNT( * ) * 62 * + 29 - COUNT( ALL - + ( - 62 ) ) THEN + - 30 / + + 12 + 0 END ) + 10 + - CAST( NULL AS SIGNED ) AS col0
----
-966
NULL

skipif mysql # not compatible
query II rowsort label-8674
SELECT DISTINCT 42 * + - 23, + 2 + + ( - CAST ( - 38 AS INTEGER ) ) / ( + - CASE + 70 WHEN - 96 THEN 64 + - + 49 WHEN - COUNT ( * ) * 62 * + 29 - COUNT ( ALL - + ( - 62 ) ) THEN + - 30 / + + 12 + 0 END ) + 10 + - CAST ( NULL AS INTEGER ) AS col0
----
-966
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT ALL 1 * + 58 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL 1 * + 58 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8676
SELECT 72 * + 49 AS col1, - SUM( - 47 ) + - 45 * - 43 + - MIN( 52 ) * + 77 AS col0
----
3528
-2022

skipif mysql # not compatible
query II rowsort label-8676
SELECT 72 * + 49 AS col1, - SUM ( - 47 ) + - 45 * - 43 + - MIN ( 52 ) * + 77 AS col0
----
3528
-2022

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT 7 * COUNT( * ) * + 69
----
483

skipif mysql # not compatible
query I rowsort label-8677
SELECT 7 * COUNT ( * ) * + 69
----
483

query I rowsort
SELECT 11 * - 73 * + 29
----
-23287

query II rowsort
SELECT + 71 AS col1, 57 AS col2
----
71
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8680
SELECT DISTINCT 47 + 58 col0, 80 * MAX( 69 )
----
105
5520

skipif mysql # not compatible
query II rowsort label-8680
SELECT DISTINCT 47 + 58 col0, 80 * MAX ( 69 )
----
105
5520

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT DISTINCT 6 + 66 + + ( + MIN( 48 ) ) col0
----
120

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT 6 + 66 + + ( + MIN ( 48 ) ) col0
----
120

query I rowsort
SELECT ALL 82 + - 15 + - - ( + 82 ) + - 68 + + 59 * - 73 * - + 53 AS col0
----
228352

query I rowsort
SELECT ALL + NULLIF ( + - 77, - 29 + 75 ) + 82 + - 90 * + + 38 * 51 * 53
----
-9244255

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ALL - - COUNT( + 97 ) + 92 - - 19 AS col2
----
112

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL - - COUNT ( + 97 ) + 92 - - 19 AS col2
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8685
SELECT - MAX( + CAST( NULL AS SIGNED ) ) * MIN( - + 29 ) * + - 42 + + 18 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) * MIN ( - + 29 ) * + - 42 + + 18 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT 86 + - 50 + - COALESCE ( + COUNT( * ), - + 0 ) * 75 * + - 54 + 47 AS col0
----
4133

skipif mysql # not compatible
query I rowsort label-8686
SELECT 86 + - 50 + - COALESCE ( + COUNT ( * ), - + 0 ) * 75 * + - 54 + 47 AS col0
----
4133

query I rowsort
SELECT DISTINCT - + 93 + ( + 10 ) - - + ( - 88 ) col2
----
-171

query I rowsort
SELECT ALL + + 30 + ( - - 90 )
----
120

query I rowsort
SELECT 65 * 83 AS col1
----
5395

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT DISTINCT + + 18 * + 57 * + COUNT( * )
----
1026

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT + + 18 * + 57 * + COUNT ( * )
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT ALL CASE 5 WHEN ( - COUNT( * ) ) THEN 54 ELSE NULL END + + - AVG ( ALL + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL CASE 5 WHEN ( - COUNT ( * ) ) THEN 54 ELSE NULL END + + - AVG ( ALL + 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-8692
SELECT ALL - 14 AS col2, 0 + - + 53 * + NULLIF ( 24, - + ( + 82 ) + SUM( - 0 ) ), 65 col0
----
-14
-1272
65

skipif mysql # not compatible
query III rowsort label-8692
SELECT ALL - 14 AS col2, 0 + - + 53 * + NULLIF ( 24, - + ( + 82 ) + SUM ( - 0 ) ), 65 col0
----
-14
-1272
65

query I rowsort
SELECT ALL - - 88 + + - ( + 59 )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8694
SELECT ALL - CAST( NULL AS SIGNED ) - 18 AS col2, 59 col2
----
NULL
59

skipif mysql # not compatible
query II rowsort label-8694
SELECT ALL - CAST ( NULL AS INTEGER ) - 18 AS col2, 59 col2
----
NULL
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8695
SELECT - 56 * + + ( - - CASE CAST( NULL AS SIGNED ) WHEN + SUM( ALL - 89 ) THEN + - 87 WHEN COUNT( * ) + + 92 * + + NULLIF ( + COUNT( * ), - AVG ( ALL - 9 ) * 20 + - CAST( - 23 AS SIGNED ) + - COUNT( * ) ) THEN NULL ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8695
SELECT - 56 * + + ( - - CASE CAST ( NULL AS INTEGER ) WHEN + SUM ( ALL - 89 ) THEN + - 87 WHEN COUNT ( * ) + + 92 * + + NULLIF ( + COUNT ( * ), - AVG ( ALL - 9 ) * 20 + - CAST ( - 23 AS INTEGER ) + - COUNT ( * ) ) THEN NULL ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8696
SELECT - 51, COUNT( * ) + - + 21 AS col1
----
-51
-20

skipif mysql # not compatible
query II rowsort label-8696
SELECT - 51, COUNT ( * ) + - + 21 AS col1
----
-51
-20

query II rowsort
SELECT - - 96 col0, 12
----
96
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT COUNT( - + 37 ) * + + 69
----
69

skipif mysql # not compatible
query I rowsort label-8698
SELECT COUNT ( - + 37 ) * + + 69
----
69

query I rowsort
SELECT 76 * 88 * - 26
----
-173888

query I rowsort
SELECT ALL 37 * + 23 AS col1
----
851

query I rowsort
SELECT ALL + 35 * + + 56
----
1960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8702
SELECT 66 + - COUNT( * ) DIV + - 38 + - - ( - - 22 ) + - 63 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-8702
SELECT 66 + - COUNT ( * ) / + - 38 + - - ( - - 22 ) + - 63 AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8703
SELECT NULLIF ( + + COUNT( * ), + 18 + - 2 + CASE - 50 WHEN - 57 THEN + 38 END * - 25 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT NULLIF ( + + COUNT ( * ), + 18 + - 2 + CASE - 50 WHEN - 57 THEN + 38 END * - 25 ) * - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ( 15 ) * - 13 + + + 88 + - - 0 AS col0, - 2 AS col2
----
-107
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8705
SELECT DISTINCT + 17 + - CASE MAX( - CAST( - + 80 AS SIGNED ) ) WHEN 87 THEN 3 * 73 WHEN 99 THEN NULL END - - 32 * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT + 17 + - CASE MAX ( - CAST ( - + 80 AS INTEGER ) ) WHEN 87 THEN 3 * 73 WHEN 99 THEN NULL END - - 32 * 69
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8706
SELECT DISTINCT - 63 + 13 + - 99 DIV 18 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT - 63 + 13 + - 99 / 18 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT 1 + - 35 + - MIN( DISTINCT 23 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8707
SELECT 1 + - 35 + - MIN ( DISTINCT 23 ) AS col1
----
-57

query II rowsort
SELECT ALL 59 + - 21 AS col1, + 40 * - 35 AS col1
----
38
-1400

query I rowsort
SELECT ALL ( - 44 ) + 15 * - - 38 - - + 50 AS col0
----
576

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8710
SELECT ALL COALESCE ( + COUNT( * ), + 68 ) DIV + - ( 24 ) AS col1, - 74 DIV - 63
----
0
1

skipif mysql # not compatible
query II rowsort label-8710
SELECT ALL COALESCE ( + COUNT ( * ), + 68 ) / + - ( 24 ) AS col1, - 74 / - 63
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8711
SELECT MIN( + 49 ) DIV - COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-8711
SELECT MIN ( + 49 ) / - COUNT ( * ) AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8712
SELECT ALL - 18 + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL - 18 + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT DISTINCT 69 - - COUNT( DISTINCT 77 ) + + 29
----
99

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT 69 - - COUNT ( DISTINCT 77 ) + + 29
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT ALL 87 - + - 37 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL 87 - + - 37 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT NULLIF ( 52, + 65 ) - - 90
----
142

query I rowsort
SELECT + 79 + CASE 48 WHEN + - 70 THEN + + 9 ELSE NULL END + 74
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8717
SELECT ALL - 75 - + COUNT( DISTINCT 52 ) + - ( CAST( + 31 AS SIGNED ) ) * 21 DIV 24 AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL - 75 - + COUNT ( DISTINCT 52 ) + - ( CAST ( + 31 AS INTEGER ) ) * 21 / 24 AS col1
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT ALL MAX( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL MAX ( 35 )
----
35

query I rowsort
SELECT 83 + 73
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-8720
SELECT 29 + + COALESCE ( + - 46, CASE 1 WHEN 79 THEN NULL WHEN + + ( + 51 ) + + ( + CASE - 37 WHEN + - 87 THEN NULL ELSE - CASE + 57 WHEN + 63 * + 51 THEN NULL WHEN - 90 THEN NULL ELSE + COUNT( * ) END END ) THEN NULL WHEN - + 90 + + + 38 THEN - - 63 ELSE - - 33 * 11 END ), - 91 AS col1
----
-17
-91

skipif mysql # not compatible
query II rowsort label-8720
SELECT 29 + + COALESCE ( + - 46, CASE 1 WHEN 79 THEN NULL WHEN + + ( + 51 ) + + ( + CASE - 37 WHEN + - 87 THEN NULL ELSE - CASE + 57 WHEN + 63 * + 51 THEN NULL WHEN - 90 THEN NULL ELSE + COUNT ( * ) END END ) THEN NULL WHEN - + 90 + + + 38 THEN - - 63 ELSE - - 33 * 11 END ), - 91 AS col1
----
-17
-91

query I rowsort
SELECT + 20 * + + ( 23 ) AS col1
----
460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8722
SELECT ALL + - COUNT( * ) * ( + + CAST( 92 AS SIGNED ) ) + 8 - ( + 69 ) + + 76 DIV - 20 AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL + - COUNT ( * ) * ( + + CAST ( 92 AS INTEGER ) ) + 8 - ( + 69 ) + + 76 / - 20 AS col0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT - ( - COUNT( * ) ) + + - 21 + - 68 * - - 76
----
-5188

skipif mysql # not compatible
query I rowsort label-8723
SELECT - ( - COUNT ( * ) ) + + - 21 + - 68 * - - 76
----
-5188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8724
SELECT DISTINCT MAX( + ( - + 95 ) ) AS col0, 91 + + CAST( NULL AS SIGNED ) + COUNT( * ) / + + 67 AS col0
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-8724
SELECT DISTINCT MAX ( + ( - + 95 ) ) AS col0, 91 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) / + + 67 AS col0
----
-95
NULL

query I rowsort
SELECT ALL + 12 * + 38 col0
----
456

query I rowsort
SELECT 85 * - 48 AS col2
----
-4080

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT DISTINCT MAX( DISTINCT - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT MAX ( DISTINCT - 70 )
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-8728
SELECT - 90 DIV 27
----
-3

skipif mysql # not compatible
query I rowsort label-8728
SELECT - 90 / 27
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT - COUNT( DISTINCT ( - 44 ) ) * - 80 * SUM( - 57 ) * COUNT( * )
----
-4560

skipif mysql # not compatible
query I rowsort label-8729
SELECT - COUNT ( DISTINCT ( - 44 ) ) * - 80 * SUM ( - 57 ) * COUNT ( * )
----
-4560

query I rowsort
SELECT - 72 + 5 + + 0 * + 32 * - 56 AS col2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8731
SELECT NULLIF ( + ( + 95 ), - 84 + - CAST( NULL AS SIGNED ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8731
SELECT NULLIF ( + ( + 95 ), - 84 + - CAST ( NULL AS INTEGER ) ) AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8732
SELECT NULLIF ( - ( + 52 ), + CAST( NULL AS SIGNED ) - - 72 )
----
-52

skipif mysql # not compatible
query I rowsort label-8732
SELECT NULLIF ( - ( + 52 ), + CAST ( NULL AS INTEGER ) - - 72 )
----
-52

query I rowsort
SELECT - 36 * + 23 AS col2
----
-828

query I rowsort
SELECT COALESCE ( - 82, + 42 ) AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8735
SELECT ALL + COALESCE ( + MAX( - 60 ), + COALESCE ( - COUNT( * ), + COUNT( + 68 ) * + CAST( - 88 AS SIGNED ), + - 74 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL + COALESCE ( + MAX ( - 60 ), + COALESCE ( - COUNT ( * ), + COUNT ( + 68 ) * + CAST ( - 88 AS INTEGER ), + - 74 ) )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8736
SELECT ALL 41 * - 77 * - ( - + CAST( + 63 AS SIGNED ) ) + 21 + + ( 18 ) * - + 55 * 83
----
-281040

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL 41 * - 77 * - ( - + CAST ( + 63 AS INTEGER ) ) + 21 + + ( 18 ) * - + 55 * 83
----
-281040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8737
SELECT - CAST( NULL AS SIGNED ) * + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT - CAST ( NULL AS INTEGER ) * + 28 AS col1
----
NULL

query I rowsort
SELECT + 6 * 67
----
402

query I rowsort
SELECT ALL + 77 * - + 29 AS col2
----
-2233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8740
SELECT COALESCE ( 30, - NULLIF ( + + 96, + ( + COUNT( * ) ) ) * 88, + - 54 + - 36 DIV - + NULLIF ( + 92, + COALESCE ( - 17, - - COALESCE ( 43, 79 + 48 * 85, - + CAST( + AVG ( + - 68 ) AS SIGNED ) ) - - COUNT( DISTINCT - + 35 ) + + - CAST( NULL AS SIGNED ), + + 82 ) ), + 3 )
----
30

skipif mysql # not compatible
query I rowsort label-8740
SELECT COALESCE ( 30, - NULLIF ( + + 96, + ( + COUNT ( * ) ) ) * 88, + - 54 + - 36 / - + NULLIF ( + 92, + COALESCE ( - 17, - - COALESCE ( 43, 79 + 48 * 85, - + CAST ( + AVG ( + - 68 ) AS INTEGER ) ) - - COUNT ( DISTINCT - + 35 ) + + - CAST ( NULL AS INTEGER ), + + 82 ) ), + 3 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT + MAX( 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-8741
SELECT + MAX ( 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT COUNT( ALL CASE - 75 WHEN - 98 * + 38 THEN + 16 WHEN - 23 THEN NULL ELSE - - ( 52 ) END ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8742
SELECT COUNT ( ALL CASE - 75 WHEN - 98 * + 38 THEN + 16 WHEN - 23 THEN NULL ELSE - - ( 52 ) END ) AS col2
----
1

query I rowsort
SELECT ALL + - CASE - 18 WHEN + NULLIF ( + 79, - 77 ) THEN + ( - 84 ) WHEN - + 27 THEN - 9 / + + 47 END * - 18 / 66 + 32 + + 37
----
NULL

query II rowsort
SELECT ALL + 5, 4 AS col1
----
5
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT DISTINCT + - COUNT( * ) * - 77 + 68 * 27 * - + COUNT( * ) + + + SUM( ALL + 6 ) - 22 AS col2
----
-1775

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT + - COUNT ( * ) * - 77 + 68 * 27 * - + COUNT ( * ) + + + SUM ( ALL + 6 ) - 22 AS col2
----
-1775

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8746
SELECT DISTINCT + 9 * - 66 - + CAST( NULL AS SIGNED ) AS col1, + ( - - 29 )
----
NULL
29

skipif mysql # not compatible
query II rowsort label-8746
SELECT DISTINCT + 9 * - 66 - + CAST ( NULL AS INTEGER ) AS col1, + ( - - 29 )
----
NULL
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT DISTINCT - COUNT( * ) * - 72 - 40 * - + 12
----
552

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT - COUNT ( * ) * - 72 - 40 * - + 12
----
552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8748
SELECT ALL CAST( NULL AS SIGNED ) * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL CAST ( NULL AS INTEGER ) * - 69
----
NULL

query I rowsort
SELECT + + 1 * - 30 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT - - 32 + - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-8750
SELECT - - 32 + - COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT + SUM( ALL - + 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8751
SELECT + SUM ( ALL - + 84 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT ALL - 46 * COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL - 46 * COUNT ( * )
----
-46

query I rowsort
SELECT - - 40 * 89 - - + 86 - 85 * 38
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT COUNT( * ) * - + SUM( - - 44 ) - + 11 + - 89 * 53 + COUNT( * ) AS col2
----
-4771

skipif mysql # not compatible
query I rowsort label-8754
SELECT COUNT ( * ) * - + SUM ( - - 44 ) - + 11 + - 89 * 53 + COUNT ( * ) AS col2
----
-4771

query I rowsort
SELECT ALL + 71 * 14
----
994

onlyif mysql # aggregate syntax: 
query II rowsort label-8756
SELECT + 75, + COUNT( * ) - - ( + + 66 ) + - + 88 + 92 * + COUNT( * ) AS col1
----
75
71

skipif mysql # not compatible
query II rowsort label-8756
SELECT + 75, + COUNT ( * ) - - ( + + 66 ) + - + 88 + 92 * + COUNT ( * ) AS col1
----
75
71

query I rowsort
SELECT ALL COALESCE ( 16, 88 ) * + 91 * + ( - + 28 ) - - 9 AS col0
----
-40759

onlyif mysql # DIV for integer division: 
query I rowsort label-8758
SELECT + 4 DIV - + 10 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8758
SELECT + 4 / - + 10 AS col2
----
0

query II rowsort
SELECT ALL - 77 col2, + 47
----
-77
47

query I rowsort
SELECT DISTINCT 73 * + 12
----
876

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT - 72 * - MIN( - + 1 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-8761
SELECT - 72 * - MIN ( - + 1 ) AS col0
----
-72

query I rowsort
SELECT + 84 - + 20
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-8763
SELECT ALL + COUNT( * ) + + COALESCE ( - 2, - 31 ), + 75 AS col1
----
-1
75

skipif mysql # not compatible
query II rowsort label-8763
SELECT ALL + COUNT ( * ) + + COALESCE ( - 2, - 31 ), + 75 AS col1
----
-1
75

query I rowsort
SELECT ALL 66 + 20 AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8765
SELECT ALL CASE - - AVG ( 91 ) WHEN 32 * 22 THEN NULL ELSE 54 * + COUNT( * ) DIV + + 95 END col2
----
0

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL CASE - - AVG ( 91 ) WHEN 32 * 22 THEN NULL ELSE 54 * + COUNT ( * ) / + + 95 END col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8766
SELECT DISTINCT 83 + - 41 - 59 * + + MIN( DISTINCT + 74 ) AS col1, 51
----
-4324
51

skipif mysql # not compatible
query II rowsort label-8766
SELECT DISTINCT 83 + - 41 - 59 * + + MIN ( DISTINCT + 74 ) AS col1, 51
----
-4324
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT ALL - COUNT( * ) + 99 * + 69
----
6830

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL - COUNT ( * ) + 99 * + 69
----
6830

query I rowsort
SELECT DISTINCT ( + 77 ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ALL COUNT( * ) + - ( + 44 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL COUNT ( * ) + - ( + 44 ) AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8770
SELECT + COALESCE ( + COUNT( * ), - 65 ) + - CAST( - 88 AS SIGNED ) * 40
----
3521

skipif mysql # not compatible
query I rowsort label-8770
SELECT + COALESCE ( + COUNT ( * ), - 65 ) + - CAST ( - 88 AS INTEGER ) * 40
----
3521

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8771
SELECT + CAST( - 42 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-8771
SELECT + CAST ( - 42 AS INTEGER )
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8772
SELECT 18 DIV + 33 * + 68 + - 38 + + 47 * + - COUNT( * ) * + + 12 + - 1
----
-603

skipif mysql # not compatible
query I rowsort label-8772
SELECT 18 / + 33 * + 68 + - 38 + + 47 * + - COUNT ( * ) * + + 12 + - 1
----
-603

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT 82 * + + 31 - 95 - + COUNT( * ) * - 53 * + - 73 AS col2
----
-1422

skipif mysql # not compatible
query I rowsort label-8773
SELECT 82 * + + 31 - 95 - + COUNT ( * ) * - 53 * + - 73 AS col2
----
-1422

query I rowsort
SELECT + 17 * 68
----
1156

query I rowsort
SELECT + 76 + - 5 + + + 18 * ( 26 ) AS col0
----
539

query I rowsort
SELECT - 82 * + ( 21 ) AS col2
----
-1722

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8777
SELECT DISTINCT - COUNT( * ) DIV + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT - COUNT ( * ) / + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT CASE + 3 WHEN - 56 THEN + 93 WHEN - MAX( ALL + 78 ) THEN - 81 ELSE - - COUNT( * ) END * 24 + - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-8778
SELECT CASE + 3 WHEN - 56 THEN + 93 WHEN - MAX ( ALL + 78 ) THEN - 81 ELSE - - COUNT ( * ) END * 24 + - COUNT ( * )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8779
SELECT ( COUNT( * ) ) AS col0, 26 * CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8779
SELECT ( COUNT ( * ) ) AS col0, 26 * CAST ( - + CAST ( NULL AS INTEGER ) AS REAL )
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8780
SELECT ALL + ( + - 85 ), ( CAST( NULL AS SIGNED ) ) AS col0
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-8780
SELECT ALL + ( + - 85 ), ( CAST ( NULL AS INTEGER ) ) AS col0
----
-85
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8781
SELECT + - CAST( - 94 AS SIGNED ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8781
SELECT + - CAST ( - 94 AS INTEGER ) AS col2
----
94

query I rowsort
SELECT - 86 + - 56 * + NULLIF ( - + 91, + 10 )
----
5010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT DISTINCT + + 98 * + - ( - ( - 65 ) ) * - 9 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT + + 98 * + - ( - ( - 65 ) ) * - 9 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 97 * - 13 - + 46 AS col2
----
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT + + MIN( DISTINCT - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8785
SELECT + + MIN ( DISTINCT - 0 ) AS col0
----
0

query I rowsort
SELECT ALL + - 92 col0
----
-92

query I rowsort
SELECT DISTINCT - + 6 * - 67
----
402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8788
SELECT - 89 * 63 + CAST( - NULLIF ( + 75, - - 12 ) AS SIGNED ) AS col0
----
-5682

skipif mysql # not compatible
query I rowsort label-8788
SELECT - 89 * 63 + CAST ( - NULLIF ( + 75, - - 12 ) AS INTEGER ) AS col0
----
-5682

query I rowsort
SELECT - 75 * + 63
----
-4725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8790
SELECT DISTINCT - - COUNT( * ) * + MAX( + ( - - CAST( 29 AS SIGNED ) ) ) + + + 90
----
119

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT - - COUNT ( * ) * + MAX ( + ( - - CAST ( 29 AS INTEGER ) ) ) + + + 90
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-8791
SELECT DISTINCT + - COUNT( 2 ) col0, + COUNT( * ) * + ( 64 ) * + 91 + 24 + - COUNT( * ) - + 87
----
-1
5760

skipif mysql # not compatible
query II rowsort label-8791
SELECT DISTINCT + - COUNT ( 2 ) col0, + COUNT ( * ) * + ( 64 ) * + 91 + 24 + - COUNT ( * ) - + 87
----
-1
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT ALL 64 * + - 73 + - ( - CASE - MIN( DISTINCT - 98 ) WHEN + - 51 THEN - 17 END ) * + 59 + + + ( - - 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL 64 * + - 73 + - ( - CASE - MIN ( DISTINCT - 98 ) WHEN + - 51 THEN - 17 END ) * + 59 + + + ( - - 55 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT DISTINCT + 46 * 53 + + COUNT( DISTINCT - - 65 ) AS col1
----
2439

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT + 46 * 53 + + COUNT ( DISTINCT - - 65 ) AS col1
----
2439

query I rowsort
SELECT + 60 * + - 93 - CASE + 16 WHEN + COALESCE ( 90, COALESCE ( - - 39, 57 ), - - 52 / + + 4 ) THEN + 61 + 9 END
----
NULL

query I rowsort
SELECT 56 + - NULLIF ( 72, + 46 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT 92 - - 6 - SUM( ALL - 8 ) + 2 - + + 82 - - 48 + + - 0 * 49 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8796
SELECT 92 - - 6 - SUM ( ALL - 8 ) + 2 - + + 82 - - 48 + + - 0 * 49 AS col2
----
74

query I rowsort
SELECT ALL 26 + - + 67
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8798
SELECT COUNT( * ) DIV + 34 * 82 * + 69 * 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8798
SELECT COUNT ( * ) / + 34 * 82 * + 69 * 2 AS col1
----
0

query I rowsort
SELECT ALL 78 + - - 16 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT 82 + - MAX( DISTINCT + 69 )
----
13

skipif mysql # not compatible
query I rowsort label-8800
SELECT 82 + - MAX ( DISTINCT + 69 )
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8801
SELECT 81 * 19 DIV 23 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8801
SELECT 81 * 19 / 23 AS col2
----
66

query I rowsort
SELECT 17 + - 41 AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8803
SELECT ALL COUNT( * ) - - - 7 + 6 + + + CAST( + COUNT( * ) AS SIGNED ) * + - 27 - + 30 * + 83 AS col1
----
-2517

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL COUNT ( * ) - - - 7 + 6 + + + CAST ( + COUNT ( * ) AS INTEGER ) * + - 27 - + 30 * + 83 AS col1
----
-2517

query I rowsort
SELECT 7 * - 92
----
-644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8805
SELECT 42 * + COUNT( 56 ) AS col1, MIN( ALL + - 92 ) + + CAST( + 87 AS SIGNED ) + - - CAST( + 82 AS SIGNED ) AS col1
----
42
77

skipif mysql # not compatible
query II rowsort label-8805
SELECT 42 * + COUNT ( 56 ) AS col1, MIN ( ALL + - 92 ) + + CAST ( + 87 AS INTEGER ) + - - CAST ( + 82 AS INTEGER ) AS col1
----
42
77

query I rowsort
SELECT DISTINCT 23 - - COALESCE ( - 86, 64, + 62 * - + 16 + + 12 - + + 52 ) + + 31 AS col2
----
-32

query I rowsort
SELECT DISTINCT - - 92 AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT - 66 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT - 66 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT DISTINCT NULLIF ( - - 31, + 84 * 53 + + + MIN( + 96 ) ) * - 54 AS col2
----
-1674

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT NULLIF ( - - 31, + 84 * 53 + + + MIN ( + 96 ) ) * - 54 AS col2
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT ALL - 95 * - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL - 95 * - COUNT ( * )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8811
SELECT ALL CASE - 82 WHEN + COUNT( - - 68 ) * - - 20 * - 76 THEN NULL WHEN - COUNT( * ) + + 82 THEN - - AVG ( DISTINCT - 40 ) * - + 4 ELSE NULL END * - + 96 / + ( CAST( - - 38 AS SIGNED ) ) - + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL CASE - 82 WHEN + COUNT ( - - 68 ) * - - 20 * - 76 THEN NULL WHEN - COUNT ( * ) + + 82 THEN - - AVG ( DISTINCT - 40 ) * - + 4 ELSE NULL END * - + 96 / + ( CAST ( - - 38 AS INTEGER ) ) - + + 78
----
NULL

query II rowsort
SELECT DISTINCT - - 80, 37 * + 51 AS col2
----
80
1887

onlyif mysql # DIV for integer division: 
query I rowsort label-8813
SELECT ALL + + 16 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL + + 16 / 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT DISTINCT 47 + - 42 * + COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT 47 + - 42 * + COUNT ( * ) AS col0
----
5

query II rowsort
SELECT + 10, 60 AS col0
----
10
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8816
SELECT ALL - ( + 87 ) + + 54 AS col0, + 82 + COUNT( * ) AS col0
----
-33
83

skipif mysql # not compatible
query II rowsort label-8816
SELECT ALL - ( + 87 ) + + 54 AS col0, + 82 + COUNT ( * ) AS col0
----
-33
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT DISTINCT + - 91 + - 56 * - CASE - + 49 WHEN + + 52 * - - 84 + + + ( - + 94 ) THEN + COUNT( * ) + + + 20 / + 42 + 10 + COUNT( * ) / + 46 - + 50 / ( - - 9 ) END - - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT + - 91 + - 56 * - CASE - + 49 WHEN + + 52 * - - 84 + + + ( - + 94 ) THEN + COUNT ( * ) + + + 20 / + 42 + 10 + COUNT ( * ) / + 46 - + 50 / ( - - 9 ) END - - + 18
----
NULL

query I rowsort
SELECT NULLIF ( + 47, + 7 ) + + - 3 AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8819
SELECT - 32, CAST( - 44 AS SIGNED ) + + - 18 AS col1
----
-32
-62

skipif mysql # not compatible
query II rowsort label-8819
SELECT - 32, CAST ( - 44 AS INTEGER ) + + - 18 AS col1
----
-32
-62

query I rowsort
SELECT 65 - + + 11 AS col1
----
54

query I rowsort
SELECT 17 * + + 72 + - 7 + + + 23 AS col1
----
1240

query I rowsort
SELECT 72 * - 63
----
-4536

query II rowsort
SELECT 55 AS col1, 98 * - - 72
----
55
7056

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT ALL + COUNT( * ) + - 16 * - + 75 AS col1
----
1201

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL + COUNT ( * ) + - 16 * - + 75 AS col1
----
1201

query I rowsort
SELECT 85 * - CASE - 25 WHEN - 26 * - - 78 THEN 50 END * - + 73 * 89 * + - 91 * - 85
----
NULL

query I rowsort
SELECT ALL - 90 * + 94 * + 61
----
-516060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8827
SELECT 91 DIV - + SUM( ALL + 53 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8827
SELECT 91 / - + SUM ( ALL + 53 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8828
SELECT ALL 45 AS col0, SUM( DISTINCT + + NULLIF ( - CASE 90 WHEN 95 * + 46 + + - 69 THEN + ( + 25 ) END, 20 + + 44 ) ) * - 3 * + CASE - ( - 55 ) WHEN - - 37 * - 3 - - - AVG ( + + 99 ) THEN NULL WHEN - + 14 * - 99 THEN 0 ELSE + + 58 - - - 83 * 19 END AS col0
----
45
NULL

skipif mysql # not compatible
query II rowsort label-8828
SELECT ALL 45 AS col0, SUM ( DISTINCT + + NULLIF ( - CASE 90 WHEN 95 * + 46 + + - 69 THEN + ( + 25 ) END, 20 + + 44 ) ) * - 3 * + CASE - ( - 55 ) WHEN - - 37 * - 3 - - - AVG ( + + 99 ) THEN NULL WHEN - + 14 * - 99 THEN 0 ELSE + + 58 - - - 83 * 19 END AS col0
----
45
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8829
SELECT ALL 97 AS col2, COUNT( + 68 ) DIV + - 1
----
97
-1

skipif mysql # not compatible
query II rowsort label-8829
SELECT ALL 97 AS col2, COUNT ( + 68 ) / + - 1
----
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT 81 - - COALESCE ( - COUNT( - - 92 ), + 46 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-8830
SELECT 81 - - COALESCE ( - COUNT ( - - 92 ), + 46 ) col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8831
SELECT COUNT( * ) * + 31 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT COUNT ( * ) * + 31 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8832
SELECT ALL + 45 DIV + NULLIF ( - - 61, 29 ) * + 49
----
0

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL + 45 / + NULLIF ( - - 61, 29 ) * + 49
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8833
SELECT ALL COUNT( * ) col0, 78 + 33 AS col0
----
1
111

skipif mysql # not compatible
query II rowsort label-8833
SELECT ALL COUNT ( * ) col0, 78 + 33 AS col0
----
1
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT 26 * - COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8834
SELECT 26 * - COUNT ( * ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT ALL MAX( + + 49 ) * - 97
----
-4753

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL MAX ( + + 49 ) * - 97
----
-4753

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8836
SELECT 7 - - COALESCE ( - 1, - - CAST( - + 42 AS SIGNED ), - + 53 ) / + - CAST( NULL AS SIGNED ) AS col1, - 60 * + MIN( DISTINCT - 74 )
----
NULL
4440

skipif mysql # not compatible
query II rowsort label-8836
SELECT 7 - - COALESCE ( - 1, - - CAST ( - + 42 AS INTEGER ), - + 53 ) / + - CAST ( NULL AS INTEGER ) AS col1, - 60 * + MIN ( DISTINCT - 74 )
----
NULL
4440

query I rowsort
SELECT ALL 65 * + 43 * 71
----
198445

query I rowsort
SELECT 16 - - 47
----
63

query I rowsort
SELECT ALL 82 * 94
----
7708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8840
SELECT DISTINCT SUM( ALL + ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT SUM ( ALL + ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8841
SELECT DISTINCT 80, + CAST( NULL AS DECIMAL ) - + 29 * - 51 - - 26 + - 78 + - 46 AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-8841
SELECT DISTINCT 80, + CAST ( NULL AS REAL ) - + 29 * - 51 - - 26 + - 78 + - 46 AS col2
----
80
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8842
SELECT DISTINCT - CASE ( 47 ) WHEN + 41 * COUNT( * ) * COUNT( DISTINCT + + 63 ) * - + 75 * + CAST( NULL AS SIGNED ) * + 31 THEN NULL WHEN + 87 + - + 55 + + 36 + + + 30 / 83 THEN - ( - + 69 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT - CASE ( 47 ) WHEN + 41 * COUNT ( * ) * COUNT ( DISTINCT + + 63 ) * - + 75 * + CAST ( NULL AS INTEGER ) * + 31 THEN NULL WHEN + 87 + - + 55 + + 36 + + + 30 / 83 THEN - ( - + 69 ) END
----
NULL

query I rowsort
SELECT 93 - - + 42 AS col2
----
135

query I rowsort
SELECT ALL NULLIF ( - 29, + + 16 ) AS col1
----
-29

query I rowsort
SELECT - NULLIF ( - 35, + 45 ) + - 7
----
28

query I rowsort
SELECT + 30 * + 95 * - 14 AS col1
----
-39900

query II rowsort
SELECT ALL - 62, 45 AS col2
----
-62
45

query I rowsort
SELECT 49 * + + 62 AS col0
----
3038

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT + MAX( 23 ) * - 73 + COUNT( * ) + - COUNT( * ) + + 62 + 14 * - 47 AS col1
----
-2275

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT + MAX ( 23 ) * - 73 + COUNT ( * ) + - COUNT ( * ) + + 62 + 14 * - 47 AS col1
----
-2275

query II rowsort
SELECT + + 95 col0, + 79
----
95
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8851
SELECT DISTINCT - ( - 78 ) * 33 * - - 82 * - 94 + + 27 - - + 87 + + 96 - 48 * - 47 * COUNT( * ) * - COUNT( * ) * - + COALESCE ( 43, - 70 * + + 0 + - + 88 + 83 - COUNT( * ), - 81 + + 26 ), NULLIF ( MAX( 79 ), + + 37 * + 82 * + + 74 + + 86 * NULLIF ( - - COUNT( * ), + 61 ) ) AS col0
----
-19743174
79

skipif mysql # not compatible
query II rowsort label-8851
SELECT DISTINCT - ( - 78 ) * 33 * - - 82 * - 94 + + 27 - - + 87 + + 96 - 48 * - 47 * COUNT ( * ) * - COUNT ( * ) * - + COALESCE ( 43, - 70 * + + 0 + - + 88 + 83 - COUNT ( * ), - 81 + + 26 ), NULLIF ( MAX ( 79 ), + + 37 * + 82 * + + 74 + + 86 * NULLIF ( - - COUNT ( * ), + 61 ) ) AS col0
----
-19743174
79

query II rowsort
SELECT DISTINCT + 70 AS col2, 11
----
70
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8853
SELECT + - 1 + + NULLIF ( + 8, - CASE - 83 WHEN + CAST( - 43 AS SIGNED ) / + 79 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN - - 68 * + 59 + COUNT( * ) ELSE 60 * - 94 * - - 45 END / - + COUNT( * ) * + 89 + - - AVG ( ALL + - 33 ) * + CASE 7 WHEN 98 THEN - - 50 WHEN - COUNT( * ) THEN + - COUNT( * ) * - - ( 7 ) + + COALESCE ( - COUNT( * ), - 49 ) + + 25 + - + NULLIF ( + 83, + - COUNT( * ) * + COUNT( * ) ) + - 42 ELSE NULL END * 51 + CASE - 63 WHEN - 38 THEN + 82 WHEN + 43 + ( - - COALESCE ( - COUNT( * ), + 68, 72 ) ) * ( + 47 ) THEN NULL ELSE CASE 80 WHEN + 78 THEN - CAST( 72 AS SIGNED ) + + 6 / ( + MAX( 88 ) / CAST( NULL AS SIGNED ) ) ELSE 31 END END ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8853
SELECT + - 1 + + NULLIF ( + 8, - CASE - 83 WHEN + CAST ( - 43 AS INTEGER ) / + 79 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - - 68 * + 59 + COUNT ( * ) ELSE 60 * - 94 * - - 45 END / - + COUNT ( * ) * + 89 + - - AVG ( ALL + - 33 ) * + CASE 7 WHEN 98 THEN - - 50 WHEN - COUNT ( * ) THEN + - COUNT ( * ) * - - ( 7 ) + + COALESCE ( - COUNT ( * ), - 49 ) + + 25 + - + NULLIF ( + 83, + - COUNT ( * ) * + COUNT ( * ) ) + - 42 ELSE NULL END * 51 + CASE - 63 WHEN - 38 THEN + 82 WHEN + 43 + ( - - COALESCE ( - COUNT ( * ), + 68, 72 ) ) * ( + 47 ) THEN NULL ELSE CASE 80 WHEN + 78 THEN - CAST ( 72 AS INTEGER ) + + 6 / ( + MAX ( 88 ) / CAST ( NULL AS INTEGER ) ) ELSE 31 END END ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT ALL + COALESCE ( - CASE 28 WHEN + 59 * - ( - ( COUNT( * ) ) ) THEN NULL WHEN + 37 / + 47 + - 5 - + + 35 THEN + - 48 WHEN ( - 19 ) + + COUNT( * ) * - CASE - MIN( DISTINCT + - 65 ) WHEN - 71 THEN - NULLIF ( + - 70, 26 * - 78 - - 3 * - 11 ) END THEN ( - + 39 ) * + - 21 * - + 69 END, 4 )
----
4

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL + COALESCE ( - CASE 28 WHEN + 59 * - ( - ( COUNT ( * ) ) ) THEN NULL WHEN + 37 / + 47 + - 5 - + + 35 THEN + - 48 WHEN ( - 19 ) + + COUNT ( * ) * - CASE - MIN ( DISTINCT + - 65 ) WHEN - 71 THEN - NULLIF ( + - 70, 26 * - 78 - - 3 * - 11 ) END THEN ( - + 39 ) * + - 21 * - + 69 END, 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT + 1 * - COUNT( * ) + - 27
----
-28

skipif mysql # not compatible
query I rowsort label-8855
SELECT + 1 * - COUNT ( * ) + - 27
----
-28

query II rowsort
SELECT DISTINCT + 93 col0, + 80
----
93
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT ALL 34 * - 13 + - + 30 + ( - - 60 ) * + - COUNT( * ) AS col1
----
-532

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL 34 * - 13 + - + 30 + ( - - 60 ) * + - COUNT ( * ) AS col1
----
-532

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8858
SELECT + 84 + 5 - COUNT( * ) + - 81 - + + 82 + - COALESCE ( + 10, - + 24 + 89 * 44 ) * + 82 DIV - COUNT( * ) AS col1
----
745

skipif mysql # not compatible
query I rowsort label-8858
SELECT + 84 + 5 - COUNT ( * ) + - 81 - + + 82 + - COALESCE ( + 10, - + 24 + 89 * 44 ) * + 82 / - COUNT ( * ) AS col1
----
745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8859
SELECT + CAST( NULL AS DECIMAL ) * - 79 col0, - 83 + - 77 + COUNT( * ) * 71 * 33 * + - COALESCE ( - CAST( 59 AS SIGNED ), - 97 )
----
NULL
138077

skipif mysql # not compatible
query II rowsort label-8859
SELECT + CAST ( NULL AS REAL ) * - 79 col0, - 83 + - 77 + COUNT ( * ) * 71 * 33 * + - COALESCE ( - CAST ( 59 AS INTEGER ), - 97 )
----
NULL
138077

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8860
SELECT ALL + COUNT( * ) DIV ( 30 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL + COUNT ( * ) / ( 30 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT ALL 66 - + + MAX( + 44 ) + - 21
----
1

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL 66 - + + MAX ( + 44 ) + - 21
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL + MAX( ALL - - 51 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL + MAX ( ALL - - 51 ) col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8863
SELECT DISTINCT + CAST( - ( 41 ) AS SIGNED ) AS col2, 99
----
-41
99

skipif mysql # not compatible
query II rowsort label-8863
SELECT DISTINCT + CAST ( - ( 41 ) AS INTEGER ) AS col2, 99
----
-41
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8864
SELECT + CAST( NULL AS DECIMAL ) + - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8864
SELECT + CAST ( NULL AS REAL ) + - + 50
----
NULL

query I rowsort
SELECT - 75 * 21 - + 93 AS col2
----
-1668

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT - 89 * - + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-8866
SELECT - 89 * - + COUNT ( * )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8867
SELECT - 7 + 86 DIV 40 * 33 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-8867
SELECT - 7 + 86 / 40 * 33 AS col0
----
59

query I rowsort
SELECT DISTINCT + 41 * + 27
----
1107

query I rowsort
SELECT ALL COALESCE ( 21, + 4 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8870
SELECT - 95 + + CAST( NULL AS SIGNED ) + - CAST( - 6 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT - 95 + + CAST ( NULL AS INTEGER ) + - CAST ( - 6 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8871
SELECT - 53 * + + ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8871
SELECT - 53 * + + ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT ALL MIN( DISTINCT + 4 ) * COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL MIN ( DISTINCT + 4 ) * COUNT ( * ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT - 71 + + COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-8873
SELECT - 71 + + COUNT ( * ) AS col1
----
-70

query I rowsort
SELECT DISTINCT ( - 47 ) AS col0
----
-47

query II rowsort
SELECT ALL ( 92 ) AS col0, 33 AS col2
----
92
33

query I rowsort
SELECT - 47 + - 99
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT ALL ( - - COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL ( - - COUNT ( * ) ) col1
----
1

query I rowsort
SELECT - 23 + + 51
----
28

onlyif mysql # DIV for integer division: 
query II rowsort label-8879
SELECT ALL 35 DIV + 32 AS col1, 89 AS col0
----
1
89

skipif mysql # not compatible
query II rowsort label-8879
SELECT ALL 35 / + 32 AS col1, 89 AS col0
----
1
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT - + COUNT( * ) + - - COUNT( DISTINCT - - 72 ) * - - 15 * ( + 67 )
----
1004

skipif mysql # not compatible
query I rowsort label-8880
SELECT - + COUNT ( * ) + - - COUNT ( DISTINCT - - 72 ) * - - 15 * ( + 67 )
----
1004

onlyif mysql # DIV for integer division: 
query I rowsort label-8881
SELECT ALL + - 75 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL + - 75 / - 90
----
0

query II rowsort
SELECT - - 73 * - + 75 AS col0, 24 * + 33 * - 17 * - + 84 AS col0
----
-5475
1130976

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8883
SELECT + - 68 + + 57 + - CASE COUNT( * ) WHEN + + 14 THEN 56 - - 49 WHEN - COUNT( * ) THEN + COUNT( * ) END * 2 - + CAST( 11 AS DECIMAL ) + - NULLIF ( - COUNT( * ), 70 ) * + - NULLIF ( - CASE + 53 WHEN - MIN( + 67 ) THEN - COUNT( * ) * + - 61 * + - 37 * 76 * + + COUNT( * ) ELSE 22 END, + 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8883
SELECT + - 68 + + 57 + - CASE COUNT ( * ) WHEN + + 14 THEN 56 - - 49 WHEN - COUNT ( * ) THEN + COUNT ( * ) END * 2 - + CAST ( 11 AS REAL ) + - NULLIF ( - COUNT ( * ), 70 ) * + - NULLIF ( - CASE + 53 WHEN - MIN ( + 67 ) THEN - COUNT ( * ) * + - 61 * + - 37 * 76 * + + COUNT ( * ) ELSE 22 END, + 42 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8884
SELECT + 84 DIV - - ( - 37 ) AS col2, 52 * - 43 * + 70
----
-2
-156520

skipif mysql # not compatible
query II rowsort label-8884
SELECT + 84 / - - ( - 37 ) AS col2, 52 * - 43 * + 70
----
-2
-156520

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL - + CASE - 6 WHEN + + 97 THEN + 72 * + 48 + 24 + - 85 / - 15 / + - 6 * + 22 + + 97 * 45 + 88 + - 52 + - + 29 + + + COUNT( * ) ELSE NULL END + - - CASE + + ( 95 ) WHEN + 61 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - + 68 * + 80 + - + 2 + 70 + + - 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL - + CASE - 6 WHEN + + 97 THEN + 72 * + 48 + 24 + - 85 / - 15 / + - 6 * + 22 + + 97 * 45 + 88 + - 52 + - + 29 + + + COUNT ( * ) ELSE NULL END + - - CASE + + ( 95 ) WHEN + 61 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - + 68 * + 80 + - + 2 + 70 + + - 71 END
----
NULL

query I rowsort
SELECT DISTINCT + 29 * + + 91 * - 29 * + - 21
----
1607151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8887
SELECT + COALESCE ( 26, + - NULLIF ( - + ( + ( + COUNT( * ) ) ), + ( - 3 ) DIV - 73 + - + COALESCE ( ( + 21 ), - 31 ) ) ) DIV + + 51 + - + SUM( DISTINCT + 17 ) col0
----
-17

skipif mysql # not compatible
query I rowsort label-8887
SELECT + COALESCE ( 26, + - NULLIF ( - + ( + ( + COUNT ( * ) ) ), + ( - 3 ) / - 73 + - + COALESCE ( ( + 21 ), - 31 ) ) ) / + + 51 + - + SUM ( DISTINCT + 17 ) col0
----
-17

query I rowsort
SELECT DISTINCT + 36 col2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8889
SELECT + MIN( ALL - + 5 ) DIV + - COUNT( * ), 29 AS col0
----
5
29

skipif mysql # not compatible
query II rowsort label-8889
SELECT + MIN ( ALL - + 5 ) / + - COUNT ( * ), 29 AS col0
----
5
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8890
SELECT ALL 82 DIV + 46 + + + 88 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL 82 / + 46 + + + 88 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL - COUNT( * ) / + AVG ( ALL + 83 ) + + 58 + + COUNT( * ) * + CASE 52 WHEN + 16 + 50 + - + 55 + 10 / 10 * 63 * + + ( 13 ) THEN + 37 WHEN - - COUNT( * ) THEN + - MAX( ALL - 8 ) / + + ( + + 70 ) END / - 7 + + 3 * - 51 * + 68 + - ( 79 ) - + - ( + + ( - 41 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL - COUNT ( * ) / + AVG ( ALL + 83 ) + + 58 + + COUNT ( * ) * + CASE 52 WHEN + 16 + 50 + - + 55 + 10 / 10 * 63 * + + ( 13 ) THEN + 37 WHEN - - COUNT ( * ) THEN + - MAX ( ALL - 8 ) / + + ( + + 70 ) END / - 7 + + 3 * - 51 * + 68 + - ( 79 ) - + - ( + + ( - 41 ) ) AS col0
----
NULL

query I rowsort
SELECT + ( + + 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT ALL + + NULLIF ( - - 61, + MIN( DISTINCT + CASE - 30 WHEN + 38 - + 16 THEN + 32 + - NULLIF ( + 87, - COALESCE ( - 76, 56, + 55 - + 74 ) * 87 + - + 37 ) ELSE NULL END ) )
----
61

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL + + NULLIF ( - - 61, + MIN ( DISTINCT + CASE - 30 WHEN + 38 - + 16 THEN + 32 + - NULLIF ( + 87, - COALESCE ( - 76, 56, + 55 - + 74 ) * 87 + - + 37 ) ELSE NULL END ) )
----
61

query I rowsort
SELECT - - 72 - + 74
----
-2

query I rowsort
SELECT ALL + + 61 col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT DISTINCT COUNT( * ) * - 38 + - 67 - - 13 + + - 73
----
-165

skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT COUNT ( * ) * - 38 + - 67 - - 13 + + - 73
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT ALL + COUNT( * ) * + 66 + + 31
----
97

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL + COUNT ( * ) * + 66 + + 31
----
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8898
SELECT ALL + 83 * - COALESCE ( + - 35, - 6 ) + - 81 AS col2, CAST( - CAST( + + 78 AS DECIMAL ) AS SIGNED ) - + 95 + 0 + + - 39 * - 1 * + 7 AS col2
----
2824
100

skipif mysql # not compatible
query II rowsort label-8898
SELECT ALL + 83 * - COALESCE ( + - 35, - 6 ) + - 81 AS col2, CAST ( - CAST ( + + 78 AS REAL ) AS INTEGER ) - + 95 + 0 + + - 39 * - 1 * + 7 AS col2
----
2824
100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8899
SELECT ALL + - NULLIF ( 10, - COALESCE ( 75, AVG ( ALL - + CAST( + 57 AS DECIMAL ) ) * + 44 ) * + 42 / 54 * + - 88 )
----
-10

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL + - NULLIF ( 10, - COALESCE ( 75, AVG ( ALL - + CAST ( + 57 AS REAL ) ) * + 44 ) * + 42 / 54 * + - 88 )
----
-10

query II rowsort
SELECT DISTINCT + ( + - 71 ) AS col1, 18 col1
----
-71
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8901
SELECT DISTINCT NULLIF ( ( - 51 ), + - 59 * CAST( + ( ( + 11 ) ) AS SIGNED ) * - COUNT( * ) + + COUNT( 65 ) ) * - NULLIF ( - + COUNT( * ), + - COUNT( * ) ) + 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT NULLIF ( ( - 51 ), + - 59 * CAST ( + ( ( + 11 ) ) AS INTEGER ) * - COUNT ( * ) + + COUNT ( 65 ) ) * - NULLIF ( - + COUNT ( * ), + - COUNT ( * ) ) + 71 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8902
SELECT + CAST( NULL AS SIGNED ) - + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8902
SELECT + CAST ( NULL AS INTEGER ) - + 8
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8903
SELECT ALL 26 DIV - 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL 26 / - 81 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8904
SELECT CASE - 81 WHEN - 43 + + + 67 + - - ( - 1 ) THEN - + 73 WHEN - 50 * 89 + - + 65 THEN - CAST( - + 91 AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8904
SELECT CASE - 81 WHEN - 43 + + + 67 + - - ( - 1 ) THEN - + 73 WHEN - 50 * 89 + - + 65 THEN - CAST ( - + 91 AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8905
SELECT ALL + 75, CASE - 14 WHEN - NULLIF ( + + CASE + - 71 WHEN + 61 THEN 57 * + - 93 WHEN + COUNT( * ) * + 25 + - COUNT( * ) THEN NULL END, + 80 + MAX( DISTINCT - 35 ) / 75 ) THEN - 13 / - 2 ELSE NULL END col2
----
75
NULL

skipif mysql # not compatible
query II rowsort label-8905
SELECT ALL + 75, CASE - 14 WHEN - NULLIF ( + + CASE + - 71 WHEN + 61 THEN 57 * + - 93 WHEN + COUNT ( * ) * + 25 + - COUNT ( * ) THEN NULL END, + 80 + MAX ( DISTINCT - 35 ) / 75 ) THEN - 13 / - 2 ELSE NULL END col2
----
75
NULL

query I rowsort
SELECT + COALESCE ( + 90, + 63 * 4, - 85 * 93 ) AS col0
----
90

query I rowsort
SELECT + 31 + - - 75
----
106

query I rowsort
SELECT + 90 * + 23
----
2070

query I rowsort
SELECT ALL CASE - 4 WHEN + - 50 THEN - 48 ELSE 29 END * + - 13 AS col0
----
-377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8910
SELECT CASE - + 45 WHEN SUM( ALL - CAST( NULL AS SIGNED ) ) - - 45 THEN NULL WHEN + 85 THEN NULL ELSE 63 + - 14 END AS col1
----
49

skipif mysql # not compatible
query I rowsort label-8910
SELECT CASE - + 45 WHEN SUM ( ALL - CAST ( NULL AS INTEGER ) ) - - 45 THEN NULL WHEN + 85 THEN NULL ELSE 63 + - 14 END AS col1
----
49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8911
SELECT COALESCE ( - CAST( NULL AS SIGNED ), - 0 DIV - 29 - - - 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-8911
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), - 0 / - 29 - - - 98 ) AS col1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8912
SELECT DISTINCT - 73 DIV 52 * 18
----
-18

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT - 73 / 52 * 18
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8913
SELECT DISTINCT 12 DIV COUNT( * ) * - - SUM( 92 ) col2
----
1104

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT 12 / COUNT ( * ) * - - SUM ( 92 ) col2
----
1104

query I rowsort
SELECT - 23 * - 76 AS col1
----
1748

query I rowsort
SELECT ALL - 55 * + - 55 AS col1
----
3025

query I rowsort
SELECT DISTINCT + 1 * + 83 * - 17
----
-1411

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT - COUNT( * ) * + 79 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-8917
SELECT - COUNT ( * ) * + 79 AS col0
----
-79

query I rowsort
SELECT ALL ( 5 ) + 52
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8919
SELECT ALL COALESCE ( + NULLIF ( + 41, COUNT( * ) ), + 34 * 16 ) AS col1, - 72
----
41
-72

skipif mysql # not compatible
query II rowsort label-8919
SELECT ALL COALESCE ( + NULLIF ( + 41, COUNT ( * ) ), + 34 * 16 ) AS col1, - 72
----
41
-72

query I rowsort
SELECT + 88 + - 60
----
28

query II rowsort
SELECT - 29 col0, + 67
----
-29
67

query I rowsort
SELECT + 3 * 91
----
273

query I rowsort
SELECT - 73 * 16 AS col1
----
-1168

query I rowsort
SELECT ALL + 17 + + 21 + 92 col2
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8925
SELECT - 12 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8925
SELECT - 12 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8926
SELECT DISTINCT + + 97 + ( + COUNT( 87 ) ) DIV - - 27 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT + + 97 + ( + COUNT ( 87 ) ) / - - 27 AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8927
SELECT DISTINCT + CAST( + CAST( + 91 AS SIGNED ) AS SIGNED ) + - NULLIF ( COUNT( * ), + 11 * - 56 * + CAST( NULL AS SIGNED ) * + - 62 + + - 70 + - 79 / - + 1 * + - MAX( - - 31 ) + 70 - - + 59 * - + ( 55 ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT + CAST ( + CAST ( + 91 AS INTEGER ) AS INTEGER ) + - NULLIF ( COUNT ( * ), + 11 * - 56 * + CAST ( NULL AS INTEGER ) * + - 62 + + - 70 + - 79 / - + 1 * + - MAX ( - - 31 ) + 70 - - + 59 * - + ( 55 ) ) AS col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8928
SELECT ALL - 43 AS col2, + 18 - CAST( + ( + 94 ) AS SIGNED ) - - CAST( NULL AS SIGNED ) * + ( + 35 ) * - ( + 61 ) + + - 76
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-8928
SELECT ALL - 43 AS col2, + 18 - CAST ( + ( + 94 ) AS INTEGER ) - - CAST ( NULL AS INTEGER ) * + ( + 35 ) * - ( + 61 ) + + - 76
----
-43
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8929
SELECT - - 61 + - 42 + 83 + 35 * - + MIN( ALL - CAST( NULL AS SIGNED ) ) * 78 * + 68 + + - 0 - COUNT( * ) + + COUNT( - - 93 ) - 94 + - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8929
SELECT - - 61 + - 42 + 83 + 35 * - + MIN ( ALL - CAST ( NULL AS INTEGER ) ) * 78 * + 68 + + - 0 - COUNT ( * ) + + COUNT ( - - 93 ) - 94 + - 24 AS col0
----
NULL

query I rowsort
SELECT ALL + - 30 + - + 32
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT - MIN( DISTINCT - - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-8931
SELECT - MIN ( DISTINCT - - 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ALL + MAX( DISTINCT + + 86 ) + + 39 * + - 75
----
-2839

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL + MAX ( DISTINCT + + 86 ) + + 39 * + - 75
----
-2839

query I rowsort
SELECT ALL - - 55 + 52
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT ( + + 28 ) + + + SUM( 71 ) + + 99 AS col0
----
198

skipif mysql # not compatible
query I rowsort label-8934
SELECT ( + + 28 ) + + + SUM ( 71 ) + + 99 AS col0
----
198

query I rowsort
SELECT + 19 + + 15 - 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ALL - + MAX( ALL + - 65 ) - - - 28 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL - + MAX ( ALL + - 65 ) - - - 28 AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8937
SELECT - 42 * COUNT( * ) + + 5 * + 94 DIV + + ( + 2 )
----
193

skipif mysql # not compatible
query I rowsort label-8937
SELECT - 42 * COUNT ( * ) + + 5 * + 94 / + + ( + 2 )
----
193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8938
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT ALL + COUNT( * ) * - CASE + + 99 WHEN + - 31 THEN NULL ELSE + - 57 END
----
57

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL + COUNT ( * ) * - CASE + + 99 WHEN + - 31 THEN NULL ELSE + - 57 END
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8940
SELECT DISTINCT - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8940
SELECT DISTINCT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8941
SELECT ( - 81 ) DIV + 31 + + 39 * 6 + - 75
----
157

skipif mysql # not compatible
query I rowsort label-8941
SELECT ( - 81 ) / + 31 + + 39 * 6 + - 75
----
157

query I rowsort
SELECT ALL - 80 - + - 9 AS col0
----
-71

query I rowsort
SELECT ALL + 59 * 92 * 19 * - ( + ( - 81 ) ) AS col2
----
8353692

query I rowsort
SELECT 81 + 33 col1
----
114

query I rowsort
SELECT - COALESCE ( 37, - 16 ) * - 54 * 49 + - - 31 * 65 * + 39 * - + 35
----
-2652573

onlyif mysql # aggregate syntax: 
query II rowsort label-8946
SELECT COUNT( * ) * + COUNT( * ), ( - + ( + 78 ) ) + + + 91 AS col0
----
1
13

skipif mysql # not compatible
query II rowsort label-8946
SELECT COUNT ( * ) * + COUNT ( * ), ( - + ( + 78 ) ) + + + 91 AS col0
----
1
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8947
SELECT - CAST( + 62 AS SIGNED ) * 38 + - COUNT( * ) col0
----
-2357

skipif mysql # not compatible
query I rowsort label-8947
SELECT - CAST ( + 62 AS INTEGER ) * 38 + - COUNT ( * ) col0
----
-2357

onlyif mysql # aggregate syntax: 
query II rowsort label-8948
SELECT COUNT( * ) + + + 52 AS col0, 4 + - - 66
----
53
70

skipif mysql # not compatible
query II rowsort label-8948
SELECT COUNT ( * ) + + + 52 AS col0, 4 + - - 66
----
53
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8949
SELECT ALL 42 * + - CAST( - 47 AS SIGNED )
----
1974

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL 42 * + - CAST ( - 47 AS INTEGER )
----
1974

query I rowsort
SELECT 26 + - - 61 - - 50
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-8951
SELECT DISTINCT 71 DIV 23 * - 48 AS col2
----
-144

skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT 71 / 23 * - 48 AS col2
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-8952
SELECT 45 DIV 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8952
SELECT 45 / 48 AS col0
----
0

query I rowsort
SELECT ALL 6 + - - 69
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT 16 + + 30 + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-8954
SELECT 16 + + 30 + COUNT ( * )
----
47

query I rowsort
SELECT DISTINCT 41 + 35 * + + 4 + - CASE + - 64 WHEN - ( 21 ) THEN + 29 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8956
SELECT ALL CAST( NULL AS SIGNED ) + - 68 * - MIN( ALL - 95 ) + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL CAST ( NULL AS INTEGER ) + - 68 * - MIN ( ALL - 95 ) + 4
----
NULL

query III rowsort
SELECT 41 + + 61 - + + ( 41 ), 67 AS col0, + + 8 + + 40 col2
----
61
67
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8958
SELECT + 23 + - 64 DIV + - 58 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-8958
SELECT + 23 + - 64 / + - 58 AS col1
----
24

query I rowsort
SELECT ALL + - 95 + 37 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL COUNT( + + 6 )
----
1

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL COUNT ( + + 6 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT DISTINCT - 77 + + 83 + - - 56 * + - ( SUM( DISTINCT + 84 ) ) AS col2
----
-4698

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT - 77 + + 83 + - - 56 * + - ( SUM ( DISTINCT + 84 ) ) AS col2
----
-4698

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT - MIN( 6 ) + + + NULLIF ( + COUNT( * ), 89 * - 36 * - 62 * + + 5 + 0 )
----
-5

skipif mysql # not compatible
query I rowsort label-8962
SELECT - MIN ( 6 ) + + + NULLIF ( + COUNT ( * ), 89 * - 36 * - 62 * + + 5 + 0 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8963
SELECT ALL - + 3 - + + 95 / + CASE + 70 WHEN 81 / 54 THEN NULL WHEN - + CAST( NULL AS SIGNED ) * 71 * - 26 + - 31 + ( - COALESCE ( + 56, + 85 ) ) + + - ( + - COUNT( * ) ) THEN NULL ELSE - + CASE + COUNT( * ) WHEN - CASE - - 61 WHEN - - 60 THEN - ( - 76 ) + + 90 - + COALESCE ( + ( + - 54 ), - - CAST( 61 AS SIGNED ) ) * + 83 * + 11 * + - CAST( NULL AS SIGNED ) / 27 END / + - 13 + + 54 + + 91 * - 70 THEN + + 68 ELSE NULL END END * MAX( DISTINCT + 41 ) + ( + 51 ) + 38 + - - 44 - - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL - + 3 - + + 95 / + CASE + 70 WHEN 81 / 54 THEN NULL WHEN - + CAST ( NULL AS INTEGER ) * 71 * - 26 + - 31 + ( - COALESCE ( + 56, + 85 ) ) + + - ( + - COUNT ( * ) ) THEN NULL ELSE - + CASE + COUNT ( * ) WHEN - CASE - - 61 WHEN - - 60 THEN - ( - 76 ) + + 90 - + COALESCE ( + ( + - 54 ), - - CAST ( 61 AS INTEGER ) ) * + 83 * + 11 * + - CAST ( NULL AS INTEGER ) / 27 END / + - 13 + + 54 + + 91 * - 70 THEN + + 68 ELSE NULL END END * MAX ( DISTINCT + 41 ) + ( + 51 ) + 38 + - - 44 - - 76
----
NULL

query I rowsort
SELECT 86 + + 13 * 31
----
489

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT - 48 + - 82 + 55 * + 46 * ( - 87 ) * - ( - - 55 ) / - + 57 + - 47 - + CASE + 64 WHEN - - 55 - - 19 THEN - ( + - MIN( - 70 ) ) + + COALESCE ( COUNT( * ), + 59 ) + 4 * - + 47 + + + 20 / - 92 + + + 38 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8965
SELECT - 48 + - 82 + 55 * + 46 * ( - 87 ) * - ( - - 55 ) / - + 57 + - 47 - + CASE + 64 WHEN - - 55 - - 19 THEN - ( + - MIN ( - 70 ) ) + + COALESCE ( COUNT ( * ), + 59 ) + 4 * - + 47 + + + 20 / - 92 + + + 38 END AS col2
----
NULL

query I rowsort
SELECT ALL - - 32 col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT - COUNT( * ) - + 22 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-8967
SELECT - COUNT ( * ) - + 22 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT - 75 * 34 * 81 * + - COALESCE ( - COUNT( * ), - 14 * + 43, + 38 )
----
-206550

skipif mysql # not compatible
query I rowsort label-8968
SELECT - 75 * 34 * 81 * + - COALESCE ( - COUNT ( * ), - 14 * + 43, + 38 )
----
-206550

query I rowsort
SELECT - 15 * + 42 AS col1
----
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-8970
SELECT - 63 DIV 78 + 15 + 87 * + + 74
----
6453

skipif mysql # not compatible
query I rowsort label-8970
SELECT - 63 / 78 + 15 + 87 * + + 74
----
6453

query I rowsort
SELECT DISTINCT - ( + - 14 ) AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8972
SELECT 0 DIV + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8972
SELECT 0 / + - COUNT ( * )
----
0

query I rowsort
SELECT 36 + + 63
----
99

query I rowsort
SELECT DISTINCT - ( + 9 ) AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8975
SELECT ALL - 0 DIV + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL - 0 / + COUNT ( * )
----
0

query I rowsort
SELECT 26 * 29 * - - 83 AS col0
----
62582

query I rowsort
SELECT ALL - 28 + - 58
----
-86

query I rowsort
SELECT ALL + 65 + + 32 AS col0
----
97

query I rowsort
SELECT DISTINCT + 56 + - 15
----
41

query II rowsort
SELECT ( - - 30 ) * - 22 + + 99 + 28, 52 AS col2
----
-533
52

onlyif mysql # aggregate syntax: 
query II rowsort label-8981
SELECT 42 AS col2, 48 * - - COALESCE ( COUNT( * ), - - 36 * + ( 96 ) + 8 + + 15, + + 80 + 66 ) * 59
----
42
2832

skipif mysql # not compatible
query II rowsort label-8981
SELECT 42 AS col2, 48 * - - COALESCE ( COUNT ( * ), - - 36 * + ( 96 ) + 8 + + 15, + + 80 + 66 ) * 59
----
42
2832

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL 52 + COUNT( * ) * + 16 col0
----
68

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL 52 + COUNT ( * ) * + 16 col0
----
68

query I rowsort
SELECT ALL 46 + - 43 AS col0
----
3

query I rowsort
SELECT ALL 16 + 39 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT - 22 + COALESCE ( - 36, 44 + COUNT( * ) )
----
-58

skipif mysql # not compatible
query I rowsort label-8985
SELECT - 22 + COALESCE ( - 36, 44 + COUNT ( * ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT + COUNT( * ) * - 30
----
-30

skipif mysql # not compatible
query I rowsort label-8986
SELECT + COUNT ( * ) * - 30
----
-30

query I rowsort
SELECT + 75 + ( 29 + + 3 )
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8988
SELECT - COALESCE ( + ( - COALESCE ( - SUM( 35 ), 7 DIV - ( 51 ), 1 DIV 25 + 10 ) ), 19 )
----
-35

skipif mysql # not compatible
query I rowsort label-8988
SELECT - COALESCE ( + ( - COALESCE ( - SUM ( 35 ), 7 / - ( 51 ), 1 / 25 + 10 ) ), 19 )
----
-35

query I rowsort
SELECT ALL 86 - + 63
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT + COUNT( DISTINCT 86 ) * 16 col1
----
16

skipif mysql # not compatible
query I rowsort label-8990
SELECT + COUNT ( DISTINCT 86 ) * 16 col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8991
SELECT + 98 * + SUM( - 0 DIV - 51 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8991
SELECT + 98 * + SUM ( - 0 / - 51 ) AS col0
----
0

query I rowsort
SELECT DISTINCT + 49 - + 42 AS col2
----
7

query I rowsort
SELECT + COALESCE ( + 32, + 38 ) - 42
----
-10

query I rowsort
SELECT + 21 + 43 AS col1
----
64

query I rowsort
SELECT - NULLIF ( 77, + 45 ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT + 97 + + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-8996
SELECT + 97 + + COUNT ( * )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8997
SELECT ALL 3 DIV 24
----
0

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL 3 / 24
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8998
SELECT + COALESCE ( - CAST( + 68 AS SIGNED ), MIN( DISTINCT 1 ), + 35 + COUNT( * ) ) + 25 * + 82 col0
----
1982

skipif mysql # not compatible
query I rowsort label-8998
SELECT + COALESCE ( - CAST ( + 68 AS INTEGER ), MIN ( DISTINCT 1 ), + 35 + COUNT ( * ) ) + 25 * + 82 col0
----
1982

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8999
SELECT + 14 DIV COALESCE ( - 42 * + CAST( NULL AS SIGNED ), 54 )
----
0

skipif mysql # not compatible
query I rowsort label-8999
SELECT + 14 / COALESCE ( - 42 * + CAST ( NULL AS INTEGER ), 54 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT + ( - COUNT( DISTINCT + 90 ) ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9000
SELECT + ( - COUNT ( DISTINCT + 90 ) ) * COUNT ( * )
----
-1

query I rowsort
SELECT + 85 + 83
----
168

query I rowsort
SELECT - 90 - + ( 52 + + 71 ) * + 37 AS col1
----
-4641

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT + 2 * + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9003
SELECT + 2 * + COUNT ( * ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9004
SELECT ( + CAST( - COUNT( - 3 ) AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9004
SELECT ( + CAST ( - COUNT ( - 3 ) AS INTEGER ) ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9005
SELECT - 59 DIV - 4 - 1 * - 20 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-9005
SELECT - 59 / - 4 - 1 * - 20 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT ALL + SUM( DISTINCT + 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL + SUM ( DISTINCT + 3 ) AS col0
----
3

query I rowsort
SELECT ( - 91 ) AS col2
----
-91

query I rowsort
SELECT ALL + 42 * + ( - 48 ) + 97 * - 74 AS col0
----
-9194

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT ALL - CASE 57 WHEN + 15 * COUNT( * ) THEN - 79 * - 46 WHEN + 68 THEN COALESCE ( + COUNT( 60 ), - 43 ) / - ( - 96 * MIN( DISTINCT + 96 ) + 90 * + 16 ) END * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL - CASE 57 WHEN + 15 * COUNT ( * ) THEN - 79 * - 46 WHEN + 68 THEN COALESCE ( + COUNT ( 60 ), - 43 ) / - ( - 96 * MIN ( DISTINCT + 96 ) + 90 * + 16 ) END * + 10
----
NULL

query I rowsort
SELECT + 72 * - 49
----
-3528

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL + MAX( ALL + 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL + MAX ( ALL + 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT DISTINCT 95 * COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT 95 * COUNT ( * )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9013
SELECT 41 DIV 67 + 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9013
SELECT 41 / 67 + 79 AS col2
----
79

query I rowsort
SELECT DISTINCT 96 * 98 + - 91 AS col0
----
9317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9015
SELECT ALL + 32 * COALESCE ( CAST( 7 AS SIGNED ), - 26, + 86 + COUNT( * ) ) + 46 * 37
----
1926

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL + 32 * COALESCE ( CAST ( 7 AS INTEGER ), - 26, + 86 + COUNT ( * ) ) + 46 * 37
----
1926

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT NULLIF ( ( COUNT( * ) ), 64 / 44 + - ( - ( + 51 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9016
SELECT NULLIF ( ( COUNT ( * ) ), 64 / 44 + - ( - ( + 51 ) ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9017
SELECT + 12 + ( - 33 ) DIV - 62
----
12

skipif mysql # not compatible
query I rowsort label-9017
SELECT + 12 + ( - 33 ) / - 62
----
12

query I rowsort
SELECT NULLIF ( ( 78 ), 82 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT ALL + COUNT( DISTINCT - ( 90 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL + COUNT ( DISTINCT - ( 90 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT - MAX( - 5 ) * 95 + - COUNT( DISTINCT - 89 + 24 )
----
474

skipif mysql # not compatible
query I rowsort label-9020
SELECT - MAX ( - 5 ) * 95 + - COUNT ( DISTINCT - 89 + 24 )
----
474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9021
SELECT - COUNT( ALL 69 ) DIV - 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9021
SELECT - COUNT ( ALL 69 ) / - 1 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT COUNT( * ) * + 26 + 20 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9022
SELECT COUNT ( * ) * + 26 + 20 AS col0
----
46

query I rowsort
SELECT NULLIF ( + 11, + 45 + - 82 )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9024
SELECT ALL CAST( NULL AS SIGNED ) * - 92 + 68 * 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL CAST ( NULL AS INTEGER ) * - 92 + 68 * 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT - COUNT( * ) * 31 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-9025
SELECT - COUNT ( * ) * 31 AS col0
----
-31

query I rowsort
SELECT ALL + 34 * 9
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT - COUNT( CASE 40 WHEN 57 THEN - 95 / + 37 + 4 ELSE NULL END ) + CASE + 52 WHEN 86 THEN - MIN( DISTINCT + 93 ) WHEN + 85 THEN 7 WHEN COUNT( + 80 ) + - 53 THEN 72 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9027
SELECT - COUNT ( CASE 40 WHEN 57 THEN - 95 / + 37 + 4 ELSE NULL END ) + CASE + 52 WHEN 86 THEN - MIN ( DISTINCT + 93 ) WHEN + 85 THEN 7 WHEN COUNT ( + 80 ) + - 53 THEN 72 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 25 * + 13 AS col2
----
325

query I rowsort
SELECT + - 17 * + 12 + 4
----
-200

query I rowsort
SELECT ALL + + COALESCE ( 86, 58 * 47 ) * 52 col1
----
4472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9031
SELECT - + 63 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT - + 63 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - - 83 + + 70 AS col1
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9033
SELECT ALL - + CAST( NULL AS SIGNED ) * 31 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL - + CAST ( NULL AS INTEGER ) * 31 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9034
SELECT + + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT + + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT + - 33 + + COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-9035
SELECT + - 33 + + COUNT ( * ) AS col0
----
-32

query I rowsort
SELECT - 94 + 37
----
-57

query I rowsort
SELECT - 8 + 22 AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9038
SELECT ALL + CASE + 22 WHEN + NULLIF ( + 76, + CAST( NULL AS SIGNED ) ) + - 68 THEN 32 WHEN 66 / + 12 - NULLIF ( + 36, 23 ) THEN NULL END * 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL + CASE + 22 WHEN + NULLIF ( + 76, + CAST ( NULL AS INTEGER ) ) + - 68 THEN 32 WHEN 66 / + 12 - NULLIF ( + 36, 23 ) THEN NULL END * 40 AS col1
----
NULL

query I rowsort
SELECT + - 56 * 30 AS col0
----
-1680

query I rowsort
SELECT DISTINCT - 45 * 65 AS col1
----
-2925

query I rowsort
SELECT DISTINCT + 34 * + 18 AS col1
----
612

query I rowsort
SELECT + - 6 + 53
----
47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9043
SELECT - 97 * - CAST( CAST( NULL AS DECIMAL ) / 79 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9043
SELECT - 97 * - CAST ( CAST ( NULL AS REAL ) / 79 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( + + 33 ) + + 25
----
58

query I rowsort
SELECT - CASE + 51 WHEN 75 THEN - 88 * 73 + - 60 ELSE 46 END
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT ALL + 0 * - 53 * SUM( DISTINCT + 51 )
----
0

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL + 0 * - 53 * SUM ( DISTINCT + 51 )
----
0

query I rowsort
SELECT ALL 25 + - - 15 + - 7 * - 90
----
670

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT + 48 + + 34 * + MIN( ALL 12 * - 14 )
----
-5664

skipif mysql # not compatible
query I rowsort label-9048
SELECT + 48 + + 34 * + MIN ( ALL 12 * - 14 )
----
-5664

onlyif mysql # DIV for integer division: 
query I rowsort label-9049
SELECT DISTINCT + 21 DIV 14 + 53 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT + 21 / 14 + 53 AS col0
----
54

query I rowsort
SELECT + 95 - 38 * 13 AS col1
----
-399

query I rowsort
SELECT + 13 * + + 5
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9052
SELECT CAST( - COUNT( DISTINCT 81 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9052
SELECT CAST ( - COUNT ( DISTINCT 81 ) AS INTEGER ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9053
SELECT ( COUNT( 84 ) ) DIV - 16 + COUNT( DISTINCT - CAST( NULL AS SIGNED ) + 74 ) * - ( 76 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9053
SELECT ( COUNT ( 84 ) ) / - 16 + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) + 74 ) * - ( 76 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9054
SELECT - AVG ( ALL - 22 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9054
SELECT - AVG ( ALL - 22 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9055
SELECT + CAST( - 70 AS SIGNED ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-9055
SELECT + CAST ( - 70 AS INTEGER ) AS col1
----
-70

query I rowsort
SELECT + 82 * - 26 * + 89
----
-189748

onlyif mysql # DIV for integer division: 
query I rowsort label-9057
SELECT DISTINCT 10 DIV - 29 - 91
----
-91

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT 10 / - 29 - 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT ALL ( 63 ) * COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL ( 63 ) * COUNT ( * ) AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9059
SELECT DISTINCT - COALESCE ( - 66, + 19 * CAST( 35 AS SIGNED ) + COUNT( * ) )
----
66

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT - COALESCE ( - 66, + 19 * CAST ( 35 AS INTEGER ) + COUNT ( * ) )
----
66

query I rowsort
SELECT DISTINCT 76 - 29 + 1
----
48

query I rowsort
SELECT ( ( 20 ) ) * + 65 AS col1
----
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT + NULLIF ( 11, + COUNT( - ( + ( 8 ) ) ) * 21 ) * 60 AS col1
----
660

skipif mysql # not compatible
query I rowsort label-9062
SELECT + NULLIF ( 11, + COUNT ( - ( + ( 8 ) ) ) * 21 ) * 60 AS col1
----
660

query I rowsort
SELECT - CASE - 77 WHEN + 62 THEN + 15 END * - ( - 99 ) AS col2
----
NULL

query I rowsort
SELECT 92 * 59 * 16
----
86848

query I rowsort
SELECT DISTINCT + + 46 * - + 15 AS col1
----
-690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9066
SELECT ALL + 7 * CAST( COALESCE ( - 50, + 41 ) AS SIGNED ) * 33 - - 67 * 92
----
-5386

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL + 7 * CAST ( COALESCE ( - 50, + 41 ) AS INTEGER ) * 33 - - 67 * 92
----
-5386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9067
SELECT ALL - 96 * CASE 97 WHEN 97 THEN + MIN( - 97 ) + 71 ELSE NULL END + - 98 DIV 80 AS col0
----
2495

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL - 96 * CASE 97 WHEN 97 THEN + MIN ( - 97 ) + 71 ELSE NULL END + - 98 / 80 AS col0
----
2495

onlyif mysql # DIV for integer division: 
query I rowsort label-9068
SELECT NULLIF ( + 1, + 9 ) DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-9068
SELECT NULLIF ( + 1, + 9 ) / + 31
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9069
SELECT CAST( 21 AS SIGNED ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9069
SELECT CAST ( 21 AS INTEGER ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT 94 * COUNT( DISTINCT + 4 )
----
94

skipif mysql # not compatible
query I rowsort label-9070
SELECT 94 * COUNT ( DISTINCT + 4 )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9071
SELECT 81 DIV - 46 + 48
----
47

skipif mysql # not compatible
query I rowsort label-9071
SELECT 81 / - 46 + 48
----
47

query I rowsort
SELECT NULLIF ( - 47, 33 * - 35 - 44 )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9073
SELECT 43 + ( - 41 ) + - 91 DIV ( + ( COUNT( * ) ) - 20 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9073
SELECT 43 + ( - 41 ) + - 91 / ( + ( COUNT ( * ) ) - 20 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT ALL - - COUNT( * ) + + + 16 + COUNT( DISTINCT 99 ) * - COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL - - COUNT ( * ) + + + 16 + COUNT ( DISTINCT 99 ) * - COUNT ( * ) AS col2
----
16

query I rowsort
SELECT ALL + COALESCE ( 3, - COALESCE ( + 30, 59 * 23 ) ) AS col2
----
3

query I rowsort
SELECT ALL + 11 + - 45 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT DISTINCT 84 + - SUM( DISTINCT 3 ) + + 25 col2
----
106

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT 84 + - SUM ( DISTINCT 3 ) + + 25 col2
----
106

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9078
SELECT ALL CAST( NULL AS DECIMAL ) * - + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL CAST ( NULL AS REAL ) * - + 53 AS col2
----
NULL

query I rowsort
SELECT 29 + + 60 AS col1
----
89

query I rowsort
SELECT DISTINCT 78 * + 19 * 3
----
4446

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT 10 + + 2 * + - COUNT( * ) * 60 AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-9081
SELECT 10 + + 2 * + - COUNT ( * ) * 60 AS col0
----
-110

query I rowsort
SELECT 19 + - ( + 16 ) * + 51
----
-797

query II rowsort
SELECT - 46, 81 AS col0
----
-46
81

query I rowsort
SELECT 35 * - - 14 AS col2
----
490

query I rowsort
SELECT ALL 36 - + 79
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9086
SELECT DISTINCT - 52 * - CAST( + - 90 AS SIGNED )
----
-4680

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT - 52 * - CAST ( + - 90 AS INTEGER )
----
-4680

query I rowsort
SELECT 79 * + + 32 + - 32
----
2496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9088
SELECT ALL 29 DIV COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL 29 / COUNT ( * ) AS col0
----
29

query I rowsort
SELECT ALL ( + 84 ) - 15 AS col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-9090
SELECT + 67 AS col2, COUNT( * ) col1
----
67
1

skipif mysql # not compatible
query II rowsort label-9090
SELECT + 67 AS col2, COUNT ( * ) col1
----
67
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9091
SELECT 44 DIV + + 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9091
SELECT 44 / + + 64 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9092
SELECT 79 DIV - + 32 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9092
SELECT 79 / - + 32 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT CASE 24 WHEN + ( + 6 ) THEN + 69 WHEN 75 + + 84 * COUNT( ALL - 76 ) THEN 22 * 9 + 63 WHEN + 77 * + 39 THEN CASE 28 WHEN ( MIN( DISTINCT - 67 ) ) THEN NULL ELSE MAX( ALL 87 ) END END * 62 + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9093
SELECT CASE 24 WHEN + ( + 6 ) THEN + 69 WHEN 75 + + 84 * COUNT ( ALL - 76 ) THEN 22 * 9 + 63 WHEN + 77 * + 39 THEN CASE 28 WHEN ( MIN ( DISTINCT - 67 ) ) THEN NULL ELSE MAX ( ALL 87 ) END END * 62 + - 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9094
SELECT + - CASE 51 WHEN - CAST( COUNT( * ) AS SIGNED ) + 93 THEN + CAST( + 17 AS DECIMAL ) * 45 END * COUNT( * ) + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT + - CASE 51 WHEN - CAST ( COUNT ( * ) AS INTEGER ) + 93 THEN + CAST ( + 17 AS REAL ) * 45 END * COUNT ( * ) + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT - NULLIF ( - 36, + 81 ) * + MIN( ALL 69 ) + COUNT( * )
----
2485

skipif mysql # not compatible
query I rowsort label-9095
SELECT - NULLIF ( - 36, + 81 ) * + MIN ( ALL 69 ) + COUNT ( * )
----
2485

query I rowsort
SELECT - ( - + 22 ) * 58 + - 88 * 72 AS col2
----
-5060

query I rowsort
SELECT DISTINCT - - 42 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT DISTINCT - - COALESCE ( + COALESCE ( + COUNT( * ), 8 - - 4 * 36, + 99 ), 32 )
----
1

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT - - COALESCE ( + COALESCE ( + COUNT ( * ), 8 - - 4 * 36, + 99 ), 32 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT ALL - + CAST( + 54 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL - + CAST ( + 54 AS INTEGER )
----
-54

query I rowsort
SELECT DISTINCT - ( - 41 ) * + 78 * NULLIF ( + 41, 25 * + 86 ) + 29 AS col2
----
131147

onlyif mysql # aggregate syntax: 
query II rowsort label-9101
SELECT - 54 AS col2, + COUNT( * )
----
-54
1

skipif mysql # not compatible
query II rowsort label-9101
SELECT - 54 AS col2, + COUNT ( * )
----
-54
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT DISTINCT SUM( ALL 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT SUM ( ALL 93 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT ALL ( + COUNT( * ) ) + SUM( 73 ) * - 58 col1
----
-4233

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL ( + COUNT ( * ) ) + SUM ( 73 ) * - 58 col1
----
-4233

query II rowsort
SELECT + 4, - NULLIF ( - + 49, 27 ) col0
----
4
49

query I rowsort
SELECT - 26 + - - 65 * + 52
----
3354

query I rowsort
SELECT ALL - + 76 + + + 20 AS col0
----
-56

query I rowsort
SELECT - - ( - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT ALL + 9 + + 84 + + CASE - 41 WHEN 67 + 38 THEN NULL WHEN SUM( 27 ) * + 95 + - 76 THEN NULL WHEN 81 THEN 28 ELSE NULL END + + ( 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL + 9 + + 84 + + CASE - 41 WHEN 67 + 38 THEN NULL WHEN SUM ( 27 ) * + 95 + - 76 THEN NULL WHEN 81 THEN 28 ELSE NULL END + + ( 85 )
----
NULL

query I rowsort
SELECT DISTINCT - 51 + + 66 AS col0
----
15

query I rowsort
SELECT ALL - ( + 1 )
----
-1

query I rowsort
SELECT DISTINCT 71 + - 54 * 52 col1
----
-2737

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT ALL - COUNT( * ) * - 37
----
37

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL - COUNT ( * ) * - 37
----
37

query I rowsort
SELECT DISTINCT - 2 + ( - + 11 ) * + CASE + 90 WHEN - 79 THEN - 88 WHEN 6 THEN - 12 * + 88 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 45 * ( - 68 ) AS col0
----
-3060

onlyif mysql # aggregate syntax: 
query II rowsort label-9115
SELECT 19 * - - 87 AS col0, 67 * - CASE 60 WHEN + 17 THEN + MIN( 32 ) ELSE NULL END
----
1653
NULL

skipif mysql # not compatible
query II rowsort label-9115
SELECT 19 * - - 87 AS col0, 67 * - CASE 60 WHEN + 17 THEN + MIN ( 32 ) ELSE NULL END
----
1653
NULL

query I rowsort
SELECT ALL - 10 - - 36
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9117
SELECT ALL + 47 - 73 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL + 47 - 73 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT 45 * MIN( DISTINCT - - 7 ) * + 54
----
17010

skipif mysql # not compatible
query I rowsort label-9118
SELECT 45 * MIN ( DISTINCT - - 7 ) * + 54
----
17010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9119
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT - 59 + + MIN( DISTINCT - - NULLIF ( + + 75, 8 ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9120
SELECT - 59 + + MIN ( DISTINCT - - NULLIF ( + + 75, 8 ) ) AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9121
SELECT DISTINCT 88 * + SUM( ALL CAST( NULL AS SIGNED ) ) / + 24 * COALESCE ( - COUNT( * ), NULLIF ( + 17, 64 * + 72 ) / + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT 88 * + SUM ( ALL CAST ( NULL AS INTEGER ) ) / + 24 * COALESCE ( - COUNT ( * ), NULLIF ( + 17, 64 * + 72 ) / + 96 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT DISTINCT + COALESCE ( COUNT( * ), 57, - 10 )
----
1

skipif mysql # not compatible
query I rowsort label-9122
SELECT DISTINCT + COALESCE ( COUNT ( * ), 57, - 10 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT - MIN( 27 ) - + 56 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-9123
SELECT - MIN ( 27 ) - + 56 AS col0
----
-83

query I rowsort
SELECT ALL + ( 42 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9125
SELECT COALESCE ( - 0, - 98 * + COUNT( * ) DIV 45, 99 * + MIN( + 32 * ( 7 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9125
SELECT COALESCE ( - 0, - 98 * + COUNT ( * ) / 45, 99 * + MIN ( + 32 * ( 7 ) ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9126
SELECT - 76 * + 49, + SUM( + 31 ) + CASE + COUNT( * ) + 54 WHEN COUNT( * ) THEN 2 * + 79 ELSE + 77 * ( COUNT( * ) ) + 58 END AS col2
----
-3724
166

skipif mysql # not compatible
query II rowsort label-9126
SELECT - 76 * + 49, + SUM ( + 31 ) + CASE + COUNT ( * ) + 54 WHEN COUNT ( * ) THEN 2 * + 79 ELSE + 77 * ( COUNT ( * ) ) + 58 END AS col2
----
-3724
166

query I rowsort
SELECT ALL 87 * - 84 col0
----
-7308

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT + MAX( DISTINCT 58 )
----
58

skipif mysql # not compatible
query I rowsort label-9128
SELECT + MAX ( DISTINCT 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT DISTINCT + 53 * + 94 + + 20 - - + MAX( ALL - 81 ) + - ( 66 ) * 59 + + 17 AS col0
----
1044

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT + 53 * + 94 + + 20 - - + MAX ( ALL - 81 ) + - ( 66 ) * 59 + + 17 AS col0
----
1044

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT DISTINCT + CASE - ( - 11 ) WHEN + 20 - + 70 THEN + MAX( + 82 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9130
SELECT DISTINCT + CASE - ( - 11 ) WHEN + 20 - + 70 THEN + MAX ( + 82 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 27 * - 42 AS col1
----
1134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9132
SELECT + - CAST( + 23 AS SIGNED ) * - 83 AS col1
----
1909

skipif mysql # not compatible
query I rowsort label-9132
SELECT + - CAST ( + 23 AS INTEGER ) * - 83 AS col1
----
1909

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT + - NULLIF ( + COALESCE ( + 75, - 30 ), - COUNT( - 12 ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-9133
SELECT + - NULLIF ( + COALESCE ( + 75, - 30 ), - COUNT ( - 12 ) ) AS col1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9134
SELECT + - 24 DIV + 23 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9134
SELECT + - 24 / + 23 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9135
SELECT + - 19 DIV ( - COUNT( * ) )
----
19

skipif mysql # not compatible
query I rowsort label-9135
SELECT + - 19 / ( - COUNT ( * ) )
----
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9136
SELECT ALL + - MIN( ALL + 9 ) * - CAST( NULL AS DECIMAL ) / + + ( - COALESCE ( + COUNT( * ), - 41 + 82 ) ) * 94 + NULLIF ( - COUNT( * ), + 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL + - MIN ( ALL + 9 ) * - CAST ( NULL AS REAL ) / + + ( - COALESCE ( + COUNT ( * ), - 41 + 82 ) ) * 94 + NULLIF ( - COUNT ( * ), + 10 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT + - COUNT( * ) - - - 61
----
-62

skipif mysql # not compatible
query I rowsort label-9137
SELECT + - COUNT ( * ) - - - 61
----
-62

query II rowsort
SELECT DISTINCT 16 * 23 AS col1, 28 * + 5
----
368
140

query I rowsort
SELECT ALL - 64 + ( + 81 ) * 29
----
2285

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT DISTINCT + COUNT( * ) + - 13 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT + COUNT ( * ) + - 13 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT ALL - MIN( ALL 79 ) + - 91
----
-170

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL - MIN ( ALL 79 ) + - 91
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT DISTINCT - ( + COUNT( * ) ) * + - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT - ( + COUNT ( * ) ) * + - COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9143
SELECT + 57 + + - 87 * CAST( + - 87 AS SIGNED ) DIV - 72
----
-48

skipif mysql # not compatible
query I rowsort label-9143
SELECT + 57 + + - 87 * CAST ( + - 87 AS INTEGER ) / - 72
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT + COUNT( * ) - + 27 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9144
SELECT + COUNT ( * ) - + 27 AS col0
----
-26

query I rowsort
SELECT + 72 + + 63 + - 41 AS col1
----
94

query I rowsort
SELECT - 78 * + - 1 col0
----
78

query I rowsort
SELECT + 90 * 3 col2
----
270

query I rowsort
SELECT + 48 + - - 93 + 88 * + 24
----
2253

query II rowsort
SELECT - 86 AS col2, - 11 AS col0
----
-86
-11

query I rowsort
SELECT ALL 60 - 0 * - + 94
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9151
SELECT + 42 + - 18 + - 58 DIV + - 44
----
25

skipif mysql # not compatible
query I rowsort label-9151
SELECT + 42 + - 18 + - 58 / + - 44
----
25

query I rowsort
SELECT ALL - 6 * + 92 AS col2
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ALL CASE + CASE + + 19 WHEN + 34 * + COUNT( * ) THEN 91 WHEN COUNT( * ) THEN NULL END WHEN - NULLIF ( 57, + COUNT( * ) * - 93 ) * + 4 THEN 52 / + 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL CASE + CASE + + 19 WHEN + 34 * + COUNT ( * ) THEN 91 WHEN COUNT ( * ) THEN NULL END WHEN - NULLIF ( 57, + COUNT ( * ) * - 93 ) * + 4 THEN 52 / + 51 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT + NULLIF ( + 99, + 45 + 97 * - + 7 + COUNT( * ) ) + - 59
----
40

skipif mysql # not compatible
query I rowsort label-9154
SELECT + NULLIF ( + 99, + 45 + 97 * - + 7 + COUNT ( * ) ) + - 59
----
40

query I rowsort
SELECT DISTINCT + 88 * - 72 AS col2
----
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT - MIN( - + ( 26 ) ) + + 12
----
38

skipif mysql # not compatible
query I rowsort label-9156
SELECT - MIN ( - + ( 26 ) ) + + 12
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT - COUNT( * ) * + 85 col1
----
-85

skipif mysql # not compatible
query I rowsort label-9157
SELECT - COUNT ( * ) * + 85 col1
----
-85

query I rowsort
SELECT ALL 18 * + 53
----
954

query I rowsort
SELECT + 82 + + 44 AS col0
----
126

query I rowsort
SELECT - 88 * + + ( 6 )
----
-528

query I rowsort
SELECT DISTINCT + 89 * 58
----
5162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9162
SELECT - CASE + - 41 WHEN - 85 THEN - 68 + 92 / 4 WHEN 21 / 3 THEN + 82 * 33 WHEN - 86 + - 20 * + CAST( NULL AS SIGNED ) THEN + 96 ELSE 72 / - CAST( NULL AS SIGNED ) END + + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT - CASE + - 41 WHEN - 85 THEN - 68 + 92 / 4 WHEN 21 / 3 THEN + 82 * 33 WHEN - 86 + - 20 * + CAST ( NULL AS INTEGER ) THEN + 96 ELSE 72 / - CAST ( NULL AS INTEGER ) END + + 10 AS col0
----
NULL

query I rowsort
SELECT - 52 * + + 9 AS col1
----
-468

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9164
SELECT ALL 58 * COALESCE ( + 58, + COUNT( - - 42 ) + - COUNT( * ) ) DIV - 79
----
-42

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL 58 * COALESCE ( + 58, + COUNT ( - - 42 ) + - COUNT ( * ) ) / - 79
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT DISTINCT 72 DIV - - 65 + + + ( + ( - 7 ) ) DIV 85
----
1

skipif mysql # not compatible
query I rowsort label-9165
SELECT DISTINCT 72 / - - 65 + + + ( + ( - 7 ) ) / 85
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9166
SELECT - 18 DIV + 61 * + - 45 + + - 41
----
-41

skipif mysql # not compatible
query I rowsort label-9166
SELECT - 18 / + 61 * + - 45 + + - 41
----
-41

query I rowsort
SELECT DISTINCT + + 37 AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9168
SELECT ALL - 13 DIV + 9 + 56 + 53 + - COUNT( * ) DIV - 52 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL - 13 / + 9 + 56 + 53 + - COUNT ( * ) / - 52 AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT - + 3 + - ( - + NULLIF ( - + 28, - + MAX( DISTINCT + 66 ) ) ) * - NULLIF ( 2, - 55 )
----
53

skipif mysql # not compatible
query I rowsort label-9169
SELECT - + 3 + - ( - + NULLIF ( - + 28, - + MAX ( DISTINCT + 66 ) ) ) * - NULLIF ( 2, - 55 )
----
53

query I rowsort
SELECT + + NULLIF ( - + 9, - 22 ) col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9171
SELECT 37 * + + CAST( NULL AS DECIMAL ) * - - ( 33 ) - 48 + - 80 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT 37 * + + CAST ( NULL AS REAL ) * - - ( 33 ) - 48 + - 80 / COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 73 * - 42 - - 3 * - 31 * - + 5 * - 96
----
-47706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9173
SELECT DISTINCT 55 * COALESCE ( - CASE - 89 WHEN + NULLIF ( 28, ( - 31 ) ) + - CAST( NULL AS DECIMAL ) THEN NULL WHEN + NULLIF ( 40, CAST( 19 AS SIGNED ) ) THEN - 57 ELSE NULL END, 44, - CAST( + 76 AS SIGNED ) * - COUNT( * ) ) + - 2
----
2418

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT 55 * COALESCE ( - CASE - 89 WHEN + NULLIF ( 28, ( - 31 ) ) + - CAST ( NULL AS REAL ) THEN NULL WHEN + NULLIF ( 40, CAST ( 19 AS INTEGER ) ) THEN - 57 ELSE NULL END, 44, - CAST ( + 76 AS INTEGER ) * - COUNT ( * ) ) + - 2
----
2418

query I rowsort
SELECT ALL - 98 * + + 69 + 84 AS col2
----
-6678

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL + COUNT( * ) * 31 * - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL + COUNT ( * ) * 31 * - COUNT ( * )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT ALL - 34 * - + COUNT( * ) - COUNT( * ) - - 65
----
98

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL - 34 * - + COUNT ( * ) - COUNT ( * ) - - 65
----
98

query I rowsort
SELECT + + 96 * 73 * + - 53 + + + 86 AS col1
----
-371338

query I rowsort
SELECT + + 63 * - 4 AS col0
----
-252

query I rowsort
SELECT - + CASE + - COALESCE ( + 99, - - 57 * 59 + 4 * + 78 ) WHEN - 60 + + 0 THEN NULL WHEN 17 THEN NULL ELSE + 1 END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT + + 46 + COALESCE ( + + 31, + + 99, - 71 + NULLIF ( + COUNT( * ), 80 ) * + 55 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9180
SELECT + + 46 + COALESCE ( + + 31, + + 99, - 71 + NULLIF ( + COUNT ( * ), 80 ) * + 55 ) AS col2
----
77

query I rowsort
SELECT - 90 * - 46 AS col2
----
4140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9182
SELECT - NULLIF ( + 80, - + NULLIF ( - 7, + + CAST( + + 89 AS SIGNED ) ) )
----
-80

skipif mysql # not compatible
query I rowsort label-9182
SELECT - NULLIF ( + 80, - + NULLIF ( - 7, + + CAST ( + + 89 AS INTEGER ) ) )
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9183
SELECT + 55 + 3 DIV 2
----
56

skipif mysql # not compatible
query I rowsort label-9183
SELECT + 55 + 3 / 2
----
56

query I rowsort
SELECT + 66 * - 50
----
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT COUNT( - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-9185
SELECT COUNT ( - 40 )
----
1

query I rowsort
SELECT ALL 13 * COALESCE ( + 12, + 0 + - + 70 )
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-9187
SELECT DISTINCT 91, - 55 * + 17 * COUNT( * ) + + - COUNT( * ) AS col2
----
91
-936

skipif mysql # not compatible
query II rowsort label-9187
SELECT DISTINCT 91, - 55 * + 17 * COUNT ( * ) + + - COUNT ( * ) AS col2
----
91
-936

query II rowsort
SELECT DISTINCT 93 col0, 84 AS col2
----
93
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9189
SELECT SUM( ALL 51 ) * COUNT( ALL + - CAST( + NULLIF ( + - NULLIF ( + COALESCE ( 90, - 98, CAST( NULL AS SIGNED ) ), - 79 * 58 ), 67 + 99 ) AS SIGNED ) ) * - CAST( NULL AS SIGNED ) - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9189
SELECT SUM ( ALL 51 ) * COUNT ( ALL + - CAST ( + NULLIF ( + - NULLIF ( + COALESCE ( 90, - 98, CAST ( NULL AS INTEGER ) ), - 79 * 58 ), 67 + 99 ) AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) - 59
----
NULL

query I rowsort
SELECT ALL 77 * + 32
----
2464

query II rowsort
SELECT 55 AS col2, 45
----
55
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9192
SELECT - 52 AS col2, COUNT( * ) DIV + - 19 AS col1
----
-52
0

skipif mysql # not compatible
query II rowsort label-9192
SELECT - 52 AS col2, COUNT ( * ) / + - 19 AS col1
----
-52
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9193
SELECT 69, - 2 + - - 84 * + - 59 + - CAST( NULL AS SIGNED ) AS col2
----
69
NULL

skipif mysql # not compatible
query II rowsort label-9193
SELECT 69, - 2 + - - 84 * + - 59 + - CAST ( NULL AS INTEGER ) AS col2
----
69
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9194
SELECT 6 AS col0, + 99 - + CAST( - 83 AS SIGNED ) AS col0
----
6
182

skipif mysql # not compatible
query II rowsort label-9194
SELECT 6 AS col0, + 99 - + CAST ( - 83 AS INTEGER ) AS col0
----
6
182

query I rowsort
SELECT ALL 64 + + 55 AS col0
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9196
SELECT 85 + - 2 + - COUNT( ALL - 59 ) * 95 DIV - + 70 + 73 * 63
----
4683

skipif mysql # not compatible
query I rowsort label-9196
SELECT 85 + - 2 + - COUNT ( ALL - 59 ) * 95 / - + 70 + 73 * 63
----
4683

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT ( - COUNT( * ) ) * - + 15
----
15

skipif mysql # not compatible
query I rowsort label-9197
SELECT ( - COUNT ( * ) ) * - + 15
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9198
SELECT ALL 11 DIV - - ( + COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL 11 / - - ( + COUNT ( * ) )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9199
SELECT CAST( COUNT( * ) AS SIGNED ) DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-9199
SELECT CAST ( COUNT ( * ) AS INTEGER ) / 80
----
0

query I rowsort
SELECT DISTINCT + - 37 + - + 54
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9201
SELECT + - CAST( + CAST( 54 AS SIGNED ) AS SIGNED ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-9201
SELECT + - CAST ( + CAST ( 54 AS INTEGER ) AS INTEGER ) AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT DISTINCT - 80 + + COALESCE ( + + 89, - + 97 * - 70 + - CASE 46 WHEN COALESCE ( - 78, + CAST( NULL AS SIGNED ) ) + 21 THEN + 21 WHEN - 67 * 15 THEN NULL ELSE NULL END ) + 46 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT - 80 + + COALESCE ( + + 89, - + 97 * - 70 + - CASE 46 WHEN COALESCE ( - 78, + CAST ( NULL AS INTEGER ) ) + 21 THEN + 21 WHEN - 67 * 15 THEN NULL ELSE NULL END ) + 46 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT 94 + + COUNT( * ) + - 94
----
1

skipif mysql # not compatible
query I rowsort label-9203
SELECT 94 + + COUNT ( * ) + - 94
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9204
SELECT 25 / + 7 * + MIN( + 32 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT 25 / + 7 * + MIN ( + 32 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT - + 38 * 36 + + + COUNT( * ) AS col1
----
-1367

skipif mysql # not compatible
query I rowsort label-9205
SELECT - + 38 * 36 + + + COUNT ( * ) AS col1
----
-1367

query I rowsort
SELECT DISTINCT + - 45 + + - 65 AS col2
----
-110

query I rowsort
SELECT ALL - 88 * - + 81 + + - 85 * 66
----
1518

query I rowsort
SELECT DISTINCT - 44 + - - 46 AS col1
----
2

query I rowsort
SELECT DISTINCT - 86 + - - 2 + + 68 * - 54 AS col2
----
-3756

query I rowsort
SELECT DISTINCT - + ( - - 81 ) - - 72 + 49 + 8
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9211
SELECT DISTINCT + + 57 - 31 / - - CAST( NULL AS SIGNED ) * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT + + 57 - 31 / - - CAST ( NULL AS INTEGER ) * + 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9212
SELECT ALL - 31 - + + 61 + - CASE - + COUNT( * ) WHEN - ( + - ( CAST( + COUNT( DISTINCT 65 ) AS SIGNED ) ) ) / - 96 THEN - AVG ( + 41 ) WHEN + COUNT( * ) * - CAST( 38 * - CAST( - CAST( - 11 AS SIGNED ) AS DECIMAL ) AS DECIMAL ) - + 67 THEN NULL WHEN 23 / 10 THEN NULL WHEN COUNT( * ) * 56 THEN NULL END * + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL - 31 - + + 61 + - CASE - + COUNT ( * ) WHEN - ( + - ( CAST ( + COUNT ( DISTINCT 65 ) AS INTEGER ) ) ) / - 96 THEN - AVG ( + 41 ) WHEN + COUNT ( * ) * - CAST ( 38 * - CAST ( - CAST ( - 11 AS INTEGER ) AS REAL ) AS REAL ) - + 67 THEN NULL WHEN 23 / 10 THEN NULL WHEN COUNT ( * ) * 56 THEN NULL END * + 93 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT + - CAST( + 78 AS SIGNED ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-9213
SELECT + - CAST ( + 78 AS INTEGER ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT ALL - - CASE 68 WHEN + + 57 * + + COUNT( * ) THEN + CASE ( 69 ) WHEN 83 / + 92 + 41 * SUM( 80 ) THEN 18 - 19 WHEN - 68 * - 45 THEN NULL WHEN SUM( 1 ) THEN + 92 END WHEN - 50 THEN - 76 ELSE 60 END - 56 col1
----
4

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL - - CASE 68 WHEN + + 57 * + + COUNT ( * ) THEN + CASE ( 69 ) WHEN 83 / + 92 + 41 * SUM ( 80 ) THEN 18 - 19 WHEN - 68 * - 45 THEN NULL WHEN SUM ( 1 ) THEN + 92 END WHEN - 50 THEN - 76 ELSE 60 END - 56 col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT ALL + - 15 * 79 + + MAX( ALL + 1 ) + - - 95 * + NULLIF ( - 33, COUNT( + 13 ) ) AS col1
----
-4319

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL + - 15 * 79 + + MAX ( ALL + 1 ) + - - 95 * + NULLIF ( - 33, COUNT ( + 13 ) ) AS col1
----
-4319

query I rowsort
SELECT COALESCE ( - - 52, + 32 + - 86 + - - 13 )
----
52

query I rowsort
SELECT 35 - + 9 - - 96 + 64 * 41 * - 90
----
-236038

query I rowsort
SELECT DISTINCT + 6 * - + 60 * 78 AS col1
----
-28080

query I rowsort
SELECT DISTINCT + ( - 83 ) * + 54 col1
----
-4482

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT 35 + + - MAX( + 79 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-9220
SELECT 35 + + - MAX ( + 79 ) AS col0
----
-44

query I rowsort
SELECT 70 * + 73 * + + 38 col1
----
194180

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT CASE NULLIF ( - 86, 93 ) WHEN + 89 + 94 + COALESCE ( AVG ( 66 ), - 11 * 46, + MAX( ALL 71 ) ) / 79 THEN 98 WHEN - 70 THEN NULL END * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9222
SELECT CASE NULLIF ( - 86, 93 ) WHEN + 89 + 94 + COALESCE ( AVG ( 66 ), - 11 * 46, + MAX ( ALL 71 ) ) / 79 THEN 98 WHEN - 70 THEN NULL END * 73
----
NULL

query I rowsort
SELECT ( 50 ) - - - 68
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT 54 + 2 * + 12 + COUNT( * ) * + 21 + + COUNT( * ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-9224
SELECT 54 + 2 * + 12 + COUNT ( * ) * + 21 + + COUNT ( * ) AS col0
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9225
SELECT DISTINCT 30 DIV + COUNT( * ) col2
----
30

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT 30 / + COUNT ( * ) col2
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-9226
SELECT 63 + 86 AS col0, 77 DIV 8 AS col1
----
149
9

skipif mysql # not compatible
query II rowsort label-9226
SELECT 63 + 86 AS col0, 77 / 8 AS col1
----
149
9

query II rowsort
SELECT 99 * - 24 AS col0, + 49 AS col1
----
-2376
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT ALL 64 + + - MIN( + + 72 )
----
-8

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL 64 + + - MIN ( + + 72 )
----
-8

query I rowsort
SELECT ALL 23 + 54 * ( + 49 )
----
2669

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT MIN( 33 ) * 39 AS col2
----
1287

skipif mysql # not compatible
query I rowsort label-9230
SELECT MIN ( 33 ) * 39 AS col2
----
1287

query I rowsort
SELECT 89 + + 60 AS col1
----
149

query I rowsort
SELECT DISTINCT 70 * - - 85
----
5950

onlyif mysql # DIV for integer division: 
query I rowsort label-9233
SELECT ALL 29 + + 10 + 61 + - ( + 65 ) + + 72 DIV 61 + 80
----
116

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL 29 + + 10 + 61 + - ( + 65 ) + + 72 / 61 + 80
----
116

query II rowsort
SELECT 47 * + - ( + + 57 ) AS col0, 49 * 41 AS col2
----
-2679
2009

query I rowsort
SELECT 9 * - 9 * - ( - 27 )
----
-2187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9236
SELECT - MAX( ALL + + 30 ) + 17 - - - ( 5 ) DIV + COUNT( DISTINCT - ( 84 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-9236
SELECT - MAX ( ALL + + 30 ) + 17 - - - ( 5 ) / + COUNT ( DISTINCT - ( 84 ) )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-9237
SELECT ALL - + MAX( - 71 ) AS col2, - 92 AS col1
----
71
-92

skipif mysql # not compatible
query II rowsort label-9237
SELECT ALL - + MAX ( - 71 ) AS col2, - 92 AS col1
----
71
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9238
SELECT NULLIF ( - 20, + 65 * + 79 + + - 66 * - - 82 * - 66 ) - - CAST( NULL AS SIGNED ) * - 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9238
SELECT NULLIF ( - 20, + 65 * + 79 + + - 66 * - - 82 * - 66 ) - - CAST ( NULL AS INTEGER ) * - 14 AS col1
----
NULL

query I rowsort
SELECT ALL - + ( + 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT ALL - + SUM( DISTINCT + 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL - + SUM ( DISTINCT + 18 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT + 0 * 77 + 85 + + 15 * COUNT( * ) + - 38 * + + 20 AS col1
----
-660

skipif mysql # not compatible
query I rowsort label-9241
SELECT + 0 * 77 + 85 + + 15 * COUNT ( * ) + - 38 * + + 20 AS col1
----
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT - 9 + + - 95 * - - 69 * + COUNT( * ) * 97
----
-635844

skipif mysql # not compatible
query I rowsort label-9242
SELECT - 9 + + - 95 * - - 69 * + COUNT ( * ) * 97
----
-635844

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9243
SELECT ( - 87 ) DIV - COUNT( - ( - 57 ) ) + - + 47 - 86 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-9243
SELECT ( - 87 ) / - COUNT ( - ( - 57 ) ) + - + 47 - 86 AS col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-9244
SELECT - - 11 * 91 DIV - NULLIF ( - 66, 54 ) + + - 24
----
-9

skipif mysql # not compatible
query I rowsort label-9244
SELECT - - 11 * 91 / - NULLIF ( - 66, 54 ) + + - 24
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9245
SELECT - AVG ( + + 81 ) - + CAST( NULL AS SIGNED ) + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT - AVG ( + + 81 ) - + CAST ( NULL AS INTEGER ) + 37
----
NULL

query I rowsort
SELECT - 37 * 96 AS col2
----
-3552

query I rowsort
SELECT 78 * 4 * + - 9 AS col2
----
-2808

query I rowsort
SELECT DISTINCT - - ( + 49 )
----
49

query I rowsort
SELECT + - 44 + - 48 AS col0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT ALL - 39 * 98 / + + 10 * - - 83 + + + 59 * + CAST( NULL AS SIGNED ) + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL - 39 * 98 / + + 10 * - - 83 + + + 59 * + CAST ( NULL AS INTEGER ) + 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT - 19 + + - 5 + + + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-9251
SELECT - 19 + + - 5 + + + COUNT ( * )
----
-23

query I rowsort
SELECT ALL + ( - - 24 ) AS col0
----
24

query II rowsort
SELECT 7 AS col1, + 90
----
7
90

query I rowsort
SELECT DISTINCT 0 + 74 + - - 71 AS col0
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9255
SELECT ALL - 57 + + 91 * + 17 AS col1, ( CAST( NULL AS SIGNED ) ) * 71 * + + 60 + COUNT( * ) * + 48 + + 14
----
1490
NULL

skipif mysql # not compatible
query II rowsort label-9255
SELECT ALL - 57 + + 91 * + 17 AS col1, ( CAST ( NULL AS INTEGER ) ) * 71 * + + 60 + COUNT ( * ) * + 48 + + 14
----
1490
NULL

query I rowsort
SELECT - 29 * + 71 AS col0
----
-2059

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9257
SELECT ALL - 85 * + 40 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL - 85 * + 40 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT 13 AS col2, 6 AS col0
----
13
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9259
SELECT - 82 DIV + 78
----
-1

skipif mysql # not compatible
query I rowsort label-9259
SELECT - 82 / + 78
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT - 93 - 49 + + 96 - - CASE + - ( + 79 ) WHEN MAX( + + ( COALESCE ( 37, + 12 ) ) ) THEN NULL ELSE + COUNT( * ) END AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-9260
SELECT - 93 - 49 + + 96 - - CASE + - ( + 79 ) WHEN MAX ( + + ( COALESCE ( 37, + 12 ) ) ) THEN NULL ELSE + COUNT ( * ) END AS col0
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9261
SELECT DISTINCT - 40 + + 9 + - 92 DIV - + 54 + + COUNT( DISTINCT + 28 ) + + - 57 * COALESCE ( + 3, - 33, 87 ) + - COUNT( * ) DIV - 37
----
-200

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT - 40 + + 9 + - 92 / - + 54 + + COUNT ( DISTINCT + 28 ) + + - 57 * COALESCE ( + 3, - 33, 87 ) + - COUNT ( * ) / - 37
----
-200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9262
SELECT ALL CASE MAX( ALL - - 97 ) WHEN CAST( - CAST( + 9 AS SIGNED ) AS DECIMAL ) THEN - 47 WHEN COALESCE ( 2, 5, 34, 46 ) * - 86 THEN + ( - COUNT( * ) ) * - 70 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL CASE MAX ( ALL - - 97 ) WHEN CAST ( - CAST ( + 9 AS INTEGER ) AS REAL ) THEN - 47 WHEN COALESCE ( 2, 5, 34, 46 ) * - 86 THEN + ( - COUNT ( * ) ) * - 70 END AS col1
----
NULL

query II rowsort
SELECT 23 col1, - 7 * 18
----
23
-126

query I rowsort
SELECT - - 41 * + + 4 AS col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT MIN( DISTINCT - - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-9265
SELECT MIN ( DISTINCT - - 79 )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9266
SELECT DISTINCT + COUNT( * ) DIV + 46 col0
----
0

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT + COUNT ( * ) / + 46 col0
----
0

query I rowsort
SELECT DISTINCT - + 61 - + 75 AS col1
----
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9268
SELECT ALL CAST( + ( + 12 ) AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL CAST ( + ( + 12 ) AS INTEGER )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT ALL - 97 - + - COUNT( * ) col1
----
-96

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL - 97 - + - COUNT ( * ) col1
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9270
SELECT - - 91 - - - ( 13 ), COUNT( * ) AS col1
----
78
1

skipif mysql # not compatible
query II rowsort label-9270
SELECT - - 91 - - - ( 13 ), COUNT ( * ) AS col1
----
78
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT + COUNT( + + 80 )
----
1

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT + COUNT ( + + 80 )
----
1

query I rowsort
SELECT ALL 71 * 87 * 17 * + 43 * + ( - NULLIF ( - CASE 56 WHEN 51 * 69 THEN NULL ELSE + 11 END, - 90 * 60 + 4 ) )
----
49669257

onlyif mysql # aggregate syntax: 
query II rowsort label-9273
SELECT DISTINCT + 49 AS col0, + COUNT( * ) * - - 94 * + 15
----
49
1410

skipif mysql # not compatible
query II rowsort label-9273
SELECT DISTINCT + 49 AS col0, + COUNT ( * ) * - - 94 * + 15
----
49
1410

query II rowsort
SELECT ALL + - 15, - 98 AS col1
----
-15
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT + + COALESCE ( + COUNT( * ), - 21, - 72 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9275
SELECT + + COALESCE ( + COUNT ( * ), - 21, - 72 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT - + 7 * 67 * + COUNT( * ) * - MIN( 15 ) + + + COUNT( * ) + - 5 + - - 55 AS col0
----
7086

skipif mysql # not compatible
query I rowsort label-9276
SELECT - + 7 * 67 * + COUNT ( * ) * - MIN ( 15 ) + + + COUNT ( * ) + - 5 + - - 55 AS col0
----
7086

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-9277
SELECT DISTINCT - 50 DIV + 6 - - + ( 43 ) col0, + CAST( NULL AS DECIMAL ) * + 5 AS col0, - 98 col0
----
35
NULL
-98

skipif mysql # not compatible
query III rowsort label-9277
SELECT DISTINCT - 50 / + 6 - - + ( 43 ) col0, + CAST ( NULL AS REAL ) * + 5 AS col0, - 98 col0
----
35
NULL
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9278
SELECT - 6 DIV - COUNT( * ) + - 87
----
-81

skipif mysql # not compatible
query I rowsort label-9278
SELECT - 6 / - COUNT ( * ) + - 87
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT DISTINCT - ( MAX( ALL + 52 ) ) * + 23 AS col1
----
-1196

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT - ( MAX ( ALL + 52 ) ) * + 23 AS col1
----
-1196

query I rowsort
SELECT + - 90 * - 97
----
8730

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL + CASE + - 51 WHEN + - COALESCE ( ( 11 ), + 45 + 98, + 30 * - 79 ) THEN NULL ELSE - COALESCE ( + 70, + 18 ) + MIN( DISTINCT - 56 + + 6 ) END AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL + CASE + - 51 WHEN + - COALESCE ( ( 11 ), + 45 + 98, + 30 * - 79 ) THEN NULL ELSE - COALESCE ( + 70, + 18 ) + MIN ( DISTINCT - 56 + + 6 ) END AS col1
----
-120

query I rowsort
SELECT ALL - 61 * 29
----
-1769

query I rowsort
SELECT + 96 * + ( + 77 ) * 93 + 63 + 21 * - 91 * - 30
----
744849

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT 52 * COUNT( * ) - + 36
----
16

skipif mysql # not compatible
query I rowsort label-9284
SELECT 52 * COUNT ( * ) - + 36
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT CASE - - 73 WHEN + COUNT( * ) THEN - + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT CASE - - 73 WHEN + COUNT ( * ) THEN - + 19 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9286
SELECT + CAST( 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-9286
SELECT + CAST ( 55 AS INTEGER )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9287
SELECT - CAST( 83 AS SIGNED ) * + + 1 * COUNT( + - 24 ) - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-9287
SELECT - CAST ( 83 AS INTEGER ) * + + 1 * COUNT ( + - 24 ) - COUNT ( * )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9288
SELECT + 60 DIV - 39 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9288
SELECT + 60 / - 39 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT + ( + + COUNT( * ) ) * + 71 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-9289
SELECT + ( + + COUNT ( * ) ) * + 71 AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9290
SELECT + ( + + 57 ) - + CASE 92 WHEN - 41 * + 27 / - + 47 THEN + 52 * - 57 ELSE CASE - 3 WHEN - 48 THEN + 97 * 63 WHEN CAST( - 15 AS SIGNED ) * 0 + ( ( + 76 ) ) THEN NULL END + + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT + ( + + 57 ) - + CASE 92 WHEN - 41 * + 27 / - + 47 THEN + 52 * - 57 ELSE CASE - 3 WHEN - 48 THEN + 97 * 63 WHEN CAST ( - 15 AS INTEGER ) * 0 + ( ( + 76 ) ) THEN NULL END + + 64 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT ALL 59 * - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL 59 * - COUNT ( * )
----
-59

query I rowsort
SELECT ALL 81 * + 14 + - 76
----
1058

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9293
SELECT 89 * 15 DIV COUNT( 55 ) - + + 43 - - 74 * + 8 - + 98 * 29 AS col0
----
-958

skipif mysql # not compatible
query I rowsort label-9293
SELECT 89 * 15 / COUNT ( 55 ) - + + 43 - - 74 * + 8 - + 98 * 29 AS col0
----
-958

onlyif mysql # DIV for integer division: 
query I rowsort label-9294
SELECT ALL + 17 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL + 17 / 84
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9295
SELECT DISTINCT 56 * - 17 + 13 * + + MIN( - NULLIF ( 65, - 74 - CAST( 5 AS SIGNED ) ) ) * - 41 AS col0
----
33693

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT 56 * - 17 + 13 * + + MIN ( - NULLIF ( 65, - 74 - CAST ( 5 AS INTEGER ) ) ) * - 41 AS col0
----
33693

query I rowsort
SELECT ALL 31 * - 21 + + 38 col1
----
-613

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT + COUNT( 31 ) + + + COUNT( ALL + - 89 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9297
SELECT + COUNT ( 31 ) + + + COUNT ( ALL + - 89 ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9298
SELECT + 70 + SUM( DISTINCT + ( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT + 70 + SUM ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT ALL COALESCE ( + 45, - - 19 + 47 + + - COUNT( * ) + - 67 + + 44 * + 57 * + 40 )
----
45

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL COALESCE ( + 45, - - 19 + 47 + + - COUNT ( * ) + - 67 + + 44 * + 57 * + 40 )
----
45

query I rowsort
SELECT - 52 - + ( - 25 ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT - MAX( ALL 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-9301
SELECT - MAX ( ALL 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL - 1 - - 3 + + - COUNT( * ) * - 87 + 16 * 66
----
1145

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL - 1 - - 3 + + - COUNT ( * ) * - 87 + 16 * 66
----
1145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9303
SELECT - - 95 * - MAX( + CASE + 93 WHEN ( - + CAST( NULL AS SIGNED ) ) * 56 THEN NULL WHEN - 29 THEN 54 WHEN - 68 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9303
SELECT - - 95 * - MAX ( + CASE + 93 WHEN ( - + CAST ( NULL AS INTEGER ) ) * 56 THEN NULL WHEN - 29 THEN 54 WHEN - 68 THEN NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9304
SELECT ALL COUNT( DISTINCT - 21 ) DIV + - 34
----
0

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL COUNT ( DISTINCT - 21 ) / + - 34
----
0

query I rowsort
SELECT - ( 29 ) + 52 + - - ( 35 ) * + 87 AS col1
----
3068

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT - COUNT( * ) * + CASE 2 WHEN - 82 + COUNT( * ) THEN NULL WHEN - 25 + - 65 THEN NULL ELSE 17 END AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-9306
SELECT - COUNT ( * ) * + CASE 2 WHEN - 82 + COUNT ( * ) THEN NULL WHEN - 25 + - 65 THEN NULL ELSE 17 END AS col1
----
-17

query I rowsort
SELECT - - 49 col2
----
49

query I rowsort
SELECT - - ( 57 ) + 83
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT - + 68 * - COUNT( * ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9309
SELECT - + 68 * - COUNT ( * ) AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9310
SELECT + - SUM( + 64 ) * 3 + + 72 * + 26 + - - CASE + 78 WHEN 26 THEN + 45 WHEN 49 THEN NULL WHEN - MAX( 23 ) DIV ( 1 ) THEN NULL ELSE CASE WHEN NOT NULL IS NULL THEN CASE + 61 WHEN + 92 + CAST( 5 AS SIGNED ) THEN NULL ELSE - COUNT( * ) DIV 10 END ELSE - 7 - 6 END - - 41 END + - 38
----
1670

skipif mysql # not compatible
query I rowsort label-9310
SELECT + - SUM ( + 64 ) * 3 + + 72 * + 26 + - - CASE + 78 WHEN 26 THEN + 45 WHEN 49 THEN NULL WHEN - MAX ( 23 ) / ( 1 ) THEN NULL ELSE CASE WHEN NOT NULL IS NULL THEN CASE + 61 WHEN + 92 + CAST ( 5 AS INTEGER ) THEN NULL ELSE - COUNT ( * ) / 10 END ELSE - 7 - 6 END - - 41 END + - 38
----
1670

query I rowsort
SELECT + - NULLIF ( + 16, 39 ) + 0 + - - 49
----
33

query I rowsort
SELECT - - 94 * + - 60
----
-5640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9313
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) + - 8
----
-7

skipif mysql # not compatible
query I rowsort label-9313
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + - 8
----
-7

query I rowsort
SELECT DISTINCT + 91 * - + 68
----
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT ALL MAX( DISTINCT - 69 ) * + 46 - 50
----
-3224

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL MAX ( DISTINCT - 69 ) * + 46 - 50
----
-3224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9316
SELECT - CAST( NULL AS SIGNED ) * + 30 * - - COUNT( * ) / - COUNT( * ) * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9316
SELECT - CAST ( NULL AS INTEGER ) * + 30 * - - COUNT ( * ) / - COUNT ( * ) * + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT COUNT( * ) + - + 33 * + ( 46 ) AS col1
----
-1517

skipif mysql # not compatible
query I rowsort label-9317
SELECT COUNT ( * ) + - + 33 * + ( 46 ) AS col1
----
-1517

query I rowsort
SELECT DISTINCT - ( - 47 ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9319
SELECT 80 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9319
SELECT 80 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT ( + - 57 ) + - NULLIF ( - - 89, + COUNT( * ) ) * - ( + 0 ) + + 26 * - + 61 AS col1
----
-1643

skipif mysql # not compatible
query I rowsort label-9320
SELECT ( + - 57 ) + - NULLIF ( - - 89, + COUNT ( * ) ) * - ( + 0 ) + + 26 * - + 61 AS col1
----
-1643

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT ALL 48 + - COALESCE ( - + 87, - + COUNT( * ), 93 + + 6 + NULLIF ( + 48, 97 / + 9 * COUNT( * ) + + 8 ) ) + 70 AS col0
----
205

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL 48 + - COALESCE ( - + 87, - + COUNT ( * ), 93 + + 6 + NULLIF ( + 48, 97 / + 9 * COUNT ( * ) + + 8 ) ) + 70 AS col0
----
205

onlyif mysql # aggregate syntax: 
query II rowsort label-9322
SELECT COUNT( * ) * + 61 + + 40, - MIN( ALL - 21 ) AS col1
----
101
21

skipif mysql # not compatible
query II rowsort label-9322
SELECT COUNT ( * ) * + 61 + + 40, - MIN ( ALL - 21 ) AS col1
----
101
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT DISTINCT - 75 + + + COUNT( * ) * + - 77 * + + 91 * + COUNT( * ) + - 37 - - + COALESCE ( - 67, - - 17 ) * + 67 AS col1
----
-11608

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT - 75 + + + COUNT ( * ) * + - 77 * + + 91 * + COUNT ( * ) + - 37 - - + COALESCE ( - 67, - - 17 ) * + 67 AS col1
----
-11608

query I rowsort
SELECT ALL 12 + - + NULLIF ( ( 22 ), + - 52 )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9325
SELECT CAST( NULL AS SIGNED ) * - 55 + + - 68 + + 19 + - 63 * - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9325
SELECT CAST ( NULL AS INTEGER ) * - 55 + + - 68 + + 19 + - 63 * - 62 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9326
SELECT COALESCE ( - - ( + - ( - COUNT( * ) ) ), - 68, - 87 + - CASE 67 WHEN + 64 THEN CAST( + 40 AS SIGNED ) WHEN COUNT( * ) THEN 48 END ) + + 17 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9326
SELECT COALESCE ( - - ( + - ( - COUNT ( * ) ) ), - 68, - 87 + - CASE 67 WHEN + 64 THEN CAST ( + 40 AS INTEGER ) WHEN COUNT ( * ) THEN 48 END ) + + 17 AS col2
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9327
SELECT COUNT( ALL - 91 ) * - 14 AS col0, 63
----
-14
63

skipif mysql # not compatible
query II rowsort label-9327
SELECT COUNT ( ALL - 91 ) * - 14 AS col0, 63
----
-14
63

query I rowsort
SELECT ALL 46 * 11 AS col1
----
506

query I rowsort
SELECT ALL 5 * - + 47
----
-235

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT DISTINCT - COUNT( * ) * - ( - 91 ) + COUNT( 63 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT - COUNT ( * ) * - ( - 91 ) + COUNT ( 63 ) AS col0
----
-90

query I rowsort
SELECT DISTINCT + 28 * 30
----
840

query I rowsort
SELECT 63 - - 31 AS col2
----
94

query I rowsort
SELECT - 45 + + 97
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT - 89 * - COUNT( DISTINCT 34 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-9334
SELECT - 89 * - COUNT ( DISTINCT 34 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT DISTINCT + + COUNT( * ) * - + 91 * 58 + - COUNT( * ) + - 23 + 67 * - 19
----
-6575

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT + + COUNT ( * ) * - + 91 * 58 + - COUNT ( * ) + - 23 + 67 * - 19
----
-6575

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT DISTINCT COUNT( ALL 58 ) + SUM( - 80 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT COUNT ( ALL 58 ) + SUM ( - 80 ) AS col0
----
-79

query I rowsort
SELECT ALL + 51 + + - 66 + 94 * + + 54 + - 22 + 8 + - 3
----
5044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9338
SELECT + CASE ( 78 ) WHEN - + COUNT( * ) * + - 39 THEN NULL WHEN + CAST( + - 94 AS SIGNED ) THEN NULL WHEN 11 THEN 27 * + 65 ELSE + 83 * ( + 98 ) END
----
8134

skipif mysql # not compatible
query I rowsort label-9338
SELECT + CASE ( 78 ) WHEN - + COUNT ( * ) * + - 39 THEN NULL WHEN + CAST ( + - 94 AS INTEGER ) THEN NULL WHEN 11 THEN 27 * + 65 ELSE + 83 * ( + 98 ) END
----
8134

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT + + MIN( - - 27 ) col2
----
27

skipif mysql # not compatible
query I rowsort label-9339
SELECT + + MIN ( - - 27 ) col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9340
SELECT 43 DIV + + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9340
SELECT 43 / + + 99 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9341
SELECT + + CASE - + 85 WHEN 20 - + 88 THEN - + ( MIN( - 60 ) ) * - 79 * - 51 + - COUNT( ALL 4 ) WHEN + NULLIF ( - 6, 15 - 87 * - 0 ) / + 69 THEN NULL END * 40 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT + + CASE - + 85 WHEN 20 - + 88 THEN - + ( MIN ( - 60 ) ) * - 79 * - 51 + - COUNT ( ALL 4 ) WHEN + NULLIF ( - 6, 15 - 87 * - 0 ) / + 69 THEN NULL END * 40 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 89 + - 60
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ALL - MIN( ALL - + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL - MIN ( ALL - + 54 )
----
54

query I rowsort
SELECT 70 * + 93
----
6510

query I rowsort
SELECT DISTINCT + 16 * - 11 AS col1
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT ALL - 89 + + 39 + + COUNT( DISTINCT 48 ) * + + 21 * + COUNT( * ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL - 89 + + 39 + + COUNT ( DISTINCT 48 ) * + + 21 * + COUNT ( * ) col2
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9347
SELECT ALL COALESCE ( + - MAX( - 26 ), + 72 DIV - 15 ) * COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL COALESCE ( + - MAX ( - 26 ), + 72 / - 15 ) * COUNT ( * ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9348
SELECT 39 AS col1, - MAX( ALL + + 89 ) + 11 AS col2
----
39
-78

skipif mysql # not compatible
query II rowsort label-9348
SELECT 39 AS col1, - MAX ( ALL + + 89 ) + 11 AS col2
----
39
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT ALL + 26 - + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL + 26 - + COUNT ( * ) AS col0
----
25

query I rowsort
SELECT ( + 3 ) * + 21 - - - 81
----
-18

query I rowsort
SELECT DISTINCT - 53 * + 63 * 58 AS col0
----
-193662

onlyif mysql # aggregate syntax: 
query II rowsort label-9352
SELECT ALL - 43 col0, + 94 * - 79 + - + MAX( - 77 ) AS col0
----
-43
-7349

skipif mysql # not compatible
query II rowsort label-9352
SELECT ALL - 43 col0, + 94 * - 79 + - + MAX ( - 77 ) AS col0
----
-43
-7349

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT CASE + + 9 WHEN + - 25 / - - COUNT( * ) + + 0 / SUM( 11 ) * + 82 + + - 53 THEN NULL WHEN + - 13 THEN - 72 + + 35 * - 36 END * 2 + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT CASE + + 9 WHEN + - 25 / - - COUNT ( * ) + + 0 / SUM ( 11 ) * + 82 + + - 53 THEN NULL WHEN + - 13 THEN - 72 + + 35 * - 36 END * 2 + 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT ALL MAX( + 24 ) - + 1 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL MAX ( + 24 ) - + 1 AS col1
----
23

query I rowsort
SELECT 95 * + 44 AS col2
----
4180

query I rowsort
SELECT DISTINCT + 54 * - - 34
----
1836

onlyif mysql # aggregate syntax: 
query II rowsort label-9357
SELECT ALL - 33, - COALESCE ( 1, + + NULLIF ( - 55, - - 94 - + 6 - + + 62 - - + NULLIF ( + + SUM( + 89 ), - 77 ) ) + + 77 * - 21 ) AS col2
----
-33
-1

skipif mysql # not compatible
query II rowsort label-9357
SELECT ALL - 33, - COALESCE ( 1, + + NULLIF ( - 55, - - 94 - + 6 - + + 62 - - + NULLIF ( + + SUM ( + 89 ), - 77 ) ) + + 77 * - 21 ) AS col2
----
-33
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT 4 - + - COUNT( * ) + + - 72 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9358
SELECT 4 - + - COUNT ( * ) + + - 72 AS col2
----
-67

onlyif mysql # DIV for integer division: 
query II rowsort label-9359
SELECT DISTINCT - 75 AS col2, - 5 DIV 10
----
-75
0

skipif mysql # not compatible
query II rowsort label-9359
SELECT DISTINCT - 75 AS col2, - 5 / 10
----
-75
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9360
SELECT ALL + 27 - - CAST( NULL AS SIGNED ) - CAST( - 27 AS SIGNED ) AS col1, ( + 69 ) + - + 66 * 18 * + 88
----
NULL
-104475

skipif mysql # not compatible
query II rowsort label-9360
SELECT ALL + 27 - - CAST ( NULL AS INTEGER ) - CAST ( - 27 AS INTEGER ) AS col1, ( + 69 ) + - + 66 * 18 * + 88
----
NULL
-104475

onlyif mysql # aggregate syntax: 
query III rowsort label-9361
SELECT DISTINCT - COUNT( * ) AS col0, + NULLIF ( - COUNT( * ), + 87 ), - 90 AS col2
----
-1
-1
-90

skipif mysql # not compatible
query III rowsort label-9361
SELECT DISTINCT - COUNT ( * ) AS col0, + NULLIF ( - COUNT ( * ), + 87 ), - 90 AS col2
----
-1
-1
-90

query I rowsort
SELECT 99 * - + NULLIF ( + 37, 2 ) * - - 17
----
-62271

onlyif mysql # aggregate syntax: 
query II rowsort label-9363
SELECT + 37 + - COUNT( * ), - 44 col0
----
36
-44

skipif mysql # not compatible
query II rowsort label-9363
SELECT + 37 + - COUNT ( * ), - 44 col0
----
36
-44

query I rowsort
SELECT ALL - ( + 74 ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT - 21 * - MAX( + + ( + NULLIF ( 50, - 8 * 61 + 44 ) ) ) * + 6 + 68 + - 64
----
6304

skipif mysql # not compatible
query I rowsort label-9365
SELECT - 21 * - MAX ( + + ( + NULLIF ( 50, - 8 * 61 + 44 ) ) ) * + 6 + 68 + - 64
----
6304

query I rowsort
SELECT - ( - + ( - NULLIF ( - - 14, + - 10 ) ) ) - - 62 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT 78 + + 37 * + 35 * MIN( - 52 ) AS col1
----
-67262

skipif mysql # not compatible
query I rowsort label-9367
SELECT 78 + + 37 * + 35 * MIN ( - 52 ) AS col1
----
-67262

query I rowsort
SELECT + 34 - COALESCE ( - - 51, + - 93 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL COUNT( * ) * - + 61
----
-61

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL COUNT ( * ) * - + 61
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9370
SELECT ALL + + 0 * ( + + 22 ) * - - 45 + 80 - - 40 + + NULLIF ( + - 38, - 48 * - - COUNT( * ) * 62 + CASE - 55 + MAX( ALL - 88 - + ( + 68 ) ) WHEN + CAST( NULL AS SIGNED ) THEN 15 - - ( + 95 ) ELSE 13 END ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL + + 0 * ( + + 22 ) * - - 45 + 80 - - 40 + + NULLIF ( + - 38, - 48 * - - COUNT ( * ) * 62 + CASE - 55 + MAX ( ALL - 88 - + ( + 68 ) ) WHEN + CAST ( NULL AS INTEGER ) THEN 15 - - ( + 95 ) ELSE 13 END ) AS col1
----
82

query II rowsort
SELECT ALL ( - 54 ) + - 19 + + 25 * + 63 * - 29 AS col1, 28 AS col0
----
-45748
28

query I rowsort
SELECT ALL - 66 + + 28 AS col0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-9373
SELECT DISTINCT 66 + + + 98 * + 24 + + 13 DIV + - 56 * + 13 - + + 42
----
2376

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT 66 + + + 98 * + 24 + + 13 / + - 56 * + 13 - + + 42
----
2376

onlyif mysql # DIV for integer division: 
query II rowsort label-9374
SELECT + + 86 DIV + 38 col2, + 17 AS col0
----
2
17

skipif mysql # not compatible
query II rowsort label-9374
SELECT + + 86 / + 38 col2, + 17 AS col0
----
2
17

query I rowsort
SELECT + - 28 + - - 45 col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9376
SELECT ALL - CAST( NULL AS SIGNED ) + + 76 / 33 * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL - CAST ( NULL AS INTEGER ) + + 76 / 33 * + 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9377
SELECT - - CAST( + - 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-9377
SELECT - - CAST ( + - 5 AS INTEGER )
----
-5

query I rowsort
SELECT + 81 * + + 54 * + 3
----
13122

onlyif mysql # DIV for integer division: 
query II rowsort label-9379
SELECT - 44 AS col1, 45 DIV + - 96
----
-44
0

skipif mysql # not compatible
query II rowsort label-9379
SELECT - 44 AS col1, 45 / + - 96
----
-44
0

query II rowsort
SELECT - - 57 AS col1, - 70 AS col1
----
57
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT ALL + 39 + - COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL + 39 + - COUNT ( * ) AS col0
----
38

query I rowsort
SELECT DISTINCT 1 + 29 + - 23
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9383
SELECT + NULLIF ( + + CAST( NULL AS SIGNED ), - 49 ) * - 16 + 99, + CAST( NULL AS SIGNED ) / + 66 / NULLIF ( - 58, + + 89 ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9383
SELECT + NULLIF ( + + CAST ( NULL AS INTEGER ), - 49 ) * - 16 + 99, + CAST ( NULL AS INTEGER ) / + 66 / NULLIF ( - 58, + + 89 ) AS col2
----
NULL
NULL

query I rowsort
SELECT ALL + 30 * + 97
----
2910

query I rowsort
SELECT - ( - 41 ) + - 54
----
-13

query I rowsort
SELECT ALL 1 * 57 - + 76 col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT + CASE COUNT( * ) WHEN - 97 THEN 55 ELSE + + 57 END * - 47
----
-2679

skipif mysql # not compatible
query I rowsort label-9387
SELECT + CASE COUNT ( * ) WHEN - 97 THEN 55 ELSE + + 57 END * - 47
----
-2679

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ALL + COUNT( * ) * 60
----
60

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL + COUNT ( * ) * 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT + ( - - 34 ) + - COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-9389
SELECT + ( - - 34 ) + - COUNT ( * ) AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9390
SELECT - 38 * + CAST( NULL AS SIGNED ) - - ( 20 ) + - + ( - + COUNT( ALL 28 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT - 38 * + CAST ( NULL AS INTEGER ) - - ( 20 ) + - + ( - + COUNT ( ALL 28 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT NULLIF ( + 7, + MIN( ALL - 55 ) ) * + - 4 + - COUNT( * ) + 80 + MAX( ALL + ( - - ( - 90 ) ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-9391
SELECT NULLIF ( + 7, + MIN ( ALL - 55 ) ) * + - 4 + - COUNT ( * ) + 80 + MAX ( ALL + ( - - ( - 90 ) ) ) AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9392
SELECT - 77 - - COUNT( * ) + + COUNT( * ) / - - CAST( NULL AS SIGNED ) * 66 / + 21 + 63 * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT - 77 - - COUNT ( * ) + + COUNT ( * ) / - - CAST ( NULL AS INTEGER ) * 66 / + 21 + 63 * + 24
----
NULL

query I rowsort
SELECT - 35 * 68 * 2
----
-4760

query I rowsort
SELECT - 53 + 14 - + 92
----
-131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9395
SELECT - 64 DIV + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-9395
SELECT - 64 / + COUNT ( * )
----
-64

query I rowsort
SELECT ALL - 68 * - ( - - 57 )
----
3876

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT - 17 + + - MAX( - 96 )
----
79

skipif mysql # not compatible
query I rowsort label-9397
SELECT - 17 + + - MAX ( - 96 )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9398
SELECT ALL - 95 DIV + + 42
----
-2

skipif mysql # not compatible
query I rowsort label-9398
SELECT ALL - 95 / + + 42
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT ALL + COUNT( + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL + COUNT ( + 37 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9400
SELECT - ( - + 92 ) * - 30 + - + COUNT( * ) - + ( + 28 ) DIV 52 * - + CAST( + - 26 AS SIGNED )
----
-2761

skipif mysql # not compatible
query I rowsort label-9400
SELECT - ( - + 92 ) * - 30 + - + COUNT ( * ) - + ( + 28 ) / 52 * - + CAST ( + - 26 AS INTEGER )
----
-2761

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9401
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * + 33 AS col1, 38
----
NULL
38

skipif mysql # not compatible
query II rowsort label-9401
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * + 33 AS col1, 38
----
NULL
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT DISTINCT + CASE - ( 98 ) WHEN + - COUNT( * ) * + COUNT( * ) + + MIN( DISTINCT - + 60 ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT + CASE - ( 98 ) WHEN + - COUNT ( * ) * + COUNT ( * ) + + MIN ( DISTINCT - + 60 ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT + + COUNT( 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9403
SELECT + + COUNT ( 92 ) AS col0
----
1

query I rowsort
SELECT + 5 + - 7 * - 32 * - - 94
----
21061

onlyif mysql # DIV for integer division: 
query II rowsort label-9405
SELECT - + 56 * - 1 AS col1, + 55 DIV - 94 * - 58 AS col1
----
56
0

skipif mysql # not compatible
query II rowsort label-9405
SELECT - + 56 * - 1 AS col1, + 55 / - 94 * - 58 AS col1
----
56
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9406
SELECT + CAST( NULL AS DECIMAL ) + - 86 + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT + CAST ( NULL AS REAL ) + - 86 + 26 AS col2
----
NULL

query I rowsort
SELECT - + 77 col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT - MAX( + + 27 ) * 27
----
-729

skipif mysql # not compatible
query I rowsort label-9408
SELECT - MAX ( + + 27 ) * 27
----
-729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9409
SELECT ALL - 40 * + 35 + + - CAST( NULL AS SIGNED ) / 17 + - 80 / + - 16 * MIN( 67 ) * - - 51 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL - 40 * + 35 + + - CAST ( NULL AS INTEGER ) / 17 + - 80 / + - 16 * MIN ( 67 ) * - - 51 + - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT DISTINCT - + 35 + - - SUM( DISTINCT + 25 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT - + 35 + - - SUM ( DISTINCT + 25 ) AS col1
----
-10

query I rowsort
SELECT ALL - 37 + + 98 AS col0
----
61

query I rowsort
SELECT + + 57 * 87
----
4959

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT + MIN( 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-9413
SELECT + MIN ( 96 ) AS col1
----
96

query I rowsort
SELECT - 51 - - + ( 51 ) + + 42
----
42

query II rowsort
SELECT + 35 * - 7 AS col2, - 99 * + 59 + 10 col2
----
-245
-5831

query II rowsort
SELECT + ( - 4 ) col1, - 27 col2
----
-4
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT + - COUNT( DISTINCT + - 75 ) + - - 86 + + 41
----
126

skipif mysql # not compatible
query I rowsort label-9417
SELECT + - COUNT ( DISTINCT + - 75 ) + - - 86 + + 41
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL MAX( - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL MAX ( - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT DISTINCT COUNT( * ) * - 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT COUNT ( * ) * - 35 AS col0
----
-35

query I rowsort
SELECT DISTINCT - 41 - - - ( 13 ) AS col0
----
-54

query I rowsort
SELECT + 31 + - 26 col2
----
5

query I rowsort
SELECT DISTINCT 37 - + 27 AS col0
----
10

query I rowsort
SELECT DISTINCT NULLIF ( - - 77, + + 78 / + 87 ) - + 37 - + 27 + - 43 AS col2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9424
SELECT + 77 DIV - - 85 * - 79 * + 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9424
SELECT + 77 / - - 85 * - 79 * + 42 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT + MAX( 38 ) * + 50 AS col1
----
1900

skipif mysql # not compatible
query I rowsort label-9425
SELECT + MAX ( 38 ) * + 50 AS col1
----
1900

query I rowsort
SELECT + ( - 85 )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9427
SELECT CAST( - 38 AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-9427
SELECT CAST ( - 38 AS INTEGER )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT ALL ( ( 49 ) ) * - - COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL ( ( 49 ) ) * - - COUNT ( * ) AS col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9429
SELECT + CAST( 43 AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9429
SELECT + CAST ( 43 AS INTEGER ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT DISTINCT - ( + + 70 ) * - - COALESCE ( - 17, - - ( + + ( - 36 ) ) - + + 22 * NULLIF ( - 71, COUNT( * ) * - + COUNT( - ( 72 ) ) + + 97 ), + 18 ) AS col0
----
1190

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT - ( + + 70 ) * - - COALESCE ( - 17, - - ( + + ( - 36 ) ) - + + 22 * NULLIF ( - 71, COUNT ( * ) * - + COUNT ( - ( 72 ) ) + + 97 ), + 18 ) AS col0
----
1190

query I rowsort
SELECT ALL 82 * + 92
----
7544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9432
SELECT DISTINCT + 56, - CAST( NULL AS SIGNED ) * + 50 * COUNT( * ) AS col2
----
56
NULL

skipif mysql # not compatible
query II rowsort label-9432
SELECT DISTINCT + 56, - CAST ( NULL AS INTEGER ) * + 50 * COUNT ( * ) AS col2
----
56
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9433
SELECT + CAST( + - 76 AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-9433
SELECT + CAST ( + - 76 AS INTEGER )
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9434
SELECT ALL + 26 DIV - + COUNT( * ) + - - 22
----
-4

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL + 26 / - + COUNT ( * ) + - - 22
----
-4

query I rowsort
SELECT ( - 39 ) col2
----
-39

query I rowsort
SELECT - 63 * - 37
----
2331

onlyif mysql # aggregate syntax: 
query II rowsort label-9437
SELECT + COUNT( * ) AS col1, 20 col2
----
1
20

skipif mysql # not compatible
query II rowsort label-9437
SELECT + COUNT ( * ) AS col1, 20 col2
----
1
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9438
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + + 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT DISTINCT - 88 + + - COUNT( * ) + COUNT( * ) * 93 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9439
SELECT DISTINCT - 88 + + - COUNT ( * ) + COUNT ( * ) * 93 AS col0
----
4

query II rowsort
SELECT ALL + + ( - 97 ) + - 62 AS col0, 7 AS col0
----
-159
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9441
SELECT - SUM( - CAST( NULL AS SIGNED ) ) * - 40 * - + 84 * 94 + COUNT( * ) / + AVG ( 89 ) - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT - SUM ( - CAST ( NULL AS INTEGER ) ) * - 40 * - + 84 * 94 + COUNT ( * ) / + AVG ( 89 ) - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT ALL + + 45 + + 22 + + 14, - 46 + + + 17 AS col2
----
81
-29

query I rowsort
SELECT DISTINCT + 39 + - 17
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL - + COUNT( * ) * 30 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL - + COUNT ( * ) * 30 AS col2
----
-30

query I rowsort
SELECT ALL + + 70 + - 93 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9446
SELECT - - 28 * - 22 + + CAST( NULL AS SIGNED ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9446
SELECT - - 28 * - 22 + + CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT COUNT( * ) - + 62 col0
----
-61

skipif mysql # not compatible
query I rowsort label-9447
SELECT COUNT ( * ) - + 62 col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9448
SELECT - + CAST( - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9448
SELECT - + CAST ( - COUNT ( * ) AS INTEGER )
----
1

query II rowsort
SELECT ( - 29 ) + + 61 AS col1, - 69 - + - 49
----
32
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT + 32 - + CAST( - ( + 79 ) AS SIGNED ) + 22 * + 43 + - 25
----
1032

skipif mysql # not compatible
query I rowsort label-9450
SELECT + 32 - + CAST ( - ( + 79 ) AS INTEGER ) + 22 * + 43 + - 25
----
1032

query I rowsort
SELECT DISTINCT - - 28 - - 48 + + 95
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-9452
SELECT - 99 + COALESCE ( + 5, 88 + 88 * - ( + 48 ), - 44 - + 83 * - 41 ) DIV - + 52 col1
----
-99

skipif mysql # not compatible
query I rowsort label-9452
SELECT - 99 + COALESCE ( + 5, 88 + 88 * - ( + 48 ), - 44 - + 83 * - 41 ) / - + 52 col1
----
-99

query I rowsort
SELECT ALL - 76 col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT DISTINCT + CASE - COUNT( * ) WHEN COUNT( * ) THEN 66 + + 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9454
SELECT DISTINCT + CASE - COUNT ( * ) WHEN COUNT ( * ) THEN 66 + + 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT SUM( - 42 ) + + 57 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-9455
SELECT SUM ( - 42 ) + + 57 AS col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9456
SELECT 69 + - - 25 + 24 DIV 15
----
95

skipif mysql # not compatible
query I rowsort label-9456
SELECT 69 + - - 25 + 24 / 15
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9457
SELECT 73 DIV + 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9457
SELECT 73 / + 76 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT 8 * - MIN( DISTINCT + + ( + 6 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-9458
SELECT 8 * - MIN ( DISTINCT + + ( + 6 ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT 79 + 88 * + 74 - - + 96 * + ( - 40 ) * + - COUNT( * )
----
10431

skipif mysql # not compatible
query I rowsort label-9459
SELECT 79 + 88 * + 74 - - + 96 * + ( - 40 ) * + - COUNT ( * )
----
10431

query I rowsort
SELECT DISTINCT 83 * - - 83 AS col0
----
6889

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9461
SELECT ALL - 13 DIV + COUNT( * ) AS col0, - 11 AS col2
----
-13
-11

skipif mysql # not compatible
query II rowsort label-9461
SELECT ALL - 13 / + COUNT ( * ) AS col0, - 11 AS col2
----
-13
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT ALL COUNT( * ) * - - 54 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL COUNT ( * ) * - - 54 AS col2
----
54

query I rowsort
SELECT 4 + - 84 AS col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9464
SELECT DISTINCT - 95 * + 14 AS col0, + COUNT( * ) / + CAST( NULL AS SIGNED ) + - 60 AS col0
----
-1330
NULL

skipif mysql # not compatible
query II rowsort label-9464
SELECT DISTINCT - 95 * + 14 AS col0, + COUNT ( * ) / + CAST ( NULL AS INTEGER ) + - 60 AS col0
----
-1330
NULL

query I rowsort
SELECT ( 47 ) + + - 79 AS col1
----
-32

query I rowsort
SELECT ALL 82 * - 70 col1
----
-5740

query I rowsort
SELECT DISTINCT 41 * 71 AS col1
----
2911

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT ALL COUNT( * ) + 81 - + + 50 * + 42 * 72 * + 23
----
-3477518

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL COUNT ( * ) + 81 - + + 50 * + 42 * 72 * + 23
----
-3477518

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9469
SELECT + 73 DIV 9 * - NULLIF ( - 86, - 6 - + - 25 + + - 60 + + 19 + - + 82 * - 39 + - MIN( ALL 45 ) DIV 37 DIV + 3 ) + 42
----
730

skipif mysql # not compatible
query I rowsort label-9469
SELECT + 73 / 9 * - NULLIF ( - 86, - 6 - + - 25 + + - 60 + + 19 + - + 82 * - 39 + - MIN ( ALL 45 ) / 37 / + 3 ) + 42
----
730

query I rowsort
SELECT 33 * - 16
----
-528

query I rowsort
SELECT 4 + + 84 * + 32 AS col0
----
2692

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9472
SELECT COUNT( * ) DIV - + 54 - - 44
----
44

skipif mysql # not compatible
query I rowsort label-9472
SELECT COUNT ( * ) / - + 54 - - 44
----
44

query I rowsort
SELECT DISTINCT - 28 * - 25 + 64 * - + ( + 2 )
----
572

query I rowsort
SELECT ALL 70 + + 33 AS col0
----
103

query I rowsort
SELECT - COALESCE ( 38, - - 4 + 91 + - 34 ) + - - 38 * 48
----
1786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9476
SELECT ALL - + CAST( + + 74 AS SIGNED ) * CASE + CAST( NULL AS SIGNED ) WHEN + 36 THEN NULLIF ( - - 54, - - 64 ) * + ( - + 41 ) + - + MAX( - 57 ) WHEN + 9 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL - + CAST ( + + 74 AS INTEGER ) * CASE + CAST ( NULL AS INTEGER ) WHEN + 36 THEN NULLIF ( - - 54, - - 64 ) * + ( - + 41 ) + - + MAX ( - 57 ) WHEN + 9 THEN NULL END col0
----
NULL

query I rowsort
SELECT DISTINCT + 68 * + 52 * + - 99
----
-350064

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL - 35 * + COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL - 35 * + COUNT ( * ) AS col0
----
-35

query I rowsort
SELECT + 90 * + 86 AS col1
----
7740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9480
SELECT ALL CASE - ( + - 18 ) WHEN - - CASE - 36 WHEN + 84 THEN - 29 END / + + 41 THEN 73 ELSE NULL END * - - CAST( + 82 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL CASE - ( + - 18 ) WHEN - - CASE - 36 WHEN + 84 THEN - 29 END / + + 41 THEN 73 ELSE NULL END * - - CAST ( + 82 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9481
SELECT 76 + CASE + 5 WHEN - 57 + - 62 THEN - CAST( + 73 AS DECIMAL ) * - 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT 76 + CASE + 5 WHEN - 57 + - 62 THEN - CAST ( + 73 AS REAL ) * - 19 END
----
NULL

query I rowsort
SELECT ALL 17 * - 87 * 71
----
-105009

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT DISTINCT + NULLIF ( - COUNT( * ), - 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT + NULLIF ( - COUNT ( * ), - 62 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT DISTINCT - COUNT( * ) - ( ( + 41 ) ) * + - 91 * - - COUNT( * )
----
3730

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT - COUNT ( * ) - ( ( + 41 ) ) * + - 91 * - - COUNT ( * )
----
3730

query I rowsort
SELECT DISTINCT - + 92 - + 54
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-9486
SELECT 32 + - - 34 - - 29 DIV + 78
----
66

skipif mysql # not compatible
query I rowsort label-9486
SELECT 32 + - - 34 - - 29 / + 78
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9487
SELECT DISTINCT + CASE - NULLIF ( CASE 21 WHEN + 43 + - 7 + + + COUNT( * ) + CAST( NULL AS SIGNED ) + + 96 - - + 19 / - 23 * 5 THEN - + 47 WHEN + SUM( DISTINCT - 13 ) * + 65 THEN 97 WHEN + 25 THEN AVG ( DISTINCT - 17 ) + + 2 END, 70 ) WHEN - 57 THEN - COUNT( * ) + 63 ELSE NULL END / + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT DISTINCT + CASE - NULLIF ( CASE 21 WHEN + 43 + - 7 + + + COUNT ( * ) + CAST ( NULL AS INTEGER ) + + 96 - - + 19 / - 23 * 5 THEN - + 47 WHEN + SUM ( DISTINCT - 13 ) * + 65 THEN 97 WHEN + 25 THEN AVG ( DISTINCT - 17 ) + + 2 END, 70 ) WHEN - 57 THEN - COUNT ( * ) + 63 ELSE NULL END / + 45
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9488
SELECT + NULLIF ( - 91, + + 15 ) * + MIN( 34 ) AS col1, + 46 AS col2
----
-3094
46

skipif mysql # not compatible
query II rowsort label-9488
SELECT + NULLIF ( - 91, + + 15 ) * + MIN ( 34 ) AS col1, + 46 AS col2
----
-3094
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9489
SELECT CAST( - CAST( - 85 AS SIGNED ) AS SIGNED ) - + 95 + 40 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9489
SELECT CAST ( - CAST ( - 85 AS INTEGER ) AS INTEGER ) - + 95 + 40 AS col0
----
30

query I rowsort
SELECT 82 - + 9
----
73

query I rowsort
SELECT ALL - 8 * - 69
----
552

query I rowsort
SELECT 24 + 38
----
62

query I rowsort
SELECT DISTINCT - 26 * - 19
----
494

query I rowsort
SELECT ALL - 9 * - 99
----
891

query II rowsort
SELECT ALL 95 AS col1, 31 AS col2
----
95
31

query II rowsort
SELECT 41 AS col2, - 56 col1
----
41
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9497
SELECT ALL + 36 + - 12 DIV + + 29 - 21 + + 61 + + 59 - + 43 + 49 * + 87 * 52 * MIN( ( + 44 ) ) col2
----
9753836

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL + 36 + - 12 / + + 29 - 21 + + 61 + + 59 - + 43 + 49 * + 87 * 52 * MIN ( ( + 44 ) ) col2
----
9753836

query I rowsort
SELECT 4 * - - 56 * + 27 AS col2
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT COUNT( * ) + 90
----
91

skipif mysql # not compatible
query I rowsort label-9499
SELECT COUNT ( * ) + 90
----
91

query I rowsort
SELECT NULLIF ( 9, + 2 ) AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9501
SELECT COUNT( * ) * + 6 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT COUNT ( * ) * + 6 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT ALL NULLIF ( + COUNT( * ), + - 22 ) * - 67 * ( - + 82 )
----
5494

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL NULLIF ( + COUNT ( * ), + - 22 ) * - 67 * ( - + 82 )
----
5494

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT COALESCE ( - COUNT( DISTINCT - 64 ), + COALESCE ( + 66, - 72 * 54 * + - 30 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9503
SELECT COALESCE ( - COUNT ( DISTINCT - 64 ), + COALESCE ( + 66, - 72 * 54 * + - 30 ) ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9504
SELECT DISTINCT + 77 * CAST( NULL AS SIGNED ) + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT + 77 * CAST ( NULL AS INTEGER ) + + 86
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9505
SELECT DISTINCT + SUM( ALL + 98 ) DIV - 88
----
-1

skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT + SUM ( ALL + 98 ) / - 88
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9506
SELECT ALL 49 * - 93 / - AVG ( - + CAST( NULL AS SIGNED ) ) * + - COUNT( * ) / + 62 + + COUNT( - 91 ) + + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL 49 * - 93 / - AVG ( - + CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) / + 62 + + COUNT ( - 91 ) + + 89 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9507
SELECT DISTINCT 18 * - 66 + - 54 DIV 99 AS col0
----
-1188

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT 18 * - 66 + - 54 / 99 AS col0
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT + 29 * COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-9508
SELECT + 29 * COUNT ( * )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9509
SELECT ALL + + SUM( + - 49 ) * + - COALESCE ( + + 37, 6 DIV + ( - 53 ) ) * - 91 - + + 82 + - COUNT( + - 65 ), + COUNT( ALL - 67 ) + + 69 AS col2
----
-165066
70

skipif mysql # not compatible
query II rowsort label-9509
SELECT ALL + + SUM ( + - 49 ) * + - COALESCE ( + + 37, 6 / + ( - 53 ) ) * - 91 - + + 82 + - COUNT ( + - 65 ), + COUNT ( ALL - 67 ) + + 69 AS col2
----
-165066
70

query II rowsort
SELECT ALL + 63 AS col1, ( 90 )
----
63
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT + 97 * + COALESCE ( + + COALESCE ( + + 61, + + ( NULLIF ( 22, + 85 ) ) ), - NULLIF ( 37, SUM( ALL 13 ) * + 45 + - COALESCE ( - + 91, 55 ) ), - 22 )
----
5917

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT + 97 * + COALESCE ( + + COALESCE ( + + 61, + + ( NULLIF ( 22, + 85 ) ) ), - NULLIF ( 37, SUM ( ALL 13 ) * + 45 + - COALESCE ( - + 91, 55 ) ), - 22 )
----
5917

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL + SUM( - 11 ) * + COUNT( * ) - + - NULLIF ( 80, - 44 * + ( + + 20 ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL + SUM ( - 11 ) * + COUNT ( * ) - + - NULLIF ( 80, - 44 * + ( + + 20 ) ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT + SUM( DISTINCT + - ( - + 77 ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9513
SELECT + SUM ( DISTINCT + - ( - + 77 ) ) AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9514
SELECT - - COALESCE ( - ( + 17 ), - CAST( NULL AS SIGNED ) * - + 71 ) * + + 20 + - 58 * 73 + 44 * 17 * - - COUNT( * ) + - COALESCE ( COUNT( ALL + - 50 ), + - COUNT( * ) + 79 ) AS col0
----
-3827

skipif mysql # not compatible
query I rowsort label-9514
SELECT - - COALESCE ( - ( + 17 ), - CAST ( NULL AS INTEGER ) * - + 71 ) * + + 20 + - 58 * 73 + 44 * 17 * - - COUNT ( * ) + - COALESCE ( COUNT ( ALL + - 50 ), + - COUNT ( * ) + 79 ) AS col0
----
-3827

query I rowsort
SELECT + 74 / + + 41 * 88 + - CASE + + 75 WHEN + ( + - 67 ) THEN - 9 END / - 66
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9516
SELECT ALL 43 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL 43 / 95
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9517
SELECT + 18 + - NULLIF ( - + 64, - - SUM( ALL - 23 ) + - + 22 * - - COUNT( * ) DIV + 66 + + + COUNT( * ) ) DIV - - 67
----
18

skipif mysql # not compatible
query I rowsort label-9517
SELECT + 18 + - NULLIF ( - + 64, - - SUM ( ALL - 23 ) + - + 22 * - - COUNT ( * ) / + 66 + + + COUNT ( * ) ) / - - 67
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9518
SELECT + SUM( DISTINCT 58 ) * 19 + - COUNT( * ) + - COALESCE ( 74, - COALESCE ( - 26, + CAST( NULL AS SIGNED ) + - 17 * + 16 * + AVG ( - + 2 ) DIV - CASE - 25 WHEN 65 DIV 25 THEN 27 - + ( + CAST( NULL AS SIGNED ) ) * - MIN( 13 ) END, - 86 + + 20 DIV ( + ( 54 ) ), - 72 * - 47 + - 87 ) ) * 53 col0
----
-2821

skipif mysql # not compatible
query I rowsort label-9518
SELECT + SUM ( DISTINCT 58 ) * 19 + - COUNT ( * ) + - COALESCE ( 74, - COALESCE ( - 26, + CAST ( NULL AS INTEGER ) + - 17 * + 16 * + AVG ( - + 2 ) / - CASE - 25 WHEN 65 / 25 THEN 27 - + ( + CAST ( NULL AS INTEGER ) ) * - MIN ( 13 ) END, - 86 + + 20 / ( + ( 54 ) ), - 72 * - 47 + - 87 ) ) * 53 col0
----
-2821

query I rowsort
SELECT + - NULLIF ( 65, - + 59 * - COALESCE ( - 54, + 65 ) * - - 49 ) AS col0
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9520
SELECT + 31 + + COUNT( * ) + - - COUNT( * ) AS col0, 81 - + COALESCE ( 4, - + 42 * + 5 * COUNT( * ) DIV 81 + 77 )
----
33
77

skipif mysql # not compatible
query II rowsort label-9520
SELECT + 31 + + COUNT ( * ) + - - COUNT ( * ) AS col0, 81 - + COALESCE ( 4, - + 42 * + 5 * COUNT ( * ) / 81 + 77 )
----
33
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9521
SELECT ALL + COUNT( * ), 60 DIV SUM( - - 41 )
----
1
1

skipif mysql # not compatible
query II rowsort label-9521
SELECT ALL + COUNT ( * ), 60 / SUM ( - - 41 )
----
1
1

query II rowsort
SELECT ALL ( - 31 ) * 56 AS col2, + 59 AS col2
----
-1736
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT + + 17 - + COUNT( * ) - CASE - - 46 WHEN - + 26 THEN NULL WHEN - 73 * - + 32 THEN - 13 * - + 89 WHEN + 72 THEN NULL WHEN 78 THEN NULL ELSE - 80 END AS col0
----
96

skipif mysql # not compatible
query I rowsort label-9523
SELECT + + 17 - + COUNT ( * ) - CASE - - 46 WHEN - + 26 THEN NULL WHEN - 73 * - + 32 THEN - 13 * - + 89 WHEN + 72 THEN NULL WHEN 78 THEN NULL ELSE - 80 END AS col0
----
96

query II rowsort
SELECT DISTINCT + 98, + 3 col0
----
98
3

query I rowsort
SELECT ALL + ( 27 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT DISTINCT + + 27 * + + 51 * COUNT( + + 79 )
----
1377

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT + + 27 * + + 51 * COUNT ( + + 79 )
----
1377

query I rowsort
SELECT + + 68 + 40 AS col1
----
108

query I rowsort
SELECT + - 57 + - 2
----
-59

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9529
SELECT COALESCE ( - CAST( - + CAST( + - CAST( + 14 AS DECIMAL ) AS SIGNED ) AS SIGNED ), + 50 * + + 49 DIV - CAST( 81 AS SIGNED ) )
----
-14

skipif mysql # not compatible
query I rowsort label-9529
SELECT COALESCE ( - CAST ( - + CAST ( + - CAST ( + 14 AS REAL ) AS INTEGER ) AS INTEGER ), + 50 * + + 49 / - CAST ( 81 AS INTEGER ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT + ( COALESCE ( + - COUNT( * ), 49 ) ) + 86 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-9530
SELECT + ( COALESCE ( + - COUNT ( * ), 49 ) ) + 86 AS col0
----
85

query I rowsort
SELECT - 37 - 29
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9532
SELECT + ( + - 22 ) DIV ( + MIN( - 13 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9532
SELECT + ( + - 22 ) / ( + MIN ( - 13 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9533
SELECT - 54 * + NULLIF ( + CAST( + 4 AS SIGNED ), - + 30 + + + ( + 77 ) ) AS col2
----
-216

skipif mysql # not compatible
query I rowsort label-9533
SELECT - 54 * + NULLIF ( + CAST ( + 4 AS INTEGER ), - + 30 + + + ( + 77 ) ) AS col2
----
-216

onlyif mysql # aggregate syntax: 
query II rowsort label-9534
SELECT ALL COUNT( * ) AS col1, 96 AS col1
----
1
96

skipif mysql # not compatible
query II rowsort label-9534
SELECT ALL COUNT ( * ) AS col1, 96 AS col1
----
1
96

query I rowsort
SELECT ALL COALESCE ( - 89, - + 39 ) AS col2
----
-89

query I rowsort
SELECT - 94 * - 62
----
5828

query I rowsort
SELECT ALL 0 + + 6 AS col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9538
SELECT ALL ( + + 70 ) + + - 86 * - NULLIF ( - MAX( ALL + 57 ), + 42 ) AS col1, - 57
----
-4832
-57

skipif mysql # not compatible
query II rowsort label-9538
SELECT ALL ( + + 70 ) + + - 86 * - NULLIF ( - MAX ( ALL + 57 ), + 42 ) AS col1, - 57
----
-4832
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9539
SELECT 83 col0, - NULLIF ( - MAX( + + 70 ), + 92 ) * 18 * + 75 + - 10 + + 61 DIV 68
----
83
94490

skipif mysql # not compatible
query II rowsort label-9539
SELECT 83 col0, - NULLIF ( - MAX ( + + 70 ), + 92 ) * 18 * + 75 + - 10 + + 61 / 68
----
83
94490

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9540
SELECT + 82 + 81 AS col1, NULLIF ( + - 7, + 76 - + CAST( NULL AS SIGNED ) )
----
163
-7

skipif mysql # not compatible
query II rowsort label-9540
SELECT + 82 + 81 AS col1, NULLIF ( + - 7, + 76 - + CAST ( NULL AS INTEGER ) )
----
163
-7

query I rowsort
SELECT - ( + 10 )
----
-10

query I rowsort
SELECT - 64 * - 72 AS col0
----
4608

onlyif mysql # aggregate syntax: 
query II rowsort label-9543
SELECT - 23 + - + ( + - SUM( + 29 ) ), 23 * + 69 + + + 55 AS col0
----
6
1642

skipif mysql # not compatible
query II rowsort label-9543
SELECT - 23 + - + ( + - SUM ( + 29 ) ), 23 * + 69 + + + 55 AS col0
----
6
1642

query I rowsort
SELECT - 35 + - + 8 * + + 94 AS col0
----
-787

query II rowsort
SELECT ALL + 51 * - 6, + ( - 15 ) AS col1
----
-306
-15

onlyif mysql # aggregate syntax: 
query III rowsort label-9546
SELECT 12 AS col0, 91 * - MIN( DISTINCT + 9 ) AS col2, - + 84 AS col0
----
12
-819
-84

skipif mysql # not compatible
query III rowsort label-9546
SELECT 12 AS col0, 91 * - MIN ( DISTINCT + 9 ) AS col2, - + 84 AS col0
----
12
-819
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT ALL COUNT( * ) * + 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL COUNT ( * ) * + 80 AS col0
----
80

query I rowsort
SELECT - 28 + + 18
----
-10

query II rowsort
SELECT + 14, 9 * + - 94 AS col2
----
14
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT DISTINCT + MAX( + 14 ) * + 5 + + 49 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT + MAX ( + 14 ) * + 5 + + 49 AS col2
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9551
SELECT ALL - 51 DIV + - MIN( - + COALESCE ( - COALESCE ( - 81, + - 23 ), - 17 + + + 87 ) ) - - 28
----
28

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL - 51 / + - MIN ( - + COALESCE ( - COALESCE ( - 81, + - 23 ), - 17 + + + 87 ) ) - - 28
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-9552
SELECT ALL + ( + COUNT( * ) ) AS col1, 78 + + - 53
----
1
25

skipif mysql # not compatible
query II rowsort label-9552
SELECT ALL + ( + COUNT ( * ) ) AS col1, 78 + + - 53
----
1
25

query II rowsort
SELECT ALL + 34, 39 AS col1
----
34
39

query II rowsort
SELECT 95, + 40 AS col0
----
95
40

query I rowsort
SELECT - 49 + 2 + + 83 * + - ( - 53 )
----
4352

query I rowsort
SELECT DISTINCT + + 28 AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9557
SELECT ALL + 18 / - - CAST( NULL AS SIGNED ) AS col0, + 60
----
NULL
60

skipif mysql # not compatible
query II rowsort label-9557
SELECT ALL + 18 / - - CAST ( NULL AS INTEGER ) AS col0, + 60
----
NULL
60

onlyif mysql # aggregate syntax: 
query II rowsort label-9558
SELECT + COUNT( * ) AS col1, 67
----
1
67

skipif mysql # not compatible
query II rowsort label-9558
SELECT + COUNT ( * ) AS col1, 67
----
1
67

query I rowsort
SELECT + - 7 + - 82 AS col1
----
-89

query I rowsort
SELECT ALL + ( - 46 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-9561
SELECT DISTINCT 59 * + 59, COUNT( * ) col0
----
3481
1

skipif mysql # not compatible
query II rowsort label-9561
SELECT DISTINCT 59 * + 59, COUNT ( * ) col0
----
3481
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT - - COUNT( * ) + - + 69 + - 79 * + COUNT( * )
----
-147

skipif mysql # not compatible
query I rowsort label-9562
SELECT - - COUNT ( * ) + - + 69 + - 79 * + COUNT ( * )
----
-147

onlyif mysql # aggregate syntax: 
query II rowsort label-9563
SELECT DISTINCT + + 21 * - - COUNT( * ) AS col0, 90
----
21
90

skipif mysql # not compatible
query II rowsort label-9563
SELECT DISTINCT + + 21 * - - COUNT ( * ) AS col0, 90
----
21
90

query II rowsort
SELECT ALL + 82, 77 AS col2
----
82
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9565
SELECT + COUNT( DISTINCT + - 70 ) * - + 55 - 80 AS col1, + 84
----
-135
84

skipif mysql # not compatible
query II rowsort label-9565
SELECT + COUNT ( DISTINCT + - 70 ) * - + 55 - 80 AS col1, + 84
----
-135
84

query II rowsort
SELECT ALL + - 35 AS col1, - 3
----
-35
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9567
SELECT + 74 DIV + + 93 * + - 20
----
0

skipif mysql # not compatible
query I rowsort label-9567
SELECT + 74 / + + 93 * + - 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT ALL + + COALESCE ( COUNT( * ), + - 91 * + 80 + + + MIN( DISTINCT 22 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL + + COALESCE ( COUNT ( * ), + - 91 * + 80 + + + MIN ( DISTINCT 22 ) )
----
1

query I rowsort
SELECT DISTINCT + + 90 * + 84 + + 19 * - - 21
----
7959

query II rowsort
SELECT + 45 * - 81, - ( 71 ) col1
----
-3645
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT MAX( + + 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9571
SELECT MAX ( + + 18 ) AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9572
SELECT DISTINCT 36 * 70 + + COUNT( * ) + + - 51 * - 14 - + COUNT( * ) + - 94 DIV + 3 - + 87 * 80 * - + CAST( 86 AS SIGNED ) * - - ( - - 23 ) AS col1
----
13770083

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT 36 * 70 + + COUNT ( * ) + + - 51 * - 14 - + COUNT ( * ) + - 94 / + 3 - + 87 * 80 * - + CAST ( 86 AS INTEGER ) * - - ( - - 23 ) AS col1
----
13770083

query I rowsort
SELECT ALL + 66 * + 57 + + - 52
----
3710

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT COUNT( + 71 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9574
SELECT COUNT ( + 71 ) AS col0
----
1

query I rowsort
SELECT ALL + 16 * 60 + - 17 + - + ( - + 37 ) col0
----
980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9576
SELECT - COALESCE ( + NULLIF ( + ( + 83 ), + COUNT( * ) ), - 73 DIV - + 71 )
----
-83

skipif mysql # not compatible
query I rowsort label-9576
SELECT - COALESCE ( + NULLIF ( + ( + 83 ), + COUNT ( * ) ), - 73 / - + 71 )
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9577
SELECT ALL CAST( 15 AS SIGNED ) * 71 AS col1
----
1065

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL CAST ( 15 AS INTEGER ) * 71 AS col1
----
1065

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT COUNT( * ) + - 65 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT COUNT ( * ) + - 65 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-9579
SELECT COUNT( * ) + 85 AS col0, 50
----
86
50

skipif mysql # not compatible
query II rowsort label-9579
SELECT COUNT ( * ) + 85 AS col0, 50
----
86
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT ALL COALESCE ( - COUNT( * ), - 25 ) + - MIN( ALL 3 ) + 57 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL COALESCE ( - COUNT ( * ), - 25 ) + - MIN ( ALL 3 ) + 57 AS col2
----
53

query I rowsort
SELECT ALL 5 + + 19
----
24

query I rowsort
SELECT 33 * + 66 AS col2
----
2178

onlyif mysql # DIV for integer division: 
query I rowsort label-9583
SELECT DISTINCT - 1 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT - 1 / - 77
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9584
SELECT ALL COALESCE ( + 28, + 13 ) - + 57 DIV - 10
----
33

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL COALESCE ( + 28, + 13 ) - + 57 / - 10
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9585
SELECT 29 DIV + + 36
----
0

skipif mysql # not compatible
query I rowsort label-9585
SELECT 29 / + + 36
----
0

query I rowsort
SELECT + 42 * - 15 * 12 + + - 15
----
-7575

onlyif mysql # DIV for integer division: 
query II rowsort label-9587
SELECT 51 DIV 79 AS col1, - 62 AS col0
----
0
-62

skipif mysql # not compatible
query II rowsort label-9587
SELECT 51 / 79 AS col1, - 62 AS col0
----
0
-62

query I rowsort
SELECT ALL - + 23 * - - 93 - 17
----
-2156

query I rowsort
SELECT + - ( 9 )
----
-9

query I rowsort
SELECT - ( + 7 ) AS col0
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-9591
SELECT ALL + 56 * ( + 63 ) DIV - + ( 6 ) - + 94 * + 17, + 46 col1
----
-2186
46

skipif mysql # not compatible
query II rowsort label-9591
SELECT ALL + 56 * ( + 63 ) / - + ( 6 ) - + 94 * + 17, + 46 col1
----
-2186
46

query I rowsort
SELECT ALL - + ( ( + + 4 ) ) AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9593
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 65, + 16 col0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-9593
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 65, + 16 col0
----
NULL
16

query I rowsort
SELECT DISTINCT - + 1 col1
----
-1

query I rowsort
SELECT ALL + + 19 * + - 44 * - 68
----
56848

query I rowsort
SELECT + 16 + + 45 AS col1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9597
SELECT ALL - COALESCE ( - ( - 88 ), + 42 DIV - 24 - 41, - - 99 * + 99 + - + NULLIF ( - + 50, + 90 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL - COALESCE ( - ( - 88 ), + 42 / - 24 - 41, - - 99 * + 99 + - + NULLIF ( - + 50, + 90 ) )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT ALL - + COALESCE ( + 51, ( - 17 ) ) + + 46 DIV 53
----
-51

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL - + COALESCE ( + 51, ( - 17 ) ) + + 46 / 53
----
-51

query I rowsort
SELECT DISTINCT - 67 + - + 34
----
-101

query I rowsort
SELECT ALL 72 + + - 98
----
-26

query I rowsort
SELECT 86 * + 26 + - + 92 AS col1
----
2144

query II rowsort
SELECT 57 AS col0, 17 AS col2
----
57
17

query I rowsort
SELECT ALL - 23 + 0 + - 48 AS col2
----
-71

query I rowsort
SELECT 86 * - + 24 * 38 + - 2 - + 27 * + 30 AS col2
----
-79244

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT COUNT( * ) + + - 68
----
-67

skipif mysql # not compatible
query I rowsort label-9605
SELECT COUNT ( * ) + + - 68
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT ( - CASE + 52 WHEN - - 5 THEN + 28 WHEN + 50 THEN NULL ELSE NULL END ) - - 49 - 55 * ( - + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT ( - CASE + 52 WHEN - - 5 THEN + 28 WHEN + 50 THEN NULL ELSE NULL END ) - - 49 - 55 * ( - + COUNT ( * ) ) AS col1
----
NULL

query II rowsort
SELECT ALL 48 AS col0, 42 AS col1
----
48
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9608
SELECT DISTINCT 99 AS col2, COUNT( * ) - + 78 + - 76 * + - SUM( + ( + 78 ) )
----
99
5851

skipif mysql # not compatible
query II rowsort label-9608
SELECT DISTINCT 99 AS col2, COUNT ( * ) - + 78 + - 76 * + - SUM ( + ( + 78 ) )
----
99
5851

query I rowsort
SELECT DISTINCT + 5 - - 6
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9610
SELECT SUM( + 84 ) + + CAST( NULL AS SIGNED ) / 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9610
SELECT SUM ( + 84 ) + + CAST ( NULL AS INTEGER ) / 66
----
NULL

query II rowsort
SELECT 37 AS col1, 33 AS col1
----
37
33

query I rowsort
SELECT 29 + 30 * - 97 AS col1
----
-2881

query I rowsort
SELECT 32 * + + 15
----
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9614
SELECT 67 * + + CASE WHEN NOT NULL < AVG ( ALL + ( - 71 ) ) THEN - COUNT( ALL - CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT 67 * + + CASE WHEN NOT NULL < AVG ( ALL + ( - 71 ) ) THEN - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT ALL 63 * + 50 AS col2
----
3150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9616
SELECT 38 + + 91 * + CAST( NULL AS SIGNED ) / - MAX( ALL + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT 38 + + 91 * + CAST ( NULL AS INTEGER ) / - MAX ( ALL + 93 )
----
NULL

query I rowsort
SELECT 74 - + 53 AS col0
----
21

query II rowsort
SELECT 7 + + CASE + + 19 WHEN + 88 THEN - 75 END * - 34 col1, + 53 AS col1
----
NULL
53

query II rowsort
SELECT ALL - 94, 36 + 91 AS col2
----
-94
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9620
SELECT + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * 35
----
0

skipif mysql # not compatible
query I rowsort label-9620
SELECT + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * 35
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9621
SELECT 84 + 97 DIV - COUNT( * ), - ( + 70 ) AS col2
----
-13
-70

skipif mysql # not compatible
query II rowsort label-9621
SELECT 84 + 97 / - COUNT ( * ), - ( + 70 ) AS col2
----
-13
-70

query I rowsort
SELECT DISTINCT + CASE + + 8 WHEN - 5 + + + 37 THEN 74 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9623
SELECT ALL - - 96 DIV 89 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL - - 96 / 89 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT + ( - NULLIF ( - - CASE - COUNT( * ) WHEN + COALESCE ( - 8, - 56, - + 83 ) THEN + ( + 52 ) + - 49 END, - - MAX( - 42 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9624
SELECT + ( - NULLIF ( - - CASE - COUNT ( * ) WHEN + COALESCE ( - 8, - 56, - + 83 ) THEN + ( + 52 ) + - 49 END, - - MAX ( - 42 ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9625
SELECT + 47 DIV - 41 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9625
SELECT + 47 / - 41 AS col2
----
-1

query I rowsort
SELECT 55 * + 37 + + - 16 + 89
----
2108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9627
SELECT ALL - CAST( NULL AS SIGNED ) * + COUNT( * ) + + 6 * + 5 + - - 93 / - - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + 6 * + 5 + - - 93 / - - 42
----
NULL

query I rowsort
SELECT ALL + - 71 * - 73 + - 93 * 32
----
2207

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT 24 * - COUNT( ALL 11 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9629
SELECT 24 * - COUNT ( ALL 11 ) AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9630
SELECT ALL + - COALESCE ( - 44, - 4 * + 64 - ( - - 90 ) + - COUNT( * ), + 77 ) + + ( CAST( - 5 AS SIGNED ) ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL + - COALESCE ( - 44, - 4 * + 64 - ( - - 90 ) + - COUNT ( * ), + 77 ) + + ( CAST ( - 5 AS INTEGER ) ) AS col2
----
39

query I rowsort
SELECT DISTINCT - 36 + 63 col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9632
SELECT MAX( ALL - - 98 ) AS col0, - 29 AS col0
----
98
-29

skipif mysql # not compatible
query II rowsort label-9632
SELECT MAX ( ALL - - 98 ) AS col0, - 29 AS col0
----
98
-29

query II rowsort
SELECT 98 * - - 34 AS col0, 36 + 98 AS col2
----
3332
134

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT ALL + CASE 45 WHEN + 6 THEN NULL WHEN + - 97 THEN + 30 WHEN COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL + CASE 45 WHEN + 6 THEN NULL WHEN + - 97 THEN + 30 WHEN COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT SUM( 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-9635
SELECT SUM ( 94 ) AS col0
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9636
SELECT DISTINCT + ( + 55 ) - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT + ( + 55 ) - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9637
SELECT ALL - 18 DIV 77 col2
----
0

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL - 18 / 77 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9638
SELECT - 35 * - 44, + COUNT( * ) AS col1
----
1540
1

skipif mysql # not compatible
query II rowsort label-9638
SELECT - 35 * - 44, + COUNT ( * ) AS col1
----
1540
1

query I rowsort
SELECT DISTINCT - 1 * - + COALESCE ( 79, + 30, 73 * - 51 ) * 83 + + 56
----
6613

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT ALL CASE - 20 WHEN + 47 * - 70 THEN COALESCE ( 75, 43 / - NULLIF ( + SUM( - 3 ), + - 55 + ( - - 59 ) * - 21 + + - 12 ) + - 66 ) * - ( + ( + 33 ) ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL CASE - 20 WHEN + 47 * - 70 THEN COALESCE ( 75, 43 / - NULLIF ( + SUM ( - 3 ), + - 55 + ( - - 59 ) * - 21 + + - 12 ) + - 66 ) * - ( + ( + 33 ) ) END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9641
SELECT ALL - 92 * CASE 55 WHEN 1 THEN - + 68 * + COALESCE ( - 78, + ( - 3 ) * + 48 + COUNT( * ), - - ( - ( + 57 ) ) ) + + 51 - - CASE - - 95 WHEN - - 10 * - - COUNT( * ) * 31 THEN NULL WHEN 51 THEN NULL ELSE - COUNT( * ) END + + COALESCE ( + COUNT( * ), COUNT( * ) + COALESCE ( NULLIF ( + 26, - 10 ) + 73, - 37 + + 68, 75 ) ) DIV COUNT( * ) ELSE 51 END * - 82
----
384744

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL - 92 * CASE 55 WHEN 1 THEN - + 68 * + COALESCE ( - 78, + ( - 3 ) * + 48 + COUNT ( * ), - - ( - ( + 57 ) ) ) + + 51 - - CASE - - 95 WHEN - - 10 * - - COUNT ( * ) * 31 THEN NULL WHEN 51 THEN NULL ELSE - COUNT ( * ) END + + COALESCE ( + COUNT ( * ), COUNT ( * ) + COALESCE ( NULLIF ( + 26, - 10 ) + 73, - 37 + + 68, 75 ) ) / COUNT ( * ) ELSE 51 END * - 82
----
384744

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT - 88 / - CASE 31 WHEN - - MAX( 20 ) * - 43 * + 97 THEN NULL WHEN + - 93 THEN + 19 * + COUNT( * ) ELSE NULL END * + 13 * + COUNT( * ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT - 88 / - CASE 31 WHEN - - MAX ( 20 ) * - 43 * + 97 THEN NULL WHEN + - 93 THEN + 19 * + COUNT ( * ) ELSE NULL END * + 13 * + COUNT ( * ) * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT ALL - ( - 67 ) - - - COUNT( ( - 57 ) ) + + 91 AS col0
----
157

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL - ( - 67 ) - - - COUNT ( ( - 57 ) ) + + 91 AS col0
----
157

query I rowsort
SELECT DISTINCT + 1 * - 3 AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9645
SELECT + MAX( ALL + - 43 ) DIV SUM( - 69 ) * - - COUNT( * ) + + 36
----
36

skipif mysql # not compatible
query I rowsort label-9645
SELECT + MAX ( ALL + - 43 ) / SUM ( - 69 ) * - - COUNT ( * ) + + 36
----
36

query I rowsort
SELECT ALL CASE - + 71 WHEN 50 THEN + 26 + 26 * - - 8 END
----
NULL

query II rowsort
SELECT - 69 * - 96, + 85 col2
----
6624
85

query I rowsort
SELECT + 34 * + - NULLIF ( 28, + 40 / 87 * + + 84 ) AS col0
----
-952

query I rowsort
SELECT DISTINCT ( - 39 ) AS col1
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-9650
SELECT ALL 16 DIV - + 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL 16 / - + 54 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT - SUM( 7 ) - 80 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-9651
SELECT - SUM ( 7 ) - 80 AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9652
SELECT - CAST( + COUNT( ALL + 40 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9652
SELECT - CAST ( + COUNT ( ALL + 40 ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT - CASE + 51 WHEN - + 58 THEN + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9653
SELECT - CASE + 51 WHEN - + 58 THEN + + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT - + 24 col2
----
-24

query I rowsort
SELECT + 54 * + 9
----
486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9656
SELECT ALL - 59 / + ( CAST( NULL AS SIGNED ) ) + CASE 87 WHEN + 9 * + 22 THEN 84 WHEN - 2 THEN NULL END, + 68 * + - 6 * + COALESCE ( MAX( + + 73 ), - 32 * + 97 - 63 / 12 ) + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9656
SELECT ALL - 59 / + ( CAST ( NULL AS INTEGER ) ) + CASE 87 WHEN + 9 * + 22 THEN 84 WHEN - 2 THEN NULL END, + 68 * + - 6 * + COALESCE ( MAX ( + + 73 ), - 32 * + 97 - 63 / 12 ) + CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT ALL + - COALESCE ( 70, - 6 + - - 1 - + 0 + - ( - + 34 ) + 73 + 71 * 43 )
----
-70

query I rowsort
SELECT DISTINCT + 87 * + 58 * - 80 * - - 38 + + + ( + + 91 )
----
-15339749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9659
SELECT + + 57 * + 35 + - 80 + - 36 AS col1, COUNT( * ) DIV + ( - CAST( + + ( 92 ) AS SIGNED ) ) + - COALESCE ( - 3, - CAST( - - 78 AS SIGNED ) )
----
1879
3

skipif mysql # not compatible
query II rowsort label-9659
SELECT + + 57 * + 35 + - 80 + - 36 AS col1, COUNT ( * ) / + ( - CAST ( + + ( 92 ) AS INTEGER ) ) + - COALESCE ( - 3, - CAST ( - - 78 AS INTEGER ) )
----
1879
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT DISTINCT - - 29 * - COUNT( * ) + + ( + 32 ) - + + MAX( ALL + 53 ) + - - SUM( + 91 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT - - 29 * - COUNT ( * ) + + ( + 32 ) - + + MAX ( ALL + 53 ) + - - SUM ( + 91 ) AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9661
SELECT + ( 89 ), - 38 DIV - 33 * COUNT( * ) col1
----
89
1

skipif mysql # not compatible
query II rowsort label-9661
SELECT + ( 89 ), - 38 / - 33 * COUNT ( * ) col1
----
89
1

query I rowsort
SELECT + 72 * - + ( 23 ) * + COALESCE ( + 73, 60, + - 82 ) AS col0
----
-120888

query I rowsort
SELECT + 18 + + - 32
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9664
SELECT - COUNT( * ) DIV CAST( + NULLIF ( + + 48, 55 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9664
SELECT - COUNT ( * ) / CAST ( + NULLIF ( + + 48, 55 ) AS INTEGER ) AS col2
----
0

query I rowsort
SELECT + 36 * + + 13 AS col0
----
468

query I rowsort
SELECT + 95 + 8
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT ALL - 14 * - - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL - 14 * - - COUNT ( * )
----
-14

query II rowsort
SELECT - 67 * - 81 + + - CASE + 25 WHEN - 7 THEN - 67 - - 79 END * 67 AS col1, 78
----
NULL
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT ALL + COUNT( DISTINCT 15 )
----
1

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL + COUNT ( DISTINCT 15 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT DISTINCT MAX( + 69 ) * - 96 * - + COALESCE ( - 77, - 61 ) AS col1
----
-510048

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT MAX ( + 69 ) * - 96 * - + COALESCE ( - 77, - 61 ) AS col1
----
-510048

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT - 64 + - - 79 * - - CASE COUNT( * ) WHEN - 43 THEN - NULLIF ( 2, + + 25 + 88 - 79 + - - 39 ) + + - 56 END + - COALESCE ( NULLIF ( - - 2, + 0 * - - ( 14 ) + - COUNT( * ) * SUM( + 96 ) ), 25 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9671
SELECT - 64 + - - 79 * - - CASE COUNT ( * ) WHEN - 43 THEN - NULLIF ( 2, + + 25 + 88 - 79 + - - 39 ) + + - 56 END + - COALESCE ( NULLIF ( - - 2, + 0 * - - ( 14 ) + - COUNT ( * ) * SUM ( + 96 ) ), 25 ) AS col1
----
NULL

query I rowsort
SELECT + 76 * + - 29
----
-2204

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9673
SELECT - ( - + 62 ) + - ( + 20 ) + + CAST( NULL AS SIGNED ) + + 94 + + 24 - - 92, - NULLIF ( CAST( + 17 AS SIGNED ), - ( 10 ) ) AS col0
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-9673
SELECT - ( - + 62 ) + - ( + 20 ) + + CAST ( NULL AS INTEGER ) + + 94 + + 24 - - 92, - NULLIF ( CAST ( + 17 AS INTEGER ), - ( 10 ) ) AS col0
----
NULL
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT ALL COUNT( + 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL COUNT ( + 80 ) AS col1
----
1

query I rowsort
SELECT - ( + 87 )
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-9676
SELECT - 10 * 99 + + 84 - - 65 + - + 75 DIV + 14 col2
----
-846

skipif mysql # not compatible
query I rowsort label-9676
SELECT - 10 * 99 + + 84 - - 65 + - + 75 / + 14 col2
----
-846

query I rowsort
SELECT ALL CASE - 17 WHEN + - 97 * - 18 THEN + 16 END
----
NULL

query I rowsort
SELECT - 10 + - 93
----
-103

query I rowsort
SELECT DISTINCT + 70 * + 40
----
2800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9680
SELECT ALL - 16 + + + 11 + + + 36 - - 69 DIV - + COALESCE ( + 89, - - 14, - - 61 * + + MAX( ALL + + 51 ) * - 67 + - MAX( - 7 ) + COUNT( * ) + + 75 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL - 16 + + + 11 + + + 36 - - 69 / - + COALESCE ( + 89, - - 14, - - 61 * + + MAX ( ALL + + 51 ) * - 67 + - MAX ( - 7 ) + COUNT ( * ) + + 75 ) AS col2
----
31

query I rowsort
SELECT ALL + - 4 + ( - 97 )
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9682
SELECT DISTINCT + - 87 + + ( 49 ) + + - 4 + - NULLIF ( - COUNT( * ), - - 19 + + 79 ) DIV + + MIN( - 76 )
----
-42

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT + - 87 + + ( 49 ) + + - 4 + - NULLIF ( - COUNT ( * ), - - 19 + + 79 ) / + + MIN ( - 76 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9683
SELECT DISTINCT + + 79 * MAX( DISTINCT - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT + + 79 * MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT DISTINCT + 41 + ( + CAST( NULL AS SIGNED ) ) + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT + 41 + ( + CAST ( NULL AS INTEGER ) ) + 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9685
SELECT - COUNT( * ) / - 16 * - - 80 / + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT - COUNT ( * ) / - 16 * - - 80 / + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 12 + - 80 * - + 89 * 65 AS col1
----
462788

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT - NULLIF ( + + 51, - 29 * 74 * - + 65 - - ( + COUNT( * ) ) ) + 66 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-9687
SELECT - NULLIF ( + + 51, - 29 * 74 * - + 65 - - ( + COUNT ( * ) ) ) + 66 AS col1
----
15

query II rowsort
SELECT - 10 AS col1, 11 * + + 69
----
-10
759

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT - + 22 - MAX( DISTINCT 84 )
----
-106

skipif mysql # not compatible
query I rowsort label-9689
SELECT - + 22 - MAX ( DISTINCT 84 )
----
-106

query I rowsort
SELECT DISTINCT - + 99 + - - ( - 22 )
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9691
SELECT - MIN( - 2 ) + CAST( + 36 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-9691
SELECT - MIN ( - 2 ) + CAST ( + 36 AS INTEGER )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9692
SELECT + - COUNT( * ) DIV - 30
----
0

skipif mysql # not compatible
query I rowsort label-9692
SELECT + - COUNT ( * ) / - 30
----
0

query II rowsort
SELECT DISTINCT 89 AS col0, + 66
----
89
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT - - 87 + - MAX( + 18 )
----
69

skipif mysql # not compatible
query I rowsort label-9694
SELECT - - 87 + - MAX ( + 18 )
----
69

query I rowsort
SELECT ALL - 81 + - + 42
----
-123

query I rowsort
SELECT - 41 * - 54 + 0
----
2214

onlyif mysql # DIV for integer division: 
query I rowsort label-9697
SELECT 37 DIV - 82 * + 71 * + + 33 + + + 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-9697
SELECT 37 / - 82 * + 71 * + + 33 + + + 49 AS col2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9698
SELECT DISTINCT + - 82 - - MIN( - 92 ) col1, 17 * + + 54 * - 33 * 62
----
-174
-1878228

skipif mysql # not compatible
query II rowsort label-9698
SELECT DISTINCT + - 82 - - MIN ( - 92 ) col1, 17 * + + 54 * - 33 * 62
----
-174
-1878228

onlyif mysql # aggregate syntax: 
query II rowsort label-9699
SELECT COUNT( * ), - NULLIF ( + + 13, + + 6 * - 53 - + 34 + - 87 ) - + 97 + - 63 col2
----
1
-173

skipif mysql # not compatible
query II rowsort label-9699
SELECT COUNT ( * ), - NULLIF ( + + 13, + + 6 * - 53 - + 34 + - 87 ) - + 97 + - 63 col2
----
1
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT NULLIF ( - 44, + - NULLIF ( + - NULLIF ( 28, - NULLIF ( + + 60, 41 * COUNT( * ) + - 31 - - + 35 / + 10 + + - ( 62 ) ) + - 63 ), + + 2 ) * - 47 * + 46 + + 31 ) + - 70 * + + 74 * + 27
----
-139904

skipif mysql # not compatible
query I rowsort label-9700
SELECT NULLIF ( - 44, + - NULLIF ( + - NULLIF ( 28, - NULLIF ( + + 60, 41 * COUNT ( * ) + - 31 - - + 35 / + 10 + + - ( 62 ) ) + - 63 ), + + 2 ) * - 47 * + 46 + + 31 ) + - 70 * + + 74 * + 27
----
-139904

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL CASE + 59 WHEN 21 * - + 29 / - CASE 83 WHEN 24 THEN NULL WHEN - 94 THEN COALESCE ( COUNT( * ), + 74 + - 60, 94 ) + - 82 ELSE NULL END + - + 33 * 2 + - 59 - + 83 THEN + 21 * + SUM( DISTINCT - 89 ) * + 93 - - 42 ELSE + 24 + 13 * + 77 END * 28 col1
----
28700

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL CASE + 59 WHEN 21 * - + 29 / - CASE 83 WHEN 24 THEN NULL WHEN - 94 THEN COALESCE ( COUNT ( * ), + 74 + - 60, 94 ) + - 82 ELSE NULL END + - + 33 * 2 + - 59 - + 83 THEN + 21 * + SUM ( DISTINCT - 89 ) * + 93 - - 42 ELSE + 24 + 13 * + 77 END * 28 col1
----
28700

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT 52 + + - CASE - - 84 WHEN 81 + + - COUNT( * ) THEN NULL WHEN + - COUNT( * ) THEN 32 ELSE 4 END + + 91 col1
----
139

skipif mysql # not compatible
query I rowsort label-9702
SELECT 52 + + - CASE - - 84 WHEN 81 + + - COUNT ( * ) THEN NULL WHEN + - COUNT ( * ) THEN 32 ELSE 4 END + + 91 col1
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-9703
SELECT ALL + 19 * 32 DIV 14 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL + 19 * 32 / 14 AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9704
SELECT CAST( - SUM( 7 ) AS SIGNED ) DIV + - 64 + - 24 * - + 57 AS col2, 40
----
1368
40

skipif mysql # not compatible
query II rowsort label-9704
SELECT CAST ( - SUM ( 7 ) AS INTEGER ) / + - 64 + - 24 * - + 57 AS col2, 40
----
1368
40

query II rowsort
SELECT DISTINCT - 9 AS col1, 53 - + 18 AS col0
----
-9
35

query II rowsort
SELECT + 55 AS col2, 3 * + 1 * - + 21 + - + 53
----
55
-116

query I rowsort
SELECT DISTINCT 34 + - CASE - + 43 WHEN + + 50 THEN - 38 * + 29 + + 56 END + 47 * + 40 AS col0
----
NULL

query I rowsort
SELECT ALL 93 + + 48
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9709
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) + + 17 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) + + 17 AS col0
----
17

query II rowsort
SELECT 91 col0, - 32
----
91
-32

query I rowsort
SELECT 82 + - + ( - 23 ) + + + 81 AS col2
----
186

query I rowsort
SELECT ALL 43 + 21 AS col2
----
64

query II rowsort
SELECT - + 84, 63 * - 51 * 85 AS col0
----
-84
-273105

onlyif mysql # aggregate syntax: 
query II rowsort label-9714
SELECT + 27, + CASE + 48 WHEN + + 78 + 88 * + 45 THEN 96 WHEN 64 THEN + MIN( + 78 ) + + + 72 + - - 31 * + 41 * + - 88 WHEN COUNT( * ) + - 38 THEN NULL ELSE ( NULLIF ( + - 75, + + 36 * + 26 - + MIN( DISTINCT - 56 ) ) ) - 93 END + 94 * + 24 AS col1
----
27
2088

skipif mysql # not compatible
query II rowsort label-9714
SELECT + 27, + CASE + 48 WHEN + + 78 + 88 * + 45 THEN 96 WHEN 64 THEN + MIN ( + 78 ) + + + 72 + - - 31 * + 41 * + - 88 WHEN COUNT ( * ) + - 38 THEN NULL ELSE ( NULLIF ( + - 75, + + 36 * + 26 - + MIN ( DISTINCT - 56 ) ) ) - 93 END + 94 * + 24 AS col1
----
27
2088

query I rowsort
SELECT ALL 56 + + 36 AS col1
----
92

query I rowsort
SELECT 30 + 48 + + 32 + - ( + 94 ) AS col2
----
16

query I rowsort
SELECT ALL + 18 + + - 32 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT - COUNT( DISTINCT + 43 ) * 17 + 43
----
26

skipif mysql # not compatible
query I rowsort label-9718
SELECT - COUNT ( DISTINCT + 43 ) * 17 + 43
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL + ( + MIN( ALL - 22 ) ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL + ( + MIN ( ALL - 22 ) ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-9720
SELECT DISTINCT + - 34 - + COUNT( * ) AS col2, 8 col1
----
-35
8

skipif mysql # not compatible
query II rowsort label-9720
SELECT DISTINCT + - 34 - + COUNT ( * ) AS col2, 8 col1
----
-35
8

query I rowsort
SELECT + 93 - 34
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT ALL + CASE COUNT( * ) WHEN 34 THEN 14 END / - - MIN( + 65 ) * - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL + CASE COUNT ( * ) WHEN 34 THEN 14 END / - - MIN ( + 65 ) * - 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT ALL + 46 * - 53 * - 23 * - SUM( + 67 ) AS col0
----
-3756958

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL + 46 * - 53 * - 23 * - SUM ( + 67 ) AS col0
----
-3756958

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT NULLIF ( + 10, + COUNT( * ) + - 52 + COALESCE ( - 58, + 57, + 57 ) - 52 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9724
SELECT NULLIF ( + 10, + COUNT ( * ) + - 52 + COALESCE ( - 58, + 57, + 57 ) - 52 ) AS col2
----
10

query I rowsort
SELECT COALESCE ( 72, - 77 )
----
72

query I rowsort
SELECT ALL + CASE WHEN ( NULL ) NOT BETWEEN + 36 AND - - 66 + - 34 THEN ( - 36 ) * AVG ( - 44 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9727
SELECT ( + - CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9727
SELECT ( + - CAST ( NULL AS REAL ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT - MIN( DISTINCT 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-9728
SELECT - MIN ( DISTINCT 49 )
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9729
SELECT - 68 AS col0, - 73 * + COALESCE ( 11, - - COUNT( * ) ) col2
----
-68
-803

skipif mysql # not compatible
query II rowsort label-9729
SELECT - 68 AS col0, - 73 * + COALESCE ( 11, - - COUNT ( * ) ) col2
----
-68
-803

query I rowsort
SELECT ALL - ( - 87 )
----
87

query I rowsort
SELECT DISTINCT - - 17 AS col1
----
17

query I rowsort
SELECT 26 * - 89 * + 49
----
-113386

onlyif mysql # DIV for integer division: 
query I rowsort label-9733
SELECT ALL - 60 DIV 16
----
-3

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL - 60 / 16
----
-3

query I rowsort
SELECT 36 * + - 85 AS col1
----
-3060

query I rowsort
SELECT ALL - CASE + 10 WHEN 2 THEN + + 27 WHEN - + 13 THEN + - 85 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9736
SELECT CASE - 29 WHEN + 67 THEN 48 * - NULLIF ( COALESCE ( 33, 43 * ( - + 1 ) ), + + 89 * + 22 * 85 * + 36 * 42 ) WHEN - CAST( NULL AS SIGNED ) * - CAST( - 44 AS SIGNED ) THEN NULL ELSE 26 END * - 65 col1
----
-1690

skipif mysql # not compatible
query I rowsort label-9736
SELECT CASE - 29 WHEN + 67 THEN 48 * - NULLIF ( COALESCE ( 33, 43 * ( - + 1 ) ), + + 89 * + 22 * 85 * + 36 * 42 ) WHEN - CAST ( NULL AS INTEGER ) * - CAST ( - 44 AS INTEGER ) THEN NULL ELSE 26 END * - 65 col1
----
-1690

query I rowsort
SELECT ALL + 88 * + 55 AS col2
----
4840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9738
SELECT 97 DIV - 80 + COUNT( ALL - 13 )
----
0

skipif mysql # not compatible
query I rowsort label-9738
SELECT 97 / - 80 + COUNT ( ALL - 13 )
----
0

query I rowsort
SELECT 61 * - + 46 - 22 * 18 AS col1
----
-3202

query I rowsort
SELECT DISTINCT 99 * + + COALESCE ( + 33, 26 ) AS col2
----
3267

query I rowsort
SELECT DISTINCT 34 + 15
----
49

query I rowsort
SELECT ALL 93 + - 51
----
42

query I rowsort
SELECT ALL - NULLIF ( + 81, - 84 ) AS col2
----
-81

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9744
SELECT DISTINCT - 70 + + 8 DIV NULLIF ( 87, + - ( CAST( NULL AS DECIMAL ) ) ) * - + 7 + - - 43 col0
----
-27

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT - 70 + + 8 / NULLIF ( 87, + - ( CAST ( NULL AS REAL ) ) ) * - + 7 + - - 43 col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT ( + COUNT( * ) ) * - - 0 + MAX( - 2 ) + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9745
SELECT ( + COUNT ( * ) ) * - - 0 + MAX ( - 2 ) + + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT DISTINCT COUNT( * ) + - ( COALESCE ( + MIN( DISTINCT + 36 ), COUNT( * ) + + - CASE - ( + + ( - - COUNT( + ( - 71 ) ) ) ) WHEN + - 46 THEN NULL WHEN - - 89 THEN - NULLIF ( - COUNT( * ), - + MIN( + 25 ) * - NULLIF ( 63, - 58 - + 1 * - 42 ) ) * 78 ELSE NULL END, 16 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT COUNT ( * ) + - ( COALESCE ( + MIN ( DISTINCT + 36 ), COUNT ( * ) + + - CASE - ( + + ( - - COUNT ( + ( - 71 ) ) ) ) WHEN + - 46 THEN NULL WHEN - - 89 THEN - NULLIF ( - COUNT ( * ), - + MIN ( + 25 ) * - NULLIF ( 63, - 58 - + 1 * - 42 ) ) * 78 ELSE NULL END, 16 ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT CASE - 77 WHEN 4 THEN NULL WHEN - 90 THEN - COALESCE ( - 91, - 10 + - COALESCE ( - 80, - 2 * + + SUM( + 33 ) * - NULLIF ( - + 84, + 10 ) + - 63 - - 72 + 81 + - ( - 72 ) + - + 57 * + COALESCE ( - 76, 25 + + 18 * 62 ) + - 60 * 7, 27 * 22 ), COUNT( * ) ) ELSE 31 END + 68
----
99

skipif mysql # not compatible
query I rowsort label-9747
SELECT CASE - 77 WHEN 4 THEN NULL WHEN - 90 THEN - COALESCE ( - 91, - 10 + - COALESCE ( - 80, - 2 * + + SUM ( + 33 ) * - NULLIF ( - + 84, + 10 ) + - 63 - - 72 + 81 + - ( - 72 ) + - + 57 * + COALESCE ( - 76, 25 + + 18 * 62 ) + - 60 * 7, 27 * 22 ), COUNT ( * ) ) ELSE 31 END + 68
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9748
SELECT ALL 57 + + COUNT( * ) + - CAST( NULL AS SIGNED ) * 22 + - 5 * + 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL 57 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 22 + - 5 * + 78 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9749
SELECT + COUNT( ALL - 64 ) AS col2, - COALESCE ( + - 88, - 20, - - 86 )
----
1
88

skipif mysql # not compatible
query II rowsort label-9749
SELECT + COUNT ( ALL - 64 ) AS col2, - COALESCE ( + - 88, - 20, - - 86 )
----
1
88

query II rowsort
SELECT ALL 45 + - 98, + 31 * - 63 AS col1
----
-53
-1953

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT + 84 * + + COUNT( * ) * + 78 * + COUNT( * ) col1
----
6552

skipif mysql # not compatible
query I rowsort label-9751
SELECT + 84 * + + COUNT ( * ) * + 78 * + COUNT ( * ) col1
----
6552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9752
SELECT ALL - CASE + 21 WHEN + + 57 THEN + 94 WHEN CAST( - COUNT( * ) AS SIGNED ) THEN NULL WHEN 39 DIV 83 THEN NULL ELSE + + NULLIF ( 59, - 57 * + - COUNT( * ) - + + CAST( + + 59 AS SIGNED ) + - COUNT( * ) * COUNT( * ) + - 25 + - 14 + CAST( - + 27 AS SIGNED ) * + + 5 ) END DIV ( + COUNT( * ) ) col1
----
-59

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL - CASE + 21 WHEN + + 57 THEN + 94 WHEN CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL WHEN 39 / 83 THEN NULL ELSE + + NULLIF ( 59, - 57 * + - COUNT ( * ) - + + CAST ( + + 59 AS INTEGER ) + - COUNT ( * ) * COUNT ( * ) + - 25 + - 14 + CAST ( - + 27 AS INTEGER ) * + + 5 ) END / ( + COUNT ( * ) ) col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9753
SELECT - + NULLIF ( 1, SUM( - - 12 ) * CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9753
SELECT - + NULLIF ( 1, SUM ( - - 12 ) * CAST ( NULL AS INTEGER ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9754
SELECT + CAST( + - 52 AS SIGNED ) + - 15 + + + SUM( + 93 ) col1
----
26

skipif mysql # not compatible
query I rowsort label-9754
SELECT + CAST ( + - 52 AS INTEGER ) + - 15 + + + SUM ( + 93 ) col1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9755
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN - 97 THEN - 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN - 97 THEN - 83 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT DISTINCT - COUNT( + 89 ) * - NULLIF ( - - 59, 69 ) + - 1 - - COUNT( + 28 )
----
59

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT - COUNT ( + 89 ) * - NULLIF ( - - 59, 69 ) + - 1 - - COUNT ( + 28 )
----
59

query I rowsort
SELECT DISTINCT 76 + + 91 AS col0
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT ALL 94 - 42 + - 29 + - - 33 * + - 97 * - COUNT( * ) * + - 25 AS col2
----
-80002

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL 94 - 42 + - 29 + - - 33 * + - 97 * - COUNT ( * ) * + - 25 AS col2
----
-80002

query I rowsort
SELECT DISTINCT NULLIF ( - 16, 15 - - ( ( + - 21 ) ) )
----
-16

query I rowsort
SELECT - - 14 col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9761
SELECT ALL 61 - 37 + NULLIF ( CAST( - ( + - 55 ) AS SIGNED ), - 94 ) AS col2, 49 AS col2
----
79
49

skipif mysql # not compatible
query II rowsort label-9761
SELECT ALL 61 - 37 + NULLIF ( CAST ( - ( + - 55 ) AS INTEGER ), - 94 ) AS col2, 49 AS col2
----
79
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT + - 1 * + + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9762
SELECT + - 1 * + + COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9763
SELECT + + MIN( ALL 18 ) + ( - CAST( - 27 AS SIGNED ) ) + + 10
----
55

skipif mysql # not compatible
query I rowsort label-9763
SELECT + + MIN ( ALL 18 ) + ( - CAST ( - 27 AS INTEGER ) ) + + 10
----
55

query I rowsort
SELECT ALL COALESCE ( + 56, 74 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9765
SELECT + - 9 + CASE + CAST( NULL AS DECIMAL ) WHEN - 52 DIV - 19 + 29 + - 51 + + CAST( NULL AS SIGNED ) + - COALESCE ( 69, CAST( - + 11 AS SIGNED ) DIV + 89 ) DIV - + 62 DIV - MIN( - + 66 ) THEN 7 DIV 70 WHEN - 28 THEN NULL ELSE - ( + ( 2 ) ) END * - 73 AS col2
----
137

skipif mysql # not compatible
query I rowsort label-9765
SELECT + - 9 + CASE + CAST ( NULL AS REAL ) WHEN - 52 / - 19 + 29 + - 51 + + CAST ( NULL AS INTEGER ) + - COALESCE ( 69, CAST ( - + 11 AS INTEGER ) / + 89 ) / - + 62 / - MIN ( - + 66 ) THEN 7 / 70 WHEN - 28 THEN NULL ELSE - ( + ( 2 ) ) END * - 73 AS col2
----
137

query I rowsort
SELECT - 23 - 60
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-9767
SELECT - 72 * - SUM( ALL - 62 ) * - 76 * + + 4 + 97 + - + 90 * + 20, + MAX( ALL - 18 ) * - - 0 * - 31 AS col0
----
1355353
0

skipif mysql # not compatible
query II rowsort label-9767
SELECT - 72 * - SUM ( ALL - 62 ) * - 76 * + + 4 + 97 + - + 90 * + 20, + MAX ( ALL - 18 ) * - - 0 * - 31 AS col0
----
1355353
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT - 89 + + MIN( DISTINCT + 71 )
----
-18

skipif mysql # not compatible
query I rowsort label-9768
SELECT - 89 + + MIN ( DISTINCT + 71 )
----
-18

query I rowsort
SELECT DISTINCT - 55 * - 78 * - 60 AS col2
----
-257400

query I rowsort
SELECT ALL + ( - 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT ALL + SUM( - + ( + 41 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL + SUM ( - + ( + 41 ) )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9772
SELECT + CASE + COUNT( * ) WHEN - + CAST( NULL AS SIGNED ) / 17 + + 63 * + 17 THEN NULL ELSE NULLIF ( - COUNT( * ), + - ( - 19 ) ) END
----
-1

skipif mysql # not compatible
query I rowsort label-9772
SELECT + CASE + COUNT ( * ) WHEN - + CAST ( NULL AS INTEGER ) / 17 + + 63 * + 17 THEN NULL ELSE NULLIF ( - COUNT ( * ), + - ( - 19 ) ) END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT COALESCE ( - - 99, - MIN( + 22 ), 17 + 53 + COUNT( * ) * - + 9 )
----
99

skipif mysql # not compatible
query I rowsort label-9773
SELECT COALESCE ( - - 99, - MIN ( + 22 ), 17 + 53 + COUNT ( * ) * - + 9 )
----
99

query I rowsort
SELECT ALL - 56 * + 45 AS col0
----
-2520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9775
SELECT - 6 / + 1 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9775
SELECT - 6 / + 1 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 42 AS col1, - 18 - - + 35 + + 42
----
42
59

query I rowsort
SELECT - ( 50 ) * 5 AS col0
----
-250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9778
SELECT DISTINCT 92 * 51 + CAST( 5 AS SIGNED ) * + 0 - CAST( - - SUM( + + 80 ) AS SIGNED ) / CAST( NULL AS SIGNED ) + - + NULLIF ( - 42, NULLIF ( + CAST( - 84 AS DECIMAL ), - 32 + 96 ) ) * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9778
SELECT DISTINCT 92 * 51 + CAST ( 5 AS INTEGER ) * + 0 - CAST ( - - SUM ( + + 80 ) AS INTEGER ) / CAST ( NULL AS INTEGER ) + - + NULLIF ( - 42, NULLIF ( + CAST ( - 84 AS REAL ), - 32 + 96 ) ) * - 2
----
NULL

query I rowsort
SELECT - 52 * 57
----
-2964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9780
SELECT DISTINCT + NULLIF ( + 4, + SUM( - 59 ) + CAST( - ( - 83 ) AS SIGNED ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT + NULLIF ( + 4, + SUM ( - 59 ) + CAST ( - ( - 83 ) AS INTEGER ) ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT - COUNT( * ) - - 16 * - - 10
----
159

skipif mysql # not compatible
query I rowsort label-9781
SELECT - COUNT ( * ) - - 16 * - - 10
----
159

query I rowsort
SELECT + 82 * - - 16 col1
----
1312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9783
SELECT + - CAST( - + 31 AS SIGNED ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9783
SELECT + - CAST ( - + 31 AS INTEGER ) AS col1
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9784
SELECT ALL - + 17 * - 6 * - 70 * + 42 - - 74 * - 79, + CAST( NULL AS DECIMAL ) * 85 + 11 AS col2
----
-305726
NULL

skipif mysql # not compatible
query II rowsort label-9784
SELECT ALL - + 17 * - 6 * - 70 * + 42 - - 74 * - 79, + CAST ( NULL AS REAL ) * 85 + 11 AS col2
----
-305726
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9785
SELECT ALL + COALESCE ( + - 1, + CAST( NULL AS SIGNED ) ) AS col2, - 37 AS col2
----
-1
-37

skipif mysql # not compatible
query II rowsort label-9785
SELECT ALL + COALESCE ( + - 1, + CAST ( NULL AS INTEGER ) ) AS col2, - 37 AS col2
----
-1
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9786
SELECT ALL - + 51 - + + 62 / CAST( NULL AS SIGNED ) + - 82 / + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL - + 51 - + + 62 / CAST ( NULL AS INTEGER ) + - 82 / + 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT - + 30 * + MIN( 51 ) col2
----
-1530

skipif mysql # not compatible
query I rowsort label-9787
SELECT - + 30 * + MIN ( 51 ) col2
----
-1530

query I rowsort
SELECT - - 55 + - - 66
----
121

query I rowsort
SELECT - ( - COALESCE ( + 46, 76 * + 74 * + + 1 ) )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9790
SELECT DISTINCT + CASE 14 WHEN + 17 THEN 83 ELSE - MIN( - - 0 ) END DIV + - 83 + - MIN( - - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT + CASE 14 WHEN + 17 THEN 83 ELSE - MIN ( - - 0 ) END / + - 83 + - MIN ( - - 89 )
----
-89

query I rowsort
SELECT - + 80 + + 9 * ( + 64 ) AS col0
----
496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9792
SELECT + COALESCE ( + + 81, + ( - COUNT( * ) ) * + 63 + - - 36, 28 - COUNT( * ) ) DIV + - 76 col1
----
-1

skipif mysql # not compatible
query I rowsort label-9792
SELECT + COALESCE ( + + 81, + ( - COUNT ( * ) ) * + 63 + - - 36, 28 - COUNT ( * ) ) / + - 76 col1
----
-1

query I rowsort
SELECT + 51 * - + 3 AS col2
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT ALL - 53 * - MIN( - + 4 )
----
-212

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL - 53 * - MIN ( - + 4 )
----
-212

onlyif mysql # aggregate syntax: 
query II rowsort label-9795
SELECT ALL - 42 col2, + 8 * + COUNT( * )
----
-42
8

skipif mysql # not compatible
query II rowsort label-9795
SELECT ALL - 42 col2, + 8 * + COUNT ( * )
----
-42
8

query I rowsort
SELECT DISTINCT CASE + 8 WHEN - 6 THEN + 10 + + 88 + - + AVG ( DISTINCT 84 ) WHEN - 7 * - 70 THEN NULL END + 29 / + 45 + - - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT ALL + ( MIN( DISTINCT + - 16 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL + ( MIN ( DISTINCT + - 16 ) )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT - 60 * + + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-9798
SELECT - 60 * + + COUNT ( * )
----
-60

query I rowsort
SELECT + 66 * 27
----
1782

query I rowsort
SELECT - CASE + - 83 WHEN - ( ( + 41 ) ) THEN + 38 ELSE + 5 END
----
-5

query I rowsort
SELECT ALL 24 + 4 + + 76 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT + 30 * 61 * + COUNT( * )
----
1830

skipif mysql # not compatible
query I rowsort label-9802
SELECT + 30 * 61 * + COUNT ( * )
----
1830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9803
SELECT ALL 51 / - 61 * CAST( 32 AS SIGNED ) + + CAST( + 59 AS SIGNED ) + CAST( NULL AS SIGNED ) * - + 83 * + + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL 51 / - 61 * CAST ( 32 AS INTEGER ) + + CAST ( + 59 AS INTEGER ) + CAST ( NULL AS INTEGER ) * - + 83 * + + 40 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9804
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9805
SELECT ALL + COUNT( * ) DIV + COUNT( ALL + - 81 ) + - + 59 DIV 58 - + 81 DIV + 78
----
-1

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL + COUNT ( * ) / + COUNT ( ALL + - 81 ) + - + 59 / 58 - + 81 / + 78
----
-1

query I rowsort
SELECT 97 * + 97 * + 14 - + + 31
----
131695

onlyif mysql # DIV for integer division: 
query I rowsort label-9807
SELECT + 75 DIV 7 - 22
----
-12

skipif mysql # not compatible
query I rowsort label-9807
SELECT + 75 / 7 - 22
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT 7 * + MIN( ALL 39 ) * + + 31 + 46 + + 65 - - 33 + 81 * + - ( 54 ) + + 73 AS col0
----
4306

skipif mysql # not compatible
query I rowsort label-9808
SELECT 7 * + MIN ( ALL 39 ) * + + 31 + 46 + + 65 - - 33 + 81 * + - ( 54 ) + + 73 AS col0
----
4306

query II rowsort
SELECT - CASE 47 WHEN 82 THEN ( - 45 ) WHEN - NULLIF ( + 31, - ( - COALESCE ( - 65, 65, + 76 / + 50 + 55 + - 95 ) ) ) * - - 90 THEN - - 79 END * + 46 / 65 * + 61 AS col0, 49 AS col0
----
NULL
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9810
SELECT DISTINCT 75 * COUNT( * ) AS col2, ( + - 94 ) AS col0
----
75
-94

skipif mysql # not compatible
query II rowsort label-9810
SELECT DISTINCT 75 * COUNT ( * ) AS col2, ( + - 94 ) AS col0
----
75
-94

query I rowsort
SELECT 34 * - 42 * - 47 + 65 + - - 15 AS col0
----
67196

query II rowsort
SELECT ALL + 7 * 83 AS col0, 61
----
581
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9813
SELECT + COALESCE ( - - MAX( + 38 ), - - COALESCE ( - - 61, - + CAST( - 62 AS SIGNED ) ) * - COUNT( * ), + 47 ) * - 60 + + + 57 AS col2
----
-2223

skipif mysql # not compatible
query I rowsort label-9813
SELECT + COALESCE ( - - MAX ( + 38 ), - - COALESCE ( - - 61, - + CAST ( - 62 AS INTEGER ) ) * - COUNT ( * ), + 47 ) * - 60 + + + 57 AS col2
----
-2223

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT ALL + 89 * - MIN( ALL - 96 )
----
8544

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL + 89 * - MIN ( ALL - 96 )
----
8544

onlyif mysql # DIV for integer division: 
query I rowsort label-9815
SELECT - - 20 + + - 61 DIV - 96
----
20

skipif mysql # not compatible
query I rowsort label-9815
SELECT - - 20 + + - 61 / - 96
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-9816
SELECT ALL + ( - 90 ) DIV + ( 29 ), + 51 AS col2
----
-3
51

skipif mysql # not compatible
query II rowsort label-9816
SELECT ALL + ( - 90 ) / + ( 29 ), + 51 AS col2
----
-3
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9817
SELECT DISTINCT + - COALESCE ( + - 52, + - ( - 56 ) * - 17, - 51 DIV + + ( - + 74 ) )
----
52

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT + - COALESCE ( + - 52, + - ( - 56 ) * - 17, - 51 / + + ( - + 74 ) )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT 98 + - COALESCE ( 14, ( - CAST( NULL AS SIGNED ) ) ) + + + ( - CAST( NULL AS SIGNED ) ) * + + ( 49 ) * + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT 98 + - COALESCE ( 14, ( - CAST ( NULL AS INTEGER ) ) ) + + + ( - CAST ( NULL AS INTEGER ) ) * + + ( 49 ) * + 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT - MAX( 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT - MAX ( 13 )
----
-13

query I rowsort
SELECT ALL - - NULLIF ( - - 4, - 67 + - ( 33 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT COUNT( * ) + + NULLIF ( 46, + CASE - MIN( + 82 ) WHEN + + 39 + - COUNT( * ) THEN NULL ELSE - NULLIF ( SUM( ALL + 13 ), 36 ) + AVG ( - 62 ) + + 27 - + - COUNT( * ) + - ( + 51 ) + + 42 END )
----
47

skipif mysql # not compatible
query I rowsort label-9821
SELECT COUNT ( * ) + + NULLIF ( 46, + CASE - MIN ( + 82 ) WHEN + + 39 + - COUNT ( * ) THEN NULL ELSE - NULLIF ( SUM ( ALL + 13 ), 36 ) + AVG ( - 62 ) + + 27 - + - COUNT ( * ) + - ( + 51 ) + + 42 END )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT DISTINCT - SUM( DISTINCT + 55 ) * ( - 83 ) col2
----
4565

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT - SUM ( DISTINCT + 55 ) * ( - 83 ) col2
----
4565

query II rowsort
SELECT DISTINCT - ( 70 ) AS col1, 28 AS col2
----
-70
28

query I rowsort
SELECT ALL - 24 * 96
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT 54 * 14 * + COUNT( * )
----
756

skipif mysql # not compatible
query I rowsort label-9825
SELECT 54 * 14 * + COUNT ( * )
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT DISTINCT - - 44 + + COUNT( * ) - + - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT - - 44 + + COUNT ( * ) - + - COUNT ( * )
----
46

query I rowsort
SELECT - + COALESCE ( + COALESCE ( + 44, + 3 * + 61 + + ( - - 0 ) ), - 90, 42 + + 77 + - - 88 * - + 63 )
----
-44

query II rowsort
SELECT ALL + 32 + + 73 AS col1, CASE - 19 WHEN + 20 + - 10 THEN + 12 WHEN 29 THEN NULL ELSE - 34 END
----
105
-34

query I rowsort
SELECT - 71 + - + 30
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT ALL - COUNT( * ) + - 15 + + 84
----
68

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL - COUNT ( * ) + - 15 + + 84
----
68

query I rowsort
SELECT 77 * + 41
----
3157

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9832
SELECT MAX( + 82 ) + + - ( - + COUNT( * ) ) * + - 85 * - + 78 + + 12 * 79 DIV COUNT( * ) AS col1, 52 + - 21 + - 10 + + COUNT( * ) AS col0
----
7660
22

skipif mysql # not compatible
query II rowsort label-9832
SELECT MAX ( + 82 ) + + - ( - + COUNT ( * ) ) * + - 85 * - + 78 + + 12 * 79 / COUNT ( * ) AS col1, 52 + - 21 + - 10 + + COUNT ( * ) AS col0
----
7660
22

query I rowsort
SELECT 68 - - 96
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-9834
SELECT ALL 24 DIV - 1
----
-24

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL 24 / - 1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT 42 + MAX( + 37 ) + - 68 col2
----
11

skipif mysql # not compatible
query I rowsort label-9835
SELECT 42 + MAX ( + 37 ) + - 68 col2
----
11

query I rowsort
SELECT ALL 42 + 50 + + 68 * 24
----
1724

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT ALL 18 + 25 * MIN( DISTINCT + ( - 18 ) ) * - 94 * + 71 + 0 + - + 82 col1
----
3003236

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL 18 + 25 * MIN ( DISTINCT + ( - 18 ) ) * - 94 * + 71 + 0 + - + 82 col1
----
3003236

query II rowsort
SELECT DISTINCT - 84 + 41 + - 12, 66 AS col1
----
-55
66

query I rowsort
SELECT ALL 70 * - 15 AS col1
----
-1050

query I rowsort
SELECT 77 + 82 AS col1
----
159

query I rowsort
SELECT ALL 82 + + + 96 col1
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-9842
SELECT + 8 DIV + 23 * COALESCE ( + 14, NULLIF ( ( 18 ), AVG ( ALL - 34 ) ), + 7 ) + + 87
----
87

skipif mysql # not compatible
query I rowsort label-9842
SELECT + 8 / + 23 * COALESCE ( + 14, NULLIF ( ( 18 ), AVG ( ALL - 34 ) ), + 7 ) + + 87
----
87

query I rowsort
SELECT 67 * + 82
----
5494

query I rowsort
SELECT DISTINCT 81 * + 97
----
7857

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT ALL COUNT( * ) - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL COUNT ( * ) - + COUNT ( * ) AS col0
----
0

query II rowsort
SELECT DISTINCT - 92 AS col1, NULLIF ( - 19, + 2 + + 80 )
----
-92
-19

query I rowsort
SELECT - 70 * + 60 AS col1
----
-4200

query I rowsort
SELECT 51 * 70
----
3570

query I rowsort
SELECT ALL 27 * + 25 + + 65
----
740

query I rowsort
SELECT 0 - + - 10
----
10

query I rowsort
SELECT ( + 74 ) * 17 * - + 12 * 28 - + 23
----
-422711

query II rowsort
SELECT 57, + 27 AS col2
----
57
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9853
SELECT DISTINCT 85 * - 76 * - AVG ( DISTINCT - + 69 ) * + - CAST( NULL AS DECIMAL ) + 98 + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT 85 * - 76 * - AVG ( DISTINCT - + 69 ) * + - CAST ( NULL AS REAL ) + 98 + - 24
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9854
SELECT DISTINCT - - CAST( CASE + 72 WHEN - 77 * 72 THEN 74 / - 96 + + 7 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT - - CAST ( CASE + 72 WHEN - 77 * 72 THEN 74 / - 96 + + 7 END AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 26 AS col1, + 88
----
26
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9856
SELECT - + COUNT( * ) * - - COALESCE ( - 93, - 25 - - NULLIF ( - - ( + + 32 ), 14 * - + CAST( + - COALESCE ( - 17, COALESCE ( 60, + - 77, - 47, - - 67 ) ) AS DECIMAL ) ) - + COALESCE ( 23, CAST( NULL AS SIGNED ) + + - 96, + + CAST( - 26 AS SIGNED ), 47 ) * ( + 18 ) ) + 57 AS col2
----
150

skipif mysql # not compatible
query I rowsort label-9856
SELECT - + COUNT ( * ) * - - COALESCE ( - 93, - 25 - - NULLIF ( - - ( + + 32 ), 14 * - + CAST ( + - COALESCE ( - 17, COALESCE ( 60, + - 77, - 47, - - 67 ) ) AS REAL ) ) - + COALESCE ( 23, CAST ( NULL AS INTEGER ) + + - 96, + + CAST ( - 26 AS INTEGER ), 47 ) * ( + 18 ) ) + 57 AS col2
----
150

query I rowsort
SELECT - 60 - - 95
----
35

query I rowsort
SELECT - - 2 col2
----
2

query II rowsort
SELECT + 15, ( - 86 ) col1
----
15
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL + - 79 + 67 + + 95 * + - COUNT( * ) + + COALESCE ( - - 15, + ( - COALESCE ( ( - 89 ), + - 62 ) ) )
----
-92

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL + - 79 + 67 + + 95 * + - COUNT ( * ) + + COALESCE ( - - 15, + ( - COALESCE ( ( - 89 ), + - 62 ) ) )
----
-92

query I rowsort
SELECT ( - + 19 ) * - 88 AS col0
----
1672

query I rowsort
SELECT - 26 + + - 27 AS col2
----
-53

query I rowsort
SELECT DISTINCT + 51 + + - 30 AS col2
----
21

query II rowsort
SELECT DISTINCT - 97 + 91 + 56 * 9 AS col0, - ( 84 ) AS col2
----
498
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9865
SELECT 16 AS col0, 48 + + 24 - + 57 - - - CAST( NULL AS SIGNED ) * + - 74 * - 48 * - 17 + COUNT( * ) / + 1
----
16
NULL

skipif mysql # not compatible
query II rowsort label-9865
SELECT 16 AS col0, 48 + + 24 - + 57 - - - CAST ( NULL AS INTEGER ) * + - 74 * - 48 * - 17 + COUNT ( * ) / + 1
----
16
NULL

query I rowsort
SELECT ALL + 70 + 10
----
80

query I rowsort
SELECT DISTINCT + 24 * - 77
----
-1848

query II rowsort
SELECT - 28 AS col0, 61 AS col2
----
-28
61

query I rowsort
SELECT 70 * + + ( - 86 ) * + - NULLIF ( - + 49, 36 * - + 54 + + 10 )
----
-294980

onlyif mysql # aggregate syntax: 
query II rowsort label-9870
SELECT ALL COUNT( * ), 13 AS col0
----
1
13

skipif mysql # not compatible
query II rowsort label-9870
SELECT ALL COUNT ( * ), 13 AS col0
----
1
13

query II rowsort
SELECT - 36 AS col0, 13 * - 57 AS col2
----
-36
-741

query II rowsort
SELECT 46, 65 col2
----
46
65

query I rowsort
SELECT 57 - + - 70 AS col0
----
127

query I rowsort
SELECT 60 * 45
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL MAX( - 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL MAX ( - 51 ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT 67 - - 70 + 33 * COUNT( * ) * + 88 * ( + - 12 ) + - + 64
----
-34775

skipif mysql # not compatible
query I rowsort label-9876
SELECT 67 - - 70 + 33 * COUNT ( * ) * + 88 * ( + - 12 ) + - + 64
----
-34775

query I rowsort
SELECT 76 + + - 75
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9878
SELECT ALL 28 - CASE WHEN COALESCE ( + + 80, + MAX( DISTINCT - - CAST( + 14 AS SIGNED ) ), + ( - CAST( NULL AS SIGNED ) ) + - COUNT( * ) ) NOT IN ( 13 * 83 - + - MAX( ALL + 43 ) + + + 86 ) THEN COUNT( * ) DIV - 57 * 58 ELSE NULL END * + COALESCE ( + 87, 17 ) * + 14 * + ( - - 63 ) + + 65 + 77
----
170

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL 28 - CASE WHEN COALESCE ( + + 80, + MAX ( DISTINCT - - CAST ( + 14 AS INTEGER ) ), + ( - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) ) NOT IN ( 13 * 83 - + - MAX ( ALL + 43 ) + + + 86 ) THEN COUNT ( * ) / - 57 * 58 ELSE NULL END * + COALESCE ( + 87, 17 ) * + 14 * + ( - - 63 ) + + 65 + 77
----
170

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT ALL 87 DIV + 43 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL 87 / + 43 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT 86 * - - 27 * MAX( 92 ) * + 48 * MAX( 46 )
----
471681792

skipif mysql # not compatible
query I rowsort label-9880
SELECT 86 * - - 27 * MAX ( 92 ) * + 48 * MAX ( 46 )
----
471681792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9881
SELECT 92 DIV ( - - ( + COUNT( * ) ) ) DIV - 68 - 2 * 49 + + + 52 * - 95 AS col0
----
-5039

skipif mysql # not compatible
query I rowsort label-9881
SELECT 92 / ( - - ( + COUNT ( * ) ) ) / - 68 - 2 * 49 + + + 52 * - 95 AS col0
----
-5039

query I rowsort
SELECT DISTINCT 22 * - + 39
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT - ( + COUNT( * ) ) * MAX( ALL - 89 ) - + 42 * + 48 + + 90 * 25 AS col0
----
323

skipif mysql # not compatible
query I rowsort label-9883
SELECT - ( + COUNT ( * ) ) * MAX ( ALL - 89 ) - + 42 * + 48 + + 90 * 25 AS col0
----
323

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9884
SELECT + 27 DIV + NULLIF ( + NULLIF ( - NULLIF ( 7, - 37 + - 28 * + CAST( NULL AS DECIMAL ) ), + 6 - + 59 ), - 89 + - 6 + - + COALESCE ( COUNT( * ), - + ( 60 ), - 62 ) ) - + 59 + 57 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9884
SELECT + 27 / + NULLIF ( + NULLIF ( - NULLIF ( 7, - 37 + - 28 * + CAST ( NULL AS REAL ) ), + 6 - + 59 ), - 89 + - 6 + - + COALESCE ( COUNT ( * ), - + ( 60 ), - 62 ) ) - + 59 + 57 AS col1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9885
SELECT + - 87 DIV 9 col2
----
-9

skipif mysql # not compatible
query I rowsort label-9885
SELECT + - 87 / 9 col2
----
-9

query I rowsort
SELECT DISTINCT - ( - - 39 ) * 16
----
-624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9887
SELECT + + 12 * COALESCE ( ( COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) ), 46 ) + + 46
----
46

skipif mysql # not compatible
query I rowsort label-9887
SELECT + + 12 * COALESCE ( ( COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) ), 46 ) + + 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT + COUNT( + 69 )
----
1

skipif mysql # not compatible
query I rowsort label-9888
SELECT + COUNT ( + 69 )
----
1

query I rowsort
SELECT ALL + NULLIF ( - + 15, 15 + 2 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT NULLIF ( 27, CASE + + 60 WHEN 99 THEN + - COUNT( * ) * - - COUNT( * ) - 92 + + 27 * + + 53 + + 3 WHEN + COUNT( * ) THEN NULL ELSE NULL END ) * - 52 + + COUNT( * ) + - 82 * - - 15 * + + COUNT( * ) - - 50 + - COUNT( * ) * - + 93 - - 47 * COUNT( * ) + - - 23 - + - CASE + COUNT( * ) WHEN - 40 THEN 3 + - 41 WHEN COUNT( * ) THEN NULL ELSE 82 / + 54 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT NULLIF ( 27, CASE + + 60 WHEN 99 THEN + - COUNT ( * ) * - - COUNT ( * ) - 92 + + 27 * + + 53 + + 3 WHEN + COUNT ( * ) THEN NULL ELSE NULL END ) * - 52 + + COUNT ( * ) + - 82 * - - 15 * + + COUNT ( * ) - - 50 + - COUNT ( * ) * - + 93 - - 47 * COUNT ( * ) + - - 23 - + - CASE + COUNT ( * ) WHEN - 40 THEN 3 + - 41 WHEN COUNT ( * ) THEN NULL ELSE 82 / + 54 END col0
----
NULL

query I rowsort
SELECT - + 79 * 40 + + 88 - + 39 - ( - 72 ) - + + 41 AS col1
----
-3080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9892
SELECT + COUNT( * ) * - CAST( - 47 AS SIGNED ) * 27
----
1269

skipif mysql # not compatible
query I rowsort label-9892
SELECT + COUNT ( * ) * - CAST ( - 47 AS INTEGER ) * 27
----
1269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9893
SELECT ALL - - 14 * + NULLIF ( - 97, - + 69 ) - + - 99 + + - CAST( COUNT( * ) AS SIGNED ) - + 7 + - 58 AS col0
----
-1325

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL - - 14 * + NULLIF ( - 97, - + 69 ) - + - 99 + + - CAST ( COUNT ( * ) AS INTEGER ) - + 7 + - 58 AS col0
----
-1325

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT ( MIN( ALL + + 2 ) )
----
2

skipif mysql # not compatible
query I rowsort label-9894
SELECT ( MIN ( ALL + + 2 ) )
----
2

query I rowsort
SELECT ALL - + 4 * 35 + - 76
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT ALL + 7 * NULLIF ( 84, ( - 69 ) * - + MIN( DISTINCT - 65 ) ) * - + NULLIF ( 86, - - 33 ) + - + 85 + + MAX( + + 4 ) + - 36 - + 99 * ( - - 79 ) AS col0
----
-58506

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL + 7 * NULLIF ( 84, ( - 69 ) * - + MIN ( DISTINCT - 65 ) ) * - + NULLIF ( 86, - - 33 ) + - + 85 + + MAX ( + + 4 ) + - 36 - + 99 * ( - - 79 ) AS col0
----
-58506

query I rowsort
SELECT - 48 * - 48 + 36
----
2340

query I rowsort
SELECT + - 85 * - 99 - + - 54 * + CASE - 45 WHEN - 65 THEN 22 WHEN - + 59 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT COUNT( * ) * - COUNT( * ) + COUNT( + 33 ) - - + 20
----
20

skipif mysql # not compatible
query I rowsort label-9899
SELECT COUNT ( * ) * - COUNT ( * ) + COUNT ( + 33 ) - - + 20
----
20

query I rowsort
SELECT + - COALESCE ( 42, - 33 )
----
-42

query I rowsort
SELECT - COALESCE ( + + 23, + + 55 + + - 38, - 17 )
----
-23

query I rowsort
SELECT + - 24 + - 26
----
-50

query II rowsort
SELECT - 5, 89 + - 38 AS col0
----
-5
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9904
SELECT ALL 33 col1, - 10 * CAST( NULL AS SIGNED ) AS col0
----
33
NULL

skipif mysql # not compatible
query II rowsort label-9904
SELECT ALL 33 col1, - 10 * CAST ( NULL AS INTEGER ) AS col0
----
33
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9905
SELECT - COALESCE ( 30, CAST( 48 AS SIGNED ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9905
SELECT - COALESCE ( 30, CAST ( 48 AS INTEGER ) ) AS col0
----
-30

query I rowsort
SELECT DISTINCT 6 - 49 * 3 AS col0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT - 77 + + COUNT( * ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-9907
SELECT - 77 + + COUNT ( * ) col1
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9908
SELECT DISTINCT 0 DIV - 21 * 75 * - COUNT( DISTINCT - + 44 ) AS col0, - 72 AS col0
----
0
-72

skipif mysql # not compatible
query II rowsort label-9908
SELECT DISTINCT 0 / - 21 * 75 * - COUNT ( DISTINCT - + 44 ) AS col0, - 72 AS col0
----
0
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT ALL MAX( ALL + + 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL MAX ( ALL + + 92 ) AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9910
SELECT + CASE + 77 WHEN 38 * + + COALESCE ( - - CAST( + 31 AS SIGNED ), + 35 * ( 63 ) ) THEN 55 - 1 / CASE 35 WHEN + 73 + + 9 * CASE - ( - 90 ) WHEN - - CASE - 28 WHEN + 0 * - - ( - ( + COUNT( * ) ) ) + - COUNT( * ) * + + 56 + 84 THEN NULL WHEN 20 THEN 2 * CASE - ( + 92 ) WHEN + COUNT( * ) + 4 THEN CASE 88 WHEN CAST( NULLIF ( + 65, 39 + 7 ) AS SIGNED ) * 92 - 83 THEN ( - 8 ) * - 22 ELSE SUM( DISTINCT + 36 ) + + 60 * 41 END WHEN SUM( - CAST( NULL AS SIGNED ) ) THEN NULL WHEN + 78 / + 59 + - 81 THEN - 42 + 41 ELSE NULL END END THEN 4 WHEN 16 THEN NULL ELSE NULL END THEN NULL WHEN CAST( NULL AS SIGNED ) THEN - 24 END WHEN + 27 THEN NULL WHEN COUNT( * ) * 26 THEN NULL ELSE NULL END + - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT + CASE + 77 WHEN 38 * + + COALESCE ( - - CAST ( + 31 AS INTEGER ), + 35 * ( 63 ) ) THEN 55 - 1 / CASE 35 WHEN + 73 + + 9 * CASE - ( - 90 ) WHEN - - CASE - 28 WHEN + 0 * - - ( - ( + COUNT ( * ) ) ) + - COUNT ( * ) * + + 56 + 84 THEN NULL WHEN 20 THEN 2 * CASE - ( + 92 ) WHEN + COUNT ( * ) + 4 THEN CASE 88 WHEN CAST ( NULLIF ( + 65, 39 + 7 ) AS INTEGER ) * 92 - 83 THEN ( - 8 ) * - 22 ELSE SUM ( DISTINCT + 36 ) + + 60 * 41 END WHEN SUM ( - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + 78 / + 59 + - 81 THEN - 42 + 41 ELSE NULL END END THEN 4 WHEN 16 THEN NULL ELSE NULL END THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - 24 END WHEN + 27 THEN NULL WHEN COUNT ( * ) * 26 THEN NULL ELSE NULL END + - 23 AS col0
----
NULL

query I rowsort
SELECT + 41 + - 47 * 97 + + 15 AS col0
----
-4503

query I rowsort
SELECT - 47 - - 26 AS col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9913
SELECT DISTINCT NULLIF ( - - NULLIF ( - + 6, CAST( ( 98 ) AS SIGNED ) * + 88 * COUNT( * ) ), + 91 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT NULLIF ( - - NULLIF ( - + 6, CAST ( ( 98 ) AS INTEGER ) * + 88 * COUNT ( * ) ), + 91 ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT - ( + 7 ) + - COUNT( * ) + 5 * 34
----
162

skipif mysql # not compatible
query I rowsort label-9914
SELECT - ( + 7 ) + - COUNT ( * ) + 5 * 34
----
162

query I rowsort
SELECT - 23 + - 78 AS col2
----
-101

query I rowsort
SELECT ALL COALESCE ( - 42, + NULLIF ( 79, AVG ( ALL + + 54 ) ) ) AS col2
----
-42

query II rowsort
SELECT DISTINCT + 94 * - 44 AS col2, - 53
----
-4136
-53

onlyif mysql # aggregate syntax: 
query III rowsort label-9918
SELECT DISTINCT MAX( ALL - 56 ), COUNT( * ) * COALESCE ( + 34, - + CASE + + COALESCE ( - MIN( ( 84 ) ), 20 ) WHEN - 10 THEN NULL WHEN - - CASE 10 WHEN - + AVG ( 53 ) THEN + 56 ELSE NULL END THEN 67 END ) - MAX( DISTINCT + 11 ) AS col1, + 29 AS col2
----
-56
23
29

skipif mysql # not compatible
query III rowsort label-9918
SELECT DISTINCT MAX ( ALL - 56 ), COUNT ( * ) * COALESCE ( + 34, - + CASE + + COALESCE ( - MIN ( ( 84 ) ), 20 ) WHEN - 10 THEN NULL WHEN - - CASE 10 WHEN - + AVG ( 53 ) THEN + 56 ELSE NULL END THEN 67 END ) - MAX ( DISTINCT + 11 ) AS col1, + 29 AS col2
----
-56
23
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT - 69 * - ( COUNT( * ) ) * + + COUNT( * ) * MAX( + 1 ) + + - 99 + - 78 * + 38
----
-2994

skipif mysql # not compatible
query I rowsort label-9919
SELECT - 69 * - ( COUNT ( * ) ) * + + COUNT ( * ) * MAX ( + 1 ) + + - 99 + - 78 * + 38
----
-2994

query I rowsort
SELECT - 87 + - + NULLIF ( 84, 74 + + - 6 )
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9921
SELECT ALL CASE - 49 WHEN 78 + + 93 THEN NULL ELSE + 75 DIV 95 * + + COUNT( * ) END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL CASE - 49 WHEN 78 + + 93 THEN NULL ELSE + 75 / 95 * + + COUNT ( * ) END AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9922
SELECT - 63 + - 60 * + + ( - COUNT( * ) ) * - 25 + + + 6 * - COUNT( ALL + 34 ) DIV + 99 - - COALESCE ( 64, + 37 + + - COUNT( * ) + - - 81 * - 81 ) * - 3
----
-1755

skipif mysql # not compatible
query I rowsort label-9922
SELECT - 63 + - 60 * + + ( - COUNT ( * ) ) * - 25 + + + 6 * - COUNT ( ALL + 34 ) / + 99 - - COALESCE ( 64, + 37 + + - COUNT ( * ) + - - 81 * - 81 ) * - 3
----
-1755

query I rowsort
SELECT - 33 * - 36 AS col2
----
1188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9924
SELECT DISTINCT - + COUNT( * ) / COALESCE ( + 84, + 94, - - ( - + COUNT( * ) ) * + MAX( - 88 ), - 44 / - 37 + CAST( NULL AS SIGNED ) + COUNT( * ) ) / COUNT( * ) - - 15 * 11 + + - 46 - + NULLIF ( COUNT( * ), - - COUNT( * ) ) + - 76 * - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT - + COUNT ( * ) / COALESCE ( + 84, + 94, - - ( - + COUNT ( * ) ) * + MAX ( - 88 ), - 44 / - 37 + CAST ( NULL AS INTEGER ) + COUNT ( * ) ) / COUNT ( * ) - - 15 * 11 + + - 46 - + NULLIF ( COUNT ( * ), - - COUNT ( * ) ) + - 76 * - 53 AS col2
----
NULL

query I rowsort
SELECT ALL - 53 * + - 49 + + 20
----
2617

query II rowsort
SELECT - 15 * 81 AS col1, 50
----
-1215
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT + - COUNT( * ) + - 95 + + 94
----
-2

skipif mysql # not compatible
query I rowsort label-9927
SELECT + - COUNT ( * ) + - 95 + + 94
----
-2

query I rowsort
SELECT ALL - 24 * 33 + - 66 AS col1
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT SUM( DISTINCT 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9929
SELECT SUM ( DISTINCT 48 ) AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9930
SELECT + MAX( DISTINCT 59 ) AS col2, AVG ( DISTINCT - CASE + 24 WHEN 17 THEN 17 ELSE + 64 * + - 26 END ) - - 9 * - - CASE - 90 WHEN + + COUNT( * ) THEN + 67 + CAST( - ( + - 86 ) AS SIGNED ) * - 99 * 87 * - COALESCE ( - - COUNT( * ), COUNT( * ) * - COALESCE ( - 87, + 40 ), 21 * 53, - 23 ) WHEN + 97 / COUNT( * ) THEN NULL END + 73
----
59
NULL

skipif mysql # not compatible
query II rowsort label-9930
SELECT + MAX ( DISTINCT 59 ) AS col2, AVG ( DISTINCT - CASE + 24 WHEN 17 THEN 17 ELSE + 64 * + - 26 END ) - - 9 * - - CASE - 90 WHEN + + COUNT ( * ) THEN + 67 + CAST ( - ( + - 86 ) AS INTEGER ) * - 99 * 87 * - COALESCE ( - - COUNT ( * ), COUNT ( * ) * - COALESCE ( - 87, + 40 ), 21 * 53, - 23 ) WHEN + 97 / COUNT ( * ) THEN NULL END + 73
----
59
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9931
SELECT ALL + - COUNT( * ) * - COUNT( * ) - - - ( ( - 43 ) ), - 20 + + CAST( NULL AS SIGNED ) AS col1
----
44
NULL

skipif mysql # not compatible
query II rowsort label-9931
SELECT ALL + - COUNT ( * ) * - COUNT ( * ) - - - ( ( - 43 ) ), - 20 + + CAST ( NULL AS INTEGER ) AS col1
----
44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT DISTINCT + + COUNT( DISTINCT - 81 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT + + COUNT ( DISTINCT - 81 ) AS col1
----
1

query I rowsort
SELECT 70 * + 83 + + ( + - 90 ) * + - 90
----
13910

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9934
SELECT ALL 67, CAST( NULL AS SIGNED ) col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-9934
SELECT ALL 67, CAST ( NULL AS INTEGER ) col2
----
67
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9935
SELECT - 47 * + + 40 DIV + 2, - COUNT( * ) AS col2
----
-940
-1

skipif mysql # not compatible
query II rowsort label-9935
SELECT - 47 * + + 40 / + 2, - COUNT ( * ) AS col2
----
-940
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT MAX( DISTINCT - - 25 )
----
25

skipif mysql # not compatible
query I rowsort label-9936
SELECT MAX ( DISTINCT - - 25 )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9937
SELECT ALL 59 DIV - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL 59 / - 89 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9938
SELECT + 47 + + 29 + - 86 * + CAST( NULL AS SIGNED ) + - 20 - + + 54 + 69 * 82 + + 84 + ( + NULLIF ( + 17, + 52 ) ) - - + 94 * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-9938
SELECT + 47 + + 29 + - 86 * + CAST ( NULL AS INTEGER ) + - 20 - + + 54 + 69 * 82 + + 84 + ( + NULLIF ( + 17, + 52 ) ) - - + 94 * - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT DISTINCT MAX( ALL 68 )
----
68

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT MAX ( ALL 68 )
----
68

query I rowsort
SELECT ALL 11 * - 97 AS col1
----
-1067

query I rowsort
SELECT + 17 * 51 col2
----
867

query I rowsort
SELECT - 23 + 14 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT DISTINCT COALESCE ( + ( - - COUNT( * ) ), + - 47, - COUNT( * ) * + 65 * + COUNT( DISTINCT - 95 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9943
SELECT DISTINCT COALESCE ( + ( - - COUNT ( * ) ), + - 47, - COUNT ( * ) * + 65 * + COUNT ( DISTINCT - 95 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL CASE 73 WHEN - 93 * + 4 / + + 9 * MAX( DISTINCT + + 16 ) + + + 13 + - 47 THEN - COUNT( DISTINCT + 38 ) + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL CASE 73 WHEN - 93 * + 4 / + + 9 * MAX ( DISTINCT + + 16 ) + + + 13 + - 47 THEN - COUNT ( DISTINCT + 38 ) + - COUNT ( * ) ELSE NULL END
----
NULL

query II rowsort
SELECT 84 AS col2, + 98 AS col2
----
84
98

query I rowsort
SELECT DISTINCT 17 * 9
----
153

query I rowsort
SELECT ALL ( 15 ) AS col0
----
15

query II rowsort
SELECT 70, 13 AS col2
----
70
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9949
SELECT MAX( - + 78 ) / + 98 / + + CAST( NULL AS SIGNED ) - - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9949
SELECT MAX ( - + 78 ) / + 98 / + + CAST ( NULL AS INTEGER ) - - 51
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9950
SELECT 21 DIV + COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9950
SELECT 21 / + COUNT ( * ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT ALL COUNT( * ) + - 2 + 84
----
83

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL COUNT ( * ) + - 2 + 84
----
83

query II rowsort
SELECT - 9 AS col2, - 63
----
-9
-63

query I rowsort
SELECT 30 * 49
----
1470

query I rowsort
SELECT 1 + - 61
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9955
SELECT ALL CAST( NULL AS SIGNED ) + + + COALESCE ( 37, + 92 * - 72 * 80 - - + 31 * + - 85 - - 94 * + COUNT( * ), + 52 ) * + ( - SUM( ALL + 21 ) ), COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9955
SELECT ALL CAST ( NULL AS INTEGER ) + + + COALESCE ( 37, + 92 * - 72 * 80 - - + 31 * + - 85 - - 94 * + COUNT ( * ), + 52 ) * + ( - SUM ( ALL + 21 ) ), COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9956
SELECT ALL - 40 + + - COUNT( * ) + - 31, 5 AS col1
----
-72
5

skipif mysql # not compatible
query II rowsort label-9956
SELECT ALL - 40 + + - COUNT ( * ) + - 31, 5 AS col1
----
-72
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9957
SELECT ALL + COUNT( * ) * COUNT( * ) + - 65 + CAST( MIN( ALL 51 ) AS SIGNED ) + - NULLIF ( + 41, - 26 ) + - 63 * + 89 * - 61
----
341973

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL + COUNT ( * ) * COUNT ( * ) + - 65 + CAST ( MIN ( ALL 51 ) AS INTEGER ) + - NULLIF ( + 41, - 26 ) + - 63 * + 89 * - 61
----
341973

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9958
SELECT ALL + - 76 + COUNT( * ) DIV + + 99 * + 37 * 2
----
-76

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL + - 76 + COUNT ( * ) / + + 99 * + 37 * 2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT DISTINCT - 96 * - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-9959
SELECT DISTINCT - 96 * - COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT DISTINCT + COUNT( * ) + MAX( + + 7 )
----
8

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT + COUNT ( * ) + MAX ( + + 7 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9961
SELECT - + CAST( NULL AS SIGNED ) * 74 + + COALESCE ( - - 84, + 81 * AVG ( ALL + 78 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT - + CAST ( NULL AS INTEGER ) * 74 + + COALESCE ( - - 84, + 81 * AVG ( ALL + 78 ) )
----
NULL

query I rowsort
SELECT 46 + + - 48 * - 86
----
4174

query I rowsort
SELECT ALL + COALESCE ( + 8, + 67 ) - + 53
----
-45

query I rowsort
SELECT DISTINCT - ( + 21 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL + + SUM( - 75 ) - + 99
----
-174

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL + + SUM ( - 75 ) - + 99
----
-174

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9966
SELECT 23 * - COUNT( * ) DIV + 84 + - - 32 - - COUNT( * ) * - - COUNT( * ) * + 38 + - - COUNT( * ) + - + 38 * + 22 * - 76 AS col0, + COUNT( * ) - - 11 + + 47 * + 30 + 78
----
63607
1500

skipif mysql # not compatible
query II rowsort label-9966
SELECT 23 * - COUNT ( * ) / + 84 + - - 32 - - COUNT ( * ) * - - COUNT ( * ) * + 38 + - - COUNT ( * ) + - + 38 * + 22 * - 76 AS col0, + COUNT ( * ) - - 11 + + 47 * + 30 + 78
----
63607
1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9967
SELECT ALL + ( - CASE + + COUNT( * ) WHEN + 8 * + 68 DIV - 24 * + - 37 + + SUM( NULLIF ( - 1, + 18 ) ) THEN NULL ELSE - CAST( + 27 AS SIGNED ) * + 10 + 14 + 11 DIV + 36 END ) DIV - COUNT( * ) AS col0
----
-256

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL + ( - CASE + + COUNT ( * ) WHEN + 8 * + 68 / - 24 * + - 37 + + SUM ( NULLIF ( - 1, + 18 ) ) THEN NULL ELSE - CAST ( + 27 AS INTEGER ) * + 10 + 14 + 11 / + 36 END ) / - COUNT ( * ) AS col0
----
-256

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9968
SELECT + 1 * 49 + - COUNT( * ) col2, ( - CASE - - 56 WHEN + 19 * + 52 * + - MIN( ALL + 50 ) * - + 55 + + 57 THEN NULL ELSE - 83 END ) DIV - 41 AS col2, - - 92 col1
----
48
-2
92

skipif mysql # not compatible
query III rowsort label-9968
SELECT + 1 * 49 + - COUNT ( * ) col2, ( - CASE - - 56 WHEN + 19 * + 52 * + - MIN ( ALL + 50 ) * - + 55 + + 57 THEN NULL ELSE - 83 END ) / - 41 AS col2, - - 92 col1
----
48
-2
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT + 80 * 54 + - 88 * - + CASE + 75 WHEN + 35 * + ( + - 42 ) THEN NULL WHEN - COUNT( * ) * + 19 + - COUNT( * ) THEN + 16 + - ( - + CASE - - 20 WHEN 9 * + + 98 * - + 38 THEN - 74 END ) + + 82 * + 21 * 1 ELSE 80 * - COUNT( * ) / + - ( CASE WHEN ( NULL ) NOT IN ( - 71 ) THEN + 16 - 76 WHEN NOT ( NULL ) BETWEEN - SUM( ALL + 85 ) * 43 AND NULL THEN NULL END ) END + + 56 * + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-9969
SELECT + 80 * 54 + - 88 * - + CASE + 75 WHEN + 35 * + ( + - 42 ) THEN NULL WHEN - COUNT ( * ) * + 19 + - COUNT ( * ) THEN + 16 + - ( - + CASE - - 20 WHEN 9 * + + 98 * - + 38 THEN - 74 END ) + + 82 * + 21 * 1 ELSE 80 * - COUNT ( * ) / + - ( CASE WHEN ( NULL ) NOT IN ( - 71 ) THEN + 16 - 76 WHEN NOT ( NULL ) BETWEEN - SUM ( ALL + 85 ) * 43 AND NULL THEN NULL END ) END + + 56 * + 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT MIN( - + 77 ) * + + 30 * - 54 AS col1
----
124740

skipif mysql # not compatible
query I rowsort label-9970
SELECT MIN ( - + 77 ) * + + 30 * - 54 AS col1
----
124740

query I rowsort
SELECT ALL - 20 * + 69
----
-1380

query I rowsort
SELECT 61 * 36 * - - 45
----
98820

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT 96 * 4 DIV + 36 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9973
SELECT 96 * 4 / + 36 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT 67 + - MAX( DISTINCT 89 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-9974
SELECT 67 + - MAX ( DISTINCT 89 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT + 55 * - - ( + 87 ) + - COUNT( * ) + 67 + + 45 - - 39 * COALESCE ( + 65, + + 24, + - ( - + 27 ) ) * + 45 - + 62
----
118909

skipif mysql # not compatible
query I rowsort label-9975
SELECT + 55 * - - ( + 87 ) + - COUNT ( * ) + 67 + + 45 - - 39 * COALESCE ( + 65, + + 24, + - ( - + 27 ) ) * + 45 - + 62
----
118909

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ALL - 21 * - 88 * CASE - 17 WHEN + 29 THEN + COUNT( * ) * 30 WHEN - NULLIF ( + - 98, - ( 28 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL - 21 * - 88 * CASE - 17 WHEN + 29 THEN + COUNT ( * ) * 30 WHEN - NULLIF ( + - 98, - ( 28 ) ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9977
SELECT 86 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9977
SELECT 86 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9978
SELECT ALL MIN( ALL + 57 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL MIN ( ALL + 57 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT COUNT( * ) + 43 + - 6
----
38

skipif mysql # not compatible
query I rowsort label-9979
SELECT COUNT ( * ) + 43 + - 6
----
38

query I rowsort
SELECT ALL 69 + - 43
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9981
SELECT CAST( NULL AS SIGNED ) + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9981
SELECT CAST ( NULL AS INTEGER ) + 95
----
NULL

query I rowsort
SELECT 92 + ( - 74 ) * - 94
----
7048

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT DISTINCT CASE + - 26 WHEN + NULLIF ( + COUNT( * ), + NULLIF ( 58, - + 49 ) / - + 73 + + COALESCE ( - + COUNT( * ), + COUNT( * ), + 49 ) * COUNT( * ) ) - - + 74 + - 65 + 87 THEN + 82 ELSE NULL END + - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT CASE + - 26 WHEN + NULLIF ( + COUNT ( * ), + NULLIF ( 58, - + 49 ) / - + 73 + + COALESCE ( - + COUNT ( * ), + COUNT ( * ), + 49 ) * COUNT ( * ) ) - - + 74 + - 65 + 87 THEN + 82 ELSE NULL END + - 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT DISTINCT COUNT( * ) * + ( - + 28 ) + + + 18 + CASE - - 27 WHEN - 76 THEN + 9 END - - + 55 * - - 34 * + + 49 + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT COUNT ( * ) * + ( - + 28 ) + + + 18 + CASE - - 27 WHEN - 76 THEN + 9 END - - + 55 * - - 34 * + + 49 + - 51
----
NULL

query II rowsort
SELECT ( + 44 ), + 14 AS col1
----
44
14

query I rowsort
SELECT + 70 + + 71
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT ALL - 0 * COALESCE ( + 81, - 32 - 51 - + + CAST( + 48 AS SIGNED ) * + CAST( 6 AS SIGNED ), - 29 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL - 0 * COALESCE ( + 81, - 32 - 51 - + + CAST ( + 48 AS INTEGER ) * + CAST ( 6 AS INTEGER ), - 29 ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9988
SELECT ALL + - 49 DIV 63 col0
----
0

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL + - 49 / 63 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT - 97 + + - COUNT( * ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-9989
SELECT - 97 + + - COUNT ( * ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT 20 * CASE + - 51 WHEN ( - COUNT( * ) ) * 21 * - + 3 THEN - - 90 + 45 * + 44 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT 20 * CASE + - 51 WHEN ( - COUNT ( * ) ) * 21 * - + 3 THEN - - 90 + 45 * + 44 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9991
SELECT - 53 DIV + 19 + + + 86 * - - 87 + 93
----
7573

skipif mysql # not compatible
query I rowsort label-9991
SELECT - 53 / + 19 + + + 86 * - - 87 + 93
----
7573

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT COUNT( * ) * - + 89 * - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-9992
SELECT COUNT ( * ) * - + 89 * - COUNT ( * )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9993
SELECT 12 + + 21 + - + 32 DIV + 49 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9993
SELECT 12 + + 21 + - + 32 / + 49 AS col0
----
33

query I rowsort
SELECT + 86 * - + 41 + + 86 * - 40
----
-6966

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT ALL 57 * COUNT( * ) - - + 2
----
59

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL 57 * COUNT ( * ) - - + 2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT + - ( MIN( ALL - 12 ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9996
SELECT + - ( MIN ( ALL - 12 ) ) AS col2
----
12

query I rowsort
SELECT ALL - - 69 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT ALL + COUNT( * ) * + 82
----
82

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL + COUNT ( * ) * + 82
----
82

query I rowsort
SELECT - 13 * + 74 + 76 * - + ( - 12 ) - - 20 AS col1
----
-30

