sqllogictest
Artifact Content
Not logged in

Artifact 620ceff978c013493a2269bec5f0fcf7548f9466:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 36 * + 88 AS col0
----
3168

query I rowsort
SELECT ALL - 80 * 82 + 99 col0
----
-6461

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT ALL - 69 - + COUNT( * ) * - 90
----
21

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL - 69 - + COUNT ( * ) * - 90
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3
SELECT + 13 * 97 - 97 * + 0 + + 22 + - CAST( + 47 AS SIGNED ) + 6 DIV - COALESCE ( COUNT( * ), - 63 )
----
1230

skipif mysql # not compatible
query I rowsort label-3
SELECT + 13 * 97 - 97 * + 0 + + 22 + - CAST ( + 47 AS INTEGER ) + 6 / - COALESCE ( COUNT ( * ), - 63 )
----
1230

query I rowsort
SELECT ALL - + 57 col1
----
-57

query I rowsort
SELECT DISTINCT - + 96 col1
----
-96

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

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

query I rowsort
SELECT + COALESCE ( + ( - 63 ), + ( - 8 ), - - 82 * - + 64 )
----
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT + MAX( + COALESCE ( - 85, 68 * 61 ) ) + - 32 + AVG ( ALL - CASE - + 24 WHEN 95 THEN 57 END ) / + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9
SELECT + MAX ( + COALESCE ( - 85, 68 * 61 ) ) + - 32 + AVG ( ALL - CASE - + 24 WHEN 95 THEN 57 END ) / + + 70
----
NULL

query I rowsort
SELECT + 98 * - CASE 73 WHEN + 26 THEN NULL ELSE 33 END + - CASE 88 WHEN 50 THEN ( 52 ) * + 37 + - 11 ELSE NULL END + ( - 11 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-11
SELECT ALL + - 17 DIV - 55 + - 25 - - 28 AS col2, 53 AS col1
----
3
53

skipif mysql # not compatible
query II rowsort label-11
SELECT ALL + - 17 / - 55 + - 25 - - 28 AS col2, 53 AS col1
----
3
53

query I rowsort
SELECT DISTINCT - ( + - NULLIF ( 37, + - AVG ( ALL + 16 ) ) )
----
37

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

query II rowsort
SELECT - ( + - 58 ) * 67 + - 70 + - - 36 + + ( + + 26 ) + + 80 * COALESCE ( - ( 42 ), - + 8 ) + - 15 AS col1, 88 AS col2
----
503
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-15
SELECT ALL + MAX( ALL - - 74 ) + + + SUM( - CAST( 32 AS SIGNED ) )
----
42

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL + MAX ( ALL - - 74 ) + + + SUM ( - CAST ( 32 AS INTEGER ) )
----
42

query I rowsort
SELECT 92 * - - 44 AS col1
----
4048

onlyif mysql # DIV for integer division: 
query I rowsort label-17
SELECT ALL + 98 DIV + 86
----
1

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL + 98 / + 86
----
1

query I rowsort
SELECT 98 + - 61 + - - 34 + - 5 + + + 81 - - - 15 AS col0
----
132

query I rowsort
SELECT ALL 44 * + 82
----
3608

query I rowsort
SELECT ALL - 26 + - 66 * - + 52 * + - 7 * + 28
----
-672698

query I rowsort
SELECT 33 + + 68 + - 59 * - - 98 AS col1
----
-5681

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT DISTINCT - 90 + 93 * - - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT - 90 + 93 * - - COUNT ( * )
----
3

query I rowsort
SELECT 23 + - - 15
----
38

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

skipif mysql # not compatible
query I rowsort label-24
SELECT ALL SUM ( ( 14 ) )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT COUNT( * ) - - 3
----
4

skipif mysql # not compatible
query I rowsort label-25
SELECT COUNT ( * ) - - 3
----
4

query I rowsort
SELECT ALL 31 * 62
----
1922

query I rowsort
SELECT 82 + + - 77 * - 50 AS col2
----
3932

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-28
SELECT + 13 * + 99 AS col2, + AVG ( ALL CAST( NULL AS SIGNED ) )
----
1287
NULL

skipif mysql # not compatible
query II rowsort label-28
SELECT + 13 * + 99 AS col2, + AVG ( ALL CAST ( NULL AS INTEGER ) )
----
1287
NULL

query I rowsort
SELECT 13 * + 25
----
325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-30
SELECT - 22 + - ( + - COUNT( * ) ) * AVG ( ALL - + CASE - 44 WHEN 83 THEN 21 + + ( + 59 ) WHEN 93 + NULLIF ( - 83, - + 83 / - 7 ) THEN NULL ELSE + 59 * 92 + - + CAST( NULL AS SIGNED ) + - 25 * + - 54 * - 95 + ( 32 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-30
SELECT - 22 + - ( + - COUNT ( * ) ) * AVG ( ALL - + CASE - 44 WHEN 83 THEN 21 + + ( + 59 ) WHEN 93 + NULLIF ( - 83, - + 83 / - 7 ) THEN NULL ELSE + 59 * 92 + - + CAST ( NULL AS INTEGER ) + - 25 * + - 54 * - 95 + ( 32 ) END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-31
SELECT ALL 92 * - + AVG ( 41 ) / + CAST( NULL AS SIGNED ) * + 92 * NULLIF ( - 14, 83 * + 83 / 39 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL 92 * - + AVG ( 41 ) / + CAST ( NULL AS INTEGER ) * + 92 * NULLIF ( - 14, 83 * + 83 / 39 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-32
SELECT ALL 96 * CASE + 19 WHEN - CASE - COUNT( ALL 38 ) WHEN - 31 THEN + 28 WHEN + - 4 THEN NULL END THEN NULL WHEN + 48 + + 16 THEN 1 * - 35 END * + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) * + + 16 - + 67 + - - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL 96 * CASE + 19 WHEN - CASE - COUNT ( ALL 38 ) WHEN - 31 THEN + 28 WHEN + - 4 THEN NULL END THEN NULL WHEN + 48 + + 16 THEN 1 * - 35 END * + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) * + + 16 - + 67 + - - 19
----
NULL

query I rowsort
SELECT DISTINCT + 42 * 7 + + 71 col2
----
365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-34
SELECT DISTINCT + 31 * CAST( - + 17 AS SIGNED )
----
-527

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT + 31 * CAST ( - + 17 AS INTEGER )
----
-527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-35
SELECT + + COALESCE ( - 61, ( + CAST( + 1 AS SIGNED ) ) * + - 80 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-35
SELECT + + COALESCE ( - 61, ( + CAST ( + 1 AS INTEGER ) ) * + - 80 ) AS col0
----
-61

query I rowsort
SELECT ALL + ( - 41 ) * - 62 AS col1
----
2542

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

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT + 76 / COUNT ( * )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-38
SELECT ( 68 ) / 30 / + - CAST( NULL AS SIGNED ) + - ( SUM( + 71 ) ) AS col2, NULLIF ( + 16, + 81 - 31 ) + - 87 * + 61 AS col0
----
NULL
-5291

skipif mysql # not compatible
query II rowsort label-38
SELECT ( 68 ) / 30 / + - CAST ( NULL AS INTEGER ) + - ( SUM ( + 71 ) ) AS col2, NULLIF ( + 16, + 81 - 31 ) + - 87 * + 61 AS col0
----
NULL
-5291

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-39
SELECT + 29 * + - 3 AS col1, MAX( - NULLIF ( - 12, - - 81 ) ) + - - COALESCE ( COUNT( ALL - 43 ), + 45, + 26 DIV - 80 - - CASE - 69 WHEN + 0 THEN + 78 * - 16 ELSE NULL END DIV 99, 29 * ( - 54 ) + + COALESCE ( ( 19 ), - 17 * - 68 ) ) - 64
----
-87
-51

skipif mysql # not compatible
query II rowsort label-39
SELECT + 29 * + - 3 AS col1, MAX ( - NULLIF ( - 12, - - 81 ) ) + - - COALESCE ( COUNT ( ALL - 43 ), + 45, + 26 / - 80 - - CASE - 69 WHEN + 0 THEN + 78 * - 16 ELSE NULL END / 99, 29 * ( - 54 ) + + COALESCE ( ( 19 ), - 17 * - 68 ) ) - 64
----
-87
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-40
SELECT ALL CAST( - - 51 AS SIGNED ) * - 73 * - 55 + 9 AS col1
----
204774

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL CAST ( - - 51 AS INTEGER ) * - 73 * - 55 + 9 AS col1
----
204774

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

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

query I rowsort
SELECT + 95 * + ( - 94 )
----
-8930

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT - CASE COUNT( * ) WHEN - 12 * - + 52 - + - 25 + SUM( - - 75 ) THEN - COUNT( * ) / - - COUNT( - - 14 ) * + - 90 * + - 8 WHEN 22 THEN - 77 + - - 91 - - 35 END * - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-43
SELECT - CASE COUNT ( * ) WHEN - 12 * - + 52 - + - 25 + SUM ( - - 75 ) THEN - COUNT ( * ) / - - COUNT ( - - 14 ) * + - 90 * + - 8 WHEN 22 THEN - 77 + - - 91 - - 35 END * - 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT DISTINCT COUNT( * ) * - ( + + 38 ) * 23 + - MIN( DISTINCT - + 4 ) - - 94 AS col1
----
-776

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT COUNT ( * ) * - ( + + 38 ) * 23 + - MIN ( DISTINCT - + 4 ) - - 94 AS col1
----
-776

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT ALL + 82 * + NULLIF ( - + 26, 92 ) * - 97 + - COUNT( * )
----
206803

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL + 82 * + NULLIF ( - + 26, 92 ) * - 97 + - COUNT ( * )
----
206803

query I rowsort
SELECT 28 * - 90 - - + ( + 92 ) col1
----
-2428

query I rowsort
SELECT - 33 + + - 17 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT ALL + CASE - 28 WHEN - + 22 THEN - + COUNT( * ) + - MIN( + - 90 ) / + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL + CASE - 28 WHEN - + 22 THEN - + COUNT ( * ) + - MIN ( + - 90 ) / + + COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-49
SELECT ALL - 39 + - + 80 * - 23 AS col0, + 80 DIV - 77
----
1801
-1

skipif mysql # not compatible
query II rowsort label-49
SELECT ALL - 39 + - + 80 * - 23 AS col0, + 80 / - 77
----
1801
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-50
SELECT - 3 - 48 - 45 col1, CASE COUNT( * ) WHEN 29 THEN - 36 WHEN ( - 12 ) THEN - 61 + + 34 ELSE NULL END - NULLIF ( + - 0, - - 62 + - 58 + - ( + 25 ) )
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-50
SELECT - 3 - 48 - 45 col1, CASE COUNT ( * ) WHEN 29 THEN - 36 WHEN ( - 12 ) THEN - 61 + + 34 ELSE NULL END - NULLIF ( + - 0, - - 62 + - 58 + - ( + 25 ) )
----
-96
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-51
SELECT ALL COUNT( * ) AS col1, NULLIF ( + CASE + + 4 WHEN 46 * MAX( - 9 ) THEN 92 END, + 22 ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-51
SELECT ALL COUNT ( * ) AS col1, NULLIF ( + CASE + + 4 WHEN 46 * MAX ( - 9 ) THEN 92 END, + 22 ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-52
SELECT DISTINCT + COUNT( * ) DIV 8
----
0

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT + COUNT ( * ) / 8
----
0

query I rowsort
SELECT DISTINCT COALESCE ( + + 99, - 35, 44 + + 0 - - - 58 + - + 5 )
----
99

query I rowsort
SELECT DISTINCT 14 - + 66 AS col2
----
-52

query I rowsort
SELECT ALL COALESCE ( + + 9, 33 ) AS col0
----
9

query I rowsort
SELECT - 43 + - 69 AS col0
----
-112

onlyif mysql # aggregate syntax: 
query III rowsort label-57
SELECT ALL COUNT( * ) AS col2, - 29 * + 2 AS col2, + - 80 + - SUM( DISTINCT + 23 ) + + 26
----
1
-58
-77

skipif mysql # not compatible
query III rowsort label-57
SELECT ALL COUNT ( * ) AS col2, - 29 * + 2 AS col2, + - 80 + - SUM ( DISTINCT + 23 ) + + 26
----
1
-58
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-58
SELECT DISTINCT + 50 DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT + 50 / - 33
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-59
SELECT - COUNT( * ) + + - 27 + + 31 + - 96 + + 87 + - + CAST( 11 AS SIGNED ) * - 86 AS col0
----
940

skipif mysql # not compatible
query I rowsort label-59
SELECT - COUNT ( * ) + + - 27 + + 31 + - 96 + + 87 + - + CAST ( 11 AS INTEGER ) * - 86 AS col0
----
940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-60
SELECT - COUNT( * ) * - + 51 * COUNT( * ) * + + 64 * - 95 * - NULLIF ( COALESCE ( 71, NULLIF ( COUNT( DISTINCT 0 ), + 64 * - 86 * COUNT( * ) * - 65 - 42 ) - 52, - 13 + + + 5 + - + COALESCE ( 54, + 11, - COUNT( * ) * - 81 * - 13 ) + 95 * + COUNT( + 44 / + CAST( 64 AS SIGNED ) ) * + 72 ), 59 ) * - 7
----
-154109760

skipif mysql # not compatible
query I rowsort label-60
SELECT - COUNT ( * ) * - + 51 * COUNT ( * ) * + + 64 * - 95 * - NULLIF ( COALESCE ( 71, NULLIF ( COUNT ( DISTINCT 0 ), + 64 * - 86 * COUNT ( * ) * - 65 - 42 ) - 52, - 13 + + + 5 + - + COALESCE ( 54, + 11, - COUNT ( * ) * - 81 * - 13 ) + 95 * + COUNT ( + 44 / + CAST ( 64 AS INTEGER ) ) * + 72 ), 59 ) * - 7
----
-154109760

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT - 7 * - NULLIF ( + 34, - - NULLIF ( MAX( + 13 ), + 53 ) ) col0
----
238

skipif mysql # not compatible
query I rowsort label-61
SELECT - 7 * - NULLIF ( + 34, - - NULLIF ( MAX ( + 13 ), + 53 ) ) col0
----
238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-62
SELECT - 13 * ( + + 37 ) * CASE + COALESCE ( 91, - - 65, + 36 - 61 / - 13 ) WHEN + 43 THEN AVG ( ( - - 10 ) ) / - 86 WHEN CAST( + - COUNT( * ) AS SIGNED ) + + AVG ( - + 93 ) THEN - COUNT( * ) * + - 83 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-62
SELECT - 13 * ( + + 37 ) * CASE + COALESCE ( 91, - - 65, + 36 - 61 / - 13 ) WHEN + 43 THEN AVG ( ( - - 10 ) ) / - 86 WHEN CAST ( + - COUNT ( * ) AS INTEGER ) + + AVG ( - + 93 ) THEN - COUNT ( * ) * + - 83 END AS col2
----
NULL

query I rowsort
SELECT - 25 + + 77
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-64
SELECT - COUNT( * ) AS col0, 47 DIV 17, - + 47 + + + 36 + - 49 AS col2
----
-1
2
-60

skipif mysql # not compatible
query III rowsort label-64
SELECT - COUNT ( * ) AS col0, 47 / 17, - + 47 + + + 36 + - 49 AS col2
----
-1
2
-60

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

query I rowsort
SELECT - 1 + 22 * + + 18
----
395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-67
SELECT + + 19 * + COALESCE ( CASE + 57 WHEN + ( 79 ) THEN SUM( ( - - ( 48 ) ) ) ELSE - + 88 + 93 * ( - 54 ) END, - 38, COUNT( * ), - 45 DIV - - 17 )
----
-97090

skipif mysql # not compatible
query I rowsort label-67
SELECT + + 19 * + COALESCE ( CASE + 57 WHEN + ( 79 ) THEN SUM ( ( - - ( 48 ) ) ) ELSE - + 88 + 93 * ( - 54 ) END, - 38, COUNT ( * ), - 45 / - - 17 )
----
-97090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-68
SELECT - + COUNT( * ) + + 33 + - 16 + - CASE 88 WHEN + 15 * - 57 THEN + COUNT( * ) + + 81 + 62 * + 56 * - - CAST( 5 AS SIGNED ) * + 3 - 32 * ( 4 ) ELSE NULL END + ( - - 28 ) + - 64 * ( 9 ) * 32 + + 7 * + 78 / 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-68
SELECT - + COUNT ( * ) + + 33 + - 16 + - CASE 88 WHEN + 15 * - 57 THEN + COUNT ( * ) + + 81 + 62 * + 56 * - - CAST ( 5 AS INTEGER ) * + 3 - 32 * ( 4 ) ELSE NULL END + ( - - 28 ) + - 64 * ( 9 ) * 32 + + 7 * + 78 / 58 AS col0
----
NULL

query I rowsort
SELECT - - 33 + + 59
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT - NULLIF ( COUNT( ALL - - 12 ), - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-70
SELECT - NULLIF ( COUNT ( ALL - - 12 ), - 1 )
----
-1

query I rowsort
SELECT + 0 + - 1 * 17 AS col2
----
-17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-73
SELECT - 21 DIV - 61 * 65 DIV - 4 + - 95 + + ( ( 51 ) ) + + + 93 - + 16 * + 47
----
-703

skipif mysql # not compatible
query I rowsort label-73
SELECT - 21 / - 61 * 65 / - 4 + - 95 + + ( ( 51 ) ) + + + 93 - + 16 * + 47
----
-703

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

skipif mysql # not compatible
query I rowsort label-74
SELECT + COUNT ( * ) / + SUM ( DISTINCT 96 ) + ( + 83 ) AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-75
SELECT + COALESCE ( 5, - COUNT( * ), CAST( + COUNT( * ) AS SIGNED ) * - 93 + - 85 + + CAST( - + NULLIF ( - ( + - ( - 82 ) ), MIN( DISTINCT ( - 87 ) ) ) AS SIGNED ) ) * - 37 + + - NULLIF ( + 88, + - 86 )
----
-273

skipif mysql # not compatible
query I rowsort label-75
SELECT + COALESCE ( 5, - COUNT ( * ), CAST ( + COUNT ( * ) AS INTEGER ) * - 93 + - 85 + + CAST ( - + NULLIF ( - ( + - ( - 82 ) ), MIN ( DISTINCT ( - 87 ) ) ) AS INTEGER ) ) * - 37 + + - NULLIF ( + 88, + - 86 )
----
-273

query I rowsort
SELECT + - 92 + + + 12 AS col1
----
-80

query I rowsort
SELECT ALL - 87 * - 6 + + 80 + + + 94 AS col0
----
696

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT - 46 * + 99 + + CASE + - COUNT( + 1 ) WHEN - 92 THEN - - 51 END + - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-78
SELECT - 46 * + 99 + + CASE + - COUNT ( + 1 ) WHEN - 92 THEN - - 51 END + - 37 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-80
SELECT ALL 50 * + CASE ( - AVG ( 96 ) ) WHEN - - SUM( DISTINCT - 49 ) / + 55 + - CASE + CASE + 15 WHEN + COUNT( * ) THEN + SUM( DISTINCT + 69 ) WHEN + 58 * + 50 * ( + COUNT( * ) ) + + 59 * - + 72 / COUNT( * ) THEN + 0 / + MAX( DISTINCT - - 10 ) ELSE NULL END WHEN + 79 THEN 82 + 69 WHEN - CAST( NULL AS SIGNED ) THEN NULL END + 53 THEN - CAST( NULL AS SIGNED ) ELSE 80 END + CAST( NULL AS SIGNED ) * - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL 50 * + CASE ( - AVG ( 96 ) ) WHEN - - SUM ( DISTINCT - 49 ) / + 55 + - CASE + CASE + 15 WHEN + COUNT ( * ) THEN + SUM ( DISTINCT + 69 ) WHEN + 58 * + 50 * ( + COUNT ( * ) ) + + 59 * - + 72 / COUNT ( * ) THEN + 0 / + MAX ( DISTINCT - - 10 ) ELSE NULL END WHEN + 79 THEN 82 + 69 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END + 53 THEN - CAST ( NULL AS INTEGER ) ELSE 80 END + CAST ( NULL AS INTEGER ) * - 89 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-81
SELECT + - NULLIF ( - COUNT( * ), + - CAST( NULL AS SIGNED ) / + 16 - - + 41 / + 46 + + COALESCE ( - COUNT( * ), + - 57 + + 71 ) ) + + - 23 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-81
SELECT + - NULLIF ( - COUNT ( * ), + - CAST ( NULL AS INTEGER ) / + 16 - - + 41 / + 46 + + COALESCE ( - COUNT ( * ), + - 57 + + 71 ) ) + + - 23 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-82
SELECT DISTINCT + 42 * + 6 + + 95 + 1 + - COUNT( * ) + 41 * 68 * - 97 AS col1, 35 - + - COUNT( * ) AS col1
----
-270089
36

skipif mysql # not compatible
query II rowsort label-82
SELECT DISTINCT + 42 * + 6 + + 95 + 1 + - COUNT ( * ) + 41 * 68 * - 97 AS col1, 35 - + - COUNT ( * ) AS col1
----
-270089
36

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

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL 55 / + 91
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-84
SELECT + COALESCE ( + 6, + 96 ) * - COUNT( * ) + + 6 AS col2, ( - + NULLIF ( + CASE 95 WHEN + + 92 - 90 THEN - - CASE 52 WHEN - + 76 THEN + 76 * - 55 * - - 81 + + + 73 * - 89 * + 1 + + 43 ELSE - 15 + + + CASE 67 WHEN + - 15 * + 98 + - 55 THEN + 27 END / - 92 END * - ( + 61 ) ELSE NULL END, 45 ) ) + + 14 * - SUM( DISTINCT 58 ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-84
SELECT + COALESCE ( + 6, + 96 ) * - COUNT ( * ) + + 6 AS col2, ( - + NULLIF ( + CASE 95 WHEN + + 92 - 90 THEN - - CASE 52 WHEN - + 76 THEN + 76 * - 55 * - - 81 + + + 73 * - 89 * + 1 + + 43 ELSE - 15 + + + CASE 67 WHEN + - 15 * + 98 + - 55 THEN + 27 END / - 92 END * - ( + 61 ) ELSE NULL END, 45 ) ) + + 14 * - SUM ( DISTINCT 58 ) AS col1
----
0
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-86
SELECT + COALESCE ( - - 94, - COALESCE ( + 10, - 11 * 38 + + COUNT( * ) * 3, + 28 ) * + NULLIF ( COUNT( * ), 84 + - 85 ) * 56, + + COUNT( * ) ) * - 90 * - 61 * + - CAST( + 83 AS SIGNED ) + + 56 AS col0
----
-42832924

skipif mysql # not compatible
query I rowsort label-86
SELECT + COALESCE ( - - 94, - COALESCE ( + 10, - 11 * 38 + + COUNT ( * ) * 3, + 28 ) * + NULLIF ( COUNT ( * ), 84 + - 85 ) * 56, + + COUNT ( * ) ) * - 90 * - 61 * + - CAST ( + 83 AS INTEGER ) + + 56 AS col0
----
-42832924

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

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

query I rowsort
SELECT - 79 + - 65 AS col2
----
-144

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-90
SELECT COALESCE ( 67, + + CAST( CAST( 12 AS SIGNED ) AS SIGNED ) - - + 13, + - 19 )
----
67

skipif mysql # not compatible
query I rowsort label-90
SELECT COALESCE ( 67, + + CAST ( CAST ( 12 AS INTEGER ) AS INTEGER ) - - + 13, + - 19 )
----
67

query I rowsort
SELECT DISTINCT ( + 68 ) * 79
----
5372

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

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

query II rowsort
SELECT ALL + 52 AS col0, 94 AS col2
----
52
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-94
SELECT ALL + COUNT( * ) * - + ( - COUNT( * ) ) DIV - + COUNT( * ) AS col2, + 3 + + + 57 AS col2
----
-1
60

skipif mysql # not compatible
query II rowsort label-94
SELECT ALL + COUNT ( * ) * - + ( - COUNT ( * ) ) / - + COUNT ( * ) AS col2, + 3 + + + 57 AS col2
----
-1
60

query I rowsort
SELECT + 43 * + 61 AS col1
----
2623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-96
SELECT ALL + NULLIF ( + ( 9 ), - + CASE ( - 4 ) WHEN + ( - - ( - 5 ) ) THEN - + 28 ELSE NULL END ) * 13 DIV COUNT( * ) * 52 + - 81 + + + 90 AS col2
----
6093

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL + NULLIF ( + ( 9 ), - + CASE ( - 4 ) WHEN + ( - - ( - 5 ) ) THEN - + 28 ELSE NULL END ) * 13 / COUNT ( * ) * 52 + - 81 + + + 90 AS col2
----
6093

query I rowsort
SELECT DISTINCT ( 2 ) * - ( + 86 )
----
-172

query I rowsort
SELECT + 7 - + 78
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT - COALESCE ( + - COALESCE ( + 88, - + 46 - SUM( ALL - 12 ) * + 68 * + 91 ), + + COUNT( * ) ) * - 56 * 4 + + SUM( + 98 )
----
-19614

skipif mysql # not compatible
query I rowsort label-99
SELECT - COALESCE ( + - COALESCE ( + 88, - + 46 - SUM ( ALL - 12 ) * + 68 * + 91 ), + + COUNT ( * ) ) * - 56 * 4 + + SUM ( + 98 )
----
-19614

query I rowsort
SELECT + 25 * 76
----
1900

query I rowsort
SELECT + 84 - 14
----
70

query I rowsort
SELECT + 88 * + 65 * - 79 * - 73 + - 64
----
32987176

onlyif mysql # DIV for integer division: 
query I rowsort label-103
SELECT - 77 DIV + - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-103
SELECT - 77 / + - 90 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT ALL - 1 DIV - 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL - 1 / - 50 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-105
SELECT - + NULLIF ( 15, + - 69 + - 15 + - 62 - 90 * 98 * - 73 ) - + - 73 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-105
SELECT - + NULLIF ( 15, + - 69 + - 15 + - 62 - 90 * 98 * - 73 ) - + - 73 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-106
SELECT ALL - 93 * + ( - 83 ) + CASE - ( - ( 59 ) ) WHEN - - 72 THEN + 2 * - 42 - - - 58 * 32 * - ( + 98 ) + - - 98 + - ( 3 ) + CAST( NULL AS SIGNED ) * + 94 + - ( - + 80 ) ELSE NULLIF ( 70, 56 ) END
----
7789

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL - 93 * + ( - 83 ) + CASE - ( - ( 59 ) ) WHEN - - 72 THEN + 2 * - 42 - - - 58 * 32 * - ( + 98 ) + - - 98 + - ( 3 ) + CAST ( NULL AS INTEGER ) * + 94 + - ( - + 80 ) ELSE NULLIF ( 70, 56 ) END
----
7789

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-107
SELECT ALL + - 15 * + CASE - 56 WHEN CAST( NULL AS SIGNED ) - - 13 THEN NULL ELSE - - 28 END
----
-420

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL + - 15 * + CASE - 56 WHEN CAST ( NULL AS INTEGER ) - - 13 THEN NULL ELSE - - 28 END
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT DISTINCT - 49 + + + COUNT( * ) + 40 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT - 49 + + + COUNT ( * ) + 40 AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-109
SELECT + 19 AS col0, - 46 - + ( + SUM( + 86 ) ) * ( - CAST( 29 AS SIGNED ) ) * + - COUNT( * ) * - 80 * + COUNT( * ) + CAST( NULL AS SIGNED ) * COUNT( + 51 ) AS col0, + 45 AS col0
----
19
NULL
45

skipif mysql # not compatible
query III rowsort label-109
SELECT + 19 AS col0, - 46 - + ( + SUM ( + 86 ) ) * ( - CAST ( 29 AS INTEGER ) ) * + - COUNT ( * ) * - 80 * + COUNT ( * ) + CAST ( NULL AS INTEGER ) * COUNT ( + 51 ) AS col0, + 45 AS col0
----
19
NULL
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-110
SELECT ALL + - COALESCE ( + - COALESCE ( - 60, + 41 DIV + 24 + + CAST( + CAST( + ( + 52 ) AS DECIMAL ) AS SIGNED ), + - 1 DIV + 67 + + - 52 * + 7 + - CAST( - COUNT( + 90 ) AS SIGNED ) ), 53 ) * - 93 - + 3 * + + 47
----
5439

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL + - COALESCE ( + - COALESCE ( - 60, + 41 / + 24 + + CAST ( + CAST ( + ( + 52 ) AS REAL ) AS INTEGER ), + - 1 / + 67 + + - 52 * + 7 + - CAST ( - COUNT ( + 90 ) AS INTEGER ) ), 53 ) * - 93 - + 3 * + + 47
----
5439

onlyif mysql # aggregate syntax: 
query II rowsort label-111
SELECT + 50 * - 73 * + 14 * - 78 AS col0, + 68 * 73 * - + MIN( DISTINCT - 79 ) * - 66 AS col1
----
3985800
-25882296

skipif mysql # not compatible
query II rowsort label-111
SELECT + 50 * - 73 * + 14 * - 78 AS col0, + 68 * 73 * - + MIN ( DISTINCT - 79 ) * - 66 AS col1
----
3985800
-25882296

query I rowsort
SELECT ALL - + 10 + 53
----
43

query III rowsort
SELECT - - 21 AS col0, 99 + + 60 + - 37 col2, - 9
----
21
122
-9

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-115
SELECT ALL + MAX( + + 39 ) * - 33 * + NULLIF ( + + NULLIF ( 78, + AVG ( DISTINCT CAST( + + 25 AS SIGNED ) ) * + + 4 ), - 53 * + COUNT( * ) + - - ( + - 70 ) + ( + COUNT( * ) ) / - + 57 )
----
-100386

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL + MAX ( + + 39 ) * - 33 * + NULLIF ( + + NULLIF ( 78, + AVG ( DISTINCT CAST ( + + 25 AS INTEGER ) ) * + + 4 ), - 53 * + COUNT ( * ) + - - ( + - 70 ) + ( + COUNT ( * ) ) / - + 57 )
----
-100386

onlyif mysql # aggregate syntax: 
query II rowsort label-116
SELECT DISTINCT - + SUM( DISTINCT 8 ), 56 col1
----
-8
56

skipif mysql # not compatible
query II rowsort label-116
SELECT DISTINCT - + SUM ( DISTINCT 8 ), 56 col1
----
-8
56

onlyif mysql # DIV for integer division: 
query I rowsort label-117
SELECT ALL - - 6 DIV + ( - + 53 ) * + 17 * - 46 + - 27 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL - - 6 / + ( - + 53 ) * + 17 * - 46 + - 27 AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-118
SELECT 91 + + 15 DIV - 47 * COUNT( * ) * - 28 + - 83 + 2 AS col0, - COUNT( * ) AS col0, 28 * - 40 * CAST( + 83 AS SIGNED ) AS col2
----
10
-1
-92960

skipif mysql # not compatible
query III rowsort label-118
SELECT 91 + + 15 / - 47 * COUNT ( * ) * - 28 + - 83 + 2 AS col0, - COUNT ( * ) AS col0, 28 * - 40 * CAST ( + 83 AS INTEGER ) AS col2
----
10
-1
-92960

query I rowsort
SELECT ALL 68 * + 62 AS col2
----
4216

query I rowsort
SELECT 7 * - 18 * + 87 AS col2
----
-10962

query I rowsort
SELECT DISTINCT 3 * 27 col2
----
81

query I rowsort
SELECT - 16 * + 22 - - ( + 50 )
----
-302

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

query I rowsort
SELECT ALL - 49 * + 29 AS col1
----
-1421

query II rowsort
SELECT 33 * + - 42 AS col2, 2 * - 31
----
-1386
-62

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

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

query I rowsort
SELECT 77 * - - 81 + + 67 * - + 13 AS col0
----
5366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-128
SELECT AVG ( + 49 ) / SUM( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-128
SELECT AVG ( + 49 ) / SUM ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT COALESCE ( + 73, + - 73 * + 10 + - - 85 ) + 32 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL 89 + + COUNT( * ) + - 74 + - 95 + - 82 * + 95
----
-7869

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL 89 + + COUNT ( * ) + - 74 + - 95 + - 82 * + 95
----
-7869

query I rowsort
SELECT ALL 48 * 35 * - 32 AS col0
----
-53760

query I rowsort
SELECT DISTINCT COALESCE ( + - 65, + 45 + ( 33 ) ) + - + 73 * + 47 + + 83
----
-3413

query I rowsort
SELECT - - NULLIF ( + + 39, - 6 ) AS col0
----
39

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

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

query I rowsort
SELECT + 26 * - - 28 AS col0
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT ALL + SUM( - - 53 ) + 52 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL + SUM ( - - 53 ) + 52 AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT - COUNT( DISTINCT - 37 ) + COUNT( * ) + - + ( 89 ) * - + 26 AS col1
----
2314

skipif mysql # not compatible
query I rowsort label-137
SELECT - COUNT ( DISTINCT - 37 ) + COUNT ( * ) + - + ( 89 ) * - + 26 AS col1
----
2314

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-139
SELECT ALL + 35 - + 66 DIV - COUNT( * )
----
101

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL + 35 - + 66 / - COUNT ( * )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT MAX( ALL 84 ) * + ( - - 21 ) - - + ( COUNT( * ) ) AS col0
----
1765

skipif mysql # not compatible
query I rowsort label-140
SELECT MAX ( ALL 84 ) * + ( - - 21 ) - - + ( COUNT ( * ) ) AS col0
----
1765

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT + 98 + + - COUNT( * ) + - 20 * 78
----
-1463

skipif mysql # not compatible
query I rowsort label-141
SELECT + 98 + + - COUNT ( * ) + - 20 * 78
----
-1463

query I rowsort
SELECT 16 + - 83 AS col0
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-143
SELECT - 7 + + 34 + - 66 DIV - - 75 * - 82 AS col2, - COUNT( * ) * + 71 * + 80 + - 79
----
27
-5759

skipif mysql # not compatible
query II rowsort label-143
SELECT - 7 + + 34 + - 66 / - - 75 * - 82 AS col2, - COUNT ( * ) * + 71 * + 80 + - 79
----
27
-5759

query II rowsort
SELECT DISTINCT + 43 * - ( 59 ) AS col0, - 43 * - 93
----
-2537
3999

query I rowsort
SELECT ALL - - ( - 66 ) * + 7
----
-462

query II rowsort
SELECT + - ( 47 ) AS col2, 41
----
-47
41

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT 5 + + COUNT( * ) + - + 42 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-147
SELECT 5 + + COUNT ( * ) + - + 42 AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-148
SELECT DISTINCT - CAST( + 41 AS SIGNED ) * - - ( + ( - - 20 ) ) AS col1
----
-820

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT - CAST ( + 41 AS INTEGER ) * - - ( + ( - - 20 ) ) AS col1
----
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT ALL + ( + + 2 ) - - COUNT( + ( + 45 ) )
----
3

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL + ( + + 2 ) - - COUNT ( + ( + 45 ) )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-150
SELECT + 63, 36 DIV + 11 * + CASE + 7 WHEN + 8 THEN NULL WHEN - 46 THEN NULL ELSE - + COUNT( * ) + + + 56 DIV 68 END AS col0
----
63
-3

skipif mysql # not compatible
query II rowsort label-150
SELECT + 63, 36 / + 11 * + CASE + 7 WHEN + 8 THEN NULL WHEN - 46 THEN NULL ELSE - + COUNT ( * ) + + + 56 / 68 END AS col0
----
63
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-151
SELECT DISTINCT - COUNT( * ) AS col1, + 17 DIV + - 77 + + 84 col1
----
-1
84

skipif mysql # not compatible
query II rowsort label-151
SELECT DISTINCT - COUNT ( * ) AS col1, + 17 / + - 77 + + 84 col1
----
-1
84

query I rowsort
SELECT 17 + - 94
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT ALL - MAX( + 34 ) col2
----
-34

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL - MAX ( + 34 ) col2
----
-34

query II rowsort
SELECT 81 * - 65 + - 83 AS col0, 80
----
-5348
80

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-156
SELECT COUNT( * ) AS col1, - NULLIF ( COALESCE ( 12, + - 98 + 85 ), - 90 )
----
1
-12

skipif mysql # not compatible
query II rowsort label-156
SELECT COUNT ( * ) AS col1, - NULLIF ( COALESCE ( 12, + - 98 + 85 ), - 90 )
----
1
-12

query II rowsort
SELECT + 84 AS col2, 48
----
84
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-158
SELECT ALL - CAST( + ( 93 ) AS SIGNED ) AS col1, - 88 DIV 24 * + + ( - COUNT( * ) ) AS col1
----
-93
3

skipif mysql # not compatible
query II rowsort label-158
SELECT ALL - CAST ( + ( 93 ) AS INTEGER ) AS col1, - 88 / 24 * + + ( - COUNT ( * ) ) AS col1
----
-93
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-160
SELECT + 38, 4 * + ( 4 ) + + CAST( + + 8 AS SIGNED ) AS col1
----
38
24

skipif mysql # not compatible
query II rowsort label-160
SELECT + 38, 4 * + ( 4 ) + + CAST ( + + 8 AS INTEGER ) AS col1
----
38
24

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT 61 + COUNT( * ) + + 2 * - MIN( - 86 ) AS col1
----
234

skipif mysql # not compatible
query I rowsort label-161
SELECT 61 + COUNT ( * ) + + 2 * - MIN ( - 86 ) AS col1
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT 32 DIV 66 * - 82 * - - 76 * - + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-162
SELECT 32 / 66 * - 82 * - - 76 * - + 67 AS col2
----
0

query I rowsort
SELECT DISTINCT 13 + + 39
----
52

query I rowsort
SELECT ALL 48 + - 42
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT ALL 66 + - COUNT( * ) * + - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL 66 + - COUNT ( * ) * + - COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT 67 + - - 9 * - COUNT( * ) * 81 col2
----
-662

skipif mysql # not compatible
query I rowsort label-166
SELECT 67 + - - 9 * - COUNT ( * ) * 81 col2
----
-662

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-167
SELECT - 92, ( + 30 ) * - + 83 * ( + CAST( - - 11 AS SIGNED ) ) - - 41 * 36 AS col0
----
-92
-25914

skipif mysql # not compatible
query II rowsort label-167
SELECT - 92, ( + 30 ) * - + 83 * ( + CAST ( - - 11 AS INTEGER ) ) - - 41 * 36 AS col0
----
-92
-25914

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT 90 DIV + + 80
----
1

skipif mysql # not compatible
query I rowsort label-168
SELECT 90 / + + 80
----
1

query I rowsort
SELECT + 96 - - 6
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-170
SELECT ALL 54 AS col0, + MIN( ALL + 70 )
----
54
70

skipif mysql # not compatible
query II rowsort label-170
SELECT ALL 54 AS col0, + MIN ( ALL + 70 )
----
54
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-171
SELECT - 5 * - CAST( + 69 AS SIGNED )
----
345

skipif mysql # not compatible
query I rowsort label-171
SELECT - 5 * - CAST ( + 69 AS INTEGER )
----
345

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-172
SELECT + 89 + - 78 + - COUNT( * ) + 31 DIV 43 + + 46
----
56

skipif mysql # not compatible
query I rowsort label-172
SELECT + 89 + - 78 + - COUNT ( * ) + 31 / 43 + + 46
----
56

query I rowsort
SELECT + + 19 * 83 col2
----
1577

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

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

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

skipif mysql # not compatible
query II rowsort label-175
SELECT ALL - 61 AS col1, - SUM ( ALL - + 44 )
----
-61
44

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

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL + 39 - + COUNT ( * ) AS col1
----
38

query I rowsort
SELECT ALL + 75 * + 35 + ( + - 7 ) AS col0
----
2618

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT ALL - 58 - - 94 + COALESCE ( + 9, + 52 + - + MIN( DISTINCT + 21 ) ) * 59 * - - COUNT( * ) + 73 + 40
----
680

skipif mysql # not compatible
query I rowsort label-178
SELECT ALL - 58 - - 94 + COALESCE ( + 9, + 52 + - + MIN ( DISTINCT + 21 ) ) * 59 * - - COUNT ( * ) + 73 + 40
----
680

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT + + 25 * - 46 * + COUNT( * ) * - 52 + + - 51 * + + 22
----
58678

skipif mysql # not compatible
query I rowsort label-179
SELECT + + 25 * - 46 * + COUNT ( * ) * - 52 + + - 51 * + + 22
----
58678

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-182
SELECT 3 AS col1, 60 DIV - 48 + ( - - 9 ) * 28 * + + 44 * 14 col1
----
3
155231

skipif mysql # not compatible
query II rowsort label-182
SELECT 3 AS col1, 60 / - 48 + ( - - 9 ) * 28 * + + 44 * 14 col1
----
3
155231

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT ALL + CASE - COUNT( * ) WHEN 56 * + 88 THEN NULL ELSE - - 77 END AS col0
----
77

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL + CASE - COUNT ( * ) WHEN 56 * + 88 THEN NULL ELSE - - 77 END AS col0
----
77

query II rowsort
SELECT ALL - 66, 32 AS col2
----
-66
32

query I rowsort
SELECT ALL + 77 * + 15
----
1155

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

skipif mysql # not compatible
query I rowsort label-187
SELECT - COUNT ( * ) / + 2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT DISTINCT ( + - COALESCE ( + 61, + 94, - + 15 * - + 53 ) ) DIV + ( + + 89 )
----
0

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT ( + - COALESCE ( + 61, + 94, - + 15 * - + 53 ) ) / + ( + + 89 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-189
SELECT 14 DIV - COUNT( * ) + + - 32
----
-46

skipif mysql # not compatible
query I rowsort label-189
SELECT 14 / - COUNT ( * ) + + - 32
----
-46

query I rowsort
SELECT NULLIF ( - 81, - 44 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT + 84 + - - MIN( - 50 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-191
SELECT + 84 + - - MIN ( - 50 ) AS col1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-192
SELECT - CASE + + 99 WHEN - - CAST( 27 AS SIGNED ) THEN + 42 END * + + ( + 20 ) / - - NULLIF ( + ( - 47 ), + 64 ) * + 47 + - + 53 + + - 66 + + 34 * + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-192
SELECT - CASE + + 99 WHEN - - CAST ( 27 AS INTEGER ) THEN + 42 END * + + ( + 20 ) / - - NULLIF ( + ( - 47 ), + 64 ) * + 47 + - + 53 + + - 66 + + 34 * + 44 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-193
SELECT - 61 + ( - 13 ) + 36 + + + 96 * + - 66 + 0 * + - CAST( 52 AS SIGNED ) * - 78
----
-6374

skipif mysql # not compatible
query I rowsort label-193
SELECT - 61 + ( - 13 ) + 36 + + + 96 * + - 66 + 0 * + - CAST ( 52 AS INTEGER ) * - 78
----
-6374

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-194
SELECT NULLIF ( - 30, 28 + 87 - MIN( 89 ) - - 97 / - CAST( NULL AS SIGNED ) ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-194
SELECT NULLIF ( - 30, 28 + 87 - MIN ( 89 ) - - 97 / - CAST ( NULL AS INTEGER ) ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL 51 * + + MIN( ALL - 3 ) + 2
----
-151

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL 51 * + + MIN ( ALL - 3 ) + 2
----
-151

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-196
SELECT + 70 * - 34 * - 41 - - - 60 + - + 62 + + COUNT( * ) DIV + 94 AS col1, 9 * + 36 + + 46 col1
----
97458
370

skipif mysql # not compatible
query II rowsort label-196
SELECT + 70 * - 34 * - 41 - - - 60 + - + 62 + + COUNT ( * ) / + 94 AS col1, 9 * + 36 + + 46 col1
----
97458
370

query I rowsort
SELECT 51 * + 31 + - 93 AS col1
----
1488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-198
SELECT DISTINCT 70 * + CAST( + - 30 AS SIGNED ) + + COUNT( * ) + - + 30 * 3 * + + ( + - 10 ) * - ( + 5 ) AS col2
----
-6599

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT 70 * + CAST ( + - 30 AS INTEGER ) + + COUNT ( * ) + - + 30 * 3 * + + ( + - 10 ) * - ( + 5 ) AS col2
----
-6599

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-199
SELECT - 7 + - MAX( DISTINCT 62 ) DIV COALESCE ( - COUNT( - 56 ), + NULLIF ( + 56, + COUNT( * ) * - + 56 ) * - 30 * + NULLIF ( - 89, - ( 96 ) * + COUNT( DISTINCT + 70 ) * + + 12 * + 28 + - - 82 ) * + 50 ) * 4 AS col0
----
241

skipif mysql # not compatible
query I rowsort label-199
SELECT - 7 + - MAX ( DISTINCT 62 ) / COALESCE ( - COUNT ( - 56 ), + NULLIF ( + 56, + COUNT ( * ) * - + 56 ) * - 30 * + NULLIF ( - 89, - ( 96 ) * + COUNT ( DISTINCT + 70 ) * + + 12 * + 28 + - - 82 ) * + 50 ) * 4 AS col0
----
241

onlyif mysql # aggregate syntax: 
query II rowsort label-200
SELECT - 94 + 11, - COUNT( * ) AS col1
----
-83
-1

skipif mysql # not compatible
query II rowsort label-200
SELECT - 94 + 11, - COUNT ( * ) AS col1
----
-83
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT + - ( + - ( - - NULLIF ( + ( - 86 ), + - COALESCE ( - 56, COUNT( * ) ) ) ) )
----
-86

skipif mysql # not compatible
query I rowsort label-201
SELECT + - ( + - ( - - NULLIF ( + ( - 86 ), + - COALESCE ( - 56, COUNT ( * ) ) ) ) )
----
-86

query II rowsort
SELECT + 77 + - 91, 79 + + 11 AS col2
----
-14
90

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT ALL - 90 * + ( 62 ) + 99 + + + COUNT( * ) + + 62 * + - COALESCE ( 30, 91 * - CASE + ( + ( + ( + 51 ) ) ) WHEN + 44 / 35 THEN - 45 ELSE NULL END, - 86 * + MAX( + - ( 99 ) ) * COUNT( * ) * + ( 10 ) * 47 * 4 * + 4 + + 76 * + + 35 ) * ( + 28 * - COUNT( * ) ) + - 99
----
46501

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL - 90 * + ( 62 ) + 99 + + + COUNT ( * ) + + 62 * + - COALESCE ( 30, 91 * - CASE + ( + ( + ( + 51 ) ) ) WHEN + 44 / 35 THEN - 45 ELSE NULL END, - 86 * + MAX ( + - ( 99 ) ) * COUNT ( * ) * + ( 10 ) * 47 * 4 * + 4 + + 76 * + + 35 ) * ( + 28 * - COUNT ( * ) ) + - 99
----
46501

query I rowsort
SELECT - - 65 * 58 AS col2
----
3770

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-205
SELECT ALL + COUNT( DISTINCT - - 4 ) DIV + 25 + 8 col2, + 82 * - - MAX( - 22 )
----
8
-1804

skipif mysql # not compatible
query II rowsort label-205
SELECT ALL + COUNT ( DISTINCT - - 4 ) / + 25 + 8 col2, + 82 * - - MAX ( - 22 )
----
8
-1804

onlyif mysql # DIV for integer division: 
query I rowsort label-206
SELECT DISTINCT - 68 - + 75 DIV - 86
----
-68

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT - 68 - + 75 / - 86
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT ALL + 9 * COUNT( * ) + + + ( - + 70 )
----
-61

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL + 9 * COUNT ( * ) + + + ( - + 70 )
----
-61

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

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT + COUNT ( + 18 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT - 6 + CASE - 23 WHEN - + 57 THEN COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-209
SELECT - 6 + CASE - 23 WHEN - + 57 THEN COUNT ( * ) END col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-211
SELECT + 80 DIV - ( - 54 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-211
SELECT + 80 / - ( - 54 ) col1
----
1

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

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

query I rowsort
SELECT - - 63 + 59 + - 84 AS col0
----
38

query II rowsort
SELECT ALL - ( + 23 ) col2, + 12 AS col1
----
-23
12

query I rowsort
SELECT + - 72 + - 61 + + 94
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-216
SELECT ALL + 2 * + COUNT( * ), 67 col1
----
2
67

skipif mysql # not compatible
query II rowsort label-216
SELECT ALL + 2 * + COUNT ( * ), 67 col1
----
2
67

query I rowsort
SELECT + 21 + 45
----
66

query II rowsort
SELECT DISTINCT 18 AS col1, 71 * 84 * + + 89 AS col2
----
18
530796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-219
SELECT ALL NULLIF ( - 65, + 34 * + 7 * 39 * 12 * - 73 / + + COUNT( * ) ) + + 14 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL NULLIF ( - 65, + 34 * + 7 * 39 * 12 * - 73 / + + COUNT ( * ) ) + + 14 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT + COUNT( * ) + + + 45 AS col1
----
46

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

query II rowsort
SELECT ALL + 97 AS col1, 52 * + 95 + + 28
----
97
4968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-222
SELECT CAST( - 47 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-222
SELECT CAST ( - 47 AS INTEGER )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-223
SELECT ALL - COUNT( * ) DIV + MIN( - 96 ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL - COUNT ( * ) / + MIN ( - 96 ) + - COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-224
SELECT ALL 91 DIV + ( - 33 ) + - ( - 70 ) AS col2, + 69 * 25 col0
----
68
1725

skipif mysql # not compatible
query II rowsort label-224
SELECT ALL 91 / + ( - 33 ) + - ( - 70 ) AS col2, + 69 * 25 col0
----
68
1725

onlyif mysql # DIV for integer division: 
query I rowsort label-225
SELECT ALL - 31 DIV - 25 + + 47 * 68 + + 30
----
3227

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL - 31 / - 25 + + 47 * 68 + + 30
----
3227

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT + 19 - + + SUM( ALL - 87 ) AS col1
----
106

skipif mysql # not compatible
query I rowsort label-228
SELECT + 19 - + + SUM ( ALL - 87 ) AS col1
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-229
SELECT 51 DIV - + MIN( - ( - 67 ) )
----
0

skipif mysql # not compatible
query I rowsort label-229
SELECT 51 / - + MIN ( - ( - 67 ) )
----
0

query I rowsort
SELECT 96 + - 68 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT + NULLIF ( - - 4, + - NULLIF ( + 68, - 62 ) + - + 80 * - COUNT( * ) * + 69 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-231
SELECT + NULLIF ( - - 4, + - NULLIF ( + 68, - 62 ) + - + 80 * - COUNT ( * ) * + 69 ) AS col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT + 85 * - + 63 + 47 DIV + COALESCE ( + 74, 3 )
----
-5355

skipif mysql # not compatible
query I rowsort label-232
SELECT + 85 * - + 63 + 47 / + COALESCE ( + 74, 3 )
----
-5355

query I rowsort
SELECT + + ( ( + 82 ) ) AS col1
----
82

query I rowsort
SELECT ALL - 30 * + 92
----
-2760

query I rowsort
SELECT 42 + - 54 - + 25 + + 76 AS col1
----
39

query II rowsort
SELECT DISTINCT + - ( - - 6 ) - 77 * 44 * + - 60, + NULLIF ( + - 93, - 42 * 59 * + + 15 + - 62 + 37 ) col0
----
203274
-93

query I rowsort
SELECT DISTINCT - + 2 AS col1
----
-2

query I rowsort
SELECT - 95 - - 97
----
2

query I rowsort
SELECT - - 80 col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT COUNT( * ) + - 44 * - 97 + + CASE 21 WHEN 6 THEN 25 ELSE + 89 * 91 - 0 * + - 0 * - - COUNT( * ) END col1
----
12368

skipif mysql # not compatible
query I rowsort label-240
SELECT COUNT ( * ) + - 44 * - 97 + + CASE 21 WHEN 6 THEN 25 ELSE + 89 * 91 - 0 * + - 0 * - - COUNT ( * ) END col1
----
12368

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT SUM( + CASE - 58 WHEN + 55 * 92 + - 68 THEN 37 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT SUM ( + CASE - 58 WHEN + 55 * 92 + - 68 THEN 37 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT - - MAX( 21 )
----
21

skipif mysql # not compatible
query I rowsort label-242
SELECT - - MAX ( 21 )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-243
SELECT DISTINCT + - 30 DIV + 43 * + 76 col1
----
0

skipif mysql # not compatible
query I rowsort label-243
SELECT DISTINCT + - 30 / + 43 * + 76 col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-245
SELECT DISTINCT - - 54 * + 17 * + 60 * - COUNT( * ) * 78 col1, 61 + 60
----
-4296240
121

skipif mysql # not compatible
query II rowsort label-245
SELECT DISTINCT - - 54 * + 17 * + 60 * - COUNT ( * ) * 78 col1, 61 + 60
----
-4296240
121

query I rowsort
SELECT 7 - + 96
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-247
SELECT 45 DIV - - 61
----
0

skipif mysql # not compatible
query I rowsort label-247
SELECT 45 / - - 61
----
0

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

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

query II rowsort
SELECT - 66 AS col1, 8 AS col2
----
-66
8

query I rowsort
SELECT ALL ( + 5 ) + + 4
----
9

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

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL 55 / + COUNT ( * )
----
55

query I rowsort
SELECT 42 - + 42 col1
----
0

query I rowsort
SELECT ALL 49 + 97 AS col2
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-254
SELECT CASE + 13 WHEN - 93 * 33 + CAST( NULL AS SIGNED ) + + + 79 + - - 46 - - 51 * AVG ( DISTINCT + - 13 ) * + - 15 * + ( 11 ) * - 95 + COUNT( * ) + - + AVG ( ALL - CAST( NULL AS SIGNED ) ) * - + 40 + CASE + MAX( - 53 ) WHEN - 58 THEN 81 WHEN - + COALESCE ( + COUNT( * ), - + 70 ) * + 63 * - 59 THEN NULL WHEN 9 THEN NULL END THEN - 6 END * + 82 / 98 + - ( + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-254
SELECT CASE + 13 WHEN - 93 * 33 + CAST ( NULL AS INTEGER ) + + + 79 + - - 46 - - 51 * AVG ( DISTINCT + - 13 ) * + - 15 * + ( 11 ) * - 95 + COUNT ( * ) + - + AVG ( ALL - CAST ( NULL AS INTEGER ) ) * - + 40 + CASE + MAX ( - 53 ) WHEN - 58 THEN 81 WHEN - + COALESCE ( + COUNT ( * ), - + 70 ) * + 63 * - 59 THEN NULL WHEN 9 THEN NULL END THEN - 6 END * + 82 / 98 + - ( + 53 )
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-255
SELECT DISTINCT - 99 AS col0, + 17 AS col2, MAX( DISTINCT - + 77 ) + + COALESCE ( 37, + + 27 ) * - - 39 * - ( - NULLIF ( 1, 80 + + 93 / + 63 * - 20 ) ) AS col0
----
-99
17
1366

skipif mysql # not compatible
query III rowsort label-255
SELECT DISTINCT - 99 AS col0, + 17 AS col2, MAX ( DISTINCT - + 77 ) + + COALESCE ( 37, + + 27 ) * - - 39 * - ( - NULLIF ( 1, 80 + + 93 / + 63 * - 20 ) ) AS col0
----
-99
17
1366

query II rowsort
SELECT 76 AS col0, + 62 * 31 col2
----
76
1922

query II rowsort
SELECT ALL - 15 AS col2, + 70 + - ( + ( - - 2 ) )
----
-15
68

query I rowsort
SELECT 51 * - + 11 - - 43 + 46 AS col1
----
-472

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT 60 + - - COALESCE ( 15, + - COUNT( * ) * - 59 * - - 48 - - 0 ) + - 9 + - 74 + + + 21 * CASE - 55 WHEN + - 94 + + COUNT( * ) THEN NULL WHEN + + 70 + 80 THEN + 14 END / + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-259
SELECT 60 + - - COALESCE ( 15, + - COUNT ( * ) * - 59 * - - 48 - - 0 ) + - 9 + - 74 + + + 21 * CASE - 55 WHEN + - 94 + + COUNT ( * ) THEN NULL WHEN + + 70 + 80 THEN + 14 END / + - 75
----
NULL

query I rowsort
SELECT 96 * + 64
----
6144

query II rowsort
SELECT ALL - 36, 29 AS col2
----
-36
29

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT + NULLIF ( ( - 68 ), - - 48 * + COUNT( * ) + - 20 * + 15 * + 34 * + 59 + + - COUNT( * ) * - MAX( + 43 ) + - 97 - + + MAX( + - ( + 45 ) ) ) * + - CASE WHEN NOT ( - ( - 48 ) ) IS NOT NULL THEN - COALESCE ( - 14, - + 33 ) END + - COALESCE ( COALESCE ( - 41, + MIN( ALL 98 ), + 5, 29 ), 99 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-262
SELECT + NULLIF ( ( - 68 ), - - 48 * + COUNT ( * ) + - 20 * + 15 * + 34 * + 59 + + - COUNT ( * ) * - MAX ( + 43 ) + - 97 - + + MAX ( + - ( + 45 ) ) ) * + - CASE WHEN NOT ( - ( - 48 ) ) IS NOT NULL THEN - COALESCE ( - 14, - + 33 ) END + - COALESCE ( COALESCE ( - 41, + MIN ( ALL 98 ), + 5, 29 ), 99 ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-263
SELECT + 53 / - 45 / + - 14 + 26 * + CAST( NULL AS SIGNED ) * 64 - 35 + 36 / + + CAST( - 80 AS SIGNED ) * 88 * 48 * 47 + - 45 - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-263
SELECT + 53 / - 45 / + - 14 + 26 * + CAST ( NULL AS INTEGER ) * 64 - 35 + 36 / + + CAST ( - 80 AS INTEGER ) * 88 * 48 * 47 + - 45 - - 87
----
NULL

query II rowsort
SELECT DISTINCT - 85 AS col0, 23 AS col0
----
-85
23

onlyif mysql # DIV for integer division: 
query I rowsort label-265
SELECT + 65 DIV - + 61 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-265
SELECT + 65 / - + 61 AS col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-267
SELECT 16, + MAX( - + 59 ) + + 40 + + 50 col2
----
16
31

skipif mysql # not compatible
query II rowsort label-267
SELECT 16, + MAX ( - + 59 ) + + 40 + + 50 col2
----
16
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-268
SELECT ALL - 27 * + ( - COUNT( * ) ) * + MIN( DISTINCT - - CAST( + 19 AS SIGNED ) ) AS col1, - 79 AS col1, - 94 - + + ( 15 ) + - + ( + + 44 ) * - + 46 col0
----
513
-79
1915

skipif mysql # not compatible
query III rowsort label-268
SELECT ALL - 27 * + ( - COUNT ( * ) ) * + MIN ( DISTINCT - - CAST ( + 19 AS INTEGER ) ) AS col1, - 79 AS col1, - 94 - + + ( 15 ) + - + ( + + 44 ) * - + 46 col0
----
513
-79
1915

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

skipif mysql # not compatible
query I rowsort label-269
SELECT - COUNT ( * ) / + 24
----
0

query II rowsort
SELECT COALESCE ( - COALESCE ( + 27, + 51 ), + - 58 + - - 51 ) AS col2, 51 AS col2
----
-27
51

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT + 24 - - NULLIF ( + 54, - 97 * + + COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-271
SELECT + 24 - - NULLIF ( + 54, - 97 * + + COUNT ( * ) )
----
78

query I rowsort
SELECT DISTINCT - 24 * + 62 + - 49
----
-1537

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT ALL NULLIF ( + CASE - - AVG ( ALL + 50 ) WHEN - 82 THEN + 98 ELSE NULL END, + - 68 + - CASE + ( + - 14 ) WHEN ( + 55 ) THEN - - 75 WHEN + COUNT( * ) THEN NULL ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL NULLIF ( + CASE - - AVG ( ALL + 50 ) WHEN - 82 THEN + 98 ELSE NULL END, + - 68 + - CASE + ( + - 14 ) WHEN ( + 55 ) THEN - - 75 WHEN + COUNT ( * ) THEN NULL ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT + 51 * + 26
----
1326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-275
SELECT + 90 + - - 44 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-275
SELECT + 90 + - - 44 + + CAST ( NULL AS INTEGER )
----
NULL

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

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

query II rowsort
SELECT 52 - 42, + 7 AS col2
----
10
7

query I rowsort
SELECT 61 * - 87 * + 83 * + 4
----
-1761924

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

skipif mysql # not compatible
query I rowsort label-279
SELECT 65 + + CAST ( NULL AS INTEGER ) - 23
----
NULL

query I rowsort
SELECT DISTINCT - 73 * - + 50 AS col0
----
3650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-281
SELECT ALL - 55 + + COALESCE ( ( - - 17 ), 50 * - - 82 - + ( - COUNT( * ) ), + 25 ) + - NULLIF ( - 14, 91 + - 10 ) + - + COUNT( * ) + 12 + 8 * + + CAST( - 98 AS SIGNED ) * 9 + NULLIF ( - - CAST( - - 3 AS SIGNED ), + CAST( - NULLIF ( - 43, - 41 * - + 36 + - 61 ) AS SIGNED ) ) * + - 16 + - COUNT( * ) - - - ( - 11 )
----
-7107

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL - 55 + + COALESCE ( ( - - 17 ), 50 * - - 82 - + ( - COUNT ( * ) ), + 25 ) + - NULLIF ( - 14, 91 + - 10 ) + - + COUNT ( * ) + 12 + 8 * + + CAST ( - 98 AS INTEGER ) * 9 + NULLIF ( - - CAST ( - - 3 AS INTEGER ), + CAST ( - NULLIF ( - 43, - 41 * - + 36 + - 61 ) AS INTEGER ) ) * + - 16 + - COUNT ( * ) - - - ( - 11 )
----
-7107

query I rowsort
SELECT 51 + + - 54
----
-3

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

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

query I rowsort
SELECT 61 + - - 7 AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-285
SELECT ALL - 56 - + - 95 DIV + - 34 + - COUNT( * ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL - 56 - + - 95 / + - 34 + - COUNT ( * ) AS col1
----
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-286
SELECT 41 DIV CAST( - - 67 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-286
SELECT 41 / CAST ( - - 67 AS INTEGER )
----
0

query I rowsort
SELECT 77 * + 85 AS col1
----
6545

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT DISTINCT 88 * - 69 - - MAX( + + 54 ) * 86 AS col0
----
-1428

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT 88 * - 69 - - MAX ( + + 54 ) * 86 AS col0
----
-1428

query I rowsort
SELECT COALESCE ( - ( + 24 ), 0, 14 * - + 13 )
----
-24

query I rowsort
SELECT ALL + NULLIF ( + - 62, - + 18 ) AS col1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-295
SELECT ALL - COUNT( + + 82 ) * - AVG ( ALL - 77 ) * - - 25 / + + 77 * 16 * + + CAST( NULL AS DECIMAL ) - 57 + + ( 76 ) + - ( + 31 ) * 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-295
SELECT ALL - COUNT ( + + 82 ) * - AVG ( ALL - 77 ) * - - 25 / + + 77 * 16 * + + CAST ( NULL AS REAL ) - 57 + + ( 76 ) + - ( + 31 ) * 18 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-296
SELECT - + 16 - - CASE 72 WHEN 92 - NULLIF ( + - CAST( NULL AS SIGNED ), - - 95 ) - + + 77 + - ( - 74 ) + + - NULLIF ( - 81, + + 57 DIV + 31 - - - 30 ) * - CAST( NULL AS SIGNED ) + + + 35 THEN + COUNT( * ) WHEN - - 24 + 80 * - 80 DIV - SUM( ALL - + 37 ) THEN COUNT( * ) * - ( - 18 ) DIV + + 80 + - 61 ELSE - 81 END
----
-97

skipif mysql # not compatible
query I rowsort label-296
SELECT - + 16 - - CASE 72 WHEN 92 - NULLIF ( + - CAST ( NULL AS INTEGER ), - - 95 ) - + + 77 + - ( - 74 ) + + - NULLIF ( - 81, + + 57 / + 31 - - - 30 ) * - CAST ( NULL AS INTEGER ) + + + 35 THEN + COUNT ( * ) WHEN - - 24 + 80 * - 80 / - SUM ( ALL - + 37 ) THEN COUNT ( * ) * - ( - 18 ) / + + 80 + - 61 ELSE - 81 END
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-297
SELECT ALL 2 * - 54 AS col1, COUNT( * ) + - 97 col2
----
-108
-96

skipif mysql # not compatible
query II rowsort label-297
SELECT ALL 2 * - 54 AS col1, COUNT ( * ) + - 97 col2
----
-108
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-298
SELECT - 72 * + 23 + - CAST( - 2 AS SIGNED )
----
-1654

skipif mysql # not compatible
query I rowsort label-298
SELECT - 72 * + 23 + - CAST ( - 2 AS INTEGER )
----
-1654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-299
SELECT ( - COALESCE ( - ( CAST( NULL AS SIGNED ) ), - - ( - - 17 ) + - ( - + 67 ) + 69 - - + COUNT( * ) + + 2 * + 29 DIV + 12 + 4 + 47 + 96 * - - 97 * + 48 * 61 ) ) AS col1
----
-27265745

skipif mysql # not compatible
query I rowsort label-299
SELECT ( - COALESCE ( - ( CAST ( NULL AS INTEGER ) ), - - ( - - 17 ) + - ( - + 67 ) + 69 - - + COUNT ( * ) + + 2 * + 29 / + 12 + 4 + 47 + 96 * - - 97 * + 48 * 61 ) ) AS col1
----
-27265745

onlyif mysql # aggregate syntax: 
query II rowsort label-300
SELECT + COUNT( * ) - 61 AS col1, 90 AS col0
----
-60
90

skipif mysql # not compatible
query II rowsort label-300
SELECT + COUNT ( * ) - 61 AS col1, 90 AS col0
----
-60
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-301
SELECT DISTINCT + - 42 * + + 51 * + 10 * + CAST( NULL AS SIGNED ) * - 94 * - + ( - 25 ) * COUNT( * ) + + + COUNT( * ) + - AVG ( + - 41 ) + 6 + + + 31 + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT + - 42 * + + 51 * + 10 * + CAST ( NULL AS INTEGER ) * - 94 * - + ( - 25 ) * COUNT ( * ) + + + COUNT ( * ) + - AVG ( + - 41 ) + 6 + + + 31 + + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-302
SELECT ALL - + 29 * 95 + + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL - + 29 * 95 + + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-303
SELECT + + 9 DIV 24 * + + 89 + 76
----
76

skipif mysql # not compatible
query I rowsort label-303
SELECT + + 9 / 24 * + + 89 + 76
----
76

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-305
SELECT ALL COALESCE ( + 96, - 6, - 45 ) * + + ( - 51 ) DIV + - COUNT( * ) - - + ( + - 98 )
----
4798

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL COALESCE ( + 96, - 6, - 45 ) * + + ( - 51 ) / + - COUNT ( * ) - - + ( + - 98 )
----
4798

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT + COUNT( * ) * + + 36 + 87
----
123

skipif mysql # not compatible
query I rowsort label-306
SELECT + COUNT ( * ) * + + 36 + 87
----
123

query I rowsort
SELECT - ( 8 ) col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-308
SELECT DISTINCT CASE - - 54 WHEN - SUM( DISTINCT 16 ) - + + SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) / + 15 THEN - 59 END AS col1, 74 + + + 68
----
NULL
142

skipif mysql # not compatible
query II rowsort label-308
SELECT DISTINCT CASE - - 54 WHEN - SUM ( DISTINCT 16 ) - + + SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) / + 15 THEN - 59 END AS col1, 74 + + + 68
----
NULL
142

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

skipif mysql # not compatible
query II rowsort label-309
SELECT DISTINCT 72 AS col0, COUNT ( * ) * COUNT ( * ) AS col0
----
72
1

query II rowsort
SELECT 9 AS col1, + 85
----
9
85

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

skipif mysql # not compatible
query I rowsort label-311
SELECT + COUNT ( * ) - - 63 AS col0
----
64

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

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

query II rowsort
SELECT - 31 col2, - 26
----
-31
-26

query II rowsort
SELECT 1 col1, ( - 42 ) AS col2
----
1
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT - COUNT( * ) * - 21 * - - 16
----
336

skipif mysql # not compatible
query I rowsort label-315
SELECT - COUNT ( * ) * - 21 * - - 16
----
336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-316
SELECT ALL - 25 * - + 62 * - - 8 DIV - COUNT( * )
----
-12400

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL - 25 * - + 62 * - - 8 / - COUNT ( * )
----
-12400

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT - COUNT( ALL - - 89 ) - - + 55 - + + 22 * + - 94
----
2122

skipif mysql # not compatible
query I rowsort label-317
SELECT - COUNT ( ALL - - 89 ) - - + 55 - + + 22 * + - 94
----
2122

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT ALL + 34 * - + 57 * + COUNT( * ) * + - 98 AS col0
----
189924

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL + 34 * - + 57 * + COUNT ( * ) * + - 98 AS col0
----
189924

onlyif mysql # DIV for integer division: 
query I rowsort label-319
SELECT - 36 DIV - 33
----
1

skipif mysql # not compatible
query I rowsort label-319
SELECT - 36 / - 33
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-320
SELECT - - COALESCE ( + - COUNT( 3 ), + - 2 ) * - - 6 - + 62 - - + 2 + - - 13 + 3 / + ( - 40 ) + + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-320
SELECT - - COALESCE ( + - COUNT ( 3 ), + - 2 ) * - - 6 - + 62 - - + 2 + - - 13 + 3 / + ( - 40 ) + + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-321
SELECT - - MIN( - 43 ) DIV + 58 + + 45 - - ( - COUNT( * ) ) + - 13 * + NULLIF ( + 26, - - 53 ) col1
----
-294

skipif mysql # not compatible
query I rowsort label-321
SELECT - - MIN ( - 43 ) / + 58 + + 45 - - ( - COUNT ( * ) ) + - 13 * + NULLIF ( + 26, - - 53 ) col1
----
-294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-322
SELECT - 61 + + COUNT( * ) + 7 DIV - 70 * - 36
----
-60

skipif mysql # not compatible
query I rowsort label-322
SELECT - 61 + + COUNT ( * ) + 7 / - 70 * - 36
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-323
SELECT ALL - 44 / - - 44 + - - CAST( NULL AS SIGNED ) * - 78 AS col0, 98 * + 65 + 86 - 49 + + + 44 * - 84 * - ( + ( + COUNT( * ) ) ) AS col2
----
NULL
10103

skipif mysql # not compatible
query II rowsort label-323
SELECT ALL - 44 / - - 44 + - - CAST ( NULL AS INTEGER ) * - 78 AS col0, 98 * + 65 + 86 - 49 + + + 44 * - 84 * - ( + ( + COUNT ( * ) ) ) AS col2
----
NULL
10103

query II rowsort
SELECT ALL + + 53 AS col0, 28 * COALESCE ( 19, - - 74 ) - 72 AS col0
----
53
460

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

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

query I rowsort
SELECT + + 80 + 71
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT ALL + + 34 * - - 69 - - + COUNT( * ) + + 26
----
2373

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL + + 34 * - - 69 - - + COUNT ( * ) + + 26
----
2373

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

query II rowsort
SELECT ALL + 24, 94 AS col2
----
24
94

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT + + COUNT( DISTINCT 94 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-330
SELECT + + COUNT ( DISTINCT 94 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-331
SELECT + 18 * - 91 + 96, MIN( - 86 ) * - 60 AS col0
----
-1542
5160

skipif mysql # not compatible
query II rowsort label-331
SELECT + 18 * - 91 + 96, MIN ( - 86 ) * - 60 AS col0
----
-1542
5160

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT ALL MIN( DISTINCT - 84 ) * + 69 + + + 88
----
-5708

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL MIN ( DISTINCT - 84 ) * + 69 + + + 88
----
-5708

query I rowsort
SELECT DISTINCT + 73 * + - 10
----
-730

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT + COUNT( * ) * - COALESCE ( 49, ( + 26 ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-334
SELECT + COUNT ( * ) * - COALESCE ( 49, ( + 26 ) ) AS col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-335
SELECT ALL 26 DIV ( + COALESCE ( - 13, COUNT( * ) ) ) * ( + 65 ) AS col1, COUNT( * ) AS col1
----
-130
1

skipif mysql # not compatible
query II rowsort label-335
SELECT ALL 26 / ( + COALESCE ( - 13, COUNT ( * ) ) ) * ( + 65 ) AS col1, COUNT ( * ) AS col1
----
-130
1

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

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

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

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

query I rowsort
SELECT ( + 68 ) * 8 AS col0
----
544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-339
SELECT CASE WHEN NOT NULL >= CAST( NULL AS SIGNED ) THEN NULL ELSE + CAST( + 28 AS SIGNED ) + - - 42 END + - COUNT( * ) - - - COUNT( * ) * - MAX( DISTINCT - 96 ) col0
----
-27

skipif mysql # not compatible
query I rowsort label-339
SELECT CASE WHEN NOT NULL >= CAST ( NULL AS INTEGER ) THEN NULL ELSE + CAST ( + 28 AS INTEGER ) + - - 42 END + - COUNT ( * ) - - - COUNT ( * ) * - MAX ( DISTINCT - 96 ) col0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-340
SELECT CAST( + 76 AS SIGNED ) - + 71
----
5

skipif mysql # not compatible
query I rowsort label-340
SELECT CAST ( + 76 AS INTEGER ) - + 71
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT 60 + - SUM( ALL + 22 )
----
38

skipif mysql # not compatible
query I rowsort label-341
SELECT 60 + - SUM ( ALL + 22 )
----
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT ALL COUNT( DISTINCT 52 ) * - 96
----
-96

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL COUNT ( DISTINCT 52 ) * - 96
----
-96

query I rowsort
SELECT ( 25 ) + ( ( - 13 ) ) col0
----
12

query I rowsort
SELECT DISTINCT 72 * 1 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT MIN( ALL - 20 ) + - 22 + + 8 + CASE 56 WHEN + 5 THEN + 42 END * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-346
SELECT MIN ( ALL - 20 ) + - 22 + + 8 + CASE 56 WHEN + 5 THEN + 42 END * COUNT ( * ) col2
----
NULL

query I rowsort
SELECT DISTINCT 66 * 69 col1
----
4554

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT 5 + + - 77 + - NULLIF ( - - 1, 29 + - - 56 + MAX( + 4 ) ) * + 25 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-348
SELECT 5 + + - 77 + - NULLIF ( - - 1, 29 + - - 56 + MAX ( + 4 ) ) * + 25 AS col0
----
-97

query I rowsort
SELECT + 1 + + + 10 AS col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-350
SELECT ALL + - 63 + - 84 + - 8 + + 76 - + ( + 69 ) * + 46, MAX( ALL 1 ) AS col1
----
-3253
1

skipif mysql # not compatible
query II rowsort label-350
SELECT ALL + - 63 + - 84 + - 8 + + 76 - + ( + 69 ) * + 46, MAX ( ALL 1 ) AS col1
----
-3253
1

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT + NULLIF ( - + 23, - 31 + 58 ) * - MIN( 98 )
----
2254

skipif mysql # not compatible
query I rowsort label-351
SELECT + NULLIF ( - + 23, - 31 + 58 ) * - MIN ( 98 )
----
2254

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-353
SELECT ALL - - NULLIF ( CAST( - + 17 AS SIGNED ), + NULLIF ( + 50, + + 3 * + 67 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL - - NULLIF ( CAST ( - + 17 AS INTEGER ), + NULLIF ( + 50, + + 3 * + 67 ) )
----
-17

query II rowsort
SELECT DISTINCT 46 + 79 AS col1, + 15 * + 97 * + 29 AS col0
----
125
42195

onlyif mysql # DIV for integer division: 
query I rowsort label-355
SELECT 73 DIV + 5
----
14

skipif mysql # not compatible
query I rowsort label-355
SELECT 73 / + 5
----
14

query I rowsort
SELECT 60 - + CASE - 72 WHEN - 80 THEN - 40 END * + + 91 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-357
SELECT + 17 * + - COALESCE ( + 54, - 38 + NULLIF ( COALESCE ( 70, - 47 * 14, 69 ), - ( + - CASE 37 WHEN - 24 THEN - - 37 ELSE + CAST( NULL AS DECIMAL ) / 56 / - + 28 / + 38 + - + ( + CAST( NULL AS SIGNED ) ) END ) * - - 39 - 31 ), ( + 93 ), - COUNT( ALL + 22 ) ) * - 19 + - - NULLIF ( + - 14, - + 37 - + - MIN( - 68 ) + + - 15 + 58 )
----
17428

skipif mysql # not compatible
query I rowsort label-357
SELECT + 17 * + - COALESCE ( + 54, - 38 + NULLIF ( COALESCE ( 70, - 47 * 14, 69 ), - ( + - CASE 37 WHEN - 24 THEN - - 37 ELSE + CAST ( NULL AS REAL ) / 56 / - + 28 / + 38 + - + ( + CAST ( NULL AS INTEGER ) ) END ) * - - 39 - 31 ), ( + 93 ), - COUNT ( ALL + 22 ) ) * - 19 + - - NULLIF ( + - 14, - + 37 - + - MIN ( - 68 ) + + - 15 + 58 )
----
17428

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-359
SELECT + COUNT( * ) DIV - MIN( + 97 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-359
SELECT + COUNT ( * ) / - MIN ( + 97 ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-360
SELECT ALL + 63 - + 37 + + - COUNT( + + CAST( NULL AS SIGNED ) ) * + + COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL + 63 - + 37 + + - COUNT ( + + CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) AS col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-361
SELECT DISTINCT - 5 DIV + 39 * - - 3
----
0

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT - 5 / + 39 * - - 3
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-362
SELECT DISTINCT - SUM( ALL - 30 ), 50 AS col0
----
30
50

skipif mysql # not compatible
query II rowsort label-362
SELECT DISTINCT - SUM ( ALL - 30 ), 50 AS col0
----
30
50

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT DISTINCT + - 41 - + + MIN( + 76 ) * + + 20
----
-1561

skipif mysql # not compatible
query I rowsort label-363
SELECT DISTINCT + - 41 - + + MIN ( + 76 ) * + + 20
----
-1561

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

query I rowsort
SELECT ALL + 69 - + + 51 AS col0
----
18

query I rowsort
SELECT 35 * + ( + 37 )
----
1295

query I rowsort
SELECT DISTINCT + 51 * + - 70
----
-3570

query II rowsort
SELECT ALL 19, + 21 AS col1
----
19
21

query I rowsort
SELECT 86 + - 35
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-370
SELECT CASE - 1 WHEN + COALESCE ( 21, + 27 * + + CAST( NULL AS SIGNED ) + + + MIN( ALL + CAST( NULL AS DECIMAL ) ) * + NULLIF ( + - 11, 62 + COUNT( * ) ) * + 36, 13 - - + 9, - 45 ) THEN - - 83 * - 18 END * - 88 + 92 * + 88 + + NULLIF ( COUNT( * ), 38 ) * - COUNT( * ) * + 38 * + + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-370
SELECT CASE - 1 WHEN + COALESCE ( 21, + 27 * + + CAST ( NULL AS INTEGER ) + + + MIN ( ALL + CAST ( NULL AS REAL ) ) * + NULLIF ( + - 11, 62 + COUNT ( * ) ) * + 36, 13 - - + 9, - 45 ) THEN - - 83 * - 18 END * - 88 + 92 * + 88 + + NULLIF ( COUNT ( * ), 38 ) * - COUNT ( * ) * + 38 * + + 64 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-371
SELECT 60 * + CAST( COUNT( DISTINCT + + 81 ) AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-371
SELECT 60 * + CAST ( COUNT ( DISTINCT + + 81 ) AS INTEGER )
----
60

query I rowsort
SELECT ALL 84 * NULLIF ( 93, - 27 - + 96 + - 40 )
----
7812

query I rowsort
SELECT DISTINCT + 52 * 43
----
2236

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

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

query I rowsort
SELECT ALL + 25 * - 80 AS col1
----
-2000

query II rowsort
SELECT ( 86 ) * - ( + 59 ) - - 19 AS col0, 29 + 9
----
-5055
38

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

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

skipif mysql # not compatible
query I rowsort label-378
SELECT COUNT ( * ) * + - 38 / - - 85 AS col1
----
0

query I rowsort
SELECT ALL 77 + - 39
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-380
SELECT 85 - - 6 DIV - - 98
----
85

skipif mysql # not compatible
query I rowsort label-380
SELECT 85 - - 6 / - - 98
----
85

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

skipif mysql # not compatible
query I rowsort label-381
SELECT - MAX ( DISTINCT - - 58 )
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-382
SELECT 95 DIV - - 33 col1
----
2

skipif mysql # not compatible
query I rowsort label-382
SELECT 95 / - - 33 col1
----
2

query I rowsort
SELECT ALL 69 + - 10 * 99
----
-921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-384
SELECT 19 AS col1, 64 * - 85 + 12 + + - COUNT( * ) + - CAST( + 48 AS SIGNED ) AS col1
----
19
-5477

skipif mysql # not compatible
query II rowsort label-384
SELECT 19 AS col1, 64 * - 85 + 12 + + - COUNT ( * ) + - CAST ( + 48 AS INTEGER ) AS col1
----
19
-5477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-385
SELECT DISTINCT - CAST( + 2 AS SIGNED ) * + - 91 * + 69
----
12558

skipif mysql # not compatible
query I rowsort label-385
SELECT DISTINCT - CAST ( + 2 AS INTEGER ) * + - 91 * + 69
----
12558

query I rowsort
SELECT 95 * - - 59 * + - ( + 40 )
----
-224200

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT ALL - 7 * - 41 + + COUNT( * ) + + MIN( CASE - 5 WHEN - 62 THEN 69 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL - 7 * - 41 + + COUNT ( * ) + + MIN ( CASE - 5 WHEN - 62 THEN 69 END )
----
NULL

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

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

query I rowsort
SELECT - 22 * 5 + - 29 * - 42 + 37 AS col2
----
1145

query I rowsort
SELECT ( 32 ) col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT MIN( ALL + - 35 ) + + 10 * + 97 + - - 83
----
1018

skipif mysql # not compatible
query I rowsort label-391
SELECT MIN ( ALL + - 35 ) + + 10 * + 97 + - - 83
----
1018

query I rowsort
SELECT + 27 * + + NULLIF ( 9, - + AVG ( ALL ( + 50 ) ) * 58 ) + - 34 - + 28
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-393
SELECT + 59 + - 56 * - 65 * + + CAST( NULL AS SIGNED ) - - CASE + + COUNT( * ) WHEN 27 - + + 80 THEN NULL ELSE - - 60 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-393
SELECT + 59 + - 56 * - 65 * + + CAST ( NULL AS INTEGER ) - - CASE + + COUNT ( * ) WHEN 27 - + + 80 THEN NULL ELSE - - 60 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-394
SELECT + 39 DIV + + 74 - + - 1 + 47 + + 8 * + - 69 * - 89 * + 11
----
540456

skipif mysql # not compatible
query I rowsort label-394
SELECT + 39 / + + 74 - + - 1 + 47 + + 8 * + - 69 * - 89 * + 11
----
540456

query I rowsort
SELECT ALL ( 87 ) * - 33 - 7 * + 54
----
-3249

query I rowsort
SELECT 98 * + + 14 * + 14
----
19208

query I rowsort
SELECT ALL + + 18 * 41 AS col0
----
738

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT + 3 * 19 * + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-398
SELECT + 3 * 19 * + COUNT ( * )
----
57

query I rowsort
SELECT - 9 * + 9
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-400
SELECT COUNT( * ) col0, 96
----
1
96

skipif mysql # not compatible
query II rowsort label-400
SELECT COUNT ( * ) col0, 96
----
1
96

query I rowsort
SELECT + 4 * + - 18 + + 64 * - - 67 col2
----
4216

query I rowsort
SELECT - 79 * - ( + - 93 )
----
-7347

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-403
SELECT + 92 * + 28 + + - CAST( + 0 AS SIGNED ) - 36 AS col0
----
2540

skipif mysql # not compatible
query I rowsort label-403
SELECT + 92 * + 28 + + - CAST ( + 0 AS INTEGER ) - 36 AS col0
----
2540

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT ALL 55 * - - COUNT( * ) * - COUNT( ALL 65 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL 55 * - - COUNT ( * ) * - COUNT ( ALL 65 ) AS col2
----
-55

query I rowsort
SELECT ALL - 66 + + + AVG ( - + 91 ) + + 6 + - CASE + + 32 WHEN - 8 + ( - ( + 65 ) ) THEN + + 47 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT DISTINCT - 93 DIV + - 84 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT - 93 / + - 84 AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-407
SELECT ALL MAX ( - 3 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-408
SELECT - CAST( NULL AS SIGNED ) + - MIN( DISTINCT + + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-408
SELECT - CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT + + 96 )
----
NULL

query I rowsort
SELECT DISTINCT ( - - 76 ) * + 5
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT - COUNT( * ) + - 90 col0
----
-91

skipif mysql # not compatible
query I rowsort label-410
SELECT - COUNT ( * ) + - 90 col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT ALL + COUNT( * ) + - 9
----
-8

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL + COUNT ( * ) + - 9
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-412
SELECT - CAST( + COUNT( * ) AS SIGNED ) + + ( - CAST( NULL AS SIGNED ) ), + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-412
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + + ( - CAST ( NULL AS INTEGER ) ), + COUNT ( * ) AS col2
----
NULL
1

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

skipif mysql # not compatible
query I rowsort label-413
SELECT + 89 - + 73 + + COUNT ( ALL 73 ) AS col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-414
SELECT - COUNT( * ), + 59 DIV - 42
----
-1
-1

skipif mysql # not compatible
query II rowsort label-414
SELECT - COUNT ( * ), + 59 / - 42
----
-1
-1

query I rowsort
SELECT ALL 30 * - + 97
----
-2910

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT ALL - 3 + + + MAX( DISTINCT + - 46 )
----
-49

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL - 3 + + + MAX ( DISTINCT + - 46 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT DISTINCT + - 16 + + COUNT( 17 ) - 33
----
-48

skipif mysql # not compatible
query I rowsort label-417
SELECT DISTINCT + - 16 + + COUNT ( 17 ) - 33
----
-48

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

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

query I rowsort
SELECT ALL 80 + - - 9 + + 0 + 82 AS col0
----
171

query I rowsort
SELECT - - 17 + 11
----
28

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

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

query I rowsort
SELECT + 72 * + 81 AS col0
----
5832

query I rowsort
SELECT + - 68 + 77
----
9

query II rowsort
SELECT - - 41 AS col0, 9 * + 89 AS col0
----
41
801

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-425
SELECT + 99 + 2 DIV CAST( AVG ( DISTINCT + 46 ) AS SIGNED ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-425
SELECT + 99 + 2 / CAST ( AVG ( DISTINCT + 46 ) AS INTEGER ) AS col0
----
99

query I rowsort
SELECT - 39 * + - 13 AS col1
----
507

query II rowsort
SELECT + 44 AS col0, 82
----
44
82

query I rowsort
SELECT + 99 * - 97 + - 49 + 78 AS col2
----
-9574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-429
SELECT + - COUNT( * ) col0, 27 + 0 + + SUM( - 84 ) * AVG ( DISTINCT + + 52 ) + + 21 / - - 79 - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-429
SELECT + - COUNT ( * ) col0, 27 + 0 + + SUM ( - 84 ) * AVG ( DISTINCT + + 52 ) + + 21 / - - 79 - CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT + MAX( - - 28 ) * + 19 * + 57
----
30324

skipif mysql # not compatible
query I rowsort label-430
SELECT + MAX ( - - 28 ) * + 19 * + 57
----
30324

onlyif mysql # DIV for integer division: 
query I rowsort label-431
SELECT ALL - 27 DIV - 16 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL - 27 / - 16 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT ALL NULLIF ( ( - ( + + 54 ) ), 96 ) * + COUNT( * ) * 87 - + 53
----
-4751

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL NULLIF ( ( - ( + + 54 ) ), 96 ) * + COUNT ( * ) * 87 - + 53
----
-4751

onlyif mysql # aggregate syntax: 
query II rowsort label-433
SELECT - 78, 35 + - COUNT( * ) * COUNT( * ) AS col0
----
-78
34

skipif mysql # not compatible
query II rowsort label-433
SELECT - 78, 35 + - COUNT ( * ) * COUNT ( * ) AS col0
----
-78
34

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT ALL + MAX( + 17 ) * - 66
----
-1122

skipif mysql # not compatible
query I rowsort label-437
SELECT ALL + MAX ( + 17 ) * - 66
----
-1122

query I rowsort
SELECT + 0 * - 78 - 71
----
-71

query I rowsort
SELECT - ( - 9 ) + + 50 * - 29 - 97 * + 35
----
-4836

query I rowsort
SELECT + 49 * - 34 AS col1
----
-1666

query I rowsort
SELECT ALL - 8 * + 27 + + 45 * 88 col0
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT DISTINCT COUNT( * ) * 61 + 12 * - + NULLIF ( - + 82, 90 * - 46 + - 0 ) + - 86
----
959

skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT COUNT ( * ) * 61 + 12 * - + NULLIF ( - + 82, 90 * - 46 + - 0 ) + - 86
----
959

onlyif mysql # DIV for integer division: 
query I rowsort label-443
SELECT ALL 8 DIV 56 * 76
----
0

skipif mysql # not compatible
query I rowsort label-443
SELECT ALL 8 / 56 * 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT DISTINCT COUNT( * ) * + + 61 * + 39 + + - 79
----
2300

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT COUNT ( * ) * + + 61 * + 39 + + - 79
----
2300

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-446
SELECT + ( + CASE ( COUNT( * ) ) WHEN - 72 DIV + + 21 THEN + - 29 END ), NULLIF ( - 69, 83 ) * - + CAST( + 94 AS SIGNED ) + + 72 + 89 DIV - 67 AS col1
----
NULL
6557

skipif mysql # not compatible
query II rowsort label-446
SELECT + ( + CASE ( COUNT ( * ) ) WHEN - 72 / + + 21 THEN + - 29 END ), NULLIF ( - 69, 83 ) * - + CAST ( + 94 AS INTEGER ) + + 72 + 89 / - 67 AS col1
----
NULL
6557

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-447
SELECT + MAX( + ( + 68 ) ) DIV - 53 + 94 AS col2, + 80 AS col1
----
93
80

skipif mysql # not compatible
query II rowsort label-447
SELECT + MAX ( + ( + 68 ) ) / - 53 + 94 AS col2, + 80 AS col1
----
93
80

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT COUNT( DISTINCT 66 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-448
SELECT COUNT ( DISTINCT 66 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT - MAX( + + 20 ) + + + 66 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-449
SELECT - MAX ( + + 20 ) + + + 66 AS col2
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-450
SELECT ALL ( + - NULLIF ( 71, - - CAST( NULL AS DECIMAL ) ) )
----
-71

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL ( + - NULLIF ( 71, - - CAST ( NULL AS REAL ) ) )
----
-71

query I rowsort
SELECT DISTINCT 0 + - 37 + 75 * + 73 AS col1
----
5438

onlyif mysql # aggregate syntax: 
query II rowsort label-452
SELECT DISTINCT MIN( DISTINCT - 66 ), - NULLIF ( + + 85, - - 56 ) AS col2
----
-66
-85

skipif mysql # not compatible
query II rowsort label-452
SELECT DISTINCT MIN ( DISTINCT - 66 ), - NULLIF ( + + 85, - - 56 ) AS col2
----
-66
-85

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

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

query I rowsort
SELECT ALL - - 27 + - 53
----
-26

query I rowsort
SELECT + 87 - ( - - 79 ) AS col2
----
8

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-457
SELECT - - CAST( 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-457
SELECT - - CAST ( 59 AS INTEGER )
----
59

query II rowsort
SELECT - 0 - - ( - 79 ) * + 12 * + 13 AS col2, - 76
----
-12324
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-459
SELECT - 70 * - SUM( ALL - CAST( NULL AS SIGNED ) ), + 9 AS col2
----
NULL
9

skipif mysql # not compatible
query II rowsort label-459
SELECT - 70 * - SUM ( ALL - CAST ( NULL AS INTEGER ) ), + 9 AS col2
----
NULL
9

query I rowsort
SELECT - 14 + + 64 AS col2
----
50

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-462
SELECT - - COUNT( * ) * CAST( NULL AS SIGNED ) + + + 24 * + - 75 * + 63 + - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-462
SELECT - - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + + 24 * + - 75 * + 63 + - 2 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-463
SELECT DISTINCT - + 26 * + 18 * + NULLIF ( SUM( ALL + CAST( NULL AS SIGNED ) ), + 21 ) + + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT - + 26 * + 18 * + NULLIF ( SUM ( ALL + CAST ( NULL AS INTEGER ) ), + 21 ) + + 50 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 9 * - 42 AS col1
----
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-465
SELECT ALL - 64 * + + ( - CAST( 96 AS SIGNED ) )
----
6144

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL - 64 * + + ( - CAST ( 96 AS INTEGER ) )
----
6144

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

skipif mysql # not compatible
query I rowsort label-466
SELECT CAST ( NULL AS REAL ) + + 76 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-467
SELECT COUNT( ( + + 58 ) ) * + ( - 40 ) DIV 28 - + + 30 - 51 + + - 92 AS col1
----
-174

skipif mysql # not compatible
query I rowsort label-467
SELECT COUNT ( ( + + 58 ) ) * + ( - 40 ) / 28 - + + 30 - 51 + + - 92 AS col1
----
-174

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-468
SELECT DISTINCT - ( 39 ) DIV - NULLIF ( + MIN( DISTINCT - 48 ), - SUM( 13 ) ) AS col2, - 61
----
0
-61

skipif mysql # not compatible
query II rowsort label-468
SELECT DISTINCT - ( 39 ) / - NULLIF ( + MIN ( DISTINCT - 48 ), - SUM ( 13 ) ) AS col2, - 61
----
0
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-469
SELECT ALL + COUNT( * ) + - COUNT( * ) + + 72, + COUNT( * ) DIV 93 + + 87 * - 66 + + 1 * - - COUNT( * ) AS col2, 23 AS col0
----
72
-5741
23

skipif mysql # not compatible
query III rowsort label-469
SELECT ALL + COUNT ( * ) + - COUNT ( * ) + + 72, + COUNT ( * ) / 93 + + 87 * - 66 + + 1 * - - COUNT ( * ) AS col2, 23 AS col0
----
72
-5741
23

query II rowsort
SELECT 50 AS col1, 94
----
50
94

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT DISTINCT 61 + 16 * - + 42 - ( COUNT( * ) ) + + 25 AS col0
----
-587

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT 61 + 16 * - + 42 - ( COUNT ( * ) ) + + 25 AS col0
----
-587

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-472
SELECT DISTINCT + 93 DIV CAST( 71 AS SIGNED ) col2
----
1

skipif mysql # not compatible
query I rowsort label-472
SELECT DISTINCT + 93 / CAST ( 71 AS INTEGER ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT + 83 * + 40 + SUM( DISTINCT + 33 ) + - 31
----
3322

skipif mysql # not compatible
query I rowsort label-473
SELECT + 83 * + 40 + SUM ( DISTINCT + 33 ) + - 31
----
3322

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT ALL 8 * + COUNT( * ) * + 26
----
208

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL 8 * + COUNT ( * ) * + 26
----
208

query I rowsort
SELECT DISTINCT 67 * 60 AS col2
----
4020

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT ALL 25 + - COUNT( * ) + + MIN( ALL COALESCE ( + 65, - - 67 * + 94 * - 48, - 45 * + 14 ) )
----
89

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL 25 + - COUNT ( * ) + + MIN ( ALL COALESCE ( + 65, - - 67 * + 94 * - 48, - 45 * + 14 ) )
----
89

query II rowsort
SELECT 44, + 62 AS col1
----
44
62

query I rowsort
SELECT ALL 2 + + ( + 25 ) - + CASE 58 WHEN + - 8 * - + 14 THEN + + 94 WHEN - + 13 THEN + 45 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-479
SELECT DISTINCT - 47, SUM( ALL - 56 ) * 2 - - 68 AS col2
----
-47
-44

skipif mysql # not compatible
query II rowsort label-479
SELECT DISTINCT - 47, SUM ( ALL - 56 ) * 2 - - 68 AS col2
----
-47
-44

query II rowsort
SELECT 93 AS col2, NULLIF ( + 76, - 40 ) * - + 74 * 29 + - + 4
----
93
-163100

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT 30 * - 53 * CASE + - SUM( ALL + 69 ) WHEN - 64 THEN + 80 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-481
SELECT 30 * - 53 * CASE + - SUM ( ALL + 69 ) WHEN - 64 THEN + 80 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-483
SELECT CAST( NULL AS SIGNED ) + + COALESCE ( MIN( DISTINCT - 95 ), + CAST( NULL AS SIGNED ), + ( - + 76 ) / - + 80 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-483
SELECT CAST ( NULL AS INTEGER ) + + COALESCE ( MIN ( DISTINCT - 95 ), + CAST ( NULL AS INTEGER ), + ( - + 76 ) / - + 80 ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-485
SELECT NULLIF ( + 5, 15 / - 18 * + COUNT( * ) - - 7 ) + + + CAST( NULL AS DECIMAL ) * + 28 + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-485
SELECT NULLIF ( + 5, 15 / - 18 * + COUNT ( * ) - - 7 ) + + + CAST ( NULL AS REAL ) * + 28 + 14
----
NULL

query II rowsort
SELECT - 1, + ( 11 ) AS col0
----
-1
11

onlyif mysql # aggregate syntax: 
query II rowsort label-487
SELECT ALL 5 AS col0, 44 * - + 92 + SUM( DISTINCT + - 45 ) * ( + 22 ) AS col2
----
5
-5038

skipif mysql # not compatible
query II rowsort label-487
SELECT ALL 5 AS col0, 44 * - + 92 + SUM ( DISTINCT + - 45 ) * ( + 22 ) AS col2
----
5
-5038

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-488
SELECT - 71 + 1 / - + CAST( NULL AS DECIMAL ) AS col0, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-488
SELECT - 71 + 1 / - + CAST ( NULL AS REAL ) AS col0, - COUNT ( * )
----
NULL
-1

query I rowsort
SELECT 3 * - 12 AS col1
----
-36

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

query I rowsort
SELECT 34 + ( - + 54 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT DISTINCT + 4 * + - MAX( DISTINCT - + 79 ) AS col1
----
316

skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT + 4 * + - MAX ( DISTINCT - + 79 ) AS col1
----
316

query I rowsort
SELECT 24 - - 38 AS col1
----
62

query I rowsort
SELECT ALL - 29 - + - 15 - - 23 * + 72
----
1642

query I rowsort
SELECT + 12 * - 71 AS col1
----
-852

query II rowsort
SELECT DISTINCT + 44 AS col2, 71
----
44
71

query I rowsort
SELECT 3 + + 57
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-498
SELECT + 39 DIV - 36 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-498
SELECT + 39 / - 36 AS col0
----
-1

query I rowsort
SELECT 49 + + 4 * + 27
----
157

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-501
SELECT - 63 AS col0, + 48 * - 77 + - MAX( + - 55 ) + - + 75 + - 47 * 98 DIV - COUNT( * ) - + 83 * - 78 * - + 9 AS col2
----
-63
-57376

skipif mysql # not compatible
query II rowsort label-501
SELECT - 63 AS col0, + 48 * - 77 + - MAX ( + - 55 ) + - + 75 + - 47 * 98 / - COUNT ( * ) - + 83 * - 78 * - + 9 AS col2
----
-63
-57376

query I rowsort
SELECT + 70 * 5 * 5 * - 66
----
-115500

query II rowsort
SELECT + 91, 98 AS col1
----
91
98

query II rowsort
SELECT DISTINCT 19, 9 * - - 62 AS col0
----
19
558

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-506
SELECT COALESCE ( + 81, CAST( 14 AS SIGNED ) - + 33 ) + - - 80 col2, + 9 - 94
----
161
-85

skipif mysql # not compatible
query II rowsort label-506
SELECT COALESCE ( + 81, CAST ( 14 AS INTEGER ) - + 33 ) + - - 80 col2, + 9 - 94
----
161
-85

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

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

query I rowsort
SELECT + 37 * - 76 * 37
----
-104044

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT ALL - 83 + - - 55 * + 3 * - MAX( 86 ) col0
----
-14273

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL - 83 + - - 55 * + 3 * - MAX ( 86 ) col0
----
-14273

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT DISTINCT + 25 * - 36 * - NULLIF ( - + 59, COUNT( * ) + ( - 73 ) ) AS col0
----
-53100

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT + 25 * - 36 * - NULLIF ( - + 59, COUNT ( * ) + ( - 73 ) ) AS col0
----
-53100

query I rowsort
SELECT DISTINCT - 33 + - 49 + 8
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-512
SELECT ALL + 79 + + ( COUNT( * ) ) DIV - 77 + - 59, + 20 - - + 8 DIV - 37 AS col2
----
20
20

skipif mysql # not compatible
query II rowsort label-512
SELECT ALL + 79 + + ( COUNT ( * ) ) / - 77 + - 59, + 20 - - + 8 / - 37 AS col2
----
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT ALL + 6 * CASE - - 92 WHEN - - NULLIF ( + 27, 90 * + + 82 + - 84 / + + 95 ) * ( + + 88 ) + 44 + + + ( - + SUM( + ( + + 36 ) ) ) + + - 48 * + - 10 + + - 8 * - - 14 THEN + 38 WHEN 82 THEN 4 ELSE 81 END
----
486

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL + 6 * CASE - - 92 WHEN - - NULLIF ( + 27, 90 * + + 82 + - 84 / + + 95 ) * ( + + 88 ) + 44 + + + ( - + SUM ( + ( + + 36 ) ) ) + + - 48 * + - 10 + + - 8 * - - 14 THEN + 38 WHEN 82 THEN 4 ELSE 81 END
----
486

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-515
SELECT ALL - 16 + + 60 + - 76 + - - 54 * + + COUNT( * ) AS col1, 23 + - + 95 * - 87
----
22
8288

skipif mysql # not compatible
query II rowsort label-515
SELECT ALL - 16 + + 60 + - 76 + - - 54 * + + COUNT ( * ) AS col1, 23 + - + 95 * - 87
----
22
8288

onlyif mysql # DIV for integer division: 
query I rowsort label-516
SELECT + 54 * 52 DIV - 47 - + 4 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-516
SELECT + 54 * 52 / - 47 - + 4 AS col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-517
SELECT NULLIF ( + 80, 18 ) * - 93 * - + COALESCE ( CAST( NULL AS SIGNED ), 67 + - 67 )
----
0

skipif mysql # not compatible
query I rowsort label-517
SELECT NULLIF ( + 80, 18 ) * - 93 * - + COALESCE ( CAST ( NULL AS INTEGER ), 67 + - 67 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-518
SELECT ALL + 44 DIV + 14
----
3

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL + 44 / + 14
----
3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-520
SELECT 24 - - 69 AS col1, ( - + 72 ) - COUNT( ALL + + 63 ) * - ( COUNT( * ) ) AS col1
----
93
-71

skipif mysql # not compatible
query II rowsort label-520
SELECT 24 - - 69 AS col1, ( - + 72 ) - COUNT ( ALL + + 63 ) * - ( COUNT ( * ) ) AS col1
----
93
-71

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-523
SELECT DISTINCT COALESCE ( + 84, + + 80 * - COUNT( * ), - + 90 * + COUNT( * ) + 39 ) * ( - 17 ) * - COUNT( * ) + - 65 DIV - 62
----
1429

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT COALESCE ( + 84, + + 80 * - COUNT ( * ), - + 90 * + COUNT ( * ) + 39 ) * ( - 17 ) * - COUNT ( * ) + - 65 / - 62
----
1429

query I rowsort
SELECT + 43 * + + COALESCE ( 84, - ( - 87 ) * + + 83 * - 25 + + 45 ) AS col1
----
3612

query I rowsort
SELECT + + CASE + 57 WHEN 21 THEN NULL WHEN + 11 THEN ( 13 ) ELSE - 5 END * 88 + - + 29
----
-469

onlyif mysql # aggregate syntax: 
query II rowsort label-526
SELECT ALL ( + COALESCE ( - + COUNT( * ), - + 83 * - COALESCE ( 97, - COUNT( * ) + - 36, - - 40 ) ) ) col1, 93 AS col2
----
-1
93

skipif mysql # not compatible
query II rowsort label-526
SELECT ALL ( + COALESCE ( - + COUNT ( * ), - + 83 * - COALESCE ( 97, - COUNT ( * ) + - 36, - - 40 ) ) ) col1, 93 AS col2
----
-1
93

query I rowsort
SELECT + 10 * + 85 AS col1
----
850

onlyif mysql # DIV for integer division: 
query I rowsort label-528
SELECT ALL + - COALESCE ( + 59, - 5 ) * 10 DIV - + 46 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL + - COALESCE ( + 59, - 5 ) * 10 / - + 46 AS col2
----
12

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

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

query I rowsort
SELECT ALL - 48 * + 2 * - + 41 AS col2
----
3936

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-532
SELECT - + COUNT( * ) DIV - 70 AS col1, - 82 AS col2
----
0
-82

skipif mysql # not compatible
query II rowsort label-532
SELECT - + COUNT ( * ) / - 70 AS col1, - 82 AS col2
----
0
-82

query I rowsort
SELECT + - 93 + - 72
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-534
SELECT - - CAST( - 85 AS SIGNED ) * CASE 59 WHEN + 12 THEN + - 36 WHEN + 0 THEN + NULLIF ( + + 21, 65 ) END - 68 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-534
SELECT - - CAST ( - 85 AS INTEGER ) * CASE 59 WHEN + 12 THEN + - 36 WHEN + 0 THEN + NULLIF ( + + 21, 65 ) END - 68 col2
----
NULL

query I rowsort
SELECT + + 18 + 38 AS col0
----
56

query I rowsort
SELECT ALL 95 + 38
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT DISTINCT + 54 + + + 90 + 99 * COUNT( * ) AS col1
----
243

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT + 54 + + + 90 + 99 * COUNT ( * ) AS col1
----
243

query I rowsort
SELECT ALL - 32 + - + 10 - - + 50
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT + COUNT( * ) - ( + 15 ) + 98 + - COUNT( * ) * + + COUNT( * ) + 40 - 9
----
114

skipif mysql # not compatible
query I rowsort label-539
SELECT + COUNT ( * ) - ( + 15 ) + 98 + - COUNT ( * ) * + + COUNT ( * ) + 40 - 9
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-540
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN 68 THEN 33 ELSE 51 * + 48 + + - ( - - 4 ) + COUNT( 33 ) + 80 - - ( ( - - 51 ) ) END
----
2576

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN 68 THEN 33 ELSE 51 * + 48 + + - ( - - 4 ) + COUNT ( 33 ) + 80 - - ( ( - - 51 ) ) END
----
2576

query I rowsort
SELECT + 91 * - NULLIF ( - 70, + ( + 59 ) )
----
6370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-542
SELECT ( - CASE 83 WHEN + MAX( + 91 ) THEN + 83 * - 30 * + - 82 * - - ( MAX( + CAST( - 94 AS SIGNED ) ) ) * - - NULLIF ( 71, - 90 ) * + CASE - - 46 WHEN + 87 THEN - 22 WHEN - - CASE + 84 WHEN + - 17 THEN + 39 / + COUNT( * ) * + 8 WHEN - 0 THEN + 50 ELSE NULL END * 69 THEN NULL END ELSE NULL END ) AS col0, 61 AS col1
----
NULL
61

skipif mysql # not compatible
query II rowsort label-542
SELECT ( - CASE 83 WHEN + MAX ( + 91 ) THEN + 83 * - 30 * + - 82 * - - ( MAX ( + CAST ( - 94 AS INTEGER ) ) ) * - - NULLIF ( 71, - 90 ) * + CASE - - 46 WHEN + 87 THEN - 22 WHEN - - CASE + 84 WHEN + - 17 THEN + 39 / + COUNT ( * ) * + 8 WHEN - 0 THEN + 50 ELSE NULL END * 69 THEN NULL END ELSE NULL END ) AS col0, 61 AS col1
----
NULL
61

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

onlyif mysql # DIV for integer division: 
query I rowsort label-544
SELECT 48 DIV + NULLIF ( - - 91, - 38 ) - + ( + - 59 ) - 62 * - - 15 * + 81
----
-75271

skipif mysql # not compatible
query I rowsort label-544
SELECT 48 / + NULLIF ( - - 91, - 38 ) - + ( + - 59 ) - 62 * - - 15 * + 81
----
-75271

query I rowsort
SELECT NULLIF ( + 99, - 43 )
----
99

query I rowsort
SELECT + 87 * + 57 + - 61
----
4898

onlyif mysql # aggregate syntax: 
query II rowsort label-547
SELECT ALL 0 * + 58 - + COUNT( * ), + 71 + - COUNT( * ) + + 98 * - + 60 AS col2
----
-1
-5810

skipif mysql # not compatible
query II rowsort label-547
SELECT ALL 0 * + 58 - + COUNT ( * ), + 71 + - COUNT ( * ) + + 98 * - + 60 AS col2
----
-1
-5810

query I rowsort
SELECT - 37 * 33
----
-1221

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-550
SELECT - CAST( NULL AS SIGNED ) / + + 94 + + 59 - MAX( + + 66 ) / - + CASE + 77 WHEN 69 THEN + 8 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-550
SELECT - CAST ( NULL AS INTEGER ) / + + 94 + + 59 - MAX ( + + 66 ) / - + CASE + 77 WHEN 69 THEN + 8 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-551
SELECT ALL + COALESCE ( + 81, + COUNT( * ) ) * + + CAST( 75 AS SIGNED ) + 90 - - 73
----
6238

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL + COALESCE ( + 81, + COUNT ( * ) ) * + + CAST ( 75 AS INTEGER ) + 90 - - 73
----
6238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-552
SELECT DISTINCT + CAST( - + COALESCE ( - 84, 40 ) AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-552
SELECT DISTINCT + CAST ( - + COALESCE ( - 84, 40 ) AS INTEGER )
----
84

query I rowsort
SELECT - 94 + + - 68 + - 41 col0
----
-203

query II rowsort
SELECT ALL + 84 AS col0, - 62 AS col0
----
84
-62

query I rowsort
SELECT 77 * + ( - + 32 ) * + - 43 + - 24 * 27 AS col1
----
105304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-556
SELECT CASE - 85 WHEN 55 THEN NULL WHEN 8 THEN NULL ELSE 34 + + 80 * - COALESCE ( - CAST( NULL AS SIGNED ), 20 ) * - COUNT( + 84 ) * - COUNT( * ) + - 82 + - 92 DIV 88 * - + COUNT( * ) * + + 18 END
----
-1630

skipif mysql # not compatible
query I rowsort label-556
SELECT CASE - 85 WHEN 55 THEN NULL WHEN 8 THEN NULL ELSE 34 + + 80 * - COALESCE ( - CAST ( NULL AS INTEGER ), 20 ) * - COUNT ( + 84 ) * - COUNT ( * ) + - 82 + - 92 / 88 * - + COUNT ( * ) * + + 18 END
----
-1630

query I rowsort
SELECT + - 71 * + 75 + + - 54
----
-5379

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT - CASE - + 67 WHEN + - 65 THEN + COUNT( * ) ELSE - ( + 99 ) + - + NULLIF ( 23, - - 66 ) END + + - MIN( + + 79 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-558
SELECT - CASE - + 67 WHEN + - 65 THEN + COUNT ( * ) ELSE - ( + 99 ) + - + NULLIF ( 23, - - 66 ) END + + - MIN ( + + 79 ) AS col1
----
43

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-560
SELECT - 94 / 52 / - CAST( NULL AS SIGNED ) * - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-560
SELECT - 94 / 52 / - CAST ( NULL AS INTEGER ) * - 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-561
SELECT ALL 80, COUNT( * ) * - 43 + - 93 + 99 - - 36 + - + COUNT( * ) * - COUNT( * ) AS col1
----
80
0

skipif mysql # not compatible
query II rowsort label-561
SELECT ALL 80, COUNT ( * ) * - 43 + - 93 + 99 - - 36 + - + COUNT ( * ) * - COUNT ( * ) AS col1
----
80
0

query I rowsort
SELECT - - CASE + 0 WHEN - + 24 THEN NULL WHEN + - 82 + - 14 THEN + 25 END / + - 34 + - 70 * + 12 AS col2
----
NULL

query I rowsort
SELECT ALL - + 52 + - 82
----
-134

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

skipif mysql # not compatible
query I rowsort label-564
SELECT - + 72 + COUNT ( * ) AS col1
----
-71

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

query I rowsort
SELECT DISTINCT 22 * - 91 AS col2
----
-2002

query I rowsort
SELECT - 96 + 20 AS col1
----
-76

query I rowsort
SELECT + CASE + + 63 WHEN + + 51 * + ( - + 49 ) / - - 54 THEN NULL WHEN - 38 * - 83 + ( - 97 ) + ( 15 ) / + 31 THEN + + ( 73 ) - 30 + 15 ELSE NULL END + - - 97 * 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT DISTINCT - 94 + + 21 - - - COUNT( * ) - + + 99 AS col1
----
-173

skipif mysql # not compatible
query I rowsort label-569
SELECT DISTINCT - 94 + + 21 - - - COUNT ( * ) - + + 99 AS col1
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT ALL 49 + MIN( 4 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL 49 + MIN ( 4 ) AS col0
----
53

query I rowsort
SELECT DISTINCT - COALESCE ( 84, - 87 ) AS col1
----
-84

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

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

query II rowsort
SELECT ALL + 94, 24 AS col1
----
94
24

query I rowsort
SELECT DISTINCT 11 + 84 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT ALL + 75 + + 99 + CASE - MIN( ALL 71 ) WHEN - + 88 THEN NULL WHEN + 82 THEN + 6 * - + ( ( + + COUNT( * ) ) ) - MAX( ALL + 4 ) + MAX( ALL - 79 ) END + + 6 - 12 * + - 19 * + - 77 * - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL + 75 + + 99 + CASE - MIN ( ALL 71 ) WHEN - + 88 THEN NULL WHEN + 82 THEN + 6 * - + ( ( + + COUNT ( * ) ) ) - MAX ( ALL + 4 ) + MAX ( ALL - 79 ) END + + 6 - 12 * + - 19 * + - 77 * - 30 AS col0
----
NULL

query I rowsort
SELECT + CASE 29 WHEN - 8 THEN NULL WHEN - 45 * - 40 THEN - - 94 WHEN + 71 THEN NULL END + + 11 * 34
----
NULL

query I rowsort
SELECT ALL 85 + + 2 AS col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-578
SELECT 52 col2, 58 - - 93 + + COUNT( * ) * 91 * + + 21
----
52
2062

skipif mysql # not compatible
query II rowsort label-578
SELECT 52 col2, 58 - - 93 + + COUNT ( * ) * 91 * + + 21
----
52
2062

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

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

query I rowsort
SELECT + 67 * 86 AS col0
----
5762

query I rowsort
SELECT + 73 * - + COALESCE ( - 71, 88 * - 46 + + 14 )
----
5183

query I rowsort
SELECT ALL 79 * ( - 60 ) AS col2
----
-4740

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT ALL MIN( - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL MIN ( - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT DISTINCT 96 - COUNT( * ) + + 57
----
152

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT 96 - COUNT ( * ) + + 57
----
152

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

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

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

query I rowsort
SELECT + 37 * + - 79 AS col1
----
-2923

query I rowsort
SELECT + 13 * - 12 AS col0
----
-156

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT ALL + SUM( DISTINCT 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL + SUM ( DISTINCT 86 ) AS col0
----
86

query I rowsort
SELECT + 77 * 37 AS col2
----
2849

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-594
SELECT + CAST( COALESCE ( - 69, 38 * - 7 + + - 32 ) AS SIGNED ), - 90 AS col1
----
-69
-90

skipif mysql # not compatible
query II rowsort label-594
SELECT + CAST ( COALESCE ( - 69, 38 * - 7 + + - 32 ) AS INTEGER ), - 90 AS col1
----
-69
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-595
SELECT ALL + 85 AS col1, + 60 * COUNT( * ) * + 60
----
85
3600

skipif mysql # not compatible
query II rowsort label-595
SELECT ALL + 85 AS col1, + 60 * COUNT ( * ) * + 60
----
85
3600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-596
SELECT COALESCE ( + 90, - NULLIF ( - + 61, COUNT( DISTINCT - ( + 7 ) ) + 5 / - ( - 30 ) + + NULLIF ( 24, - CAST( NULL AS SIGNED ) ) ) ) * 24 * - 48 + + 50 + 13
----
-103617

skipif mysql # not compatible
query I rowsort label-596
SELECT COALESCE ( + 90, - NULLIF ( - + 61, COUNT ( DISTINCT - ( + 7 ) ) + 5 / - ( - 30 ) + + NULLIF ( 24, - CAST ( NULL AS INTEGER ) ) ) ) * 24 * - 48 + + 50 + 13
----
-103617

query I rowsort
SELECT ALL - 9 * - - 27 * 64 col1
----
-15552

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

query I rowsort
SELECT DISTINCT - + 67 * 8
----
-536

query I rowsort
SELECT ALL - 92 + - + 5
----
-97

query I rowsort
SELECT ALL - + ( + 62 ) + - - 73
----
11

query I rowsort
SELECT 35 * - 40 AS col1
----
-1400

onlyif mysql # aggregate syntax: 
query II rowsort label-603
SELECT MAX( 26 ) * - 35 * + COUNT( * ) AS col0, + 50 AS col0
----
-910
50

skipif mysql # not compatible
query II rowsort label-603
SELECT MAX ( 26 ) * - 35 * + COUNT ( * ) AS col0, + 50 AS col0
----
-910
50

query II rowsort
SELECT - 9 AS col1, 18 + + - 95 col0
----
-9
-77

query I rowsort
SELECT ALL + + 12 + + + 82 AS col2
----
94

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

query II rowsort
SELECT ALL 43, - 72 + + ( + 24 ) AS col2
----
43
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-608
SELECT DISTINCT - - SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) + + - ( - - 21 ), MIN( ALL - + 64 ) AS col1
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-608
SELECT DISTINCT - - SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + + - ( - - 21 ), MIN ( ALL - + 64 ) AS col1
----
NULL
-64

query II rowsort
SELECT ALL - 16 * - 11, 12 AS col1
----
176
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-610
SELECT + 30 DIV - 76 * + - SUM( 78 ) * CAST( - 5 AS SIGNED ) * + 48 + + - 94 * + 15 + 84
----
-1326

skipif mysql # not compatible
query I rowsort label-610
SELECT + 30 / - 76 * + - SUM ( 78 ) * CAST ( - 5 AS INTEGER ) * + 48 + + - 94 * + 15 + 84
----
-1326

query I rowsort
SELECT ALL - 5 + + 87 AS col2
----
82

query I rowsort
SELECT 83 - ( 89 ) AS col1
----
-6

query I rowsort
SELECT + 88 * + + 72
----
6336

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

skipif mysql # not compatible
query I rowsort label-614
SELECT 89 + CAST ( NULL AS INTEGER ) - 25 + - 34
----
NULL

query I rowsort
SELECT 24 * + CASE + ( - 33 ) WHEN + 18 THEN - + 14 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT COALESCE ( COUNT( * ), - 38 ) + + 77 + - 42 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-616
SELECT COALESCE ( COUNT ( * ), - 38 ) + + 77 + - 42 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT 40 * - NULLIF ( 49, - 48 / - - 38 * - 1 * - + COUNT( * ) ) col2
----
-1960

skipif mysql # not compatible
query I rowsort label-617
SELECT 40 * - NULLIF ( 49, - 48 / - - 38 * - 1 * - + COUNT ( * ) ) col2
----
-1960

query I rowsort
SELECT ALL 89 * 46 * + 59 AS col1
----
241546

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

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

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

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL COUNT ( * ) * + 29 / 72
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-621
SELECT COUNT( * ) DIV ( - NULLIF ( 67, 12 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-621
SELECT COUNT ( * ) / ( - NULLIF ( 67, 12 ) ) col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-622
SELECT ALL 35 + - CAST( - 10 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL 35 + - CAST ( - 10 AS INTEGER )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-623
SELECT ALL + 21 + + 67 + + + 39 + MAX( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL + 21 + + 67 + + + 39 + MAX ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-624
SELECT 24 DIV - 3 + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-624
SELECT 24 / - 3 + COUNT ( * )
----
-7

query I rowsort
SELECT DISTINCT 55 + + 28 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT DISTINCT - + ( - ( + CASE + + COUNT( * ) WHEN + ( + - 40 ) THEN + + 92 * + 11 + - - 44 * + 91 + + 13 WHEN - - 42 * - 58 THEN + COUNT( * ) END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT - + ( - ( + CASE + + COUNT ( * ) WHEN + ( + - 40 ) THEN + + 92 * + 11 + - - 44 * + 91 + + 13 WHEN - - 42 * - 58 THEN + COUNT ( * ) END ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 82 + + 22 * + 63 + 86
----
1554

query I rowsort
SELECT 3 + - 68 - - ( + 1 )
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-629
SELECT DISTINCT - 69 + - COUNT( * ) - + + 37 + - COUNT( * ) * - 21 + - 52 DIV 80 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT - 69 + - COUNT ( * ) - + + 37 + - COUNT ( * ) * - 21 + - 52 / 80 AS col2
----
-86

query I rowsort
SELECT ALL - + 23 * + - 30 AS col2
----
690

query I rowsort
SELECT 72 + - + 81 AS col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-632
SELECT - 14 + - 64 AS col1, + MIN( 88 ) DIV 6
----
-78
14

skipif mysql # not compatible
query II rowsort label-632
SELECT - 14 + - 64 AS col1, + MIN ( 88 ) / 6
----
-78
14

query I rowsort
SELECT 64 * 83 + + - 37 + + 1 AS col1
----
5276

query I rowsort
SELECT 52 * + 19
----
988

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

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

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

skipif mysql # not compatible
query I rowsort label-636
SELECT + COUNT ( DISTINCT - + 16 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-637
SELECT 42 + 84 * 86 DIV - - 18 AS col1
----
443

skipif mysql # not compatible
query I rowsort label-637
SELECT 42 + 84 * 86 / - - 18 AS col1
----
443

query I rowsort
SELECT - 55 * 90
----
-4950

query I rowsort
SELECT 95 * + + 61 AS col0
----
5795

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT 8 * + - MIN( - 83 )
----
664

skipif mysql # not compatible
query I rowsort label-640
SELECT 8 * + - MIN ( - 83 )
----
664

query I rowsort
SELECT ALL + 89 * 1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT ALL + 17 DIV COALESCE ( - + 59, + - 45 DIV + 2 * - 39 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL + 17 / COALESCE ( - + 59, + - 45 / + 2 * - 39 ) AS col0
----
0

query I rowsort
SELECT ALL 84 * - 72 * + + 45 AS col0
----
-272160

query I rowsort
SELECT 95 * + 82
----
7790

query I rowsort
SELECT 98 * + + 9 AS col0
----
882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-646
SELECT COUNT( * ) DIV - ( CAST( - 87 AS SIGNED ) ) * + 29 + - 26 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-646
SELECT COUNT ( * ) / - ( CAST ( - 87 AS INTEGER ) ) * + 29 + - 26 AS col2
----
-26

query II rowsort
SELECT ALL + ( - 43 ) * - - 83 AS col1, 62 * + 0
----
-3569
0

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ALL - COUNT( * ) * - COALESCE ( - + 66, + ( COUNT( * ) ) - - 22 + + + 84 * - COALESCE ( - 92, - 82 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL - COUNT ( * ) * - COALESCE ( - + 66, + ( COUNT ( * ) ) - - 22 + + + 84 * - COALESCE ( - 92, - 82 ) )
----
-66

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

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

query I rowsort
SELECT 20 * + - 18 col1
----
-360

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-652
SELECT DISTINCT - ( + - 81 ) * 66 * - COALESCE ( - 1, 51 - 85 * + 24 ) * - COUNT( * ) * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT - ( + - 81 ) * 66 * - COALESCE ( - 1, 51 - 85 * + 24 ) * - COUNT ( * ) * CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 7 AS col2, 83 * - 70 col1
----
7
-5810

query I rowsort
SELECT ALL 99 * + 89 * + + 85 + - 19 AS col1
----
748916

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT CASE + COUNT( * ) WHEN - - 84 THEN - 73 WHEN + 50 * 22 + + 93 * + 83 * - COUNT( * ) THEN + 11 / ( 59 ) ELSE - 61 + - 62 * - - 84 END AS col1
----
-5269

skipif mysql # not compatible
query I rowsort label-655
SELECT CASE + COUNT ( * ) WHEN - - 84 THEN - 73 WHEN + 50 * 22 + + 93 * + 83 * - COUNT ( * ) THEN + 11 / ( 59 ) ELSE - 61 + - 62 * - - 84 END AS col1
----
-5269

query II rowsort
SELECT ALL + 44 * - 39 + + 67 col0, 11 * + + 99
----
-1649
1089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-657
SELECT - - 44 * 18 * + COUNT( * ) - + 98 + 62 + + 54 / - CAST( NULL AS SIGNED ) / 95 + + + SUM( 62 ) + - 41 * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-657
SELECT - - 44 * 18 * + COUNT ( * ) - + 98 + 62 + + 54 / - CAST ( NULL AS INTEGER ) / 95 + + + SUM ( 62 ) + - 41 * COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-658
SELECT + - 20 * + - 27 * + COUNT( * ) * - 65, - 51 + + + 53 AS col0
----
-35100
2

skipif mysql # not compatible
query II rowsort label-658
SELECT + - 20 * + - 27 * + COUNT ( * ) * - 65, - 51 + + + 53 AS col0
----
-35100
2

query I rowsort
SELECT DISTINCT + + 16 * - 36
----
-576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-660
SELECT DISTINCT 95 * + 59 - - - ( 71 ) DIV - NULLIF ( - 74, + COUNT( * ) * - + 28 * - 78 DIV 47 * - + COALESCE ( + 71, 51 ) ) col0
----
5605

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT 95 * + 59 - - - ( 71 ) / - NULLIF ( - 74, + COUNT ( * ) * - + 28 * - 78 / 47 * - + COALESCE ( + 71, 51 ) ) col0
----
5605

onlyif mysql # aggregate syntax: 
query II rowsort label-661
SELECT ALL + - 59 col2, - COALESCE ( COALESCE ( + 50, + - 81 - 82 + - + 36 + COUNT( * ) ), - ( + COUNT( * ) ), + ( - 24 ) )
----
-59
-50

skipif mysql # not compatible
query II rowsort label-661
SELECT ALL + - 59 col2, - COALESCE ( COALESCE ( + 50, + - 81 - 82 + - + 36 + COUNT ( * ) ), - ( + COUNT ( * ) ), + ( - 24 ) )
----
-59
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-662
SELECT ALL + 46 AS col2, - CASE - 26 WHEN 23 - - - 59 THEN + 99 WHEN - - ( + 69 ) THEN NULL ELSE NULL END + - 13 * ( - MIN( DISTINCT + + 16 ) ) + + 59
----
46
NULL

skipif mysql # not compatible
query II rowsort label-662
SELECT ALL + 46 AS col2, - CASE - 26 WHEN 23 - - - 59 THEN + 99 WHEN - - ( + 69 ) THEN NULL ELSE NULL END + - 13 * ( - MIN ( DISTINCT + + 16 ) ) + + 59
----
46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT + ( + NULLIF ( CASE + 54 WHEN 93 * + + COUNT( * ) * - 19 THEN + 8 * - - 88 END, + + CASE 0 WHEN + COUNT( * ) + 16 / - 12 THEN - + SUM( + - 24 ) + ( - 41 ) ELSE NULL END + + 10 * - + 40 + - 61 + - SUM( ALL + 30 ) ) ) * - 20 * - 73 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT + ( + NULLIF ( CASE + 54 WHEN 93 * + + COUNT ( * ) * - 19 THEN + 8 * - - 88 END, + + CASE 0 WHEN + COUNT ( * ) + 16 / - 12 THEN - + SUM ( + - 24 ) + ( - 41 ) ELSE NULL END + + 10 * - + 40 + - 61 + - SUM ( ALL + 30 ) ) ) * - 20 * - 73 + + COUNT ( * )
----
NULL

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

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

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

query I rowsort
SELECT - NULLIF ( 32, - + 89 * - 88 ) AS col1
----
-32

query I rowsort
SELECT + 38 - + 70
----
-32

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

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

query I rowsort
SELECT DISTINCT 61 * 71 * + 61
----
264191

query I rowsort
SELECT DISTINCT + COALESCE ( + - 94, - - 55 ) * - - 43 AS col1
----
-4042

query I rowsort
SELECT + 78 + - ( - - 36 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT - COUNT( * ) * 91 * - 36
----
3276

skipif mysql # not compatible
query I rowsort label-672
SELECT - COUNT ( * ) * 91 * - 36
----
3276

query I rowsort
SELECT + 54 + - + 19 * + + 21 + - NULLIF ( - 43, + 77 + - 28 ) AS col0
----
-302

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT ALL COALESCE ( COUNT( * ), - 82 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL COALESCE ( COUNT ( * ), - 82 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-675
SELECT DISTINCT + 68 DIV + - MAX( 28 )
----
-2

skipif mysql # not compatible
query I rowsort label-675
SELECT DISTINCT + 68 / + - MAX ( 28 )
----
-2

query I rowsort
SELECT - 7 + 22 AS col2
----
15

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

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

query I rowsort
SELECT DISTINCT 71 + 47
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT DISTINCT + COUNT( DISTINCT - 13 ) + + 60 * - 9
----
-539

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT + COUNT ( DISTINCT - 13 ) + + 60 * - 9
----
-539

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

skipif mysql # not compatible
query I rowsort label-680
SELECT DISTINCT + ( 82 ) / - COUNT ( * ) col1
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-681
SELECT + 35 DIV + 76 + 52 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-681
SELECT + 35 / + 76 + 52 AS col2
----
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT - - 80 + + 27 + + 31 * - + COUNT( * ) + 35 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-683
SELECT - - 80 + + 27 + + 31 * - + COUNT ( * ) + 35 AS col2
----
111

query I rowsort
SELECT DISTINCT + COALESCE ( - - 63, - 20 + COALESCE ( 41, - ( - 82 ) ) )
----
63

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

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL - 18 / - + 27 - + COUNT ( * ) * + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + - 89 * + 54 AS col0
----
-4806

onlyif mysql # aggregate syntax: 
query II rowsort label-687
SELECT + ( - 34 ), 89 + - - COUNT( * ) * + + 74 + 74 AS col2
----
-34
237

skipif mysql # not compatible
query II rowsort label-687
SELECT + ( - 34 ), 89 + - - COUNT ( * ) * + + 74 + 74 AS col2
----
-34
237

query I rowsort
SELECT + 88 + - 62 AS col0
----
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT - NULLIF ( + 89, + 71 ) + - COUNT( * ) + + 82 * - COUNT( 17 ) * + 35 - + NULLIF ( + 29, 43 ) AS col0
----
-2989

skipif mysql # not compatible
query I rowsort label-690
SELECT - NULLIF ( + 89, + 71 ) + - COUNT ( * ) + + 82 * - COUNT ( 17 ) * + 35 - + NULLIF ( + 29, 43 ) AS col0
----
-2989

query I rowsort
SELECT + + 48 * - 75
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT + 19 - + 54 + + MIN( 7 ) * - 95
----
-700

skipif mysql # not compatible
query I rowsort label-692
SELECT + 19 - + 54 + + MIN ( 7 ) * - 95
----
-700

query I rowsort
SELECT DISTINCT 89 * NULLIF ( + 46, - 27 * - 70 )
----
4094

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-694
SELECT + COUNT( * ) * + - 66 + 12 - + COUNT( ALL + 8 ) DIV - + 55 col2
----
-54

skipif mysql # not compatible
query I rowsort label-694
SELECT + COUNT ( * ) * + - 66 + 12 - + COUNT ( ALL + 8 ) / - + 55 col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT DISTINCT + - MAX( DISTINCT + CASE + 71 WHEN - + 52 THEN + 37 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT + - MAX ( DISTINCT + CASE + 71 WHEN - + 52 THEN + 37 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-696
SELECT DISTINCT + - COUNT( * ) * - 52 + - + CASE + 42 WHEN + 93 THEN NULL WHEN 59 * + + 87 - - + 54 THEN NULL ELSE 44 END AS col2, 75 + - COALESCE ( - 21, + - 50 DIV 51 + - CASE + CAST( - 37 AS SIGNED ) WHEN 81 + - COUNT( * ) * - + COALESCE ( - + 1, + 67 + + 25 + - 72, + 0 ) * - 46 * - 36 + + + 16 - - AVG ( DISTINCT 92 ) + + MAX( DISTINCT + 84 ) * - 3 THEN COUNT( * ) END DIV 95 + - - 81 + 50 * MIN( + 74 ) ) AS col2
----
8
96

skipif mysql # not compatible
query II rowsort label-696
SELECT DISTINCT + - COUNT ( * ) * - 52 + - + CASE + 42 WHEN + 93 THEN NULL WHEN 59 * + + 87 - - + 54 THEN NULL ELSE 44 END AS col2, 75 + - COALESCE ( - 21, + - 50 / 51 + - CASE + CAST ( - 37 AS INTEGER ) WHEN 81 + - COUNT ( * ) * - + COALESCE ( - + 1, + 67 + + 25 + - 72, + 0 ) * - 46 * - 36 + + + 16 - - AVG ( DISTINCT 92 ) + + MAX ( DISTINCT + 84 ) * - 3 THEN COUNT ( * ) END / 95 + - - 81 + 50 * MIN ( + 74 ) ) AS col2
----
8
96

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT ALL + CASE + 40 WHEN + 1 + - 10 THEN NULL WHEN 73 THEN - - COUNT( * ) + - + 96 + + - 87 * + - 2 * + - 80 WHEN + - 81 THEN NULL WHEN + 8 + 25 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL + CASE + 40 WHEN + 1 + - 10 THEN NULL WHEN 73 THEN - - COUNT ( * ) + - + 96 + + - 87 * + - 2 * + - 80 WHEN + - 81 THEN NULL WHEN + 8 + 25 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT + 14 + + 48 * + + 98 * COUNT( * ) + - ( + COUNT( * ) )
----
4717

skipif mysql # not compatible
query I rowsort label-698
SELECT + 14 + + 48 * + + 98 * COUNT ( * ) + - ( + COUNT ( * ) )
----
4717

query I rowsort
SELECT + ( + 77 ) AS col1
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT DISTINCT - 35 * + - 45 + ( - COUNT( + - 79 ) ) + 7 + COUNT( * )
----
1582

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT - 35 * + - 45 + ( - COUNT ( + - 79 ) ) + 7 + COUNT ( * )
----
1582

query I rowsort
SELECT - ( + - 13 ) * + 67 * 59 col2
----
51389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-703
SELECT - COUNT( ALL - 78 ) * - - 88 + + CAST( + - 78 AS SIGNED ) * 49
----
-3910

skipif mysql # not compatible
query I rowsort label-703
SELECT - COUNT ( ALL - 78 ) * - - 88 + + CAST ( + - 78 AS INTEGER ) * 49
----
-3910

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT ALL + 2 * 31 + 35 DIV 64
----
62

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL + 2 * 31 + 35 / 64
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT SUM( - - 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-705
SELECT SUM ( - - 68 ) AS col0
----
68

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-708
SELECT + 61 + + SUM( 76 ) AS col0, COUNT( * )
----
137
1

skipif mysql # not compatible
query II rowsort label-708
SELECT + 61 + + SUM ( 76 ) AS col0, COUNT ( * )
----
137
1

onlyif mysql # DIV for integer division: 
query I rowsort label-709
SELECT ALL 66 DIV - 7
----
-9

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL 66 / - 7
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-710
SELECT ALL - 3 * 36 + + COUNT( ( + 72 ) ), - 5 * - 25 * - - COUNT( * ) AS col1
----
-107
125

skipif mysql # not compatible
query II rowsort label-710
SELECT ALL - 3 * 36 + + COUNT ( ( + 72 ) ), - 5 * - 25 * - - COUNT ( * ) AS col1
----
-107
125

query I rowsort
SELECT ALL 19 + - 91 AS col2
----
-72

query I rowsort
SELECT ALL + 64 + + 58
----
122

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

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

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

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

query I rowsort
SELECT ALL + 55 * + + 45
----
2475

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-716
SELECT DISTINCT CAST( NULL AS SIGNED ) + 26 / AVG ( DISTINCT - ( - + 24 ) ) AS col2, - 13 - - - 86
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-716
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 26 / AVG ( DISTINCT - ( - + 24 ) ) AS col2, - 13 - - - 86
----
NULL
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-717
SELECT ALL 59 + 36 + 56 - SUM( - CAST( NULL AS SIGNED ) ) * 91 * 81 * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL 59 + 36 + 56 - SUM ( - CAST ( NULL AS INTEGER ) ) * 91 * 81 * 45
----
NULL

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

skipif mysql # not compatible
query I rowsort label-718
SELECT CAST ( NULL AS INTEGER ) * - 90 * + ( - 26 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-719
SELECT 74 * + + ( - COUNT( * ) ) AS col1, - 5
----
-74
-5

skipif mysql # not compatible
query II rowsort label-719
SELECT 74 * + + ( - COUNT ( * ) ) AS col1, - 5
----
-74
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT DISTINCT + 46 - - + NULLIF ( + 73, - + 99 / - 2 * - COUNT( * ) * NULLIF ( - 85, 57 / + - AVG ( + 42 ) ) ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-720
SELECT DISTINCT + 46 - - + NULLIF ( + 73, - + 99 / - 2 * - COUNT ( * ) * NULLIF ( - 85, 57 / + - AVG ( + 42 ) ) ) AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT ALL 92 - + SUM( ALL - + 76 ) col0
----
168

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL 92 - + SUM ( ALL - + 76 ) col0
----
168

query I rowsort
SELECT + 31 * + - ( + 93 )
----
-2883

query I rowsort
SELECT ALL + 24 - + 33 col1
----
-9

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

query I rowsort
SELECT ALL - + COALESCE ( - 90, + 73 ) * + 1 * 58 AS col0
----
5220

onlyif mysql # DIV for integer division: 
query I rowsort label-726
SELECT + 58 DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-726
SELECT + 58 / + 39
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-727
SELECT ALL - 38 DIV + - 65 * COALESCE ( + + COUNT( * ), + - 92, + 84 DIV 27 ) * - + 96 * - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL - 38 / + - 65 * COALESCE ( + + COUNT ( * ), + - 92, + 84 / 27 ) * - + 96 * - 54 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-728
SELECT ALL - CAST( NULL AS SIGNED ) * + 17 * + - 38 * - - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL - CAST ( NULL AS INTEGER ) * + 17 * + - 38 * - - 57 AS col2
----
NULL

query I rowsort
SELECT - 67 + - + 68 AS col2
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-730
SELECT DISTINCT - + 74 DIV 25 * - 88
----
176

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT - + 74 / 25 * - 88
----
176

query I rowsort
SELECT ALL - 88 * + 8 AS col1
----
-704

onlyif mysql # DIV for integer division: 
query I rowsort label-732
SELECT 17 DIV + 3 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-732
SELECT 17 / + 3 AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-733
SELECT - 34 * + + 94 * - - CASE - - ( + + COUNT( * ) ) WHEN + ( - - 57 ) THEN 24 * - 27 + + + 32 ELSE NULL END, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-733
SELECT - 34 * + + 94 * - - CASE - - ( + + COUNT ( * ) ) WHEN + ( - - 57 ) THEN 24 * - 27 + + + 32 ELSE NULL END, COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT + 28 * 17 + + 62
----
538

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ALL + 97 * SUM( 84 )
----
8148

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL + 97 * SUM ( 84 )
----
8148

onlyif mysql # aggregate syntax: 
query II rowsort label-736
SELECT ALL - + 17 col2, 63 * 89 + + COUNT( * ) col0
----
-17
5608

skipif mysql # not compatible
query II rowsort label-736
SELECT ALL - + 17 col2, 63 * 89 + + COUNT ( * ) col0
----
-17
5608

onlyif mysql # aggregate syntax: 
query II rowsort label-737
SELECT ALL - 27 * 0 * - + 80 AS col0, COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-737
SELECT ALL - 27 * 0 * - + 80 AS col0, COUNT ( * ) AS col1
----
0
1

query I rowsort
SELECT DISTINCT - - 39 col1
----
39

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

skipif mysql # not compatible
query I rowsort label-739
SELECT ALL + COUNT ( * ) * + MIN ( + 42 ) + - 25 * + 0
----
42

query I rowsort
SELECT + COALESCE ( + 57, - 30 ) AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-741
SELECT ALL - CAST( - 36 AS SIGNED ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL - CAST ( - 36 AS INTEGER ) AS col2
----
36

query I rowsort
SELECT 33 * - - 12 AS col0
----
396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-743
SELECT ALL - CASE + - COUNT( * ) WHEN + 27 * + MAX( + - 54 ) + MAX( DISTINCT 53 ) - - NULLIF ( + 65, 65 ) * ( + - ( + + 54 ) ) + + 21 THEN AVG ( 58 ) END + NULLIF ( + ( + + 24 ), CAST( + - 28 AS SIGNED ) * - + NULLIF ( + + 1, 92 ) + - 90 + - 39 - 15 + - 65 * 29 / + 39 * + - 25 / COUNT( * ) * - + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL - CASE + - COUNT ( * ) WHEN + 27 * + MAX ( + - 54 ) + MAX ( DISTINCT 53 ) - - NULLIF ( + 65, 65 ) * ( + - ( + + 54 ) ) + + 21 THEN AVG ( 58 ) END + NULLIF ( + ( + + 24 ), CAST ( + - 28 AS INTEGER ) * - + NULLIF ( + + 1, 92 ) + - 90 + - 39 - 15 + - 65 * 29 / + 39 * + - 25 / COUNT ( * ) * - + 21 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-744
SELECT 58 * 47 - + ( 1 ) - - - 16 * + + 23 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-744
SELECT 58 * 47 - + ( 1 ) - - - 16 * + + 23 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT - 75 AS col2, 35
----
-75
35

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT ALL 25 * - COUNT( - - 45 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL 25 * - COUNT ( - - 45 ) AS col1
----
-25

query II rowsort
SELECT 23 * - 53 AS col1, 6
----
-1219
6

query I rowsort
SELECT DISTINCT + ( + - 55 ) + - + 55 AS col2
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-749
SELECT ALL 19 + + COALESCE ( + 80, + + 28 ) DIV - - 73 + + 55 + - 52 + + + 33 DIV 79 col1
----
23

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL 19 + + COALESCE ( + 80, + + 28 ) / - - 73 + + 55 + - 52 + + + 33 / 79 col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT COUNT( * ) - + 93 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-750
SELECT COUNT ( * ) - + 93 AS col0
----
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ALL - ( + 47 ) * COUNT( * ) + + + 34 * - 78 + + ( - - COUNT( * ) ) + - 47 col0
----
-2745

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL - ( + 47 ) * COUNT ( * ) + + + 34 * - 78 + + ( - - COUNT ( * ) ) + - 47 col0
----
-2745

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT 23 + + + 32 + + 98 * - 68 + - + 59 + COUNT( * )
----
-6667

skipif mysql # not compatible
query I rowsort label-753
SELECT 23 + + + 32 + + 98 * - 68 + - + 59 + COUNT ( * )
----
-6667

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT SUM( ALL 29 ) * 85 AS col0
----
2465

skipif mysql # not compatible
query I rowsort label-754
SELECT SUM ( ALL 29 ) * 85 AS col0
----
2465

onlyif mysql # DIV for integer division: 
query I rowsort label-755
SELECT ALL 77 DIV - ( 28 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL 77 / - ( 28 ) col1
----
-2

query I rowsort
SELECT NULLIF ( - 67, 30 ) + - 49
----
-116

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

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

query II rowsort
SELECT ALL 94, + 6 AS col1
----
94
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-759
SELECT ALL 12 DIV 49 * - + ( + - MIN( 29 ) )
----
0

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL 12 / 49 * - + ( + - MIN ( 29 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-760
SELECT ALL - 33 / - CAST( NULL AS SIGNED ), 28 + + CASE - CAST( 83 AS SIGNED ) WHEN 83 * + - 79 + - 38 THEN NULLIF ( - COUNT( * ), 94 ) / - ( 76 ) END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-760
SELECT ALL - 33 / - CAST ( NULL AS INTEGER ), 28 + + CASE - CAST ( 83 AS INTEGER ) WHEN 83 * + - 79 + - 38 THEN NULLIF ( - COUNT ( * ), 94 ) / - ( 76 ) END
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-761
SELECT DISTINCT 99 col0, + CAST( NULL AS SIGNED ) - 59 AS col0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-761
SELECT DISTINCT 99 col0, + CAST ( NULL AS INTEGER ) - 59 AS col0
----
99
NULL

query I rowsort
SELECT + 29 * - 67 + 22
----
-1921

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

query I rowsort
SELECT ( - - 83 ) + 36 AS col0
----
119

query II rowsort
SELECT ALL + 49 AS col2, 53 AS col1
----
49
53

query II rowsort
SELECT - - 65 AS col1, COALESCE ( - - 30, ( + 30 ) ) AS col0
----
65
30

onlyif mysql # DIV for integer division: 
query I rowsort label-767
SELECT + 56 + + 70 DIV 99 - + + 86 * + 47 AS col0
----
-3986

skipif mysql # not compatible
query I rowsort label-767
SELECT + 56 + + 70 / 99 - + + 86 * + 47 AS col0
----
-3986

query I rowsort
SELECT ALL 26 * + + 94 * - - 60
----
146640

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT - COUNT( DISTINCT + 41 ) * + - 73 * ( + 32 ) AS col2
----
2336

skipif mysql # not compatible
query I rowsort label-769
SELECT - COUNT ( DISTINCT + 41 ) * + - 73 * ( + 32 ) AS col2
----
2336

query I rowsort
SELECT - 65 * + 7 AS col2
----
-455

query II rowsort
SELECT + 46, 38 AS col1
----
46
38

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT ALL - + CASE + 73 WHEN - 1 * + - SUM( + 76 ) THEN NULL WHEN AVG ( - 93 ) THEN NULL WHEN + COUNT( * ) THEN + - ( + 74 ) * - + 6 * 60 + + - 74 * - 42 ELSE + 59 END
----
-59

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL - + CASE + 73 WHEN - 1 * + - SUM ( + 76 ) THEN NULL WHEN AVG ( - 93 ) THEN NULL WHEN + COUNT ( * ) THEN + - ( + 74 ) * - + 6 * 60 + + - 74 * - 42 ELSE + 59 END
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL - - COUNT( * ) * + ( COUNT( ALL 58 ) ) - - 65 + + 71 AS col2
----
137

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL - - COUNT ( * ) * + ( COUNT ( ALL 58 ) ) - - 65 + + 71 AS col2
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-774
SELECT + - ( + COALESCE ( + CAST( NULL AS SIGNED ), - 21 - - 6 * + MIN( - 9 ) + + 35 ) )
----
40

skipif mysql # not compatible
query I rowsort label-774
SELECT + - ( + COALESCE ( + CAST ( NULL AS INTEGER ), - 21 - - 6 * + MIN ( - 9 ) + + 35 ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT DISTINCT - 72 * - 27 * + COUNT( * ) + 89 * 34
----
4970

skipif mysql # not compatible
query I rowsort label-775
SELECT DISTINCT - 72 * - 27 * + COUNT ( * ) + 89 * 34
----
4970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-776
SELECT - + 58 DIV COUNT( * ) DIV 94 + + 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-776
SELECT - + 58 / COUNT ( * ) / 94 + + 15 AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-777
SELECT ALL + + 83 * - - ( 53 ) + 94 DIV + 23 AS col2
----
4403

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL + + 83 * - - ( 53 ) + 94 / + 23 AS col2
----
4403

onlyif mysql # DIV for integer division: 
query I rowsort label-778
SELECT ALL - - 4 DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-778
SELECT ALL - - 4 / - 38
----
0

query I rowsort
SELECT 21 + + - 78
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-780
SELECT 63 * + + 90 + + - COALESCE ( - 4, 91 DIV - COUNT( * ) DIV - - COUNT( * ), - + 47 ) + - + 58 * + 49 * + 67
----
-184740

skipif mysql # not compatible
query I rowsort label-780
SELECT 63 * + + 90 + + - COALESCE ( - 4, 91 / - COUNT ( * ) / - - COUNT ( * ), - + 47 ) + - + 58 * + 49 * + 67
----
-184740

query I rowsort
SELECT 49 - + ( - 45 )
----
94

query I rowsort
SELECT 53 * 64 AS col1
----
3392

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT - MAX( - 48 ) * + + 29 + + MIN( + 79 )
----
1471

skipif mysql # not compatible
query I rowsort label-783
SELECT - MAX ( - 48 ) * + + 29 + + MIN ( + 79 )
----
1471

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT DISTINCT MIN( - 84 ) * + - 40 * + 81 AS col2
----
272160

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT MIN ( - 84 ) * + - 40 * + 81 AS col2
----
272160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-785
SELECT - 25 + CAST( - - 99 AS SIGNED ) - 11 col0
----
63

skipif mysql # not compatible
query I rowsort label-785
SELECT - 25 + CAST ( - - 99 AS INTEGER ) - 11 col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-786
SELECT DISTINCT - SUM( DISTINCT 64 ) + + + 40 + - 32 * - 18 * - 47 * - 20 AS col2, 79
----
541416
79

skipif mysql # not compatible
query II rowsort label-786
SELECT DISTINCT - SUM ( DISTINCT 64 ) + + + 40 + - 32 * - 18 * - 47 * - 20 AS col2, 79
----
541416
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-787
SELECT ALL - CAST( 15 AS SIGNED ) - 29 - + + ( + 55 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL - CAST ( 15 AS INTEGER ) - 29 - + + ( + 55 ) AS col1
----
-99

query II rowsort
SELECT DISTINCT - 46 - + 48 AS col1, 39
----
-94
39

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT + COUNT( * ) + - 97 * 67 AS col0
----
-6498

skipif mysql # not compatible
query I rowsort label-789
SELECT + COUNT ( * ) + - 97 * 67 AS col0
----
-6498

query I rowsort
SELECT ALL 29 - 88 * - - 96 AS col2
----
-8419

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-791
SELECT - COUNT( * ) DIV - MIN( - - 1 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-791
SELECT - COUNT ( * ) / - MIN ( - - 1 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-792
SELECT DISTINCT SUM( DISTINCT + 96 ) AS col0, - 83
----
96
-83

skipif mysql # not compatible
query II rowsort label-792
SELECT DISTINCT SUM ( DISTINCT + 96 ) AS col0, - 83
----
96
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-793
SELECT - 71 * COUNT( - 76 ) + + + CAST( NULL AS SIGNED ) - - + ( + ( 27 ) ) * + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-793
SELECT - 71 * COUNT ( - 76 ) + + + CAST ( NULL AS INTEGER ) - - + ( + ( 27 ) ) * + 19 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-794
SELECT - + NULLIF ( - 45, - 60 ) DIV 54 * - 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-794
SELECT - + NULLIF ( - 45, - 60 ) / 54 * - 50 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT + - 10 DIV - 43 + - 25 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-795
SELECT + - 10 / - 43 + - 25 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT - - 41 - - 16 + + MAX( DISTINCT + + 42 )
----
99

skipif mysql # not compatible
query I rowsort label-796
SELECT - - 41 - - 16 + + MAX ( DISTINCT + + 42 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT ALL - CASE + 90 WHEN + ( - COUNT( ALL - 45 ) ) THEN NULL ELSE - 51 + - 28 + COALESCE ( + MIN( DISTINCT + 89 ), 76 ) END AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL - CASE + 90 WHEN + ( - COUNT ( ALL - 45 ) ) THEN NULL ELSE - 51 + - 28 + COALESCE ( + MIN ( DISTINCT + 89 ), 76 ) END AS col0
----
-10

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

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL + 72 / + + 79 - - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-799
SELECT - + 66 * + 98 - COUNT( * ) DIV - 76 DIV - + 7 - - 61 + + COUNT( * )
----
-6406

skipif mysql # not compatible
query I rowsort label-799
SELECT - + 66 * + 98 - COUNT ( * ) / - 76 / - + 7 - - 61 + + COUNT ( * )
----
-6406

onlyif mysql # aggregate syntax: 
query II rowsort label-800
SELECT - NULLIF ( - + 44, - 37 / 3 + + AVG ( - - 64 ) + + COUNT( * ) ) col2, 42 AS col2
----
44
42

skipif mysql # not compatible
query II rowsort label-800
SELECT - NULLIF ( - + 44, - 37 / 3 + + AVG ( - - 64 ) + + COUNT ( * ) ) col2, 42 AS col2
----
44
42

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT DISTINCT + + 90 DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-801
SELECT DISTINCT + + 90 / - 98 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-802
SELECT ALL - + ( + 28 ) + + CAST( 98 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL - + ( + 28 ) + + CAST ( 98 AS INTEGER )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-803
SELECT - NULLIF ( 49, + 58 * + 19 ) DIV - + 51 + - NULLIF ( 46, + 66 * - ( + + CAST( NULL AS SIGNED ) ) + 79 * - 47 * - 90 + - COUNT( * ) + + 87 + - AVG ( + + ( + 95 ) ) ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-803
SELECT - NULLIF ( 49, + 58 * + 19 ) / - + 51 + - NULLIF ( 46, + 66 * - ( + + CAST ( NULL AS INTEGER ) ) + 79 * - 47 * - 90 + - COUNT ( * ) + + 87 + - AVG ( + + ( + 95 ) ) ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT + - COUNT( * ) + MAX( ALL + 6 ) + + COUNT( * ) * - 54
----
-49

skipif mysql # not compatible
query I rowsort label-804
SELECT + - COUNT ( * ) + MAX ( ALL + 6 ) + + COUNT ( * ) * - 54
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT ALL + COUNT( * ) * + 52 + - 10
----
42

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL + COUNT ( * ) * + 52 + - 10
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-806
SELECT DISTINCT 44 * - + 32, COALESCE ( - + NULLIF ( - + 88, + COUNT( * ) + 35 ), + + 47 * COUNT( * ) + + + 29 + + CASE + 57 WHEN - 80 THEN NULL WHEN + 48 THEN - + 39 * + 76 - + - 86 - - + 92 * + 18 ELSE NULL END ) + - COUNT( * ) DIV + + ( - + COALESCE ( 30, + 83 ) ) * + ( 34 ) AS col2
----
-1408
88

skipif mysql # not compatible
query II rowsort label-806
SELECT DISTINCT 44 * - + 32, COALESCE ( - + NULLIF ( - + 88, + COUNT ( * ) + 35 ), + + 47 * COUNT ( * ) + + + 29 + + CASE + 57 WHEN - 80 THEN NULL WHEN + 48 THEN - + 39 * + 76 - + - 86 - - + 92 * + 18 ELSE NULL END ) + - COUNT ( * ) / + + ( - + COALESCE ( 30, + 83 ) ) * + ( 34 ) AS col2
----
-1408
88

query I rowsort
SELECT ALL - ( + 41 ) * + + 13 * - 30 AS col2
----
15990

query I rowsort
SELECT + - 48 * - 35 col1
----
1680

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

query I rowsort
SELECT + 25 * - - 35 * - 21
----
-18375

query I rowsort
SELECT ALL - ( + ( 83 ) ) * + - 75 + COALESCE ( - + 14, + - 15 ) - + + 54
----
6157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-812
SELECT + 90 - - 11 DIV - + 33 * MAX( DISTINCT - - 87 ) + COUNT( DISTINCT 93 ) - COUNT( * ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-812
SELECT + 90 - - 11 / - + 33 * MAX ( DISTINCT - - 87 ) + COUNT ( DISTINCT 93 ) - COUNT ( * ) AS col0
----
90

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-814
SELECT 32 * - - ( NULLIF ( - 89, + ( - MIN( DISTINCT CAST( + 90 AS DECIMAL ) ) ) ) ) - + COUNT( * ) + - - COALESCE ( + 60, - 6 )
----
-2789

skipif mysql # not compatible
query I rowsort label-814
SELECT 32 * - - ( NULLIF ( - 89, + ( - MIN ( DISTINCT CAST ( + 90 AS REAL ) ) ) ) ) - + COUNT ( * ) + - - COALESCE ( + 60, - 6 )
----
-2789

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT NULLIF ( 59, 15 * + 27 + 10 * + - COUNT( * ) )
----
59

skipif mysql # not compatible
query I rowsort label-815
SELECT NULLIF ( 59, 15 * + 27 + 10 * + - COUNT ( * ) )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-816
SELECT DISTINCT + 10 AS col1, COUNT( * ) * 23
----
10
23

skipif mysql # not compatible
query II rowsort label-816
SELECT DISTINCT + 10 AS col1, COUNT ( * ) * 23
----
10
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-817
SELECT CASE + - 29 WHEN + + 56 * 76 + + ( - CASE 66 WHEN + + COALESCE ( + 85, + 21, + 0 + + 89 ) THEN + 68 END ) + - - 2 THEN + 51 * - 40 END AS col1, - CAST( - CAST( AVG ( - - 23 ) AS SIGNED ) AS SIGNED )
----
NULL
23

skipif mysql # not compatible
query II rowsort label-817
SELECT CASE + - 29 WHEN + + 56 * 76 + + ( - CASE 66 WHEN + + COALESCE ( + 85, + 21, + 0 + + 89 ) THEN + 68 END ) + - - 2 THEN + 51 * - 40 END AS col1, - CAST ( - CAST ( AVG ( - - 23 ) AS INTEGER ) AS INTEGER )
----
NULL
23

query I rowsort
SELECT DISTINCT ( + 14 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT DISTINCT 41 * - SUM( DISTINCT - 49 ) * + - 12 * - 11
----
265188

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT 41 * - SUM ( DISTINCT - 49 ) * + - 12 * - 11
----
265188

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

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

query II rowsort
SELECT - ( - 24 ) - 5 + + + 92 * - + ( - - 86 ) AS col2, 81
----
-7893
81

onlyif mysql # aggregate syntax: 
query II rowsort label-822
SELECT - SUM( + 65 ) * + COUNT( * ) AS col2, + 33
----
-65
33

skipif mysql # not compatible
query II rowsort label-822
SELECT - SUM ( + 65 ) * + COUNT ( * ) AS col2, + 33
----
-65
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-823
SELECT ALL NULLIF ( - + 50, - CAST( CAST( + 36 AS SIGNED ) AS SIGNED ) ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL NULLIF ( - + 50, - CAST ( CAST ( + 36 AS INTEGER ) AS INTEGER ) ) AS col2
----
-50

query I rowsort
SELECT + 0 * + + 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-825
SELECT DISTINCT 52, + COALESCE ( + 42, + + ( - COUNT( * ) ), 75 + + 76, COUNT( * ) + + - CASE - - 44 WHEN + 90 THEN 18 WHEN 23 * - 51 THEN - 91 ELSE 91 END ) AS col0
----
52
42

skipif mysql # not compatible
query II rowsort label-825
SELECT DISTINCT 52, + COALESCE ( + 42, + + ( - COUNT ( * ) ), 75 + + 76, COUNT ( * ) + + - CASE - - 44 WHEN + 90 THEN 18 WHEN 23 * - 51 THEN - 91 ELSE 91 END ) AS col0
----
52
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-826
SELECT - + ( + - 51 ) + + 47 AS col2, 19 * - CAST( NULL AS SIGNED ) AS col1
----
98
NULL

skipif mysql # not compatible
query II rowsort label-826
SELECT - + ( + - 51 ) + + 47 AS col2, 19 * - CAST ( NULL AS INTEGER ) AS col1
----
98
NULL

query II rowsort
SELECT ALL + 66, - 36 * + 8 col1
----
66
-288

query I rowsort
SELECT - - 95 + 38
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT + COUNT( - 71 ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-829
SELECT + COUNT ( - 71 ) - - COUNT ( * )
----
2

query I rowsort
SELECT - + 20 + + 39
----
19

query II rowsort
SELECT ALL + 9 * 91 * - - 93 AS col2, 12
----
76167
12

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

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

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

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

query II rowsort
SELECT ALL ( + ( + + 17 ) ) AS col2, 78 * + + 14
----
17
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT ALL 71 + + COUNT( + - 65 ) + - ( 58 )
----
14

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL 71 + + COUNT ( + - 65 ) + - ( 58 )
----
14

query I rowsort
SELECT - + COALESCE ( + + 52, - + 57 * 7, - - 30 ) AS col0
----
-52

query I rowsort
SELECT + + 79 + - 29 AS col1
----
50

query I rowsort
SELECT - + 94 * + 39 AS col2
----
-3666

query I rowsort
SELECT + + 88 * - 68 AS col2
----
-5984

onlyif mysql # DIV for integer division: 
query I rowsort label-840
SELECT ALL - 36 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL - 36 / 61
----
0

query I rowsort
SELECT ALL 96 * 2
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT COUNT( * ) * CASE - - 73 WHEN + + 50 * - COUNT( * ) + + + 54 THEN NULL WHEN + + 52 / - MAX( + NULLIF ( - COALESCE ( + 52, - 81, + - 8 ), - - 28 ) ) + + COALESCE ( - + SUM( ALL - 28 ), - COUNT( * ) + + 74 ) THEN 90 + - - 1 + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT COUNT ( * ) * CASE - - 73 WHEN + + 50 * - COUNT ( * ) + + + 54 THEN NULL WHEN + + 52 / - MAX ( + NULLIF ( - COALESCE ( + 52, - 81, + - 8 ), - - 28 ) ) + + COALESCE ( - + SUM ( ALL - 28 ), - COUNT ( * ) + + 74 ) THEN 90 + - - 1 + 97 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT COUNT( * ) + - NULLIF ( + 20, - 2 ) + + COUNT( * ) - + + SUM( DISTINCT + - 22 ) * 54 col1
----
1170

skipif mysql # not compatible
query I rowsort label-844
SELECT COUNT ( * ) + - NULLIF ( + 20, - 2 ) + + COUNT ( * ) - + + SUM ( DISTINCT + - 22 ) * 54 col1
----
1170

onlyif mysql # aggregate syntax: 
query II rowsort label-845
SELECT 37 * 46 + 21 + 1 AS col1, 75 + COUNT( DISTINCT - 64 ) + - 6 * - + 49 + - - 69 AS col0
----
1724
439

skipif mysql # not compatible
query II rowsort label-845
SELECT 37 * 46 + 21 + 1 AS col1, 75 + COUNT ( DISTINCT - 64 ) + - 6 * - + 49 + - - 69 AS col0
----
1724
439

onlyif mysql # aggregate syntax: 
query II rowsort label-846
SELECT 84 - COUNT( * ) AS col0, 51 AS col2
----
83
51

skipif mysql # not compatible
query II rowsort label-846
SELECT 84 - COUNT ( * ) AS col0, 51 AS col2
----
83
51

query I rowsort
SELECT ( + 45 ) * - - 18 + + - 29
----
781

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-848
SELECT CAST( - + 9 AS SIGNED ) DIV - 30
----
0

skipif mysql # not compatible
query I rowsort label-848
SELECT CAST ( - + 9 AS INTEGER ) / - 30
----
0

query I rowsort
SELECT 60 + - + 20
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL - 5 + - 97 * + NULLIF ( - 46, - COUNT( * ) )
----
4457

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL - 5 + - 97 * + NULLIF ( - 46, - COUNT ( * ) )
----
4457

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

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

query I rowsort
SELECT ALL + + 77 + NULLIF ( + + 50, 70 + + 56 / + - 63 ) AS col1
----
127

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

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

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

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT - COUNT ( * ) + + 95 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT ALL - - 65 + COUNT( * ) + + + 60
----
126

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL - - 65 + COUNT ( * ) + + + 60
----
126

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

onlyif mysql # aggregate syntax: 
query II rowsort label-857
SELECT ( + - 76 ) AS col0, - CASE - 30 WHEN MIN( ALL + - 78 ) - + COUNT( * ) THEN - - 25 END + + 13 AS col0
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-857
SELECT ( + - 76 ) AS col0, - CASE - 30 WHEN MIN ( ALL + - 78 ) - + COUNT ( * ) THEN - - 25 END + + 13 AS col0
----
-76
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-858
SELECT COUNT( * ) * COALESCE ( + 83, - COUNT( * ) ) DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-858
SELECT COUNT ( * ) * COALESCE ( + 83, - COUNT ( * ) ) / + 46
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT ALL - + 98 + + 26 - + + COUNT( * ) + - CASE + COUNT( * ) WHEN - 74 THEN + 0 + + 10 + + 32 + 44 * + 34 * + NULLIF ( - 33, - 98 ) * - 52 WHEN + 57 THEN + MAX( DISTINCT 15 ) * - 12 * - 42 + AVG ( DISTINCT + 33 ) END * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL - + 98 + + 26 - + + COUNT ( * ) + - CASE + COUNT ( * ) WHEN - 74 THEN + 0 + + 10 + + 32 + 44 * + 34 * + NULLIF ( - 33, - 98 ) * - 52 WHEN + 57 THEN + MAX ( DISTINCT 15 ) * - 12 * - 42 + AVG ( DISTINCT + 33 ) END * - 11
----
NULL

query I rowsort
SELECT - 91 - + + 84
----
-175

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-861
SELECT 88 * - 11 * + COALESCE ( + ( + COUNT( * ) ), - 67 ) * + SUM( DISTINCT + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-861
SELECT 88 * - 11 * + COALESCE ( + ( + COUNT ( * ) ), - 67 ) * + SUM ( DISTINCT + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL + + 85 * 69 AS col2
----
5865

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-864
SELECT ALL ( - 2 ) AS col0, - CAST( NULL AS DECIMAL ) AS col2
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-864
SELECT ALL ( - 2 ) AS col0, - CAST ( NULL AS REAL ) AS col2
----
-2
NULL

query I rowsort
SELECT DISTINCT - - 56 - ( - NULLIF ( - - 58, - - 59 ) ) AS col0
----
114

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-866
SELECT ALL - 14 AS col0, + CAST( NULL AS DECIMAL )
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-866
SELECT ALL - 14 AS col0, + CAST ( NULL AS REAL )
----
-14
NULL

query I rowsort
SELECT 49 + - 40 AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-868
SELECT + 71 * - 9 - ( + 49 ) + + 48 col2, - SUM( ALL - + CAST( NULL AS SIGNED ) ) AS col0
----
-640
NULL

skipif mysql # not compatible
query II rowsort label-868
SELECT + 71 * - 9 - ( + 49 ) + + 48 col2, - SUM ( ALL - + CAST ( NULL AS INTEGER ) ) AS col0
----
-640
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT DISTINCT - 23 * + + COUNT( 53 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT - 23 * + + COUNT ( 53 ) AS col1
----
-23

query I rowsort
SELECT 68 * - 16 AS col2
----
-1088

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

query I rowsort
SELECT 42 + 22 AS col2
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT ALL 13 DIV - 69 * + - 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL 13 / - 69 * + - 60 AS col0
----
0

query I rowsort
SELECT 58 * 58 AS col2
----
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT COUNT( DISTINCT + + 91 ) * + 35 + + 16 + 67
----
118

skipif mysql # not compatible
query I rowsort label-875
SELECT COUNT ( DISTINCT + + 91 ) * + 35 + + 16 + 67
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-876
SELECT DISTINCT - 87 DIV + 51 col0
----
-1

skipif mysql # not compatible
query I rowsort label-876
SELECT DISTINCT - 87 / + 51 col0
----
-1

query II rowsort
SELECT 56, NULLIF ( 85, 34 * - - 7 ) AS col1
----
56
85

query I rowsort
SELECT ALL 83 + + 75 * - + 75
----
-5542

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT + COALESCE ( 43, - 88 ) * NULLIF ( - COUNT( * ), + + 24 ) + - 66 - - 51 + + 35
----
-23

skipif mysql # not compatible
query I rowsort label-879
SELECT + COALESCE ( 43, - 88 ) * NULLIF ( - COUNT ( * ), + + 24 ) + - 66 - - 51 + + 35
----
-23

query I rowsort
SELECT ALL 47 + + - 99
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT CASE 84 WHEN ( AVG ( ALL 27 ) ) THEN - MAX( ALL 11 ) END * + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-881
SELECT CASE 84 WHEN ( AVG ( ALL 27 ) ) THEN - MAX ( ALL 11 ) END * + 94 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 98 * - 31 AS col1
----
3038

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

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT ALL 93 + COUNT( * ) * 41
----
134

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL 93 + COUNT ( * ) * 41
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-885
SELECT 8 - + CAST( 97 AS SIGNED ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-885
SELECT 8 - + CAST ( 97 AS INTEGER ) col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-886
SELECT ALL + ( NULLIF ( - 63, ( 16 ) + + 44 / - 29 ) ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL + ( NULLIF ( - 63, ( 16 ) + + 44 / - 29 ) ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT COALESCE ( 18, + COUNT( * ) + 85, - 31 * - COUNT( * ) ) - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-887
SELECT COALESCE ( 18, + COUNT ( * ) + 85, - 31 * - COUNT ( * ) ) - COUNT ( * )
----
17

query I rowsort
SELECT 92 + + 43 AS col1
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-889
SELECT 27 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-889
SELECT 27 / + 78
----
0

query I rowsort
SELECT 98 * - 65 AS col0
----
-6370

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

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT NULLIF ( + 41, 24 * - 64 ) + + 2 * COUNT( + 86 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-892
SELECT NULLIF ( + 41, 24 * - 64 ) + + 2 * COUNT ( + 86 ) AS col2
----
43

query I rowsort
SELECT ALL - 8 * - 66
----
528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-894
SELECT + 33 * + CASE CAST( - 16 AS SIGNED ) * 49 WHEN COALESCE ( 93, 98 + + 31 ) THEN COUNT( * ) - NULLIF ( - CASE + 48 WHEN + 98 + - 5 THEN - 49 * - COUNT( * ) END, + 38 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-894
SELECT + 33 * + CASE CAST ( - 16 AS INTEGER ) * 49 WHEN COALESCE ( 93, 98 + + 31 ) THEN COUNT ( * ) - NULLIF ( - CASE + 48 WHEN + 98 + - 5 THEN - 49 * - COUNT ( * ) END, + 38 ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 39 * ( - 30 )
----
-1170

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT DISTINCT ( + 24 ) - COUNT( - 83 ) col2
----
23

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT ( + 24 ) - COUNT ( - 83 ) col2
----
23

query I rowsort
SELECT - 3 * 11
----
-33

query I rowsort
SELECT + 73 * 13 AS col2
----
949

query I rowsort
SELECT + 67 + 34
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT + NULLIF ( ( - MIN( + ( 53 ) ) ), 39 )
----
-53

skipif mysql # not compatible
query I rowsort label-900
SELECT + NULLIF ( ( - MIN ( + ( 53 ) ) ), 39 )
----
-53

query I rowsort
SELECT - 31 * 49 col0
----
-1519

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT 73 DIV + 59 + 20
----
21

skipif mysql # not compatible
query I rowsort label-902
SELECT 73 / + 59 + 20
----
21

query I rowsort
SELECT ALL + NULLIF ( + 39, - 81 + - 78 ) col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT ALL + MAX( DISTINCT 61 ) col0
----
61

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL + MAX ( DISTINCT 61 ) col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT - 95 * NULLIF ( 24, COUNT( * ) - - COUNT( * ) ) AS col1
----
-2280

skipif mysql # not compatible
query I rowsort label-905
SELECT - 95 * NULLIF ( 24, COUNT ( * ) - - COUNT ( * ) ) AS col1
----
-2280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-906
SELECT ALL 10 * - CAST( 56 AS SIGNED ) + 71
----
-489

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL 10 * - CAST ( 56 AS INTEGER ) + 71
----
-489

query I rowsort
SELECT DISTINCT - 1 * 20 AS col2
----
-20

query I rowsort
SELECT ALL + COALESCE ( 10, + ( - 18 ) ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT + ( - 92 ) * + 65 + SUM( DISTINCT 10 )
----
-5970

skipif mysql # not compatible
query I rowsort label-909
SELECT + ( - 92 ) * + 65 + SUM ( DISTINCT 10 )
----
-5970

onlyif mysql # DIV for integer division: 
query I rowsort label-910
SELECT - 59 DIV 8
----
-7

skipif mysql # not compatible
query I rowsort label-910
SELECT - 59 / 8
----
-7

query I rowsort
SELECT - 77 + 32 col1
----
-45

query I rowsort
SELECT COALESCE ( + ( ( - 46 ) ), ( NULLIF ( - 39, - ( 69 ) ) ) * 19, 73 )
----
-46

query I rowsort
SELECT + 59 - - 69
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-914
SELECT ALL - COUNT( * ) * ( 14 DIV - 28 ) + CAST( MIN( DISTINCT 25 ) AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL - COUNT ( * ) * ( 14 / - 28 ) + CAST ( MIN ( DISTINCT 25 ) AS INTEGER )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT COALESCE ( + 74, ( - ( COUNT( * ) ) ) + 50 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-915
SELECT COALESCE ( + 74, ( - ( COUNT ( * ) ) ) + 50 ) AS col2
----
74

query I rowsort
SELECT ALL 94 * 23 + - 99 AS col0
----
2063

query I rowsort
SELECT DISTINCT 31 * + 42 + 35 AS col1
----
1337

query I rowsort
SELECT ALL + 52 * - 69 + + NULLIF ( + 83, 17 + 51 ) AS col2
----
-3505

query I rowsort
SELECT - 80 + - NULLIF ( - 33, 99 * 24 ) col1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-920
SELECT ALL + + 81 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL + + 81 / 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT ALL + + 31 * COUNT( * ) - 73
----
-42

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL + + 31 * COUNT ( * ) - 73
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT + CASE + 29 WHEN + ( 68 ) * 41 THEN NULL WHEN 37 THEN NULL ELSE CASE 42 WHEN 34 / NULLIF ( 77, + 26 ) THEN 67 + - 45 * - 35 WHEN 91 + - 29 THEN NULL WHEN 95 THEN COUNT( * ) END * COUNT( * ) + + 31 * - 40 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-922
SELECT + CASE + 29 WHEN + ( 68 ) * 41 THEN NULL WHEN 37 THEN NULL ELSE CASE 42 WHEN 34 / NULLIF ( 77, + 26 ) THEN 67 + - 45 * - 35 WHEN 91 + - 29 THEN NULL WHEN 95 THEN COUNT ( * ) END * COUNT ( * ) + + 31 * - 40 END AS col2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-924
SELECT - - CASE 82 WHEN - 19 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN COALESCE ( 60, 33 ) ELSE NULL END * 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-924
SELECT - - CASE 82 WHEN - 19 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN COALESCE ( 60, 33 ) ELSE NULL END * 78 AS col1
----
NULL

query I rowsort
SELECT + - 75 + 4
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-926
SELECT CAST( 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-926
SELECT CAST ( 55 AS INTEGER )
----
55

query I rowsort
SELECT ALL - 26 * 94 AS col1
----
-2444

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT DISTINCT + - MIN( ( + 86 ) ) - - 82 * + ( ( 52 ) )
----
4178

skipif mysql # not compatible
query I rowsort label-928
SELECT DISTINCT + - MIN ( ( + 86 ) ) - - 82 * + ( ( 52 ) )
----
4178

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT - + CASE - MIN( 64 ) WHEN - NULLIF ( 15, 56 ) THEN + 39 / - 12 ELSE NULL END * + CASE 55 * - 25 WHEN + 54 THEN COUNT( * ) / - 89 WHEN - SUM( ALL 53 ) * + 1 + + 12 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-929
SELECT - + CASE - MIN ( 64 ) WHEN - NULLIF ( 15, 56 ) THEN + 39 / - 12 ELSE NULL END * + CASE 55 * - 25 WHEN + 54 THEN COUNT ( * ) / - 89 WHEN - SUM ( ALL 53 ) * + 1 + + 12 THEN NULL END
----
NULL

query I rowsort
SELECT + + 49 + - 39 AS col0
----
10

query I rowsort
SELECT + 26 - + + 27 AS col0
----
-1

query I rowsort
SELECT ALL 37 * + 14
----
518

query I rowsort
SELECT + 43 * - 82
----
-3526

query I rowsort
SELECT + 19 * - 85
----
-1615

query I rowsort
SELECT DISTINCT 31 + - 76
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT - CAST( - - 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-936
SELECT - CAST ( - - 81 AS INTEGER )
----
-81

query I rowsort
SELECT ALL + 42 + + 81
----
123

query I rowsort
SELECT ALL - 87 + + 82 + 6
----
1

query I rowsort
SELECT DISTINCT + NULLIF ( - 9, 43 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-940
SELECT DISTINCT 0 DIV - 52 * 58 + + 33 DIV CAST( 74 + - 50 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT 0 / - 52 * 58 + + 33 / CAST ( 74 + - 50 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-941
SELECT + COUNT( * ) * + 1 * + ( COUNT( * ) * - 35 ) - ( - CASE + COUNT( * ) WHEN 65 THEN NULL ELSE 3 + 2 * - COALESCE ( COUNT( * ), - 93 DIV ( 9 ) + COUNT( * ) ) END )
----
-34

skipif mysql # not compatible
query I rowsort label-941
SELECT + COUNT ( * ) * + 1 * + ( COUNT ( * ) * - 35 ) - ( - CASE + COUNT ( * ) WHEN 65 THEN NULL ELSE 3 + 2 * - COALESCE ( COUNT ( * ), - 93 / ( 9 ) + COUNT ( * ) ) END )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-942
SELECT ALL MIN( ALL - 41 ) DIV 83 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL MIN ( ALL - 41 ) / 83 + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL + NULLIF ( - 20, 79 )
----
-20

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

skipif mysql # not compatible
query I rowsort label-944
SELECT CAST ( - - MIN ( + 35 ) AS INTEGER )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-945
SELECT ALL 12 / - - 23 + 63 * ( - 75 * - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL 12 / - - 23 + 63 * ( - 75 * - CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-946
SELECT ALL - 43 DIV + MIN( DISTINCT - 26 ) + - 34 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL - 43 / + MIN ( DISTINCT - 26 ) + - 34 AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-947
SELECT DISTINCT + + ( + - CAST( NULL AS SIGNED ) ) / + 0 - - ( - 33 ) * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-947
SELECT DISTINCT + + ( + - CAST ( NULL AS INTEGER ) ) / + 0 - - ( - 33 ) * 44
----
NULL

query I rowsort
SELECT - 69 * + + 98
----
-6762

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT ALL + SUM( - 44 ) * COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL + SUM ( - 44 ) * COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT + + 60 * MIN( DISTINCT - ( 87 ) ) AS col0
----
-5220

skipif mysql # not compatible
query I rowsort label-950
SELECT + + 60 * MIN ( DISTINCT - ( 87 ) ) AS col0
----
-5220

query I rowsort
SELECT 85 * - - 8 + + 31 - - 80 * 98 col2
----
8551

onlyif mysql # DIV for integer division: 
query I rowsort label-952
SELECT 92 DIV - 89 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-952
SELECT 92 / - 89 AS col1
----
-1

query I rowsort
SELECT DISTINCT + 88 * - 15 * 82
----
-108240

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT - SUM( DISTINCT - - 45 ) * - 23 AS col0
----
1035

skipif mysql # not compatible
query I rowsort label-954
SELECT - SUM ( DISTINCT - - 45 ) * - 23 AS col0
----
1035

onlyif mysql # DIV for integer division: 
query I rowsort label-955
SELECT ALL + 49 DIV + 23 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL + 49 / + 23 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT 71 DIV - 58 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-956
SELECT 71 / - 58 AS col2
----
-1

query I rowsort
SELECT - 94 - 77 * - 69 AS col2
----
5219

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

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL - ( - + CAST ( 10 AS INTEGER ) ) AS col0
----
10

query I rowsort
SELECT - 38 + - - 76 + + ( 59 ) col1
----
97

query I rowsort
SELECT 63 - - 13
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-961
SELECT + CAST( + - 40 AS SIGNED ) + + CASE + 90 WHEN - 89 - + 81 THEN NULL WHEN 12 THEN - 32 / 56 END * 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-961
SELECT + CAST ( + - 40 AS INTEGER ) + + CASE + 90 WHEN - 89 - + 81 THEN NULL WHEN 12 THEN - 32 / 56 END * 17 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-962
SELECT - ( - + CASE - COUNT( * ) WHEN 78 * - ( - CASE 56 WHEN + 98 THEN 82 * - 28 ELSE NULL END * + 93 ) + 45 * + 38 THEN 4 + + CAST( NULL AS SIGNED ) WHEN + 29 THEN NULL ELSE COUNT( * ) DIV COUNT( * ) END ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-962
SELECT - ( - + CASE - COUNT ( * ) WHEN 78 * - ( - CASE 56 WHEN + 98 THEN 82 * - 28 ELSE NULL END * + 93 ) + 45 * + 38 THEN 4 + + CAST ( NULL AS INTEGER ) WHEN + 29 THEN NULL ELSE COUNT ( * ) / COUNT ( * ) END ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT COUNT( * ) + 38 - + 13
----
26

skipif mysql # not compatible
query I rowsort label-963
SELECT COUNT ( * ) + 38 - + 13
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-964
SELECT ALL 96 + + 82 DIV + 6
----
109

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL 96 + + 82 / + 6
----
109

query I rowsort
SELECT ALL + 19 * 29 AS col0
----
551

onlyif mysql # DIV for integer division: 
query I rowsort label-966
SELECT 61 + + 40 DIV + 53
----
61

skipif mysql # not compatible
query I rowsort label-966
SELECT 61 + + 40 / + 53
----
61

query I rowsort
SELECT ALL 90 + - - 62
----
152

query I rowsort
SELECT ALL 66 + COALESCE ( + 51, 99 - 66 ) + - 78 AS col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-969
SELECT DISTINCT 95 + - 77 + - 93 DIV 4
----
-5

skipif mysql # not compatible
query I rowsort label-969
SELECT DISTINCT 95 + - 77 + - 93 / 4
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-970
SELECT 43, 37 + - - COUNT( * ) col0
----
43
38

skipif mysql # not compatible
query II rowsort label-970
SELECT 43, 37 + - - COUNT ( * ) col0
----
43
38

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-972
SELECT - 72 AS col2, ( CASE + MAX( DISTINCT 85 ) WHEN + SUM( DISTINCT 93 ) * 71 THEN NULL WHEN 36 THEN CASE COUNT( * ) WHEN - 72 * + COUNT( * ) THEN 86 END - - COUNT( * ) * 66 ELSE 7 * + 51 END ) AS col0
----
-72
357

skipif mysql # not compatible
query II rowsort label-972
SELECT - 72 AS col2, ( CASE + MAX ( DISTINCT 85 ) WHEN + SUM ( DISTINCT 93 ) * 71 THEN NULL WHEN 36 THEN CASE COUNT ( * ) WHEN - 72 * + COUNT ( * ) THEN 86 END - - COUNT ( * ) * 66 ELSE 7 * + 51 END ) AS col0
----
-72
357

query II rowsort
SELECT - 26 AS col2, - 15 AS col0
----
-26
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-974
SELECT 47 DIV 20 + - COUNT( * ) * - 94 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-974
SELECT 47 / 20 + - COUNT ( * ) * - 94 AS col1
----
96

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

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

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

query I rowsort
SELECT ALL NULLIF ( - 86, + - 5 ) + 27 * 99 AS col2
----
2587

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT DISTINCT COUNT( * ) * COUNT( DISTINCT 99 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT COUNT ( * ) * COUNT ( DISTINCT 99 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-979
SELECT COUNT( * ) + + 58 + - ( 12 ) DIV 80 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-979
SELECT COUNT ( * ) + + 58 + - ( 12 ) / 80 AS col1
----
59

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

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

query II rowsort
SELECT 58 col2, 54 * 95 AS col2
----
58
5130

query I rowsort
SELECT ALL - 94 - - - 39 AS col2
----
-133

onlyif mysql # DIV for integer division: 
query I rowsort label-983
SELECT - + 72 DIV - + 18 + + 88 + - 33 DIV 39
----
92

skipif mysql # not compatible
query I rowsort label-983
SELECT - + 72 / - + 18 + + 88 + - 33 / 39
----
92

query I rowsort
SELECT 71 + + 15 + + 18 AS col1
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-985
SELECT + COALESCE ( + CASE + COALESCE ( + 38, SUM( DISTINCT + CAST( + 97 AS SIGNED ) ) ) WHEN 44 THEN - 64 WHEN 80 THEN NULL END, 1, - 12 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-985
SELECT + COALESCE ( + CASE + COALESCE ( + 38, SUM ( DISTINCT + CAST ( + 97 AS INTEGER ) ) ) WHEN 44 THEN - 64 WHEN 80 THEN NULL END, 1, - 12 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT ALL - COUNT( ALL + 58 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL - COUNT ( ALL + 58 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-987
SELECT - COALESCE ( 41, - + 23 * + 4, 13 - 58 * + CAST( - 33 AS SIGNED ), ( - NULLIF ( SUM( 54 ), + 18 ) ) ) * - 51 + 82 AS col2
----
2173

skipif mysql # not compatible
query I rowsort label-987
SELECT - COALESCE ( 41, - + 23 * + 4, 13 - 58 * + CAST ( - 33 AS INTEGER ), ( - NULLIF ( SUM ( 54 ), + 18 ) ) ) * - 51 + 82 AS col2
----
2173

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

onlyif mysql # DIV for integer division: 
query I rowsort label-989
SELECT 86 + + 11 DIV + 77 + - 94 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-989
SELECT 86 + + 11 / + 77 + - 94 AS col0
----
-8

query I rowsort
SELECT DISTINCT + 87 * - 82
----
-7134

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

skipif mysql # not compatible
query I rowsort label-991
SELECT + - MAX ( + 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT - 55 * - 94 + - + 6 + - 21 * + MIN( ALL + 14 ) AS col0
----
4870

skipif mysql # not compatible
query I rowsort label-992
SELECT - 55 * - 94 + - + 6 + - 21 * + MIN ( ALL + 14 ) AS col0
----
4870

query I rowsort
SELECT ALL - + ( - 2 ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-994
SELECT + - COUNT( * ) * COALESCE ( CAST( NULL AS SIGNED ), - 25 * ( - COUNT( * ) * + 13 ), + 50 + - 42 * 24 ) * 78 - 5 + - CAST( NULL AS SIGNED ) * - 81 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-994
SELECT + - COUNT ( * ) * COALESCE ( CAST ( NULL AS INTEGER ), - 25 * ( - COUNT ( * ) * + 13 ), + 50 + - 42 * 24 ) * 78 - 5 + - CAST ( NULL AS INTEGER ) * - 81 col0
----
NULL

query II rowsort
SELECT DISTINCT 46, - 51 + - + 27 - ( 62 ) * 67 AS col0
----
46
-4232

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

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

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

skipif mysql # not compatible
query I rowsort label-997
SELECT DISTINCT - 35 + + + COUNT ( * ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT ALL - MIN( + - 75 ) + + 27 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL - MIN ( + - 75 ) + + 27 AS col0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT DISTINCT - 33 DIV 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT - 33 / 80 AS col1
----
0

query I rowsort
SELECT ALL - 60 + + 39
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1001
SELECT 84 + + NULLIF ( - - CAST( - 40 AS SIGNED ), + COALESCE ( 62, - MAX( DISTINCT + 6 ), COUNT( * ) ) ) DIV - COUNT( * )
----
124

skipif mysql # not compatible
query I rowsort label-1001
SELECT 84 + + NULLIF ( - - CAST ( - 40 AS INTEGER ), + COALESCE ( 62, - MAX ( DISTINCT + 6 ), COUNT ( * ) ) ) / - COUNT ( * )
----
124

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

skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT - 42 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT ALL + 88 + - COUNT( * ) + + 23 * - + 37 * - 14 * 82
----
977035

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL + 88 + - COUNT ( * ) + + 23 * - + 37 * - 14 * 82
----
977035

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT DISTINCT + SUM( + 40 ) * - COALESCE ( - + COUNT( * ), + 97, - COUNT( * ) * + 13, 82 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT + SUM ( + 40 ) * - COALESCE ( - + COUNT ( * ), + 97, - COUNT ( * ) * + 13, 82 ) AS col1
----
40

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1006
SELECT 86 - - CAST( COUNT( * ) AS SIGNED ) * - 50 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-1006
SELECT 86 - - CAST ( COUNT ( * ) AS INTEGER ) * - 50 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT ALL - 25 - + - MIN( DISTINCT + - 78 )
----
-103

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL - 25 - + - MIN ( DISTINCT + - 78 )
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT DISTINCT + 70 * + COALESCE ( - ( + 44 ), - CASE SUM( 96 ) WHEN ( 86 ) - - 26 THEN 67 * - 11 + - COUNT( * ) WHEN 83 + - 15 * 27 THEN + MIN( 55 ) ELSE - 27 + 93 END * 47 - - 69 ) * - SUM( - 44 )
----
-135520

skipif mysql # not compatible
query I rowsort label-1008
SELECT DISTINCT + 70 * + COALESCE ( - ( + 44 ), - CASE SUM ( 96 ) WHEN ( 86 ) - - 26 THEN 67 * - 11 + - COUNT ( * ) WHEN 83 + - 15 * 27 THEN + MIN ( 55 ) ELSE - 27 + 93 END * 47 - - 69 ) * - SUM ( - 44 )
----
-135520

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT ALL + SUM( DISTINCT + 54 ) * - 13 AS col0
----
-702

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL + SUM ( DISTINCT + 54 ) * - 13 AS col0
----
-702

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT NULLIF ( 52, COUNT( * ) + + + AVG ( ALL 16 ) ) + + 1 * 6
----
58

skipif mysql # not compatible
query I rowsort label-1010
SELECT NULLIF ( 52, COUNT ( * ) + + + AVG ( ALL 16 ) ) + + 1 * 6
----
58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1012
SELECT MIN( ALL - 50 ) * - + 80 * + + 17 * 11 + NULLIF ( 50 + MAX( 37 ), 70 ) DIV ( 31 )
----
748002

skipif mysql # not compatible
query I rowsort label-1012
SELECT MIN ( ALL - 50 ) * - + 80 * + + 17 * 11 + NULLIF ( 50 + MAX ( 37 ), 70 ) / ( 31 )
----
748002

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT DISTINCT + 32 / + + CASE + COUNT( ALL 51 ) WHEN + CASE 71 WHEN ( - 86 ) * 67 THEN COUNT( * ) END THEN - 87 + - 73 END + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT + 32 / + + CASE + COUNT ( ALL 51 ) WHEN + CASE 71 WHEN ( - 86 ) * 67 THEN COUNT ( * ) END THEN - 87 + - 73 END + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT - CASE 18 WHEN + 87 THEN - NULLIF ( - 56, ( COUNT( * ) ) ) END * COALESCE ( COUNT( * ) + - 93, - 0 / + ( + 66 ) ) + - 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT - CASE 18 WHEN + 87 THEN - NULLIF ( - 56, ( COUNT ( * ) ) ) END * COALESCE ( COUNT ( * ) + - 93, - 0 / + ( + 66 ) ) + - 30 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1015
SELECT + 87 DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-1015
SELECT + 87 / + 50
----
1

query I rowsort
SELECT + - 94 * ( 61 ) - - 86 AS col2
----
-5648

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT ALL + 83 * + MIN( DISTINCT + + 87 ) * + 85 + 9 AS col1
----
613794

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL + 83 * + MIN ( DISTINCT + + 87 ) * + 85 + 9 AS col1
----
613794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1018
SELECT DISTINCT - - 70 DIV - - ( - 59 ) * + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT - - 70 / - - ( - 59 ) * + COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT ALL + 38 * + ( 94 ) AS col1
----
3572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1020
SELECT COUNT( DISTINCT - CAST( + 11 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1020
SELECT COUNT ( DISTINCT - CAST ( + 11 AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT - - 52 * - + 18 * 52 * - 28 + - COUNT( * )
----
1362815

skipif mysql # not compatible
query I rowsort label-1021
SELECT - - 52 * - + 18 * 52 * - 28 + - COUNT ( * )
----
1362815

query I rowsort
SELECT ALL 45 * 17
----
765

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1024
SELECT + 20 DIV - + 47 AS col0, 9
----
0
9

skipif mysql # not compatible
query II rowsort label-1024
SELECT + 20 / - + 47 AS col0, 9
----
0
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1025
SELECT + SUM( - 60 ) DIV 4 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1025
SELECT + SUM ( - 60 ) / 4 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT - 3 * - COUNT( * ) * + 99
----
297

skipif mysql # not compatible
query I rowsort label-1026
SELECT - 3 * - COUNT ( * ) * + 99
----
297

onlyif mysql # aggregate syntax: 
query II rowsort label-1027
SELECT + COUNT( * ) + - + 79, - 38 AS col0
----
-78
-38

skipif mysql # not compatible
query II rowsort label-1027
SELECT + COUNT ( * ) + - + 79, - 38 AS col0
----
-78
-38

query I rowsort
SELECT + + 17 + ( - 0 ) AS col1
----
17

query I rowsort
SELECT ALL - 6 + + 99 + + + 91 AS col2
----
184

query I rowsort
SELECT + - NULLIF ( + + NULLIF ( 74, - ( - NULLIF ( 69, 76 * 5 ) ) * 68 ), + 83 ) * 89
----
-6586

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

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

query I rowsort
SELECT DISTINCT 20 + - + ( 34 ) + - 51 + - + 70 * 99 * + 30
----
-207965

query I rowsort
SELECT + 43 + + 41
----
84

query I rowsort
SELECT - 49 + + 41
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT ALL 55 + - - ( - COUNT( * ) ) + - 15 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL 55 + - - ( - COUNT ( * ) ) + - 15 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT DISTINCT MAX( + NULLIF ( - - 82, + 13 ) ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT MAX ( + NULLIF ( - - 82, + 13 ) ) AS col0
----
82

query I rowsort
SELECT - NULLIF ( + - 76, - 96 ) + 1 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1038
SELECT + COUNT( * ) + - + CAST( + ( COALESCE ( - - 0, 43 + - 71, 60 + 48 ) ) AS SIGNED ) + 27 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-1038
SELECT + COUNT ( * ) + - + CAST ( + ( COALESCE ( - - 0, 43 + - 71, 60 + 48 ) ) AS INTEGER ) + 27 AS col0
----
28

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

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL MAX ( - - 21 )
----
21

query I rowsort
SELECT - 19 * + ( + + 10 )
----
-190

query I rowsort
SELECT - ( - - 59 ) + - 5 + 86 col1
----
22

query III rowsort
SELECT 11 AS col0, 14 * - 77, + 0 AS col0
----
11
-1078
0

query I rowsort
SELECT - 83 * + + COALESCE ( + + ( - 5 ), + 27 ) AS col1
----
415

query I rowsort
SELECT DISTINCT - 12 - + 70 * - 34 AS col0
----
2368

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

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

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

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

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

query I rowsort
SELECT - 23 * - - 56
----
-1288

query I rowsort
SELECT ALL + 21 * - - 14 AS col1
----
294

onlyif mysql # DIV for integer division: 
query I rowsort label-1050
SELECT - 41 + + 38 * 61 DIV - 77
----
-71

skipif mysql # not compatible
query I rowsort label-1050
SELECT - 41 + + 38 * 61 / - 77
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-1051
SELECT - 63 DIV 59 + - 84
----
-85

skipif mysql # not compatible
query I rowsort label-1051
SELECT - 63 / 59 + - 84
----
-85

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

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

query I rowsort
SELECT ALL - 53 * + 10
----
-530

query I rowsort
SELECT - - 48 * - + 88
----
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT ALL - + SUM( + 20 ) * 19 AS col2
----
-380

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL - + SUM ( + 20 ) * 19 AS col2
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT - 90 * + 23 - - + ( COUNT( * ) ) - 50 col0
----
-2119

skipif mysql # not compatible
query I rowsort label-1056
SELECT - 90 * + 23 - - + ( COUNT ( * ) ) - 50 col0
----
-2119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1057
SELECT + CASE - 27 WHEN - MAX( + - 24 ) THEN + 63 * COALESCE ( 96, - 73 ) ELSE NULL END * 44 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1057
SELECT + CASE - 27 WHEN - MAX ( + - 24 ) THEN + 63 * COALESCE ( 96, - 73 ) ELSE NULL END * 44 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1058
SELECT CASE + 74 WHEN + 55 + 61 THEN - 4 * 68 + - 60 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END / 85 + 67 * + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1058
SELECT CASE + 74 WHEN + 55 + 61 THEN - 4 * 68 + - 60 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END / 85 + 67 * + 76 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1059
SELECT DISTINCT + 12 * 48 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT + 12 * 48 + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - + 96 + + 7 AS col0
----
-89

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

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

query I rowsort
SELECT 21 * - 13 + + NULLIF ( - 24, - - 1 ) + - ( - 69 ) * - 87 AS col0
----
-6300

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT DISTINCT + CASE 53 WHEN - + 59 THEN NULL WHEN 13 + + + COALESCE ( 38, + COUNT( * ) ) * COUNT( * ) THEN NULL WHEN COUNT( ALL - 31 ) THEN NULLIF ( 79, 92 + - 98 ) * 6 ELSE MIN( - 89 ) END * 96 + + 64 AS col2
----
-8480

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT + CASE 53 WHEN - + 59 THEN NULL WHEN 13 + + + COALESCE ( 38, + COUNT ( * ) ) * COUNT ( * ) THEN NULL WHEN COUNT ( ALL - 31 ) THEN NULLIF ( 79, 92 + - 98 ) * 6 ELSE MIN ( - 89 ) END * 96 + + 64 AS col2
----
-8480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1064
SELECT ALL + 90 * COUNT( * ) DIV + COUNT( * ) + 62 AS col1
----
152

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL + 90 * COUNT ( * ) / + COUNT ( * ) + 62 AS col1
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1065
SELECT ALL + CAST( 23 AS SIGNED ) * - 15 / COUNT( * ) + 69 - MAX( + 6 + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL + CAST ( 23 AS INTEGER ) * - 15 / COUNT ( * ) + 69 - MAX ( + 6 + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 40 * + + 80 * 35 + + 66 - - 72 AS col0
----
112138

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT + 63 + MAX( ALL + ( + 16 ) ) * + 15
----
303

skipif mysql # not compatible
query I rowsort label-1067
SELECT + 63 + MAX ( ALL + ( + 16 ) ) * + 15
----
303

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

query I rowsort
SELECT NULLIF ( 44, + 76 * + + COALESCE ( 78, - 54 ) * + 73 )
----
44

query II rowsort
SELECT + 61 * + + 99, 0 AS col0
----
6039
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1071
SELECT DISTINCT + 29 AS col2, 69 - + + MIN( DISTINCT - 89 ) AS col2
----
29
158

skipif mysql # not compatible
query II rowsort label-1071
SELECT DISTINCT + 29 AS col2, 69 - + + MIN ( DISTINCT - 89 ) AS col2
----
29
158

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT MIN( 12 ) col2
----
12

skipif mysql # not compatible
query I rowsort label-1072
SELECT MIN ( 12 ) col2
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT - ( - MAX( 4 ) ) col2
----
4

skipif mysql # not compatible
query I rowsort label-1074
SELECT - ( - MAX ( 4 ) ) col2
----
4

query I rowsort
SELECT - 19 + + 51 AS col1
----
32

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

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

query I rowsort
SELECT ALL COALESCE ( - 10, + 98 )
----
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT MAX( - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-1079
SELECT MAX ( - 54 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1080
SELECT ALL 65 * 46 * + CAST( - COUNT( + 40 ) AS SIGNED )
----
-2990

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL 65 * 46 * + CAST ( - COUNT ( + 40 ) AS INTEGER )
----
-2990

query I rowsort
SELECT + 71 * + - 63 * ( - + ( + 69 ) )
----
308637

query I rowsort
SELECT DISTINCT 0 * + 39
----
0

query I rowsort
SELECT 37 * 2 col0
----
74

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

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

query I rowsort
SELECT DISTINCT 64 * + NULLIF ( + ( + 37 ), + 59 ) * 3
----
7104

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT 15 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-1086
SELECT 15 / 43
----
0

query I rowsort
SELECT ALL - - COALESCE ( + 5, - 90 ) + - 54
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT - + CASE - COALESCE ( + - COUNT( * ), 33 * + 25 ) WHEN + 18 / 87 + 44 * 4 THEN NULL WHEN 53 + 63 * - 69 THEN - 91 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1088
SELECT - + CASE - COALESCE ( + - COUNT ( * ), 33 * + 25 ) WHEN + 18 / 87 + 44 * 4 THEN NULL WHEN 53 + 63 * - 69 THEN - 91 ELSE NULL END AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT 94 DIV - 84
----
-1

skipif mysql # not compatible
query I rowsort label-1090
SELECT 94 / - 84
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT + 44 DIV - 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1091
SELECT + 44 / - 51 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1092
SELECT ( - 27 ) * + + CASE + 73 WHEN - COUNT( * ) + - NULLIF ( 8, 81 ) THEN - 98 END / - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1092
SELECT ( - 27 ) * + + CASE + 73 WHEN - COUNT ( * ) + - NULLIF ( 8, 81 ) THEN - 98 END / - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT ALL - - 40 + ( - 75 ) - - COUNT( ALL 22 )
----
-34

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL - - 40 + ( - 75 ) - - COUNT ( ALL 22 )
----
-34

query I rowsort
SELECT + NULLIF ( 34, 30 ) col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-1095
SELECT 0 AS col1, - MAX( - - 41 ) * - 61 + + 82 * - 5 * - 62
----
0
27921

skipif mysql # not compatible
query II rowsort label-1095
SELECT 0 AS col1, - MAX ( - - 41 ) * - 61 + + 82 * - 5 * - 62
----
0
27921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1096
SELECT ALL - 70 + NULLIF ( + - 71, 68 * COUNT( * ) / + + 64 + CAST( NULL AS SIGNED ) ) - 90 * 35
----
-3291

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL - 70 + NULLIF ( + - 71, 68 * COUNT ( * ) / + + 64 + CAST ( NULL AS INTEGER ) ) - 90 * 35
----
-3291

query I rowsort
SELECT DISTINCT - + 98 + + 84 - - 69 * - 95 + + + 75
----
-6494

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1099
SELECT ALL - 45, COUNT( * ) + - - 50 * + + 78 * - + 48 * COUNT( * ) AS col1
----
-45
-187199

skipif mysql # not compatible
query II rowsort label-1099
SELECT ALL - 45, COUNT ( * ) + - - 50 * + + 78 * - + 48 * COUNT ( * ) AS col1
----
-45
-187199

query II rowsort
SELECT - 93, 44 + 60 AS col2
----
-93
104

query I rowsort
SELECT + NULLIF ( + 52, - 1 )
----
52

query I rowsort
SELECT 92 * + 75 + + ( - 14 ) AS col1
----
6886

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT COUNT( * ) * - COALESCE ( - + 15, - 30 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1103
SELECT COUNT ( * ) * - COALESCE ( - + 15, - 30 ) AS col2
----
15

query II rowsort
SELECT 77 + - 60 col1, - 15 * + + 36 AS col1
----
17
-540

query I rowsort
SELECT 86 + + 21 - - - 25 * - 81 + - + 38 col2
----
2094

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT ALL - COALESCE ( + 39, CASE + MAX( - 59 ) WHEN + COALESCE ( + 37, - 68 * ( 90 ) ) THEN - 75 * SUM( 47 ) WHEN COUNT( * ) THEN NULL ELSE NULL END ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL - COALESCE ( + 39, CASE + MAX ( - 59 ) WHEN + COALESCE ( + 37, - 68 * ( 90 ) ) THEN - 75 * SUM ( 47 ) WHEN COUNT ( * ) THEN NULL ELSE NULL END ) AS col1
----
-39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT ( 78 ) * - 67 * - - 38 / + 14 * + CASE 2 WHEN + 63 / - 6 THEN - 99 + 68 WHEN - 75 THEN NULLIF ( - MAX( + 69 ), - 0 ) + 55 WHEN + 80 THEN + 15 * - 82 END + 81 * - COUNT( * ) + - 38 / - 19 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1108
SELECT ( 78 ) * - 67 * - - 38 / + 14 * + CASE 2 WHEN + 63 / - 6 THEN - 99 + 68 WHEN - 75 THEN NULLIF ( - MAX ( + 69 ), - 0 ) + 55 WHEN + 80 THEN + 15 * - 82 END + 81 * - COUNT ( * ) + - 38 / - 19 col1
----
NULL

query I rowsort
SELECT - 54 * 6 - 35
----
-359

onlyif mysql # aggregate syntax: 
query II rowsort label-1110
SELECT ALL COUNT( ALL - + 20 ) * 14 * + - ( + 18 ), + 90 * MAX( - 32 ) - ( + 97 ) AS col1
----
-252
-2977

skipif mysql # not compatible
query II rowsort label-1110
SELECT ALL COUNT ( ALL - + 20 ) * 14 * + - ( + 18 ), + 90 * MAX ( - 32 ) - ( + 97 ) AS col1
----
-252
-2977

onlyif mysql # DIV for integer division: 
query II rowsort label-1111
SELECT 83 DIV + 88 AS col0, 65 col1
----
0
65

skipif mysql # not compatible
query II rowsort label-1111
SELECT 83 / + 88 AS col0, 65 col1
----
0
65

query II rowsort
SELECT 21 + + 91 col0, + 79
----
112
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT 28 * + MIN( DISTINCT 57 ) AS col2
----
1596

skipif mysql # not compatible
query I rowsort label-1114
SELECT 28 * + MIN ( DISTINCT 57 ) AS col2
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT ( - + 31 ) + + 21 + - COALESCE ( + + COUNT( * ), - 16 + - 8 + - 60, - 82 )
----
-11

skipif mysql # not compatible
query I rowsort label-1115
SELECT ( - + 31 ) + + 21 + - COALESCE ( + + COUNT ( * ), - 16 + - 8 + - 60, - 82 )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-1116
SELECT COUNT( * ) + - - 80 + - 19, 10 AS col2
----
62
10

skipif mysql # not compatible
query II rowsort label-1116
SELECT COUNT ( * ) + - - 80 + - 19, 10 AS col2
----
62
10

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

skipif mysql # not compatible
query I rowsort label-1117
SELECT ( + 36 ) / COUNT ( * ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT NULLIF ( + SUM( DISTINCT - - 42 ), + - NULLIF ( + 34, + 29 ) ) * + + 31 AS col1
----
1302

skipif mysql # not compatible
query I rowsort label-1118
SELECT NULLIF ( + SUM ( DISTINCT - - 42 ), + - NULLIF ( + 34, + 29 ) ) * + + 31 AS col1
----
1302

query I rowsort
SELECT 11 + + + 71 AS col1
----
82

query I rowsort
SELECT 18 * + 59 AS col0
----
1062

query I rowsort
SELECT ALL 23 + - ( + 19 ) + + 14
----
18

query I rowsort
SELECT + COALESCE ( ( 78 ), - + 45 ) + - 51 * + 33
----
-1605

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1123
SELECT ALL - COALESCE ( - SUM( ALL - 1 ), 41 DIV 26 + + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL - COALESCE ( - SUM ( ALL - 1 ), 41 / 26 + + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT 22 + - 91 + 19 + 7
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT ALL COALESCE ( + 57, + ( - SUM( ALL + - 22 ) ) * 20 + + 37 ) + 96 * 97 AS col0
----
9369

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL COALESCE ( + 57, + ( - SUM ( ALL + - 22 ) ) * 20 + + 37 ) + 96 * 97 AS col0
----
9369

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT ALL + - 34 * COUNT( * ) + - 48 + - COUNT( 50 ) col2
----
-83

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL + - 34 * COUNT ( * ) + - 48 + - COUNT ( 50 ) col2
----
-83

query I rowsort
SELECT ALL + 75 * + - 80 + + + 66 * - 28
----
-7848

query I rowsort
SELECT - 36 * - - 31 AS col1
----
-1116

onlyif mysql # DIV for integer division: 
query I rowsort label-1131
SELECT DISTINCT + 16 DIV + + 57
----
0

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT + 16 / + + 57
----
0

query I rowsort
SELECT 88 * + + 4 col2
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT + 2 * - - NULLIF ( - 25, - + COUNT( * ) ) + + 34 - - 62 col1
----
46

skipif mysql # not compatible
query I rowsort label-1133
SELECT + 2 * - - NULLIF ( - 25, - + COUNT ( * ) ) + + 34 - - 62 col1
----
46

query I rowsort
SELECT 47 + + + ( - - 63 ) * - 92 col1
----
-5749

query II rowsort
SELECT + 44 AS col0, + 69
----
44
69

query I rowsort
SELECT ALL - 24 * + - 57 AS col2
----
1368

query II rowsort
SELECT DISTINCT - 19, ( - 57 ) AS col1
----
-19
-57

query II rowsort
SELECT 96 * + + 61 * 40 AS col1, - 46 AS col2
----
234240
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1139
SELECT 12 + + 68 * + 96 * - 51 AS col2, 36 * + 62 - - - MIN( + 50 ) + 55 DIV + 12
----
-332916
2186

skipif mysql # not compatible
query II rowsort label-1139
SELECT 12 + + 68 * + 96 * - 51 AS col2, 36 * + 62 - - - MIN ( + 50 ) + 55 / + 12
----
-332916
2186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1140
SELECT 86 * - 52 * + 61 * 14 DIV - COALESCE ( - + COUNT( * ), + 48 ) AS col0
----
-3819088

skipif mysql # not compatible
query I rowsort label-1140
SELECT 86 * - 52 * + 61 * 14 / - COALESCE ( - + COUNT ( * ), + 48 ) AS col0
----
-3819088

query I rowsort
SELECT - 54 * - 30 AS col0
----
1620

query I rowsort
SELECT DISTINCT - 53 + - 83
----
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-1143
SELECT ALL + 62 DIV - 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL + 62 / - 72 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1144
SELECT - 18 DIV SUM( + 60 ) AS col0, - 92 + 71 * - 20 * 65
----
0
-92392

skipif mysql # not compatible
query II rowsort label-1144
SELECT - 18 / SUM ( + 60 ) AS col0, - 92 + 71 * - 20 * 65
----
0
-92392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1145
SELECT DISTINCT + 90 + CASE - - 36 WHEN 37 THEN NULL WHEN - 15 THEN 86 ELSE - MAX( DISTINCT + 47 ) / CAST( NULL AS SIGNED ) - - SUM( ALL + 77 ) END * - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1145
SELECT DISTINCT + 90 + CASE - - 36 WHEN 37 THEN NULL WHEN - 15 THEN 86 ELSE - MAX ( DISTINCT + 47 ) / CAST ( NULL AS INTEGER ) - - SUM ( ALL + 77 ) END * - 81 AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - + 92, 25 / + - 85 - - 10 ) + + 56 AS col2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT DISTINCT MIN( - - ( - 43 ) ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT MIN ( - - ( - 43 ) ) AS col0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1148
SELECT DISTINCT COUNT( * ) + 93 DIV - ( + ( - + 62 ) ) + 1 DIV + ( + + 54 )
----
2

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT COUNT ( * ) + 93 / - ( + ( - + 62 ) ) + 1 / + ( + + 54 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT ALL 64 + + - SUM( DISTINCT 54 )
----
10

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL 64 + + - SUM ( DISTINCT 54 )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1150
SELECT - 40 + 39 - 71 * - 70 * + MAX( ALL - 80 ) AS col0, + 2 + - + 70 + - 98 * + COUNT( * ) AS col2
----
-397601
-166

skipif mysql # not compatible
query II rowsort label-1150
SELECT - 40 + 39 - 71 * - 70 * + MAX ( ALL - 80 ) AS col0, + 2 + - + 70 + - 98 * + COUNT ( * ) AS col2
----
-397601
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1151
SELECT DISTINCT - - NULLIF ( ( - CAST( + COUNT( * ) AS SIGNED ) ), 25 ) + CAST( NULL AS SIGNED ) + + 1 * + - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT - - NULLIF ( ( - CAST ( + COUNT ( * ) AS INTEGER ) ), 25 ) + CAST ( NULL AS INTEGER ) + + 1 * + - 93 AS col2
----
NULL

query I rowsort
SELECT - ( - 5 ) * - 20 AS col0
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1153
SELECT ALL 1 + + - CAST( NULL AS SIGNED ) + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL 1 + + - CAST ( NULL AS INTEGER ) + + 17
----
NULL

query I rowsort
SELECT DISTINCT + + 56 + - 24 AS col2
----
32

query I rowsort
SELECT - - NULLIF ( 90, - 8 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT ALL - 90 - COUNT( * ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL - 90 - COUNT ( * ) col2
----
-91

query I rowsort
SELECT + + 9 - 79
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1158
SELECT ALL 12 * + 20 - 9 + + 24 * ( 33 ) * + - COALESCE ( - - 36, ( 13 ) * 40 ) * 41 + 8 DIV 51 AS col2
----
-1168761

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL 12 * + 20 - 9 + + 24 * ( 33 ) * + - COALESCE ( - - 36, ( 13 ) * 40 ) * 41 + 8 / 51 AS col2
----
-1168761

query I rowsort
SELECT + 0 * + 45
----
0

query I rowsort
SELECT - 69 * + 63 AS col1
----
-4347

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1161
SELECT ALL - CAST( NULL AS DECIMAL ) * + + 25 + + + 14 AS col0, + 11 - - COALESCE ( - 49, - CAST( - 60 AS SIGNED ) * - 46, - 28 * 18 + 62 ) * + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1161
SELECT ALL - CAST ( NULL AS REAL ) * + + 25 + + + 14 AS col0, + 11 - - COALESCE ( - 49, - CAST ( - 60 AS INTEGER ) * - 46, - 28 * 18 + 62 ) * + CAST ( NULL AS INTEGER )
----
NULL
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT CASE 49 WHEN + + 92 THEN 62 * - 69 * + 31 WHEN - CASE AVG ( ALL + + 45 ) WHEN + 23 THEN - 83 * - 46 ELSE COUNT( * ) END THEN CASE - 24 WHEN ( 12 ) THEN 97 WHEN COALESCE ( + SUM( - 85 ), - COUNT( * ) ) THEN NULL ELSE 50 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1164
SELECT CASE 49 WHEN + + 92 THEN 62 * - 69 * + 31 WHEN - CASE AVG ( ALL + + 45 ) WHEN + 23 THEN - 83 * - 46 ELSE COUNT ( * ) END THEN CASE - 24 WHEN ( 12 ) THEN 97 WHEN COALESCE ( + SUM ( - 85 ), - COUNT ( * ) ) THEN NULL ELSE 50 END END
----
NULL

query I rowsort
SELECT CASE + 76 WHEN - 4 * - 1 + + - 2 + + 86 / - + 45 * + - 32 * + 52 + 29 THEN - 2 END AS col2
----
NULL

query I rowsort
SELECT 39 * NULLIF ( + 77, + 12 + + 59 - AVG ( + 96 ) ) + - - 36 col2
----
3039

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT - 36 * 72 * - COUNT( - + 64 ) AS col1
----
2592

skipif mysql # not compatible
query I rowsort label-1167
SELECT - 36 * 72 * - COUNT ( - + 64 ) AS col1
----
2592

onlyif mysql # DIV for integer division: 
query II rowsort label-1168
SELECT ALL 42 DIV - 73, + 83 * 87 AS col1
----
0
7221

skipif mysql # not compatible
query II rowsort label-1168
SELECT ALL 42 / - 73, + 83 * 87 AS col1
----
0
7221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1169
SELECT NULLIF ( 76, - - CASE + ( 26 ) WHEN - COUNT( * ) THEN NULL WHEN - MAX( - + 28 ) THEN - 51 + CAST( NULL AS SIGNED ) END * 73 + 5 ) * - 24 + 41 * 27 AS col1
----
-717

skipif mysql # not compatible
query I rowsort label-1169
SELECT NULLIF ( 76, - - CASE + ( 26 ) WHEN - COUNT ( * ) THEN NULL WHEN - MAX ( - + 28 ) THEN - 51 + CAST ( NULL AS INTEGER ) END * 73 + 5 ) * - 24 + 41 * 27 AS col1
----
-717

query I rowsort
SELECT - 46 * - 24 + 11
----
1115

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT COALESCE ( 25, 80 - COUNT( + 14 ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1171
SELECT COALESCE ( 25, 80 - COUNT ( + 14 ) ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT ALL + MAX( DISTINCT - 78 ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL + MAX ( DISTINCT - 78 ) col2
----
-78

query I rowsort
SELECT ALL 64 * + 77 + + 20 + - + ( + - 47 ) AS col1
----
4995

query I rowsort
SELECT - 77 + + 15 + + - 85
----
-147

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT ALL COALESCE ( 42, - 97 ) * ( - COUNT( - 11 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL COALESCE ( 42, - 97 ) * ( - COUNT ( - 11 ) )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT - 70 + + 49 + MIN( - + 3 )
----
-24

skipif mysql # not compatible
query I rowsort label-1177
SELECT - 70 + + 49 + MIN ( - + 3 )
----
-24

query II rowsort
SELECT + 41 * 18 AS col0, 61
----
738
61

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

skipif mysql # not compatible
query I rowsort label-1179
SELECT COUNT ( - 57 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT DISTINCT + COUNT( * ) * + 62 * - 36 + 48
----
-2184

skipif mysql # not compatible
query I rowsort label-1180
SELECT DISTINCT + COUNT ( * ) * + 62 * - 36 + 48
----
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT - 15 + - COUNT( * ) * - + 62 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1181
SELECT - 15 + - COUNT ( * ) * - + 62 AS col2
----
47

query I rowsort
SELECT + - 49 * 8
----
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT DISTINCT - 32 - 51 - + CASE 0 WHEN - - COUNT( * ) THEN 97 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT - 32 - 51 - + CASE 0 WHEN - - COUNT ( * ) THEN 97 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + + 54 - + 28 - 31 * - 62
----
1948

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT - SUM( DISTINCT - - NULLIF ( - 65, - 50 * + - 70 ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1185
SELECT - SUM ( DISTINCT - - NULLIF ( - 65, - 50 * + - 70 ) ) AS col0
----
65

query I rowsort
SELECT - - 88 * + + 49 AS col0
----
4312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1187
SELECT ALL - MIN( - - ( - 11 ) ) DIV + 65 * - 24 + + - 41
----
-41

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL - MIN ( - - ( - 11 ) ) / + 65 * - 24 + + - 41
----
-41

query I rowsort
SELECT ALL + 19 - + + 95
----
-76

query I rowsort
SELECT DISTINCT + 60 * - ( - - 60 ) * - 58 + 67
----
208867

query I rowsort
SELECT DISTINCT - 49 * + 62 - + - 54 AS col1
----
-2984

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT + 27 * 81 + ( - - MIN( ALL + 74 ) ) + 0 - 91 * + ( - + ( 77 ) )
----
9268

skipif mysql # not compatible
query I rowsort label-1191
SELECT + 27 * 81 + ( - - MIN ( ALL + 74 ) ) + 0 - 91 * + ( - + ( 77 ) )
----
9268

query I rowsort
SELECT ALL - + 41 * + 55
----
-2255

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1193
SELECT - CASE WHEN NULL IS NOT NULL THEN NULL ELSE - MAX( DISTINCT + 50 ) END DIV + - 75 + + ( 60 ) AS col1, - 62 * 72
----
60
-4464

skipif mysql # not compatible
query II rowsort label-1193
SELECT - CASE WHEN NULL IS NOT NULL THEN NULL ELSE - MAX ( DISTINCT + 50 ) END / + - 75 + + ( 60 ) AS col1, - 62 * 72
----
60
-4464

onlyif mysql # DIV for integer division: 
query I rowsort label-1194
SELECT + + 72 DIV + - 89 * + - 62
----
0

skipif mysql # not compatible
query I rowsort label-1194
SELECT + + 72 / + - 89 * + - 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1195
SELECT - + 61 + - CAST( NULL AS SIGNED ) + - 97 * COUNT( * ) * COALESCE ( 55, + COUNT( * ) / - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1195
SELECT - + 61 + - CAST ( NULL AS INTEGER ) + - 97 * COUNT ( * ) * COALESCE ( 55, + COUNT ( * ) / - COUNT ( * ) ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1196
SELECT + - 86 + + CAST ( NULL AS INTEGER ) * + 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1197
SELECT + 84 + + CAST( - + 33 AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-1197
SELECT + 84 + + CAST ( - + 33 AS INTEGER ) AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1198
SELECT - 36 * + - CAST( NULL AS SIGNED ) * + SUM( - 71 ) + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1198
SELECT - 36 * + - CAST ( NULL AS INTEGER ) * + SUM ( - 71 ) + COUNT ( * ) col1
----
NULL

query I rowsort
SELECT DISTINCT 1 * - 53 AS col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1200
SELECT 2 * - 8 * CAST( 83 AS SIGNED ) AS col1
----
-1328

skipif mysql # not compatible
query I rowsort label-1200
SELECT 2 * - 8 * CAST ( 83 AS INTEGER ) AS col1
----
-1328

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT 37 + - - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-1201
SELECT 37 + - - COUNT ( * )
----
38

query I rowsort
SELECT DISTINCT 36 * + - 68
----
-2448

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL COUNT( * ) + + 38 - NULLIF ( ( 79 ), COUNT( DISTINCT + 58 ) * - - 12 ) + - 35
----
-75

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL COUNT ( * ) + + 38 - NULLIF ( ( 79 ), COUNT ( DISTINCT + 58 ) * - - 12 ) + - 35
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1204
SELECT 21 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-1204
SELECT 21 / - 60
----
0

query II rowsort
SELECT ALL 89 + - 22 + - 46 + 51 - + 21 AS col2, 63 - + 61 * + + 19
----
51
-1096

query I rowsort
SELECT DISTINCT 0 * - + 99
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1207
SELECT 11 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-1207
SELECT 11 / 99
----
0

query I rowsort
SELECT ALL 53 + - 40
----
13

query I rowsort
SELECT 17 * + 8 AS col2
----
136

query I rowsort
SELECT 56 * + 31
----
1736

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1212
SELECT 76 AS col1, - CAST( NULL AS SIGNED ) / - ( ( - ( - - ( - 58 ) ) ) ) + - CAST( - - 75 AS SIGNED )
----
76
NULL

skipif mysql # not compatible
query II rowsort label-1212
SELECT 76 AS col1, - CAST ( NULL AS INTEGER ) / - ( ( - ( - - ( - 58 ) ) ) ) + - CAST ( - - 75 AS INTEGER )
----
76
NULL

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

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

query I rowsort
SELECT 72 * 56
----
4032

query I rowsort
SELECT ALL - - ( 76 ) * + 91
----
6916

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

skipif mysql # not compatible
query I rowsort label-1216
SELECT - CAST ( NULL AS REAL ) + + - ( + 4 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1218
SELECT DISTINCT - 45 DIV - NULLIF ( - 55, COUNT( * ) ) * 33 + 22
----
22

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT - 45 / - NULLIF ( - 55, COUNT ( * ) ) * 33 + 22
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT + MIN( ALL + 58 ) col2
----
58

skipif mysql # not compatible
query I rowsort label-1219
SELECT + MIN ( ALL + 58 ) col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1220
SELECT ALL + - 18 - + 83 DIV 15 * - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL + - 18 - + 83 / 15 * - COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT ALL 49 * - COUNT( + 88 ) * + COALESCE ( + - 26, - 16 + - + 18, COUNT( ALL - 16 ), 87 / + ( 30 ) ) * ( CASE 81 WHEN - 92 THEN + 65 + 28 WHEN 20 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL 49 * - COUNT ( + 88 ) * + COALESCE ( + - 26, - 16 + - + 18, COUNT ( ALL - 16 ), 87 / + ( 30 ) ) * ( CASE 81 WHEN - 92 THEN + 65 + 28 WHEN 20 THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1222
SELECT - 88 * 4 / - 95 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT - 88 * 4 / - 95 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1223
SELECT + MAX( ALL + 92 ) + - 56, + 74 AS col0
----
36
74

skipif mysql # not compatible
query II rowsort label-1223
SELECT + MAX ( ALL + 92 ) + - 56, + 74 AS col0
----
36
74

query I rowsort
SELECT DISTINCT - - 89 * - + 32 AS col0
----
-2848

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

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

query II rowsort
SELECT - 6 AS col0, 34 * 51
----
-6
1734

query I rowsort
SELECT 7 + + 72
----
79

query I rowsort
SELECT + 55 * - - 31 + + 14 AS col2
----
1719

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT 56 - 85 + SUM( 44 ) + 23 + + ( + - 64 ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-1229
SELECT 56 - 85 + SUM ( 44 ) + 23 + + ( + - 64 ) col0
----
-26

query I rowsort
SELECT ALL - 5 * + 28 * - 94
----
13160

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT DISTINCT - - ( 17 ) + - 97 + - 6 + + 34 * - + 37 - + COUNT( * ) AS col0
----
-1345

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT - - ( 17 ) + - 97 + - 6 + + 34 * - + 37 - + COUNT ( * ) AS col0
----
-1345

query I rowsort
SELECT 12 * + 18
----
216

query I rowsort
SELECT 12 * - 1 AS col1
----
-12

query I rowsort
SELECT 86 * + 23 * + COALESCE ( + 89, 61 )
----
176042

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT COUNT( * ) * 69 * + 79
----
5451

skipif mysql # not compatible
query I rowsort label-1236
SELECT COUNT ( * ) * 69 * + 79
----
5451

query I rowsort
SELECT ALL - 3 + + 66 AS col1
----
63

query I rowsort
SELECT DISTINCT - 94 * - - 85
----
-7990

query I rowsort
SELECT DISTINCT + 22 + ( - 38 ) AS col1
----
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT 13 * - COUNT( + - 83 ) + - 74
----
-87

skipif mysql # not compatible
query I rowsort label-1241
SELECT 13 * - COUNT ( + - 83 ) + - 74
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT 4 * + + 33 * + + 11 * - + MIN( COALESCE ( - 0, + 43 * + 76 + + + 75 ) ) + - 10 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-1242
SELECT 4 * + + 33 * + + 11 * - + MIN ( COALESCE ( - 0, + 43 * + 76 + + + 75 ) ) + - 10 AS col2
----
-10

query I rowsort
SELECT 62 * + 21
----
1302

onlyif mysql # aggregate syntax: 
query II rowsort label-1244
SELECT DISTINCT COUNT( * ) * - MAX( ALL + 46 ) * + SUM( 73 ) * - 62 col2, + 26 AS col2
----
208196
26

skipif mysql # not compatible
query II rowsort label-1244
SELECT DISTINCT COUNT ( * ) * - MAX ( ALL + 46 ) * + SUM ( 73 ) * - 62 col2, + 26 AS col2
----
208196
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1245
SELECT - 99 * - COUNT( * ) + - - MAX( - 57 ) DIV - 53
----
100

skipif mysql # not compatible
query I rowsort label-1245
SELECT - 99 * - COUNT ( * ) + - - MAX ( - 57 ) / - 53
----
100

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

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

query I rowsort
SELECT ALL 82 * 45 AS col2
----
3690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1248
SELECT ALL - CAST( NULL AS SIGNED ) - SUM( + 59 ) - 37 * - - NULLIF ( + 65, - 54 ) + - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL - CAST ( NULL AS INTEGER ) - SUM ( + 59 ) - 37 * - - NULLIF ( + 65, - 54 ) + - 16 AS col2
----
NULL

query I rowsort
SELECT - 46 * 35 + + 90
----
-1520

query I rowsort
SELECT DISTINCT - 16 * 7 AS col2
----
-112

query I rowsort
SELECT ALL - + NULLIF ( + + 75, 3 )
----
-75

query I rowsort
SELECT ALL 33 * + ( + 13 ) AS col2
----
429

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1254
SELECT + 12 * + + SUM( DISTINCT ( + 82 ) ) + - 87 + + COUNT( * ) DIV 97
----
897

skipif mysql # not compatible
query I rowsort label-1254
SELECT + 12 * + + SUM ( DISTINCT ( + 82 ) ) + - 87 + + COUNT ( * ) / 97
----
897

onlyif mysql # aggregate syntax: 
query II rowsort label-1255
SELECT DISTINCT + 73 AS col1, ( MAX( - - 12 ) ) col0
----
73
12

skipif mysql # not compatible
query II rowsort label-1255
SELECT DISTINCT + 73 AS col1, ( MAX ( - - 12 ) ) col0
----
73
12

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ( - MAX( - 47 ) ) + - - 11 * 16
----
223

skipif mysql # not compatible
query I rowsort label-1258
SELECT ( - MAX ( - 47 ) ) + - - 11 * 16
----
223

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1260
SELECT 22 DIV 74 * + 35 * - 49, - COUNT( * ) * + + ( - - NULLIF ( + 63, + COUNT( * ) ) ) DIV - + 58 AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-1260
SELECT 22 / 74 * + 35 * - 49, - COUNT ( * ) * + + ( - - NULLIF ( + 63, + COUNT ( * ) ) ) / - + 58 AS col2
----
0
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1262
SELECT - 74 AS col2, 45 + CAST( - CAST( 84 AS SIGNED ) AS SIGNED ) AS col1
----
-74
-39

skipif mysql # not compatible
query II rowsort label-1262
SELECT - 74 AS col2, 45 + CAST ( - CAST ( 84 AS INTEGER ) AS INTEGER ) AS col1
----
-74
-39

query II rowsort
SELECT - 96 AS col2, 70 * + 20 AS col2
----
-96
1400

query I rowsort
SELECT 70 * + 34
----
2380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1265
SELECT ALL 36 DIV - - 35 + - SUM( - 66 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL 36 / - - 35 + - SUM ( - 66 ) AS col0
----
67

query II rowsort
SELECT DISTINCT 41, - ( 14 ) AS col2
----
41
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1267
SELECT ALL + 39 + - 1 DIV + 68
----
39

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL + 39 + - 1 / + 68
----
39

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

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

query I rowsort
SELECT DISTINCT - 48 * - 59 col1
----
2832

query I rowsort
SELECT DISTINCT ( 89 ) + + - 33 AS col0
----
56

query I rowsort
SELECT ALL + 7 + - 33
----
-26

query II rowsort
SELECT ALL 90 * - 49, 4 AS col0
----
-4410
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1273
SELECT ALL + 35 + CAST( + 82 AS SIGNED ) * - CAST( - COUNT( * ) AS SIGNED ), 99 AS col2
----
117
99

skipif mysql # not compatible
query II rowsort label-1273
SELECT ALL + 35 + CAST ( + 82 AS INTEGER ) * - CAST ( - COUNT ( * ) AS INTEGER ), 99 AS col2
----
117
99

query II rowsort
SELECT - 78 + 59, - ( + - 48 ) + - 8 * + 58 + 7 AS col0
----
-19
-409

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT ALL + 15 * + COUNT( * ) + 2 col0
----
17

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL + 15 * + COUNT ( * ) + 2 col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1276
SELECT 35 DIV - - 62 * 70 + - NULLIF ( - + 47, - ( - AVG ( - 19 ) ) )
----
47

skipif mysql # not compatible
query I rowsort label-1276
SELECT 35 / - - 62 * 70 + - NULLIF ( - + 47, - ( - AVG ( - 19 ) ) )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1277
SELECT 8 * - CAST( NULL AS SIGNED ) + - COALESCE ( - MIN( 62 ), + - 15 + + 32 * - 57 + + 59 * - 16 / COUNT( * ) * 13 ) + + NULLIF ( 69, - 4 * 85 ) / AVG ( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1277
SELECT 8 * - CAST ( NULL AS INTEGER ) + - COALESCE ( - MIN ( 62 ), + - 15 + + 32 * - 57 + + 59 * - 16 / COUNT ( * ) * 13 ) + + NULLIF ( 69, - 4 * 85 ) / AVG ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1278
SELECT ALL + 49 * - 99 * + - 40 * + - 78 - + 37 AS col0, + CASE - 60 WHEN 70 THEN COUNT( * ) + - COUNT( * ) WHEN + 58 * - MAX( ALL 41 ) THEN NULL END AS col0
----
-15135157
NULL

skipif mysql # not compatible
query II rowsort label-1278
SELECT ALL + 49 * - 99 * + - 40 * + - 78 - + 37 AS col0, + CASE - 60 WHEN 70 THEN COUNT ( * ) + - COUNT ( * ) WHEN + 58 * - MAX ( ALL 41 ) THEN NULL END AS col0
----
-15135157
NULL

query I rowsort
SELECT ALL + 17 * + ( - + 80 )
----
-1360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1280
SELECT COALESCE ( - CAST( - COUNT( * ) AS SIGNED ), - 50 - 6 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1280
SELECT COALESCE ( - CAST ( - COUNT ( * ) AS INTEGER ), - 50 - 6 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT + 95 / + - 49 + CASE - 88 WHEN - ( COALESCE ( 91, + 3, + 78 ) ) THEN NULL WHEN + - COUNT( + 80 ) * + - COUNT( * ) - 68 THEN 88 END + + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1281
SELECT + 95 / + - 49 + CASE - 88 WHEN - ( COALESCE ( 91, + 3, + 78 ) ) THEN NULL WHEN + - COUNT ( + 80 ) * + - COUNT ( * ) - 68 THEN 88 END + + 49 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1282
SELECT - 35 DIV - 36 col2
----
0

skipif mysql # not compatible
query I rowsort label-1282
SELECT - 35 / - 36 col2
----
0

query II rowsort
SELECT - NULLIF ( - 7, 93 / - 53 ) * 30, + 84 * - 73 / - 87 / - CASE AVG ( - - 78 ) WHEN + 56 * ( 20 * 87 ) + - 18 THEN + 42 END col1
----
210
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT DISTINCT + NULLIF ( - 22, - MAX( ALL 37 ) * - 98 ) * - 2 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT + NULLIF ( - 22, - MAX ( ALL 37 ) * - 98 ) * - 2 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT ALL - 45 * MAX( DISTINCT + + 99 )
----
-4455

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL - 45 * MAX ( DISTINCT + + 99 )
----
-4455

query I rowsort
SELECT + 17 + - 51
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1287
SELECT ALL + ( + ( - 2 ) ) * - - CAST( NULL AS SIGNED ) * - MAX( - 9 ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL + ( + ( - 2 ) ) * - - CAST ( NULL AS INTEGER ) * - MAX ( - 9 ) * COUNT ( * ) AS col1
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1290
SELECT - 10 * 26 + 60 DIV + - 47
----
-261

skipif mysql # not compatible
query I rowsort label-1290
SELECT - 10 * 26 + 60 / + - 47
----
-261

query I rowsort
SELECT + 79 * 55 * + 39
----
169455

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT + 97 * + - 92 * + NULLIF ( - 74, 57 + + COUNT( * ) ) * + + 39
----
25754664

skipif mysql # not compatible
query I rowsort label-1292
SELECT + 97 * + - 92 * + NULLIF ( - 74, 57 + + COUNT ( * ) ) * + + 39
----
25754664

query I rowsort
SELECT - 37 - + 60 * ( + 9 )
----
-577

query I rowsort
SELECT ALL - COALESCE ( - 54, 14 ) col0
----
54

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1296
SELECT ALL + 10 + + + 42, CAST( NULL AS DECIMAL ) + + 39 AS col2
----
52
NULL

skipif mysql # not compatible
query II rowsort label-1296
SELECT ALL + 10 + + + 42, CAST ( NULL AS REAL ) + + 39 AS col2
----
52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT DISTINCT COUNT( - 5 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT COUNT ( - 5 ) col1
----
1

query I rowsort
SELECT + + 49 * + + 33 * - 10 AS col2
----
-16170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1299
SELECT ALL CAST( + - 32 AS SIGNED ) + 93 + + 58 / + + AVG ( 46 ) + + CASE - 93 WHEN + 70 THEN NULL WHEN + CAST( NULL AS SIGNED ) * - + 50 - - + COUNT( * ) THEN 40 WHEN CAST( 99 AS SIGNED ) THEN - COUNT( * ) END * + 33 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL CAST ( + - 32 AS INTEGER ) + 93 + + 58 / + + AVG ( 46 ) + + CASE - 93 WHEN + 70 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * - + 50 - - + COUNT ( * ) THEN 40 WHEN CAST ( 99 AS INTEGER ) THEN - COUNT ( * ) END * + 33 * COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT + + COALESCE ( - + 76, - 39, 62 + + 45 ) * 93 + - 29 AS col0, - 37 AS col2
----
-7097
-37

query I rowsort
SELECT + 84 + + + 55 + 73 AS col0
----
212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1302
SELECT DISTINCT NULLIF ( + ( - CAST( NULL AS SIGNED ) ), + COALESCE ( - - 29, + + 36 * - COUNT( * ) / - 83 / + + 14, + 94 ) * COALESCE ( + - 35, + CAST( - CAST( 46 AS SIGNED ) AS SIGNED ) * 70 ) ) / 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT NULLIF ( + ( - CAST ( NULL AS INTEGER ) ), + COALESCE ( - - 29, + + 36 * - COUNT ( * ) / - 83 / + + 14, + 94 ) * COALESCE ( + - 35, + CAST ( - CAST ( 46 AS INTEGER ) AS INTEGER ) * 70 ) ) / 69
----
NULL

query I rowsort
SELECT DISTINCT 42 - - - ( - + 21 )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT DISTINCT 77 - + - NULLIF ( - CAST( NULL AS SIGNED ), + 10 + - 89 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT 77 - + - NULLIF ( - CAST ( NULL AS INTEGER ), + 10 + - 89 ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1305
SELECT ALL NULLIF ( 75, + AVG ( DISTINCT 94 ) * + 29 * - 69 + - COUNT( * ) + - CASE + 69 WHEN - 75 + + - 50 * - - ( ( 22 ) ) / - ( + 4 ) THEN CAST( NULL AS SIGNED ) ELSE NULL END + 92 * - 72 ) * 59 AS col2
----
4425

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL NULLIF ( 75, + AVG ( DISTINCT 94 ) * + 29 * - 69 + - COUNT ( * ) + - CASE + 69 WHEN - 75 + + - 50 * - - ( ( 22 ) ) / - ( + 4 ) THEN CAST ( NULL AS INTEGER ) ELSE NULL END + 92 * - 72 ) * 59 AS col2
----
4425

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

query I rowsort
SELECT + 12 - + 50 + 72 * + 17
----
1186

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

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

query I rowsort
SELECT DISTINCT ( - + 87 ) * - 47 * - + 70 AS col1
----
-286230

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1310
SELECT ALL 85 DIV - + 6 - - COUNT( DISTINCT 89 ), + 24 AS col0
----
-13
24

skipif mysql # not compatible
query II rowsort label-1310
SELECT ALL 85 / - + 6 - - COUNT ( DISTINCT 89 ), + 24 AS col0
----
-13
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT ALL + ( + CASE - 61 WHEN - CASE - - 7 WHEN + COALESCE ( COUNT( * ), + 34 ) * 47 THEN + + MIN( ALL + 73 ) END THEN - NULLIF ( - 60, - 83 ) + ( - AVG ( 80 ) ) * COUNT( * ) WHEN - 69 * 50 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL + ( + CASE - 61 WHEN - CASE - - 7 WHEN + COALESCE ( COUNT ( * ), + 34 ) * 47 THEN + + MIN ( ALL + 73 ) END THEN - NULLIF ( - 60, - 83 ) + ( - AVG ( 80 ) ) * COUNT ( * ) WHEN - 69 * 50 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT ALL + SUM( - NULLIF ( 52, + - 95 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL + SUM ( - NULLIF ( 52, + - 95 ) )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT DISTINCT + MAX( DISTINCT + + 88 ) * - + 80 + + 80 * - 74 col0
----
-12960

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT + MAX ( DISTINCT + + 88 ) * - + 80 + + 80 * - 74 col0
----
-12960

onlyif mysql # aggregate syntax: 
query II rowsort label-1314
SELECT ALL + COUNT( * ) AS col2, CASE COUNT( - 21 ) WHEN + - ( - 64 ) THEN NULL WHEN + + 2 THEN NULL ELSE - 1 + 35 END * + COUNT( * ) AS col0
----
1
34

skipif mysql # not compatible
query II rowsort label-1314
SELECT ALL + COUNT ( * ) AS col2, CASE COUNT ( - 21 ) WHEN + - ( - 64 ) THEN NULL WHEN + + 2 THEN NULL ELSE - 1 + 35 END * + COUNT ( * ) AS col0
----
1
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1315
SELECT ALL + 66 DIV CAST( + 62 AS SIGNED ) * - 16 + + - 65 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL + 66 / CAST ( + 62 AS INTEGER ) * - 16 + + - 65 AS col1
----
-81

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

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

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

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

query I rowsort
SELECT 69 * 17 + ( - + 51 ) - 46 col1
----
1076

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT + MAX( - 82 ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-1321
SELECT + MAX ( - 82 ) col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1322
SELECT ALL - 49 * - 61 * + 57 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1322
SELECT ALL - 49 * - 61 * + 57 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT ALL + - 79 * + COUNT( * ) + CASE - 54 WHEN + + 93 THEN NULL ELSE - - 95 + 60 END
----
76

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL + - 79 * + COUNT ( * ) + CASE - 54 WHEN + + 93 THEN NULL ELSE - - 95 + 60 END
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT ALL + + ( 28 ) + - COUNT( * ) + + 39 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL + + ( 28 ) + - COUNT ( * ) + + 39 AS col0
----
66

query I rowsort
SELECT 41 + + 28 * + + ( 68 ) * + 44 - - - ( 35 )
----
83782

onlyif mysql # aggregate syntax: 
query II rowsort label-1326
SELECT ALL + COUNT( * ) AS col2, + COALESCE ( + 28, + 71 * 61 - + 34 * 98, - + ( - 50 ) ) AS col1
----
1
28

skipif mysql # not compatible
query II rowsort label-1326
SELECT ALL + COUNT ( * ) AS col2, + COALESCE ( + 28, + 71 * 61 - + 34 * 98, - + ( - 50 ) ) AS col1
----
1
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1327
SELECT + 64 * - ( + + CAST( NULL AS SIGNED ) ) + COALESCE ( CAST( + 93 AS DECIMAL ), COUNT( * ) + - 64 - - + 48 * - ( COUNT( * ) ), - 32 ) + MIN( + 64 ) - + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-1327
SELECT + 64 * - ( + + CAST ( NULL AS INTEGER ) ) + COALESCE ( CAST ( + 93 AS REAL ), COUNT ( * ) + - 64 - - + 48 * - ( COUNT ( * ) ), - 32 ) + MIN ( + 64 ) - + 58
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1328
SELECT ALL CAST( 80 AS SIGNED ) * + 35 * + CASE + 80 WHEN + 19 THEN NULL ELSE - 21 * 40 END
----
-2352000

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL CAST ( 80 AS INTEGER ) * + 35 * + CASE + 80 WHEN + 19 THEN NULL ELSE - 21 * 40 END
----
-2352000

onlyif mysql # aggregate syntax: 
query II rowsort label-1329
SELECT ALL + NULLIF ( - 34, - ( COUNT( * ) ) ) * + + 91 AS col2, MIN( + ( + 46 ) ) + + COUNT( * ) - - 2 * + + MAX( DISTINCT - - 40 )
----
-3094
127

skipif mysql # not compatible
query II rowsort label-1329
SELECT ALL + NULLIF ( - 34, - ( COUNT ( * ) ) ) * + + 91 AS col2, MIN ( + ( + 46 ) ) + + COUNT ( * ) - - 2 * + + MAX ( DISTINCT - - 40 )
----
-3094
127

query I rowsort
SELECT ALL - 90 - + - 96 * - 73 AS col1
----
-7098

onlyif mysql # aggregate syntax: 
query II rowsort label-1331
SELECT DISTINCT + 35 * 15 AS col0, 2 * + MAX( - + 64 ) * + 67 - - 29 * - 10 AS col0
----
525
-8866

skipif mysql # not compatible
query II rowsort label-1331
SELECT DISTINCT + 35 * 15 AS col0, 2 * + MAX ( - + 64 ) * + 67 - - 29 * - 10 AS col0
----
525
-8866

onlyif mysql # DIV for integer division: 
query I rowsort label-1332
SELECT 5 DIV ( - 10 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1332
SELECT 5 / ( - 10 ) AS col1
----
0

query I rowsort
SELECT 46 + 55
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1334
SELECT COUNT( * ) + - - 6 + + 16 * 13 - + + 36 + - CAST( - 3 AS SIGNED ) AS col0
----
182

skipif mysql # not compatible
query I rowsort label-1334
SELECT COUNT ( * ) + - - 6 + + 16 * 13 - + + 36 + - CAST ( - 3 AS INTEGER ) AS col0
----
182

query II rowsort
SELECT 66 * 11, 63 AS col0
----
726
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT COALESCE ( 52, + - 85 ) - + 9 + ( + COUNT( * ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1336
SELECT COALESCE ( 52, + - 85 ) - + 9 + ( + COUNT ( * ) ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-1337
SELECT ALL 59 * + - 72 AS col2, + 57 * 95 + - + 74 + + 8 + - - COUNT( * ) / + + 87 * + - 67 - + - 88 + + 53 - 60 * AVG ( DISTINCT - NULLIF ( + ( + CASE 18 WHEN ( 14 ) THEN NULL WHEN + 99 THEN - 54 * - 36 WHEN 80 THEN + 71 ELSE NULL END ), 25 ) )
----
-4248
NULL

skipif mysql # not compatible
query II rowsort label-1337
SELECT ALL 59 * + - 72 AS col2, + 57 * 95 + - + 74 + + 8 + - - COUNT ( * ) / + + 87 * + - 67 - + - 88 + + 53 - 60 * AVG ( DISTINCT - NULLIF ( + ( + CASE 18 WHEN ( 14 ) THEN NULL WHEN + 99 THEN - 54 * - 36 WHEN 80 THEN + 71 ELSE NULL END ), 25 ) )
----
-4248
NULL

query I rowsort
SELECT 55 * - + 5
----
-275

query I rowsort
SELECT 62 + - 92 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT DISTINCT 88 * - MAX( DISTINCT - 45 )
----
3960

skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT 88 * - MAX ( DISTINCT - 45 )
----
3960

query I rowsort
SELECT ALL + 82 * - 19 * - COALESCE ( - 82, + 18 * 26 + + 95, 29 ) AS col0
----
-127756

query I rowsort
SELECT + 37 * - - 80 + - 25 AS col1
----
2935

query I rowsort
SELECT ( + - 14 ) * - + 23 - - 43 AS col0
----
365

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT ALL + 4 + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL + 4 + + COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1345
SELECT - COUNT( DISTINCT 15 ), + 51 AS col1
----
-1
51

skipif mysql # not compatible
query II rowsort label-1345
SELECT - COUNT ( DISTINCT 15 ), + 51 AS col1
----
-1
51

query I rowsort
SELECT DISTINCT + 71 + + 53 col2
----
124

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

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT + CAST ( CASE - 66 WHEN + - 41 * + + COUNT ( * ) THEN + 41 ELSE NULL END AS INTEGER ) * - + 27 - 41 AS col1
----
NULL

query I rowsort
SELECT ALL - - 5 + - 92 AS col0
----
-87

query I rowsort
SELECT ( + 81 ) * 50
----
4050

query I rowsort
SELECT ALL + 43 + 93
----
136

query I rowsort
SELECT ALL 2 + - - COALESCE ( - 49, - 6 * - 44 ) AS col0
----
-47

query I rowsort
SELECT DISTINCT + 10 + - 80 AS col2
----
-70

query I rowsort
SELECT 55 * + 76
----
4180

query II rowsort
SELECT - 55 * + 33 AS col2, 58 + - 15
----
-1815
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1355
SELECT ALL - 77 DIV - - 14
----
-5

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL - 77 / - - 14
----
-5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1357
SELECT - 82 DIV COUNT( * ) col2, 69 col2
----
-82
69

skipif mysql # not compatible
query II rowsort label-1357
SELECT - 82 / COUNT ( * ) col2, 69 col2
----
-82
69

query II rowsort
SELECT ALL - 27 + 79, - ( + + 36 ) AS col1
----
52
-36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1360
SELECT DISTINCT - 83 * 59 DIV - + 10
----
489

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT - 83 * 59 / - + 10
----
489

query I rowsort
SELECT ALL - 67 - + 61 AS col2
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1362
SELECT DISTINCT - + CASE - 77 WHEN 16 THEN 8 + + CAST( NULL AS SIGNED ) * + + 24 END / - - 35 * - 23 + 16 AS col1, + 29, - 10 AS col2
----
NULL
29
-10

skipif mysql # not compatible
query III rowsort label-1362
SELECT DISTINCT - + CASE - 77 WHEN 16 THEN 8 + + CAST ( NULL AS INTEGER ) * + + 24 END / - - 35 * - 23 + 16 AS col1, + 29, - 10 AS col2
----
NULL
29
-10

query I rowsort
SELECT 5 + 63 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT CASE 1 WHEN + + CASE - 8 WHEN - 52 / + - ( - 1 ) THEN NULL WHEN - 14 * + 73 THEN + 68 END * + 95 + 67 THEN NULL WHEN + 4 THEN MAX( ALL - 2 ) END - + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1364
SELECT CASE 1 WHEN + + CASE - 8 WHEN - 52 / + - ( - 1 ) THEN NULL WHEN - 14 * + 73 THEN + 68 END * + 95 + 67 THEN NULL WHEN + 4 THEN MAX ( ALL - 2 ) END - + 66 AS col2
----
NULL

query I rowsort
SELECT 21 * 21 AS col0
----
441

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT 40 + 10 + - - 76 * + - MIN( ALL 47 ) * - 81 AS col2
----
289382

skipif mysql # not compatible
query I rowsort label-1367
SELECT 40 + 10 + - - 76 * + - MIN ( ALL 47 ) * - 81 AS col2
----
289382

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

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

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

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

query I rowsort
SELECT DISTINCT 18 * + - 57
----
-1026

query I rowsort
SELECT DISTINCT - 96 * - 17
----
1632

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1373
SELECT ALL - 87 * 18 DIV - MIN( - 99 ) col0
----
-15

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL - 87 * 18 / - MIN ( - 99 ) col0
----
-15

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

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

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

query II rowsort
SELECT 38 AS col2, 40 col2
----
38
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT 90 DIV 34 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1377
SELECT 90 / 34 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1378
SELECT 15 DIV 32 - - 49 + - 87 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-1378
SELECT 15 / 32 - - 49 + - 87 AS col2
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-1379
SELECT DISTINCT 98 * - NULLIF ( + 38, + 72 ) + + 38 DIV 93 AS col0
----
-3724

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT 98 * - NULLIF ( + 38, + 72 ) + + 38 / 93 AS col0
----
-3724

onlyif mysql # DIV for integer division: 
query I rowsort label-1380
SELECT ALL 33 DIV + 59 + - 5
----
-5

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL 33 / + 59 + - 5
----
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT ALL + COUNT( * ) * - + 34 + - - 47 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL + COUNT ( * ) * - + 34 + - - 47 AS col2
----
13

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

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

query I rowsort
SELECT - + 17 + - - 70 * + 57 + - + 79
----
3894

onlyif mysql # DIV for integer division: 
query I rowsort label-1385
SELECT - - 19 DIV + 81 * - 76 * + - 48 - 24 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-1385
SELECT - - 19 / + 81 * - 76 * + - 48 - 24 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT ( + - 26 ) * - ( - COUNT( * ) ) - + - 66 + + ( + + 92 ) AS col0
----
132

skipif mysql # not compatible
query I rowsort label-1386
SELECT ( + - 26 ) * - ( - COUNT ( * ) ) - + - 66 + + ( + + 92 ) AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT + - 37 - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-1387
SELECT + - 37 - COUNT ( * )
----
-38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT + 64 * - 15 + + ( + COUNT( * ) ) + + - 39 * + 49 col1
----
-2870

skipif mysql # not compatible
query I rowsort label-1389
SELECT + 64 * - 15 + + ( + COUNT ( * ) ) + + - 39 * + 49 col1
----
-2870

query I rowsort
SELECT + + 6 col2
----
6

query II rowsort
SELECT DISTINCT + 21 AS col1, 60 AS col0
----
21
60

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

skipif mysql # not compatible
query I rowsort label-1392
SELECT + MAX ( - 31 )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1393
SELECT DISTINCT + ( + 23 ) * COUNT( + + 39 ) DIV + 86 + + COUNT( * ) * + 93 + - 49 + - 41 * + NULLIF ( 47, 42 * - 12 ) + - 59 col2
----
-1942

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT + ( + 23 ) * COUNT ( + + 39 ) / + 86 + + COUNT ( * ) * + 93 + - 49 + - 41 * + NULLIF ( 47, 42 * - 12 ) + - 59 col2
----
-1942

query I rowsort
SELECT ALL - + 85 - 59 AS col0
----
-144

query I rowsort
SELECT - + 10 * + + 2
----
-20

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1397
SELECT - + COUNT( + 23 ) * + - 67 + CAST( NULL AS SIGNED ) + + 9 AS col2, 79 * - 52
----
NULL
-4108

skipif mysql # not compatible
query II rowsort label-1397
SELECT - + COUNT ( + 23 ) * + - 67 + CAST ( NULL AS INTEGER ) + + 9 AS col2, 79 * - 52
----
NULL
-4108

query II rowsort
SELECT - 92, NULLIF ( - - 60, - - ( 61 ) ) - 71 AS col2
----
-92
-11

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1401
SELECT ALL COUNT( ALL + 8 ), 31 col2
----
1
31

skipif mysql # not compatible
query II rowsort label-1401
SELECT ALL COUNT ( ALL + 8 ), 31 col2
----
1
31

query I rowsort
SELECT - 13 + + 62
----
49

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

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL - 82 + - + 43 - - COUNT ( * ) + - + ( + 61 ) col2
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-1404
SELECT ALL + 27 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL + 27 / 98
----
0

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

query II rowsort
SELECT - 20 AS col1, - 6 * + ( - 91 ) * 24 AS col2
----
-20
13104

query I rowsort
SELECT - 29 * + 4
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT - 35 + - COUNT( DISTINCT - 50 )
----
-36

skipif mysql # not compatible
query I rowsort label-1408
SELECT - 35 + - COUNT ( DISTINCT - 50 )
----
-36

query II rowsort
SELECT 10 AS col2, 95
----
10
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1410
SELECT - COALESCE ( + - 13, - + COUNT( * ) * - 91, + + COALESCE ( 77, + + 47 ) * - 45 DIV 89 ) + + 78 + + - 19 DIV 52 AS col0, + 91 * + 92 + 56
----
91
8428

skipif mysql # not compatible
query II rowsort label-1410
SELECT - COALESCE ( + - 13, - + COUNT ( * ) * - 91, + + COALESCE ( 77, + + 47 ) * - 45 / 89 ) + + 78 + + - 19 / 52 AS col0, + 91 * + 92 + 56
----
91
8428

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT - 99 + ( - COUNT( * ) ) + + 8 * - 24
----
-292

skipif mysql # not compatible
query I rowsort label-1411
SELECT - 99 + ( - COUNT ( * ) ) + + 8 * - 24
----
-292

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT ALL - 83 + 87 + - COALESCE ( - - MAX( + 93 ), + - 77 )
----
-89

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL - 83 + 87 + - COALESCE ( - - MAX ( + 93 ), + - 77 )
----
-89

onlyif mysql # DIV for integer division: 
query III rowsort label-1413
SELECT ALL ( + 32 ) col0, 41 DIV - 31, CASE - 52 WHEN - 33 THEN - 65 WHEN + - NULLIF ( - - 27, - 58 ) THEN + + 11 ELSE NULL END + - ( - 86 ) + 39 - + ( 20 ) AS col1
----
32
-1
NULL

skipif mysql # not compatible
query III rowsort label-1413
SELECT ALL ( + 32 ) col0, 41 / - 31, CASE - 52 WHEN - 33 THEN - 65 WHEN + - NULLIF ( - - 27, - 58 ) THEN + + 11 ELSE NULL END + - ( - 86 ) + 39 - + ( 20 ) AS col1
----
32
-1
NULL

query I rowsort
SELECT - 87 + - 79
----
-166

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT DISTINCT - SUM( DISTINCT - + 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT - SUM ( DISTINCT - + 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1417
SELECT ALL + 29 DIV + + 56 + 65 * - ( COUNT( * ) )
----
-65

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL + 29 / + + 56 + 65 * - ( COUNT ( * ) )
----
-65

query I rowsort
SELECT - + 16 + - 27 AS col0
----
-43

query II rowsort
SELECT ALL + + 84 AS col2, 93 + + 18 col1
----
84
111

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1421
SELECT ALL - 0 DIV + + ( 94 ) - - 51 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL - 0 / + + ( 94 ) - - 51 AS col0
----
51

query I rowsort
SELECT - ( + 55 ) * - - 51 * - 88 AS col2
----
246840

query II rowsort
SELECT - 49, - 42 + - 7
----
-49
-49

query I rowsort
SELECT + ( 52 ) * - 26
----
-1352

onlyif mysql # DIV for integer division: 
query I rowsort label-1425
SELECT ALL 34 DIV 51 + 27
----
27

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL 34 / 51 + 27
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT ALL 29 * - 37 * + SUM( - 90 ) - - 98 AS col1
----
96668

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL 29 * - 37 * + SUM ( - 90 ) - - 98 AS col1
----
96668

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1427
SELECT ALL + - 30 * + 44 + 37 - + 89 AS col2, + COUNT( DISTINCT - CASE - 20 WHEN 82 + + - 19 THEN NULL ELSE + + 74 END ) DIV + + 38 AS col0
----
-1372
0

skipif mysql # not compatible
query II rowsort label-1427
SELECT ALL + - 30 * + 44 + 37 - + 89 AS col2, + COUNT ( DISTINCT - CASE - 20 WHEN 82 + + - 19 THEN NULL ELSE + + 74 END ) / + + 38 AS col0
----
-1372
0

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT + - COUNT( * ) / 37 / - CASE 11 WHEN COUNT( + ( 53 ) ) - 5 THEN NULL WHEN - - 17 * + 1 + - 72 THEN - 89 - - 58 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1431
SELECT + - COUNT ( * ) / 37 / - CASE 11 WHEN COUNT ( + ( 53 ) ) - 5 THEN NULL WHEN - - 17 * + 1 + - 72 THEN - 89 - - 58 END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL - 34 / ( - + COUNT ( * ) )
----
34

query I rowsort
SELECT - 92 * - - 67 AS col1
----
-6164

query I rowsort
SELECT + 62 + + + 34 + + 80
----
176

query I rowsort
SELECT DISTINCT 32 * + 60 * - - 36
----
69120

query II rowsort
SELECT ALL + - 36 AS col0, 97 - - 38
----
-36
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1437
SELECT + CASE - 0 WHEN COUNT( DISTINCT ( - CAST( NULL AS SIGNED ) ) ) THEN NULL ELSE 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1437
SELECT + CASE - 0 WHEN COUNT ( DISTINCT ( - CAST ( NULL AS INTEGER ) ) ) THEN NULL ELSE 93 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1438
SELECT + CAST( + 68 AS SIGNED ) AS col0, 16
----
68
16

skipif mysql # not compatible
query II rowsort label-1438
SELECT + CAST ( + 68 AS INTEGER ) AS col0, 16
----
68
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1439
SELECT CASE - + 45 WHEN 21 / 46 - + 17 THEN NULL ELSE + CAST( - + 5 AS SIGNED ) * ( - 41 ) * - 33 + + - 1 * - + 7 END
----
-6758

skipif mysql # not compatible
query I rowsort label-1439
SELECT CASE - + 45 WHEN 21 / 46 - + 17 THEN NULL ELSE + CAST ( - + 5 AS INTEGER ) * ( - 41 ) * - 33 + + - 1 * - + 7 END
----
-6758

query I rowsort
SELECT + 96 - 12 col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1441
SELECT DISTINCT COUNT( * ) * + 66 DIV 62 * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT COUNT ( * ) * + 66 / 62 * - COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT + 48 * + 38 AS col2, 51 - 0 + - 50
----
1824
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1443
SELECT - CAST( - COALESCE ( + CAST( + 66 AS SIGNED ), + 97, + COUNT( ALL - - 63 ) ) AS SIGNED ), - 76 DIV + 47 col0
----
66
-1

skipif mysql # not compatible
query II rowsort label-1443
SELECT - CAST ( - COALESCE ( + CAST ( + 66 AS INTEGER ), + 97, + COUNT ( ALL - - 63 ) ) AS INTEGER ), - 76 / + 47 col0
----
66
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1444
SELECT ALL + CAST( - 24 AS SIGNED ) * + 37 + + - 94 AS col1
----
-982

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL + CAST ( - 24 AS INTEGER ) * + 37 + + - 94 AS col1
----
-982

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT ALL COUNT( - 82 ) * COALESCE ( + 71, 26 ) + - 84 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL COUNT ( - 82 ) * COALESCE ( + 71, 26 ) + - 84 AS col1
----
-13

query I rowsort
SELECT DISTINCT 31 * - 25 + + + 85 AS col2
----
-690

query I rowsort
SELECT - COALESCE ( - 24, + 62 ) * - 46 + 24 AS col2
----
-1080

query I rowsort
SELECT ALL 41 + - + 40 + - + 67 + - NULLIF ( - + 42, 7 ) * + 68 * - 8 * 74 * 37 + 72
----
-62557818

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1450
SELECT ALL CAST( - 4 AS SIGNED ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL CAST ( - 4 AS INTEGER ) AS col1
----
-4

query I rowsort
SELECT ALL 58 * 65 * - 72
----
-271440

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1452
SELECT 61 + + - 49, CAST( NULL AS SIGNED ) + + - 79 AS col1
----
12
NULL

skipif mysql # not compatible
query II rowsort label-1452
SELECT 61 + + - 49, CAST ( NULL AS INTEGER ) + + - 79 AS col1
----
12
NULL

query III rowsort
SELECT - 8 * + 25 AS col2, - 82, - 61 col2
----
-200
-82
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1454
SELECT - 61 - + 35 + + + CAST( - 54 AS SIGNED ) + - 34 + + COUNT( * ) * 20 AS col1, - 21 * + 32 * COUNT( * ) * + ( + - ( - MAX( 25 ) ) ) + - - 0
----
-164
-16800

skipif mysql # not compatible
query II rowsort label-1454
SELECT - 61 - + 35 + + + CAST ( - 54 AS INTEGER ) + - 34 + + COUNT ( * ) * 20 AS col1, - 21 * + 32 * COUNT ( * ) * + ( + - ( - MAX ( 25 ) ) ) + - - 0
----
-164
-16800

onlyif mysql # aggregate syntax: 
query II rowsort label-1455
SELECT + 44 * - COUNT( * ), - ( + 61 ) AS col0
----
-44
-61

skipif mysql # not compatible
query II rowsort label-1455
SELECT + 44 * - COUNT ( * ), - ( + 61 ) AS col0
----
-44
-61

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1457
SELECT DISTINCT - SUM( ALL - 89 ) AS col1, 29 AS col1
----
89
29

skipif mysql # not compatible
query II rowsort label-1457
SELECT DISTINCT - SUM ( ALL - 89 ) AS col1, 29 AS col1
----
89
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT - - 67 * + + 42 + - - COUNT( * ) AS col0
----
2815

skipif mysql # not compatible
query I rowsort label-1458
SELECT - - 67 * + + 42 + - - COUNT ( * ) AS col0
----
2815

onlyif mysql # DIV for integer division: 
query II rowsort label-1459
SELECT ALL + 49 * + 21 + + NULLIF ( + 1, + 16 ) * + + 71 DIV + + 91 AS col1, 76 - + 29
----
1029
47

skipif mysql # not compatible
query II rowsort label-1459
SELECT ALL + 49 * + 21 + + NULLIF ( + 1, + 16 ) * + + 71 / + + 91 AS col1, 76 - + 29
----
1029
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT DISTINCT + + MAX( + + 7 ) * + + 74 AS col0
----
518

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT + + MAX ( + + 7 ) * + + 74 AS col0
----
518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1461
SELECT + 97 * - ( 55 ) + - 42 + - MIN( ALL + CAST( NULL AS SIGNED ) ) - + CAST( NULL AS SIGNED ) / ( - COUNT( * ) ) * + - NULLIF ( - 79, - - 81 ) + + 97 * 36 * - 25 AS col2, - 33 - - 30 + - 30
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-1461
SELECT + 97 * - ( 55 ) + - 42 + - MIN ( ALL + CAST ( NULL AS INTEGER ) ) - + CAST ( NULL AS INTEGER ) / ( - COUNT ( * ) ) * + - NULLIF ( - 79, - - 81 ) + + 97 * 36 * - 25 AS col2, - 33 - - 30 + - 30
----
NULL
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT ALL + 5 * SUM( - 31 ) + 65 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL + 5 * SUM ( - 31 ) + 65 AS col0
----
-90

query I rowsort
SELECT - 68 + + 32 + + 54 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1464
SELECT - COUNT( * ) DIV - COALESCE ( - 71, CAST( - AVG ( ALL + 76 ) AS SIGNED ) * + - 47 ) + - 16 - - 3
----
-13

skipif mysql # not compatible
query I rowsort label-1464
SELECT - COUNT ( * ) / - COALESCE ( - 71, CAST ( - AVG ( ALL + 76 ) AS INTEGER ) * + - 47 ) + - 16 - - 3
----
-13

query I rowsort
SELECT ALL + - 1 * 29
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1466
SELECT + NULLIF ( 11, + CAST( - + COUNT( * ) AS SIGNED ) )
----
11

skipif mysql # not compatible
query I rowsort label-1466
SELECT + NULLIF ( 11, + CAST ( - + COUNT ( * ) AS INTEGER ) )
----
11

query II rowsort
SELECT 68 AS col2, - 48
----
68
-48

query II rowsort
SELECT ALL - 1, 68 AS col2
----
-1
68

query I rowsort
SELECT 40 + 19 * + 36 - - 21 AS col2
----
745

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

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL - SUM ( 14 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1471
SELECT DISTINCT - CAST( + CASE + + COUNT( * ) WHEN + + 25 * - SUM( + 55 ) - - 74 * + 50 + - 72 THEN NULL WHEN - 40 THEN - - 48 ELSE + - 41 END AS SIGNED ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT - CAST ( + CASE + + COUNT ( * ) WHEN + + 25 * - SUM ( + 55 ) - - 74 * + 50 + - 72 THEN NULL WHEN - 40 THEN - - 48 ELSE + - 41 END AS INTEGER ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT NULLIF ( - + MIN( + 94 ), - 50 + - 4 ) + - - ( + 54 )
----
-40

skipif mysql # not compatible
query I rowsort label-1472
SELECT NULLIF ( - + MIN ( + 94 ), - 50 + - 4 ) + - - ( + 54 )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1473
SELECT ALL 60 * 33 * - 31 col1, SUM( 0 ) col2
----
-61380
0

skipif mysql # not compatible
query II rowsort label-1473
SELECT ALL 60 * 33 * - 31 col1, SUM ( 0 ) col2
----
-61380
0

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

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL + COUNT ( * ) + - + 28 AS col2
----
-27

query I rowsort
SELECT DISTINCT 95 * ( + 67 )
----
6365

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT - COUNT( * ) * - + 74 + 8
----
82

skipif mysql # not compatible
query I rowsort label-1476
SELECT - COUNT ( * ) * - + 74 + 8
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT ALL 24 * COUNT( DISTINCT - 71 )
----
24

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL 24 * COUNT ( DISTINCT - 71 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1478
SELECT 81 DIV - 64
----
-1

skipif mysql # not compatible
query I rowsort label-1478
SELECT 81 / - 64
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1479
SELECT CASE - CAST( NULL AS SIGNED ) WHEN - ( - 65 ) / - CAST( NULL AS DECIMAL ) + - - 3 THEN 6 END + - CAST( - + 45 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1479
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN - ( - 65 ) / - CAST ( NULL AS REAL ) + - - 3 THEN 6 END + - CAST ( - + 45 AS INTEGER ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1481
SELECT 84 AS col2, ( + + 48 ) * + + CAST( NULL AS SIGNED ) * + 10 col0
----
84
NULL

skipif mysql # not compatible
query II rowsort label-1481
SELECT 84 AS col2, ( + + 48 ) * + + CAST ( NULL AS INTEGER ) * + 10 col0
----
84
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1482
SELECT ALL 18 + - 94 * - 96 + + COALESCE ( + 33, - + COUNT( * ), + 41 DIV - 47 )
----
9075

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL 18 + - 94 * - 96 + + COALESCE ( + 33, - + COUNT ( * ), + 41 / - 47 )
----
9075

onlyif mysql # aggregate syntax: 
query II rowsort label-1483
SELECT ALL 20, 19 + 61 + - + SUM( ALL + + 18 ) + ( - 12 ) AS col1
----
20
50

skipif mysql # not compatible
query II rowsort label-1483
SELECT ALL 20, 19 + 61 + - + SUM ( ALL + + 18 ) + ( - 12 ) AS col1
----
20
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT 71 + + - COUNT( DISTINCT - 17 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1484
SELECT 71 + + - COUNT ( DISTINCT - 17 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT CASE - + 94 WHEN - 50 THEN + COUNT( * ) + - 88 WHEN + 55 + - 51 THEN NULL END * + COALESCE ( + SUM( DISTINCT + - 62 ), + 2 / - COALESCE ( + + 50, - COUNT( * ) ) - - MAX( - + 82 ) + + 10 + + 44 - - MIN( - 39 + 17 ) * 66 ) * - 62 + + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1485
SELECT CASE - + 94 WHEN - 50 THEN + COUNT ( * ) + - 88 WHEN + 55 + - 51 THEN NULL END * + COALESCE ( + SUM ( DISTINCT + - 62 ), + 2 / - COALESCE ( + + 50, - COUNT ( * ) ) - - MAX ( - + 82 ) + + 10 + + 44 - - MIN ( - 39 + 17 ) * 66 ) * - 62 + + 69 AS col2
----
NULL

query I rowsort
SELECT ALL 64 * + + 80
----
5120

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT CASE WHEN NOT + ( + 86 ) IN ( + - 33 ) THEN - 15 ELSE + ( - MAX( DISTINCT + + 24 ) ) END + - 69 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-1487
SELECT CASE WHEN NOT + ( + 86 ) IN ( + - 33 ) THEN - 15 ELSE + ( - MAX ( DISTINCT + + 24 ) ) END + - 69 AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1488
SELECT DISTINCT AVG ( + NULLIF ( - - 39, 83 ) ) - - CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT AVG ( + NULLIF ( - - 39, 83 ) ) - - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 17 - + - 82
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1490
SELECT DISTINCT + COUNT( * ) AS col1, + 17 + - 72 * + 32
----
1
-2287

skipif mysql # not compatible
query II rowsort label-1490
SELECT DISTINCT + COUNT ( * ) AS col1, + 17 + - 72 * + 32
----
1
-2287

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT ALL + 93 - + CASE - NULLIF ( - 44, - ( - 33 ) ) WHEN + COUNT( * ) * 43 / - + COUNT( * ) + 83 THEN NULL WHEN - NULLIF ( + NULLIF ( + - 87, COUNT( * ) / 33 ), - - ( - 12 ) ) * 59 - + 94 THEN 18 ELSE - 67 END
----
160

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL + 93 - + CASE - NULLIF ( - 44, - ( - 33 ) ) WHEN + COUNT ( * ) * 43 / - + COUNT ( * ) + 83 THEN NULL WHEN - NULLIF ( + NULLIF ( + - 87, COUNT ( * ) / 33 ), - - ( - 12 ) ) * 59 - + 94 THEN 18 ELSE - 67 END
----
160

query I rowsort
SELECT + 6 + + 52
----
58

query I rowsort
SELECT 7 + 22 + 53 AS col1
----
82

query I rowsort
SELECT - 49 * + + 95 AS col0
----
-4655

query I rowsort
SELECT 66 + - 24
----
42

query I rowsort
SELECT ALL + 44 * + + 20 AS col1
----
880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1497
SELECT + MAX( - - CAST( NULL AS SIGNED ) ) + + - 4 + + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1497
SELECT + MAX ( - - CAST ( NULL AS INTEGER ) ) + + - 4 + + 15 AS col2
----
NULL

query II rowsort
SELECT ALL - 55, 73 + - + 15 AS col1
----
-55
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1499
SELECT + 72 + COALESCE ( + + 2, + + COUNT( * ) * - - 86 DIV AVG ( - 51 ) * 46, + + COUNT( ALL - + 35 ) * + - 71 * + 77 - - 17 + + 55 + COUNT( * ) ) * COALESCE ( + 86, - 41 - + 59 * COUNT( * ) )
----
244

skipif mysql # not compatible
query I rowsort label-1499
SELECT + 72 + COALESCE ( + + 2, + + COUNT ( * ) * - - 86 / AVG ( - 51 ) * 46, + + COUNT ( ALL - + 35 ) * + - 71 * + 77 - - 17 + + 55 + COUNT ( * ) ) * COALESCE ( + 86, - 41 - + 59 * COUNT ( * ) )
----
244

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

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

query II rowsort
SELECT DISTINCT 56 AS col0, - 32 AS col0
----
56
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1502
SELECT ALL + 32, + 14 * MIN( + - 46 ) + + + 23 DIV + MIN( 6 ) AS col0
----
32
-641

skipif mysql # not compatible
query II rowsort label-1502
SELECT ALL + 32, + 14 * MIN ( + - 46 ) + + + 23 / + MIN ( 6 ) AS col0
----
32
-641

onlyif mysql # aggregate syntax: 
query II rowsort label-1503
SELECT DISTINCT 64 * - ( - + 58 ) + 40, COUNT( * ) + - 1 AS col1
----
3752
0

skipif mysql # not compatible
query II rowsort label-1503
SELECT DISTINCT 64 * - ( - + 58 ) + 40, COUNT ( * ) + - 1 AS col1
----
3752
0

query I rowsort
SELECT ALL 69 * 53 + + 96
----
3753

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1505
SELECT 37 DIV + COUNT( * ) + 77 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-1505
SELECT 37 / + COUNT ( * ) + 77 AS col0
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-1506
SELECT 25 * - + 5 + + 44 * + - 49 - 75 + COUNT( * ) + - - 89 * 25 * - + MIN( ALL + 4 ) - - 56 * 80 + - - 15, + 35 col1
----
-6760
35

skipif mysql # not compatible
query II rowsort label-1506
SELECT 25 * - + 5 + + 44 * + - 49 - 75 + COUNT ( * ) + - - 89 * 25 * - + MIN ( ALL + 4 ) - - 56 * 80 + - - 15, + 35 col1
----
-6760
35

query II rowsort
SELECT ALL - + 91, + 53 + + 16 - + + 50 + - 53 * - + 7 AS col0
----
-91
390

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1508
SELECT - 65 * + 88 + CASE - CAST( 95 AS DECIMAL ) WHEN + - 25 + + + 88 THEN + 57 WHEN + 59 THEN NULL END * + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1508
SELECT - 65 * + 88 + CASE - CAST ( 95 AS REAL ) WHEN + - 25 + + + 88 THEN + 57 WHEN + 59 THEN NULL END * + 12 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1509
SELECT DISTINCT - + 11 / + 24 * - 87 * 57 / CAST( NULL AS SIGNED ) * + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT - + 11 / + 24 * - 87 * 57 / CAST ( NULL AS INTEGER ) * + 67 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 49 + + 87 AS col1
----
136

query I rowsort
SELECT + COALESCE ( - 65, - 44 ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT ALL + + MIN( ALL - - 75 ) + + - 32 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL + + MIN ( ALL - - 75 ) + + - 32 AS col0
----
43

query I rowsort
SELECT + - ( 8 ) AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1514
SELECT ALL + + SUM( - - 99 ) * + 20 AS col1, 7 * CAST( - + CASE - 83 WHEN COUNT( + 21 ) * + 33 + - COUNT( * ) + 21 THEN - 80 WHEN - CASE WHEN NOT 67 IS NULL THEN + + 96 ELSE NULLIF ( + SUM( ( 34 ) ), 83 ) END + + 32 THEN NULL WHEN ( + ( + 81 ) ) * ( - ( + 54 ) ) THEN NULL ELSE NULL END AS SIGNED ) * + 15 AS col2
----
1980
NULL

skipif mysql # not compatible
query II rowsort label-1514
SELECT ALL + + SUM ( - - 99 ) * + 20 AS col1, 7 * CAST ( - + CASE - 83 WHEN COUNT ( + 21 ) * + 33 + - COUNT ( * ) + 21 THEN - 80 WHEN - CASE WHEN NOT 67 IS NULL THEN + + 96 ELSE NULLIF ( + SUM ( ( 34 ) ), 83 ) END + + 32 THEN NULL WHEN ( + ( + 81 ) ) * ( - ( + 54 ) ) THEN NULL ELSE NULL END AS INTEGER ) * + 15 AS col2
----
1980
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1515
SELECT DISTINCT + CAST( + 7 AS SIGNED ) + + 11 - 28 - ( - 31 ) + 18 * - COUNT( * ) * + 45 * - CAST( 78 AS SIGNED ) * + + 48 + 91 AS col1
----
3032752

skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT + CAST ( + 7 AS INTEGER ) + + 11 - 28 - ( - 31 ) + 18 * - COUNT ( * ) * + 45 * - CAST ( 78 AS INTEGER ) * + + 48 + 91 AS col1
----
3032752

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT - 30 * - MAX( ALL - 92 ) + + 38 - - 57 col0
----
-2665

skipif mysql # not compatible
query I rowsort label-1518
SELECT - 30 * - MAX ( ALL - 92 ) + + 38 - - 57 col0
----
-2665

query I rowsort
SELECT DISTINCT - 41 * 73
----
-2993

query I rowsort
SELECT 84 * + - 8
----
-672

query I rowsort
SELECT 55 * ( - 64 )
----
-3520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1522
SELECT ALL + 69 + - - 10 * - - 19 * 13, COALESCE ( - 36, - 75, + 93 * - + 5, - CASE - - ( - 16 ) WHEN 37 / + SUM( 37 ) + 8 * - + 76 + + 75 + + 93 + + MIN( 75 - 77 / + 16 ) THEN COUNT( * ) * CAST( - 25 AS SIGNED ) + 98 WHEN + CAST( NULL AS SIGNED ) * 91 THEN NULL END ) * + 89 - 68 * + COALESCE ( ( 14 ), NULLIF ( + 88, 10 + 57 ) + 95 ) AS col2
----
2539
-4156

skipif mysql # not compatible
query II rowsort label-1522
SELECT ALL + 69 + - - 10 * - - 19 * 13, COALESCE ( - 36, - 75, + 93 * - + 5, - CASE - - ( - 16 ) WHEN 37 / + SUM ( 37 ) + 8 * - + 76 + + 75 + + 93 + + MIN ( 75 - 77 / + 16 ) THEN COUNT ( * ) * CAST ( - 25 AS INTEGER ) + 98 WHEN + CAST ( NULL AS INTEGER ) * 91 THEN NULL END ) * + 89 - 68 * + COALESCE ( ( 14 ), NULLIF ( + 88, 10 + 57 ) + 95 ) AS col2
----
2539
-4156

query II rowsort
SELECT 65 - + - 87 AS col1, - 34
----
152
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1524
SELECT DISTINCT 5 * + CAST( NULL AS SIGNED ) * + - 84 * + 43 * + 68 * + - MIN( - + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT 5 * + CAST ( NULL AS INTEGER ) * + - 84 * + 43 * + 68 * + - MIN ( - + 34 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1525
SELECT DISTINCT - 6 / CAST( NULL AS SIGNED ), + 58 + - - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1525
SELECT DISTINCT - 6 / CAST ( NULL AS INTEGER ), + 58 + - - CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 88 * - 21
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT DISTINCT 69 * - + COUNT( * ) col1
----
-69

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT 69 * - + COUNT ( * ) col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1528
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - MAX( ALL 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1528
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - MAX ( ALL 78 )
----
NULL

query I rowsort
SELECT + - 9 * 16 col2
----
-144

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1531
SELECT DISTINCT - 71 * - CASE + 74 WHEN + CAST( NULL AS DECIMAL ) THEN + + 64 END + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT - 71 * - CASE + 74 WHEN + CAST ( NULL AS REAL ) THEN + + 64 END + + 13
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1532
SELECT + MIN( + 14 ) * + ( SUM( ALL + + 84 ) ) DIV - 82
----
-14

skipif mysql # not compatible
query I rowsort label-1532
SELECT + MIN ( + 14 ) * + ( SUM ( ALL + + 84 ) ) / - 82
----
-14

query I rowsort
SELECT + + 82 + 23
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT + 59 - + ( + + COUNT( * ) ) + CASE + 29 WHEN + 41 THEN NULL WHEN 15 THEN - - COUNT( * ) WHEN + COUNT( * ) * + MIN( ALL - 71 ) - 98 THEN + 43 END * - NULLIF ( + 48, 3 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1534
SELECT + 59 - + ( + + COUNT ( * ) ) + CASE + 29 WHEN + 41 THEN NULL WHEN 15 THEN - - COUNT ( * ) WHEN + COUNT ( * ) * + MIN ( ALL - 71 ) - 98 THEN + 43 END * - NULLIF ( + 48, 3 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1535
SELECT ALL - COUNT( * ) DIV + 24 AS col1, + 18 DIV MAX( NULLIF ( 63, + 16 * - + 57 * + 13 ) ) AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-1535
SELECT ALL - COUNT ( * ) / + 24 AS col1, + 18 / MAX ( NULLIF ( 63, + 16 * - + 57 * + 13 ) ) AS col0
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT + 86 + + MIN( ( + - ( + - 25 ) ) ) + + 22
----
133

skipif mysql # not compatible
query I rowsort label-1536
SELECT + 86 + + MIN ( ( + - ( + - 25 ) ) ) + + 22
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT ALL - 5 * MIN( + - 28 ) AS col1
----
140

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL - 5 * MIN ( + - 28 ) AS col1
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1538
SELECT DISTINCT + + 28 * - 71 / - 80 * - 76 / 55 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1538
SELECT DISTINCT + + 28 * - 71 / - 80 * - 76 / 55 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT ALL + - MIN( DISTINCT + - 64 ) * + 50 + CASE 24 WHEN 12 THEN NULL WHEN + 99 + 93 + - + 5 + 35 * 2 / - - 94 * 13 - - 88 * - - CASE WHEN NOT NULL <= - 25 THEN NULL WHEN NOT 88 NOT BETWEEN 76 AND + 22 THEN - 48 ELSE NULL END THEN + 59 * - 18 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL + - MIN ( DISTINCT + - 64 ) * + 50 + CASE 24 WHEN 12 THEN NULL WHEN + 99 + 93 + - + 5 + 35 * 2 / - - 94 * 13 - - 88 * - - CASE WHEN NOT NULL <= - 25 THEN NULL WHEN NOT 88 NOT BETWEEN 76 AND + 22 THEN - 48 ELSE NULL END THEN + 59 * - 18 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT + ( ( COALESCE ( - COUNT( * ), - 77 * - 40 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1540
SELECT + ( ( COALESCE ( - COUNT ( * ), - 77 * - 40 ) ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT ALL - 37 * + 40 * + + 79 + - MAX( 78 ) AS col1
----
-116998

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL - 37 * + 40 * + + 79 + - MAX ( 78 ) AS col1
----
-116998

query I rowsort
SELECT ALL 51 * 99 + + + 55 AS col2
----
5104

onlyif mysql # DIV for integer division: 
query I rowsort label-1543
SELECT 64 * + - 32 - + 85 DIV + 62 AS col1
----
-2049

skipif mysql # not compatible
query I rowsort label-1543
SELECT 64 * + - 32 - + 85 / + 62 AS col1
----
-2049

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT + COUNT( * ) + + + 41 + - 22 * 25 AS col0
----
-508

skipif mysql # not compatible
query I rowsort label-1544
SELECT + COUNT ( * ) + + + 41 + - 22 * 25 AS col0
----
-508

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1547
SELECT + COUNT( * ) * - 38 DIV + + 42
----
0

skipif mysql # not compatible
query I rowsort label-1547
SELECT + COUNT ( * ) * - 38 / + + 42
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1548
SELECT - NULLIF ( + CAST( + 57 AS SIGNED ), - + 69 ) * - 11 AS col2
----
627

skipif mysql # not compatible
query I rowsort label-1548
SELECT - NULLIF ( + CAST ( + 57 AS INTEGER ), - + 69 ) * - 11 AS col2
----
627

onlyif mysql # DIV for integer division: 
query I rowsort label-1549
SELECT ALL + 92 DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL + 92 / 57
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT ALL + COALESCE ( - 80, + MIN( 92 ) + + - 25 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL + COALESCE ( - 80, + MIN ( 92 ) + + - 25 ) AS col1
----
-80

query I rowsort
SELECT COALESCE ( - 82, + - 92 * + 71 )
----
-82

query I rowsort
SELECT - 35 + - 95 AS col2
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1553
SELECT ALL 31 * COALESCE ( 95, + + ( + COALESCE ( - - ( + 11 ), - 34 ) ) ) * + CAST( - 79 AS SIGNED ) + + COALESCE ( + MAX( - + 20 ), + 74 * 12 ) - + - 66 + + - 74 AS col1
----
-232683

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL 31 * COALESCE ( 95, + + ( + COALESCE ( - - ( + 11 ), - 34 ) ) ) * + CAST ( - 79 AS INTEGER ) + + COALESCE ( + MAX ( - + 20 ), + 74 * 12 ) - + - 66 + + - 74 AS col1
----
-232683

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1555
SELECT ALL - COUNT( ALL + 62 ) * 99, COUNT( * ) DIV - ( + 13 ) - - - 76 * - 19 col0
----
-99
1444

skipif mysql # not compatible
query II rowsort label-1555
SELECT ALL - COUNT ( ALL + 62 ) * 99, COUNT ( * ) / - ( + 13 ) - - - 76 * - 19 col0
----
-99
1444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1556
SELECT ALL + NULLIF ( + + CAST( + - 78 AS SIGNED ), 73 )
----
-78

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL + NULLIF ( + + CAST ( + - 78 AS INTEGER ), 73 )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1557
SELECT + 87 * + 22 * + ( ( + - ( CAST( COUNT( + - 29 ) AS SIGNED ) ) ) ) + 65 + 99 * + + ( - 76 )
----
-9373

skipif mysql # not compatible
query I rowsort label-1557
SELECT + 87 * + 22 * + ( ( + - ( CAST ( COUNT ( + - 29 ) AS INTEGER ) ) ) ) + 65 + 99 * + + ( - 76 )
----
-9373

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

skipif mysql # not compatible
query I rowsort label-1558
SELECT MAX ( DISTINCT 9 )
----
9

query I rowsort
SELECT - 5 + - - 45 + - NULLIF ( - 47, - 99 ) col0
----
87

query I rowsort
SELECT - 17 * + + ( - - 64 ) AS col0
----
-1088

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

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

query I rowsort
SELECT - ( + 21 ) + - 26
----
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-1563
SELECT ALL - 61 + + 47 DIV ( 31 ) + - + 95 AS col1, + 88 + 15 AS col2
----
-155
103

skipif mysql # not compatible
query II rowsort label-1563
SELECT ALL - 61 + + 47 / ( 31 ) + - + 95 AS col1, + 88 + 15 AS col2
----
-155
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT - + CASE - MIN( ALL + - 37 ) WHEN - + 72 THEN NULL ELSE 37 * - MAX( ALL + ( - - 43 ) ) END + - COUNT( * ) * 19 AS col0
----
1572

skipif mysql # not compatible
query I rowsort label-1564
SELECT - + CASE - MIN ( ALL + - 37 ) WHEN - + 72 THEN NULL ELSE 37 * - MAX ( ALL + ( - - 43 ) ) END + - COUNT ( * ) * 19 AS col0
----
1572

query I rowsort
SELECT + - 81 + 61 AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1566
SELECT + COUNT( * ) + CAST( + 21 AS SIGNED ) col2
----
22

skipif mysql # not compatible
query I rowsort label-1566
SELECT + COUNT ( * ) + CAST ( + 21 AS INTEGER ) col2
----
22

query I rowsort
SELECT ALL + + 94 + + - 58 col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1568
SELECT - COUNT( * ) + 14 DIV 57 * + - 9 + COALESCE ( + 62, + - 85 + 97, - 38 ) + + NULLIF ( - 26, + 25 + + CASE ( + 68 ) WHEN + 54 THEN + + 98 DIV + + COALESCE ( + - COUNT( * ), - + NULLIF ( 45, 98 ) ) * + 37 WHEN + 33 THEN NULL END - - 80 * CAST( SUM( + 21 ) AS SIGNED ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1568
SELECT - COUNT ( * ) + 14 / 57 * + - 9 + COALESCE ( + 62, + - 85 + 97, - 38 ) + + NULLIF ( - 26, + 25 + + CASE ( + 68 ) WHEN + 54 THEN + + 98 / + + COALESCE ( + - COUNT ( * ), - + NULLIF ( 45, 98 ) ) * + 37 WHEN + 33 THEN NULL END - - 80 * CAST ( SUM ( + 21 ) AS INTEGER ) ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT ALL 87 + + COALESCE ( + - 38, + + NULLIF ( - 17, ( + + SUM( ALL + 40 ) ) * - NULLIF ( 93, + 50 ) * 78 ), - + COUNT( ALL + + 87 ) * - 32 + - 78 - + 23 + 68 * - 77 )
----
49

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL 87 + + COALESCE ( + - 38, + + NULLIF ( - 17, ( + + SUM ( ALL + 40 ) ) * - NULLIF ( 93, + 50 ) * 78 ), - + COUNT ( ALL + + 87 ) * - 32 + - 78 - + 23 + 68 * - 77 )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1570
SELECT DISTINCT + ( + 98 ) * - CASE - COALESCE ( COUNT( * ), - 92 ) WHEN + COUNT( * ) THEN 59 - + - 28 END * + - COALESCE ( + 36, + - AVG ( ALL - 64 ) * + 68 + + - CAST( + - 44 AS SIGNED ) ) * - COUNT( * ) + ( + + 81 ) + + 46 + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT + ( + 98 ) * - CASE - COALESCE ( COUNT ( * ), - 92 ) WHEN + COUNT ( * ) THEN 59 - + - 28 END * + - COALESCE ( + 36, + - AVG ( ALL - 64 ) * + 68 + + - CAST ( + - 44 AS INTEGER ) ) * - COUNT ( * ) + ( + + 81 ) + + 46 + 40
----
NULL

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

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

query I rowsort
SELECT DISTINCT + - 52 + ( - 8 ) AS col0
----
-60

query I rowsort
SELECT + - 79 + + 11 AS col0
----
-68

query I rowsort
SELECT 68 * + + 87 + - 65 AS col2
----
5851

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT - 31 * - ( - + 53 ) * MIN( DISTINCT - 42 ) col2
----
69006

skipif mysql # not compatible
query I rowsort label-1575
SELECT - 31 * - ( - + 53 ) * MIN ( DISTINCT - 42 ) col2
----
69006

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1576
SELECT + 3 DIV + ( - 82 ) + + 25 - + CAST( - 98 AS SIGNED ), 52 * - 43 AS col1
----
123
-2236

skipif mysql # not compatible
query II rowsort label-1576
SELECT + 3 / + ( - 82 ) + + 25 - + CAST ( - 98 AS INTEGER ), 52 * - 43 AS col1
----
123
-2236

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

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

query I rowsort
SELECT ALL 77 * 56
----
4312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1579
SELECT + SUM( - + 44 ) DIV + 15 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1579
SELECT + SUM ( - + 44 ) / + 15 AS col2
----
-2

query I rowsort
SELECT ALL 95 * + 39 AS col0
----
3705

onlyif mysql # DIV for integer division: 
query I rowsort label-1581
SELECT DISTINCT 6 DIV 56 * - - 56
----
0

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT 6 / 56 * - - 56
----
0

query II rowsort
SELECT + 7 col2, 11
----
7
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT ALL 41 * - MAX( DISTINCT + + 22 ) AS col0
----
-902

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL 41 * - MAX ( DISTINCT + + 22 ) AS col0
----
-902

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

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

query I rowsort
SELECT 6 * + 51 - - 42
----
348

query I rowsort
SELECT ALL 35 * - 85
----
-2975

query I rowsort
SELECT + 83 * 37 + + - ( - + ( + 67 ) ) AS col2
----
3138

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT CASE COUNT( * ) WHEN - ( - 24 ) + 13 / + 47 THEN - 1 + - - 1 + 84 WHEN - - 62 + 39 + + + 19 THEN + 65 END / - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1588
SELECT CASE COUNT ( * ) WHEN - ( - 24 ) + 13 / + 47 THEN - 1 + - - 1 + 84 WHEN - - 62 + 39 + + + 19 THEN + 65 END / - 84 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT DISTINCT - MAX( ALL NULLIF ( 57, + - 60 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT - MAX ( ALL NULLIF ( 57, + - 60 ) )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1591
SELECT ALL - 54 AS col2, + COUNT( * ) / CAST( NULL AS SIGNED ) col0
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-1591
SELECT ALL - 54 AS col2, + COUNT ( * ) / CAST ( NULL AS INTEGER ) col0
----
-54
NULL

query I rowsort
SELECT 90 * + 96 AS col1
----
8640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1593
SELECT ALL - CASE 14 WHEN - 68 + 85 THEN NULL ELSE + - 65 * - 68 * CAST( NULL AS SIGNED ) * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL - CASE 14 WHEN - 68 + 85 THEN NULL ELSE + - 65 * - 68 * CAST ( NULL AS INTEGER ) * + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL - 82 * - ( 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1595
SELECT 51 * - 44 * 71 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1595
SELECT 51 * - 44 * 71 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1596
SELECT ALL - COUNT( * ) * + - 30 * + + NULLIF ( + COUNT( * ), - 67 ) * 81 AS col2, - CAST( NULL AS SIGNED )
----
2430
NULL

skipif mysql # not compatible
query II rowsort label-1596
SELECT ALL - COUNT ( * ) * + - 30 * + + NULLIF ( + COUNT ( * ), - 67 ) * 81 AS col2, - CAST ( NULL AS INTEGER )
----
2430
NULL

query I rowsort
SELECT 30 * 69 AS col0
----
2070

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1598
SELECT DISTINCT + 88 + + NULLIF ( - - SUM( DISTINCT + 16 ), - CAST( NULL AS DECIMAL ) ) + - 99 + COUNT( ALL + 7 ) * 50 * 83 AS col2
----
4155

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT + 88 + + NULLIF ( - - SUM ( DISTINCT + 16 ), - CAST ( NULL AS REAL ) ) + - 99 + COUNT ( ALL + 7 ) * 50 * 83 AS col2
----
4155

query II rowsort
SELECT - + 66, 20 * - 30 AS col0
----
-66
-600

onlyif mysql # aggregate syntax: 
query II rowsort label-1600
SELECT + NULLIF ( - - 41, + - 83 ) * - + 40, + 54 - CASE - - 88 WHEN - 65 THEN NULL WHEN 23 THEN - COUNT( * ) END + + 68 * + 14 AS col0
----
-1640
NULL

skipif mysql # not compatible
query II rowsort label-1600
SELECT + NULLIF ( - - 41, + - 83 ) * - + 40, + 54 - CASE - - 88 WHEN - 65 THEN NULL WHEN 23 THEN - COUNT ( * ) END + + 68 * + 14 AS col0
----
-1640
NULL

query I rowsort
SELECT ALL - 69 + - - 5 * + 51 * - + 86 AS col0
----
-21999

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT ALL + 89 + + + 74 - - - 91 * COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL + 89 + + + 74 - - - 91 * COUNT ( * )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1603
SELECT DISTINCT - 20, - COUNT( * ) DIV - + 60 col1
----
-20
0

skipif mysql # not compatible
query II rowsort label-1603
SELECT DISTINCT - 20, - COUNT ( * ) / - + 60 col1
----
-20
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1604
SELECT 79 + + AVG ( 29 ) - - - 19 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1604
SELECT 79 + + AVG ( 29 ) - - - 19 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1606
SELECT ALL + + COUNT( * ) DIV - COUNT( * ), 40 + - + COALESCE ( + + 27, - 37 - - COUNT( * ) * + 16 * + 93 + - - 61 + CAST( + 25 AS SIGNED ), + - 35 ) AS col0
----
-1
13

skipif mysql # not compatible
query II rowsort label-1606
SELECT ALL + + COUNT ( * ) / - COUNT ( * ), 40 + - + COALESCE ( + + 27, - 37 - - COUNT ( * ) * + 16 * + 93 + - - 61 + CAST ( + 25 AS INTEGER ), + - 35 ) AS col0
----
-1
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1607
SELECT - 43 * 52 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1607
SELECT - 43 * 52 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT 49 + COUNT( * ) + - SUM( - - 43 )
----
7

skipif mysql # not compatible
query I rowsort label-1608
SELECT 49 + COUNT ( * ) + - SUM ( - - 43 )
----
7

query I rowsort
SELECT ALL - 37 - + - 15 + + 69 - 39 * - 45 - - 48 col0
----
1850

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT 55 + + NULLIF ( - COUNT( * ), 96 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1610
SELECT 55 + + NULLIF ( - COUNT ( * ), 96 ) AS col1
----
54

query I rowsort
SELECT ( - ( + - 42 ) ) * + 56 + - - 30 + - 10 AS col1
----
2372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1612
SELECT ALL - 37 * - - NULLIF ( - 44, - - MIN( DISTINCT - - 71 ) - + 3 ) DIV - COUNT( * )
----
-1628

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL - 37 * - - NULLIF ( - 44, - - MIN ( DISTINCT - - 71 ) - + 3 ) / - COUNT ( * )
----
-1628

query I rowsort
SELECT 81 * + + 89
----
7209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1614
SELECT + 79 / + + CASE 94 WHEN + + 7 + COUNT( * ) THEN + + COUNT( * ) ELSE NULL END + MAX( DISTINCT CAST( + 22 AS SIGNED ) ) / - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1614
SELECT + 79 / + + CASE 94 WHEN + + 7 + COUNT ( * ) THEN + + COUNT ( * ) ELSE NULL END + MAX ( DISTINCT CAST ( + 22 AS INTEGER ) ) / - 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1615
SELECT 64 + COUNT( * ), - 32 AS col2
----
65
-32

skipif mysql # not compatible
query II rowsort label-1615
SELECT 64 + COUNT ( * ), - 32 AS col2
----
65
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1616
SELECT 71 * - CAST( NULL AS SIGNED ) AS col1, 69 * - - 7 AS col0
----
NULL
483

skipif mysql # not compatible
query II rowsort label-1616
SELECT 71 * - CAST ( NULL AS INTEGER ) AS col1, 69 * - - 7 AS col0
----
NULL
483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1617
SELECT 11 * - 72 * - CAST( NULL AS SIGNED ) + 93 / + 15 * - 87 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1617
SELECT 11 * - 72 * - CAST ( NULL AS INTEGER ) + 93 / + 15 * - 87 col2
----
NULL

query I rowsort
SELECT 9 + 8 + 37
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT 48 * COUNT( * ) + + 31 + + - CASE + - 28 WHEN + - ( - 90 ) THEN - SUM( ALL - ( + + 63 ) ) WHEN - 46 + - 64 + + MIN( - 86 ) * + ( 87 ) - 80 THEN + 14 END + AVG ( + ( 41 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1619
SELECT 48 * COUNT ( * ) + + 31 + + - CASE + - 28 WHEN + - ( - 90 ) THEN - SUM ( ALL - ( + + 63 ) ) WHEN - 46 + - 64 + + MIN ( - 86 ) * + ( 87 ) - 80 THEN + 14 END + AVG ( + ( 41 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1620
SELECT ( - 9 ) DIV COUNT( * ) + 13
----
4

skipif mysql # not compatible
query I rowsort label-1620
SELECT ( - 9 ) / COUNT ( * ) + 13
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1621
SELECT ALL ( - 53 ) + CASE + 91 WHEN - 67 * + 98 + + COUNT( * ) THEN NULL ELSE + 53 DIV - - 64 END DIV + - 31 * - 58 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL ( - 53 ) + CASE + 91 WHEN - 67 * + 98 + + COUNT ( * ) THEN NULL ELSE + 53 / - - 64 END / + - 31 * - 58 AS col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1622
SELECT NULLIF ( + ( + - 32 ), + CAST( + + 94 AS SIGNED ) ) + 89 + - ( 96 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-1622
SELECT NULLIF ( + ( + - 32 ), + CAST ( + + 94 AS INTEGER ) ) + 89 + - ( 96 ) AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1623
SELECT DISTINCT CAST( + + CAST( - 41 AS SIGNED ) AS SIGNED ) + + 56 + + COALESCE ( - COUNT( * ), + - 54 ) * - + 12
----
27

skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT CAST ( + + CAST ( - 41 AS INTEGER ) AS INTEGER ) + + 56 + + COALESCE ( - COUNT ( * ), + - 54 ) * - + 12
----
27

query I rowsort
SELECT DISTINCT - 83 * + 7 * - 99
----
57519

query I rowsort
SELECT ALL 6 + - 78
----
-72

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1627
SELECT 99 + + 83 - + 71 * + MIN( ALL + 77 ), MAX( + 68 ) * + 15 AS col2
----
-5285
1020

skipif mysql # not compatible
query II rowsort label-1627
SELECT 99 + + 83 - + 71 * + MIN ( ALL + 77 ), MAX ( + 68 ) * + 15 AS col2
----
-5285
1020

query I rowsort
SELECT DISTINCT - 34 + + 19 col2
----
-15

query I rowsort
SELECT ALL NULLIF ( - - 98, + 13 ) + - 39
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1630
SELECT + 16 * - - 10 * + 97 + CAST( NULL AS SIGNED ) * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-1630
SELECT + 16 * - - 10 * + 97 + CAST ( NULL AS INTEGER ) * - 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT DISTINCT 90 + + 9 + + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT 90 + + 9 + + COUNT ( * )
----
100

query II rowsort
SELECT ALL - ( - 39 ), 80 AS col0
----
39
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT ALL 8 + ( + + COALESCE ( 4, - MAX( DISTINCT - 97 ) ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL 8 + ( + + COALESCE ( 4, - MAX ( DISTINCT - 97 ) ) ) AS col1
----
12

query I rowsort
SELECT 14 + - 37
----
-23

query II rowsort
SELECT ALL - - 27 - 97 - + 86 AS col2, - 83
----
-156
-83

query I rowsort
SELECT - 75 + - + 79
----
-154

query II rowsort
SELECT DISTINCT + + 98 * + - 7 AS col1, - 91 col1
----
-686
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-1638
SELECT 83 + + MAX( ALL - - 38 ), 44 AS col1
----
121
44

skipif mysql # not compatible
query II rowsort label-1638
SELECT 83 + + MAX ( ALL - - 38 ), 44 AS col1
----
121
44

onlyif mysql # aggregate syntax: 
query II rowsort label-1639
SELECT ALL + 82 * 53 AS col0, - COUNT( * ) * + 81 - - + 23 * 87 AS col1
----
4346
1920

skipif mysql # not compatible
query II rowsort label-1639
SELECT ALL + 82 * 53 AS col0, - COUNT ( * ) * + 81 - - + 23 * 87 AS col1
----
4346
1920

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1641
SELECT - - MIN( - 86 ) AS col2, 19 AS col2
----
-86
19

skipif mysql # not compatible
query II rowsort label-1641
SELECT - - MIN ( - 86 ) AS col2, 19 AS col2
----
-86
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT 94 + 98 * - NULLIF ( + COUNT( * ), 1 + 0 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1642
SELECT 94 + 98 * - NULLIF ( + COUNT ( * ), 1 + 0 ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 49 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL COALESCE ( 87, - 27 )
----
87

query II rowsort
SELECT - 12 * ( - 89 ) * + - 33 + - + 89 * ( + 48 ) + - 49, 48 AS col2
----
-39565
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT - COALESCE ( 61, + CASE - + COUNT( * ) WHEN - 94 * - + COUNT( * ) THEN + + 69 ELSE 86 END, 24 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-1647
SELECT - COALESCE ( 61, + CASE - + COUNT ( * ) WHEN - 94 * - + COUNT ( * ) THEN + + 69 ELSE 86 END, 24 ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT COALESCE ( - 36, + 75 * SUM( + 45 ) + - 92 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-1648
SELECT COALESCE ( - 36, + 75 * SUM ( + 45 ) + - 92 ) AS col1
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1649
SELECT - 76 DIV 74
----
-1

skipif mysql # not compatible
query I rowsort label-1649
SELECT - 76 / 74
----
-1

query I rowsort
SELECT - 82 * + - COALESCE ( 22, + 40, - - 57 - + - 29 * + 43, - - 4 )
----
1804

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT NULLIF ( + ( - 20 ), + COUNT( * ) * - - 33 )
----
-20

skipif mysql # not compatible
query I rowsort label-1651
SELECT NULLIF ( + ( - 20 ), + COUNT ( * ) * - - 33 )
----
-20

query I rowsort
SELECT ALL - 34 * - 53 AS col2
----
1802

query II rowsort
SELECT DISTINCT 31 * - + 37 + + 97, 1 + + 53 AS col0
----
-1050
54

query I rowsort
SELECT - 88 + - 18 AS col0
----
-106

onlyif mysql # aggregate syntax: 
query II rowsort label-1655
SELECT + 23, NULLIF ( + COUNT( * ), 32 ) + 2 AS col2
----
23
3

skipif mysql # not compatible
query II rowsort label-1655
SELECT + 23, NULLIF ( + COUNT ( * ), 32 ) + 2 AS col2
----
23
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT DISTINCT + 89 * - ( COALESCE ( - 57, + 39 * + + SUM( DISTINCT - 90 ) + + + 99, - 28 + 50 * + + 23 ) )
----
5073

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT + 89 * - ( COALESCE ( - 57, + 39 * + + SUM ( DISTINCT - 90 ) + + + 99, - 28 + 50 * + + 23 ) )
----
5073

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT ALL + 71 * ( - 37 ) * + + COUNT( * ) * 77 AS col2
----
-202279

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL + 71 * ( - 37 ) * + + COUNT ( * ) * 77 AS col2
----
-202279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1659
SELECT - CAST( - 96 AS SIGNED ) * - 70 AS col0
----
-6720

skipif mysql # not compatible
query I rowsort label-1659
SELECT - CAST ( - 96 AS INTEGER ) * - 70 AS col0
----
-6720

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

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

query I rowsort
SELECT NULLIF ( + - 76, + + 27 + - + 58 ) AS col0
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1662
SELECT DISTINCT - - 58 DIV - COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT - - 58 / - COUNT ( * ) AS col0
----
-58

query I rowsort
SELECT ALL - COALESCE ( - - 46, - - 22 + - 81 ) - - 77 AS col2
----
31

query I rowsort
SELECT + 50 * - 46
----
-2300

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1666
SELECT - 22 AS col0, + COUNT( + + 78 ) + 41 AS col0
----
-22
42

skipif mysql # not compatible
query II rowsort label-1666
SELECT - 22 AS col0, + COUNT ( + + 78 ) + 41 AS col0
----
-22
42

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

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

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

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

query I rowsort
SELECT + 25 - 15
----
10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1671
SELECT + + 73 DIV + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1671
SELECT + + 73 / + 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1672
SELECT + 60 * - 43 AS col0, - ( + COUNT( * ) ) * + - 92 AS col2
----
-2580
92

skipif mysql # not compatible
query II rowsort label-1672
SELECT + 60 * - 43 AS col0, - ( + COUNT ( * ) ) * + - 92 AS col2
----
-2580
92

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

skipif mysql # not compatible
query II rowsort label-1673
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ), CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1674
SELECT ALL + 74 * + + COUNT( * ) AS col0, + 75 * 48 AS col0
----
74
3600

skipif mysql # not compatible
query II rowsort label-1674
SELECT ALL + 74 * + + COUNT ( * ) AS col0, + 75 * 48 AS col0
----
74
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT DISTINCT COALESCE ( - 7, - - 60 * - + 23 * + + 31 * + 44 * COUNT( * ), ( - 1 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT COALESCE ( - 7, - - 60 * - + 23 * + + 31 * + 44 * COUNT ( * ), ( - 1 ) )
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-1676
SELECT + COUNT( * ) + + 60, + 55 AS col0
----
61
55

skipif mysql # not compatible
query II rowsort label-1676
SELECT + COUNT ( * ) + + 60, + 55 AS col0
----
61
55

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1678
SELECT DISTINCT CASE NULLIF ( + ( + CAST( NULL AS SIGNED ) ), - + 92 ) WHEN + ( + - CASE + COUNT( * ) WHEN - 19 + - COUNT( * ) THEN + - 63 END ) THEN 21 / 16 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT CASE NULLIF ( + ( + CAST ( NULL AS INTEGER ) ), - + 92 ) WHEN + ( + - CASE + COUNT ( * ) WHEN - 19 + - COUNT ( * ) THEN + - 63 END ) THEN 21 / 16 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 70 + 32 + 54
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1680
SELECT ALL ( CASE - - COALESCE ( + 20, + - 78, 89 ) WHEN 29 + + + CAST( - 29 AS SIGNED ) THEN - COUNT( * ) + + 94 / + 58 END ) / COALESCE ( + - 97, - ( + - COUNT( * ) ) ) + + 52 + + 78 * + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL ( CASE - - COALESCE ( + 20, + - 78, 89 ) WHEN 29 + + + CAST ( - 29 AS INTEGER ) THEN - COUNT ( * ) + + 94 / + 58 END ) / COALESCE ( + - 97, - ( + - COUNT ( * ) ) ) + + 52 + + 78 * + 99 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT ALL - 53 DIV - 45 + - - COALESCE ( 57, - 48 * - + 54 )
----
58

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL - 53 / - 45 + - - COALESCE ( 57, - 48 * - + 54 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT DISTINCT + SUM( + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1682
SELECT DISTINCT + SUM ( + 20 ) AS col1
----
20

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

skipif mysql # not compatible
query I rowsort label-1683
SELECT CAST ( - SUM ( DISTINCT + 98 ) AS INTEGER )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1684
SELECT CAST( - SUM( - - CAST( NULL AS DECIMAL ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1684
SELECT CAST ( - SUM ( - - CAST ( NULL AS REAL ) ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT + 87 DIV + - 70
----
-1

skipif mysql # not compatible
query I rowsort label-1685
SELECT + 87 / + - 70
----
-1

query I rowsort
SELECT - 93 + 12 * - 14
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT ALL + 9 / + 23 + - CASE + - 44 WHEN - - MIN( DISTINCT - - ( - COALESCE ( + + 5, + 60 ) ) ) * + 22 / 70 THEN - 62 + 33 - 52 + + 99 * + 72 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL + 9 / + 23 + - CASE + - 44 WHEN - - MIN ( DISTINCT - - ( - COALESCE ( + + 5, + 60 ) ) ) * + 22 / 70 THEN - 62 + 33 - 52 + + 99 * + 72 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - ( + + 19 ) * + 69 AS col0
----
-1311

query I rowsort
SELECT ALL + 42 * - 29 AS col2
----
-1218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1690
SELECT ALL - - CASE + 72 WHEN + 49 + + 88 THEN + + COUNT( * ) END * - + ( - - CAST( ( + + 59 ) AS SIGNED ) ) col0, - CAST( - - CAST( + - 96 AS DECIMAL ) AS SIGNED )
----
NULL
96

skipif mysql # not compatible
query II rowsort label-1690
SELECT ALL - - CASE + 72 WHEN + 49 + + 88 THEN + + COUNT ( * ) END * - + ( - - CAST ( ( + + 59 ) AS INTEGER ) ) col0, - CAST ( - - CAST ( + - 96 AS REAL ) AS INTEGER )
----
NULL
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1691
SELECT DISTINCT + COUNT( * ) * + 43 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT + COUNT ( * ) * + 43 / - 80
----
0

query I rowsort
SELECT - 12 + + 47
----
35

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1694
SELECT ALL - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 68 + CAST( NULL AS SIGNED ) AS col0, + 35 AS col1
----
NULL
35

skipif mysql # not compatible
query II rowsort label-1694
SELECT ALL - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 68 + CAST ( NULL AS INTEGER ) AS col0, + 35 AS col1
----
NULL
35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1695
SELECT ALL + 8 * - 57 * + 26 - CAST( - 0 AS SIGNED ) + + 94 + - - 9 + - 49 - + + 53 DIV + + 25 + - 57
----
-11861

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL + 8 * - 57 * + 26 - CAST ( - 0 AS INTEGER ) + + 94 + - - 9 + - 49 - + + 53 / + + 25 + - 57
----
-11861

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1696
SELECT - + 36 * - COUNT( + CAST( NULL AS DECIMAL ) ) + - 52, + COUNT( * ) AS col1
----
-52
1

skipif mysql # not compatible
query II rowsort label-1696
SELECT - + 36 * - COUNT ( + CAST ( NULL AS REAL ) ) + - 52, + COUNT ( * ) AS col1
----
-52
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1697
SELECT CAST( 51 AS SIGNED ) AS col1, + ( + + COUNT( * ) ) - - - CASE - + 72 WHEN + 52 THEN NULL ELSE + CAST( NULL AS SIGNED ) * - + 33 * + - 35 * - 98 + + 59 + + - 73 * + COUNT( * ) END
----
51
NULL

skipif mysql # not compatible
query II rowsort label-1697
SELECT CAST ( 51 AS INTEGER ) AS col1, + ( + + COUNT ( * ) ) - - - CASE - + 72 WHEN + 52 THEN NULL ELSE + CAST ( NULL AS INTEGER ) * - + 33 * + - 35 * - 98 + + 59 + + - 73 * + COUNT ( * ) END
----
51
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1698
SELECT + + 38 * - + 19 * 93 * + 88 * - COALESCE ( 48, - 38 DIV - 26, + + 68 ) + + - COUNT( * )
----
283624703

skipif mysql # not compatible
query I rowsort label-1698
SELECT + + 38 * - + 19 * 93 * + 88 * - COALESCE ( 48, - 38 / - 26, + + 68 ) + + - COUNT ( * )
----
283624703

query I rowsort
SELECT - 14 * + 60 AS col1
----
-840

query I rowsort
SELECT ALL 81 * 5 AS col1
----
405

query I rowsort
SELECT 46 * - - 80
----
3680

query II rowsort
SELECT - 87 AS col1, + ( + 1 )
----
-87
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1703
SELECT - 89 AS col2, COALESCE ( + - 46, + 97, - COUNT( * ) ) col1
----
-89
-46

skipif mysql # not compatible
query II rowsort label-1703
SELECT - 89 AS col2, COALESCE ( + - 46, + 97, - COUNT ( * ) ) col1
----
-89
-46

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1705
SELECT 74 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-1705
SELECT 74 / 99
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1707
SELECT 58, - ( COUNT( * ) ) col0
----
58
-1

skipif mysql # not compatible
query II rowsort label-1707
SELECT 58, - ( COUNT ( * ) ) col0
----
58
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1708
SELECT SUM( ALL + 78 ) * 63 * - ( - 77 ) AS col1, - MIN( ALL - 36 ) - + COALESCE ( - 44, - MIN( - 34 ) )
----
378378
80

skipif mysql # not compatible
query II rowsort label-1708
SELECT SUM ( ALL + 78 ) * 63 * - ( - 77 ) AS col1, - MIN ( ALL - 36 ) - + COALESCE ( - 44, - MIN ( - 34 ) )
----
378378
80

query I rowsort
SELECT ALL 77 + + - 56
----
21

query I rowsort
SELECT 9 * - 89 AS col2
----
-801

query I rowsort
SELECT ALL 59 + + 76 AS col1
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1712
SELECT ALL 63 AS col1, - CAST( NULL AS SIGNED ) AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-1712
SELECT ALL 63 AS col1, - CAST ( NULL AS INTEGER ) AS col2
----
63
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1714
SELECT - 19, - MAX( - CAST( NULL AS SIGNED ) ) / - ( - COUNT( * ) ) - + 90 * ( - - ( + 64 ) ) AS col0
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-1714
SELECT - 19, - MAX ( - CAST ( NULL AS INTEGER ) ) / - ( - COUNT ( * ) ) - + 90 * ( - - ( + 64 ) ) AS col0
----
-19
NULL

query I rowsort
SELECT 99 * 77 AS col2
----
7623

query I rowsort
SELECT 34 * 19 AS col2
----
646

query I rowsort
SELECT DISTINCT 58 * 83 AS col0
----
4814

query I rowsort
SELECT DISTINCT - 55 - + 78 - + 41 + 53
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT DISTINCT 57 * 20 * + + 97 + + COUNT( * ) * 94 AS col2
----
110674

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT 57 * 20 * + + 97 + + COUNT ( * ) * 94 AS col2
----
110674

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1722
SELECT - + COUNT( * ) * 82 / + + 39 / - 38 * - + CASE - CAST( + - 75 AS DECIMAL ) WHEN - 39 * + - 70 / COUNT( * ) THEN 98 ELSE NULL END + + 45 * - COUNT( * ) AS col2, + COUNT( * ) * 25
----
NULL
25

skipif mysql # not compatible
query II rowsort label-1722
SELECT - + COUNT ( * ) * 82 / + + 39 / - 38 * - + CASE - CAST ( + - 75 AS REAL ) WHEN - 39 * + - 70 / COUNT ( * ) THEN 98 ELSE NULL END + + 45 * - COUNT ( * ) AS col2, + COUNT ( * ) * 25
----
NULL
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1723
SELECT 12 DIV ( - 8 ) * - CASE + ( - MAX( - 33 ) ) WHEN 97 * + + 27 THEN + 35 WHEN - - 53 THEN NULL ELSE + COUNT( * ) END + 41 * 68 AS col2
----
2789

skipif mysql # not compatible
query I rowsort label-1723
SELECT 12 / ( - 8 ) * - CASE + ( - MAX ( - 33 ) ) WHEN 97 * + + 27 THEN + 35 WHEN - - 53 THEN NULL ELSE + COUNT ( * ) END + 41 * 68 AS col2
----
2789

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1726
SELECT + 34 AS col1, NULLIF ( + - COUNT( * ), - 60 ) DIV - 88
----
34
0

skipif mysql # not compatible
query II rowsort label-1726
SELECT + 34 AS col1, NULLIF ( + - COUNT ( * ), - 60 ) / - 88
----
34
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT NULLIF ( - - 80, - + 62 ) * - - COUNT( * ) + + 81 * + - 51 + COUNT( * )
----
-4050

skipif mysql # not compatible
query I rowsort label-1727
SELECT NULLIF ( - - 80, - + 62 ) * - - COUNT ( * ) + + 81 * + - 51 + COUNT ( * )
----
-4050

query I rowsort
SELECT ALL - CASE + 12 WHEN 73 THEN - - 68 WHEN - 13 THEN + 46 / + ( + + 32 ) WHEN - 83 + - ( + 44 ) THEN 30 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1729
SELECT DISTINCT + CAST( 3 AS SIGNED ) * NULLIF ( 28, + 97 + 83 + + 74 )
----
84

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT + CAST ( 3 AS INTEGER ) * NULLIF ( 28, + 97 + 83 + + 74 )
----
84

query I rowsort
SELECT + ( + - 28 ) col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1731
SELECT ALL + + 49 + + - CAST( MIN( ALL - + 45 ) AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL + + 49 + + - CAST ( MIN ( ALL - + 45 ) AS INTEGER )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1732
SELECT DISTINCT - + 86 + - 36 + + - CAST( NULL AS SIGNED ) + - + 70 / - + COUNT( * ) * 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT - + 86 + - 36 + + - CAST ( NULL AS INTEGER ) + - + 70 / - + COUNT ( * ) * 43 AS col2
----
NULL

query I rowsort
SELECT 64 * + 40
----
2560

query II rowsort
SELECT DISTINCT 35, 64 AS col2
----
35
64

query II rowsort
SELECT - 87 AS col0, - 13 col2
----
-87
-13

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

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT MIN ( - 4 )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1737
SELECT ALL - COALESCE ( 97, 24 * - - COUNT( * ) DIV - 9 + 30 + - 1 ) + + COUNT( * ) + - 27 AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL - COALESCE ( 97, 24 * - - COUNT ( * ) / - 9 + 30 + - 1 ) + + COUNT ( * ) + - 27 AS col2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT 90 - + - COUNT( DISTINCT 80 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-1738
SELECT 90 - + - COUNT ( DISTINCT 80 ) AS col1
----
91

query II rowsort
SELECT 30 col1, + 75 AS col2
----
30
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1740
SELECT DISTINCT COUNT( * ) + - ( + MIN( ALL - 97 ) ) + - CASE + 83 WHEN - 92 THEN 35 * MIN( - 2 ) + COUNT( * ) WHEN - - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) / ( 85 ) / + COUNT( ALL + 68 ) THEN NULL ELSE - COUNT( * ) END
----
99

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT COUNT ( * ) + - ( + MIN ( ALL - 97 ) ) + - CASE + 83 WHEN - 92 THEN 35 * MIN ( - 2 ) + COUNT ( * ) WHEN - - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) / ( 85 ) / + COUNT ( ALL + 68 ) THEN NULL ELSE - COUNT ( * ) END
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1741
SELECT 9 / + 35 * - 35 / CAST( NULL AS SIGNED ) * - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1741
SELECT 9 / + 35 * - 35 / CAST ( NULL AS INTEGER ) * - 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1742
SELECT ALL CASE + 66 WHEN - + ( - 81 ) + + 54 THEN + NULLIF ( - - 85, 14 / + 77 + + 12 + 43 ) ELSE + 61 * - COUNT( * ) END + + + COALESCE ( - 44, + + 69 ) AS col0, + COUNT( * ) - + 36
----
-105
-35

skipif mysql # not compatible
query II rowsort label-1742
SELECT ALL CASE + 66 WHEN - + ( - 81 ) + + 54 THEN + NULLIF ( - - 85, 14 / + 77 + + 12 + 43 ) ELSE + 61 * - COUNT ( * ) END + + + COALESCE ( - 44, + + 69 ) AS col0, + COUNT ( * ) - + 36
----
-105
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1743
SELECT DISTINCT + COALESCE ( - - CAST( NULL AS SIGNED ), 70 DIV + + COUNT( * ) ) + - 17
----
53

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT + COALESCE ( - - CAST ( NULL AS INTEGER ), 70 / + + COUNT ( * ) ) + - 17
----
53

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

skipif mysql # not compatible
query II rowsort label-1744
SELECT 60 AS col1, - ( CAST ( NULL AS INTEGER ) )
----
60
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1745
SELECT 99 + - COALESCE ( + + 33, COUNT( + - 26 ) DIV - 15, - 21 ) + + 88 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-1745
SELECT 99 + - COALESCE ( + + 33, COUNT ( + - 26 ) / - 15, - 21 ) + + 88 AS col2
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-1746
SELECT NULLIF ( + + 35, + 13 * + ( - 32 ) - - NULLIF ( + - 9, - - 49 ) ) - - - 40 DIV 15 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-1746
SELECT NULLIF ( + + 35, + 13 * + ( - 32 ) - - NULLIF ( + - 9, - - 49 ) ) - - - 40 / 15 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT ALL NULLIF ( - 64, 27 + + MAX( DISTINCT 44 ) - - 51 * - 79 + - 30 ) * 98
----
-6272

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL NULLIF ( - 64, 27 + + MAX ( DISTINCT 44 ) - - 51 * - 79 + - 30 ) * 98
----
-6272

query II rowsort
SELECT 73, + ( 25 ) AS col1
----
73
25

query II rowsort
SELECT - 73, 36 col2
----
-73
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT - MIN( ALL - 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1750
SELECT - MIN ( ALL - 96 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT COUNT( * ) + + 36 * - - MAX( - - 11 ) AS col2
----
397

skipif mysql # not compatible
query I rowsort label-1751
SELECT COUNT ( * ) + + 36 * - - MAX ( - - 11 ) AS col2
----
397

query I rowsort
SELECT 34 + - 11 * 22
----
-208

query II rowsort
SELECT DISTINCT - - 41 AS col2, - 30 col1
----
41
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1754
SELECT - + 22 * - 82 - + - 45 * + COUNT( * ) * - 18 + - + CAST( NULL AS SIGNED ) * - - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1754
SELECT - + 22 * - 82 - + - 45 * + COUNT ( * ) * - 18 + - + CAST ( NULL AS INTEGER ) * - - 52
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1755
SELECT 89 DIV - - COUNT( * ) DIV + - 1 + - 99, - 7 + - - 12 + - 98 AS col0
----
-188
-93

skipif mysql # not compatible
query II rowsort label-1755
SELECT 89 / - - COUNT ( * ) / + - 1 + - 99, - 7 + - - 12 + - 98 AS col0
----
-188
-93

query I rowsort
SELECT DISTINCT + - 88 * - 75 - - 8
----
6608

onlyif mysql # aggregate syntax: 
query III rowsort label-1757
SELECT + COUNT( * ), + COUNT( * ) AS col1, + + 38 AS col1
----
1
1
38

skipif mysql # not compatible
query III rowsort label-1757
SELECT + COUNT ( * ), + COUNT ( * ) AS col1, + + 38 AS col1
----
1
1
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1758
SELECT + - 35 DIV - 52 + + - 98
----
-98

skipif mysql # not compatible
query I rowsort label-1758
SELECT + - 35 / - 52 + + - 98
----
-98

query II rowsort
SELECT ALL - - 86 AS col0, 3 col0
----
86
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT DISTINCT MAX( + + 34 ) * - - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT MAX ( + + 34 ) * - - COUNT ( * )
----
34

query II rowsort
SELECT + + 84 AS col2, 57
----
84
57

query I rowsort
SELECT 27 + + 44
----
71

query I rowsort
SELECT + 69 * 92
----
6348

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1764
SELECT MAX( + 85 ) * COUNT( * ) + MIN( + 17 ) - 67 DIV + COUNT( * ) - - ( + 50 ) AS col2, 26
----
85
26

skipif mysql # not compatible
query II rowsort label-1764
SELECT MAX ( + 85 ) * COUNT ( * ) + MIN ( + 17 ) - 67 / + COUNT ( * ) - - ( + 50 ) AS col2, 26
----
85
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1765
SELECT + + 91 AS col1, CASE - - ( + CASE - 27 WHEN 49 THEN NULL ELSE 99 END ) WHEN + + AVG ( DISTINCT - 47 ) THEN - ( 70 ) WHEN 85 THEN NULL WHEN + 88 + COUNT( * ) THEN NULL END * CAST( NULL AS DECIMAL )
----
91
NULL

skipif mysql # not compatible
query II rowsort label-1765
SELECT + + 91 AS col1, CASE - - ( + CASE - 27 WHEN 49 THEN NULL ELSE 99 END ) WHEN + + AVG ( DISTINCT - 47 ) THEN - ( 70 ) WHEN 85 THEN NULL WHEN + 88 + COUNT ( * ) THEN NULL END * CAST ( NULL AS REAL )
----
91
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1767
SELECT + 5 * CASE - 86 WHEN COUNT( * ) - + 37 + 87 THEN + CASE - 68 WHEN 35 - + - 12 * + 44 * + CAST( 27 AS SIGNED ) * - NULLIF ( CAST( + - 76 AS DECIMAL ), + 55 ) * + COUNT( * ) * 95 - + - 2 * COUNT( ALL CAST( NULL AS SIGNED ) ) - - 97 THEN - 75 ELSE - - 57 END * - 81 WHEN + 36 * - ( + ( + 45 ) * - CAST( NULL AS SIGNED ) ) THEN + 63 + - 3 END * + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1767
SELECT + 5 * CASE - 86 WHEN COUNT ( * ) - + 37 + 87 THEN + CASE - 68 WHEN 35 - + - 12 * + 44 * + CAST ( 27 AS INTEGER ) * - NULLIF ( CAST ( + - 76 AS REAL ), + 55 ) * + COUNT ( * ) * 95 - + - 2 * COUNT ( ALL CAST ( NULL AS INTEGER ) ) - - 97 THEN - 75 ELSE - - 57 END * - 81 WHEN + 36 * - ( + ( + 45 ) * - CAST ( NULL AS INTEGER ) ) THEN + 63 + - 3 END * + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1768
SELECT ALL + SUM( + 16 ) * 50 + ( - + ( + + 4 ) ) AS col1, - 71 * + 25 * + COUNT( * ) AS col2
----
796
-1775

skipif mysql # not compatible
query II rowsort label-1768
SELECT ALL + SUM ( + 16 ) * 50 + ( - + ( + + 4 ) ) AS col1, - 71 * + 25 * + COUNT ( * ) AS col2
----
796
-1775

onlyif mysql # DIV for integer division: 
query I rowsort label-1769
SELECT DISTINCT + - 28 * + 59 + 1 + 11 + 17 + - - 76 DIV 29
----
-1621

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT + - 28 * + 59 + 1 + 11 + 17 + - - 76 / 29
----
-1621

query II rowsort
SELECT + 63 AS col1, + 71
----
63
71

query I rowsort
SELECT - - 78 - + + 17
----
61

query II rowsort
SELECT - 47 AS col0, 96
----
-47
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1773
SELECT + CAST( + 81 AS SIGNED ) + - + MIN( DISTINCT + - 70 ) col2
----
151

skipif mysql # not compatible
query I rowsort label-1773
SELECT + CAST ( + 81 AS INTEGER ) + - + MIN ( DISTINCT + - 70 ) col2
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT ALL + COUNT( 46 ) * - 69 + - 13 - - 25 * + COUNT( * ) * + ( + 21 ) * - 10
----
-5332

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL + COUNT ( 46 ) * - 69 + - 13 - - 25 * + COUNT ( * ) * + ( + 21 ) * - 10
----
-5332

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT - 3 * - 81 + 42 + - - COUNT( * ) * + + 37 * 23 + - + 32
----
1104

skipif mysql # not compatible
query I rowsort label-1775
SELECT - 3 * - 81 + 42 + - - COUNT ( * ) * + + 37 * 23 + - + 32
----
1104

onlyif mysql # aggregate syntax: 
query II rowsort label-1776
SELECT ALL CASE + 16 WHEN - 58 THEN + - 45 * 35 + COUNT( * ) END + + + MAX( DISTINCT - 24 ), + 81 col2
----
NULL
81

skipif mysql # not compatible
query II rowsort label-1776
SELECT ALL CASE + 16 WHEN - 58 THEN + - 45 * 35 + COUNT ( * ) END + + + MAX ( DISTINCT - 24 ), + 81 col2
----
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1777
SELECT DISTINCT COALESCE ( - + 37, 90, + CAST( - 89 AS SIGNED ) ), - 75 AS col2
----
-37
-75

skipif mysql # not compatible
query II rowsort label-1777
SELECT DISTINCT COALESCE ( - + 37, 90, + CAST ( - 89 AS INTEGER ) ), - 75 AS col2
----
-37
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT ALL + COUNT( * ) - + + SUM( + - 59 )
----
60

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL + COUNT ( * ) - + + SUM ( + - 59 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT - 41 + + 99 * - - 84 + - COUNT( * ) AS col0
----
8274

skipif mysql # not compatible
query I rowsort label-1779
SELECT - 41 + + 99 * - - 84 + - COUNT ( * ) AS col0
----
8274

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1781
SELECT ALL COALESCE ( - + 49, + 51 + - COUNT( * ) * + 40 DIV + 36, - + MIN( ALL 17 ), 10 )
----
-49

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL COALESCE ( - + 49, + 51 + - COUNT ( * ) * + 40 / + 36, - + MIN ( ALL 17 ), 10 )
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-1782
SELECT ALL SUM( + 13 ) AS col1, 57
----
13
57

skipif mysql # not compatible
query II rowsort label-1782
SELECT ALL SUM ( + 13 ) AS col1, 57
----
13
57

query I rowsort
SELECT DISTINCT - 22 * - + 70 * + + 17 + - 59
----
26121

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT ALL + - NULLIF ( - COUNT( * ), - ( + AVG ( DISTINCT - - 43 ) ) ) * + 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL + - NULLIF ( - COUNT ( * ), - ( + AVG ( DISTINCT - - 43 ) ) ) * + 32 AS col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1785
SELECT + ( - + 0 ) AS col1, 4 * + - 98 * + MIN( ALL 46 )
----
0
-18032

skipif mysql # not compatible
query II rowsort label-1785
SELECT + ( - + 0 ) AS col1, 4 * + - 98 * + MIN ( ALL 46 )
----
0
-18032

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

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

query I rowsort
SELECT + + 50 * + - 55 AS col0
----
-2750

onlyif mysql # DIV for integer division: 
query I rowsort label-1788
SELECT + - 34 DIV - ( - 15 )
----
-2

skipif mysql # not compatible
query I rowsort label-1788
SELECT + - 34 / - ( - 15 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-1789
SELECT ALL + + SUM( ALL - 85 ) AS col1, + 77 * + 2 * + - SUM( - 66 )
----
-85
10164

skipif mysql # not compatible
query II rowsort label-1789
SELECT ALL + + SUM ( ALL - 85 ) AS col1, + 77 * + 2 * + - SUM ( - 66 )
----
-85
10164

query I rowsort
SELECT - - 64 - - 32 * 84 * 36 AS col1
----
96832

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1791
SELECT ALL + + 70 * - 93 AS col0, - CAST( NULL AS SIGNED )
----
-6510
NULL

skipif mysql # not compatible
query II rowsort label-1791
SELECT ALL + + 70 * - 93 AS col0, - CAST ( NULL AS INTEGER )
----
-6510
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1792
SELECT DISTINCT - 59 DIV - + 4 + - 79 - - 85
----
20

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT - 59 / - + 4 + - 79 - - 85
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-1793
SELECT ALL 20 DIV + - 12 AS col2, 92 + 52 - - 40 AS col1
----
-1
184

skipif mysql # not compatible
query II rowsort label-1793
SELECT ALL 20 / + - 12 AS col2, 92 + 52 - - 40 AS col1
----
-1
184

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT + - COUNT( * ) + - 38 * + 4 * - 68
----
10335

skipif mysql # not compatible
query I rowsort label-1794
SELECT + - COUNT ( * ) + - 38 * + 4 * - 68
----
10335

query I rowsort
SELECT DISTINCT 69 * - 34 + + 86
----
-2260

query I rowsort
SELECT + CASE WHEN 30 IS NOT NULL THEN NULL WHEN NOT 85 NOT BETWEEN - 66 + 74 AND + - 5 THEN 69 - - 50 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 60 * + + 65 * 65
----
253500

query I rowsort
SELECT + 72 * - + 30
----
-2160

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1799
SELECT DISTINCT + CASE CAST( COUNT( * ) AS DECIMAL ) WHEN + 71 + + 41 * + 50 + + 26 - + 72 + - NULLIF ( 83, 51 ) / 60 + + 76 THEN + - COUNT( * ) + 1 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT + CASE CAST ( COUNT ( * ) AS REAL ) WHEN + 71 + + 41 * + 50 + + 26 - + 72 + - NULLIF ( 83, 51 ) / 60 + + 76 THEN + - COUNT ( * ) + 1 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ALL 11 * + COUNT( * ) - ( - - 46 ) - - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL 11 * + COUNT ( * ) - ( - - 46 ) - - COUNT ( * )
----
-34

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

skipif mysql # not compatible
query I rowsort label-1801
SELECT MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 76 * - 29 AS col0
----
2204

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT + 88 * + 42 * - 83 * COALESCE ( COUNT( * ), - - 11, 63 ) AS col2
----
-306768

skipif mysql # not compatible
query I rowsort label-1803
SELECT + 88 * + 42 * - 83 * COALESCE ( COUNT ( * ), - - 11, 63 ) AS col2
----
-306768

onlyif mysql # aggregate syntax: 
query II rowsort label-1804
SELECT COUNT( * ), 43 + - + MAX( ALL + 21 ) - + 92 * COALESCE ( - 82, 37, 47 ) AS col1
----
1
7566

skipif mysql # not compatible
query II rowsort label-1804
SELECT COUNT ( * ), 43 + - + MAX ( ALL + 21 ) - + 92 * COALESCE ( - 82, 37, 47 ) AS col1
----
1
7566

onlyif mysql # DIV for integer division: 
query I rowsort label-1805
SELECT ALL 0 DIV + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL 0 / + 99 AS col0
----
0

query I rowsort
SELECT + 6 - + 44 AS col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1807
SELECT SUM( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + 82 - 7 col2
----
75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT ALL 46 DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL 46 / + 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT DISTINCT SUM( 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT SUM ( 83 ) AS col1
----
83

query I rowsort
SELECT ALL + 95 * 10
----
950

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

query I rowsort
SELECT DISTINCT 99 * - - 2 AS col0
----
198

query I rowsort
SELECT - 10 * - 81 AS col1
----
810

query I rowsort
SELECT + 22 + + 55
----
77

query II rowsort
SELECT - 28 - - + 0 * - 80 AS col2, + 29 AS col1
----
-28
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT ALL COALESCE ( + 63, + 44 * 33 + + + 27 * + 90 + COUNT( * ) )
----
63

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL COALESCE ( + 63, + 44 * 33 + + + 27 * + 90 + COUNT ( * ) )
----
63

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

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

query I rowsort
SELECT + + 60 + - - 61 AS col0
----
121

query I rowsort
SELECT - + 54 - + - 69 col1
----
15

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1823
SELECT - - 85 + + COUNT( * ) * - 6 + - 1 * 16 * - 83 * - COUNT( * ) - + SUM( DISTINCT + 44 ) + - + 86 + - - 83 * 56 * + ( - 43 ) + 95 * + COALESCE ( 51, + 23 + - COUNT( * ) - + CASE 61 WHEN 77 + + MAX( + ( + 12 ) ) + - + 49 THEN - 60 END DIV 26 * 43 ) AS col0
----
-196398

skipif mysql # not compatible
query I rowsort label-1823
SELECT - - 85 + + COUNT ( * ) * - 6 + - 1 * 16 * - 83 * - COUNT ( * ) - + SUM ( DISTINCT + 44 ) + - + 86 + - - 83 * 56 * + ( - 43 ) + 95 * + COALESCE ( 51, + 23 + - COUNT ( * ) - + CASE 61 WHEN 77 + + MAX ( + ( + 12 ) ) + - + 49 THEN - 60 END / 26 * 43 ) AS col0
----
-196398

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT + COALESCE ( - 56, + 62, - COUNT( * ) + + 68 ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-1824
SELECT + COALESCE ( - 56, + 62, - COUNT ( * ) + + 68 ) col2
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-1825
SELECT ALL - COUNT( * ) AS col1, 56 * 94 - + - 66 AS col1
----
-1
5330

skipif mysql # not compatible
query II rowsort label-1825
SELECT ALL - COUNT ( * ) AS col1, 56 * 94 - + - 66 AS col1
----
-1
5330

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1827
SELECT 98 + - + 59 * - + 93 AS col0, + CAST( NULL AS SIGNED ) col0
----
5585
NULL

skipif mysql # not compatible
query II rowsort label-1827
SELECT 98 + - + 59 * - + 93 AS col0, + CAST ( NULL AS INTEGER ) col0
----
5585
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1828
SELECT DISTINCT + 71 + + ( + 64 ) AS col1, - 13 * + COUNT( * ) * + + 94 * + 25 AS col2
----
135
-30550

skipif mysql # not compatible
query II rowsort label-1828
SELECT DISTINCT + 71 + + ( + 64 ) AS col1, - 13 * + COUNT ( * ) * + + 94 * + 25 AS col2
----
135
-30550

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

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

query I rowsort
SELECT ( 33 ) * - 15 + - - 13
----
-482

query I rowsort
SELECT ALL - 38 + - + 42 AS col1
----
-80

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1833
SELECT + ( - - COUNT( * ) ) DIV 15 + - 35 col0
----
-35

skipif mysql # not compatible
query I rowsort label-1833
SELECT + ( - - COUNT ( * ) ) / 15 + - 35 col0
----
-35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT + COALESCE ( + - COUNT( * ), SUM( DISTINCT - - 52 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1835
SELECT + COALESCE ( + - COUNT ( * ), SUM ( DISTINCT - - 52 ) ) AS col0
----
-1

query I rowsort
SELECT + 45 * + + 87 * - 40 AS col2
----
-156600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1837
SELECT 78 DIV + + NULLIF ( + 38, - 71 * 66 * + + 2 + + + 75 * 46 DIV + 68 ) + + COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1837
SELECT 78 / + + NULLIF ( + 38, - 71 * 66 * + + 2 + + + 75 * 46 / + 68 ) + + COUNT ( * ) AS col2
----
3

query II rowsort
SELECT - 59, 32 AS col2
----
-59
32

query I rowsort
SELECT + - 46 col2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1840
SELECT CAST( NULL AS SIGNED ), 44 + + + 65 AS col2
----
NULL
109

skipif mysql # not compatible
query II rowsort label-1840
SELECT CAST ( NULL AS INTEGER ), 44 + + + 65 AS col2
----
NULL
109

query I rowsort
SELECT DISTINCT - 28 * + 35 AS col0
----
-980

query I rowsort
SELECT ALL - - ( 85 )
----
85

query I rowsort
SELECT - 46 * + 19 + - - 92
----
-782

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT DISTINCT 1 DIV - 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT 1 / - 30 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1845
SELECT DISTINCT ( ( + ( COALESCE ( + 12, + 89 ) ) ) ) - + 99 AS col1, COUNT( * )
----
-87
1

skipif mysql # not compatible
query II rowsort label-1845
SELECT DISTINCT ( ( + ( COALESCE ( + 12, + 89 ) ) ) ) - + 99 AS col1, COUNT ( * )
----
-87
1

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

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

query I rowsort
SELECT ( - ( - CASE - 24 WHEN + 64 THEN NULL ELSE 62 END ) ) * - 29 * 58 / AVG ( DISTINCT CASE 55 WHEN + 95 THEN 73 ELSE NULL END ) + 3 * - 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT 24 + - - 28 + - + 91 * 96 * SUM( 33 ) + - 15
----
-288251

skipif mysql # not compatible
query I rowsort label-1848
SELECT 24 + - - 28 + - + 91 * 96 * SUM ( 33 ) + - 15
----
-288251

query I rowsort
SELECT DISTINCT 5 * 17 * + 34 AS col1
----
2890

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

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

query I rowsort
SELECT DISTINCT 58 * - - 88
----
5104

query I rowsort
SELECT 33 * - 98 * + 35 AS col2
----
-113190

query I rowsort
SELECT 69 + + 28
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1854
SELECT ALL CAST( 91 AS SIGNED ) + + 64 + + - 79 + + NULLIF ( + - COUNT( * ), - 33 )
----
75

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL CAST ( 91 AS INTEGER ) + + 64 + + - 79 + + NULLIF ( + - COUNT ( * ), - 33 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT - MAX( + - 39 ) + 57
----
96

skipif mysql # not compatible
query I rowsort label-1855
SELECT - MAX ( + - 39 ) + 57
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT DISTINCT + 75 + - 8 - COUNT( * ) + - COUNT( * ) * 61 * - 48
----
2994

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT + 75 + - 8 - COUNT ( * ) + - COUNT ( * ) * 61 * - 48
----
2994

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT ALL - 42 + + MIN( ALL + - 4 ) + COALESCE ( + 75, - 34 * + 84 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL - 42 + + MIN ( ALL + - 4 ) + COALESCE ( + 75, - 34 * + 84 ) AS col2
----
29

query I rowsort
SELECT ALL + - 7 + + - 15
----
-22

query I rowsort
SELECT ALL 41 * + 84 * + 44 * - 4
----
-606144

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT 92 - - CASE 25 WHEN 17 THEN + COUNT( * ) WHEN - 43 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1861
SELECT 92 - - CASE 25 WHEN 17 THEN + COUNT ( * ) WHEN - 43 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1862
SELECT ALL - CASE + 24 WHEN - ( 90 ) THEN - SUM( ALL + 75 ) * 52 * + 25 - - COUNT( * ) / + + MAX( ALL 64 ) WHEN - 33 THEN NULL END AS col2, + 92 col2
----
NULL
92

skipif mysql # not compatible
query II rowsort label-1862
SELECT ALL - CASE + 24 WHEN - ( 90 ) THEN - SUM ( ALL + 75 ) * 52 * + 25 - - COUNT ( * ) / + + MAX ( ALL 64 ) WHEN - 33 THEN NULL END AS col2, + 92 col2
----
NULL
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT DISTINCT - - MAX( - 95 ) + 7 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT - - MAX ( - 95 ) + 7 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-1864
SELECT - 98 * - COUNT( * ) + + 93 * 9 AS col0, + 23 + - 16 + COUNT( * ) AS col2
----
935
8

skipif mysql # not compatible
query II rowsort label-1864
SELECT - 98 * - COUNT ( * ) + + 93 * 9 AS col0, + 23 + - 16 + COUNT ( * ) AS col2
----
935
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT - 12 * + MIN( 19 ) AS col1
----
-228

skipif mysql # not compatible
query I rowsort label-1865
SELECT - 12 * + MIN ( 19 ) AS col1
----
-228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1866
SELECT ALL - + 27 - + NULLIF ( + ( + - 12 ), + 86 * 82 / + 6 + - + 71 + ( - + CAST( NULL AS SIGNED ) ) ) * + - 30 AS col1
----
-387

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL - + 27 - + NULLIF ( + ( + - 12 ), + 86 * 82 / + 6 + - + 71 + ( - + CAST ( NULL AS INTEGER ) ) ) * + - 30 AS col1
----
-387

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

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

query I rowsort
SELECT DISTINCT - 44 * - ( 22 ) AS col1
----
968

query I rowsort
SELECT 99 * + 84
----
8316

onlyif mysql # aggregate syntax: 
query II rowsort label-1870
SELECT + 93, 22 / + - 78 * + + CASE + - 45 WHEN + 29 THEN - - 4 WHEN - COUNT( 78 ) THEN NULL ELSE NULL END + + 11 * + 81 * - - COUNT( * ) col2
----
93
NULL

skipif mysql # not compatible
query II rowsort label-1870
SELECT + 93, 22 / + - 78 * + + CASE + - 45 WHEN + 29 THEN - - 4 WHEN - COUNT ( 78 ) THEN NULL ELSE NULL END + + 11 * + 81 * - - COUNT ( * ) col2
----
93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT SUM( ALL + 23 ) * - - 32 * COUNT( ALL + 52 ) * COUNT( * )
----
736

skipif mysql # not compatible
query I rowsort label-1871
SELECT SUM ( ALL + 23 ) * - - 32 * COUNT ( ALL + 52 ) * COUNT ( * )
----
736

onlyif mysql # aggregate syntax: 
query II rowsort label-1872
SELECT ALL - 18, COUNT( + + 27 ) * + COUNT( * ) * COUNT( 19 ) + - 32 + + 87 AS col0
----
-18
56

skipif mysql # not compatible
query II rowsort label-1872
SELECT ALL - 18, COUNT ( + + 27 ) * + COUNT ( * ) * COUNT ( 19 ) + - 32 + + 87 AS col0
----
-18
56

query I rowsort
SELECT 53 * 98 AS col1
----
5194

query I rowsort
SELECT ALL - 95 + 60 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-1875
SELECT 61 col2, MIN( 3 ) * 26 AS col1
----
61
78

skipif mysql # not compatible
query II rowsort label-1875
SELECT 61 col2, MIN ( 3 ) * 26 AS col1
----
61
78

onlyif mysql # DIV for integer division: 
query I rowsort label-1876
SELECT 33 DIV + COALESCE ( + - 68, - 89 DIV + NULLIF ( 13, NULLIF ( 53, - 98 ) * + 2 ) + - 17, 57 )
----
0

skipif mysql # not compatible
query I rowsort label-1876
SELECT 33 / + COALESCE ( + - 68, - 89 / + NULLIF ( 13, NULLIF ( 53, - 98 ) * + 2 ) + - 17, 57 )
----
0

query I rowsort
SELECT ALL 10 + - 15
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT 43 * - - ( - NULLIF ( - 14, 34 * CAST( NULL AS SIGNED ) ) ) * + 5 * - 53 AS col2
----
-159530

skipif mysql # not compatible
query I rowsort label-1878
SELECT 43 * - - ( - NULLIF ( - 14, 34 * CAST ( NULL AS INTEGER ) ) ) * + 5 * - 53 AS col2
----
-159530

query I rowsort
SELECT 78 * + 26
----
2028

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT DISTINCT 4 * + ( - COALESCE ( + 11, + MAX( + 36 ), - + 1 * + 81 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT 4 * + ( - COALESCE ( + 11, + MAX ( + 36 ), - + 1 * + 81 ) )
----
-44

query II rowsort
SELECT ALL - 78 AS col0, 66 * - + ( 78 ) * 15
----
-78
-77220

query I rowsort
SELECT ALL + 82 + 11 AS col0
----
93

query I rowsort
SELECT + + 77 + 99 * 20
----
2057

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT ALL 86 + COUNT( * ) * + 14 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL 86 + COUNT ( * ) * + 14 AS col2
----
100

query I rowsort
SELECT - + ( + COALESCE ( - - 77, 80 ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT ALL 30 * 18 * - NULLIF ( - - 57, - MIN( + ( 17 ) ) ) AS col0
----
-30780

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL 30 * 18 * - NULLIF ( - - 57, - MIN ( + ( 17 ) ) ) AS col0
----
-30780

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT + 69 - + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-1887
SELECT + 69 - + COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT + 83 - + - COALESCE ( - COUNT( * ), - 54 * 34 * COUNT( * ) - + 48 - + 86 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-1888
SELECT + 83 - + - COALESCE ( - COUNT ( * ), - 54 * 34 * COUNT ( * ) - + 48 - + 86 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT + COALESCE ( - + COUNT( * ), + 90 ) + + 16 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1889
SELECT + COALESCE ( - + COUNT ( * ), + 90 ) + + 16 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT + - SUM( DISTINCT 5 ) * - 8 + 98 * + 97 + + 15
----
9561

skipif mysql # not compatible
query I rowsort label-1890
SELECT + - SUM ( DISTINCT 5 ) * - 8 + 98 * + 97 + + 15
----
9561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1891
SELECT DISTINCT - COALESCE ( 42, - COALESCE ( - 55, + MIN( DISTINCT 4 ) - + 40, - + 7 ) + + 0 ) DIV - 53 - + 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT - COALESCE ( 42, - COALESCE ( - 55, + MIN ( DISTINCT 4 ) - + 40, - + 7 ) + + 0 ) / - 53 - + 18 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT DISTINCT COUNT( * ) - - 92 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT COUNT ( * ) - - 92 AS col2
----
93

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1894
SELECT ALL - COUNT( * ) * + 89 * + + 1 col0, - 27 DIV 17 - - ( + 42 )
----
-89
41

skipif mysql # not compatible
query II rowsort label-1894
SELECT ALL - COUNT ( * ) * + 89 * + + 1 col0, - 27 / 17 - - ( + 42 )
----
-89
41

query I rowsort
SELECT - 16 * - 49 * 93 + + - 45 AS col0
----
72867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1896
SELECT ALL - 31 * + CASE + 22 WHEN 59 THEN - 30 ELSE - + 47 + + 95 * + CAST( + + 89 AS SIGNED ) END + + + 28 - - 66
----
-260554

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL - 31 * + CASE + 22 WHEN 59 THEN - 30 ELSE - + 47 + + 95 * + CAST ( + + 89 AS INTEGER ) END + + + 28 - - 66
----
-260554

onlyif mysql # DIV for integer division: 
query I rowsort label-1897
SELECT ALL - 45 * 44 DIV + 66 + + 24 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL - 45 * 44 / + 66 + + 24 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT DISTINCT + MAX( DISTINCT 20 ) col0
----
20

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT + MAX ( DISTINCT 20 ) col0
----
20

query I rowsort
SELECT ALL 83 * - 50 * + 91
----
-377650

query I rowsort
SELECT + 89 * + - 2 AS col1
----
-178

query II rowsort
SELECT ALL + ( - 94 ), + 10 AS col1
----
-94
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1902
SELECT DISTINCT + COUNT( ALL 39 ), - 58 AS col2
----
1
-58

skipif mysql # not compatible
query II rowsort label-1902
SELECT DISTINCT + COUNT ( ALL 39 ), - 58 AS col2
----
1
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT ALL COUNT( * ) * + + 8 * - 53 AS col2
----
-424

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL COUNT ( * ) * + + 8 * - 53 AS col2
----
-424

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

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

query II rowsort
SELECT ALL + 73, ( + 91 ) AS col2
----
73
91

query I rowsort
SELECT ALL + 36 * 49
----
1764

onlyif mysql # aggregate syntax: 
query II rowsort label-1907
SELECT COALESCE ( - 79, + - 28 + - 34 ), COUNT( * ) AS col1
----
-79
1

skipif mysql # not compatible
query II rowsort label-1907
SELECT COALESCE ( - 79, + - 28 + - 34 ), COUNT ( * ) AS col1
----
-79
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1908
SELECT ALL - 74 * + - SUM( - 54 ) * - ( 90 ) / - COALESCE ( ( 10 ), - 54 ) + - + 49 * + 50 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL - 74 * + - SUM ( - 54 ) * - ( 90 ) / - COALESCE ( ( 10 ), - 54 ) + - + 49 * + 50 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT - 42 * - + ( + + 4 ) + + - 23 * - + COALESCE ( SUM( 27 ), NULLIF ( + 84, + - 59 ), + 75 )
----
789

skipif mysql # not compatible
query I rowsort label-1909
SELECT - 42 * - + ( + + 4 ) + + - 23 * - + COALESCE ( SUM ( 27 ), NULLIF ( + 84, + - 59 ), + 75 )
----
789

onlyif mysql # aggregate syntax: 
query II rowsort label-1910
SELECT 27 * - - 17 + - MAX( - 10 ), 46 * + + 54 AS col2
----
469
2484

skipif mysql # not compatible
query II rowsort label-1910
SELECT 27 * - - 17 + - MAX ( - 10 ), 46 * + + 54 AS col2
----
469
2484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1911
SELECT + 23 AS col1, 52 * + - CASE 99 WHEN + CASE - - ( - 87 ) WHEN - 13 - 26 THEN - COUNT( * ) END DIV + CAST( NULL AS SIGNED ) - 92 + - COUNT( * ) THEN + 8 + 41 + + NULLIF ( COUNT( * ), COALESCE ( + 6, + 3 * + + CASE 76 WHEN + + 18 THEN + CAST( NULL AS SIGNED ) ELSE NULL END + - - ( + 81 ) * 72, + 96 + 88 ) ) + 34 * + 26 DIV + COUNT( * ) WHEN + ( COUNT( * ) ) THEN NULL ELSE 75 END
----
23
-3900

skipif mysql # not compatible
query II rowsort label-1911
SELECT + 23 AS col1, 52 * + - CASE 99 WHEN + CASE - - ( - 87 ) WHEN - 13 - 26 THEN - COUNT ( * ) END / + CAST ( NULL AS INTEGER ) - 92 + - COUNT ( * ) THEN + 8 + 41 + + NULLIF ( COUNT ( * ), COALESCE ( + 6, + 3 * + + CASE 76 WHEN + + 18 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END + - - ( + 81 ) * 72, + 96 + 88 ) ) + 34 * + 26 / + COUNT ( * ) WHEN + ( COUNT ( * ) ) THEN NULL ELSE 75 END
----
23
-3900

query I rowsort
SELECT - 69 + - 23
----
-92

query I rowsort
SELECT ALL + 81 * 24 + - 78 * - - 54
----
-2268

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

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

query II rowsort
SELECT + - 28 * 26 * 99 + + 61 AS col0, 51 * 14
----
-72011
714

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

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

query I rowsort
SELECT ALL - - 36 + - 21 AS col1
----
15

query I rowsort
SELECT - NULLIF ( - + 80, - 47 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1919
SELECT + 21, CAST( COUNT( * ) AS SIGNED ) DIV 37 AS col0
----
21
0

skipif mysql # not compatible
query II rowsort label-1919
SELECT + 21, CAST ( COUNT ( * ) AS INTEGER ) / 37 AS col0
----
21
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1920
SELECT + + COUNT( * ) + + - 64 - + - 69 + + 48 - - - 24 * 1 AS col1, 46 AS col0, - 14 DIV + 20 + + ( + 62 ) AS col2
----
30
46
62

skipif mysql # not compatible
query III rowsort label-1920
SELECT + + COUNT ( * ) + + - 64 - + - 69 + + 48 - - - 24 * 1 AS col1, 46 AS col0, - 14 / + 20 + + ( + 62 ) AS col2
----
30
46
62

query II rowsort
SELECT - + 88 col0, + 83 col2
----
-88
83

query I rowsort
SELECT + - 65 + 11 + 5
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-1923
SELECT ALL - 60 - + + 19 AS col2, COUNT( * )
----
-79
1

skipif mysql # not compatible
query II rowsort label-1923
SELECT ALL - 60 - + + 19 AS col2, COUNT ( * )
----
-79
1

query II rowsort
SELECT DISTINCT + 39 AS col2, + 27
----
39
27

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

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

query II rowsort
SELECT DISTINCT + 77 * 54, + 42 AS col0
----
4158
42

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

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

query I rowsort
SELECT ALL + 49 * - + 20
----
-980

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT - 14 - - + 93 * - COUNT( * ) AS col0
----
-107

skipif mysql # not compatible
query I rowsort label-1930
SELECT - 14 - - + 93 * - COUNT ( * ) AS col0
----
-107

query II rowsort
SELECT + 89 * + 78 AS col2, 59 AS col0
----
6942
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT + COUNT( + 46 ) * + - NULLIF ( - - 71, 60 ) + + + 54 * + ( + - 9 )
----
-557

skipif mysql # not compatible
query I rowsort label-1932
SELECT + COUNT ( + 46 ) * + - NULLIF ( - - 71, 60 ) + + + 54 * + ( + - 9 )
----
-557

onlyif mysql # DIV for integer division: 
query I rowsort label-1933
SELECT + 23 DIV + + 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1933
SELECT + 23 / + + 84 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT - COUNT( * ) * - 18 + 99 col1
----
117

skipif mysql # not compatible
query I rowsort label-1934
SELECT - COUNT ( * ) * - 18 + 99 col1
----
117

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

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

query I rowsort
SELECT + 99 * + COALESCE ( - - 95, + - 93 ) col0
----
9405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1937
SELECT - COUNT( * ) + 6 + + - 1 / - 44 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1937
SELECT - COUNT ( * ) + 6 + + - 1 / - 44 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT COALESCE ( - 76, ( + CASE + 97 WHEN + + NULLIF ( 9, - COALESCE ( - 34, COALESCE ( - 10, - - 31, COUNT( * ) ) ) * 23 - + - 52 ) THEN NULL WHEN 6 THEN + 34 * - 4 + 34 + - 91 WHEN SUM( DISTINCT 32 ) THEN COUNT( * ) END ) * - - 55 + 40 ) * + 10 - + 71 + - COUNT( * ) - + + 60
----
-892

skipif mysql # not compatible
query I rowsort label-1938
SELECT COALESCE ( - 76, ( + CASE + 97 WHEN + + NULLIF ( 9, - COALESCE ( - 34, COALESCE ( - 10, - - 31, COUNT ( * ) ) ) * 23 - + - 52 ) THEN NULL WHEN 6 THEN + 34 * - 4 + 34 + - 91 WHEN SUM ( DISTINCT 32 ) THEN COUNT ( * ) END ) * - - 55 + 40 ) * + 10 - + 71 + - COUNT ( * ) - + + 60
----
-892

query I rowsort
SELECT DISTINCT 29 * - 71
----
-2059

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1940
SELECT ( + 71 ) * - - CAST( NULL AS SIGNED ) * + - 88 / + + 63 * - 46 * + - 44 * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1940
SELECT ( + 71 ) * - - CAST ( NULL AS INTEGER ) * + - 88 / + + 63 * - 46 * + - 44 * 32
----
NULL

query I rowsort
SELECT DISTINCT ( - - 26 ) + - 71 * + 94
----
-6648

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT ALL - NULLIF ( - CASE ( 44 ) WHEN + - ( + COUNT( * ) ) + 58 THEN + 69 END, 7 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL - NULLIF ( - CASE ( 44 ) WHEN + - ( + COUNT ( * ) ) + 58 THEN + 69 END, 7 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 90 - + 62 AS col2
----
28

query I rowsort
SELECT ( 2 ) + - 39 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT DISTINCT COALESCE ( ( + COUNT( * ) ), + 61 * 91 + + 88 + 69 * + 23 )
----
1

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT COALESCE ( ( + COUNT ( * ) ), + 61 * 91 + + 88 + 69 * + 23 )
----
1

query I rowsort
SELECT + 82 + + 84
----
166

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT NULLIF ( + 78, COUNT( * ) * - + 37 ) * - 65 * - 8
----
40560

skipif mysql # not compatible
query I rowsort label-1950
SELECT NULLIF ( + 78, COUNT ( * ) * - + 37 ) * - 65 * - 8
----
40560

query I rowsort
SELECT 67 - 94 AS col0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-1952
SELECT ALL - - 4 - + 57 DIV 56
----
3

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL - - 4 - + 57 / 56
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1953
SELECT DISTINCT - COUNT( * ) * - 22 * + ( + 84 ) + - CAST( 35 AS SIGNED ) AS col1
----
1813

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT - COUNT ( * ) * - 22 * + ( + 84 ) + - CAST ( 35 AS INTEGER ) AS col1
----
1813

query II rowsort
SELECT DISTINCT - ( + 42 ), 57 col2
----
-42
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1955
SELECT + 54 DIV - - 92 + - + 19 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-1955
SELECT + 54 / - - 92 + - + 19 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT COALESCE ( - 21, NULLIF ( + + MAX( ALL + 11 ), - 9 ) ) - + ( - COUNT( DISTINCT - 7 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-1956
SELECT COALESCE ( - 21, NULLIF ( + + MAX ( ALL + 11 ), - 9 ) ) - + ( - COUNT ( DISTINCT - 7 ) )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-1957
SELECT 38 + - COUNT( * ), 37
----
37
37

skipif mysql # not compatible
query II rowsort label-1957
SELECT 38 + - COUNT ( * ), 37
----
37
37

query I rowsort
SELECT + 81 - + + ( + 79 ) col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1959
SELECT - 20 DIV + 15
----
-1

skipif mysql # not compatible
query I rowsort label-1959
SELECT - 20 / + 15
----
-1

query I rowsort
SELECT - 90 / CASE + 34 WHEN 57 THEN - + 83 + + 90 * + + 21 END
----
NULL

query I rowsort
SELECT DISTINCT - + ( - 58 ) + 7 AS col0
----
65

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

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

query I rowsort
SELECT DISTINCT + 81 + - 27 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT DISTINCT - COALESCE ( - + 59, - COUNT( * ) ) + 66 + + 81 * + - 78 AS col1
----
-6193

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT - COALESCE ( - + 59, - COUNT ( * ) ) + 66 + + 81 * + - 78 AS col1
----
-6193

query I rowsort
SELECT ALL 30 * - 2 AS col2
----
-60

query I rowsort
SELECT DISTINCT 89 + + 66 AS col0
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-1967
SELECT NULLIF ( COUNT( * ), + + 22 ) * - + COUNT( * ) + 85 + - 63 + - ( - + 21 ) AS col1, NULLIF ( - 55, - ( COUNT( * ) ) ) AS col0
----
42
-55

skipif mysql # not compatible
query II rowsort label-1967
SELECT NULLIF ( COUNT ( * ), + + 22 ) * - + COUNT ( * ) + 85 + - 63 + - ( - + 21 ) AS col1, NULLIF ( - 55, - ( COUNT ( * ) ) ) AS col0
----
42
-55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1968
SELECT 63 DIV + 75 + CAST( - + COALESCE ( 97, - CAST( NULL AS SIGNED ) * - 8, - 30 * - - 72 + + - 63 * 96 * + - 97 DIV - 80, + + 58 ) AS SIGNED ) + + 58 + 82 + + 82 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-1968
SELECT 63 / + 75 + CAST ( - + COALESCE ( 97, - CAST ( NULL AS INTEGER ) * - 8, - 30 * - - 72 + + - 63 * 96 * + - 97 / - 80, + + 58 ) AS INTEGER ) + + 58 + 82 + + 82 AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT COUNT( * ) * - NULLIF ( - 86, + + 39 )
----
86

skipif mysql # not compatible
query I rowsort label-1969
SELECT COUNT ( * ) * - NULLIF ( - 86, + + 39 )
----
86

query II rowsort
SELECT ALL - 98 AS col1, 0
----
-98
0

query I rowsort
SELECT 34 + 12 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT SUM( - + ( + - 8 ) ) + - 55 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-1972
SELECT SUM ( - + ( + - 8 ) ) + - 55 AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1973
SELECT ALL 88 + - CAST( + 92 AS SIGNED ) + + 82
----
78

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL 88 + - CAST ( + 92 AS INTEGER ) + + 82
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT MIN( ALL 19 ) * - 80 * 11 + - + NULLIF ( 26, - + 44 ) AS col2
----
-16746

skipif mysql # not compatible
query I rowsort label-1974
SELECT MIN ( ALL 19 ) * - 80 * 11 + - + NULLIF ( 26, - + 44 ) AS col2
----
-16746

onlyif mysql # DIV for integer division: 
query I rowsort label-1975
SELECT DISTINCT 81 DIV + 57 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT 81 / + 57 AS col0
----
1

query I rowsort
SELECT ALL 52 - + ( - + 58 ) * 84 col1
----
4924

onlyif mysql # aggregate syntax: 
query II rowsort label-1977
SELECT ALL 16 * + + CASE + - 45 WHEN + COUNT( * ) THEN NULL WHEN + - 81 THEN - + COUNT( * ) END, 15 - - 90 AS col0
----
NULL
105

skipif mysql # not compatible
query II rowsort label-1977
SELECT ALL 16 * + + CASE + - 45 WHEN + COUNT ( * ) THEN NULL WHEN + - 81 THEN - + COUNT ( * ) END, 15 - - 90 AS col0
----
NULL
105

query I rowsort
SELECT 78 + + 91
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1979
SELECT ALL 28 DIV + 34 * + MAX( - 46 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL 28 / + 34 * + MAX ( - 46 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT DISTINCT 45 * - 36 * + COUNT( * )
----
-1620

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT 45 * - 36 * + COUNT ( * )
----
-1620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1981
SELECT + + 91 * + COUNT( * ) / 8 + 14 / 12 + + - 10 + - CAST( NULL AS SIGNED ) * - COUNT( * ) - + 27 / 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT + + 91 * + COUNT ( * ) / 8 + 14 / 12 + + - 10 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - + 27 / 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1982
SELECT - 22 + 15 + - 95 * + 22 DIV - COUNT( * ) AS col0
----
2083

skipif mysql # not compatible
query I rowsort label-1982
SELECT - 22 + 15 + - 95 * + 22 / - COUNT ( * ) AS col0
----
2083

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1984
SELECT ALL + ( - 95 ) * - - 83 * + 88 + + 64 DIV - 58 AS col1, - 4 + - 59 - + 38 + + + MIN( DISTINCT 97 ) * - 77
----
-693881
-7570

skipif mysql # not compatible
query II rowsort label-1984
SELECT ALL + ( - 95 ) * - - 83 * + 88 + + 64 / - 58 AS col1, - 4 + - 59 - + 38 + + + MIN ( DISTINCT 97 ) * - 77
----
-693881
-7570

query I rowsort
SELECT 12 * - - 20 + + + 37 AS col1
----
277

query II rowsort
SELECT 23 * - 30 + + 11, - 14 * + 66 AS col1
----
-679
-924

query II rowsort
SELECT + 56 AS col2, - 51
----
56
-51

query I rowsort
SELECT 2 + - - 87
----
89

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

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

query I rowsort
SELECT DISTINCT - 32 * - - ( 11 )
----
-352

query I rowsort
SELECT 35 + + - 40
----
-5

query I rowsort
SELECT DISTINCT - NULLIF ( 71, + 51 + + 80 + + - 97 )
----
-71

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

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

query I rowsort
SELECT ( ( - + 53 ) ) * + 84
----
-4452

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1996
SELECT ALL 21 DIV - 28 + - - 82 * - + 41 AS col0
----
-3362

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL 21 / - 28 + - - 82 * - + 41 AS col0
----
-3362

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT ALL - CASE - 68 WHEN + 0 + - + ( COUNT( 86 ) ) + 57 * + 14 * - - 41 * + 55 THEN NULL WHEN - 93 THEN NULL WHEN - 83 * - 72 THEN + 62 / - + SUM( DISTINCT + 85 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL - CASE - 68 WHEN + 0 + - + ( COUNT ( 86 ) ) + 57 * + 14 * - - 41 * + 55 THEN NULL WHEN - 93 THEN NULL WHEN - 83 * - 72 THEN + 62 / - + SUM ( DISTINCT + 85 ) ELSE NULL END
----
NULL

query I rowsort
SELECT 51 + + + 26
----
77

query I rowsort
SELECT 53 * 80 AS col0
----
4240

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

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

query I rowsort
SELECT ALL - 67 + + ( - + ( 14 ) ) AS col0
----
-81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2003
SELECT ALL COUNT( - 33 ) + - COUNT( * ) AS col0, CAST( SUM( - 88 ) AS SIGNED ) + + - 33
----
0
-121

skipif mysql # not compatible
query II rowsort label-2003
SELECT ALL COUNT ( - 33 ) + - COUNT ( * ) AS col0, CAST ( SUM ( - 88 ) AS INTEGER ) + + - 33
----
0
-121

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

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

query I rowsort
SELECT ALL - 40 + - 11 * - - 91
----
-1041

query I rowsort
SELECT DISTINCT - 94 + + 85 + - 0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2007
SELECT CAST( NULL AS SIGNED ) - + COALESCE ( 14, - 38, - COUNT( * ) * - - 46 * + - 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2007
SELECT CAST ( NULL AS INTEGER ) - + COALESCE ( 14, - 38, - COUNT ( * ) * - - 46 * + - 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2008
SELECT ALL COUNT( 36 ), 67 col2
----
1
67

skipif mysql # not compatible
query II rowsort label-2008
SELECT ALL COUNT ( 36 ), 67 col2
----
1
67

query I rowsort
SELECT 27 - - + 47 * + + 14 - - 54 + - + 14 * + - 77
----
1817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2010
SELECT - CAST( - - MIN( DISTINCT + 14 ) AS SIGNED ) * 40, + 34 AS col0
----
-560
34

skipif mysql # not compatible
query II rowsort label-2010
SELECT - CAST ( - - MIN ( DISTINCT + 14 ) AS INTEGER ) * 40, + 34 AS col0
----
-560
34

query II rowsort
SELECT ( - - 74 ) * 65 + 71 col2, + ( + - 79 ) * - - 52 + 97 * + 51 col1
----
4881
839

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT ALL COUNT( * ) * - 30 - + - ( - 8 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL COUNT ( * ) * - 30 - + - ( - 8 ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT ALL + MIN( COALESCE ( - ( - 92 ), + 45, - 8 ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL + MIN ( COALESCE ( - ( - 92 ), + 45, - 8 ) ) AS col1
----
92

query I rowsort
SELECT 77 * 2 - - + 43 AS col0
----
197

query I rowsort
SELECT ALL 40 * - 37 AS col1
----
-1480

onlyif mysql # aggregate syntax: 
query II rowsort label-2016
SELECT ALL - 14 * + - 88, COALESCE ( - 30, + + 20 ) + COUNT( * ) * - - 82 * - + 11 * 35 col1
----
1232
-31600

skipif mysql # not compatible
query II rowsort label-2016
SELECT ALL - 14 * + - 88, COALESCE ( - 30, + + 20 ) + COUNT ( * ) * - - 82 * - + 11 * 35 col1
----
1232
-31600

query I rowsort
SELECT + 99 * + 89 * + ( - 56 ) AS col0
----
-493416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2018
SELECT NULLIF ( - 44, + CASE + - 50 WHEN - + 7 * + 46 / 79 + 65 / - 81 + CASE - 40 WHEN + 30 - - - 76 THEN - COUNT( * ) * - 78 ELSE NULL END + 97 THEN 51 WHEN COUNT( * ) + + + 80 / 13 * + 39 / + 62 * + CAST( + 83 AS SIGNED ) THEN - ( + AVG ( ALL 3 ) ) WHEN - 14 + ( - - 55 ) THEN CASE + + ( - 8 ) WHEN - CASE CAST( + 69 AS SIGNED ) WHEN SUM( 33 ) THEN - 58 * 70 + - 7 WHEN 30 * + ( COUNT( * ) ) + + 87 * + 48 THEN NULL ELSE + 54 + - 23 END * COUNT( * ) THEN + 95 WHEN + 78 * 41 + + COUNT( * ) THEN 74 - 58 WHEN - MAX( ALL ( CAST( 11 AS SIGNED ) ) ) THEN NULL ELSE NULL END ELSE NULL END * - 42 )
----
-44

skipif mysql # not compatible
query I rowsort label-2018
SELECT NULLIF ( - 44, + CASE + - 50 WHEN - + 7 * + 46 / 79 + 65 / - 81 + CASE - 40 WHEN + 30 - - - 76 THEN - COUNT ( * ) * - 78 ELSE NULL END + 97 THEN 51 WHEN COUNT ( * ) + + + 80 / 13 * + 39 / + 62 * + CAST ( + 83 AS INTEGER ) THEN - ( + AVG ( ALL 3 ) ) WHEN - 14 + ( - - 55 ) THEN CASE + + ( - 8 ) WHEN - CASE CAST ( + 69 AS INTEGER ) WHEN SUM ( 33 ) THEN - 58 * 70 + - 7 WHEN 30 * + ( COUNT ( * ) ) + + 87 * + 48 THEN NULL ELSE + 54 + - 23 END * COUNT ( * ) THEN + 95 WHEN + 78 * 41 + + COUNT ( * ) THEN 74 - 58 WHEN - MAX ( ALL ( CAST ( 11 AS INTEGER ) ) ) THEN NULL ELSE NULL END ELSE NULL END * - 42 )
----
-44

query I rowsort
SELECT + 91 * 35 * - 76 + 65 AS col1
----
-241995

query I rowsort
SELECT - 64 * - - 99 * + + 50 * - 90
----
28512000

onlyif mysql # aggregate syntax: 
query II rowsort label-2021
SELECT + 33 * - 77 * - 27 + - 68 AS col1, 81 + - NULLIF ( + - 16, ( + SUM( + 5 ) ) )
----
68539
97

skipif mysql # not compatible
query II rowsort label-2021
SELECT + 33 * - 77 * - 27 + - 68 AS col1, 81 + - NULLIF ( + - 16, ( + SUM ( + 5 ) ) )
----
68539
97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2023
SELECT - SUM( ALL 51 ) AS col2, - 7
----
-51
-7

skipif mysql # not compatible
query II rowsort label-2023
SELECT - SUM ( ALL 51 ) AS col2, - 7
----
-51
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-2024
SELECT DISTINCT + - MIN( ALL 77 ) AS col0, + 6 * + - 5 + - - 58
----
-77
28

skipif mysql # not compatible
query II rowsort label-2024
SELECT DISTINCT + - MIN ( ALL 77 ) AS col0, + 6 * + - 5 + - - 58
----
-77
28

query I rowsort
SELECT 34 * - 14 * 47 + + - ( + COALESCE ( + 83, - 19 * - - 67 ) ) + + 4 AS col2
----
-22451

onlyif mysql # aggregate syntax: 
query II rowsort label-2026
SELECT + - 17 * - 83 * + COUNT( DISTINCT 89 ), 44 col0
----
1411
44

skipif mysql # not compatible
query II rowsort label-2026
SELECT + - 17 * - 83 * + COUNT ( DISTINCT 89 ), 44 col0
----
1411
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2027
SELECT DISTINCT + - MAX( 79 ), 22 AS col0
----
-79
22

skipif mysql # not compatible
query II rowsort label-2027
SELECT DISTINCT + - MAX ( 79 ), 22 AS col0
----
-79
22

query I rowsort
SELECT - 66 + - 93
----
-159

query I rowsort
SELECT ALL 10 * + - 92 AS col2
----
-920

onlyif mysql # DIV for integer division: 
query I rowsort label-2030
SELECT + 93 DIV 1 - 67 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-2030
SELECT + 93 / 1 - 67 AS col0
----
26

query I rowsort
SELECT ALL + 96 + - 12 * 23
----
-180

query I rowsort
SELECT + - 90 - - + 57
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2033
SELECT ALL - 26 + 27 + 0 DIV + + 97, + COUNT( * ) * + 97 AS col0
----
1
97

skipif mysql # not compatible
query II rowsort label-2033
SELECT ALL - 26 + 27 + 0 / + + 97, + COUNT ( * ) * + 97 AS col0
----
1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT DISTINCT 81 + + 89 + - COUNT( * ) - SUM( DISTINCT 8 ) * 31 * 37 * NULLIF ( + - 37, 64 ) + COALESCE ( + 50, 63 + - 98, - NULLIF ( - 50, + 35 ) * 34 * + COUNT( * ) )
----
339731

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT 81 + + 89 + - COUNT ( * ) - SUM ( DISTINCT 8 ) * 31 * 37 * NULLIF ( + - 37, 64 ) + COALESCE ( + 50, 63 + - 98, - NULLIF ( - 50, + 35 ) * 34 * + COUNT ( * ) )
----
339731

query I rowsort
SELECT ALL + - 86 + + NULLIF ( + 22, + 33 - - 49 ) AS col1
----
-64

query I rowsort
SELECT + - 41 + 79
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-2037
SELECT + 95 + + 30 + 79 DIV 17 AS col1
----
129

skipif mysql # not compatible
query I rowsort label-2037
SELECT + 95 + + 30 + 79 / 17 AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT + 7 + + + COUNT( * ) + - 17 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-2038
SELECT + 7 + + + COUNT ( * ) + - 17 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-2039
SELECT ALL 33 AS col1, + COUNT( * ) + + 89 + 33 + + MAX( 41 ) + 44 * - COUNT( * )
----
33
120

skipif mysql # not compatible
query II rowsort label-2039
SELECT ALL 33 AS col1, + COUNT ( * ) + + 89 + 33 + + MAX ( 41 ) + 44 * - COUNT ( * )
----
33
120

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

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

query I rowsort
SELECT ALL 53 * 94
----
4982

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

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

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-2044
SELECT 21, 81 DIV + 95 AS col2, + 77 * + 8 - - 12 + + + 58 - 32 AS col0
----
21
0
654

skipif mysql # not compatible
query III rowsort label-2044
SELECT 21, 81 / + 95 AS col2, + 77 * + 8 - - 12 + + + 58 - 32 AS col0
----
21
0
654

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

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

query I rowsort
SELECT ALL + 45 - - 18 AS col1
----
63

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

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

query II rowsort
SELECT ALL 99 AS col2, 22 AS col2
----
99
22

query I rowsort
SELECT DISTINCT 76 - - 35
----
111

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT DISTINCT 52 * COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT 52 * COUNT ( * ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT ALL 11 - - COUNT( * ) * + 91
----
102

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL 11 - - COUNT ( * ) * + 91
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2053
SELECT CAST( NULL AS SIGNED ) / + - 11 + CASE - COUNT( * ) WHEN - 77 / 88 + + - AVG ( - - 45 ) * + 6 THEN COUNT( * ) * + - 30 * + 88 / - - COUNT( * ) + + 43 ELSE - MIN( DISTINCT - + 16 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2053
SELECT CAST ( NULL AS INTEGER ) / + - 11 + CASE - COUNT ( * ) WHEN - 77 / 88 + + - AVG ( - - 45 ) * + 6 THEN COUNT ( * ) * + - 30 * + 88 / - - COUNT ( * ) + + 43 ELSE - MIN ( DISTINCT - + 16 ) END
----
NULL

query I rowsort
SELECT - 51 + - 97
----
-148

onlyif mysql # DIV for integer division: 
query I rowsort label-2055
SELECT ALL + 47 DIV 65 col2
----
0

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL + 47 / 65 col2
----
0

query I rowsort
SELECT - 69 * + - 18 AS col2
----
1242

query I rowsort
SELECT - - 38 * - 45 AS col2
----
-1710

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

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

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

skipif mysql # not compatible
query I rowsort label-2059
SELECT - + COUNT ( * ) * 11 * + 44 / - 11
----
44

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2060
SELECT ALL + 31 * + ( - - ( - 5 ) ) * + + ( - + 27 ) * 84 * - 86 - + 38 + - - 86, + 87 + + 38 + - CAST( NULL AS DECIMAL ) - 2 AS col1
----
-30232392
NULL

skipif mysql # not compatible
query II rowsort label-2060
SELECT ALL + 31 * + ( - - ( - 5 ) ) * + + ( - + 27 ) * 84 * - 86 - + 38 + - - 86, + 87 + + 38 + - CAST ( NULL AS REAL ) - 2 AS col1
----
-30232392
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2062
SELECT DISTINCT + + SUM( ALL - 87 ) * + 6 * + - ( + 64 ) + 69 + ( - - 73 ) - - 73 + - SUM( ALL + - 31 ) * + - 32 + 34 AS col2, 4
----
32665
4

skipif mysql # not compatible
query II rowsort label-2062
SELECT DISTINCT + + SUM ( ALL - 87 ) * + 6 * + - ( + 64 ) + 69 + ( - - 73 ) - - 73 + - SUM ( ALL + - 31 ) * + - 32 + 34 AS col2, 4
----
32665
4

query I rowsort
SELECT ALL COALESCE ( 84, 39, + 24 )
----
84

query I rowsort
SELECT NULLIF ( - 47, - 72 ) AS col1
----
-47

query I rowsort
SELECT - 67 * - - 79 AS col0
----
-5293

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT + - MAX( DISTINCT - + ( + 74 ) ) * + - 43 * - 68 AS col0
----
216376

skipif mysql # not compatible
query I rowsort label-2066
SELECT + - MAX ( DISTINCT - + ( + 74 ) ) * + - 43 * - 68 AS col0
----
216376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2067
SELECT ALL 29 AS col1, - 64 + + CAST( NULL AS SIGNED ) + COUNT( * )
----
29
NULL

skipif mysql # not compatible
query II rowsort label-2067
SELECT ALL 29 AS col1, - 64 + + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
29
NULL

query I rowsort
SELECT DISTINCT 12 * - 83 AS col2
----
-996

query I rowsort
SELECT ALL 71 - + 71 * + - 18
----
1349

query I rowsort
SELECT COALESCE ( ( - 84 ), + + 77 ) * - 16 AS col0
----
1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2071
SELECT CAST( - 20 AS SIGNED ) * - 36 col1
----
720

skipif mysql # not compatible
query I rowsort label-2071
SELECT CAST ( - 20 AS INTEGER ) * - 36 col1
----
720

query II rowsort
SELECT ALL 39 AS col2, 7
----
39
7

query I rowsort
SELECT 53 * + 74 AS col1
----
3922

query II rowsort
SELECT DISTINCT CASE + 10 WHEN - 96 THEN NULL WHEN + + 50 THEN + ( - 91 ) * - 47 - 25 END * + NULLIF ( 12, + 79 ) AS col2, ( 22 ) + + - 36 * + 75 + + 49 AS col2
----
NULL
-2629

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

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

query II rowsort
SELECT 1 col0, - 68 AS col1
----
1
-68

query I rowsort
SELECT DISTINCT 99 * - 43 AS col1
----
-4257

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

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

query II rowsort
SELECT ALL - 16, 53 AS col2
----
-16
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL + COUNT( * ) * 55 * 49 * - 97
----
-261415

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL + COUNT ( * ) * 55 * 49 * - 97
----
-261415

query II rowsort
SELECT DISTINCT - + 47 AS col1, 70 * - + 36 + 73
----
-47
-2447

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT ALL - SUM( DISTINCT 57 ) + NULLIF ( 47, 9 + + + 79 )
----
-10

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL - SUM ( DISTINCT 57 ) + NULLIF ( 47, 9 + + + 79 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT 21 * - MAX( + 12 ) * COUNT( * ) + MIN( DISTINCT + - 91 ) * + + 70
----
-6622

skipif mysql # not compatible
query I rowsort label-2083
SELECT 21 * - MAX ( + 12 ) * COUNT ( * ) + MIN ( DISTINCT + - 91 ) * + + 70
----
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT 31 * + COUNT( * ) + + - 50
----
-19

skipif mysql # not compatible
query I rowsort label-2084
SELECT 31 * + COUNT ( * ) + + - 50
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT ALL - - 82 + - 69 * 64 * + COUNT( * ) + 28
----
-4306

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL - - 82 + - 69 * 64 * + COUNT ( * ) + 28
----
-4306

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2087
SELECT + 48 / - MAX( - 13 ) * + 46 - + CASE 26 WHEN - + 97 * - 78 * 83 + + COUNT( * ) + - 76 * - CASE + 38 WHEN - 35 + CAST( NULL AS SIGNED ) + + 80 * + CAST( - 20 AS SIGNED ) * + 72 * + - ( COUNT( * ) ) THEN - 54 ELSE NULL END + COUNT( * ) THEN NULL WHEN 41 * + NULLIF ( 70, ( + 25 ) ) + + 45 + + 27 * ( - AVG ( + ( - 3 ) ) ) * - - MAX( DISTINCT + 97 ) THEN - COUNT( * ) * - 25 + CAST( + 31 AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2087
SELECT + 48 / - MAX ( - 13 ) * + 46 - + CASE 26 WHEN - + 97 * - 78 * 83 + + COUNT ( * ) + - 76 * - CASE + 38 WHEN - 35 + CAST ( NULL AS INTEGER ) + + 80 * + CAST ( - 20 AS INTEGER ) * + 72 * + - ( COUNT ( * ) ) THEN - 54 ELSE NULL END + COUNT ( * ) THEN NULL WHEN 41 * + NULLIF ( 70, ( + 25 ) ) + + 45 + + 27 * ( - AVG ( + ( - 3 ) ) ) * - - MAX ( DISTINCT + 97 ) THEN - COUNT ( * ) * - 25 + CAST ( + 31 AS REAL ) ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2089
SELECT ALL - - 32 AS col2, CAST( + 42 AS SIGNED ) * - NULLIF ( COUNT( * ), ( + 16 ) * + CASE - MIN( - 14 ) WHEN + COALESCE ( AVG ( DISTINCT + 48 ), - + 67 * + 9 ) THEN + + MIN( ALL + - COALESCE ( 30, - + 17 ) ) * - 5 ELSE NULL END ) / + MIN( DISTINCT + 98 ) - 16 + + 76 - - - COALESCE ( 11, 12 ) / - 9 * - CAST( NULL AS SIGNED ) * MIN( ALL - + 18 )
----
32
NULL

skipif mysql # not compatible
query II rowsort label-2089
SELECT ALL - - 32 AS col2, CAST ( + 42 AS INTEGER ) * - NULLIF ( COUNT ( * ), ( + 16 ) * + CASE - MIN ( - 14 ) WHEN + COALESCE ( AVG ( DISTINCT + 48 ), - + 67 * + 9 ) THEN + + MIN ( ALL + - COALESCE ( 30, - + 17 ) ) * - 5 ELSE NULL END ) / + MIN ( DISTINCT + 98 ) - 16 + + 76 - - - COALESCE ( 11, 12 ) / - 9 * - CAST ( NULL AS INTEGER ) * MIN ( ALL - + 18 )
----
32
NULL

query I rowsort
SELECT DISTINCT - 1 + - 84 AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2091
SELECT + 75 * - - ( - - CASE 8 WHEN - - 44 THEN 59 END ) * + 48 * + + MAX( DISTINCT - - 83 ) * - MAX( - 18 ) * + CAST( NULL AS SIGNED ) + + 60 + - 50 + - - 68 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2091
SELECT + 75 * - - ( - - CASE 8 WHEN - - 44 THEN 59 END ) * + 48 * + + MAX ( DISTINCT - - 83 ) * - MAX ( - 18 ) * + CAST ( NULL AS INTEGER ) + + 60 + - 50 + - - 68 col0
----
NULL

query I rowsort
SELECT ALL - + 94 * + 88 * - 18 * - + 87 * - 46 AS col0
----
595881792

onlyif mysql # aggregate syntax: 
query II rowsort label-2093
SELECT ALL - + MIN( 0 ) + - 0 * + 35 * - 65 + - 84 AS col0, 82 * - + 13 - - 7
----
-84
-1059

skipif mysql # not compatible
query II rowsort label-2093
SELECT ALL - + MIN ( 0 ) + - 0 * + 35 * - 65 + - 84 AS col0, 82 * - + 13 - - 7
----
-84
-1059

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2095
SELECT ( - 95 ) + - 90 + CAST( - 94 AS SIGNED ) + + + 38 * + 73 AS col0
----
2495

skipif mysql # not compatible
query I rowsort label-2095
SELECT ( - 95 ) + - 90 + CAST ( - 94 AS INTEGER ) + + + 38 * + 73 AS col0
----
2495

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT + 85 * 52 * - + 73 - + CASE - 33 WHEN - 21 THEN NULL WHEN 72 * - 21 THEN 91 * + NULLIF ( 60, + + 86 + - - 16 * - - COUNT( * ) - + - ( + 83 ) ) * 68 + + 73 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2096
SELECT + 85 * 52 * - + 73 - + CASE - 33 WHEN - 21 THEN NULL WHEN 72 * - 21 THEN 91 * + NULLIF ( 60, + + 86 + - - 16 * - - COUNT ( * ) - + - ( + 83 ) ) * 68 + + 73 END col0
----
NULL

query II rowsort
SELECT + 16 AS col0, + 0 * 77 AS col2
----
16
0

query I rowsort
SELECT ALL + 44 * 69
----
3036

query I rowsort
SELECT NULLIF ( - + 96, + 6 ) * - 15
----
1440

query I rowsort
SELECT ALL + - 89 * - 90 + 14
----
8024

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2102
SELECT ALL + COUNT( * ) * + - COUNT( * ) AS col1, + 92 * + - 12 AS col0
----
-1
-1104

skipif mysql # not compatible
query II rowsort label-2102
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) AS col1, + 92 * + - 12 AS col0
----
-1
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT + 24 * + - COUNT( * ) + - - 5 + + 93 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2103
SELECT + 24 * + - COUNT ( * ) + - - 5 + + 93 AS col2
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2104
SELECT ALL - COUNT( * ) - + 42 AS col2, 26 * - 36
----
-43
-936

skipif mysql # not compatible
query II rowsort label-2104
SELECT ALL - COUNT ( * ) - + 42 AS col2, 26 * - 36
----
-43
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT ALL COUNT( * ) * + 45 * + - ( 70 ) col2
----
-3150

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL COUNT ( * ) * + 45 * + - ( 70 ) col2
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT COUNT( - 28 ) * - 58 + 15
----
-43

skipif mysql # not compatible
query I rowsort label-2106
SELECT COUNT ( - 28 ) * - 58 + 15
----
-43

query I rowsort
SELECT ALL 81 * - 19 AS col1
----
-1539

onlyif mysql # DIV for integer division: 
query I rowsort label-2108
SELECT 68 DIV - 47 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2108
SELECT 68 / - 47 AS col0
----
-1

query I rowsort
SELECT ALL 58 * - - 23 * 82 AS col0
----
109388

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT DISTINCT MAX( ALL - 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT MAX ( ALL - 63 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL 22 * - SUM( - 14 ) col2
----
308

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL 22 * - SUM ( - 14 ) col2
----
308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2112
SELECT 6 + + 7 * CAST( NULL AS SIGNED ) + + COALESCE ( - 45, 85 + - + COUNT( * ) * + + 45 * + 53 / - - 60 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT 6 + + 7 * CAST ( NULL AS INTEGER ) + + COALESCE ( - 45, 85 + - + COUNT ( * ) * + + 45 * + 53 / - - 60 ) AS col2
----
NULL

query I rowsort
SELECT ALL 30 * - 31 + + 32 AS col0
----
-898

query I rowsort
SELECT ALL + CASE + - 70 WHEN + + 19 * + + 71 THEN - + 11 WHEN 31 * 78 * + 21 THEN NULL END * - + 34 + - 96 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2116
SELECT + CAST( 99 AS SIGNED ) DIV - + 64 + - CASE WHEN NOT + 44 BETWEEN - + 39 AND NULL THEN + + 51 ELSE - 27 END + + CAST( 84 AS SIGNED )
----
110

skipif mysql # not compatible
query I rowsort label-2116
SELECT + CAST ( 99 AS INTEGER ) / - + 64 + - CASE WHEN NOT + 44 BETWEEN - + 39 AND NULL THEN + + 51 ELSE - 27 END + + CAST ( 84 AS INTEGER )
----
110

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2118
SELECT + 7 + COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) / - + 6 col0
----
8
NULL

skipif mysql # not compatible
query II rowsort label-2118
SELECT + 7 + COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) / - + 6 col0
----
8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT ALL 76 * + SUM( + 22 ) + + + 7
----
1679

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL 76 * + SUM ( + 22 ) + + + 7
----
1679

query I rowsort
SELECT ALL + + 79 * + 28 + + 27
----
2239

onlyif mysql # aggregate syntax: 
query II rowsort label-2121
SELECT - + 59 * + + 36 + + - 73 - - - 43 + + COUNT( * ) AS col0, - ( + 81 ) AS col2
----
-2239
-81

skipif mysql # not compatible
query II rowsort label-2121
SELECT - + 59 * + + 36 + + - 73 - - - 43 + + COUNT ( * ) AS col0, - ( + 81 ) AS col2
----
-2239
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT ALL - MIN( + 68 ) * + COUNT( - ( - 47 ) ) + - 90 + + 2 + - 72 * - COUNT( * ) * + 61 + + 33 AS col2
----
4269

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL - MIN ( + 68 ) * + COUNT ( - ( - 47 ) ) + - 90 + + 2 + - 72 * - COUNT ( * ) * + 61 + + 33 AS col2
----
4269

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT DISTINCT - - COALESCE ( - 25, + COUNT( * ) * + 53 )
----
-25

skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT - - COALESCE ( - 25, + COUNT ( * ) * + 53 )
----
-25

query II rowsort
SELECT ALL 42 * - 56 * + 42 + + - 89 + + 52 * 98 - + 39 AS col1, - 97 AS col1
----
-93816
-97

query I rowsort
SELECT DISTINCT 61 * 7 AS col1
----
427

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT + ( + SUM( 11 ) ) * 83 + COUNT( * )
----
914

skipif mysql # not compatible
query I rowsort label-2126
SELECT + ( + SUM ( 11 ) ) * 83 + COUNT ( * )
----
914

query I rowsort
SELECT - + 78 * - + 84 + + 67 AS col0
----
6619

query I rowsort
SELECT DISTINCT + ( - 14 ) AS col0
----
-14

query I rowsort
SELECT ALL - 56 - 90 AS col2
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-2130
SELECT ALL - 50 DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL - 50 / + 52
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2131
SELECT ALL + 88 AS col1, MAX( - 53 ) AS col1
----
88
-53

skipif mysql # not compatible
query II rowsort label-2131
SELECT ALL + 88 AS col1, MAX ( - 53 ) AS col1
----
88
-53

query II rowsort
SELECT + 83 AS col1, + 20 AS col2
----
83
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2133
SELECT ALL 36, + COALESCE ( - 80, 92 ) + + 0 + - COUNT( * ) * 8 + - - 75 AS col1
----
36
-13

skipif mysql # not compatible
query II rowsort label-2133
SELECT ALL 36, + COALESCE ( - 80, 92 ) + + 0 + - COUNT ( * ) * 8 + - - 75 AS col1
----
36
-13

query II rowsort
SELECT - 41 AS col0, 64 AS col0
----
-41
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2135
SELECT - CAST( - + COALESCE ( - - MIN( - - 77 ), ( - 65 ) - + 47 + - - 13 + - + 78 * + 87 / + - 35 * COUNT( * ) + + - 47, + 45 ) AS SIGNED ) * - - 99
----
7623

skipif mysql # not compatible
query I rowsort label-2135
SELECT - CAST ( - + COALESCE ( - - MIN ( - - 77 ), ( - 65 ) - + 47 + - - 13 + - + 78 * + 87 / + - 35 * COUNT ( * ) + + - 47, + 45 ) AS INTEGER ) * - - 99
----
7623

query I rowsort
SELECT ALL CASE + - 29 WHEN 12 - + 76 THEN NULL ELSE - 96 * - 24 END
----
2304

onlyif mysql # aggregate syntax: 
query II rowsort label-2137
SELECT - 51 col1, - MAX( DISTINCT 50 ) * - + 68
----
-51
3400

skipif mysql # not compatible
query II rowsort label-2137
SELECT - 51 col1, - MAX ( DISTINCT 50 ) * - + 68
----
-51
3400

query I rowsort
SELECT ALL + 88 + - 61
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-2139
SELECT 26 AS col1, - 19 DIV - - 98
----
26
0

skipif mysql # not compatible
query II rowsort label-2139
SELECT 26 AS col1, - 19 / - - 98
----
26
0

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

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

query I rowsort
SELECT ALL - 24 + + 35 col1
----
11

query I rowsort
SELECT - 16 * + ( + 71 )
----
-1136

query I rowsort
SELECT ALL - 52 + - 25 + 6
----
-71

query I rowsort
SELECT DISTINCT CASE - - 22 WHEN 26 THEN 38 WHEN - 77 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 43 + - 40
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT ALL - COUNT( * ) + - 90 * + 98
----
-8821

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL - COUNT ( * ) + - 90 * + 98
----
-8821

query I rowsort
SELECT - - 15 + - + NULLIF ( 45, - 89 ) AS col0
----
-30

query II rowsort
SELECT - + 63 AS col2, 25 col2
----
-63
25

query I rowsort
SELECT DISTINCT - 45 * - - 16 * - 9 + + + 6 * - 14 AS col2
----
6396

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT SUM( DISTINCT + 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2150
SELECT SUM ( DISTINCT + 12 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT + COALESCE ( + ( - 75 ), + + COUNT( * ) - 2 + - 30 ) * - NULLIF ( 88, - MAX( ( 13 ) ) ) - - 24 + - 46 + - COUNT( ( 61 ) )
----
6577

skipif mysql # not compatible
query I rowsort label-2151
SELECT + COALESCE ( + ( - 75 ), + + COUNT ( * ) - 2 + - 30 ) * - NULLIF ( 88, - MAX ( ( 13 ) ) ) - - 24 + - 46 + - COUNT ( ( 61 ) )
----
6577

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2152
SELECT ALL - CAST( 84 AS SIGNED ) DIV - 27 col0
----
3

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL - CAST ( 84 AS INTEGER ) / - 27 col0
----
3

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

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

query I rowsort
SELECT - - 32 * + 99 + 69
----
3237

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

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

query I rowsort
SELECT DISTINCT + + 51 * + 43 - 28 * 31 * + - 56 AS col2
----
50801

query II rowsort
SELECT + 11 AS col0, 24 + 28 AS col0
----
11
52

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

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT + ( + COUNT ( * ) ) * - 20 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT ALL + CASE + 93 WHEN + + 15 * + COUNT( * ) / - 94 + - 93 * - 10 + + 85 + - 35 - - 34 - + 49 THEN NULL WHEN - 50 THEN 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL + CASE + 93 WHEN + + 15 * + COUNT ( * ) / - 94 + - 93 * - 10 + + 85 + - 35 - - 34 - + 49 THEN NULL WHEN - 50 THEN 41 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2160
SELECT CASE + + 51 WHEN 87 THEN - 3 ELSE + CAST( - 88 AS SIGNED ) END
----
-88

skipif mysql # not compatible
query I rowsort label-2160
SELECT CASE + + 51 WHEN 87 THEN - 3 ELSE + CAST ( - 88 AS INTEGER ) END
----
-88

query I rowsort
SELECT DISTINCT 42 * 22
----
924

query I rowsort
SELECT DISTINCT 53 * - 65 col2
----
-3445

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT + 77 DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-2163
SELECT + 77 / 57
----
1

query I rowsort
SELECT ALL 88 * - + 58
----
-5104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2165
SELECT MAX( ALL 0 ) * + 24 + + CAST( 9 AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2165
SELECT MAX ( ALL 0 ) * + 24 + + CAST ( 9 AS INTEGER ) AS col1
----
9

query I rowsort
SELECT - 52 * - + 89
----
4628

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2168
SELECT + 23 * 44 DIV - SUM( + 16 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-2168
SELECT + 23 * 44 / - SUM ( + 16 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT ALL - COUNT( * ) * - - 86 + ( + COUNT( * ) )
----
-85

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL - COUNT ( * ) * - - 86 + ( + COUNT ( * ) )
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT ALL 5 DIV - 14 * + 32 col1
----
0

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL 5 / - 14 * + 32 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT - ( - 70 ) + + - COUNT( ALL + + ( + 59 ) ) + - + 50 * - - 78 AS col2
----
-3831

skipif mysql # not compatible
query I rowsort label-2171
SELECT - ( - 70 ) + + - COUNT ( ALL + + ( + 59 ) ) + - + 50 * - - 78 AS col2
----
-3831

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2173
SELECT - 93 + - 30 DIV + 34 + 45 * + CAST( + + 84 AS SIGNED ) * + 40 + + - 90
----
151017

skipif mysql # not compatible
query I rowsort label-2173
SELECT - 93 + - 30 / + 34 + 45 * + CAST ( + + 84 AS INTEGER ) * + 40 + + - 90
----
151017

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2174
SELECT ALL 99 + + ( + MAX( DISTINCT - 18 ) ) - - - 32 - + - 35 + ( + - 84 ) + + ( - ( + ( + 17 ) ) ) * - - 15 * 27 DIV + + COUNT( * )
----
-6885

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL 99 + + ( + MAX ( DISTINCT - 18 ) ) - - - 32 - + - 35 + ( + - 84 ) + + ( - ( + ( + 17 ) ) ) * - - 15 * 27 / + + COUNT ( * )
----
-6885

query II rowsort
SELECT - 69 + + + 9 AS col1, - 67 * + - 71 + - 30
----
-60
4727

query II rowsort
SELECT DISTINCT - 38 + 71 AS col2, NULLIF ( 51, - 61 )
----
33
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2177
SELECT + 57 * - - 6 * - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT + 57 * - - 6 * - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2178
SELECT - 63 + - + CASE + + 54 WHEN - 4 - - 72 THEN + - 69 * 61 / + + 79 / + 19 + COUNT( * ) + - CAST( ( + 96 ) AS DECIMAL ) WHEN - 2 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT - 63 + - + CASE + + 54 WHEN - 4 - - 72 THEN + - 69 * 61 / + + 79 / + 19 + COUNT ( * ) + - CAST ( ( + 96 ) AS REAL ) WHEN - 2 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT ALL - + 75 * + 69 + + SUM( + 92 ) + - COUNT( * ) * - COUNT( * ) + 21 + + 91 AS col1
----
-4970

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL - + 75 * + 69 + + SUM ( + 92 ) + - COUNT ( * ) * - COUNT ( * ) + 21 + + 91 AS col1
----
-4970

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

query I rowsort
SELECT DISTINCT - 16 + 93 + + 26 AS col0
----
103

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

query I rowsort
SELECT ALL - + COALESCE ( - + 38, 54 ) - 19
----
19

query I rowsort
SELECT - - 3 + - 7
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT DISTINCT - NULLIF ( 8, + + 48 * COUNT( * ) - - 81 / - + 85 * + + 79 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT - NULLIF ( 8, + + 48 * COUNT ( * ) - - 81 / - + 85 * + + 79 ) AS col2
----
-8

query I rowsort
SELECT - + 28 + 82
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2187
SELECT ALL - 23 - COALESCE ( 93, - CAST( NULL AS SIGNED ) ) - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL - 23 - COALESCE ( 93, - CAST ( NULL AS INTEGER ) ) - + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 95 * 60
----
-5700

query I rowsort
SELECT - 64 * + ( + - 92 ) AS col2
----
5888

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT - 75 * - 66 + + - 44 * COUNT( * ) * + 48 + - SUM( ALL - - 4 ) * - 69
----
3114

skipif mysql # not compatible
query I rowsort label-2190
SELECT - 75 * - 66 + + - 44 * COUNT ( * ) * + 48 + - SUM ( ALL - - 4 ) * - 69
----
3114

query I rowsort
SELECT - 91 + 48
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT COUNT( * ) * + 11 * - 72 + + 66 + + + 81 col0
----
-645

skipif mysql # not compatible
query I rowsort label-2192
SELECT COUNT ( * ) * + 11 * - 72 + + 66 + + + 81 col0
----
-645

query I rowsort
SELECT ALL + - 83 * + - 70 + 98 AS col0
----
5908

query I rowsort
SELECT DISTINCT - - CASE 16 WHEN 71 + 66 THEN NULL ELSE + 25 END
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2195
SELECT DISTINCT - + 53 * - CAST( NULL AS DECIMAL ) * + 10 + - 84 * - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT DISTINCT - + 53 * - CAST ( NULL AS REAL ) * + 10 + - 84 * - 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2196
SELECT 72 + + 47 + 69, - COUNT( ALL + 26 ) AS col1
----
188
-1

skipif mysql # not compatible
query II rowsort label-2196
SELECT 72 + + 47 + 69, - COUNT ( ALL + 26 ) AS col1
----
188
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT ALL - 86 + - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL - 86 + - COUNT ( * )
----
-87

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

query I rowsort
SELECT 62 * - 48
----
-2976

query II rowsort
SELECT ALL 35 + - ( 20 ) col0, - 69 col1
----
15
-69

query I rowsort
SELECT ALL 99 + 25 AS col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT DISTINCT COUNT( * ) + + 59 - ( 35 ) + + 47 * - 49 * - 10
----
23055

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT COUNT ( * ) + + 59 - ( 35 ) + + 47 * - 49 * - 10
----
23055

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2204
SELECT COALESCE ( - + 69, - COALESCE ( MIN( ALL + 85 ), - 15 * 99 / 12, 74 + - CAST( NULL AS DECIMAL ) ) + + - 81 ) * 34 * + 94 - - + 46 * - - 56 - + CASE COUNT( * ) WHEN - + 88 * - 66 THEN + - 75 + + CAST( NULL AS DECIMAL ) / COUNT( DISTINCT + 78 ) WHEN - COALESCE ( - 97, - + 72 ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT COALESCE ( - + 69, - COALESCE ( MIN ( ALL + 85 ), - 15 * 99 / 12, 74 + - CAST ( NULL AS REAL ) ) + + - 81 ) * 34 * + 94 - - + 46 * - - 56 - + CASE COUNT ( * ) WHEN - + 88 * - 66 THEN + - 75 + + CAST ( NULL AS REAL ) / COUNT ( DISTINCT + 78 ) WHEN - COALESCE ( - 97, - + 72 ) THEN NULL END col2
----
NULL

query I rowsort
SELECT ALL 45 - + - 66 AS col2
----
111

query I rowsort
SELECT CASE - 90 WHEN + 4 THEN + + 9 ELSE + 43 END AS col2
----
43

query I rowsort
SELECT DISTINCT + 63 * - - 32 AS col2
----
2016

query I rowsort
SELECT DISTINCT - - 23 * - 60
----
-1380

query I rowsort
SELECT - + NULLIF ( + 11, + 22 - 68 + + 36 * + ( - 4 ) ) AS col2
----
-11

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2211
SELECT + COUNT( * ) + + 45 - COUNT( * ) DIV + 98
----
46

skipif mysql # not compatible
query I rowsort label-2211
SELECT + COUNT ( * ) + + 45 - COUNT ( * ) / + 98
----
46

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

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

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

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

query II rowsort
SELECT DISTINCT - 69 AS col0, + 8 AS col0
----
-69
8

query I rowsort
SELECT ALL CASE WHEN NOT NULL IS NOT NULL THEN - 25 ELSE NULL END
----
-25

query I rowsort
SELECT ( + ( + 35 ) ) * - + 75 AS col1
----
-2625

query I rowsort
SELECT DISTINCT + 67 * - 81 AS col0
----
-5427

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2218
SELECT + MAX( 72 ) DIV - COALESCE ( + - 15, COUNT( + 10 ) ) + 99 + COUNT( * ) col0
----
104

skipif mysql # not compatible
query I rowsort label-2218
SELECT + MAX ( 72 ) / - COALESCE ( + - 15, COUNT ( + 10 ) ) + 99 + COUNT ( * ) col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ALL + COUNT( * ) + + + 84 + - 67 - - 63 - + 3 * - 81 * + 38
----
9315

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL + COUNT ( * ) + + + 84 + - 67 - - 63 - + 3 * - 81 * + 38
----
9315

query II rowsort
SELECT + - 97 col1, - 46 AS col0
----
-97
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT + 45 * - ( + - 78 ) + + 65 + + COUNT( * ) AS col0
----
3576

skipif mysql # not compatible
query I rowsort label-2221
SELECT + 45 * - ( + - 78 ) + + 65 + + COUNT ( * ) AS col0
----
3576

onlyif mysql # aggregate syntax: 
query II rowsort label-2222
SELECT COUNT( * ) col1, + ( - 35 ) * 43 - - 30
----
1
-1475

skipif mysql # not compatible
query II rowsort label-2222
SELECT COUNT ( * ) col1, + ( - 35 ) * 43 - - 30
----
1
-1475

onlyif mysql # DIV for integer division: 
query I rowsort label-2223
SELECT 62 DIV + + 98 col0
----
0

skipif mysql # not compatible
query I rowsort label-2223
SELECT 62 / + + 98 col0
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT NULLIF ( 12, - SUM( + ( 89 ) ) ) * + 20 - 34 - + 96 + 76 AS col1
----
186

skipif mysql # not compatible
query I rowsort label-2226
SELECT NULLIF ( 12, - SUM ( + ( 89 ) ) ) * + 20 - 34 - + 96 + 76 AS col1
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT MIN( ALL 93 ) - 62 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2227
SELECT MIN ( ALL 93 ) - 62 AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2228
SELECT DISTINCT + 10 + - + 9 DIV - 56 + COUNT( * ) + - - 9
----
20

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT + 10 + - + 9 / - 56 + COUNT ( * ) + - - 9
----
20

query I rowsort
SELECT ALL - 56 + 21
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT ALL - MIN( DISTINCT - - 22 ) + + 21 + + - 26 * - - 0 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL - MIN ( DISTINCT - - 22 ) + + 21 + + - 26 * - - 0 AS col2
----
-1

query I rowsort
SELECT 56 * + - ( ( + + 36 ) ) * 54 + + 71
----
-108793

query II rowsort
SELECT 23 col0, ( - 51 ) * + + 13 AS col0
----
23
-663

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2234
SELECT ALL - 61 AS col1, + COUNT( * ) DIV + 96 col0
----
-61
0

skipif mysql # not compatible
query II rowsort label-2234
SELECT ALL - 61 AS col1, + COUNT ( * ) / + 96 col0
----
-61
0

query I rowsort
SELECT 96 + + - 79
----
17

query I rowsort
SELECT - 87 * - 32 + + + 25 + + 96 + 85
----
2990

query II rowsort
SELECT DISTINCT 19 AS col2, 5 * ( + + 28 )
----
19
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2238
SELECT ALL COUNT( * ) AS col0, SUM( ALL CASE - + 18 WHEN - - 37 THEN - 1 * + CAST( NULL AS SIGNED ) ELSE + - 88 END ) AS col1
----
1
-88

skipif mysql # not compatible
query II rowsort label-2238
SELECT ALL COUNT ( * ) AS col0, SUM ( ALL CASE - + 18 WHEN - - 37 THEN - 1 * + CAST ( NULL AS INTEGER ) ELSE + - 88 END ) AS col1
----
1
-88

query I rowsort
SELECT 94 + + 76 - 11 AS col2
----
159

query I rowsort
SELECT ALL 80 - 31 AS col0
----
49

query I rowsort
SELECT ( + 46 ) * 56 + + COALESCE ( + - 93, - - 1 * - - 48, - - 97 ) * + + 86
----
-5422

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

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

query II rowsort
SELECT ALL - 84 AS col1, + 73 + + 49
----
-84
122

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT DISTINCT MAX( DISTINCT 38 ) * - 23 AS col0
----
-874

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT MAX ( DISTINCT 38 ) * - 23 AS col0
----
-874

query I rowsort
SELECT ALL - 89 * 23 AS col2
----
-2047

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT MAX( - 68 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-2246
SELECT MAX ( - 68 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT + - COUNT( * ) + + - CASE + - 98 WHEN - 48 + + 18 + 10 * + 60 + + 47 * 86 THEN NULL WHEN + 4 THEN + 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT + - COUNT ( * ) + + - CASE + - 98 WHEN - 48 + + 18 + 10 * + 60 + + 47 * 86 THEN NULL WHEN + 4 THEN + 62 ELSE NULL END
----
NULL

query II rowsort
SELECT - - 94 AS col1, 51 col0
----
94
51

query II rowsort
SELECT - 18 AS col0, - ( 76 )
----
-18
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT DISTINCT 87 + + - COUNT( * ) * + 79 col2
----
8

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT 87 + + - COUNT ( * ) * + 79 col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2251
SELECT DISTINCT + 7 DIV + - COUNT( * ) + - 7 DIV + 77
----
-7

skipif mysql # not compatible
query I rowsort label-2251
SELECT DISTINCT + 7 / + - COUNT ( * ) + - 7 / + 77
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2252
SELECT DISTINCT - SUM( 42 ) + 2 + 2 * 76 DIV SUM( + + 41 ) - - 28
----
-9

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT - SUM ( 42 ) + 2 + 2 * 76 / SUM ( + + 41 ) - - 28
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT ALL + 4 + SUM( + + 49 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL + 4 + SUM ( + + 49 ) AS col0
----
53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2256
SELECT CAST( NULL AS SIGNED ) * - NULLIF ( 96, - + 75 * 3 * 26 + - COUNT( * ) ) + + + COUNT( * ) * - - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT CAST ( NULL AS INTEGER ) * - NULLIF ( 96, - + 75 * 3 * 26 + - COUNT ( * ) ) + + + COUNT ( * ) * - - 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2257
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + COALESCE ( + 92, ( + 14 ) - + 86 ) + - + CAST( + - ( 98 ) AS SIGNED ) * - 82 / + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT CAST ( NULL AS REAL ) * + COALESCE ( + 92, ( + 14 ) - + 86 ) + - + CAST ( + - ( 98 ) AS INTEGER ) * - 82 / + 4 AS col0
----
NULL

query I rowsort
SELECT - 53 * - 48 AS col2
----
2544

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT ALL 41 * 90 + - + COUNT( * ) AS col0
----
3689

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL 41 * 90 + - + COUNT ( * ) AS col0
----
3689

query I rowsort
SELECT ALL 9 * - 69 + + 29 col0
----
-592

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2262
SELECT DISTINCT COUNT( * ) * - 21 DIV COUNT( * ) + - 36 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT COUNT ( * ) * - 21 / COUNT ( * ) + - 36 AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2263
SELECT - CAST( NULL AS SIGNED ) * - 70 * + - 51 AS col1, 22 + + 20
----
NULL
42

skipif mysql # not compatible
query II rowsort label-2263
SELECT - CAST ( NULL AS INTEGER ) * - 70 * + - 51 AS col1, 22 + + 20
----
NULL
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT ALL 78 * - + 13 + COUNT( * ) + 34 + - COUNT( * ) * - - 68 + + - 19 * + - 26 * + MIN( ALL 43 ) * + 57
----
1209747

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL 78 * - + 13 + COUNT ( * ) + 34 + - COUNT ( * ) * - - 68 + + - 19 * + - 26 * + MIN ( ALL 43 ) * + 57
----
1209747

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT CASE COUNT( * ) WHEN COUNT( * ) THEN + 91 + 91 - + - 24 + - 62 * COUNT( * ) * 78 WHEN - 95 - - 14 THEN + - 10 + - ( ( 65 ) ) * + + COUNT( + 30 ) END
----
-4630

skipif mysql # not compatible
query I rowsort label-2265
SELECT CASE COUNT ( * ) WHEN COUNT ( * ) THEN + 91 + 91 - + - 24 + - 62 * COUNT ( * ) * 78 WHEN - 95 - - 14 THEN + - 10 + - ( ( 65 ) ) * + + COUNT ( + 30 ) END
----
-4630

query I rowsort
SELECT COALESCE ( + + 63, 9 ) AS col0
----
63

query I rowsort
SELECT - 87 + + 30 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-2268
SELECT ALL + MIN( + NULLIF ( + + 90, + 91 + + - 70 ) ) AS col2, - 23 col0
----
90
-23

skipif mysql # not compatible
query II rowsort label-2268
SELECT ALL + MIN ( + NULLIF ( + + 90, + 91 + + - 70 ) ) AS col2, - 23 col0
----
90
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT - COUNT( * ) * - 83 + + 74 * 87
----
6521

skipif mysql # not compatible
query I rowsort label-2269
SELECT - COUNT ( * ) * - 83 + + 74 * 87
----
6521

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT 98 * + 22 + - COUNT( * ) + - + SUM( + - 79 )
----
2234

skipif mysql # not compatible
query I rowsort label-2271
SELECT 98 * + 22 + - COUNT ( * ) + - + SUM ( + - 79 )
----
2234

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL - MAX( - 40 ) * 51
----
2040

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL - MAX ( - 40 ) * 51
----
2040

query I rowsort
SELECT DISTINCT + 26 * + 15
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT - + COALESCE ( 3, 13 * + 1, MIN( DISTINCT + 16 ) + 92 + 20 ) - + - 89 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2274
SELECT - + COALESCE ( 3, 13 * + 1, MIN ( DISTINCT + 16 ) + 92 + 20 ) - + - 89 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT - 17 * + - 84 * + COUNT( * ) + + COUNT( * ) col0
----
1429

skipif mysql # not compatible
query I rowsort label-2275
SELECT - 17 * + - 84 * + COUNT ( * ) + + COUNT ( * ) col0
----
1429

onlyif mysql # DIV for integer division: 
query II rowsort label-2276
SELECT + - 41 DIV 81 AS col2, - ( + 3 ) AS col0
----
0
-3

skipif mysql # not compatible
query II rowsort label-2276
SELECT + - 41 / 81 AS col2, - ( + 3 ) AS col0
----
0
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT - 84 * 80 * - + 8 * - - COUNT( * )
----
53760

skipif mysql # not compatible
query I rowsort label-2278
SELECT - 84 * 80 * - + 8 * - - COUNT ( * )
----
53760

query I rowsort
SELECT ALL + 52 + 31
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT DISTINCT - COUNT( * ) + - 26 + - 87 + + ( - MIN( 32 ) ) * + + 75 AS col1
----
-2514

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT - COUNT ( * ) + - 26 + - 87 + + ( - MIN ( 32 ) ) * + + 75 AS col1
----
-2514

query I rowsort
SELECT ALL - CASE + 85 WHEN 3 + 85 THEN - - 30 * + - 71 - + 33 + + 54 END * + 40 col2
----
NULL

query I rowsort
SELECT + + 72 * + - 98 AS col0
----
-7056

query I rowsort
SELECT ALL + - 9 + - + 0 * + + 62
----
-9

query I rowsort
SELECT DISTINCT - 50 * 48
----
-2400

query I rowsort
SELECT + - 39 * 85
----
-3315

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT - 86 * - MIN( + 99 )
----
8514

skipif mysql # not compatible
query I rowsort label-2286
SELECT - 86 * - MIN ( + 99 )
----
8514

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT - MIN( + ( + 15 ) ) + + 83
----
68

skipif mysql # not compatible
query I rowsort label-2287
SELECT - MIN ( + ( + 15 ) ) + + 83
----
68

query I rowsort
SELECT DISTINCT - 84 + + + 49 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT + COUNT( * ) + + 44 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-2289
SELECT + COUNT ( * ) + + 44 AS col0
----
45

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT ALL MIN( - + 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL MIN ( - + 46 ) AS col2
----
-46

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2294
SELECT - ( + CAST( NULL AS SIGNED ) ) / + 55 * + CAST( - 86 AS SIGNED ) + COALESCE ( - CAST( 45 AS SIGNED ), + 44, - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2294
SELECT - ( + CAST ( NULL AS INTEGER ) ) / + 55 * + CAST ( - 86 AS INTEGER ) + COALESCE ( - CAST ( 45 AS INTEGER ), + 44, - COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2295
SELECT DISTINCT 41 DIV - + 2
----
-20

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT 41 / - + 2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-2296
SELECT + 24 DIV + - 12 - + - 46 + ( - 80 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2296
SELECT + 24 / + - 12 - + - 46 + ( - 80 ) AS col0
----
-36

query I rowsort
SELECT + 70 * 89 AS col1
----
6230

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

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

query I rowsort
SELECT ALL 34 * + 92 col1
----
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ALL + CASE - 55 WHEN + ( + + 94 ) - 36 + + COUNT( * ) * 12 + - 96 * + + 24 - - 88 THEN + 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL + CASE - 55 WHEN + ( + + 94 ) - 36 + + COUNT ( * ) * 12 + - 96 * + + 24 - - 88 THEN + 30 ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT - MAX ( 20 )
----
-20

query II rowsort
SELECT + 22, 19 AS col2
----
22
19

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

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT - - MAX ( - - 39 )
----
39

query II rowsort
SELECT - 45 + - COALESCE ( - - 44, + 25, + 91 ) + 13 AS col2, 64
----
-76
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2305
SELECT + - 5 * 42 * + + COUNT( * ) - + 83 AS col2, ( - - 56 )
----
-293
56

skipif mysql # not compatible
query II rowsort label-2305
SELECT + - 5 * 42 * + + COUNT ( * ) - + 83 AS col2, ( - - 56 )
----
-293
56

query II rowsort
SELECT - 28 - 34 * - 37, 10 AS col0
----
1230
10

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

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

query I rowsort
SELECT ALL - 4 + + 89 + - - 14 * 98
----
1457

query I rowsort
SELECT DISTINCT + - 36 + + - 23 * - 59 AS col2
----
1321

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

query I rowsort
SELECT ALL - - 57 * + 28 + 59 + - 51 col1
----
1604

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

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

query I rowsort
SELECT 26 + + 67 - 30 AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2314
SELECT DISTINCT - + ( + 40 ) * 2 + - 72 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT - + ( + 40 ) * 2 + - 72 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 61 * + 52 AS col0
----
-3172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2316
SELECT ALL - 88 + 89 / ( - COALESCE ( 35, - AVG ( + 16 ) + 25 ) ) * - - CASE COUNT( * ) WHEN + 3 + SUM( DISTINCT - 32 ) * - 47 THEN 13 + + NULLIF ( + 4, 4 ) + - 37 * + 2 WHEN + 76 * CAST( - 82 AS SIGNED ) THEN 0 ELSE 32 END * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL - 88 + 89 / ( - COALESCE ( 35, - AVG ( + 16 ) + 25 ) ) * - - CASE COUNT ( * ) WHEN + 3 + SUM ( DISTINCT - 32 ) * - 47 THEN 13 + + NULLIF ( + 4, 4 ) + - 37 * + 2 WHEN + 76 * CAST ( - 82 AS INTEGER ) THEN 0 ELSE 32 END * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 6 * + ( - + 95 ), 69 AS col2
----
-570
69

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

query II rowsort
SELECT DISTINCT 43 AS col0, - 77 * 58 + + 38 AS col2
----
43
-4428

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT ALL - - 2 + - + COUNT( ALL + 78 ) * NULLIF ( - 25, + - 0 )
----
27

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL - - 2 + - + COUNT ( ALL + 78 ) * NULLIF ( - 25, + - 0 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ALL MIN( ALL + 27 ) - - 7
----
34

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL MIN ( ALL + 27 ) - - 7
----
34

query I rowsort
SELECT 0 * - - 48 col1
----
0

query I rowsort
SELECT ALL 88 * - 81 * + - 46
----
327888

query I rowsort
SELECT ALL - 97 * - 87 AS col2
----
8439

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2325
SELECT 78 + - - ( - 25 ) + - CASE + + 71 WHEN - - 22 THEN NULL ELSE + 30 - + SUM( ALL - + 21 ) END DIV 85 * + 94 + + 36 * 53 AS col0
----
1961

skipif mysql # not compatible
query I rowsort label-2325
SELECT 78 + - - ( - 25 ) + - CASE + + 71 WHEN - - 22 THEN NULL ELSE + 30 - + SUM ( ALL - + 21 ) END / 85 * + 94 + + 36 * 53 AS col0
----
1961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2326
SELECT + CAST( - ( + - 32 ) AS SIGNED ) DIV + - MAX( ALL + + 99 ) + - COUNT( * ) DIV - - 72 AS col2, COUNT( * ) * - MAX( - + ( - 39 ) )
----
0
-39

skipif mysql # not compatible
query II rowsort label-2326
SELECT + CAST ( - ( + - 32 ) AS INTEGER ) / + - MAX ( ALL + + 99 ) + - COUNT ( * ) / - - 72 AS col2, COUNT ( * ) * - MAX ( - + ( - 39 ) )
----
0
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2327
SELECT - CASE - + 78 WHEN CASE - + 72 WHEN 48 * 33 THEN - + 23 WHEN + 51 THEN - COUNT( * ) ELSE + NULLIF ( - 70, + 20 ) END THEN 0 WHEN 71 THEN - 7 ELSE - + 53 DIV - 52 END * - 34 - + 39 AS col1, 36 DIV COALESCE ( + - 13, - 22 - 78 ) * - + 46 AS col0
----
-5
92

skipif mysql # not compatible
query II rowsort label-2327
SELECT - CASE - + 78 WHEN CASE - + 72 WHEN 48 * 33 THEN - + 23 WHEN + 51 THEN - COUNT ( * ) ELSE + NULLIF ( - 70, + 20 ) END THEN 0 WHEN 71 THEN - 7 ELSE - + 53 / - 52 END * - 34 - + 39 AS col1, 36 / COALESCE ( + - 13, - 22 - 78 ) * - + 46 AS col0
----
-5
92

query II rowsort
SELECT 97 * - + 93 AS col2, 12 * + - 56 + - - 26
----
-9021
-646

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2329
SELECT 97 / + - CAST( NULL AS DECIMAL ) / - 7 + + 56 AS col0, + 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-2329
SELECT 97 / + - CAST ( NULL AS REAL ) / - 7 + + 56 AS col0, + 8
----
NULL
8

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

skipif mysql # not compatible
query I rowsort label-2330
SELECT COUNT ( * ) / 16 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2331
SELECT 35 DIV 7 + + 27
----
32

skipif mysql # not compatible
query I rowsort label-2331
SELECT 35 / 7 + + 27
----
32

query I rowsort
SELECT ALL 75 * - ( - 67 ) col0
----
5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2333
SELECT COALESCE ( - 60, + + 45 + + 85 + - - 45 * - CAST( + SUM( DISTINCT + 34 ) AS SIGNED ) / - CASE 75 WHEN + COALESCE ( - - 79, - - 29 / + 15 - + ( 45 ) ) * - 97 + + 49 - - COUNT( * ) THEN NULL WHEN 64 / 50 THEN NULL WHEN - 70 * - + 1 * 17 + - - COUNT( * ) THEN CAST( 51 AS SIGNED ) ELSE NULL END, + 31 * - + 27 + + + COALESCE ( - 43, + 21 ), - - 2 - + 39 ) * ( 71 ) * + 93 * + + CASE CAST( NULL AS SIGNED ) WHEN + 22 THEN + ( + COUNT( * ) ) * 54 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT COALESCE ( - 60, + + 45 + + 85 + - - 45 * - CAST ( + SUM ( DISTINCT + 34 ) AS INTEGER ) / - CASE 75 WHEN + COALESCE ( - - 79, - - 29 / + 15 - + ( 45 ) ) * - 97 + + 49 - - COUNT ( * ) THEN NULL WHEN 64 / 50 THEN NULL WHEN - 70 * - + 1 * 17 + - - COUNT ( * ) THEN CAST ( 51 AS INTEGER ) ELSE NULL END, + 31 * - + 27 + + + COALESCE ( - 43, + 21 ), - - 2 - + 39 ) * ( 71 ) * + 93 * + + CASE CAST ( NULL AS INTEGER ) WHEN + 22 THEN + ( + COUNT ( * ) ) * 54 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2335
SELECT DISTINCT ( - 71 ) + ( + COALESCE ( - - 48, - 36, NULLIF ( 19, - 50 ), - 70 - + 37 ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT ( - 71 ) + ( + COALESCE ( - - 48, - 36, NULLIF ( 19, - 50 ), - 70 - + 37 ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 43 * + 69 + 75 * - 10 + - + 75 AS col0
----
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT ALL - 2 + MAX( DISTINCT - 66 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL - 2 + MAX ( DISTINCT - 66 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT + + MIN( ALL - + 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-2338
SELECT + + MIN ( ALL - + 59 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL + 33 + + CASE - 49 WHEN 44 THEN NULL ELSE COUNT( ALL - 95 ) END AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + 33 + + CASE - 49 WHEN 44 THEN NULL ELSE COUNT ( ALL - 95 ) END AS col1
----
34

query I rowsort
SELECT DISTINCT 31 + + 5 * 72
----
391

query I rowsort
SELECT ALL + 52 + - 2 - - - ( - 48 ) + 84 AS col0
----
182

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2342
SELECT DISTINCT - 94 + + + 45 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT - 94 + + + 45 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 83 * - + 26 AS col2
----
-2158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2344
SELECT - CAST( + - 95 AS SIGNED ) * - MAX( ALL + - 78 ) col2
----
7410

skipif mysql # not compatible
query I rowsort label-2344
SELECT - CAST ( + - 95 AS INTEGER ) * - MAX ( ALL + - 78 ) col2
----
7410

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ALL COUNT( - 58 ) + + COALESCE ( 4, - + 98 * - 71, 74 ) * - - 37 AS col1
----
149

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL COUNT ( - 58 ) + + COALESCE ( 4, - + 98 * - 71, 74 ) * - - 37 AS col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT COUNT( * ) - - - 36 * MIN( DISTINCT + 98 ) AS col1
----
-3527

skipif mysql # not compatible
query I rowsort label-2346
SELECT COUNT ( * ) - - - 36 * MIN ( DISTINCT + 98 ) AS col1
----
-3527

query I rowsort
SELECT + 59 - + + 29
----
30

query I rowsort
SELECT 18 * + 15 AS col2
----
270

query I rowsort
SELECT ALL + + 29 * - 22
----
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT ALL - - MIN( DISTINCT 97 ) * 29 AS col2
----
2813

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL - - MIN ( DISTINCT 97 ) * 29 AS col2
----
2813

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT - COUNT( * ) - + 9 * NULLIF ( 78, - - COUNT( * ) ) + - + 46 col2
----
-749

skipif mysql # not compatible
query I rowsort label-2351
SELECT - COUNT ( * ) - + 9 * NULLIF ( 78, - - COUNT ( * ) ) + - + 46 col2
----
-749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2352
SELECT DISTINCT + 7 * + COUNT( * ) - - + ( - 95 ) - - COALESCE ( + + 57, + SUM( - 88 ) * SUM( DISTINCT 10 ) * - 83 + COUNT( - + 26 ) DIV + - 67 + 83 + + 70 * + CAST( NULL AS SIGNED ) DIV - 66 + + 3 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT + 7 * + COUNT ( * ) - - + ( - 95 ) - - COALESCE ( + + 57, + SUM ( - 88 ) * SUM ( DISTINCT 10 ) * - 83 + COUNT ( - + 26 ) / + - 67 + 83 + + 70 * + CAST ( NULL AS INTEGER ) / - 66 + + 3 ) AS col2
----
-31

query I rowsort
SELECT DISTINCT - 92 - 65 * + 75 * 6 AS col1
----
-29342

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

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL SUM ( ALL + + CAST ( - ( 89 ) AS INTEGER ) )
----
-89

query I rowsort
SELECT 7 * - - 29
----
203

query I rowsort
SELECT ALL + 65 * + 77 AS col0
----
5005

query I rowsort
SELECT 81 + 37 * 13 * + - 38 col1
----
-18197

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2358
SELECT 5, ( + 5 ) DIV + COUNT( * ) + - + 43 AS col1
----
5
-38

skipif mysql # not compatible
query II rowsort label-2358
SELECT 5, ( + 5 ) / + COUNT ( * ) + - + 43 AS col1
----
5
-38

query I rowsort
SELECT 90 + + + 72 + + 60
----
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2360
SELECT COUNT( * ) DIV - ( + SUM( 48 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2360
SELECT COUNT ( * ) / - ( + SUM ( 48 ) )
----
0

query I rowsort
SELECT 35 - - 41 + - 10
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2362
SELECT 12 * COUNT( * ) * - ( MAX( - - 26 ) ) * 75 + + 43 + - + 47 col1, + COUNT( * )
----
-23404
1

skipif mysql # not compatible
query II rowsort label-2362
SELECT 12 * COUNT ( * ) * - ( MAX ( - - 26 ) ) * 75 + + 43 + - + 47 col1, + COUNT ( * )
----
-23404
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT ALL - COUNT( ALL - 40 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL - COUNT ( ALL - 40 ) col1
----
-1

query I rowsort
SELECT - 5 * + ( + 81 )
----
-405

query II rowsort
SELECT DISTINCT 16 * + 51 * 4 AS col0, 21
----
3264
21

query I rowsort
SELECT NULLIF ( + 8, - 7 ) AS col1
----
8

query I rowsort
SELECT ALL + 46 * - - 82 + + 43
----
3815

query I rowsort
SELECT - 93 - 28 + - 27 * - 71 * - 14 * - 65 + + ( 34 ) * 91 AS col2
----
1747443

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT COALESCE ( - COUNT( DISTINCT - 13 ), 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-2369
SELECT COALESCE ( - COUNT ( DISTINCT - 13 ), 24 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT CASE - + 74 WHEN - 84 + - - CASE 97 WHEN - 28 / + 88 * - 72 + ( + 68 ) THEN + + 27 * - 7 WHEN + NULLIF ( - 49, - 59 ) THEN - 34 * - 74 + + COUNT( * ) - + + 22 + 59 * 30 + + ( - 17 ) / + 56 ELSE NULL END THEN - 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2370
SELECT CASE - + 74 WHEN - 84 + - - CASE 97 WHEN - 28 / + 88 * - 72 + ( + 68 ) THEN + + 27 * - 7 WHEN + NULLIF ( - 49, - 59 ) THEN - 34 * - 74 + + COUNT ( * ) - + + 22 + 59 * 30 + + ( - 17 ) / + 56 ELSE NULL END THEN - 33 END
----
NULL

query I rowsort
SELECT - 69 + + 56 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT + SUM( ALL + 97 ) * + - 68 AS col2
----
-6596

skipif mysql # not compatible
query I rowsort label-2372
SELECT + SUM ( ALL + 97 ) * + - 68 AS col2
----
-6596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2373
SELECT DISTINCT 44 * - 36 * + 36 + - CASE + - COUNT( ALL - 6 ) WHEN + + 17 - - CAST( - CASE COUNT( * ) WHEN - 96 / + 95 + - AVG ( ALL - 57 ) + 0 THEN NULL ELSE - - 54 END AS SIGNED ) - + ( - COUNT( * ) ) + + - 62 THEN + 19 ELSE NULL END + - 18 + - + 91 - - - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT 44 * - 36 * + 36 + - CASE + - COUNT ( ALL - 6 ) WHEN + + 17 - - CAST ( - CASE COUNT ( * ) WHEN - 96 / + 95 + - AVG ( ALL - 57 ) + 0 THEN NULL ELSE - - 54 END AS INTEGER ) - + ( - COUNT ( * ) ) + + - 62 THEN + 19 ELSE NULL END + - 18 + - + 91 - - - 69 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT ALL + CAST( NULL AS SIGNED ) * - - 24 / 51 + - + 89 - - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 24 / 51 + - + 89 - - 83
----
NULL

query I rowsort
SELECT + 63 - 30 * - 54 * - 86 * + 88 AS col2
----
-12260097

onlyif mysql # DIV for integer division: 
query I rowsort label-2376
SELECT + 77 + - - 94 + + 52 DIV + 31 AS col0
----
172

skipif mysql # not compatible
query I rowsort label-2376
SELECT + 77 + - - 94 + + 52 / + 31 AS col0
----
172

query I rowsort
SELECT ALL + 90 * - - 1 col0
----
90

query I rowsort
SELECT ALL + 88 * + 99 + - 83
----
8629

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT - - COUNT( * ) + - SUM( - 98 )
----
99

skipif mysql # not compatible
query I rowsort label-2379
SELECT - - COUNT ( * ) + - SUM ( - 98 )
----
99

query I rowsort
SELECT + + 41 + 67 AS col0
----
108

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

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

query I rowsort
SELECT + 27 - - 34
----
61

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

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

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

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL 10 - + COUNT ( * ) AS col1
----
9

query I rowsort
SELECT + 93 + 43 AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT DISTINCT + ( - COALESCE ( + SUM( + + 64 ), - - ( - + 68 ) ) ) * + 52 + + 84 col2
----
-3244

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT + ( - COALESCE ( + SUM ( + + 64 ), - - ( - + 68 ) ) ) * + 52 + + 84 col2
----
-3244

query I rowsort
SELECT + 20 + - 35 AS col1
----
-15

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

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

query I rowsort
SELECT - 71 * 57
----
-4047

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT - 47 + 30 * - - COUNT( * ) + 27
----
10

skipif mysql # not compatible
query I rowsort label-2391
SELECT - 47 + 30 * - - COUNT ( * ) + 27
----
10

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2393
SELECT - COUNT( * ) + + - 83 DIV + 31 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2393
SELECT - COUNT ( * ) + + - 83 / + 31 AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT + 35 DIV - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2394
SELECT + 35 / - 54 AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2396
SELECT ALL COALESCE ( - COUNT( ALL - + 24 ), + 35 + + - 58 * + 32 * - 85, + - ( - CAST( NULL AS SIGNED ) ) + + 37 + 27 * + 83, + 11 + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL COALESCE ( - COUNT ( ALL - + 24 ), + 35 + + - 58 * + 32 * - 85, + - ( - CAST ( NULL AS INTEGER ) ) + + 37 + 27 * + 83, + 11 + + COUNT ( * ) )
----
-1

query I rowsort
SELECT - 29 + + 0 col2
----
-29

query I rowsort
SELECT DISTINCT COALESCE ( + - 94, - + 81 )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2399
SELECT ALL ( - CAST( - 73 AS SIGNED ) )
----
73

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL ( - CAST ( - 73 AS INTEGER ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT - COUNT( * ) + - MIN( ALL 60 ) * 35 + + SUM( + 97 )
----
-2004

skipif mysql # not compatible
query I rowsort label-2400
SELECT - COUNT ( * ) + - MIN ( ALL 60 ) * 35 + + SUM ( + 97 )
----
-2004

query I rowsort
SELECT ALL ( 19 ) + - 11 * + 21 + + 38 + - - 69 col2
----
-105

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

query I rowsort
SELECT - 81 * 0 * 52
----
0

query II rowsort
SELECT + 93 + 55 + - 15 * 47, - 39 AS col2
----
-557
-39

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

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

query I rowsort
SELECT + 69 + - 24 + + 78
----
123

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2408
SELECT + COUNT( * ) / ( - + CAST( NULL AS SIGNED ) ) + + - 71 AS col1, 80
----
NULL
80

skipif mysql # not compatible
query II rowsort label-2408
SELECT + COUNT ( * ) / ( - + CAST ( NULL AS INTEGER ) ) + + - 71 AS col1, 80
----
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT 36 * + 6 + - COUNT( * ) * + COUNT( * ) col1
----
215

skipif mysql # not compatible
query I rowsort label-2409
SELECT 36 * + 6 + - COUNT ( * ) * + COUNT ( * ) col1
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT + - 6 * - 64 + - COUNT( * ) * + 65 col1
----
319

skipif mysql # not compatible
query I rowsort label-2410
SELECT + - 6 * - 64 + - COUNT ( * ) * + 65 col1
----
319

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2413
SELECT + 84 + + COUNT( * ), 6 col0
----
85
6

skipif mysql # not compatible
query II rowsort label-2413
SELECT + 84 + + COUNT ( * ), 6 col0
----
85
6

query II rowsort
SELECT - 71 AS col2, + 5 AS col0
----
-71
5

query I rowsort
SELECT DISTINCT 8 * + + 96 - + 86 AS col1
----
682

query I rowsort
SELECT DISTINCT + + 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT ALL - + 95 * - - COUNT( * ) + + 83 + - + 59 col2
----
-71

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL - + 95 * - - COUNT ( * ) + + 83 + - + 59 col2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT ALL - 18 DIV + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL - 18 / + 92 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT + - 79 * COUNT( ALL - + 98 )
----
-79

skipif mysql # not compatible
query I rowsort label-2419
SELECT + - 79 * COUNT ( ALL - + 98 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT + 13 / + - 71 - + CASE - AVG ( - + 73 ) WHEN - 64 THEN + COALESCE ( COUNT( * ), COUNT( * ), 76 * 97 + - + COALESCE ( - SUM( DISTINCT - - 34 ), + 88 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2420
SELECT + 13 / + - 71 - + CASE - AVG ( - + 73 ) WHEN - 64 THEN + COALESCE ( COUNT ( * ), COUNT ( * ), 76 * 97 + - + COALESCE ( - SUM ( DISTINCT - - 34 ), + 88 ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2421
SELECT ALL 83 DIV + ( - 95 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL 83 / + ( - 95 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT + ( + + 68 ) * COALESCE ( + 56, + 47 * 66 ) - + 2 + - COUNT( * )
----
3805

skipif mysql # not compatible
query I rowsort label-2422
SELECT + ( + + 68 ) * COALESCE ( + 56, + 47 * 66 ) - + 2 + - COUNT ( * )
----
3805

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

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

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

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

query I rowsort
SELECT DISTINCT - 85 * - - 69 + - ( - 58 ) * + 67 + + 75 * 18 AS col2
----
-629

query I rowsort
SELECT ALL ( + 56 ) * - 25
----
-1400

query I rowsort
SELECT 25 - - 39 * 50 AS col2
----
1975

query I rowsort
SELECT ALL ( + 25 ) + + 66
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2429
SELECT 57 + - + MIN( 11 ), + 63 * + COUNT( * ) * + 67 col2
----
46
4221

skipif mysql # not compatible
query II rowsort label-2429
SELECT 57 + - + MIN ( 11 ), + 63 * + COUNT ( * ) * + 67 col2
----
46
4221

query I rowsort
SELECT ALL 57 + - - 89 AS col2
----
146

query I rowsort
SELECT ALL - 86 + + 55
----
-31

query I rowsort
SELECT 50 * - - 96 AS col1
----
4800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2433
SELECT ALL 4 / - 20 * + - CAST( CASE WHEN NOT + ( 9 ) IS NOT NULL THEN - + 34 END AS SIGNED ) * - + ( + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL 4 / - 20 * + - CAST ( CASE WHEN NOT + ( 9 ) IS NOT NULL THEN - + 34 END AS INTEGER ) * - + ( + 65 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2434
SELECT 57 DIV 52 col0, + 43 AS col2
----
1
43

skipif mysql # not compatible
query II rowsort label-2434
SELECT 57 / 52 col0, + 43 AS col2
----
1
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT + ( + 91 ) * ( CAST( - 56 AS SIGNED ) ) + + 40
----
-5056

skipif mysql # not compatible
query I rowsort label-2435
SELECT + ( + 91 ) * ( CAST ( - 56 AS INTEGER ) ) + + 40
----
-5056

query I rowsort
SELECT ALL - COALESCE ( - - 49, - 33 ) AS col0
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2437
SELECT - + 30 DIV - - 77 * MIN( ALL - 76 ) - - 89 - COUNT( - + 9 ), + 84 AS col0
----
88
84

skipif mysql # not compatible
query II rowsort label-2437
SELECT - + 30 / - - 77 * MIN ( ALL - 76 ) - - 89 - COUNT ( - + 9 ), + 84 AS col0
----
88
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT + 89 * - 99 - + - 72 * + MAX( - 93 )
----
-15507

skipif mysql # not compatible
query I rowsort label-2438
SELECT + 89 * - 99 - + - 72 * + MAX ( - 93 )
----
-15507

onlyif mysql # DIV for integer division: 
query I rowsort label-2439
SELECT 34 + - - 15 DIV + 54
----
34

skipif mysql # not compatible
query I rowsort label-2439
SELECT 34 + - - 15 / + 54
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-2440
SELECT 77 DIV + 28 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2440
SELECT 77 / + 28 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2441
SELECT + 27 DIV - 1 * - - COUNT( * ) - + + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-2441
SELECT + 27 / - 1 * - - COUNT ( * ) - + + COUNT ( * )
----
-28

query I rowsort
SELECT DISTINCT - - NULLIF ( - 91, + - 26 )
----
-91

query I rowsort
SELECT 26 * + 50 col2
----
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT - 28 + - COALESCE ( - + 73, 93 * COUNT( * ) + 40, - 75, + COUNT( * ) ) + + 53 * 78 - + 48 AS col0
----
4131

skipif mysql # not compatible
query I rowsort label-2444
SELECT - 28 + - COALESCE ( - + 73, 93 * COUNT ( * ) + 40, - 75, + COUNT ( * ) ) + + 53 * 78 - + 48 AS col0
----
4131

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

skipif mysql # not compatible
query I rowsort label-2445
SELECT - 2 * + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL - 28 * - 96 col0, CASE + 88 WHEN + - 8 THEN - 92 * + 97 + - 48 ELSE NULL END
----
2688
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2447
SELECT 75 + + - 58 AS col2, ( - + 87 ) DIV + 9 DIV - COUNT( * ) - COUNT( * ) + 86 AS col2
----
17
94

skipif mysql # not compatible
query II rowsort label-2447
SELECT 75 + + - 58 AS col2, ( - + 87 ) / + 9 / - COUNT ( * ) - COUNT ( * ) + 86 AS col2
----
17
94

query I rowsort
SELECT 9 * + - 3 * - 14
----
378

query I rowsort
SELECT ALL 6 + + - 67
----
-61

query I rowsort
SELECT ALL 24 + + + 50 AS col1
----
74

query I rowsort
SELECT DISTINCT - 34 + + - 36
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT COUNT( * ) * 21 * + 61
----
1281

skipif mysql # not compatible
query I rowsort label-2452
SELECT COUNT ( * ) * 21 * + 61
----
1281

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT COUNT( * ) + + - COUNT( * ) + - 15 + - MAX( DISTINCT + + 86 ) AS col2
----
-101

skipif mysql # not compatible
query I rowsort label-2453
SELECT COUNT ( * ) + + - COUNT ( * ) + - 15 + - MAX ( DISTINCT + + 86 ) AS col2
----
-101

query I rowsort
SELECT ALL 16 * + 3 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL 56 - - COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL 56 - - COUNT ( * ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT COALESCE ( COALESCE ( + 3, 19, + 76 ), - 84, + + MAX( DISTINCT 84 ) ) + 56
----
59

skipif mysql # not compatible
query I rowsort label-2456
SELECT COALESCE ( COALESCE ( + 3, 19, + 76 ), - 84, + + MAX ( DISTINCT 84 ) ) + 56
----
59

query I rowsort
SELECT - 87 - 1
----
-88

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

query II rowsort
SELECT ALL - 82, 25 AS col1
----
-82
25

query I rowsort
SELECT 41 * + 49 * - 29 * - - 48 AS col0
----
-2796528

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT - 3 * 49 * - - COUNT( * )
----
-147

skipif mysql # not compatible
query I rowsort label-2463
SELECT - 3 * 49 * - - COUNT ( * )
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT COUNT( * ) + + 65 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2464
SELECT COUNT ( * ) + + 65 AS col2
----
66

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

skipif mysql # not compatible
query I rowsort label-2465
SELECT + COUNT ( * ) * - 93 * + 87 AS col2
----
-8091

query I rowsort
SELECT 89 * - 63 col2
----
-5607

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2467
SELECT DISTINCT + + 53 DIV + - COUNT( * ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT + + 53 / + - COUNT ( * ) col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT + AVG ( CASE - + ( - 26 ) WHEN - 76 THEN NULL ELSE + 28 END ) / - 27 / - CASE 17 WHEN MAX( ALL - ( + NULLIF ( + 24, + 44 ) ) ) + - 26 + - 95 * - - 76 * + 24 + 58 + 21 * - - 25 * + + 22 * - 44 * + + MAX( ALL - 54 ) * + COALESCE ( + 16, + - 66, - 8 ) + + - 30 / - - 74 * + - COUNT( * ) THEN + - 97 END * 86 + + ( - COUNT( + 74 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2468
SELECT + AVG ( CASE - + ( - 26 ) WHEN - 76 THEN NULL ELSE + 28 END ) / - 27 / - CASE 17 WHEN MAX ( ALL - ( + NULLIF ( + 24, + 44 ) ) ) + - 26 + - 95 * - - 76 * + 24 + 58 + 21 * - - 25 * + + 22 * - 44 * + + MAX ( ALL - 54 ) * + COALESCE ( + 16, + - 66, - 8 ) + + - 30 / - - 74 * + - COUNT ( * ) THEN + - 97 END * 86 + + ( - COUNT ( + 74 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 97 + 43 col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT ALL - CAST( NULL AS SIGNED ) + 16 + - + 57 + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL - CAST ( NULL AS INTEGER ) + 16 + - + 57 + + 25
----
NULL

query II rowsort
SELECT - 88 * - 97 AS col1, - 99
----
8536
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT ALL SUM( DISTINCT 33 )
----
33

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL SUM ( DISTINCT 33 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2474
SELECT - 52 - 38 * COUNT( * ) + - CAST( NULL AS SIGNED ) * NULLIF ( + - 89, + + SUM( 33 ) ) / + + CASE + 68 WHEN 88 + + - 95 + + ( 61 ) * - 50 + 82 THEN + COUNT( * ) WHEN - - 0 * + + 80 * + + COUNT( * ) * + + CASE + 44 WHEN + ( - 57 ) - + - 58 / 18 * ( - 24 ) * - + 35 THEN NULL WHEN - 87 THEN + - COUNT( * ) / + 34 + - ( + 68 ) + + 98 WHEN - 46 + - 99 THEN NULL ELSE NULL END THEN - 76 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT - 52 - 38 * COUNT ( * ) + - CAST ( NULL AS INTEGER ) * NULLIF ( + - 89, + + SUM ( 33 ) ) / + + CASE + 68 WHEN 88 + + - 95 + + ( 61 ) * - 50 + 82 THEN + COUNT ( * ) WHEN - - 0 * + + 80 * + + COUNT ( * ) * + + CASE + 44 WHEN + ( - 57 ) - + - 58 / 18 * ( - 24 ) * - + 35 THEN NULL WHEN - 87 THEN + - COUNT ( * ) / + 34 + - ( + 68 ) + + 98 WHEN - 46 + - 99 THEN NULL ELSE NULL END THEN - 76 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT - 61 * 12 * + + 96 + - COUNT( * ) col2
----
-70273

skipif mysql # not compatible
query I rowsort label-2475
SELECT - 61 * 12 * + + 96 + - COUNT ( * ) col2
----
-70273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2476
SELECT + ( 56 ) + + 68 + - CAST( NULL AS SIGNED ) + - ( + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2476
SELECT + ( 56 ) + + 68 + - CAST ( NULL AS INTEGER ) + - ( + 56 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT ALL - 85 - - - CAST( + 68 AS SIGNED ) + + + 5 AS col1
----
-148

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL - 85 - - - CAST ( + 68 AS INTEGER ) + + + 5 AS col1
----
-148

query I rowsort
SELECT - 22 * - 49 col0
----
1078

query I rowsort
SELECT ALL - 13 * 73 * 85
----
-80665

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT ALL SUM( DISTINCT - 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL SUM ( DISTINCT - 35 ) AS col0
----
-35

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2482
SELECT - MAX( 73 ) - 0 + - 42 + 28 * - ( CASE - - 27 WHEN 71 THEN NULL WHEN - 79 THEN - 29 END ) * + NULLIF ( + 92, - 10 ) * + ( - CAST( NULL AS DECIMAL ) ) + + + AVG ( DISTINCT - 18 ) + + 27 + + 66 * + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT - MAX ( 73 ) - 0 + - 42 + 28 * - ( CASE - - 27 WHEN 71 THEN NULL WHEN - 79 THEN - 29 END ) * + NULLIF ( + 92, - 10 ) * + ( - CAST ( NULL AS REAL ) ) + + + AVG ( DISTINCT - 18 ) + + 27 + + 66 * + 6 AS col1
----
NULL

query I rowsort
SELECT - 51 + + + 93 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT DISTINCT CASE - - 76 WHEN - 64 * + 24 THEN 32 + 2 ELSE MIN( - ( - 91 ) ) END
----
91

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT CASE - - 76 WHEN - 64 * + 24 THEN 32 + 2 ELSE MIN ( - ( - 91 ) ) END
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT - COUNT( * ) + + + 65 + - - ( - 78 ) * + 40 + 12 * + 91 + - 43 - + 38
----
-2045

skipif mysql # not compatible
query I rowsort label-2485
SELECT - COUNT ( * ) + + + 65 + - - ( - 78 ) * + 40 + 12 * + 91 + - 43 - + 38
----
-2045

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT - - 99 + - COUNT( ALL - 3 ) + + - COUNT( * ) * - COUNT( * ) * - + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-2486
SELECT - - 99 + - COUNT ( ALL - 3 ) + + - COUNT ( * ) * - COUNT ( * ) * - + COUNT ( * )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2487
SELECT + - SUM( + CAST( NULL AS SIGNED ) ) - NULLIF ( - CAST( 77 AS SIGNED ), + 52 ) - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT + - SUM ( + CAST ( NULL AS INTEGER ) ) - NULLIF ( - CAST ( 77 AS INTEGER ), + 52 ) - + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 13 * + + 88 AS col1
----
1144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2489
SELECT ALL + COUNT( * ) DIV - MAX( DISTINCT + - 93 ) - - 81 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL + COUNT ( * ) / - MAX ( DISTINCT + - 93 ) - - 81 AS col0
----
81

query I rowsort
SELECT + 21 * + 55 - 50 AS col2
----
1105

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT ALL - - 51 * + NULLIF ( - 44, - - 42 ) + + 90 + - COUNT( * ) * + 27 col0
----
-2181

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL - - 51 * + NULLIF ( - 44, - - 42 ) + + 90 + - COUNT ( * ) * + 27 col0
----
-2181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2492
SELECT ALL 76 * + 94 / + 71 + - + 50 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL 76 * + 94 / + 71 + - + 50 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 81 * + 23 + - + 70 + 49 AS col0
----
1842

query II rowsort
SELECT ALL + - ( - + 75 ) AS col1, - 79
----
75
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2495
SELECT DISTINCT - + NULLIF ( - 98, CAST( NULL AS SIGNED ) + + + 39 + - 14 ) * - 32 + + + 75 AS col1
----
-3061

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT - + NULLIF ( - 98, CAST ( NULL AS INTEGER ) + + + 39 + - 14 ) * - 32 + + + 75 AS col1
----
-3061

query I rowsort
SELECT + 60 + + 4 * + + 6 AS col0
----
84

onlyif mysql # aggregate syntax: 
query III rowsort label-2497
SELECT ALL + COUNT( * ) * - 49 * - 9 + + COUNT( * ) AS col0, 52 AS col0, - 3 * - COUNT( DISTINCT + - 97 )
----
442
52
3

skipif mysql # not compatible
query III rowsort label-2497
SELECT ALL + COUNT ( * ) * - 49 * - 9 + + COUNT ( * ) AS col0, 52 AS col0, - 3 * - COUNT ( DISTINCT + - 97 )
----
442
52
3

query I rowsort
SELECT 16 * - 27 * 66 + + 16
----
-28496

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT - 58 * - CASE + NULLIF ( - CASE + 99 WHEN - COUNT( * ) * - - MAX( ALL - - 15 ) * + 83 + + - 21 THEN 82 ELSE NULL END, + 98 + - 85 ) WHEN - 25 THEN NULL WHEN + 81 / 54 THEN + 26 * - + 64 WHEN 87 THEN NULL END + + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT - 58 * - CASE + NULLIF ( - CASE + 99 WHEN - COUNT ( * ) * - - MAX ( ALL - - 15 ) * + 83 + + - 21 THEN 82 ELSE NULL END, + 98 + - 85 ) WHEN - 25 THEN NULL WHEN + 81 / 54 THEN + 26 * - + 64 WHEN 87 THEN NULL END + + - 5
----
NULL

query I rowsort
SELECT + 53 + 1 * - 6 + 70 AS col0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-2501
SELECT + 29 + 76 DIV - 84 + 70 DIV + - 40
----
28

skipif mysql # not compatible
query I rowsort label-2501
SELECT + 29 + 76 / - 84 + 70 / + - 40
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT + COUNT( * ) * + 76 * ( - - NULLIF ( + + 52, + 71 * 23 * - 30 * - COUNT( * ) + - 38 ) ) AS col2
----
3952

skipif mysql # not compatible
query I rowsort label-2503
SELECT + COUNT ( * ) * + 76 * ( - - NULLIF ( + + 52, + 71 * 23 * - 30 * - COUNT ( * ) + - 38 ) ) AS col2
----
3952

onlyif mysql # DIV for integer division: 
query I rowsort label-2504
SELECT DISTINCT + 44 DIV - + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT + 44 / - + 77 AS col1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2506
SELECT - ( + ( + 40 ) ) + - ( - 37 ) DIV + 38 AS col1, + NULLIF ( + 95, - CAST( NULL AS SIGNED ) * + - 24 ) * + 83 AS col1
----
-40
7885

skipif mysql # not compatible
query II rowsort label-2506
SELECT - ( + ( + 40 ) ) + - ( - 37 ) / + 38 AS col1, + NULLIF ( + 95, - CAST ( NULL AS INTEGER ) * + - 24 ) * + 83 AS col1
----
-40
7885

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT DISTINCT COUNT( - 40 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT COUNT ( - 40 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT - MAX( ALL - - 53 ) + - - 49 + - 19
----
-23

skipif mysql # not compatible
query I rowsort label-2508
SELECT - MAX ( ALL - - 53 ) + - - 49 + - 19
----
-23

query I rowsort
SELECT + 63 * + 74 AS col0
----
4662

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT - CASE + 90 WHEN + - 54 THEN NULLIF ( + 24, - + 6 * + ( - 18 ) + 55 + - 51 * 12 * 59 + + 7 + - 51 + COUNT( * ) * + 59 * - SUM( - 52 ) + + - 93 ) + 4 END * - MAX( - + 85 ) * COUNT( DISTINCT - 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT - CASE + 90 WHEN + - 54 THEN NULLIF ( + 24, - + 6 * + ( - 18 ) + 55 + - 51 * 12 * 59 + + 7 + - 51 + COUNT ( * ) * + 59 * - SUM ( - 52 ) + + - 93 ) + 4 END * - MAX ( - + 85 ) * COUNT ( DISTINCT - 69 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2511
SELECT ALL CASE - 50 WHEN - ( MIN( ( + CAST( NULL AS SIGNED ) ) ) ) THEN - - 72 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL CASE - 50 WHEN - ( MIN ( ( + CAST ( NULL AS INTEGER ) ) ) ) THEN - - 72 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), - 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), - 16 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT - 57 + + COUNT( * ) + + COUNT( * ) * - + 67 AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-2513
SELECT - 57 + + COUNT ( * ) + + COUNT ( * ) * - + 67 AS col2
----
-123

query II rowsort
SELECT 2 AS col0, + 24 AS col2
----
2
24

query I rowsort
SELECT ALL + 55 * 17
----
935

query I rowsort
SELECT ALL 39 * - 52 AS col0
----
-2028

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

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

query I rowsort
SELECT DISTINCT + 64 * 66 AS col1
----
4224

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2519
SELECT - CAST( NULL AS DECIMAL ) + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT - CAST ( NULL AS REAL ) + 59
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT - 55 DIV + 41 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2521
SELECT - 55 / + 41 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2522
SELECT - CAST( - 37 AS SIGNED ) * COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2522
SELECT - CAST ( - 37 AS INTEGER ) * COUNT ( * ) AS col1
----
37

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

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

query I rowsort
SELECT - NULLIF ( - 4, - 24 * - 52 )
----
4

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2527
SELECT ALL 36 DIV + 44 + - 8 * 82
----
-656

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL 36 / + 44 + - 8 * 82
----
-656

query I rowsort
SELECT DISTINCT 48 * + 56
----
2688

query I rowsort
SELECT - 67 * 44 + + 20
----
-2928

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL - CASE COUNT( * ) WHEN 48 * - 23 THEN COUNT( * ) - 26 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL - CASE COUNT ( * ) WHEN 48 * - 23 THEN COUNT ( * ) - 26 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( - CASE 89 WHEN + 7 - 52 THEN 34 WHEN + 2 + + 21 * + 72 THEN NULL END ) + ( 50 ) AS col1
----
NULL

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

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

query I rowsort
SELECT 6 * + 83 AS col0
----
498

query I rowsort
SELECT DISTINCT ( 22 ) - - 50
----
72

query I rowsort
SELECT + 28 * - 65 + - 24
----
-1844

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT COALESCE ( + COUNT( * ), + 5 * + 75, - 64 ) * 36
----
36

skipif mysql # not compatible
query I rowsort label-2536
SELECT COALESCE ( + COUNT ( * ), + 5 * + 75, - 64 ) * 36
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2537
SELECT ( + NULLIF ( 65, - 78 ) ) DIV 56
----
1

skipif mysql # not compatible
query I rowsort label-2537
SELECT ( + NULLIF ( 65, - 78 ) ) / 56
----
1

query I rowsort
SELECT DISTINCT 28 * 16
----
448

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT 76 DIV + 21 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2539
SELECT 76 / + 21 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT 95 * 53 + + COUNT( * ) AS col1
----
5036

skipif mysql # not compatible
query I rowsort label-2540
SELECT 95 * 53 + + COUNT ( * ) AS col1
----
5036

query I rowsort
SELECT ALL 39 * + 32
----
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT ALL 98 * - COALESCE ( - 65, - COUNT( * ), 72 )
----
6370

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL 98 * - COALESCE ( - 65, - COUNT ( * ), 72 )
----
6370

query I rowsort
SELECT ALL + 50 + 76 AS col2
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-2544
SELECT ALL - 96 DIV 3 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL - 96 / 3 AS col1
----
-32

query I rowsort
SELECT + 3 - + 2 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2546
SELECT ALL 82 + 42 DIV 48
----
82

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL 82 + 42 / 48
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT DISTINCT + 61 + 78 * + COUNT( * ) col0
----
139

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT + 61 + 78 * + COUNT ( * ) col0
----
139

query I rowsort
SELECT - 69 + 30
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT - MAX( + ( 89 ) ) * 28
----
-2492

skipif mysql # not compatible
query I rowsort label-2549
SELECT - MAX ( + ( 89 ) ) * 28
----
-2492

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT + ( + 1 ) * - MIN( + 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-2550
SELECT + ( + 1 ) * - MIN ( + 67 )
----
-67

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

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT 66 + - COUNT ( * ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT ALL + - COUNT( * ) + 69 * 61 AS col1
----
4208

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL + - COUNT ( * ) + 69 * 61 AS col1
----
4208

query I rowsort
SELECT + ( 83 ) * + 76 col0
----
6308

query I rowsort
SELECT DISTINCT - 67 + + 44 AS col0
----
-23

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

skipif mysql # not compatible
query I rowsort label-2555
SELECT COUNT ( - 65 )
----
1

query I rowsort
SELECT ALL - 18 - - 93
----
75

query I rowsort
SELECT - ( + 98 ) + 41 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT 26 * 79 + COUNT( * )
----
2055

skipif mysql # not compatible
query I rowsort label-2558
SELECT 26 * 79 + COUNT ( * )
----
2055

query I rowsort
SELECT 44 * + 60 AS col1
----
2640

query I rowsort
SELECT ALL 94 * 38
----
3572

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2561
SELECT 50 + - - 51 DIV + COUNT( * )
----
101

skipif mysql # not compatible
query I rowsort label-2561
SELECT 50 + - - 51 / + COUNT ( * )
----
101

query I rowsort
SELECT ALL - 54 * 56 AS col2
----
-3024

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT SUM( - 47 ) + COUNT( 4 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-2564
SELECT SUM ( - 47 ) + COUNT ( 4 ) AS col2
----
-46

query I rowsort
SELECT CASE + 34 WHEN 52 + + 82 THEN + 0 END * 97 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 81 * 62
----
5022

query I rowsort
SELECT 90 * 31 + 86 AS col0
----
2876

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT + COUNT( * ) * + 93 - + COUNT( * ) col0
----
92

skipif mysql # not compatible
query I rowsort label-2568
SELECT + COUNT ( * ) * + 93 - + COUNT ( * ) col0
----
92

query I rowsort
SELECT 56 * - 76
----
-4256

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

query I rowsort
SELECT 69 * - 29 * - 27
----
54027

query I rowsort
SELECT ALL - 64 + 98 AS col1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2573
SELECT COUNT( - - ( + 80 ) ) + ( + 31 ) DIV 91
----
1

skipif mysql # not compatible
query I rowsort label-2573
SELECT COUNT ( - - ( + 80 ) ) + ( + 31 ) / 91
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2574
SELECT ALL MAX( DISTINCT + NULLIF ( + CAST( NULL AS DECIMAL ), 65 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL MAX ( DISTINCT + NULLIF ( + CAST ( NULL AS REAL ), 65 ) ) col0
----
NULL

query I rowsort
SELECT DISTINCT 50 + 30
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2576
SELECT COALESCE ( + ( + COUNT( * ) ), 29, NULLIF ( 24, - 40 * - 25 ) DIV ( 10 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2576
SELECT COALESCE ( + ( + COUNT ( * ) ), 29, NULLIF ( 24, - 40 * - 25 ) / ( 10 ) ) col1
----
1

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

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

query I rowsort
SELECT ALL 71 + 92 * + 30 AS col2
----
2831

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT MIN( - 64 ) + 53 col1
----
-11

skipif mysql # not compatible
query I rowsort label-2579
SELECT MIN ( - 64 ) + 53 col1
----
-11

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

skipif mysql # not compatible
query I rowsort label-2580
SELECT - ( - + COUNT ( * ) ) * + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - - 95, 56 ) * 26
----
2470

query I rowsort
SELECT ALL - ( - ( 17 ) ) * + 82 AS col2
----
1394

query I rowsort
SELECT + 63 + - - 99 * 59
----
5904

onlyif mysql # DIV for integer division: 
query I rowsort label-2584
SELECT 61 DIV NULLIF ( 6, 10 + - 30 ) + 15
----
25

skipif mysql # not compatible
query I rowsort label-2584
SELECT 61 / NULLIF ( 6, 10 + - 30 ) + 15
----
25

query I rowsort
SELECT + 99 + 30 AS col0
----
129

query I rowsort
SELECT CASE 46 WHEN + 50 THEN - 10 END
----
NULL

query I rowsort
SELECT - 26 + + 70 * ( - 48 ) AS col2
----
-3386

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

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 15 + + 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT + COUNT( - 64 ) * - 2 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2589
SELECT + COUNT ( - 64 ) * - 2 AS col2
----
-2

query I rowsort
SELECT - + 66 col2
----
-66

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

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

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

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

query I rowsort
SELECT + 6 * 81 AS col1
----
486

query I rowsort
SELECT ALL - 58 * + ( 80 )
----
-4640

onlyif mysql # DIV for integer division: 
query I rowsort label-2595
SELECT - 24 DIV 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2595
SELECT - 24 / 49 AS col0
----
0

query I rowsort
SELECT ALL 64 * - 36 AS col0
----
-2304

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

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

query I rowsort
SELECT COALESCE ( + 48, - 12, 27 * + 34 ) AS col1
----
48

query I rowsort
SELECT ALL + COALESCE ( - 88, - 35 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT CASE + - COALESCE ( + 22, - 46 * + COUNT( * ), 63 ) WHEN - 77 THEN NULL WHEN - 90 THEN + SUM( DISTINCT 66 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT CASE + - COALESCE ( + 22, - 46 * + COUNT ( * ), 63 ) WHEN - 77 THEN NULL WHEN - 90 THEN + SUM ( DISTINCT 66 ) END AS col0
----
NULL

query I rowsort
SELECT COALESCE ( + + 1, - 40, 65 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT - COUNT( * ) * - COUNT( ALL 26 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2602
SELECT - COUNT ( * ) * - COUNT ( ALL 26 ) AS col2
----
1

query I rowsort
SELECT - 40 * + 13
----
-520

query I rowsort
SELECT NULLIF ( ( - + 83 ), + 92 + 7 * + 56 ) AS col1
----
-83

onlyif mysql # DIV for integer division: 
query II rowsort label-2605
SELECT DISTINCT + 98 AS col1, + ( + 62 ) DIV 36 + 38 AS col2
----
98
39

skipif mysql # not compatible
query II rowsort label-2605
SELECT DISTINCT + 98 AS col1, + ( + 62 ) / 36 + 38 AS col2
----
98
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2606
SELECT - SUM( DISTINCT + 79 ) / - CAST( NULL AS SIGNED ) + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2606
SELECT - SUM ( DISTINCT + 79 ) / - CAST ( NULL AS INTEGER ) + 71 AS col1
----
NULL

query I rowsort
SELECT ALL 0 * 80 + 44 - 78 * 63 AS col1
----
-4870

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2609
SELECT ALL + 23 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL + 23 / 91
----
0

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

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

query I rowsort
SELECT ALL 98 * 80 AS col2
----
7840

query I rowsort
SELECT - 39 * - + 66 AS col1
----
2574

query I rowsort
SELECT - + 89 + + - 12 AS col2
----
-101

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2615
SELECT ALL CASE - - 93 WHEN + - 15 THEN NULL WHEN COUNT( * ) + + COUNT( * ) THEN NULL WHEN ( - MAX( DISTINCT 42 ) ) * - 25 THEN - ( - CAST( ( 15 ) AS SIGNED ) ) - + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL CASE - - 93 WHEN + - 15 THEN NULL WHEN COUNT ( * ) + + COUNT ( * ) THEN NULL WHEN ( - MAX ( DISTINCT 42 ) ) * - 25 THEN - ( - CAST ( ( 15 ) AS INTEGER ) ) - + 52 END
----
NULL

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

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

query I rowsort
SELECT - + 39 + + + 25 + 36
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2618
SELECT + + 33 * + + CASE + 78 WHEN - 32 THEN COUNT( * ) DIV CASE - 41 WHEN - 97 - 14 * COUNT( * ) THEN 21 ELSE NULL END ELSE - 66 END + + 8 * + 72 AS col2
----
-1602

skipif mysql # not compatible
query I rowsort label-2618
SELECT + + 33 * + + CASE + 78 WHEN - 32 THEN COUNT ( * ) / CASE - 41 WHEN - 97 - 14 * COUNT ( * ) THEN 21 ELSE NULL END ELSE - 66 END + + 8 * + 72 AS col2
----
-1602

query II rowsort
SELECT DISTINCT + 61, - 89 AS col1
----
61
-89

query I rowsort
SELECT DISTINCT 0 + - 22 AS col2
----
-22

query I rowsort
SELECT ALL + 53 - - - 89 AS col0
----
-36

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

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

query I rowsort
SELECT ALL 27 * - - 72 AS col0
----
1944

query II rowsort
SELECT - + 2, 55 col2
----
-2
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT - - CASE + MAX( - 90 ) WHEN 49 THEN NULLIF ( 21, - COUNT( * ) ) WHEN 57 / - 9 THEN NULL END - + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT - - CASE + MAX ( - 90 ) WHEN 49 THEN NULLIF ( 21, - COUNT ( * ) ) WHEN 57 / - 9 THEN NULL END - + 87 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2626
SELECT - - 12 * - - 75 / CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT - - 12 * - - 75 / CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + + 7 * + ( - 1 ) AS col0
----
-7

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

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

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

query I rowsort
SELECT - ( 1 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT ALL + - MAX( - ( - 80 ) ) - 60 * 4 AS col2
----
-320

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL + - MAX ( - ( - 80 ) ) - 60 * 4 AS col2
----
-320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT + 99 - + COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-2633
SELECT + 99 - + COUNT ( * ) AS col0
----
98

query I rowsort
SELECT ALL 88 * - - 41 * + 82 AS col0
----
295856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2635
SELECT 27 / + + 35 * CASE + 29 WHEN + 94 * + COUNT( * ) THEN - 89 END / + CAST( NULL AS SIGNED ) + + 76 / ( 53 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2635
SELECT 27 / + + 35 * CASE + 29 WHEN + 94 * + COUNT ( * ) THEN - 89 END / + CAST ( NULL AS INTEGER ) + + 76 / ( 53 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT + COUNT( * ) + - 95 * + NULLIF ( + - 18, - 50 + + 20 ) AS col1
----
1711

skipif mysql # not compatible
query I rowsort label-2636
SELECT + COUNT ( * ) + - 95 * + NULLIF ( + - 18, - 50 + + 20 ) AS col1
----
1711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2637
SELECT + 3 DIV - SUM( 69 ) - + COUNT( - 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-2637
SELECT + 3 / - SUM ( 69 ) - + COUNT ( - 47 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2638
SELECT - COUNT( * ) * - - 55 AS col0, 56
----
-55
56

skipif mysql # not compatible
query II rowsort label-2638
SELECT - COUNT ( * ) * - - 55 AS col0, 56
----
-55
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2639
SELECT ALL 28 DIV - - COALESCE ( + 89, + - 14 + + 80 * - 43 ) * 48 + 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL 28 / - - COALESCE ( + 89, + - 14 + + 80 * - 43 ) * 48 + 70 AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2640
SELECT ALL + 59 DIV 10 + - 46
----
-41

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL + 59 / 10 + - 46
----
-41

query I rowsort
SELECT - 63 + - 10 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT - 58 * 56 + - COUNT( * ) * 29 AS col0
----
-3277

skipif mysql # not compatible
query I rowsort label-2642
SELECT - 58 * 56 + - COUNT ( * ) * 29 AS col0
----
-3277

query I rowsort
SELECT - 56 * 94
----
-5264

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

query I rowsort
SELECT ( 34 ) * + 83 * + 92 + 49
----
259673

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

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT + 74 / 47 * - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT DISTINCT + - ( + - 83 ) * COUNT( * ) - + + 60
----
23

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT + - ( + - 83 ) * COUNT ( * ) - + + 60
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT DISTINCT - NULLIF ( - 39, + NULLIF ( + ( 97 ), 65 * COUNT( * ) + - 46 ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT - NULLIF ( - 39, + NULLIF ( + ( 97 ), 65 * COUNT ( * ) + - 46 ) ) AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2649
SELECT ALL - 82 - + CAST( - 67 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL - 82 - + CAST ( - 67 AS INTEGER )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-2650
SELECT DISTINCT + - 35 DIV + 94 * - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT + - 35 / + 94 * - 58 AS col0
----
0

query II rowsort
SELECT DISTINCT - - 73 - - 57 AS col0, + 51
----
130
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT 39 + + COUNT( * ) + + 48
----
88

skipif mysql # not compatible
query I rowsort label-2652
SELECT 39 + + COUNT ( * ) + + 48
----
88

query I rowsort
SELECT + 25 * - 27
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT - SUM( ALL - CASE - - 39 WHEN - - 3 THEN + 95 END ) * - AVG ( ALL 79 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT - SUM ( ALL - CASE - - 39 WHEN - - 3 THEN + 95 END ) * - AVG ( ALL 79 ) AS col0
----
NULL

query I rowsort
SELECT - 47 + - + 12
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT 62 * ( 31 ) * + - 58 * 23 + + 87 DIV 85
----
-2563947

skipif mysql # not compatible
query I rowsort label-2656
SELECT 62 * ( 31 ) * + - 58 * 23 + + 87 / 85
----
-2563947

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT 50 + COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-2657
SELECT 50 + COUNT ( * ) AS col0
----
51

query I rowsort
SELECT DISTINCT + 28 * - 46 - + + 0 * - + 54 AS col0
----
-1288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2659
SELECT COUNT( * ) * - 51, SUM( ALL - - CAST( NULL AS SIGNED ) ) AS col2
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-2659
SELECT COUNT ( * ) * - 51, SUM ( ALL - - CAST ( NULL AS INTEGER ) ) AS col2
----
-51
NULL

query I rowsort
SELECT + 97 + + 45
----
142

query I rowsort
SELECT DISTINCT NULLIF ( - - 7, + 25 )
----
7

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

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

query I rowsort
SELECT 60 + + + 95
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2664
SELECT ALL 18 col2, - COUNT( * ) DIV - 51
----
18
0

skipif mysql # not compatible
query II rowsort label-2664
SELECT ALL 18 col2, - COUNT ( * ) / - 51
----
18
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2665
SELECT ALL 69 AS col1, + COUNT( * ) + - 30 + COUNT( - 5 ) * 96 AS col0
----
69
67

skipif mysql # not compatible
query II rowsort label-2665
SELECT ALL 69 AS col1, + COUNT ( * ) + - 30 + COUNT ( - 5 ) * 96 AS col0
----
69
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2666
SELECT 34 DIV - 8 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-2666
SELECT 34 / - 8 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT CASE COUNT( * ) WHEN - + 0 + + 58 THEN 68 END + + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT CASE COUNT ( * ) WHEN - + 0 + + 58 THEN 68 END + + 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT 40 * + + COUNT( * ) * + 93 AS col0
----
3720

skipif mysql # not compatible
query I rowsort label-2668
SELECT 40 * + + COUNT ( * ) * + 93 AS col0
----
3720

query I rowsort
SELECT DISTINCT 76 * 54
----
4104

query I rowsort
SELECT ALL 35 + + - 11
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT ( + 7 ) + - - 90 - + + 40 + - COUNT( * ) * + COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2671
SELECT ( + 7 ) + - - 90 - + + 40 + - COUNT ( * ) * + COUNT ( * ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL 28 + SUM( DISTINCT + 98 ) * 5 col2
----
518

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL 28 + SUM ( DISTINCT + 98 ) * 5 col2
----
518

query I rowsort
SELECT DISTINCT + 23 * + 36 AS col0
----
828

query I rowsort
SELECT ALL - 68 + 97 - 2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2675
SELECT DISTINCT 34 + + 43 + 72, + 55 * - 26 * MAX( + 62 ) + 48 * 21 AS col0
----
149
-87652

skipif mysql # not compatible
query II rowsort label-2675
SELECT DISTINCT 34 + + 43 + 72, + 55 * - 26 * MAX ( + 62 ) + 48 * 21 AS col0
----
149
-87652

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT SUM( DISTINCT - - 32 ) * - 67 AS col1
----
-2144

skipif mysql # not compatible
query I rowsort label-2676
SELECT SUM ( DISTINCT - - 32 ) * - 67 AS col1
----
-2144

query I rowsort
SELECT ALL 69 + - NULLIF ( - 43, - 58 + 91 + - 47 ) AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT COUNT( * ) * 67 * + ( + 56 ) - + 41 AS col2
----
3711

skipif mysql # not compatible
query I rowsort label-2678
SELECT COUNT ( * ) * 67 * + ( + 56 ) - + 41 AS col2
----
3711

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT MAX( ALL 68 ) * + 81
----
5508

skipif mysql # not compatible
query I rowsort label-2679
SELECT MAX ( ALL 68 ) * + 81
----
5508

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT DISTINCT COUNT( ALL + 43 ) * + COUNT( * ) * - 30
----
-30

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT COUNT ( ALL + 43 ) * + COUNT ( * ) * - 30
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT ALL 59 - - SUM( + 38 ) * + MAX( + + 14 ) + 95 AS col1
----
686

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL 59 - - SUM ( + 38 ) * + MAX ( + + 14 ) + 95 AS col1
----
686

query I rowsort
SELECT ALL + 95 * - + 15 * NULLIF ( 22, - 12 ) + - 90 * + 70
----
-37650

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ALL - CASE + 91 WHEN 94 * + + 51 + + 12 THEN + ( - 16 ) + COUNT( * ) ELSE + 11 END
----
-11

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL - CASE + 91 WHEN 94 * + + 51 + + 12 THEN + ( - 16 ) + COUNT ( * ) ELSE + 11 END
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2685
SELECT ALL + 51 - - 78 + + + 34 + 86 * - - CAST( COUNT( * ) AS SIGNED ) * 96 AS col2
----
8419

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL + 51 - - 78 + + + 34 + 86 * - - CAST ( COUNT ( * ) AS INTEGER ) * 96 AS col2
----
8419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2686
SELECT - 79 * - NULLIF ( ( - 69 ), + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * COALESCE ( + CAST( - CAST( 89 AS SIGNED ) AS SIGNED ), - CAST( NULL AS SIGNED ), MIN( ALL + 41 ) * - CAST( NULL AS SIGNED ) + + 59 ) ) + 47 AS col2
----
-5404

skipif mysql # not compatible
query I rowsort label-2686
SELECT - 79 * - NULLIF ( ( - 69 ), + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * COALESCE ( + CAST ( - CAST ( 89 AS INTEGER ) AS INTEGER ), - CAST ( NULL AS INTEGER ), MIN ( ALL + 41 ) * - CAST ( NULL AS INTEGER ) + + 59 ) ) + 47 AS col2
----
-5404

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT - 23 + + 28 * - ( COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-2687
SELECT - 23 + + 28 * - ( COUNT ( * ) )
----
-51

query I rowsort
SELECT ALL - - 62 col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT + COUNT( * ) + + 48 * 8 + - 30 * 4
----
265

skipif mysql # not compatible
query I rowsort label-2689
SELECT + COUNT ( * ) + + 48 * 8 + - 30 * 4
----
265

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2692
SELECT ALL - + 82 + + 17 + - 42 DIV 2
----
-86

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL - + 82 + + 17 + - 42 / 2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-2693
SELECT DISTINCT - + 66 DIV - 66 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT - + 66 / - 66 AS col1
----
1

query I rowsort
SELECT ALL - - NULLIF ( - - 89, - 46 + - 6 ) * + 1 * + 43 AS col2
----
3827

query I rowsort
SELECT 41 - - 61 * + + 9 AS col0
----
590

query I rowsort
SELECT ALL + 36 + - ( - 33 ) - 48 AS col1
----
21

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2698
SELECT 45 AS col1, COUNT( * ) + - 63 * - SUM( CAST( NULL AS DECIMAL ) )
----
45
NULL

skipif mysql # not compatible
query II rowsort label-2698
SELECT 45 AS col1, COUNT ( * ) + - 63 * - SUM ( CAST ( NULL AS REAL ) )
----
45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT ALL MAX( ALL 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL MAX ( ALL 28 ) AS col2
----
28

query II rowsort
SELECT 26 col2, + 30
----
26
30

query I rowsort
SELECT ALL + 36 + 54 * - 74 * 40
----
-159804

query I rowsort
SELECT DISTINCT - 82 + 41 + + + 46
----
5

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

query I rowsort
SELECT ALL 81 + - COALESCE ( 31, + - 99 + - + 95 - - 71 ) + 25
----
75

query I rowsort
SELECT ALL - 64 + + ( 49 ) AS col0
----
-15

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

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

query II rowsort
SELECT - 92 AS col0, 41 * + 11
----
-92
451

query I rowsort
SELECT 65 + + 38 * - + 17 + + 25 * - - 48 AS col2
----
619

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

query II rowsort
SELECT + 47, + 68 AS col0
----
47
68

query I rowsort
SELECT ALL - 74 * 41 AS col2
----
-3034

onlyif mysql # aggregate syntax: 
query II rowsort label-2712
SELECT 38 * COUNT( * ) + + 20 + - 92 AS col2, 50 AS col2
----
-34
50

skipif mysql # not compatible
query II rowsort label-2712
SELECT 38 * COUNT ( * ) + + 20 + - 92 AS col2, 50 AS col2
----
-34
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT + 50 * - - CASE - 86 WHEN 87 THEN + COUNT( * ) + + + 97 + + 19 END + 10 * - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2714
SELECT + 50 * - - CASE - 86 WHEN 87 THEN + COUNT ( * ) + + + 97 + + 19 END + 10 * - 41 AS col2
----
NULL

query I rowsort
SELECT ALL - 77 * - 84 - + - ( + - 12 ) AS col0
----
6456

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

query I rowsort
SELECT + + 60 + ( 20 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT ALL + 55 * + 40 * - COUNT( * )
----
-2200

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL + 55 * + 40 * - COUNT ( * )
----
-2200

query II rowsort
SELECT DISTINCT + 90, 34 + ( + ( 74 ) ) + 22 AS col2
----
90
130

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2720
SELECT MIN( ALL + + 6 ) * + MIN( ALL - 40 ) * + 99 * 1 * 70 + 68 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT MIN ( ALL + + 6 ) * + MIN ( ALL - 40 ) * + 99 * 1 * 70 + 68 / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2721
SELECT - SUM( + + 90 ) DIV + + 29 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2721
SELECT - SUM ( + + 90 ) / + + 29 AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2722
SELECT + 63 DIV - - SUM( ALL - + 40 ) - - - 68 col2
----
-69

skipif mysql # not compatible
query I rowsort label-2722
SELECT + 63 / - - SUM ( ALL - + 40 ) - - - 68 col2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-2723
SELECT DISTINCT + 63 DIV 25 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT + 63 / 25 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT + 77 * - COUNT( * ) - COUNT( * ) + + 61 + 66 * - COUNT( * ) * + 97
----
-6419

skipif mysql # not compatible
query I rowsort label-2724
SELECT + 77 * - COUNT ( * ) - COUNT ( * ) + + 61 + 66 * - COUNT ( * ) * + 97
----
-6419

query I rowsort
SELECT - 51 * + + 73 + - 75 + - 56 + - 20 AS col1
----
-3874

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

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

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

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL COUNT ( * ) * + + 63 + + 14
----
77

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

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

query II rowsort
SELECT - 97 AS col2, 90 * - 92
----
-97
-8280

query I rowsort
SELECT DISTINCT - 45 * + 5 + - 62 + ( + 4 ) + - + 11
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT - 47 - - COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2731
SELECT - 47 - - COUNT ( * ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-2732
SELECT DISTINCT - 95 + - 49 - + 54 AS col2, + 22 - - 88 * + COUNT( * ) * 75
----
-198
6622

skipif mysql # not compatible
query II rowsort label-2732
SELECT DISTINCT - 95 + - 49 - + 54 AS col2, + 22 - - 88 * + COUNT ( * ) * 75
----
-198
6622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2733
SELECT ALL - SUM( DISTINCT + - 98 ) DIV 38 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL - SUM ( DISTINCT + - 98 ) / 38 AS col0
----
2

query II rowsort
SELECT - ( 81 ), 60 AS col0
----
-81
60

query I rowsort
SELECT DISTINCT 58 + 1 * - + 98
----
-40

query I rowsort
SELECT - ( + + 14 ) + - - 84
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ALL 93 + - + COUNT( * ) + - 47 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL 93 + - + COUNT ( * ) + - 47 AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2738
SELECT ALL 52 DIV - + 82
----
0

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL 52 / - + 82
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2739
SELECT DISTINCT MAX( + 88 ) AS col1, 23 * 64 - - 37 AS col0
----
88
1509

skipif mysql # not compatible
query II rowsort label-2739
SELECT DISTINCT MAX ( + 88 ) AS col1, 23 * 64 - - 37 AS col0
----
88
1509

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT + 75 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-2740
SELECT + 75 / + 80
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT + ( - + ( - 80 ) ) * + + COUNT( ALL + 96 ) * 8 * - - 72
----
46080

skipif mysql # not compatible
query I rowsort label-2742
SELECT + ( - + ( - 80 ) ) * + + COUNT ( ALL + 96 ) * 8 * - - 72
----
46080

query I rowsort
SELECT - 57 + + 73
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT DISTINCT + MAX( ALL 6 ) * - 99 AS col0
----
-594

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT + MAX ( ALL 6 ) * - 99 AS col0
----
-594

query I rowsort
SELECT ALL COALESCE ( 73, 28, - - 21 ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL 10 * + COUNT( DISTINCT 25 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL 10 * + COUNT ( DISTINCT 25 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2747
SELECT - 21 * 43 AS col0, COUNT( ALL 58 )
----
-903
1

skipif mysql # not compatible
query II rowsort label-2747
SELECT - 21 * 43 AS col0, COUNT ( ALL 58 )
----
-903
1

query I rowsort
SELECT DISTINCT - 88 * + ( + 76 )
----
-6688

query I rowsort
SELECT - 56 * 78 AS col2
----
-4368

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

query I rowsort
SELECT - 82 * + NULLIF ( + 72, + - 71 )
----
-5904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2752
SELECT - MIN( ( + ( - - 84 ) ) ) * CAST( 38 AS SIGNED ) - + - 96 * + MIN( DISTINCT - 94 + + 41 ) AS col2
----
-8280

skipif mysql # not compatible
query I rowsort label-2752
SELECT - MIN ( ( + ( - - 84 ) ) ) * CAST ( 38 AS INTEGER ) - + - 96 * + MIN ( DISTINCT - 94 + + 41 ) AS col2
----
-8280

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT DISTINCT - COUNT( * ) * - - 22 + 83
----
61

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT - COUNT ( * ) * - - 22 + 83
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT DISTINCT - MIN( + - 10 ) * - 10 + - - 53 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT - MIN ( + - 10 ) * - 10 + - - 53 AS col2
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT ALL + 50 * - 90 * + 8 + + CAST( NULL AS SIGNED ) + - 8 + - ( - - 94 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL + 50 * - 90 * + 8 + + CAST ( NULL AS INTEGER ) + - 8 + - ( - - 94 ) AS col1
----
NULL

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

query I rowsort
SELECT ALL 11 * + 1 + + + 51 * - 33 AS col0
----
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL COUNT( * ) * 98 + - 5
----
93

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL COUNT ( * ) * 98 + - 5
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2759
SELECT - - 52 + - - 43, + CASE + 72 WHEN + 53 * 25 * COUNT( * ) THEN NULL WHEN 0 * + MIN( ALL 92 * 42 ) THEN - COALESCE ( - COUNT( * ), 56 ) + 10 WHEN COUNT( * ) THEN NULL END * 38 AS col1
----
95
NULL

skipif mysql # not compatible
query II rowsort label-2759
SELECT - - 52 + - - 43, + CASE + 72 WHEN + 53 * 25 * COUNT ( * ) THEN NULL WHEN 0 * + MIN ( ALL 92 * 42 ) THEN - COALESCE ( - COUNT ( * ), 56 ) + 10 WHEN COUNT ( * ) THEN NULL END * 38 AS col1
----
95
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2761
SELECT - 53 * + CAST( NULL AS SIGNED ) * + 78 + + 28 + 80 - + - 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT - 53 * + CAST ( NULL AS INTEGER ) * + 78 + + 28 + 80 - + - 12 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT SUM( DISTINCT - 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2762
SELECT SUM ( DISTINCT - 8 ) AS col1
----
-8

query I rowsort
SELECT DISTINCT - 49 * + 0 - 7
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2764
SELECT + ( - 65 ) + + 33, CAST( NULL AS SIGNED ) * - + COUNT( * ) col2
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-2764
SELECT + ( - 65 ) + + 33, CAST ( NULL AS INTEGER ) * - + COUNT ( * ) col2
----
-32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT - CASE 14 WHEN - 9 THEN NULL WHEN - 48 * + + 22 - - ( - NULLIF ( - 19, + 63 + CASE - CASE - 61 WHEN 13 * - 21 THEN - 68 END - + 56 * + 70 WHEN - 57 THEN 4 END * 45 ) ) THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT - CASE 14 WHEN - 9 THEN NULL WHEN - 48 * + + 22 - - ( - NULLIF ( - 19, + 63 + CASE - CASE - 61 WHEN 13 * - 21 THEN - 68 END - + 56 * + 70 WHEN - 57 THEN 4 END * 45 ) ) THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 34 * + 60 AS col2
----
2040

query I rowsort
SELECT ALL 46 * + 95
----
4370

onlyif mysql # aggregate syntax: 
query III rowsort label-2768
SELECT + 52 - + COUNT( * ) * - 86 AS col2, 54 AS col0, + 60 * + - 24
----
138
54
-1440

skipif mysql # not compatible
query III rowsort label-2768
SELECT + 52 - + COUNT ( * ) * - 86 AS col2, 54 AS col0, + 60 * + - 24
----
138
54
-1440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2769
SELECT - ( + NULLIF ( + COUNT( * ), - CAST( NULL AS SIGNED ) / - 82 / 38 + - 33 + - + COUNT( * ) * - CASE - 68 - 67 WHEN + 66 * + 82 THEN SUM( 24 ) WHEN 13 THEN 60 * ( + 39 * COUNT( * ) ) ELSE NULL END + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2769
SELECT - ( + NULLIF ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) / - 82 / 38 + - 33 + - + COUNT ( * ) * - CASE - 68 - 67 WHEN + 66 * + 82 THEN SUM ( 24 ) WHEN 13 THEN 60 * ( + 39 * COUNT ( * ) ) ELSE NULL END + COUNT ( * ) ) )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2770
SELECT + CAST( NULL AS DECIMAL ) + + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2770
SELECT + CAST ( NULL AS REAL ) + + - 29
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2771
SELECT DISTINCT + 29 DIV - - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT + 29 / - - 83 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT 10 - 0 - + 52 * 2 + + 42 * COALESCE ( + - COUNT( DISTINCT - 22 ), 79 ) * 35 + - 98 AS col2
----
-1662

skipif mysql # not compatible
query I rowsort label-2772
SELECT 10 - 0 - + 52 * 2 + + 42 * COALESCE ( + - COUNT ( DISTINCT - 22 ), 79 ) * 35 + - 98 AS col2
----
-1662

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT 19 - - - 60 * + MAX( DISTINCT 55 ) + + 72 AS col1
----
-3209

skipif mysql # not compatible
query I rowsort label-2773
SELECT 19 - - - 60 * + MAX ( DISTINCT 55 ) + + 72 AS col1
----
-3209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2774
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( - + COALESCE ( 62, + + 94 / - 21 - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( - + COALESCE ( 62, + + 94 / - 21 - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2775
SELECT DISTINCT MAX( + 33 ) / - - ( ( - SUM( DISTINCT - 6 ) ) ) * 53 * + + 41 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT MAX ( + 33 ) / - - ( ( - SUM ( DISTINCT - 6 ) ) ) * 53 * + + 41 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 12 AS col2, 44
----
12
44

query I rowsort
SELECT 0 + + 54
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2778
SELECT CAST( NULL AS SIGNED ) * + 29 / - MAX( + 69 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT CAST ( NULL AS INTEGER ) * + 29 / - MAX ( + 69 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT ALL + 63 + - 26 DIV 15 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL + 63 + - 26 / 15 AS col0
----
62

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

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL + 47 * - COALESCE ( + + COUNT ( * ), + COUNT ( * ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT - SUM( DISTINCT 70 ) - + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-2781
SELECT - SUM ( DISTINCT 70 ) - + COUNT ( * )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2782
SELECT ALL - + 64 * - CAST( NULL AS SIGNED ) * + - 80 * 46 col1, - 64 / + + CASE - SUM( ALL - 48 ) WHEN + 97 THEN - 29 * - 75 + COUNT( * ) WHEN + CASE - 34 WHEN 0 + + 85 THEN 72 - + 52 END THEN 6 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2782
SELECT ALL - + 64 * - CAST ( NULL AS INTEGER ) * + - 80 * 46 col1, - 64 / + + CASE - SUM ( ALL - 48 ) WHEN + 97 THEN - 29 * - 75 + COUNT ( * ) WHEN + CASE - 34 WHEN 0 + + 85 THEN 72 - + 52 END THEN 6 END
----
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT 68 + CAST ( + 67 AS INTEGER ) AS col1
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2784
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COALESCE ( ( - 17 ), - 81, MAX( DISTINCT + 52 ) ) * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COALESCE ( ( - 17 ), - 81, MAX ( DISTINCT + 52 ) ) * + 79
----
NULL

query I rowsort
SELECT ALL - + 88 + + - 92
----
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2786
SELECT 17 DIV - 68 * + 83 * - COUNT( * ) + - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2786
SELECT 17 / - 68 * + 83 * - COUNT ( * ) + - + COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2787
SELECT ALL + CAST( COUNT( ALL 52 ) AS SIGNED ) + 64 + - 60 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL + CAST ( COUNT ( ALL 52 ) AS INTEGER ) + 64 + - 60 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2788
SELECT + - ( + + CAST( - MAX( + 47 ) AS SIGNED ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-2788
SELECT + - ( + + CAST ( - MAX ( + 47 ) AS INTEGER ) ) AS col2
----
47

query II rowsort
SELECT + 92 AS col2, + 24
----
92
24

query I rowsort
SELECT DISTINCT + 20 + - - 12
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2791
SELECT ALL - 62 + + - 74 / - CAST( + - CAST( 24 AS SIGNED ) AS SIGNED ) * CASE CASE - 89 WHEN - 90 * + 2 + 68 THEN NULL WHEN CASE - ( 92 ) WHEN 79 THEN + 36 END THEN - 88 - 69 END WHEN 78 THEN 73 - + 4 / 8 END + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL - 62 + + - 74 / - CAST ( + - CAST ( 24 AS INTEGER ) AS INTEGER ) * CASE CASE - 89 WHEN - 90 * + 2 + 68 THEN NULL WHEN CASE - ( 92 ) WHEN 79 THEN + 36 END THEN - 88 - 69 END WHEN 78 THEN 73 - + 4 / 8 END + 37 AS col1
----
NULL

query I rowsort
SELECT + ( + 66 ) col2
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2793
SELECT ALL + + COUNT( * ) + ( + + 60 ) AS col1, 74 AS col0
----
61
74

skipif mysql # not compatible
query II rowsort label-2793
SELECT ALL + + COUNT ( * ) + ( + + 60 ) AS col1, 74 AS col0
----
61
74

query II rowsort
SELECT ALL - 29, + 15 AS col1
----
-29
15

query I rowsort
SELECT + 18 * + 1 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT 32 + - 65 + - COUNT( * ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-2796
SELECT 32 + - 65 + - COUNT ( * ) AS col1
----
-34

query I rowsort
SELECT DISTINCT + 68 * - 7 * 53
----
-25228

query I rowsort
SELECT 79 * - 71 AS col1
----
-5609

query I rowsort
SELECT ALL + 77 * + + CASE - ( + 59 ) WHEN - 60 THEN NULL WHEN + 25 THEN + 16 ELSE + 70 + 21 END AS col2
----
7007

query II rowsort
SELECT DISTINCT - 23 * 64 AS col2, + 96 * 17
----
-1472
1632

query I rowsort
SELECT 88 * + 72 AS col0
----
6336

query I rowsort
SELECT ALL + 51 - - + 37 * - 74 * - 98
----
268375

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT 69 DIV COALESCE ( - - 55, - + 30 + - 57 + - - 91 + + 98, + 10 * + 4 ) DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-2803
SELECT 69 / COALESCE ( - - 55, - + 30 + - 57 + - - 91 + + 98, + 10 * + 4 ) / - 51
----
0

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

query I rowsort
SELECT 78 - - + 29 AS col1
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-2806
SELECT 14 * 9 * - + MAX( 75 ) AS col1, - COUNT( * ) col2
----
-9450
-1

skipif mysql # not compatible
query II rowsort label-2806
SELECT 14 * 9 * - + MAX ( 75 ) AS col1, - COUNT ( * ) col2
----
-9450
-1

query I rowsort
SELECT 42 * 31 * + + 71 + 14 AS col2
----
92456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2808
SELECT 4 * - - 36 * NULLIF ( 54, COUNT( DISTINCT - 0 ) ) DIV - + COUNT( * )
----
-7776

skipif mysql # not compatible
query I rowsort label-2808
SELECT 4 * - - 36 * NULLIF ( 54, COUNT ( DISTINCT - 0 ) ) / - + COUNT ( * )
----
-7776

onlyif mysql # aggregate syntax: 
query II rowsort label-2809
SELECT COUNT( * ) + - - 58 - + 31 * + 7 AS col2, 47
----
-158
47

skipif mysql # not compatible
query II rowsort label-2809
SELECT COUNT ( * ) + - - 58 - + 31 * + 7 AS col2, 47
----
-158
47

query I rowsort
SELECT DISTINCT 21 * - + 34
----
-714

query I rowsort
SELECT 94 * 94 * - 14
----
-123704

query I rowsort
SELECT COALESCE ( - NULLIF ( + 89, ( 91 ) ), 4 ) + - - 62 + + 36 * + 56
----
1989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2813
SELECT DISTINCT CASE - COUNT( * ) WHEN - 46 * + 94 + - 76 + - 87 THEN NULL WHEN - - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) * - COUNT( * ) + 77 THEN NULL WHEN 52 THEN + CASE COUNT( * ) WHEN 3 THEN NULL ELSE CAST( - 5 AS SIGNED ) * 68 END * 93 ELSE + COUNT( * ) END + 93 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT CASE - COUNT ( * ) WHEN - 46 * + 94 + - 76 + - 87 THEN NULL WHEN - - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + 77 THEN NULL WHEN 52 THEN + CASE COUNT ( * ) WHEN 3 THEN NULL ELSE CAST ( - 5 AS INTEGER ) * 68 END * 93 ELSE + COUNT ( * ) END + 93 AS col2
----
94

query II rowsort
SELECT ALL 3 + - 61 AS col2, - 39 * - + 38 + 85
----
-58
1567

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

query I rowsort
SELECT 6 + ( 26 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2817
SELECT DISTINCT + 85 + + - COALESCE ( - NULLIF ( - NULLIF ( + 9, - 31 * + ( 94 ) ), - 19 ), 55, 5 * 63 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2817
SELECT DISTINCT + 85 + + - COALESCE ( - NULLIF ( - NULLIF ( + 9, - 31 * + ( 94 ) ), - 19 ), 55, 5 * 63 ) / CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 61 + - - 61 * + 28 + + 41, - 96 AS col0
----
1810
-96

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2820
SELECT DISTINCT - - 98 * + 52 + - MAX( + 99 ) DIV + - 10
----
5105

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT - - 98 * + 52 + - MAX ( + 99 ) / + - 10
----
5105

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL - NULLIF ( 80, + COUNT( * ) ) * + 11 + + 67 * - 2
----
-1014

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL - NULLIF ( 80, + COUNT ( * ) ) * + 11 + + 67 * - 2
----
-1014

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT 11 * + COUNT( * ) - + + 80 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-2822
SELECT 11 * + COUNT ( * ) - + + 80 AS col0
----
-69

query I rowsort
SELECT ALL - + 44 * 68 AS col2
----
-2992

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT DISTINCT + 67 * + + COUNT( ALL 13 )
----
67

skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT + 67 * + + COUNT ( ALL 13 )
----
67

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

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

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

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

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

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

query II rowsort
SELECT ALL - 75 - - 69 AS col2, - 55 * - 1 * - 53
----
-6
-2915

query I rowsort
SELECT + 39 - - 82 * - + ( - 34 ) + - 43
----
2784

onlyif mysql # DIV for integer division: 
query I rowsort label-2830
SELECT + 79 * - 81 * 21 - + 73 + - 46 * + - 42 * + - 22 * - 68 - + 23 DIV + 34
----
2755820

skipif mysql # not compatible
query I rowsort label-2830
SELECT + 79 * - 81 * 21 - + 73 + - 46 * + - 42 * + - 22 * - 68 - + 23 / + 34
----
2755820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2831
SELECT ( - 11 ) * CAST( + + 94 AS SIGNED ) + - 33
----
-1067

skipif mysql # not compatible
query I rowsort label-2831
SELECT ( - 11 ) * CAST ( + + 94 AS INTEGER ) + - 33
----
-1067

query I rowsort
SELECT DISTINCT - COALESCE ( - 63, - ( - 55 ), + + 5 )
----
63

query I rowsort
SELECT + 16 * - - 59 + 82
----
1026

query I rowsort
SELECT - 17 * - + ( + 9 )
----
153

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

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

query I rowsort
SELECT - ( 42 ) * - ( - 81 )
----
-3402

onlyif mysql # aggregate syntax: 
query II rowsort label-2837
SELECT - 32 AS col1, ( + 56 ) + + MAX( DISTINCT - - 11 ) * - NULLIF ( 12, ( - 6 ) ) AS col2
----
-32
-76

skipif mysql # not compatible
query II rowsort label-2837
SELECT - 32 AS col1, ( + 56 ) + + MAX ( DISTINCT - - 11 ) * - NULLIF ( 12, ( - 6 ) ) AS col2
----
-32
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2838
SELECT ALL COUNT( * ), 27 DIV + 17
----
1
1

skipif mysql # not compatible
query II rowsort label-2838
SELECT ALL COUNT ( * ), 27 / + 17
----
1
1

query I rowsort
SELECT DISTINCT + 29 + - 18
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2840
SELECT - MIN( - 46 ) DIV - CAST( - COUNT( * ) AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-2840
SELECT - MIN ( - 46 ) / - CAST ( - COUNT ( * ) AS INTEGER )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2841
SELECT ALL + COUNT( * ) + + CASE - CASE + SUM( DISTINCT + 71 ) WHEN 62 THEN - + ( + + 32 ) - + AVG ( - 55 ) END WHEN - ( - 55 ) THEN NULL WHEN CAST( + 14 AS SIGNED ) THEN 46 * - 96 END - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL + COUNT ( * ) + + CASE - CASE + SUM ( DISTINCT + 71 ) WHEN 62 THEN - + ( + + 32 ) - + AVG ( - 55 ) END WHEN - ( - 55 ) THEN NULL WHEN CAST ( + 14 AS INTEGER ) THEN 46 * - 96 END - 76 AS col0
----
NULL

query I rowsort
SELECT - 62 - - + 45 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT - MIN( - NULLIF ( - + 31, - + 23 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-2843
SELECT - MIN ( - NULLIF ( - + 31, - + 23 ) )
----
-31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT ALL 9 + - + 59 * 54 * + + 78 - + - MIN( + 18 ) + + - ( + 81 ) * - 60 col0
----
-243621

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL 9 + - + 59 * 54 * + + 78 - + - MIN ( + 18 ) + + - ( + 81 ) * - 60 col0
----
-243621

query I rowsort
SELECT - 15 + - + 94
----
-109

query I rowsort
SELECT + 21 * ( - COALESCE ( + + 27, - 30 ) )
----
-567

query I rowsort
SELECT ALL CASE - 23 WHEN - - 80 THEN + 95 + - CASE - - 86 WHEN - - 63 THEN NULL ELSE - + 43 END ELSE 25 END
----
25

query I rowsort
SELECT ALL + 56 + - + 50
----
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT ALL MAX( 46 ) + MIN( DISTINCT 17 )
----
63

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL MAX ( 46 ) + MIN ( DISTINCT 17 )
----
63

query I rowsort
SELECT - 60 + + 37 AS col1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2853
SELECT + CAST( - 31 AS SIGNED ) + + - 93 col0
----
-124

skipif mysql # not compatible
query I rowsort label-2853
SELECT + CAST ( - 31 AS INTEGER ) + + - 93 col0
----
-124

onlyif mysql # DIV for integer division: 
query I rowsort label-2854
SELECT + 13 DIV NULLIF ( + 61, + ( 37 ) ) - - 11
----
11

skipif mysql # not compatible
query I rowsort label-2854
SELECT + 13 / NULLIF ( + 61, + ( 37 ) ) - - 11
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT 65 * + 77 + - + COALESCE ( COUNT( * ), - MIN( + 87 ), - - COALESCE ( - + 18, + COUNT( * ) * 92 * 89 ) ) + 88 col2
----
5092

skipif mysql # not compatible
query I rowsort label-2855
SELECT 65 * + 77 + - + COALESCE ( COUNT ( * ), - MIN ( + 87 ), - - COALESCE ( - + 18, + COUNT ( * ) * 92 * 89 ) ) + 88 col2
----
5092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2856
SELECT + + MAX( CAST( NULL AS SIGNED ) ) - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2856
SELECT + + MAX ( CAST ( NULL AS INTEGER ) ) - 94
----
NULL

query I rowsort
SELECT DISTINCT + + 63 * + 14 col0
----
882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2858
SELECT + - MIN( + 52 ) DIV + CASE 21 WHEN 52 THEN + 74 * - ( CAST( NULL AS SIGNED ) ) ELSE 77 END + - ( 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2858
SELECT + - MIN ( + 52 ) / + CASE 21 WHEN 52 THEN + 74 * - ( CAST ( NULL AS INTEGER ) ) ELSE 77 END + - ( 4 ) AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2859
SELECT ALL - 72 * + 97 - + 43 AS col1, - 65 DIV - 65 * - + COUNT( + - 50 )
----
-7027
-1

skipif mysql # not compatible
query II rowsort label-2859
SELECT ALL - 72 * + 97 - + 43 AS col1, - 65 / - 65 * - + COUNT ( + - 50 )
----
-7027
-1

query I rowsort
SELECT + - 74 * 1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT ALL + COUNT( + 97 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL + COUNT ( + 97 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2862
SELECT ALL + - 62 AS col2, - 45 DIV ( - - 46 ) AS col0
----
-62
0

skipif mysql # not compatible
query II rowsort label-2862
SELECT ALL + - 62 AS col2, - 45 / ( - - 46 ) AS col0
----
-62
0

query I rowsort
SELECT + 37 + - 5 col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT ALL 37 * COALESCE ( - + COUNT( * ), - 54 ) - + - 23 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL 37 * COALESCE ( - + COUNT ( * ), - 54 ) - + - 23 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-2865
SELECT + 46 * 97 * - COUNT( * ) AS col2, - 26 AS col1
----
-4462
-26

skipif mysql # not compatible
query II rowsort label-2865
SELECT + 46 * 97 * - COUNT ( * ) AS col2, - 26 AS col1
----
-4462
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT + 58 * - + 94 * - COUNT( * ) * - - NULLIF ( - COUNT( * ), - 23 * + + 43 / - 54 ) + 28 + 3 + - 78
----
-5499

skipif mysql # not compatible
query I rowsort label-2866
SELECT + 58 * - + 94 * - COUNT ( * ) * - - NULLIF ( - COUNT ( * ), - 23 * + + 43 / - 54 ) + 28 + 3 + - 78
----
-5499

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT + COALESCE ( - COUNT( * ), 76 ) * 65 col1
----
-65

skipif mysql # not compatible
query I rowsort label-2867
SELECT + COALESCE ( - COUNT ( * ), 76 ) * 65 col1
----
-65

query II rowsort
SELECT ALL + 40, - 71 AS col0
----
40
-71

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2869
SELECT CASE - 7 WHEN - 73 - + - 7 * 36 / - - 32 + - - 30 + 10 / + + CAST( NULL AS SIGNED ) THEN + 76 WHEN - - CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2869
SELECT CASE - 7 WHEN - 73 - + - 7 * 36 / - - 32 + - - 30 + 10 / + + CAST ( NULL AS INTEGER ) THEN + 76 WHEN - - CAST ( NULL AS REAL ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2870
SELECT - 17 DIV + + 84 * + 97
----
0

skipif mysql # not compatible
query I rowsort label-2870
SELECT - 17 / + + 84 * + 97
----
0

query I rowsort
SELECT ALL 23 * - NULLIF ( 26, - 74 ) AS col0
----
-598

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

query II rowsort
SELECT ALL + 23 col0, + 57 * - 68 AS col1
----
23
-3876

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2874
SELECT + CAST( NULL AS SIGNED ) col2, - ( 37 ) AS col2
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-2874
SELECT + CAST ( NULL AS INTEGER ) col2, - ( 37 ) AS col2
----
NULL
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT DISTINCT 74 * + 93 + + SUM( DISTINCT + 40 ) AS col2
----
6922

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT 74 * + 93 + + SUM ( DISTINCT + 40 ) AS col2
----
6922

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2876
SELECT ALL + 57 * 95 + AVG ( + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL + 57 * 95 + AVG ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2877
SELECT - ( - 45 ) * + CAST( NULL AS SIGNED ) * - - 95 + + + 83 + - SUM( DISTINCT + 27 ) * - MAX( DISTINCT + + 69 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT - ( - 45 ) * + CAST ( NULL AS INTEGER ) * - - 95 + + + 83 + - SUM ( DISTINCT + 27 ) * - MAX ( DISTINCT + + 69 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT DISTINCT + 80 * 96 + - 88 * COUNT( * )
----
7592

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT + 80 * 96 + - 88 * COUNT ( * )
----
7592

query II rowsort
SELECT - ( - 48 ), - 47 col2
----
48
-47

query I rowsort
SELECT - 51 + - 48 AS col0
----
-99

query I rowsort
SELECT ALL - 47 * - + 4 + + 8
----
196

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2884
SELECT + 39 + - 2 * - COALESCE ( CASE - + 21 WHEN - 93 THEN - 62 + + + COUNT( - 12 ) WHEN COUNT( * ) THEN NULL ELSE NULL END, ( COUNT( ALL 88 ) ) * - COALESCE ( 8, 5, NULLIF ( + 93, + COALESCE ( + 16, MAX( ALL - 2 ) ) ) * - CASE WHEN + 80 >= ( 49 ) THEN + 80 + + 22 * 49 WHEN NOT - 32 <> SUM( DISTINCT 71 ) * + 57 THEN - 40 * + 96 END ) ) DIV - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-2884
SELECT + 39 + - 2 * - COALESCE ( CASE - + 21 WHEN - 93 THEN - 62 + + + COUNT ( - 12 ) WHEN COUNT ( * ) THEN NULL ELSE NULL END, ( COUNT ( ALL 88 ) ) * - COALESCE ( 8, 5, NULLIF ( + 93, + COALESCE ( + 16, MAX ( ALL - 2 ) ) ) * - CASE WHEN + 80 >= ( 49 ) THEN + 80 + + 22 * 49 WHEN NOT - 32 <> SUM ( DISTINCT 71 ) * + 57 THEN - 40 * + 96 END ) ) / - COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT + 98 - COUNT( * ) col1
----
97

skipif mysql # not compatible
query I rowsort label-2885
SELECT + 98 - COUNT ( * ) col1
----
97

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

skipif mysql # not compatible
query I rowsort label-2886
SELECT - MIN ( + - 86 )
----
86

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2888
SELECT COUNT( * ) AS col0, - 88 * + + 55 + 61 + 65
----
1
-4714

skipif mysql # not compatible
query II rowsort label-2888
SELECT COUNT ( * ) AS col0, - 88 * + + 55 + 61 + 65
----
1
-4714

query II rowsort
SELECT DISTINCT + 43 + + + NULLIF ( - NULLIF ( - 74, - + 10 ), - 51 + + - 19 + + 16 * + - 85 ) AS col2, - 5 AS col2
----
117
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT DISTINCT SUM( 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT SUM ( 59 ) AS col0
----
59

query I rowsort
SELECT ALL - 80 + 70 - - 59
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2892
SELECT ALL CAST( 59 AS SIGNED ) col1
----
59

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL CAST ( 59 AS INTEGER ) col1
----
59

query II rowsort
SELECT - 62, + 82 + - - 49 AS col0
----
-62
131

query I rowsort
SELECT DISTINCT - + 15 + 93
----
78

query II rowsort
SELECT ALL + 25, + 21 AS col1
----
25
21

query I rowsort
SELECT - 91 + + 19 AS col1
----
-72

query I rowsort
SELECT ALL - 24 + - 35 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT - 5 + - - COUNT( * ) * NULLIF ( - ( - 26 ), + 12 ) * 8 * + 90
----
18715

skipif mysql # not compatible
query I rowsort label-2898
SELECT - 5 + - - COUNT ( * ) * NULLIF ( - ( - 26 ), + 12 ) * 8 * + 90
----
18715

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

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

query I rowsort
SELECT - 49 * - 57
----
2793

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

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

query I rowsort
SELECT + + 63 + 57 * - 33
----
-1818

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2904
SELECT ALL + 83 - - 25 AS col2, - 48 * - 29 * COALESCE ( - COALESCE ( + 72, + COALESCE ( 4, - CASE - + 1 WHEN COUNT( * ) THEN NULL WHEN COUNT( * ) THEN - 19 ELSE - 9 END DIV 65, 78 ) + 75 ), 6, 93 )
----
108
-100224

skipif mysql # not compatible
query II rowsort label-2904
SELECT ALL + 83 - - 25 AS col2, - 48 * - 29 * COALESCE ( - COALESCE ( + 72, + COALESCE ( 4, - CASE - + 1 WHEN COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN - 19 ELSE - 9 END / 65, 78 ) + 75 ), 6, 93 )
----
108
-100224

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT CASE + 66 WHEN ( + - 71 ) THEN - + 73 * - 49 + + CASE - COUNT( * ) WHEN - CASE WHEN NOT 39 = NULL THEN + 8 ELSE NULL END THEN 7 WHEN + 0 THEN - CASE - 7 WHEN 80 - 13 * 3 THEN COALESCE ( - 63, - 78 * - 45 ) * - 70 END END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT CASE + 66 WHEN ( + - 71 ) THEN - + 73 * - 49 + + CASE - COUNT ( * ) WHEN - CASE WHEN NOT 39 = NULL THEN + 8 ELSE NULL END THEN 7 WHEN + 0 THEN - CASE - 7 WHEN 80 - 13 * 3 THEN COALESCE ( - 63, - 78 * - 45 ) * - 70 END END END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 45 AS col0, 38
----
45
38

query I rowsort
SELECT ALL + 17 * - + 51 * 3
----
-2601

query II rowsort
SELECT ALL + - 51 AS col1, 75 + + + 63
----
-51
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2910
SELECT ALL + COALESCE ( 30, - 41, + + ( + + 32 ) + CASE + + COUNT( * ) WHEN - + COUNT( * ) + - CAST( NULL AS SIGNED ) THEN + CASE + 17 WHEN - 47 + + 42 THEN - SUM( DISTINCT + 88 ) ELSE NULL END WHEN + 98 THEN 20 END )
----
30

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL + COALESCE ( 30, - 41, + + ( + + 32 ) + CASE + + COUNT ( * ) WHEN - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) THEN + CASE + 17 WHEN - 47 + + 42 THEN - SUM ( DISTINCT + 88 ) ELSE NULL END WHEN + 98 THEN 20 END )
----
30

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

query II rowsort
SELECT + - 94, - 60 * + + ( + 33 ) + + - 36 * + 49 AS col2
----
-94
-3744

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2913
SELECT - COUNT( * ), + 8 DIV - 12 * + - 91 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-2913
SELECT - COUNT ( * ), + 8 / - 12 * + - 91 AS col0
----
-1
0

query I rowsort
SELECT ALL + 56 * - 98 AS col0
----
-5488

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT + 71 * 35 - 95 * - MAX( + 51 )
----
7330

skipif mysql # not compatible
query I rowsort label-2915
SELECT + 71 * 35 - 95 * - MAX ( + 51 )
----
7330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2916
SELECT 88 + - - COALESCE ( - + 9, + 92 DIV 30, 65 * - + 49 ) DIV - 11 + + 7 DIV - NULLIF ( - 26, + + COUNT( * ) ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2916
SELECT 88 + - - COALESCE ( - + 9, + 92 / 30, 65 * - + 49 ) / - 11 + + 7 / - NULLIF ( - 26, + + COUNT ( * ) ) AS col2
----
88

onlyif mysql # DIV for integer division: 
query II rowsort label-2917
SELECT 94 DIV 38 AS col2, + 20
----
2
20

skipif mysql # not compatible
query II rowsort label-2917
SELECT 94 / 38 AS col2, + 20
----
2
20

query I rowsort
SELECT ALL ( - - 54 ) + ( - - NULLIF ( + - 41, 54 ) )
----
13

query I rowsort
SELECT ALL 69 + - 67 * - 14 AS col1
----
1007

onlyif mysql # aggregate syntax: 
query II rowsort label-2920
SELECT 20 * - 59 col2, + SUM( 98 ) AS col1
----
-1180
98

skipif mysql # not compatible
query II rowsort label-2920
SELECT 20 * - 59 col2, + SUM ( 98 ) AS col1
----
-1180
98

query I rowsort
SELECT DISTINCT 81 + - 99
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2922
SELECT DISTINCT 98 DIV 15 AS col0, + MIN( + 5 )
----
6
5

skipif mysql # not compatible
query II rowsort label-2922
SELECT DISTINCT 98 / 15 AS col0, + MIN ( + 5 )
----
6
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT ALL COUNT( * ) * + + 86 * + 8 * + 54
----
37152

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL COUNT ( * ) * + + 86 * + 8 * + 54
----
37152

onlyif mysql # DIV for integer division: 
query I rowsort label-2924
SELECT 10 DIV 23
----
0

skipif mysql # not compatible
query I rowsort label-2924
SELECT 10 / 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT DISTINCT SUM( ALL + 0 ) + 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT SUM ( ALL + 0 ) + 82 AS col2
----
82

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

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

query II rowsort
SELECT DISTINCT COALESCE ( - 19, - ( COALESCE ( + 75, + + 42 * - 83 ) ) ) + + 39 AS col0, 24 AS col1
----
20
24

query II rowsort
SELECT DISTINCT 91 + + 65, 15 AS col0
----
156
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT CASE - COUNT( * ) WHEN + - 22 THEN COUNT( * ) ELSE + - 18 + + 37 + + 98 + - 51 + + - 96 * + 3 * + - 61 END + + - 33 AS col1
----
17601

skipif mysql # not compatible
query I rowsort label-2929
SELECT CASE - COUNT ( * ) WHEN + - 22 THEN COUNT ( * ) ELSE + - 18 + + 37 + + 98 + - 51 + + - 96 * + 3 * + - 61 END + + - 33 AS col1
----
17601

onlyif mysql # aggregate syntax: 
query II rowsort label-2930
SELECT - CASE 59 WHEN - MIN( + + 43 ) * + 1 THEN - 16 ELSE 89 END AS col2, ( + - 85 ) AS col0
----
-89
-85

skipif mysql # not compatible
query II rowsort label-2930
SELECT - CASE 59 WHEN - MIN ( + + 43 ) * + 1 THEN - 16 ELSE 89 END AS col2, ( + - 85 ) AS col0
----
-89
-85

query I rowsort
SELECT + 16 * + 88
----
1408

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT ALL - + 37 - + + MAX( ALL + 66 ) * 7
----
-499

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL - + 37 - + + MAX ( ALL + 66 ) * 7
----
-499

query I rowsort
SELECT - 78 - 32
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT ALL ( - - 86 ) * + - 14 * - NULLIF ( + 62, 73 * COUNT( * ) + - COUNT( * ) * - 36 + - 13 ) AS col0
----
74648

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL ( - - 86 ) * + - 14 * - NULLIF ( + 62, 73 * COUNT ( * ) + - COUNT ( * ) * - 36 + - 13 ) AS col0
----
74648

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT ALL - - 62 * + - COUNT( + NULLIF ( - 34, - 57 ) ) + - 36 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL - - 62 * + - COUNT ( + NULLIF ( - 34, - 57 ) ) + - 36 AS col1
----
-98

query I rowsort
SELECT ALL - 52 * + 41 col1
----
-2132

query I rowsort
SELECT 32 + + + 75
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT ALL + SUM( DISTINCT + 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL + SUM ( DISTINCT + 84 ) AS col2
----
84

query I rowsort
SELECT + 45 * - 64 AS col1
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT + ( NULLIF ( - 78, - 34 + - 96 * - MIN( ALL - 90 ) ) ) + - COALESCE ( 10, - 41 + + - COUNT( * ), + 72 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-2940
SELECT + ( NULLIF ( - 78, - 34 + - 96 * - MIN ( ALL - 90 ) ) ) + - COALESCE ( 10, - 41 + + - COUNT ( * ), + 72 ) AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2941
SELECT ALL - + 83 + + 75 + CAST( NULL AS SIGNED ) - - + 21 + + 95 - - 8 + + COUNT( DISTINCT 27 ) + - - 40 + - - 34 * + - 6 + - - 65 + + 5 * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - + 83 + + 75 + CAST ( NULL AS INTEGER ) - - + 21 + + 95 - - 8 + + COUNT ( DISTINCT 27 ) + - - 40 + - - 34 * + - 6 + - - 65 + + 5 * 39
----
NULL

query I rowsort
SELECT ( 11 ) + - 67
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2943
SELECT + 66 DIV 41 - + 84 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-2943
SELECT + 66 / 41 - + 84 AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-2944
SELECT ALL + 87 DIV - 70 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL + 87 / - 70 AS col1
----
-1

query I rowsort
SELECT DISTINCT + 15 + 95 col0
----
110

query I rowsort
SELECT ALL - 60 + 67 + - 36 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-2947
SELECT + 17, + COUNT( * ) * 87 AS col0
----
17
87

skipif mysql # not compatible
query II rowsort label-2947
SELECT + 17, + COUNT ( * ) * 87 AS col0
----
17
87

query I rowsort
SELECT DISTINCT 93 + + 48
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT COUNT( * ) + - - COALESCE ( 4, - 68 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2949
SELECT COUNT ( * ) + - - COALESCE ( 4, - 68 ) AS col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2950
SELECT 87 * 6 DIV - 83
----
-6

skipif mysql # not compatible
query I rowsort label-2950
SELECT 87 * 6 / - 83
----
-6

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2952
SELECT DISTINCT - COUNT( * ) + - MAX( ALL - 65 ) AS col2, - 25 * - - 48
----
64
-1200

skipif mysql # not compatible
query II rowsort label-2952
SELECT DISTINCT - COUNT ( * ) + - MAX ( ALL - 65 ) AS col2, - 25 * - - 48
----
64
-1200

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2953
SELECT ALL COUNT( ALL + 28 ) + - 13 DIV 83 AS col2, CASE - 69 WHEN 67 THEN NULL ELSE - 21 DIV + - 57 + - 69 * + 57 * 67 + - 49 END * 65
----
1
-17131400

skipif mysql # not compatible
query II rowsort label-2953
SELECT ALL COUNT ( ALL + 28 ) + - 13 / 83 AS col2, CASE - 69 WHEN 67 THEN NULL ELSE - 21 / + - 57 + - 69 * + 57 * 67 + - 49 END * 65
----
1
-17131400

query I rowsort
SELECT 13 * + 96
----
1248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2955
SELECT 48 * - CAST( - NULLIF ( + MAX( DISTINCT + + 70 ), 74 ) AS SIGNED )
----
3360

skipif mysql # not compatible
query I rowsort label-2955
SELECT 48 * - CAST ( - NULLIF ( + MAX ( DISTINCT + + 70 ), 74 ) AS INTEGER )
----
3360

query I rowsort
SELECT 19 + + 77 col2
----
96

query I rowsort
SELECT DISTINCT - 7 * + 97 AS col1
----
-679

query II rowsort
SELECT DISTINCT - 96, 63 col2
----
-96
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT - 83 * + 70 * + - ( + 4 ) + COUNT( * )
----
23241

skipif mysql # not compatible
query I rowsort label-2959
SELECT - 83 * + 70 * + - ( + 4 ) + COUNT ( * )
----
23241

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

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

query II rowsort
SELECT DISTINCT 11 AS col1, 28
----
11
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT - COALESCE ( + + 64, + + MIN( + 29 ) + - 32, + 34 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-2962
SELECT - COALESCE ( + + 64, + + MIN ( + 29 ) + - 32, + 34 ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT + MIN( DISTINCT - + 60 ) * + 15 - - COUNT( * ) * + 91 AS col1
----
-809

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT + MIN ( DISTINCT - + 60 ) * + 15 - - COUNT ( * ) * + 91 AS col1
----
-809

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2964
SELECT - COUNT( * ) DIV - 37 * + + 46
----
0

skipif mysql # not compatible
query I rowsort label-2964
SELECT - COUNT ( * ) / - 37 * + + 46
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2965
SELECT ALL - 41 * - - CAST( NULL AS SIGNED ) / + COALESCE ( - + ( - MIN( DISTINCT - + ( + 89 ) ) ), CAST( 57 AS SIGNED ) ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL - 41 * - - CAST ( NULL AS INTEGER ) / + COALESCE ( - + ( - MIN ( DISTINCT - + ( + 89 ) ) ), CAST ( 57 AS INTEGER ) ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT DISTINCT COUNT( * ) * COALESCE ( + 47, COUNT( * ) * COUNT( * ) - + 4 + + COUNT( * ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT COUNT ( * ) * COALESCE ( + 47, COUNT ( * ) * COUNT ( * ) - + 4 + + COUNT ( * ) ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT + 76 + - 87 - - COUNT( * ) col0
----
-10

skipif mysql # not compatible
query I rowsort label-2967
SELECT + 76 + - 87 - - COUNT ( * ) col0
----
-10

query I rowsort
SELECT ALL + 22 * 21
----
462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2969
SELECT ( - 13 ) * + - MAX( DISTINCT + CAST( + 43 AS SIGNED ) )
----
559

skipif mysql # not compatible
query I rowsort label-2969
SELECT ( - 13 ) * + - MAX ( DISTINCT + CAST ( + 43 AS INTEGER ) )
----
559

query II rowsort
SELECT + 89 + + 74 - + + 14 col0, 38 AS col2
----
149
38

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2972
SELECT ALL 86 + + + 89 + + CASE 83 WHEN + - 72 THEN NULL WHEN + - COUNT( * ) THEN + 12 + - 92 ELSE NULL END col0, CASE 56 WHEN 50 THEN + ( 9 ) * - 47 ELSE NULL END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2972
SELECT ALL 86 + + + 89 + + CASE 83 WHEN + - 72 THEN NULL WHEN + - COUNT ( * ) THEN + 12 + - 92 ELSE NULL END col0, CASE 56 WHEN 50 THEN + ( 9 ) * - 47 ELSE NULL END AS col2
----
NULL
NULL

query II rowsort
SELECT ALL 41 AS col0, - 65 AS col0
----
41
-65

query I rowsort
SELECT DISTINCT + 29 + - 24 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT DISTINCT 57 + + 9 * - + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT 57 + + 9 * - + COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-2976
SELECT ALL + 92 * 9 * + 62 + + 37 AS col2, - 43 * + + COUNT( * ) AS col1
----
51373
-43

skipif mysql # not compatible
query II rowsort label-2976
SELECT ALL + 92 * 9 * + 62 + + 37 AS col2, - 43 * + + COUNT ( * ) AS col1
----
51373
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT DISTINCT - 8 * 95 * + - COUNT( * ) + + 49 col0
----
809

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT - 8 * 95 * + - COUNT ( * ) + + 49 col0
----
809

query I rowsort
SELECT + ( - 69 ) + + 36 AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2979
SELECT DISTINCT + MAX( DISTINCT 21 ) * + 73 * COUNT( * ) - - CAST( NULL AS SIGNED ) + - + 66 + - - 98 * + + ( 92 ) - - - 11 * + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT + MAX ( DISTINCT 21 ) * + 73 * COUNT ( * ) - - CAST ( NULL AS INTEGER ) + - + 66 + - - 98 * + + ( 92 ) - - - 11 * + - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT NULLIF ( - - 26, + - 73 + - COUNT( * ) - 73 ) col2
----
26

skipif mysql # not compatible
query I rowsort label-2980
SELECT NULLIF ( - - 26, + - 73 + - COUNT ( * ) - 73 ) col2
----
26

query I rowsort
SELECT ALL + 65 * 61 + ( + ( 37 ) )
----
4002

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2983
SELECT DISTINCT + MAX( DISTINCT + - 48 ) AS col0, + 13 * + 95 col1
----
-48
1235

skipif mysql # not compatible
query II rowsort label-2983
SELECT DISTINCT + MAX ( DISTINCT + - 48 ) AS col0, + 13 * + 95 col1
----
-48
1235

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2984
SELECT DISTINCT + NULLIF ( + ( - 23 ), - + NULLIF ( 71, - ( 90 ) DIV - 35 + - 89 ) * + 79 ) DIV 43 + + COUNT( * ) + + 56 + + ( - 95 ) * + 27
----
-2508

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT + NULLIF ( + ( - 23 ), - + NULLIF ( 71, - ( 90 ) / - 35 + - 89 ) * + 79 ) / 43 + + COUNT ( * ) + + 56 + + ( - 95 ) * + 27
----
-2508

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT - COUNT( ALL - + 26 ) * - 97 col2
----
97

skipif mysql # not compatible
query I rowsort label-2985
SELECT - COUNT ( ALL - + 26 ) * - 97 col2
----
97

query I rowsort
SELECT ALL 39 * + - 93
----
-3627

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2987
SELECT ALL + MIN( DISTINCT 89 ) AS col2, + 11 + 11 DIV - COUNT( * ) - + 11 AS col2
----
89
-11

skipif mysql # not compatible
query II rowsort label-2987
SELECT ALL + MIN ( DISTINCT 89 ) AS col2, + 11 + 11 / - COUNT ( * ) - + 11 AS col2
----
89
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2988
SELECT COALESCE ( - 56, + 51, + CAST( NULL AS SIGNED ), - 36 + + COUNT( * ) + 82 ) col2, - 42 + - 21
----
-56
-63

skipif mysql # not compatible
query II rowsort label-2988
SELECT COALESCE ( - 56, + 51, + CAST ( NULL AS INTEGER ), - 36 + + COUNT ( * ) + 82 ) col2, - 42 + - 21
----
-56
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2989
SELECT DISTINCT + CAST( 76 AS SIGNED ) * 5
----
380

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT + CAST ( 76 AS INTEGER ) * 5
----
380

query I rowsort
SELECT ALL + 67 * - ( - - 15 ) AS col2
----
-1005

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT - 9 * + MIN( + 6 )
----
-54

skipif mysql # not compatible
query I rowsort label-2991
SELECT - 9 * + MIN ( + 6 )
----
-54

query I rowsort
SELECT - - 7 * + + 25
----
175

query I rowsort
SELECT ALL + 1 * - 56
----
-56

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

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

query I rowsort
SELECT - NULLIF ( + + 30, 39 * AVG ( + 46 ) ) col2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2996
SELECT DISTINCT + 18 DIV + + 34 * + 1 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT + 18 / + + 34 * + 1 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL 57 + ( + - COUNT( * ) ) - 41 * + 69 * 59
----
-166855

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL 57 + ( + - COUNT ( * ) ) - 41 * + 69 * 59
----
-166855

query I rowsort
SELECT - 27 + 24 * - ( 5 ) AS col2
----
-147

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

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

query I rowsort
SELECT ALL 84 + + 78 col0
----
162

query I rowsort
SELECT + - NULLIF ( + + 59, 51 ) + - + 44 AS col0
----
-103

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3003
SELECT + + 30 + - COUNT( * ) + + + 16 * - + CAST( - - 69 AS SIGNED ) AS col0
----
-1075

skipif mysql # not compatible
query I rowsort label-3003
SELECT + + 30 + - COUNT ( * ) + + + 16 * - + CAST ( - - 69 AS INTEGER ) AS col0
----
-1075

query I rowsort
SELECT ALL + 19 + + - 81
----
-62

query I rowsort
SELECT + 76 - + 1
----
75

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

query I rowsort
SELECT + 90 + + + 21 col2
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3008
SELECT ALL MAX( 52 ) * + CASE 30 WHEN + - 4 * - 1 + + 92 + SUM( + 83 ) * + 15 THEN - 41 * NULLIF ( - + CAST( NULL AS SIGNED ), 56 ) * - 77 + + 7 / + COUNT( * ) WHEN - 50 THEN NULL END + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL MAX ( 52 ) * + CASE 30 WHEN + - 4 * - 1 + + 92 + SUM ( + 83 ) * + 15 THEN - 41 * NULLIF ( - + CAST ( NULL AS INTEGER ), 56 ) * - 77 + + 7 / + COUNT ( * ) WHEN - 50 THEN NULL END + + 24
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3009
SELECT - COALESCE ( - ( + 86 ), + 29 * - + 87 - + + CAST( + 51 AS SIGNED ) + + 33 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-3009
SELECT - COALESCE ( - ( + 86 ), + 29 * - + 87 - + + CAST ( + 51 AS INTEGER ) + + 33 ) AS col1
----
86

query I rowsort
SELECT + 35 + + 58 AS col0
----
93

query I rowsort
SELECT + 11 + - - 34
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3012
SELECT 98 * - SUM( + - CAST( - 94 AS SIGNED ) ) + - 92 + 90 * + AVG ( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3012
SELECT 98 * - SUM ( + - CAST ( - 94 AS INTEGER ) ) + - 92 + 90 * + AVG ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT - 57 * + COUNT( * ) + - - 58 + SUM( - 53 )
----
-52

skipif mysql # not compatible
query I rowsort label-3013
SELECT - 57 * + COUNT ( * ) + - - 58 + SUM ( - 53 )
----
-52

query I rowsort
SELECT + 93 * 10 AS col2
----
930

onlyif mysql # aggregate syntax: 
query II rowsort label-3015
SELECT ALL ( - ( + - CASE + COUNT( * ) WHEN 68 THEN - 27 + + 18 * - 14 ELSE NULL END ) ) / + 55 - 96 AS col0, 10 * - + 15 * + - 28
----
NULL
4200

skipif mysql # not compatible
query II rowsort label-3015
SELECT ALL ( - ( + - CASE + COUNT ( * ) WHEN 68 THEN - 27 + + 18 * - 14 ELSE NULL END ) ) / + 55 - 96 AS col0, 10 * - + 15 * + - 28
----
NULL
4200

query I rowsort
SELECT ALL + 35 * - - 23 AS col0
----
805

query II rowsort
SELECT + 57 * 74 * + 93, 66 AS col0
----
392274
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3018
SELECT + CAST( NULL AS SIGNED ) AS col0, 93 * 87 * 78 AS col1
----
NULL
631098

skipif mysql # not compatible
query II rowsort label-3018
SELECT + CAST ( NULL AS INTEGER ) AS col0, 93 * 87 * 78 AS col1
----
NULL
631098

query I rowsort
SELECT 35 * - 99 + 27
----
-3438

query I rowsort
SELECT ALL - 35 * + 14
----
-490

onlyif mysql # DIV for integer division: 
query I rowsort label-3021
SELECT + 9 DIV - 29
----
0

skipif mysql # not compatible
query I rowsort label-3021
SELECT + 9 / - 29
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3022
SELECT - 15 DIV + + 68 * + 25
----
0

skipif mysql # not compatible
query I rowsort label-3022
SELECT - 15 / + + 68 * + 25
----
0

query I rowsort
SELECT 90 * + 34 + - 80 AS col1
----
2980

query I rowsort
SELECT ( + + 82 ) AS col1
----
82

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

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

query I rowsort
SELECT ALL 78 * + 36 AS col1
----
2808

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3028
SELECT ALL + 17 AS col1, 64 + 34 - - COUNT( * ) AS col2
----
17
99

skipif mysql # not compatible
query II rowsort label-3028
SELECT ALL + 17 AS col1, 64 + 34 - - COUNT ( * ) AS col2
----
17
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3029
SELECT DISTINCT - 8 * - 60 + + - CAST( NULL AS SIGNED ) * - 3 * - 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT - 8 * - 60 + + - CAST ( NULL AS INTEGER ) * - 3 * - 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT ALL + - SUM( + 18 ) + - COALESCE ( + 39, 75 ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL + - SUM ( + 18 ) + - COALESCE ( + 39, 75 ) col0
----
-57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT DISTINCT + MAX( DISTINCT + 84 ) * - 83 AS col2
----
-6972

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT + MAX ( DISTINCT + 84 ) * - 83 AS col2
----
-6972

query I rowsort
SELECT + 94 + 15
----
109

query II rowsort
SELECT DISTINCT 53, - 86 AS col2
----
53
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT + NULLIF ( + 1, MAX( - 85 ) ) * 97 * MAX( ALL - - 0 ) * 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3036
SELECT + NULLIF ( + 1, MAX ( - 85 ) ) * 97 * MAX ( ALL - - 0 ) * 75 AS col1
----
0

query I rowsort
SELECT ALL + - 59 + - + 9
----
-68

query I rowsort
SELECT DISTINCT - 70 + + 64 AS col2
----
-6

query I rowsort
SELECT DISTINCT ( 98 ) AS col1
----
98

query I rowsort
SELECT ALL - + 84 * 56
----
-4704

query I rowsort
SELECT DISTINCT - 15 + 62
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3042
SELECT ALL 17 DIV + - ( - 10 )
----
1

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL 17 / + - ( - 10 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT 3 DIV 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3043
SELECT 3 / 78 AS col0
----
0

query I rowsort
SELECT 39 * 21 AS col0
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT NULLIF ( + 26, - + SUM( ALL 36 ) / + 98 ) + + 71 * CASE 81 WHEN + 12 THEN - 52 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3045
SELECT NULLIF ( + 26, - + SUM ( ALL 36 ) / + 98 ) + + 71 * CASE 81 WHEN + 12 THEN - 52 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 70 * - 88
----
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT COALESCE ( + - 62, + CASE + + 28 WHEN - 99 THEN NULL WHEN 64 + 86 THEN + - 2 + NULLIF ( - 83, - 84 + 71 ) * + ( + 72 ) END - + + COUNT( * ) ) * - + ( ( 4 ) ) AS col2
----
248

skipif mysql # not compatible
query I rowsort label-3047
SELECT COALESCE ( + - 62, + CASE + + 28 WHEN - 99 THEN NULL WHEN 64 + 86 THEN + - 2 + NULLIF ( - 83, - 84 + 71 ) * + ( + 72 ) END - + + COUNT ( * ) ) * - + ( ( 4 ) ) AS col2
----
248

query II rowsort
SELECT ALL 81 col1, ( + 64 ) AS col0
----
81
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3049
SELECT ALL 34 * + 25 * + CASE AVG ( + + 51 ) WHEN 27 + 72 + + CAST( 30 AS SIGNED ) THEN NULL ELSE - NULLIF ( - 36, + COUNT( * ) * - AVG ( ALL - - 97 ) ) DIV COUNT( + 71 ) END * 44
----
1346400

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL 34 * + 25 * + CASE AVG ( + + 51 ) WHEN 27 + 72 + + CAST ( 30 AS INTEGER ) THEN NULL ELSE - NULLIF ( - 36, + COUNT ( * ) * - AVG ( ALL - - 97 ) ) / COUNT ( + 71 ) END * 44
----
1346400

onlyif mysql # DIV for integer division: 
query II rowsort label-3050
SELECT + 36, 22 DIV - 89 DIV + 31 DIV - 10 AS col1
----
36
0

skipif mysql # not compatible
query II rowsort label-3050
SELECT + 36, 22 / - 89 / + 31 / - 10 AS col1
----
36
0

query I rowsort
SELECT - 28 * 59 + + 81 + + + 82
----
-1489

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3053
SELECT NULLIF ( CAST( NULL AS SIGNED ), + ( - COUNT( - 71 ) ) - + 0 ) * - 0 * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT NULLIF ( CAST ( NULL AS INTEGER ), + ( - COUNT ( - 71 ) ) - + 0 ) * - 0 * + 92
----
NULL

query II rowsort
SELECT 92, NULLIF ( + 14, + 69 ) + - + 85 col0
----
92
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT 67 * + 34 - - - 51 + + + COUNT( * ) * - 4
----
2223

skipif mysql # not compatible
query I rowsort label-3055
SELECT 67 * + 34 - - - 51 + + + COUNT ( * ) * - 4
----
2223

onlyif mysql # aggregate syntax: 
query II rowsort label-3056
SELECT ALL - 9, - MIN( - 15 ) AS col2
----
-9
15

skipif mysql # not compatible
query II rowsort label-3056
SELECT ALL - 9, - MIN ( - 15 ) AS col2
----
-9
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3057
SELECT COUNT( * ) DIV - 20 + 48 * - 43 AS col2
----
-2064

skipif mysql # not compatible
query I rowsort label-3057
SELECT COUNT ( * ) / - 20 + 48 * - 43 AS col2
----
-2064

query II rowsort
SELECT + 1 col2, + 12 AS col1
----
1
12

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3060
SELECT ALL - 92 AS col0, MIN( 30 )
----
-92
30

skipif mysql # not compatible
query II rowsort label-3060
SELECT ALL - 92 AS col0, MIN ( 30 )
----
-92
30

query II rowsort
SELECT DISTINCT - 96, 89 AS col1
----
-96
89

query II rowsort
SELECT ALL + + 91 + + + 59 AS col2, + 92
----
150
92

query II rowsort
SELECT DISTINCT - + 54, 74 AS col2
----
-54
74

query I rowsort
SELECT DISTINCT 94 + - + 88
----
6

query I rowsort
SELECT + - 47 * - + 29 - + 27 AS col2
----
1336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT ALL + 93 + - 70 - + CAST( 40 AS SIGNED ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL + 93 + - 70 - + CAST ( 40 AS INTEGER ) AS col1
----
-17

query I rowsort
SELECT ALL + 35 + + 58 - + - 48 AS col1
----
141

query I rowsort
SELECT - NULLIF ( - 32, 74 )
----
32

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

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

query I rowsort
SELECT - 95 * 94 col2
----
-8930

query I rowsort
SELECT 80 * - - 49 * - 4 + + 27 + + - 71 * + - 42 + - 73 + + 58 AS col0
----
-12686

query I rowsort
SELECT DISTINCT + 11 + ( 39 ) * - + 28
----
-1081

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

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

query I rowsort
SELECT 24 * - 33 AS col0
----
-792

query I rowsort
SELECT DISTINCT + + 82 + + NULLIF ( 87, + 75 + - 22 ) + - 89
----
80

query I rowsort
SELECT 28 * - 57 + 22
----
-1574

query I rowsort
SELECT ALL - 17 - + - 25
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3078
SELECT - CASE - 83 WHEN + + ( - + AVG ( ALL 50 ) ) THEN NULL WHEN - CASE + 12 WHEN 13 THEN + ( COALESCE ( - 67, - CAST( NULL AS SIGNED ) ) ) + - 54 WHEN - 75 - - + 46 + - ( + 51 ) - 69 * 89 / COALESCE ( - MAX( ALL - 8 ) * COUNT( 68 ), - 94, 7 * 68 ) THEN NULL WHEN + 18 * - 70 THEN - 73 * + 13 END THEN - 66 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3078
SELECT - CASE - 83 WHEN + + ( - + AVG ( ALL 50 ) ) THEN NULL WHEN - CASE + 12 WHEN 13 THEN + ( COALESCE ( - 67, - CAST ( NULL AS INTEGER ) ) ) + - 54 WHEN - 75 - - + 46 + - ( + 51 ) - 69 * 89 / COALESCE ( - MAX ( ALL - 8 ) * COUNT ( 68 ), - 94, 7 * 68 ) THEN NULL WHEN + 18 * - 70 THEN - 73 * + 13 END THEN - 66 END col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3080
SELECT 13 + - MAX( - 99 ) * COALESCE ( 46, - ( - 31 ) + 68 + + 5 * CAST( NULL AS SIGNED ) + - 41 * 50, + 7 + - 82 * + - 15 ) + - - 43
----
4610

skipif mysql # not compatible
query I rowsort label-3080
SELECT 13 + - MAX ( - 99 ) * COALESCE ( 46, - ( - 31 ) + 68 + + 5 * CAST ( NULL AS INTEGER ) + - 41 * 50, + 7 + - 82 * + - 15 ) + - - 43
----
4610

query I rowsort
SELECT 48 * 59 col2
----
2832

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3083
SELECT ALL + CAST( 57 AS SIGNED ) - - CASE - 41 WHEN - CAST( NULL AS SIGNED ) THEN 16 WHEN - - COALESCE ( - 84, + + MIN( - + 73 ) ) + + - ( + 72 ) THEN NULL END - + CAST( CASE - + 82 WHEN - + 89 THEN - 31 * + 92 WHEN COUNT( ALL + 44 ) THEN 85 + COUNT( * ) ELSE NULL END AS SIGNED ) / + 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL + CAST ( 57 AS INTEGER ) - - CASE - 41 WHEN - CAST ( NULL AS INTEGER ) THEN 16 WHEN - - COALESCE ( - 84, + + MIN ( - + 73 ) ) + + - ( + 72 ) THEN NULL END - + CAST ( CASE - + 82 WHEN - + 89 THEN - 31 * + 92 WHEN COUNT ( ALL + 44 ) THEN 85 + COUNT ( * ) ELSE NULL END AS INTEGER ) / + 85 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-3084
SELECT 32 + - COUNT( * ) AS col0, + 39 AS col2, + 13
----
31
39
13

skipif mysql # not compatible
query III rowsort label-3084
SELECT 32 + - COUNT ( * ) AS col0, + 39 AS col2, + 13
----
31
39
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3085
SELECT 38 + ( - 67 ) - + - COUNT( - - 2 ) DIV 14 + + 48 AS col0, + 41
----
19
41

skipif mysql # not compatible
query II rowsort label-3085
SELECT 38 + ( - 67 ) - + - COUNT ( - - 2 ) / 14 + + 48 AS col0, + 41
----
19
41

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

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

query I rowsort
SELECT 22 * + COALESCE ( + - 75, 12 ) * - 63 * + 82
----
8523900

query I rowsort
SELECT 57 + + 79 AS col0
----
136

query I rowsort
SELECT 38 + + - 35
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3090
SELECT - SUM( + CAST( - - 59 AS SIGNED ) ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-3090
SELECT - SUM ( + CAST ( - - 59 AS INTEGER ) ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-3091
SELECT ALL - COUNT( - - 78 ), + 39 AS col0
----
-1
39

skipif mysql # not compatible
query II rowsort label-3091
SELECT ALL - COUNT ( - - 78 ), + 39 AS col0
----
-1
39

onlyif mysql # DIV for integer division: 
query II rowsort label-3092
SELECT 54 DIV + 6 AS col2, 11 * 49 * 0 AS col2
----
9
0

skipif mysql # not compatible
query II rowsort label-3092
SELECT 54 / + 6 AS col2, 11 * 49 * 0 AS col2
----
9
0

query I rowsort
SELECT ALL 74 * NULLIF ( - + 55, - + 25 + + 35 )
----
-4070

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT DISTINCT + CASE + + 37 WHEN + MIN( + + 47 ) THEN + - COUNT( * ) WHEN - 50 + + 61 THEN NULL WHEN 36 + COUNT( DISTINCT 94 ) * SUM( ALL + 77 ) * + - 98 THEN NULL END * 37 + MAX( DISTINCT - 57 ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT + CASE + + 37 WHEN + MIN ( + + 47 ) THEN + - COUNT ( * ) WHEN - 50 + + 61 THEN NULL WHEN 36 + COUNT ( DISTINCT 94 ) * SUM ( ALL + 77 ) * + - 98 THEN NULL END * 37 + MAX ( DISTINCT - 57 ) * - + COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3096
SELECT + 6 + + 57 / + 47 + - + COUNT ( * ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT DISTINCT - ( - + 39 ) * + COUNT( * ) * + + ( 71 ) + + - 14 + - 64 * - COUNT( * ) AS col1
----
2819

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT - ( - + 39 ) * + COUNT ( * ) * + + ( 71 ) + + - 14 + - 64 * - COUNT ( * ) AS col1
----
2819

query I rowsort
SELECT ALL 50 * - 67 * - + 48 * + 3 AS col0
----
482400

onlyif mysql # aggregate syntax: 
query II rowsort label-3099
SELECT ALL + COUNT( + 42 ), 36 * 67 AS col2
----
1
2412

skipif mysql # not compatible
query II rowsort label-3099
SELECT ALL + COUNT ( + 42 ), 36 * 67 AS col2
----
1
2412

query I rowsort
SELECT ALL - - 71 * - - 24 - + 71
----
1633

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3102
SELECT DISTINCT 8 DIV - 47 + - - 71 AS col2, COUNT( 37 ) + - - 53 AS col1
----
71
54

skipif mysql # not compatible
query II rowsort label-3102
SELECT DISTINCT 8 / - 47 + - - 71 AS col2, COUNT ( 37 ) + - - 53 AS col1
----
71
54

query I rowsort
SELECT DISTINCT 12 - 26 col2
----
-14

query I rowsort
SELECT ALL 26 * 48 AS col2
----
1248

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

query I rowsort
SELECT - 70 + - + 19 + - 76 + - 32 AS col2
----
-197

query II rowsort
SELECT + + 7 * - 9 AS col2, 15
----
-63
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3108
SELECT - CASE - CAST( + - 5 AS SIGNED ) WHEN 25 THEN NULL WHEN 31 - + 31 * + + CASE + 77 WHEN + - 78 THEN 76 END / 10 THEN - 29 ELSE 42 END * - - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-3108
SELECT - CASE - CAST ( + - 5 AS INTEGER ) WHEN 25 THEN NULL WHEN 31 - + 31 * + + CASE + 77 WHEN + - 78 THEN 76 END / 10 THEN - 29 ELSE 42 END * - - COUNT ( * )
----
-42

query I rowsort
SELECT ALL 92 * - 92 * + 56
----
-473984

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3111
SELECT + 93 * CAST( 61 AS SIGNED )
----
5673

skipif mysql # not compatible
query I rowsort label-3111
SELECT + 93 * CAST ( 61 AS INTEGER )
----
5673

query I rowsort
SELECT - 28 * 94 * + CASE 22 WHEN 91 * 11 + 37 + 24 / - 95 THEN + 69 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 21, 12 ) AS col2
----
21

query I rowsort
SELECT + 58 * 58 AS col1
----
3364

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

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

query I rowsort
SELECT + 34 - + + 24 col1
----
10

query I rowsort
SELECT DISTINCT CASE + - 22 WHEN + + 15 THEN + COALESCE ( - + 49, - 91 ) + - + 9 * + 47 ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3119
SELECT - 87, COUNT( * ) col1
----
-87
1

skipif mysql # not compatible
query II rowsort label-3119
SELECT - 87, COUNT ( * ) col1
----
-87
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3120
SELECT ALL COUNT( ALL - CAST( - 29 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL COUNT ( ALL - CAST ( - 29 AS INTEGER ) )
----
1

query II rowsort
SELECT - 90 AS col2, + 10
----
-90
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT - 62 * - - CASE + 8 WHEN ( 19 ) + COUNT( DISTINCT 96 ) * + 9 THEN 31 * + - 56 WHEN + + 56 * - AVG ( DISTINCT - 95 ) + + + 43 + - 37 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT - 62 * - - CASE + 8 WHEN ( 19 ) + COUNT ( DISTINCT 96 ) * + 9 THEN 31 * + - 56 WHEN + + 56 * - AVG ( DISTINCT - 95 ) + + + 43 + - 37 THEN NULL END
----
NULL

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

query II rowsort
SELECT 22, 75 AS col0
----
22
75

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

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

query I rowsort
SELECT ALL + 77 + + + 15 * + 83
----
1322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3127
SELECT - CAST( + 75 AS SIGNED ) - + 26 * 6 col1
----
-231

skipif mysql # not compatible
query I rowsort label-3127
SELECT - CAST ( + 75 AS INTEGER ) - + 26 * 6 col1
----
-231

onlyif mysql # DIV for integer division: 
query I rowsort label-3128
SELECT ALL 75 DIV 18 * + 79 + - 31 AS col2
----
285

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL 75 / 18 * + 79 + - 31 AS col2
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3129
SELECT - NULLIF ( - - COUNT( * ), + 52 + - - 77 ) * + + ( - CAST( NULL AS SIGNED ) ) + + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT - NULLIF ( - - COUNT ( * ), + 52 + - - 77 ) * + + ( - CAST ( NULL AS INTEGER ) ) + + + CAST ( NULL AS REAL )
----
NULL

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

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

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

skipif mysql # not compatible
query II rowsort label-3131
SELECT CAST ( NULL AS INTEGER ), 3 AS col1
----
NULL
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3132
SELECT ALL + 33 AS col0, 6 - + COUNT( * ) AS col1
----
33
5

skipif mysql # not compatible
query II rowsort label-3132
SELECT ALL + 33 AS col0, 6 - + COUNT ( * ) AS col1
----
33
5

query I rowsort
SELECT + 38 * 20 AS col1
----
760

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT ALL + + 44 DIV + 88 * + - 40
----
0

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL + + 44 / + 88 * + - 40
----
0

query II rowsort
SELECT + 98, 68 * + ( - + 13 ) * + - ( 87 ) AS col0
----
98
76908

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

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

query I rowsort
SELECT - + 47 * - + 87 col0
----
4089

query I rowsort
SELECT ALL + 92 * + - 37 AS col1
----
-3404

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT - 71 * + 61 * ( - + COUNT( * ) ) + NULLIF ( - + 59, 69 * + COUNT( * ) )
----
4272

skipif mysql # not compatible
query I rowsort label-3139
SELECT - 71 * + 61 * ( - + COUNT ( * ) ) + NULLIF ( - + 59, 69 * + COUNT ( * ) )
----
4272

query I rowsort
SELECT + - 22 + - 0
----
-22

query II rowsort
SELECT + + 87 AS col2, - 66 AS col1
----
87
-66

query II rowsort
SELECT DISTINCT + + 46, 86 - + 4 col1
----
46
82

query II rowsort
SELECT DISTINCT + 92 AS col2, - ( 40 )
----
92
-40

query I rowsort
SELECT 34 * - 90 - - 28 AS col1
----
-3032

query I rowsort
SELECT - NULLIF ( 5, - 90 + - 66 )
----
-5

query I rowsort
SELECT + 34 + + 89 AS col1
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-3147
SELECT + 93 DIV - 41
----
-2

skipif mysql # not compatible
query I rowsort label-3147
SELECT + 93 / - 41
----
-2

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

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

query I rowsort
SELECT - ( - 96 ) - + + 64 AS col1
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3150
SELECT ALL 81 + + CAST( NULL AS DECIMAL ) + - 21 * + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL 81 + + CAST ( NULL AS REAL ) + - 21 * + + 1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT COUNT ( * ) + + 96 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT DISTINCT 3 + COALESCE ( - 66, - - NULLIF ( - - 8, 12 ) - + MIN( DISTINCT - + 28 ) ) * 67 * - - MIN( ALL CASE ( + 42 ) WHEN + 43 THEN + 96 END ) * - + MIN( ALL + - 90 ) * + 94 + 53 + 23 * - COUNT( * ) + - 69 + - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT DISTINCT 3 + COALESCE ( - 66, - - NULLIF ( - - 8, 12 ) - + MIN ( DISTINCT - + 28 ) ) * 67 * - - MIN ( ALL CASE ( + 42 ) WHEN + 43 THEN + 96 END ) * - + MIN ( ALL + - 90 ) * + 94 + 53 + 23 * - COUNT ( * ) + - 69 + - 10 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT ALL - COUNT( * ) + COUNT( * ) + 32 - - ( - 33 ) + + - 16 * - 6
----
95

skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL - COUNT ( * ) + COUNT ( * ) + 32 - - ( - 33 ) + + - 16 * - 6
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT - NULLIF ( + + 14, - 39 * + SUM( DISTINCT - 92 ) - - 83 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3154
SELECT - NULLIF ( + + 14, - 39 * + SUM ( DISTINCT - 92 ) - - 83 ) AS col1
----
-14

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

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL + + ( + CAST ( + COUNT ( * ) AS INTEGER ) ) * - COUNT ( * ) + 11
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT COUNT( * ) * + - 72
----
-72

skipif mysql # not compatible
query I rowsort label-3156
SELECT COUNT ( * ) * + - 72
----
-72

query I rowsort
SELECT ALL + + 17 * 2 AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3158
SELECT DISTINCT 45 * 60 / NULLIF ( + AVG ( - NULLIF ( - CAST( NULL AS SIGNED ), - 86 * - 4 + + CAST( 45 AS SIGNED ) ) ), 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT 45 * 60 / NULLIF ( + AVG ( - NULLIF ( - CAST ( NULL AS INTEGER ), - 86 * - 4 + + CAST ( 45 AS INTEGER ) ) ), 47 )
----
NULL

query I rowsort
SELECT ALL + - 50 * - 67 + - 46 + ( - + 34 ) * + 94 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT DISTINCT - + MIN( DISTINCT - 65 ) - - + 36 - - + ( + 36 ) + MAX( DISTINCT - 26 ) + + + ( + 67 )
----
178

skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT - + MIN ( DISTINCT - 65 ) - - + 36 - - + ( + 36 ) + MAX ( DISTINCT - 26 ) + + + ( + 67 )
----
178

query I rowsort
SELECT 9 * - + 40 * 0 AS col2
----
0

query I rowsort
SELECT + 38 * - NULLIF ( + + 21, - 2 ) AS col2
----
-798

onlyif mysql # aggregate syntax: 
query II rowsort label-3163
SELECT 86 + + ( - 93 ) * - 81 * + COUNT( + 47 ) * 91 AS col2, - 34
----
685589
-34

skipif mysql # not compatible
query II rowsort label-3163
SELECT 86 + + ( - 93 ) * - 81 * + COUNT ( + 47 ) * 91 AS col2, - 34
----
685589
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT CASE - - COUNT( * ) WHEN + 96 + 31 + - - 50 * COUNT( * ) * - 92 + + 23 THEN + - 40 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3164
SELECT CASE - - COUNT ( * ) WHEN + 96 + 31 + - - 50 * COUNT ( * ) * - 92 + + 23 THEN + - 40 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL + + 50 * - SUM( ALL + ( 8 ) ) AS col2
----
-400

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL + + 50 * - SUM ( ALL + ( 8 ) ) AS col2
----
-400

query I rowsort
SELECT + 5 * - 13 AS col2
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3167
SELECT 78 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT 78 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 57 * - - 98, 97 AS col0
----
5586
97

query I rowsort
SELECT 9 + + 27 AS col1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3170
SELECT DISTINCT - + SUM( + 14 ) AS col0, + ( + COUNT( * ) ) DIV 2 AS col2
----
-14
0

skipif mysql # not compatible
query II rowsort label-3170
SELECT DISTINCT - + SUM ( + 14 ) AS col0, + ( + COUNT ( * ) ) / 2 AS col2
----
-14
0

query I rowsort
SELECT ALL 41 + - 37 AS col2
----
4

query I rowsort
SELECT ALL + 48 * + 91 AS col2
----
4368

query I rowsort
SELECT 22 * - 37
----
-814

query II rowsort
SELECT 31 AS col0, 52 AS col1
----
31
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3175
SELECT ALL 5 + + COUNT( * ) * NULLIF ( + 21, + 8 + - CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL 5 + + COUNT ( * ) * NULLIF ( + 21, + 8 + - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3176
SELECT DISTINCT 63 + + MIN( ALL - 31 ), + 88 * + 17 * - COUNT( * ) * 46 AS col0
----
32
-68816

skipif mysql # not compatible
query II rowsort label-3176
SELECT DISTINCT 63 + + MIN ( ALL - 31 ), + 88 * + 17 * - COUNT ( * ) * 46 AS col0
----
32
-68816

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT COUNT( * ) * + + 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3177
SELECT COUNT ( * ) * + + 25 AS col2
----
25

query I rowsort
SELECT ALL 98 + + 38 + + + NULLIF ( + 14, - NULLIF ( - 26, - + 72 ) ) * 30 * + 44 AS col0
----
18616

query I rowsort
SELECT ALL - ( + - 17 ) + + 42
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3180
SELECT 61, - MAX( DISTINCT + 25 ) * - + 51 AS col0
----
61
1275

skipif mysql # not compatible
query II rowsort label-3180
SELECT 61, - MAX ( DISTINCT + 25 ) * - + 51 AS col0
----
61
1275

query II rowsort
SELECT - 83 AS col2, - 82 AS col0
----
-83
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3182
SELECT ALL SUM( + - 76 ) + + COUNT( * ) + 76 * + + 4 + 32 DIV + COALESCE ( - 56, 42 - - - 95 + + + COALESCE ( - 76, + 1 * - + 9 * + 40 * 0, + + 88 ) * + 16 * 45 * - NULLIF ( CAST( NULL AS SIGNED ), + 35 ) ) AS col2
----
229

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL SUM ( + - 76 ) + + COUNT ( * ) + 76 * + + 4 + 32 / + COALESCE ( - 56, 42 - - - 95 + + + COALESCE ( - 76, + 1 * - + 9 * + 40 * 0, + + 88 ) * + 16 * 45 * - NULLIF ( CAST ( NULL AS INTEGER ), + 35 ) ) AS col2
----
229

query I rowsort
SELECT ( - 33 ) * - - 35
----
-1155

query I rowsort
SELECT ALL 97 * - 8 AS col1
----
-776

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3185
SELECT CASE - 75 WHEN + - CAST( NULL AS DECIMAL ) * + + 44 * + 18 * + 41 - + - 71 THEN - 51 ELSE NULL END - - - 27 + SUM( DISTINCT + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT CASE - 75 WHEN + - CAST ( NULL AS REAL ) * + + 44 * + 18 * + 41 - + - 71 THEN - 51 ELSE NULL END - - - 27 + SUM ( DISTINCT + 79 )
----
NULL

query II rowsort
SELECT 71, + 52 * - ( + 18 ) AS col2
----
71
-936

query I rowsort
SELECT 6 * + 44 AS col1
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) * - 59 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) * - 59 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT ALL ( + COUNT( * ) ) * + - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL ( + COUNT ( * ) ) * + - 98 AS col2
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3190
SELECT ALL - + 2 DIV - 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL - + 2 / - 55 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT - ( - - 24 ) - + + COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3191
SELECT - ( - - 24 ) - + + COUNT ( * ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT - 30 + - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-3192
SELECT - 30 + - COUNT ( * )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3193
SELECT 32 * + COUNT( * ) + NULLIF ( - COALESCE ( - + 13, + + 86, + - 23 * + COUNT( * ) * + SUM( - 8 ) * - + 74 - - 14 ), - - 2 ) DIV 15 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3193
SELECT 32 * + COUNT ( * ) + NULLIF ( - COALESCE ( - + 13, + + 86, + - 23 * + COUNT ( * ) * + SUM ( - 8 ) * - + 74 - - 14 ), - - 2 ) / 15 AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT + ( 83 ) DIV + 98 * + + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3194
SELECT + ( 83 ) / + 98 * + + 90 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT - ( - + COUNT( ALL - 52 ) ) * + COUNT( * ) * + - 14 + - 22 + 14 * - - 2
----
-8

skipif mysql # not compatible
query I rowsort label-3195
SELECT - ( - + COUNT ( ALL - 52 ) ) * + COUNT ( * ) * + - 14 + - 22 + 14 * - - 2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT + COUNT( * ) * - + 12
----
-12

skipif mysql # not compatible
query I rowsort label-3196
SELECT + COUNT ( * ) * - + 12
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT + ( + SUM( ALL + 99 ) ) + + - 89
----
10

skipif mysql # not compatible
query I rowsort label-3197
SELECT + ( + SUM ( ALL + 99 ) ) + + - 89
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT ALL 63 * COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL 63 * COUNT ( * ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT - COUNT( * ) * + 78 * + MIN( 99 )
----
-7722

skipif mysql # not compatible
query I rowsort label-3199
SELECT - COUNT ( * ) * + 78 * + MIN ( 99 )
----
-7722

query I rowsort
SELECT ALL + - 97 + + - 38 * - - 45
----
-1807

query I rowsort
SELECT DISTINCT - 7 * + 48
----
-336

query I rowsort
SELECT ALL - 8 + 94 AS col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3203
SELECT COUNT( * ) AS col0, + 14
----
1
14

skipif mysql # not compatible
query II rowsort label-3203
SELECT COUNT ( * ) AS col0, + 14
----
1
14

query I rowsort
SELECT 38 - 0 AS col2
----
38

query II rowsort
SELECT + 15, 82 col2
----
15
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT DISTINCT - 72 + 96 + - 55 * NULLIF ( + + MIN( DISTINCT - 90 ), + 46 / + ( + 20 ) / - 17 + + COUNT( * ) + - - 95 )
----
4974

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT - 72 + 96 + - 55 * NULLIF ( + + MIN ( DISTINCT - 90 ), + 46 / + ( + 20 ) / - 17 + + COUNT ( * ) + - - 95 )
----
4974

query I rowsort
SELECT ALL - ( - 78 ) AS col0
----
78

query II rowsort
SELECT + 72 col0, + 30 AS col1
----
72
30

query I rowsort
SELECT ALL 51 + 2
----
53

query I rowsort
SELECT 73 - + + 6 AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3211
SELECT ALL - 72 * + CAST( - ( - 7 ) AS SIGNED )
----
-504

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL - 72 * + CAST ( - ( - 7 ) AS INTEGER )
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT - COUNT( * ) + + + 32 * + 0 * + - 33 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3212
SELECT - COUNT ( * ) + + + 32 * + 0 * + - 33 AS col1
----
-1

query I rowsort
SELECT DISTINCT + 0 * 88
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3214
SELECT ALL - 45 - - 51 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL - 45 - - 51 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3215
SELECT + COUNT( * ) * - - 28 * + 7 * 40 AS col0, 0 * + 59
----
7840
0

skipif mysql # not compatible
query II rowsort label-3215
SELECT + COUNT ( * ) * - - 28 * + 7 * 40 AS col0, 0 * + 59
----
7840
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3216
SELECT + 3 - COALESCE ( - - COUNT( DISTINCT + 92 ), + 1 DIV + 98 - + 6 * - 31, + 86 * + 88 ) + + 40
----
42

skipif mysql # not compatible
query I rowsort label-3216
SELECT + 3 - COALESCE ( - - COUNT ( DISTINCT + 92 ), + 1 / + 98 - + 6 * - 31, + 86 * + 88 ) + + 40
----
42

query I rowsort
SELECT DISTINCT + 0 * + 68 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3218
SELECT - 50 + - ( - 76 ) + 7 AS col1, 46 * + + COUNT( * )
----
33
46

skipif mysql # not compatible
query II rowsort label-3218
SELECT - 50 + - ( - 76 ) + 7 AS col1, 46 * + + COUNT ( * )
----
33
46

query I rowsort
SELECT DISTINCT + - 96 - - 96
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3220
SELECT DISTINCT + 23 * + 53 col2, COUNT( DISTINCT - 80 ) * + 26 DIV + 60 * - 47 AS col1
----
1219
0

skipif mysql # not compatible
query II rowsort label-3220
SELECT DISTINCT + 23 * + 53 col2, COUNT ( DISTINCT - 80 ) * + 26 / + 60 * - 47 AS col1
----
1219
0

query II rowsort
SELECT ALL 45, 98 AS col1
----
45
98

query I rowsort
SELECT - + 74 * - 14
----
1036

query I rowsort
SELECT DISTINCT 63 * - + 72 AS col2
----
-4536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3224
SELECT - NULLIF ( + 27, - 20 + CAST( + + MAX( - + ( + 13 ) ) AS SIGNED ) ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-3224
SELECT - NULLIF ( + 27, - 20 + CAST ( + + MAX ( - + ( + 13 ) ) AS INTEGER ) ) AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3225
SELECT + + 35 + + 51 + 29 - 23 * - + 31 DIV - - ( - CAST( - COUNT( * ) AS SIGNED ) )
----
828

skipif mysql # not compatible
query I rowsort label-3225
SELECT + + 35 + + 51 + 29 - 23 * - + 31 / - - ( - CAST ( - COUNT ( * ) AS INTEGER ) )
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ( - + MAX( - 30 ) )
----
30

skipif mysql # not compatible
query I rowsort label-3226
SELECT ( - + MAX ( - 30 ) )
----
30

query I rowsort
SELECT ALL 90 * + 74
----
6660

query I rowsort
SELECT + 60 * ( 89 ) col2
----
5340

query II rowsort
SELECT ALL + 26, 17 * - + 46 AS col0
----
26
-782

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3230
SELECT DISTINCT + - COUNT( * ) AS col1, 87 * + 23 + 68 DIV + - MIN( 12 ) + + 84 - + + 71 DIV + + 2 + - + 64 - + + 99 AS col1
----
-1
1882

skipif mysql # not compatible
query II rowsort label-3230
SELECT DISTINCT + - COUNT ( * ) AS col1, 87 * + 23 + 68 / + - MIN ( 12 ) + + 84 - + + 71 / + + 2 + - + 64 - + + 99 AS col1
----
-1
1882

query II rowsort
SELECT ALL - ( + 95 ) * + 99 + 25 AS col1, 98
----
-9380
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT ALL 57 * - 99 * + 95 + + - 15 + + 46 - COUNT( * ) + 51 * - 68
----
-539523

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL 57 * - 99 * + 95 + + - 15 + + 46 - COUNT ( * ) + 51 * - 68
----
-539523

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT ALL 95 * - - 56 + 21 + - + ( + CAST( + 62 AS SIGNED ) )
----
5279

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL 95 * - - 56 + 21 + - + ( + CAST ( + 62 AS INTEGER ) )
----
5279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3234
SELECT DISTINCT - - 32 DIV MAX( DISTINCT 48 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT - - 32 / MAX ( DISTINCT 48 ) AS col0
----
0

query I rowsort
SELECT + - 8 * - ( 20 ) * 5
----
800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3236
SELECT - 23 DIV + + MAX( ALL 32 )
----
0

skipif mysql # not compatible
query I rowsort label-3236
SELECT - 23 / + + MAX ( ALL 32 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT ALL - + ( + 31 ) * CASE 44 WHEN - 32 THEN 29 WHEN AVG ( DISTINCT + 21 ) THEN NULL WHEN + + 56 * + 66 THEN NULL ELSE + ( + + 63 ) * + 33 + - 17 END + - + 69 + - NULLIF ( + CAST( NULL AS SIGNED ), - - 20 ) / + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - + ( + 31 ) * CASE 44 WHEN - 32 THEN 29 WHEN AVG ( DISTINCT + 21 ) THEN NULL WHEN + + 56 * + 66 THEN NULL ELSE + ( + + 63 ) * + 33 + - 17 END + - + 69 + - NULLIF ( + CAST ( NULL AS INTEGER ), - - 20 ) / + 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT 76 * - MIN( ALL - - 14 ) + - + 53 - + - 54 * + 32 * - 24 + 31 AS col1
----
-42558

skipif mysql # not compatible
query I rowsort label-3238
SELECT 76 * - MIN ( ALL - - 14 ) + - + 53 - + - 54 * + 32 * - 24 + 31 AS col1
----
-42558

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT + 70 - + 32 - 37 + - COALESCE ( 24, COUNT( * ) * + 61 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-3239
SELECT + 70 - + 32 - 37 + - COALESCE ( 24, COUNT ( * ) * + 61 ) AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3240
SELECT ALL + SUM( ALL + 75 ) * - + ( - 43 ) + - 85 + - COALESCE ( COUNT( * ), - 87 ) + - COALESCE ( - + 91, - + 77, - 48 ) DIV + 24
----
3142

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL + SUM ( ALL + 75 ) * - + ( - 43 ) + - 85 + - COALESCE ( COUNT ( * ), - 87 ) + - COALESCE ( - + 91, - + 77, - 48 ) / + 24
----
3142

query I rowsort
SELECT ALL - 85 * NULLIF ( + 77, - 64 )
----
-6545

onlyif mysql # aggregate syntax: 
query II rowsort label-3242
SELECT CASE - 65 WHEN - 51 THEN - 49 + COUNT( * ) WHEN - 60 * 94 + 97 THEN + 74 ELSE 74 END col2, 4 + + + 50 AS col0
----
74
54

skipif mysql # not compatible
query II rowsort label-3242
SELECT CASE - 65 WHEN - 51 THEN - 49 + COUNT ( * ) WHEN - 60 * 94 + 97 THEN + 74 ELSE 74 END col2, 4 + + + 50 AS col0
----
74
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT DISTINCT 87 * COALESCE ( + - 94, COUNT( * ), + CASE 18 WHEN - 0 THEN NULL WHEN - NULLIF ( 46, 75 ) THEN 46 ELSE NULL END )
----
-8178

skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT 87 * COALESCE ( + - 94, COUNT ( * ), + CASE 18 WHEN - 0 THEN NULL WHEN - NULLIF ( 46, 75 ) THEN 46 ELSE NULL END )
----
-8178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3244
SELECT ALL + COALESCE ( + CAST( - 8 AS SIGNED ), + - 4 )
----
-8

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL + COALESCE ( + CAST ( - 8 AS INTEGER ), + - 4 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3245
SELECT + CASE - 0 WHEN ( - 26 ) * + NULLIF ( - 61, CASE + CAST( NULL AS SIGNED ) WHEN + + SUM( ALL - - 49 ) THEN + 89 * 82 END ) THEN - - 82 ELSE NULL END * - 37 * COUNT( * ) + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT + CASE - 0 WHEN ( - 26 ) * + NULLIF ( - 61, CASE + CAST ( NULL AS INTEGER ) WHEN + + SUM ( ALL - - 49 ) THEN + 89 * 82 END ) THEN - - 82 ELSE NULL END * - 37 * COUNT ( * ) + 91 AS col0
----
NULL

query I rowsort
SELECT - 16 * 56 AS col1
----
-896

query I rowsort
SELECT ALL 22 * + 61
----
1342

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT 13 * + - 58 DIV - + ( + 29 ) + - 67 + 94
----
53

skipif mysql # not compatible
query I rowsort label-3248
SELECT 13 * + - 58 / - + ( + 29 ) + - 67 + 94
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3249
SELECT - CAST( NULL AS SIGNED ) + - - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT - CAST ( NULL AS INTEGER ) + - - 64 AS col2
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 42, COALESCE ( - + 86, + + 9 ) * 16 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT + 80 * - 66 * + COUNT( * ) AS col1
----
-5280

skipif mysql # not compatible
query I rowsort label-3251
SELECT + 80 * - 66 * + COUNT ( * ) AS col1
----
-5280

onlyif mysql # DIV for integer division: 
query I rowsort label-3252
SELECT - 3 + - + 92 + - 80 DIV - 54 - + + 2 * - - 15 AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-3252
SELECT - 3 + - + 92 + - 80 / - 54 - + + 2 * - - 15 AS col1
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT DISTINCT ( + CAST( 64 AS SIGNED ) )
----
64

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT ( + CAST ( 64 AS INTEGER ) )
----
64

query I rowsort
SELECT ALL + 25 * + 89
----
2225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3255
SELECT - - COUNT( * ) * 8 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3255
SELECT - - COUNT ( * ) * 8 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT - COALESCE ( + SUM( ALL - ( - 18 ) ), COUNT( * ) * ( 48 ) * + - 36 * + COUNT( * ) - - COUNT( DISTINCT NULLIF ( - - 40, 18 ) ) + + 65 * - - ( - 94 ) + 41 - - 33 - + 28 * + 90 + + 47 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-3256
SELECT - COALESCE ( + SUM ( ALL - ( - 18 ) ), COUNT ( * ) * ( 48 ) * + - 36 * + COUNT ( * ) - - COUNT ( DISTINCT NULLIF ( - - 40, 18 ) ) + + 65 * - - ( - 94 ) + 41 - - 33 - + 28 * + 90 + + 47 ) AS col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3257
SELECT - COUNT( * ) DIV 5 * - ( - 82 )
----
0

skipif mysql # not compatible
query I rowsort label-3257
SELECT - COUNT ( * ) / 5 * - ( - 82 )
----
0

query II rowsort
SELECT ALL - + 31 * 56 AS col0, 90 - + + 61
----
-1736
29

query I rowsort
SELECT + 91 * 73
----
6643

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3260
SELECT + 95 DIV + - 44 + + + ( - - COALESCE ( - - 3, 86, + 30 * + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3260
SELECT + 95 / + - 44 + + + ( - - COALESCE ( - - 3, 86, + 30 * + COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT COALESCE ( - - 27, + NULLIF ( + 73, - ( + 27 ) / + + COUNT( 93 ) ) )
----
27

skipif mysql # not compatible
query I rowsort label-3261
SELECT COALESCE ( - - 27, + NULLIF ( + 73, - ( + 27 ) / + + COUNT ( 93 ) ) )
----
27

query I rowsort
SELECT ALL - 73 * + 27 * - 61 + - 11 AS col0
----
120220

onlyif mysql # aggregate syntax: 
query II rowsort label-3263
SELECT DISTINCT 97 + - - COUNT( * ) AS col1, 54 * + 36
----
98
1944

skipif mysql # not compatible
query II rowsort label-3263
SELECT DISTINCT 97 + - - COUNT ( * ) AS col1, 54 * + 36
----
98
1944

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT ALL - 18 + COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL - 18 + COUNT ( * ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT + - 12 - + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-3265
SELECT + - 12 - + COUNT ( * )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3266
SELECT DISTINCT + + SUM( 4 ) + AVG ( - 38 ) + + + 91 + - - NULLIF ( - 79, - - CAST( - ( + 74 ) AS SIGNED ) ) * + + CASE - + ( - + 48 ) WHEN COUNT( * ) * + COUNT( * ) * + 43 + + MIN( + 85 ) THEN COUNT( * ) + 20 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3266
SELECT DISTINCT + + SUM ( 4 ) + AVG ( - 38 ) + + + 91 + - - NULLIF ( - 79, - - CAST ( - ( + 74 ) AS INTEGER ) ) * + + CASE - + ( - + 48 ) WHEN COUNT ( * ) * + COUNT ( * ) * + 43 + + MIN ( + 85 ) THEN COUNT ( * ) + 20 END AS col1
----
NULL

query I rowsort
SELECT - + 43 + - 97
----
-140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3268
SELECT + 11 * + - COUNT( ALL CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3268
SELECT + 11 * + - COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3269
SELECT ALL + + ( 64 ) DIV 8 + + COUNT( + - 24 ) * + 85 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL + + ( 64 ) / 8 + + COUNT ( + - 24 ) * + 85 AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3270
SELECT COALESCE ( 66, SUM( ALL + 47 ) * + CAST( - 14 AS SIGNED ) + - 70 DIV - COUNT( * ), + 28 * + 52 - - COUNT( * ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3270
SELECT COALESCE ( 66, SUM ( ALL + 47 ) * + CAST ( - 14 AS INTEGER ) + - 70 / - COUNT ( * ), + 28 * + 52 - - COUNT ( * ) ) AS col1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3271
SELECT - + 35 DIV 21 + - 79 - NULLIF ( - - 15, 58 ) + - COALESCE ( + - 7, - 58 + + + 36 + 44, + ( + 1 ) + + + 56 ) * + 51
----
262

skipif mysql # not compatible
query I rowsort label-3271
SELECT - + 35 / 21 + - 79 - NULLIF ( - - 15, 58 ) + - COALESCE ( + - 7, - 58 + + + 36 + 44, + ( + 1 ) + + + 56 ) * + 51
----
262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3272
SELECT SUM( + 67 ) / + 34 * - 77 + - + CAST( NULL AS SIGNED ) + + 2 * - 6 * CASE WHEN 88 IS NOT NULL THEN - - COUNT( * ) + + MIN( COALESCE ( 62, + + 35 * + - 18 * 10, - 71 ) ) END + - 4 - COALESCE ( 60, - 83 + + ( - 17 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT SUM ( + 67 ) / + 34 * - 77 + - + CAST ( NULL AS INTEGER ) + + 2 * - 6 * CASE WHEN 88 IS NOT NULL THEN - - COUNT ( * ) + + MIN ( COALESCE ( 62, + + 35 * + - 18 * 10, - 71 ) ) END + - 4 - COALESCE ( 60, - 83 + + ( - 17 ) ) col1
----
NULL

query I rowsort
SELECT DISTINCT 41 * - + 17 AS col0
----
-697

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT + COUNT( * ) + - COUNT( + 92 )
----
0

skipif mysql # not compatible
query I rowsort label-3274
SELECT + COUNT ( * ) + - COUNT ( + 92 )
----
0

query I rowsort
SELECT + ( - + 66 )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3276
SELECT ALL COUNT( * ) DIV 98 - 54 + + 84 * + + 66
----
5490

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL COUNT ( * ) / 98 - 54 + + 84 * + + 66
----
5490

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT ALL MAX( - 94 ) / 69 - - CASE 27 WHEN - + 62 - - COUNT( * ) THEN + 48 END + + COUNT( * ) - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL MAX ( - 94 ) / 69 - - CASE 27 WHEN - + 62 - - COUNT ( * ) THEN + 48 END + + COUNT ( * ) - 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3278
SELECT DISTINCT - 15 AS col0, COUNT( * )
----
-15
1

skipif mysql # not compatible
query II rowsort label-3278
SELECT DISTINCT - 15 AS col0, COUNT ( * )
----
-15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT 63 - + 95 - + COUNT( * ) + + 46 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-3279
SELECT 63 - + 95 - + COUNT ( * ) + + 46 AS col1
----
13

query I rowsort
SELECT 2 * + + 82 AS col1
----
164

query I rowsort
SELECT ( 71 ) + - 24 * - 51 + - - 56 AS col0
----
1351

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT 76 * - 24 * - COUNT( * ) col0
----
1824

skipif mysql # not compatible
query I rowsort label-3282
SELECT 76 * - 24 * - COUNT ( * ) col0
----
1824

query II rowsort
SELECT + 37 AS col2, 44 AS col2
----
37
44

query I rowsort
SELECT ALL - CASE WHEN NOT 15 IS NOT NULL THEN - - 38 WHEN NOT 91 * - 64 IS NULL THEN + 15 + + + 82 END
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT NULLIF ( - ( + NULLIF ( - 26, - 43 * + + 48 * CASE - COALESCE ( - 86, + - 1 ) WHEN - - 26 THEN NULL WHEN + COUNT( * ) * + - 39 - 0 THEN COUNT( + 21 ) ELSE NULL END + + CASE - 40 WHEN - - 44 * + + 85 + 31 - - NULLIF ( + COALESCE ( - 28, - ( 29 ) + - 28 ), - 95 + + COUNT( * ) ) + 28 * - ( COALESCE ( 52, 17 / - COUNT( * ), - 72 ) * + 91 ) * 19 * + 96 + - 37 * 96 THEN + COUNT( ALL 32 ) / 12 END * - 29 ) ), 37 * + 52 ) * + COALESCE ( COUNT( * ), + 73, - 40 - COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-3285
SELECT NULLIF ( - ( + NULLIF ( - 26, - 43 * + + 48 * CASE - COALESCE ( - 86, + - 1 ) WHEN - - 26 THEN NULL WHEN + COUNT ( * ) * + - 39 - 0 THEN COUNT ( + 21 ) ELSE NULL END + + CASE - 40 WHEN - - 44 * + + 85 + 31 - - NULLIF ( + COALESCE ( - 28, - ( 29 ) + - 28 ), - 95 + + COUNT ( * ) ) + 28 * - ( COALESCE ( 52, 17 / - COUNT ( * ), - 72 ) * + 91 ) * 19 * + 96 + - 37 * 96 THEN + COUNT ( ALL 32 ) / 12 END * - 29 ) ), 37 * + 52 ) * + COALESCE ( COUNT ( * ), + 73, - 40 - COUNT ( * ) )
----
26

query I rowsort
SELECT ALL 32 * + + 15
----
480

query I rowsort
SELECT 7 - - 76 * - 81
----
-6149

query I rowsort
SELECT 56 * 82 * + - 79 + + 17 + - - 56 AS col1
----
-362695

query I rowsort
SELECT - 96 * - 62 AS col1
----
5952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3290
SELECT + COALESCE ( + COUNT( * ), + CAST( NULL AS SIGNED ) + + - 39 * - + 8 - - 24 ) + - 94 DIV + 37 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3290
SELECT + COALESCE ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) + + - 39 * - + 8 - - 24 ) + - 94 / + 37 AS col0
----
-1

query I rowsort
SELECT ( + 99 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT 30 + - SUM( 66 ) + COUNT( * ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-3292
SELECT 30 + - SUM ( 66 ) + COUNT ( * ) col1
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3293
SELECT + 89 - COUNT( * ) DIV + - 78, + 9 AS col1
----
89
9

skipif mysql # not compatible
query II rowsort label-3293
SELECT + 89 - COUNT ( * ) / + - 78, + 9 AS col1
----
89
9

query I rowsort
SELECT ALL + 13 + - - 46 AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3295
SELECT ALL + 2 + - SUM( 82 ) * + NULLIF ( - + COUNT( * ), - + 22 * 9 + + COALESCE ( - - 88, + - 44 * - 12 + + + 91 ) + 16 + - 28 * + ( - - 96 ) * - + CAST( COUNT( * ) AS SIGNED ) + - 8 )
----
84

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL + 2 + - SUM ( 82 ) * + NULLIF ( - + COUNT ( * ), - + 22 * 9 + + COALESCE ( - - 88, + - 44 * - 12 + + + 91 ) + 16 + - 28 * + ( - - 96 ) * - + CAST ( COUNT ( * ) AS INTEGER ) + - 8 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT DISTINCT MAX( + 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT MAX ( + 51 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT + 46 + + 41 + + + COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3297
SELECT + 46 + + 41 + + + COUNT ( * ) AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3298
SELECT ALL - 22 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL - 22 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - + 53 AS col0, + 45
----
-53
45

query I rowsort
SELECT 99 + 2 col1
----
101

query I rowsort
SELECT - 12 * - + 31 + + 70 col0
----
442

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT ALL - CASE 80 WHEN - + 49 * + 43 THEN - - MIN( + - 93 ) WHEN - 5 + 39 THEN - COUNT( * ) END + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL - CASE 80 WHEN - + 49 * + 43 THEN - - MIN ( + - 93 ) WHEN - 5 + 39 THEN - COUNT ( * ) END + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT - MAX( - 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3303
SELECT - MAX ( - 21 ) AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3304
SELECT - CAST( COUNT( * ) AS SIGNED ) + - + 67 + + 0
----
-68

skipif mysql # not compatible
query I rowsort label-3304
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + - + 67 + + 0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT 78 * COUNT( - 41 )
----
78

skipif mysql # not compatible
query I rowsort label-3305
SELECT 78 * COUNT ( - 41 )
----
78

query I rowsort
SELECT + 5 * - + 34 AS col2
----
-170

onlyif mysql # aggregate syntax: 
query II rowsort label-3307
SELECT + 49 * - COUNT( ALL 64 ) AS col2, 84 * + 92 * - - 43
----
-49
332304

skipif mysql # not compatible
query II rowsort label-3307
SELECT + 49 * - COUNT ( ALL 64 ) AS col2, 84 * + 92 * - - 43
----
-49
332304

query I rowsort
SELECT DISTINCT + 67 * + 89 AS col2
----
5963

query I rowsort
SELECT ALL 35 - + 16 * - 41 AS col1
----
691

query I rowsort
SELECT 67 * 47 * 28 AS col1
----
88172

query I rowsort
SELECT ALL - NULLIF ( 65, - 28 + - + 92 )
----
-65

query I rowsort
SELECT 57 * + 80 AS col2
----
4560

query I rowsort
SELECT DISTINCT 34 * - 22 * - - 91 AS col1
----
-68068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3314
SELECT CAST( - 20 AS SIGNED ) DIV + 40 * - 83 * - MAX( ALL - 28 ) * + 86 + - + 17 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-3314
SELECT CAST ( - 20 AS INTEGER ) / + 40 * - 83 * - MAX ( ALL - 28 ) * + 86 + - + 17 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT SUM( DISTINCT + 60 ) * + 75 AS col0
----
4500

skipif mysql # not compatible
query I rowsort label-3315
SELECT SUM ( DISTINCT + 60 ) * + 75 AS col0
----
4500

onlyif mysql # aggregate syntax: 
query II rowsort label-3316
SELECT DISTINCT + 41 * 28 * - - ( - ( 50 ) ), COUNT( * ) AS col0
----
-57400
1

skipif mysql # not compatible
query II rowsort label-3316
SELECT DISTINCT + 41 * 28 * - - ( - ( 50 ) ), COUNT ( * ) AS col0
----
-57400
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3317
SELECT ALL COUNT( * ) * COUNT( * ) DIV CAST( + NULLIF ( 45, + ( + 80 ) + + CASE - - 5 WHEN + + 69 THEN + 20 - + CAST( NULL AS SIGNED ) ELSE 35 * + CASE - 54 WHEN - - COALESCE ( - CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) - - - 46 DIV + 10 + 56, - 56 ) * - CAST( - 84 AS SIGNED ) THEN ( - 35 ) WHEN 45 * - NULLIF ( + 80 * - 62, - 71 ) THEN + NULLIF ( + 65, CAST( - 24 AS DECIMAL ) * COALESCE ( 50, - 12, 7 * - 98 ) + + NULLIF ( + 10 - - 30 DIV ( - 4 ), 59 + COUNT( * ) ) ) END END * 49 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL COUNT ( * ) * COUNT ( * ) / CAST ( + NULLIF ( 45, + ( + 80 ) + + CASE - - 5 WHEN + + 69 THEN + 20 - + CAST ( NULL AS INTEGER ) ELSE 35 * + CASE - 54 WHEN - - COALESCE ( - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) - - - 46 / + 10 + 56, - 56 ) * - CAST ( - 84 AS INTEGER ) THEN ( - 35 ) WHEN 45 * - NULLIF ( + 80 * - 62, - 71 ) THEN + NULLIF ( + 65, CAST ( - 24 AS REAL ) * COALESCE ( 50, - 12, 7 * - 98 ) + + NULLIF ( + 10 - - 30 / ( - 4 ), 59 + COUNT ( * ) ) ) END END * 49 ) AS INTEGER ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3318
SELECT 91 DIV + 33
----
2

skipif mysql # not compatible
query I rowsort label-3318
SELECT 91 / + 33
----
2

query I rowsort
SELECT 27 + + - 38 AS col0
----
-11

query I rowsort
SELECT 97 * + 0 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3321
SELECT DISTINCT 29 DIV - 86 + - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT 29 / - 86 + - COUNT ( * ) col1
----
-1

query I rowsort
SELECT DISTINCT - 84 + 24
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT ALL 56 + + 97 - 79 + + - 85 * - 84 * - COUNT( * ) * COUNT( * ) * SUM( 57 ) AS col2
----
-406906

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL 56 + + 97 - 79 + + - 85 * - 84 * - COUNT ( * ) * COUNT ( * ) * SUM ( 57 ) AS col2
----
-406906

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT DISTINCT COUNT( DISTINCT + 37 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT COUNT ( DISTINCT + 37 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT DISTINCT + 34 * - ( - - MAX( - 75 ) )
----
2550

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT + 34 * - ( - - MAX ( - 75 ) )
----
2550

query I rowsort
SELECT DISTINCT - 23 + 59
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT COALESCE ( + 74, + ( - COUNT( + - 38 ) ) * - 21 ) * - 7 AS col1
----
-518

skipif mysql # not compatible
query I rowsort label-3327
SELECT COALESCE ( + 74, + ( - COUNT ( + - 38 ) ) * - 21 ) * - 7 AS col1
----
-518

onlyif mysql # DIV for integer division: 
query I rowsort label-3328
SELECT ALL - 90 + + ( + COALESCE ( - 77, + ( 1 ) ) ) DIV + 93
----
-90

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL - 90 + + ( + COALESCE ( - 77, + ( 1 ) ) ) / + 93
----
-90

query I rowsort
SELECT - + ( + - 40 )
----
40

query I rowsort
SELECT 93 - - 77
----
170

query I rowsort
SELECT - ( ( + 84 ) ) AS col0
----
-84

query I rowsort
SELECT - 69 * + ( - 93 ) AS col0
----
6417

query I rowsort
SELECT ALL - - 71 * - ( - - 68 ) AS col0
----
-4828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT DISTINCT - 45 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT - 45 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - CASE + + 64 WHEN 41 * + + 47 THEN + 76 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT + 87 + - COUNT( * ) col1
----
86

skipif mysql # not compatible
query I rowsort label-3336
SELECT + 87 + - COUNT ( * ) col1
----
86

query I rowsort
SELECT - 93 - - 21
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-3338
SELECT + 5 DIV + - 34
----
0

skipif mysql # not compatible
query I rowsort label-3338
SELECT + 5 / + - 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT - 11 * + + MAX( + COALESCE ( - 88, 37, + - 53 ) )
----
968

skipif mysql # not compatible
query I rowsort label-3339
SELECT - 11 * + + MAX ( + COALESCE ( - 88, 37, + - 53 ) )
----
968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT COALESCE ( + - CAST( NULL AS SIGNED ), 11, 94 )
----
11

skipif mysql # not compatible
query I rowsort label-3340
SELECT COALESCE ( + - CAST ( NULL AS INTEGER ), 11, 94 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT ALL 63 * - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL 63 * - COUNT ( * )
----
-63

query I rowsort
SELECT - 75 * - - ( + 53 )
----
-3975

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT ALL + ( - COUNT( - 80 ) ) col2, + COUNT( * ) + ( + + 87 ) + - ( + + 63 )
----
-1
25

skipif mysql # not compatible
query II rowsort label-3343
SELECT ALL + ( - COUNT ( - 80 ) ) col2, + COUNT ( * ) + ( + + 87 ) + - ( + + 63 )
----
-1
25

query I rowsort
SELECT NULLIF ( + 20, - 46 * + 75 + 58 ) AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3345
SELECT ALL - COUNT( * ) * - 59 * - 97 + - + CAST( NULL AS SIGNED ) * - + 91 * - + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL - COUNT ( * ) * - 59 * - 97 + - + CAST ( NULL AS INTEGER ) * - + 91 * - + 5
----
NULL

query I rowsort
SELECT NULLIF ( NULLIF ( ( - + 22 ), - 0 + + 4 ), - + 7 + 80 )
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3347
SELECT - CAST( NULL AS DECIMAL ) * - - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT - CAST ( NULL AS REAL ) * - - 17 AS col0
----
NULL

query I rowsort
SELECT - 21 * + 91
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT ALL + COUNT( DISTINCT 43 )
----
1

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL + COUNT ( DISTINCT 43 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3350
SELECT + COUNT( * ), NULLIF ( 92, MAX( ALL 0 ) / + COUNT( * ) * 53 ) AS col1
----
1
92

skipif mysql # not compatible
query II rowsort label-3350
SELECT + COUNT ( * ), NULLIF ( 92, MAX ( ALL 0 ) / + COUNT ( * ) * 53 ) AS col1
----
1
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL 27 * 2 + - 9 + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL 27 * 2 + - 9 + COUNT ( * )
----
46

query I rowsort
SELECT ALL + 79 * + ( - 12 ) + - + 27
----
-975

query I rowsort
SELECT 74 * ( - 81 ) - 30
----
-6024

query I rowsort
SELECT + + 0 - - + 5
----
5

query I rowsort
SELECT ALL + 94 + - + 13
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT + - COUNT( * ) + + 57 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3356
SELECT + - COUNT ( * ) + + 57 AS col2
----
56

query I rowsort
SELECT + - ( - + 42 ) * - 87 * + 36 AS col1
----
-131544

onlyif mysql # DIV for integer division: 
query I rowsort label-3358
SELECT ALL 47 DIV + 29
----
1

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL 47 / + 29
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT + 31 + - + 73 + 7 * - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-3359
SELECT + 31 + - + 73 + 7 * - COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT ALL SUM( + + 72 ) - - 98 AS col1
----
170

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL SUM ( + + 72 ) - - 98 AS col1
----
170

onlyif mysql # aggregate syntax: 
query II rowsort label-3361
SELECT ALL 83 AS col1, - COUNT( * ) AS col0
----
83
-1

skipif mysql # not compatible
query II rowsort label-3361
SELECT ALL 83 AS col1, - COUNT ( * ) AS col0
----
83
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT + + 23 + + + ( - 92 ) * + ( + MAX( DISTINCT - 96 ) )
----
8855

skipif mysql # not compatible
query I rowsort label-3362
SELECT + + 23 + + + ( - 92 ) * + ( + MAX ( DISTINCT - 96 ) )
----
8855

query I rowsort
SELECT ALL + 18 * - - 42
----
756

query I rowsort
SELECT - + ( - 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT ALL MAX( - 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL MAX ( - 5 ) AS col2
----
-5

query II rowsort
SELECT 74, - 10 col1
----
74
-10

query I rowsort
SELECT - 87 * - + 40 AS col2
----
3480

query II rowsort
SELECT ALL 66, 13 * + - ( + 22 ) * + 90 AS col2
----
66
-25740

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3369
SELECT + CASE + CAST( NULL AS DECIMAL ) WHEN 58 + - MAX( DISTINCT + CAST( - 13 AS DECIMAL ) ) / - + 95 * + + 1 / 15 - COALESCE ( - 41, 45, 12 ) THEN + ( + + 77 ) * + 38 + 41 + + 49 * - 40 + 97 END + - 2 + - 59 + - 78 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3369
SELECT + CASE + CAST ( NULL AS REAL ) WHEN 58 + - MAX ( DISTINCT + CAST ( - 13 AS REAL ) ) / - + 95 * + + 1 / 15 - COALESCE ( - 41, 45, 12 ) THEN + ( + + 77 ) * + 38 + 41 + + 49 * - 40 + 97 END + - 2 + - 59 + - 78 col0
----
NULL

query I rowsort
SELECT ALL 81 + 96 * - 97
----
-9231

onlyif mysql # DIV for integer division: 
query I rowsort label-3371
SELECT ALL - 96 DIV - 41 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL - 96 / - 41 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3372
SELECT ALL 37 / - 36 + COUNT( * ) * CAST( NULL AS SIGNED ) + - 79 - - COUNT( * ) + - 76 / + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL 37 / - 36 + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 79 - - COUNT ( * ) + - 76 / + - 44
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3373
SELECT ALL - 85 DIV - - 86 + - + 59 col2
----
-59

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL - 85 / - - 86 + - + 59 col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3374
SELECT DISTINCT 11 DIV 76 + - 32 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-3374
SELECT DISTINCT 11 / 76 + - 32 AS col2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3375
SELECT ALL 9 DIV + + COUNT( - 32 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL 9 / + + COUNT ( - 32 ) AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT + 15 DIV + - 1 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-3376
SELECT + 15 / + - 1 AS col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3377
SELECT + CAST( - AVG ( DISTINCT - 59 ) AS SIGNED ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-3377
SELECT + CAST ( - AVG ( DISTINCT - 59 ) AS INTEGER ) AS col1
----
59

query II rowsort
SELECT - 97 + - + 16, + 23 * + + 92 AS col0
----
-113
2116

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT + 36 * - 45 + 58 + 94 * - COUNT( * ) * NULLIF ( + 76, - + COUNT( * ) ) * + + 99
----
-708818

skipif mysql # not compatible
query I rowsort label-3379
SELECT + 36 * - 45 + 58 + 94 * - COUNT ( * ) * NULLIF ( + 76, - + COUNT ( * ) ) * + + 99
----
-708818

query I rowsort
SELECT + 68 * - 10 AS col1
----
-680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3381
SELECT 24 / 97 * - 16 + - CAST( NULL AS SIGNED ) + + + 34 + 22 * 12 * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT 24 / 97 * - 16 + - CAST ( NULL AS INTEGER ) + + + 34 + 22 * 12 * 66
----
NULL

query I rowsort
SELECT - 44 - + - 4
----
-40

query I rowsort
SELECT DISTINCT 8 * + 82 col1
----
656

query I rowsort
SELECT ALL + + ( + 28 )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3385
SELECT DISTINCT - + 72 * + 91 + + + COALESCE ( + COUNT( * ), 87 * + - 16 ) AS col0, + 7 + - - 79 AS col1
----
-6551
86

skipif mysql # not compatible
query II rowsort label-3385
SELECT DISTINCT - + 72 * + 91 + + + COALESCE ( + COUNT ( * ), 87 * + - 16 ) AS col0, + 7 + - - 79 AS col1
----
-6551
86

query II rowsort
SELECT 85, + 28 * 65 AS col2
----
85
1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3387
SELECT ALL - - CAST( NULL AS SIGNED ) * + + 56 * 37 * 82 * - CASE + MAX( - + 41 ) WHEN 73 THEN - 94 * - CASE 68 WHEN - 40 THEN + CASE 39 WHEN + - 34 THEN NULL WHEN - - CAST( 76 AS SIGNED ) * 4 + + CASE - COUNT( ALL - CASE + - 31 WHEN - + NULLIF ( - 4, - 63 * + 20 ) * 21 THEN NULL WHEN + 54 * 66 THEN 31 + CASE - 94 - 95 WHEN - 65 THEN + ( - 37 ) + + 37 * 63 END ELSE NULL END ) WHEN 4 * + 20 + - AVG ( DISTINCT 20 ) THEN 68 / - MAX( 28 ) END * + 67 THEN + COALESCE ( - CAST( NULL AS SIGNED ), - 55 ) END * 81 + 14 END WHEN 61 THEN NULL END - 61 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - - CAST ( NULL AS INTEGER ) * + + 56 * 37 * 82 * - CASE + MAX ( - + 41 ) WHEN 73 THEN - 94 * - CASE 68 WHEN - 40 THEN + CASE 39 WHEN + - 34 THEN NULL WHEN - - CAST ( 76 AS INTEGER ) * 4 + + CASE - COUNT ( ALL - CASE + - 31 WHEN - + NULLIF ( - 4, - 63 * + 20 ) * 21 THEN NULL WHEN + 54 * 66 THEN 31 + CASE - 94 - 95 WHEN - 65 THEN + ( - 37 ) + + 37 * 63 END ELSE NULL END ) WHEN 4 * + 20 + - AVG ( DISTINCT 20 ) THEN 68 / - MAX ( 28 ) END * + 67 THEN + COALESCE ( - CAST ( NULL AS INTEGER ), - 55 ) END * 81 + 14 END WHEN 61 THEN NULL END - 61 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT ALL + ( SUM( 24 ) )
----
24

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL + ( SUM ( 24 ) )
----
24

query II rowsort
SELECT 28, 24 * + 7 AS col0
----
28
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT + - SUM( ALL 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-3390
SELECT + - SUM ( ALL 59 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL - - 4 * - COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL - - 4 * - COUNT ( * ) AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3392
SELECT - ( - - 93 ) * - CAST( NULL AS SIGNED ) / 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT - ( - - 93 ) * - CAST ( NULL AS INTEGER ) / 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT DISTINCT - 40 * - - MIN( ALL - + 42 ) * + 2 + + + 92 + + 10 - - NULLIF ( 48, + + COUNT( * ) ) + 86
----
3596

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT - 40 * - - MIN ( ALL - + 42 ) * + 2 + + + 92 + + 10 - - NULLIF ( 48, + + COUNT ( * ) ) + 86
----
3596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3394
SELECT + 24 * 95 DIV - 20 + - + COUNT( * ) AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-3394
SELECT + 24 * 95 / - 20 + - + COUNT ( * ) AS col0
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT - + 62 * + MAX( DISTINCT - 80 )
----
4960

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT - + 62 * + MAX ( DISTINCT - 80 )
----
4960

onlyif mysql # aggregate syntax: 
query II rowsort label-3396
SELECT + 81 + + COUNT( * ) AS col1, - 63
----
82
-63

skipif mysql # not compatible
query II rowsort label-3396
SELECT + 81 + + COUNT ( * ) AS col1, - 63
----
82
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3397
SELECT - ( + CAST( + COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3397
SELECT - ( + CAST ( + COUNT ( * ) AS INTEGER ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3398
SELECT - MIN( - 33 ) / CAST( NULL AS SIGNED ) * - - 93 + - 59 + 13 * AVG ( + 35 ) + COUNT( * ) - - - 10 * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT - MIN ( - 33 ) / CAST ( NULL AS INTEGER ) * - - 93 + - 59 + 13 * AVG ( + 35 ) + COUNT ( * ) - - - 10 * - 88
----
NULL

query II rowsort
SELECT + 62, + 81 + - 40 AS col0
----
62
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT - SUM( DISTINCT 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-3400
SELECT - SUM ( DISTINCT 63 ) AS col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT 66 - - 41 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT 66 - - 41 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 76 - COALESCE ( - 45, 46, - - 25 ) AS col0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-3403
SELECT DISTINCT + 9 DIV + 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT + 9 / + 11 AS col0
----
0

query I rowsort
SELECT ALL + 0 + 86 col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3405
SELECT DISTINCT 4 * NULLIF ( - + 89, - + CAST( - - 96 AS SIGNED ) * + 83 + - 4 * + - 36 ) * 42 * + - 37 * + 43
----
23788632

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT 4 * NULLIF ( - + 89, - + CAST ( - - 96 AS INTEGER ) * + 83 + - 4 * + - 36 ) * 42 * + - 37 * + 43
----
23788632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3406
SELECT 72 * 86 AS col1, MIN( + ( - CAST( + 82 AS SIGNED ) ) ) / CAST( NULL AS SIGNED ) AS col1
----
6192
NULL

skipif mysql # not compatible
query II rowsort label-3406
SELECT 72 * 86 AS col1, MIN ( + ( - CAST ( + 82 AS INTEGER ) ) ) / CAST ( NULL AS INTEGER ) AS col1
----
6192
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3407
SELECT COUNT( + - COALESCE ( - 58, ( - 84 ) * + + 0 / 2 + - - 33 ) ) + + CAST( NULL AS SIGNED ) + + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT COUNT ( + - COALESCE ( - 58, ( - 84 ) * + + 0 / 2 + - - 33 ) ) + + CAST ( NULL AS INTEGER ) + + 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3408
SELECT DISTINCT 68 * 44, COUNT( * ) AS col0
----
2992
1

skipif mysql # not compatible
query II rowsort label-3408
SELECT DISTINCT 68 * 44, COUNT ( * ) AS col0
----
2992
1

query I rowsort
SELECT 20 - + 17
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3410
SELECT ALL CASE COALESCE ( + + 46, COUNT( ALL 53 ) ) WHEN - CAST( NULL AS SIGNED ) THEN - + 71 * - 45 / - 90 END + + CASE WHEN ( + 65 ) BETWEEN NULL AND NULL THEN 21 * + 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL CASE COALESCE ( + + 46, COUNT ( ALL 53 ) ) WHEN - CAST ( NULL AS INTEGER ) THEN - + 71 * - 45 / - 90 END + + CASE WHEN ( + 65 ) BETWEEN NULL AND NULL THEN 21 * + 65 END
----
NULL

query I rowsort
SELECT DISTINCT 32 * + 57 AS col1
----
1824

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT 38 DIV + 48 + - 50 * + 22 AS col2
----
-1100

skipif mysql # not compatible
query I rowsort label-3412
SELECT 38 / + 48 + - 50 * + 22 AS col2
----
-1100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3413
SELECT ALL 67 + + 81 / - 65 * - - 93 * - 63 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL 67 + + 81 / - 65 * - - 93 * - 63 / - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT ALL NULLIF ( + COUNT( * ), + 8 ) + + 66
----
67

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL NULLIF ( + COUNT ( * ), + 8 ) + + 66
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3415
SELECT NULLIF ( + + CASE + 54 WHEN - 3 THEN NULL WHEN COUNT( * ) THEN + 90 WHEN - 91 THEN + - 94 + + - 25 * - - 34 END, - COUNT( + + COALESCE ( + - 20, - 2 ) ) ) * - + 61 AS col0, + 78 - - - 92
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-3415
SELECT NULLIF ( + + CASE + 54 WHEN - 3 THEN NULL WHEN COUNT ( * ) THEN + 90 WHEN - 91 THEN + - 94 + + - 25 * - - 34 END, - COUNT ( + + COALESCE ( + - 20, - 2 ) ) ) * - + 61 AS col0, + 78 - - - 92
----
NULL
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT - 57 * + 22 + + COUNT( * ) AS col0
----
-1253

skipif mysql # not compatible
query I rowsort label-3416
SELECT - 57 * + 22 + + COUNT ( * ) AS col0
----
-1253

query I rowsort
SELECT 0 * + - 34 + + 10
----
10

query I rowsort
SELECT 22 * - - ( + + 48 ) + 58 AS col0
----
1114

query I rowsort
SELECT - 33 * - 32 * 36 + 62
----
38078

query II rowsort
SELECT ALL + 3 * - 89 * - 11 AS col1, - 27 AS col0
----
2937
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT + 72 + COUNT( * ) * 80 AS col2
----
152

skipif mysql # not compatible
query I rowsort label-3421
SELECT + 72 + COUNT ( * ) * 80 AS col2
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3422
SELECT + COUNT( * ) DIV - - 99
----
0

skipif mysql # not compatible
query I rowsort label-3422
SELECT + COUNT ( * ) / - - 99
----
0

query I rowsort
SELECT DISTINCT 51 * - + 86 col2
----
-4386

onlyif mysql # DIV for integer division: 
query II rowsort label-3424
SELECT DISTINCT 64 * 76 AS col2, + 94 - + + 54 DIV + + ( + ( + 26 ) ) AS col0
----
4864
92

skipif mysql # not compatible
query II rowsort label-3424
SELECT DISTINCT 64 * 76 AS col2, + 94 - + + 54 / + + ( + ( + 26 ) ) AS col0
----
4864
92

query I rowsort
SELECT ALL - ( + 49 ) * 53 * + 9
----
-23373

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT DISTINCT - - NULLIF ( - 58, + COUNT( * ) * - NULLIF ( 60, - - 70 ) * 33 ) col1
----
-58

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT - - NULLIF ( - 58, + COUNT ( * ) * - NULLIF ( 60, - - 70 ) * 33 ) col1
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3427
SELECT 56 * + 96 * + - 69 + + + 54 - 12 DIV 28
----
-370890

skipif mysql # not compatible
query I rowsort label-3427
SELECT 56 * + 96 * + - 69 + + + 54 - 12 / 28
----
-370890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3428
SELECT - 66 + - - 73 + - MIN( ALL + - 28 ) DIV - 36
----
7

skipif mysql # not compatible
query I rowsort label-3428
SELECT - 66 + - - 73 + - MIN ( ALL + - 28 ) / - 36
----
7

query I rowsort
SELECT 68 + + 43 + ( + NULLIF ( + 69, + 64 ) ) AS col0
----
180

query I rowsort
SELECT 70 * - 67 AS col2
----
-4690

query I rowsort
SELECT - 49 + + + 49
----
0

query I rowsort
SELECT - NULLIF ( 63, - ( + 47 ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT + 58 * + - COUNT( * ) + + COUNT( * ) + + 0 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-3433
SELECT + 58 * + - COUNT ( * ) + + COUNT ( * ) + + 0 AS col1
----
-57

query I rowsort
SELECT NULLIF ( + + 84, - - 39 ) + - 7 AS col0
----
77

query I rowsort
SELECT DISTINCT - 99 + + 97
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ALL + COUNT( DISTINCT 90 ) * 8
----
8

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL + COUNT ( DISTINCT 90 ) * 8
----
8

query I rowsort
SELECT DISTINCT + 23 + + + 57 col0
----
80

query I rowsort
SELECT ALL - 68 + + + 44 AS col1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3439
SELECT DISTINCT + 14 * - CAST( 98 AS SIGNED ) AS col1
----
-1372

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT + 14 * - CAST ( 98 AS INTEGER ) AS col1
----
-1372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3440
SELECT 95 DIV 18 * + COUNT( * ) * MAX( DISTINCT - 47 ) AS col1
----
-235

skipif mysql # not compatible
query I rowsort label-3440
SELECT 95 / 18 * + COUNT ( * ) * MAX ( DISTINCT - 47 ) AS col1
----
-235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3441
SELECT ALL COUNT( * ) + + 28 - - + ( + - 83 ) + - 44 + + + MIN( + CAST( NULL AS SIGNED ) ) / 74 + - + ( + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL COUNT ( * ) + + 28 - - + ( + - 83 ) + - 44 + + + MIN ( + CAST ( NULL AS INTEGER ) ) / 74 + - + ( + + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3442
SELECT ALL + 96 * + MIN( DISTINCT + 96 ), 31 + + 29 col1
----
9216
60

skipif mysql # not compatible
query II rowsort label-3442
SELECT ALL + 96 * + MIN ( DISTINCT + 96 ), 31 + + 29 col1
----
9216
60

query I rowsort
SELECT 72 + - 97
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3444
SELECT 85 DIV - SUM( ALL 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-3444
SELECT 85 / - SUM ( ALL 78 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3445
SELECT COALESCE ( COUNT( ALL + 7 ), + ( + ( 30 ) ), 31 ) + + 47 AS col2, 58 * - + 17 + - 27 + + 81 + + 50 * + - 39 * - 87 * - COUNT( * ) * 93 + - CAST( NULL AS SIGNED ) AS col2
----
48
NULL

skipif mysql # not compatible
query II rowsort label-3445
SELECT COALESCE ( COUNT ( ALL + 7 ), + ( + ( 30 ) ), 31 ) + + 47 AS col2, 58 * - + 17 + - 27 + + 81 + + 50 * + - 39 * - 87 * - COUNT ( * ) * 93 + - CAST ( NULL AS INTEGER ) AS col2
----
48
NULL

query I rowsort
SELECT 91 * - 24 AS col2
----
-2184

query I rowsort
SELECT 30 + 32 AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3448
SELECT ALL 62 + - 57 + - + NULLIF ( - 21, - CAST( NULL AS SIGNED ) ) + + COUNT( * ) DIV ( + 37 ) + - CASE + - 65 WHEN - 56 THEN + + 88 - - + 60 ELSE 94 END + 88 col2
----
20

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL 62 + - 57 + - + NULLIF ( - 21, - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) / ( + 37 ) + - CASE + - 65 WHEN - 56 THEN + + 88 - - + 60 ELSE 94 END + 88 col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT - COUNT( * ) + - 1 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT - COUNT ( * ) + - 1 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3450
SELECT ALL + AVG ( - - 94 ) / + 71 + - 46 + - COUNT( * ) * + + CAST( NULL AS SIGNED ), NULLIF ( + CAST( 60 AS SIGNED ), + 77 ) + - 72 AS col1
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-3450
SELECT ALL + AVG ( - - 94 ) / + 71 + - 46 + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ), NULLIF ( + CAST ( 60 AS INTEGER ), + 77 ) + - 72 AS col1
----
NULL
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3451
SELECT ALL SUM( 33 ) * + 13 - + 76 + - NULLIF ( - 6, ( 23 ) ) AS col0, 4 DIV - COUNT( * )
----
359
-4

skipif mysql # not compatible
query II rowsort label-3451
SELECT ALL SUM ( 33 ) * + 13 - + 76 + - NULLIF ( - 6, ( 23 ) ) AS col0, 4 / - COUNT ( * )
----
359
-4

query I rowsort
SELECT ALL 2 * - 60 - - - ( + 97 )
----
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT + MAX( + 1 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3453
SELECT + MAX ( + 1 ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT - 52 DIV - + NULLIF ( - + 97, + 91 * - 44 + - - COALESCE ( + 8, + 19 + - 83 * - ( + + 75 ) ) ) + 60 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3454
SELECT - 52 / - + NULLIF ( - + 97, + 91 * - 44 + - - COALESCE ( + 8, + 19 + - 83 * - ( + + 75 ) ) ) + 60 AS col0
----
60

query I rowsort
SELECT + 3 + 60 + + 60
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-3456
SELECT ALL - 7 * + 17 + - - 66, SUM( - - 31 ) * COUNT( * ) col2
----
-53
31

skipif mysql # not compatible
query II rowsort label-3456
SELECT ALL - 7 * + 17 + - - 66, SUM ( - - 31 ) * COUNT ( * ) col2
----
-53
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT + + MIN( - NULLIF ( - 41, + COALESCE ( + + 33, - 67 ) ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3457
SELECT + + MIN ( - NULLIF ( - 41, + COALESCE ( + + 33, - 67 ) ) ) AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3458
SELECT + 31 * - - CAST( - - SUM( - - 74 ) AS SIGNED ) * - 82 * - 13 * + 4
----
9781616

skipif mysql # not compatible
query I rowsort label-3458
SELECT + 31 * - - CAST ( - - SUM ( - - 74 ) AS INTEGER ) * - 82 * - 13 * + 4
----
9781616

query I rowsort
SELECT ALL 40 * 60 AS col1
----
2400

query I rowsort
SELECT ALL - + COALESCE ( - 69, + + 87, + 45 * 76 + 6 ) AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3461
SELECT - 89, 93 DIV COUNT( * ) AS col0
----
-89
93

skipif mysql # not compatible
query II rowsort label-3461
SELECT - 89, 93 / COUNT ( * ) AS col0
----
-89
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT DISTINCT + + MIN( COALESCE ( + 32, - 78 * - 30 + + 85 * + 12 ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT + + MIN ( COALESCE ( + 32, - 78 * - 30 + + 85 * + 12 ) ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL + - COUNT( * ) * - 95
----
95

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL + - COUNT ( * ) * - 95
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3464
SELECT DISTINCT + COALESCE ( - - 88, - - 65 DIV + 1 + - 28 )
----
88

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT + COALESCE ( - - 88, - - 65 / + 1 + - 28 )
----
88

query II rowsort
SELECT 38, - 42 AS col0
----
38
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3466
SELECT 11 * + SUM( ALL - 37 ) + - 56 - - 93 - CAST( NULL AS SIGNED ) + 37 * - - 87 * + COUNT( DISTINCT - 28 ) * + - 22 * 29 * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT 11 * + SUM ( ALL - 37 ) + - 56 - - 93 - CAST ( NULL AS INTEGER ) + 37 * - - 87 * + COUNT ( DISTINCT - 28 ) * + - 22 * 29 * + 11
----
NULL

query I rowsort
SELECT + 63 * 22 + 89 + - 11
----
1464

query I rowsort
SELECT - + 36 * - - 46 AS col2
----
-1656

query I rowsort
SELECT ALL + 30 * 43 AS col1
----
1290

query II rowsort
SELECT + - ( + 31 ) * 7, 81 + + - 31 AS col0
----
-217
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT + NULLIF ( - 21, 81 + - - COUNT( * ) + + 99 / + + 61 + ( + 9 ) ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3471
SELECT + NULLIF ( - 21, 81 + - - COUNT ( * ) + + 99 / + + 61 + ( + 9 ) ) AS col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3472
SELECT + - COUNT( * ) AS col2, 66 + + + 96 DIV 87 + + 59
----
-1
126

skipif mysql # not compatible
query II rowsort label-3472
SELECT + - COUNT ( * ) AS col2, 66 + + + 96 / 87 + + 59
----
-1
126

query I rowsort
SELECT COALESCE ( + - COALESCE ( - 9, + 53, + - 13 * - 77, - + 34 ), 44 + + 53 ) AS col0
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3474
SELECT ALL 69 + + + 62 * CAST( NULL AS DECIMAL ) * 22 * + - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL 69 + + + 62 * CAST ( NULL AS REAL ) * 22 * + - 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT + 13 * COUNT( * ) * - 81 + MAX( ALL + 6 ) - + 78 * - COUNT( * ) * 71 AS col0
----
4491

skipif mysql # not compatible
query I rowsort label-3475
SELECT + 13 * COUNT ( * ) * - 81 + MAX ( ALL + 6 ) - + 78 * - COUNT ( * ) * 71 AS col0
----
4491

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL COUNT( ALL 1 ) + 45
----
46

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL COUNT ( ALL 1 ) + 45
----
46

query II rowsort
SELECT DISTINCT 99 * + 62 AS col2, 1 col0
----
6138
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3478
SELECT DISTINCT 58 * COUNT( DISTINCT 85 ) DIV - 71 + + - ( + 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-3478
SELECT DISTINCT 58 * COUNT ( DISTINCT 85 ) / - 71 + + - ( + 8 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-3479
SELECT ALL MIN( ALL - 41 ), - 73 AS col2
----
-41
-73

skipif mysql # not compatible
query II rowsort label-3479
SELECT ALL MIN ( ALL - 41 ), - 73 AS col2
----
-41
-73

query I rowsort
SELECT + CASE - 99 WHEN - 12 * + + 6 THEN 58 * - 99 END + 23 col2
----
NULL

query I rowsort
SELECT - 4 * ( - 69 )
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT + 75 + MIN( ALL - 70 )
----
5

skipif mysql # not compatible
query I rowsort label-3482
SELECT + 75 + MIN ( ALL - 70 )
----
5

query I rowsort
SELECT ALL - COALESCE ( + 52, 28 ) + + 29 * 92
----
2616

query I rowsort
SELECT - 68 - - 4
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT - 74 * - 5 * + COUNT( * )
----
370

skipif mysql # not compatible
query I rowsort label-3485
SELECT - 74 * - 5 * + COUNT ( * )
----
370

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT DISTINCT MIN( DISTINCT 3 )
----
3

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT MIN ( DISTINCT 3 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3487
SELECT ALL 50 - - + 31 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL 50 - - + 31 - + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3488
SELECT DISTINCT + 47 * + + CAST( NULL AS SIGNED ) col2, - 31 * + + 29
----
NULL
-899

skipif mysql # not compatible
query II rowsort label-3488
SELECT DISTINCT + 47 * + + CAST ( NULL AS INTEGER ) col2, - 31 * + + 29
----
NULL
-899

query I rowsort
SELECT ALL + 74 - 10
----
64

query I rowsort
SELECT - 38 * ( + 12 )
----
-456

query I rowsort
SELECT ALL + 66 * - 34
----
-2244

query I rowsort
SELECT ALL COALESCE ( 88, - 9 )
----
88

query I rowsort
SELECT DISTINCT + ( - 78 ) * - 20 AS col0
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT - 85 + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-3494
SELECT - 85 + COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT - 2 * COUNT( - 97 )
----
-2

skipif mysql # not compatible
query I rowsort label-3495
SELECT - 2 * COUNT ( - 97 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3496
SELECT - COALESCE ( + - 60, + 25 * - - 82 + 35 + + 57 DIV MIN( + + 30 ) + - 73 * + + MAX( + 10 ) * + 73 * - 0 ) * + + 29 AS col2
----
1740

skipif mysql # not compatible
query I rowsort label-3496
SELECT - COALESCE ( + - 60, + 25 * - - 82 + 35 + + 57 / MIN ( + + 30 ) + - 73 * + + MAX ( + 10 ) * + 73 * - 0 ) * + + 29 AS col2
----
1740

onlyif mysql # aggregate syntax: 
query II rowsort label-3497
SELECT + SUM( ALL + + NULLIF ( 12, - 35 ) ) AS col1, 72 col1
----
12
72

skipif mysql # not compatible
query II rowsort label-3497
SELECT + SUM ( ALL + + NULLIF ( 12, - 35 ) ) AS col1, 72 col1
----
12
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3498
SELECT - + 19 DIV 50 * - + 63 + + 14 * - 35 * COUNT( * )
----
-490

skipif mysql # not compatible
query I rowsort label-3498
SELECT - + 19 / 50 * - + 63 + + 14 * - 35 * COUNT ( * )
----
-490

query I rowsort
SELECT DISTINCT + 53 * 63 AS col0
----
3339

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3500
SELECT DISTINCT + + COALESCE ( + - 71, + CAST( NULL AS SIGNED ) )
----
-71

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT + + COALESCE ( + - 71, + CAST ( NULL AS INTEGER ) )
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-3501
SELECT - - 18 * 13 + + - 70 * - + 62, MAX( ALL - ( 77 ) ) * - 97 * + NULLIF ( + + 66, COUNT( * ) - 50 + 49 ) + + + 0 AS col1
----
4574
492954

skipif mysql # not compatible
query II rowsort label-3501
SELECT - - 18 * 13 + + - 70 * - + 62, MAX ( ALL - ( 77 ) ) * - 97 * + NULLIF ( + + 66, COUNT ( * ) - 50 + 49 ) + + + 0 AS col1
----
4574
492954

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT ALL + COUNT( * ) * - + ( - COUNT( * ) ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL + COUNT ( * ) * - + ( - COUNT ( * ) ) * - + COUNT ( * )
----
-1

query I rowsort
SELECT - - 70 + ( - + 37 ) + + 35 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT + + MAX( - - ( - 91 ) ) * + + 23 col0
----
-2093

skipif mysql # not compatible
query I rowsort label-3504
SELECT + + MAX ( - - ( - 91 ) ) * + + 23 col0
----
-2093

query I rowsort
SELECT + 70 + 81
----
151

query I rowsort
SELECT ALL - 82 * - 87 + + 97 AS col1
----
7231

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT - 22 * CASE 13 WHEN - 75 THEN NULL WHEN - + 73 THEN + 6 ELSE NULL END + - 14 * + ( COUNT( ALL + 68 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT - 22 * CASE 13 WHEN - 75 THEN NULL WHEN - + 73 THEN + 6 ELSE NULL END + - 14 * + ( COUNT ( ALL + 68 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 68 * ( + 24 ) + - 54 AS col2
----
1578

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT ALL + + 51 * 37 DIV + 9
----
209

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL + + 51 * 37 / + 9
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT + + 17 * COALESCE ( + 19, 44 * - + 91, 60 + - - CASE WHEN NULL BETWEEN 72 AND NULL THEN + 81 WHEN NOT 67 <= 22 THEN - 60 ELSE - + ( - 52 ) * - COUNT( * ) END + 91 ) / 66 + + NULLIF ( - MIN( - 39 ), + - 54 + 30 ) + - + COUNT( * ) / - 81 * - - CASE 26 WHEN + + 73 THEN 32 * 19 - - MIN( DISTINCT - 62 - 94 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT + + 17 * COALESCE ( + 19, 44 * - + 91, 60 + - - CASE WHEN NULL BETWEEN 72 AND NULL THEN + 81 WHEN NOT 67 <= 22 THEN - 60 ELSE - + ( - 52 ) * - COUNT ( * ) END + 91 ) / 66 + + NULLIF ( - MIN ( - 39 ), + - 54 + 30 ) + - + COUNT ( * ) / - 81 * - - CASE 26 WHEN + + 73 THEN 32 * 19 - - MIN ( DISTINCT - 62 - 94 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 11 + + 81 AS col0
----
92

query I rowsort
SELECT ALL + 53 * 66 + 78 AS col2
----
3576

query I rowsort
SELECT + + 38 + + - 50
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3514
SELECT + 5 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3514
SELECT + 5 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT + 16 * 63 * + MIN( DISTINCT - 60 ) * - - 68 + + 79
----
-4112561

skipif mysql # not compatible
query I rowsort label-3515
SELECT + 16 * 63 * + MIN ( DISTINCT - 60 ) * - - 68 + + 79
----
-4112561

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT MIN( DISTINCT + - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-3516
SELECT MIN ( DISTINCT + - 42 )
----
-42

query I rowsort
SELECT DISTINCT 45 * + - 13
----
-585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3518
SELECT 78 * - CAST( - - COUNT( * ) AS SIGNED ) + + - 85
----
-163

skipif mysql # not compatible
query I rowsort label-3518
SELECT 78 * - CAST ( - - COUNT ( * ) AS INTEGER ) + + - 85
----
-163

query I rowsort
SELECT + 69 + + - 84 AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3520
SELECT ALL COALESCE ( + - 52, + CAST( 74 AS SIGNED ), + - 1 ) * - + 3 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL COALESCE ( + - 52, + CAST ( 74 AS INTEGER ), + - 1 ) * - + 3 AS col1
----
156

query I rowsort
SELECT + 45 + + 60 AS col2
----
105

query I rowsort
SELECT DISTINCT 10 * - + 11 * + 2 * 43
----
-9460

query I rowsort
SELECT + 21 + + - 33
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL - COUNT( * ) - + 90 + + MIN( ALL + 8 ) * + 81 * - 50 * + - 78 * - COUNT( ALL + 6 ) AS col2
----
-2527291

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL - COUNT ( * ) - + 90 + + MIN ( ALL + 8 ) * + 81 * - 50 * + - 78 * - COUNT ( ALL + 6 ) AS col2
----
-2527291

query I rowsort
SELECT + 39 * + 34 AS col2
----
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT - COUNT( * ) + 79 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-3526
SELECT - COUNT ( * ) + 79 AS col1
----
78

query II rowsort
SELECT 75 AS col1, - 99
----
75
-99

query I rowsort
SELECT - 91 + + - 46 + - 64
----
-201

query I rowsort
SELECT ALL COALESCE ( 26, + 90, - - ( + - 67 ) ) AS col2
----
26

query II rowsort
SELECT - ( + 43 ) * + 24 AS col2, - 35 AS col0
----
-1032
-35

query I rowsort
SELECT ALL ( - 26 ) AS col2
----
-26

query I rowsort
SELECT - + 10 + + 55
----
45

query I rowsort
SELECT + 52 * - 1 * + - 89 + 93
----
4721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT DISTINCT - 13 * 53 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT - 13 * 53 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL - + 35 AS col2, 75 - 78 AS col2
----
-35
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT DISTINCT - + COUNT( * ) + + 59
----
58

skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT - + COUNT ( * ) + + 59
----
58

query II rowsort
SELECT DISTINCT - 63 + - 60 + - 87 AS col0, - 44
----
-210
-44

query I rowsort
SELECT ALL - COALESCE ( - 48, + + 8 * + - 46 ) col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3539
SELECT - 2 + - 87 DIV + 43 col0, - CASE + 38 WHEN - + COUNT( * ) + - 38 + - - 57 * - 70 THEN - 81 DIV - NULLIF ( COUNT( * ), - CASE + COUNT( * ) WHEN - 95 * - 78 THEN + 36 + + ( - 24 ) * 50 - 55 + - 28 + - 59 * + 74 * + 35 WHEN + + 7 + 30 * + MIN( DISTINCT + 12 ) * + 28 + 55 THEN NULL ELSE NULL END * 66 ) + - 70 END AS col0
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-3539
SELECT - 2 + - 87 / + 43 col0, - CASE + 38 WHEN - + COUNT ( * ) + - 38 + - - 57 * - 70 THEN - 81 / - NULLIF ( COUNT ( * ), - CASE + COUNT ( * ) WHEN - 95 * - 78 THEN + 36 + + ( - 24 ) * 50 - 55 + - 28 + - 59 * + 74 * + 35 WHEN + + 7 + 30 * + MIN ( DISTINCT + 12 ) * + 28 + 55 THEN NULL ELSE NULL END * 66 ) + - 70 END AS col0
----
-4
NULL

query I rowsort
SELECT ALL - ( - 11 ) + + 30
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3541
SELECT DISTINCT - + 61 + - ( 26 ) - + 81 + - 59 + - + 46 DIV - + 72
----
-227

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT - + 61 + - ( 26 ) - + 81 + - 59 + - + 46 / - + 72
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT ALL + 28 + - COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL + 28 + - COUNT ( * ) AS col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3543
SELECT ALL + 48 + + CAST( + - 78 AS SIGNED ) * - 90
----
7068

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL + 48 + + CAST ( + - 78 AS INTEGER ) * - 90
----
7068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3544
SELECT DISTINCT - 37 DIV - COUNT( * ) * + + COUNT( - 43 )
----
37

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT - 37 / - COUNT ( * ) * + + COUNT ( - 43 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT DISTINCT - COUNT( * ) + - - 22 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT - COUNT ( * ) + - - 22 AS col0
----
21

query I rowsort
SELECT + 9 * 13
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3547
SELECT DISTINCT - - CAST( 9 AS SIGNED ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3547
SELECT DISTINCT - - CAST ( 9 AS INTEGER ) AS col0
----
9

query I rowsort
SELECT ALL + 87 - 39
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3549
SELECT 71, + 28 DIV + ( - + NULLIF ( - 64, - 10 ) ) * - - 83 * - 31 + 18 - - 63 - + 14 - - 88 * COUNT( * ) * - ( 52 ) * 18 DIV - + 13 + 26 + - - 32 AS col0
----
71
6461

skipif mysql # not compatible
query II rowsort label-3549
SELECT 71, + 28 / + ( - + NULLIF ( - 64, - 10 ) ) * - - 83 * - 31 + 18 - - 63 - + 14 - - 88 * COUNT ( * ) * - ( 52 ) * 18 / - + 13 + 26 + - - 32 AS col0
----
71
6461

onlyif mysql # aggregate syntax: 
query II rowsort label-3550
SELECT DISTINCT 5 * + - 99 AS col1, ( + COUNT( * ) ) col1
----
-495
1

skipif mysql # not compatible
query II rowsort label-3550
SELECT DISTINCT 5 * + - 99 AS col1, ( + COUNT ( * ) ) col1
----
-495
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3551
SELECT + 60, 92 * 60 + + + COUNT( ALL + - 93 ) AS col1
----
60
5521

skipif mysql # not compatible
query II rowsort label-3551
SELECT + 60, 92 * 60 + + + COUNT ( ALL + - 93 ) AS col1
----
60
5521

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT - COUNT( + 30 ) * + 33
----
-33

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT - COUNT ( + 30 ) * + 33
----
-33

query I rowsort
SELECT ALL ( + - 93 ) - + 63
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-3554
SELECT 66 AS col1, COUNT( * ) * - 98 col1
----
66
-98

skipif mysql # not compatible
query II rowsort label-3554
SELECT 66 AS col1, COUNT ( * ) * - 98 col1
----
66
-98

query III rowsort
SELECT DISTINCT 76 col1, 45 AS col0, - - 81 AS col0
----
76
45
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT 7 * + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-3556
SELECT 7 * + COUNT ( * ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT COUNT( * ) + + 68 * + 58 + + 78
----
4023

skipif mysql # not compatible
query I rowsort label-3557
SELECT COUNT ( * ) + + 68 * + 58 + + 78
----
4023

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3558
SELECT COUNT( + 77 ) DIV 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3558
SELECT COUNT ( + 77 ) / 15 AS col1
----
0

query II rowsort
SELECT ALL 93 AS col1, 60 col2
----
93
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT COUNT( * ) + 66 col2
----
67

skipif mysql # not compatible
query I rowsort label-3560
SELECT COUNT ( * ) + 66 col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3561
SELECT MIN( + 96 ) DIV 59
----
1

skipif mysql # not compatible
query I rowsort label-3561
SELECT MIN ( + 96 ) / 59
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL CASE - - 53 WHEN - + 49 * 22 THEN - COUNT( * ) + - 22 - - 79 ELSE NULL END + - COUNT( * ) - + 1 - + 3 * + CASE + 67 WHEN COALESCE ( 40, - 98 + 37 ) THEN + 20 END * COUNT( * ) - - - 34 + + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL CASE - - 53 WHEN - + 49 * 22 THEN - COUNT ( * ) + - 22 - - 79 ELSE NULL END + - COUNT ( * ) - + 1 - + 3 * + CASE + 67 WHEN COALESCE ( 40, - 98 + 37 ) THEN + 20 END * COUNT ( * ) - - - 34 + + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT - ( MAX( - + 58 ) ) col1
----
58

skipif mysql # not compatible
query I rowsort label-3563
SELECT - ( MAX ( - + 58 ) ) col1
----
58

query I rowsort
SELECT ALL - 26 + 43 AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3565
SELECT COUNT( - + 87 ) + + - 0 DIV - 20 col0
----
1

skipif mysql # not compatible
query I rowsort label-3565
SELECT COUNT ( - + 87 ) + + - 0 / - 20 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3566
SELECT 99 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT 99 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT DISTINCT 42 + + + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT 42 + + + COUNT ( * )
----
43

query I rowsort
SELECT DISTINCT NULLIF ( 8, + CASE + - 83 WHEN - 90 * + - 57 THEN + 59 END )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3569
SELECT + 80 AS col1, CAST( NULL AS SIGNED ) * + CAST( - + 10 AS SIGNED ) - 74 AS col1
----
80
NULL

skipif mysql # not compatible
query II rowsort label-3569
SELECT + 80 AS col1, CAST ( NULL AS INTEGER ) * + CAST ( - + 10 AS INTEGER ) - 74 AS col1
----
80
NULL

query I rowsort
SELECT DISTINCT - 32 + + + 39 - - - 44
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3571
SELECT DISTINCT - + NULLIF ( 82, 98 * + ( 0 ) * - NULLIF ( - COUNT( * ), 66 ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT - + NULLIF ( 82, 98 * + ( 0 ) * - NULLIF ( - COUNT ( * ), 66 ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT ALL - 82 + + COUNT( - 98 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL - 82 + + COUNT ( - 98 ) AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3573
SELECT ALL - - 76 * + + 83 * + 28 * - - CAST( NULL AS SIGNED ) * - CAST( COUNT( * ) AS SIGNED ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL - - 76 * + + 83 * + 28 * - - CAST ( NULL AS INTEGER ) * - CAST ( COUNT ( * ) AS INTEGER ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3574
SELECT DISTINCT - - 14 AS col0, 97 - + 7 * - + 20 - + CAST( NULL AS DECIMAL ) AS col2
----
14
NULL

skipif mysql # not compatible
query II rowsort label-3574
SELECT DISTINCT - - 14 AS col0, 97 - + 7 * - + 20 - + CAST ( NULL AS REAL ) AS col2
----
14
NULL

query I rowsort
SELECT DISTINCT + - 96 - 18
----
-114

query I rowsort
SELECT DISTINCT - 91 * - 21 AS col2
----
1911

query I rowsort
SELECT ALL + + 46 - 60 AS col2
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3578
SELECT COUNT( * ) DIV - 11 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3578
SELECT COUNT ( * ) / - 11 + + COUNT ( * )
----
1

query I rowsort
SELECT 1 + + - 13
----
-12

query I rowsort
SELECT ALL 75 - + 13 AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3581
SELECT - MAX( DISTINCT + 20 ) * + - MAX( DISTINCT 0 ) * - 2 + + - 64 + + 35 + 73 + + + 5 + - CAST( + + 66 AS SIGNED ) + - 42 * - - 70 * 99
----
-291077

skipif mysql # not compatible
query I rowsort label-3581
SELECT - MAX ( DISTINCT + 20 ) * + - MAX ( DISTINCT 0 ) * - 2 + + - 64 + + 35 + 73 + + + 5 + - CAST ( + + 66 AS INTEGER ) + - 42 * - - 70 * 99
----
-291077

onlyif mysql # DIV for integer division: 
query I rowsort label-3582
SELECT 45 + + 93 DIV + ( + 59 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3582
SELECT 45 + + 93 / + ( + 59 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT DISTINCT - 34 * + - NULLIF ( + - 15, + COUNT( * ) )
----
-510

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT - 34 * + - NULLIF ( + - 15, + COUNT ( * ) )
----
-510

query I rowsort
SELECT 65 + ( + 20 )
----
85

query I rowsort
SELECT ALL 50 + ( + NULLIF ( - 21, - 10 * - 9 ) )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT 35 + - ( - COALESCE ( - - 84, - - MIN( DISTINCT - - 80 ) * + 91, 64 * - 12 ) ) - 81 * + 45
----
-3526

skipif mysql # not compatible
query I rowsort label-3586
SELECT 35 + - ( - COALESCE ( - - 84, - - MIN ( DISTINCT - - 80 ) * + 91, 64 * - 12 ) ) - 81 * + 45
----
-3526

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT DISTINCT SUM( 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT SUM ( 5 ) AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3588
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - SUM( + 73 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - SUM ( + 73 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT ALL + CASE + 87 WHEN COUNT( * ) / + 8 THEN - + 12 + - 76 + 19 * - + MIN( DISTINCT + 54 ) * + 87 * - COALESCE ( - 53, + 95 * - - 30 + - 4 - - ( - 48 ) - + MIN( ALL - 43 ) ) END + - 95 + + + 60 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL + CASE + 87 WHEN COUNT ( * ) / + 8 THEN - + 12 + - 76 + 19 * - + MIN ( DISTINCT + 54 ) * + 87 * - COALESCE ( - 53, + 95 * - - 30 + - 4 - - ( - 48 ) - + MIN ( ALL - 43 ) ) END + - 95 + + + 60 col0
----
NULL

query I rowsort
SELECT ALL - 17 + - 92 * - ( - + 15 ) AS col0
----
-1397

query I rowsort
SELECT DISTINCT - 96 + - 65 AS col0
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT - NULLIF ( - 53, + COUNT( * ) )
----
53

skipif mysql # not compatible
query I rowsort label-3592
SELECT - NULLIF ( - 53, + COUNT ( * ) )
----
53

query II rowsort
SELECT + 61 + - 31 AS col2, 1 + + 34 + 27
----
30
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL + MAX( ALL 6 )
----
6

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL + MAX ( ALL 6 )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3595
SELECT - - NULLIF ( - 12, - COUNT( * ) ), + ( + - 5 ) + - 40 - + NULLIF ( - + 22, - - 94 ) * + MAX( + 96 ) * - COUNT( * ) AS col0
----
-12
-2157

skipif mysql # not compatible
query II rowsort label-3595
SELECT - - NULLIF ( - 12, - COUNT ( * ) ), + ( + - 5 ) + - 40 - + NULLIF ( - + 22, - - 94 ) * + MAX ( + 96 ) * - COUNT ( * ) AS col0
----
-12
-2157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3596
SELECT ALL - 47 + - - COALESCE ( + ( 69 ), 20 + + SUM( 10 ) ), CAST( + 40 AS SIGNED ) AS col2
----
22
40

skipif mysql # not compatible
query II rowsort label-3596
SELECT ALL - 47 + - - COALESCE ( + ( 69 ), 20 + + SUM ( 10 ) ), CAST ( + 40 AS INTEGER ) AS col2
----
22
40

query I rowsort
SELECT + + 66 + - 51 * - 89 col0
----
4605

query I rowsort
SELECT + 37 + + 22
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT DISTINCT 76 + + CASE + + 38 WHEN - - 37 THEN - 28 END + - 13 * - 63 / - - 53 * - + 58 / - MAX( - 46 ) + + 73 / + + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT 76 + + CASE + + 38 WHEN - - 37 THEN - 28 END + - 13 * - 63 / - - 53 * - + 58 / - MAX ( - 46 ) + + 73 / + + 15 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3600
SELECT ALL + 53 - COUNT( * ), CASE - - 46 WHEN + NULLIF ( + - 62, 20 ) THEN - ( + NULLIF ( 47, - - 39 * - 86 * - + ( 86 ) + + 71 + + 37 + 96 + + COUNT( * ) + - + 78 * + + 84 + - 70 + - 28 * + 42 ) ) END AS col0
----
52
NULL

skipif mysql # not compatible
query II rowsort label-3600
SELECT ALL + 53 - COUNT ( * ), CASE - - 46 WHEN + NULLIF ( + - 62, 20 ) THEN - ( + NULLIF ( 47, - - 39 * - 86 * - + ( 86 ) + + 71 + + 37 + 96 + + COUNT ( * ) + - + 78 * + + 84 + - 70 + - 28 * + 42 ) ) END AS col0
----
52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT DISTINCT - MIN( ALL - ( - + 86 ) ) * + ( + 57 ) col0
----
-4902

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT - MIN ( ALL - ( - + 86 ) ) * + ( + 57 ) col0
----
-4902

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT - 48 * - AVG ( ALL - 99 ) - + CASE + 21 WHEN - + 10 THEN + 68 ELSE NULL END + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT - 48 * - AVG ( ALL - 99 ) - + CASE + 21 WHEN - + 10 THEN + 68 ELSE NULL END + - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3603
SELECT 51 DIV COUNT( * ) + + 44 + - NULLIF ( - 23, + COUNT( * ) ) * - 76 * + - 24 AS col2
----
42047

skipif mysql # not compatible
query I rowsort label-3603
SELECT 51 / COUNT ( * ) + + 44 + - NULLIF ( - 23, + COUNT ( * ) ) * - 76 * + - 24 AS col2
----
42047

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT DISTINCT + - MAX( ALL - 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT + - MAX ( ALL - 45 ) AS col2
----
45

query I rowsort
SELECT ALL + CASE - 45 WHEN - 52 THEN NULL WHEN - - 5 THEN - COALESCE ( + 94, - - 26 ) - + - ( - 2 ) ELSE - 7 END
----
-7

query I rowsort
SELECT + 22 * - 67 AS col2
----
-1474

query II rowsort
SELECT ALL + 71, - ( 94 ) AS col2
----
71
-94

query I rowsort
SELECT + 86 * - 27 * + - COALESCE ( 48, - 15 )
----
111456

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT CASE + - 75 WHEN - - 22 THEN NULL WHEN - 72 THEN - 24 + + 47 + + COUNT( - 71 ) * + ( - - 26 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3609
SELECT CASE + - 75 WHEN - - 22 THEN NULL WHEN - 72 THEN - 24 + + 47 + + COUNT ( - 71 ) * + ( - - 26 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 80 - 81 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT ALL ( - - ( CASE - - 14 WHEN COUNT( - 64 ) * - COUNT( * ) * + + ( + 33 ) / - 12 + + 52 + - 97 * - + 81 THEN + 81 ELSE NULL END ) ) * + COUNT( * ) + - COALESCE ( - + 91, - 17 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL ( - - ( CASE - - 14 WHEN COUNT ( - 64 ) * - COUNT ( * ) * + + ( + 33 ) / - 12 + + 52 + - 97 * - + 81 THEN + 81 ELSE NULL END ) ) * + COUNT ( * ) + - COALESCE ( - + 91, - 17 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT DISTINCT + 30 * + COUNT( * ) * - 20 + - + COUNT( * )
----
-601

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT + 30 * + COUNT ( * ) * - 20 + - + COUNT ( * )
----
-601

query I rowsort
SELECT ALL ( - + 24 ) AS col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3614
SELECT - NULLIF ( + + 46, - 40 ) DIV + - 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3614
SELECT - NULLIF ( + + 46, - 40 ) / + - 36 AS col1
----
1

query II rowsort
SELECT ALL - 97 * + 37 + 87 AS col1, 13 AS col1
----
-3502
13

query I rowsort
SELECT DISTINCT + 13 * ( + + ( - 66 ) ) + + + 12
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT DISTINCT + 40 + + + COUNT( 10 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT + 40 + + + COUNT ( 10 ) AS col2
----
41

query I rowsort
SELECT - 96 + - + ( + 72 ) + 54 AS col0
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-3619
SELECT DISTINCT + 58 DIV - 38
----
-1

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT + 58 / - 38
----
-1

query II rowsort
SELECT + 42 col1, - ( 60 )
----
42
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3621
SELECT - + COALESCE ( - COUNT( * ), - CASE + 32 WHEN - CASE MAX( + 44 ) WHEN 35 THEN NULL ELSE - - 52 END * + 51 + + + 92 * + 29 THEN - 86 + MAX( ALL - + 56 ) DIV + 17 END * 55 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3621
SELECT - + COALESCE ( - COUNT ( * ), - CASE + 32 WHEN - CASE MAX ( + 44 ) WHEN 35 THEN NULL ELSE - - 52 END * + 51 + + + 92 * + 29 THEN - 86 + MAX ( ALL - + 56 ) / + 17 END * 55 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - + 47 + - 74
----
-121

query I rowsort
SELECT ALL + + 84 + 47
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3624
SELECT - - CAST( NULL AS SIGNED ) AS col2, 71
----
NULL
71

skipif mysql # not compatible
query II rowsort label-3624
SELECT - - CAST ( NULL AS INTEGER ) AS col2, 71
----
NULL
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3625
SELECT - - 37 + 17 + + 96 DIV + 73 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-3625
SELECT - - 37 + 17 + + 96 / + 73 AS col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-3626
SELECT DISTINCT - COUNT( * ) AS col1, - NULLIF ( + + NULLIF ( - + 33, - 43 ), + ( - 39 ) ) * + COUNT( * ) AS col0
----
-1
33

skipif mysql # not compatible
query II rowsort label-3626
SELECT DISTINCT - COUNT ( * ) AS col1, - NULLIF ( + + NULLIF ( - + 33, - 43 ), + ( - 39 ) ) * + COUNT ( * ) AS col0
----
-1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ALL + 40 * - + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL + 40 * - + COUNT ( * )
----
-40

query I rowsort
SELECT DISTINCT + - 42 * + - 16 col0
----
672

query I rowsort
SELECT - 92 + 39
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3630
SELECT - ( + CASE - + 71 WHEN + CAST( + 61 AS SIGNED ) * - CAST( NULL AS SIGNED ) + 10 THEN - 24 ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3630
SELECT - ( + CASE - + 71 WHEN + CAST ( + 61 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + 10 THEN - 24 ELSE NULL END ) col2
----
NULL

query I rowsort
SELECT + + ( + - 81 ) + + NULLIF ( + 39, + 48 )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-3632
SELECT + COUNT( * ) AS col2, 6 + + + 88 * 77 AS col2
----
1
6782

skipif mysql # not compatible
query II rowsort label-3632
SELECT + COUNT ( * ) AS col2, 6 + + + 88 * 77 AS col2
----
1
6782

query II rowsort
SELECT - - 20 AS col0, 81
----
20
81

query II rowsort
SELECT ALL + 64 AS col1, 35 * 58 AS col2
----
64
2030

onlyif mysql # aggregate syntax: 
query II rowsort label-3635
SELECT + + ( 16 ) * MIN( ALL 48 ) AS col1, COUNT( * ) col1
----
768
1

skipif mysql # not compatible
query II rowsort label-3635
SELECT + + ( 16 ) * MIN ( ALL 48 ) AS col1, COUNT ( * ) col1
----
768
1

query II rowsort
SELECT ALL + - 81 AS col2, 44 col0
----
-81
44

query I rowsort
SELECT + 22 * - - 88 * 45
----
87120

query II rowsort
SELECT ALL 28 * - 13 AS col2, - ( - + 92 )
----
-364
92

onlyif mysql # DIV for integer division: 
query III rowsort label-3639
SELECT 43 DIV - 71 * 96 - + + 87 AS col0, 76, 53 + 99 AS col0
----
-87
76
152

skipif mysql # not compatible
query III rowsort label-3639
SELECT 43 / - 71 * 96 - + + 87 AS col0, 76, 53 + 99 AS col0
----
-87
76
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT DISTINCT 46 * COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT 46 * COUNT ( * )
----
46

query I rowsort
SELECT - 66 * + 77 + - 54 * - ( - 92 )
----
-10050

query I rowsort
SELECT + 16 - + ( - ( - + 42 ) ) - - 74 * - + 28 AS col2
----
-2098

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT ALL COUNT( * ) * 71 * - 19 AS col1
----
-1349

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL COUNT ( * ) * 71 * - 19 AS col1
----
-1349

query I rowsort
SELECT + 92 * 33 AS col0
----
3036

query I rowsort
SELECT + 63 * + 92 AS col2
----
5796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3646
SELECT ALL + 79 DIV + MAX( DISTINCT 23 ) + - ( - 34 ) col1
----
37

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL + 79 / + MAX ( DISTINCT 23 ) + - ( - 34 ) col1
----
37

query I rowsort
SELECT 36 + 98 AS col0
----
134

query I rowsort
SELECT ALL 27 + + 88
----
115

query I rowsort
SELECT ALL ( + + 71 ) + + 28 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL COUNT( * ) + + - 54 + - - 16 * + 11
----
123

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL COUNT ( * ) + + - 54 + - - 16 * + 11
----
123

query I rowsort
SELECT ( - ( + + 33 ) ) * + ( + 45 ) AS col2
----
-1485

query I rowsort
SELECT 70 + - + 96 AS col0
----
-26

query I rowsort
SELECT ALL + 47 + ( 44 ) * + 52 AS col2
----
2335

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT 97 * - - MAX( ALL 47 ) * + 15 + - 69 AS col2
----
68316

skipif mysql # not compatible
query I rowsort label-3654
SELECT 97 * - - MAX ( ALL 47 ) * + 15 + - 69 AS col2
----
68316

query I rowsort
SELECT - 52 * - 93 AS col2
----
4836

query I rowsort
SELECT DISTINCT 70 * 2
----
140

query I rowsort
SELECT ALL 79 - - 54 * + 72
----
3967

onlyif mysql # DIV for integer division: 
query I rowsort label-3658
SELECT + 46 DIV - 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3658
SELECT + 46 / - 59 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3659
SELECT ALL - + 52 DIV - + 99 * + + 29 + + 38 DIV + 20
----
1

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL - + 52 / - + 99 * + + 29 + + 38 / + 20
----
1

query I rowsort
SELECT 43 * - - 14
----
602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3661
SELECT DISTINCT - 3 * 80 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT - 3 * 80 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT DISTINCT + COUNT( * ) * + NULLIF ( - + 54, 34 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT + COUNT ( * ) * + NULLIF ( - + 54, 34 ) AS col0
----
-54

query I rowsort
SELECT DISTINCT ( - 88 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-3664
SELECT + ( - 46 ) + - COALESCE ( - 32, - ( + 26 ) * + 98, 57 + 82 ), COUNT( * ) + + - 27 AS col2
----
-14
-26

skipif mysql # not compatible
query II rowsort label-3664
SELECT + ( - 46 ) + - COALESCE ( - 32, - ( + 26 ) * + 98, 57 + 82 ), COUNT ( * ) + + - 27 AS col2
----
-14
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3665
SELECT ALL + 68 * - CAST( - - 26 AS SIGNED ) + - 16 col2
----
-1784

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL + 68 * - CAST ( - - 26 AS INTEGER ) + - 16 col2
----
-1784

query I rowsort
SELECT DISTINCT + + 97 * 38 * 24 col1
----
88464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3667
SELECT ALL - CAST( + ( + 5 ) AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL - CAST ( + ( + 5 ) AS INTEGER )
----
-5

query I rowsort
SELECT 1 * 95 AS col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3669
SELECT ALL + CAST( NULL AS SIGNED ) + - 1 * - + MIN( ALL + 70 ) * - ( + 90 ) + - 15 * - ( - - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL + CAST ( NULL AS INTEGER ) + - 1 * - + MIN ( ALL + 70 ) * - ( + 90 ) + - 15 * - ( - - 5 )
----
NULL

query I rowsort
SELECT 55 + - 2 AS col2
----
53

query I rowsort
SELECT 26 * - 35 col2
----
-910

query I rowsort
SELECT DISTINCT 92 * + 8
----
736

onlyif mysql # DIV for integer division: 
query I rowsort label-3673
SELECT DISTINCT - 3 + + 92 DIV - 86 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT - 3 + + 92 / - 86 AS col2
----
-4

query I rowsort
SELECT ALL 27 * - + 2 AS col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT 45 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT 45 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL - SUM( ALL 19 ) + - + 1 + + 34
----
14

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL - SUM ( ALL 19 ) + - + 1 + + 34
----
14

query I rowsort
SELECT DISTINCT 62 + 83 AS col2
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3678
SELECT ALL 21 + COUNT( * ) DIV 56 DIV + 30 * + 30, 69 + + + 65 * + 76 col2
----
21
5009

skipif mysql # not compatible
query II rowsort label-3678
SELECT ALL 21 + COUNT ( * ) / 56 / + 30 * + 30, 69 + + + 65 * + 76 col2
----
21
5009

query I rowsort
SELECT ALL 91 * + 55
----
5005

onlyif mysql # DIV for integer division: 
query I rowsort label-3680
SELECT 35 DIV - ( + + 4 )
----
-8

skipif mysql # not compatible
query I rowsort label-3680
SELECT 35 / - ( + + 4 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT CAST( + 80 AS SIGNED ) * CAST( NULL AS SIGNED ) + - + 76 * - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT CAST ( + 80 AS INTEGER ) * CAST ( NULL AS INTEGER ) + - + 76 * - 39
----
NULL

query I rowsort
SELECT 12 * + 48 AS col2
----
576

query I rowsort
SELECT ALL - 15 - - - 80
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3684
SELECT - COALESCE ( 57, CAST( NULL AS SIGNED ) )
----
-57

skipif mysql # not compatible
query I rowsort label-3684
SELECT - COALESCE ( 57, CAST ( NULL AS INTEGER ) )
----
-57

query I rowsort
SELECT ALL - + 17 * - 75 + 27 AS col0
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT + COUNT( * ) * + 7 col2
----
7

skipif mysql # not compatible
query I rowsort label-3686
SELECT + COUNT ( * ) * + 7 col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT + 60 + - 62 + SUM( 57 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-3687
SELECT + 60 + - 62 + SUM ( 57 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-3688
SELECT + ( - 49 ) + 5 * - 78 - COUNT( * ) AS col0, + 35 * 66
----
-440
2310

skipif mysql # not compatible
query II rowsort label-3688
SELECT + ( - 49 ) + 5 * - 78 - COUNT ( * ) AS col0, + 35 * 66
----
-440
2310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3689
SELECT ALL 13 * - - CAST( - 84 AS SIGNED )
----
-1092

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL 13 * - - CAST ( - 84 AS INTEGER )
----
-1092

query I rowsort
SELECT - 83 * - - 90
----
-7470

query I rowsort
SELECT - 52 * - + 19
----
988

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT ALL + NULLIF ( 77, COUNT( * ) * + 86 * 47 + 51 )
----
77

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL + NULLIF ( 77, COUNT ( * ) * + 86 * 47 + 51 )
----
77

query I rowsort
SELECT + 19 * + 29
----
551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3694
SELECT ALL + CAST( - NULLIF ( - 58, + 29 * - 94 + + 49 + + 36 * - ( + - NULLIF ( - 48, - 11 + + - ( - 77 ) ) ) + + 44 + - - 4 - 97 + + 77 * + - 95 / + + 42 - - 62 / + NULLIF ( + 3, - - COUNT( * ) * + - 19 + + ( - 86 ) ) ) AS SIGNED ) + - COALESCE ( + - 69, - 77, - COUNT( ( + 50 ) ) * - COUNT( * ) ) AS col0
----
127

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL + CAST ( - NULLIF ( - 58, + 29 * - 94 + + 49 + + 36 * - ( + - NULLIF ( - 48, - 11 + + - ( - 77 ) ) ) + + 44 + - - 4 - 97 + + 77 * + - 95 / + + 42 - - 62 / + NULLIF ( + 3, - - COUNT ( * ) * + - 19 + + ( - 86 ) ) ) AS INTEGER ) + - COALESCE ( + - 69, - 77, - COUNT ( ( + 50 ) ) * - COUNT ( * ) ) AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT ALL COUNT( ALL + 59 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL COUNT ( ALL + 59 ) AS col0
----
1

query I rowsort
SELECT ALL + NULLIF ( + 95, - 42 ) + - - 31
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-3697
SELECT ALL - ( - 0 ) DIV - 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL - ( - 0 ) / - 18 AS col0
----
0

query I rowsort
SELECT 60 * - ( + + 14 )
----
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3699
SELECT - CAST( + COUNT( DISTINCT + 25 ) AS SIGNED ) + + 67 DIV - - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-3699
SELECT - CAST ( + COUNT ( DISTINCT + 25 ) AS INTEGER ) + + 67 / - - COUNT ( * )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT COUNT( * ) * + - ( 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-3700
SELECT COUNT ( * ) * + - ( 51 ) AS col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3701
SELECT ALL - CAST( NULL AS SIGNED ) + - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL - CAST ( NULL AS INTEGER ) + - 49 AS col1
----
NULL

query I rowsort
SELECT - 81 - + 90
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT DISTINCT COUNT( ALL + 63 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT COUNT ( ALL + 63 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT 53 * + COUNT( * ) + COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-3704
SELECT 53 * + COUNT ( * ) + COUNT ( * ) AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT ALL + 64 * 43 + - - 18 * - ( + 10 ) * + CAST( - + 94 AS SIGNED )
----
19672

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL + 64 * 43 + - - 18 * - ( + 10 ) * + CAST ( - + 94 AS INTEGER )
----
19672

query I rowsort
SELECT ALL + NULLIF ( + 97, - + 73 + + - 78 - 74 )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3707
SELECT + 65, COUNT( * ) col0
----
65
1

skipif mysql # not compatible
query II rowsort label-3707
SELECT + 65, COUNT ( * ) col0
----
65
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT ALL 14 * + ( + COUNT( * ) ) + + 63 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL 14 * + ( + COUNT ( * ) ) + + 63 AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3709
SELECT 17 DIV 65 - - NULLIF ( MAX( - 83 ), 27 ) * + 23 AS col2
----
-1909

skipif mysql # not compatible
query I rowsort label-3709
SELECT 17 / 65 - - NULLIF ( MAX ( - 83 ), 27 ) * + 23 AS col2
----
-1909

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT ALL + COALESCE ( + 98, + - CASE - - COUNT( * ) WHEN + 83 THEN NULL ELSE - + 9 + + 3 END )
----
98

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + COALESCE ( + 98, + - CASE - - COUNT ( * ) WHEN + 83 THEN NULL ELSE - + 9 + + 3 END )
----
98

query I rowsort
SELECT - COALESCE ( 35, + 78 ) - + 54
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT - 62 * - - CASE + 81 WHEN + 35 THEN + + 22 / 86 + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT - 62 * - - CASE + 81 WHEN + 35 THEN + + 22 / 86 + - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3713
SELECT COUNT( * ) DIV - 39 + 58 + - 20 - + ( 40 ) * - 42
----
1718

skipif mysql # not compatible
query I rowsort label-3713
SELECT COUNT ( * ) / - 39 + 58 + - 20 - + ( 40 ) * - 42
----
1718

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3714
SELECT - CASE - 25 WHEN - 83 THEN - CAST( - - ( + 39 ) AS SIGNED ) END + - 59 + 96 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT - CASE - 25 WHEN - 83 THEN - CAST ( - - ( + 39 ) AS INTEGER ) END + - 59 + 96 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3715
SELECT ALL + 99, MIN( DISTINCT + NULLIF ( + + 36, 77 + + 52 + + + NULLIF ( - 22, - 53 ) ) ) AS col0
----
99
36

skipif mysql # not compatible
query II rowsort label-3715
SELECT ALL + 99, MIN ( DISTINCT + NULLIF ( + + 36, 77 + + 52 + + + NULLIF ( - 22, - 53 ) ) ) AS col0
----
99
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3716
SELECT - COUNT( * ) + - + 19 DIV - 43
----
-1

skipif mysql # not compatible
query I rowsort label-3716
SELECT - COUNT ( * ) + - + 19 / - 43
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3717
SELECT ALL + CAST( NULL AS SIGNED ) col1, - 77
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-3717
SELECT ALL + CAST ( NULL AS INTEGER ) col1, - 77
----
NULL
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT ALL - 96 * + COUNT( * ) - + 82 AS col2
----
-178

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL - 96 * + COUNT ( * ) - + 82 AS col2
----
-178

query II rowsort
SELECT + 94 AS col1, - 23 AS col0
----
94
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3720
SELECT ALL + - SUM( DISTINCT - 78 ) * ( - 73 ) * - CAST( 65 AS SIGNED )
----
370110

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL + - SUM ( DISTINCT - 78 ) * ( - 73 ) * - CAST ( 65 AS INTEGER )
----
370110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3721
SELECT ALL - + CAST( - + 58 AS SIGNED ) * + - 34
----
-1972

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - + CAST ( - + 58 AS INTEGER ) * + - 34
----
-1972

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + COALESCE ( 50, + - 69, - COUNT( * ) ) + + 51 * + + 68 AS col2
----
3518

skipif mysql # not compatible
query I rowsort label-3722
SELECT + COALESCE ( 50, + - 69, - COUNT ( * ) ) + + 51 * + + 68 AS col2
----
3518

query I rowsort
SELECT - - 73 * - - 13 + + - 22
----
927

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT + NULLIF ( + 38, - MIN( DISTINCT 47 ) ) + + 35 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-3724
SELECT + NULLIF ( + 38, - MIN ( DISTINCT 47 ) ) + + 35 AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3725
SELECT - + CASE - + MAX( ALL + 58 ) WHEN - - COUNT( * ) THEN NULL ELSE - - 5 * ( + 7 ) DIV MIN( + - 81 ) END DIV - - 56 - + 98 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-3725
SELECT - + CASE - + MAX ( ALL + 58 ) WHEN - - COUNT ( * ) THEN NULL ELSE - - 5 * ( + 7 ) / MIN ( + - 81 ) END / - - 56 - + 98 AS col0
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3726
SELECT + + 92 DIV - NULLIF ( - 37, + + ( + - 67 ) ) col1
----
2

skipif mysql # not compatible
query I rowsort label-3726
SELECT + + 92 / - NULLIF ( - 37, + + ( + - 67 ) ) col1
----
2

query I rowsort
SELECT - 6 * ( + + 36 ) + + 96 col1
----
-120

query II rowsort
SELECT + ( + 45 ), 42 AS col2
----
45
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT ALL + 54 + - - MAX( ALL + 93 ) AS col2
----
147

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL + 54 + - - MAX ( ALL + 93 ) AS col2
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3730
SELECT ALL CAST( - 94 AS SIGNED ) col1
----
-94

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL CAST ( - 94 AS INTEGER ) col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT - NULLIF ( - 61, + COUNT( * ) )
----
61

skipif mysql # not compatible
query I rowsort label-3731
SELECT - NULLIF ( - 61, + COUNT ( * ) )
----
61

query I rowsort
SELECT ALL 47 * + 24 AS col2
----
1128

query II rowsort
SELECT 48, + 48
----
48
48

query I rowsort
SELECT + 74 * - 89
----
-6586

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT + + COUNT( + 92 ) * + 68 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-3735
SELECT + + COUNT ( + 92 ) * + 68 AS col1
----
68

query I rowsort
SELECT DISTINCT + 85 + + CASE - 68 WHEN - + ( 66 ) THEN NULL ELSE + 62 END * 96 + - + 35 AS col0
----
6002

query I rowsort
SELECT ALL 27 + - 99 AS col1
----
-72

query I rowsort
SELECT + 40 * 14
----
560

query I rowsort
SELECT + 57 + + 45 col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT DISTINCT COUNT( 6 ) + + 69 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT COUNT ( 6 ) + + 69 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3741
SELECT CAST( + + 28 AS SIGNED ) AS col1, 12 * - NULLIF ( - COUNT( * ), 54 * + + COUNT( * ) * + - 25 ) * 58 * 78 * - + 27
----
28
-1465776

skipif mysql # not compatible
query II rowsort label-3741
SELECT CAST ( + + 28 AS INTEGER ) AS col1, 12 * - NULLIF ( - COUNT ( * ), 54 * + + COUNT ( * ) * + - 25 ) * 58 * 78 * - + 27
----
28
-1465776

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT 21 DIV + 74 + - 61 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-3742
SELECT 21 / + 74 + - 61 AS col0
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT ALL 72 DIV 4 - + 89
----
-71

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL 72 / 4 - + 89
----
-71

query I rowsort
SELECT - ( - + ( 88 ) ) + - 86
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3745
SELECT ALL 78 DIV - 57 - - 32 - - CASE + + 45 WHEN + COUNT( * ) THEN NULL WHEN 11 THEN + 37 - + + NULLIF ( - 61, - 0 * + COUNT( * ) ) WHEN COUNT( * ) + - 65 THEN + ( + ( - 88 ) ) - + 45 ELSE + 91 + - COUNT( * ) END - + + COUNT( * ) + - + 2 AS col0
----
118

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL 78 / - 57 - - 32 - - CASE + + 45 WHEN + COUNT ( * ) THEN NULL WHEN 11 THEN + 37 - + + NULLIF ( - 61, - 0 * + COUNT ( * ) ) WHEN COUNT ( * ) + - 65 THEN + ( + ( - 88 ) ) - + 45 ELSE + 91 + - COUNT ( * ) END - + + COUNT ( * ) + - + 2 AS col0
----
118

query I rowsort
SELECT DISTINCT + 13 * 59 * ( 57 )
----
43719

onlyif mysql # DIV for integer division: 
query I rowsort label-3747
SELECT - COALESCE ( - + 87, + 8 ) DIV 25
----
3

skipif mysql # not compatible
query I rowsort label-3747
SELECT - COALESCE ( - + 87, + 8 ) / 25
----
3

query II rowsort
SELECT ALL + ( 62 ) AS col2, - 52 * + 54 * 28 AS col0
----
62
-78624

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT DISTINCT - COUNT( * ) * + + 13 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT - COUNT ( * ) * + + 13 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-3750
SELECT ( 97 ) AS col0, COUNT( * ) AS col2
----
97
1

skipif mysql # not compatible
query II rowsort label-3750
SELECT ( 97 ) AS col0, COUNT ( * ) AS col2
----
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT - COUNT( * ) * - 17 * + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-3751
SELECT - COUNT ( * ) * - 17 * + COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT DISTINCT - 50 * + ( - COUNT( * ) )
----
50

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT - 50 * + ( - COUNT ( * ) )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3753
SELECT ALL + ( - + COUNT( * ) ), + CAST( - COUNT( * ) AS SIGNED ) + - COUNT( * ) DIV + 13
----
-1
-1

skipif mysql # not compatible
query II rowsort label-3753
SELECT ALL + ( - + COUNT ( * ) ), + CAST ( - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) / + 13
----
-1
-1

query I rowsort
SELECT - 89 * 44 AS col2
----
-3916

query I rowsort
SELECT ALL + 24 * + 76 AS col0
----
1824

onlyif mysql # DIV for integer division: 
query I rowsort label-3756
SELECT + COALESCE ( 81, + 21 DIV - + 21 + - 82 + - - NULLIF ( 85, + 11 ) )
----
81

skipif mysql # not compatible
query I rowsort label-3756
SELECT + COALESCE ( 81, + 21 / - + 21 + - 82 + - - NULLIF ( 85, + 11 ) )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3757
SELECT ALL + CASE COUNT( DISTINCT - + ( 92 ) ) WHEN AVG ( + CAST( NULL AS SIGNED ) ) * - - 55 THEN 78 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL + CASE COUNT ( DISTINCT - + ( 92 ) ) WHEN AVG ( + CAST ( NULL AS INTEGER ) ) * - - 55 THEN 78 END AS col0
----
NULL

query I rowsort
SELECT - + 2 * + 52 + + 34
----
-70

query I rowsort
SELECT + + 63 * + - 11 AS col2
----
-693

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3760
SELECT ALL + + 33 DIV - COUNT( * ) + - - ( - ( - 73 ) ) AS col1, COALESCE ( - 3, + 17, - SUM( ALL - 52 ), - + 2 + + 71 ) col1
----
40
-3

skipif mysql # not compatible
query II rowsort label-3760
SELECT ALL + + 33 / - COUNT ( * ) + - - ( - ( - 73 ) ) AS col1, COALESCE ( - 3, + 17, - SUM ( ALL - 52 ), - + 2 + + 71 ) col1
----
40
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3761
SELECT ALL - ( ( + 69 ) ) * - 49 + 68 * + 48 + - 63 + - 74 * + CAST( NULL AS SIGNED ) * + 62 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL - ( ( + 69 ) ) * - 49 + 68 * + 48 + - 63 + - 74 * + CAST ( NULL AS INTEGER ) * + 62 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3762
SELECT DISTINCT + COALESCE ( - + COUNT( ALL + CAST( NULL AS SIGNED ) ), + COUNT( * ) * - + COUNT( * ) + COUNT( * ) * + 26 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT + COALESCE ( - + COUNT ( ALL + CAST ( NULL AS INTEGER ) ), + COUNT ( * ) * - + COUNT ( * ) + COUNT ( * ) * + 26 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3763
SELECT - + COUNT( * ) * + 69 DIV 37 * + - 7 col0
----
7

skipif mysql # not compatible
query I rowsort label-3763
SELECT - + COUNT ( * ) * + 69 / 37 * + - 7 col0
----
7

query I rowsort
SELECT - ( 4 ) + + - 20 col2
----
-24

query I rowsort
SELECT + - 36 - + + 68 + - 14
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-3766
SELECT - - 67 + + - ( 84 ) DIV - + 35 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3766
SELECT - - 67 + + - ( 84 ) / - + 35 AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3767
SELECT ALL + CASE - 92 WHEN + 17 + + - CAST( NULL AS SIGNED ) THEN + + CAST( NULL AS SIGNED ) * + 46 - - NULLIF ( 15, + + 25 + - + 7 + + - 26 ) + + 90 WHEN + 84 + 70 + + ( 42 ) THEN NULL ELSE + 90 END * - - CAST( + 36 AS SIGNED ) * - ( + 81 ) + 44 + 58 AS col2
----
-262338

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL + CASE - 92 WHEN + 17 + + - CAST ( NULL AS INTEGER ) THEN + + CAST ( NULL AS INTEGER ) * + 46 - - NULLIF ( 15, + + 25 + - + 7 + + - 26 ) + + 90 WHEN + 84 + 70 + + ( 42 ) THEN NULL ELSE + 90 END * - - CAST ( + 36 AS INTEGER ) * - ( + 81 ) + 44 + 58 AS col2
----
-262338

query I rowsort
SELECT DISTINCT - 29 + + - 0 + + - 49
----
-78

query I rowsort
SELECT 39 + - 13 AS col0
----
26

query I rowsort
SELECT DISTINCT 63 * 54 * 24 * - 85 AS col0
----
-6940080

query I rowsort
SELECT 29 * - 18 AS col0
----
-522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3772
SELECT DISTINCT 9 - + 18 * + 34 AS col0, + 12 + + + SUM( DISTINCT 23 ) + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1
----
-603
NULL

skipif mysql # not compatible
query II rowsort label-3772
SELECT DISTINCT 9 - + 18 * + 34 AS col0, + 12 + + + SUM ( DISTINCT 23 ) + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1
----
-603
NULL

query II rowsort
SELECT ALL 16, + 4 * + 16 AS col0
----
16
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3774
SELECT 56, COUNT( * ) / - MIN( ALL + ( - 14 ) ) * - 71 * CAST( NULL AS SIGNED ) * + - ( + 93 ) + - COUNT( * ) - MIN( - - 18 ) AS col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-3774
SELECT 56, COUNT ( * ) / - MIN ( ALL + ( - 14 ) ) * - 71 * CAST ( NULL AS INTEGER ) * + - ( + 93 ) + - COUNT ( * ) - MIN ( - - 18 ) AS col1
----
56
NULL

query II rowsort
SELECT - 18 AS col2, + 79 AS col2
----
-18
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3776
SELECT CAST( + 13 AS SIGNED ) * - COUNT( * ) + - - COUNT( * ) * + 18
----
5

skipif mysql # not compatible
query I rowsort label-3776
SELECT CAST ( + 13 AS INTEGER ) * - COUNT ( * ) + - - COUNT ( * ) * + 18
----
5

query I rowsort
SELECT ALL 62 * + COALESCE ( 15, 96 - + 49 )
----
930

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3778
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - 89 col1, 35
----
NULL
35

skipif mysql # not compatible
query II rowsort label-3778
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - 89 col1, 35
----
NULL
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT COUNT( * ) * - SUM( ALL - 15 ) + - 18 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3779
SELECT COUNT ( * ) * - SUM ( ALL - 15 ) + - 18 AS col2
----
-3

query I rowsort
SELECT ALL 8 * 79
----
632

query I rowsort
SELECT DISTINCT - 12 col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL - CASE + - COUNT( * ) WHEN - - 24 THEN - - 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL - CASE + - COUNT ( * ) WHEN - - 24 THEN - - 53 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3783
SELECT AVG ( DISTINCT 44 ) - - + COALESCE ( + + 75, + + 52 + SUM( ALL + + 86 ) - 94, - - ( - 74 ) + + + 13 ) - - AVG ( 6 ) * CAST( NULL AS SIGNED ) - - 69 + + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3783
SELECT AVG ( DISTINCT 44 ) - - + COALESCE ( + + 75, + + 52 + SUM ( ALL + + 86 ) - 94, - - ( - 74 ) + + + 13 ) - - AVG ( 6 ) * CAST ( NULL AS INTEGER ) - - 69 + + - 27
----
NULL

query I rowsort
SELECT 5 - - - 75 - + - 93 AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3785
SELECT ALL - 36 DIV + + 66
----
0

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL - 36 / + + 66
----
0

query II rowsort
SELECT + + 20, - 93 AS col0
----
20
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3787
SELECT CAST( NULL AS SIGNED ) / ( + - 68 ) AS col0, 38
----
NULL
38

skipif mysql # not compatible
query II rowsort label-3787
SELECT CAST ( NULL AS INTEGER ) / ( + - 68 ) AS col0, 38
----
NULL
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3788
SELECT 79 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-3788
SELECT 79 / + 94
----
0

query I rowsort
SELECT ALL - 87 + 31
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-3790
SELECT 66 + COUNT( * ) * - COUNT( * ) col1, + 35 + - COALESCE ( + + 36, - 73, + 34 * + 38 )
----
65
-1

skipif mysql # not compatible
query II rowsort label-3790
SELECT 66 + COUNT ( * ) * - COUNT ( * ) col1, + 35 + - COALESCE ( + + 36, - 73, + 34 * + 38 )
----
65
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3791
SELECT ALL 19 DIV - - 56 DIV COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL 19 / - - 56 / COUNT ( * ) col2
----
0

query I rowsort
SELECT ALL + + 30 + - 35 - - 31
----
26

query I rowsort
SELECT ALL + 96 * + 81 * - 45 + 69 AS col1
----
-349851

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT DISTINCT - COUNT( DISTINCT + 16 ) + - + COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT - COUNT ( DISTINCT + 16 ) + - + COUNT ( * ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3795
SELECT COUNT( * ) + 64 * + CASE - NULLIF ( CAST( NULL AS SIGNED ), - 52 + + + 38 ) WHEN + + 26 THEN NULL WHEN + + CASE + + COALESCE ( - 54, + CAST( NULL AS SIGNED ), - ( + 62 ) ) WHEN - + 39 THEN + AVG ( + - 77 ) END + + 4 THEN + 8 * + 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3795
SELECT COUNT ( * ) + 64 * + CASE - NULLIF ( CAST ( NULL AS INTEGER ), - 52 + + + 38 ) WHEN + + 26 THEN NULL WHEN + + CASE + + COALESCE ( - 54, + CAST ( NULL AS INTEGER ), - ( + 62 ) ) WHEN - + 39 THEN + AVG ( + - 77 ) END + + 4 THEN + 8 * + 37 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3796
SELECT ALL + - COUNT( * ) + 16 + - 25 + + + CASE - 29 WHEN - 38 + - 97 + - CAST( MIN( - + 39 ) AS SIGNED ) + - + ( - CASE 31 WHEN 88 THEN + + 54 WHEN + 90 + 37 * + COALESCE ( + 24, - 47 + - + 85 ) THEN NULL END ) * - + COALESCE ( ( + - COALESCE ( - 52, + 62 ) ), 82 / - - 43 * 99 + - 58 + + 9 + + 28 / 21, + + AVG ( ALL 97 ) ) THEN - - 27 WHEN - 25 THEN NULL END - + + 45 - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL + - COUNT ( * ) + 16 + - 25 + + + CASE - 29 WHEN - 38 + - 97 + - CAST ( MIN ( - + 39 ) AS INTEGER ) + - + ( - CASE 31 WHEN 88 THEN + + 54 WHEN + 90 + 37 * + COALESCE ( + 24, - 47 + - + 85 ) THEN NULL END ) * - + COALESCE ( ( + - COALESCE ( - 52, + 62 ) ), 82 / - - 43 * 99 + - 58 + + 9 + + 28 / 21, + + AVG ( ALL 97 ) ) THEN - - 27 WHEN - 25 THEN NULL END - + + 45 - 69
----
NULL

query I rowsort
SELECT DISTINCT + - 88 + + 58 AS col2
----
-30

query II rowsort
SELECT + + 68 AS col2, - 79
----
68
-79

query I rowsort
SELECT COALESCE ( 56, - 6 * + 93 * - - 32 ) AS col2
----
56

query I rowsort
SELECT 27 + 84 + 29
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT 14 * + + CAST( + 16 AS SIGNED ) * 4 + + 27 - 61 AS col2
----
862

skipif mysql # not compatible
query I rowsort label-3801
SELECT 14 * + + CAST ( + 16 AS INTEGER ) * 4 + + 27 - 61 AS col2
----
862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3802
SELECT ALL - - 51 + + CAST( - 31 AS SIGNED ) + COUNT( * ) + + 69 * 38 * - - 66 + NULLIF ( + COUNT( * ), 40 ) * 73
----
173146

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL - - 51 + + CAST ( - 31 AS INTEGER ) + COUNT ( * ) + + 69 * 38 * - - 66 + NULLIF ( + COUNT ( * ), 40 ) * 73
----
173146

query II rowsort
SELECT ALL 98, - 22 AS col0
----
98
-22

query I rowsort
SELECT 7 / - CASE + 95 WHEN + 63 THEN 90 * + 53 - - - 98 * 51 END * - - 52 / - 11 * 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ALL + + 38 * COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL + + 38 * COUNT ( * ) AS col0
----
38

query I rowsort
SELECT DISTINCT 63 * + ( + 0 )
----
0

query I rowsort
SELECT 29 - + 72 + + - 1 + - 32 + 9 - + 33 * - NULLIF ( 72, - 15 * - 13 ) * + 54
----
128237

query I rowsort
SELECT 64 * + + 2 AS col2
----
128

query I rowsort
SELECT 35 * + - 37
----
-1295

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT DISTINCT - 21 * COUNT( - 94 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT - 21 * COUNT ( - 94 ) AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT 54 DIV + 11
----
4

skipif mysql # not compatible
query I rowsort label-3811
SELECT 54 / + 11
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3812
SELECT 90 * - - 15 * + + CAST( NULL AS SIGNED ) * - - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT 90 * - - 15 * + + CAST ( NULL AS INTEGER ) * - - 78 AS col1
----
NULL

query I rowsort
SELECT 61 + - 87 * 18 AS col1
----
-1505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3814
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT ALL + MAX( DISTINCT - 74 ) * COUNT( * ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL + MAX ( DISTINCT - 74 ) * COUNT ( * ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL MAX( + + 78 ) col0
----
78

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL MAX ( + + 78 ) col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3817
SELECT ( 75 ) + - 39 DIV + - CASE 74 WHEN + 6 + + - 38 THEN + + 44 WHEN - 94 THEN NULL ELSE - + 57 * - 90 + - 13 - - 89 END * + 74 * - + 52
----
75

skipif mysql # not compatible
query I rowsort label-3817
SELECT ( 75 ) + - 39 / + - CASE 74 WHEN + 6 + + - 38 THEN + + 44 WHEN - 94 THEN NULL ELSE - + 57 * - 90 + - 13 - - 89 END * + 74 * - + 52
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT COUNT( - NULLIF ( + 17, - 65 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3818
SELECT COUNT ( - NULLIF ( + 17, - 65 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3819
SELECT CAST( NULL AS SIGNED ) + COUNT( DISTINCT + 75 ) - - 72 * + - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT + 75 ) - - 72 * + - 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT COUNT( DISTINCT + + 55 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3820
SELECT COUNT ( DISTINCT + + 55 ) AS col0
----
1

query I rowsort
SELECT ALL - - ( + + 99 ) * - - 3 - + - 13 + + - 50
----
260

query I rowsort
SELECT + + NULLIF ( 66, + 49 - + - 57 )
----
66

query I rowsort
SELECT ALL 8 * + 37 * + 35 + - + 0 * - 7
----
10360

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT 81 * COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3824
SELECT 81 * COUNT ( * ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL - + MAX( ALL - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL - + MAX ( ALL - 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT ALL - COUNT( ALL - 58 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL - COUNT ( ALL - 58 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3827
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) * - 93 + + SUM( DISTINCT - 92 ) + + NULLIF ( + - 56, NULLIF ( - - 66, + + MAX( ALL + 20 ) ) ) AS col1
----
-241

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) * - 93 + + SUM ( DISTINCT - 92 ) + + NULLIF ( + - 56, NULLIF ( - - 66, + + MAX ( ALL + 20 ) ) ) AS col1
----
-241

query II rowsort
SELECT - 83 * + - 64 AS col1, - CASE 13 WHEN 9 THEN - 40 + + 20 WHEN + + 22 THEN NULL END * - 7 + - + 23
----
5312
NULL

query I rowsort
SELECT + 27 + - + 73
----
-46

query I rowsort
SELECT + - 50 col0
----
-50

query I rowsort
SELECT NULLIF ( + 44, + 71 + + - 15 ) col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3832
SELECT - ( - 26 ) DIV + + 17 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3832
SELECT - ( - 26 ) / + + 17 AS col1
----
1

query I rowsort
SELECT - - 3 * + - 74
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT DISTINCT - ( - + 47 ) * + 36 * - 33 * - COALESCE ( 69, - 29, - - 31 * + 89 + + SUM( 38 ) ) AS col2
----
3852684

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT - ( - + 47 ) * + 36 * - 33 * - COALESCE ( 69, - 29, - - 31 * + 89 + + SUM ( 38 ) ) AS col2
----
3852684

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT + + ( - + 34 ) - + COUNT( * ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3835
SELECT + + ( - + 34 ) - + COUNT ( * ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT DISTINCT + 90 * + 46 * - 34 * + MIN( ALL + 53 ) + + + 89 * - 42 * - COUNT( * ) + - 75 AS col1
----
-7456617

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT + 90 * + 46 * - 34 * + MIN ( ALL + 53 ) + + + 89 * - 42 * - COUNT ( * ) + - 75 AS col1
----
-7456617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3837
SELECT - + CASE - 75 WHEN - 91 THEN - 78 * - 47 * - 74 + - 37 - + 99 + - 4 WHEN COUNT( * ) THEN + COALESCE ( 70, - CAST( NULL AS SIGNED ) ) + - 53 ELSE - 49 * + - ( - 74 ) END * 79
----
286454

skipif mysql # not compatible
query I rowsort label-3837
SELECT - + CASE - 75 WHEN - 91 THEN - 78 * - 47 * - 74 + - 37 - + 99 + - 4 WHEN COUNT ( * ) THEN + COALESCE ( 70, - CAST ( NULL AS INTEGER ) ) + - 53 ELSE - 49 * + - ( - 74 ) END * 79
----
286454

query I rowsort
SELECT 71 * - + 11 + + + 88 - + 12
----
-705

onlyif mysql # aggregate syntax: 
query II rowsort label-3839
SELECT ALL COUNT( * ), 58 + - 19 AS col1
----
1
39

skipif mysql # not compatible
query II rowsort label-3839
SELECT ALL COUNT ( * ), 58 + - 19 AS col1
----
1
39

query I rowsort
SELECT + 57 + - - 11 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT CASE + + COUNT( * ) WHEN + 80 THEN NULL ELSE + + 50 END * + 91 - - 69 + - + 35
----
4584

skipif mysql # not compatible
query I rowsort label-3841
SELECT CASE + + COUNT ( * ) WHEN + 80 THEN NULL ELSE + + 50 END * + 91 - - 69 + - + 35
----
4584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3842
SELECT - NULLIF ( 68, + - 69 ) - - + MIN( - + CAST( - 14 AS SIGNED ) ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-3842
SELECT - NULLIF ( 68, + - 69 ) - - + MIN ( - + CAST ( - 14 AS INTEGER ) ) col0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT ALL CASE 53 WHEN 63 * - - 19 - - - 76 - - - 18 * - - 25 * - 49 THEN NULL ELSE + 43 DIV 60 + + 8 END col0
----
8

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL CASE 53 WHEN 63 * - - 19 - - - 76 - - - 18 * - - 25 * - 49 THEN NULL ELSE + 43 / 60 + + 8 END col0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3844
SELECT - NULLIF ( 70, - 63 + - 20 + 62 * - COUNT( - 14 ) ) + SUM( DISTINCT + 89 ) DIV 1 * + 72, + 57 col0
----
6338
57

skipif mysql # not compatible
query II rowsort label-3844
SELECT - NULLIF ( 70, - 63 + - 20 + 62 * - COUNT ( - 14 ) ) + SUM ( DISTINCT + 89 ) / 1 * + 72, + 57 col0
----
6338
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT ALL CASE - COUNT( * ) WHEN 10 * + NULLIF ( - MAX( + - 24 ), + 13 * - COUNT( * ) ) / + COUNT( * ) * + 41 - 95 THEN + ( - + 93 ) / + - 77 + - 56 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL CASE - COUNT ( * ) WHEN 10 * + NULLIF ( - MAX ( + - 24 ), + 13 * - COUNT ( * ) ) / + COUNT ( * ) * + 41 - 95 THEN + ( - + 93 ) / + - 77 + - 56 END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3846
SELECT ALL - 9 DIV - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL - 9 / - 71 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3847
SELECT - 97 DIV - 36
----
2

skipif mysql # not compatible
query I rowsort label-3847
SELECT - 97 / - 36
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3848
SELECT - 9 + - + 44 + - ( + 1 ) DIV - 92 * SUM( DISTINCT - - 39 )
----
-53

skipif mysql # not compatible
query I rowsort label-3848
SELECT - 9 + - + 44 + - ( + 1 ) / - 92 * SUM ( DISTINCT - - 39 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT - 91 * COUNT( * ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT - 91 * COUNT ( * ) AS col1
----
-91

query I rowsort
SELECT - 49 + - 82
----
-131

query I rowsort
SELECT ALL - 73 * - 32 AS col2
----
2336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3852
SELECT - MAX( + 48 ) / + MIN( ALL + + 4 ) + + CAST( NULL AS SIGNED ) - + CASE 54 WHEN 15 + - - 57 * - + 10 THEN + 75 - - - 80 WHEN 12 THEN NULL WHEN - 2 THEN NULL END + + + CAST( NULL AS SIGNED ) * - SUM( CAST( + - 51 AS SIGNED ) ) * + 82 * 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3852
SELECT - MAX ( + 48 ) / + MIN ( ALL + + 4 ) + + CAST ( NULL AS INTEGER ) - + CASE 54 WHEN 15 + - - 57 * - + 10 THEN + 75 - - - 80 WHEN 12 THEN NULL WHEN - 2 THEN NULL END + + + CAST ( NULL AS INTEGER ) * - SUM ( CAST ( + - 51 AS INTEGER ) ) * + 82 * 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3853
SELECT + 67 DIV COUNT( + 57 ) * - - 37
----
2479

skipif mysql # not compatible
query I rowsort label-3853
SELECT + 67 / COUNT ( + 57 ) * - - 37
----
2479

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3854
SELECT ALL - MIN( ALL 4 ) + COUNT( * ) * 61 DIV - - 60 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL - MIN ( ALL 4 ) + COUNT ( * ) * 61 / - - 60 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3855
SELECT - NULLIF ( - - 14, + - 55 + - + 45 ) * CASE + + COUNT( * ) WHEN - - COUNT( * ) * + AVG ( ALL - 69 ) - - 9 - + - 19 + + 29 THEN + + COUNT( - 11 ) ELSE - - 4 END * 62 * - 69 + 38 + 93 * - + 79 + + 47 + 84 DIV - + COUNT( * ) - 94 * + 45 * + 50 + + 6 AS col2
----
20728

skipif mysql # not compatible
query I rowsort label-3855
SELECT - NULLIF ( - - 14, + - 55 + - + 45 ) * CASE + + COUNT ( * ) WHEN - - COUNT ( * ) * + AVG ( ALL - 69 ) - - 9 - + - 19 + + 29 THEN + + COUNT ( - 11 ) ELSE - - 4 END * 62 * - 69 + 38 + 93 * - + 79 + + 47 + 84 / - + COUNT ( * ) - 94 * + 45 * + 50 + + 6 AS col2
----
20728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3856
SELECT DISTINCT + 50 DIV - 96 + MAX( - + 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT + 50 / - 96 + MAX ( - + 36 ) AS col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3857
SELECT ALL 71 DIV - + CASE + 59 WHEN + 60 + - COUNT( * ) THEN - SUM( ALL - - 46 ) * - 25 + - 96 DIV + 97 END
----
0

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL 71 / - + CASE + 59 WHEN + 60 + - COUNT ( * ) THEN - SUM ( ALL - - 46 ) * - 25 + - 96 / + 97 END
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3858
SELECT ( + MAX( DISTINCT 42 ) ), 99 * + 82 AS col0
----
42
8118

skipif mysql # not compatible
query II rowsort label-3858
SELECT ( + MAX ( DISTINCT 42 ) ), 99 * + 82 AS col0
----
42
8118

query II rowsort
SELECT + 51 * 1 * + 28 + + 90 + 12, 13 col0
----
1530
13

query II rowsort
SELECT ALL + - 41, + 49 AS col0
----
-41
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT + 63 * 7 + - + COUNT( * ) col1
----
440

skipif mysql # not compatible
query I rowsort label-3861
SELECT + 63 * 7 + - + COUNT ( * ) col1
----
440

query I rowsort
SELECT + 81 + - - 64 AS col1
----
145

query I rowsort
SELECT + - ( ( ( 76 ) ) )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT DISTINCT - NULLIF ( + 68, + + 49 * + ( + - 69 ) * + - NULLIF ( + 77, + 80 / AVG ( ALL + + 12 ) * - + 7 / - - CASE 8 WHEN + - COUNT( * ) * + 24 + - - 50 THEN NULL ELSE + + 92 END ) ) * ( COUNT( * ) ) col0
----
-68

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT - NULLIF ( + 68, + + 49 * + ( + - 69 ) * + - NULLIF ( + 77, + 80 / AVG ( ALL + + 12 ) * - + 7 / - - CASE 8 WHEN + - COUNT ( * ) * + 24 + - - 50 THEN NULL ELSE + + 92 END ) ) * ( COUNT ( * ) ) col0
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3865
SELECT ALL + - 15 * + 60 - - 82 DIV 33 * + ( COUNT( * ) ) + - 0
----
-898

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL + - 15 * + 60 - - 82 / 33 * + ( COUNT ( * ) ) + - 0
----
-898

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3866
SELECT - - 56 DIV - 85 + + - 9 * + - NULLIF ( + 57, - COUNT( * ) * 48 + + CAST( NULL AS DECIMAL ) ), + 71 AS col2
----
513
71

skipif mysql # not compatible
query II rowsort label-3866
SELECT - - 56 / - 85 + + - 9 * + - NULLIF ( + 57, - COUNT ( * ) * 48 + + CAST ( NULL AS REAL ) ), + 71 AS col2
----
513
71

query I rowsort
SELECT ALL 87 * - + 5 * - 33
----
14355

query I rowsort
SELECT DISTINCT - 41 * + 71
----
-2911

query I rowsort
SELECT ALL + ( ( 25 ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT + 88 * - 30 * + COUNT( * ) + - + MIN( DISTINCT + - 20 )
----
-2620

skipif mysql # not compatible
query I rowsort label-3870
SELECT + 88 * - 30 * + COUNT ( * ) + - + MIN ( DISTINCT + - 20 )
----
-2620

onlyif mysql # aggregate syntax: 
query II rowsort label-3871
SELECT ALL 44 * + 57 + + 82 + 80 - - COUNT( * ) AS col0, + MAX( ALL + - 32 ) AS col1
----
2671
-32

skipif mysql # not compatible
query II rowsort label-3871
SELECT ALL 44 * + 57 + + 82 + 80 - - COUNT ( * ) AS col0, + MAX ( ALL + - 32 ) AS col1
----
2671
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT + - 11 + + - CAST( 11 AS SIGNED ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3872
SELECT + - 11 + + - CAST ( 11 AS INTEGER ) AS col0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-3873
SELECT DISTINCT 87 DIV + - 51 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT 87 / + - 51 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3874
SELECT - 57 * + + COUNT( * ), 94 AS col1
----
-57
94

skipif mysql # not compatible
query II rowsort label-3874
SELECT - 57 * + + COUNT ( * ), 94 AS col1
----
-57
94

query I rowsort
SELECT ALL 21 * + NULLIF ( 72, - - 28 * 97 + - 51 * - 86 ) AS col0
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT MIN( ALL + - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-3876
SELECT MIN ( ALL + - 83 )
----
-83

query I rowsort
SELECT ALL + 67 * - 21 AS col1
----
-1407

query I rowsort
SELECT ALL - 4 * + 7
----
-28

query I rowsort
SELECT + 21 + 64 - + + 97
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3880
SELECT - CAST( - 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-3880
SELECT - CAST ( - 55 AS INTEGER )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3881
SELECT ALL 86 + - + 1 DIV + + 55 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL 86 + - + 1 / + + 55 AS col0
----
86

query I rowsort
SELECT DISTINCT 44 * ( - + 10 ) * - 49 * - 79 AS col2
----
-1703240

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT + 68 - - COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-3883
SELECT + 68 - - COUNT ( * ) AS col2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT ALL 79 * ( - CAST( + 54 AS SIGNED ) ) AS col0
----
-4266

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL 79 * ( - CAST ( + 54 AS INTEGER ) ) AS col0
----
-4266

query I rowsort
SELECT + 85 * + - 67
----
-5695

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT - 91 + + - MIN( DISTINCT - - 24 ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-3886
SELECT - 91 + + - MIN ( DISTINCT - - 24 ) AS col1
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3887
SELECT 18 AS col2, CAST( - + 93 AS SIGNED )
----
18
-93

skipif mysql # not compatible
query II rowsort label-3887
SELECT 18 AS col2, CAST ( - + 93 AS INTEGER )
----
18
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3888
SELECT - CAST( + + 83 AS SIGNED ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3888
SELECT - CAST ( + + 83 AS INTEGER ) AS col0
----
-83

query I rowsort
SELECT - 67 + + 79 + - 61 * 17 + + 59 * - 35
----
-3090

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ALL + COUNT( * ) + - - 8 + 53 - - 95
----
157

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL + COUNT ( * ) + - - 8 + 53 - - 95
----
157

query I rowsort
SELECT ALL - 78 + - - 19
----
-59

query I rowsort
SELECT ALL 43 * 68 * + 23
----
67252

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT - MAX( - 21 ) + - 21 + + 19 + + + COUNT( * ) * - 66 * 30 AS col2
----
-1961

skipif mysql # not compatible
query I rowsort label-3893
SELECT - MAX ( - 21 ) + - 21 + + 19 + + + COUNT ( * ) * - 66 * 30 AS col2
----
-1961

query I rowsort
SELECT DISTINCT ( CASE - 82 WHEN + + 90 THEN + - 3 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL ( + 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3896
SELECT ALL COUNT( * ) + + 1 - + + MIN( 18 ), + 68 * - - 42 * 51 AS col1
----
-16
145656

skipif mysql # not compatible
query II rowsort label-3896
SELECT ALL COUNT ( * ) + + 1 - + + MIN ( 18 ), + 68 * - - 42 * 51 AS col1
----
-16
145656

query I rowsort
SELECT ALL - - 24 * + 2 col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3898
SELECT DISTINCT + 97 DIV + - 27
----
-3

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT + 97 / + - 27
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT - + COUNT( - 42 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3899
SELECT - + COUNT ( - 42 ) AS col1
----
-1

query I rowsort
SELECT - + 28 + 5 + + + 97
----
74

query I rowsort
SELECT ALL + 64 * - 85 * + 73 col1
----
-397120

onlyif mysql # aggregate syntax: 
query II rowsort label-3902
SELECT + 71 AS col1, - COUNT( * ) AS col0
----
71
-1

skipif mysql # not compatible
query II rowsort label-3902
SELECT + 71 AS col1, - COUNT ( * ) AS col0
----
71
-1

query I rowsort
SELECT ( - 5 ) + - 52 AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3904
SELECT DISTINCT - 92 AS col0, COALESCE ( + - 24, - 9 + CAST( - NULLIF ( - 41, - NULLIF ( 59, - 61 + CAST( NULL AS SIGNED ) ) ) AS SIGNED ) )
----
-92
-24

skipif mysql # not compatible
query II rowsort label-3904
SELECT DISTINCT - 92 AS col0, COALESCE ( + - 24, - 9 + CAST ( - NULLIF ( - 41, - NULLIF ( 59, - 61 + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) )
----
-92
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT ALL + CAST( NULL AS SIGNED ) * + 99 * - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL + CAST ( NULL AS INTEGER ) * + 99 * - 14 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3906
SELECT ALL 89 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL 89 / 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT ALL - - MAX( + + NULLIF ( + + 80, - 39 ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL - - MAX ( + + NULLIF ( + + 80, - 39 ) ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT - 72 * + COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-3908
SELECT - 72 * + COUNT ( * ) AS col1
----
-72

query II rowsort
SELECT + + 36 AS col0, + 83 * - 83 AS col2
----
36
-6889

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL - - ( NULLIF ( - ( COUNT( * ) ), - - 64 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL - - ( NULLIF ( - ( COUNT ( * ) ), - - 64 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT COUNT( * ) + + 26
----
27

skipif mysql # not compatible
query I rowsort label-3911
SELECT COUNT ( * ) + + 26
----
27

query I rowsort
SELECT + - ( - 22 ) AS col2
----
22

query I rowsort
SELECT + 39 * - 12
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT ALL 46 * 36 * + MIN( DISTINCT 55 )
----
91080

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL 46 * 36 * + MIN ( DISTINCT 55 )
----
91080

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT MIN( 85 ) * 27 + COUNT( - 5 ) AS col2
----
2296

skipif mysql # not compatible
query I rowsort label-3915
SELECT MIN ( 85 ) * 27 + COUNT ( - 5 ) AS col2
----
2296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3916
SELECT ALL + 81 + 16 + + COUNT( * ) DIV + 20 DIV 5 * + 62 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL + 81 + 16 + + COUNT ( * ) / + 20 / 5 * + 62 AS col2
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3917
SELECT 8 * + ( + 89 ) - 1 DIV - + MIN( 32 ) col1
----
712

skipif mysql # not compatible
query I rowsort label-3917
SELECT 8 * + ( + 89 ) - 1 / - + MIN ( 32 ) col1
----
712

query II rowsort
SELECT ALL 92 + 82 AS col1, 84
----
174
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT + COUNT( * ) * + - 15 + + 10 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3919
SELECT + COUNT ( * ) * + - 15 + + 10 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT DISTINCT 38 + - 43 - - MAX( + 37 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT 38 + - 43 - - MAX ( + 37 ) AS col0
----
32

query II rowsort
SELECT ALL 73 + + 90 AS col0, + COALESCE ( - 70, 83 )
----
163
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT DISTINCT 2 + NULLIF ( - - ( - SUM( ALL ( + 65 ) ) ), - ( + 52 ) + - COUNT( 78 ) ) + 64 - + 95
----
-94

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT 2 + NULLIF ( - - ( - SUM ( ALL ( + 65 ) ) ), - ( + 52 ) + - COUNT ( 78 ) ) + 64 - + 95
----
-94

query II rowsort
SELECT 98 + 94 + + 57, 84 AS col1
----
249
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3924
SELECT ( COALESCE ( - MIN( ALL 83 ), + + 11 ) ) + 84 DIV - 5
----
-99

skipif mysql # not compatible
query I rowsort label-3924
SELECT ( COALESCE ( - MIN ( ALL 83 ), + + 11 ) ) + 84 / - 5
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL MIN( - 52 ) + + SUM( - - 84 )
----
32

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL MIN ( - 52 ) + + SUM ( - - 84 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL + 1 - 43 * + ( CASE + 21 WHEN + - 83 THEN + SUM( + 11 ) * - 70 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL + 1 - 43 * + ( CASE + 21 WHEN + - 83 THEN + SUM ( + 11 ) * - 70 ELSE NULL END )
----
NULL

query II rowsort
SELECT ALL - 68 * + ( 23 ), + 36 AS col2
----
-1564
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT 66 + + - COALESCE ( - 56, - + 76, + CASE - + 35 WHEN - + 2 THEN NULL WHEN - 55 THEN NULL WHEN ( + 57 ) * - 85 + COUNT( * ) THEN COUNT( ALL 68 ) * - 99 + - NULLIF ( 96, 23 ) ELSE 73 END + - 66 ) * - + 64 + + 43 * + - 6 AS col0
----
-3776

skipif mysql # not compatible
query I rowsort label-3928
SELECT 66 + + - COALESCE ( - 56, - + 76, + CASE - + 35 WHEN - + 2 THEN NULL WHEN - 55 THEN NULL WHEN ( + 57 ) * - 85 + COUNT ( * ) THEN COUNT ( ALL 68 ) * - 99 + - NULLIF ( 96, 23 ) ELSE 73 END + - 66 ) * - + 64 + + 43 * + - 6 AS col0
----
-3776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3929
SELECT COUNT( * ) * 59 * COALESCE ( + 66, - - COUNT( * ) ) + + ( + CAST( NULL AS SIGNED ) ) + CASE 36 WHEN + - 23 THEN NULL WHEN COUNT( * ) THEN + COUNT( * ) WHEN + COUNT( * ) * 35 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT COUNT ( * ) * 59 * COALESCE ( + 66, - - COUNT ( * ) ) + + ( + CAST ( NULL AS INTEGER ) ) + CASE 36 WHEN + - 23 THEN NULL WHEN COUNT ( * ) THEN + COUNT ( * ) WHEN + COUNT ( * ) * 35 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3930
SELECT + 80 + - + 16 DIV - 4 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3930
SELECT + 80 + - + 16 / - 4 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT - MIN( DISTINCT - 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT - MIN ( DISTINCT - 26 ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3932
SELECT - - COALESCE ( - - CAST( NULL AS SIGNED ), - + 59 ) * - - 75 + + 41 AS col0, - COUNT( * )
----
-4384
-1

skipif mysql # not compatible
query II rowsort label-3932
SELECT - - COALESCE ( - - CAST ( NULL AS INTEGER ), - + 59 ) * - - 75 + + 41 AS col0, - COUNT ( * )
----
-4384
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT - 87 DIV 11
----
-7

skipif mysql # not compatible
query I rowsort label-3933
SELECT - 87 / 11
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT MIN( ALL + 62 ) * + 58
----
3596

skipif mysql # not compatible
query I rowsort label-3934
SELECT MIN ( ALL + 62 ) * + 58
----
3596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3935
SELECT ALL + - 12 DIV - 17 * 15 * - - 60 * - COUNT( * ) + - 27
----
-27

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL + - 12 / - 17 * 15 * - - 60 * - COUNT ( * ) + - 27
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3936
SELECT - + 4 * + 29 * + 72 + 12 + - + 2 * + 80 + 73 + + + CAST( + + 54 AS SIGNED )
----
-8373

skipif mysql # not compatible
query I rowsort label-3936
SELECT - + 4 * + 29 * + 72 + 12 + - + 2 * + 80 + 73 + + + CAST ( + + 54 AS INTEGER )
----
-8373

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT ALL + 25 * CASE + COUNT( * ) WHEN + COUNT( * ) + + 76 THEN - 0 * - 35 ELSE - 42 * 67 + - + 81 END AS col2
----
-72375

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL + 25 * CASE + COUNT ( * ) WHEN + COUNT ( * ) + + 76 THEN - 0 * - 35 ELSE - 42 * 67 + - + 81 END AS col2
----
-72375

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL + COUNT( * ) + - COUNT( * ) - + 30
----
-30

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL + COUNT ( * ) + - COUNT ( * ) - + 30
----
-30

query I rowsort
SELECT + 35 * 27 + + + NULLIF ( 87, + 27 * - 37 ) + - + 45
----
987

query I rowsort
SELECT ALL - 77 + - 69
----
-146

query I rowsort
SELECT ALL - NULLIF ( - - 43, - - ( - 5 ) ) AS col2
----
-43

query I rowsort
SELECT ALL - 50 + - 18
----
-68

query I rowsort
SELECT 73 * 67 AS col2
----
4891

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT COUNT( * ) + - ( + - 25 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3944
SELECT COUNT ( * ) + - ( + - 25 ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3945
SELECT 50 * + ( + 81 ) + - 25 + + - 94 + + CAST( NULL AS SIGNED ) + + - COUNT( * ) + + 12 / + - 76 + - CASE + 83 WHEN + 53 / + - ( 72 ) + - 48 + + 25 + + - CASE 99 WHEN 44 + 14 THEN + 52 WHEN COUNT( * ) * - COUNT( * ) THEN NULL END THEN + - 9 * + 51 - 78 * - 26 + - COUNT( * ) + - 59 * 26 END * CAST( NULL AS SIGNED ), + 27 AS col2
----
NULL
27

skipif mysql # not compatible
query II rowsort label-3945
SELECT 50 * + ( + 81 ) + - 25 + + - 94 + + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + + 12 / + - 76 + - CASE + 83 WHEN + 53 / + - ( 72 ) + - 48 + + 25 + + - CASE 99 WHEN 44 + 14 THEN + 52 WHEN COUNT ( * ) * - COUNT ( * ) THEN NULL END THEN + - 9 * + 51 - 78 * - 26 + - COUNT ( * ) + - 59 * 26 END * CAST ( NULL AS INTEGER ), + 27 AS col2
----
NULL
27

query II rowsort
SELECT ALL 23 AS col1, - 20 AS col1
----
23
-20

query I rowsort
SELECT DISTINCT - 32 + - - 56 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT ALL - COUNT( * ) - + - 4 * + 30 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL - COUNT ( * ) - + - 4 * + 30 AS col2
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3949
SELECT DISTINCT + 60 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT + 60 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3950
SELECT COALESCE ( - 86, - 77 DIV - 5 * + + COUNT( * ) ) * + - CAST( - 98 AS SIGNED ) AS col0
----
-8428

skipif mysql # not compatible
query I rowsort label-3950
SELECT COALESCE ( - 86, - 77 / - 5 * + + COUNT ( * ) ) * + - CAST ( - 98 AS INTEGER ) AS col0
----
-8428

onlyif mysql # aggregate syntax: 
query II rowsort label-3951
SELECT ALL + COALESCE ( - 25, - + 81 ) * + MAX( ALL + 5 ) + + 35 col0, 35 - + 91 - + - COUNT( * ) AS col0
----
-90
-55

skipif mysql # not compatible
query II rowsort label-3951
SELECT ALL + COALESCE ( - 25, - + 81 ) * + MAX ( ALL + 5 ) + + 35 col0, 35 - + 91 - + - COUNT ( * ) AS col0
----
-90
-55

query I rowsort
SELECT 98 - + 20 AS col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3953
SELECT COUNT( * ), - 81 AS col1
----
1
-81

skipif mysql # not compatible
query II rowsort label-3953
SELECT COUNT ( * ), - 81 AS col1
----
1
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT + 34 + 67 + - 61 + + + COUNT( * ) + + - 56
----
-15

skipif mysql # not compatible
query I rowsort label-3954
SELECT + 34 + 67 + - 61 + + + COUNT ( * ) + + - 56
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT + + 53 DIV + - 5
----
-10

skipif mysql # not compatible
query I rowsort label-3955
SELECT + + 53 / + - 5
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT + 77 * + CASE - 92 WHEN - + 21 + + 21 THEN 48 * - - CAST( NULL AS SIGNED ) END + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT + 77 * + CASE - 92 WHEN - + 21 + + 21 THEN 48 * - - CAST ( NULL AS INTEGER ) END + 41
----
NULL

query II rowsort
SELECT ALL 55 AS col1, 8 + + + 88 AS col0
----
55
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3958
SELECT ALL - 81 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL - 81 * - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + - 76 * + 0 + - 18 AS col1, - 98 AS col1
----
-18
-98

query I rowsort
SELECT ALL + + ( - 59 ) * + ( + NULLIF ( 77, - ( 39 ) ) )
----
-4543

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT DISTINCT - 62 * 73 - COUNT( * )
----
-4527

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT - 62 * 73 - COUNT ( * )
----
-4527

query I rowsort
SELECT + ( - 99 ) * + 30 + + 37 col1
----
-2933

query I rowsort
SELECT - 63 + - 98 AS col2
----
-161

query I rowsort
SELECT ALL 33 * ( + CASE 38 WHEN + 5 THEN 44 WHEN - 3 THEN NULL WHEN - 98 THEN NULL ELSE 28 END )
----
924

query I rowsort
SELECT NULLIF ( - ( + 5 ), - + ( 89 ) / + AVG ( + 88 ) - - + 40 )
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-3966
SELECT - 52 AS col2, + 56 DIV - 48 AS col2
----
-52
-1

skipif mysql # not compatible
query II rowsort label-3966
SELECT - 52 AS col2, + 56 / - 48 AS col2
----
-52
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3967
SELECT ALL + ( + 15 ) * + - 62 + + 31 DIV 90 AS col0
----
-930

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL + ( + 15 ) * + - 62 + + 31 / 90 AS col0
----
-930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3968
SELECT ALL - + ( MAX( ALL + 38 ) ) * - - ( + + CASE + 21 WHEN + 50 + - 93 THEN NULL WHEN 85 / 94 THEN 98 WHEN + 35 THEN NULL ELSE ( - + CAST( ( + - 85 ) AS SIGNED ) ) END ) + - MAX( DISTINCT - 92 ) + + 77 + - - 44 * - - 85 + + 7
----
686

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL - + ( MAX ( ALL + 38 ) ) * - - ( + + CASE + 21 WHEN + 50 + - 93 THEN NULL WHEN 85 / 94 THEN 98 WHEN + 35 THEN NULL ELSE ( - + CAST ( ( + - 85 ) AS INTEGER ) ) END ) + - MAX ( DISTINCT - 92 ) + + 77 + - - 44 * - - 85 + + 7
----
686

query I rowsort
SELECT ALL 97 * 9 + + 6 + 30
----
909

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT NULLIF ( + 55, + 17 / - + COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-3970
SELECT NULLIF ( + 55, + 17 / - + COUNT ( * ) )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3971
SELECT - CAST( COUNT( * ) AS SIGNED ) DIV - - NULLIF ( + - 95, - 32 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3971
SELECT - CAST ( COUNT ( * ) AS INTEGER ) / - - NULLIF ( + - 95, - 32 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3972
SELECT ALL 87 * + 40 + + - 53 + 38 DIV - + 18
----
3425

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL 87 * + 40 + + - 53 + 38 / - + 18
----
3425

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT + COUNT( 57 ) + + - 68
----
-67

skipif mysql # not compatible
query I rowsort label-3973
SELECT + COUNT ( 57 ) + + - 68
----
-67

query I rowsort
SELECT + ( ( - 38 ) )
----
-38

query I rowsort
SELECT + 45 + 34 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT + 62 * COUNT( - 98 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3976
SELECT + 62 * COUNT ( - 98 ) AS col0
----
62

query I rowsort
SELECT + ( - 45 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT COALESCE ( - - 68, 77 * COUNT( * ) + + - 3 )
----
68

skipif mysql # not compatible
query I rowsort label-3978
SELECT COALESCE ( - - 68, 77 * COUNT ( * ) + + - 3 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3979
SELECT ALL + CASE - + COUNT( * ) WHEN + CAST( + 65 AS SIGNED ) * + 19 + - 46 + - 63 / + + 42 * - 31 * - + 2 + + 37 THEN NULL WHEN - + 22 THEN NULL WHEN - 58 THEN - - 2 ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL + CASE - + COUNT ( * ) WHEN + CAST ( + 65 AS INTEGER ) * + 19 + - 46 + - 63 / + + 42 * - 31 * - + 2 + + 37 THEN NULL WHEN - + 22 THEN NULL WHEN - 58 THEN - - 2 ELSE - COUNT ( * ) END
----
-1

query I rowsort
SELECT DISTINCT 99 * - 49 - - 43 AS col1
----
-4808

query I rowsort
SELECT ALL + ( - 63 )
----
-63

query I rowsort
SELECT - 91 + 79 AS col2
----
-12

query II rowsort
SELECT ALL + ( - 46 ) AS col0, ( 92 )
----
-46
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT - 84 DIV 47
----
-1

skipif mysql # not compatible
query I rowsort label-3984
SELECT - 84 / 47
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT - COUNT( - 57 ) - - 63
----
62

skipif mysql # not compatible
query I rowsort label-3985
SELECT - COUNT ( - 57 ) - - 63
----
62

query I rowsort
SELECT ALL + 85 * - 91 AS col0
----
-7735

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT MAX( DISTINCT + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-3987
SELECT MAX ( DISTINCT + 92 )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3988
SELECT - - CAST( NULL AS SIGNED ) + - + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT - - CAST ( NULL AS INTEGER ) + - + 25
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3989
SELECT DISTINCT CAST( NULL AS SIGNED ) * NULLIF ( + + 77, 21 ) + - NULLIF ( + 57, - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT DISTINCT CAST ( NULL AS INTEGER ) * NULLIF ( + + 77, 21 ) + - NULLIF ( + 57, - 8 )
----
NULL

query I rowsort
SELECT - - 30 * + 81
----
2430

query I rowsort
SELECT ALL - 25 + - + 32 + 65
----
8

query I rowsort
SELECT - 78 + + - 68
----
-146

query II rowsort
SELECT + COALESCE ( + 70, - 21 ) * + + 76 AS col1, - 77
----
5320
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT - 42 + - SUM( ALL 64 ) AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT - 42 + - SUM ( ALL 64 ) AS col0
----
-106

query I rowsort
SELECT - - 78 + + ( - 65 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT + + 3 + - MAX( - 30 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-3996
SELECT + + 3 + - MAX ( - 30 ) AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT + 49 DIV - 51 + + + 80 + 41 * - + 54
----
-2134

skipif mysql # not compatible
query I rowsort label-3997
SELECT + 49 / - 51 + + + 80 + 41 * - + 54
----
-2134

query II rowsort
SELECT ALL + 59 * - + 90 + + ( + 32 ), - 23 * + 25 AS col1
----
-5278
-575

query I rowsort
SELECT + + 54 + + ( + 92 ) * 72 - - + 47 AS col1
----
6725

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT ALL 53 DIV 52 DIV 4 + + + 26 + 21 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL 53 / 52 / 4 + + + 26 + 21 AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT CAST( + 42 AS SIGNED ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4001
SELECT CAST ( + 42 AS INTEGER ) AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4002
SELECT + COUNT( * ) * + 81 * 72 + + 2 * CAST( NULL AS SIGNED ) AS col2, 63 + 90 AS col1
----
NULL
153

skipif mysql # not compatible
query II rowsort label-4002
SELECT + COUNT ( * ) * + 81 * 72 + + 2 * CAST ( NULL AS INTEGER ) AS col2, 63 + 90 AS col1
----
NULL
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL SUM( DISTINCT 57 ) * - + ( + 43 )
----
-2451

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL SUM ( DISTINCT 57 ) * - + ( + 43 )
----
-2451

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT + CASE + + 29 WHEN - - 71 + + + ( + 82 ) - + 69 * + 7 - + 6 THEN + 46 + + 47 WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT + CASE + + 29 WHEN - - 71 + + + ( + 82 ) - + 69 * + 7 - + 6 THEN + 46 + + 47 WHEN + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT - 46 * COALESCE ( + - 23, + + 91 * + - CASE - - ( - 34 ) WHEN 2 THEN COALESCE ( 63, + COUNT( * ) ) + + 93 END ) * - + 59 - - 38 + + 57 AS col1
----
-62327

skipif mysql # not compatible
query I rowsort label-4005
SELECT - 46 * COALESCE ( + - 23, + + 91 * + - CASE - - ( - 34 ) WHEN 2 THEN COALESCE ( 63, + COUNT ( * ) ) + + 93 END ) * - + 59 - - 38 + + 57 AS col1
----
-62327

query I rowsort
SELECT + ( + 97 ) AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT CAST( + 48 AS SIGNED ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4007
SELECT CAST ( + 48 AS INTEGER ) AS col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4008
SELECT 87 DIV + - 49 + 52
----
51

skipif mysql # not compatible
query I rowsort label-4008
SELECT 87 / + - 49 + 52
----
51

query I rowsort
SELECT + ( + 34 ) + + + 35 + + + 70
----
139

query I rowsort
SELECT ( 81 ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL - 14 * - 9 * - 59 * + COUNT( * ) AS col0
----
-7434

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL - 14 * - 9 * - 59 * + COUNT ( * ) AS col0
----
-7434

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ( - - COALESCE ( - 44, - 54 * - 66 + - + 18 - COUNT( * ) ) ) col2
----
-44

skipif mysql # not compatible
query I rowsort label-4012
SELECT ( - - COALESCE ( - 44, - 54 * - 66 + - + 18 - COUNT ( * ) ) ) col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4013
SELECT CASE + + ( 94 ) WHEN - - 3 + - COUNT( * ) + - CAST( NULL AS SIGNED ) * - 98 + 65 + + 34 / 67 THEN ( + 31 ) * - ( + + 88 ) END + - ( + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4013
SELECT CASE + + ( 94 ) WHEN - - 3 + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - 98 + 65 + + 34 / 67 THEN ( + 31 ) * - ( + + 88 ) END + - ( + 2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT ALL 67 * SUM( ALL 90 ) * - 29
----
-174870

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL 67 * SUM ( ALL 90 ) * - 29
----
-174870

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT 4 * + + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4015
SELECT 4 * + + COUNT ( * ) AS col1
----
4

query I rowsort
SELECT 40 * - + 95
----
-3800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4017
SELECT 43 + + 94 + + COALESCE ( - ( + + CASE 88 WHEN + 64 THEN + 44 + + SUM( + - 39 ) * + ( 52 ) END ), MAX( + 31 ) ) + - + 70 - 37 * - 32 * - 9 * + + 23 * + 29, CAST( NULL AS SIGNED ) AS col2
----
-7107454
NULL

skipif mysql # not compatible
query II rowsort label-4017
SELECT 43 + + 94 + + COALESCE ( - ( + + CASE 88 WHEN + 64 THEN + 44 + + SUM ( + - 39 ) * + ( 52 ) END ), MAX ( + 31 ) ) + - + 70 - 37 * - 32 * - 9 * + + 23 * + 29, CAST ( NULL AS INTEGER ) AS col2
----
-7107454
NULL

query I rowsort
SELECT DISTINCT - 97 * + 46 * + - 72 AS col1
----
321264

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL NULLIF ( MIN( - 38 ), + - 81 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL NULLIF ( MIN ( - 38 ), + - 81 ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-4020
SELECT COUNT( * ) * + COUNT( DISTINCT + 39 ) AS col1, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-4020
SELECT COUNT ( * ) * + COUNT ( DISTINCT + 39 ) AS col1, COUNT ( * ) AS col2
----
1
1

query II rowsort
SELECT ALL - ( + 35 ) + + 46 - - + 51 + + 61, + 90 col0
----
123
90

query I rowsort
SELECT - 39 - 24
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT - MIN( ALL - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4023
SELECT - MIN ( ALL - 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT NULLIF ( - + 12, - - 89 + 27 / COUNT( * ) ) + + - 22 * + - 92
----
2012

skipif mysql # not compatible
query I rowsort label-4024
SELECT NULLIF ( - + 12, - - 89 + 27 / COUNT ( * ) ) + + - 22 * + - 92
----
2012

query I rowsort
SELECT ALL - - 93 + 13 + + 11
----
117

query I rowsort
SELECT DISTINCT - 80 + + 64
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ALL 51 + + 54 * - COUNT( * ) * + - 51 AS col1
----
2805

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL 51 + + 54 * - COUNT ( * ) * + - 51 AS col1
----
2805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4028
SELECT DISTINCT - + 51 + + CAST( NULL AS SIGNED ) * - + 47 * + ( - - ( - - NULLIF ( - - 24, - NULLIF ( + - 0, 36 + + 70 ) - + 92 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT - + 51 + + CAST ( NULL AS INTEGER ) * - + 47 * + ( - - ( - - NULLIF ( - - 24, - NULLIF ( + - 0, 36 + + 70 ) - + 92 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT 30 * - + 67 + + SUM( + + 75 )
----
-1935

skipif mysql # not compatible
query I rowsort label-4029
SELECT 30 * - + 67 + + SUM ( + + 75 )
----
-1935

query I rowsort
SELECT + 48 * - 75 AS col1
----
-3600

query II rowsort
SELECT 29 AS col1, 45 AS col0
----
29
45

query II rowsort
SELECT 64 AS col0, NULLIF ( + 38, + 54 * - NULLIF ( 44, + - 5 + + + 67 ) ) AS col0
----
64
38

query II rowsort
SELECT 34 col1, - 72 AS col2
----
34
-72

query I rowsort
SELECT 83 * 97 AS col1
----
8051

query I rowsort
SELECT DISTINCT - 0 - 70 - 39
----
-109

query II rowsort
SELECT + 7 AS col0, - ( 39 )
----
7
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT DISTINCT - COALESCE ( + - 90, - MAX( + 97 ) )
----
90

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT - COALESCE ( + - 90, - MAX ( + 97 ) )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4038
SELECT COUNT( * ) DIV + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4038
SELECT COUNT ( * ) / + 91 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT 24 * + ( 45 ) * - COUNT( * ) AS col2
----
-1080

skipif mysql # not compatible
query I rowsort label-4039
SELECT 24 * + ( 45 ) * - COUNT ( * ) AS col2
----
-1080

query I rowsort
SELECT DISTINCT 26 * + 40
----
1040

query I rowsort
SELECT 8 + - - 16 AS col1
----
24

query I rowsort
SELECT 14 * 3 AS col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4043
SELECT COUNT( * ) * - 62 AS col1, - 42 AS col1
----
-62
-42

skipif mysql # not compatible
query II rowsort label-4043
SELECT COUNT ( * ) * - 62 AS col1, - 42 AS col1
----
-62
-42

query I rowsort
SELECT - 3 * + 71 - - 99 AS col0
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4045
SELECT ALL - 4, - 81 - ( + - CAST( NULL AS SIGNED ) ) + + 11 + 16 + 47 * 9 AS col0
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-4045
SELECT ALL - 4, - 81 - ( + - CAST ( NULL AS INTEGER ) ) + + 11 + 16 + 47 * 9 AS col0
----
-4
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT COUNT( * ) * 20 * - 27
----
-540

skipif mysql # not compatible
query I rowsort label-4046
SELECT COUNT ( * ) * 20 * - 27
----
-540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4047
SELECT - 70 * + CASE 67 WHEN - + 25 THEN CASE 55 WHEN - + 75 / - 31 * + COUNT( * ) THEN NULL ELSE + COUNT( * ) + + 4 + + CAST( NULL AS SIGNED ) - - 3 * - 87 END WHEN - COUNT( * ) * + ( - 97 ) + - 24 * + 51 + - ( 29 ) THEN - - 27 * + 27 + 51 + + - NULLIF ( - 46, - 98 ) + + + 77 - - - 95 END + + NULLIF ( - 73, + 26 * 12 - 63 ) + - - COUNT( * ) + + COUNT( * ) / - + 88 + COUNT( * ) * + - 22, + COUNT( * ) * 88 * + 34 AS col2
----
NULL
2992

skipif mysql # not compatible
query II rowsort label-4047
SELECT - 70 * + CASE 67 WHEN - + 25 THEN CASE 55 WHEN - + 75 / - 31 * + COUNT ( * ) THEN NULL ELSE + COUNT ( * ) + + 4 + + CAST ( NULL AS INTEGER ) - - 3 * - 87 END WHEN - COUNT ( * ) * + ( - 97 ) + - 24 * + 51 + - ( 29 ) THEN - - 27 * + 27 + 51 + + - NULLIF ( - 46, - 98 ) + + + 77 - - - 95 END + + NULLIF ( - 73, + 26 * 12 - 63 ) + - - COUNT ( * ) + + COUNT ( * ) / - + 88 + COUNT ( * ) * + - 22, + COUNT ( * ) * 88 * + 34 AS col2
----
NULL
2992

query I rowsort
SELECT 35 * + 15
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT + 37 + + + 19 + + COALESCE ( + 58, NULLIF ( + + 25, 75 + + COALESCE ( + 32, 67, 1 * + + COUNT( * ) * + 32 * + 63 / - + MIN( + 71 ) / - - 4 * + 15 ) ) ) * + 12 + + + 10
----
762

skipif mysql # not compatible
query I rowsort label-4049
SELECT + 37 + + + 19 + + COALESCE ( + 58, NULLIF ( + + 25, 75 + + COALESCE ( + 32, 67, 1 * + + COUNT ( * ) * + 32 * + 63 / - + MIN ( + 71 ) / - - 4 * + 15 ) ) ) * + 12 + + + 10
----
762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4050
SELECT ALL - COUNT( * ) AS col1, - 58 + + - CAST( - 17 AS SIGNED )
----
-1
-41

skipif mysql # not compatible
query II rowsort label-4050
SELECT ALL - COUNT ( * ) AS col1, - 58 + + - CAST ( - 17 AS INTEGER )
----
-1
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT + COUNT( * ) + 29 * 0 + + + 94 + - + 68 - - 33 + - ( + 82 )
----
-22

skipif mysql # not compatible
query I rowsort label-4051
SELECT + COUNT ( * ) + 29 * 0 + + + 94 + - + 68 - - 33 + - ( + 82 )
----
-22

query I rowsort
SELECT ALL + 42 + - 57 AS col0
----
-15

query I rowsort
SELECT ALL - 84 + - 92
----
-176

query II rowsort
SELECT ALL 70, + 60 * 35 col0
----
70
2100

query I rowsort
SELECT DISTINCT - NULLIF ( 30, + - 84 ) * - 30 * 62 + + + 32
----
55832

query I rowsort
SELECT ALL + ( 72 ) + 64
----
136

query II rowsort
SELECT + 93 AS col2, 92 + 44 AS col1
----
93
136

query I rowsort
SELECT 84 + + - 74
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4059
SELECT 27 - - COALESCE ( 76, + COUNT( * ), + 93 * CAST( NULL AS SIGNED ) + - 51 * + 94 ) + ( + 11 )
----
114

skipif mysql # not compatible
query I rowsort label-4059
SELECT 27 - - COALESCE ( 76, + COUNT ( * ), + 93 * CAST ( NULL AS INTEGER ) + - 51 * + 94 ) + ( + 11 )
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4060
SELECT DISTINCT 37 col1, + 57 - + 16 * COALESCE ( - - 52, + CAST( - 10 AS SIGNED ), + 37 ) AS col0
----
37
-775

skipif mysql # not compatible
query II rowsort label-4060
SELECT DISTINCT 37 col1, + 57 - + 16 * COALESCE ( - - 52, + CAST ( - 10 AS INTEGER ), + 37 ) AS col0
----
37
-775

query I rowsort
SELECT + 62 + + + 53 col1
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-4062
SELECT + NULLIF ( 72, 79 + - 61 ) DIV CASE - ( - 38 ) WHEN + 35 + 92 * - 98 THEN NULL WHEN - + 95 + 31 THEN NULL ELSE - 61 END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4062
SELECT + NULLIF ( 72, 79 + - 61 ) / CASE - ( - 38 ) WHEN + 35 + 92 * - 98 THEN NULL WHEN - + 95 + 31 THEN NULL ELSE - 61 END AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT + CAST( NULL AS SIGNED ) * + + 60 + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT + CAST ( NULL AS INTEGER ) * + + 60 + + 58
----
NULL

query I rowsort
SELECT ALL NULLIF ( + + 51, + 77 ) AS col0
----
51

query I rowsort
SELECT 76 + - - 41 * + 93 col2
----
3889

onlyif mysql # aggregate syntax: 
query II rowsort label-4066
SELECT ALL MIN( + - ( - 23 ) ) AS col1, COUNT( * ) * - ( + 79 )
----
23
-79

skipif mysql # not compatible
query II rowsort label-4066
SELECT ALL MIN ( + - ( - 23 ) ) AS col1, COUNT ( * ) * - ( + 79 )
----
23
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4067
SELECT 89 + 56 + - + 55 + COUNT( * ) * + 87, - COUNT( * ) col1
----
177
-1

skipif mysql # not compatible
query II rowsort label-4067
SELECT 89 + 56 + - + 55 + COUNT ( * ) * + 87, - COUNT ( * ) col1
----
177
-1

query I rowsort
SELECT 92 * + 78
----
7176

query I rowsort
SELECT 99 + 8 + + - 35
----
72

query I rowsort
SELECT ALL + 14 * + - 98 * 71
----
-97412

query II rowsort
SELECT 8 + 40 AS col0, 93
----
48
93

query I rowsort
SELECT 18 + - 89 * + + ( 88 )
----
-7814

query I rowsort
SELECT COALESCE ( + + 18, - - 88 )
----
18

query II rowsort
SELECT ALL + COALESCE ( 36, - 40 ) * + 3 * + - 50 AS col2, 33 AS col1
----
-5400
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4075
SELECT - 62 + - COUNT( * ) DIV + - CAST( - 83 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-4075
SELECT - 62 + - COUNT ( * ) / + - CAST ( - 83 AS INTEGER )
----
-62

query I rowsort
SELECT - 32 * + 86 AS col1
----
-2752

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT - 99 * - NULLIF ( COUNT( * ), - 83 * - - 75 + - - 62 ) + - - COUNT( COALESCE ( 27, - 57 ) ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-4077
SELECT - 99 * - NULLIF ( COUNT ( * ), - 83 * - - 75 + - - 62 ) + - - COUNT ( COALESCE ( 27, - 57 ) ) AS col0
----
100

query I rowsort
SELECT ALL + 69 * - - 97 * + 3 + - 87 AS col0
----
19992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT DISTINCT 48 * - 30 * - - ( + ( + CASE + 83 WHEN - CAST( + ( + + 81 ) AS SIGNED ) / COALESCE ( + - CAST( NULL AS SIGNED ), ( 93 ) + - 8 * - 70 ) / 59 * - 97 + + - 44 THEN NULL WHEN - 45 THEN NULL WHEN - 55 THEN 37 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT 48 * - 30 * - - ( + ( + CASE + 83 WHEN - CAST ( + ( + + 81 ) AS INTEGER ) / COALESCE ( + - CAST ( NULL AS INTEGER ), ( 93 ) + - 8 * - 70 ) / 59 * - 97 + + - 44 THEN NULL WHEN - 45 THEN NULL WHEN - 55 THEN 37 END ) )
----
NULL

query I rowsort
SELECT - - 48 * 77
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT ALL + COUNT( * ) * 86 + - + 16 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL + COUNT ( * ) * 86 + - + 16 AS col2
----
70

query II rowsort
SELECT - 17 + 94 AS col2, - 5
----
77
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4083
SELECT + CASE + 62 WHEN - 77 THEN + + CAST( NULL AS SIGNED ) WHEN 4 THEN - + 44 / - - 88 END AS col0, + 55 AS col2
----
NULL
55

skipif mysql # not compatible
query II rowsort label-4083
SELECT + CASE + 62 WHEN - 77 THEN + + CAST ( NULL AS INTEGER ) WHEN 4 THEN - + 44 / - - 88 END AS col0, + 55 AS col2
----
NULL
55

query I rowsort
SELECT + 0 * - + 3
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4085
SELECT DISTINCT COUNT( * ) * - 21 / 88 / CASE + 44 WHEN + 42 * - + 66 + - CASE + 72 WHEN + SUM( - 67 ) + - 25 + ( + - ( - NULLIF ( 49, + - CAST( 23 AS SIGNED ) * - + 11 + + + ( - + COUNT( * ) ) - - 77 ) ) ) THEN - + 7 * - ( - - 61 ) + + - COALESCE ( - COUNT( * ), + 63, + ( - + 26 ) + + 78 ) + COUNT( * ) ELSE NULL END + - ( NULLIF ( + 97, - ( - + 62 ) - 37 * + 41 ) ) THEN - - 53 END + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT COUNT ( * ) * - 21 / 88 / CASE + 44 WHEN + 42 * - + 66 + - CASE + 72 WHEN + SUM ( - 67 ) + - 25 + ( + - ( - NULLIF ( 49, + - CAST ( 23 AS INTEGER ) * - + 11 + + + ( - + COUNT ( * ) ) - - 77 ) ) ) THEN - + 7 * - ( - - 61 ) + + - COALESCE ( - COUNT ( * ), + 63, + ( - + 26 ) + + 78 ) + COUNT ( * ) ELSE NULL END + - ( NULLIF ( + 97, - ( - + 62 ) - 37 * + 41 ) ) THEN - - 53 END + - 66
----
NULL

query I rowsort
SELECT ALL 88 + + 70 + 5
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT ALL + 2 * - CAST( - 68 AS SIGNED )
----
136

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL + 2 * - CAST ( - 68 AS INTEGER )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT + - CASE 63 WHEN 22 * - CASE + 17 WHEN 70 * - 95 + + 35 + COUNT( * ) THEN NULL WHEN + 84 THEN + 56 * 25 * + - 56 - - - COUNT( * ) ELSE 27 + 31 END * + ( + 31 ) THEN NULL WHEN - COUNT( * ) THEN - MIN( DISTINCT + 21 ) - + COUNT( * ) * + 79 WHEN - SUM( ALL + - 77 ) THEN 14 + - + 19 + - COUNT( * ) ELSE NULL END + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT + - CASE 63 WHEN 22 * - CASE + 17 WHEN 70 * - 95 + + 35 + COUNT ( * ) THEN NULL WHEN + 84 THEN + 56 * 25 * + - 56 - - - COUNT ( * ) ELSE 27 + 31 END * + ( + 31 ) THEN NULL WHEN - COUNT ( * ) THEN - MIN ( DISTINCT + 21 ) - + COUNT ( * ) * + 79 WHEN - SUM ( ALL + - 77 ) THEN 14 + - + 19 + - COUNT ( * ) ELSE NULL END + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT ALL CASE + 13 WHEN + COUNT( * ) * - 54 * - 99 THEN - AVG ( - 7 ) * + - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL CASE + 13 WHEN + COUNT ( * ) * - 54 * - 99 THEN - AVG ( - 7 ) * + - COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT ALL - CASE + + 19 WHEN - - 70 + 93 * + 8 * 59 THEN NULL WHEN 79 THEN + ( + SUM( ALL 85 ) ) WHEN - 85 THEN - 34 END - 41 + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL - CASE + + 19 WHEN - - 70 + 93 * + 8 * 59 THEN NULL WHEN 79 THEN + ( + SUM ( ALL 85 ) ) WHEN - 85 THEN - 34 END - 41 + - 92
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4091
SELECT - + COUNT( - + NULLIF ( - 82, - CAST( + 21 AS SIGNED ) - + 41 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4091
SELECT - + COUNT ( - + NULLIF ( - 82, - CAST ( + 21 AS INTEGER ) - + 41 ) ) AS col1
----
-1

query I rowsort
SELECT + + 72 - 56 * + 99
----
-5472

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT + 16 + COUNT( * ) + - 13 col2
----
4

skipif mysql # not compatible
query I rowsort label-4093
SELECT + 16 + COUNT ( * ) + - 13 col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4094
SELECT + COUNT( DISTINCT + 21 ) * + 22 DIV - 93 * COUNT( - 89 )
----
0

skipif mysql # not compatible
query I rowsort label-4094
SELECT + COUNT ( DISTINCT + 21 ) * + 22 / - 93 * COUNT ( - 89 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT - CAST( NULL AS SIGNED ) + + NULLIF ( + - 92, + 86 ) * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT - CAST ( NULL AS INTEGER ) + + NULLIF ( + - 92, + 86 ) * 83
----
NULL

query I rowsort
SELECT DISTINCT ( 50 ) * + 94 AS col1
----
4700

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4097
SELECT + CAST( - 65 AS SIGNED ) DIV - ( - 51 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4097
SELECT + CAST ( - 65 AS INTEGER ) / - ( - 51 ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4098
SELECT ALL 4 * CAST( - ( COUNT( * ) ) AS SIGNED ) * - CAST( NULL AS SIGNED ) + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL 4 * CAST ( - ( COUNT ( * ) ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL COALESCE ( - 43, + COUNT( * ), - 64 * + 13 + - 20 )
----
-43

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL COALESCE ( - 43, + COUNT ( * ), - 64 * + 13 + - 20 )
----
-43

query I rowsort
SELECT DISTINCT CASE - 12 WHEN + 48 THEN + 63 + - 47 END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT DISTINCT 57 * CAST( + + 41 AS SIGNED ) * 7 AS col0
----
16359

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT 57 * CAST ( + + 41 AS INTEGER ) * 7 AS col0
----
16359

query I rowsort
SELECT - ( - COALESCE ( + 33, + - 58 ) )
----
33

query II rowsort
SELECT - 44 * + - 28 * + - 41 col0, ( - 19 ) AS col2
----
-50512
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT ALL SUM( ALL - - 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL SUM ( ALL - - 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT - 8 * - + COUNT( * ) col2
----
8

skipif mysql # not compatible
query I rowsort label-4105
SELECT - 8 * - + COUNT ( * ) col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4106
SELECT ALL - 90 DIV 75 + + - 91 * 23 col1
----
-2094

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL - 90 / 75 + + - 91 * 23 col1
----
-2094

query I rowsort
SELECT - 57 * - 76 - 17 + - 46
----
4269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4108
SELECT DISTINCT - 57 / + - 14 * - + 65 * + COUNT( * ) + + + 85 / CAST( NULL AS SIGNED ) + + + 43 + + SUM( - 77 ), 68 + + 74 + COUNT( * ) AS col0
----
NULL
143

skipif mysql # not compatible
query II rowsort label-4108
SELECT DISTINCT - 57 / + - 14 * - + 65 * + COUNT ( * ) + + + 85 / CAST ( NULL AS INTEGER ) + + + 43 + + SUM ( - 77 ), 68 + + 74 + COUNT ( * ) AS col0
----
NULL
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT ALL + CAST( NULL AS SIGNED ) / + + 88 + - 63 * + COALESCE ( - 83, - ( - 52 ), - + 37 * CAST( - 62 AS SIGNED ), - 55 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL + CAST ( NULL AS INTEGER ) / + + 88 + - 63 * + COALESCE ( - 83, - ( - 52 ), - + 37 * CAST ( - 62 AS INTEGER ), - 55 ) AS col0
----
NULL

query II rowsort
SELECT + 35 AS col2, - 71
----
35
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-4111
SELECT + COUNT( * ) AS col0, + 36 - 40
----
1
-4

skipif mysql # not compatible
query II rowsort label-4111
SELECT + COUNT ( * ) AS col0, + 36 - 40
----
1
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT - COUNT( * ) + 78
----
77

skipif mysql # not compatible
query I rowsort label-4112
SELECT - COUNT ( * ) + 78
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4113
SELECT - 75 * + 15 * + 20 - - + COUNT( * ) + + 44 * - 61 * COALESCE ( + - 48, + CAST( NULL AS SIGNED ), - 4 )
----
106333

skipif mysql # not compatible
query I rowsort label-4113
SELECT - 75 * + 15 * + 20 - - + COUNT ( * ) + + 44 * - 61 * COALESCE ( + - 48, + CAST ( NULL AS INTEGER ), - 4 )
----
106333

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT MIN( - 89 ) * - COUNT( * ) + + 46
----
135

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT MIN ( - 89 ) * - COUNT ( * ) + + 46
----
135

query I rowsort
SELECT ALL 99 * 55 + - 59 + 96 AS col0
----
5482

onlyif mysql # aggregate syntax: 
query II rowsort label-4116
SELECT ALL + 8 AS col0, 11 * + ( + - 58 ) * COUNT( * ) + + 50
----
8
-588

skipif mysql # not compatible
query II rowsort label-4116
SELECT ALL + 8 AS col0, 11 * + ( + - 58 ) * COUNT ( * ) + + 50
----
8
-588

query I rowsort
SELECT ALL - 47 * + ( + - 80 ) - + NULLIF ( 11, 85 )
----
3749

onlyif mysql # DIV for integer division: 
query I rowsort label-4118
SELECT ALL - + 86 DIV 32 * + 31 * + - 31 AS col1
----
1922

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL - + 86 / 32 * + 31 * + - 31 AS col1
----
1922

query I rowsort
SELECT - + 87 + - 29 + + 79 AS col1
----
-37

query I rowsort
SELECT DISTINCT + - ( 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT + 23 * - SUM( + 91 ) + + COUNT( * ) + - COUNT( + 23 ) * + 12 + + 90 * - + 52 + 15 AS col1
----
-6769

skipif mysql # not compatible
query I rowsort label-4121
SELECT + 23 * - SUM ( + 91 ) + + COUNT ( * ) + - COUNT ( + 23 ) * + 12 + + 90 * - + 52 + 15 AS col1
----
-6769

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT - - MAX( DISTINCT - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-4122
SELECT - - MAX ( DISTINCT - 48 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4123
SELECT - CAST( NULL AS SIGNED ) + + MIN( DISTINCT + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT - CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT + 15 )
----
NULL

query I rowsort
SELECT 21 * 95 + 14
----
2009

query I rowsort
SELECT - 44 * - 31 AS col2
----
1364

query I rowsort
SELECT - CASE ( + 49 ) WHEN 60 * - ( - 36 ) + + - 92 THEN NULL ELSE + + 99 END * 95
----
-9405

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL CASE 84 WHEN - + MIN( - ( 0 ) ) + + 72 THEN - 98 * - 3 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL CASE 84 WHEN - + MIN ( - ( 0 ) ) + + 72 THEN - 98 * - 3 END AS col2
----
NULL

query II rowsort
SELECT ALL 73 AS col0, - 9 * - 22 col2
----
73
198

query I rowsort
SELECT + 92 * + + 43 * + 24 AS col2
----
94944

query I rowsort
SELECT 89 + 35 AS col1
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4131
SELECT COUNT( * ) - - 0 DIV + 17 + + + 45 + 50 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4131
SELECT COUNT ( * ) - - 0 / + 17 + + + 45 + 50 AS col0
----
96

query I rowsort
SELECT 98 + + COALESCE ( - + NULLIF ( 62, + 34 + 11 ), + 10 ) * + 10 AS col0
----
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL NULLIF ( 54, 41 ) + + 56 * 83 * - CASE - 48 WHEN + SUM( + ( + - 96 ) ) THEN + 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL NULLIF ( 54, 41 ) + + 56 * 83 * - CASE - 48 WHEN + SUM ( + ( + - 96 ) ) THEN + 76 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT COUNT( * ) + 27 * - - 41 AS col0
----
1108

skipif mysql # not compatible
query I rowsort label-4134
SELECT COUNT ( * ) + 27 * - - 41 AS col0
----
1108

query I rowsort
SELECT ALL 15 + + + 18 * + 49 AS col1
----
897

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT DISTINCT MIN( 25 ) + - 28
----
-3

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT MIN ( 25 ) + - 28
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT DISTINCT 38 * - 84 col1, 18 - + + COUNT( * ) - 86 col1
----
-3192
-69

skipif mysql # not compatible
query II rowsort label-4137
SELECT DISTINCT 38 * - 84 col1, 18 - + + COUNT ( * ) - 86 col1
----
-3192
-69

query I rowsort
SELECT ALL ( + 22 ) + + - 83
----
-61

query I rowsort
SELECT ALL - 25 + + + 55 AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4140
SELECT CAST( + 66 AS SIGNED ) + + 40 + - 60 + 71 + - COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-4140
SELECT CAST ( + 66 AS INTEGER ) + + 40 + - 60 + 71 + - COUNT ( * )
----
116

query I rowsort
SELECT 58 + 63 AS col1
----
121

query II rowsort
SELECT 68 + - 54 AS col1, - NULLIF ( 88, ( - + 20 ) ) * - + 81 AS col1
----
14
7128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4143
SELECT COUNT( * ) * + 14 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-4143
SELECT COUNT ( * ) * + 14 / - 86
----
0

query I rowsort
SELECT ALL + + 59 - 89
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-4145
SELECT ALL - + ( - + 66 ) AS col2, + SUM( DISTINCT - 97 ) + + COUNT( * )
----
66
-96

skipif mysql # not compatible
query II rowsort label-4145
SELECT ALL - + ( - + 66 ) AS col2, + SUM ( DISTINCT - 97 ) + + COUNT ( * )
----
66
-96

query I rowsort
SELECT DISTINCT 91 - + 47 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL - + ( - 43 ) * + + 5 * + 31 + + - NULLIF ( - COUNT( * ), - - 46 ) * + - 6 AS col2
----
6659

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL - + ( - 43 ) * + + 5 * + 31 + + - NULLIF ( - COUNT ( * ), - - 46 ) * + - 6 AS col2
----
6659

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT ALL ( - 27 ) - - 51 * + COUNT( * ) + + COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL ( - 27 ) - - 51 * + COUNT ( * ) + + COUNT ( * ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT DISTINCT - MAX( - - 5 ) * 56
----
-280

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT - MAX ( - - 5 ) * 56
----
-280

query II rowsort
SELECT - 76 * 21, + 50 AS col0
----
-1596
50

query I rowsort
SELECT + ( - + 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT DISTINCT - - 42 * - - MIN( - - 89 ) + + 15
----
3753

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT - - 42 * - - MIN ( - - 89 ) + + 15
----
3753

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT CASE - 29 WHEN 70 * - ( + + ( - ( + + ( + MAX( DISTINCT - NULLIF ( - 46, + - 76 * 43 + + 29 ) ) ) ) ) ) * 81 THEN - + 4 * - - AVG ( ALL 88 ) + + 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT CASE - 29 WHEN 70 * - ( + + ( - ( + + ( + MAX ( DISTINCT - NULLIF ( - 46, + - 76 * 43 + + 29 ) ) ) ) ) ) * 81 THEN - + 4 * - - AVG ( ALL 88 ) + + 29 END
----
NULL

query I rowsort
SELECT + 42 * + - 15 * - 40 * 91 + + 42
----
2293242

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4155
SELECT ALL - 58 * - + 16 * MAX( ALL - 37 ) col2, + COUNT( * ) DIV + 1 AS col0
----
-34336
1

skipif mysql # not compatible
query II rowsort label-4155
SELECT ALL - 58 * - + 16 * MAX ( ALL - 37 ) col2, + COUNT ( * ) / + 1 AS col0
----
-34336
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT - 65 + - COUNT( * ) * - CASE - 97 WHEN 31 THEN - - 8 ELSE + + ( + - COUNT( DISTINCT NULLIF ( + 43, ( 85 ) ) ) ) + 97 END
----
31

skipif mysql # not compatible
query I rowsort label-4156
SELECT - 65 + - COUNT ( * ) * - CASE - 97 WHEN 31 THEN - - 8 ELSE + + ( + - COUNT ( DISTINCT NULLIF ( + 43, ( 85 ) ) ) ) + 97 END
----
31

query I rowsort
SELECT 51 * + NULLIF ( + - 42, ( 20 ) ) - 37 AS col1
----
-2179

query I rowsort
SELECT DISTINCT + 87 * + 67 * + 50
----
291450

onlyif mysql # DIV for integer division: 
query I rowsort label-4159
SELECT 98 DIV - ( + 72 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4159
SELECT 98 / - ( + 72 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4160
SELECT ALL 55 AS col1, + COUNT( * ) AS col1
----
55
1

skipif mysql # not compatible
query II rowsort label-4160
SELECT ALL 55 AS col1, + COUNT ( * ) AS col1
----
55
1

query I rowsort
SELECT DISTINCT 62 * - + 88
----
-5456

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT DISTINCT - COUNT( * ) + - - 82 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT - COUNT ( * ) + - - 82 AS col2
----
81

query I rowsort
SELECT ALL 97 + + + 23 AS col0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT 33 * COALESCE ( + 34, - - 13 ) DIV + 46
----
24

skipif mysql # not compatible
query I rowsort label-4164
SELECT 33 * COALESCE ( + 34, - - 13 ) / + 46
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT ALL SUM( ALL - 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL SUM ( ALL - 84 ) AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4166
SELECT ALL 91 + - CAST( NULL AS SIGNED ) * 13 - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL 91 + - CAST ( NULL AS INTEGER ) * 13 - 17
----
NULL

query II rowsort
SELECT - 22 AS col0, - 33
----
-22
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT 23 * - COUNT( * ) * - 41 * + - 74
----
-69782

skipif mysql # not compatible
query I rowsort label-4168
SELECT 23 * - COUNT ( * ) * - 41 * + - 74
----
-69782

query I rowsort
SELECT 59 * + 36
----
2124

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT DISTINCT 96 + + - COUNT( ALL - 13 )
----
95

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT 96 + + - COUNT ( ALL - 13 )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4171
SELECT ALL 55 - ( 43 ) DIV - 35 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL 55 - ( 43 ) / - 35 AS col0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4172
SELECT 52 AS col1, - 48 + - - COUNT( * ) + NULLIF ( 48, 52 + - + AVG ( + 12 ) ) * + - 26
----
52
-1295

skipif mysql # not compatible
query II rowsort label-4172
SELECT 52 AS col1, - 48 + - - COUNT ( * ) + NULLIF ( 48, 52 + - + AVG ( + 12 ) ) * + - 26
----
52
-1295

query I rowsort
SELECT 48 * + 16 AS col2
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT DISTINCT 48 * + COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT 48 * + COUNT ( * ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT DISTINCT + 77 * + COUNT( * ) - COUNT( * ) * - 78
----
155

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT + 77 * + COUNT ( * ) - COUNT ( * ) * - 78
----
155

query I rowsort
SELECT ALL 83 * 50 AS col2
----
4150

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT MIN( DISTINCT 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4177
SELECT MIN ( DISTINCT 18 ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT COUNT( DISTINCT 19 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4178
SELECT COUNT ( DISTINCT 19 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT COUNT( * ) * 77 + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4179
SELECT COUNT ( * ) * 77 + COUNT ( * )
----
78

query I rowsort
SELECT ALL 89 * + 16
----
1424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4181
SELECT + MIN( DISTINCT + 56 ) DIV 35 + 3 * - CASE 51 + - MAX( DISTINCT - 3 ) WHEN 16 * MIN( 22 * + ( - 21 ) ) THEN NULL ELSE - 87 END AS col2
----
262

skipif mysql # not compatible
query I rowsort label-4181
SELECT + MIN ( DISTINCT + 56 ) / 35 + 3 * - CASE 51 + - MAX ( DISTINCT - 3 ) WHEN 16 * MIN ( 22 * + ( - 21 ) ) THEN NULL ELSE - 87 END AS col2
----
262

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT SUM( DISTINCT 81 ) * + 96 col0
----
7776

skipif mysql # not compatible
query I rowsort label-4182
SELECT SUM ( DISTINCT 81 ) * + 96 col0
----
7776

query I rowsort
SELECT 67 + - 84 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT 68 / - CASE 10 WHEN 20 * + 8 THEN NULL WHEN 52 THEN - 45 * + ( - NULLIF ( + 72, - MIN( + 86 ) ) * - COALESCE ( 50 / - MAX( ALL 66 ), 45 * + CASE 17 WHEN + 81 / + 25 + 57 THEN 67 + 11 WHEN + 1 THEN NULL ELSE - 53 END ) ) END - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT 68 / - CASE 10 WHEN 20 * + 8 THEN NULL WHEN 52 THEN - 45 * + ( - NULLIF ( + 72, - MIN ( + 86 ) ) * - COALESCE ( 50 / - MAX ( ALL 66 ), 45 * + CASE 17 WHEN + 81 / + 25 + 57 THEN 67 + 11 WHEN + 1 THEN NULL ELSE - 53 END ) ) END - + 50
----
NULL

query I rowsort
SELECT 12 * 67
----
804

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4186
SELECT ( - COUNT( * ) ) DIV - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4186
SELECT ( - COUNT ( * ) ) / - COUNT ( * )
----
1

query I rowsort
SELECT 99 * 73 AS col0
----
7227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4188
SELECT 2 + CAST( ( COUNT( * ) ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-4188
SELECT 2 + CAST ( ( COUNT ( * ) ) AS INTEGER )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT ALL 75 + 76 DIV 25
----
78

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL 75 + 76 / 25
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT + SUM( DISTINCT COALESCE ( 27, - 83 ) ) + 20 * 88 AS col2
----
1787

skipif mysql # not compatible
query I rowsort label-4190
SELECT + SUM ( DISTINCT COALESCE ( 27, - 83 ) ) + 20 * 88 AS col2
----
1787

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT DISTINCT + NULLIF ( + 79, COUNT( + 53 ) / + SUM( + 91 + + 53 ) ) + 36 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT + NULLIF ( + 79, COUNT ( + 53 ) / + SUM ( + 91 + + 53 ) ) + 36 AS col1
----
115

query I rowsort
SELECT - 39 * - 12 AS col0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT COUNT( DISTINCT 37 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT COUNT ( DISTINCT 37 ) AS col2
----
1

query I rowsort
SELECT ALL - 97 + + 82 AS col2
----
-15

query I rowsort
SELECT - 27 - - 51
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT 33 + + COUNT( * ) col1
----
34

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT 33 + + COUNT ( * ) col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL SUM( DISTINCT - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL SUM ( DISTINCT - 29 )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4198
SELECT - 3 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-4198
SELECT - 3 / - 79
----
0

query I rowsort
SELECT DISTINCT + 25 + 67 * 69
----
4648

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT DISTINCT SUM( 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT SUM ( 45 ) AS col2
----
45

query I rowsort
SELECT - 50 * 17
----
-850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4202
SELECT ALL + COALESCE ( ( CASE - ( 4 ) WHEN 88 * + 68 THEN COUNT( * ) + + 4 ELSE COUNT( * ) END ), + 80 ) DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL + COALESCE ( ( CASE - ( 4 ) WHEN 88 * + 68 THEN COUNT ( * ) + + 4 ELSE COUNT ( * ) END ), + 80 ) / 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - SUM( DISTINCT - 79 ) - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4203
SELECT - SUM ( DISTINCT - 79 ) - COUNT ( * )
----
78

query I rowsort
SELECT + 49 - 84 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT ALL - 62 - + CASE 2 WHEN COUNT( * ) THEN NULL ELSE - COUNT( * ) END
----
-61

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - 62 - + CASE 2 WHEN COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END
----
-61

query I rowsort
SELECT ALL + 7 * - 21
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT - SUM( 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-4207
SELECT - SUM ( 60 )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4208
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) - 36
----
NULL

query I rowsort
SELECT DISTINCT CASE WHEN NOT 29 NOT BETWEEN + 29 AND ( NULL ) THEN 53 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL - 62 * - COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL - 62 * - COUNT ( * ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT ALL COALESCE ( 21, NULLIF ( COUNT( * ), 87 / + 63 + 56 ) * + COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL COALESCE ( 21, NULLIF ( COUNT ( * ), 87 / + 63 + 56 ) * + COUNT ( * ) )
----
21

query I rowsort
SELECT + - 74 + 8 AS col1
----
-66

query I rowsort
SELECT + + 58 * - 26
----
-1508

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT + - COUNT( 63 ) + + 4
----
3

skipif mysql # not compatible
query I rowsort label-4214
SELECT + - COUNT ( 63 ) + + 4
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4215
SELECT - 8 * - CAST( NULL AS SIGNED ) + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT - 8 * - CAST ( NULL AS INTEGER ) + 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT - 97 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT - 97 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 67 * + 86 AS col2
----
5762

query I rowsort
SELECT NULLIF ( + ( 91 ), 39 - + 1 * 10 ) * 40 + - 88
----
3552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4219
SELECT DISTINCT + SUM( DISTINCT - CAST( + 9 AS SIGNED ) ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT + SUM ( DISTINCT - CAST ( + 9 AS INTEGER ) ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL + MIN( - 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL + MIN ( - 6 ) AS col2
----
-6

query I rowsort
SELECT ALL + + 3 * + 41 + + 59 AS col1
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-4222
SELECT + - 31 + 38 DIV 15 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-4222
SELECT + - 31 + 38 / 15 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT - - ( + 29 ) * - 77 + + SUM( DISTINCT + 81 ) AS col1
----
-2152

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT - - ( + 29 ) * - 77 + + SUM ( DISTINCT + 81 ) AS col1
----
-2152

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ALL + COALESCE ( + COALESCE ( - 22, 90 * - 54 + 23 ), 23, + MAX( DISTINCT + 33 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL + COALESCE ( + COALESCE ( - 22, 90 * - 54 + 23 ), 23, + MAX ( DISTINCT + 33 ) )
----
-22

query I rowsort
SELECT ( NULLIF ( 91, - 32 + + 90 ) ) AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4226
SELECT ALL 95 * 33 + 67 DIV + NULLIF ( 44, - 78 )
----
3136

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL 95 * 33 + 67 / + NULLIF ( 44, - 78 )
----
3136

onlyif mysql # DIV for integer division: 
query I rowsort label-4227
SELECT + 0 + - 7 DIV 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4227
SELECT + 0 + - 7 / 42 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT + + 12 - + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4228
SELECT + + 12 - + COUNT ( * ) AS col2
----
11

query I rowsort
SELECT + 13 * - 75
----
-975

query I rowsort
SELECT 90 * 42 + 5 * + 82
----
4190

query I rowsort
SELECT COALESCE ( + 40, + 37 )
----
40

query I rowsort
SELECT + 3 + + - 30 * 35 AS col0
----
-1047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4233
SELECT ALL + 38 * - COUNT( * ) * + CASE 69 * 56 WHEN CAST( NULL AS SIGNED ) / - COUNT( * ) THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL + 38 * - COUNT ( * ) * + CASE 69 * 56 WHEN CAST ( NULL AS INTEGER ) / - COUNT ( * ) THEN COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT ALL SUM( DISTINCT - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL SUM ( DISTINCT - 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT - COUNT( * ) * + - 35 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4235
SELECT - COUNT ( * ) * + - 35 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + COUNT( * ) * - - 17 + + 35
----
52

skipif mysql # not compatible
query I rowsort label-4236
SELECT + COUNT ( * ) * - - 17 + + 35
----
52

query I rowsort
SELECT - 8 - - 50
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL NULLIF ( + + ( COUNT( * ) ), - AVG ( DISTINCT 83 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL NULLIF ( + + ( COUNT ( * ) ), - AVG ( DISTINCT 83 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT DISTINCT CASE - COALESCE ( + 86, + 38 + ( 12 ), - COUNT( + NULLIF ( 8, 50 ) ) + - COUNT( * ) ) WHEN - 66 + MIN( + 39 - 16 ) THEN 37 WHEN + 96 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4239
SELECT DISTINCT CASE - COALESCE ( + 86, + 38 + ( 12 ), - COUNT ( + NULLIF ( 8, 50 ) ) + - COUNT ( * ) ) WHEN - 66 + MIN ( + 39 - 16 ) THEN 37 WHEN + 96 THEN NULL ELSE NULL END col2
----
NULL

query I rowsort
SELECT DISTINCT ( 83 ) * 70 col2
----
5810

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT - SUM( NULLIF ( 99, + 40 * 14 ) ) * - MAX( - 92 )
----
-9108

skipif mysql # not compatible
query I rowsort label-4241
SELECT - SUM ( NULLIF ( 99, + 40 * 14 ) ) * - MAX ( - 92 )
----
-9108

query I rowsort
SELECT DISTINCT ( - 56 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT ALL + 76 / + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL + 76 / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT + 45 - + 1 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT + 45 - + 1 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4245
SELECT - 15 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-4245
SELECT - 15 / - 54
----
0

query I rowsort
SELECT - 59 - 88 + + 64
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL - COUNT( + 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL - COUNT ( + 76 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4248
SELECT - 72 * 72 - 4 DIV CASE - COUNT( * ) WHEN 79 THEN NULL WHEN CASE - 1 WHEN COUNT( * ) THEN - 66 END * 72 + 76 THEN COUNT( DISTINCT + 91 ) ELSE 48 + - 33 DIV + 56 END
----
-5184

skipif mysql # not compatible
query I rowsort label-4248
SELECT - 72 * 72 - 4 / CASE - COUNT ( * ) WHEN 79 THEN NULL WHEN CASE - 1 WHEN COUNT ( * ) THEN - 66 END * 72 + 76 THEN COUNT ( DISTINCT + 91 ) ELSE 48 + - 33 / + 56 END
----
-5184

query I rowsort
SELECT DISTINCT - + 35 + - 16
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4250
SELECT DISTINCT - + 18 DIV + + COUNT( * ) + 0 col2
----
-18

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT - + 18 / + + COUNT ( * ) + 0 col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4251
SELECT ALL + ( + + 50 ) DIV 72 + + 53 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL + ( + + 50 ) / 72 + + 53 AS col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4252
SELECT + 77 DIV 20 - + 78 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-4252
SELECT + 77 / 20 - + 78 AS col2
----
-75

query I rowsort
SELECT DISTINCT + - 6 * - 28 AS col2
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-4254
SELECT DISTINCT + 82 DIV + - 6 + + COALESCE ( - 33, 96 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT + 82 / + - 6 + + COALESCE ( - 33, 96 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT - 32 + MAX( 73 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT - 32 + MAX ( 73 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT MIN( ALL - + 71 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4256
SELECT MIN ( ALL - + 71 ) AS col1
----
-71

query I rowsort
SELECT + 85 * + - 5 + + 0 * 67
----
-425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4258
SELECT COALESCE ( - 62, - 20, + 78 * 79 + + CAST( NULL AS SIGNED ) ) col0
----
-62

skipif mysql # not compatible
query I rowsort label-4258
SELECT COALESCE ( - 62, - 20, + 78 * 79 + + CAST ( NULL AS INTEGER ) ) col0
----
-62

query I rowsort
SELECT 5 + + 12 * + 12
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT - 89 * 69 * + 39 - MIN( DISTINCT 74 - - 93 / + 56 ) / + CASE + 75 + - COUNT( * ) WHEN + 34 + COUNT( * ) * - 75 THEN - 72 * - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT - 89 * 69 * + 39 - MIN ( DISTINCT 74 - - 93 / + 56 ) / + CASE + 75 + - COUNT ( * ) WHEN + 34 + COUNT ( * ) * - 75 THEN - 72 * - COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 51 + 17 col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL SUM( DISTINCT + - 28 ) + - 25 col2
----
-53

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL SUM ( DISTINCT + - 28 ) + - 25 col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT ALL - COUNT( 24 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL - COUNT ( 24 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 97 - 44
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4265
SELECT ALL CAST( + 62 AS SIGNED ) * - 0 + - 11 * 96 AS col1
----
-1056

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL CAST ( + 62 AS INTEGER ) * - 0 + - 11 * 96 AS col1
----
-1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4266
SELECT ALL COUNT( * ) - COUNT( * ) DIV - MIN( DISTINCT + 87 ) + 36
----
37

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL COUNT ( * ) - COUNT ( * ) / - MIN ( DISTINCT + 87 ) + 36
----
37

query I rowsort
SELECT DISTINCT 3 * + ( 94 ) AS col0
----
282

onlyif mysql # DIV for integer division: 
query I rowsort label-4268
SELECT 26 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-4268
SELECT 26 / 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT 62 * MAX( - 9 ) * - 80 col0
----
44640

skipif mysql # not compatible
query I rowsort label-4269
SELECT 62 * MAX ( - 9 ) * - 80 col0
----
44640

onlyif mysql # DIV for integer division: 
query I rowsort label-4270
SELECT 52 DIV - - 21 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4270
SELECT 52 / - - 21 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4271
SELECT 58 + + 52 + - + 13 + 96 DIV ( + ( + 97 ) ) * COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-4271
SELECT 58 + + 52 + - + 13 + 96 / ( + ( + 97 ) ) * COUNT ( * )
----
97

query I rowsort
SELECT ( + 44 ) * + + 27 * 66 + + ( - ( COALESCE ( - 27, - 83 ) ) + + 77 ) col2
----
78512

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4273
SELECT ALL 77, CAST( + - 78 AS SIGNED ) col1
----
77
-78

skipif mysql # not compatible
query II rowsort label-4273
SELECT ALL 77, CAST ( + - 78 AS INTEGER ) col1
----
77
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-4274
SELECT ALL 31, - 43 + - 73 * - COUNT( * ) AS col1
----
31
30

skipif mysql # not compatible
query II rowsort label-4274
SELECT ALL 31, - 43 + - 73 * - COUNT ( * ) AS col1
----
31
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT 48 + SUM( 13 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4275
SELECT 48 + SUM ( 13 ) AS col1
----
61

query II rowsort
SELECT - 33 col1, 92 AS col2
----
-33
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4277
SELECT ( - + ( + CASE 8 WHEN 22 THEN - CAST( 72 AS SIGNED ) - ( 7 ) ELSE NULL END ) ) + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT ( - + ( + CASE 8 WHEN 22 THEN - CAST ( 72 AS INTEGER ) - ( 7 ) ELSE NULL END ) ) + 73
----
NULL

query I rowsort
SELECT 93 - COALESCE ( 80, 5 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ALL - NULLIF ( 61, MIN( ALL + 87 ) * - 24 ) * + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL - NULLIF ( 61, MIN ( ALL + 87 ) * - 24 ) * + COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT COUNT( * ) + + 29 * 52
----
1509

skipif mysql # not compatible
query I rowsort label-4280
SELECT COUNT ( * ) + + 29 * 52
----
1509

query I rowsort
SELECT + ( 86 ) - 46 col0
----
40

query I rowsort
SELECT 71 * + 44 * - 75 * 81
----
-18978300

query I rowsort
SELECT ALL + 86 + + 50
----
136

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4284
SELECT COALESCE ( 13, - 87 ) + - CAST( - 74 AS SIGNED ) DIV + 8
----
22

skipif mysql # not compatible
query I rowsort label-4284
SELECT COALESCE ( 13, - 87 ) + - CAST ( - 74 AS INTEGER ) / + 8
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL + 75 * + MIN( ALL 52 )
----
3900

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL + 75 * + MIN ( ALL 52 )
----
3900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4286
SELECT ALL + COUNT( * ) + + CAST( NULL AS SIGNED ) * + COUNT( * ) * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + 23
----
NULL

query I rowsort
SELECT + 93 + - + 13
----
80

query I rowsort
SELECT DISTINCT 71 + 41 + + - 32
----
80

query I rowsort
SELECT ALL 76 + - + 76 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4290
SELECT ALL CAST( - - 66 AS SIGNED ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL CAST ( - - 66 AS INTEGER ) AS col1
----
66

query I rowsort
SELECT 41 + - 26 + + 25 * 42
----
1065

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT DISTINCT - 92 + - 30 * + - SUM( - 48 )
----
-1532

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT - 92 + - 30 * + - SUM ( - 48 )
----
-1532

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4293
SELECT ALL - COUNT( * ) AS col0, 16 - - 99 DIV 20 AS col1
----
-1
20

skipif mysql # not compatible
query II rowsort label-4293
SELECT ALL - COUNT ( * ) AS col0, 16 - - 99 / 20 AS col1
----
-1
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT - 42 + - 85 + - + 61 - 50 * SUM( DISTINCT 33 * + 60 ) * 45
----
-4455188

skipif mysql # not compatible
query I rowsort label-4294
SELECT - 42 + - 85 + - + 61 - 50 * SUM ( DISTINCT 33 * + 60 ) * 45
----
-4455188

onlyif mysql # DIV for integer division: 
query I rowsort label-4295
SELECT ALL - 59 DIV + 60 * + 74
----
0

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL - 59 / + 60 * + 74
----
0

query I rowsort
SELECT 20 * + 69
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT + MIN( DISTINCT 37 )
----
37

skipif mysql # not compatible
query I rowsort label-4297
SELECT + MIN ( DISTINCT 37 )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4298
SELECT DISTINCT - - COUNT( * ) AS col1, 57
----
1
57

skipif mysql # not compatible
query II rowsort label-4298
SELECT DISTINCT - - COUNT ( * ) AS col1, 57
----
1
57

query I rowsort
SELECT ALL - 10 - + COALESCE ( + 54, 69 ) * ( ( 69 ) ) AS col0
----
-3736

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL - MIN( DISTINCT + 42 ) * - - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL - MIN ( DISTINCT + 42 ) * - - COUNT ( * )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4301
SELECT ( - COUNT( * ) ) * + CAST( 73 AS SIGNED ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4301
SELECT ( - COUNT ( * ) ) * + CAST ( 73 AS INTEGER ) AS col0
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4302
SELECT ALL - 30 AS col0, - CASE + MAX( ALL - 83 ) WHEN - 70 * 76 THEN NULL WHEN 18 DIV - COUNT( * ) + + 38 THEN NULL WHEN - 55 THEN 66 ELSE - 73 * COUNT( * ) END DIV 65 AS col0
----
-30
1

skipif mysql # not compatible
query II rowsort label-4302
SELECT ALL - 30 AS col0, - CASE + MAX ( ALL - 83 ) WHEN - 70 * 76 THEN NULL WHEN 18 / - COUNT ( * ) + + 38 THEN NULL WHEN - 55 THEN 66 ELSE - 73 * COUNT ( * ) END / 65 AS col0
----
-30
1

query I rowsort
SELECT 33 + - 39 - + 24
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4304
SELECT DISTINCT + 65 * COALESCE ( 19, - CAST( NULL AS SIGNED ), 44 * + 77 ) AS col0
----
1235

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT + 65 * COALESCE ( 19, - CAST ( NULL AS INTEGER ), 44 * + 77 ) AS col0
----
1235

query I rowsort
SELECT ALL - NULLIF ( + 40, - 54 ) - 47 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL + COUNT( * ) * + 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL + COUNT ( * ) * + 70 AS col0
----
70

query I rowsort
SELECT 17 - + ( - 84 )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT CASE - + CASE - 70 WHEN - COUNT( * ) THEN 20 * 18 END WHEN - 33 + - COUNT( * ) THEN 33 ELSE NULL END * 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT CASE - + CASE - 70 WHEN - COUNT ( * ) THEN 20 * 18 END WHEN - 33 + - COUNT ( * ) THEN 33 ELSE NULL END * 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4309
SELECT - 33 * + 90 DIV COUNT( * ) - + - 37 * 86 AS col2
----
212

skipif mysql # not compatible
query I rowsort label-4309
SELECT - 33 * + 90 / COUNT ( * ) - + - 37 * 86 AS col2
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT ALL - CASE + 97 WHEN + - 28 THEN NULL ELSE - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL - CASE + 97 WHEN + - 28 THEN NULL ELSE - COUNT ( * ) END
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4311
SELECT ALL 32 DIV + 30, 58 * + CASE + COALESCE ( + CAST( 80 AS SIGNED ), 51 + 34 ) WHEN - 93 THEN 4 END * + 47 + COUNT( * ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4311
SELECT ALL 32 / + 30, 58 * + CASE + COALESCE ( + CAST ( 80 AS INTEGER ), 51 + 34 ) WHEN - 93 THEN 4 END * + 47 + COUNT ( * ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4312
SELECT ALL - CASE - - 95 WHEN - 43 THEN NULL ELSE - 70 DIV + 69 + COUNT( * ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL - CASE - - 95 WHEN - 43 THEN NULL ELSE - 70 / + 69 + COUNT ( * ) END AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT 61 - 62 * COUNT( * ) * + - NULLIF ( - 81, MIN( ALL 35 ) * + 41 - - 86 * 66 )
----
-4961

skipif mysql # not compatible
query I rowsort label-4313
SELECT 61 - 62 * COUNT ( * ) * + - NULLIF ( - 81, MIN ( ALL 35 ) * + 41 - - 86 * 66 )
----
-4961

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL 84 * - MAX( DISTINCT - 90 ) * 17
----
128520

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL 84 * - MAX ( DISTINCT - 90 ) * 17
----
128520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4315
SELECT ALL - 3 * + CAST( 57 AS SIGNED )
----
-171

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL - 3 * + CAST ( 57 AS INTEGER )
----
-171

query I rowsort
SELECT DISTINCT - 85 * 68 * 72
----
-416160

onlyif mysql # DIV for integer division: 
query I rowsort label-4317
SELECT 87 DIV 13 * + 9 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4317
SELECT 87 / 13 * + 9 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL 49 + + COUNT( * ) + 36 * + 71
----
2606

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL 49 + + COUNT ( * ) + 36 * + 71
----
2606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4319
SELECT 93 + + ( 48 ) - - - 30 + - NULLIF ( + 64, 5 ) DIV + 25 * COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-4319
SELECT 93 + + ( 48 ) - - - 30 + - NULLIF ( + 64, 5 ) / + 25 * COUNT ( * )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT 71 * - + 4 * ( - + COALESCE ( 54, + 62 * 15 ) ) * COUNT( * )
----
15336

skipif mysql # not compatible
query I rowsort label-4320
SELECT 71 * - + 4 * ( - + COALESCE ( 54, + 62 * 15 ) ) * COUNT ( * )
----
15336

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT + 88 + SUM( + + 86 ) * 19
----
1722

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT + 88 + SUM ( + + 86 ) * 19
----
1722

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4322
SELECT ( - ( + + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT ( - ( + + CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4323
SELECT ALL 60 + 12 AS col0, COUNT( * )
----
72
1

skipif mysql # not compatible
query II rowsort label-4323
SELECT ALL 60 + 12 AS col0, COUNT ( * )
----
72
1

query I rowsort
SELECT + - 99 + + 80
----
-19

query I rowsort
SELECT ALL + 30 * 30 AS col2
----
900

query I rowsort
SELECT + 80 * - 3 AS col0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT ALL + - 26 - - CASE - 74 WHEN - 58 * - COUNT( * ) THEN NULL WHEN + COUNT( * ) + 16 THEN 22 * - 75 ELSE + 63 - 65 * + 53 END - + 31
----
-3439

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL + - 26 - - CASE - 74 WHEN - 58 * - COUNT ( * ) THEN NULL WHEN + COUNT ( * ) + 16 THEN 22 * - 75 ELSE + 63 - 65 * + 53 END - + 31
----
-3439

query I rowsort
SELECT ALL + 69 * ( + 31 )
----
2139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4329
SELECT 58 DIV 68 - + MIN( ALL - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-4329
SELECT 58 / 68 - + MIN ( ALL - 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT + MIN( - - 68 )
----
68

skipif mysql # not compatible
query I rowsort label-4330
SELECT + MIN ( - - 68 )
----
68

query I rowsort
SELECT ALL + + 2 * + 84 - - + 57 AS col0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4332
SELECT - 57 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4332
SELECT - 57 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 27 + - + 65
----
-38

query I rowsort
SELECT + 73 * + 7 - + 50 col0
----
461

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT + ( + NULLIF ( + + 89, COUNT( * ) / - 19 ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-4335
SELECT + ( + NULLIF ( + + 89, COUNT ( * ) / - 19 ) ) AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4336
SELECT + 3 + + 8 * NULLIF ( + - COALESCE ( + + COUNT( * ), COALESCE ( 93, COALESCE ( - CAST( + 4 AS SIGNED ), - 85 ) DIV 28 ) * - ( - 34 ) - 41 ), - 3 )
----
-5

skipif mysql # not compatible
query I rowsort label-4336
SELECT + 3 + + 8 * NULLIF ( + - COALESCE ( + + COUNT ( * ), COALESCE ( 93, COALESCE ( - CAST ( + 4 AS INTEGER ), - 85 ) / 28 ) * - ( - 34 ) - 41 ), - 3 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT - COUNT( * ) - - - NULLIF ( - SUM( ALL + + ( + - 92 ) ), + 11 * 4 )
----
-93

skipif mysql # not compatible
query I rowsort label-4337
SELECT - COUNT ( * ) - - - NULLIF ( - SUM ( ALL + + ( + - 92 ) ), + 11 * 4 )
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT - 21 DIV 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4338
SELECT - 21 / 62 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4339
SELECT ALL COUNT( * ) DIV 82 * + 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL COUNT ( * ) / 82 * + 32 AS col1
----
0

query I rowsort
SELECT ALL - 16 * - 36 * + 95
----
54720

query I rowsort
SELECT DISTINCT + 62 * - - 63
----
3906

query I rowsort
SELECT DISTINCT CASE WHEN + 57 IS NULL THEN + - 84 END * - 96
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT + 16 * - + 71 + - ( + + CAST( NULL AS SIGNED ) ) + - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT + 16 * - + 71 + - ( + + CAST ( NULL AS INTEGER ) ) + - - 23
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - + COALESCE ( 30, 94, + 49 ), 6 )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4345
SELECT ALL ( - 75 ) * - - ( 24 ) + + + 45 DIV ( - 17 * - COUNT( * ) - 41 )
----
-1801

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL ( - 75 ) * - - ( 24 ) + + + 45 / ( - 17 * - COUNT ( * ) - 41 )
----
-1801

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT ALL - 17 * + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL - 17 * + COUNT ( * )
----
-17

query I rowsort
SELECT ALL 78 * - 73 + - + 34
----
-5728

query I rowsort
SELECT + 91 * 43 + - 40 AS col1
----
3873

query I rowsort
SELECT 45 * + 28 + - 6 + + + 54 AS col0
----
1308

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT + 37 * COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4350
SELECT + 37 * COUNT ( * ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL + 45 + - COUNT( * ) col2
----
44

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL + 45 + - COUNT ( * ) col2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4352
SELECT - CAST( NULL AS SIGNED ) - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT - CAST ( NULL AS INTEGER ) - 57
----
NULL

query II rowsort
SELECT ALL + 98, 51 AS col2
----
98
51

query I rowsort
SELECT DISTINCT + 17 + 79
----
96

query I rowsort
SELECT ALL - 58 + 61 * - ( + 1 ) AS col1
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT - + 89 + - SUM( ALL - + ( - 87 ) ) + + 10 * - ( SUM( DISTINCT 91 ) ) AS col1
----
-1086

skipif mysql # not compatible
query I rowsort label-4356
SELECT - + 89 + - SUM ( ALL - + ( - 87 ) ) + + 10 * - ( SUM ( DISTINCT 91 ) ) AS col1
----
-1086

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4357
SELECT ALL + + COUNT( ALL + COALESCE ( - 94, + + 9, + - CAST( 95 AS SIGNED ) ) ) + - 87 col0
----
-86

skipif mysql # not compatible
query I rowsort label-4357
SELECT ALL + + COUNT ( ALL + COALESCE ( - 94, + + 9, + - CAST ( 95 AS INTEGER ) ) ) + - 87 col0
----
-86

query I rowsort
SELECT - - 3 + + 8
----
11

query I rowsort
SELECT - + 29 + + + 30 AS col1
----
1

query I rowsort
SELECT + 11 - + 24 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT + 24 + - 25 * + 93 * + 77 + + COUNT( * ) AS col2
----
-179000

skipif mysql # not compatible
query I rowsort label-4361
SELECT + 24 + - 25 * + 93 * + 77 + + COUNT ( * ) AS col2
----
-179000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4362
SELECT - ( + + COUNT( * ) ) * + COALESCE ( + + 5, - 64 + 31 DIV + 55 )
----
-5

skipif mysql # not compatible
query I rowsort label-4362
SELECT - ( + + COUNT ( * ) ) * + COALESCE ( + + 5, - 64 + 31 / + 55 )
----
-5

query I rowsort
SELECT DISTINCT + - 57 * - + 2 * - 6 col1
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT ALL - 73 * - + 35 * COUNT( DISTINCT - + 48 ) + - - 36 col0
----
2591

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL - 73 * - + 35 * COUNT ( DISTINCT - + 48 ) + - - 36 col0
----
2591

query I rowsort
SELECT + 77 + + ( 89 ) * - 32 col0
----
-2771

query I rowsort
SELECT DISTINCT ( + NULLIF ( + 18, 59 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL + - CASE 24 WHEN - COUNT( - ( COALESCE ( 81, 5 * - 65 ) ) ) THEN NULL ELSE + 8 * - COUNT( * ) END - + 91
----
-83

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL + - CASE 24 WHEN - COUNT ( - ( COALESCE ( 81, 5 * - 65 ) ) ) THEN NULL ELSE + 8 * - COUNT ( * ) END - + 91
----
-83

query I rowsort
SELECT + - 13 + 25
----
12

query II rowsort
SELECT DISTINCT - 1 col2, - 23 AS col1
----
-1
-23

query I rowsort
SELECT + NULLIF ( + - 83, 13 )
----
-83

query I rowsort
SELECT + 33 + - 9 AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4372
SELECT + ( COALESCE ( 0, 81 * - 93 + - 92 + + ( - CAST( NULL AS SIGNED ) ) * - ( - 78 ) DIV - 55 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4372
SELECT + ( COALESCE ( 0, 81 * - 93 + - 92 + + ( - CAST ( NULL AS INTEGER ) ) * - ( - 78 ) / - 55 ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4373
SELECT ALL + 78, + COUNT( * ) + - + 57 AS col0
----
78
-56

skipif mysql # not compatible
query II rowsort label-4373
SELECT ALL + 78, + COUNT ( * ) + - + 57 AS col0
----
78
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT CAST( - + 60 AS SIGNED ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-4374
SELECT CAST ( - + 60 AS INTEGER ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-4375
SELECT ALL + 23, - 51 * 75 * 56 + + COUNT( + 89 ) AS col1
----
23
-214199

skipif mysql # not compatible
query II rowsort label-4375
SELECT ALL + 23, - 51 * 75 * 56 + + COUNT ( + 89 ) AS col1
----
23
-214199

onlyif mysql # DIV for integer division: 
query I rowsort label-4376
SELECT - CASE + 1 WHEN - 94 THEN NULL ELSE 76 END DIV - 3
----
25

skipif mysql # not compatible
query I rowsort label-4376
SELECT - CASE + 1 WHEN - 94 THEN NULL ELSE 76 END / - 3
----
25

query I rowsort
SELECT + 37 - + 28 / + + 76 * + + CASE + - ( + 1 ) WHEN 63 + + 79 THEN + 39 - 75 END / + 36 + + 77 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4378
SELECT + 15 AS col2, + 84 * + CAST( + COUNT( * ) AS SIGNED ) * - + 29 * - 23
----
15
56028

skipif mysql # not compatible
query II rowsort label-4378
SELECT + 15 AS col2, + 84 * + CAST ( + COUNT ( * ) AS INTEGER ) * - + 29 * - 23
----
15
56028

onlyif mysql # aggregate syntax: 
query II rowsort label-4379
SELECT ( COUNT( * ) ), + 82 AS col0
----
1
82

skipif mysql # not compatible
query II rowsort label-4379
SELECT ( COUNT ( * ) ), + 82 AS col0
----
1
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT + 87 * + 27 - + 32 DIV - + 40 * + 7 AS col1
----
2349

skipif mysql # not compatible
query I rowsort label-4380
SELECT + 87 * + 27 - + 32 / - + 40 * + 7 AS col1
----
2349

query I rowsort
SELECT ( - + NULLIF ( - 18, 62 ) )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4382
SELECT + CAST( 28 AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-4382
SELECT + CAST ( 28 AS INTEGER )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT DISTINCT 49 * - COUNT( * ) + + + 17
----
-32

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT 49 * - COUNT ( * ) + + + 17
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT DISTINCT + 31 * + + COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT + 31 * + + COUNT ( * ) AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4385
SELECT DISTINCT NULLIF ( + - 38, + 74 ) * - COALESCE ( + + ( - 5 ), 50, + 88 * - 5 + COUNT( * ) ) * - 41 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT NULLIF ( + - 38, + 74 ) * - COALESCE ( + + ( - 5 ), 50, + 88 * - 5 + COUNT ( * ) ) * - 41 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT - ( COUNT( * ) ) * + + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4386
SELECT - ( COUNT ( * ) ) * + + COUNT ( * ) col1
----
-1

query I rowsort
SELECT ALL + COALESCE ( - 72, + 25 ) * 66 + 60 * + + 56
----
-1392

query I rowsort
SELECT 93 + + - 35 AS col2
----
58

query II rowsort
SELECT ALL 7 + - 78 * - ( 86 ) AS col0, + 93 AS col1
----
6715
93

query I rowsort
SELECT - ( - 37 ) AS col0
----
37

query II rowsort
SELECT - + ( - 29 ) AS col1, 97 * - - 77
----
29
7469

query I rowsort
SELECT 77 + 63
----
140

query I rowsort
SELECT - 95 + 14 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4394
SELECT 23 AS col2, + SUM( 50 ) + + - 18 + - 32 AS col0
----
23
0

skipif mysql # not compatible
query II rowsort label-4394
SELECT 23 AS col2, + SUM ( 50 ) + + - 18 + - 32 AS col0
----
23
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT 69 + - COUNT( * ) - + 15
----
53

skipif mysql # not compatible
query I rowsort label-4395
SELECT 69 + - COUNT ( * ) - + 15
----
53

query I rowsort
SELECT ALL - 72 - - 69 AS col1
----
-3

query II rowsort
SELECT - + 72 AS col1, 50 * 67
----
-72
3350

query II rowsort
SELECT DISTINCT + 31, + 13 + + 64 col0
----
31
77

query II rowsort
SELECT 35 AS col1, 97 * - + 48 AS col2
----
35
-4656

onlyif mysql # aggregate syntax: 
query II rowsort label-4400
SELECT - - 49 AS col1, - COUNT( * ) AS col0
----
49
-1

skipif mysql # not compatible
query II rowsort label-4400
SELECT - - 49 AS col1, - COUNT ( * ) AS col0
----
49
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT ALL - COUNT( * ) - - 96 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL - COUNT ( * ) - - 96 AS col1
----
95

query I rowsort
SELECT ALL 28 * - 49 AS col1
----
-1372

query I rowsort
SELECT 26 * - 68 AS col0
----
-1768

query I rowsort
SELECT DISTINCT + NULLIF ( + - 75, - 17 + + 52 ) * + 26 AS col1
----
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT ALL COALESCE ( - 24, COUNT( * ), + 79, - COUNT( * ) * - + COUNT( * ) ) col2
----
-24

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL COALESCE ( - 24, COUNT ( * ), + 79, - COUNT ( * ) * - + COUNT ( * ) ) col2
----
-24

query I rowsort
SELECT 28 - - 33
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4407
SELECT CAST( + - 64 AS SIGNED ) * 9 + CAST( - + 92 AS SIGNED )
----
-668

skipif mysql # not compatible
query I rowsort label-4407
SELECT CAST ( + - 64 AS INTEGER ) * 9 + CAST ( - + 92 AS INTEGER )
----
-668

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL + ( + COUNT( * ) ) * + 46
----
46

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL + ( + COUNT ( * ) ) * + 46
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT 5 DIV + 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4409
SELECT 5 / + 37 AS col1
----
0

query I rowsort
SELECT ALL - 43 * - + 21 * - 77 AS col1
----
-69531

query I rowsort
SELECT DISTINCT 33 + ( 32 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT DISTINCT - COUNT( * ) * - COUNT( + 23 ) * + + 55 * - + 41
----
-2255

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT - COUNT ( * ) * - COUNT ( + 23 ) * + + 55 * - + 41
----
-2255

onlyif mysql # DIV for integer division: 
query I rowsort label-4413
SELECT ALL 9 DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL 9 / 87 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT COUNT( + + 53 ) * 72 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT COUNT ( + + 53 ) * 72 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4415
SELECT ALL 32 + - ( 30 ) - - COALESCE ( + + CAST( 86 AS SIGNED ), + + 38 ) - 72 * 43 DIV 58 col0
----
35

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL 32 + - ( 30 ) - - COALESCE ( + + CAST ( 86 AS INTEGER ), + + 38 ) - 72 * 43 / 58 col0
----
35

query I rowsort
SELECT 61 + + 44 + - CASE - 26 WHEN + + 82 * + 52 + + 56 * 14 THEN NULL WHEN - 83 / ( - 30 ) THEN NULL ELSE - 18 END
----
123

query I rowsort
SELECT 54 * + 5 * - 59 * - 24 - - 9
----
382329

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4418
SELECT ( + - ( - COUNT( * ) ) ) - + - 53 DIV 4 * - 97 AS col2
----
-1260

skipif mysql # not compatible
query I rowsort label-4418
SELECT ( + - ( - COUNT ( * ) ) ) - + - 53 / 4 * - 97 AS col2
----
-1260

onlyif mysql # aggregate syntax: 
query II rowsort label-4419
SELECT ALL COUNT( * ) * - + 64 AS col0, + 99 * - + COUNT( * )
----
-64
-99

skipif mysql # not compatible
query II rowsort label-4419
SELECT ALL COUNT ( * ) * - + 64 AS col0, + 99 * - + COUNT ( * )
----
-64
-99

query I rowsort
SELECT ALL + 81 * + - 84 AS col1
----
-6804

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT ALL COUNT( * ) + NULLIF ( 43, + ( - + 76 ) ) * 10
----
431

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL COUNT ( * ) + NULLIF ( 43, + ( - + 76 ) ) * 10
----
431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4422
SELECT + CASE + - ( - 87 ) WHEN + 25 * - 63 * - - MIN( + CAST( ( - 98 ) AS SIGNED ) ) + COUNT( * ) + 66 THEN + 96 * + 50 WHEN 49 THEN NULL END * 73 + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT + CASE + - ( - 87 ) WHEN + 25 * - 63 * - - MIN ( + CAST ( ( - 98 ) AS INTEGER ) ) + COUNT ( * ) + 66 THEN + 96 * + 50 WHEN 49 THEN NULL END * 73 + 55
----
NULL

query I rowsort
SELECT ALL 66 * + 66 AS col0
----
4356

query I rowsort
SELECT DISTINCT + ( COALESCE ( - + 35, + 40, + 52 ) ) - 66
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT 2 + + 77 * + MIN( + 44 )
----
3390

skipif mysql # not compatible
query I rowsort label-4425
SELECT 2 + + 77 * + MIN ( + 44 )
----
3390

query II rowsort
SELECT - 1 * + 3 AS col1, 42
----
-3
42

query I rowsort
SELECT 94 + 41 col2
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4428
SELECT ALL - + COUNT( * ) * - 90, COUNT( * ) * - 10 + + COUNT( * ) DIV ( COUNT( * ) ) * - 31 AS col1
----
90
-41

skipif mysql # not compatible
query II rowsort label-4428
SELECT ALL - + COUNT ( * ) * - 90, COUNT ( * ) * - 10 + + COUNT ( * ) / ( COUNT ( * ) ) * - 31 AS col1
----
90
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-4429
SELECT ALL - 32 DIV 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL - 32 / 41 AS col1
----
0

query I rowsort
SELECT ALL - 26 * ( 99 ) - + + ( + + 19 ) * + 43 AS col2
----
-3391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4431
SELECT ALL + + COALESCE ( - ( 45 ), - COALESCE ( - COALESCE ( - 13, + + 41 ), 74, 86 + 17 ) + - 44 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL + + COALESCE ( - ( 45 ), - COALESCE ( - COALESCE ( - 13, + + 41 ), 74, 86 + 17 ) + - 44 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 59 + - 68 + + + ( - COALESCE ( + 81, - 46, + 84 ) ) col2
----
-90

query I rowsort
SELECT ALL - 82 * 6
----
-492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4434
SELECT 64 + + CAST( - 98 AS SIGNED ) * + 49 + 83 * COALESCE ( + 64, + 77 ) * NULLIF ( - ( - 49 ) + - 60, 4 ) - - 85 AS col1
----
-63085

skipif mysql # not compatible
query I rowsort label-4434
SELECT 64 + + CAST ( - 98 AS INTEGER ) * + 49 + 83 * COALESCE ( + 64, + 77 ) * NULLIF ( - ( - 49 ) + - 60, 4 ) - - 85 AS col1
----
-63085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4435
SELECT 51 + COUNT( DISTINCT 84 ) + ( + + CAST( NULL AS SIGNED ) ) * 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4435
SELECT 51 + COUNT ( DISTINCT 84 ) + ( + + CAST ( NULL AS INTEGER ) ) * 64 AS col1
----
NULL

query I rowsort
SELECT - 86 + - - 19 + + + 39 * - 50 AS col2
----
-2017

onlyif mysql # aggregate syntax: 
query II rowsort label-4437
SELECT ALL + MAX( - 58 ) * - ( - 52 ) - + - COUNT( * ), COUNT( * ) * 51 * MIN( 53 ) AS col1
----
-3015
2703

skipif mysql # not compatible
query II rowsort label-4437
SELECT ALL + MAX ( - 58 ) * - ( - 52 ) - + - COUNT ( * ), COUNT ( * ) * 51 * MIN ( 53 ) AS col1
----
-3015
2703

query I rowsort
SELECT - 26 + + 59 + + + 4 + - 63 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT ALL MAX( DISTINCT 68 )
----
68

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL MAX ( DISTINCT 68 )
----
68

query I rowsort
SELECT - 53 * 81
----
-4293

query I rowsort
SELECT 33 + + 14 AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4442
SELECT DISTINCT + - 2 + CAST( NULL AS SIGNED ) + MAX( DISTINCT + + 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT + - 2 + CAST ( NULL AS INTEGER ) + MAX ( DISTINCT + + 38 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4443
SELECT 52 + + 88 / ( - MIN( DISTINCT + - 21 ) ) * CAST( NULL AS SIGNED ) + - 46 + + + 87 / CAST( - NULLIF ( 75, + ( + 65 ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT 52 + + 88 / ( - MIN ( DISTINCT + - 21 ) ) * CAST ( NULL AS INTEGER ) + - 46 + + + 87 / CAST ( - NULLIF ( 75, + ( + 65 ) ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 57 + - - 4 + - 52 + + NULLIF ( - 5, ( - + 10 ) * 44 * - 3 ) AS col1
----
4

query I rowsort
SELECT 62 + - - 74 AS col1
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4446
SELECT ALL + CAST( - ( + ( + 28 ) ) AS SIGNED ) + + + ( COUNT( * ) )
----
-27

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL + CAST ( - ( + ( + 28 ) ) AS INTEGER ) + + + ( COUNT ( * ) )
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-4447
SELECT 81 DIV 66
----
1

skipif mysql # not compatible
query I rowsort label-4447
SELECT 81 / 66
----
1

query II rowsort
SELECT 46, 27 col2
----
46
27

query I rowsort
SELECT 58 + - + 82
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4450
SELECT DISTINCT 97 * + CAST( 17 AS SIGNED ) + - 14 - + 27 + - + 34
----
1574

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT 97 * + CAST ( 17 AS INTEGER ) + - 14 - + 27 + - + 34
----
1574

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL - NULLIF ( - 67, + SUM( DISTINCT - 79 ) )
----
67

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL - NULLIF ( - 67, + SUM ( DISTINCT - 79 ) )
----
67

query I rowsort
SELECT COALESCE ( - + 96, - 55 ) col0
----
-96

query I rowsort
SELECT ALL + COALESCE ( + 69, + ( 69 ) )
----
69

query I rowsort
SELECT - ( + 69 ) + - 16
----
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-4455
SELECT ALL + 31 AS col0, - 84 DIV 53 * - + 80 - 68
----
31
12

skipif mysql # not compatible
query II rowsort label-4455
SELECT ALL + 31 AS col0, - 84 / 53 * - + 80 - 68
----
31
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT DISTINCT + ( + SUM( DISTINCT - 80 ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT + ( + SUM ( DISTINCT - 80 ) ) AS col0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4457
SELECT ALL + 38 AS col1, - CAST( NULL AS SIGNED ) * - CASE + 12 WHEN - - 39 THEN NULL ELSE ( 8 ) + + - 79 END AS col0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-4457
SELECT ALL + 38 AS col1, - CAST ( NULL AS INTEGER ) * - CASE + 12 WHEN - - 39 THEN NULL ELSE ( 8 ) + + - 79 END AS col0
----
38
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4458
SELECT DISTINCT + 36 * 15 - + COUNT( - 87 ) AS col0, 1
----
539
1

skipif mysql # not compatible
query II rowsort label-4458
SELECT DISTINCT + 36 * 15 - + COUNT ( - 87 ) AS col0, 1
----
539
1

query I rowsort
SELECT ALL + 47 * - - 42 AS col0
----
1974

query I rowsort
SELECT DISTINCT + - 42 AS col2
----
-42

query II rowsort
SELECT ALL + + 82 AS col1, 54 AS col2
----
82
54

query II rowsort
SELECT + - NULLIF ( 83, - 74 ) AS col1, - 34 AS col2
----
-83
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT ALL + - CAST( + 90 AS SIGNED ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL + - CAST ( + 90 AS INTEGER ) AS col1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4464
SELECT ALL - 97 * - 80 + + 27 * + + 75 * + + CAST( - 33 AS SIGNED ) AS col2, + 80
----
-59065
80

skipif mysql # not compatible
query II rowsort label-4464
SELECT ALL - 97 * - 80 + + 27 * + + 75 * + + CAST ( - 33 AS INTEGER ) AS col2, + 80
----
-59065
80

query I rowsort
SELECT + - 92 * - + 93
----
8556

query I rowsort
SELECT ALL 4 * + + 38 col1
----
152

query I rowsort
SELECT + + 17 - 75
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT + 53 * - COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT + 53 * - COUNT ( * ) AS col0
----
-53

query II rowsort
SELECT ALL + 76, 15 AS col1
----
76
15

query II rowsort
SELECT - - 19 col1, + 1 + - 65 + - + 94
----
19
-158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4471
SELECT + 1 DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4471
SELECT + 1 / + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4472
SELECT ALL + 20 + + ( 84 ) + 27 DIV - - 75
----
104

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL + 20 + + ( 84 ) + 27 / - - 75
----
104

query I rowsort
SELECT - + CASE - COALESCE ( 1, + 46 ) WHEN 31 THEN + ( - 24 ) END
----
NULL

query II rowsort
SELECT - 96, - 96
----
-96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4475
SELECT + + 65 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-4475
SELECT + + 65 / + 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT - + 59 * + 75 * - COUNT( * ) + 10 AS col2
----
4435

skipif mysql # not compatible
query I rowsort label-4476
SELECT - + 59 * + 75 * - COUNT ( * ) + 10 AS col2
----
4435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4477
SELECT DISTINCT + 1 + - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT + 1 + - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4478
SELECT - + 4 AS col0, COUNT( * ) - - ( COUNT( * ) ) + 87 * - - 63 * - 16 * + 84 * 74 + 55
----
-4
-545118279

skipif mysql # not compatible
query II rowsort label-4478
SELECT - + 4 AS col0, COUNT ( * ) - - ( COUNT ( * ) ) + 87 * - - 63 * - 16 * + 84 * 74 + 55
----
-4
-545118279

query II rowsort
SELECT - + 35 col1, - 88 + - 97
----
-35
-185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4480
SELECT ALL 63 AS col2, + ( CAST( - 11 AS SIGNED ) ) AS col2
----
63
-11

skipif mysql # not compatible
query II rowsort label-4480
SELECT ALL 63 AS col2, + ( CAST ( - 11 AS INTEGER ) ) AS col2
----
63
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4481
SELECT ALL CAST( NULL AS SIGNED ) / ( - + 40 ) + + AVG ( + 51 ) + - 36 - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL CAST ( NULL AS INTEGER ) / ( - + 40 ) + + AVG ( + 51 ) + - 36 - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL NULLIF ( COUNT( * ), + - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL NULLIF ( COUNT ( * ), + - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT ALL 56 + - - 78 * + 50 * COUNT( * ) * - 86 * + 83 + - 24 + + 36 AS col1
----
-27838132

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL 56 + - - 78 * + 50 * COUNT ( * ) * - 86 * + 83 + - 24 + + 36 AS col1
----
-27838132

query I rowsort
SELECT + 38 + 97 * 67 * 93 + - ( - 98 )
----
604543

query I rowsort
SELECT - 20 * + 9
----
-180

query I rowsort
SELECT ALL NULLIF ( + - 98, - + 3 / - 75 + 26 - + + 40 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT DISTINCT CASE - + 75 WHEN + ( COUNT( * ) ) THEN - COUNT( * ) / 55 * 92 - + + 17 ELSE + 77 END AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT CASE - + 75 WHEN + ( COUNT ( * ) ) THEN - COUNT ( * ) / 55 * 92 - + + 17 ELSE + 77 END AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT + SUM( ALL 69 ) + + 18
----
87

skipif mysql # not compatible
query I rowsort label-4488
SELECT + SUM ( ALL 69 ) + + 18
----
87

query I rowsort
SELECT ALL 97 + 7 + 88 AS col2
----
192

query I rowsort
SELECT DISTINCT 55 * + + 10
----
550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4491
SELECT DISTINCT CASE + + 50 WHEN 59 - 27 THEN NULL WHEN 26 THEN 71 ELSE - 85 * CASE + MIN( ALL + ( 34 ) ) WHEN + COUNT( * ) THEN NULL ELSE - 82 * 27 + - ( + 16 ) * + CASE WHEN NOT ( NULL ) NOT IN ( + COUNT( * ) + - CAST( NULL AS SIGNED ) * + 45 ) THEN 79 + - 79 ELSE NULL END END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT CASE + + 50 WHEN 59 - 27 THEN NULL WHEN 26 THEN 71 ELSE - 85 * CASE + MIN ( ALL + ( 34 ) ) WHEN + COUNT ( * ) THEN NULL ELSE - 82 * 27 + - ( + 16 ) * + CASE WHEN NOT ( NULL ) NOT IN ( + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + 45 ) THEN 79 + - 79 ELSE NULL END END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL - COUNT( * ) - - - 29 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL - COUNT ( * ) - - - 29 AS col2
----
-30

query I rowsort
SELECT - 84 - 60
----
-144

query I rowsort
SELECT ALL + ( - - 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT 64 * 59 + + MAX( + ( - 42 ) ) col2
----
3734

skipif mysql # not compatible
query I rowsort label-4495
SELECT 64 * 59 + + MAX ( + ( - 42 ) ) col2
----
3734

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4496
SELECT ALL + CASE - + 40 WHEN + 25 * - - 6 THEN NULL WHEN 68 THEN - CASE - 81 WHEN + 73 - - + COUNT( * ) * 11 THEN NULL WHEN CAST( NULL AS DECIMAL ) * 28 THEN - ( - 28 ) END * + 97 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL + CASE - + 40 WHEN + 25 * - - 6 THEN NULL WHEN 68 THEN - CASE - 81 WHEN + 73 - - + COUNT ( * ) * 11 THEN NULL WHEN CAST ( NULL AS REAL ) * 28 THEN - ( - 28 ) END * + 97 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT + MAX( - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-4497
SELECT + MAX ( - 83 )
----
-83

query I rowsort
SELECT ALL + ( - 71 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4499
SELECT - COUNT( * ) + + 52 + - 57 - + CAST( NULL AS SIGNED ) + + + 68 * - 36 * - - 87, 19 - - 90 * - 9 AS col2
----
NULL
-791

skipif mysql # not compatible
query II rowsort label-4499
SELECT - COUNT ( * ) + + 52 + - 57 - + CAST ( NULL AS INTEGER ) + + + 68 * - 36 * - - 87, 19 - - 90 * - 9 AS col2
----
NULL
-791

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT 28 DIV - + CASE WHEN ( NULL ) IN ( - 18, - 4 * - ( + ( - 25 ) ) ) THEN NULL WHEN 89 * + 71 > - 59 + ( + 82 - 97 * COALESCE ( 67, 1 ) ) THEN 77 END * + 97 - + 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4500
SELECT 28 / - + CASE WHEN ( NULL ) IN ( - 18, - 4 * - ( + ( - 25 ) ) ) THEN NULL WHEN 89 * + 71 > - 59 + ( + 82 - 97 * COALESCE ( 67, 1 ) ) THEN 77 END * + 97 - + 92 AS col2
----
-92

query I rowsort
SELECT ALL - 92 * + 21 AS col2
----
-1932

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT - 92 * - 63 + - COUNT( * ) AS col1
----
5795

skipif mysql # not compatible
query I rowsort label-4502
SELECT - 92 * - 63 + - COUNT ( * ) AS col1
----
5795

query I rowsort
SELECT + ( + - 70 ) * - 68 AS col0
----
4760

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT DISTINCT - 48 * + + 55 * COUNT( * ) AS col0
----
-2640

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT - 48 * + + 55 * COUNT ( * ) AS col0
----
-2640

onlyif mysql # aggregate syntax: 
query II rowsort label-4505
SELECT ALL + - NULLIF ( + 9, + 70 / - COUNT( * ) + + + 50 * 98 + - - 69 ) AS col1, COUNT( - - 85 )
----
-9
1

skipif mysql # not compatible
query II rowsort label-4505
SELECT ALL + - NULLIF ( + 9, + 70 / - COUNT ( * ) + + + 50 * 98 + - - 69 ) AS col1, COUNT ( - - 85 )
----
-9
1

query I rowsort
SELECT - 32 + + + 78 col2
----
46

query I rowsort
SELECT DISTINCT + - 7 col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT DISTINCT + ( 22 ) * - 60 + - CASE + 93 WHEN - 37 THEN NULL WHEN 97 * 25 THEN + 77 END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT + ( 22 ) * - 60 + - CASE + 93 WHEN - 37 THEN NULL WHEN 97 * 25 THEN + 77 END + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4509
SELECT + - 55 DIV + - 95 * 34
----
0

skipif mysql # not compatible
query I rowsort label-4509
SELECT + - 55 / + - 95 * 34
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4510
SELECT - - COUNT( * ) + - 69, + 88 AS col2
----
-68
88

skipif mysql # not compatible
query II rowsort label-4510
SELECT - - COUNT ( * ) + - 69, + 88 AS col2
----
-68
88

query I rowsort
SELECT + 64 * + 42
----
2688

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4512
SELECT + 52 * - 1 + 93 DIV 51 AS col2, COUNT( * ) - - 21 AS col1
----
-51
22

skipif mysql # not compatible
query II rowsort label-4512
SELECT + 52 * - 1 + 93 / 51 AS col2, COUNT ( * ) - - 21 AS col1
----
-51
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT - 21 + - + 19 + + 90 + COUNT( * ) + - 5 * + 91 * COUNT( * ) + NULLIF ( COUNT( * ), + COUNT( * ) ) * - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT - 21 + - + 19 + + 90 + COUNT ( * ) + - 5 * + 91 * COUNT ( * ) + NULLIF ( COUNT ( * ), + COUNT ( * ) ) * - 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL NULLIF ( 86, + + 10 + - MIN( 24 ) ) * + NULLIF ( - COALESCE ( + 96, ( - 23 ) * 61, 73 * - ( 27 ) + + 74 ), + 35 + - 56 * - ( ( - 14 ) + + 69 ) ) + 97
----
-8159

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL NULLIF ( 86, + + 10 + - MIN ( 24 ) ) * + NULLIF ( - COALESCE ( + 96, ( - 23 ) * 61, 73 * - ( 27 ) + + 74 ), + 35 + - 56 * - ( ( - 14 ) + + 69 ) ) + 97
----
-8159

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT - - SUM( ALL - 66 ) * + 18 * + 97 + + 2 + 16 + 76 - - 73 AS col2
----
-115069

skipif mysql # not compatible
query I rowsort label-4515
SELECT - - SUM ( ALL - 66 ) * + 18 * + 97 + + 2 + 16 + 76 - - 73 AS col2
----
-115069

query I rowsort
SELECT ALL + 37 * - 2 + + 75 * + 37 AS col0
----
2701

query I rowsort
SELECT + 44 + + 97 + 27 AS col0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL - 97 * COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL - 97 * COUNT ( * ) AS col0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4519
SELECT DISTINCT - CAST( + 29 AS SIGNED ) * - 51 * + - 3 AS col1
----
-4437

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT - CAST ( + 29 AS INTEGER ) * - 51 * + - 3 AS col1
----
-4437

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT ALL + ( - CASE - 43 WHEN + SUM( - - 2 ) + - 23 * 29 THEN - ( - 55 ) WHEN + 89 / 91 + + 6 * 49 THEN ( - ( + 68 ) ) ELSE + 28 * 82 END ) col0
----
-2296

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL + ( - CASE - 43 WHEN + SUM ( - - 2 ) + - 23 * 29 THEN - ( - 55 ) WHEN + 89 / 91 + + 6 * 49 THEN ( - ( + 68 ) ) ELSE + 28 * 82 END ) col0
----
-2296

query I rowsort
SELECT ALL 68 * 25 + + + 20 AS col0
----
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT + COALESCE ( - + 39, 27 + - - ( + + SUM( ALL + 81 ) ) ) + + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-4522
SELECT + COALESCE ( - + 39, 27 + - - ( + + SUM ( ALL + 81 ) ) ) + + COUNT ( * )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4523
SELECT + CAST( NULL AS SIGNED ) + + 49 + MAX( DISTINCT + 41 ) / - COUNT( * ) * - - MIN( - 18 ) * - 90 + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT + CAST ( NULL AS INTEGER ) + + 49 + MAX ( DISTINCT + 41 ) / - COUNT ( * ) * - - MIN ( - 18 ) * - 90 + + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT + COUNT( * ) * - 40 * + ( + + SUM( + + 23 ) )
----
-920

skipif mysql # not compatible
query I rowsort label-4524
SELECT + COUNT ( * ) * - 40 * + ( + + SUM ( + + 23 ) )
----
-920

query I rowsort
SELECT ALL 3 - 35 AS col0
----
-32

query I rowsort
SELECT ALL 79 * - - 20
----
1580

onlyif mysql # DIV for integer division: 
query I rowsort label-4527
SELECT ALL 91 DIV ( + 51 )
----
1

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL 91 / ( + 51 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4528
SELECT DISTINCT 8 DIV 71 * + COUNT( * ) DIV - 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT 8 / 71 * + COUNT ( * ) / - 92 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4529
SELECT ALL - COALESCE ( - 95, + 95 + - 7 ) * + ( - ( - COALESCE ( - 34, - - 95 + + - COUNT( * ) + MIN( + 33 ) DIV 17 ) ) ) * + 80
----
-258400

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - COALESCE ( - 95, + 95 + - 7 ) * + ( - ( - COALESCE ( - 34, - - 95 + + - COUNT ( * ) + MIN ( + 33 ) / 17 ) ) ) * + 80
----
-258400

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ( - 16 ) + NULLIF ( + COUNT( ALL - + 11 ), + NULLIF ( - 78, - COUNT( * ) + 38 + + ( + 4 ) * + COUNT( * ) ) )
----
-15

skipif mysql # not compatible
query I rowsort label-4530
SELECT ( - 16 ) + NULLIF ( + COUNT ( ALL - + 11 ), + NULLIF ( - 78, - COUNT ( * ) + 38 + + ( + 4 ) * + COUNT ( * ) ) )
----
-15

query I rowsort
SELECT ALL 43 * + 51 * + 3 * 49 AS col1
----
322371

onlyif mysql # DIV for integer division: 
query I rowsort label-4532
SELECT 12 DIV - + ( 59 )
----
0

skipif mysql # not compatible
query I rowsort label-4532
SELECT 12 / - + ( 59 )
----
0

query II rowsort
SELECT + 75 AS col2, + 78
----
75
78

query I rowsort
SELECT - 7 * 82 + + 62 - + 28 AS col0
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL - MIN( - 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL - MIN ( - 32 ) AS col2
----
32

query II rowsort
SELECT + 12 + + 48 + 17 AS col1, 99 AS col2
----
77
99

query I rowsort
SELECT DISTINCT + COALESCE ( + - 29, - + 91 ) + + 87 * - - 91 - + 27 AS col0
----
7861

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL - - COUNT( * ) * + 16
----
16

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL - - COUNT ( * ) * + 16
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4539
SELECT 58 * 1 DIV - 85 + 72 + + + 74 DIV - 9 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-4539
SELECT 58 * 1 / - 85 + 72 + + + 74 / - 9 AS col1
----
64

query I rowsort
SELECT ALL + 95 + + + 5 AS col2
----
100

query I rowsort
SELECT + ( + 83 ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT ALL + 3 * - 53 * - COUNT( * )
----
159

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL + 3 * - 53 * - COUNT ( * )
----
159

query I rowsort
SELECT 49 * + 95
----
4655

query I rowsort
SELECT + + 55 * 21 + + - ( - + 45 ) AS col1
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL - COUNT( * ) + 28 + - + 74 - - 35 * 23 col2
----
758

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL - COUNT ( * ) + 28 + - + 74 - - 35 * 23 col2
----
758

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4546
SELECT ALL + CAST( NULL AS SIGNED ) * 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL + CAST ( NULL AS INTEGER ) * 86 AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( + 90, ( + 20 ) - + COALESCE ( CASE - 67 WHEN 86 THEN NULL ELSE 31 - + 92 END, 63 + + 62 ) ) * - 96 AS col1
----
-8640

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT 18 * + NULLIF ( - COUNT( * ), + 55 + 86 )
----
-18

skipif mysql # not compatible
query I rowsort label-4548
SELECT 18 * + NULLIF ( - COUNT ( * ), + 55 + 86 )
----
-18

query I rowsort
SELECT ALL - 51 + - 51 - 68 * + + 40 AS col2
----
-2822

query I rowsort
SELECT ALL + - 28 + 14 * + 7 + + + 89 AS col2
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT - CASE + 55 WHEN - + 30 THEN - COUNT( * ) WHEN SUM( + 93 ) THEN - AVG ( + ( 77 ) ) END / + 7 / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT - CASE + 55 WHEN - + 30 THEN - COUNT ( * ) WHEN SUM ( + 93 ) THEN - AVG ( + ( 77 ) ) END / + 7 / COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4552
SELECT 97 * - 26 DIV - COUNT( * )
----
2522

skipif mysql # not compatible
query I rowsort label-4552
SELECT 97 * - 26 / - COUNT ( * )
----
2522

query I rowsort
SELECT 87 * + 70 AS col2
----
6090

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4554
SELECT ALL + 99 DIV - MIN( - + COALESCE ( + 51, + 85 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL + 99 / - MIN ( - + COALESCE ( + 51, + 85 ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4555
SELECT - 41 col0, COUNT( * ) * + 80 + - - 34 * - - 13 + 26 * + CAST( - COUNT( * ) AS SIGNED ) + 14 AS col2
----
-41
510

skipif mysql # not compatible
query II rowsort label-4555
SELECT - 41 col0, COUNT ( * ) * + 80 + - - 34 * - - 13 + 26 * + CAST ( - COUNT ( * ) AS INTEGER ) + 14 AS col2
----
-41
510

query I rowsort
SELECT ALL 3 - + - 96 AS col0
----
99

query I rowsort
SELECT 77 * 3 AS col2
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4558
SELECT - 96 AS col1, CAST( + 71 AS SIGNED ) + + + MAX( ALL + 64 ) + - COUNT( * )
----
-96
134

skipif mysql # not compatible
query II rowsort label-4558
SELECT - 96 AS col1, CAST ( + 71 AS INTEGER ) + + + MAX ( ALL + 64 ) + - COUNT ( * )
----
-96
134

query II rowsort
SELECT ALL 52 AS col2, - 7
----
52
-7

query II rowsort
SELECT 57 col1, 25 + - COALESCE ( + 80, + 44 )
----
57
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL + 27 * + + 54 * - MAX( DISTINCT + - 45 ) * - - 53 col1
----
3477330

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL + 27 * + + 54 * - MAX ( DISTINCT + - 45 ) * - - 53 col1
----
3477330

onlyif mysql # aggregate syntax: 
query II rowsort label-4562
SELECT ALL 9, COUNT( * ) AS col0
----
9
1

skipif mysql # not compatible
query II rowsort label-4562
SELECT ALL 9, COUNT ( * ) AS col0
----
9
1

query I rowsort
SELECT 76 + + 72 AS col1
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4564
SELECT 86 + COUNT( * ) - + - 19 DIV + COALESCE ( 38, - 26, 72 * 22 * - 40 - - - 81 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-4564
SELECT 86 + COUNT ( * ) - + - 19 / + COALESCE ( 38, - 26, 72 * 22 * - 40 - - - 81 ) AS col2
----
87

query I rowsort
SELECT 96 + + 42 AS col0
----
138

query II rowsort
SELECT - 76, - 91 * 33 AS col1
----
-76
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL 60 + + COUNT( * ) + 38
----
99

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL 60 + + COUNT ( * ) + 38
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT 21 + + + 83 + + 26 * + + 0 * + 25 * - COUNT( DISTINCT - 10 ) * - 66
----
104

skipif mysql # not compatible
query I rowsort label-4568
SELECT 21 + + + 83 + + 26 * + + 0 * + 25 * - COUNT ( DISTINCT - 10 ) * - 66
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT DISTINCT - - 27 * - 20 + - + COUNT( * ) AS col2
----
-541

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT - - 27 * - 20 + - + COUNT ( * ) AS col2
----
-541

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL - 15 * + MAX( + + 69 ) + COUNT( * ) AS col0
----
-1034

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL - 15 * + MAX ( + + 69 ) + COUNT ( * ) AS col0
----
-1034

query I rowsort
SELECT 7 + + - 81
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4572
SELECT + 2 * - - 32 DIV - COUNT( * ) + + ( + 13 ) - 96 DIV - 55 + + ( - + 41 ) - - + 59
----
-32

skipif mysql # not compatible
query I rowsort label-4572
SELECT + 2 * - - 32 / - COUNT ( * ) + + ( + 13 ) - 96 / - 55 + + ( - + 41 ) - - + 59
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4573
SELECT DISTINCT - 66 * - COALESCE ( - 32, 11 ) * + COUNT( * ) * + - CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT - 66 * - COALESCE ( - 32, 11 ) * + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4574
SELECT ALL - - 63 * + COUNT( * ) * COUNT( * ) * + 72 - - 7 + CASE - 35 WHEN - - 19 * - 23 THEN + 33 - + CAST( NULL AS SIGNED ) ELSE NULL END * NULLIF ( - ( 80 ) * 45, CASE + 6 WHEN + 48 / + COALESCE ( + 19, - 21 ) THEN COUNT( * ) END * + 41 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL - - 63 * + COUNT ( * ) * COUNT ( * ) * + 72 - - 7 + CASE - 35 WHEN - - 19 * - 23 THEN + 33 - + CAST ( NULL AS INTEGER ) ELSE NULL END * NULLIF ( - ( 80 ) * 45, CASE + 6 WHEN + 48 / + COALESCE ( + 19, - 21 ) THEN COUNT ( * ) END * + 41 ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4575
SELECT - 63 * CAST( + 47 AS SIGNED ) + + 29 DIV - 35
----
-2961

skipif mysql # not compatible
query I rowsort label-4575
SELECT - 63 * CAST ( + 47 AS INTEGER ) + + 29 / - 35
----
-2961

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4576
SELECT - + COALESCE ( + ( - - 12 ), 38 - - + 43, + 27 ) DIV - COALESCE ( + + CAST( - 60 AS SIGNED ), - CAST( - 43 AS SIGNED ) ) + + 94
----
94

skipif mysql # not compatible
query I rowsort label-4576
SELECT - + COALESCE ( + ( - - 12 ), 38 - - + 43, + 27 ) / - COALESCE ( + + CAST ( - 60 AS INTEGER ), - CAST ( - 43 AS INTEGER ) ) + + 94
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4577
SELECT + 76 DIV SUM( 52 ) + + + 99 DIV + NULLIF ( + 29, ( 62 ) )
----
4

skipif mysql # not compatible
query I rowsort label-4577
SELECT + 76 / SUM ( 52 ) + + + 99 / + NULLIF ( + 29, ( 62 ) )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4578
SELECT + ( - + 20 ) DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-4578
SELECT + ( - + 20 ) / 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT DISTINCT - 43 * 68 + - 63 + - - COUNT( * )
----
-2986

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT - 43 * 68 + - 63 + - - COUNT ( * )
----
-2986

query II rowsort
SELECT 58, + 50 AS col2
----
58
50

query I rowsort
SELECT ALL + + 68 + + 55 AS col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT CASE 57 WHEN + 75 * 73 * - 89 THEN + + 42 WHEN + COUNT( * ) THEN - 71 * - 89 + - 24 * + - 40 * 78 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT CASE 57 WHEN + 75 * 73 * - 89 THEN + + 42 WHEN + COUNT ( * ) THEN - 71 * - 89 + - 24 * + - 40 * 78 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT ALL - CAST( - - 47 AS SIGNED ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL - CAST ( - - 47 AS INTEGER ) col1
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-4584
SELECT DISTINCT 78 + + + 49 AS col2, COUNT( + - 16 ) + - 22
----
127
-21

skipif mysql # not compatible
query II rowsort label-4584
SELECT DISTINCT 78 + + + 49 AS col2, COUNT ( + - 16 ) + - 22
----
127
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT ALL - COALESCE ( + 3, - CAST( NULL AS SIGNED ) + ( - CASE 40 WHEN + 10 THEN NULL WHEN + 32 THEN NULL ELSE ( + CAST( NULL AS SIGNED ) ) END ) ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL - COALESCE ( + 3, - CAST ( NULL AS INTEGER ) + ( - CASE 40 WHEN + 10 THEN NULL WHEN + 32 THEN NULL ELSE ( + CAST ( NULL AS INTEGER ) ) END ) ) AS col1
----
-3

query II rowsort
SELECT + + 87, ( - 22 ) AS col2
----
87
-22

query I rowsort
SELECT - 79 + 37
----
-42

query I rowsort
SELECT 35 * - + 17
----
-595

query I rowsort
SELECT ALL + - 1 * - + 4
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4590
SELECT - ( + 27 ) + ( - + COUNT( * ) ) AS col1, - 55
----
-28
-55

skipif mysql # not compatible
query II rowsort label-4590
SELECT - ( + 27 ) + ( - + COUNT ( * ) ) AS col1, - 55
----
-28
-55

query II rowsort
SELECT + 62 - + + NULLIF ( + ( + 61 ), + + ( - ( + 90 ) ) ) AS col1, 73 AS col0
----
1
73

query I rowsort
SELECT 51 * CASE - + 89 WHEN - 50 - + 76 + - COALESCE ( + 50, + 38 + + 77, - 99 * ( 7 ) * + 78 + NULLIF ( 49, 75 ) ) / 20 THEN NULL ELSE - 3 END * 76 + - ( + 88 ) AS col1
----
-11716

query I rowsort
SELECT - ( + + 24 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4594
SELECT ALL - + 88 - + COALESCE ( CAST( 86 AS SIGNED ), + 24 * + + MAX( - COALESCE ( - 40, - 15 ) ) - - COUNT( * ) DIV - + COUNT( * ) + 10 * 36 )
----
-174

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL - + 88 - + COALESCE ( CAST ( 86 AS INTEGER ), + 24 * + + MAX ( - COALESCE ( - 40, - 15 ) ) - - COUNT ( * ) / - + COUNT ( * ) + 10 * 36 )
----
-174

query I rowsort
SELECT ALL + 95 * - 16 AS col2
----
-1520

query I rowsort
SELECT - ( - 67 ) + 29 * + 69
----
2068

query II rowsort
SELECT DISTINCT + 13 * - 66, 91 * - 80 + 56 * + + 19 col2
----
-858
-6216

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT DISTINCT COALESCE ( + + 11, + COUNT( + 47 ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT COALESCE ( + + 11, + COUNT ( + 47 ) ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT ALL CASE - 38 WHEN - + COUNT( DISTINCT - 31 ) + - 30 + + COUNT( * ) THEN 88 WHEN + + 80 THEN + 16 WHEN - ( - 9 ) THEN - ( 31 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL CASE - 38 WHEN - + COUNT ( DISTINCT - 31 ) + - 30 + + COUNT ( * ) THEN 88 WHEN + + 80 THEN + 16 WHEN - ( - 9 ) THEN - ( 31 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT ALL MAX( DISTINCT 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL MAX ( DISTINCT 75 ) AS col0
----
75

query II rowsort
SELECT - 55 * + 97 AS col0, 12
----
-5335
12

onlyif mysql # aggregate syntax: 
query II rowsort label-4602
SELECT DISTINCT MIN( ALL + - 18 ) AS col1, - 48
----
-18
-48

skipif mysql # not compatible
query II rowsort label-4602
SELECT DISTINCT MIN ( ALL + - 18 ) AS col1, - 48
----
-18
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT DISTINCT MAX( - + 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT MAX ( - + 42 ) AS col2
----
-42

query I rowsort
SELECT ALL ( - ( - 10 ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT DISTINCT COALESCE ( - 58, - + 34 * - 67 ) * + + 40 - + 62 * - SUM( - 74 )
----
-6908

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT COALESCE ( - 58, - + 34 * - 67 ) * + + 40 - + 62 * - SUM ( - 74 )
----
-6908

query I rowsort
SELECT DISTINCT 7 + + 97 - - ( 80 )
----
184

query I rowsort
SELECT DISTINCT - 51 + - 51 + - 10
----
-112

query I rowsort
SELECT DISTINCT + ( - + 90 ) + 95 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4609
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - COUNT( * ) + - 75 * - + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) + - 75 * - + 93
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT DISTINCT + 79 * - 73 * + + NULLIF ( 28, - - CAST( NULL AS SIGNED ) ) col1
----
-161476

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT + 79 * - 73 * + + NULLIF ( 28, - - CAST ( NULL AS INTEGER ) ) col1
----
-161476

query I rowsort
SELECT + 99 * + 99 * + 90
----
882090

query I rowsort
SELECT - 38 - - + ( - ( + 51 ) ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL COUNT( ALL - 42 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL COUNT ( ALL - 42 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4614
SELECT + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) * + + 67 + - - 73 + MAX( ALL - 32 ) * + 27 + - ( + 74 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + + 67 + - - 73 + MAX ( ALL - 32 ) * + 27 + - ( + 74 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4615
SELECT + CAST( + - CAST( 77 AS SIGNED ) AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-4615
SELECT + CAST ( + - CAST ( 77 AS INTEGER ) AS INTEGER )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL 66 * - MAX( + 16 ) + 23
----
-1033

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL 66 * - MAX ( + 16 ) + 23
----
-1033

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4617
SELECT DISTINCT 23 / - + ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT 23 / - + ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4618
SELECT DISTINCT - + 34 * + 84 - + - NULLIF ( + 77, + 52 ) * - ( + CAST( NULL AS SIGNED ) ) AS col2, 53 * + 78 - - 52 - + 79 + 36 - - COUNT( * ) AS col0
----
NULL
4144

skipif mysql # not compatible
query II rowsort label-4618
SELECT DISTINCT - + 34 * + 84 - + - NULLIF ( + 77, + 52 ) * - ( + CAST ( NULL AS INTEGER ) ) AS col2, 53 * + 78 - - 52 - + 79 + 36 - - COUNT ( * ) AS col0
----
NULL
4144

query II rowsort
SELECT + 10 + + 9 AS col0, + 15 - + 33 AS col2
----
19
-18

query I rowsort
SELECT DISTINCT + - 35 * + 30 + 25 - - + 41 + 76 * 11 - + 14 AS col1
----
-162

query I rowsort
SELECT DISTINCT 28 * - 79 - - 44 + - - 89 * + 67 AS col2
----
3795

query I rowsort
SELECT + 68 * + - 24 * - 27
----
44064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4623
SELECT + 37 * + + MAX( ALL - 19 ) + - CAST( NULL AS SIGNED ) * - 58 AS col2, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4623
SELECT + 37 * + + MAX ( ALL - 19 ) + - CAST ( NULL AS INTEGER ) * - 58 AS col2, COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT ALL - 60 * - + 45 * - COALESCE ( 99, - 56 + + 39 * + 88 ) AS col0
----
-267300

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT - NULLIF ( + CASE + - COUNT( * ) WHEN + 83 THEN NULL WHEN ( + MAX( - 40 ) ) THEN - - 98 ELSE NULL END, + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT - NULLIF ( + CASE + - COUNT ( * ) WHEN + 83 THEN NULL WHEN ( + MAX ( - 40 ) ) THEN - - 98 ELSE NULL END, + 40 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT + 44 * 38 + - 76 - CASE + 49 WHEN + - COUNT( * ) THEN NULL WHEN + 74 + + 95 THEN NULL WHEN - NULLIF ( + 32, - 47 ) THEN 41 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4626
SELECT + 44 * 38 + - 76 - CASE + 49 WHEN + - COUNT ( * ) THEN NULL WHEN + 74 + + 95 THEN NULL WHEN - NULLIF ( + 32, - 47 ) THEN 41 END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4627
SELECT - CAST( + 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4627
SELECT - CAST ( + 1 AS INTEGER )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4628
SELECT - - 74 + 12 AS col0, NULLIF ( 26, - NULLIF ( - 12, + CAST( NULL AS DECIMAL ) ) ) DIV - 6 AS col2
----
86
-4

skipif mysql # not compatible
query II rowsort label-4628
SELECT - - 74 + 12 AS col0, NULLIF ( 26, - NULLIF ( - 12, + CAST ( NULL AS REAL ) ) ) / - 6 AS col2
----
86
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-4629
SELECT DISTINCT 69 * - 73 * + 37 + - 25 + 73, 29 DIV + - 9 AS col2
----
-186321
-3

skipif mysql # not compatible
query II rowsort label-4629
SELECT DISTINCT 69 * - 73 * + 37 + - 25 + 73, 29 / + - 9 AS col2
----
-186321
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT + ( - COUNT( * ) ) * + 7
----
-7

skipif mysql # not compatible
query I rowsort label-4630
SELECT + ( - COUNT ( * ) ) * + 7
----
-7

query I rowsort
SELECT + ( + 54 ) AS col1
----
54

query II rowsort
SELECT ALL + 22 AS col1, - 66
----
22
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4633
SELECT + ( + + SUM( - + 71 ) ) * - 92 * CAST( - COUNT( * ) AS SIGNED ) col0
----
-6532

skipif mysql # not compatible
query I rowsort label-4633
SELECT + ( + + SUM ( - + 71 ) ) * - 92 * CAST ( - COUNT ( * ) AS INTEGER ) col0
----
-6532

query I rowsort
SELECT - 38 * - ( ( + 15 ) ) * 98
----
55860

onlyif mysql # aggregate syntax: 
query II rowsort label-4635
SELECT COUNT( * ) AS col0, + CASE + 18 WHEN + 73 + - 52 THEN - 92 WHEN NULLIF ( - - 99, + - 56 * + 68 ) THEN - COUNT( * ) WHEN + - 71 THEN NULL END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4635
SELECT COUNT ( * ) AS col0, + CASE + 18 WHEN + 73 + - 52 THEN - 92 WHEN NULLIF ( - - 99, + - 56 * + 68 ) THEN - COUNT ( * ) WHEN + - 71 THEN NULL END
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT DISTINCT MIN( DISTINCT - - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT MIN ( DISTINCT - - 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT MIN( ALL + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-4637
SELECT MIN ( ALL + 89 )
----
89

query I rowsort
SELECT - 8 * + ( - 29 )
----
232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4639
SELECT - CAST( - 53 AS SIGNED ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4639
SELECT - CAST ( - 53 AS INTEGER ) AS col2
----
53

query I rowsort
SELECT - 96 - - 19
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT DISTINCT + 92 + COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT + 92 + COUNT ( * ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT ALL - ( + 73 ) + + + MAX( DISTINCT - 61 ) AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL - ( + 73 ) + + + MAX ( DISTINCT - 61 ) AS col2
----
-134

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4643
SELECT - 72 * + 72 * + 35 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT - 72 * + 72 * + 35 * - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT ALL 78 * - - COUNT( * ) col0
----
78

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL 78 * - - COUNT ( * ) col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4645
SELECT 90 AS col1, 10 + COUNT( * )
----
90
11

skipif mysql # not compatible
query II rowsort label-4645
SELECT 90 AS col1, 10 + COUNT ( * )
----
90
11

query II rowsort
SELECT 25 AS col0, ( + 0 ) + 73 AS col2
----
25
73

query I rowsort
SELECT + 36 + 14 AS col2
----
50

query I rowsort
SELECT - 42 * + 78 * - 65 AS col2
----
212940

query I rowsort
SELECT ALL ( 74 ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT - + 2 + + COUNT( * ) - - + 32 * 65
----
2079

skipif mysql # not compatible
query I rowsort label-4650
SELECT - + 2 + + COUNT ( * ) - - + 32 * 65
----
2079

query II rowsort
SELECT - 98 AS col2, - 0 AS col1
----
-98
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4652
SELECT - - COUNT( * ) + COUNT( + 61 ) + + - CAST( NULL AS SIGNED ), - COUNT( * ) * + 68 * + 23 AS col1
----
NULL
-1564

skipif mysql # not compatible
query II rowsort label-4652
SELECT - - COUNT ( * ) + COUNT ( + 61 ) + + - CAST ( NULL AS INTEGER ), - COUNT ( * ) * + 68 * + 23 AS col1
----
NULL
-1564

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT - - 21 DIV + ( 53 )
----
0

skipif mysql # not compatible
query I rowsort label-4653
SELECT - - 21 / + ( 53 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4654
SELECT - 58 * 33 DIV 42 * + + 6 AS col1
----
-270

skipif mysql # not compatible
query I rowsort label-4654
SELECT - 58 * 33 / 42 * + + 6 AS col1
----
-270

query I rowsort
SELECT ALL + + 34 + + 62
----
96

query I rowsort
SELECT ALL + 25 * 31 AS col2
----
775

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL 16 - - COUNT( * ) col1
----
17

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL 16 - - COUNT ( * ) col1
----
17

query II rowsort
SELECT ALL - 37 AS col2, + ( - + 22 ) AS col1
----
-37
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT + - COALESCE ( - 67, 76 * - 1 * 46 + 31 + - COUNT( * ) - - 77 * + 10, - - 17 + + + ( 14 ) )
----
67

skipif mysql # not compatible
query I rowsort label-4659
SELECT + - COALESCE ( - 67, 76 * - 1 * 46 + 31 + - COUNT ( * ) - - 77 * + 10, - - 17 + + + ( 14 ) )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT - - 75 * MAX( + 2 ) AS col1
----
150

skipif mysql # not compatible
query I rowsort label-4660
SELECT - - 75 * MAX ( + 2 ) AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT + COALESCE ( - - 31, - MIN( ALL COALESCE ( - - 4, - 67 ) ) )
----
31

skipif mysql # not compatible
query I rowsort label-4661
SELECT + COALESCE ( - - 31, - MIN ( ALL COALESCE ( - - 4, - 67 ) ) )
----
31

query II rowsort
SELECT + 71 AS col1, 55
----
71
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL + + CASE + + 99 WHEN + + MIN( ALL - + 2 ) * + 6 + 39 + - - COUNT( * ) + - - 13 THEN NULL WHEN + COUNT( * ) THEN - ( + 79 ) + - 34 * 76 + 61 WHEN 44 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL + + CASE + + 99 WHEN + + MIN ( ALL - + 2 ) * + 6 + 39 + - - COUNT ( * ) + - - 13 THEN NULL WHEN + COUNT ( * ) THEN - ( + 79 ) + - 34 * 76 + 61 WHEN 44 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4664
SELECT + COUNT( * ), 29 * + CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4664
SELECT + COUNT ( * ), 29 * + CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4665
SELECT + - 20 * 92 DIV - 25
----
73

skipif mysql # not compatible
query I rowsort label-4665
SELECT + - 20 * 92 / - 25
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4666
SELECT - 75 * + COALESCE ( + - CASE - - 11 WHEN + COUNT( * ) THEN + - 34 * + 91 * 62 DIV SUM( DISTINCT + + ( - - 27 ) ) * - - CASE - 78 WHEN - 99 + - 18 THEN NULL WHEN + AVG ( - ( 52 ) ) * 98 THEN NULL ELSE 66 END + + ( 57 ) END, + 10 )
----
-750

skipif mysql # not compatible
query I rowsort label-4666
SELECT - 75 * + COALESCE ( + - CASE - - 11 WHEN + COUNT ( * ) THEN + - 34 * + 91 * 62 / SUM ( DISTINCT + + ( - - 27 ) ) * - - CASE - 78 WHEN - 99 + - 18 THEN NULL WHEN + AVG ( - ( 52 ) ) * 98 THEN NULL ELSE 66 END + + ( 57 ) END, + 10 )
----
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT + 49 + COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4667
SELECT + 49 + COUNT ( * ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT DISTINCT - SUM( DISTINCT 86 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT - SUM ( DISTINCT 86 ) AS col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4669
SELECT 42 DIV 39 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4669
SELECT 42 / 39 AS col0
----
1

query I rowsort
SELECT ALL 41 * + 17
----
697

query I rowsort
SELECT DISTINCT 15 * - - CASE - 67 WHEN + + 19 THEN NULL ELSE 6 END
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT DISTINCT - SUM( DISTINCT 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT - SUM ( DISTINCT 67 )
----
-67

query II rowsort
SELECT 77 + - - ( + - 92 ) + 60, - 2 AS col2
----
45
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4674
SELECT CAST( NULL AS SIGNED ) * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT CAST ( NULL AS INTEGER ) * - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT + 98 * + 71 * COUNT( * ) + 38 + 42 * - 92 AS col2
----
3132

skipif mysql # not compatible
query I rowsort label-4675
SELECT + 98 * + 71 * COUNT ( * ) + 38 + 42 * - 92 AS col2
----
3132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4676
SELECT CAST( NULL AS SIGNED ) - + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4676
SELECT CAST ( NULL AS INTEGER ) - + 29 AS col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 56, - 75 ) * - - ( + ( + 6 ) )
----
336

query I rowsort
SELECT + 4 * - 68 + - 81 AS col0
----
-353

onlyif mysql # aggregate syntax: 
query II rowsort label-4679
SELECT ALL COUNT( * ) + + 69 AS col2, 58 AS col0
----
70
58

skipif mysql # not compatible
query II rowsort label-4679
SELECT ALL COUNT ( * ) + + 69 AS col2, 58 AS col0
----
70
58

query II rowsort
SELECT 5 * - + 98 AS col2, - 53
----
-490
-53

query I rowsort
SELECT ALL 84 + - 15 + - 40 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT DISTINCT 43 + + - 79 - 64 * - 79 * + - COUNT( * ) col1
----
-5092

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT 43 + + - 79 - 64 * - 79 * + - COUNT ( * ) col1
----
-5092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4683
SELECT ALL MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + + COUNT( * ) - - 72 + CASE + 75 WHEN - 14 + + + 58 / + 81 THEN NULL ELSE - - COUNT( * ) END / + + COUNT( * ) * + 78 * CASE WHEN - 65 BETWEEN ( 35 ) AND + 42 THEN 88 / + CASE + 8 * + 37 WHEN + ( + NULLIF ( 42, + 9 ) ) / 54 + NULLIF ( CAST( 65 AS SIGNED ), 40 - ( - ( 11 ) ) ) THEN - 44 END + - 52 END + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) - - 72 + CASE + 75 WHEN - 14 + + + 58 / + 81 THEN NULL ELSE - - COUNT ( * ) END / + + COUNT ( * ) * + 78 * CASE WHEN - 65 BETWEEN ( 35 ) AND + 42 THEN 88 / + CASE + 8 * + 37 WHEN + ( + NULLIF ( 42, + 9 ) ) / 54 + NULLIF ( CAST ( 65 AS INTEGER ), 40 - ( - ( 11 ) ) ) THEN - 44 END + - 52 END + 56
----
NULL

query I rowsort
SELECT 31 + + + 27
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ( + COUNT( * ) ) + - 65 * - COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4685
SELECT ( + COUNT ( * ) ) + - 65 * - COUNT ( * ) AS col1
----
66

query I rowsort
SELECT ALL 7 * 65 AS col1
----
455

query I rowsort
SELECT 21 * 67 AS col1
----
1407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4688
SELECT ALL 24 * - NULLIF ( 26, - COUNT( * ) ) * - 3 + - 48 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL 24 * - NULLIF ( 26, - COUNT ( * ) ) * - 3 + - 48 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 82 + - - 89
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT ALL + - MIN( 97 ) - - 61 * - 22 * - - 56 + - MIN( + + 53 )
----
-75302

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL + - MIN ( 97 ) - - 61 * - 22 * - - 56 + - MIN ( + + 53 )
----
-75302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4691
SELECT DISTINCT - AVG ( + 39 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT - AVG ( + 39 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4692
SELECT ALL 17 * + + COUNT( * ) + - 62 DIV 32 DIV + ( - + 75 )
----
17

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL 17 * + + COUNT ( * ) + - 62 / 32 / + ( - + 75 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT - 37 - + 23 * + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT - 37 - + 23 * + COUNT ( * )
----
-60

query I rowsort
SELECT DISTINCT 44 * - 54
----
-2376

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4695
SELECT + CAST( NULL AS SIGNED ) * - 77 col1, 82
----
NULL
82

skipif mysql # not compatible
query II rowsort label-4695
SELECT + CAST ( NULL AS INTEGER ) * - 77 col1, 82
----
NULL
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4696
SELECT CAST( NULL AS DECIMAL ) * + COUNT( * ) + 72 + + CAST( NULL AS SIGNED ) + + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT CAST ( NULL AS REAL ) * + COUNT ( * ) + 72 + + CAST ( NULL AS INTEGER ) + + 7 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4697
SELECT - COALESCE ( - CAST( - - CASE COUNT( * ) WHEN + COUNT( * ) THEN + NULLIF ( 59, + 58 * 8 / + 97 * + 8 + - COALESCE ( - 55, - 83 ) + + CASE 54 + + 71 * COUNT( * ) WHEN - NULLIF ( COUNT( * ), 11 ) + CAST( NULL AS SIGNED ) THEN - AVG ( ALL + NULLIF ( - 96, - 8 * - 20 ) ) / COUNT( * ) WHEN - 9 * NULLIF ( + 87, COUNT( * ) + 10 * - 32 ) THEN + COUNT( * ) ELSE + 99 END ) - - 40 ELSE NULL END AS SIGNED ), 62 * + 72 )
----
99

skipif mysql # not compatible
query I rowsort label-4697
SELECT - COALESCE ( - CAST ( - - CASE COUNT ( * ) WHEN + COUNT ( * ) THEN + NULLIF ( 59, + 58 * 8 / + 97 * + 8 + - COALESCE ( - 55, - 83 ) + + CASE 54 + + 71 * COUNT ( * ) WHEN - NULLIF ( COUNT ( * ), 11 ) + CAST ( NULL AS INTEGER ) THEN - AVG ( ALL + NULLIF ( - 96, - 8 * - 20 ) ) / COUNT ( * ) WHEN - 9 * NULLIF ( + 87, COUNT ( * ) + 10 * - 32 ) THEN + COUNT ( * ) ELSE + 99 END ) - - 40 ELSE NULL END AS INTEGER ), 62 * + 72 )
----
99

query II rowsort
SELECT 41 - - + 60 AS col2, + 99 * + 76 AS col1
----
101
7524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4699
SELECT - NULLIF ( 14, COUNT( * ) * + - CAST( NULL AS SIGNED ) * - NULLIF ( 56, - + 30 + + + 83 ) + + MAX( DISTINCT CAST( NULL AS SIGNED ) ) * + - 56 DIV - 77 + - 37 + 82 * 49 ) + + 74 DIV - 24
----
-17

skipif mysql # not compatible
query I rowsort label-4699
SELECT - NULLIF ( 14, COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * - NULLIF ( 56, - + 30 + + + 83 ) + + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * + - 56 / - 77 + - 37 + 82 * 49 ) + + 74 / - 24
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4700
SELECT - - CAST( + CASE - MAX( ALL + 14 ) WHEN + CAST( - 78 AS SIGNED ) THEN + - 25 WHEN + 75 + - 40 THEN 4 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT - - CAST ( + CASE - MAX ( ALL + 14 ) WHEN + CAST ( - 78 AS INTEGER ) THEN + - 25 WHEN + 75 + - 40 THEN 4 END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4701
SELECT ALL + ( 85 ) DIV + - COUNT( * ) + - - 44
----
-41

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL + ( 85 ) / + - COUNT ( * ) + - - 44
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-4702
SELECT - 28 + - 2 + - + 96 DIV - 40
----
-28

skipif mysql # not compatible
query I rowsort label-4702
SELECT - 28 + - 2 + - + 96 / - 40
----
-28

query I rowsort
SELECT + 23 * + 46 - + - 18 + + - 1 + + 71 * - + 71 * + 87 AS col1
----
-437492

query I rowsort
SELECT ALL - COALESCE ( 63, 80 )
----
-63

query I rowsort
SELECT + NULLIF ( + 41, 68 )
----
41

query I rowsort
SELECT ALL + 36 + + - ( - 26 )
----
62

query I rowsort
SELECT ALL - 82 + - 96 + + + 88 * - 33 + + ( + 21 ) + - 2 AS col0
----
-3063

query I rowsort
SELECT 86 * - 24 AS col0
----
-2064

query I rowsort
SELECT 0 * + 48 + + 90 col2
----
90

query I rowsort
SELECT DISTINCT - 64 + - 53 col0
----
-117

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4711
SELECT DISTINCT CAST( NULL AS DECIMAL ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT CAST ( NULL AS REAL ) + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4712
SELECT ALL - CASE CAST( + CASE 18 WHEN + - CASE + 89 WHEN + 19 + CAST( ( 99 ) AS SIGNED ) + NULLIF ( + 39, + CAST( NULL AS SIGNED ) * 88 ) THEN NULL WHEN - 27 + + 21 THEN ( MAX( ( 4 ) ) ) ELSE - 82 * 74 END THEN NULL WHEN + COUNT( ALL 53 ) + + 25 THEN - 17 + - 74 / + COUNT( * ) END AS SIGNED ) WHEN CASE 0 WHEN COUNT( * ) + - CAST( 86 AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN MAX( DISTINCT - 64 ) * 41 END * COUNT( * ) THEN + 1 WHEN CAST( 61 AS SIGNED ) THEN 69 * COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL - CASE CAST ( + CASE 18 WHEN + - CASE + 89 WHEN + 19 + CAST ( ( 99 ) AS INTEGER ) + NULLIF ( + 39, + CAST ( NULL AS INTEGER ) * 88 ) THEN NULL WHEN - 27 + + 21 THEN ( MAX ( ( 4 ) ) ) ELSE - 82 * 74 END THEN NULL WHEN + COUNT ( ALL 53 ) + + 25 THEN - 17 + - 74 / + COUNT ( * ) END AS INTEGER ) WHEN CASE 0 WHEN COUNT ( * ) + - CAST ( 86 AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN MAX ( DISTINCT - 64 ) * 41 END * COUNT ( * ) THEN + 1 WHEN CAST ( 61 AS INTEGER ) THEN 69 * COUNT ( * ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT 2 - - 34 + + COUNT( * ) * - + 61 + 97 + - 73 + + 67
----
66

skipif mysql # not compatible
query I rowsort label-4713
SELECT 2 - - 34 + + COUNT ( * ) * - + 61 + 97 + - 73 + + 67
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4714
SELECT 38 * 25 - + + 59 DIV - 9
----
956

skipif mysql # not compatible
query I rowsort label-4714
SELECT 38 * 25 - + + 59 / - 9
----
956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4715
SELECT COUNT( * ) DIV 29 * - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4715
SELECT COUNT ( * ) / 29 * - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4716
SELECT ALL ( - 59 ) * - 87 * 58 * - 97, COUNT( * ) AS col1
----
-28878258
1

skipif mysql # not compatible
query II rowsort label-4716
SELECT ALL ( - 59 ) * - 87 * 58 * - 97, COUNT ( * ) AS col1
----
-28878258
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT ALL 83 * + CASE - - 41 WHEN - 54 + 10 * - MAX( ALL 66 ) THEN 5 WHEN 3 / - - 23 + + - NULLIF ( + + 9, - - COUNT( * ) ) * + 5 * 44 + + 51 THEN + 68 * COUNT( DISTINCT 73 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL 83 * + CASE - - 41 WHEN - 54 + 10 * - MAX ( ALL 66 ) THEN 5 WHEN 3 / - - 23 + + - NULLIF ( + + 9, - - COUNT ( * ) ) * + 5 * 44 + + 51 THEN + 68 * COUNT ( DISTINCT 73 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT 66 * + 96 * - - CASE - CAST( NULL AS SIGNED ) WHEN + + 23 + + + 7 * - - 38 + + 89 THEN + - 25 WHEN 99 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT 66 * + 96 * - - CASE - CAST ( NULL AS INTEGER ) WHEN + + 23 + + + 7 * - - 38 + + 89 THEN + - 25 WHEN 99 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT 78, + 41 AS col2
----
78
41

query I rowsort
SELECT ALL + ( + ( - 23 ) ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL - COUNT( - 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL - COUNT ( - 25 )
----
-1

query I rowsort
SELECT - 20 + + + 75 * - + 24 AS col0
----
-1820

query I rowsort
SELECT 53 * + - 59
----
-3127

query I rowsort
SELECT 56 + + 76 AS col1
----
132

query I rowsort
SELECT - COALESCE ( + - 95, + ( 76 ) * 73 * + 15 * - - ( - 76 ) ) - 40
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT CASE + 4 WHEN + 31 THEN - 22 + + - CASE - MAX( - 91 ) WHEN - 35 - - + 93 THEN - 45 * + - 97 WHEN - + 68 / COUNT( * ) + + COUNT( * ) THEN NULL END ELSE NULL END * COUNT( * ) + - 2 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT CASE + 4 WHEN + 31 THEN - 22 + + - CASE - MAX ( - 91 ) WHEN - 35 - - + 93 THEN - 45 * + - 97 WHEN - + 68 / COUNT ( * ) + + COUNT ( * ) THEN NULL END ELSE NULL END * COUNT ( * ) + - 2 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT + 48 + - - COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4727
SELECT + 48 + - - COUNT ( * ) AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4728
SELECT + - 92 * - - 7 - 52 + 63 DIV - COUNT( * ) AS col0, 24 + + 69
----
-759
93

skipif mysql # not compatible
query II rowsort label-4728
SELECT + - 92 * - - 7 - 52 + 63 / - COUNT ( * ) AS col0, 24 + + 69
----
-759
93

query I rowsort
SELECT DISTINCT + 81 * + 25 - - - 74 AS col1
----
1951

query I rowsort
SELECT ALL - ( + + ( - 83 ) ) AS col0
----
83

onlyif mysql # DIV for integer division: 
query II rowsort label-4731
SELECT ALL + 48 + - + 26 * ( 85 ) DIV - 93 AS col2, 9 AS col2
----
71
9

skipif mysql # not compatible
query II rowsort label-4731
SELECT ALL + 48 + - + 26 * ( 85 ) / - 93 AS col2, 9 AS col2
----
71
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT + - 43 + - - 39 DIV - - 36 - + 51 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4732
SELECT + - 43 + - - 39 / - - 36 - + 51 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT - MAX( ALL ( + 26 ) ) * 45
----
-1170

skipif mysql # not compatible
query I rowsort label-4733
SELECT - MAX ( ALL ( + 26 ) ) * 45
----
-1170

query II rowsort
SELECT + 90 AS col2, 84 AS col2
----
90
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT DISTINCT + + MAX( 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT + + MAX ( 83 ) AS col0
----
83

query I rowsort
SELECT - 33 * + - 39
----
1287

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT CASE + + COUNT( ALL + - 85 ) WHEN 85 THEN - - 62 WHEN + 0 * + 37 + - + 85 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT CASE + + COUNT ( ALL + - 85 ) WHEN 85 THEN - - 62 WHEN + 0 * + 37 + - + 85 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 9 * + 19
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT ALL COUNT( * ) * - - 22 + COALESCE ( + + 11, - + SUM( - 22 ) ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL COUNT ( * ) * - - 22 + COALESCE ( + + 11, - + SUM ( - 22 ) ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT COALESCE ( NULLIF ( - + 82, + 72 ), - - SUM( + 22 ) )
----
-82

skipif mysql # not compatible
query I rowsort label-4740
SELECT COALESCE ( NULLIF ( - + 82, + 72 ), - - SUM ( + 22 ) )
----
-82

query II rowsort
SELECT ALL + 97 * 55 * - + 64 + + 23 + - 79 * - - 44, - 15 * + - 64 AS col1
----
-344893
960

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT - 97 - + 79 + - + COUNT( * ) - - + 63 AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-4742
SELECT - 97 - + 79 + - + COUNT ( * ) - - + 63 AS col2
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4743
SELECT DISTINCT NULLIF ( - - 76, + - 58 * - 71 DIV - + 50 * + - ( 79 ) * - 19 * + COUNT( * ) ) DIV 19 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT NULLIF ( - - 76, + - 58 * - 71 / - + 50 * + - ( 79 ) * - 19 * + COUNT ( * ) ) / 19 AS col2
----
4

query I rowsort
SELECT 5 * + 55 + 55 + + - 37
----
293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4745
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 97 / 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 97 / 26 AS col2
----
NULL

query I rowsort
SELECT ALL + 20 * + 37 + + 9
----
749

query I rowsort
SELECT + 61 + + 34 AS col2
----
95

query I rowsort
SELECT COALESCE ( - - CASE - + 25 WHEN - - 66 THEN + 37 + - 86 ELSE NULL END, 56 ) AS col2
----
56

query I rowsort
SELECT - 37 + + + 85 + + 10 + 93 AS col2
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4750
SELECT - COUNT( * ) - - 87 + - + 59 DIV + 23 + 68 + - COALESCE ( - + COUNT( * ), + 59 DIV + - SUM( + + 1 ) + + - 12 ) DIV - 94 + 64 + - - 86 * - SUM( - - 85 ) * - 3 * - 69 * 96
----
-145264104

skipif mysql # not compatible
query I rowsort label-4750
SELECT - COUNT ( * ) - - 87 + - + 59 / + 23 + 68 + - COALESCE ( - + COUNT ( * ), + 59 / + - SUM ( + + 1 ) + + - 12 ) / - 94 + 64 + - - 86 * - SUM ( - - 85 ) * - 3 * - 69 * 96
----
-145264104

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT DISTINCT + COUNT( * ) * - MIN( - 50 ) * + 37 * + 11 * + NULLIF ( - 71, + - ( - - 46 ) ) AS col2
----
-1444850

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT + COUNT ( * ) * - MIN ( - 50 ) * + 37 * + 11 * + NULLIF ( - 71, + - ( - - 46 ) ) AS col2
----
-1444850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4752
SELECT - 19 - - 92 + - + 43 * CASE + - 78 WHEN + + 75 + + 42 THEN NULL ELSE - + MAX( DISTINCT 87 ) DIV 91 * - - 51 * 43 END
----
73

skipif mysql # not compatible
query I rowsort label-4752
SELECT - 19 - - 92 + - + 43 * CASE + - 78 WHEN + + 75 + + 42 THEN NULL ELSE - + MAX ( DISTINCT 87 ) / 91 * - - 51 * 43 END
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4753
SELECT ALL + 92, 17 * + 53 * MIN( + + ( - 71 ) ) AS col1
----
92
-63971

skipif mysql # not compatible
query II rowsort label-4753
SELECT ALL + 92, 17 * + 53 * MIN ( + + ( - 71 ) ) AS col1
----
92
-63971

query II rowsort
SELECT ALL + ( 91 ) AS col2, 20
----
91
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4755
SELECT - 89 + NULLIF ( + COALESCE ( - COUNT( * ), - 94 * + - CAST( + 77 AS SIGNED ) / - CAST( NULL AS SIGNED ) + 9 + - 68 ), - + 10 ) * + CAST( NULL AS SIGNED ) * - 32 / 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT - 89 + NULLIF ( + COALESCE ( - COUNT ( * ), - 94 * + - CAST ( + 77 AS INTEGER ) / - CAST ( NULL AS INTEGER ) + 9 + - 68 ), - + 10 ) * + CAST ( NULL AS INTEGER ) * - 32 / 6 AS col0
----
NULL

query I rowsort
SELECT - 83 + + - 79 col0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL COALESCE ( - - COUNT( * ), - 40, + 29 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL COALESCE ( - - COUNT ( * ), - 40, + 29 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL MAX( DISTINCT - - 29 ) * + + 60 AS col2
----
1740

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL MAX ( DISTINCT - - 29 ) * + + 60 AS col2
----
1740

query I rowsort
SELECT - 96 * 0 * + + 28
----
0

query I rowsort
SELECT + 65 + 47 * 47 AS col2
----
2274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4761
SELECT ALL + AVG ( + CAST( NULL AS SIGNED ) ) * - + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL + AVG ( + CAST ( NULL AS INTEGER ) ) * - + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT - MAX( - 74 )
----
74

skipif mysql # not compatible
query I rowsort label-4762
SELECT - MAX ( - 74 )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4763
SELECT + - ( + - 30 ) + CAST( NULL AS SIGNED ) + + ( + MAX( DISTINCT - + 76 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT + - ( + - 30 ) + CAST ( NULL AS INTEGER ) + + ( + MAX ( DISTINCT - + 76 ) )
----
NULL

query I rowsort
SELECT - - 96 * + 54 AS col1
----
5184

query II rowsort
SELECT - - 38 * 36, - 75 + + 75 col2
----
1368
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL - - 35 * - MAX( - - 38 ) AS col2
----
-1330

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL - - 35 * - MAX ( - - 38 ) AS col2
----
-1330

query I rowsort
SELECT - - ( + 45 )
----
45

query I rowsort
SELECT + NULLIF ( + 20, 81 )
----
20

query I rowsort
SELECT ALL + 41 * + ( + 35 )
----
1435

onlyif mysql # aggregate syntax: 
query II rowsort label-4770
SELECT ALL - - 60 + 44 AS col0, + 51 + - + MIN( + 2 ) col1
----
104
49

skipif mysql # not compatible
query II rowsort label-4770
SELECT ALL - - 60 + 44 AS col0, + 51 + - + MIN ( + 2 ) col1
----
104
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT ALL COUNT( 94 ) + + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL COUNT ( 94 ) + + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4772
SELECT - 58 col0, - 95 * - + COUNT( * ) * + 3 + - SUM( DISTINCT + 87 )
----
-58
198

skipif mysql # not compatible
query II rowsort label-4772
SELECT - 58 col0, - 95 * - + COUNT ( * ) * + 3 + - SUM ( DISTINCT + 87 )
----
-58
198

query II rowsort
SELECT ALL 19 AS col1, - 36 AS col2
----
19
-36

query I rowsort
SELECT - ( - 6 ) AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4775
SELECT DISTINCT - 3 DIV MIN( ALL + + 56 ) + + 74 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT - 3 / MIN ( ALL + + 56 ) + + 74 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL + MIN( + - ( 91 ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL + MIN ( + - ( 91 ) ) AS col1
----
-91

query I rowsort
SELECT + ( 76 ) AS col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4778
SELECT - 78 DIV + 54 col1
----
-1

skipif mysql # not compatible
query I rowsort label-4778
SELECT - 78 / + 54 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT + 90 * - COUNT( DISTINCT + 88 ) * + + 83
----
-7470

skipif mysql # not compatible
query I rowsort label-4779
SELECT + 90 * - COUNT ( DISTINCT + 88 ) * + + 83
----
-7470

onlyif mysql # DIV for integer division: 
query II rowsort label-4780
SELECT ALL - 75 DIV + 6 AS col0, - ( + + 95 ) AS col0
----
-12
-95

skipif mysql # not compatible
query II rowsort label-4780
SELECT ALL - 75 / + 6 AS col0, - ( + + 95 ) AS col0
----
-12
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4781
SELECT ALL + COALESCE ( + CAST( NULL AS SIGNED ), - 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL + COALESCE ( + CAST ( NULL AS INTEGER ), - 6 ) AS col0
----
-6

query I rowsort
SELECT ALL + 84 * + 62 AS col1
----
5208

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT + SUM( ALL + 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4783
SELECT + SUM ( ALL + 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT - 79 * + 65 - - COUNT( * ) * - ( ( + 17 ) ) + 34 + 78 + 10 AS col1
----
-5030

skipif mysql # not compatible
query I rowsort label-4784
SELECT - 79 * + 65 - - COUNT ( * ) * - ( ( + 17 ) ) + 34 + 78 + 10 AS col1
----
-5030

query I rowsort
SELECT - - 53 * - 88 - - 16 + - 98 + - + NULLIF ( - + 1, + ( 0 ) )
----
-4745

query II rowsort
SELECT 24 * 45 AS col0, 23
----
1080
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT MAX( ALL 16 ) * 45 + - + 70 AS col1
----
650

skipif mysql # not compatible
query I rowsort label-4787
SELECT MAX ( ALL 16 ) * 45 + - + 70 AS col1
----
650

onlyif mysql # DIV for integer division: 
query I rowsort label-4788
SELECT ALL - 65 DIV + 65
----
-1

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL - 65 / + 65
----
-1

query I rowsort
SELECT DISTINCT - 54 + 79 * - + 61 AS col0
----
-4873

onlyif mysql # aggregate syntax: 
query II rowsort label-4790
SELECT - 66 * + 69 AS col0, + 92 * + COUNT( * ) AS col0
----
-4554
92

skipif mysql # not compatible
query II rowsort label-4790
SELECT - 66 * + 69 AS col0, + 92 * + COUNT ( * ) AS col0
----
-4554
92

query I rowsort
SELECT ALL - + 8 + 33 + 77 AS col2
----
102

query I rowsort
SELECT + 19 + - 86
----
-67

query II rowsort
SELECT + 2 - - 54 AS col0, 80 * - + 27
----
56
-2160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4794
SELECT NULLIF ( - - 61, + - COUNT( * ) + ( + 9 ) ) + + 53 + + CAST( NULL AS SIGNED ) + - 51 - NULLIF ( + + 56, - + 22 ) / + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4794
SELECT NULLIF ( - - 61, + - COUNT ( * ) + ( + 9 ) ) + + 53 + + CAST ( NULL AS INTEGER ) + - 51 - NULLIF ( + + 56, - + 22 ) / + 93
----
NULL

query I rowsort
SELECT ALL 50 - 85 - - 71 * - 63 * - 23 AS col2
----
102844

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT 15 * + - NULLIF ( - - ( + COUNT( * ) ), - 75 + - ( 59 ) * + 59 - COALESCE ( 81, + COUNT( - 97 ) ) )
----
-15

skipif mysql # not compatible
query I rowsort label-4796
SELECT 15 * + - NULLIF ( - - ( + COUNT ( * ) ), - 75 + - ( 59 ) * + 59 - COALESCE ( 81, + COUNT ( - 97 ) ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT DISTINCT - COALESCE ( + COUNT( * ), + COUNT( * ) ) - - 40 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + COUNT ( * ) ) - - 40 AS col1
----
39

query II rowsort
SELECT DISTINCT - 73 AS col1, 67 * - 8 AS col2
----
-73
-536

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT 42 * 60 + COUNT( * ) + - - 15 * + SUM( DISTINCT - - 33 ) AS col1
----
3016

skipif mysql # not compatible
query I rowsort label-4799
SELECT 42 * 60 + COUNT ( * ) + - - 15 * + SUM ( DISTINCT - - 33 ) AS col1
----
3016

query I rowsort
SELECT COALESCE ( - 74, + 32 ) * + + ( - 25 )
----
1850

onlyif mysql # DIV for integer division: 
query I rowsort label-4801
SELECT 79 DIV 64 + + 13 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4801
SELECT 79 / 64 + + 13 AS col2
----
14

query I rowsort
SELECT ALL 60 * - + 92
----
-5520

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT 40 * + COUNT( * ) * - 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4803
SELECT 40 * + COUNT ( * ) * - 0 AS col1
----
0

query I rowsort
SELECT 46 - + - 76 * 41 + 54 + 15 AS col2
----
3231

onlyif mysql # aggregate syntax: 
query II rowsort label-4805
SELECT ALL - COUNT( * ) AS col0, 13
----
-1
13

skipif mysql # not compatible
query II rowsort label-4805
SELECT ALL - COUNT ( * ) AS col0, 13
----
-1
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT + CASE + + 72 WHEN 83 * ( 79 ) * 67 + - + 48 THEN NULL WHEN + + 22 THEN - 81 END * + COUNT( * ) + - 66 + - NULLIF ( 12, - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT + CASE + + 72 WHEN 83 * ( 79 ) * 67 + - + 48 THEN NULL WHEN + + 22 THEN - 81 END * + COUNT ( * ) + - 66 + - NULLIF ( 12, - 91 )
----
NULL

query II rowsort
SELECT ALL - 91 AS col1, 50 AS col0
----
-91
50

query I rowsort
SELECT 36 + - 77 + - 85 AS col0
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4809
SELECT DISTINCT - 7 AS col0, + CAST( NULL AS SIGNED )
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-4809
SELECT DISTINCT - 7 AS col0, + CAST ( NULL AS INTEGER )
----
-7
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4810
SELECT NULLIF ( 5, - 29 ) + - ( + 67 ) * - 87 DIV + - COUNT( * ) - ( - 75 ) * - 16 AS col1
----
-7024

skipif mysql # not compatible
query I rowsort label-4810
SELECT NULLIF ( 5, - 29 ) + - ( + 67 ) * - 87 / + - COUNT ( * ) - ( - 75 ) * - 16 AS col1
----
-7024

query I rowsort
SELECT ALL 84 + - 56 - 61 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT + COUNT( ALL 23 ) + + COUNT( * ) * + 69
----
70

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT + COUNT ( ALL 23 ) + + COUNT ( * ) * + 69
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT DISTINCT - + ( + MIN( DISTINCT - 23 ) ) * + 82 AS col0
----
1886

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT - + ( + MIN ( DISTINCT - 23 ) ) * + 82 AS col0
----
1886

onlyif mysql # DIV for integer division: 
query I rowsort label-4814
SELECT ALL + + 72 + - ( + 88 ) - + 86 DIV - - 84 + + + 72 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL + + 72 + - ( + 88 ) - + 86 / - - 84 + + + 72 AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4815
SELECT NULLIF ( - - 96, + 80 * COALESCE ( + 0, - 49 ) - + 39 + COUNT( * ) + - 22 ) + - COALESCE ( 0, + - CAST( + 30 AS SIGNED ) + - + 78 + CASE - ( - 39 ) WHEN + - ( - MIN( ALL - 12 ) ) THEN NULL WHEN - 81 * 48 THEN NULL ELSE 18 END, 15 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4815
SELECT NULLIF ( - - 96, + 80 * COALESCE ( + 0, - 49 ) - + 39 + COUNT ( * ) + - 22 ) + - COALESCE ( 0, + - CAST ( + 30 AS INTEGER ) + - + 78 + CASE - ( - 39 ) WHEN + - ( - MIN ( ALL - 12 ) ) THEN NULL WHEN - 81 * 48 THEN NULL ELSE 18 END, 15 ) AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4816
SELECT - CAST( 39 AS SIGNED ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-4816
SELECT - CAST ( 39 AS INTEGER ) AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4817
SELECT + 64 + - 34 / ( - 64 ) / CAST( NULL AS SIGNED ) * - 74 AS col2, + 52 AS col2
----
NULL
52

skipif mysql # not compatible
query II rowsort label-4817
SELECT + 64 + - 34 / ( - 64 ) / CAST ( NULL AS INTEGER ) * - 74 AS col2, + 52 AS col2
----
NULL
52

query II rowsort
SELECT ALL + NULLIF ( 29, + 47 / + 90 + - - ( + 32 ) ) AS col0, + 65
----
29
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4819
SELECT - + 56, - 88 + + - 41 + + - COUNT( * ) * + 69 * ( 21 ) + + 60 AS col0
----
-56
-1518

skipif mysql # not compatible
query II rowsort label-4819
SELECT - + 56, - 88 + + - 41 + + - COUNT ( * ) * + 69 * ( 21 ) + + 60 AS col0
----
-56
-1518

onlyif mysql # DIV for integer division: 
query I rowsort label-4820
SELECT 0 + - 17 DIV + 27 * - + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4820
SELECT 0 + - 17 / + 27 * - + 72 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4821
SELECT 31 + + 67 + 9 * 67 + + MAX( + - COALESCE ( 46, - 85, + 31 ) ) AS col2, CAST( NULL AS SIGNED ) AS col2
----
655
NULL

skipif mysql # not compatible
query II rowsort label-4821
SELECT 31 + + 67 + 9 * 67 + + MAX ( + - COALESCE ( 46, - 85, + 31 ) ) AS col2, CAST ( NULL AS INTEGER ) AS col2
----
655
NULL

query I rowsort
SELECT 14 - 46 * + 53
----
-2424

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT 50 DIV - 82 * 57
----
0

skipif mysql # not compatible
query I rowsort label-4823
SELECT 50 / - 82 * 57
----
0

query I rowsort
SELECT 21 * ( 73 )
----
1533

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4825
SELECT 24 - - COUNT( * ) DIV 29 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4825
SELECT 24 - - COUNT ( * ) / 29 AS col0
----
24

query I rowsort
SELECT ( - ( + 75 ) ) * - - COALESCE ( + + ( 98 ), + 35 * 27 * + - 25 )
----
-7350

onlyif mysql # DIV for integer division: 
query I rowsort label-4827
SELECT DISTINCT - 2 DIV - - 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT - 2 / - - 50 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT 40 DIV - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT 40 / - 70 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4829
SELECT DISTINCT - 29 * CAST( NULL AS SIGNED ), + 65 + + + 70 AS col0
----
NULL
135

skipif mysql # not compatible
query II rowsort label-4829
SELECT DISTINCT - 29 * CAST ( NULL AS INTEGER ), + 65 + + + 70 AS col0
----
NULL
135

query I rowsort
SELECT NULLIF ( + + 21, - COALESCE ( 10, 86 + + - 47, 92 / + 30 ) * - 76 ) col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4831
SELECT 56 + + 88, + COUNT( * ) AS col1
----
144
1

skipif mysql # not compatible
query II rowsort label-4831
SELECT 56 + + 88, + COUNT ( * ) AS col1
----
144
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT ALL - ( 18 ) * + COUNT( * ) * 13 - 97 + - 97 + 89 * + 74 * - + 23 * - 28 + - 74
----
4240882

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL - ( 18 ) * + COUNT ( * ) * 13 - 97 + - 97 + 89 * + 74 * - + 23 * - 28 + - 74
----
4240882

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT SUM( ALL - - 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4833
SELECT SUM ( ALL - - 22 ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4834
SELECT 75 * MIN( + CAST( NULL AS SIGNED ) ) / - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT 75 * MIN ( + CAST ( NULL AS INTEGER ) ) / - 58
----
NULL

query I rowsort
SELECT ALL 13 * - 12 + 61 col0
----
-95

query I rowsort
SELECT 12 * - 48 + + 17 col2
----
-559

query I rowsort
SELECT + 85 * - NULLIF ( - - 94, + 68 ) AS col0
----
-7990

query I rowsort
SELECT DISTINCT ( 62 ) * 8 * + 33
----
16368

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT ALL + + COUNT( DISTINCT + 46 )
----
1

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL + + COUNT ( DISTINCT + 46 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4840
SELECT + + COUNT( * ) * + + CASE - 80 WHEN + + 31 THEN ( COALESCE ( + MAX( ALL + - COALESCE ( - - 51, - 73 + - 91 ) ), - COALESCE ( + CAST( 90 AS SIGNED ), CASE + NULLIF ( - - COUNT( DISTINCT 97 ), - COUNT( * ) + - 14 ) WHEN 54 * + ( + 84 * 79 ) THEN - 49 WHEN 88 / 75 + 56 / - NULLIF ( + COALESCE ( 5, CAST( NULL AS SIGNED ) * + 84 ) * 92 + 13, ( 78 ) ) THEN NULL END / 25 ) ) ) ELSE NULL END - - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT + + COUNT ( * ) * + + CASE - 80 WHEN + + 31 THEN ( COALESCE ( + MAX ( ALL + - COALESCE ( - - 51, - 73 + - 91 ) ), - COALESCE ( + CAST ( 90 AS INTEGER ), CASE + NULLIF ( - - COUNT ( DISTINCT 97 ), - COUNT ( * ) + - 14 ) WHEN 54 * + ( + 84 * 79 ) THEN - 49 WHEN 88 / 75 + 56 / - NULLIF ( + COALESCE ( 5, CAST ( NULL AS INTEGER ) * + 84 ) * 92 + 13, ( 78 ) ) THEN NULL END / 25 ) ) ) ELSE NULL END - - 39
----
NULL

query I rowsort
SELECT + 57 * - + 45 + + ( + + 74 ) * + 11 + - 70
----
-1821

query I rowsort
SELECT + 1 + 94 + - NULLIF ( + ( - 26 ), - - 35 ) col1
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4843
SELECT DISTINCT + NULLIF ( + COALESCE ( - - ( - COALESCE ( + 88, 24 * - COUNT( ALL - - COALESCE ( + 51, - 18 * - + 77 ) ) + - 78 + 28, - MAX( - + 56 ) - - - 40 ) ), - - 57, - 49, + - 33 ), + CASE - COUNT( * ) WHEN 34 DIV + 91 THEN NULL WHEN - 38 THEN ( NULLIF ( - ( + 45 ), - 68 ) ) END + + 82 * 24 ) DIV 22
----
-4

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT + NULLIF ( + COALESCE ( - - ( - COALESCE ( + 88, 24 * - COUNT ( ALL - - COALESCE ( + 51, - 18 * - + 77 ) ) + - 78 + 28, - MAX ( - + 56 ) - - - 40 ) ), - - 57, - 49, + - 33 ), + CASE - COUNT ( * ) WHEN 34 / + 91 THEN NULL WHEN - 38 THEN ( NULLIF ( - ( + 45 ), - 68 ) ) END + + 82 * 24 ) / 22
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT DISTINCT COUNT( * ) - 99 + 19
----
-79

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT COUNT ( * ) - 99 + 19
----
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4845
SELECT ALL + + CAST( - ( - MAX( ALL - + 98 ) ) AS DECIMAL ) * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL + + CAST ( - ( - MAX ( ALL - + 98 ) ) AS REAL ) * + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4846
SELECT + + CASE - + 64 WHEN - 51 THEN - COALESCE ( 55, + - 15 ) DIV - + 73 ELSE + + 58 END - - 82 AS col2
----
140

skipif mysql # not compatible
query I rowsort label-4846
SELECT + + CASE - + 64 WHEN - 51 THEN - COALESCE ( 55, + - 15 ) / - + 73 ELSE + + 58 END - - 82 AS col2
----
140

query I rowsort
SELECT ALL - 77 - 57 * + + 41
----
-2414

onlyif mysql # DIV for integer division: 
query I rowsort label-4848
SELECT + 90 DIV - 71 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4848
SELECT + 90 / - 71 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT - 9 + - + 17 * - COUNT( * ) + 36 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4849
SELECT - 9 + - + 17 * - COUNT ( * ) + 36 AS col1
----
44

query I rowsort
SELECT + 21 * - - 57 AS col1
----
1197

query I rowsort
SELECT ALL 32 * - 50
----
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL SUM( DISTINCT + - 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL SUM ( DISTINCT + - 93 ) AS col0
----
-93

query I rowsort
SELECT - ( - - 2 ) AS col0
----
-2

query I rowsort
SELECT + 73 + - 1 AS col2
----
72

query I rowsort
SELECT ALL COALESCE ( - - 55, - 10 ) AS col1
----
55

query I rowsort
SELECT + 91 * + - 17
----
-1547

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL ( NULLIF ( + 9, ( - + ( - 31 ) ) / - COUNT( * ) * + 12 * 57 + - 87 + - COUNT( * ) + 52 ) )
----
9

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL ( NULLIF ( + 9, ( - + ( - 31 ) ) / - COUNT ( * ) * + 12 * 57 + - 87 + - COUNT ( * ) + 52 ) )
----
9

query I rowsort
SELECT - 19 + - + 21 * + 53 AS col2
----
-1132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4859
SELECT ALL COALESCE ( - MAX( ALL + - 25 ), 18 + - NULLIF ( 46, COUNT( * ) ) + - - 75 DIV - COUNT( * ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL COALESCE ( - MAX ( ALL + - 25 ), 18 + - NULLIF ( 46, COUNT ( * ) ) + - - 75 / - COUNT ( * ) ) AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT ALL 41 DIV - - 76 * - 10 + + + 66
----
66

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL 41 / - - 76 * - 10 + + + 66
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4861
SELECT - 53 * + 16 + + 54 - - CAST( NULL AS SIGNED ) + + 28 + 69 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT - 53 * + 16 + + 54 - - CAST ( NULL AS INTEGER ) + + 28 + 69 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4862
SELECT 53 DIV - SUM( DISTINCT - 85 ) + + - 53 + - 95 * - + 78 AS col2
----
7357

skipif mysql # not compatible
query I rowsort label-4862
SELECT 53 / - SUM ( DISTINCT - 85 ) + + - 53 + - 95 * - + 78 AS col2
----
7357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4863
SELECT DISTINCT 84 DIV - 69 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT 84 / - 69 + COUNT ( * )
----
0

query II rowsort
SELECT ALL + 26 * + 67 * 59 col2, - 83 AS col1
----
102778
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ( + MAX( NULLIF ( + - 8, - 31 ) ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4865
SELECT ( + MAX ( NULLIF ( + - 8, - 31 ) ) ) AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4866
SELECT ALL - CASE + + 56 WHEN CAST( NULL AS SIGNED ) * 93 - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) * - + 32 * + - 4 + + 47 + - 34 THEN - 86 ELSE + + 59 * - ( + - 75 ) + + + 96 * 22 + + - 35 END * - 30 + - - 70 - - 21 + 21
----
195172

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL - CASE + + 56 WHEN CAST ( NULL AS INTEGER ) * 93 - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * - + 32 * + - 4 + + 47 + - 34 THEN - 86 ELSE + + 59 * - ( + - 75 ) + + + 96 * 22 + + - 35 END * - 30 + - - 70 - - 21 + 21
----
195172

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT DISTINCT + AVG ( DISTINCT - 63 ) * + - COUNT( * ) / + + CASE - + 80 WHEN + + 54 THEN + 9 ELSE NULL END * - 82 + + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT + AVG ( DISTINCT - 63 ) * + - COUNT ( * ) / + + CASE - + 80 WHEN + + 54 THEN + 9 ELSE NULL END * - 82 + + 51 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4868
SELECT + - CAST( NULL AS SIGNED ) * + 85 + + MIN( + ( - 75 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4868
SELECT + - CAST ( NULL AS INTEGER ) * + 85 + + MIN ( + ( - 75 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4869
SELECT 14 DIV - ( - 28 ) + 48 + - - COUNT( * ) * + 56 AS col1, - 85 + COUNT( * ), - COUNT( * ) AS col0
----
104
-84
-1

skipif mysql # not compatible
query III rowsort label-4869
SELECT 14 / - ( - 28 ) + 48 + - - COUNT ( * ) * + 56 AS col1, - 85 + COUNT ( * ), - COUNT ( * ) AS col0
----
104
-84
-1

query I rowsort
SELECT - 58 + + 9
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT + 93 * + ( - - NULLIF ( 70, + SUM( DISTINCT 29 ) + + 90 ) ) + 42 AS col2
----
6552

skipif mysql # not compatible
query I rowsort label-4871
SELECT + 93 * + ( - - NULLIF ( 70, + SUM ( DISTINCT 29 ) + + 90 ) ) + 42 AS col2
----
6552

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4872
SELECT + + 82 * - + 50 * - - 61 + + 85 + + CAST( NULL AS DECIMAL ) AS col2, - 94 + + + ( - 77 )
----
NULL
-171

skipif mysql # not compatible
query II rowsort label-4872
SELECT + + 82 * - + 50 * - - 61 + + 85 + + CAST ( NULL AS REAL ) AS col2, - 94 + + + ( - 77 )
----
NULL
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4873
SELECT + + 47 - - + CASE + - CAST( - NULLIF ( CAST( NULL AS SIGNED ), + 89 + - 96 + + ( - + 80 ) - + + 17 * - COUNT( * ) * - 43 ) AS SIGNED ) WHEN - + 83 THEN - 61 END - - - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT + + 47 - - + CASE + - CAST ( - NULLIF ( CAST ( NULL AS INTEGER ), + 89 + - 96 + + ( - + 80 ) - + + 17 * - COUNT ( * ) * - 43 ) AS INTEGER ) WHEN - + 83 THEN - 61 END - - - 28 AS col2
----
NULL

query II rowsort
SELECT + 21, 35 + - ( + 98 ) AS col2
----
21
-63

query I rowsort
SELECT + 21 + + + 12 AS col1
----
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4876
SELECT DISTINCT + 48 * 46 * CAST( + 62 AS SIGNED ) - - - 89 - - 11 DIV + 88 + - CAST( + - 73 AS SIGNED ) AS col1
----
136880

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT + 48 * 46 * CAST ( + 62 AS INTEGER ) - - - 89 - - 11 / + 88 + - CAST ( + - 73 AS INTEGER ) AS col1
----
136880

query II rowsort
SELECT 45, 30 * - 62 AS col1
----
45
-1860

query I rowsort
SELECT + - 21 * 15 * + + 56
----
-17640

query I rowsort
SELECT COALESCE ( + 31, + + 69 + - + 25 * - 18 * 26 * 11 ) AS col2
----
31

query II rowsort
SELECT ALL 28 AS col1, 59
----
28
59

query I rowsort
SELECT + 73 * - 1
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-4882
SELECT + 91 DIV - 3
----
-30

skipif mysql # not compatible
query I rowsort label-4882
SELECT + 91 / - 3
----
-30

query II rowsort
SELECT ALL 88 col0, 41
----
88
41

query II rowsort
SELECT 76, 7 AS col2
----
76
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL 79 + COUNT( * ) + - 11
----
69

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL 79 + COUNT ( * ) + - 11
----
69

query I rowsort
SELECT ALL 38 + + 10
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT ALL CAST( NULL AS SIGNED ) / + 11 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL CAST ( NULL AS INTEGER ) / + 11 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT - ( COALESCE ( + SUM( DISTINCT - - 64 ), - 71, 92 ) ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4888
SELECT - ( COALESCE ( + SUM ( DISTINCT - - 64 ), - 71, 92 ) ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT + COUNT( * ) + COUNT( * ) + COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4889
SELECT + COUNT ( * ) + COUNT ( * ) + COUNT ( * ) AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4890
SELECT ALL 43 + + 94 * 55 * - - NULLIF ( - 67, - 7 / - - CAST( 39 AS SIGNED ) - - COUNT( * ) * + + 22 + COUNT( * ) ) * + 73
----
-25286427

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL 43 + + 94 * 55 * - - NULLIF ( - 67, - 7 / - - CAST ( 39 AS INTEGER ) - - COUNT ( * ) * + + 22 + COUNT ( * ) ) * + 73
----
-25286427

query II rowsort
SELECT - 7 AS col1, 29 AS col0
----
-7
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4892
SELECT ALL 78 + + NULLIF ( - CAST( - 40 AS SIGNED ), + 87 ) + 6 AS col1, 29
----
124
29

skipif mysql # not compatible
query II rowsort label-4892
SELECT ALL 78 + + NULLIF ( - CAST ( - 40 AS INTEGER ), + 87 ) + 6 AS col1, 29
----
124
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4893
SELECT 14 col2, + ( + 80 ) + 44 - + - MAX( ALL + 57 )
----
14
181

skipif mysql # not compatible
query II rowsort label-4893
SELECT 14 col2, + ( + 80 ) + 44 - + - MAX ( ALL + 57 )
----
14
181

query I rowsort
SELECT 91 + + 14 AS col0
----
105

query I rowsort
SELECT ALL 83 + + 24 AS col1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT ALL + COUNT( * ) + 77 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL + COUNT ( * ) + 77 AS col1
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4897
SELECT + ( - 72 ) DIV - 92 * 23 + + SUM( 86 ) + 10 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4897
SELECT + ( - 72 ) / - 92 * 23 + + SUM ( 86 ) + 10 AS col0
----
96

query I rowsort
SELECT DISTINCT 77 + 75 AS col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT + MAX( + + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-4899
SELECT + MAX ( + + 97 )
----
97

query I rowsort
SELECT + 42 * + 29 AS col1
----
1218

query II rowsort
SELECT - 76, + 27 AS col2
----
-76
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4902
SELECT 75 * + COUNT( * ) / + ( - + CASE + 50 WHEN + 22 THEN + 97 * + + NULLIF ( - - 57, 63 ) * + ( + CAST( NULL AS DECIMAL ) ) * + 82 WHEN - COUNT( * ) * + AVG ( - 17 ) THEN 14 * - - 16 - + 54 ELSE NULL END ) - 9 * - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4902
SELECT 75 * + COUNT ( * ) / + ( - + CASE + 50 WHEN + 22 THEN + 97 * + + NULLIF ( - - 57, 63 ) * + ( + CAST ( NULL AS REAL ) ) * + 82 WHEN - COUNT ( * ) * + AVG ( - 17 ) THEN 14 * - - 16 - + 54 ELSE NULL END ) - 9 * - 93 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ALL - - CASE 17 WHEN - COUNT( * ) THEN - - 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL - - CASE 17 WHEN - COUNT ( * ) THEN - - 82 ELSE NULL END
----
NULL

query I rowsort
SELECT 54 * - 39 AS col2
----
-2106

query I rowsort
SELECT + 58 * - 83 * - - 17 AS col0
----
-81838

query I rowsort
SELECT ALL - + 2 col2
----
-2

query II rowsort
SELECT 84 AS col1, 30
----
84
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4908
SELECT + 85 + - SUM( ALL + 33 ) DIV 99 - 83 - + COALESCE ( + + 18, + 24 + + CASE + 18 WHEN + CAST( - 13 AS SIGNED ) THEN - + 18 * + 32 ELSE NULL END + - 46 - + 61 ) AS col2, - 33 AS col2
----
-16
-33

skipif mysql # not compatible
query II rowsort label-4908
SELECT + 85 + - SUM ( ALL + 33 ) / 99 - 83 - + COALESCE ( + + 18, + 24 + + CASE + 18 WHEN + CAST ( - 13 AS INTEGER ) THEN - + 18 * + 32 ELSE NULL END + - 46 - + 61 ) AS col2, - 33 AS col2
----
-16
-33

query II rowsort
SELECT + 45 AS col2, 1 AS col2
----
45
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4910
SELECT ALL 56 AS col2, - 94 + - - MIN( - 40 ) + + + 92
----
56
-42

skipif mysql # not compatible
query II rowsort label-4910
SELECT ALL 56 AS col2, - 94 + - - MIN ( - 40 ) + + + 92
----
56
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT 24 + + - 1 DIV + 32 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4911
SELECT 24 + + - 1 / + 32 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4912
SELECT COUNT( * ) + - + CAST( + + 85 AS SIGNED ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-4912
SELECT COUNT ( * ) + - + CAST ( + + 85 AS INTEGER ) AS col0
----
-84

query I rowsort
SELECT ALL 38 + + 13 col2
----
51

query I rowsort
SELECT DISTINCT + 70 + + ( - 94 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT DISTINCT 43 + + CASE 75 WHEN 25 THEN - MAX( 99 ) ELSE NULL END * + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT 43 + + CASE 75 WHEN 25 THEN - MAX ( 99 ) ELSE NULL END * + 79 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT ALL 2 + + 38 * - MAX( + 78 ) * + 85
----
-251938

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL 2 + + 38 * - MAX ( + 78 ) * + 85
----
-251938

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4917
SELECT 49 + COUNT( 32 ) DIV + 27 + 38 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-4917
SELECT 49 + COUNT ( 32 ) / + 27 + 38 AS col2
----
87

query I rowsort
SELECT 84 * + 15 * + + 82 AS col1
----
103320

query I rowsort
SELECT ALL + ( 7 ) + - 50 + + - ( - - 98 )
----
-141

onlyif mysql # aggregate syntax: 
query III rowsort label-4920
SELECT DISTINCT 89 + + + 78, ( + ( - + 55 ) ) col1, - COUNT( + 8 ) * + CASE + ( 1 ) WHEN + 83 THEN ( - 80 ) * + 25 + + 44 * - 29 * + 3 + - 92 WHEN - + 30 * - ( - - ( COUNT( * ) ) ) + COUNT( * ) THEN NULL END AS col1
----
167
-55
NULL

skipif mysql # not compatible
query III rowsort label-4920
SELECT DISTINCT 89 + + + 78, ( + ( - + 55 ) ) col1, - COUNT ( + 8 ) * + CASE + ( 1 ) WHEN + 83 THEN ( - 80 ) * + 25 + + 44 * - 29 * + 3 + - 92 WHEN - + 30 * - ( - - ( COUNT ( * ) ) ) + COUNT ( * ) THEN NULL END AS col1
----
167
-55
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4921
SELECT DISTINCT 95 DIV + 18 AS col2, + 0 AS col0
----
5
0

skipif mysql # not compatible
query II rowsort label-4921
SELECT DISTINCT 95 / + 18 AS col2, + 0 AS col0
----
5
0

query I rowsort
SELECT 93 + ( - + 35 )
----
58

query I rowsort
SELECT + 17 * - - 13 + - + 90 AS col1
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4924
SELECT ALL + CASE - 53 WHEN - - 69 * 27 * 59 THEN CASE + 52 WHEN - 17 + - COALESCE ( 48, - COALESCE ( + 36, + CAST( + 65 AS SIGNED ), - 36 * + MAX( ALL + + 73 ) ) ) * 76 THEN - - NULLIF ( 4, - ( 98 ) + 49 ) ELSE NULL END ELSE 77 * - 60 END * - 34
----
157080

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL + CASE - 53 WHEN - - 69 * 27 * 59 THEN CASE + 52 WHEN - 17 + - COALESCE ( 48, - COALESCE ( + 36, + CAST ( + 65 AS INTEGER ), - 36 * + MAX ( ALL + + 73 ) ) ) * 76 THEN - - NULLIF ( 4, - ( 98 ) + 49 ) ELSE NULL END ELSE 77 * - 60 END * - 34
----
157080

query I rowsort
SELECT ( + + 31 ) * - + 23 AS col1
----
-713

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT - 10 * - NULLIF ( + COUNT( * ), - 85 ) * + COUNT( * ) + - - 61
----
71

skipif mysql # not compatible
query I rowsort label-4926
SELECT - 10 * - NULLIF ( + COUNT ( * ), - 85 ) * + COUNT ( * ) + - - 61
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT DISTINCT SUM( DISTINCT + - 38 ) * - - 72
----
-2736

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT SUM ( DISTINCT + - 38 ) * - - 72
----
-2736

query I rowsort
SELECT ALL - - ( 40 )
----
40

query I rowsort
SELECT ALL - - ( + - 24 )
----
-24

query I rowsort
SELECT ALL - 47 - - 30 - - - 79 + - 19 * + 83 * 14 AS col0
----
-22174

query I rowsort
SELECT DISTINCT - - 41 col1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-4932
SELECT + 90 + - - ( - - 67 ) AS col1, - CASE + ( + 63 ) WHEN - 93 THEN - ( + ( SUM( + 47 ) ) ) * + 35 * 96 * + 30 WHEN 92 THEN + + MIN( DISTINCT - + ( 96 ) ) ELSE NULL END
----
157
NULL

skipif mysql # not compatible
query II rowsort label-4932
SELECT + 90 + - - ( - - 67 ) AS col1, - CASE + ( + 63 ) WHEN - 93 THEN - ( + ( SUM ( + 47 ) ) ) * + 35 * 96 * + 30 WHEN 92 THEN + + MIN ( DISTINCT - + ( 96 ) ) ELSE NULL END
----
157
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT 69 * + + COUNT( ALL + 56 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4933
SELECT 69 * + + COUNT ( ALL + 56 ) AS col1
----
69

query I rowsort
SELECT - 38 * - 48 + - 0 - + 44
----
1780

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT + CASE 45 WHEN + 23 * - 58 * ( 96 ) + - 80 + - - 33 + + COUNT( * ) * - - 49 * + 89 THEN NULL WHEN - + 72 THEN 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT + CASE 45 WHEN + 23 * - 58 * ( 96 ) + - 80 + - - 33 + + COUNT ( * ) * - - 49 * + 89 THEN NULL WHEN - + 72 THEN 53 END
----
NULL

query I rowsort
SELECT + 17 + 94 * 19 + - - 56 + + 25 * - 83 * - - 23 * 42 + - 25 AS col1
----
-2002616

query I rowsort
SELECT + 56 + + 1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4938
SELECT COUNT( * ) DIV - 26 AS col1, 77 * + 41 AS col0
----
0
3157

skipif mysql # not compatible
query II rowsort label-4938
SELECT COUNT ( * ) / - 26 AS col1, 77 * + 41 AS col0
----
0
3157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT + 46 * + - CAST( NULL AS SIGNED ) + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT + 46 * + - CAST ( NULL AS INTEGER ) + + 48
----
NULL

query I rowsort
SELECT - 39 - + 68 AS col2
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT ALL - 99 * MAX( 75 ) * + 44 col0
----
-326700

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL - 99 * MAX ( 75 ) * + 44 col0
----
-326700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4942
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ) AS col2, - 15 AS col2
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-4942
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2, - 15 AS col2
----
NULL
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4943
SELECT 72 DIV + - NULLIF ( + MAX( - ( - CAST( 79 AS SIGNED ) ) ), + 44 ) * NULLIF ( + 80, + + 40 )
----
0

skipif mysql # not compatible
query I rowsort label-4943
SELECT 72 / + - NULLIF ( + MAX ( - ( - CAST ( 79 AS INTEGER ) ) ), + 44 ) * NULLIF ( + 80, + + 40 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT 50 + + + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4944
SELECT 50 + + + COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT DISTINCT + ( - COUNT( * ) ) + - 11
----
-12

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT + ( - COUNT ( * ) ) + - 11
----
-12

query II rowsort
SELECT 4 AS col1, 5
----
4
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4947
SELECT - ( - 72 ) + - 44 + - COALESCE ( 18, - COUNT( * ), + 92 ) + - 21 DIV + 55
----
10

skipif mysql # not compatible
query I rowsort label-4947
SELECT - ( - 72 ) + - 44 + - COALESCE ( 18, - COUNT ( * ), + 92 ) + - 21 / + 55
----
10

query II rowsort
SELECT 9 AS col0, 88
----
9
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4949
SELECT 47, - COALESCE ( COUNT( * ), - 50, 68, + ( + - 94 ) ) AS col0
----
47
-1

skipif mysql # not compatible
query II rowsort label-4949
SELECT 47, - COALESCE ( COUNT ( * ), - 50, 68, + ( + - 94 ) ) AS col0
----
47
-1

query II rowsort
SELECT 53, + 5 AS col1
----
53
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT - COUNT( * ) + - 77
----
-78

skipif mysql # not compatible
query I rowsort label-4951
SELECT - COUNT ( * ) + - 77
----
-78

query I rowsort
SELECT - 60 * + 18 AS col1
----
-1080

query I rowsort
SELECT ALL - ( + ( 29 ) ) + + 46 + - 83 * + 14 * 6
----
-6955

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT DISTINCT COUNT( - + 22 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT COUNT ( - + 22 ) AS col2
----
1

query I rowsort
SELECT ALL 48 - + 49 + - 47 + - 7
----
-55

query II rowsort
SELECT 39 AS col0, + 67 + + 23
----
39
90

query I rowsort
SELECT - 30 * + 35 * - - ( - + 10 ) AS col1
----
10500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4958
SELECT ALL 42 * + + COUNT( ALL - 99 ) / AVG ( DISTINCT + + 32 ) + + CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL 42 * + + COUNT ( ALL - 99 ) / AVG ( DISTINCT + + 32 ) + + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 22 * + ( - ( - 82 ) ) AS col0
----
-1804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4960
SELECT + 24 + COUNT( + CAST( NULL AS SIGNED ) ) AS col0, 22 AS col2
----
24
22

skipif mysql # not compatible
query II rowsort label-4960
SELECT + 24 + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0, 22 AS col2
----
24
22

query I rowsort
SELECT - 94 * + + ( - + 51 )
----
4794

query I rowsort
SELECT - 29 - + - 60
----
31

query I rowsort
SELECT DISTINCT CASE - 36 WHEN - - 54 THEN + 73 * - 88 * + + 44 * 61 END AS col1
----
NULL

query II rowsort
SELECT DISTINCT + + 30, 66 AS col0
----
30
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4965
SELECT + - ( + - 26 ) * - 89, CAST( + 43 AS SIGNED ) AS col2
----
-2314
43

skipif mysql # not compatible
query II rowsort label-4965
SELECT + - ( + - 26 ) * - 89, CAST ( + 43 AS INTEGER ) AS col2
----
-2314
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4966
SELECT ALL 57 DIV + + 92 col0
----
0

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL 57 / + + 92 col0
----
0

query II rowsort
SELECT DISTINCT + + 80, 56 AS col0
----
80
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT DISTINCT - COUNT( * ) * + - 41 col2
----
41

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT - COUNT ( * ) * + - 41 col2
----
41

query I rowsort
SELECT ALL 14 * + 54 + - 1 col1
----
755

query I rowsort
SELECT + + ( - - 44 )
----
44

query I rowsort
SELECT + 44 * + 46 AS col0
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT + CASE + 81 WHEN + - ( 54 ) THEN - MAX( + 14 ) WHEN - - MAX( DISTINCT - - 52 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT + CASE + 81 WHEN + - ( 54 ) THEN - MAX ( + 14 ) WHEN - - MAX ( DISTINCT - - 52 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4973
SELECT COALESCE ( - - 43, - 76 * COUNT( * ) ), 6 col0, COALESCE ( - - 48, + - ( + 55 ) ) AS col0
----
43
6
48

skipif mysql # not compatible
query III rowsort label-4973
SELECT COALESCE ( - - 43, - 76 * COUNT ( * ) ), 6 col0, COALESCE ( - - 48, + - ( + 55 ) ) AS col0
----
43
6
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4974
SELECT 98 * CASE - 31 WHEN + + 94 THEN - + 26 + + 5 + - 46 * - - COUNT( * ) END + - 12 * + 21 / + 17 + COUNT( * ), ( - COUNT( * ) ) + 45 AS col1
----
NULL
44

skipif mysql # not compatible
query II rowsort label-4974
SELECT 98 * CASE - 31 WHEN + + 94 THEN - + 26 + + 5 + - 46 * - - COUNT ( * ) END + - 12 * + 21 / + 17 + COUNT ( * ), ( - COUNT ( * ) ) + 45 AS col1
----
NULL
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT - COUNT( * ) * - 56
----
56

skipif mysql # not compatible
query I rowsort label-4975
SELECT - COUNT ( * ) * - 56
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4976
SELECT - CAST( + + 11 AS SIGNED ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4976
SELECT - CAST ( + + 11 AS INTEGER ) AS col1
----
-11

query I rowsort
SELECT + 61 + + - 28 - + 1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4978
SELECT ALL 84 DIV 71 * - 72 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL 84 / 71 * - 72 AS col1
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-4979
SELECT ALL 68 * 96 - 12 - + - ( + + 59 ) DIV + 59
----
6517

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL 68 * 96 - 12 - + - ( + + 59 ) / + 59
----
6517

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT DISTINCT + 81 * - MAX( DISTINCT - + 15 ) col1
----
1215

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT + 81 * - MAX ( DISTINCT - + 15 ) col1
----
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT ALL 19 * ( + COALESCE ( + 32, - + COUNT( * ) * - + ( COUNT( * ) ) - + - 47 ) )
----
608

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL 19 * ( + COALESCE ( + 32, - + COUNT ( * ) * - + ( COUNT ( * ) ) - + - 47 ) )
----
608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4982
SELECT ALL CAST( + 54 AS SIGNED ) AS col0, 11 * + 18 - + - 78 DIV - 47 + + COUNT( + - 96 ) + - 41 + + + 91 AS col2
----
54
248

skipif mysql # not compatible
query II rowsort label-4982
SELECT ALL CAST ( + 54 AS INTEGER ) AS col0, 11 * + 18 - + - 78 / - 47 + + COUNT ( + - 96 ) + - 41 + + + 91 AS col2
----
54
248

query II rowsort
SELECT + 1 + 67 AS col0, 16 * - ( - + 54 ) * 7
----
68
6048

query I rowsort
SELECT ALL - 36 - 91 AS col1
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT - 83 + - - 13 + + 49 - COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-4985
SELECT - 83 + - - 13 + + 49 - COUNT ( * )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT - ( - COUNT( * ) ) * 89
----
89

skipif mysql # not compatible
query I rowsort label-4986
SELECT - ( - COUNT ( * ) ) * 89
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4987
SELECT - 71 + - 96 AS col1, 21 + SUM( - - 13 )
----
-167
34

skipif mysql # not compatible
query II rowsort label-4987
SELECT - 71 + - 96 AS col1, 21 + SUM ( - - 13 )
----
-167
34

query I rowsort
SELECT - + ( + - 96 )
----
96

query I rowsort
SELECT ALL - - 79 * - 5 * - + 40 - + 53 AS col2
----
15747

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT - - 45 + + + 92 + - + 74 - - 32 * + MIN( ALL 38 ) + + 24
----
1303

skipif mysql # not compatible
query I rowsort label-4990
SELECT - - 45 + + + 92 + - + 74 - - 32 * + MIN ( ALL 38 ) + + 24
----
1303

query I rowsort
SELECT ALL + + 50 + 63 + + 83
----
196

query I rowsort
SELECT DISTINCT + + 37 * - 41 AS col0
----
-1517

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT - + CAST( NULL AS SIGNED ) / - - 9 * - 40 + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT - + CAST ( NULL AS INTEGER ) / - - 9 * - 40 + 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4994
SELECT ALL + + 16 DIV - 75 + - 92 + - ( + ( + 43 ) ) - + 83 AS col2, CASE 60 WHEN - CASE + + COUNT( * ) WHEN - - 38 + 14 + 74 * 25 - + 27 THEN + 63 * - + COUNT( * ) + + - MIN( - + 66 ) END THEN 98 * - 68 DIV - + 60 WHEN - 6 * AVG ( ALL - 15 ) THEN + CAST( + 9 AS SIGNED ) WHEN - COUNT( * ) * + 63 + + 45 * 95 THEN 13 + 87 DIV COALESCE ( + 91, 31 ) ELSE 67 END
----
-218
67

skipif mysql # not compatible
query II rowsort label-4994
SELECT ALL + + 16 / - 75 + - 92 + - ( + ( + 43 ) ) - + 83 AS col2, CASE 60 WHEN - CASE + + COUNT ( * ) WHEN - - 38 + 14 + 74 * 25 - + 27 THEN + 63 * - + COUNT ( * ) + + - MIN ( - + 66 ) END THEN 98 * - 68 / - + 60 WHEN - 6 * AVG ( ALL - 15 ) THEN + CAST ( + 9 AS INTEGER ) WHEN - COUNT ( * ) * + 63 + + 45 * 95 THEN 13 + 87 / COALESCE ( + 91, 31 ) ELSE 67 END
----
-218
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4995
SELECT DISTINCT + - 45 * - 57 * + 28 - + - CAST( NULL AS SIGNED ) + + MAX( ALL - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT + - 45 * - 57 * + 28 - + - CAST ( NULL AS INTEGER ) + + MAX ( ALL - 90 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4996
SELECT ALL + 71 DIV + 35 * + - COUNT( * ) DIV - COUNT( * ) * + COUNT( * ) - 79 * - 55 * 11 + + ( 19 )
----
47816

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL + 71 / + 35 * + - COUNT ( * ) / - COUNT ( * ) * + COUNT ( * ) - 79 * - 55 * 11 + + ( 19 )
----
47816

query I rowsort
SELECT + 74 + - 74 col0
----
0

query I rowsort
SELECT ALL + ( 86 ) AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4999
SELECT DISTINCT + + 63 DIV + 3 + 2 col0
----
23

skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT + + 63 / + 3 + 2 col0
----
23

query I rowsort
SELECT 52 * - 83 + + 34
----
-4282

query I rowsort
SELECT ALL 27 + + ( - - 35 ) + 47
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5002
SELECT DISTINCT CAST( - 21 AS SIGNED ) DIV - 96 * - - NULLIF ( + - 16, - CASE 18 WHEN + 4 THEN 6 DIV - 86 * 5 WHEN - 83 * COALESCE ( - 79, 82, + 89 * MIN( + - 11 ) ) THEN - - 62 ELSE NULL END ) + + CASE - 82 WHEN 2 - 23 + 38 THEN + COALESCE ( 25, + 70 ) * 14 WHEN + COALESCE ( AVG ( ALL - 98 ), 90 * 47, COUNT( * ) ) * SUM( 88 ) THEN NULL ELSE 8 END AS col1
----
8

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT CAST ( - 21 AS INTEGER ) / - 96 * - - NULLIF ( + - 16, - CASE 18 WHEN + 4 THEN 6 / - 86 * 5 WHEN - 83 * COALESCE ( - 79, 82, + 89 * MIN ( + - 11 ) ) THEN - - 62 ELSE NULL END ) + + CASE - 82 WHEN 2 - 23 + 38 THEN + COALESCE ( 25, + 70 ) * 14 WHEN + COALESCE ( AVG ( ALL - 98 ), 90 * 47, COUNT ( * ) ) * SUM ( 88 ) THEN NULL ELSE 8 END AS col1
----
8

query I rowsort
SELECT DISTINCT 20 * + - 37 * - 8
----
5920

onlyif mysql # aggregate syntax: 
query II rowsort label-5004
SELECT ALL - 14 AS col1, + ( - - 84 ) - + 17 + + COUNT( * )
----
-14
68

skipif mysql # not compatible
query II rowsort label-5004
SELECT ALL - 14 AS col1, + ( - - 84 ) - + 17 + + COUNT ( * )
----
-14
68

query I rowsort
SELECT 49 * - + 71 col2
----
-3479

query I rowsort
SELECT DISTINCT 14 * + 9
----
126

query I rowsort
SELECT ALL 73 - 86 * 25 + - 47 AS col2
----
-2124

query I rowsort
SELECT ALL 43 * 80
----
3440

query I rowsort
SELECT DISTINCT 78 * ( + + 48 )
----
3744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5010
SELECT + 20 * - + CAST( 1 AS SIGNED ) + + COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5010
SELECT + 20 * - + CAST ( 1 AS INTEGER ) + + COUNT ( * ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT 19 + - - 2 + - ( + 18 ) + - COUNT( * ) * - + 31
----
34

skipif mysql # not compatible
query I rowsort label-5011
SELECT 19 + - - 2 + - ( + 18 ) + - COUNT ( * ) * - + 31
----
34

query I rowsort
SELECT DISTINCT + 59 * + 46 * + 12
----
32568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5013
SELECT ALL - MIN( + ( - 9 ) ) DIV - ( + 32 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL - MIN ( + ( - 9 ) ) / - ( + 32 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT DISTINCT + 27 * + MIN( 29 ) AS col0
----
783

skipif mysql # not compatible
query I rowsort label-5014
SELECT DISTINCT + 27 * + MIN ( 29 ) AS col0
----
783

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT - 86 * - 99 * - SUM( DISTINCT + 57 ) * - 97 - - COUNT( * )
----
47073907

skipif mysql # not compatible
query I rowsort label-5015
SELECT - 86 * - 99 * - SUM ( DISTINCT + 57 ) * - 97 - - COUNT ( * )
----
47073907

query I rowsort
SELECT 6 + - 46 AS col0
----
-40

query I rowsort
SELECT - 60 * + 47
----
-2820

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT + 9 * - COUNT( * ) + + 56
----
47

skipif mysql # not compatible
query I rowsort label-5018
SELECT + 9 * - COUNT ( * ) + + 56
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT + MIN( ALL 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5019
SELECT + MIN ( ALL 98 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT DISTINCT 1 * + - ( - - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT 1 * + - ( - - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT ALL - 11 + - 37
----
-48

query I rowsort
SELECT - - ( + - 72 )
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5023
SELECT DISTINCT - - 80 + - 80 DIV - + COUNT( * )
----
160

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT - - 80 + - 80 / - + COUNT ( * )
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT ALL - + 30 + + CASE - MAX( DISTINCT - 39 ) WHEN 44 THEN - 29 WHEN - - 53 * ( - 50 ) * - 79 * COUNT( * ) + + NULLIF ( 56, - 82 ) + - 10 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL - + 30 + + CASE - MAX ( DISTINCT - 39 ) WHEN 44 THEN - 29 WHEN - - 53 * ( - 50 ) * - 79 * COUNT ( * ) + + NULLIF ( 56, - 82 ) + - 10 THEN NULL END AS col1
----
NULL

query II rowsort
SELECT + 26 AS col2, - 43
----
26
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-5026
SELECT + 77 AS col1, - 44 DIV - COALESCE ( + 40, - 30 + - - 4 ) + + - 84 + + 94 AS col1
----
77
11

skipif mysql # not compatible
query II rowsort label-5026
SELECT + 77 AS col1, - 44 / - COALESCE ( + 40, - 30 + - - 4 ) + + - 84 + + 94 AS col1
----
77
11

query I rowsort
SELECT ALL + 7 * - 16 AS col2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT DISTINCT - 53 - + - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT - 53 - + - COUNT ( * )
----
-52

query I rowsort
SELECT DISTINCT + 26 * 20 col1
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL 73 - - + SUM( - 33 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL 73 - - + SUM ( - 33 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT MAX( - CASE + + 88 WHEN - - 19 THEN NULL ELSE + 26 END ) * 48 * - MIN( ALL - 57 ) AS col0
----
-71136

skipif mysql # not compatible
query I rowsort label-5031
SELECT MAX ( - CASE + + 88 WHEN - - 19 THEN NULL ELSE + 26 END ) * 48 * - MIN ( ALL - 57 ) AS col0
----
-71136

onlyif mysql # aggregate syntax: 
query III rowsort label-5032
SELECT ALL + 8 * + 47 col2, 4 + + - 85 AS col1, - MAX( DISTINCT + + 20 ) AS col2
----
376
-81
-20

skipif mysql # not compatible
query III rowsort label-5032
SELECT ALL + 8 * + 47 col2, 4 + + - 85 AS col1, - MAX ( DISTINCT + + 20 ) AS col2
----
376
-81
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-5033
SELECT DISTINCT - COUNT( * ), 40 AS col2
----
-1
40

skipif mysql # not compatible
query II rowsort label-5033
SELECT DISTINCT - COUNT ( * ), 40 AS col2
----
-1
40

query I rowsort
SELECT ALL - 35 - + 28 + 78 * + 48 + - 24 + + 13
----
3670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5035
SELECT 0 / CASE + + 89 WHEN 71 * - - 23 + 43 / - 82 * - 22 * - 12 THEN + ( + + ( - CAST( ( 13 ) AS SIGNED ) ) ) WHEN - ( + 42 ) THEN + 88 * - 89 WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5035
SELECT 0 / CASE + + 89 WHEN 71 * - - 23 + 43 / - 82 * - 22 * - 12 THEN + ( + + ( - CAST ( ( 13 ) AS INTEGER ) ) ) WHEN - ( + 42 ) THEN + 88 * - 89 WHEN - COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT NULLIF ( + 30, - 96 ) * 1 * - - 68 AS col0
----
2040

query I rowsort
SELECT 84 + + 5 + - 97 * - + 43
----
4260

onlyif mysql # aggregate syntax: 
query II rowsort label-5038
SELECT + COUNT( * ), + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-5038
SELECT + COUNT ( * ), + COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT DISTINCT - NULLIF ( - + 44, - + 31 * + 5 * 62 * + 17 + - 26 + + - 41 - - 97 - - 63 ) AS col2
----
44

query I rowsort
SELECT ALL 30 + - 79 - - + 87
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT DISTINCT COUNT( ALL + 69 ) * - COUNT( * ) - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT COUNT ( ALL + 69 ) * - COUNT ( * ) - - COUNT ( * )
----
0

query I rowsort
SELECT ALL 61 + - + 97
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT 44 + - CAST( 52 AS SIGNED ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-5043
SELECT 44 + - CAST ( 52 AS INTEGER ) AS col2
----
-8

query I rowsort
SELECT ALL + 98 * + 10 * 29
----
28420

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ( + COUNT( * ) ) * SUM( ALL + 66 ) + - 8 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-5045
SELECT ( + COUNT ( * ) ) * SUM ( ALL + 66 ) + - 8 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT 90 + MAX( + 18 )
----
108

skipif mysql # not compatible
query I rowsort label-5046
SELECT 90 + MAX ( + 18 )
----
108

query I rowsort
SELECT - COALESCE ( + + 15, - 83 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5048
SELECT ALL + 6 + + - COALESCE ( + 91, - 12 + + - CAST( NULL AS SIGNED ), + 68 ) col2, + 79 AS col1
----
-85
79

skipif mysql # not compatible
query II rowsort label-5048
SELECT ALL + 6 + + - COALESCE ( + 91, - 12 + + - CAST ( NULL AS INTEGER ), + 68 ) col2, + 79 AS col1
----
-85
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT 54 * + COALESCE ( + MIN( ALL 48 ), + COUNT( * ) * + 87 )
----
2592

skipif mysql # not compatible
query I rowsort label-5049
SELECT 54 * + COALESCE ( + MIN ( ALL 48 ), + COUNT ( * ) * + 87 )
----
2592

query I rowsort
SELECT 69 + 80 AS col2
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT DISTINCT MAX( ALL - + 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT MAX ( ALL - + 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT ALL MIN( DISTINCT 41 ) + - + 94 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL MIN ( DISTINCT 41 ) + - + 94 AS col2
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-5053
SELECT ALL + 82 * - 90 * 98 * 40 - - COALESCE ( - 62, 24 DIV ( - NULLIF ( 30, - 64 + 13 ) ) * - + 30 + - - 78 ) AS col2
----
-28929662

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL + 82 * - 90 * 98 * 40 - - COALESCE ( - 62, 24 / ( - NULLIF ( 30, - 64 + 13 ) ) * - + 30 + - - 78 ) AS col2
----
-28929662

query I rowsort
SELECT DISTINCT NULLIF ( 42, 5 )
----
42

query I rowsort
SELECT DISTINCT 8 + + 2 AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5056
SELECT DISTINCT - 80 - - 13 DIV - 92 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT - 80 - - 13 / - 92 AS col2
----
-80

query I rowsort
SELECT - - ( - 97 ) AS col0
----
-97

query I rowsort
SELECT + ( 46 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT ALL + COUNT( * ) * 38 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL + COUNT ( * ) * 38 AS col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5060
SELECT + 23 + COUNT( * ) AS col0, COUNT( * ) DIV - 24
----
24
0

skipif mysql # not compatible
query II rowsort label-5060
SELECT + 23 + COUNT ( * ) AS col0, COUNT ( * ) / - 24
----
24
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5061
SELECT + - 66 / CAST( - + 81 AS SIGNED ) + 63 + - 35 * + 44 / 43 * + CASE - COUNT( * ) WHEN - + 25 / - - 19 * 44 THEN NULL WHEN MAX( + 8 ) * - - 50 THEN - 29 * + + COUNT( * ) ELSE NULL END * + + 85 * + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5061
SELECT + - 66 / CAST ( - + 81 AS INTEGER ) + 63 + - 35 * + 44 / 43 * + CASE - COUNT ( * ) WHEN - + 25 / - - 19 * 44 THEN NULL WHEN MAX ( + 8 ) * - - 50 THEN - 29 * + + COUNT ( * ) ELSE NULL END * + + 85 * + 77
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT - 19 DIV 85 + + 83 * 92 DIV + 56 + - 61 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5062
SELECT - 19 / 85 + + 83 * 92 / + 56 + - 61 AS col2
----
75

query I rowsort
SELECT + 11 * - 95 * - + 85 - - - 46
----
88779

query I rowsort
SELECT NULLIF ( 92, + - 11 ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL + 76 * - - COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL + 76 * - - COUNT ( * ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT + 69 * - COUNT( * ) + - 89 col2
----
-158

skipif mysql # not compatible
query I rowsort label-5066
SELECT + 69 * - COUNT ( * ) + - 89 col2
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT ALL + NULLIF ( MIN( 82 ), 55 / 72 - + CASE - 88 WHEN + 80 THEN NULL ELSE - 65 * - COALESCE ( 79, + ( - COALESCE ( + - 52, + 76 ) ) ) - + ( 64 ) / - COUNT( * ) END + + 36 + 84 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL + NULLIF ( MIN ( 82 ), 55 / 72 - + CASE - 88 WHEN + 80 THEN NULL ELSE - 65 * - COALESCE ( 79, + ( - COALESCE ( + - 52, + 76 ) ) ) - + ( 64 ) / - COUNT ( * ) END + + 36 + 84 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT CASE - COUNT( * ) WHEN - 85 THEN NULL ELSE ( 82 ) END AS col0
----
82

skipif mysql # not compatible
query I rowsort label-5068
SELECT CASE - COUNT ( * ) WHEN - 85 THEN NULL ELSE ( 82