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 ) END AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5069
SELECT 76 * - 68 + - 77 + + 31 DIV + 59
----
-5245

skipif mysql # not compatible
query I rowsort label-5069
SELECT 76 * - 68 + - 77 + + 31 / + 59
----
-5245

query I rowsort
SELECT NULLIF ( - - 73, - + 6 * - 21 * + + 52 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT - ( - 60 ) * - 7 * + COUNT( * )
----
-420

skipif mysql # not compatible
query I rowsort label-5071
SELECT - ( - 60 ) * - 7 * + COUNT ( * )
----
-420

query I rowsort
SELECT - 84 + - 51 AS col2
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL + COUNT( DISTINCT 34 ) * + - 1 + - 68
----
-69

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL + COUNT ( DISTINCT 34 ) * + - 1 + - 68
----
-69

query I rowsort
SELECT NULLIF ( + - NULLIF ( + 10, - 24 ), + 21 ) AS col2
----
-10

query II rowsort
SELECT NULLIF ( + 55, + 21 * + 55 + - + 0 ), - 19 AS col0
----
55
-19

query I rowsort
SELECT DISTINCT - 59 * - - 55 AS col2
----
-3245

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT DISTINCT SUM( - 83 ) * + COUNT( * ) * CASE 15 WHEN 46 THEN 46 END + + NULLIF ( + ( - 93 ), + 54 ) * 84 + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT SUM ( - 83 ) * + COUNT ( * ) * CASE 15 WHEN 46 THEN 46 END + + NULLIF ( + ( - 93 ), + 54 ) * 84 + 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ALL COUNT( * ) * - + 4 + + 60 col1
----
56

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL COUNT ( * ) * - + 4 + + 60 col1
----
56

query I rowsort
SELECT DISTINCT + ( + + 57 ) col2
----
57

query I rowsort
SELECT - - CASE + 88 WHEN - - 82 + - AVG ( DISTINCT - 49 ) + 96 + + - 59 THEN NULL WHEN 86 THEN 20 + + + 2 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5081
SELECT + - 83 DIV + ( ( + 36 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-5081
SELECT + - 83 / + ( ( + 36 ) )
----
-2

query I rowsort
SELECT ALL - 77 + 18 + + CASE NULLIF ( - 30, - 6 * 12 + - 66 / - - 97 + 82 ) WHEN + - 83 THEN NULL WHEN - 49 THEN 45 * 16 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT - SUM( DISTINCT 23 ) * 91 AS col2
----
-2093

skipif mysql # not compatible
query I rowsort label-5083
SELECT - SUM ( DISTINCT 23 ) * 91 AS col2
----
-2093

query I rowsort
SELECT + 51 * + - 90 AS col0
----
-4590

onlyif mysql # aggregate syntax: 
query II rowsort label-5085
SELECT - 91 + - + MIN( ALL + 16 ) AS col2, COUNT( * ) AS col0
----
-107
1

skipif mysql # not compatible
query II rowsort label-5085
SELECT - 91 + - + MIN ( ALL + 16 ) AS col2, COUNT ( * ) AS col0
----
-107
1

query II rowsort
SELECT ALL 35 * + 47 AS col0, 7 col0
----
1645
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT DISTINCT ( - + ( - 84 ) ) * - + COUNT( * ) * + 70
----
-5880

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT ( - + ( - 84 ) ) * - + COUNT ( * ) * + 70
----
-5880

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT + + COUNT( * ) + + 57 * 40 + - 42
----
2239

skipif mysql # not compatible
query I rowsort label-5089
SELECT + + COUNT ( * ) + + 57 * 40 + - 42
----
2239

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT + - CASE WHEN - 52 IS NULL THEN - 7 ELSE + - COUNT( ALL 11 ) * - + 18 - + - 20 END + 39
----
1

skipif mysql # not compatible
query I rowsort label-5093
SELECT + - CASE WHEN - 52 IS NULL THEN - 7 ELSE + - COUNT ( ALL 11 ) * - + 18 - + - 20 END + 39
----
1

query I rowsort
SELECT DISTINCT - 68 - 30 + 9 + 34
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5095
SELECT ALL 64 DIV - 33, ( MIN( - 66 ) ) DIV - - 45 + + 28 DIV - MIN( - 95 ) col0
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5095
SELECT ALL 64 / - 33, ( MIN ( - 66 ) ) / - - 45 + + 28 / - MIN ( - 95 ) col0
----
-1
-1

query I rowsort
SELECT + NULLIF ( - 65, - - 14 ) * 23 * + 79
----
-118105

query I rowsort
SELECT ALL - NULLIF ( - 87, - 38 * + 58 * COALESCE ( - - ( - 14 ), - 43 ) ) AS col0
----
87

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

skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT 91 * - COUNT ( * ) * + 38 AS col0
----
-3458

onlyif mysql # DIV for integer division: 
query I rowsort label-5099
SELECT + 14 DIV 83 * 23 col0
----
0

skipif mysql # not compatible
query I rowsort label-5099
SELECT + 14 / 83 * 23 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5100
SELECT CAST( - 49 AS SIGNED ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5100
SELECT CAST ( - 49 AS INTEGER ) AS col2
----
-49

query I rowsort
SELECT + 27 * - 3 - - + 55
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5102
SELECT + 78 DIV - 60
----
-1

skipif mysql # not compatible
query I rowsort label-5102
SELECT + 78 / - 60
----
-1

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

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL COUNT ( * ) / - ( - 80 ) + 51
----
51

query I rowsort
SELECT - 60 * 31
----
-1860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5105
SELECT ALL + 55 AS col0, CASE + 38 WHEN 81 * - MIN( - - 66 ) THEN - COUNT( * ) / 93 * + 41 WHEN + + 99 THEN NULL ELSE + CAST( - 49 AS SIGNED ) * 73 END
----
55
-3577

skipif mysql # not compatible
query II rowsort label-5105
SELECT ALL + 55 AS col0, CASE + 38 WHEN 81 * - MIN ( - - 66 ) THEN - COUNT ( * ) / 93 * + 41 WHEN + + 99 THEN NULL ELSE + CAST ( - 49 AS INTEGER ) * 73 END
----
55
-3577

onlyif mysql # DIV for integer division: 
query I rowsort label-5106
SELECT ALL + 18 DIV 3
----
6

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL + 18 / 3
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5107
SELECT ALL 58 DIV + 61 + - COALESCE ( + COUNT( 70 ), + 52 ) + 33 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL 58 / + 61 + - COALESCE ( + COUNT ( 70 ), + 52 ) + 33 AS col0
----
32

query I rowsort
SELECT - 24 * - 74 AS col2
----
1776

query I rowsort
SELECT 9 * - ( - 48 ) - 99
----
333

query I rowsort
SELECT ALL 70 * 75 + - + 49
----
5201

query I rowsort
SELECT ( + ( CASE - + 48 WHEN 4 + 41 + + + 67 THEN NULL WHEN 60 THEN - 5 + - - 51 ELSE 66 END ) )
----
66

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5113
SELECT CAST( NULL AS SIGNED ) * - 22 / - + 15 + - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT CAST ( NULL AS INTEGER ) * - 22 / - + 15 + - 1 AS col0
----
NULL

query I rowsort
SELECT - 94 * - 84
----
7896

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT NULLIF ( - - 37, 59 / + 65 + - COUNT( * ) + + + ( 61 ) ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-5115
SELECT NULLIF ( - - 37, 59 / + 65 + - COUNT ( * ) + + + ( 61 ) ) AS col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT - + 98 * - 51 + + + CAST( NULL AS SIGNED ) + + 46 / - + 28 * 74 + + 33 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT - + 98 * - 51 + + + CAST ( NULL AS INTEGER ) + + 46 / - + 28 * 74 + + 33 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 80 + + 22 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT CASE - 64 WHEN + 10 * - - 45 + - 15 THEN + 58 WHEN 99 THEN + 24 ELSE - - COUNT( * ) * - SUM( - - 89 ) * + MIN( NULLIF ( + - 86, + + ( 48 ) ) ) + 80 * - 11 * MAX( + 11 ) + - 67 END
----
-2093

skipif mysql # not compatible
query I rowsort label-5118
SELECT CASE - 64 WHEN + 10 * - - 45 + - 15 THEN + 58 WHEN 99 THEN + 24 ELSE - - COUNT ( * ) * - SUM ( - - 89 ) * + MIN ( NULLIF ( + - 86, + + ( 48 ) ) ) + 80 * - 11 * MAX ( + 11 ) + - 67 END
----
-2093

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT ALL - - 51 * + 35 - - MIN( 12 ) * - + 28
----
1449

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL - - 51 * + 35 - - MIN ( 12 ) * - + 28
----
1449

query I rowsort
SELECT - + 60 * 61 AS col1
----
-3660

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT + 29 + 81 - - + COUNT( * ) + - - CASE AVG ( ALL + + 70 ) WHEN - 96 THEN + - COUNT( * ) * - + 38 END * + COUNT( * ) + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT + 29 + 81 - - + COUNT ( * ) + - - CASE AVG ( ALL + + 70 ) WHEN - 96 THEN + - COUNT ( * ) * - + 38 END * + COUNT ( * ) + + 88
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5122
SELECT 18, 95 * - COUNT( * ) col2
----
18
-95

skipif mysql # not compatible
query II rowsort label-5122
SELECT 18, 95 * - COUNT ( * ) col2
----
18
-95

query II rowsort
SELECT DISTINCT 71 AS col0, + COALESCE ( - 64, + 86 ) AS col1
----
71
-64

query I rowsort
SELECT 52 * + - 81
----
-4212

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

skipif mysql # not compatible
query I rowsort label-5125
SELECT 39 + + COUNT ( * ) / - COUNT ( * )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT - 96 * + SUM( 30 ) + - COUNT( * )
----
-2881

skipif mysql # not compatible
query I rowsort label-5126
SELECT - 96 * + SUM ( 30 ) + - COUNT ( * )
----
-2881

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL - COALESCE ( + 29, + COUNT( * ) * + 13 - NULLIF ( - + 7, + 10 * - - COUNT( * ) ), + + 31 ) * - - 92
----
-2668

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL - COALESCE ( + 29, + COUNT ( * ) * + 13 - NULLIF ( - + 7, + 10 * - - COUNT ( * ) ), + + 31 ) * - - 92
----
-2668

onlyif mysql # DIV for integer division: 
query II rowsort label-5128
SELECT 32 * 83 DIV - 70 AS col2, 91
----
-37
91

skipif mysql # not compatible
query II rowsort label-5128
SELECT 32 * 83 / - 70 AS col2, 91
----
-37
91

query I rowsort
SELECT ALL 71 * 95
----
6745

query I rowsort
SELECT 9 - + 15
----
-6

query I rowsort
SELECT DISTINCT - 3 * 63
----
-189

query I rowsort
SELECT DISTINCT - 94 * + - ( + + 58 )
----
5452

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT 58 * + MAX( 91 ) AS col1
----
5278

skipif mysql # not compatible
query I rowsort label-5133
SELECT 58 * + MAX ( 91 ) AS col1
----
5278

query II rowsort
SELECT 94 * + ( ( + + 23 ) ) AS col0, - 3 AS col0
----
2162
-3

query I rowsort
SELECT 65 + - - 5
----
70

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

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

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

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

query I rowsort
SELECT ALL - 77 + 33 * 64
----
2035

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT ALL - MIN( DISTINCT 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL - MIN ( DISTINCT 47 )
----
-47

query I rowsort
SELECT ALL 54 + 94 AS col2
----
148

query I rowsort
SELECT DISTINCT 13 + + 14
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5142
SELECT ALL COUNT( * ) + + 17 col0, + COUNT( * )
----
18
1

skipif mysql # not compatible
query II rowsort label-5142
SELECT ALL COUNT ( * ) + + 17 col0, + COUNT ( * )
----
18
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT NULLIF ( + 6, + 42 ) + + 27 + - - MAX( DISTINCT 52 )
----
85

skipif mysql # not compatible
query I rowsort label-5143
SELECT NULLIF ( + 6, + 42 ) + + 27 + - - MAX ( DISTINCT 52 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5144
SELECT ALL 48 DIV + 23 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL 48 / + 23 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5145
SELECT DISTINCT MAX( ALL - + CAST( NULL AS DECIMAL ) ) + + 12 * CAST( - + MIN( - 37 ) AS SIGNED ) * + 3 AS col2, 95 AS col0
----
NULL
95

skipif mysql # not compatible
query II rowsort label-5145
SELECT DISTINCT MAX ( ALL - + CAST ( NULL AS REAL ) ) + + 12 * CAST ( - + MIN ( - 37 ) AS INTEGER ) * + 3 AS col2, 95 AS col0
----
NULL
95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5147
SELECT 34 * CAST( - 7 AS SIGNED ) AS col0
----
-238

skipif mysql # not compatible
query I rowsort label-5147
SELECT 34 * CAST ( - 7 AS INTEGER ) AS col0
----
-238

onlyif mysql # aggregate syntax: 
query II rowsort label-5148
SELECT DISTINCT COALESCE ( 99, CASE + + 29 WHEN COUNT( * ) * - 53 THEN - + 5 * - + ( + 56 ) END ) + - 56 + 34 + + 83 AS col0, COUNT( * ) + + + ( 58 )
----
160
59

skipif mysql # not compatible
query II rowsort label-5148
SELECT DISTINCT COALESCE ( 99, CASE + + 29 WHEN COUNT ( * ) * - 53 THEN - + 5 * - + ( + 56 ) END ) + - 56 + 34 + + 83 AS col0, COUNT ( * ) + + + ( 58 )
----
160
59

query I rowsort
SELECT 6 * - 11 + - - 68
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5150
SELECT DISTINCT - + ( + COALESCE ( + COALESCE ( + + NULLIF ( + + 82, - 38 * 57 + + ( + + 51 ) ), - 85 * SUM( + - 75 ) + - + CAST( + CASE - CAST( 72 AS SIGNED ) WHEN 1 THEN + + 84 WHEN - - 7 THEN + 12 ELSE 7 END AS SIGNED ) ), + COUNT( * ) - - 74, + 87 ) )
----
-82

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT - + ( + COALESCE ( + COALESCE ( + + NULLIF ( + + 82, - 38 * 57 + + ( + + 51 ) ), - 85 * SUM ( + - 75 ) + - + CAST ( + CASE - CAST ( 72 AS INTEGER ) WHEN 1 THEN + + 84 WHEN - - 7 THEN + 12 ELSE 7 END AS INTEGER ) ), + COUNT ( * ) - - 74, + 87 ) )
----
-82

query I rowsort
SELECT ALL - - 30 AS col1
----
30

query I rowsort
SELECT ALL - - 70 col1
----
70

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

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

query I rowsort
SELECT - 53 * ( - - 50 )
----
-2650

query I rowsort
SELECT + 80 - 71 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5156
SELECT 67 * - CAST( NULL AS SIGNED ) AS col0, 87 AS col1
----
NULL
87

skipif mysql # not compatible
query II rowsort label-5156
SELECT 67 * - CAST ( NULL AS INTEGER ) AS col0, 87 AS col1
----
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT COUNT( - + 27 ) + 33
----
34

skipif mysql # not compatible
query I rowsort label-5157
SELECT COUNT ( - + 27 ) + 33
----
34

query I rowsort
SELECT ALL + COALESCE ( + 84, - + 93, - ( 98 ) - - 40 )
----
84

query I rowsort
SELECT DISTINCT + + 59 * - 75 AS col1
----
-4425

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT 46 DIV + 4 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5160
SELECT 46 / + 4 AS col2
----
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT DISTINCT + 49 + 98 + - + 24 * + 42 + COUNT( * ) AS col1
----
-860

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT + 49 + 98 + - + 24 * + 42 + COUNT ( * ) AS col1
----
-860

query II rowsort
SELECT ALL + 44 + - 34 * - + 48 AS col2, + 77
----
1676
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5164
SELECT 13, - NULLIF ( - 49, + - COUNT( * ) ) * - CAST( NULL AS SIGNED ) * CASE 46 WHEN 60 * + 3 THEN COUNT( + - 89 ) * 28 - 77 END AS col0
----
13
NULL

skipif mysql # not compatible
query II rowsort label-5164
SELECT 13, - NULLIF ( - 49, + - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) * CASE 46 WHEN 60 * + 3 THEN COUNT ( + - 89 ) * 28 - 77 END AS col0
----
13
NULL

query I rowsort
SELECT 3 * - 75 AS col1
----
-225

query II rowsort
SELECT 19, 20 col0
----
19
20

query I rowsort
SELECT 77 + - 77 * + - CASE + 72 WHEN - ( - + 97 ) + - 90 THEN - 83 + - 44 - + 93 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5168
SELECT 56 AS col1, 81 + - - COUNT( * ) + 7 + + - 54 AS col2
----
56
35

skipif mysql # not compatible
query II rowsort label-5168
SELECT 56 AS col1, 81 + - - COUNT ( * ) + 7 + + - 54 AS col2
----
56
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5169
SELECT 84 DIV + - 24 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5169
SELECT 84 / + - 24 AS col1
----
-3

query I rowsort
SELECT ALL + 45 + + - 90
----
-45

query I rowsort
SELECT DISTINCT NULLIF ( - + 96, + 17 ) + + 54
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5172
SELECT DISTINCT COUNT( * ), - CAST( 60 AS SIGNED ) AS col0
----
1
-60

skipif mysql # not compatible
query II rowsort label-5172
SELECT DISTINCT COUNT ( * ), - CAST ( 60 AS INTEGER ) AS col0
----
1
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL MAX( - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL MAX ( - 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5174
SELECT DISTINCT MAX( 99 ) + - + COUNT( * ), 8 + - 92 AS col1
----
98
-84

skipif mysql # not compatible
query II rowsort label-5174
SELECT DISTINCT MAX ( 99 ) + - + COUNT ( * ), 8 + - 92 AS col1
----
98
-84

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

skipif mysql # not compatible
query I rowsort label-5175
SELECT MIN ( - ( - + 64 ) )
----
64

query I rowsort
SELECT ALL + 55 * - 55 AS col2
----
-3025

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT + 75 * - 10 / - 71 + 39 + - + ( + 25 ) * + + 31 * + 98 * + CASE - - 94 WHEN - 82 * 0 + - 40 THEN 37 + - CASE + 46 WHEN + 80 * - 42 * ( + 30 ) * + ( + - 20 ) THEN NULL ELSE 45 + - - SUM( + 85 ) + COUNT( * ) * ( + 53 ) END + - - 83 + - 39 WHEN - 68 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT + 75 * - 10 / - 71 + 39 + - + ( + 25 ) * + + 31 * + 98 * + CASE - - 94 WHEN - 82 * 0 + - 40 THEN 37 + - CASE + 46 WHEN + 80 * - 42 * ( + 30 ) * + ( + - 20 ) THEN NULL ELSE 45 + - - SUM ( + 85 ) + COUNT ( * ) * ( + 53 ) END + - - 83 + - 39 WHEN - 68 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5178
SELECT COALESCE ( - + 63, + COUNT( * ) * + 74 * 26, + - 36 * - - 37 * CASE - 54 WHEN + 74 + 60 + - - 38 + 94 THEN 71 - + 15 + + 65 - - + 10 DIV + + 75 + - - 28 + - - 59 ELSE MAX( DISTINCT 88 ) END + MAX( DISTINCT 64 ) * - 96 ) * + + COUNT( * ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-5178
SELECT COALESCE ( - + 63, + COUNT ( * ) * + 74 * 26, + - 36 * - - 37 * CASE - 54 WHEN + 74 + 60 + - - 38 + 94 THEN 71 - + 15 + + 65 - - + 10 / + + 75 + - - 28 + - - 59 ELSE MAX ( DISTINCT 88 ) END + MAX ( DISTINCT 64 ) * - 96 ) * + + COUNT ( * ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-5179
SELECT ALL - 80 AS col0, + 7 * + 59 + + COUNT( * ) AS col1
----
-80
414

skipif mysql # not compatible
query II rowsort label-5179
SELECT ALL - 80 AS col0, + 7 * + 59 + + COUNT ( * ) AS col1
----
-80
414

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT DISTINCT + 37 * SUM( DISTINCT + 89 )
----
3293

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT + 37 * SUM ( DISTINCT + 89 )
----
3293

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5181
SELECT ALL + 65 * - + 72 - + ( - - SUM( DISTINCT - CAST( 22 AS SIGNED ) ) )
----
-4658

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL + 65 * - + 72 - + ( - - SUM ( DISTINCT - CAST ( 22 AS INTEGER ) ) )
----
-4658

onlyif mysql # aggregate syntax: 
query II rowsort label-5182
SELECT DISTINCT - ( SUM( ALL 79 ) ) AS col0, - 21
----
-79
-21

skipif mysql # not compatible
query II rowsort label-5182
SELECT DISTINCT - ( SUM ( ALL 79 ) ) AS col0, - 21
----
-79
-21

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5184
SELECT ALL - ( AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) ) * + ( - 71 ) - 80 - - + 97 + - - 47 * + - 51 + ( + 91 ) - - 16 + CAST( COALESCE ( + + 82, CASE + 73 WHEN + 97 THEN + 78 + + 87 WHEN + COUNT( * ) THEN - 19 + - 3 - 10 - - 31 * - 8 * + 31 WHEN COUNT( * ) * - 92 THEN + + 23 ELSE NULL END ) AS SIGNED ) / + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL - ( AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) * + ( - 71 ) - 80 - - + 97 + - - 47 * + - 51 + ( + 91 ) - - 16 + CAST ( COALESCE ( + + 82, CASE + 73 WHEN + 97 THEN + 78 + + 87 WHEN + COUNT ( * ) THEN - 19 + - 3 - 10 - - 31 * - 8 * + 31 WHEN COUNT ( * ) * - 92 THEN + + 23 ELSE NULL END ) AS INTEGER ) / + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT ALL - - NULLIF ( ( 71 ), + - COUNT( - + 51 ) * - COUNT( * ) + - 57 - COUNT( * ) ) col1
----
71

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL - - NULLIF ( ( 71 ), + - COUNT ( - + 51 ) * - COUNT ( * ) + - 57 - COUNT ( * ) ) col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT + 65 * + - 90 - MIN( + 99 ) - - 21
----
-5928

skipif mysql # not compatible
query I rowsort label-5186
SELECT + 65 * + - 90 - MIN ( + 99 ) - - 21
----
-5928

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT - - COUNT( * ) * - SUM( ALL - + 49 ) + + 34 * - COALESCE ( - 13, + - 97 + + 89 ) + - + 57 * + 86 AS col2
----
-4411

skipif mysql # not compatible
query I rowsort label-5187
SELECT - - COUNT ( * ) * - SUM ( ALL - + 49 ) + + 34 * - COALESCE ( - 13, + - 97 + + 89 ) + - + 57 * + 86 AS col2
----
-4411

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5188
SELECT + 98 - + 78 * + + CAST( NULL AS SIGNED ) AS col2, - 39 * 5 col2
----
NULL
-195

skipif mysql # not compatible
query II rowsort label-5188
SELECT + 98 - + 78 * + + CAST ( NULL AS INTEGER ) AS col2, - 39 * 5 col2
----
NULL
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT ALL - - 66 * - 61 * - COUNT( * ) - - 67 - 86 - - 89 AS col0
----
4096

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL - - 66 * - 61 * - COUNT ( * ) - - 67 - 86 - - 89 AS col0
----
4096

query I rowsort
SELECT + + 32 * + 28 * - 19 * - ( - + ( - 61 ) )
----
1038464

query I rowsort
SELECT + - 58 * + 82
----
-4756

query I rowsort
SELECT + COALESCE ( 91, + 16 * 64, + 75 )
----
91

query I rowsort
SELECT ALL 90 * - 61
----
-5490

query I rowsort
SELECT + + ( - 64 ) + 32
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT DISTINCT - NULLIF ( 16, CASE CASE 5 WHEN 11 * 50 THEN + MIN( + 97 ) ELSE NULL END WHEN + 85 THEN + COUNT( * ) ELSE NULL END ) * - - 63
----
-1008

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT - NULLIF ( 16, CASE CASE 5 WHEN 11 * 50 THEN + MIN ( + 97 ) ELSE NULL END WHEN + 85 THEN + COUNT ( * ) ELSE NULL END ) * - - 63
----
-1008

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5197
SELECT ALL - + 94 DIV - 66 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL - + 94 / - 66 AS col1
----
1

query I rowsort
SELECT ALL 74 + + + 17
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT ALL MIN( ALL - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL MIN ( ALL - 60 )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5200
SELECT - + 25 * + - 73 DIV + + COUNT( * ) + + 6 + - 90, + 61 AS col1
----
1741
61

skipif mysql # not compatible
query II rowsort label-5200
SELECT - + 25 * + - 73 / + + COUNT ( * ) + + 6 + - 90, + 61 AS col1
----
1741
61

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

query I rowsort
SELECT - - COALESCE ( + + 73, 72 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query III rowsort label-5203
SELECT 18 AS col2, - 39 - - 75 + + + 49 AS col1, 89 * SUM( DISTINCT + 16 ) * - 14 - - 84 * + + 66 * + 14 - - + 32 + - 76 + - 53
----
18
85
57583

skipif mysql # not compatible
query III rowsort label-5203
SELECT 18 AS col2, - 39 - - 75 + + + 49 AS col1, 89 * SUM ( DISTINCT + 16 ) * - 14 - - 84 * + + 66 * + 14 - - + 32 + - 76 + - 53
----
18
85
57583

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL + COUNT( * ) + - MAX( - 78 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL + COUNT ( * ) + - MAX ( - 78 ) AS col2
----
79

query III rowsort
SELECT 91, 0 AS col1, 5 AS col0
----
91
0
5

query I rowsort
SELECT ALL 38 + + ( + 6 ) AS col0
----
44

query I rowsort
SELECT ALL COALESCE ( - 19, - - 91 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-5208
SELECT DISTINCT + COUNT( * ) + - - COUNT( 91 ) + + - 60 AS col1, COUNT( 14 )
----
-58
1

skipif mysql # not compatible
query II rowsort label-5208
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( 91 ) + + - 60 AS col1, COUNT ( 14 )
----
-58
1

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

skipif mysql # not compatible
query I rowsort label-5209
SELECT - 2 * - COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5210
SELECT - 19 + - 77 * - + ( 2 ) AS col2, 59 * + 0 * + CAST( NULL AS SIGNED )
----
135
NULL

skipif mysql # not compatible
query II rowsort label-5210
SELECT - 19 + - 77 * - + ( 2 ) AS col2, 59 * + 0 * + CAST ( NULL AS INTEGER )
----
135
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5211
SELECT ALL COALESCE ( - 88, + ( + 11 ) ), + COUNT( * ) AS col0
----
-88
1

skipif mysql # not compatible
query II rowsort label-5211
SELECT ALL COALESCE ( - 88, + ( + 11 ) ), + COUNT ( * ) AS col0
----
-88
1

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

query I rowsort
SELECT - 66 * + 56
----
-3696

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

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

query I rowsort
SELECT - 83 + + 82
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT ALL + CASE 16 WHEN 8 * + 16 THEN 31 * - 42 + + COUNT( * ) + + - 79 - + 10 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL + CASE 16 WHEN 8 * + 16 THEN 31 * - 42 + + COUNT ( * ) + + - 79 - + 10 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5217
SELECT - NULLIF ( 27, 34 * - COUNT( * ) + + CAST( + 27 AS SIGNED ) * + 20 ) DIV - - 5 + + 36 - - ( 98 ) * - COUNT( * ) + 57 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-5217
SELECT - NULLIF ( 27, 34 * - COUNT ( * ) + + CAST ( + 27 AS INTEGER ) * + 20 ) / - - 5 + + 36 - - ( 98 ) * - COUNT ( * ) + 57 AS col0
----
-10

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

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

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

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

query I rowsort
SELECT DISTINCT + + 8
----
8

query I rowsort
SELECT DISTINCT + 9 * - + 75 * - 46 AS col0
----
31050

query I rowsort
SELECT - - 3 * + + 28 col0
----
84

query I rowsort
SELECT + - 98 + 91 + 93
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT COALESCE ( - + ( MAX( - ( + 20 ) ) ), + + 78, - + 27 ) col2
----
20

skipif mysql # not compatible
query I rowsort label-5224
SELECT COALESCE ( - + ( MAX ( - ( + 20 ) ) ), + + 78, - + 27 ) col2
----
20

query I rowsort
SELECT + COALESCE ( - 70, + ( - 54 ) ) * 92 AS col2
----
-6440

query II rowsort
SELECT DISTINCT + - 74 AS col1, - 50
----
-74
-50

query II rowsort
SELECT ALL + 17 AS col1, - 1 col2
----
17
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT - COUNT( ALL + 64 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5228
SELECT - COUNT ( ALL + 64 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-5229
SELECT ALL - 60 * + 41, COUNT( + 80 ) * + MIN( - 7 ) * 19 * - + 87 / - CASE - 27 WHEN COUNT( - ( NULLIF ( 92, + 46 ) ) ) THEN - - 18 + - 60 END AS col2, + - COUNT( * ) AS col2
----
-2460
NULL
-1

skipif mysql # not compatible
query III rowsort label-5229
SELECT ALL - 60 * + 41, COUNT ( + 80 ) * + MIN ( - 7 ) * 19 * - + 87 / - CASE - 27 WHEN COUNT ( - ( NULLIF ( 92, + 46 ) ) ) THEN - - 18 + - 60 END AS col2, + - COUNT ( * ) AS col2
----
-2460
NULL
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5230
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN - - 21 - - 26 + - 70 THEN - + 71 WHEN AVG ( 5 ) * 63 - + COUNT( * ) + - SUM( ALL 72 ) THEN - 31 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN - - 21 - - 26 + - 70 THEN - + 71 WHEN AVG ( 5 ) * 63 - + COUNT ( * ) + - SUM ( ALL 72 ) THEN - 31 END AS col1
----
NULL

query I rowsort
SELECT + - 21 * + 44
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT COALESCE ( + COUNT( * ), 91 + - 75 * - 32 + - 44 )
----
1

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT COALESCE ( + COUNT ( * ), 91 + - 75 * - 32 + - 44 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT ALL COALESCE ( + CASE 78 WHEN - MAX( + NULLIF ( - - 24, - - 61 ) ) THEN NULL WHEN - + 48 + - - COUNT( * ) THEN - 91 ELSE - - 60 END, + 11 * 96 + COUNT( + + 9 ) + 44 ) * + 46 - 6 AS col0
----
2754

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL COALESCE ( + CASE 78 WHEN - MAX ( + NULLIF ( - - 24, - - 61 ) ) THEN NULL WHEN - + 48 + - - COUNT ( * ) THEN - 91 ELSE - - 60 END, + 11 * 96 + COUNT ( + + 9 ) + 44 ) * + 46 - 6 AS col0
----
2754

query I rowsort
SELECT ALL 87 * 53 + - 51 AS col0
----
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT + MAX( DISTINCT - 76 ) - + 38
----
-114

skipif mysql # not compatible
query I rowsort label-5235
SELECT + MAX ( DISTINCT - 76 ) - + 38
----
-114

query I rowsort
SELECT COALESCE ( 71, - 89, + 8 )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5237
SELECT SUM( DISTINCT - CAST( + 61 AS SIGNED ) )
----
-61

skipif mysql # not compatible
query I rowsort label-5237
SELECT SUM ( DISTINCT - CAST ( + 61 AS INTEGER ) )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5238
SELECT + 32 DIV - SUM( ALL - + 75 ) * 54
----
0

skipif mysql # not compatible
query I rowsort label-5238
SELECT + 32 / - SUM ( ALL - + 75 ) * 54
----
0

query I rowsort
SELECT DISTINCT 97 * + + 32 * + - 97 AS col1
----
-301088

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5241
SELECT + 43 + - 74 / - - 52 + + CASE - 77 WHEN + - 71 * + + 82 / 70 + MAX( DISTINCT CAST( NULL AS SIGNED ) ) THEN 22 ELSE CAST( NULL AS SIGNED ) * 11 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5241
SELECT + 43 + - 74 / - - 52 + + CASE - 77 WHEN + - 71 * + + 82 / 70 + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN 22 ELSE CAST ( NULL AS INTEGER ) * 11 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5242
SELECT DISTINCT COUNT( * ) - + 99 + - 58 AS col2, - 18 DIV + 41
----
-156
0

skipif mysql # not compatible
query II rowsort label-5242
SELECT DISTINCT COUNT ( * ) - + 99 + - 58 AS col2, - 18 / + 41
----
-156
0

query I rowsort
SELECT - COALESCE ( + + 63, - 99 + + - 92 + 41 )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5244
SELECT + 19 + + + CAST( + 8 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-5244
SELECT + 19 + + + CAST ( + 8 AS INTEGER )
----
27

query I rowsort
SELECT ALL 25 - + 79 AS col0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5246
SELECT ALL MIN( ALL - 20 ) AS col1, - 44 DIV - 59 AS col1
----
-20
0

skipif mysql # not compatible
query II rowsort label-5246
SELECT ALL MIN ( ALL - 20 ) AS col1, - 44 / - 59 AS col1
----
-20
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT DISTINCT SUM( - 37 ) col2
----
-37

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT SUM ( - 37 ) col2
----
-37

query I rowsort
SELECT ALL COALESCE ( + 79, - + 52 ) AS col2
----
79

query II rowsort
SELECT DISTINCT 36 * - 71 AS col1, 8 col1
----
-2556
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5250
SELECT DISTINCT CASE - + 62 WHEN - - 19 + 93 THEN NULL WHEN 35 THEN MAX( ALL CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT CASE - + 62 WHEN - - 19 + 93 THEN NULL WHEN 35 THEN MAX ( ALL CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT ALL - ( - 2 ) - 28 AS col1
----
-26

query I rowsort
SELECT ALL ( CASE 97 WHEN + 14 * + + 27 + + 59 THEN NULL WHEN + 40 THEN NULL WHEN - 69 + + - 27 + - 79 THEN + 3 ELSE + 50 * - + 4 END )
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT 37 * COUNT( * ) * - 86 AS col1
----
-3182

skipif mysql # not compatible
query I rowsort label-5253
SELECT 37 * COUNT ( * ) * - 86 AS col1
----
-3182

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

query II rowsort
SELECT ALL 35 * - - 3, 56 col2
----
105
56

query I rowsort
SELECT - 80 * 76 AS col2
----
-6080

onlyif mysql # DIV for integer division: 
query I rowsort label-5257
SELECT 16 DIV + 65 - 66
----
-66

skipif mysql # not compatible
query I rowsort label-5257
SELECT 16 / + 65 - 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT - 33 - - 21 - - - 61 + + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-5258
SELECT - 33 - - 21 - - - 61 + + COUNT ( * )
----
-72

query I rowsort
SELECT + - CASE + 12 WHEN ( + + 1 ) + - + 5 THEN 55 END AS col0
----
NULL

query I rowsort
SELECT - 46 * - + 26 AS col0
----
1196

query I rowsort
SELECT DISTINCT - + 85 + + 41 AS col1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-5262
SELECT ALL + + 23 + + 25 DIV - 90 * 97 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL + + 23 + + 25 / - 90 * 97 AS col1
----
23

query I rowsort
SELECT DISTINCT - 22 * + - ( + 35 ) AS col1
----
770

query I rowsort
SELECT DISTINCT + 64 + + 23 * - 19 AS col2
----
-373

query III rowsort
SELECT ALL - 6 + - - 98, + 84 AS col2, + + 50 AS col0
----
92
84
50

query I rowsort
SELECT ALL - - NULLIF ( + - 19, 12 + ( - 52 ) ) * - - 48
----
-912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5267
SELECT - 39 * 49 + + - ( 66 ) * MIN( DISTINCT + 1 ) + - + CAST( NULL AS SIGNED ) * + 44 * + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5267
SELECT - 39 * 49 + + - ( 66 ) * MIN ( DISTINCT + 1 ) + - + CAST ( NULL AS INTEGER ) * + 44 * + 7 AS col0
----
NULL

query I rowsort
SELECT ALL - ( - + 76 ) + + 5 col0
----
81

query I rowsort
SELECT DISTINCT - - 97 + - - 34
----
131

query I rowsort
SELECT + + CASE - 39 WHEN - 71 THEN 82 + + ( + 50 ) END
----
NULL

query II rowsort
SELECT ALL - COALESCE ( - + 70, + 39 ) AS col1, 85 col0
----
70
85

query I rowsort
SELECT ALL - 31 - + 78
----
-109

query I rowsort
SELECT 3 * + 25 AS col0
----
75

query I rowsort
SELECT ALL 38 * - 28 * ( 97 )
----
-103208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5275
SELECT ALL ( COALESCE ( + - CASE 2 WHEN - 94 * 71 - 28 THEN 65 ELSE MAX( - - ( - 80 ) ) END, + COUNT( * ) DIV 95 ) ) - + COALESCE ( - 45, - + CAST( NULL AS SIGNED ) + + + COUNT( * ) * COUNT( * ) )
----
125

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL ( COALESCE ( + - CASE 2 WHEN - 94 * 71 - 28 THEN 65 ELSE MAX ( - - ( - 80 ) ) END, + COUNT ( * ) / 95 ) ) - + COALESCE ( - 45, - + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * COUNT ( * ) )
----
125

query I rowsort
SELECT - 94 * 97 + 27 * 98 * - 10 + - - 7 AS col2
----
-35571

query I rowsort
SELECT 22 + - 82
----
-60

query I rowsort
SELECT ALL 84 * - 33 * + 59
----
-163548

query I rowsort
SELECT 93 * + 5
----
465

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5281
SELECT - 90, 46 + + 76 * - - 72 * + COALESCE ( + - MAX( - 0 ), AVG ( DISTINCT + CAST( + + 0 AS SIGNED ) ) * - + 96 - - 89 * 35 ) / + - 12 - + CASE - 27 WHEN - - COUNT( * ) THEN + - NULLIF ( - - 93, - + COUNT( * ) ) ELSE NULL END - CAST( + CASE - - 52 WHEN 7 THEN - + 48 * + + 93 - 77 * 54 * SUM( ALL - 94 ) END AS SIGNED ) * - 30 AS col2
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-5281
SELECT - 90, 46 + + 76 * - - 72 * + COALESCE ( + - MAX ( - 0 ), AVG ( DISTINCT + CAST ( + + 0 AS INTEGER ) ) * - + 96 - - 89 * 35 ) / + - 12 - + CASE - 27 WHEN - - COUNT ( * ) THEN + - NULLIF ( - - 93, - + COUNT ( * ) ) ELSE NULL END - CAST ( + CASE - - 52 WHEN 7 THEN - + 48 * + + 93 - 77 * 54 * SUM ( ALL - 94 ) END AS INTEGER ) * - 30 AS col2
----
-90
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5282
SELECT ALL 92 AS col1, + 76 DIV - 66 + + + COUNT( * ) AS col1
----
92
0

skipif mysql # not compatible
query II rowsort label-5282
SELECT ALL 92 AS col1, + 76 / - 66 + + + COUNT ( * ) AS col1
----
92
0

query I rowsort
SELECT COALESCE ( 61, + 29 ) + - 99 AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5284
SELECT COUNT( * ) / - CAST( NULL AS SIGNED ) * + 39, - CASE 26 WHEN 97 + - + 29 - - 27 + 80 + - + COUNT( * ) * 45 * - COUNT( * ) THEN - SUM( - 5 ) * - 36 * - - 52 WHEN + 32 THEN NULL ELSE NULL END + - - 56 * + 60
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5284
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER ) * + 39, - CASE 26 WHEN 97 + - + 29 - - 27 + 80 + - + COUNT ( * ) * 45 * - COUNT ( * ) THEN - SUM ( - 5 ) * - 36 * - - 52 WHEN + 32 THEN NULL ELSE NULL END + - - 56 * + 60
----
NULL
NULL

query I rowsort
SELECT 18 + - 3
----
15

query II rowsort
SELECT DISTINCT 53 AS col1, - 88
----
53
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5287
SELECT NULLIF ( - 61, + - COUNT( - + 44 ) ) DIV COUNT( * ) + - MAX( - 64 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5287
SELECT NULLIF ( - 61, + - COUNT ( - + 44 ) ) / COUNT ( * ) + - MAX ( - 64 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5288
SELECT NULLIF ( - 16, + 56 / - + COALESCE ( MIN( 94 ), + 44 ) * 78 * 36 + + 53 ) + - + 78 * - 42 * - 0 AS col0, - 29 * - - COUNT( * )
----
-16
-29

skipif mysql # not compatible
query II rowsort label-5288
SELECT NULLIF ( - 16, + 56 / - + COALESCE ( MIN ( 94 ), + 44 ) * 78 * 36 + + 53 ) + - + 78 * - 42 * - 0 AS col0, - 29 * - - COUNT ( * )
----
-16
-29

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

skipif mysql # not compatible
query I rowsort label-5289
SELECT 18 * + COUNT ( * ) / - - 39
----
0

query I rowsort
SELECT 53 + - 49 AS col2
----
4

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

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

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

skipif mysql # not compatible
query I rowsort label-5292
SELECT + COUNT ( * ) + 56 AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5293
SELECT - 78 * + CASE WHEN NULL <> + 53 THEN - - CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT - 78 * + CASE WHEN NULL <> + 53 THEN - - CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT ALL - 76 + COALESCE ( + 99, COUNT( * ), - 54 + - - COUNT( * ) ) * + + 42 * + + 23 * + + 84 AS col2
----
8033180

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL - 76 + COALESCE ( + 99, COUNT ( * ), - 54 + - - COUNT ( * ) ) * + + 42 * + + 23 * + + 84 AS col2
----
8033180

query I rowsort
SELECT 98 + + - 36
----
62

query I rowsort
SELECT + 87 - 1 * + 30 AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5297
SELECT DISTINCT CASE + 75 WHEN 32 THEN + 16 + - ( CASE 42 WHEN + COALESCE ( - - COALESCE ( - COALESCE ( 1, 5 ), MIN( 35 ) * + - 23 / - - 35 - CAST( NULL AS SIGNED ) + - 75 ), - 16 / + 96 * - 92 ) / - CAST( + + 61 AS SIGNED ) * + 84 + + 7 - - ( - - 99 ) + + 81 * - - 47 * - 41 + - COUNT( * ) THEN + 22 / + CASE 84 WHEN 85 THEN NULL ELSE 41 END ELSE NULL END ) * + 99 WHEN + ( + COUNT( * ) ) * - 48 THEN 56 * ( CAST( NULL AS SIGNED ) * - SUM( DISTINCT 18 ) ) ELSE NULL END + + CASE 77 WHEN 84 THEN + 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT CASE + 75 WHEN 32 THEN + 16 + - ( CASE 42 WHEN + COALESCE ( - - COALESCE ( - COALESCE ( 1, 5 ), MIN ( 35 ) * + - 23 / - - 35 - CAST ( NULL AS INTEGER ) + - 75 ), - 16 / + 96 * - 92 ) / - CAST ( + + 61 AS INTEGER ) * + 84 + + 7 - - ( - - 99 ) + + 81 * - - 47 * - 41 + - COUNT ( * ) THEN + 22 / + CASE 84 WHEN 85 THEN NULL ELSE 41 END ELSE NULL END ) * + 99 WHEN + ( + COUNT ( * ) ) * - 48 THEN 56 * ( CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT 18 ) ) ELSE NULL END + + CASE 77 WHEN 84 THEN + 14 END
----
NULL

query II rowsort
SELECT ALL + 84 + + 84 + - 74 * 67 col2, - 17 AS col1
----
-4790
-17

query I rowsort
SELECT ALL + 35 + + + 80 * 91 AS col0
----
7315

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT ALL - - 36, COUNT( * ) + - + 61 AS col2
----
36
-60

skipif mysql # not compatible
query II rowsort label-5300
SELECT ALL - - 36, COUNT ( * ) + - + 61 AS col2
----
36
-60

query II rowsort
SELECT + 36 AS col1, 49
----
36
49

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5303
SELECT - CASE WHEN NOT NULL BETWEEN - COUNT( * ) AND NULL THEN NULL WHEN NOT NULL NOT IN ( + 59 + + 84 * + 65, - 37 * + - COUNT( * ) ) THEN + 35 END * + COUNT( * ) * - + 53 + CAST( ( ( - COALESCE ( 26, - COALESCE ( + COUNT( * ), 23, - 84 ), + + 24 ) ) ) AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT - CASE WHEN NOT NULL BETWEEN - COUNT ( * ) AND NULL THEN NULL WHEN NOT NULL NOT IN ( + 59 + + 84 * + 65, - 37 * + - COUNT ( * ) ) THEN + 35 END * + COUNT ( * ) * - + 53 + CAST ( ( ( - COALESCE ( 26, - COALESCE ( + COUNT ( * ), 23, - 84 ), + + 24 ) ) ) AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT - CASE - + SUM( 83 ) WHEN - 44 + + + 17 THEN - 58 * + COUNT( * ) + - 1 - - 67 ELSE 7 END
----
-7

skipif mysql # not compatible
query I rowsort label-5304
SELECT - CASE - + SUM ( 83 ) WHEN - 44 + + + 17 THEN - 58 * + COUNT ( * ) + - 1 - - 67 ELSE 7 END
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-5305
SELECT DISTINCT - 87 AS col2, + MAX( ALL - 8 ) * + ( + 93 ) AS col1
----
-87
-744

skipif mysql # not compatible
query II rowsort label-5305
SELECT DISTINCT - 87 AS col2, + MAX ( ALL - 8 ) * + ( + 93 ) AS col1
----
-87
-744

query I rowsort
SELECT ALL - 74 + + + 15 AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5307
SELECT ALL + - CAST( NULL AS SIGNED ) + 30 - - - COUNT( ALL + 68 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL + - CAST ( NULL AS INTEGER ) + 30 - - - COUNT ( ALL + 68 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT DISTINCT + - 32 * COUNT( * ) - + - 1 * + 23 * ( + - 51 ) - 95
----
-1300

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT + - 32 * COUNT ( * ) - + - 1 * + 23 * ( + - 51 ) - 95
----
-1300

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

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

query I rowsort
SELECT DISTINCT - 80 - + 72 AS col2
----
-152

query I rowsort
SELECT 19 + - 77 AS col1
----
-58

query II rowsort
SELECT DISTINCT - 9 * + 97 AS col0, 89 AS col2
----
-873
89

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5314
SELECT ALL - COUNT( * ) * 88 DIV 19
----
-4

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL - COUNT ( * ) * 88 / 19
----
-4

query I rowsort
SELECT 2 * + - 91
----
-182

query II rowsort
SELECT 38 * - - 59, - ( - - 72 ) * + + 5 + - 62 * - - 87 col1
----
2242
-5754

onlyif mysql # aggregate syntax: 
query II rowsort label-5317
SELECT ALL SUM( - 54 ) AS col1, 28
----
-54
28

skipif mysql # not compatible
query II rowsort label-5317
SELECT ALL SUM ( - 54 ) AS col1, 28
----
-54
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5318
SELECT 37 * + COUNT( DISTINCT - 41 ) - + CAST( + - 74 AS SIGNED ) AS col1, 62 + - 22 * - NULLIF ( + ( - 70 ), - + CAST( NULL AS DECIMAL ) ) AS col2
----
111
-1478

skipif mysql # not compatible
query II rowsort label-5318
SELECT 37 * + COUNT ( DISTINCT - 41 ) - + CAST ( + - 74 AS INTEGER ) AS col1, 62 + - 22 * - NULLIF ( + ( - 70 ), - + CAST ( NULL AS REAL ) ) AS col2
----
111
-1478

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT DISTINCT SUM( DISTINCT - - ( + 52 ) ) col1
----
52

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT SUM ( DISTINCT - - ( + 52 ) ) col1
----
52

query I rowsort
SELECT - 30 + + 50 AS col0
----
20

query I rowsort
SELECT - 0 * - 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT + COUNT( * ) + 73 * + 97 col0
----
7082

skipif mysql # not compatible
query I rowsort label-5322
SELECT + COUNT ( * ) + 73 * + 97 col0
----
7082

query II rowsort
SELECT + 65 - - 53 AS col0, - 38
----
118
-38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT - SUM( DISTINCT 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-5325
SELECT - SUM ( DISTINCT 94 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT - COUNT( DISTINCT 71 ) * + - 33
----
33

skipif mysql # not compatible
query I rowsort label-5326
SELECT - COUNT ( DISTINCT 71 ) * + - 33
----
33

query I rowsort
SELECT + 71 + - 56
----
15

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

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT 41 * - COUNT ( + - 30 ) AS col0
----
-41

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

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

query I rowsort
SELECT ALL 68 + 47
----
115

query I rowsort
SELECT + 37 * 93 col1
----
3441

onlyif mysql # aggregate syntax: 
query II rowsort label-5332
SELECT - CASE + SUM( - - 5 ) WHEN + + 60 * - 68 THEN - - MIN( DISTINCT - 92 ) END AS col0, 59 + - + COUNT( - 86 )
----
NULL
58

skipif mysql # not compatible
query II rowsort label-5332
SELECT - CASE + SUM ( - - 5 ) WHEN + + 60 * - 68 THEN - - MIN ( DISTINCT - 92 ) END AS col0, 59 + - + COUNT ( - 86 )
----
NULL
58

query I rowsort
SELECT ALL + 53 + + COALESCE ( 86, + 19 )
----
139

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

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

query I rowsort
SELECT + + 38 col0
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-5336
SELECT + - CASE 86 WHEN + + 33 THEN NULL ELSE - 3 * - 94 * - 1 END DIV + - 7 AS col0, 83 + + 88 AS col1
----
-40
171

skipif mysql # not compatible
query II rowsort label-5336
SELECT + - CASE 86 WHEN + + 33 THEN NULL ELSE - 3 * - 94 * - 1 END / + - 7 AS col0, 83 + + 88 AS col1
----
-40
171

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT + COALESCE ( + 63, + + COUNT( * ), + + 25 + 90 + + 46 * - 16, COUNT( * ) )
----
63

skipif mysql # not compatible
query I rowsort label-5337
SELECT + COALESCE ( + 63, + + COUNT ( * ), + + 25 + 90 + + 46 * - 16, COUNT ( * ) )
----
63

query I rowsort
SELECT + + COALESCE ( + 3, + 50 ) AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5339
SELECT ALL - 78 * 41 * - 79 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL - 78 * 41 * - 79 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 23 - - NULLIF ( - + 43, - 40 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5341
SELECT ALL - 49 * + + 42 + - - COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) + - - 38 + + - COUNT( * ) * + COUNT( * ) * COUNT( - CASE 91 WHEN - CAST( 46 AS SIGNED ) THEN NULL WHEN 42 THEN + + 49 END ) * 96 - - 63
----
-1957

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL - 49 * + + 42 + - - COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + - - 38 + + - COUNT ( * ) * + COUNT ( * ) * COUNT ( - CASE 91 WHEN - CAST ( 46 AS INTEGER ) THEN NULL WHEN 42 THEN + + 49 END ) * 96 - - 63
----
-1957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5342
SELECT + 53 * COALESCE ( - - ( + CAST( MIN( + CAST( 64 AS SIGNED ) ) AS SIGNED ) ), - - COALESCE ( + 77, 88 * - + CASE + COUNT( * ) WHEN - 39 THEN NULL WHEN - + 2 * - 46 + - - 0 + 41 * 11 + + + ( - + 28 ) THEN + 56 + - 61 ELSE NULL END * - CASE - 44 WHEN + 47 + - 11 + + - COUNT( * ) * 56 * - 34 + - 84 - - 43 * 4 * + 81 * - CAST( NULL AS SIGNED ) THEN - 68 END + MIN( DISTINCT 24 + + 33 ) - - ( + MAX( DISTINCT 69 ) + + COALESCE ( + 40 + CASE - 77 + 22 * 0 WHEN + COUNT( * ) THEN NULL WHEN + 59 THEN + COALESCE ( - 55, COUNT( * ) * - 74, + ( 38 ) ) ELSE NULL END, + 96 ) ) ), 1 )
----
3392

skipif mysql # not compatible
query I rowsort label-5342
SELECT + 53 * COALESCE ( - - ( + CAST ( MIN ( + CAST ( 64 AS INTEGER ) ) AS INTEGER ) ), - - COALESCE ( + 77, 88 * - + CASE + COUNT ( * ) WHEN - 39 THEN NULL WHEN - + 2 * - 46 + - - 0 + 41 * 11 + + + ( - + 28 ) THEN + 56 + - 61 ELSE NULL END * - CASE - 44 WHEN + 47 + - 11 + + - COUNT ( * ) * 56 * - 34 + - 84 - - 43 * 4 * + 81 * - CAST ( NULL AS INTEGER ) THEN - 68 END + MIN ( DISTINCT 24 + + 33 ) - - ( + MAX ( DISTINCT 69 ) + + COALESCE ( + 40 + CASE - 77 + 22 * 0 WHEN + COUNT ( * ) THEN NULL WHEN + 59 THEN + COALESCE ( - 55, COUNT ( * ) * - 74, + ( 38 ) ) ELSE NULL END, + 96 ) ) ), 1 )
----
3392

query I rowsort
SELECT ALL - + ( - - 37 ) * 4 - 2 AS col2
----
-150

query I rowsort
SELECT ALL + - 11 col2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-5345
SELECT - ( - - 82 ) DIV - 19 - + 29 DIV 70 - 74 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-5345
SELECT - ( - - 82 ) / - 19 - + 29 / 70 - 74 AS col0
----
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5346
SELECT - 79 - - - CAST( NULL AS DECIMAL ) * - - 65 * + 30 * + - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5346
SELECT - 79 - - - CAST ( NULL AS REAL ) * - - 65 * + 30 * + - 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT + COALESCE ( - COUNT( * ), + + 73 * - + COUNT( * ), ( 18 ) + + 82 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5347
SELECT + COALESCE ( - COUNT ( * ), + + 73 * - + COUNT ( * ), ( 18 ) + + 82 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5348
SELECT NULLIF ( 40, + + ( + 36 ) + - COUNT( DISTINCT - 6 ) ), - 18 AS col0
----
40
-18

skipif mysql # not compatible
query II rowsort label-5348
SELECT NULLIF ( 40, + + ( + 36 ) + - COUNT ( DISTINCT - 6 ) ), - 18 AS col0
----
40
-18

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

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

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

skipif mysql # not compatible
query I rowsort label-5350
SELECT MAX ( - - 58 ) col0
----
58

query I rowsort
SELECT - 19 + - + 85 + - - 58 * - 84 AS col0
----
-4976

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

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

query I rowsort
SELECT ALL + COALESCE ( - 21, + - 40 * 8 + - + 73, 89, - + 34 ) * - 78 * + 97 AS col0
----
158886

query I rowsort
SELECT ALL ( - 50 )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5355
SELECT ALL 35 * + 3 + 31 + - NULLIF ( - 90, + - 45 ) * - 48 DIV - COUNT( * ) AS col2
----
4456

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL 35 * + 3 + 31 + - NULLIF ( - 90, + - 45 ) * - 48 / - COUNT ( * ) AS col2
----
4456

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT - ( 5 ) * - 50 * COUNT( * ) + + 40
----
290

skipif mysql # not compatible
query I rowsort label-5356
SELECT - ( 5 ) * - 50 * COUNT ( * ) + + 40
----
290

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5358
SELECT + 1 + COALESCE ( - 66, 61, - + 54 * SUM( ALL + + 35 ) ) - + 0 * + - ( - 54 ) - CASE + 82 WHEN + 33 THEN NULL ELSE 44 * - 53 END * CAST( NULL AS SIGNED ) / + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5358
SELECT + 1 + COALESCE ( - 66, 61, - + 54 * SUM ( ALL + + 35 ) ) - + 0 * + - ( - 54 ) - CASE + 82 WHEN + 33 THEN NULL ELSE 44 * - 53 END * CAST ( NULL AS INTEGER ) / + + 6
----
NULL

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

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

query I rowsort
SELECT ALL - 24 + + 78 + - 25 AS col0
----
29

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

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT + 52 * + COUNT ( * ) AS col0
----
52

query I rowsort
SELECT - 71 + + 11
----
-60

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

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

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

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL CAST ( + 22 AS INTEGER ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5365
SELECT - COUNT( * ) + + NULLIF ( 18, - 84 ) + - CAST( - + MIN( DISTINCT - + 97 ) AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-5365
SELECT - COUNT ( * ) + + NULLIF ( 18, - 84 ) + - CAST ( - + MIN ( DISTINCT - + 97 ) AS INTEGER )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL - MAX( DISTINCT - 60 ) + ( - 75 )
----
-15

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL - MAX ( DISTINCT - 60 ) + ( - 75 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT DISTINCT - CASE + 76 WHEN - 87 THEN NULL WHEN 2 THEN - + SUM( DISTINCT NULLIF ( 0, 70 * - 52 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT - CASE + 76 WHEN - 87 THEN NULL WHEN 2 THEN - + SUM ( DISTINCT NULLIF ( 0, 70 * - 52 ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL + 68 + - COUNT( - COALESCE ( - + 96, - 63 ) ) * - 11
----
79

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL + 68 + - COUNT ( - COALESCE ( - + 96, - 63 ) ) * - 11
----
79

query I rowsort
SELECT - + 62 - + 96 AS col0
----
-158

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

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

query II rowsort
SELECT ALL 3, + 39 AS col1
----
3
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5372
SELECT - - 87 + 86 DIV + 98, COUNT( * ) AS col2
----
87
1

skipif mysql # not compatible
query II rowsort label-5372
SELECT - - 87 + 86 / + 98, COUNT ( * ) AS col2
----
87
1

query II rowsort
SELECT DISTINCT 70 AS col1, 14 + 39 + + + 21 AS col2
----
70
74

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

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

query I rowsort
SELECT + 71 * + 84 AS col2
----
5964

query I rowsort
SELECT DISTINCT + + 91 * - 15
----
-1365

query I rowsort
SELECT ALL 59 * - + 99
----
-5841

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

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

query I rowsort
SELECT ALL + - ( + + 55 ) * - CASE + - ( - - 28 ) WHEN 97 THEN NULL ELSE - 48 END
----
-2640

query I rowsort
SELECT + - 86 + - + 62 AS col2
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT + 32 * + - 53 * + CAST( NULL AS SIGNED ) + + - 11 + - 23 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT + 32 * + - 53 * + CAST ( NULL AS INTEGER ) + + - 11 + - 23 col1
----
NULL

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

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

query I rowsort
SELECT + NULLIF ( 75, 78 * - + 72 ) AS col0
----
75

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

skipif mysql # not compatible
query I rowsort label-5384
SELECT - COUNT ( * ) / + - 32 + 96 AS col2
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT + 55 + + 12 * 2 * - CASE 43 WHEN + 17 THEN + + 23 + NULLIF ( + - 48, + ( + MAX( ALL + 64 ) ) ) WHEN + 41 THEN NULL END + - 32 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5386
SELECT + 55 + + 12 * 2 * - CASE 43 WHEN + 17 THEN + + 23 + NULLIF ( + - 48, + ( + MAX ( ALL + 64 ) ) ) WHEN + 41 THEN NULL END + - 32 col0
----
NULL

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

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

query I rowsort
SELECT ALL ( + 69 ) * - - 25 AS col2
----
1725

query II rowsort
SELECT + 61 * - 55 AS col2, 87 AS col0
----
-3355
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5390
SELECT ( - CASE WHEN COUNT( * ) IS NOT NULL THEN + 2 + - CAST( NULL AS SIGNED ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT ( - CASE WHEN COUNT ( * ) IS NOT NULL THEN + 2 + - CAST ( NULL AS INTEGER ) END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5391
SELECT DISTINCT COUNT( * ) + - 3 DIV + 24 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT COUNT ( * ) + - 3 / + 24 AS col2
----
1

query I rowsort
SELECT ALL 7 * 56 AS col2
----
392

query II rowsort
SELECT 83 AS col0, - 14 AS col1
----
83
-14

query I rowsort
SELECT ALL ( - + 72 ) * + + 21 AS col1
----
-1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5395
SELECT DISTINCT CAST( + + ( + - COUNT( ALL + - NULLIF ( + - 66, + - 72 ) ) ) AS SIGNED ) + - + NULLIF ( + 21, 47 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT CAST ( + + ( + - COUNT ( ALL + - NULLIF ( + - 66, + - 72 ) ) ) AS INTEGER ) + - + NULLIF ( + 21, 47 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-5396
SELECT DISTINCT COUNT( * ) + + 8 AS col0, 31
----
9
31

skipif mysql # not compatible
query II rowsort label-5396
SELECT DISTINCT COUNT ( * ) + + 8 AS col0, 31
----
9
31

query I rowsort
SELECT ALL 48 + - 18 - + 16
----
14

query II rowsort
SELECT ALL 55, 11 * + - 26 AS col0
----
55
-286

query II rowsort
SELECT 82 AS col0, 92 * 81 AS col2
----
82
7452

onlyif mysql # DIV for integer division: 
query I rowsort label-5400
SELECT ALL - 2 DIV + 6 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL - 2 / + 6 AS col1
----
0

query I rowsort
SELECT DISTINCT + 48 + 17 AS col1
----
65

query I rowsort
SELECT DISTINCT - 93 + - + 49 * + - 25 AS col2
----
1132

query II rowsort
SELECT - 65 AS col1, 35 AS col1
----
-65
35

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5405
SELECT COUNT( * ) * 95 AS col2, 22
----
95
22

skipif mysql # not compatible
query II rowsort label-5405
SELECT COUNT ( * ) * 95 AS col2, 22
----
95
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT 73 + - + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-5407
SELECT 73 + - + COUNT ( * )
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5408
SELECT - - 75 AS col2, - CAST( NULL AS DECIMAL ) * + + 53 AS col0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-5408
SELECT - - 75 AS col2, - CAST ( NULL AS REAL ) * + + 53 AS col0
----
75
NULL

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

query II rowsort
SELECT - - 65, + 50 AS col1
----
65
50

query II rowsort
SELECT - - 52 AS col0, COALESCE ( 13, - 57, - 28, 84 ) * - + 23 * - - 16 AS col1
----
52
-4784

query I rowsort
SELECT ALL + 87 * + + 77
----
6699

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT - MAX( - + 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5415
SELECT - MAX ( - + 95 ) AS col1
----
95

query I rowsort
SELECT DISTINCT - 4 * - - 53 AS col0
----
-212

onlyif mysql # aggregate syntax: 
query II rowsort label-5417
SELECT - 61 AS col2, + COALESCE ( - 8, - - 49, - 97 ) + MIN( ALL 98 )
----
-61
90

skipif mysql # not compatible
query II rowsort label-5417
SELECT - 61 AS col2, + COALESCE ( - 8, - - 49, - 97 ) + MIN ( ALL 98 )
----
-61
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5418
SELECT + ( - MIN( + 84 ) ) DIV + + 20 + - 62 + + MIN( ALL + 30 ) AS col0, 51 AS col1
----
-36
51

skipif mysql # not compatible
query II rowsort label-5418
SELECT + ( - MIN ( + 84 ) ) / + + 20 + - 62 + + MIN ( ALL + 30 ) AS col0, 51 AS col1
----
-36
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT ALL - 60 / - - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL - 60 / - - ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + - 1, - 80 AS col0
----
-1
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5421
SELECT - 0 / + CAST( NULL AS DECIMAL ) - + - 29 + + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5421
SELECT - 0 / + CAST ( NULL AS REAL ) - + - 29 + + 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5422
SELECT + - COUNT( DISTINCT - + 78 ), + 18 AS col2
----
-1
18

skipif mysql # not compatible
query II rowsort label-5422
SELECT + - COUNT ( DISTINCT - + 78 ), + 18 AS col2
----
-1
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT ALL - + SUM( DISTINCT - - 70 ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL - + SUM ( DISTINCT - - 70 ) col1
----
-70

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5425
SELECT 12 + CAST( NULL AS SIGNED ) col2, - 30
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-5425
SELECT 12 + CAST ( NULL AS INTEGER ) col2, - 30
----
NULL
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-5426
SELECT 18 DIV + + 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5426
SELECT 18 / + + 33 AS col1
----
0

query I rowsort
SELECT - 53 * - - 50 + 55
----
-2595

onlyif mysql # DIV for integer division: 
query I rowsort label-5428
SELECT 31 DIV + - 55 * 58
----
0

skipif mysql # not compatible
query I rowsort label-5428
SELECT 31 / + - 55 * 58
----
0

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

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

query I rowsort
SELECT 12 + + 21 * 53
----
1125

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5432
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 12 + + + 88, + ( COUNT( * ) ) + - CAST( - COUNT( * ) AS SIGNED ) + 58 AS col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-5432
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 12 + + + 88, + ( COUNT ( * ) ) + - CAST ( - COUNT ( * ) AS INTEGER ) + 58 AS col0
----
NULL
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5433
SELECT - 39 * - COALESCE ( 34, - COUNT( * ) ) + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5433
SELECT - 39 * - COALESCE ( 34, - COUNT ( * ) ) + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL 24 + - - 66
----
90

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

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

query I rowsort
SELECT DISTINCT 0 * + ( + 63 ) AS col1
----
0

query I rowsort
SELECT 56 + - NULLIF ( - 4, 25 / - 54 * 28 - 17 + 60 ) AS col2
----
60

query I rowsort
SELECT ALL 18 * 30
----
540

query I rowsort
SELECT ALL 94 - + 14 + - 20 * + 64 + 85 AS col1
----
-1115

query I rowsort
SELECT DISTINCT 53 * + + 62
----
3286

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5441
SELECT DISTINCT 64 * - 26 * + 42 AS col1, CAST( 28 AS SIGNED ) DIV + 35 + NULLIF ( - + 88, + AVG ( DISTINCT + + 29 ) * 22 ) + 65
----
-69888
-23

skipif mysql # not compatible
query II rowsort label-5441
SELECT DISTINCT 64 * - 26 * + 42 AS col1, CAST ( 28 AS INTEGER ) / + 35 + NULLIF ( - + 88, + AVG ( DISTINCT + + 29 ) * 22 ) + 65
----
-69888
-23

query I rowsort
SELECT 81 + - 53 + 56 * - 60 col0
----
-3332

query I rowsort
SELECT - - AVG ( ALL - CASE 46 WHEN - + 51 THEN 90 END ) AS col1
----
NULL

query I rowsort
SELECT ALL + 65 * 26
----
1690

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5445
SELECT COUNT( * ) * - 81 AS col1, - 11 + + 9 + 70 * - 61 * - NULLIF ( - COUNT( * ), - CAST( NULL AS DECIMAL ) + + MAX( DISTINCT + 12 ) ) AS col0
----
-81
-4272

skipif mysql # not compatible
query II rowsort label-5445
SELECT COUNT ( * ) * - 81 AS col1, - 11 + + 9 + 70 * - 61 * - NULLIF ( - COUNT ( * ), - CAST ( NULL AS REAL ) + + MAX ( DISTINCT + 12 ) ) AS col0
----
-81
-4272

query II rowsort
SELECT ALL + ( + - 8 ) AS col2, 39
----
-8
39

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

skipif mysql # not compatible
query I rowsort label-5447
SELECT 67 + - COUNT ( * ) + 19 AS col2
----
85

query I rowsort
SELECT + 97 + - 3 + - 13
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5449
SELECT 59 * + ( - + 25 ) * - - 28 DIV - COUNT( * ) + 70 col1
----
41370

skipif mysql # not compatible
query I rowsort label-5449
SELECT 59 * + ( - + 25 ) * - - 28 / - COUNT ( * ) + 70 col1
----
41370

query I rowsort
SELECT ( + + 77 ) * + 72
----
5544

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

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

query I rowsort
SELECT ALL 16 * + 12 AS col2
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT COUNT( ALL - 98 ) + 92
----
93

skipif mysql # not compatible
query I rowsort label-5453
SELECT COUNT ( ALL - 98 ) + 92
----
93

query I rowsort
SELECT 85 * - + 58 AS col2
----
-4930

query II rowsort
SELECT 16 + - + 36, + 60 + + 27 + - 45 AS col2
----
-20
42

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

query I rowsort
SELECT ALL + - 81 + - 71
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5458
SELECT ALL + 28 + + CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL + 28 + + CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5459
SELECT DISTINCT + 70 * COUNT( * ) DIV + 87 * 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT + 70 * COUNT ( * ) / + 87 * 92 AS col2
----
0

query I rowsort
SELECT - 20 * + 13 AS col2
----
-260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5461
SELECT ALL - 40 * + 36 + + - 26 + + CAST( NULL AS SIGNED ) + + COUNT( * ) + + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL - 40 * + 36 + + - 26 + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + + 43
----
NULL

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

query I rowsort
SELECT COALESCE ( - 88, - COALESCE ( 37, - 22 ) + + + 28 + - 39 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT ALL - 80 * - + SUM( + + ( + - COALESCE ( - 78, - 57 ) ) ) + 31 + 44
----
6315

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL - 80 * - + SUM ( + + ( + - COALESCE ( - 78, - 57 ) ) ) + 31 + 44
----
6315

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

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

query I rowsort
SELECT DISTINCT + ( + + CASE + 55 WHEN - 8 THEN + + ( 42 ) + - - AVG ( ALL - 5 ) WHEN + 7 THEN - - 83 END ) AS col1
----
NULL

query I rowsort
SELECT CASE - + 64 WHEN - 88 THEN + 1 ELSE 22 END * + 67 * + + 6 + - + 29 AS col2
----
8815

query I rowsort
SELECT COALESCE ( - + 98, + - 30 ) AS col0
----
-98

query I rowsort
SELECT - 54 * + + NULLIF ( - 21, + 6 * 82 + 71 ) col1
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT + MAX( DISTINCT - 1 ) * + 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5470
SELECT + MAX ( DISTINCT - 1 ) * + 98 AS col1
----
-98

query I rowsort
SELECT ALL - 2 * + + 19
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5472
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 91 + 1 * 0 - - + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 91 + 1 * 0 - - + 54 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5473
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 27 * - 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 27 * - 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT DISTINCT 35 * + 73 - - + COUNT( * ) * + ( 31 )
----
2586

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT 35 * + 73 - - + COUNT ( * ) * + ( 31 )
----
2586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5475
SELECT ALL 4 * + - 87 - - CAST( NULL AS SIGNED ) + 45 + + COALESCE ( - MIN( DISTINCT 41 ), + - 92 ) + + 72 * - - 42 - 68 + - 70 + + 15 * + - 81 / + ( - 70 ) - - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL 4 * + - 87 - - CAST ( NULL AS INTEGER ) + 45 + + COALESCE ( - MIN ( DISTINCT 41 ), + - 92 ) + + 72 * - - 42 - 68 + - 70 + + 15 * + - 81 / + ( - 70 ) - - COUNT ( * ) col0
----
NULL

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

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

query II rowsort
SELECT + 18 + + + 56 * 3, 98 * + + CASE + - ( - 61 ) WHEN - 12 THEN NULL WHEN + 48 THEN - NULLIF ( - 17, + 41 * + 88 ) END + - 26 AS col2
----
186
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT - MAX( ALL 12 ) * - COUNT( * ) + - 21
----
-9

skipif mysql # not compatible
query I rowsort label-5478
SELECT - MAX ( ALL 12 ) * - COUNT ( * ) + - 21
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5479
SELECT ALL 47 * - CASE - - 1 WHEN + 36 THEN COUNT( + - CAST( NULL AS SIGNED ) ) * - - 50 ELSE NULL END - + 78 + - - ( - 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL 47 * - CASE - - 1 WHEN + 36 THEN COUNT ( + - CAST ( NULL AS INTEGER ) ) * - - 50 ELSE NULL END - + 78 + - - ( - 33 ) AS col2
----
NULL

query I rowsort
SELECT - + 31 * + 54 AS col1
----
-1674

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT - - 56 - SUM( + - 55 )
----
111

skipif mysql # not compatible
query I rowsort label-5482
SELECT - - 56 - SUM ( + - 55 )
----
111

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

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

query II rowsort
SELECT - 16 col0, 29 AS col2
----
-16
29

query I rowsort
SELECT ALL 21 * + + 42 * - 44 + - 60 - 63 AS col0
----
-38931

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5486
SELECT - 67, CAST( - 50 AS SIGNED ) + - 74 + - + 54 AS col0
----
-67
-178

skipif mysql # not compatible
query II rowsort label-5486
SELECT - 67, CAST ( - 50 AS INTEGER ) + - 74 + - + 54 AS col0
----
-67
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL - COUNT( 41 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL - COUNT ( 41 ) col0
----
-1

query II rowsort
SELECT + 40 AS col1, + 14 * 60 AS col1
----
40
840

query I rowsort
SELECT + + ( - + 60 ) * - + 61 col2
----
3660

query I rowsort
SELECT ALL - 69 + - 5 AS col1
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5491
SELECT DISTINCT - 10 + MAX( + 45 ) DIV 69
----
-10

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT - 10 + MAX ( + 45 ) / 69
----
-10

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5493
SELECT ALL ( 82 ) + + 34, COUNT( * ) + - COUNT( * ) AS col0
----
116
0

skipif mysql # not compatible
query II rowsort label-5493
SELECT ALL ( 82 ) + + 34, COUNT ( * ) + - COUNT ( * ) AS col0
----
116
0

query I rowsort
SELECT + 85 + - - 10 * + 82 - - 12 * + 7
----
989

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT + MIN( ALL 57 ) * + 1 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-5495
SELECT + MIN ( ALL 57 ) * + 1 AS col2
----
57

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

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL ( - 71 ) + COUNT ( * ) AS col2
----
-70

query I rowsort
SELECT + 2 * + COALESCE ( + 89, + 92 * + 51 * - 51 )
----
178

query I rowsort
SELECT - 67 * + + 86 AS col0
----
-5762

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5499
SELECT + ( - - COUNT( * ) ) AS col0, - 33 DIV + 82
----
1
0

skipif mysql # not compatible
query II rowsort label-5499
SELECT + ( - - COUNT ( * ) ) AS col0, - 33 / + 82
----
1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT CAST( - 19 AS SIGNED ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5500
SELECT CAST ( - 19 AS INTEGER ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-5501
SELECT - ( + - 48 ) * - CASE + 68 WHEN + 35 THEN - + 31 WHEN - MIN( ALL - 93 ) THEN - 12 * - 21 / - 25 WHEN 89 THEN - 56 - - 55 END AS col2, + 47 + 14 AS col0
----
NULL
61

skipif mysql # not compatible
query II rowsort label-5501
SELECT - ( + - 48 ) * - CASE + 68 WHEN + 35 THEN - + 31 WHEN - MIN ( ALL - 93 ) THEN - 12 * - 21 / - 25 WHEN 89 THEN - 56 - - 55 END AS col2, + 47 + 14 AS col0
----
NULL
61

query II rowsort
SELECT + 31 + - - 55 AS col2, + 57 AS col2
----
86
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5503
SELECT DISTINCT MAX( ALL - + 1 ) * ( - - NULLIF ( + SUM( + - 37 ), + COALESCE ( - CAST( NULL AS SIGNED ), + - 59 ) ) )
----
37

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT MAX ( ALL - + 1 ) * ( - - NULLIF ( + SUM ( + - 37 ), + COALESCE ( - CAST ( NULL AS INTEGER ), + - 59 ) ) )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5504
SELECT ALL 31 DIV + + 51 - 42
----
-42

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL 31 / + + 51 - 42
----
-42

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5506
SELECT ( - COUNT( * ) ) AS col2, ( + NULLIF ( + - COUNT( * ), - 62 ) ) * - + 80 * - - 55 + - 0 + + 54 + 5
----
-1
4459

skipif mysql # not compatible
query II rowsort label-5506
SELECT ( - COUNT ( * ) ) AS col2, ( + NULLIF ( + - COUNT ( * ), - 62 ) ) * - + 80 * - - 55 + - 0 + + 54 + 5
----
-1
4459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5507
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) + + COUNT( ALL + 84 ), - 35 AS col0
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-5507
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + COUNT ( ALL + 84 ), - 35 AS col0
----
NULL
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT - MIN( ALL 30 ) * + - 90 AS col1
----
2700

skipif mysql # not compatible
query I rowsort label-5508
SELECT - MIN ( ALL 30 ) * + - 90 AS col1
----
2700

query I rowsort
SELECT ALL + 71 * 87 * + + 51 AS col2
----
315027

query I rowsort
SELECT - - 10 + + 8
----
18

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5512
SELECT - + 33 + + - 96 - CAST( + - 24 AS SIGNED ) AS col0, 57 * - + 53 AS col2
----
-105
-3021

skipif mysql # not compatible
query II rowsort label-5512
SELECT - + 33 + + - 96 - CAST ( + - 24 AS INTEGER ) AS col0, 57 * - + 53 AS col2
----
-105
-3021

query I rowsort
SELECT - - 28 * + 41 AS col2
----
1148

query I rowsort
SELECT - - 69 + 98 AS col0
----
167

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5516
SELECT + - 78 DIV - - 36 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5516
SELECT + - 78 / - - 36 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5517
SELECT ALL + + ( + 45 ) * - COUNT( * ) + - ( + - 26 ) * 3 + CASE - COUNT( * ) WHEN - 70 THEN + 87 WHEN - 58 THEN + + 7 + - COALESCE ( + 99, + ( + 80 ) ) + - 72 / CAST( + + 37 AS SIGNED ) * - + CAST( + - COUNT( * ) AS SIGNED ) * COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL + + ( + 45 ) * - COUNT ( * ) + - ( + - 26 ) * 3 + CASE - COUNT ( * ) WHEN - 70 THEN + 87 WHEN - 58 THEN + + 7 + - COALESCE ( + 99, + ( + 80 ) ) + - 72 / CAST ( + + 37 AS INTEGER ) * - + CAST ( + - COUNT ( * ) AS INTEGER ) * COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5518
SELECT - 68 + + - COUNT( * ) * 9 DIV - 16 * + + 78 * + 97 + + + 25 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-5518
SELECT - 68 + + - COUNT ( * ) * 9 / - 16 * + + 78 * + 97 + + + 25 AS col1
----
-43

query I rowsort
SELECT 45 + 40
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5520
SELECT ALL - ( - + 72 ) + - COALESCE ( + COUNT( * ), - 81 ) * - ( 15 ) * + 88 DIV + COUNT( * ) AS col1, - 0 + - 73 - + 3 + - ( - 20 ) * - COALESCE ( + - 50, 7, + + 60 ) DIV + CAST( NULL AS SIGNED ) * + 6 * - + 21 - - 63 col1
----
1392
NULL

skipif mysql # not compatible
query II rowsort label-5520
SELECT ALL - ( - + 72 ) + - COALESCE ( + COUNT ( * ), - 81 ) * - ( 15 ) * + 88 / + COUNT ( * ) AS col1, - 0 + - 73 - + 3 + - ( - 20 ) * - COALESCE ( + - 50, 7, + + 60 ) / + CAST ( NULL AS INTEGER ) * + 6 * - + 21 - - 63 col1
----
1392
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5522
SELECT DISTINCT + CAST( ( + SUM( - 14 ) ) AS SIGNED ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT + CAST ( ( + SUM ( - 14 ) ) AS INTEGER ) AS col0
----
-14

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5524
SELECT MIN( 29 ), + 38 + - + 83 AS col2
----
29
-45

skipif mysql # not compatible
query II rowsort label-5524
SELECT MIN ( 29 ), + 38 + - + 83 AS col2
----
29
-45

query I rowsort
SELECT ALL ( 25 ) * - 30 AS col1
----
-750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5526
SELECT CASE - 50 WHEN - 14 / NULLIF ( - + 12, - 53 ) / - 52 THEN CAST( NULL AS SIGNED ) * - 22 * + 85 + ( + COUNT( * ) ) / ( - + 58 ) WHEN + + 49 - 62 + 77 THEN NULL ELSE NULL END + + + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT CASE - 50 WHEN - 14 / NULLIF ( - + 12, - 53 ) / - 52 THEN CAST ( NULL AS INTEGER ) * - 22 * + 85 + ( + COUNT ( * ) ) / ( - + 58 ) WHEN + + 49 - 62 + 77 THEN NULL ELSE NULL END + + + 56 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT ( ( COUNT( * ) ) ) * 78 * - 37
----
-2886

skipif mysql # not compatible
query I rowsort label-5528
SELECT ( ( COUNT ( * ) ) ) * 78 * - 37
----
-2886

onlyif mysql # DIV for integer division: 
query I rowsort label-5529
SELECT DISTINCT 8 - + COALESCE ( + 63, + 2 + + + 62 ) DIV 79 DIV + - 2 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT 8 - + COALESCE ( + 63, + 2 + + + 62 ) / 79 / + - 2 AS col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5530
SELECT DISTINCT 84 - MAX( 92 ) AS col1, - NULLIF ( + ( ( COUNT( * ) ) ), + - 35 * - + COUNT( * ) - + 94 + - COUNT( * ) ) * + - 31 + - 94 + - + 20
----
-8
-83

skipif mysql # not compatible
query II rowsort label-5530
SELECT DISTINCT 84 - MAX ( 92 ) AS col1, - NULLIF ( + ( ( COUNT ( * ) ) ), + - 35 * - + COUNT ( * ) - + 94 + - COUNT ( * ) ) * + - 31 + - 94 + - + 20
----
-8
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5531
SELECT ( - CAST( NULL AS SIGNED ) ) * + - 50 * + NULLIF ( + - 92, 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT ( - CAST ( NULL AS INTEGER ) ) * + - 50 * + NULLIF ( + - 92, 86 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5532
SELECT CAST( ( 80 ) AS SIGNED ) * - 24 AS col1
----
-1920

skipif mysql # not compatible
query I rowsort label-5532
SELECT CAST ( ( 80 ) AS INTEGER ) * - 24 AS col1
----
-1920

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

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

query I rowsort
SELECT DISTINCT 42 * + + 78 col2
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT 56 * - 8 * - + MIN( DISTINCT + 25 )
----
11200

skipif mysql # not compatible
query I rowsort label-5535
SELECT 56 * - 8 * - + MIN ( DISTINCT + 25 )
----
11200

query I rowsort
SELECT ALL 35 * - - 53
----
1855

query I rowsort
SELECT DISTINCT 94 * + 16
----
1504

onlyif mysql # aggregate syntax: 
query II rowsort label-5538
SELECT + 14 AS col0, - COUNT( * ) * + ( + 65 )
----
14
-65

skipif mysql # not compatible
query II rowsort label-5538
SELECT + 14 AS col0, - COUNT ( * ) * + ( + 65 )
----
14
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5539
SELECT + NULLIF ( + + 30, - - 16 ) col1, AVG ( NULLIF ( CAST( NULL AS SIGNED ), - - 33 * - 56 * + 91 ) ) AS col1
----
30
NULL

skipif mysql # not compatible
query II rowsort label-5539
SELECT + NULLIF ( + + 30, - - 16 ) col1, AVG ( NULLIF ( CAST ( NULL AS INTEGER ), - - 33 * - 56 * + 91 ) ) AS col1
----
30
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5541
SELECT ALL COALESCE ( - 75, + CAST( - - 42 AS SIGNED ) * - - MAX( ALL - - 35 ) ) * 90
----
-6750

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL COALESCE ( - 75, + CAST ( - - 42 AS INTEGER ) * - - MAX ( ALL - - 35 ) ) * 90
----
-6750

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

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

query I rowsort
SELECT ALL + 37 + - 34 AS col2
----
3

query I rowsort
SELECT 42 + - 97 * - 92
----
8966

query I rowsort
SELECT DISTINCT - 35 + + - 13
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT ALL + 76 + + SUM( DISTINCT - 28 )
----
48

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL + 76 + + SUM ( DISTINCT - 28 )
----
48

query I rowsort
SELECT - 57 - 45 AS col0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT CASE - + 35 WHEN - - 68 THEN + - MIN( - 64 ) WHEN 85 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5548
SELECT CASE - + 35 WHEN - - 68 THEN + - MIN ( - 64 ) WHEN 85 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - - 62 + + + 19
----
81

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5551
SELECT - - 93, 35 + + + 56 DIV + 8 AS col2
----
93
42

skipif mysql # not compatible
query II rowsort label-5551
SELECT - - 93, 35 + + + 56 / + 8 AS col2
----
93
42

query I rowsort
SELECT - 16 * + + 21 + - - 69 col1
----
-267

onlyif mysql # aggregate syntax: 
query II rowsort label-5553
SELECT - + 39 AS col0, 93 + - COUNT( * ) * + - 22 * + 72
----
-39
1677

skipif mysql # not compatible
query II rowsort label-5553
SELECT - + 39 AS col0, 93 + - COUNT ( * ) * + - 22 * + 72
----
-39
1677

query I rowsort
SELECT DISTINCT - 61 - - ( 3 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5555
SELECT ALL 43 - NULLIF ( - 17, COUNT( * ) * + 39 + - COALESCE ( + + COUNT( * ), 72 - - - 24 + COUNT( * ) + CASE 44 WHEN 75 + - 46 THEN - COALESCE ( - 69, + COUNT( * ), 40 ) END * 16 / + ( 26 ), 6 ) * - 9 * + - 57 + + 72 / - 18 ) * + 98 / - CASE - + 23 WHEN - 2 THEN - 55 * + 60 END + + COUNT( - 48 ), COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5555
SELECT ALL 43 - NULLIF ( - 17, COUNT ( * ) * + 39 + - COALESCE ( + + COUNT ( * ), 72 - - - 24 + COUNT ( * ) + CASE 44 WHEN 75 + - 46 THEN - COALESCE ( - 69, + COUNT ( * ), 40 ) END * 16 / + ( 26 ), 6 ) * - 9 * + - 57 + + 72 / - 18 ) * + 98 / - CASE - + 23 WHEN - 2 THEN - 55 * + 60 END + + COUNT ( - 48 ), COUNT ( * ) AS col0
----
NULL
1

query III rowsort
SELECT ALL 81 AS col2, CASE 69 WHEN - 41 THEN - - 40 / - 39 + + 86 + - - 44 ELSE NULL END + - 71 AS col0, - 44 + + 98
----
81
NULL
54

query I rowsort
SELECT ALL + 89 * + - ( - 15 )
----
1335

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5559
SELECT 89 DIV 55 + - ( - COUNT( * ) ) DIV - + SUM( - + 87 ) + 10
----
11

skipif mysql # not compatible
query I rowsort label-5559
SELECT 89 / 55 + - ( - COUNT ( * ) ) / - + SUM ( - + 87 ) + 10
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5560
SELECT MIN( DISTINCT + 10 ) DIV + 57 * - + COUNT( * ) + + 70
----
70

skipif mysql # not compatible
query I rowsort label-5560
SELECT MIN ( DISTINCT + 10 ) / + 57 * - + COUNT ( * ) + + 70
----
70

query I rowsort
SELECT 1 * + 14
----
14

query I rowsort
SELECT 72 + 61 AS col0
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-5563
SELECT ALL - 42 AS col0, + 11 * + COUNT( * ) + + 18 + - NULLIF ( COUNT( * ), 74 / - 75 )
----
-42
28

skipif mysql # not compatible
query II rowsort label-5563
SELECT ALL - 42 AS col0, + 11 * + COUNT ( * ) + + 18 + - NULLIF ( COUNT ( * ), 74 / - 75 )
----
-42
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT DISTINCT - + 40 * + 11 + - MAX( + 94 ) * - COALESCE ( 35, - 57 * + 98 + - 0 - - + 17 ) + - 88 AS col0
----
2762

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT - + 40 * + 11 + - MAX ( + 94 ) * - COALESCE ( 35, - 57 * + 98 + - 0 - - + 17 ) + - 88 AS col0
----
2762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5566
SELECT - + 13 / + + CAST( NULL AS SIGNED ) * 70 + - COUNT( * ) / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5566
SELECT - + 13 / + + CAST ( NULL AS INTEGER ) * 70 + - COUNT ( * ) / COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5567
SELECT + 5 * + 44 AS col1, SUM( - 84 ) AS col0
----
220
-84

skipif mysql # not compatible
query II rowsort label-5567
SELECT + 5 * + 44 AS col1, SUM ( - 84 ) AS col0
----
220
-84

query I rowsort
SELECT ALL - - 54 * - 64 + - NULLIF ( + 12, 53 * 47 + - ( + + 49 ) + - - 86 - + ( + - ( + - 33 ) ) ) AS col0
----
-3468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5569
SELECT CASE + - COUNT( DISTINCT ( + 92 ) ) WHEN - 45 THEN 70 / - + 20 + - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5569
SELECT CASE + - COUNT ( DISTINCT ( + 92 ) ) WHEN - 45 THEN 70 / - + 20 + - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

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

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

query II rowsort
SELECT + 41 + - + 94 AS col1, 26 AS col1
----
-53
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5572
SELECT ALL + + CAST( + - MAX( DISTINCT - 52 ) AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL + + CAST ( + - MAX ( DISTINCT - 52 ) AS INTEGER )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5573
SELECT DISTINCT COALESCE ( + 81, + 13, - 59 - 7 DIV + 15 * 46 ) * COUNT( * ) * + 78
----
6318

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT COALESCE ( + 81, + 13, - 59 - 7 / + 15 * 46 ) * COUNT ( * ) * + 78
----
6318

query I rowsort
SELECT + 86 - 72 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT - MAX( DISTINCT 41 ) * + 99 - - COUNT( * ) * - 76 AS col0
----
-4135

skipif mysql # not compatible
query I rowsort label-5575
SELECT - MAX ( DISTINCT 41 ) * + 99 - - COUNT ( * ) * - 76 AS col0
----
-4135

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT + COUNT( * ) + + - 98 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5576
SELECT + COUNT ( * ) + + - 98 AS col0
----
-97

query I rowsort
SELECT - 4 + - 90 AS col0
----
-94

query I rowsort
SELECT + - 24 + + 75 AS col1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-5579
SELECT - 76 AS col1, - COUNT( * ) * - 86
----
-76
86

skipif mysql # not compatible
query II rowsort label-5579
SELECT - 76 AS col1, - COUNT ( * ) * - 86
----
-76
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT DISTINCT - 74 * COUNT( * ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT - 74 * COUNT ( * ) AS col1
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5581
SELECT - COUNT( * ) + + 52 + + + 36 DIV + - 89 * 67 * + 85 + + 15 DIV + 29 * - + 61 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-5581
SELECT - COUNT ( * ) + + 52 + + + 36 / + - 89 * 67 * + 85 + + 15 / + 29 * - + 61 AS col1
----
51

query I rowsort
SELECT - 8 + + - 88 - - + 22 AS col0
----
-74

query I rowsort
SELECT ALL - 48 * 22
----
-1056

onlyif mysql # aggregate syntax: 
query II rowsort label-5584
SELECT - 25 + - ( 66 ) AS col0, MAX( DISTINCT + 14 ) * 56 AS col0
----
-91
784

skipif mysql # not compatible
query II rowsort label-5584
SELECT - 25 + - ( 66 ) AS col0, MAX ( DISTINCT + 14 ) * 56 AS col0
----
-91
784

query I rowsort
SELECT ALL CASE 17 WHEN - 32 THEN 96 * - 22 + + 55 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5586
SELECT - 60 DIV - + ( - 35 ) AS col0, - 74 AS col2
----
-1
-74

skipif mysql # not compatible
query II rowsort label-5586
SELECT - 60 / - + ( - 35 ) AS col0, - 74 AS col2
----
-1
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT - COUNT( - 83 ) + + + 6
----
5

skipif mysql # not compatible
query I rowsort label-5588
SELECT - COUNT ( - 83 ) + + + 6
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5589
SELECT ALL CASE + + 90 WHEN + 40 THEN ( + 0 ) * 47 WHEN 1 * + 20 THEN NULL WHEN - ( + 62 ) * + - 80 + + + ( - ( 8 ) ) + 0 + COUNT( * ) * CAST( NULL AS DECIMAL ) / COUNT( * ) * - 41 * - - 42 + + 77 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL CASE + + 90 WHEN + 40 THEN ( + 0 ) * 47 WHEN 1 * + 20 THEN NULL WHEN - ( + 62 ) * + - 80 + + + ( - ( 8 ) ) + 0 + COUNT ( * ) * CAST ( NULL AS REAL ) / COUNT ( * ) * - 41 * - - 42 + + 77 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT DISTINCT NULLIF ( - MAX( DISTINCT + 1 ), ( 11 ) + - 47 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT NULLIF ( - MAX ( DISTINCT + 1 ), ( 11 ) + - 47 ) AS col1
----
-1

query I rowsort
SELECT - 30 + 1 + - 41 + + ( 32 ) AS col2
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5592
SELECT - COUNT( * ) * + 48 DIV 21 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5592
SELECT - COUNT ( * ) * + 48 / 21 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT ALL - 12 DIV - ( + 54 )
----
0

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL - 12 / - ( + 54 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5594
SELECT ALL - 58 + COUNT( * ) * + + 47 AS col0, 28
----
-11
28

skipif mysql # not compatible
query II rowsort label-5594
SELECT ALL - 58 + COUNT ( * ) * + + 47 AS col0, 28
----
-11
28

query II rowsort
SELECT ( + 35 ) col2, 49 AS col2
----
35
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5596
SELECT ALL - 79 DIV + + NULLIF ( - - ( + 26 ), 35 ) + - 46 + - SUM( ALL - + 32 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL - 79 / + + NULLIF ( - - ( + 26 ), 35 ) + - 46 + - SUM ( ALL - + 32 ) AS col1
----
-17

query I rowsort
SELECT ALL + NULLIF ( + 47, + 74 ) col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5598
SELECT ALL + 30 DIV + 69 + + 72 DIV + 68
----
1

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL + 30 / + 69 + + 72 / + 68
----
1

query I rowsort
SELECT ( + NULLIF ( - 91, 42 ) ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT DISTINCT 45 * - MAX( - - 36 ) + - 76 * - 64 AS col1
----
3244

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT 45 * - MAX ( - - 36 ) + - 76 * - 64 AS col1
----
3244

query II rowsort
SELECT + ( 47 ) AS col1, 24 * - 78
----
47
-1872

query I rowsort
SELECT - + 21 * 77
----
-1617

query I rowsort
SELECT DISTINCT - + 14 * + 14 - - 70
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5604
SELECT - 20 * - + 61 + - - COUNT( * ) * + 43 DIV COUNT( DISTINCT - - 8 ) * 81 AS col1
----
4703

skipif mysql # not compatible
query I rowsort label-5604
SELECT - 20 * - + 61 + - - COUNT ( * ) * + 43 / COUNT ( DISTINCT - - 8 ) * 81 AS col1
----
4703

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5605
SELECT DISTINCT - 33 DIV - + COUNT( * ) - - + 32 AS col0, 57
----
65
57

skipif mysql # not compatible
query II rowsort label-5605
SELECT DISTINCT - 33 / - + COUNT ( * ) - - + 32 AS col0, 57
----
65
57

query I rowsort
SELECT - ( - + 59 ) * ( - - 31 ) + - 66
----
1763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5607
SELECT ALL - - 29 * + + CASE + 91 WHEN NULLIF ( + 8, + 45 + - 37 ) * + + MIN( + ( 75 ) ) THEN + 16 * + CAST( NULL AS SIGNED ) * + 28 - - - 61 + - SUM( ALL - 34 ) * 2 END * MIN( ALL - 12 ) - + SUM( DISTINCT - 65 ) * - + 82 + 35 + + + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL - - 29 * + + CASE + 91 WHEN NULLIF ( + 8, + 45 + - 37 ) * + + MIN ( + ( 75 ) ) THEN + 16 * + CAST ( NULL AS INTEGER ) * + 28 - - - 61 + - SUM ( ALL - 34 ) * 2 END * MIN ( ALL - 12 ) - + SUM ( DISTINCT - 65 ) * - + 82 + 35 + + + 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5608
SELECT + - 95 DIV SUM( ALL + + 32 )
----
-2

skipif mysql # not compatible
query I rowsort label-5608
SELECT + - 95 / SUM ( ALL + + 32 )
----
-2

query I rowsort
SELECT + - 89 * 17
----
-1513

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT + + COUNT( * ) - + 46 + 72 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5610
SELECT + + COUNT ( * ) - + 46 + 72 AS col2
----
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT ALL MAX( 15 ) col1
----
15

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL MAX ( 15 ) col1
----
15

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5615
SELECT COUNT( * ) col1, - 59
----
1
-59

skipif mysql # not compatible
query II rowsort label-5615
SELECT COUNT ( * ) col1, - 59
----
1
-59

query I rowsort
SELECT + 48 * + 96 * - 47 AS col0
----
-216576

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT - COUNT( ALL + 19 ) * - 54
----
54

skipif mysql # not compatible
query I rowsort label-5617
SELECT - COUNT ( ALL + 19 ) * - 54
----
54

query II rowsort
SELECT + 66 - - + 57 + + 81, - 72 * 11 AS col0
----
204
-792

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5619
SELECT 13, 98 + + - 0 DIV + - 18 * COUNT( * ) + - 7 AS col1
----
13
91

skipif mysql # not compatible
query II rowsort label-5619
SELECT 13, 98 + + - 0 / + - 18 * COUNT ( * ) + - 7 AS col1
----
13
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5620
SELECT DISTINCT NULLIF ( COUNT( * ), + 98 + + - 82 * + - CAST( + 46 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT NULLIF ( COUNT ( * ), + 98 + + - 82 * + - CAST ( + 46 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5621
SELECT DISTINCT 89 + + 66 + + 10 + - 70, ( 78 ) * + COUNT( * ) * COUNT( + + 27 ) * + 60 + - + 82 - - 68 + + 8 + 83 AS col1
----
95
4757

skipif mysql # not compatible
query II rowsort label-5621
SELECT DISTINCT 89 + + 66 + + 10 + - 70, ( 78 ) * + COUNT ( * ) * COUNT ( + + 27 ) * + 60 + - + 82 - - 68 + + 8 + 83 AS col1
----
95
4757

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

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

query II rowsort
SELECT - 2 AS col1, 21 AS col0
----
-2
21

query II rowsort
SELECT ALL 76 + - 32 + - - 41 AS col2, - 83 AS col0
----
85
-83

query I rowsort
SELECT - 88 - - 10 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT ALL - SUM( ALL 93 ) + - - 11 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL - SUM ( ALL 93 ) + - - 11 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-5627
SELECT + + ( - 1 ) + + COUNT( * ) AS col2, 63 * - 82 + + 78
----
0
-5088

skipif mysql # not compatible
query II rowsort label-5627
SELECT + + ( - 1 ) + + COUNT ( * ) AS col2, 63 * - 82 + + 78
----
0
-5088

onlyif mysql # DIV for integer division: 
query I rowsort label-5628
SELECT - + 11 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-5628
SELECT - + 11 / + 81
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5629
SELECT + + 76 DIV + MAX( DISTINCT - 56 ) + COALESCE ( 51, - + 69, - + 69 DIV + 54 - + ( - 91 ) + - 90 * - 55 * + 28 + - COUNT( * ) DIV - - 94 )
----
50

skipif mysql # not compatible
query I rowsort label-5629
SELECT + + 76 / + MAX ( DISTINCT - 56 ) + COALESCE ( 51, - + 69, - + 69 / + 54 - + ( - 91 ) + - 90 * - 55 * + 28 + - COUNT ( * ) / - - 94 )
----
50

query I rowsort
SELECT 40 * + - 62 AS col1
----
-2480

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT - - COUNT( ALL + 64 ) * - + 37 + - 99 * + - 56 + + MIN( - + 0 )
----
5507

skipif mysql # not compatible
query I rowsort label-5632
SELECT - - COUNT ( ALL + 64 ) * - + 37 + - 99 * + - 56 + + MIN ( - + 0 )
----
5507

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

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

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

skipif mysql # not compatible
query I rowsort label-5634
SELECT + 46 * + + 44 * - + COUNT ( * ) + + COUNT ( * ) AS col1
----
-2023

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

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

query I rowsort
SELECT ALL - 4 * - 16 * + ( + 19 ) AS col1
----
1216

onlyif mysql # aggregate syntax: 
query II rowsort label-5637
SELECT + 12 * + - MAX( ALL 99 ), 95 + - 76 * - 10 AS col0
----
-1188
855

skipif mysql # not compatible
query II rowsort label-5637
SELECT + 12 * + - MAX ( ALL 99 ), 95 + - 76 * - 10 AS col0
----
-1188
855

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT + SUM( DISTINCT ( - 66 ) ) * 29 + - 83 + + COUNT( * ) AS col1
----
-1996

skipif mysql # not compatible
query I rowsort label-5638
SELECT + SUM ( DISTINCT ( - 66 ) ) * 29 + - 83 + + COUNT ( * ) AS col1
----
-1996

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT DISTINCT - CASE + - COUNT( * ) WHEN + 3 THEN - - 22 + ( + 36 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT - CASE + - COUNT ( * ) WHEN + 3 THEN - - 22 + ( + 36 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 10 * - 50 AS col0
----
-500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5641
SELECT COUNT( ALL - - 70 ) DIV + 22
----
0

skipif mysql # not compatible
query I rowsort label-5641
SELECT COUNT ( ALL - - 70 ) / + 22
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT ALL 43 / - 99 / CASE + - 33 WHEN + + 16 - 74 * - + 35 * + + COUNT( * ) THEN 97 ELSE NULL END * + ( - - 4 ) * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL 43 / - 99 / CASE + - 33 WHEN + + 16 - 74 * - + 35 * + + COUNT ( * ) THEN 97 ELSE NULL END * + ( - - 4 ) * + 95
----
NULL

query I rowsort
SELECT DISTINCT 78 * 20 * + 61 col0
----
95160

query I rowsort
SELECT 72 + - ( + - 58 ) AS col2
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5646
SELECT ALL - 85 + 11 - - COALESCE ( - COUNT( * ), - - 55 * + - 73 + + - 37 + + + 33 * 12 * + + 36 ) * + 79 DIV 43 - 10
----
-85

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL - 85 + 11 - - COALESCE ( - COUNT ( * ), - - 55 * + - 73 + + - 37 + + + 33 * 12 * + + 36 ) * + 79 / 43 - 10
----
-85

query I rowsort
SELECT DISTINCT 42 * 18 AS col2
----
756

query I rowsort
SELECT DISTINCT 35 + ( - 27 )
----
8

onlyif mysql # aggregate syntax: 
query III rowsort label-5649
SELECT ALL MAX( - 59 ) + + ( 97 ) AS col0, + 57, - 80 AS col1
----
38
57
-80

skipif mysql # not compatible
query III rowsort label-5649
SELECT ALL MAX ( - 59 ) + + ( 97 ) AS col0, + 57, - 80 AS col1
----
38
57
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT 26 + - 6 * - - MAX( DISTINCT + + 56 ) + - - 88 * + - COUNT( 69 ) * COUNT( * ) AS col2
----
-398

skipif mysql # not compatible
query I rowsort label-5650
SELECT 26 + - 6 * - - MAX ( DISTINCT + + 56 ) + - - 88 * + - COUNT ( 69 ) * COUNT ( * ) AS col2
----
-398

onlyif mysql # aggregate syntax: 
query II rowsort label-5651
SELECT - 94 * - - COUNT( * ), - CASE + 32 WHEN - - CASE 7 WHEN 24 * 19 THEN + 35 END THEN - NULLIF ( + COUNT( * ), - + 12 ) * - 70 * 33 WHEN - - 50 * - ( - + 34 ) + COUNT( * ) THEN NULL END * + COUNT( * ) * - - 43 AS col2
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-5651
SELECT - 94 * - - COUNT ( * ), - CASE + 32 WHEN - - CASE 7 WHEN 24 * 19 THEN + 35 END THEN - NULLIF ( + COUNT ( * ), - + 12 ) * - 70 * 33 WHEN - - 50 * - ( - + 34 ) + COUNT ( * ) THEN NULL END * + COUNT ( * ) * - - 43 AS col2
----
-94
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT ALL 64 - - + MIN( ALL - 81 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL 64 - - + MIN ( ALL - 81 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT - MIN( - - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-5653
SELECT - MIN ( - - 50 )
----
-50

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

skipif mysql # not compatible
query II rowsort label-5654
SELECT - ( - CAST ( NULL AS INTEGER ) ), 95 AS col0
----
NULL
95

query I rowsort
SELECT DISTINCT NULLIF ( 31, - 94 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT NULLIF ( + MIN( - COALESCE ( - 78, - 92 * ( + - ( 88 ) ) - + 11 ) ), COUNT( 43 ) * + 60 ) * + - COUNT( DISTINCT - 27 )
----
-78

skipif mysql # not compatible
query I rowsort label-5656
SELECT NULLIF ( + MIN ( - COALESCE ( - 78, - 92 * ( + - ( 88 ) ) - + 11 ) ), COUNT ( 43 ) * + 60 ) * + - COUNT ( DISTINCT - 27 )
----
-78

query I rowsort
SELECT CASE + 24 WHEN + 12 * + 93 THEN - ( - 10 ) + + 47 + 84 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT ALL + + 36 - - - ( - - MIN( DISTINCT - 85 ) ) * + 34 + + 84 + - 8 + - - ( + + 21 ) * + 78
----
4640

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL + + 36 - - - ( - - MIN ( DISTINCT - 85 ) ) * + 34 + + 84 + - 8 + - - ( + + 21 ) * + 78
----
4640

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

skipif mysql # not compatible
query I rowsort label-5659
SELECT DISTINCT + COUNT ( * ) * 34 AS col1
----
34

query I rowsort
SELECT + 33 * - - 26 AS col2
----
858

onlyif mysql # DIV for integer division: 
query I rowsort label-5661
SELECT DISTINCT - 50 DIV + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT - 50 / + 84 AS col2
----
0

query I rowsort
SELECT + NULLIF ( + 0, + ( - ( 38 ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5663
SELECT - COUNT( - CAST( + 81 AS SIGNED ) ) + - 8 AS col0, - 11 + - 13 col2
----
-9
-24

skipif mysql # not compatible
query II rowsort label-5663
SELECT - COUNT ( - CAST ( + 81 AS INTEGER ) ) + - 8 AS col0, - 11 + - 13 col2
----
-9
-24

query I rowsort
SELECT 75 - + 61 * + 76 AS col2
----
-4561

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5666
SELECT 82 + 50 / - 33 * + CAST( NULL AS SIGNED ) * CASE - + COUNT( * ) WHEN - - 48 THEN - 41 WHEN 81 + + 34 - + + 82 + 2 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5666
SELECT 82 + 50 / - 33 * + CAST ( NULL AS INTEGER ) * CASE - + COUNT ( * ) WHEN - - 48 THEN - 41 WHEN 81 + + 34 - + + 82 + 2 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 44 * - + 52 col2
----
-2288

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT ALL + 26 + COUNT( * ) + + 87 + - - 89 * + - 76 * + + 91 AS col1
----
-615410

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL + 26 + COUNT ( * ) + + 87 + - - 89 * + - 76 * + + 91 AS col1
----
-615410

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT 72 * COUNT( ALL + 25 )
----
72

skipif mysql # not compatible
query I rowsort label-5669
SELECT 72 * COUNT ( ALL + 25 )
----
72

query I rowsort
SELECT ALL 30 + 11 * - ( 51 )
----
-531

query I rowsort
SELECT ALL + 26 + + 24 col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5672
SELECT DISTINCT ( COUNT( DISTINCT 29 ) ) DIV + 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT ( COUNT ( DISTINCT 29 ) ) / + 73 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5673
SELECT 87 * + - 69 * CAST( + 74 AS SIGNED )
----
-444222

skipif mysql # not compatible
query I rowsort label-5673
SELECT 87 * + - 69 * CAST ( + 74 AS INTEGER )
----
-444222

onlyif mysql # DIV for integer division: 
query I rowsort label-5674
SELECT DISTINCT 88 DIV + 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT 88 / + 62 AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5676
SELECT ALL 23 * - - SUM( - - 92 ) AS col0, + 40 + + - 42
----
2116
-2

skipif mysql # not compatible
query II rowsort label-5676
SELECT ALL 23 * - - SUM ( - - 92 ) AS col0, + 40 + + - 42
----
2116
-2

query I rowsort
SELECT - 29 - + + 88 + - 48
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT ALL - 91 - + - 31 * + 14 + - COUNT( * )
----
342

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL - 91 - + - 31 * + 14 + - COUNT ( * )
----
342

onlyif mysql # aggregate syntax: 
query II rowsort label-5679
SELECT ALL CASE 36 WHEN - COUNT( * ) THEN NULL WHEN + 84 THEN NULL ELSE 24 END AS col1, COALESCE ( 49, COUNT( * ) - + 32 )
----
24
49

skipif mysql # not compatible
query II rowsort label-5679
SELECT ALL CASE 36 WHEN - COUNT ( * ) THEN NULL WHEN + 84 THEN NULL ELSE 24 END AS col1, COALESCE ( 49, COUNT ( * ) - + 32 )
----
24
49

query I rowsort
SELECT ALL + 98 - 97 AS col1
----
1

query II rowsort
SELECT 99 AS col2, ( - + 92 )
----
99
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5682
SELECT + 14 DIV COUNT( * ) * - - 83 * + + 29 * - + 69 + - 27 * + 14 AS col2
----
-2325540

skipif mysql # not compatible
query I rowsort label-5682
SELECT + 14 / COUNT ( * ) * - - 83 * + + 29 * - + 69 + - 27 * + 14 AS col2
----
-2325540

query I rowsort
SELECT - + 48 + + 64
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT + COUNT( * ) - - 51 * + COALESCE ( + 28, + 22 + - COUNT( * ) ) AS col2
----
1429

skipif mysql # not compatible
query I rowsort label-5684
SELECT + COUNT ( * ) - - 51 * + COALESCE ( + 28, + 22 + - COUNT ( * ) ) AS col2
----
1429

query I rowsort
SELECT + 72 + - COALESCE ( 13, 21 + + 6 ) AS col1
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT DISTINCT - MAX( + + 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT - MAX ( + + 15 ) AS col0
----
-15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5689
SELECT 91 AS col2, 30 + - CAST( - 9 AS SIGNED )
----
91
39

skipif mysql # not compatible
query II rowsort label-5689
SELECT 91 AS col2, 30 + - CAST ( - 9 AS INTEGER )
----
91
39

query I rowsort
SELECT ALL + 21 * 93 AS col0
----
1953

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT ALL + 58 * + 73 + COUNT( * ) + + COUNT( * )
----
4236

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL + 58 * + 73 + COUNT ( * ) + + COUNT ( * )
----
4236

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5694
SELECT - ( - 1 ) + 0 * + 3 - + 42 - + 6 AS col0, 60 - - SUM( ALL 96 ) AS col2
----
-47
156

skipif mysql # not compatible
query II rowsort label-5694
SELECT - ( - 1 ) + 0 * + 3 - + 42 - + 6 AS col0, 60 - - SUM ( ALL 96 ) AS col2
----
-47
156

onlyif mysql # aggregate syntax: 
query II rowsort label-5695
SELECT COALESCE ( 5, + 48, + + COUNT( * ) ) AS col0, 54 + - 84 + + 32
----
5
2

skipif mysql # not compatible
query II rowsort label-5695
SELECT COALESCE ( 5, + 48, + + COUNT ( * ) ) AS col0, 54 + - 84 + + 32
----
5
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5696
SELECT ALL AVG ( DISTINCT + 52 ) * + COALESCE ( + 86, - COUNT( * ) ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL AVG ( DISTINCT + 52 ) * + COALESCE ( + 86, - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 25 * - 51, 25 col2
----
-1275
25

query I rowsort
SELECT ALL 31 * - 58 * + 80 AS col2
----
-143840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5699
SELECT COUNT( DISTINCT - + 8 ) * - - COUNT( * ) * ( + CAST( NULL AS SIGNED ) ) + + 41 * - 68 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT COUNT ( DISTINCT - + 8 ) * - - COUNT ( * ) * ( + CAST ( NULL AS INTEGER ) ) + + 41 * - 68 col1
----
NULL

query I rowsort
SELECT COALESCE ( 12, - - 70 )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5701
SELECT COUNT( * ), ( + 21 ) + 86 AS col2
----
1
107

skipif mysql # not compatible
query II rowsort label-5701
SELECT COUNT ( * ), ( + 21 ) + 86 AS col2
----
1
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT ALL NULLIF ( + + 81, NULLIF ( - - 13, - MAX( ALL + + 97 ) + - 77 ) * - + 97 )
----
81

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL NULLIF ( + + 81, NULLIF ( - - 13, - MAX ( ALL + + 97 ) + - 77 ) * - + 97 )
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-5703
SELECT - 95 AS col1, - 42 + + 24 DIV 49
----
-95
-42

skipif mysql # not compatible
query II rowsort label-5703
SELECT - 95 AS col1, - 42 + + 24 / 49
----
-95
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT ALL + SUM( DISTINCT 2 ) * + COALESCE ( - COUNT( * ), - - 54 + 5 + - + 51 + + 85 + + + 8 * COUNT( * ) ) + - - 41
----
39

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL + SUM ( DISTINCT 2 ) * + COALESCE ( - COUNT ( * ), - - 54 + 5 + - + 51 + + 85 + + + 8 * COUNT ( * ) ) + - - 41
----
39

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

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

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

query I rowsort
SELECT - 23 * 27
----
-621

query II rowsort
SELECT 34 AS col2, + 54 + + 23 * + 70 AS col0
----
34
1664

query II rowsort
SELECT ALL - 84 AS col1, 68 AS col1
----
-84
68

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

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

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

query II rowsort
SELECT - - 74, 98 AS col1
----
74
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT COUNT( * ) AS col0, + 62 * + 94 - 64 AS col1
----
1
5764

skipif mysql # not compatible
query II rowsort label-5714
SELECT COUNT ( * ) AS col0, + 62 * + 94 - 64 AS col1
----
1
5764

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5716
SELECT - - 94, - SUM( - 33 ) DIV 80 * + 54 col1
----
94
0

skipif mysql # not compatible
query II rowsort label-5716
SELECT - - 94, - SUM ( - 33 ) / 80 * + 54 col1
----
94
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5717
SELECT + - 22 + + COUNT( * ) + - 29 DIV 38 * - COALESCE ( + ( 91 ), + 93 + + - COUNT( * ), + MIN( ALL + 57 ) + + 52 + + COUNT( * ) ) * + 80
----
-21

skipif mysql # not compatible
query I rowsort label-5717
SELECT + - 22 + + COUNT ( * ) + - 29 / 38 * - COALESCE ( + ( 91 ), + 93 + + - COUNT ( * ), + MIN ( ALL + 57 ) + + 52 + + COUNT ( * ) ) * + 80
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5718
SELECT ALL - 17 DIV - 12
----
1

skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL - 17 / - 12
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5719
SELECT ALL 31 * 79 + + - CAST( + 42 AS SIGNED ) + - 73 * - + COALESCE ( + ( + COUNT( * ) ), 23 * + 81 + + 39 + COUNT( * ) + - 25 * - COUNT( * ) ) DIV + 83
----
2407

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL 31 * 79 + + - CAST ( + 42 AS INTEGER ) + - 73 * - + COALESCE ( + ( + COUNT ( * ) ), 23 * + 81 + + 39 + COUNT ( * ) + - 25 * - COUNT ( * ) ) / + 83
----
2407

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5720
SELECT - 1 * - 56 * + CAST( NULL AS DECIMAL ) * + - 62 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5720
SELECT - 1 * - 56 * + CAST ( NULL AS REAL ) * + - 62 col2
----
NULL

query I rowsort
SELECT DISTINCT + 14 + - 58 - - 31
----
-13

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5723
SELECT ALL + + 2 DIV - COUNT( * ) + 17
----
15

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL + + 2 / - COUNT ( * ) + 17
----
15

query II rowsort
SELECT ALL + - COALESCE ( - 86, 42 * + 71 * - 36 - - 81 ) AS col0, - 21
----
86
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT + 55 * + 86 - COUNT( * ) AS col0
----
4729

skipif mysql # not compatible
query I rowsort label-5725
SELECT + 55 * + 86 - COUNT ( * ) AS col0
----
4729

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5726
SELECT ALL 2 DIV - 99 * 18 * + COUNT( * ) + + 0 + - + 4 - - + 14 + - 11 * + - 76 + + + 39 * + COUNT( * ) - ( + 36 ) + - COUNT( * ) AS col1
----
848

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL 2 / - 99 * 18 * + COUNT ( * ) + + 0 + - + 4 - - + 14 + - 11 * + - 76 + + + 39 * + COUNT ( * ) - ( + 36 ) + - COUNT ( * ) AS col1
----
848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5727
SELECT ALL ( + 59 ) DIV + 81 + NULLIF ( - 54, + + 43 DIV + + 61 + - 20 + + - 95 ) * - + COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL ( + 59 ) / + 81 + NULLIF ( - 54, + + 43 / + + 61 + - 20 + + - 95 ) * - + COUNT ( * ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT + 72 * - COUNT( * ) * - 96 * 61 AS col0
----
421632

skipif mysql # not compatible
query I rowsort label-5728
SELECT + 72 * - COUNT ( * ) * - 96 * 61 AS col0
----
421632

query II rowsort
SELECT ( - 32 ), 6 AS col1
----
-32
6

query I rowsort
SELECT + 89 + 48 + + 89 AS col1
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT - COUNT( * ) * - 72 - 81 * + 38 AS col0
----
-3006

skipif mysql # not compatible
query I rowsort label-5731
SELECT - COUNT ( * ) * - 72 - 81 * + 38 AS col0
----
-3006

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT DISTINCT 13 * - COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT 13 * - COUNT ( * ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT MAX( 12 ) * + 49 AS col2
----
588

skipif mysql # not compatible
query I rowsort label-5733
SELECT MAX ( 12 ) * + 49 AS col2
----
588

query I rowsort
SELECT 26 * - 2 AS col2
----
-52

query I rowsort
SELECT DISTINCT ( + + 76 ) - 92 * - 72 + + 22 col2
----
6722

query II rowsort
SELECT DISTINCT 77 * + - 13, 13 * 14 AS col1
----
-1001
182

query I rowsort
SELECT NULLIF ( - 32, 63 ) * - 4 * - 8
----
-1024

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5739
SELECT DISTINCT COUNT( * ) DIV 6 AS col2, 41 DIV + 35
----
0
1

skipif mysql # not compatible
query II rowsort label-5739
SELECT DISTINCT COUNT ( * ) / 6 AS col2, 41 / + 35
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5740
SELECT COALESCE ( - 33, + CASE CASE - COUNT( DISTINCT 28 ) WHEN 10 * - 47 + - 5 + + - ( - 48 ) * + COUNT( * ) * 8 THEN NULL ELSE AVG ( + + 3 ) / + - 27 END WHEN AVG ( ALL - 70 ) * ( + 8 ) THEN + + 27 WHEN + 75 * + AVG ( + 74 ) * + 2 - + 25 THEN 15 END * - + 69 + 97 ) + - 74 AS col2, 69
----
-107
69

skipif mysql # not compatible
query II rowsort label-5740
SELECT COALESCE ( - 33, + CASE CASE - COUNT ( DISTINCT 28 ) WHEN 10 * - 47 + - 5 + + - ( - 48 ) * + COUNT ( * ) * 8 THEN NULL ELSE AVG ( + + 3 ) / + - 27 END WHEN AVG ( ALL - 70 ) * ( + 8 ) THEN + + 27 WHEN + 75 * + AVG ( + 74 ) * + 2 - + 25 THEN 15 END * - + 69 + 97 ) + - 74 AS col2, 69
----
-107
69

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

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

query I rowsort
SELECT - - NULLIF ( + - 39, + - ( - + 48 ) - - 85 + + + 37 )
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-5743
SELECT - SUM( - - ( 47 ) ) col2, COUNT( * ) + + - 72
----
-47
-71

skipif mysql # not compatible
query II rowsort label-5743
SELECT - SUM ( - - ( 47 ) ) col2, COUNT ( * ) + + - 72
----
-47
-71

query I rowsort
SELECT ALL + - COALESCE ( + 84, - 8 * + 1 ) + - + ( + 68 )
----
-152

query I rowsort
SELECT ALL - + 17 * + NULLIF ( - 85, - + 53 - - 77 )
----
1445

query I rowsort
SELECT ALL + - 54 + + - CASE WHEN NOT NULL <> 9 THEN - + 43 END AS col1
----
NULL

query II rowsort
SELECT ALL + 85 + 4 col0, - 0 AS col2
----
89
0

query I rowsort
SELECT - 3 * 42
----
-126

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

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

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

query I rowsort
SELECT ( 22 ) - - 41 AS col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5752
SELECT + 79 * 83 col1, 10 * + + COUNT( * ) + + 36 - - - 57 AS col1
----
6557
-11

skipif mysql # not compatible
query II rowsort label-5752
SELECT + 79 * 83 col1, 10 * + + COUNT ( * ) + + 36 - - - 57 AS col1
----
6557
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5753
SELECT + ( - 97 ) DIV - COUNT( * ) + - 71
----
26

skipif mysql # not compatible
query I rowsort label-5753
SELECT + ( - 97 ) / - COUNT ( * ) + - 71
----
26

query I rowsort
SELECT DISTINCT - 42 + 14 col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5755
SELECT ( + NULLIF ( 59, - 75 + - - CAST( - + SUM( + 33 ) AS SIGNED ) ) ) * + - COUNT( + - 9 ) * + - ( - 57 ) - + 71 + - 54 AS col1, + 53 AS col0
----
-3488
53

skipif mysql # not compatible
query II rowsort label-5755
SELECT ( + NULLIF ( 59, - 75 + - - CAST ( - + SUM ( + 33 ) AS INTEGER ) ) ) * + - COUNT ( + - 9 ) * + - ( - 57 ) - + 71 + - 54 AS col1, + 53 AS col0
----
-3488
53

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

query I rowsort
SELECT DISTINCT + 85 * + - 20
----
-1700

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

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

query I rowsort
SELECT 71 + + - 23 AS col1
----
48

query II rowsort
SELECT 35, 76 * - 99 col2
----
35
-7524

query III rowsort
SELECT ( - 78 ) + - 80 AS col0, + 24 AS col2, + - 73 + 0
----
-158
24
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5762
SELECT ALL - 4 * 82 DIV 11
----
-29

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL - 4 * 82 / 11
----
-29

query I rowsort
SELECT 32 * + 68 + + 32 * 52
----
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT DISTINCT MIN( - 75 ) * 55 - - 31 + - + 11 - - 3 * + 71 col0
----
-3892

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT MIN ( - 75 ) * 55 - - 31 + - + 11 - - 3 * + 71 col0
----
-3892

onlyif mysql # aggregate syntax: 
query II rowsort label-5765
SELECT COUNT( * ) - + ( - 72 ) AS col2, - CASE - COUNT( * ) WHEN + - 59 THEN 62 * + + COUNT( * ) ELSE NULL END AS col2
----
73
NULL

skipif mysql # not compatible
query II rowsort label-5765
SELECT COUNT ( * ) - + ( - 72 ) AS col2, - CASE - COUNT ( * ) WHEN + - 59 THEN 62 * + + COUNT ( * ) ELSE NULL END AS col2
----
73
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT + COUNT( - - 51 ) * - 80 + + 26 + COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-5767
SELECT + COUNT ( - - 51 ) * - 80 + + 26 + COUNT ( * ) AS col0
----
-53

query I rowsort
SELECT - 34 + + - 45
----
-79

query I rowsort
SELECT 34 + + 23 AS col2
----
57

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5771
SELECT ALL 30 + + 16 DIV + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL 30 + + 16 / + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT ALL + COUNT( * ) + + 21
----
22

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL + COUNT ( * ) + + 21
----
22

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

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

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

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL + COUNT ( * ) / - 81 AS col1
----
0

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

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

query I rowsort
SELECT ALL + - ( 85 ) + + 67
----
-18

query I rowsort
SELECT 42 + + 94
----
136

query I rowsort
SELECT - 77 * - + 52
----
4004

query II rowsort
SELECT ALL + 82 * - 88 * 75, 54 AS col1
----
-541200
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT ALL + 99 * + SUM( ALL - ( 8 ) )
----
-792

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL + 99 * + SUM ( ALL - ( 8 ) )
----
-792

query I rowsort
SELECT NULLIF ( - 93, - 48 + 51 ) AS col0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5782
SELECT + COALESCE ( - 3, + 62 - + + SUM( ALL + + 23 ) * 65 * - - 20 * + COUNT( + 1 ) DIV 18, - 46 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5782
SELECT + COALESCE ( - 3, + 62 - + + SUM ( ALL + + 23 ) * 65 * - - 20 * + COUNT ( + 1 ) / 18, - 46 ) AS col1
----
-3

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5785
SELECT DISTINCT + CASE - 77 WHEN - CAST( NULL AS SIGNED ) + - 16 + - 42 * - 74 THEN NULL WHEN - + 90 THEN - 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT + CASE - 77 WHEN - CAST ( NULL AS INTEGER ) + - 16 + - 42 * - 74 THEN NULL WHEN - + 90 THEN - 1 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5786
SELECT DISTINCT + 64 DIV - - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5786
SELECT DISTINCT + 64 / - - 86 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5787
SELECT DISTINCT CAST( + - 12 AS SIGNED ) * 94
----
-1128

skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT CAST ( + - 12 AS INTEGER ) * 94
----
-1128

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5791
SELECT - 70 * 75 DIV 86 * + - 0
----
0

skipif mysql # not compatible
query I rowsort label-5791
SELECT - 70 * 75 / 86 * + - 0
----
0

query I rowsort
SELECT + 76 + - 9 + + - 12
----
55

query II rowsort
SELECT 46 * - 0 - - NULLIF ( 8, - 90 ) AS col0, 25
----
8
25

onlyif mysql # DIV for integer division: 
query II rowsort label-5794
SELECT - 47 DIV - - 60 AS col2, + ( 64 ) - - 19
----
0
83

skipif mysql # not compatible
query II rowsort label-5794
SELECT - 47 / - - 60 AS col2, + ( 64 ) - - 19
----
0
83

query I rowsort
SELECT ALL + 51 * - 63 + - 43 AS col0
----
-3256

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

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

query I rowsort
SELECT NULLIF ( - 21, 41 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ALL - + 46 + - COUNT( * ) * NULLIF ( + 0, 38 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL - + 46 + - COUNT ( * ) * NULLIF ( + 0, 38 ) AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5799
SELECT + - COALESCE ( - NULLIF ( - 82, + 34 ), + 95 ) * + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5799
SELECT + - COALESCE ( - NULLIF ( - 82, + 34 ), + 95 ) * + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL - CAST ( NULL AS INTEGER ) + + - 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5801
SELECT ALL + SUM( + NULLIF ( + - 8, + 57 / - CAST( NULL AS SIGNED ) ) ) + + + 95
----
87

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL + SUM ( + NULLIF ( + - 8, + 57 / - CAST ( NULL AS INTEGER ) ) ) + + + 95
----
87

query I rowsort
SELECT ALL - 94 * - + 3 + - - 41
----
323

query I rowsort
SELECT + 94 * + + 24
----
2256

query I rowsort
SELECT + 34 * - - 82 AS col1
----
2788

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT ALL CASE + 60 WHEN - + 52 * - COUNT( * ) + 60 THEN NULL ELSE - 1 + - 5 END col2
----
-6

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL CASE + 60 WHEN - + 52 * - COUNT ( * ) + 60 THEN NULL ELSE - 1 + - 5 END col2
----
-6

query I rowsort
SELECT DISTINCT 40 * ( 1 ) col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT ALL - COUNT( * ) - 12 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL - COUNT ( * ) - 12 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT DISTINCT 49 * - 67 * - COUNT( * ) / - CASE 33 WHEN - ( - COUNT( * ) ) + - 12 THEN - SUM( ALL + 12 ) + - COUNT( * ) * - + 68 END + + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5808
SELECT DISTINCT 49 * - 67 * - COUNT ( * ) / - CASE 33 WHEN - ( - COUNT ( * ) ) + - 12 THEN - SUM ( ALL + 12 ) + - COUNT ( * ) * - + 68 END + + 23 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5809
SELECT + + CAST( + 82 AS SIGNED ) + + 40 + 61 AS col1
----
183

skipif mysql # not compatible
query I rowsort label-5809
SELECT + + CAST ( + 82 AS INTEGER ) + + 40 + 61 AS col1
----
183

query I rowsort
SELECT + 97 * + - ( - 71 ) * - 73 AS col2
----
-502751

onlyif mysql # DIV for integer division: 
query I rowsort label-5811
SELECT ALL 37 DIV 23
----
1

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL 37 / 23
----
1

query I rowsort
SELECT + 43 + + 80 AS col0
----
123

query I rowsort
SELECT - 49 - - 81
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5814
SELECT + 61 DIV + ( + 74 )
----
0

skipif mysql # not compatible
query I rowsort label-5814
SELECT + 61 / + ( + 74 )
----
0

query II rowsort
SELECT - 66 * + - ( + 31 ), 14 * + 2 AS col0
----
2046
28

query I rowsort
SELECT - 25 + + 33
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT ALL MIN( 56 ) col2
----
56

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL MIN ( 56 ) col2
----
56

query I rowsort
SELECT + 13 + - + 87 * + ( + 98 ) AS col1
----
-8513

query I rowsort
SELECT - 61 * - - 77 + - 68
----
-4765

onlyif mysql # aggregate syntax: 
query II rowsort label-5820
SELECT 50 * - 30 + + 45 * - 21 + - 16 AS col2, COALESCE ( + + 16, - ( COUNT( * ) ), - - 10 + - 14 )
----
-2461
16

skipif mysql # not compatible
query II rowsort label-5820
SELECT 50 * - 30 + + 45 * - 21 + - 16 AS col2, COALESCE ( + + 16, - ( COUNT ( * ) ), - - 10 + - 14 )
----
-2461
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT DISTINCT COALESCE ( + ( COUNT( * ) ), - 57 ) * + 85 + - 69
----
16

skipif mysql # not compatible
query I rowsort label-5821
SELECT DISTINCT COALESCE ( + ( COUNT ( * ) ), - 57 ) * + 85 + - 69
----
16

query II rowsort
SELECT ALL + 61 AS col2, + 48 col0
----
61
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT ALL - CASE 42 WHEN + 48 + - COUNT( 88 ) THEN COUNT( * ) * + 91 ELSE NULL END / - - 79 * + 58 - 88 * - + 4 + + 12 + - + COUNT( * ) + - + 57 * - ( COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL - CASE 42 WHEN + 48 + - COUNT ( 88 ) THEN COUNT ( * ) * + 91 ELSE NULL END / - - 79 * + 58 - 88 * - + 4 + + 12 + - + COUNT ( * ) + - + 57 * - ( COUNT ( * ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5824
SELECT DISTINCT + 57 DIV 91 * - + ( + + 7 ) * - 13 + + 35 + 76 col0
----
111

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT + 57 / 91 * - + ( + + 7 ) * - 13 + + 35 + 76 col0
----
111

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

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

query II rowsort
SELECT DISTINCT + 63 * + 32 + 22, 34 AS col2
----
2038
34

query I rowsort
SELECT - 91 * - 6 + + 72 * + ( - 97 ) AS col1
----
-6438

onlyif mysql # DIV for integer division: 
query I rowsort label-5828
SELECT ALL - ( - 56 ) DIV COALESCE ( 36, - 31, + ( 85 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL - ( - 56 ) / COALESCE ( 36, - 31, + ( 85 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5829
SELECT ALL 22 * + NULLIF ( 94, - 81 + - CAST( 53 AS SIGNED ) ) + + 43 * + ( 21 )
----
2971

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL 22 * + NULLIF ( 94, - 81 + - CAST ( 53 AS INTEGER ) ) + + 43 * + ( 21 )
----
2971

query I rowsort
SELECT ALL 63 * 66 AS col0
----
4158

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT + SUM( DISTINCT 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-5831
SELECT + SUM ( DISTINCT 95 ) AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5832
SELECT - CASE + ( - 60 ) WHEN 2 THEN NULL WHEN - 24 THEN CAST( - 27 AS SIGNED ) + - 26 ELSE NULL END + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5832
SELECT - CASE + ( - 60 ) WHEN 2 THEN NULL WHEN - 24 THEN CAST ( - 27 AS INTEGER ) + - 26 ELSE NULL END + 79
----
NULL

query I rowsort
SELECT - 45 * 56 AS col1
----
-2520

query I rowsort
SELECT NULLIF ( 35, - 59 ) AS col0
----
35

query I rowsort
SELECT NULLIF ( + 66, 16 ) * 30 + 85 col2
----
2065

query I rowsort
SELECT ALL + 16 * 53
----
848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5837
SELECT COALESCE ( - 16, - NULLIF ( 59, COUNT( * ) ) DIV 46 )
----
-16

skipif mysql # not compatible
query I rowsort label-5837
SELECT COALESCE ( - 16, - NULLIF ( 59, COUNT ( * ) ) / 46 )
----
-16

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

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

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

query I rowsort
SELECT ALL 96 * 46 - 72 AS col1
----
4344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5841
SELECT + 89 * - NULLIF ( - 49, + CAST( 37 AS SIGNED ) ) + 6 * + COUNT( * )
----
4367

skipif mysql # not compatible
query I rowsort label-5841
SELECT + 89 * - NULLIF ( - 49, + CAST ( 37 AS INTEGER ) ) + 6 * + COUNT ( * )
----
4367

query I rowsort
SELECT ALL 2 * + 38 - 50
----
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT MIN( DISTINCT - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-5844
SELECT MIN ( DISTINCT - 53 )
----
-53

query I rowsort
SELECT + 56 * 4 AS col0
----
224

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

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

query I rowsort
SELECT DISTINCT 96 * + 73 AS col2
----
7008

query I rowsort
SELECT 84 * 0 AS col2
----
0

query I rowsort
SELECT 20 + - 61 AS col1
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-5850
SELECT 26 DIV ( + ( 82 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5850
SELECT 26 / ( + ( 82 ) )
----
0

query I rowsort
SELECT DISTINCT 49 * 2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT DISTINCT - 63 * ( 9 * + MIN( ALL 89 ) ) AS col0
----
-50463

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT - 63 * ( 9 * + MIN ( ALL 89 ) ) AS col0
----
-50463

query I rowsort
SELECT ALL 84 + 6 AS col1
----
90

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

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

query I rowsort
SELECT ALL 95 * 50 col1
----
4750

onlyif mysql # DIV for integer division: 
query I rowsort label-5856
SELECT 16 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-5856
SELECT 16 / 68
----
0

query I rowsort
SELECT DISTINCT 13 + + COALESCE ( - 85 + - ( NULLIF ( - ( 75 ), + 65 ) ), 10 + - 18 )
----
3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT COUNT( * ) + - 17 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-5860
SELECT COUNT ( * ) + - 17 AS col0
----
-16

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5862
SELECT DISTINCT COUNT( * ) DIV - 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT COUNT ( * ) / - 12 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5863
SELECT 54 DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-5863
SELECT 54 / 69
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT ALL COALESCE ( + MIN( DISTINCT 49 ), - 7 ) + - 17
----
32

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL COALESCE ( + MIN ( DISTINCT 49 ), - 7 ) + - 17
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5866
SELECT DISTINCT COUNT( * ) + ( COALESCE ( + 53, - 77, + 31 DIV - 15 + - 41 * + COUNT( * ), - COUNT( * ), + 13 ) )
----
54

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT COUNT ( * ) + ( COALESCE ( + 53, - 77, + 31 / - 15 + - 41 * + COUNT ( * ), - COUNT ( * ), + 13 ) )
----
54

query I rowsort
SELECT DISTINCT + 56 + 69 * + 15 AS col1
----
1091

query I rowsort
SELECT DISTINCT 40 * 60 AS col2
----
2400

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

query I rowsort
SELECT - + 41 * 66 + + 39 AS col1
----
-2667

query I rowsort
SELECT ALL + + 78 - + 35 * - 15
----
603

onlyif mysql # DIV for integer division: 
query I rowsort label-5872
SELECT 89 DIV CASE 75 WHEN COALESCE ( + 75, 75 ) THEN + 24 * ( 91 ) ELSE NULL END
----
0

skipif mysql # not compatible
query I rowsort label-5872
SELECT 89 / CASE 75 WHEN COALESCE ( + 75, 75 ) THEN + 24 * ( 91 ) ELSE NULL END
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT + MIN( DISTINCT + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-5874
SELECT + MIN ( DISTINCT + 67 )
----
67

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

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

query I rowsort
SELECT DISTINCT - + 78 col0
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5877
SELECT DISTINCT - + 74 DIV MAX( ALL - 88 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT - + 74 / MAX ( ALL - 88 ) AS col2
----
0

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

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

query I rowsort
SELECT - 70 * - NULLIF ( + 10, + 12 ) AS col2
----
700

query I rowsort
SELECT ALL - 50 * 1 AS col2
----
-50

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

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

query I rowsort
SELECT ALL - - 98 * 54
----
5292

query I rowsort
SELECT 6 + 72 col1
----
78

query I rowsort
SELECT ALL - ( 12 ) * + 43 AS col2
----
-516

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

skipif mysql # not compatible
query I rowsort label-5885
SELECT COUNT ( * ) * 68
----
68

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

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

query I rowsort
SELECT CASE 30 WHEN - ( 6 ) * + 44 THEN NULL ELSE 58 END * 67
----
3886

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

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

query I rowsort
SELECT ALL - 50 + + 69
----
19

query I rowsort
SELECT 0 + 82
----
82

query I rowsort
SELECT ALL - 77 * 49 col2
----
-3773

query I rowsort
SELECT 10 + + - 16 * 7
----
-102

query I rowsort
SELECT DISTINCT + 5 + + - 13
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT ALL - MAX( DISTINCT - ( 96 ) ) + 2 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL - MAX ( DISTINCT - ( 96 ) ) + 2 AS col1
----
98

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

query I rowsort
SELECT COALESCE ( - - 82, + 17, ( 1 ), - 3 ) - 92 AS col0
----
-10

query I rowsort
SELECT 9 + + 41
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5898
SELECT ALL 42 * + 5 DIV + COALESCE ( - 57 * 41, 42 + 21, 36 )
----
0

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL 42 * + 5 / + COALESCE ( - 57 * 41, 42 + 21, 36 )
----
0

query I rowsort
SELECT ALL - 15 * + 32
----
-480

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5900
SELECT - ( - + 39 ) * CAST( NULL AS DECIMAL ) + 96 * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5900
SELECT - ( - + 39 ) * CAST ( NULL AS REAL ) + 96 * 7
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT SUM( - 30 ) * - COUNT( ALL 92 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5903
SELECT SUM ( - 30 ) * - COUNT ( ALL 92 ) AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5904
SELECT - MIN( - - 18 ) DIV COUNT( * ) + + 66 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5904
SELECT - MIN ( - - 18 ) / COUNT ( * ) + + 66 AS col1
----
48

query I rowsort
SELECT 34 * + COALESCE ( + 81, + 54 ) * 20
----
55080

query I rowsort
SELECT + 52 + + 42
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT COALESCE ( - 45, - CASE ( + 47 ) WHEN + 55 THEN 8 ELSE NULL END * + 67 ) * ( COUNT( * ) + 94 )
----
-4275

skipif mysql # not compatible
query I rowsort label-5908
SELECT COALESCE ( - 45, - CASE ( + 47 ) WHEN + 55 THEN 8 ELSE NULL END * + 67 ) * ( COUNT ( * ) + 94 )
----
-4275

onlyif mysql # DIV for integer division: 
query I rowsort label-5909
SELECT ALL 30 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL 30 / + 93
----
0

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

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

query I rowsort
SELECT 9 * - - 89 * - 26 + - 61 AS col1
----
-20887

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT ALL - - MIN( ALL + 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL - - MIN ( ALL + 82 ) AS col1
----
82

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

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

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

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

query I rowsort
SELECT + + COALESCE ( + 75, 30 + + COALESCE ( + 98, + ( 17 ) * 19, + 97 ) )
----
75

query I rowsort
SELECT + + 29 col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT - - CASE + - 35 WHEN 55 THEN + 78 WHEN ( 8 ) THEN NULL WHEN 77 THEN - 21 ELSE 66 * - 91 END + MAX( ALL - 10 ) col1
----
-6016

skipif mysql # not compatible
query I rowsort label-5917
SELECT - - CASE + - 35 WHEN 55 THEN + 78 WHEN ( 8 ) THEN NULL WHEN 77 THEN - 21 ELSE 66 * - 91 END + MAX ( ALL - 10 ) col1
----
-6016

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

skipif mysql # not compatible
query I rowsort label-5918
SELECT - - ( COUNT ( * ) ) * 15
----
15

query I rowsort
SELECT + + 99 * + + 53 + 16
----
5263

query I rowsort
SELECT - 90 + - 18
----
-108

query I rowsort
SELECT ALL - 13 + 57 * + 86 col0
----
4889

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT ALL + + MIN( DISTINCT 34 ) + + 15 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL + + MIN ( DISTINCT 34 ) + + 15 AS col1
----
49

query I rowsort
SELECT DISTINCT - 64 + - 95
----
-159

query I rowsort
SELECT - NULLIF ( 39, + 6 * 64 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5926
SELECT - 60 + + + 82 DIV + + CAST( - 11 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-5926
SELECT - 60 + + + 82 / + + CAST ( - 11 AS INTEGER )
----
-67

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5928
SELECT - 30 DIV + 10
----
-3

skipif mysql # not compatible
query I rowsort label-5928
SELECT - 30 / + 10
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT - COUNT( * ) + - COALESCE ( 92, NULLIF ( 40, + COUNT( * ) ) )
----
-93

skipif mysql # not compatible
query I rowsort label-5929
SELECT - COUNT ( * ) + - COALESCE ( 92, NULLIF ( 40, + COUNT ( * ) ) )
----
-93

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

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

query I rowsort
SELECT ALL 30 * 90 AS col0
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT DISTINCT - 1 + + COUNT( * ) + - 53 * - NULLIF ( - COUNT( * ), 13 ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-5932
SELECT DISTINCT - 1 + + COUNT ( * ) + - 53 * - NULLIF ( - COUNT ( * ), 13 ) col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT DISTINCT - NULLIF ( - 4, - 18 * - 33 + - 83 * MIN( - 33 ) ) * 21 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT - NULLIF ( - 4, - 18 * - 33 + - 83 * MIN ( - 33 ) ) * 21 AS col0
----
84

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

skipif mysql # not compatible
query I rowsort label-5934
SELECT DISTINCT SUM ( 93 )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5935
SELECT ALL COALESCE ( + + COUNT( * ), - - 80 + ( SUM( + CAST( 46 AS SIGNED ) ) + 14 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL COALESCE ( + + COUNT ( * ), - - 80 + ( SUM ( + CAST ( 46 AS INTEGER ) ) + 14 ) ) AS col2
----
1

query I rowsort
SELECT DISTINCT COALESCE ( - + 77, - 21 + + 35 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT - 40 - - ( - ( + MAX( 59 ) ) ) * 68
----
-4052

skipif mysql # not compatible
query I rowsort label-5937
SELECT - 40 - - ( - ( + MAX ( 59 ) ) ) * 68
----
-4052

query I rowsort
SELECT ALL + COALESCE ( + 87, - 55 ) AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5939
SELECT + CASE 89 WHEN 69 THEN COUNT( * ) ELSE NULL END + - NULLIF ( CAST( NULL AS SIGNED ), + 97 ) * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5939
SELECT + CASE 89 WHEN 69 THEN COUNT ( * ) ELSE NULL END + - NULLIF ( CAST ( NULL AS INTEGER ), + 97 ) * - 2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5940
SELECT ALL COALESCE ( + CASE - COUNT( * ) WHEN + 62 THEN NULL WHEN + 93 THEN - 15 DIV + 31 WHEN 24 THEN COUNT( * ) ELSE 64 * + 72 - 70 END, + 3 ) * 47
----
213286

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL COALESCE ( + CASE - COUNT ( * ) WHEN + 62 THEN NULL WHEN + 93 THEN - 15 / + 31 WHEN 24 THEN COUNT ( * ) ELSE 64 * + 72 - 70 END, + 3 ) * 47
----
213286

query I rowsort
SELECT - 89 * - 30 * + 58 * 72
----
11149920

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

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL + + COUNT ( * ) / - MIN ( ALL - ( + 18 ) ) * 68 + + COUNT ( * ) AS col1
----
1

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

query I rowsort
SELECT ALL + COALESCE ( + - COALESCE ( - 42, + 29, - 65 * 9 ), + 66 )
----
42

query I rowsort
SELECT + + 89 * + 69 col1
----
6141

query I rowsort
SELECT ALL + 83 * - 98
----
-8134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5947
SELECT DISTINCT + - CAST( NULL AS SIGNED ), MIN( + - 78 ) DIV + 32 + 41 AS col0
----
NULL
39

skipif mysql # not compatible
query II rowsort label-5947
SELECT DISTINCT + - CAST ( NULL AS INTEGER ), MIN ( + - 78 ) / + 32 + 41 AS col0
----
NULL
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5948
SELECT - 91 DIV + 91 col2
----
-1

skipif mysql # not compatible
query I rowsort label-5948
SELECT - 91 / + 91 col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT ALL - 9 * + 6 + COUNT( * ) + + 14
----
-39

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL - 9 * + 6 + COUNT ( * ) + + 14
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-5951
SELECT DISTINCT 49 DIV + - 20 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT 49 / + - 20 AS col2
----
-2

query I rowsort
SELECT + + 62 * + 36
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT DISTINCT + + MIN( - - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT + + MIN ( - - 4 )
----
4

query I rowsort
SELECT DISTINCT 14 * ( - - 94 ) + 54 * - 7 col2
----
938

query II rowsort
SELECT ALL + + 85, + 44 AS col2
----
85
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT DISTINCT - 80 * - 59 + - 0 + COUNT( * ) AS col2
----
4721

skipif mysql # not compatible
query I rowsort label-5956
SELECT DISTINCT - 80 * - 59 + - 0 + COUNT ( * ) AS col2
----
4721

query I rowsort
SELECT + 54 + COALESCE ( + 75, + - 64 * ( + 4 ), 72 * - ( + 44 ) ) AS col1
----
129

query I rowsort
SELECT + 60 * - + 67 AS col0
----
-4020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5959
SELECT ALL CASE - AVG ( ALL 57 ) WHEN + - 22 THEN NULL WHEN 13 / 42 THEN NULL ELSE - 40 * - 12 - COUNT( * ) * CAST( - SUM( ALL + 14 ) AS SIGNED ) END * 30 AS col2
----
14820

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL CASE - AVG ( ALL 57 ) WHEN + - 22 THEN NULL WHEN 13 / 42 THEN NULL ELSE - 40 * - 12 - COUNT ( * ) * CAST ( - SUM ( ALL + 14 ) AS INTEGER ) END * 30 AS col2
----
14820

query I rowsort
SELECT + 31 + - + 77 AS col0
----
-46

query I rowsort
SELECT + 7 + + 62 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT ALL ( + + CASE + NULLIF ( + 91, 69 * - 63 ) WHEN - COUNT( * ) THEN NULL WHEN - COUNT( * ) + + COUNT( * ) THEN 46 END ) + - 86 * - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL ( + + CASE + NULLIF ( + 91, 69 * - 63 ) WHEN - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) + + COUNT ( * ) THEN 46 END ) + - 86 * - 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT ALL NULLIF ( + - 29, - CASE + 87 WHEN + COALESCE ( + COUNT( * ), + 12 - MIN( ALL 62 + + 84 ) ) THEN + 79 ELSE NULL END * 8 ) * 28
----
-812

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL NULLIF ( + - 29, - CASE + 87 WHEN + COALESCE ( + COUNT ( * ), + 12 - MIN ( ALL 62 + + 84 ) ) THEN + 79 ELSE NULL END * 8 ) * 28
----
-812

query I rowsort
SELECT + 1 + + - 97 * - - 53 + + 1
----
-5139

query I rowsort
SELECT ALL NULLIF ( + 2, - 94 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5966
SELECT ALL ( + COUNT( * ) ) - + ( + + 85 ) + 46 DIV 97
----
-84

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL ( + COUNT ( * ) ) - + ( + + 85 ) + 46 / 97
----
-84

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

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

query I rowsort
SELECT ALL COALESCE ( - - 35, + 46 + 36 ) AS col1
----
35

query I rowsort
SELECT - ( 15 ) - - 32
----
17

query I rowsort
SELECT ALL + 52 * + ( 23 )
----
1196

onlyif mysql # DIV for integer division: 
query II rowsort label-5971
SELECT - 64 * + + 19 col1, 7 DIV 46 * - 48
----
-1216
0

skipif mysql # not compatible
query II rowsort label-5971
SELECT - 64 * + + 19 col1, 7 / 46 * - 48
----
-1216
0

query I rowsort
SELECT + 34 * - + 12 * 90 AS col0
----
-36720

query I rowsort
SELECT ALL + 80 * + - 63 * + 37 AS col1
----
-186480

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5975
SELECT - + NULLIF ( - 41, - + CAST( - COUNT( ALL + 1 ) AS SIGNED ) ) + 97 AS col0
----
138

skipif mysql # not compatible
query I rowsort label-5975
SELECT - + NULLIF ( - 41, - + CAST ( - COUNT ( ALL + 1 ) AS INTEGER ) ) + 97 AS col0
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-5976
SELECT ALL + 87 * + 9 AS col0, 14 * - SUM( - 92 ) AS col0
----
783
1288

skipif mysql # not compatible
query II rowsort label-5976
SELECT ALL + 87 * + 9 AS col0, 14 * - SUM ( - 92 ) AS col0
----
783
1288

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5978
SELECT + + MAX( - 83 ) DIV + - 36 + - - 29 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-5978
SELECT + + MAX ( - 83 ) / + - 36 + - - 29 AS col1
----
31

query I rowsort
SELECT ALL - - COALESCE ( - + 3, + 96 ) AS col1
----
-3

query I rowsort
SELECT - 76 + - 21
----
-97

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

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL - + 92 + - COUNT ( * ) AS col0
----
-93

query I rowsort
SELECT + COALESCE ( 26, - 52 + + + 99 * 21, 18 ) AS col0
----
26

query I rowsort
SELECT + 59 * - 89 * - 47
----
246797

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT ALL + 72 + COUNT( * ) + + 14
----
87

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL + 72 + COUNT ( * ) + + 14
----
87

query II rowsort
SELECT DISTINCT - ( + + 26 ), + 72 AS col1
----
-26
72

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

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT + + 79 * + 34 + - ( + COUNT ( * ) ) AS col0
----
2685

onlyif mysql # DIV for integer division: 
query I rowsort label-5987
SELECT DISTINCT + COALESCE ( + - CASE - 59 WHEN + - 21 * + 89 THEN NULL WHEN + 59 DIV 76 THEN - 75 * 19 END, 54 ) + - 70 DIV 21
----
51

skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT + COALESCE ( + - CASE - 59 WHEN + - 21 * + 89 THEN NULL WHEN + 59 / 76 THEN - 75 * 19 END, 54 ) + - 70 / 21
----
51

query II rowsort
SELECT + 16 * 16 AS col1, 17 * 0
----
256
0

query I rowsort
SELECT + NULLIF ( + ( + + 10 ), - 9 * 71 ) + 3 AS col0
----
13

query I rowsort
SELECT ALL + - 12 + - 0 AS col1
----
-12

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

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

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL 78 + + - COUNT ( * ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT - 48 + - CASE - 18 WHEN 48 * 81 THEN COALESCE ( 56, + MIN( 17 ) * SUM( DISTINCT - 78 ) ) * COALESCE ( + 95 * 40, 13 * + 82 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5993
SELECT - 48 + - CASE - 18 WHEN 48 * 81 THEN COALESCE ( 56, + MIN ( 17 ) * SUM ( DISTINCT - 78 ) ) * COALESCE ( + 95 * 40, 13 * + 82 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5994
SELECT 0 / + + 60 * + + CAST( NULL AS SIGNED ) col1, - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5994
SELECT 0 / + + 60 * + + CAST ( NULL AS INTEGER ) col1, - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5995
SELECT 35 + ( - COUNT( * ) ), - 85 DIV - 34 AS col2
----
34
2

skipif mysql # not compatible
query II rowsort label-5995
SELECT 35 + ( - COUNT ( * ) ), - 85 / - 34 AS col2
----
34
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5996
SELECT ALL NULLIF ( COUNT( * ), - + 6 ) - 13 DIV - 82 DIV - COUNT( * ) + 17 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL NULLIF ( COUNT ( * ), - + 6 ) - 13 / - 82 / - COUNT ( * ) + 17 AS col2
----
18

query II rowsort
SELECT 44 AS col2, 63 * + 83 AS col2
----
44
5229

onlyif mysql # aggregate syntax: 
query II rowsort label-5998
SELECT 54 + + 76 - 8 AS col1, + COUNT( ALL 69 ) AS col1
----
122
1

skipif mysql # not compatible
query II rowsort label-5998
SELECT 54 + + 76 - 8 AS col1, + COUNT ( ALL 69 ) AS col1
----
122
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT ALL 19 - + + 27 * COUNT( * ) + + MIN( 19 ) + 74
----
85

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL 19 - + + 27 * COUNT ( * ) + + MIN ( 19 ) + 74
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6000
SELECT 25 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-6000
SELECT 25 / 68
----
0

query II rowsort
SELECT - 71, ( - 52 ) AS col2
----
-71
-52

query I rowsort
SELECT ALL 12 * - 12
----
-144

query I rowsort
SELECT ALL 65 * - 20
----
-1300

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6005
SELECT ALL CAST( - 66 AS SIGNED ) * + + 20
----
-1320

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL CAST ( - 66 AS INTEGER ) * + + 20
----
-1320

query I rowsort
SELECT DISTINCT 11 * - + 44
----
-484

query I rowsort
SELECT ( - 75 ) * - + 33
----
2475

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6008
SELECT 77 AS col1, + 4 * + CAST( NULL AS SIGNED ) col1
----
77
NULL

skipif mysql # not compatible
query II rowsort label-6008
SELECT 77 AS col1, + 4 * + CAST ( NULL AS INTEGER ) col1
----
77
NULL

query I rowsort
SELECT DISTINCT 76 * + - 75
----
-5700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6010
SELECT ALL - 28 DIV - - COUNT( * ) + - 92
----
-120

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL - 28 / - - COUNT ( * ) + - 92
----
-120

query I rowsort
SELECT DISTINCT ( - 63 ) + + + 19 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT DISTINCT - - 32 * 35 + + - COUNT( * ) AS col2
----
1119

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT - - 32 * 35 + + - COUNT ( * ) AS col2
----
1119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6013
SELECT ALL + ( + SUM( - - 12 ) ) DIV 37 * 41 * - 87
----
0

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL + ( + SUM ( - - 12 ) ) / 37 * 41 * - 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT + 46 * + ( 68 ) * COUNT( * ) + - - 73 AS col2
----
3201

skipif mysql # not compatible
query I rowsort label-6014
SELECT + 46 * + ( 68 ) * COUNT ( * ) + - - 73 AS col2
----
3201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6015
SELECT 81 * + + MIN( - - 43 ) * - - MAX( ALL ( - 14 ) ) + + 14 DIV + 70
----
-48762

skipif mysql # not compatible
query I rowsort label-6015
SELECT 81 * + + MIN ( - - 43 ) * - - MAX ( ALL ( - 14 ) ) + + 14 / + 70
----
-48762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6016
SELECT DISTINCT + + CAST( - 44 AS SIGNED ) + - - COUNT( 81 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT + + CAST ( - 44 AS INTEGER ) + - - COUNT ( 81 ) AS col1
----
-43

query I rowsort
SELECT ALL - + 89 * + 54
----
-4806

query I rowsort
SELECT - CASE - 95 WHEN + 40 + + 2 THEN ( + 92 ) WHEN + 83 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 43 + - - 98 AS col0
----
141

query I rowsort
SELECT DISTINCT + 73 + + + 77
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT ALL - 51 DIV + - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL - 51 / + - 74 AS col0
----
0

query I rowsort
SELECT DISTINCT + 93 + - + 72 AS col2
----
21

query I rowsort
SELECT DISTINCT - 35 + - + 34 AS col0
----
-69

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6025
SELECT ALL - - 6 col0, ( + - MIN( ALL - 52 ) ) + COUNT( * )
----
6
53

skipif mysql # not compatible
query II rowsort label-6025
SELECT ALL - - 6 col0, ( + - MIN ( ALL - 52 ) ) + COUNT ( * )
----
6
53

query I rowsort
SELECT 88 * - 26
----
-2288

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6028
SELECT ALL - COUNT( + + COALESCE ( + 61, ( 84 ) ) ) - + 69 + - 7 DIV 28 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL - COUNT ( + + COALESCE ( + 61, ( 84 ) ) ) - + 69 + - 7 / 28 AS col1
----
-70

query I rowsort
SELECT 16 * + 68
----
1088

query II rowsort
SELECT 16 AS col2, + NULLIF ( - 84, + 59 ) AS col1
----
16
-84

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

query I rowsort
SELECT 28 * - - 53 AS col2
----
1484

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT 54 * + + 27 * + - COALESCE ( - + COUNT( * ), + - ( - MAX( - 22 ) ) ) * 79 AS col2
----
115182

skipif mysql # not compatible
query I rowsort label-6033
SELECT 54 * + + 27 * + - COALESCE ( - + COUNT ( * ), + - ( - MAX ( - 22 ) ) ) * 79 AS col2
----
115182

query I rowsort
SELECT 25 + - + 37 - + ( - + 75 ) * + + 2
----
138

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

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

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

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

query I rowsort
SELECT 34 + + + 81 AS col1
----
115

query III rowsort
SELECT 30 AS col1, + ( - 58 ) - 43 AS col0, + + 46 + 36 col2
----
30
-101
82

query I rowsort
SELECT 44 + - + 33 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT COUNT( - 8 ) + - 75 - + 50 AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-6040
SELECT COUNT ( - 8 ) + - 75 - + 50 AS col2
----
-124

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

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

query I rowsort
SELECT ALL 82 + + - 27 + + 50 AS col0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-6043
SELECT ALL + 25 DIV 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL + 25 / 83 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT ALL - 62 + - - 85 + + + 45 * + 51 * + 3 * - MIN( ALL - 23 ) col0
----
158378

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL - 62 + - - 85 + + + 45 * + 51 * + 3 * - MIN ( ALL - 23 ) col0
----
158378

query I rowsort
SELECT ALL 75 * - 54 col1
----
-4050

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

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL + 71 + + COUNT ( * ) AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6047
SELECT ALL + 60 AS col1, - 82 + - CASE - 35 WHEN NULLIF ( - + 85, + COUNT( DISTINCT 38 ) + CAST( NULL AS SIGNED ) ) * 37 - - 12 THEN NULL WHEN 25 * 19 + COUNT( * ) / - 77 THEN - 63 WHEN + 93 THEN 19 END
----
60
NULL

skipif mysql # not compatible
query II rowsort label-6047
SELECT ALL + 60 AS col1, - 82 + - CASE - 35 WHEN NULLIF ( - + 85, + COUNT ( DISTINCT 38 ) + CAST ( NULL AS INTEGER ) ) * 37 - - 12 THEN NULL WHEN 25 * 19 + COUNT ( * ) / - 77 THEN - 63 WHEN + 93 THEN 19 END
----
60
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6048
SELECT + NULLIF ( - - ( + CAST( NULL AS SIGNED ) ), + + 20 ), - 36 AS col2
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-6048
SELECT + NULLIF ( - - ( + CAST ( NULL AS INTEGER ) ), + + 20 ), - 36 AS col2
----
NULL
-36

query I rowsort
SELECT - + 32 * - 17 * - COALESCE ( + 63, 28 - - 34, 69 )
----
-34272

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT + + 27 + + COUNT( + + NULLIF ( 30, + + ( 98 ) ) ) * + SUM( 49 ) col0
----
76

skipif mysql # not compatible
query I rowsort label-6050
SELECT + + 27 + + COUNT ( + + NULLIF ( 30, + + ( 98 ) ) ) * + SUM ( 49 ) col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT DISTINCT 84 + + 75 - 66 + - + ( + 94 ) + - NULLIF ( - ( COUNT( * ) ), 15 )
----
0

skipif mysql # not compatible
query I rowsort label-6051
SELECT DISTINCT 84 + + 75 - 66 + - + ( + 94 ) + - NULLIF ( - ( COUNT ( * ) ), 15 )
----
0

query II rowsort
SELECT - 35 AS col1, - 44 + - - 70
----
-35
26

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

skipif mysql # not compatible
query I rowsort label-6053
SELECT - + 77 + + 11 * COUNT ( * ) AS col0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT + 80 / - 12 + + + CAST( NULL AS SIGNED ) * - - 33 * + 60 - + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6054
SELECT + 80 / - 12 + + + CAST ( NULL AS INTEGER ) * - - 33 * + 60 - + + 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6055
SELECT DISTINCT - 44 + - COUNT( * ) col1, CAST( NULL AS SIGNED )
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-6055
SELECT DISTINCT - 44 + - COUNT ( * ) col1, CAST ( NULL AS INTEGER )
----
-45
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6057
SELECT DISTINCT - 61 * - SUM( + CAST( NULL AS SIGNED ) ) + + 85, 17 AS col1
----
NULL
17

skipif mysql # not compatible
query II rowsort label-6057
SELECT DISTINCT - 61 * - SUM ( + CAST ( NULL AS INTEGER ) ) + + 85, 17 AS col1
----
NULL
17

query I rowsort
SELECT ALL - 5 * - 42 AS col0
----
210

query II rowsort
SELECT ALL + + 77 AS col0, + 67 - + 47 * - - 29
----
77
-1296

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT ALL + ( NULLIF ( + COUNT( DISTINCT - 25 ), - - 13 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL + ( NULLIF ( + COUNT ( DISTINCT - 25 ), - - 13 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6061
SELECT - + 46 DIV 35 * - 74 + ( 52 ) + - + 93 * NULLIF ( - COALESCE ( 3, + COUNT( * ), ( + 41 ) + + ( - 32 ) * COUNT( * ) ) + + 0, + 11 )
----
405

skipif mysql # not compatible
query I rowsort label-6061
SELECT - + 46 / 35 * - 74 + ( 52 ) + - + 93 * NULLIF ( - COALESCE ( 3, + COUNT ( * ), ( + 41 ) + + ( - 32 ) * COUNT ( * ) ) + + 0, + 11 )
----
405

query I rowsort
SELECT - 41 * - 43 + - ( + 85 ) - - - 76 * - - 41 AS col2
----
-1438

query I rowsort
SELECT DISTINCT + 32 * - 29 + + 38 - + 96
----
-986

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL - - 82 * - 0 * + COUNT ( 67 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6067
SELECT + 84 DIV + 32 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6067
SELECT + 84 / + 32 AS col1
----
2

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

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

query I rowsort
SELECT ALL COALESCE ( + + 18, - - 99 ) * + + 54 * - 17
----
-16524

query I rowsort
SELECT ALL 66 * NULLIF ( - - 85, + 2 + - ( 23 ) ) col2
----
5610

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT ALL + NULLIF ( - 36, - + 10 * COALESCE ( + SUM( ALL + 72 ), - 37 * - COUNT( * ) + 43 ) * 21 + 64 )
----
-36

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL + NULLIF ( - 36, - + 10 * COALESCE ( + SUM ( ALL + 72 ), - 37 * - COUNT ( * ) + 43 ) * 21 + 64 )
----
-36

query I rowsort
SELECT COALESCE ( - 49, - 82 * - 38 * - 74 + - ( 24 ) ) AS col1
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-6074
SELECT + ( ( + + 64 ) ) AS col0, 2 DIV - + 33 + + ( - 33 ) - + 80 * - 31 AS col0
----
64
2447

skipif mysql # not compatible
query II rowsort label-6074
SELECT + ( ( + + 64 ) ) AS col0, 2 / - + 33 + + ( - 33 ) - + 80 * - 31 AS col0
----
64
2447

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT - 30 * MIN( - 22 )
----
660

skipif mysql # not compatible
query I rowsort label-6075
SELECT - 30 * MIN ( - 22 )
----
660

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6077
SELECT + 6 * + COUNT( * ) * - - CAST( NULL AS DECIMAL ) * + 24 + - - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6077
SELECT + 6 * + COUNT ( * ) * - - CAST ( NULL AS REAL ) * + 24 + - - 97
----
NULL

query I rowsort
SELECT ALL + ( - 42 ) col0
----
-42

query I rowsort
SELECT DISTINCT - 38 * - + 88
----
3344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6080
SELECT - COUNT( * ) + - + CASE + 25 WHEN - 35 THEN - 32 - + ( - + 46 ) WHEN 30 + ( 60 ) THEN - COALESCE ( 39, - 54 - + 15 ) - AVG ( - 18 + - ( - ( - CAST( + 45 AS SIGNED ) ) ) ) END - - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6080
SELECT - COUNT ( * ) + - + CASE + 25 WHEN - 35 THEN - 32 - + ( - + 46 ) WHEN 30 + ( 60 ) THEN - COALESCE ( 39, - 54 - + 15 ) - AVG ( - 18 + - ( - ( - CAST ( + 45 AS INTEGER ) ) ) ) END - - 97
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6081
SELECT DISTINCT - 21 * - CAST( 10 AS SIGNED ) * + 21 + 37 + - 38 * - 91 AS col0
----
7905

skipif mysql # not compatible
query I rowsort label-6081
SELECT DISTINCT - 21 * - CAST ( 10 AS INTEGER ) * + 21 + 37 + - 38 * - 91 AS col0
----
7905

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT ALL + 66 + - COUNT( ALL 61 )
----
65

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL + 66 + - COUNT ( ALL 61 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT DISTINCT - 12 + + ( ( - 55 ) ) + COUNT( DISTINCT + ( 29 ) ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-6083
SELECT DISTINCT - 12 + + ( ( - 55 ) ) + COUNT ( DISTINCT + ( 29 ) ) AS col1
----
-66

query I rowsort
SELECT DISTINCT - 39 * 63
----
-2457

onlyif mysql # DIV for integer division: 
query I rowsort label-6085
SELECT ALL 76 + - + 95 DIV + 86
----
75

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL 76 + - + 95 / + 86
----
75

query III rowsort
SELECT DISTINCT + 21 * - - 98 AS col1, - 30, - 79 AS col1
----
2058
-30
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6087
SELECT - - 61 * SUM( DISTINCT - - CAST( 10 AS SIGNED ) ) AS col0
----
610

skipif mysql # not compatible
query I rowsort label-6087
SELECT - - 61 * SUM ( DISTINCT - - CAST ( 10 AS INTEGER ) ) AS col0
----
610

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT - SUM( 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6089
SELECT - SUM ( 72 ) AS col0
----
-72

query I rowsort
SELECT DISTINCT - 48 + - 69 + - 51 + 83 * + + 75
----
6057

query I rowsort
SELECT - + 79 + + 6 AS col1
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-6092
SELECT DISTINCT + 57 DIV - - 87
----
0

skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT + 57 / - - 87
----
0

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

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

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

query I rowsort
SELECT - - 60 + + - 36
----
24

query I rowsort
SELECT + - 54 * - ( + 88 )
----
4752

onlyif mysql # aggregate syntax: 
query II rowsort label-6097
SELECT DISTINCT MAX( DISTINCT 77 ) col0, - 97 * - 24
----
77
2328

skipif mysql # not compatible
query II rowsort label-6097
SELECT DISTINCT MAX ( DISTINCT 77 ) col0, - 97 * - 24
----
77
2328

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT - + MIN( DISTINCT + ( + 74 ) ) + + COUNT( * ) * + - 13
----
-87

skipif mysql # not compatible
query I rowsort label-6098
SELECT - + MIN ( DISTINCT + ( + 74 ) ) + + COUNT ( * ) * + - 13
----
-87

query I rowsort
SELECT - - 28 * 32 + + 76 AS col1
----
972

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT + COUNT( - 7 ) * + - 79 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-6100
SELECT + COUNT ( - 7 ) * + - 79 AS col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-6101
SELECT DISTINCT - + 4 DIV + - 93 * ( 81 ) + + + 0 - - 3 * + 14 col1
----
42

skipif mysql # not compatible
query I rowsort label-6101
SELECT DISTINCT - + 4 / + - 93 * ( 81 ) + + + 0 - - 3 * + 14 col1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6102
SELECT ALL + 73 AS col1, + COUNT( * ) * CASE - 15 WHEN 70 THEN + 52 WHEN COUNT( 47 ) / 62 + - 96 * + 13 THEN 55 + COUNT( * ) ELSE NULL END
----
73
NULL

skipif mysql # not compatible
query II rowsort label-6102
SELECT ALL + 73 AS col1, + COUNT ( * ) * CASE - 15 WHEN 70 THEN + 52 WHEN COUNT ( 47 ) / 62 + - 96 * + 13 THEN 55 + COUNT ( * ) ELSE NULL END
----
73
NULL

query I rowsort
SELECT + 78 * + 16
----
1248

onlyif mysql # DIV for integer division: 
query I rowsort label-6104
SELECT ALL 90 DIV 95 col1
----
0

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL 90 / 95 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT DISTINCT + 15 * - COUNT( + + 33 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6105
SELECT DISTINCT + 15 * - COUNT ( + + 33 ) AS col0
----
-15

query I rowsort
SELECT + 66 - - + 35 AS col0
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6107
SELECT + COALESCE ( + + NULLIF ( + COUNT( * ), + 83 ), 37 * CAST( NULL AS SIGNED ) + - 54 DIV - + 30 + COUNT( * ), 63 DIV - COUNT( ( - 87 ) ) - + 67 ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-6107
SELECT + COALESCE ( + + NULLIF ( + COUNT ( * ), + 83 ), 37 * CAST ( NULL AS INTEGER ) + - 54 / - + 30 + COUNT ( * ), 63 / - COUNT ( ( - 87 ) ) - + 67 ) / + 92
----
0

query I rowsort
SELECT + COALESCE ( + 58, - - 0, + + 7 ) * + 70 AS col2
----
4060

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT ALL 54 * - MAX( ALL - 99 ) col2
----
5346

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL 54 * - MAX ( ALL - 99 ) col2
----
5346

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6111
SELECT 25 * + + 41 - - 53 col0, - COUNT( ALL - - 96 )
----
1078
-1

skipif mysql # not compatible
query II rowsort label-6111
SELECT 25 * + + 41 - - 53 col0, - COUNT ( ALL - - 96 )
----
1078
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT + COALESCE ( - 78, 43 ) - + + COUNT( + 92 ) + + 44 + 18 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6112
SELECT + COALESCE ( - 78, 43 ) - + + COUNT ( + 92 ) + + 44 + 18 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6113
SELECT ALL CAST( NULL AS SIGNED ) * - - NULLIF ( - 19, COALESCE ( - CAST( 33 AS SIGNED ), - 61 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL CAST ( NULL AS INTEGER ) * - - NULLIF ( - 19, COALESCE ( - CAST ( 33 AS INTEGER ), - 61 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ALL SUM( DISTINCT - 97 ) * 8 * + 9 + + 35 AS col1
----
-6949

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL SUM ( DISTINCT - 97 ) * 8 * + 9 + + 35 AS col1
----
-6949

onlyif mysql # aggregate syntax: 
query II rowsort label-6115
SELECT DISTINCT COUNT( * ) * - 96 + + 76, 80 AS col2
----
-20
80

skipif mysql # not compatible
query II rowsort label-6115
SELECT DISTINCT COUNT ( * ) * - 96 + + 76, 80 AS col2
----
-20
80

query I rowsort
SELECT DISTINCT 21 * 26 + + - 69
----
477

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT MIN( ALL - 24 ) + - 87
----
-111

skipif mysql # not compatible
query I rowsort label-6117
SELECT MIN ( ALL - 24 ) + - 87
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT CASE - 37 WHEN ( CASE 1 WHEN ( - + 58 ) / COUNT( * ) * 78 - + 66 THEN + 47 ELSE NULL END ) THEN + COALESCE ( 60, MAX( DISTINCT + 91 ) ) + + SUM( DISTINCT 0 ) * 88 END * - 8 - + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6118
SELECT CASE - 37 WHEN ( CASE 1 WHEN ( - + 58 ) / COUNT ( * ) * 78 - + 66 THEN + 47 ELSE NULL END ) THEN + COALESCE ( 60, MAX ( DISTINCT + 91 ) ) + + SUM ( DISTINCT 0 ) * 88 END * - 8 - + 87
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6119
SELECT 69 + - 61 + + COUNT( * ) + - 46 DIV + 33
----
8

skipif mysql # not compatible
query I rowsort label-6119
SELECT 69 + - 61 + + COUNT ( * ) + - 46 / + 33
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6120
SELECT + 87 * COUNT( * ) + 83 + 30 * - 20 DIV + - 90 DIV 11 * + 46 AS col0
----
170

skipif mysql # not compatible
query I rowsort label-6120
SELECT + 87 * COUNT ( * ) + 83 + 30 * - 20 / + - 90 / 11 * + 46 AS col0
----
170

query I rowsort
SELECT 46 * - + ( + - 1 ) + - 17
----
29

query I rowsort
SELECT DISTINCT + - ( - - ( 58 ) ) * - 97 AS col0
----
5626

query I rowsort
SELECT ALL - - 83 + + - 75 AS col0
----
8

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

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

query I rowsort
SELECT ALL NULLIF ( - 94, - 61 )
----
-94

query I rowsort
SELECT ALL + ( - 38 ) * + CASE - - 84 WHEN + - 96 / - ( 87 ) + - 88 THEN - 45 END + + 68 AS col2
----
NULL

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

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

query II rowsort
SELECT 7 AS col1, - 79 * + + 56 + - - 1 - - 21 AS col2
----
7
-4402

onlyif mysql # DIV for integer division: 
query II rowsort label-6129
SELECT DISTINCT + + 53 * - 5 * - 62 AS col0, 89 DIV 97 col1
----
16430
0

skipif mysql # not compatible
query II rowsort label-6129
SELECT DISTINCT + + 53 * - 5 * - 62 AS col0, 89 / 97 col1
----
16430
0

query II rowsort
SELECT ALL - 58, - 97 AS col0
----
-58
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-6131
SELECT - + 2 AS col1, CASE COUNT( * ) WHEN 58 THEN NULL WHEN + + 37 THEN + - 63 ELSE + CASE + 83 WHEN 27 + 34 THEN 92 * + 91 WHEN 79 THEN 58 ELSE NULL END END AS col2
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-6131
SELECT - + 2 AS col1, CASE COUNT ( * ) WHEN 58 THEN NULL WHEN + + 37 THEN + - 63 ELSE + CASE + 83 WHEN 27 + 34 THEN 92 * + 91 WHEN 79 THEN 58 ELSE NULL END END AS col2
----
-2
NULL

query I rowsort
SELECT ALL + + COALESCE ( + + 63, 84 + - + 75 ) * + 37
----
2331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6133
SELECT 4 DIV 45 DIV 67 DIV - - COUNT( * ) * + CASE - 4 WHEN COUNT( * ) THEN NULL ELSE + + COALESCE ( SUM( ALL 16 ), - 94, + 56 - - CAST( + COUNT( DISTINCT 2 ) AS SIGNED ) ) END - - 21 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-6133
SELECT 4 / 45 / 67 / - - COUNT ( * ) * + CASE - 4 WHEN COUNT ( * ) THEN NULL ELSE + + COALESCE ( SUM ( ALL 16 ), - 94, + 56 - - CAST ( + COUNT ( DISTINCT 2 ) AS INTEGER ) ) END - - 21 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT 48 * + - 30 + - 12 * + COUNT( * )
----
-1452

skipif mysql # not compatible
query I rowsort label-6134
SELECT 48 * + - 30 + - 12 * + COUNT ( * )
----
-1452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6135
SELECT 35 * - 74 / - 11 / 74 * CASE - 37 WHEN - + 67 THEN CAST( + 97 AS SIGNED ) WHEN 51 THEN 63 ELSE NULL END + + CAST( NULL AS SIGNED ) * 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6135
SELECT 35 * - 74 / - 11 / 74 * CASE - 37 WHEN - + 67 THEN CAST ( + 97 AS INTEGER ) WHEN 51 THEN 63 ELSE NULL END + + CAST ( NULL AS INTEGER ) * 80 AS col1
----
NULL

query I rowsort
SELECT 94 + - - 58 + ( + 90 ) * - 13 + + 93 * + 77
----
6143

query II rowsort
SELECT 62 AS col2, - ( 29 ) * + - ( + + 77 ) AS col1
----
62
2233

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

skipif mysql # not compatible
query I rowsort label-6138
SELECT - COUNT ( * ) + + ( + 51 ) + - - 85 AS col2
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6139
SELECT 27 DIV - - 65 * + + COUNT( * ) * MAX( DISTINCT 26 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6139
SELECT 27 / - - 65 * + + COUNT ( * ) * MAX ( DISTINCT 26 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6140
SELECT ALL + 12 DIV - + 35
----
0

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL + 12 / - + 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT MIN( DISTINCT NULLIF ( + 31, + 59 ) )
----
31

skipif mysql # not compatible
query I rowsort label-6141
SELECT MIN ( DISTINCT NULLIF ( + 31, + 59 ) )
----
31

query I rowsort
SELECT - 92 * + - 2 AS col1
----
184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6143
SELECT ALL - + COUNT( - 95 ) DIV - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL - + COUNT ( - 95 ) / - COUNT ( * ) col2
----
1

query II rowsort
SELECT DISTINCT - ( + - 59 ) AS col0, - 76
----
59
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6145
SELECT COUNT( * ) * + CAST( NULL AS DECIMAL ) / - 40 - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6145
SELECT COUNT ( * ) * + CAST ( NULL AS REAL ) / - 40 - 77
----
NULL

query I rowsort
SELECT ALL 13 * 32 AS col2
----
416

query I rowsort
SELECT DISTINCT 71 + COALESCE ( + 15, 38 ) AS col1
----
86

query I rowsort
SELECT 29 * + COALESCE ( - 48, + 31 ) + + ( + 23 ) - ( + 46 ) AS col1
----
-1415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6149
SELECT + ( 38 ) * SUM( ALL + 7 ) + 53 - - ( - ( + + ( + COUNT( * ) ) ) ) DIV 63 AS col0
----
319

skipif mysql # not compatible
query I rowsort label-6149
SELECT + ( 38 ) * SUM ( ALL + 7 ) + 53 - - ( - ( + + ( + COUNT ( * ) ) ) ) / 63 AS col0
----
319

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT 79 + + 54 + NULLIF ( + 61, - - COUNT( * ) * + 48 * - - 13 / + + AVG ( - NULLIF ( NULLIF ( 72, 97 * - 0 ), 56 ) ) - + 16 ) AS col0
----
194

skipif mysql # not compatible
query I rowsort label-6150
SELECT 79 + + 54 + NULLIF ( + 61, - - COUNT ( * ) * + 48 * - - 13 / + + AVG ( - NULLIF ( NULLIF ( 72, 97 * - 0 ), 56 ) ) - + 16 ) AS col0
----
194

query I rowsort
SELECT ALL 70 + 15 - + + 35
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6152
SELECT ALL COUNT( DISTINCT 29 ) DIV ( + 23 )
----
0

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL COUNT ( DISTINCT 29 ) / ( + 23 )
----
0

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

skipif mysql # not compatible
query I rowsort label-6153
SELECT 67 * - COUNT ( * ) + - + 65 AS col1
----
-132

query I rowsort
SELECT ALL 40 + + 8
----
48

query I rowsort
SELECT 85 * 99
----
8415

query I rowsort
SELECT 20 * - 30 AS col1
----
-600

query I rowsort
SELECT DISTINCT 50 * 33 AS col0
----
1650

query I rowsort
SELECT ALL - 59 * 23 AS col0
----
-1357

query I rowsort
SELECT - + NULLIF ( - - 90, + - 95 )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6160
SELECT ALL + 90 * + - CAST( + 86 AS SIGNED ) + 30
----
-7710

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL + 90 * + - CAST ( + 86 AS INTEGER ) + 30
----
-7710

query I rowsort
SELECT DISTINCT + COALESCE ( + + 50, + 67 ) - + 33
----
17

query I rowsort
SELECT - 47 * - - ( - - 41 )
----
-1927

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6163
SELECT ALL COALESCE ( ( - - 60 ), - + 8 DIV + 49, - 37 ) * COALESCE ( - + 33, - - COALESCE ( 62, 98 + 77 * ( COUNT( ALL 8 ) ), COUNT( * ) ), + 50 DIV 69 )
----
-1980

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL COALESCE ( ( - - 60 ), - + 8 / + 49, - 37 ) * COALESCE ( - + 33, - - COALESCE ( 62, 98 + 77 * ( COUNT ( ALL 8 ) ), COUNT ( * ) ), + 50 / 69 )
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT - 65 * - COUNT( * ) + + 6
----
71

skipif mysql # not compatible
query I rowsort label-6164
SELECT - 65 * - COUNT ( * ) + + 6
----
71

query II rowsort
SELECT 73 - + 97 AS col2, 62
----
-24
62

onlyif mysql # DIV for integer division: 
query I rowsort label-6166
SELECT 50 * 62 DIV - 6 AS col2
----
-516

skipif mysql # not compatible
query I rowsort label-6166
SELECT 50 * 62 / - 6 AS col2
----
-516

query I rowsort
SELECT 42 - + 27 * - - 79 + + 82 + + - 91
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT - SUM( + - 89 ) + + MIN( DISTINCT 44 ) * - 50
----
-2111

skipif mysql # not compatible
query I rowsort label-6168
SELECT - SUM ( + - 89 ) + + MIN ( DISTINCT 44 ) * - 50
----
-2111

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

query II rowsort
SELECT DISTINCT + 33 * 74 col1, 22 AS col1
----
2442
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6171
SELECT ALL + COUNT( * ) * + 97 + + - CASE + - 69 WHEN - + 80 * + SUM( + 46 ) + - CAST( NULL AS DECIMAL ) / + 90 * + 96 + - 71 THEN + 27 + + 11 * + 94 WHEN + COALESCE ( + 13, + COUNT( * ) + + CAST( NULL AS SIGNED ) * 21 ) THEN 91 * - COALESCE ( - 92 * + CAST( + ( - 67 ) * 96 AS DECIMAL ), - CAST( NULL AS SIGNED ) ) WHEN + CAST( 38 AS SIGNED ) THEN 94 + + 82 END * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL + COUNT ( * ) * + 97 + + - CASE + - 69 WHEN - + 80 * + SUM ( + 46 ) + - CAST ( NULL AS REAL ) / + 90 * + 96 + - 71 THEN + 27 + + 11 * + 94 WHEN + COALESCE ( + 13, + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 21 ) THEN 91 * - COALESCE ( - 92 * + CAST ( + ( - 67 ) * 96 AS REAL ), - CAST ( NULL AS INTEGER ) ) WHEN + CAST ( 38 AS INTEGER ) THEN 94 + + 82 END * + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT NULLIF ( + COUNT( * ), + + 56 ) + + 55 * - + NULLIF ( - + SUM( DISTINCT - 74 ), + - 13 )
----
-4069

skipif mysql # not compatible
query I rowsort label-6172
SELECT NULLIF ( + COUNT ( * ), + + 56 ) + + 55 * - + NULLIF ( - + SUM ( DISTINCT - 74 ), + - 13 )
----
-4069

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6174
SELECT 70 + ( + 32 ) * ( 59 ) + + - CAST( ( - 84 ) AS SIGNED ) DIV COALESCE ( - ( - 93 ), COALESCE ( - 70, - COUNT( * ) * - 65, 44 - - COUNT( + 35 ) ) * 70 ) DIV 13 col2
----
1958

skipif mysql # not compatible
query I rowsort label-6174
SELECT 70 + ( + 32 ) * ( 59 ) + + - CAST ( ( - 84 ) AS INTEGER ) / COALESCE ( - ( - 93 ), COALESCE ( - 70, - COUNT ( * ) * - 65, 44 - - COUNT ( + 35 ) ) * 70 ) / 13 col2
----
1958

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT 73 - - + COALESCE ( + CASE ( 3 ) WHEN - 39 + - - COUNT( * ) * - - 73 * + 1 * - 35 THEN 55 END, + 18 * 49 ) col1
----
955

skipif mysql # not compatible
query I rowsort label-6175
SELECT 73 - - + COALESCE ( + CASE ( 3 ) WHEN - 39 + - - COUNT ( * ) * - - 73 * + 1 * - 35 THEN 55 END, + 18 * 49 ) col1
----
955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6176
SELECT ALL COUNT( * ) * - NULLIF ( - 99, - - 89 ) + NULLIF ( + CAST( - MIN( 38 ) AS SIGNED ), - 74 * + + 90 ) + 3 * NULLIF ( ( 16 ) * - 24, 1 + AVG ( 20 + - CAST( + 24 - 21 AS DECIMAL ) ) ) AS col1
----
-1091

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL COUNT ( * ) * - NULLIF ( - 99, - - 89 ) + NULLIF ( + CAST ( - MIN ( 38 ) AS INTEGER ), - 74 * + + 90 ) + 3 * NULLIF ( ( 16 ) * - 24, 1 + AVG ( 20 + - CAST ( + 24 - 21 AS REAL ) ) ) AS col1
----
-1091

query I rowsort
SELECT ALL 7 * + 96 * - - 11 + 54
----
7446

query I rowsort
SELECT 63 * - 46
----
-2898

query II rowsort
SELECT DISTINCT 69 * + + 13 + - 86 AS col0, 39 AS col0
----
811
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT DISTINCT 50 * - COUNT( * ) * COUNT( * ) + - 80 * 35
----
-2850

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT 50 * - COUNT ( * ) * COUNT ( * ) + - 80 * 35
----
-2850

query I rowsort
SELECT DISTINCT 88 * + + 48 + + 58 AS col1
----
4282

query I rowsort
SELECT DISTINCT 13 * + 55 + - - 53 * + 2
----
821

query I rowsort
SELECT - 35 * 27 AS col0
----
-945

query I rowsort
SELECT ALL + 8 * + - 10
----
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-6185
SELECT + 89 AS col2, - 77 DIV - 14
----
89
5

skipif mysql # not compatible
query II rowsort label-6185
SELECT + 89 AS col2, - 77 / - 14
----
89
5

query I rowsort
SELECT + 35 * ( 65 )
----
2275

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6188
SELECT ALL + COALESCE ( + 18, 42 ), - COALESCE ( + COUNT( * ), COALESCE ( + - 27, - 29, + ( + 89 ) ), + 95 + - 66 ) * COUNT( * ) AS col0
----
18
-1

skipif mysql # not compatible
query II rowsort label-6188
SELECT ALL + COALESCE ( + 18, 42 ), - COALESCE ( + COUNT ( * ), COALESCE ( + - 27, - 29, + ( + 89 ) ), + 95 + - 66 ) * COUNT ( * ) AS col0
----
18
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT + - 17 * + 42 * COUNT( * ) + + 58
----
-656

skipif mysql # not compatible
query I rowsort label-6189
SELECT + - 17 * + 42 * COUNT ( * ) + + 58
----
-656

onlyif mysql # aggregate syntax: 
query II rowsort label-6190
SELECT - + COUNT( * ) + COALESCE ( MAX( DISTINCT + 8 ), + 23 + + COUNT( + 41 ), + 74 ) col0, + ( - 70 )
----
7
-70

skipif mysql # not compatible
query II rowsort label-6190
SELECT - + COUNT ( * ) + COALESCE ( MAX ( DISTINCT + 8 ), + 23 + + COUNT ( + 41 ), + 74 ) col0, + ( - 70 )
----
7
-70

query I rowsort
SELECT - + 44 * + 29 - + - 92
----
-1184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6192
SELECT ALL - 78 DIV NULLIF ( + - COUNT( DISTINCT 57 ), 92 )
----
78

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL - 78 / NULLIF ( + - COUNT ( DISTINCT 57 ), 92 )
----
78

query I rowsort
SELECT + - 72 + - ( - 22 )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6194
SELECT + - 67 - CASE ( + CAST( 73 AS SIGNED ) ) WHEN - - 82 + 43 THEN NULL WHEN - + 0 + + MAX( - - 25 ) THEN + 99 ELSE 90 END AS col0
----
-157

skipif mysql # not compatible
query I rowsort label-6194
SELECT + - 67 - CASE ( + CAST ( 73 AS INTEGER ) ) WHEN - - 82 + 43 THEN NULL WHEN - + 0 + + MAX ( - - 25 ) THEN + 99 ELSE 90 END AS col0
----
-157

onlyif mysql # DIV for integer division: 
query I rowsort label-6195
SELECT + 11 DIV - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6195
SELECT + 11 / - 93 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6196
SELECT - - CAST( COALESCE ( + 72, 33, 41 ) AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-6196
SELECT - - CAST ( COALESCE ( + 72, 33, 41 ) AS INTEGER )
----
72

query I rowsort
SELECT + 38 + + 18 AS col2
----
56

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

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL - SUM ( ALL - 23 )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-6199
SELECT ALL - 44 AS col2, + 49 * + - 86 + - NULLIF ( ( 32 ), 2 / 75 * SUM( - 56 ) + + 57 )
----
-44
-4246

skipif mysql # not compatible
query II rowsort label-6199
SELECT ALL - 44 AS col2, + 49 * + - 86 + - NULLIF ( ( 32 ), 2 / 75 * SUM ( - 56 ) + + 57 )
----
-44
-4246

query I rowsort
SELECT + + NULLIF ( 71, - - 66 ) * - 27
----
-1917

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT + 65 + - + COALESCE ( 86, - + MIN( - + 14 ) ) + - 9
----
-30

skipif mysql # not compatible
query I rowsort label-6201
SELECT + 65 + - + COALESCE ( 86, - + MIN ( - + 14 ) ) + - 9
----
-30

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

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

query I rowsort
SELECT + - 29 + + 59
----
30

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

skipif mysql # not compatible
query I rowsort label-6204
SELECT + + 54 * - CAST ( NULL AS REAL )
----
NULL

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

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

query I rowsort
SELECT - - 91 + + 58 AS col0
----
149

query I rowsort
SELECT ALL 31 + - 49 AS col1
----
-18

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

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

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

query I rowsort
SELECT + 13 + 32 + - 28
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6211
SELECT DISTINCT - 93 * - - 3 AS col0, - SUM( - - 24 ) + 63 * 24 AS col0
----
-279
1488

skipif mysql # not compatible
query II rowsort label-6211
SELECT DISTINCT - 93 * - - 3 AS col0, - SUM ( - - 24 ) + 63 * 24 AS col0
----
-279
1488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6212
SELECT - CASE COUNT( * ) WHEN - 37 THEN + COUNT( * ) - - CAST( + - 46 AS SIGNED ) * - ( + COUNT( * ) ) WHEN + - 32 * + 30 THEN NULL END + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT - CASE COUNT ( * ) WHEN - 37 THEN + COUNT ( * ) - - CAST ( + - 46 AS INTEGER ) * - ( + COUNT ( * ) ) WHEN + - 32 * + 30 THEN NULL END + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL - 75 * + 32
----
-2400

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6215
SELECT + COUNT( * ) * + 61 - CASE + 12 WHEN AVG ( ALL - 63 ) * + 73 * - + 61 THEN CAST( NULL AS SIGNED ) WHEN - 24 / 41 THEN - 99 - 83 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT + COUNT ( * ) * + 61 - CASE + 12 WHEN AVG ( ALL - 63 ) * + 73 * - + 61 THEN CAST ( NULL AS INTEGER ) WHEN - 24 / 41 THEN - 99 - 83 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6216
SELECT DISTINCT + COALESCE ( + 37, - + 5 DIV + 3 * + 62 - 58 DIV 6 DIV - 86 + + COUNT( * ) * 24, - - COUNT( * ) * 74 + - 48 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT + COALESCE ( + 37, - + 5 / + 3 * + 62 - 58 / 6 / - 86 + + COUNT ( * ) * 24, - - COUNT ( * ) * 74 + - 48 ) AS col1
----
37

query I rowsort
SELECT ALL - 76 * - + 42 * - 98 * - + 92
----
28779072

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT + 29 + + + 12 + + 72 * + COUNT( * ) * - ( + + 36 ) col1
----
-2551

skipif mysql # not compatible
query I rowsort label-6218
SELECT + 29 + + + 12 + + 72 * + COUNT ( * ) * - ( + + 36 ) col1
----
-2551

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6219
SELECT 3 DIV 22 + COALESCE ( - - 47, + SUM( ALL ( 93 ) ) )
----
47

skipif mysql # not compatible
query I rowsort label-6219
SELECT 3 / 22 + COALESCE ( - - 47, + SUM ( ALL ( 93 ) ) )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6220
SELECT - CAST( NULL AS SIGNED ) + + 99 + + 25 - - 3 * - - 98 + - - SUM( - 94 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6220
SELECT - CAST ( NULL AS INTEGER ) + + 99 + + 25 - - 3 * - - 98 + - - SUM ( - 94 ) AS col1
----
NULL

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

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

query II rowsort
SELECT ALL + 23 AS col1, 66
----
23
66

onlyif mysql # DIV for integer division: 
query I rowsort label-6223
SELECT DISTINCT - 31 DIV + + 21
----
-1

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT - 31 / + + 21
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6224
SELECT DISTINCT + 36, - 76 + 31 DIV + - 57 AS col0
----
36
-76

skipif mysql # not compatible
query II rowsort label-6224
SELECT DISTINCT + 36, - 76 + 31 / + - 57 AS col0
----
36
-76

query II rowsort
SELECT ALL + 39 AS col0, - 89
----
39
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT ALL + COUNT( * ) * 24 * + 43
----
1032

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL + COUNT ( * ) * 24 * + 43
----
1032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6227
SELECT - + 62 + CAST( NULL AS SIGNED ) * MIN( - + 64 ) + + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT - + 62 + CAST ( NULL AS INTEGER ) * MIN ( - + 64 ) + + 50 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6228
SELECT - + 46 DIV + 57 + ( - - COUNT( + + 4 ) ) * - + 9
----
-9

skipif mysql # not compatible
query I rowsort label-6228
SELECT - + 46 / + 57 + ( - - COUNT ( + + 4 ) ) * - + 9
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6229
SELECT DISTINCT + NULLIF ( + + 56, + - 18 ) DIV 30
----
1

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT + NULLIF ( + + 56, + - 18 ) / 30
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT - 42 + - + MIN( DISTINCT - + 80 ) - + 36 * + 78
----
-2770

skipif mysql # not compatible
query I rowsort label-6230
SELECT - 42 + - + MIN ( DISTINCT - + 80 ) - + 36 * + 78
----
-2770

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

query II rowsort
SELECT 95 AS col0, + 29
----
95
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT - 0 * ( COUNT( 71 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6233
SELECT - 0 * ( COUNT ( 71 ) )
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6235
SELECT 38 AS col0, + 6 * + + CASE 15 WHEN - 59 * + 48 * - + 4 * + ( + - 47 ) * - + 19 THEN 86 + 72 WHEN 68 THEN 99 DIV 91 ELSE - 92 * 42 + 64 END * - 26 AS col1
----
38
592800

skipif mysql # not compatible
query II rowsort label-6235
SELECT 38 AS col0, + 6 * + + CASE 15 WHEN - 59 * + 48 * - + 4 * + ( + - 47 ) * - + 19 THEN 86 + 72 WHEN 68 THEN 99 / 91 ELSE - 92 * 42 + 64 END * - 26 AS col1
----
38
592800

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT ALL - + 67 * COUNT( * ) * + ( + COUNT( ALL + 94 ) ) * - - COUNT( * ) - - 34 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL - + 67 * COUNT ( * ) * + ( + COUNT ( ALL + 94 ) ) * - - COUNT ( * ) - - 34 AS col2
----
-33

query I rowsort
SELECT ALL + - 61 * + - 80 * 93 * - NULLIF ( 6, 2 ) + - + 91 * 98
----
-2731958

query II rowsort
SELECT - - 79, 53 AS col1
----
79
53

onlyif mysql # aggregate syntax: 
query II rowsort label-6239
SELECT ALL + SUM( 0 ) AS col1, + 39
----
0
39

skipif mysql # not compatible
query II rowsort label-6239
SELECT ALL + SUM ( 0 ) AS col1, + 39
----
0
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6240
SELECT ALL + 4 * + - 7 + 68 * + SUM( ALL - 53 ) + + 29 AS col0, - 54
----
-3603
-54

skipif mysql # not compatible
query II rowsort label-6240
SELECT ALL + 4 * + - 7 + 68 * + SUM ( ALL - 53 ) + + 29 AS col0, - 54
----
-3603
-54

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

query II rowsort
SELECT - + 0 - + 29, 36 AS col0
----
-29
36

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

query II rowsort
SELECT - 80 AS col2, - 30 AS col0
----
-80
-30

query I rowsort
SELECT + 94 + + 94 AS col1
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT DISTINCT - CASE - 86 WHEN - 47 THEN - 63 + 93 WHEN + ( SUM( DISTINCT + + 97 ) ) THEN NULL END + + + 0 * + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT - CASE - 86 WHEN - 47 THEN - 63 + 93 WHEN + ( SUM ( DISTINCT + + 97 ) ) THEN NULL END + + + 0 * + 12 AS col1
----
NULL

query I rowsort
SELECT ALL 69 + - 7 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT + MIN( ( + 80 ) ) * + 66
----
5280

skipif mysql # not compatible
query I rowsort label-6248
SELECT + MIN ( ( + 80 ) ) * + 66
----
5280

onlyif mysql # DIV for integer division: 
query I rowsort label-6249
SELECT ALL + 6 DIV ( - 17 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL + 6 / ( - 17 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT + 72 - + + 75 * - 40 * + + MAX( ALL + 36 ) * 66
----
7128072

skipif mysql # not compatible
query I rowsort label-6250
SELECT + 72 - + + 75 * - 40 * + + MAX ( ALL + 36 ) * 66
----
7128072

query I rowsort
SELECT ALL 54 + + 7 * - 25 + - 6
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT ALL 48 * - SUM( DISTINCT + - ( + - 8 ) ) AS col0
----
-384

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL 48 * - SUM ( DISTINCT + - ( + - 8 ) ) AS col0
----
-384

onlyif mysql # DIV for integer division: 
query I rowsort label-6253
SELECT ( + 94 ) DIV + - 62 + - 98
----
-99

skipif mysql # not compatible
query I rowsort label-6253
SELECT ( + 94 ) / + - 62 + - 98
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6254
SELECT CAST( NULL AS SIGNED ) + 49 * 26 AS col0, - 4 * 48 AS col2
----
NULL
-192

skipif mysql # not compatible
query II rowsort label-6254
SELECT CAST ( NULL AS INTEGER ) + 49 * 26 AS col0, - 4 * 48 AS col2
----
NULL
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT ALL CASE + COUNT( * ) WHEN - 44 THEN NULL ELSE + + 66 END - + 50
----
16

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL CASE + COUNT ( * ) WHEN - 44 THEN NULL ELSE + + 66 END - + 50
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT MIN( + 65 ) * - 33 * + 35 + + - 14 + + + 88 * - 74 * + COALESCE ( + - MAX( - 64 ), COUNT( * ) + 88 * + 82 ) * 22 col2
----
-9243985

skipif mysql # not compatible
query I rowsort label-6256
SELECT MIN ( + 65 ) * - 33 * + 35 + + - 14 + + + 88 * - 74 * + COALESCE ( + - MAX ( - 64 ), COUNT ( * ) + 88 * + 82 ) * 22 col2
----
-9243985

onlyif mysql # aggregate syntax: 
query II rowsort label-6257
SELECT ALL - COALESCE ( - + 57, + + 55 * + 14 ) * - 85, - NULLIF ( - COUNT( * ), - 49 ) AS col1
----
-4845
1

skipif mysql # not compatible
query II rowsort label-6257
SELECT ALL - COALESCE ( - + 57, + + 55 * + 14 ) * - 85, - NULLIF ( - COUNT ( * ), - 49 ) AS col1
----
-4845
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT DISTINCT - 27 * - CASE MAX( DISTINCT - ( + 51 ) ) WHEN 73 - CASE COUNT( * ) WHEN + 24 + + - ( + 62 ) THEN NULL WHEN 17 / + 26 + ( - NULLIF ( - 22, - 28 ) ) THEN NULL WHEN + SUM( - 33 ) THEN NULL ELSE 69 / 92 END THEN - 58 ELSE - COALESCE ( 7, - 59, - COALESCE ( + 53, + SUM( COALESCE ( ( NULLIF ( + 4, - 41 ) ), 91 ) ), 87 + - 75 * 47 ) + COUNT( * ) * 45 ) * 33 END
----
-6237

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT - 27 * - CASE MAX ( DISTINCT - ( + 51 ) ) WHEN 73 - CASE COUNT ( * ) WHEN + 24 + + - ( + 62 ) THEN NULL WHEN 17 / + 26 + ( - NULLIF ( - 22, - 28 ) ) THEN NULL WHEN + SUM ( - 33 ) THEN NULL ELSE 69 / 92 END THEN - 58 ELSE - COALESCE ( 7, - 59, - COALESCE ( + 53, + SUM ( COALESCE ( ( NULLIF ( + 4, - 41 ) ), 91 ) ), 87 + - 75 * 47 ) + COUNT ( * ) * 45 ) * 33 END
----
-6237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6260
SELECT CAST( + 86 AS SIGNED ) - - 10 - 21
----
75

skipif mysql # not compatible
query I rowsort label-6260
SELECT CAST ( + 86 AS INTEGER ) - - 10 - 21
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6261
SELECT 23 * - 0 DIV + 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6261
SELECT 23 * - 0 / + 16 AS col0
----
0

query I rowsort
SELECT DISTINCT + + 94 * + 11
----
1034

query I rowsort
SELECT 15 * + 61 * - COALESCE ( - - 58, + 74 * 60 * - + 19 ) AS col2
----
-53070

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT - COUNT( * ) * 24 + - 58 * 66 - - 32 - + 39 + + + COUNT( 36 ) + + 94 * 4 - + + 28 AS col0
----
-3510

skipif mysql # not compatible
query I rowsort label-6264
SELECT - COUNT ( * ) * 24 + - 58 * 66 - - 32 - + 39 + + + COUNT ( 36 ) + + 94 * 4 - + + 28 AS col0
----
-3510

query I rowsort
SELECT ALL + 95 + + + 92 * - 11
----
-917

query I rowsort
SELECT 94 + + + 71
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT ALL + MIN( - 82 ) + + + 50 * - + 0 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL + MIN ( - 82 ) + + + 50 * - + 0 AS col2
----
-82

query I rowsort
SELECT 27 + + + 24 AS col2
----
51

query I rowsort
SELECT ALL + 35 + + 35 - 8
----
62

query I rowsort
SELECT 74 + + 99
----
173

query I rowsort
SELECT + 60 * 28 - - 91
----
1771

query I rowsort
SELECT 63 - 74 * 86
----
-6301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6273
SELECT ALL - 43 + COALESCE ( - - 90, MIN( - CAST( NULL AS SIGNED ) ) ) + + ( 44 )
----
91

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL - 43 + COALESCE ( - - 90, MIN ( - CAST ( NULL AS INTEGER ) ) ) + + ( 44 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT - 83 + + 13 * + 88 * CASE - 21 WHEN - NULLIF ( - + 67, - COUNT( + + 19 ) * + 97 ) + + + 27 + 60 * + ( COUNT( * ) / - COUNT( * ) ) THEN - 2 END + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6274
SELECT - 83 + + 13 * + 88 * CASE - 21 WHEN - NULLIF ( - + 67, - COUNT ( + + 19 ) * + 97 ) + + + 27 + 60 * + ( COUNT ( * ) / - COUNT ( * ) ) THEN - 2 END + - 52
----
NULL

query I rowsort
SELECT DISTINCT - 41 + - + CASE 16 WHEN ( 63 ) + - 22 THEN - 89 * + - 91 * - 79 - + 40 WHEN - 55 / + + 60 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 73 + + + 40 * - 88 + 88 AS col1
----
-3359

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6277
SELECT ALL - 48 - - ( MIN( 91 ) ) DIV + COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL - 48 - - ( MIN ( 91 ) ) / + COUNT ( * ) AS col1
----
43

query I rowsort
SELECT DISTINCT + 93 * - - 62 AS col0
----
5766

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6279
SELECT MAX( - 89 ) + + + CASE + COALESCE ( 51, 81, + + 32 + 20 - 57 * 48, - - NULLIF ( 5, + 10 ) * 72 ) WHEN NULLIF ( COUNT( * ), 23 * 84 ) + - COUNT( * ) THEN + MAX( 72 ) + - 65 WHEN CASE 22 WHEN + 63 THEN NULL WHEN MAX( DISTINCT + 58 ) THEN + 70 END + 50 * - COALESCE ( 12, + 87 / + 66 ) THEN NULL ELSE NULLIF ( + 12, + 20 + + 73 ) * 90 END * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT MAX ( - 89 ) + + + CASE + COALESCE ( 51, 81, + + 32 + 20 - 57 * 48, - - NULLIF ( 5, + 10 ) * 72 ) WHEN NULLIF ( COUNT ( * ), 23 * 84 ) + - COUNT ( * ) THEN + MAX ( 72 ) + - 65 WHEN CASE 22 WHEN + 63 THEN NULL WHEN MAX ( DISTINCT + 58 ) THEN + 70 END + 50 * - COALESCE ( 12, + 87 / + 66 ) THEN NULL ELSE NULLIF ( + 12, + 20 + + 73 ) * 90 END * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 53 * 41 AS col1
----
2173

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT MIN( + + 30 ) * + 55 AS col1
----
1650

skipif mysql # not compatible
query I rowsort label-6281
SELECT MIN ( + + 30 ) * + 55 AS col1
----
1650

query I rowsort
SELECT 59 + - ( - + ( - - NULLIF ( 31, ( - 63 ) ) ) ) + 19 * - - 67
----
1363

query I rowsort
SELECT 69 + - + 19 AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6284
SELECT COALESCE ( - - CAST( NULL AS SIGNED ), - COUNT( * ) * - COUNT( * ) + + 23 * CAST( NULL AS SIGNED ) ) + - 42 * + - 67 + 30 + ( - COUNT( * ) ) + + + 16 * + 77 * - 89 * + 60 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6284
SELECT COALESCE ( - - CAST ( NULL AS INTEGER ), - COUNT ( * ) * - COUNT ( * ) + + 23 * CAST ( NULL AS INTEGER ) ) + - 42 * + - 67 + 30 + ( - COUNT ( * ) ) + + + 16 * + 77 * - 89 * + 60 col0
----
NULL

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

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

query I rowsort
SELECT ( - + 67 ) * 93
----
-6231

query II rowsort
SELECT - 29 AS col1, 2
----
-29
2

query II rowsort
SELECT ALL 31 col2, 51
----
31
51

query I rowsort
SELECT 94 + + 34
----
128

query II rowsort
SELECT 58 col2, 3 col0
----
58
3

query I rowsort
SELECT COALESCE ( + + 43, 46 ) + + + 41
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT DISTINCT MAX( DISTINCT + 76 ) * + COUNT( * )
----
76

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

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

skipif mysql # not compatible
query I rowsort label-6293
SELECT CAST ( NULL AS INTEGER ) / 33 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6294
SELECT + COUNT( * ) / - + 49 * - - 77 + + 37 * - COUNT( * ) + + 51 - + CAST( + + ( + + NULLIF ( 39, + 55 ) ) AS SIGNED ) + 61 * - + 53 + CASE + NULLIF ( 54, + 12 / 71 ) WHEN - COUNT( 70 ) THEN + 65 WHEN 44 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6294
SELECT + COUNT ( * ) / - + 49 * - - 77 + + 37 * - COUNT ( * ) + + 51 - + CAST ( + + ( + + NULLIF ( 39, + 55 ) ) AS INTEGER ) + 61 * - + 53 + CASE + NULLIF ( 54, + 12 / 71 ) WHEN - COUNT ( 70 ) THEN + 65 WHEN 44 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT + MAX( - 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-6295
SELECT + MAX ( - 94 ) AS col1
----
-94

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

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

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

skipif mysql # not compatible
query I rowsort label-6297
SELECT CAST ( - 93 AS INTEGER ) + - COUNT ( * )
----
-94

query I rowsort
SELECT ALL - 99 + - 8 AS col1
----
-107

query I rowsort
SELECT ALL 60 + + + 22 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6300
SELECT ALL - - 29 + + MAX( DISTINCT + 1 ) DIV - - 99 * - + NULLIF ( 17, - AVG ( + 42 ) ) * + COALESCE ( + - SUM( + CAST( NULL AS SIGNED ) ), 1 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL - - 29 + + MAX ( DISTINCT + 1 ) / - - 99 * - + NULLIF ( 17, - AVG ( + 42 ) ) * + COALESCE ( + - SUM ( + CAST ( NULL AS INTEGER ) ), 1 ) AS col0
----
29

query I rowsort
SELECT 63 + 6 + + 19 * + + 52 + + 53
----
1110

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT ALL - 8 + - + COUNT( * ) + - - 41 * + 89 AS col0
----
3640

skipif mysql # not compatible
query I rowsort label-6302
SELECT ALL - 8 + - + COUNT ( * ) + - - 41 * + 89 AS col0
----
3640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6303
SELECT - CASE + 48 WHEN - 38 * 3 THEN - - MIN( ALL 19 ) / + + 53 + - CAST( NULL AS SIGNED ) * + 0 WHEN - 74 THEN + COUNT( * ) ELSE NULL END * + 81 / + 30 + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-6303
SELECT - CASE + 48 WHEN - 38 * 3 THEN - - MIN ( ALL 19 ) / + + 53 + - CAST ( NULL AS INTEGER ) * + 0 WHEN - 74 THEN + COUNT ( * ) ELSE NULL END * + 81 / + 30 + 0
----
NULL

query II rowsort
SELECT + 40 + + 66 + 84, - 98 AS col1
----
190
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT + COUNT( * ) * 61 + + 47 + - 86
----
22

skipif mysql # not compatible
query I rowsort label-6305
SELECT + COUNT ( * ) * 61 + + 47 + - 86
----
22

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

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

query II rowsort
SELECT DISTINCT - - 42, - 10 col1
----
42
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-6308
SELECT - + 17 DIV - 19
----
0

skipif mysql # not compatible
query I rowsort label-6308
SELECT - + 17 / - 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT + 36 - + ( 24 ) - - + 31 * + COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-6309
SELECT + 36 - + ( 24 ) - - + 31 * + COUNT ( * ) AS col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-6310
SELECT - 42 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-6310
SELECT - 42 / - 51
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6311
SELECT + 54 * 85 col2, 1 * 98 * + CAST( NULL AS SIGNED ) + + 4 AS col0
----
4590
NULL

skipif mysql # not compatible
query II rowsort label-6311
SELECT + 54 * 85 col2, 1 * 98 * + CAST ( NULL AS INTEGER ) + + 4 AS col0
----
4590
NULL

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

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

query I rowsort
SELECT - ( + 91 ) * - 32
----
2912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6314
SELECT - 36 + + NULLIF ( + - 34, - COALESCE ( - COUNT( * ), - COUNT( * ) + - - 23, - CAST( 39 AS SIGNED ) * - 51 ) + + - 95 + - ( + 50 ) + 37 / COUNT( * ) )
----
-70

skipif mysql # not compatible
query I rowsort label-6314
SELECT - 36 + + NULLIF ( + - 34, - COALESCE ( - COUNT ( * ), - COUNT ( * ) + - - 23, - CAST ( 39 AS INTEGER ) * - 51 ) + + - 95 + - ( + 50 ) + 37 / COUNT ( * ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT ALL NULLIF ( + MIN( ALL - 6 ), + - ( + - COALESCE ( + 65, + - 37 ) ) ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL NULLIF ( + MIN ( ALL - 6 ), + - ( + - COALESCE ( + 65, + - 37 ) ) ) AS col0
----
-6

query I rowsort
SELECT DISTINCT + 62 * - 14
----
-868

query I rowsort
SELECT ALL COALESCE ( - + 5, + 0 - - 53 * + 43 )
----
-5

query I rowsort
SELECT - 59 - - - 65 + - + ( - 93 ) + - 10 * - 18 * - - 99
----
17789

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT - 35 - 41 + - COUNT( * ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-6319
SELECT - 35 - 41 + - COUNT ( * ) AS col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6320
SELECT DISTINCT NULLIF ( - CAST( - 76 AS SIGNED ), 93 * - - 86 * + COUNT( * ) + + - 37 )
----
76

skipif mysql # not compatible
query I rowsort label-6320
SELECT DISTINCT NULLIF ( - CAST ( - 76 AS INTEGER ), 93 * - - 86 * + COUNT ( * ) + + - 37 )
----
76

query I rowsort
SELECT - 16 * + 40 * - 18 AS col0
----
11520

query I rowsort
SELECT + 81 - NULLIF ( 74, 89 ) * + + ( - COALESCE ( + 85, - - 53 + + 82 - 87 ) ) + 18
----
6389

onlyif mysql # aggregate syntax: 
query II rowsort label-6323
SELECT DISTINCT + 77 * - - 66 + + - COUNT( ALL + 71 ) * - 66 + COUNT( * ) * - COUNT( * ) AS col2, + 69 + + + 39
----
5147
108

skipif mysql # not compatible
query II rowsort label-6323
SELECT DISTINCT + 77 * - - 66 + + - COUNT ( ALL + 71 ) * - 66 + COUNT ( * ) * - COUNT ( * ) AS col2, + 69 + + + 39
----
5147
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT MIN( DISTINCT - 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-6324
SELECT MIN ( DISTINCT - 49 ) AS col0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6325
SELECT ALL + 49 * COUNT( * ) * - 93 * 10 * + - ( - 94 ) + CAST( NULL AS SIGNED ) / - COUNT( * ) + + 63 + - 68 + - 0 * - CASE - 54 WHEN - CAST( NULL AS SIGNED ) * + CASE - 76 WHEN ( + 74 ) * 48 THEN NULL ELSE + 12 + - 97 END THEN NULL WHEN 51 * ( - 58 ) THEN NULL WHEN 5 THEN - SUM( ALL 67 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL + 49 * COUNT ( * ) * - 93 * 10 * + - ( - 94 ) + CAST ( NULL AS INTEGER ) / - COUNT ( * ) + + 63 + - 68 + - 0 * - CASE - 54 WHEN - CAST ( NULL AS INTEGER ) * + CASE - 76 WHEN ( + 74 ) * 48 THEN NULL ELSE + 12 + - 97 END THEN NULL WHEN 51 * ( - 58 ) THEN NULL WHEN 5 THEN - SUM ( ALL 67 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6326
SELECT - CAST( - + 20 AS SIGNED ) * + 41 + - 73 * + + 25 * + - 59 - COUNT( * ) - - 29 + + - 29 * - - 76 * - + 79 * + 80 col0
----
14037803

skipif mysql # not compatible
query I rowsort label-6326
SELECT - CAST ( - + 20 AS INTEGER ) * + 41 + - 73 * + + 25 * + - 59 - COUNT ( * ) - - 29 + + - 29 * - - 76 * - + 79 * + 80 col0
----
14037803

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT ALL + 34 * - 17 * - ( + + ( + COUNT( ALL 46 ) ) ) + + + 44 + SUM( - 73 ) + - 20
----
529

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL + 34 * - 17 * - ( + + ( + COUNT ( ALL 46 ) ) ) + + + 44 + SUM ( - 73 ) + - 20
----
529

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6329
SELECT DISTINCT 27 * - ( - 50 ) + - 68 - 21 + + + 50 + + + 24 DIV - 85 + + + 26 AS col0
----
1337

skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT 27 * - ( - 50 ) + - 68 - 21 + + + 50 + + + 24 / - 85 + + + 26 AS col0
----
1337

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT ALL 64 * + 12 + - - MAX( 25 ) + - 76 AS col1
----
717

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL 64 * + 12 + - - MAX ( 25 ) + - 76 AS col1
----
717

query I rowsort
SELECT ALL + - 32 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-6332
SELECT - - 62 + MAX( - 4 ) + 94 + - - COUNT( * ) * - 20 * + + 35, 97 * - - 81 AS col1
----
-548
7857

skipif mysql # not compatible
query II rowsort label-6332
SELECT - - 62 + MAX ( - 4 ) + 94 + - - COUNT ( * ) * - 20 * + + 35, 97 * - - 81 AS col1
----
-548
7857

query I rowsort
SELECT + - 57 * - 83 + - 39
----
4692

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6334
SELECT ALL + CAST( 46 AS SIGNED ), 27 AS col1
----
46
27

skipif mysql # not compatible
query II rowsort label-6334
SELECT ALL + CAST ( 46 AS INTEGER ), 27 AS col1
----
46
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT + COUNT( DISTINCT - 53 ) * 37
----
37

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

query I rowsort
SELECT ALL + - 6 * + - 2 AS col1
----
12

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6338
SELECT ALL + 61 * - - NULLIF ( + - 43, COUNT( + ( - 25 ) ) + - 35 ), - 13 col1
----
-2623
-13

skipif mysql # not compatible
query II rowsort label-6338
SELECT ALL + 61 * - - NULLIF ( + - 43, COUNT ( + ( - 25 ) ) + - 35 ), - 13 col1
----
-2623
-13

query I rowsort
SELECT + - 55 * + 78
----
-4290

query I rowsort
SELECT + 13 + 64
----
77

query I rowsort
SELECT ALL 25 * 20
----
500

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT + 30 * - COUNT( * ) * 22 * + 92 AS col1
----
-60720

skipif mysql # not compatible
query I rowsort label-6342
SELECT + 30 * - COUNT ( * ) * 22 * + 92 AS col1
----
-60720

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT + CASE + + 4 WHEN - 29 THEN NULL ELSE COUNT( * ) END * COUNT( * ) + + 1 + 14 * - ( - 23 ) col0
----
324

skipif mysql # not compatible
query I rowsort label-6343
SELECT + CASE + + 4 WHEN - 29 THEN NULL ELSE COUNT ( * ) END * COUNT ( * ) + + 1 + 14 * - ( - 23 ) col0
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT - 95 - + SUM( + 75 ) AS col0
----
-170

skipif mysql # not compatible
query I rowsort label-6344
SELECT - 95 - + SUM ( + 75 ) AS col0
----
-170

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT DISTINCT MIN( 7 )
----
7

skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT MIN ( 7 )
----
7

query II rowsort
SELECT ALL 72, - 83 AS col2
----
72
-83

query I rowsort
SELECT - 35 + - - 36 + - 58 + + 61 + - + CASE - 36 WHEN - 97 + - 26 + + 11 THEN - + ( + 10 ) * - 35 + + + ( + 56 ) WHEN + 88 THEN NULL ELSE 4 END
----
0

query I rowsort
SELECT - 53 / - CASE 38 WHEN + - 30 THEN NULL WHEN + 46 THEN + + 89 END
----
NULL

query I rowsort
SELECT ALL 59 + + 37
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT ALL COUNT( * ) + - 88
----
-87

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL COUNT ( * ) + - 88
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6352
SELECT + CAST( NULL AS SIGNED ) + + 45 * - - 22 * + COALESCE ( - 50, 80 * + 53 ) * 93 + - + COUNT( * ) + - - 31 AS col0, - 6
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-6352
SELECT + CAST ( NULL AS INTEGER ) + + 45 * - - 22 * + COALESCE ( - 50, 80 * + 53 ) * 93 + - + COUNT ( * ) + - - 31 AS col0, - 6
----
NULL
-6

query I rowsort
SELECT + 17 + 16
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6354
SELECT - 23 DIV + NULLIF ( - ( - + SUM( + - NULLIF ( - - 53, + - 70 - 97 ) ) ), 11 ) DIV 36 * - + ( 95 )
----
0

skipif mysql # not compatible
query I rowsort label-6354
SELECT - 23 / + NULLIF ( - ( - + SUM ( + - NULLIF ( - - 53, + - 70 - 97 ) ) ), 11 ) / 36 * - + ( 95 )
----
0

query II rowsort
SELECT - 94, 2 AS col2
----
-94
2

query I rowsort
SELECT DISTINCT NULLIF ( + 22, - + 75 + - 61 ) + - 86 col2
----
-64

query I rowsort
SELECT - 87 + 77
----
-10

query I rowsort
SELECT DISTINCT - 66 + - 54
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6359
SELECT - 54 * CAST( NULL AS SIGNED ) + MIN( ALL - 20 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6359
SELECT - 54 * CAST ( NULL AS INTEGER ) + MIN ( ALL - 20 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT ALL + + CASE 31 WHEN + + NULLIF ( 2, - 17 ) THEN NULL WHEN 81 THEN NULL ELSE - 92 + - 66 * - 56 * - COUNT( * ) END
----
-3788

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL + + CASE 31 WHEN + + NULLIF ( 2, - 17 ) THEN NULL WHEN 81 THEN NULL ELSE - 92 + - 66 * - 56 * - COUNT ( * ) END
----
-3788

query I rowsort
SELECT - 37 * - 29 + - + 54
----
1019

query I rowsort
SELECT - ( 17 ) - - 56
----
39

query I rowsort
SELECT 11 * 15 + 20 AS col0
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6364
SELECT ALL - - MAX( ALL - 17 ) DIV + CAST( + + 18 AS SIGNED ) - - 65 + 92 * + 52 AS col2
----
4849

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL - - MAX ( ALL - 17 ) / + CAST ( + + 18 AS INTEGER ) - - 65 + 92 * + 52 AS col2
----
4849

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT ALL + CASE + 44 WHEN - - ( + COUNT( * ) ) - 29 THEN - 18 / - 25 / + - 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL + CASE + 44 WHEN - - ( + COUNT ( * ) ) - 29 THEN - 18 / - 25 / + - 19 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6366
SELECT + - 36 DIV + 91 * + + 94 DIV + 89 + 60, 39 AS col0
----
60
39

skipif mysql # not compatible
query II rowsort label-6366
SELECT + - 36 / + 91 * + + 94 / + 89 + 60, 39 AS col0
----
60
39

query I rowsort
SELECT + - 72 col2
----
-72

query I rowsort
SELECT + + 18 col2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT ALL - 12 DIV - + 27
----
0

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL - 12 / - + 27
----
0

query I rowsort
SELECT + 11 * - 36 AS col0
----
-396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6371
SELECT + NULLIF ( 83, - CAST( + 16 AS SIGNED ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-6371
SELECT + NULLIF ( 83, - CAST ( + 16 AS INTEGER ) ) AS col2
----
83

query I rowsort
SELECT 71 * 75
----
5325

query I rowsort
SELECT - 74 * 30 + + 59
----
-2161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6374
SELECT - 78 DIV + SUM( DISTINCT 14 ) + 20 * + 76 + 17 AS col1
----
1532

skipif mysql # not compatible
query I rowsort label-6374
SELECT - 78 / + SUM ( DISTINCT 14 ) + 20 * + 76 + 17 AS col1
----
1532

onlyif mysql # aggregate syntax: 
query II rowsort label-6375
SELECT 44, - MIN( DISTINCT - 47 ) * - MAX( DISTINCT - 59 ) AS col0
----
44
2773

skipif mysql # not compatible
query II rowsort label-6375
SELECT 44, - MIN ( DISTINCT - 47 ) * - MAX ( DISTINCT - 59 ) AS col0
----
44
2773

query I rowsort
SELECT 89 * - 70 + + 33 AS col2
----
-6197

query I rowsort
SELECT 79 * - ( - 88 )
----
6952

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

query II rowsort
SELECT + 14 col1, - 36 - - 62 * - 2 + - + 17
----
14
-177

onlyif mysql # aggregate syntax: 
query II rowsort label-6380
SELECT ALL 16 AS col2, 94 * - - COUNT( * ) + + COUNT( * ) + + + ( + COUNT( * ) )
----
16
96

skipif mysql # not compatible
query II rowsort label-6380
SELECT ALL 16 AS col2, 94 * - - COUNT ( * ) + + COUNT ( * ) + + + ( + COUNT ( * ) )
----
16
96

query I rowsort
SELECT DISTINCT 83 + 21 AS col1
----
104

query II rowsort
SELECT ALL 71 AS col2, - 89 + + 57 AS col1
----
71
-32

query I rowsort
SELECT 17 * 63
----
1071

query II rowsort
SELECT ALL 18 + + 91, - 63 col0
----
109
-63

query I rowsort
SELECT 88 - + 31 AS col2
----
57

query I rowsort
SELECT 94 * - ( - 31 ) col1
----
2914

query I rowsort
SELECT + 94 * 17 - + 73 AS col2
----
1525

onlyif mysql # aggregate syntax: 
query II rowsort label-6388
SELECT ALL 82 AS col0, - 24 * NULLIF ( - 94, + 99 + + 92 - COUNT( * ) ) AS col0
----
82
2256

skipif mysql # not compatible
query II rowsort label-6388
SELECT ALL 82 AS col0, - 24 * NULLIF ( - 94, + 99 + + 92 - COUNT ( * ) ) AS col0
----
82
2256

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT DISTINCT 70 + + + COALESCE ( + COALESCE ( + - 97, + 81 * - COUNT( * ) ), + 42 ) + + + 67 * - 78
----
-5253

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT 70 + + + COALESCE ( + COALESCE ( + - 97, + 81 * - COUNT ( * ) ), + 42 ) + + + 67 * - 78
----
-5253

query I rowsort
SELECT 7 + 96 * 60
----
5767

query II rowsort
SELECT 42 * - - 97 * - NULLIF ( + ( 29 ), + 44 ), - 27 AS col0
----
-118146
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT ALL COUNT( * ) + + 55 + - 36 * + 73
----
-2572

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL COUNT ( * ) + + 55 + - 36 * + 73
----
-2572

query II rowsort
SELECT ALL 93 AS col1, 6 * + 75
----
93
450

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT COUNT( * ) - - 63
----
64

skipif mysql # not compatible
query I rowsort label-6394
SELECT COUNT ( * ) - - 63
----
64

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

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL CAST ( + + 25 AS INTEGER ) AS col2
----
25

query I rowsort
SELECT - NULLIF ( 80, + + 15 ) col2
----
-80

query I rowsort
SELECT - 10 * CASE AVG ( + + 5 ) WHEN - 10 THEN + 63 WHEN 28 THEN NULL END * 94 + - 40
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6398
SELECT COUNT ( * ) + 73 AS col0
----
74

query II rowsort
SELECT ALL + 51 AS col2, 43
----
51
43

query I rowsort
SELECT DISTINCT + COALESCE ( + 14, - 21 ) * - 28
----
-392

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6402
SELECT ALL + - CAST( NULL AS SIGNED ) * ( + NULLIF ( - 69, + 16 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL + - CAST ( NULL AS INTEGER ) * ( + NULLIF ( - 69, + 16 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) + + 33 * + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) + + 33 * + COUNT ( * )
----
31

query II rowsort
SELECT 86 * - 38 AS col0, - 28 * + - 0 AS col2
----
-3268
0

query II rowsort
SELECT ALL - + 34, + 68 + 8 + + + 41 + - 21 * + 55 AS col2
----
-34
-1038

query II rowsort
SELECT ALL - 7 AS col2, ( - 63 ) + - + 38 AS col2
----
-7
-101

query I rowsort
SELECT 97 + + 12 AS col1
----
109

query II rowsort
SELECT DISTINCT - 84 AS col0, 60 * + + 47 AS col2
----
-84
2820

onlyif mysql # aggregate syntax: 
query II rowsort label-6409
SELECT + COUNT( * ) * - 68 + + 57 + 41 AS col0, + 64
----
30
64

skipif mysql # not compatible
query II rowsort label-6409
SELECT + COUNT ( * ) * - 68 + + 57 + 41 AS col0, + 64
----
30
64

query I rowsort
SELECT COALESCE ( + 87, + + 96, - 40 * + - 16 + + - 70 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT ALL - SUM( ALL + 90 ) + - - MIN( + + 47 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL - SUM ( ALL + 90 ) + - - MIN ( + + 47 ) AS col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6412
SELECT CAST( NULL AS SIGNED ) / + 84 - AVG ( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT CAST ( NULL AS INTEGER ) / + 84 - AVG ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6413
SELECT 98 + - CAST( + + 79 AS SIGNED ) * - 33 AS col2
----
2705

skipif mysql # not compatible
query I rowsort label-6413
SELECT 98 + - CAST ( + + 79 AS INTEGER ) * - 33 AS col2
----
2705

onlyif mysql # aggregate syntax: 
query II rowsort label-6414
SELECT 95 * + COUNT( * ) * + 7 + + 96 * - 66 col1, - NULLIF ( - ( - 11 ), 54 * 87 * - 50 ) AS col2
----
-5671
-11

skipif mysql # not compatible
query II rowsort label-6414
SELECT 95 * + COUNT ( * ) * + 7 + + 96 * - 66 col1, - NULLIF ( - ( - 11 ), 54 * 87 * - 50 ) AS col2
----
-5671
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-6415
SELECT ALL - 58 + + 39 + - 50 * 66 DIV + 52 - + 11 + 62 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL - 58 + + 39 + - 50 * 66 / + 52 - + 11 + 62 AS col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6416
SELECT - 90 * ( 26 ) * - - CAST( - 48 AS SIGNED ) + 6 + - COUNT( * )
----
112325

skipif mysql # not compatible
query I rowsort label-6416
SELECT - 90 * ( 26 ) * - - CAST ( - 48 AS INTEGER ) + 6 + - COUNT ( * )
----
112325

query I rowsort
SELECT 88 + 94 + - ( 4 )
----
178

query II rowsort
SELECT 97 + 47 + + 60, 64 AS col2
----
204
64

query I rowsort
SELECT ( 0 ) + 68 col2
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT ALL COUNT( ALL - 74 ) + 88 + - - 58 + - 89 * + - SUM( 72 ) + - CASE ( - 13 ) WHEN 65 THEN NULL WHEN + + 50 THEN + + 70 ELSE NULL END + - 30 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL COUNT ( ALL - 74 ) + 88 + - - 58 + - 89 * + - SUM ( 72 ) + - CASE ( - 13 ) WHEN 65 THEN NULL WHEN + + 50 THEN + + 70 ELSE NULL END + - 30 + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 59 * - 68 + + 50
----
-3962

query I rowsort
SELECT NULLIF ( + 2, + - 82 + 40 ) + + 95 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT DISTINCT 16 * + 58 * - COUNT( * ) AS col1
----
-928

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT 16 * + 58 * - COUNT ( * ) AS col1
----
-928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6425
SELECT COUNT( * ) + - - 58 AS col0, + ( + - 11 ) + CAST( + 36 AS SIGNED )
----
59
25

skipif mysql # not compatible
query II rowsort label-6425
SELECT COUNT ( * ) + - - 58 AS col0, + ( + - 11 ) + CAST ( + 36 AS INTEGER )
----
59
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6426
SELECT ALL COUNT( * ) - - 59 + + ( 3 ) + + 66 DIV + ( + 60 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL COUNT ( * ) - - 59 + + ( 3 ) + + 66 / + ( + 60 ) AS col1
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT ALL - SUM( ALL + - NULLIF ( + 78, + + 84 ) ) * + 63
----
4914

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL - SUM ( ALL + - NULLIF ( + 78, + + 84 ) ) * + 63
----
4914

query I rowsort
SELECT + 44 + - 3
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6430
SELECT + 57 + - + CAST( NULL AS SIGNED ) AS col1, 83 * 33 * - + 59 col2
----
NULL
-161601

skipif mysql # not compatible
query II rowsort label-6430
SELECT + 57 + - + CAST ( NULL AS INTEGER ) AS col1, 83 * 33 * - + 59 col2
----
NULL
-161601

query I rowsort
SELECT + 71 + - + 38 * 50 * - 59
----
112171

onlyif mysql # aggregate syntax: 
query II rowsort label-6432
SELECT ALL COUNT( + 18 ) AS col1, 6 + + 81 AS col2
----
1
87

skipif mysql # not compatible
query II rowsort label-6432
SELECT ALL COUNT ( + 18 ) AS col1, 6 + + 81 AS col2
----
1
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6433
SELECT + 15 DIV - - 81 * - 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6433
SELECT + 15 / - - 81 * - 72 AS col0
----
0

query I rowsort
SELECT + 84 + - 23 + 76 + + 83
----
220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6435
SELECT + ( - COUNT( * ) ) * + + 55 / + - 42 * + CAST( NULL AS SIGNED ) / + - 35 + + + 30 * - 84 + - 86 + ( - 20 ) * + - ( - 43 ) / - - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT + ( - COUNT ( * ) ) * + + 55 / + - 42 * + CAST ( NULL AS INTEGER ) / + - 35 + + + 30 * - 84 + - 86 + ( - 20 ) * + - ( - 43 ) / - - 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6436
SELECT DISTINCT + SUM( DISTINCT + CASE 83 WHEN - + 27 THEN + 77 * + ( - CAST( + COALESCE ( - 51, - + 3, - 6 ) AS SIGNED ) ) + + 92 END ) / 37, 55 + 14 AS col1
----
NULL
69

skipif mysql # not compatible
query II rowsort label-6436
SELECT DISTINCT + SUM ( DISTINCT + CASE 83 WHEN - + 27 THEN + 77 * + ( - CAST ( + COALESCE ( - 51, - + 3, - 6 ) AS INTEGER ) ) + + 92 END ) / 37, 55 + 14 AS col1
----
NULL
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6438
SELECT ALL + - 98 * - COALESCE ( - 51, CASE + + 50 WHEN 37 THEN NULL ELSE COUNT( * ) END, + 36 - + CASE - COUNT( * ) WHEN 38 THEN + 51 * + CAST( + - 80 AS SIGNED ) WHEN + 49 * 82 THEN + CASE + 46 WHEN + CAST( + 93 AS SIGNED ) * 68 + 13 THEN 44 END END DIV - 18 ) + - 38 AS col1
----
-5036

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL + - 98 * - COALESCE ( - 51, CASE + + 50 WHEN 37 THEN NULL ELSE COUNT ( * ) END, + 36 - + CASE - COUNT ( * ) WHEN 38 THEN + 51 * + CAST ( + - 80 AS INTEGER ) WHEN + 49 * 82 THEN + CASE + 46 WHEN + CAST ( + 93 AS INTEGER ) * 68 + 13 THEN 44 END END / - 18 ) + - 38 AS col1
----
-5036

query I rowsort
SELECT DISTINCT - 21 * + - 94 AS col1
----
1974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6440
SELECT ALL 24 * ( CAST( NULL AS SIGNED ) ) + - 90
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6441
SELECT NULLIF ( - MIN( DISTINCT 73 ), - 17 + - 78 + - 83 / + CAST( NULL AS SIGNED ) ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-6441
SELECT NULLIF ( - MIN ( DISTINCT 73 ), - 17 + - 78 + - 83 / + CAST ( NULL AS INTEGER ) ) AS col1
----
-73

query II rowsort
SELECT ALL + 59, ( 43 ) * + 11 - + 30 AS col2
----
59
443

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT + ( - - NULLIF ( + 18, 15 * - 98 / - + COUNT( * ) ) ) * + - 13 col0
----
-234

skipif mysql # not compatible
query I rowsort label-6444
SELECT + ( - - NULLIF ( + 18, 15 * - 98 / - + COUNT ( * ) ) ) * + - 13 col0
----
-234

query I rowsort
SELECT - 61 * - - 28 + - 26 AS col1
----
-1734

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT ALL + 19 * 3 + - - ( + 53 ) + - - COUNT( * ) + + 9 * - 16 + COUNT( * ) * + 22 * 8 * 47 AS col0
----
8239

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL + 19 * 3 + - - ( + 53 ) + - - COUNT ( * ) + + 9 * - 16 + COUNT ( * ) * + 22 * 8 * 47 AS col0
----
8239

query I rowsort
SELECT - 70 * - 71 col2
----
4970

query II rowsort
SELECT - 36, - 10 AS col0
----
-36
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6449
SELECT DISTINCT 38, COALESCE ( - 3, - CAST( NULL AS SIGNED ) DIV AVG ( - + 46 ) + + 81 + + CASE - 93 WHEN - COUNT( * ) + 29 THEN - 54 * + COUNT( * ) - - 60 + - 98 + NULLIF ( + 88, 53 * - 91 ) ELSE 38 END ) * 79 + 89 AS col0
----
38
-148

skipif mysql # not compatible
query II rowsort label-6449
SELECT DISTINCT 38, COALESCE ( - 3, - CAST ( NULL AS INTEGER ) / AVG ( - + 46 ) + + 81 + + CASE - 93 WHEN - COUNT ( * ) + 29 THEN - 54 * + COUNT ( * ) - - 60 + - 98 + NULLIF ( + 88, 53 * - 91 ) ELSE 38 END ) * 79 + 89 AS col0
----
38
-148

query I rowsort
SELECT - 34 * - 14 AS col1
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT - COALESCE ( - COALESCE ( + 49, - 10 ), NULLIF ( - 96, + - AVG ( ALL + 42 ) * COUNT( * ) + - 70 + - - 68 * - ( - 28 ) + + 26 ) * - 66 + 41 ) * - 86 + 70 AS col2
----
-4144

skipif mysql # not compatible
query I rowsort label-6451
SELECT - COALESCE ( - COALESCE ( + 49, - 10 ), NULLIF ( - 96, + - AVG ( ALL + 42 ) * COUNT ( * ) + - 70 + - - 68 * - ( - 28 ) + + 26 ) * - 66 + 41 ) * - 86 + 70 AS col2
----
-4144

query I rowsort
SELECT - 10 - + 15
----
-25

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

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

query I rowsort
SELECT ALL - 92 * + + 16 AS col0
----
-1472

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT + - COUNT( * ) / - 62 * - + 8 / + CASE CASE 39 WHEN - 88 + - - 71 / + 65 THEN - 3 WHEN - 63 + + 86 THEN 75 * + ( + 14 ) + - 74 ELSE - COUNT( * ) / - 22 END WHEN 90 THEN 15 * - 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6456
SELECT + - COUNT ( * ) / - 62 * - + 8 / + CASE CASE 39 WHEN - 88 + - - 71 / + 65 THEN - 3 WHEN - 63 + + 86 THEN 75 * + ( + 14 ) + - 74 ELSE - COUNT ( * ) / - 22 END WHEN 90 THEN 15 * - 19 END
----
NULL

query I rowsort
SELECT - - 29 * - 27
----
-783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6458
SELECT + - NULLIF ( + + 61, - CAST( NULL AS SIGNED ) + + + 79 / 33 ) + - 78 + + 85 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-6458
SELECT + - NULLIF ( + + 61, - CAST ( NULL AS INTEGER ) + + + 79 / 33 ) + - 78 + + 85 AS col2
----
-54

query I rowsort
SELECT ALL + 60 - + 79 * - + COALESCE ( - - 8, 0 )
----
692

query I rowsort
SELECT - + 54 * - + 83 AS col2
----
4482

onlyif mysql # DIV for integer division: 
query I rowsort label-6461
SELECT ALL + - COALESCE ( + 87, 21 DIV + 33 + + + 93 ) * - ( - 80 ) AS col1
----
-6960

skipif mysql # not compatible
query I rowsort label-6461
SELECT ALL + - COALESCE ( + 87, 21 / + 33 + + + 93 ) * - ( - 80 ) AS col1
----
-6960

onlyif mysql # aggregate syntax: 
query II rowsort label-6462
SELECT ALL + 11 AS col0, - COUNT( * ) * 7
----
11
-7

skipif mysql # not compatible
query II rowsort label-6462
SELECT ALL + 11 AS col0, - COUNT ( * ) * 7
----
11
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT + 55 * + + 66 * + + MAX( 33 )
----
119790

skipif mysql # not compatible
query I rowsort label-6463
SELECT + 55 * + + 66 * + + MAX ( 33 )
----
119790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6464
SELECT DISTINCT - CAST( + NULLIF ( - 77, - - 17 ) AS SIGNED ) * + + COUNT( * ) + - - MAX( DISTINCT + + 39 ) col0
----
116

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT - CAST ( + NULLIF ( - 77, - - 17 ) AS INTEGER ) * + + COUNT ( * ) + - - MAX ( DISTINCT + + 39 ) col0
----
116

query II rowsort
SELECT 34 AS col0, 46 + + + 65
----
34
111

query I rowsort
SELECT ALL - 33 * + 46 AS col2
----
-1518

query I rowsort
SELECT - - 27 * - + ( - 36 ) AS col2
----
972

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT - CASE - SUM( - + 26 ) WHEN + 46 THEN NULL WHEN - 87 * NULLIF ( - MIN( 93 ), - 29 ) + + 90 + + 16 + + COUNT( * ) / ( + 44 ) THEN + + 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT - CASE - SUM ( - + 26 ) WHEN + 46 THEN NULL WHEN - 87 * NULLIF ( - MIN ( 93 ), - 29 ) + + 90 + + 16 + + COUNT ( * ) / ( + 44 ) THEN + + 70 END
----
NULL

query I rowsort
SELECT - - COALESCE ( + + 90, - 2 ) AS col0
----
90

query I rowsort
SELECT ALL 74 + - + 13 AS col2
----
61

query I rowsort
SELECT + 44 - 43 AS col0
----
1

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

query I rowsort
SELECT ALL + - 79 + - - 86 + 41 + - 85 * - 30
----
2598

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6474
SELECT ALL + CAST( + + 64 AS SIGNED ) DIV ( 87 ) + - 48 * - 0
----
0

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL + CAST ( + + 64 AS INTEGER ) / ( 87 ) + - 48 * - 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6475
SELECT + 36 DIV 57 DIV 5 * + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6475
SELECT + 36 / 57 / 5 * + 51 AS col0
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6478
SELECT CAST( + 51 AS SIGNED ), + 0 AS col1
----
51
0

skipif mysql # not compatible
query II rowsort label-6478
SELECT CAST ( + 51 AS INTEGER ), + 0 AS col1
----
51
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6479
SELECT - 6 DIV + - 18 col2
----
0

skipif mysql # not compatible
query I rowsort label-6479
SELECT - 6 / + - 18 col2
----
0

query II rowsort
SELECT + 18 * 52, 74 AS col1
----
936
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6481
SELECT - CASE COUNT( * ) WHEN - 67 THEN NULL WHEN + 39 * 62 THEN NULL WHEN + ( - 10 ) THEN 91 * + - 83 END / - + 4 + 0 + COALESCE ( + 35, + 57 * 82 * ( - 40 ) * + COALESCE ( - CAST( NULL AS SIGNED ), CAST( NULL AS DECIMAL ) + 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6481
SELECT - CASE COUNT ( * ) WHEN - 67 THEN NULL WHEN + 39 * 62 THEN NULL WHEN + ( - 10 ) THEN 91 * + - 83 END / - + 4 + 0 + COALESCE ( + 35, + 57 * 82 * ( - 40 ) * + COALESCE ( - CAST ( NULL AS INTEGER ), CAST ( NULL AS REAL ) + 25 ) )
----
NULL

query I rowsort
SELECT - 83 * + 11
----
-913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6483
SELECT ALL + 75 DIV 46 * - NULLIF ( 62, + - 26 * - - 6 ) - - CASE + COALESCE ( - 52, - - 1 ) WHEN - 98 THEN + 48 DIV + - 15 END + - + MIN( DISTINCT + + 93 ), COALESCE ( 26, - - 37 + + + CAST( - NULLIF ( + 78, + 12 + 53 ) AS SIGNED ) + CAST( NULL AS SIGNED ) DIV 17 * COUNT( * ), 22 ) - 23 AS col1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6483
SELECT ALL + 75 / 46 * - NULLIF ( 62, + - 26 * - - 6 ) - - CASE + COALESCE ( - 52, - - 1 ) WHEN - 98 THEN + 48 / + - 15 END + - + MIN ( DISTINCT + + 93 ), COALESCE ( 26, - - 37 + + + CAST ( - NULLIF ( + 78, + 12 + 53 ) AS INTEGER ) + CAST ( NULL AS INTEGER ) / 17 * COUNT ( * ), 22 ) - 23 AS col1
----
NULL
3

query I rowsort
SELECT + 53 * + 57 * + + COALESCE ( + + 2, - 97 )
----
6042

query I rowsort
SELECT DISTINCT - 31 * - 72 * - - 19 - 8
----
42400

query I rowsort
SELECT + 47 + - + 38 AS col1
----
9

query I rowsort
SELECT + 44 * - + 86 + - - 66
----
-3718

query I rowsort
SELECT + 11 + - ( - + 74 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT + 87 + + + 48 * - COUNT( ALL 66 ) * - 15 + 37 AS col1
----
844

skipif mysql # not compatible
query I rowsort label-6489
SELECT + 87 + + + 48 * - COUNT ( ALL 66 ) * - 15 + 37 AS col1
----
844

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6490
SELECT CASE + CASE 49 WHEN - AVG ( DISTINCT 71 ) THEN - - 16 + - - 11 + - + ( + - 74 ) * 57 * 8 + NULLIF ( 73, - 76 ) / COUNT( * ) * + - 89 ELSE + COUNT( + 29 ) * 78 * CASE CAST( 42 AS SIGNED ) * NULLIF ( 32 - + COALESCE ( + 0 + - 0, 0, + 11 ) * 39, - 61 ) WHEN ( 83 ) + - 3 THEN - 52 * + 22 END END WHEN 96 + 36 * 28 THEN - 76 + - NULLIF ( + 21, + 25 / COUNT( * ) ) ELSE 29 END
----
29

skipif mysql # not compatible
query I rowsort label-6490
SELECT CASE + CASE 49 WHEN - AVG ( DISTINCT 71 ) THEN - - 16 + - - 11 + - + ( + - 74 ) * 57 * 8 + NULLIF ( 73, - 76 ) / COUNT ( * ) * + - 89 ELSE + COUNT ( + 29 ) * 78 * CASE CAST ( 42 AS INTEGER ) * NULLIF ( 32 - + COALESCE ( + 0 + - 0, 0, + 11 ) * 39, - 61 ) WHEN ( 83 ) + - 3 THEN - 52 * + 22 END END WHEN 96 + 36 * 28 THEN - 76 + - NULLIF ( + 21, + 25 / COUNT ( * ) ) ELSE 29 END
----
29

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

skipif mysql # not compatible
query I rowsort label-6491
SELECT NULLIF ( + NULLIF ( + COUNT ( * ), 24 ), - MIN ( - - 50 ) )
----
1

query I rowsort
SELECT - 3 * - 85 AS col2
----
255

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

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

query I rowsort
SELECT DISTINCT - ( - + 56 ) * - + 96
----
-5376

onlyif mysql # DIV for integer division: 
query I rowsort label-6495
SELECT ALL - + 32 DIV + + ( - - 96 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL - + 32 / + + ( - - 96 ) AS col1
----
0

query I rowsort
SELECT + NULLIF ( 10, - 7 ) * 66 AS col2
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT DISTINCT - 95 * + SUM( + 53 )
----
-5035

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT - 95 * + SUM ( + 53 )
----
-5035

query I rowsort
SELECT ALL + 37 + + 64 col2
----
101

query I rowsort
SELECT - 6 + + 74
----
68

query I rowsort
SELECT DISTINCT - 46 + 95 - + 61 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT - COALESCE ( - NULLIF ( 62, + + 45 ), + COUNT( * ) + + + 27, - 67 ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-6501
SELECT - COALESCE ( - NULLIF ( 62, + + 45 ), + COUNT ( * ) + + + 27, - 67 ) * - 0
----
0

query I rowsort
SELECT ALL - 2 * + 97 + + 5
----
-189

query I rowsort
SELECT DISTINCT - 85 + 79 AS col0
----
-6

query I rowsort
SELECT + 55 + - + 88 + + 97
----
64

query I rowsort
SELECT ALL + + 27 + + ( + - 22 ) - + 22 AS col1
----
-17

query I rowsort
SELECT + 69 + - + 51 + - 55 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-6507
SELECT - CASE COUNT( * ) WHEN - NULLIF ( + + 94, COUNT( * ) + - COUNT( * ) * - 33 - - - 74 ) THEN - + 57 WHEN 85 * - - 83 - 47 + - ( + 11 ) / - + COUNT( * ) THEN COUNT( * ) / - + 9 END, - 52 * + - 22 AS col0
----
NULL
1144

skipif mysql # not compatible
query II rowsort label-6507
SELECT - CASE COUNT ( * ) WHEN - NULLIF ( + + 94, COUNT ( * ) + - COUNT ( * ) * - 33 - - - 74 ) THEN - + 57 WHEN 85 * - - 83 - 47 + - ( + 11 ) / - + COUNT ( * ) THEN COUNT ( * ) / - + 9 END, - 52 * + - 22 AS col0
----
NULL
1144

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

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

query I rowsort
SELECT 88 * 32
----
2816

query I rowsort
SELECT 27 * + 81 * - - 87 + - 61 * 51 AS col2
----
187158

onlyif mysql # aggregate syntax: 
query II rowsort label-6511
SELECT + 52, - COUNT( * ) + ( + + COUNT( * ) ) AS col1
----
52
0

skipif mysql # not compatible
query II rowsort label-6511
SELECT + 52, - COUNT ( * ) + ( + + COUNT ( * ) ) AS col1
----
52
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT DISTINCT 54 + - 57 * + COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT 54 + - 57 * + COUNT ( * ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT ALL COUNT( * ) - - 44 + + + 80 col1
----
125

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL COUNT ( * ) - - 44 + + + 80 col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT 13 * - - COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6514
SELECT 13 * - - COUNT ( * ) AS col0
----
13

query I rowsort
SELECT ALL - ( + CASE 64 WHEN - 44 THEN 54 WHEN - + 4 THEN + 64 * + 0 ELSE NULL END )
----
NULL

query II rowsort
SELECT 75 AS col1, + 4 + - 27 * + 88 AS col1
----
75
-2372

query I rowsort
SELECT 51 * + + 40 AS col2
----
2040

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

skipif mysql # not compatible
query I rowsort label-6518
SELECT DISTINCT COUNT ( * ) / - 12
----
0

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

skipif mysql # not compatible
query I rowsort label-6519
SELECT COUNT ( * ) * + + 26 / + 62 col2
----
0

query I rowsort
SELECT ALL 92 * + - 76
----
-6992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6521
SELECT DISTINCT NULLIF ( 89, + + CASE - COUNT( * ) WHEN ( + 88 ) THEN + COUNT( * ) + + 36 * 65 * - ( - 2 ) END * 37 - + 80 + 70 * + 0 DIV + - 85 ) DIV - + 12 col2
----
-7

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT NULLIF ( 89, + + CASE - COUNT ( * ) WHEN ( + 88 ) THEN + COUNT ( * ) + + 36 * 65 * - ( - 2 ) END * 37 - + 80 + 70 * + 0 / + - 85 ) / - + 12 col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6522
SELECT + CAST( NULL AS SIGNED ) + + 36 * - 5 + + AVG ( ALL + 78 ) - - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6522
SELECT + CAST ( NULL AS INTEGER ) + + 36 * - 5 + + AVG ( ALL + 78 ) - - 48 AS col0
----
NULL

query I rowsort
SELECT 7 * + 29 AS col1
----
203

query I rowsort
SELECT DISTINCT 89 * - - 74
----
6586

query II rowsort
SELECT 89 AS col2, ( - - 14 ) AS col2
----
89
14

onlyif mysql # aggregate syntax: 
query II rowsort label-6526
SELECT ALL 7 + + - 74 + + COUNT( * ) * + ( - 51 ) AS col2, 36 + + 11 * + + 71 + - - MAX( ALL - 9 ) + - COUNT( * ) + + 23 * 98 - - MIN( DISTINCT + 11 ) + - ( 20 ) * 25 * 44 AS col0
----
-118
-18928

skipif mysql # not compatible
query II rowsort label-6526
SELECT ALL 7 + + - 74 + + COUNT ( * ) * + ( - 51 ) AS col2, 36 + + 11 * + + 71 + - - MAX ( ALL - 9 ) + - COUNT ( * ) + + 23 * 98 - - MIN ( DISTINCT + 11 ) + - ( 20 ) * 25 * 44 AS col0
----
-118
-18928

query I rowsort
SELECT - 77 * + - 77
----
5929

query I rowsort
SELECT 86 + 82 AS col2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT - COUNT( ALL + 12 ) + + NULLIF ( 40, - 68 + 90 ) * + + 34 AS col1
----
1359

skipif mysql # not compatible
query I rowsort label-6529
SELECT - COUNT ( ALL + 12 ) + + NULLIF ( 40, - 68 + 90 ) * + + 34 AS col1
----
1359

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6530
SELECT DISTINCT + - 67 + + 55 * - 51 AS col1, + ( - 30 ) * - 42 * - CAST( NULL AS SIGNED ) * 34 AS col1
----
-2872
NULL

skipif mysql # not compatible
query II rowsort label-6530
SELECT DISTINCT + - 67 + + 55 * - 51 AS col1, + ( - 30 ) * - 42 * - CAST ( NULL AS INTEGER ) * 34 AS col1
----
-2872
NULL

query I rowsort
SELECT 7 + - 67 AS col0
----
-60

query I rowsort
SELECT ALL 78 + 61
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6533
SELECT ALL + + 91 + CAST( - - 77 AS SIGNED ) * + 20
----
1631

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL + + 91 + CAST ( - - 77 AS INTEGER ) * + 20
----
1631

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6536
SELECT MIN( - + 11 ) DIV NULLIF ( - ( - 93 ), + 20 )
----
0

skipif mysql # not compatible
query I rowsort label-6536
SELECT MIN ( - + 11 ) / NULLIF ( - ( - 93 ), + 20 )
----
0

query I rowsort
SELECT + 44 - + COALESCE ( 86, + 98 ) AS col0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-6538
SELECT DISTINCT - + 62 DIV - 52 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT - + 62 / - 52 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT 35 * - 18 * - + MIN( ALL 98 )
----
61740

skipif mysql # not compatible
query I rowsort label-6539
SELECT 35 * - 18 * - + MIN ( ALL 98 )
----
61740

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6540
SELECT 0, 77 + + 71 * - CAST( NULL AS SIGNED ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6540
SELECT 0, 77 + + 71 * - CAST ( NULL AS INTEGER ) AS col0
----
0
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6542
SELECT DISTINCT + - 49 - - - 71 DIV + + 94
----
-49

skipif mysql # not compatible
query I rowsort label-6542
SELECT DISTINCT + - 49 - - - 71 / + + 94
----
-49

query I rowsort
SELECT + ( + + 23 ) + 17 + + 4 * - 4 col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6544
SELECT ALL - 95 - + + 44 - + + ( ( - COALESCE ( + COALESCE ( + 3, 97 - - + ( - 88 ) - - 96, COALESCE ( + + ( 16 ), + - 79 * 3, 59 ) ), + CASE 41 WHEN - 28 + 23 * - 28 THEN NULL ELSE COUNT( * ) DIV 15 END, - 47 ) ) ) + + COUNT( * ) DIV 81 AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL - 95 - + + 44 - + + ( ( - COALESCE ( + COALESCE ( + 3, 97 - - + ( - 88 ) - - 96, COALESCE ( + + ( 16 ), + - 79 * 3, 59 ) ), + CASE 41 WHEN - 28 + 23 * - 28 THEN NULL ELSE COUNT ( * ) / 15 END, - 47 ) ) ) + + COUNT ( * ) / 81 AS col0
----
-136

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

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

query I rowsort
SELECT 7 * - 31
----
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT DISTINCT COUNT( 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT COUNT ( 34 ) AS col2
----
1

query II rowsort
SELECT ALL - 87 AS col1, 65 * + 38
----
-87
2470

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT DISTINCT - CASE - 31 WHEN + MAX( ALL - 14 ) THEN + 24 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT - CASE - 31 WHEN + MAX ( ALL - 14 ) THEN + 24 END AS col1
----
NULL

query I rowsort
SELECT 48 * ( + 9 ) * - 93 * + 96
----
-3856896

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT SUM( ALL - 90 ) col0
----
-90

skipif mysql # not compatible
query I rowsort label-6552
SELECT SUM ( ALL - 90 ) col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT 22 + MIN( 6 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-6553
SELECT 22 + MIN ( 6 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT ALL 99 * CASE - ( + 94 ) WHEN 98 THEN + MAX( + 74 ) - - + 4 WHEN + - 74 THEN NULL ELSE NULL END / - 8 * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL 99 * CASE - ( + 94 ) WHEN 98 THEN + MAX ( + 74 ) - - + 4 WHEN + - 74 THEN NULL ELSE NULL END / - 8 * - 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6555
SELECT - 5 * + MAX( DISTINCT - CAST( + 37 AS SIGNED ) ) AS col0
----
185

skipif mysql # not compatible
query I rowsort label-6555
SELECT - 5 * + MAX ( DISTINCT - CAST ( + 37 AS INTEGER ) ) AS col0
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-6556
SELECT + 87, - 67 + + COUNT( * ) * - 23 + 97 - + - 95 * 5 + 87 AS col2
----
87
569

skipif mysql # not compatible
query II rowsort label-6556
SELECT + 87, - 67 + + COUNT ( * ) * - 23 + 97 - + - 95 * 5 + 87 AS col2
----
87
569

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT ALL 66 * + + CASE + ( 68 ) WHEN - - ( - COUNT( * ) ) * ( - COUNT( * ) ) THEN - 36 END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL 66 * + + CASE + ( 68 ) WHEN - - ( - COUNT ( * ) ) * ( - COUNT ( * ) ) THEN - 36 END + - COUNT ( * )
----
NULL

query II rowsort
SELECT + 57 + + + 29 * + 62 * + + NULLIF ( 72, 84 ) AS col2, + 87 AS col0
----
129513
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6559
SELECT DISTINCT + 18 * COUNT( + + 22 ) / ( + + 2 ) + COUNT( * ) * + CAST( NULL AS SIGNED ) * + + 41 + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT + 18 * COUNT ( + + 22 ) / ( + + 2 ) + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + + 41 + 96 AS col0
----
NULL

query I rowsort
SELECT ALL 96 + - 99 + - + 32 AS col0
----
-35

query I rowsort
SELECT + 79 * + + 42 AS col2
----
3318

query I rowsort
SELECT + 49 + - + 73 * 50 * - 44 AS col2
----
160649

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT ALL - + CASE + 16 WHEN + COUNT( * ) THEN + 63 END + - 29 + - - 46 * - + NULLIF ( + ( + CASE - 66 WHEN - - 67 THEN NULL WHEN - 71 * + 8 * 70 THEN + 97 / - + 42 ELSE + 71 - + 48 END ), - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL - + CASE + 16 WHEN + COUNT ( * ) THEN + 63 END + - 29 + - - 46 * - + NULLIF ( + ( + CASE - 66 WHEN - - 67 THEN NULL WHEN - 71 * + 8 * 70 THEN + 97 / - + 42 ELSE + 71 - + 48 END ), - 49 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT ALL + COUNT( ALL + + 17 ) + 89 + 92
----
182

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL + COUNT ( ALL + + 17 ) + 89 + 92
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-6566
SELECT ALL + ( - + 98 ) DIV + 64 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL + ( - + 98 ) / + 64 AS col1
----
-1

query II rowsort
SELECT + 97 AS col1, - 2 * - 4 col0
----
97
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT ALL - COUNT( * ) * - 35 + + + 63
----
98

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL - COUNT ( * ) * - 35 + + + 63
----
98

query I rowsort
SELECT ALL 7 * + + 49 + + 75 AS col1
----
418

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6571
SELECT + + 39 + + - COUNT( * ) + - ( - - 41 ) AS col1, COUNT( * )
----
-3
1

skipif mysql # not compatible
query II rowsort label-6571
SELECT + + 39 + + - COUNT ( * ) + - ( - - 41 ) AS col1, COUNT ( * )
----
-3
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6573
SELECT - SUM( - - 90 ) + + + 74 - - COUNT( - 34 ) + 87 DIV - 91
----
-15

skipif mysql # not compatible
query I rowsort label-6573
SELECT - SUM ( - - 90 ) + + + 74 - - COUNT ( - 34 ) + 87 / - 91
----
-15

query II rowsort
SELECT ALL - 83, 62 AS col1
----
-83
62

query I rowsort
SELECT + 71 + 20 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT ALL SUM( - CASE + 8 WHEN 37 THEN + 22 + 19 WHEN + - 10 THEN NULL ELSE NULL END ) - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL SUM ( - CASE + 8 WHEN 37 THEN + 22 + 19 WHEN + - 10 THEN NULL ELSE NULL END ) - + 74
----
NULL

query I rowsort
SELECT - 48 + - 63 + - - 30
----
-81

query I rowsort
SELECT ALL NULLIF ( + - 93, - 48 / + ( 78 ) ) AS col1
----
-93

query I rowsort
SELECT ALL + 9 * 25 AS col2
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6580
SELECT DISTINCT + ( - - ( - 82 ) ) * + - ( + + CAST( NULL AS SIGNED ) ) + + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT + ( - - ( - 82 ) ) * + - ( + + CAST ( NULL AS INTEGER ) ) + + 37 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6581
SELECT - CASE - 16 WHEN - 50 THEN - AVG ( DISTINCT - - 42 ) WHEN + + CAST( NULL AS SIGNED ) * - + 45 + - COUNT( * ) THEN - 30 / + 24 ELSE NULL END / + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6581
SELECT - CASE - 16 WHEN - 50 THEN - AVG ( DISTINCT - - 42 ) WHEN + + CAST ( NULL AS INTEGER ) * - + 45 + - COUNT ( * ) THEN - 30 / + 24 ELSE NULL END / + + 61
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-6582
SELECT - 88 * + 35, - 57 AS col0, + + CASE + - 60 WHEN + ( - 34 ) THEN NULL WHEN 31 THEN + + 31 ELSE NULL END / - COUNT( * ) * + MAX( + 86 ) AS col0
----
-3080
-57
NULL

skipif mysql # not compatible
query III rowsort label-6582
SELECT - 88 * + 35, - 57 AS col0, + + CASE + - 60 WHEN + ( - 34 ) THEN NULL WHEN 31 THEN + + 31 ELSE NULL END / - COUNT ( * ) * + MAX ( + 86 ) AS col0
----
-3080
-57
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6583
SELECT + MAX( - ( ( + + 30 ) ) ) DIV - 30 + 88 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6583
SELECT + MAX ( - ( ( + + 30 ) ) ) / - 30 + 88 AS col2
----
89

query II rowsort
SELECT ( + 11 ) AS col2, 80
----
11
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6585
SELECT DISTINCT 19 DIV + + ( - 18 ) + 28
----
27

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT 19 / + + ( - 18 ) + 28
----
27

query I rowsort
SELECT DISTINCT ( 1 ) * + 10
----
10

query II rowsort
SELECT ALL - 47 * + 7, 55 AS col0
----
-329
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT DISTINCT + COALESCE ( COUNT( - 29 ), - 28 * + 78 + - COUNT( * ) * - - 86, 53, - + 26 - - - ( + - 86 ) ) * 44 + + 57 + 75
----
176

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT + COALESCE ( COUNT ( - 29 ), - 28 * + 78 + - COUNT ( * ) * - - 86, 53, - + 26 - - - ( + - 86 ) ) * 44 + + 57 + 75
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6589
SELECT DISTINCT 62 * - - 16 * - + CASE 63 WHEN + 51 + - 75 + COUNT( * ) * - 68 THEN + ( - 46 ) + AVG ( DISTINCT + + 31 ) WHEN + CASE 86 WHEN - CAST( - - 96 AS SIGNED ) THEN - - 25 ELSE NULL END - ( - - CASE - 3 WHEN + 25 * 28 THEN - 37 / - 37 WHEN + ( COUNT( * ) ) THEN 8 WHEN 70 * COUNT( * ) THEN NULL ELSE - 9 * - 33 - + 48 * 8 END ) THEN 37 END + SUM( ALL 84 ) * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT 62 * - - 16 * - + CASE 63 WHEN + 51 + - 75 + COUNT ( * ) * - 68 THEN + ( - 46 ) + AVG ( DISTINCT + + 31 ) WHEN + CASE 86 WHEN - CAST ( - - 96 AS INTEGER ) THEN - - 25 ELSE NULL END - ( - - CASE - 3 WHEN + 25 * 28 THEN - 37 / - 37 WHEN + ( COUNT ( * ) ) THEN 8 WHEN 70 * COUNT ( * ) THEN NULL ELSE - 9 * - 33 - + 48 * 8 END ) THEN 37 END + SUM ( ALL 84 ) * + 85
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6591
SELECT ALL + COALESCE ( - + 89, - - ( - - COALESCE ( - 29, - CASE + 15 WHEN 32 THEN NULL WHEN 19 * 27 THEN + 33 END * - - 55 ) ) * + 68 * + - 73 DIV + 20 - - - MIN( + - 53 ) DIV + - 71 * + MAX( 82 ) ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL + COALESCE ( - + 89, - - ( - - COALESCE ( - 29, - CASE + 15 WHEN 32 THEN NULL WHEN 19 * 27 THEN + 33 END * - - 55 ) ) * + 68 * + - 73 / + 20 - - - MIN ( + - 53 ) / + - 71 * + MAX ( 82 ) ) AS col1
----
-89

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

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

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

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

query I rowsort
SELECT DISTINCT + 16 * - 85
----
-1360

onlyif mysql # aggregate syntax: 
query II rowsort label-6595
SELECT DISTINCT + COUNT( DISTINCT 59 ) * + + 53 * + 55 * + 84 + - 88 + 43, + COUNT( * ) + + ( + 97 ) AS col1
----
244815
98

skipif mysql # not compatible
query II rowsort label-6595
SELECT DISTINCT + COUNT ( DISTINCT 59 ) * + + 53 * + 55 * + 84 + - 88 + 43, + COUNT ( * ) + + ( + 97 ) AS col1
----
244815
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT ALL - 27 * 42 + COUNT( * ) + - COUNT( * )
----
-1134

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL - 27 * 42 + COUNT ( * ) + - COUNT ( * )
----
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT DISTINCT + SUM( ALL - 19 ) * + 31 AS col0
----
-589

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT + SUM ( ALL - 19 ) * + 31 AS col0
----
-589

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT DISTINCT + SUM( ALL + 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT + SUM ( ALL + 77 ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT ALL + 23 * 50 * - - 92 * - - COUNT( * ) AS col1
----
105800

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL + 23 * 50 * - - 92 * - - COUNT ( * ) AS col1
----
105800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6600
SELECT + - MIN( DISTINCT + 90 ) * + CAST( + 88 AS SIGNED ) AS col0
----
-7920

skipif mysql # not compatible
query I rowsort label-6600
SELECT + - MIN ( DISTINCT + 90 ) * + CAST ( + 88 AS INTEGER ) AS col0
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT SUM( ALL NULLIF ( + - 73, - - 23 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-6601
SELECT SUM ( ALL NULLIF ( + - 73, - - 23 ) )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6602
SELECT ALL + CAST( NULL AS SIGNED ) / - 23 * 46 + 78 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL + CAST ( NULL AS INTEGER ) / - 23 * 46 + 78 col1
----
NULL

query I rowsort
SELECT + 30 + + + 10
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6604
SELECT DISTINCT 95 DIV - 34
----
-2

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT 95 / - 34
----
-2

query I rowsort
SELECT ALL 30 * 36
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT + COUNT( * ) * + NULLIF ( + COUNT( * ), - 28 * - + COALESCE ( + COUNT( * ), + 47 * - 60 ) ) * 61 * - + 10
----
-610

skipif mysql # not compatible
query I rowsort label-6606
SELECT + COUNT ( * ) * + NULLIF ( + COUNT ( * ), - 28 * - + COALESCE ( + COUNT ( * ), + 47 * - 60 ) ) * 61 * - + 10
----
-610

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

query I rowsort
SELECT DISTINCT ( 86 ) * 51 AS col1
----
4386

query II rowsort
SELECT - 17, 38 * - 55 AS col0
----
-17
-2090

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6610
SELECT 4, CAST( - 72 AS SIGNED ) * - - ( - ( + 18 ) ) - + 85 AS col0
----
4
1211

skipif mysql # not compatible
query II rowsort label-6610
SELECT 4, CAST ( - 72 AS INTEGER ) * - - ( - ( + 18 ) ) - + 85 AS col0
----
4
1211

query I rowsort
SELECT DISTINCT 29 + - COALESCE ( - 31, + 23 ) * - 41
----
-1242

query I rowsort
SELECT DISTINCT ( - 7 ) * + 82 + - 26 - + 67
----
-667

query I rowsort
SELECT ALL 46 + + 87
----
133

query I rowsort
SELECT 57 - - 72 AS col2
----
129

query II rowsort
SELECT DISTINCT - 28 AS col1, + 3
----
-28
3

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6618
SELECT ALL 16 + + CAST( + COALESCE ( - 27, - + 96 / CAST( NULL AS SIGNED ) / ( + 83 ), CAST( 82 AS SIGNED ) ) AS SIGNED ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL 16 + + CAST ( + COALESCE ( - 27, - + 96 / CAST ( NULL AS INTEGER ) / ( + 83 ), CAST ( 82 AS INTEGER ) ) AS INTEGER ) AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6619
SELECT COUNT( * ) + - COALESCE ( + NULLIF ( 82, - 31 * - - 48 + - - 80 ), - + 49 + SUM( - + 89 ), - + 14 ), NULLIF ( + + 29, + CAST( NULL AS SIGNED ) ) col0
----
-81
29

skipif mysql # not compatible
query II rowsort label-6619
SELECT COUNT ( * ) + - COALESCE ( + NULLIF ( 82, - 31 * - - 48 + - - 80 ), - + 49 + SUM ( - + 89 ), - + 14 ), NULLIF ( + + 29, + CAST ( NULL AS INTEGER ) ) col0
----
-81
29

query II rowsort
SELECT + 41 AS col2, 93 + - + 17 col0
----
41
76

query II rowsort
SELECT 15 col0, 93
----
15
93

query I rowsort
SELECT 92 - - + 48 col2
----
140

query I rowsort
SELECT ALL + 71 * - 37 * + 80 AS col2
----
-210160

query I rowsort
SELECT 15 * 42 * - 16 + 5 AS col0
----
-10075

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6626
SELECT CAST( + 34 AS SIGNED ) + + + 72
----
106

skipif mysql # not compatible
query I rowsort label-6626
SELECT CAST ( + 34 AS INTEGER ) + + + 72
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-6627
SELECT ALL COUNT( * ) * - - 70 * + 90 AS col0, + 28
----
6300
28

skipif mysql # not compatible
query II rowsort label-6627
SELECT ALL COUNT ( * ) * - - 70 * + 90 AS col0, + 28
----
6300
28

query I rowsort
SELECT 61 + CASE + 5 WHEN - + 40 * + - 16 THEN + + ( - + 65 ) END * + + 63 / ( - 66 )
----
NULL

query I rowsort
SELECT + 6 * + + 41
----
246

query I rowsort
SELECT - - 1 * + 96 + + 61 AS col1
----
157

query I rowsort
SELECT 84 * + 17 AS col2
----
1428

query I rowsort
SELECT + + ( + - 76 ) * + + 33 + CASE + + 12 WHEN - + 8 THEN - 61 END
----
NULL

query II rowsort
SELECT - 82, - 35 AS col2
----
-82
-35

query II rowsort
SELECT + 94 AS col2, - 99
----
94
-99

query I rowsort
SELECT + 47 + 82
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6636
SELECT 64 * - CAST( NULL AS SIGNED ) * - 89 AS col1, 8 * - 82
----
NULL
-656

skipif mysql # not compatible
query II rowsort label-6636
SELECT 64 * - CAST ( NULL AS INTEGER ) * - 89 AS col1, 8 * - 82
----
NULL
-656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6637
SELECT DISTINCT CASE + 38 WHEN - 19 THEN + CASE - + 56 WHEN - - CASE + ( + + 82 ) WHEN + 74 THEN + - CASE - COUNT( * ) WHEN 89 - + - COUNT( * ) - + - 41 + - 4 * 13 THEN - 33 + 80 / - COUNT( * ) + 57 ELSE NULL END WHEN - 53 + 79 THEN - ( 83 ) WHEN 96 THEN + 87 ELSE NULL END + 78 THEN - 29 WHEN - 50 / - 97 THEN - 80 + SUM( ALL - 86 - NULLIF ( - 6, 48 ) ) / + CAST( NULL AS DECIMAL ) ELSE NULLIF ( + 30, + COUNT( + 63 ) ) * + COALESCE ( - CASE - 6 WHEN CAST( + 23 AS SIGNED ) THEN NULL WHEN + 21 + - 64 THEN 58 WHEN - 66 + 62 THEN NULL ELSE + 55 END * - 28, 40 ) END + + 56 * + 35 WHEN 77 THEN - COUNT( * ) * - 60 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT CASE + 38 WHEN - 19 THEN + CASE - + 56 WHEN - - CASE + ( + + 82 ) WHEN + 74 THEN + - CASE - COUNT ( * ) WHEN 89 - + - COUNT ( * ) - + - 41 + - 4 * 13 THEN - 33 + 80 / - COUNT ( * ) + 57 ELSE NULL END WHEN - 53 + 79 THEN - ( 83 ) WHEN 96 THEN + 87 ELSE NULL END + 78 THEN - 29 WHEN - 50 / - 97 THEN - 80 + SUM ( ALL - 86 - NULLIF ( - 6, 48 ) ) / + CAST ( NULL AS REAL ) ELSE NULLIF ( + 30, + COUNT ( + 63 ) ) * + COALESCE ( - CASE - 6 WHEN CAST ( + 23 AS INTEGER ) THEN NULL WHEN + 21 + - 64 THEN 58 WHEN - 66 + 62 THEN NULL ELSE + 55 END * - 28, 40 ) END + + 56 * + 35 WHEN 77 THEN - COUNT ( * ) * - 60 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6639
SELECT DISTINCT + CASE - 23 WHEN + - 83 THEN 35 ELSE + 32 END * - + NULLIF ( + 16, + CAST( 25 AS SIGNED ) * - 99 * - - NULLIF ( - 92, - + 56 ) ), 22 + + - 41 AS col2
----
-512
-19

skipif mysql # not compatible
query II rowsort label-6639
SELECT DISTINCT + CASE - 23 WHEN + - 83 THEN 35 ELSE + 32 END * - + NULLIF ( + 16, + CAST ( 25 AS INTEGER ) * - 99 * - - NULLIF ( - 92, - + 56 ) ), 22 + + - 41 AS col2
----
-512
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT + ( MAX( DISTINCT 54 ) ) * + 15 AS col1
----
810

skipif mysql # not compatible
query I rowsort label-6640
SELECT + ( MAX ( DISTINCT 54 ) ) * + 15 AS col1
----
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6641
SELECT 51 / 54 * - 8 * - CASE - 79 WHEN 22 THEN + 9 - - - 17 WHEN + ( - 36 ) THEN + 45 * 73 ELSE - MIN( DISTINCT 31 ) + + 14 * + 57 * 61 END / + + 15 * + 90 + - 1 + - + ( - CAST( NULL AS SIGNED ) ) + 59 * 15 * CAST( CAST( + MAX( COALESCE ( 39, + 31 ) ) AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6641
SELECT 51 / 54 * - 8 * - CASE - 79 WHEN 22 THEN + 9 - - - 17 WHEN + ( - 36 ) THEN + 45 * 73 ELSE - MIN ( DISTINCT 31 ) + + 14 * + 57 * 61 END / + + 15 * + 90 + - 1 + - + ( - CAST ( NULL AS INTEGER ) ) + 59 * 15 * CAST ( CAST ( + MAX ( COALESCE ( 39, + 31 ) ) AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6642
SELECT ALL - 10 + - 1 DIV + - 2 col1
----
-10

skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL - 10 + - 1 / + - 2 col1
----
-10

query I rowsort
SELECT 22 + 32 + - NULLIF ( 57, - 69 * - 18 ) AS col2
----
-3

query I rowsort
SELECT 58 - 56
----
2

query I rowsort
SELECT ALL 76 + - 38 AS col0
----
38

query I rowsort
SELECT DISTINCT - 92 + - + 38
----
-130

query I rowsort
SELECT 60 * + 57 * 39 col0
----
133380

query I rowsort
SELECT ALL 29 * + 39
----
1131

onlyif mysql # aggregate syntax: 
query II rowsort label-6649
SELECT ALL 40 + + MAX( 28 ) * ( + COALESCE ( - 12, - - 40, - + 9 ) ) * + 96 AS col1, - MAX( DISTINCT + + ( + - 49 ) ) AS col0
----
-32216
49

skipif mysql # not compatible
query II rowsort label-6649
SELECT ALL 40 + + MAX ( 28 ) * ( + COALESCE ( - 12, - - 40, - + 9 ) ) * + 96 AS col1, - MAX ( DISTINCT + + ( + - 49 ) ) AS col0
----
-32216
49

query I rowsort
SELECT ( 96 ) + + - 93
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6651
SELECT ALL COUNT( DISTINCT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * - CAST( 67 AS SIGNED ) + - 45 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL COUNT ( DISTINCT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - CAST ( 67 AS INTEGER ) + - 45 AS col2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6652
SELECT - 22 DIV + 3 + - 88
----
-95

skipif mysql # not compatible
query I rowsort label-6652
SELECT - 22 / + 3 + - 88
----
-95

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

query I rowsort
SELECT 30 * + + 97 + - 86 AS col1
----
2824

query I rowsort
SELECT ALL + 98 - + NULLIF ( + NULLIF ( + - 47, - 99 * 41 * 3 ), - + 25 ) * - 87 AS col0
----
-3991

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

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

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

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

query I rowsort
SELECT DISTINCT - + NULLIF ( + - 4, 48 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT ALL - COUNT( * ) * + MAX( DISTINCT + 29 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL - COUNT ( * ) * + MAX ( DISTINCT + 29 ) AS col1
----
-29

query I rowsort
SELECT ALL - - 14 col1
----
14

query I rowsort
SELECT ALL - + 53 col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT DISTINCT 58 * 35 * COUNT( * )
----
2030

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT 58 * 35 * COUNT ( * )
----
2030

onlyif mysql # DIV for integer division: 
query II rowsort label-6663
SELECT ALL - 90 DIV - - 88 AS col2, 53
----
-1
53

skipif mysql # not compatible
query II rowsort label-6663
SELECT ALL - 90 / - - 88 AS col2, 53
----
-1
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT 55 * 49 + + 41 + - 63 * - - ( + + 80 ) * COUNT( * ) * + 54 * + 21 AS col2
----
-5712624

skipif mysql # not compatible
query I rowsort label-6664
SELECT 55 * 49 + + 41 + - 63 * - - ( + + 80 ) * COUNT ( * ) * + 54 * + 21 AS col2
----
-5712624

query I rowsort
SELECT ALL - 78 + - 30 AS col0
----
-108

query II rowsort
SELECT - 2 AS col0, 21 * + 30
----
-2
630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6667
SELECT - 89 * - + CAST( - COUNT( + 36 ) AS SIGNED ) * - + COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-6667
SELECT - 89 * - + CAST ( - COUNT ( + 36 ) AS INTEGER ) * - + COUNT ( * ) AS col1
----
89

query I rowsort
SELECT - 95 + + 88
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT DISTINCT CASE 47 WHEN + 88 THEN + 71 * + - 47 WHEN COUNT( * ) / - - 87 * - COUNT( * ) - - SUM( DISTINCT + 56 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT CASE 47 WHEN + 88 THEN + 71 * + - 47 WHEN COUNT ( * ) / - - 87 * - COUNT ( * ) - - SUM ( DISTINCT + 56 ) THEN NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 88 + - 80 + - 94
----
-86

query I rowsort
SELECT - 46 - 98
----
-144

query I rowsort
SELECT - 23 - + 0 AS col1
----
-23

query I rowsort
SELECT + 28 * COALESCE ( - 0, + - 2 )
----
0

query I rowsort
SELECT DISTINCT NULLIF ( - 75, + AVG ( DISTINCT + - 79 ) ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6676
SELECT ALL CASE - + 98 WHEN + 83 * + 94 * + COUNT( 76 ) THEN NULL WHEN + 78 THEN - 91 ELSE NULL END AS col0, 44
----
NULL
44

skipif mysql # not compatible
query II rowsort label-6676
SELECT ALL CASE - + 98 WHEN + 83 * + 94 * + COUNT ( 76 ) THEN NULL WHEN + 78 THEN - 91 ELSE NULL END AS col0, 44
----
NULL
44

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

query I rowsort
SELECT ALL 87 - + 95 + - 41 * - 47
----
1919

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT DISTINCT NULLIF ( + - 92, - SUM( - 16 ) + - - COUNT( * ) * - 33 - - 98 )
----
-92

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT NULLIF ( + - 92, - SUM ( - 16 ) + - - COUNT ( * ) * - 33 - - 98 )
----
-92

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6681
SELECT + + NULLIF ( + 16, - CAST( - - 71 AS DECIMAL ) ) - 85 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-6681
SELECT + + NULLIF ( + 16, - CAST ( - - 71 AS REAL ) ) - 85 AS col1
----
-69

query I rowsort
SELECT ALL - 38 * - 2 * - + 68 * 10
----
-51680

onlyif mysql # DIV for integer division: 
query I rowsort label-6683
SELECT + 88 DIV - 59
----
-1

skipif mysql # not compatible
query I rowsort label-6683
SELECT + 88 / - 59
----
-1

query I rowsort
SELECT ALL 58 * 57 AS col2
----
3306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6685
SELECT + COALESCE ( + CAST( NULL AS SIGNED ), - 29 * 0 ) - + NULLIF ( + 18, 78 )
----
-18

skipif mysql # not compatible
query I rowsort label-6685
SELECT + COALESCE ( + CAST ( NULL AS INTEGER ), - 29 * 0 ) - + NULLIF ( + 18, 78 )
----
-18

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

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

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

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

query I rowsort
SELECT DISTINCT - 33 * + 58
----
-1914

query I rowsort
SELECT ALL + NULLIF ( + 35, + 21 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT ALL - SUM( ALL + 85 ) * + + COUNT( * ) + 0 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL - SUM ( ALL + 85 ) * + + COUNT ( * ) + 0 AS col2
----
-85

query I rowsort
SELECT DISTINCT + 56 * 7 * - 78 + 64 + 98 AS col0
----
-30414

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT ALL - COALESCE ( - + COUNT( * ), - 27 ) * + 30 + + - 92 - - COUNT( * ) col0
----
-61

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL - COALESCE ( - + COUNT ( * ), - 27 ) * + 30 + + - 92 - - COUNT ( * ) col0
----
-61

query I rowsort
SELECT ALL - + 37 * + - 26 + ( ( 94 ) ) * - + 9
----
116

query II rowsort
SELECT DISTINCT + + 69 col2, 57 + 56 + 60
----
69
173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6695
SELECT ALL - - 4 * + 36 * + 98 * + 6 + - 61 - + COUNT( * ) * + + CASE + - 88 WHEN - 1 THEN NULL ELSE + + SUM( + - 67 ) * 56 + + 53 + - + 55 * COUNT( * ) - + 18 + + 38 + COUNT( - - NULLIF ( ( - 20 ), - 20 ) ) + - 32 * 59 DIV - COUNT( * ) END * - 51 AS col1
----
-9535

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL - - 4 * + 36 * + 98 * + 6 + - 61 - + COUNT ( * ) * + + CASE + - 88 WHEN - 1 THEN NULL ELSE + + SUM ( + - 67 ) * 56 + + 53 + - + 55 * COUNT ( * ) - + 18 + + 38 + COUNT ( - - NULLIF ( ( - 20 ), - 20 ) ) + - 32 * 59 / - COUNT ( * ) END * - 51 AS col1
----
-9535

onlyif mysql # aggregate syntax: 
query II rowsort label-6696
SELECT ALL + CASE WHEN NULL IS NOT NULL THEN - 40 ELSE NULL END AS col2, 23 + + + 37 + 92 * - - 94 * - - COUNT( * ) + - + 44 - + 37 + 98
----
NULL
8725

skipif mysql # not compatible
query II rowsort label-6696
SELECT ALL + CASE WHEN NULL IS NOT NULL THEN - 40 ELSE NULL END AS col2, 23 + + + 37 + 92 * - - 94 * - - COUNT ( * ) + - + 44 - + 37 + 98
----
NULL
8725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6697
SELECT + - 53 + - CASE - - CAST( NULL AS SIGNED ) WHEN + - 29 THEN - AVG ( + 18 ) + 28 + - - 37 END + - 62 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6697
SELECT + - 53 + - CASE - - CAST ( NULL AS INTEGER ) WHEN + - 29 THEN - AVG ( + 18 ) + 28 + - - 37 END + - 62 + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 62 * + 71 * - NULLIF ( + 83, - 37 ) AS col0
----
-365366

query I rowsort
SELECT - 77 + - 89
----
-166

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6701
SELECT DISTINCT 91 * - + SUM( - CAST( COALESCE ( 28, 50 - NULLIF ( + + 1, + + 62 + - 51 ) ) AS SIGNED ) ) + - 49 + + NULLIF ( - + 3, 63 * 29 + 15 ) * - ( + + SUM( ALL 13 ) ) DIV + + 87 AS col1
----
2499

skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT 91 * - + SUM ( - CAST ( COALESCE ( 28, 50 - NULLIF ( + + 1, + + 62 + - 51 ) ) AS INTEGER ) ) + - 49 + + NULLIF ( - + 3, 63 * 29 + 15 ) * - ( + + SUM ( ALL 13 ) ) / + + 87 AS col1
----
2499

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6702
SELECT DISTINCT COUNT( * ) DIV - 19, + 17 + + 87 + + + COUNT( * ) AS col2
----
0
105

skipif mysql # not compatible
query II rowsort label-6702
SELECT DISTINCT COUNT ( * ) / - 19, + 17 + + 87 + + + COUNT ( * ) AS col2
----
0
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT + COUNT( * ) * + SUM( - 99 ) * + 74 + 82
----
-7244

skipif mysql # not compatible
query I rowsort label-6703
SELECT + COUNT ( * ) * + SUM ( - 99 ) * + 74 + 82
----
-7244

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT + 16 * + ( - - 44 ) * - COUNT( * ) + + 84 + + COUNT( * ) - - + 29 * + 19
----
-68

skipif mysql # not compatible
query I rowsort label-6704
SELECT + 16 * + ( - - 44 ) * - COUNT ( * ) + + 84 + + COUNT ( * ) - - + 29 * + 19
----
-68

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

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

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

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

query I rowsort
SELECT + 5 * + 99 AS col0
----
495

onlyif mysql # aggregate syntax: 
query II rowsort label-6708
SELECT ALL AVG ( + CASE + - 36 WHEN - 81 + - NULLIF ( + 72, + 66 ) THEN NULL WHEN + + 77 + - 20 THEN - ( 71 ) END ), - MAX( 7 ) AS col2
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-6708
SELECT ALL AVG ( + CASE + - 36 WHEN - 81 + - NULLIF ( + 72, + 66 ) THEN NULL WHEN + + 77 + - 20 THEN - ( 71 ) END ), - MAX ( 7 ) AS col2
----
NULL
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6709
SELECT + COUNT( * ) + 32 + + - 84 DIV - 59
----
34

skipif mysql # not compatible
query I rowsort label-6709
SELECT + COUNT ( * ) + 32 + + - 84 / - 59
----
34

query I rowsort
SELECT + 99 + + + 68 - - - NULLIF ( + ( - CASE - 40 WHEN - 36 THEN - 90 ELSE NULL END ), + - 53 * + - 82 + 78 / 81 - - + 45 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT - 5 - - + CASE + 63 WHEN - 71 THEN + 90 * 99 WHEN + 92 THEN NULL WHEN - 62 + + + MIN( ALL + 14 ) THEN NULL ELSE NULL END + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6711
SELECT - 5 - - + CASE + 63 WHEN - 71 THEN + 90 * 99 WHEN + 92 THEN NULL WHEN - 62 + + + MIN ( ALL + 14 ) THEN NULL ELSE NULL END + + 49
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6712
SELECT DISTINCT - 75 - + - 76 DIV - 52
----
-76

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT - 75 - + - 76 / - 52
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6713
SELECT ALL + COUNT( * ) - 53 + 74 + + - 94 * + - COALESCE ( + 30, - CASE - ( - 89 ) WHEN + 22 THEN NULL ELSE + 25 END + + 4 + - 2 DIV - 3 ) AS col2
----
2842

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL + COUNT ( * ) - 53 + 74 + + - 94 * + - COALESCE ( + 30, - CASE - ( - 89 ) WHEN + 22 THEN NULL ELSE + 25 END + + 4 + - 2 / - 3 ) AS col2
----
2842

onlyif mysql # aggregate syntax: 
query II rowsort label-6714
SELECT - 34 AS col2, MAX( ALL + - 65 )
----
-34
-65

skipif mysql # not compatible
query II rowsort label-6714
SELECT - 34 AS col2, MAX ( ALL + - 65 )
----
-34
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6715
SELECT DISTINCT - NULLIF ( + 55, 96 + - 2 ) * - CASE NULLIF ( + - 73, + - 70 ) WHEN + CASE WHEN - CAST( NULL AS SIGNED ) <> + 65 AND NOT - NULLIF ( COUNT( ALL + 74 ), CASE + 52 WHEN + AVG ( DISTINCT + 77 ) THEN - 61 WHEN + - 99 + + - MAX( CAST( NULL AS SIGNED ) ) + + COALESCE ( - + 77, + 9, - 72 ) + + COUNT( ALL CAST( + 41 AS SIGNED ) ) / SUM( 50 * 22 + 39 ) THEN NULL END * COUNT( * ) ) * + COALESCE ( SUM( - 96 ) * 86 + + COUNT( * ), 29, + 66 ) + + 41 NOT BETWEEN + 55 + - 99 * + COUNT( * ) AND 21 THEN + MIN( - 97 ) / - 93 ELSE NULL END THEN + 60 - 75 WHEN 5 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT - NULLIF ( + 55, 96 + - 2 ) * - CASE NULLIF ( + - 73, + - 70 ) WHEN + CASE WHEN - CAST ( NULL AS INTEGER ) <> + 65 AND NOT - NULLIF ( COUNT ( ALL + 74 ), CASE + 52 WHEN + AVG ( DISTINCT + 77 ) THEN - 61 WHEN + - 99 + + - MAX ( CAST ( NULL AS INTEGER ) ) + + COALESCE ( - + 77, + 9, - 72 ) + + COUNT ( ALL CAST ( + 41 AS INTEGER ) ) / SUM ( 50 * 22 + 39 ) THEN NULL END * COUNT ( * ) ) * + COALESCE ( SUM ( - 96 ) * 86 + + COUNT ( * ), 29, + 66 ) + + 41 NOT BETWEEN + 55 + - 99 * + COUNT ( * ) AND 21 THEN + MIN ( - 97 ) / - 93 ELSE NULL END THEN + 60 - 75 WHEN 5 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 50 + + 70 + + + 79 * 3 AS col0
----
257

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

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

query II rowsort
SELECT 64 col2, + 64 * 35 * 40
----
64
89600

query I rowsort
SELECT - 77 * + 17 AS col2
----
-1309

query I rowsort
SELECT + COALESCE ( - 2, ( + 29 ) ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT ALL + MIN( DISTINCT + 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL + MIN ( DISTINCT + 68 ) AS col1
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-6722
SELECT 1, + 97 DIV - 27 AS col1
----
1
-3

skipif mysql # not compatible
query II rowsort label-6722
SELECT 1, + 97 / - 27 AS col1
----
1
-3

query II rowsort
SELECT DISTINCT + - 8, 71 * 85 AS col1
----
-8
6035

onlyif mysql # DIV for integer division: 
query II rowsort label-6724
SELECT + + 16 AS col0, 3 DIV - - 82
----
16
0

skipif mysql # not compatible
query II rowsort label-6724
SELECT + + 16 AS col0, 3 / - - 82
----
16
0

query I rowsort
SELECT DISTINCT 92 * 68
----
6256

query II rowsort
SELECT ALL + - 36 AS col1, + 63
----
-36
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6727
SELECT DISTINCT + 67 AS col0, 64 + - COUNT( * ) * - 15
----
67
79

skipif mysql # not compatible
query II rowsort label-6727
SELECT DISTINCT + 67 AS col0, 64 + - COUNT ( * ) * - 15
----
67
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6728
SELECT ALL - + CAST( NULL AS SIGNED ) / + 22 + 24 + + 66 + - 15 * + + CAST( NULL AS SIGNED ) * + 66 - + - 4 + + + 48 + - CAST( MIN( DISTINCT ( - 99 ) ) AS SIGNED ) * + - ( + ( - ( - COUNT( * ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL - + CAST ( NULL AS INTEGER ) / + 22 + 24 + + 66 + - 15 * + + CAST ( NULL AS INTEGER ) * + 66 - + - 4 + + + 48 + - CAST ( MIN ( DISTINCT ( - 99 ) ) AS INTEGER ) * + - ( + ( - ( - COUNT ( * ) ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6729
SELECT + COUNT( * ) * + 12 AS col0, 16 + + 25 * + - CAST( - 95 AS SIGNED )
----
12
2391

skipif mysql # not compatible
query II rowsort label-6729
SELECT + COUNT ( * ) * + 12 AS col0, 16 + + 25 * + - CAST ( - 95 AS INTEGER )
----
12
2391

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT + - 59 * - ( + 53 ) * - SUM( + - 44 ) * - - 61 * + + COALESCE ( - AVG ( + + 4 ), + - COUNT( * ) ) * + + CASE + 58 WHEN NULLIF ( - - 31, - SUM( - 9 ) + 49 + + 88 - + ( + 16 ) * - ( + - 22 ) + - 47 ) THEN - + 62 ELSE NULL END + 30 * AVG ( - 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6730
SELECT + - 59 * - ( + 53 ) * - SUM ( + - 44 ) * - - 61 * + + COALESCE ( - AVG ( + + 4 ), + - COUNT ( * ) ) * + + CASE + 58 WHEN NULLIF ( - - 31, - SUM ( - 9 ) + 49 + + 88 - + ( + 16 ) * - ( + - 22 ) + - 47 ) THEN - + 62 ELSE NULL END + 30 * AVG ( - 93 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6731
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 58 - - 22 + + - 49 * + 63 * - + MAX( + 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6731
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 58 - - 22 + + - 49 * + 63 * - + MAX ( + 84 )
----
NULL

query I rowsort
SELECT 57 + 73 + + 28 + - ( 66 ) * + + 73 AS col0
----
-4660

query II rowsort
SELECT DISTINCT 65 - + - 86 AS col2, 28
----
151
28

query I rowsort
SELECT ALL 76 - + 56
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT COUNT( + - 45 ) + + 51
----
52

skipif mysql # not compatible
query I rowsort label-6735
SELECT COUNT ( + - 45 ) + + 51
----
52

query II rowsort
SELECT ( - COALESCE ( + 66, + 8 ) ) * 90 * 22 * + 4 AS col1, + 6 + + 18 * 30 AS col0
----
-522720
546

query II rowsort
SELECT DISTINCT 11 - - 60 AS col2, 57
----
71
57

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL 58 * - + MIN( ALL + - 80 ) * 45 + - 47 - + - 98 + + 7 AS col0
----
208858

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL 58 * - + MIN ( ALL + - 80 ) * 45 + - 47 - + - 98 + + 7 AS col0
----
208858

query I rowsort
SELECT DISTINCT 75 * 28 AS col1
----
2100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6742
SELECT ALL 10 * COUNT( * ) DIV - 31
----
0

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL 10 * COUNT ( * ) / - 31
----
0

query I rowsort
SELECT DISTINCT 69 * + + 21 * + 21 * + 4
----
121716

query I rowsort
SELECT 15 - + 57
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6745
SELECT SUM( - 69 ) / + NULLIF ( CAST( NULL AS SIGNED ), + CASE - 71 WHEN 87 / + - 64 * - 14 - - COUNT( * ) + 85 THEN + 69 * 93 WHEN - 24 + 74 THEN + - 74 + - ( + MAX( 38 ) ) + - SUM( + 90 ) + CAST( NULL AS SIGNED ) ELSE + - MAX( - 51 ) END * + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6745
SELECT SUM ( - 69 ) / + NULLIF ( CAST ( NULL AS INTEGER ), + CASE - 71 WHEN 87 / + - 64 * - 14 - - COUNT ( * ) + 85 THEN + 69 * 93 WHEN - 24 + 74 THEN + - 74 + - ( + MAX ( 38 ) ) + - SUM ( + 90 ) + CAST ( NULL AS INTEGER ) ELSE + - MAX ( - 51 ) END * + 15 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6746
SELECT CAST( NULL AS SIGNED ) * - - 6, 2 AS col1
----
NULL
2

skipif mysql # not compatible
query II rowsort label-6746
SELECT CAST ( NULL AS INTEGER ) * - - 6, 2 AS col1
----
NULL
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT + 14 * + 3 * - SUM( DISTINCT - 5 ) AS col0
----
210

skipif mysql # not compatible
query I rowsort label-6747
SELECT + 14 * + 3 * - SUM ( DISTINCT - 5 ) AS col0
----
210

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6748
SELECT DISTINCT + - 34 + 99 * + 82 + CAST( NULL AS DECIMAL ) - + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT + - 34 + 99 * + 82 + CAST ( NULL AS REAL ) - + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT 84 - + COUNT( * ) + - 34 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-6749
SELECT 84 - + COUNT ( * ) + - 34 AS col1
----
49

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

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

query I rowsort
SELECT ALL + + 67 + 1
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6752
SELECT DISTINCT - CASE - - 80 WHEN - 65 THEN 50 + + COUNT( * ) + SUM( - 12 ) * 36 WHEN - ( COUNT( * ) ) THEN NULL END col0, 3 * - 51 AS col1
----
NULL
-153

skipif mysql # not compatible
query II rowsort label-6752
SELECT DISTINCT - CASE - - 80 WHEN - 65 THEN 50 + + COUNT ( * ) + SUM ( - 12 ) * 36 WHEN - ( COUNT ( * ) ) THEN NULL END col0, 3 * - 51 AS col1
----
NULL
-153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6753
SELECT + 17 + - CAST( + 11 AS SIGNED ) AS col2, - 80 AS col1
----
6
-80

skipif mysql # not compatible
query II rowsort label-6753
SELECT + 17 + - CAST ( + 11 AS INTEGER ) AS col2, - 80 AS col1
----
6
-80

query I rowsort
SELECT + 0 - - 8 + + + 58 * - + 0 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6755
SELECT DISTINCT - + COUNT( - + 75 ), COUNT( * ) * + COUNT( * ) * 55 AS col2
----
-1
55

skipif mysql # not compatible
query II rowsort label-6755
SELECT DISTINCT - + COUNT ( - + 75 ), COUNT ( * ) * + COUNT ( * ) * 55 AS col2
----
-1
55

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

skipif mysql # not compatible
query I rowsort label-6756
SELECT - COUNT ( * ) / 47 + + + 74 AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6757
SELECT DISTINCT + 51 DIV - - COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT + 51 / - - COUNT ( * ) AS col0
----
51

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

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

query I rowsort
SELECT ALL 12 * 55 AS col0
----
660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6760
SELECT ALL + 56 DIV - - MIN( - 70 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL + 56 / - - MIN ( - 70 ) AS col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6762
SELECT DISTINCT - 47 DIV + - 16 DIV + COUNT( 82 )
----
2

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT - 47 / + - 16 / + COUNT ( 82 )
----
2

query I rowsort
SELECT ALL - 29 * - - 59 AS col2
----
-1711

onlyif mysql # DIV for integer division: 
query I rowsort label-6764
SELECT 51 DIV + - 60
----
0

skipif mysql # not compatible
query I rowsort label-6764
SELECT 51 / + - 60
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6765
SELECT 86 DIV + 14
----
6

skipif mysql # not compatible
query I rowsort label-6765
SELECT 86 / + 14
----
6

query I rowsort
SELECT 57 + - ( - 47 ) col1
----
104

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT ALL - COALESCE ( + COUNT( * ), + 79 * - - ( - 62 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL - COALESCE ( + COUNT ( * ), + 79 * - - ( - 62 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6769
SELECT CASE 77 WHEN 21 THEN - + MIN( DISTINCT + 35 ) + + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) * - + 65 END * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT CASE 77 WHEN 21 THEN - + MIN ( DISTINCT + 35 ) + + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) * - + 65 END * - 91
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6770
SELECT + MIN( + 77 ) * - COUNT( + 86 ) * - + CAST( NULL AS DECIMAL ) - + 38 + 13 / NULLIF ( - - 43, 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT + MIN ( + 77 ) * - COUNT ( + 86 ) * - + CAST ( NULL AS REAL ) - + 38 + 13 / NULLIF ( - - 43, 63 )
----
NULL

query II rowsort
SELECT DISTINCT 81 AS col2, 61 AS col2
----
81
61

query I rowsort
SELECT 72 + - 31 AS col1
----
41

query I rowsort
SELECT ( - + 32 ) * + 14 * - - 63 AS col1
----
-28224

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

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL COUNT ( * ) + - + 50 AS col2
----
-49

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

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

query I rowsort
SELECT 30 + 56 * + + ( - 53 ) AS col0
----
-2938

query I rowsort
SELECT ALL 29 * - + NULLIF ( - 12, 30 ) + - - 56
----
404

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT - ( - COUNT( * ) ) * - + MAX( DISTINCT - + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-6778
SELECT - ( - COUNT ( * ) ) * - + MAX ( DISTINCT - + 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT ALL + - NULLIF ( + 77, + - 73 ) + - COALESCE ( - - ( 54 ), - 28, + 62 + 64 + - - COUNT( * ) * - + 94 * + 92 * 20 ) AS col2
----
-131

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL + - NULLIF ( + 77, + - 73 ) + - COALESCE ( - - ( 54 ), - 28, + 62 + 64 + - - COUNT ( * ) * - + 94 * + 92 * 20 ) AS col2
----
-131

query I rowsort
SELECT DISTINCT - 20 + + 87
----
67

query I rowsort
SELECT ALL 51 + - 91
----
-40

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6783
SELECT DISTINCT COALESCE ( - COUNT( * ), 75 * 55 + - 36 + + 2 * + COUNT( * ) - + NULLIF ( + 56, COUNT( * ) ) + - + 60 ) + - 39 DIV - - 45 AS col0, 76 * 9 * + + 91
----
-1
62244

skipif mysql # not compatible
query II rowsort label-6783
SELECT DISTINCT COALESCE ( - COUNT ( * ), 75 * 55 + - 36 + + 2 * + COUNT ( * ) - + NULLIF ( + 56, COUNT ( * ) ) + - + 60 ) + - 39 / - - 45 AS col0, 76 * 9 * + + 91
----
-1
62244

query I rowsort
SELECT ALL + 38 + - 42
----
-4

query I rowsort
SELECT ALL - 63 + 9
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6786
SELECT + COUNT( * ) / - - CAST( NULL AS SIGNED ) - + 14 AS col2, MIN( ALL - 38 ) - - 0 + + + 62 + - + 92 * - 54 / CAST( NULL AS SIGNED ) * + 38 * + 92
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6786
SELECT + COUNT ( * ) / - - CAST ( NULL AS INTEGER ) - + 14 AS col2, MIN ( ALL - 38 ) - - 0 + + + 62 + - + 92 * - 54 / CAST ( NULL AS INTEGER ) * + 38 * + 92
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6787
SELECT - 70 + 62 + 23, - CAST( NULL AS SIGNED ) AS col2
----
15
NULL

skipif mysql # not compatible
query II rowsort label-6787
SELECT - 70 + 62 + 23, - CAST ( NULL AS INTEGER ) AS col2
----
15
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6788
SELECT ALL 58 AS col0, MIN( - 22 ) + - - 71
----
58
49

skipif mysql # not compatible
query II rowsort label-6788
SELECT ALL 58 AS col0, MIN ( - 22 ) + - - 71
----
58
49

onlyif mysql # DIV for integer division: 
query I rowsort label-6789
SELECT - ( + + 45 ) + 81 * - COALESCE ( COALESCE ( + 81, - 58 + + 25, + 96 * + 10 * 60 * - ( + 72 ) + 17 + + 20 ), - - 20 + + + 65 * - - 74, - 65 * + 71 DIV - - 83 * + NULLIF ( - 75, + - 58 ) ) AS col1
----
-6606

skipif mysql # not compatible
query I rowsort label-6789
SELECT - ( + + 45 ) + 81 * - COALESCE ( COALESCE ( + 81, - 58 + + 25, + 96 * + 10 * 60 * - ( + 72 ) + 17 + + 20 ), - - 20 + + + 65 * - - 74, - 65 * + 71 / - - 83 * + NULLIF ( - 75, + - 58 ) ) AS col1
----
-6606

onlyif mysql # DIV for integer division: 
query I rowsort label-6790
SELECT ALL - 13 DIV - + 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL - 13 / - + 74 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT NULLIF ( + - 5, + CASE - - 40 WHEN + COUNT( * ) THEN - - 24 WHEN - 63 THEN + 36 END * + CASE + 78 WHEN 75 * - ( 57 ) THEN NULL WHEN + 85 * - 34 THEN + 73 + AVG ( DISTINCT - 11 ) + ( COUNT( * ) ) WHEN - ( + 47 ) THEN NULL WHEN + COALESCE ( + - 28, - 52 ) * + 37 THEN NULL ELSE COUNT( * ) + - ( 93 ) * + MAX( ALL + 86 + 1 ) END * ( - 26 ) + 80 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-6791
SELECT NULLIF ( + - 5, + CASE - - 40 WHEN + COUNT ( * ) THEN - - 24 WHEN - 63 THEN + 36 END * + CASE + 78 WHEN 75 * - ( 57 ) THEN NULL WHEN + 85 * - 34 THEN + 73 + AVG ( DISTINCT - 11 ) + ( COUNT ( * ) ) WHEN - ( + 47 ) THEN NULL WHEN + COALESCE ( + - 28, - 52 ) * + 37 THEN NULL ELSE COUNT ( * ) + - ( 93 ) * + MAX ( ALL + 86 + 1 ) END * ( - 26 ) + 80 ) AS col1
----
-5

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

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

query I rowsort
SELECT - - 16 * + 95 + 6
----
1526

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6796
SELECT COALESCE ( - 18, 99 DIV - - 9 * - 69 * 77 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-6796
SELECT COALESCE ( - 18, 99 / - - 9 * - 69 * 77 ) AS col1
----
-18

query I rowsort
SELECT ALL + 61 * - - 60 * - 66 * - 83 AS col2
----
20049480

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6799
SELECT + COALESCE ( 15, 4 * + 26 / + 44 + - 8 - + MIN( 70 ) + + 14 * 99 + - 39 * COUNT( * ) * 5 * + 46, - + 22 * CASE WHEN NOT NULL IS NOT NULL THEN + 56 END * - COUNT( * ) + COUNT( * ) * ( SUM( 61 ) ) ) * + + 34 + + + 70 - 12 - - CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6799
SELECT + COALESCE ( 15, 4 * + 26 / + 44 + - 8 - + MIN ( 70 ) + + 14 * 99 + - 39 * COUNT ( * ) * 5 * + 46, - + 22 * CASE WHEN NOT NULL IS NOT NULL THEN + 56 END * - COUNT ( * ) + COUNT ( * ) * ( SUM ( 61 ) ) ) * + + 34 + + + 70 - 12 - - CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT COALESCE ( 63, - 4 )
----
63

query I rowsort
SELECT - 59 - 25
----
-84

query I rowsort
SELECT - 76 * - 17 * + 78 AS col0
----
100776

query I rowsort
SELECT ALL 82 * + - 45
----
-3690

query I rowsort
SELECT DISTINCT - 43 * - 36
----
1548

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT DISTINCT + ( + MIN( - 84 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT + ( + MIN ( - 84 ) )
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6806
SELECT DISTINCT + COALESCE ( - + 56, + 82 + - + COUNT( * ) + + 18 DIV + 17 )
----
-56

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT + COALESCE ( - + 56, + 82 + - + COUNT ( * ) + + 18 / + 17 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT + 65 * - COUNT( DISTINCT - - 91 ) - + 7 * 70 AS col0
----
-555

skipif mysql # not compatible
query I rowsort label-6807
SELECT + 65 * - COUNT ( DISTINCT - - 91 ) - + 7 * 70 AS col0
----
-555

onlyif mysql # DIV for integer division: 
query I rowsort label-6808
SELECT DISTINCT - 8 DIV 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT - 8 / 25 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6809
SELECT - 99 DIV + ( 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-6809
SELECT - 99 / + ( 83 )
----
-1

query I rowsort
SELECT - 10 * - + 75 * + 39
----
29250

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

skipif mysql # not compatible
query I rowsort label-6811
SELECT COUNT ( - 50 )
----
1

query I rowsort
SELECT + 92 + - + 11
----
81

query I rowsort
SELECT + 51 - + 34
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6814
SELECT - 63 DIV 77 * - 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6814
SELECT - 63 / 77 * - 22 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT ALL - 90 + + - MIN( - 40 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL - 90 + + - MIN ( - 40 ) AS col1
----
-50

query II rowsort
SELECT ALL - 27 + - 49 AS col2, 29 * + + 90 AS col2
----
-76
2610

query I rowsort
SELECT - - 22 * + + 80 * - + 69 AS col0
----
-121440

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT DISTINCT - + 50 + - 12 + COUNT( ALL - + 28 ) * - - 57 + + + 77 col2
----
72

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT - + 50 + - 12 + COUNT ( ALL - + 28 ) * - - 57 + + + 77 col2
----
72

query I rowsort
SELECT - 71 - + CASE - 62 WHEN + 95 THEN NULL WHEN - 69 THEN NULL ELSE - 8 + + NULLIF ( - 38, - 20 ) END + 88 * - 43 + 13 * 23 AS col0
----
-3510

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT ALL 29 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL 29 / 56
----
0

query II rowsort
SELECT + + 6 * 51 AS col1, 6 + - ( 82 ) * 81 AS col1
----
306
-6636

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6823
SELECT ALL - 26 - - + 49 + 52 * 67 DIV + - NULLIF ( - 65, - 53 DIV + - 19 + - + 78 + - NULLIF ( 38, 12 + 4 ) + - 16 - - 27 + + 23 * - 72 )
----
76

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL - 26 - - + 49 + 52 * 67 / + - NULLIF ( - 65, - 53 / + - 19 + - + 78 + - NULLIF ( 38, 12 + 4 ) + - 16 - - 27 + + 23 * - 72 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT ALL + CASE 65 WHEN - 78 - + + 31 + - + 70 + + 33 THEN - + NULLIF ( + 3, + + 85 + - 51 ) + + - SUM( COALESCE ( - - ( + 2 ), + + 11 ) ) WHEN NULLIF ( COUNT( DISTINCT + 20 ), 91 ) THEN NULL END * 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL + CASE 65 WHEN - 78 - + + 31 + - + 70 + + 33 THEN - + NULLIF ( + 3, + + 85 + - 51 ) + + - SUM ( COALESCE ( - - ( + 2 ), + + 11 ) ) WHEN NULLIF ( COUNT ( DISTINCT + 20 ), 91 ) THEN NULL END * 42 AS col1
----
NULL

query I rowsort
SELECT + + 46 - + + 43 AS col2
----
3

query I rowsort
SELECT DISTINCT 13 * 71
----
923

query I rowsort
SELECT + + ( - 27 ) * 95 AS col0
----
-2565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6828
SELECT + 24 / 16 + + MAX( DISTINCT ( + 81 ) ) * 39 * + CAST( NULL AS SIGNED ) + + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6828
SELECT + 24 / 16 + + MAX ( DISTINCT ( + 81 ) ) * 39 * + CAST ( NULL AS INTEGER ) + + + 42
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6829
SELECT + COUNT ( * ) / - + 65 * + + 67
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6830
SELECT - CAST( + 54 AS SIGNED ) * - 9 AS col0
----
486

skipif mysql # not compatible
query I rowsort label-6830
SELECT - CAST ( + 54 AS INTEGER ) * - 9 AS col0
----
486

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT - CASE COUNT( * ) WHEN + 44 THEN NULL WHEN - 17 * - + ( + + 18 ) - + 92 THEN NULL ELSE - + 51 END - + MIN( - + 32 ) * + 86 + COUNT( * ) AS col1
----
2804

skipif mysql # not compatible
query I rowsort label-6832
SELECT - CASE COUNT ( * ) WHEN + 44 THEN NULL WHEN - 17 * - + ( + + 18 ) - + 92 THEN NULL ELSE - + 51 END - + MIN ( - + 32 ) * + 86 + COUNT ( * ) AS col1
----
2804

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL + MAX( DISTINCT + 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL + MAX ( DISTINCT + 68 ) AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6834
SELECT DISTINCT COALESCE ( - MAX( - 80 ), + ( COUNT( * ) ) - - 85 + CAST( NULL AS SIGNED ) - - + 18 * 53 * + - NULLIF ( - + MAX( - + 90 ), - 98 + + 48 + + + ( - ( CASE + 88 WHEN - CAST( ( 33 ) AS SIGNED ) * + 22 * ( + - 61 ) THEN + NULLIF ( 70, + 11 ) WHEN + 15 * 98 - + 21 THEN NULL ELSE - 59 * - CAST( - 50 AS SIGNED ) END ) ) - 53 * 11 ), 8 * + ( - 59 * - ( 6 ) ) ) * + 47 + + ( + 58 + 9 ) * - 16 col0
----
2688

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT COALESCE ( - MAX ( - 80 ), + ( COUNT ( * ) ) - - 85 + CAST ( NULL AS INTEGER ) - - + 18 * 53 * + - NULLIF ( - + MAX ( - + 90 ), - 98 + + 48 + + + ( - ( CASE + 88 WHEN - CAST ( ( 33 ) AS INTEGER ) * + 22 * ( + - 61 ) THEN + NULLIF ( 70, + 11 ) WHEN + 15 * 98 - + 21 THEN NULL ELSE - 59 * - CAST ( - 50 AS INTEGER ) END ) ) - 53 * 11 ), 8 * + ( - 59 * - ( 6 ) ) ) * + 47 + + ( + 58 + 9 ) * - 16 col0
----
2688

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

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

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

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

query I rowsort
SELECT - 93 * 79
----
-7347

query I rowsort
SELECT - 51 + - 37 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT COALESCE ( + 88, 11 * - COUNT( * ) * - + 52 * - + 45 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-6840
SELECT COALESCE ( + 88, 11 * - COUNT ( * ) * - + 52 * - + 45 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6841
SELECT - ( - - 87 ) + - 19 + + 22 + - 10 + - + 83 * + 11 * - ( + 42 ) * + 78, + COUNT( * ) + + 40 + - 89 * + COUNT( ALL + 14 ) AS col2
----
2990894
-48

skipif mysql # not compatible
query II rowsort label-6841
SELECT - ( - - 87 ) + - 19 + + 22 + - 10 + - + 83 * + 11 * - ( + 42 ) * + 78, + COUNT ( * ) + + 40 + - 89 * + COUNT ( ALL + 14 ) AS col2
----
2990894
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-6842
SELECT 85 AS col2, SUM( ALL 43 ) AS col1
----
85
43

skipif mysql # not compatible
query II rowsort label-6842
SELECT 85 AS col2, SUM ( ALL 43 ) AS col1
----
85
43

query I rowsort
SELECT - 56 * - 93 + - 48 + - + 77 + 63 * 81 AS col0
----
10186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6844
SELECT ALL + - CAST( + - 21 AS SIGNED ) + + 16 * + 71 AS col0
----
1157

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL + - CAST ( + - 21 AS INTEGER ) + + 16 * + 71 AS col0
----
1157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6845
SELECT CASE + NULLIF ( + 31, 53 + - 52 + 6 * - 11 * CAST( NULL AS SIGNED ) ) WHEN MIN( ALL 52 ) * 25 * - 58 THEN + COUNT( * ) ELSE - 92 END + MIN( + + 61 )
----
-31

skipif mysql # not compatible
query I rowsort label-6845
SELECT CASE + NULLIF ( + 31, 53 + - 52 + 6 * - 11 * CAST ( NULL AS INTEGER ) ) WHEN MIN ( ALL 52 ) * 25 * - 58 THEN + COUNT ( * ) ELSE - 92 END + MIN ( + + 61 )
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ALL + - 85 * 23 + 85 + - ( + MAX( ALL - 78 ) ) col0
----
-1792

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL + - 85 * 23 + 85 + - ( + MAX ( ALL - 78 ) ) col0
----
-1792

query I rowsort
SELECT 21 * + + 9 AS col1
----
189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6849
SELECT DISTINCT 54 AS col1, - 55 * - CASE - - 75 WHEN - COUNT( * ) * - + 63 * + 69 THEN - ( + 45 ) * + 80 * 70 * + CAST( - MAX( DISTINCT NULLIF ( - 39, 5 ) ) AS SIGNED ) ELSE + 21 END
----
54
1155

skipif mysql # not compatible
query II rowsort label-6849
SELECT DISTINCT 54 AS col1, - 55 * - CASE - - 75 WHEN - COUNT ( * ) * - + 63 * + 69 THEN - ( + 45 ) * + 80 * 70 * + CAST ( - MAX ( DISTINCT NULLIF ( - 39, 5 ) ) AS INTEGER ) ELSE + 21 END
----
54
1155

query I rowsort
SELECT ALL - + 72 * + 74 * - + 11
----
58608

query I rowsort
SELECT 39 + + 8 AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT - 19 + + CASE - 60 WHEN + 46 THEN 11 * + 50 / 7 * - + AVG ( - 58 ) END * + CAST( 10 AS SIGNED ) - - CAST( 95 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT - 19 + + CASE - 60 WHEN + 46 THEN 11 * + 50 / 7 * - + AVG ( - 58 ) END * + CAST ( 10 AS INTEGER ) - - CAST ( 95 AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + 72 AS col2, ( + + 97 )
----
72
97

query I rowsort
SELECT ALL - + 80 * 98
----
-7840

query I rowsort
SELECT - 60 * - 15 * - - 42 AS col1
----
37800

query I rowsort
SELECT + 69 + + + 54 AS col0
----
123

query II rowsort
SELECT ALL 94, - 20 AS col1
----
94
-20

query II rowsort
SELECT 70 * 34 AS col2, 62 AS col2
----
2380
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT ALL 47 * + - COUNT( * ) * 53 col0
----
-2491

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL 47 * + - COUNT ( * ) * 53 col0
----
-2491

query II rowsort
SELECT DISTINCT - 44, 15 * - + 64 AS col1
----
-44
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT ALL - 71 + 64 * + MIN( DISTINCT - 71 )
----
-4615

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL - 71 + 64 * + MIN ( DISTINCT - 71 )
----
-4615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6862
SELECT DISTINCT 94 + + CAST( - 37 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT 94 + + CAST ( - 37 AS INTEGER )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT ALL COUNT( * ) + 62 - + 26
----
37

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL COUNT ( * ) + 62 - + 26
----
37

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6865
SELECT NULLIF ( 46, 17 ) DIV - - CASE - 59 WHEN - 28 + 1 THEN + 74 ELSE + COUNT( * ) * COUNT( * ) + 9 END AS col1, - COUNT( + 20 ) AS col2
----
4
-1

skipif mysql # not compatible
query II rowsort label-6865
SELECT NULLIF ( 46, 17 ) / - - CASE - 59 WHEN - 28 + 1 THEN + 74 ELSE + COUNT ( * ) * COUNT ( * ) + 9 END AS col1, - COUNT ( + 20 ) AS col2
----
4
-1

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

query I rowsort
SELECT ALL 5 + 57
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6868
SELECT + 57 * - CASE + 8 WHEN + 81 * - 22 * + - COUNT( * ) + - CAST( NULL AS SIGNED ) THEN - ( - 90 ) ELSE - CAST( NULL AS SIGNED ) + + - COUNT( * ) END - - 80 + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6868
SELECT + 57 * - CASE + 8 WHEN + 81 * - 22 * + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) THEN - ( - 90 ) ELSE - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) END - - 80 + - 43
----
NULL

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

query II rowsort
SELECT ALL - 56 col2, + ( - 94 ) * - ( + + 39 )
----
-56
3666

query II rowsort
SELECT + 75 AS col2, + 8
----
75
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT DISTINCT 75 + + COUNT( * ) + 17 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT 75 + + COUNT ( * ) + 17 AS col0
----
93

query I rowsort
SELECT ALL ( - ( 91 ) ) + 45 * - + 25 - + 81 + 86 AS col2
----
-1211

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT ( MAX( 36 ) ) * + - 68 + - - 52 - + 91 - + 70 - 96 AS col0
----
-2653

skipif mysql # not compatible
query I rowsort label-6874
SELECT ( MAX ( 36 ) ) * + - 68 + - - 52 - + 91 - + 70 - 96 AS col0
----
-2653

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6875
SELECT 36 * 69 - 24 + + SUM( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT 36 * 69 - 24 + + SUM ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL - 63 * 4 AS col1
----
-252

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

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

query I rowsort
SELECT ALL 75 - 80 * - 38 AS col2
----
3115

onlyif mysql # aggregate syntax: 
query II rowsort label-6879
SELECT MIN( ALL + - 32 ) * + MIN( DISTINCT - 69 ) AS col0, + 60 AS col1
----
2208
60

skipif mysql # not compatible
query II rowsort label-6879
SELECT MIN ( ALL + - 32 ) * + MIN ( DISTINCT - 69 ) AS col0, + 60 AS col1
----
2208
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6880
SELECT - + COALESCE ( 97, - 27 DIV 45 DIV COUNT( * ) )
----
-97

skipif mysql # not compatible
query I rowsort label-6880
SELECT - + COALESCE ( 97, - 27 / 45 / COUNT ( * ) )
----
-97

query III rowsort
SELECT + 65 AS col0, + 53 AS col0, - 9
----
65
53
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6882
SELECT ALL - - 20 - + + 45 col2, + COUNT( * ) * - CAST( + 23 AS SIGNED ) + 60 - MAX( ALL - - 99 ) + + COUNT( * ) * 18 * 35 + - 13
----
-25
555

skipif mysql # not compatible
query II rowsort label-6882
SELECT ALL - - 20 - + + 45 col2, + COUNT ( * ) * - CAST ( + 23 AS INTEGER ) + 60 - MAX ( ALL - - 99 ) + + COUNT ( * ) * 18 * 35 + - 13
----
-25
555

query I rowsort
SELECT 77 * + 56 AS col0
----
4312

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT - 90 DIV - + 99
----
0

skipif mysql # not compatible
query I rowsort label-6884
SELECT - 90 / - + 99
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6886
SELECT - 8 DIV 34 * + 9 - 61 + COUNT( * ) * - 16 col0, - 48
----
-77
-48

skipif mysql # not compatible
query II rowsort label-6886
SELECT - 8 / 34 * + 9 - 61 + COUNT ( * ) * - 16 col0, - 48
----
-77
-48

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6888
SELECT COUNT( * ) AS col1, + 89 * - 50
----
1
-4450

skipif mysql # not compatible
query II rowsort label-6888
SELECT COUNT ( * ) AS col1, + 89 * - 50
----
1
-4450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6889
SELECT - - NULLIF ( - - ( - + CAST( NULL AS SIGNED ) ), ( + 43 ) - + - 97 + + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6889
SELECT - - NULLIF ( - - ( - + CAST ( NULL AS INTEGER ) ), ( + 43 ) - + - 97 + + 15 )
----
NULL

query I rowsort
SELECT 33 + 16 AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6891
SELECT 92 * + COUNT( * ) + + 83 + 0 AS col0, - ( + + 27 ) * + CASE - 82 WHEN + - 38 THEN NULL WHEN - 83 THEN + 79 WHEN + ( 39 ) * + 0 + + CAST( NULL AS SIGNED ) THEN 88 END
----
175
NULL

skipif mysql # not compatible
query II rowsort label-6891
SELECT 92 * + COUNT ( * ) + + 83 + 0 AS col0, - ( + + 27 ) * + CASE - 82 WHEN + - 38 THEN NULL WHEN - 83 THEN + 79 WHEN + ( 39 ) * + 0 + + CAST ( NULL AS INTEGER ) THEN 88 END
----
175
NULL

query I rowsort
SELECT ALL + - 65 * - + 74 AS col1
----
4810

query II rowsort
SELECT ALL - 81, + 81 AS col0
----
-81
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6894
SELECT 25 + - 3 - 65 DIV CAST( + 34 AS SIGNED ) col2
----
21

skipif mysql # not compatible
query I rowsort label-6894
SELECT 25 + - 3 - 65 / CAST ( + 34 AS INTEGER ) col2
----
21

query I rowsort
SELECT ALL - 83 * + 18 AS col2
----
-1494

query I rowsort
SELECT 70 + + - ( - + 36 ) AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT ALL + 66 + + COUNT( DISTINCT - 81 ) col0
----
67

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL + 66 + + COUNT ( DISTINCT - 81 ) col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT ALL - 39 + + 64 + NULLIF ( - 51, SUM( ALL - - 66 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL - 39 + + 64 + NULLIF ( - 51, SUM ( ALL - - 66 ) )
----
-26

query I rowsort
SELECT ALL 0 + + 6 + - 92 * - + 90 * - 89 + + 70 AS col2
----
-736844

query I rowsort
SELECT ALL - 66 + + ( + - 44 )
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6901
SELECT DISTINCT - COALESCE ( - 28, 64 DIV + COUNT( * ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT - COALESCE ( - 28, 64 / + COUNT ( * ) ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6902
SELECT 76 + - COUNT( * ) - + 86 * + - CASE - - 94 WHEN - 13 THEN + - 71 ELSE NULL END, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6902
SELECT 76 + - COUNT ( * ) - + 86 * + - CASE - - 94 WHEN - 13 THEN + - 71 ELSE NULL END, COUNT ( * ) AS col2
----
NULL
1

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

skipif mysql # not compatible
query I rowsort label-6903
SELECT ( + + CAST ( NULL AS INTEGER ) ) * 77 - - + 77 * + SUM ( DISTINCT 5 ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6904
SELECT + 90 * - - 32 + - + 46 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6904
SELECT + 90 * - - 32 + - + 46 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT ALL CASE - 94 WHEN + + 34 / + 9 THEN NULL WHEN 84 THEN NULL ELSE 95 + 84 * + 62 + - COUNT( * ) END * ( + 89 )
----
471878

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL CASE - 94 WHEN + + 34 / + 9 THEN NULL WHEN 84 THEN NULL ELSE 95 + 84 * + 62 + - COUNT ( * ) END * ( + 89 )
----
471878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6906
SELECT ALL - COALESCE ( + NULLIF ( 53, + 85 ), - + ( + CAST( NULL AS SIGNED ) ) ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL - COALESCE ( + NULLIF ( 53, + 85 ), - + ( + CAST ( NULL AS INTEGER ) ) ) AS col1
----
-53

query I rowsort
SELECT ALL - 42 * + - 68 + + 78 AS col0
----
2934

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6908
SELECT DISTINCT + 77 DIV COALESCE ( - 40, + - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT + 77 / COALESCE ( - 40, + - COUNT ( * ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT DISTINCT + 97 * - - ( - - 43 ) * + + 8 * - COUNT( * ) + - + 60 - - 53 + - + 80 AS col0
----
-33455

skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT + 97 * - - ( - - 43 ) * + + 8 * - COUNT ( * ) + - + 60 - - 53 + - + 80 AS col0
----
-33455

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( + ( + - 13 ), - 13 ) * 49 - - + 76
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6912
SELECT DISTINCT ( - NULLIF ( + CAST( - + 0 AS SIGNED ), - 66 ) ) * - 77
----
0

skipif mysql # not compatible
query I rowsort label-6912
SELECT DISTINCT ( - NULLIF ( + CAST ( - + 0 AS INTEGER ), - 66 ) ) * - 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6913
SELECT - - 90 * CASE 7 WHEN 0 THEN - AVG ( ALL - - 81 ) + + 96 * CAST( NULL AS SIGNED ) / - 85 ELSE NULL END * 30 + 45 + - COUNT( * ) + + 36 * COUNT( * ) * - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-6913
SELECT - - 90 * CASE 7 WHEN 0 THEN - AVG ( ALL - - 81 ) + + 96 * CAST ( NULL AS INTEGER ) / - 85 ELSE NULL END * 30 + 45 + - COUNT ( * ) + + 36 * COUNT ( * ) * - 57
----
NULL

query I rowsort
SELECT + - ( + - 43 ) * - + 13
----
-559

query I rowsort
SELECT - - ( 68 ) * 15 + + + 27
----
1047

onlyif mysql # aggregate syntax: 
query II rowsort label-6916
SELECT + + COUNT( * ) * 70, - COUNT( * ) + - - 67 AS col1
----
70
66

skipif mysql # not compatible
query II rowsort label-6916
SELECT + + COUNT ( * ) * 70, - COUNT ( * ) + - - 67 AS col1
----
70
66

onlyif mysql # DIV for integer division: 
query I rowsort label-6917
SELECT + 51 + - 23 DIV - - 78 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-6917
SELECT + 51 + - 23 / - - 78 AS col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6918
SELECT + 78 * - COUNT( DISTINCT + CASE - 39 WHEN + 25 + CAST( NULL AS DECIMAL ) THEN ( - 12 ) + 11 END )
----
0

skipif mysql # not compatible
query I rowsort label-6918
SELECT + 78 * - COUNT ( DISTINCT + CASE - 39 WHEN + 25 + CAST ( NULL AS REAL ) THEN ( - 12 ) + 11 END )
----
0

query I rowsort
SELECT + + 58 + - 64 + 78
----
72

query I rowsort
SELECT + - 83 + - 45 AS col2
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6921
SELECT COUNT( - - CAST( + - 95 AS SIGNED ) ) AS col1, 75 * + + 77 + + - 22
----
1
5753

skipif mysql # not compatible
query II rowsort label-6921
SELECT COUNT ( - - CAST ( + - 95 AS INTEGER ) ) AS col1, 75 * + + 77 + + - 22
----
1
5753

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6922
SELECT DISTINCT - 45 * + COUNT( * ) - - + ( 92 ) + + COUNT( * ) * + + 7 * - 22 AS col2, + 78 * + - 28 + - 80 - + + 60 DIV 50
----
-107
-2265

skipif mysql # not compatible
query II rowsort label-6922
SELECT DISTINCT - 45 * + COUNT ( * ) - - + ( 92 ) + + COUNT ( * ) * + + 7 * - 22 AS col2, + 78 * + - 28 + - 80 - + + 60 / 50
----
-107
-2265

query II rowsort
SELECT ALL 64 + - 6, 34 AS col2
----
58
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6924
SELECT + ( - - 49 ) AS col0, - ( - + 86 ) * 72 + - + 44 - 48 + COUNT( * )
----
49
6101

skipif mysql # not compatible
query II rowsort label-6924
SELECT + ( - - 49 ) AS col0, - ( - + 86 ) * 72 + - + 44 - 48 + COUNT ( * )
----
49
6101

query I rowsort
SELECT DISTINCT - + 0 + - - 85 * 90 + - 19
----
7631

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6927
SELECT ALL - 7 + CAST( + 66 AS SIGNED ) + - 60 + - + 75 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL - 7 + CAST ( + 66 AS INTEGER ) + - 60 + - + 75 AS col1
----
-76

query I rowsort
SELECT ALL 12 + - - NULLIF ( - + 68, - 40 ) AS col2
----
-56

query I rowsort
SELECT - COALESCE ( - - 78, 15 + 61, 73 )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-6930
SELECT - 82 DIV 11 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6930
SELECT - 82 / 11 AS col0
----
-7

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

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

query I rowsort
SELECT - 0 * - + 8 * - 47 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT DISTINCT - 62 DIV 44
----
-1

skipif mysql # not compatible
query I rowsort label-6933
SELECT DISTINCT - 62 / 44
----
-1

query II rowsort
SELECT - ( - - ( + 59 ) ) AS col1, + 15
----
-59
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6935
SELECT - 46 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-6935
SELECT - 46 / 92
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6938
SELECT ALL 36 DIV + + ( - + 43 ) + 85
----
85

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL 36 / + + ( - + 43 ) + 85
----
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT ALL + ( + - 42 ) * + ( 89 ) - - COUNT( * )
----
-3737

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL + ( + - 42 ) * + ( 89 ) - - COUNT ( * )
----
-3737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6942
SELECT - 4 * + MIN( + CAST( + 65 AS SIGNED ) ) AS col1
----
-260

skipif mysql # not compatible
query I rowsort label-6942
SELECT - 4 * + MIN ( + CAST ( + 65 AS INTEGER ) ) AS col1
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT 73 * + COUNT( * ) - 58 * + NULLIF ( - + 66, - + COUNT( * ) ) + - - 22 AS col2
----
3923

skipif mysql # not compatible
query I rowsort label-6943
SELECT 73 * + COUNT ( * ) - 58 * + NULLIF ( - + 66, - + COUNT ( * ) ) + - - 22 AS col2
----
3923

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6945
SELECT ALL + CAST( + - 83 AS SIGNED ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL + CAST ( + - 83 AS INTEGER ) AS col1
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT - 10 DIV - 38 * + 6 - - 76 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6946
SELECT - 10 / - 38 * + 6 - - 76 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT - NULLIF ( + 10, + 44 ) * + COUNT( * ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6947
SELECT - NULLIF ( + 10, + 44 ) * + COUNT ( * ) AS col1
----
-10

query I rowsort
SELECT + + 23 + - - 58
----
81

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

query I rowsort
SELECT DISTINCT 84 * - 48 col2
----
-4032

query I rowsort
SELECT ALL + 68 * + COALESCE ( - 17, + 66 )
----
-1156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6952
SELECT - ( - CASE + + CAST( 35 AS SIGNED ) WHEN 44 * + - 33 THEN - NULLIF ( - 63, - + CAST( - + 45 AS SIGNED ) * + + NULLIF ( + 68, - 59 + - 38 ) + 36 + - - 62 * - 48 ) + - 67 END ) AS col2, - 39 AS col2
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-6952
SELECT - ( - CASE + + CAST ( 35 AS INTEGER ) WHEN 44 * + - 33 THEN - NULLIF ( - 63, - + CAST ( - + 45 AS INTEGER ) * + + NULLIF ( + 68, - 59 + - 38 ) + 36 + - - 62 * - 48 ) + - 67 END ) AS col2, - 39 AS col2
----
NULL
-39

query II rowsort
SELECT + 50, + 17 * + + ( + - 74 ) - + 78 + - 84 + 33 * - 74 AS col1
----
50
-3862

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT + + NULLIF ( + + 26, - + 7 + 40 - - NULLIF ( + 80, 34 / + + ( + 81 ) ) + - + 69 - ( 47 ) - + MIN( ALL - 96 ) * - SUM( DISTINCT + 54 ) / - 71 - - 54 ) - + 52
----
-26

skipif mysql # not compatible
query I rowsort label-6954
SELECT + + NULLIF ( + + 26, - + 7 + 40 - - NULLIF ( + 80, 34 / + + ( + 81 ) ) + - + 69 - ( 47 ) - + MIN ( ALL - 96 ) * - SUM ( DISTINCT + 54 ) / - 71 - - 54 ) - + 52
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-6955
SELECT - + 18 DIV + - 53
----
0

skipif mysql # not compatible
query I rowsort label-6955
SELECT - + 18 / + - 53
----
0

query II rowsort
SELECT - 38 * + ( + 84 ) + + ( - 69 ) - 70, 87 col1
----
-3331
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6957
SELECT + 12 * 4 DIV 2 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6957
SELECT + 12 * 4 / 2 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT DISTINCT + 7 * + 49 * + CASE - 49 WHEN - 51 THEN NULL WHEN - 60 - + 45 + + 75 THEN NULL WHEN 21 THEN NULL ELSE + + 37 END + - 0 + + + 47 + - 50 + - 17 * - COUNT( * ) AS col1
----
12705

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT + 7 * + 49 * + CASE - 49 WHEN - 51 THEN NULL WHEN - 60 - + 45 + + 75 THEN NULL WHEN 21 THEN NULL ELSE + + 37 END + - 0 + + + 47 + - 50 + - 17 * - COUNT ( * ) AS col1
----
12705

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT - COUNT( * ) * + NULLIF ( + + 23, 23 ) + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6959
SELECT - COUNT ( * ) * + NULLIF ( + + 23, 23 ) + 2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6960
SELECT + 65 DIV + - COUNT( * ) + 52 AS col0, 27 * NULLIF ( + COUNT( * ), - - 33 * + 28 DIV - COALESCE ( - 57, + 2 ) ) * - COUNT( * ) + - 81 - + + CASE + - 47 WHEN - COUNT( * ) + - 21 + 12 THEN COUNT( * ) END
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-6960
SELECT + 65 / + - COUNT ( * ) + 52 AS col0, 27 * NULLIF ( + COUNT ( * ), - - 33 * + 28 / - COALESCE ( - 57, + 2 ) ) * - COUNT ( * ) + - 81 - + + CASE + - 47 WHEN - COUNT ( * ) + - 21 + 12 THEN COUNT ( * ) END
----
-13
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6961
SELECT ALL 73 * - 44 + - CAST( - - 68 AS SIGNED ) + + 37 + + 66 DIV + + MIN( - 41 ) + + + 62 * - - 17
----
-2190

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL 73 * - 44 + - CAST ( - - 68 AS INTEGER ) + + 37 + + 66 / + + MIN ( - 41 ) + + + 62 * - - 17
----
-2190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6962
SELECT ALL - ( - 42 ) * - + 10 + 77 DIV + ( COUNT( * ) )
----
-343

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL - ( - 42 ) * - + 10 + 77 / + ( COUNT ( * ) )
----
-343

query I rowsort
SELECT DISTINCT + 78 * - - 70 + - 70
----
5390

query II rowsort
SELECT - 24 AS col0, 87
----
-24
87

query I rowsort
SELECT ALL - 91 + - 86 * - 17
----
1371

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT - CASE + MAX( + ( 28 ) ) WHEN COUNT( * ) THEN + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6966
SELECT - CASE + MAX ( + ( 28 ) ) WHEN COUNT ( * ) THEN + 52 END
----
NULL

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

query I rowsort
SELECT ALL 65 * - 24
----
-1560

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6969
SELECT + 70 + - CASE + - 14 WHEN CASE - ( - 25 ) WHEN - CASE + - 33 WHEN - CASE 51 WHEN - 93 THEN ( - 8 ) END / 22 * - 60 THEN + + 27 END * 4 + + AVG ( DISTINCT - - 4 ) THEN + 88 END THEN NULL ELSE + AVG ( ALL - + 23 ) + - - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6969
SELECT + 70 + - CASE + - 14 WHEN CASE - ( - 25 ) WHEN - CASE + - 33 WHEN - CASE 51 WHEN - 93 THEN ( - 8 ) END / 22 * - 60 THEN + + 27 END * 4 + + AVG ( DISTINCT - - 4 ) THEN + 88 END THEN NULL ELSE + AVG ( ALL - + 23 ) + - - CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT - 76 * 3 col1
----
-228

onlyif mysql # aggregate syntax: 
query II rowsort label-6971
SELECT ALL 82 * + - 14 AS col2, - ( + COUNT( * ) )
----
-1148
-1

skipif mysql # not compatible
query II rowsort label-6971
SELECT ALL 82 * + - 14 AS col2, - ( + COUNT ( * ) )
----
-1148
-1

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6974
SELECT ALL 29 * + COUNT( * ) DIV + - 79 * COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL 29 * + COUNT ( * ) / + - 79 * COUNT ( * ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT DISTINCT 87 - + COUNT( - + 97 )
----
86

skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT 87 - + COUNT ( - + 97 )
----
86

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6978
SELECT + 17 + 92 * - COUNT ( * ) AS col1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6979
SELECT 30 + - 66 DIV + 73
----
30

skipif mysql # not compatible
query I rowsort label-6979
SELECT 30 + - 66 / + 73
----
30

query I rowsort
SELECT 1 * - 63
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6981
SELECT 36 * COALESCE ( + + 1, + 60 + - 30 ) * - CAST( 96 AS SIGNED ) DIV COALESCE ( + + COUNT( * ), 83 + + 32, + 20 * - 16 * 21 * + 48 + - 23 * + - MAX( DISTINCT 90 ) ) + + - 45
----
-3501

skipif mysql # not compatible
query I rowsort label-6981
SELECT 36 * COALESCE ( + + 1, + 60 + - 30 ) * - CAST ( 96 AS INTEGER ) / COALESCE ( + + COUNT ( * ), 83 + + 32, + 20 * - 16 * 21 * + 48 + - 23 * + - MAX ( DISTINCT 90 ) ) + + - 45
----
-3501

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6982
SELECT - 6 DIV 70 + - NULLIF ( 46, - + 39 * 89 ) + + 83 * + NULLIF ( 70, 94 - - COUNT( * ) ) AS col1
----
5764

skipif mysql # not compatible
query I rowsort label-6982
SELECT - 6 / 70 + - NULLIF ( 46, - + 39 * 89 ) + + 83 * + NULLIF ( 70, 94 - - COUNT ( * ) ) AS col1
----
5764

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

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

query I rowsort
SELECT 77 * 51 + CASE - + 91 WHEN 80 THEN 68 * 47 + + + 73 * - 64 + - + 63 END
----
NULL

query I rowsort
SELECT 55 - + 98 + - 63 col0
----
-106

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6987
SELECT DISTINCT 80 / - 15 / + CAST( NULL AS SIGNED ) * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6987
SELECT DISTINCT 80 / - 15 / + CAST ( NULL AS INTEGER ) * 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT ALL + - NULLIF ( - SUM( - 42 ), - + 92 ) * + ( - - 63 ) * - SUM( 26 ) AS col1
----
68796

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL + - NULLIF ( - SUM ( - 42 ), - + 92 ) * + ( - - 63 ) * - SUM ( 26 ) AS col1
----
68796

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT DISTINCT + + NULLIF ( - COUNT( * ), + 3 ) * - 43 + - 20 + - + 5
----
18

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT + + NULLIF ( - COUNT ( * ), + 3 ) * - 43 + - 20 + - + 5
----
18

query III rowsort
SELECT ALL - - 46 * - + 94, 32 + 32 * + + 80 AS col2, + - 19 AS col1
----
-4324
2592
-19

query I rowsort
SELECT - 70 * + 89
----
-6230

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6992
SELECT + CASE 68 WHEN - 15 + - - 20 * - COUNT( * ) / + 70 THEN + COALESCE ( + + 89, 81 ) + - CAST( NULL AS DECIMAL ) WHEN NULLIF ( + + 96, - + MAX( DISTINCT 46 ) ) / + + 46 THEN NULL END * - + 61 + - + 70 / - 95 + + 32 AS col0, - 58
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-6992
SELECT + CASE 68 WHEN - 15 + - - 20 * - COUNT ( * ) / + 70 THEN + COALESCE ( + + 89, 81 ) + - CAST ( NULL AS REAL ) WHEN NULLIF ( + + 96, - + MAX ( DISTINCT 46 ) ) / + + 46 THEN NULL END * - + 61 + - + 70 / - 95 + + 32 AS col0, - 58
----
NULL
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT ALL + + 34 + + CASE + 24 WHEN 88 + + COUNT( * ) + - + 32 - - COUNT( * ) - - 45 * + SUM( DISTINCT + 71 ) * - + COUNT( * ) THEN - COUNT( - 35 ) + + - 29 END / NULLIF ( + COUNT( * ), ( + ( 91 ) ) ) + + 82 + + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL + + 34 + + CASE + 24 WHEN 88 + + COUNT ( * ) + - + 32 - - COUNT ( * ) - - 45 * + SUM ( DISTINCT + 71 ) * - + COUNT ( * ) THEN - COUNT ( - 35 ) + + - 29 END / NULLIF ( + COUNT ( * ), ( + ( 91 ) ) ) + + 82 + + 24 AS col2
----
NULL

query I rowsort
SELECT COALESCE ( 71, 94 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-6995
SELECT ALL - COUNT( DISTINCT - 91 ), - 95 col1
----
-1
-95

skipif mysql # not compatible
query II rowsort label-6995
SELECT ALL - COUNT ( DISTINCT - 91 ), - 95 col1
----
-1
-95

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

query I rowsort
SELECT ALL 16 + + - 22 + - - 29 AS col1
----
23

query I rowsort
SELECT + + 38 * - + 38 + + - 7 AS col1
----
-1451

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6999
SELECT ALL - 51 * - 17 - + + CAST( - 64 AS SIGNED )
----
931

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL - 51 * - 17 - + + CAST ( - 64 AS INTEGER )
----
931

query I rowsort
SELECT 0 + - + 25 * - 19
----
475

query I rowsort
SELECT 46 + - + 94
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT ALL + COUNT( * ) + + 76 + + 51 * - 78
----
-3901

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL + COUNT ( * ) + + 76 + + 51 * - 78
----
-3901

query I rowsort
SELECT DISTINCT - 53 + - 5 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7004
SELECT - 46 AS col1, CASE WHEN NOT + 56 IN ( - 53 + + 86 * + 77, - 52 * + 24 * 53 + + - 31, - 86, - + 65 * COUNT( * ) * - AVG ( 77 ) ) THEN 88 END AS col0
----
-46
88

skipif mysql # not compatible
query II rowsort label-7004
SELECT - 46 AS col1, CASE WHEN NOT + 56 IN ( - 53 + + 86 * + 77, - 52 * + 24 * 53 + + - 31, - 86, - + 65 * COUNT ( * ) * - AVG ( 77 ) ) THEN 88 END AS col0
----
-46
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7005
SELECT ALL - 8 * - MIN( DISTINCT 97 ) / ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL - 8 * - MIN ( DISTINCT 97 ) / ( - - CAST ( NULL AS INTEGER ) )
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7008
SELECT ALL NULLIF ( + COUNT( * ), - - 22 ) DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL NULLIF ( + COUNT ( * ), - - 22 ) / + 37
----
0

query II rowsort
SELECT ALL 23 AS col1, - 83 * + - 57 + + 80
----
23
4811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7010
SELECT 46 * + CAST( - 86 AS SIGNED ) * + SUM( DISTINCT - 54 )
----
213624

skipif mysql # not compatible
query I rowsort label-7010
SELECT 46 * + CAST ( - 86 AS INTEGER ) * + SUM ( DISTINCT - 54 )
----
213624

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT DISTINCT 10 * - SUM( ALL 50 )
----
-500

skipif mysql # not compatible
query I rowsort label-7011
SELECT DISTINCT 10 * - SUM ( ALL 50 )
----
-500

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

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

query I rowsort
SELECT ALL 39 * 21 * - ( - 14 ) AS col1
----
11466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7014
SELECT 36 * + CAST( - 32 AS SIGNED ) AS col2
----
-1152

skipif mysql # not compatible
query I rowsort label-7014
SELECT 36 * + CAST ( - 32 AS INTEGER ) AS col2
----
-1152

query I rowsort
SELECT ALL - 68 + + 14 AS col1
----
-54

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7017
SELECT 51, ( + 9 ) DIV ( 25 ) AS col0
----
51
0

skipif mysql # not compatible
query II rowsort label-7017
SELECT 51, ( + 9 ) / ( 25 ) AS col0
----
51
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7018
SELECT CAST( + COUNT( + 18 ) AS DECIMAL ) / - CASE - 29 WHEN - 76 * - 81 / + 43 * - COUNT( * ) THEN - 38 * + 99 + - 61 WHEN - 80 * + 44 + - - COALESCE ( + - 79, 54 + 19, + COUNT( * ) ) / 42 THEN NULL END, + 26 + - - 49 AS col1
----
NULL
75

skipif mysql # not compatible
query II rowsort label-7018
SELECT CAST ( + COUNT ( + 18 ) AS REAL ) / - CASE - 29 WHEN - 76 * - 81 / + 43 * - COUNT ( * ) THEN - 38 * + 99 + - 61 WHEN - 80 * + 44 + - - COALESCE ( + - 79, 54 + 19, + COUNT ( * ) ) / 42 THEN NULL END, + 26 + - - 49 AS col1
----
NULL
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7019
SELECT 27 DIV 89 * 55 + - 51
----
-51

skipif mysql # not compatible
query I rowsort label-7019
SELECT 27 / 89 * 55 + - 51
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT ALL + 46 + COUNT( * ) + + ( + 82 ) AS col1
----
129

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL + 46 + COUNT ( * ) + + ( + 82 ) AS col1
----
129

query I rowsort
SELECT DISTINCT + + 56 + 46 - - 39
----
141

query I rowsort
SELECT + ( + - 93 ) * + + 17 * 29 * + - 65 - + + 51
----
2980134

query I rowsort
SELECT ALL + 64 + + 22 AS col0
----
86

query I rowsort
SELECT + - COALESCE ( - 77, 44, + 78 )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7025
SELECT CAST( NULL AS SIGNED ) - - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7025
SELECT CAST ( NULL AS INTEGER ) - - 86 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7026
SELECT MAX ( ALL - 41 )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7027
SELECT ALL COUNT( * ) AS col2, - COUNT( * ) * + + COALESCE ( - 43, - CAST( 61 AS SIGNED ) + - - 96 + - 50 DIV 76 ) + 91 * - - NULLIF ( - 75, - 70 )
----
1
-6782

skipif mysql # not compatible
query II rowsort label-7027
SELECT ALL COUNT ( * ) AS col2, - COUNT ( * ) * + + COALESCE ( - 43, - CAST ( 61 AS INTEGER ) + - - 96 + - 50 / 76 ) + 91 * - - NULLIF ( - 75, - 70 )
----
1
-6782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7028
SELECT - 44 AS col2, CASE COALESCE ( 17, + - CASE + + COUNT( ALL - - 5 ) WHEN 24 + - CAST( + NULLIF ( + - 51, COUNT( * ) + + 2 * - 58 ) AS DECIMAL ) * + 54 * + 72 * + 15 - + 13 THEN - COUNT( * ) + + - 20 ELSE NULL END ) WHEN + 11 - - 46 THEN CAST( - NULLIF ( - 56, + - 27 ) AS SIGNED ) END
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-7028
SELECT - 44 AS col2, CASE COALESCE ( 17, + - CASE + + COUNT ( ALL - - 5 ) WHEN 24 + - CAST ( + NULLIF ( + - 51, COUNT ( * ) + + 2 * - 58 ) AS REAL ) * + 54 * + 72 * + 15 - + 13 THEN - COUNT ( * ) + + - 20 ELSE NULL END ) WHEN + 11 - - 46 THEN CAST ( - NULLIF ( - 56, + - 27 ) AS INTEGER ) END
----
-44
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7029
SELECT DISTINCT - COALESCE ( - CAST( 85 AS SIGNED ), CASE - NULLIF ( - 47, + 56 * COUNT( + + 55 ) * - CASE - - SUM( ( + + 70 ) ) WHEN - 18 THEN NULL WHEN - 61 THEN - + 56 WHEN + 70 THEN NULL END ) WHEN + + 91 + MAX( 54 ) THEN COUNT( DISTINCT + + 69 ) WHEN + + COALESCE ( CAST( - + 99 AS SIGNED ), + 11 ) * MAX( + 17 ) THEN NULL END, 34, - 79 * + 4 + - 30 ) * + 68
----
5780

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT - COALESCE ( - CAST ( 85 AS INTEGER ), CASE - NULLIF ( - 47, + 56 * COUNT ( + + 55 ) * - CASE - - SUM ( ( + + 70 ) ) WHEN - 18 THEN NULL WHEN - 61 THEN - + 56 WHEN + 70 THEN NULL END ) WHEN + + 91 + MAX ( 54 ) THEN COUNT ( DISTINCT + + 69 ) WHEN + + COALESCE ( CAST ( - + 99 AS INTEGER ), + 11 ) * MAX ( + 17 ) THEN NULL END, 34, - 79 * + 4 + - 30 ) * + 68
----
5780

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT 11 - NULLIF ( 50, - COUNT( * ) ) + + 96 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-7031
SELECT 11 - NULLIF ( 50, - COUNT ( * ) ) + + 96 AS col1
----
57

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

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

query I rowsort
SELECT - 5 + + 92 + - 84 col0
----
3

query I rowsort
SELECT - 64 * - + 21 AS col1
----
1344

query I rowsort
SELECT + 70 * + - 51 AS col2
----
-3570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7036
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - NULLIF ( + + MIN( DISTINCT - 47 ), - 37 * - - 35 - + CAST( - 2 AS SIGNED ) + 9 + + - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - NULLIF ( + + MIN ( DISTINCT - 47 ), - 37 * - - 35 - + CAST ( - 2 AS INTEGER ) + 9 + + - 88 )
----
NULL

query I rowsort
SELECT - 57 + 65 + 25
----
33

query I rowsort
SELECT + 63 - - 36 + + + 47
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT ALL COALESCE ( 87, - - COUNT( * ) )
----
87

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL COALESCE ( 87, - - COUNT ( * ) )
----
87

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

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

query I rowsort
SELECT ALL + 14 * + 12 AS col2
----
168

query I rowsort
SELECT - 10 + 67
----
57

query I rowsort
SELECT + 27 + 57
----
84

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT ALL + CAST( - 71 AS SIGNED ) + - 55 * + 73
----
-4086

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL + CAST ( - 71 AS INTEGER ) + - 55 * + 73
----
-4086

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT + NULLIF ( - + COUNT( * ), 83 ) + + 86 * + 23 AS col0
----
1977

skipif mysql # not compatible
query I rowsort label-7046
SELECT + NULLIF ( - + COUNT ( * ), 83 ) + + 86 * + 23 AS col0
----
1977

query II rowsort
SELECT ALL - ( + 17 ) * + 17 * - 29 + + ( + + 40 ) * + 70, 81 AS col2
----
11181
81

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

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

query I rowsort
SELECT DISTINCT + 69 + + 0 * - 48 col2
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7050
SELECT ALL - 11 + - + CAST( NULL AS DECIMAL ) * - ( + 4 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL - 11 + - + CAST ( NULL AS REAL ) * - ( + 4 ) AS col2
----
NULL

query I rowsort
SELECT + + 56 * + - 67 + 56 + 14
----
-3682

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT ALL 48 * 87 + + - 96 * + - COUNT( * ) * - SUM( DISTINCT + - 20 ) * + + 87 + - COUNT( DISTINCT - - 31 ) AS col1
----
171215

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL 48 * 87 + + - 96 * + - COUNT ( * ) * - SUM ( DISTINCT + - 20 ) * + + 87 + - COUNT ( DISTINCT - - 31 ) AS col1
----
171215

query I rowsort
SELECT DISTINCT + 2 * NULLIF ( - 42, + - 0 ) + 36 + + ( + 97 )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7054
SELECT DISTINCT + COUNT( * ) * - 37 - 85 + - 12 - + CASE 45 WHEN - - 89 * - 21 + - - 62 THEN - - NULLIF ( 63, 57 ) * COUNT( * ) * + 97 - - - 5 + - CASE - + 87 WHEN + ( - NULLIF ( 58, + CASE 24 WHEN 59 THEN - - 71 WHEN 22 + - - 40 * - 32 + - MAX( - 67 ) THEN NULL WHEN - 43 + - 36 * - - 75 THEN NULL END * 3 * - ( 96 ) ) ) + + 2 - - 4 THEN + 18 WHEN + ( 82 ) * - 26 THEN NULL END WHEN - 1 * + CASE 84 WHEN 19 * - COUNT( * ) + - 75 * ( - AVG ( 14 ) + - 15 ) THEN + 64 * NULLIF ( - 90, 65 ) ELSE 11 * 74 + - MAX( DISTINCT + 15 ) END THEN 71 ELSE 9 DIV 34 END * 69 AS col1
----
-134

skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT + COUNT ( * ) * - 37 - 85 + - 12 - + CASE 45 WHEN - - 89 * - 21 + - - 62 THEN - - NULLIF ( 63, 57 ) * COUNT ( * ) * + 97 - - - 5 + - CASE - + 87 WHEN + ( - NULLIF ( 58, + CASE 24 WHEN 59 THEN - - 71 WHEN 22 + - - 40 * - 32 + - MAX ( - 67 ) THEN NULL WHEN - 43 + - 36 * - - 75 THEN NULL END * 3 * - ( 96 ) ) ) + + 2 - - 4 THEN + 18 WHEN + ( 82 ) * - 26 THEN NULL END WHEN - 1 * + CASE 84 WHEN 19 * - COUNT ( * ) + - 75 * ( - AVG ( 14 ) + - 15 ) THEN + 64 * NULLIF ( - 90, 65 ) ELSE 11 * 74 + - MAX ( DISTINCT + 15 ) END THEN 71 ELSE 9 / 34 END * 69 AS col1
----
-134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7055
SELECT + COALESCE ( 10, 15 DIV - + COUNT( * ) + + 0 ) * - - 62 + COALESCE ( - COUNT( * ), - 91, - - 84 + + 52 - + + 98 * + 98, - 80 )
----
619

skipif mysql # not compatible
query I rowsort label-7055
SELECT + COALESCE ( 10, 15 / - + COUNT ( * ) + + 0 ) * - - 62 + COALESCE ( - COUNT ( * ), - 91, - - 84 + + 52 - + + 98 * + 98, - 80 )
----
619

query II rowsort
SELECT ALL - 84 * - 6, + 67 col2
----
504
67

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7058
SELECT ALL - 30 * CASE + 8 WHEN + CAST( - + MAX( - - 55 ) AS SIGNED ) * + + 84 * + 29 + COUNT( * ) THEN + 44 WHEN - 44 + + 5 THEN NULL WHEN + 63 * 11 - + 64 * + - 80 THEN NULL WHEN + 30 THEN NULL END - + - ( + 11 ) + - - ( ( + ( + - 45 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL - 30 * CASE + 8 WHEN + CAST ( - + MAX ( - - 55 ) AS INTEGER ) * + + 84 * + 29 + COUNT ( * ) THEN + 44 WHEN - 44 + + 5 THEN NULL WHEN + 63 * 11 - + 64 * + - 80 THEN NULL WHEN + 30 THEN NULL END - + - ( + 11 ) + - - ( ( + ( + - 45 ) ) ) AS col1
----
NULL

query I rowsort
SELECT + - 29 * 1 AS col1
----
-29

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

query I rowsort
SELECT + - 1 * - + 81 + 42 * + 54
----
2349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7062
SELECT + CASE + 85 WHEN + - CAST( NULL AS SIGNED ) * 79 THEN NULL WHEN + + 80 THEN NULL ELSE + - 27 END AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-7062
SELECT + CASE + 85 WHEN + - CAST ( NULL AS INTEGER ) * 79 THEN NULL WHEN + + 80 THEN NULL ELSE + - 27 END AS col1
----
-27

query I rowsort
SELECT + 34 + 26 * + + 22 AS col1
----
606

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT 32 * - + 76 - MAX( DISTINCT + - 44 ) - + - ( - 35 ) AS col2
----
-2423

skipif mysql # not compatible
query I rowsort label-7064
SELECT 32 * - + 76 - MAX ( DISTINCT + - 44 ) - + - ( - 35 ) AS col2
----
-2423

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL 78 * - 46 * - NULLIF ( + COUNT( * ), + 67 ) + + 4 + - + 99 / - 22 + + - CASE 49 WHEN - 37 + COUNT( * ) THEN - COUNT( * ) * - 56 WHEN - COUNT( * ) THEN NULL ELSE NULL END / 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL 78 * - 46 * - NULLIF ( + COUNT ( * ), + 67 ) + + 4 + - + 99 / - 22 + + - CASE 49 WHEN - 37 + COUNT ( * ) THEN - COUNT ( * ) * - 56 WHEN - COUNT ( * ) THEN NULL ELSE NULL END / 14 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7067
SELECT ALL + COUNT( * ) * + + MIN( + + 71 ) * + 31 - 1 AS col0, 27 AS col2
----
2200
27

skipif mysql # not compatible
query II rowsort label-7067
SELECT ALL + COUNT ( * ) * + + MIN ( + + 71 ) * + 31 - 1 AS col0, 27 AS col2
----
2200
27

query I rowsort
SELECT + 41 + 86
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-7069
SELECT + 0 DIV - ( - + 27 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7069
SELECT + 0 / - ( - + 27 ) AS col2
----
0

query I rowsort
SELECT ALL NULLIF ( + 35, - + 76 * - 28 ) * + 39 col1
----
1365

onlyif mysql # DIV for integer division: 
query I rowsort label-7071
SELECT 45 * + 71 + - COALESCE ( + CASE 15 WHEN + ( + 89 ) + + 65 THEN 27 WHEN - - ( 75 ) THEN NULL ELSE NULL END, - + 2 DIV - 75 ) * 2 + 5 + 81 + 81
----
3362

skipif mysql # not compatible
query I rowsort label-7071
SELECT 45 * + 71 + - COALESCE ( + CASE 15 WHEN + ( + 89 ) + + 65 THEN 27 WHEN - - ( 75 ) THEN NULL ELSE NULL END, - + 2 / - 75 ) * 2 + 5 + 81 + 81
----
3362

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT DISTINCT COALESCE ( - 89, - COUNT( * ), - 24 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT COALESCE ( - 89, - COUNT ( * ), - 24 ) AS col2
----
-89

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

skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL MIN ( ALL 88 ) * - + MAX ( CAST ( NULL AS INTEGER ) ) / + CAST ( NULL AS INTEGER ) - 34
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7074
SELECT MIN( - 49 ) AS col1, - 62 * 85
----
-49
-5270

skipif mysql # not compatible
query II rowsort label-7074
SELECT MIN ( - 49 ) AS col1, - 62 * 85
----
-49
-5270

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT - 70 + + - COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-7076
SELECT - 70 + + - COUNT ( * ) AS col2
----
-71

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

query I rowsort
SELECT - 87 + 31 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT ALL CASE - COUNT( * ) WHEN + + CASE - 4 WHEN 53 THEN NULL WHEN + 43 THEN NULL ELSE - 1 - + 83 + + 9 END THEN NULL ELSE 98 * - + NULLIF ( - 53, + 28 ) END AS col1
----
5194

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL CASE - COUNT ( * ) WHEN + + CASE - 4 WHEN 53 THEN NULL WHEN + 43 THEN NULL ELSE - 1 - + 83 + + 9 END THEN NULL ELSE 98 * - + NULLIF ( - 53, + 28 ) END AS col1
----
5194

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT - MIN( + 23 ) + - - 60 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-7081
SELECT - MIN ( + 23 ) + - - 60 AS col0
----
37

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

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

query II rowsort
SELECT ALL ( 32 ) AS col1, - 26 + 26 - - - 19
----
32
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-7084
SELECT - COUNT( * ) * - 94 AS col2, - 86
----
94
-86

skipif mysql # not compatible
query II rowsort label-7084
SELECT - COUNT ( * ) * - 94 AS col2, - 86
----
94
-86

query I rowsort
SELECT ALL + 82 + 38 * 11
----
500

query I rowsort
SELECT DISTINCT + 73 * - + 29 AS col2
----
-2117

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT - CASE - - 46 WHEN ( + COALESCE ( MAX( ALL + + 41 ), + 95 + 5 + + 25 ) ) - + 94 * - 47 * + + 46 THEN - 17 END * - 48 * + - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7087
SELECT - CASE - - 46 WHEN ( + COALESCE ( MAX ( ALL + + 41 ), + 95 + 5 + + 25 ) ) - + 94 * - 47 * + + 46 THEN - 17 END * - 48 * + - 29 AS col2
----
NULL

query I rowsort
SELECT ALL + 83 + + - 6
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT DISTINCT ( - SUM( DISTINCT 6 ) ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT ( - SUM ( DISTINCT 6 ) ) col1
----
-6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7091
SELECT - - 19 * - 69 col1, - 94 * - CAST( 89 AS SIGNED )
----
-1311
8366

skipif mysql # not compatible
query II rowsort label-7091
SELECT - - 19 * - 69 col1, - 94 * - CAST ( 89 AS INTEGER )
----
-1311
8366

onlyif mysql # DIV for integer division: 
query I rowsort label-7092
SELECT ALL + 8 DIV + 70 * 94 * - 41
----
0

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL + 8 / + 70 * 94 * - 41
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7093
SELECT DISTINCT 22 DIV - 20 - - 24 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT 22 / - 20 - - 24 AS col1
----
23

query I rowsort
SELECT - COALESCE ( + 95, + - 73 ) AS col2
----
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT + SUM( DISTINCT - ( 65 ) ) * - 10 AS col1
----
650

skipif mysql # not compatible
query I rowsort label-7096
SELECT + SUM ( DISTINCT - ( 65 ) ) * - 10 AS col1
----
650

query I rowsort
SELECT ALL 49 * + 51
----
2499

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7099
SELECT ALL 76 * 87 - - + NULLIF ( + ( - + ( + + CAST( - 97 AS SIGNED ) ) ), - 75 / 20 )
----
6709

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL 76 * 87 - - + NULLIF ( + ( - + ( + + CAST ( - 97 AS INTEGER ) ) ), - 75 / 20 )
----
6709

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

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

query I rowsort
SELECT ALL + - 68 * + + 30 AS col2
----
-2040

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

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

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

query II rowsort
SELECT ALL - 85, + 86 AS col2
----
-85
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7105
SELECT - CASE + CAST( NULL AS SIGNED ) WHEN - + 25 THEN + ( - - 76 ) ELSE 33 * 71 END * - MIN( - 85 ) + + 44 AS col1
----
-199111

skipif mysql # not compatible
query I rowsort label-7105
SELECT - CASE + CAST ( NULL AS INTEGER ) WHEN - + 25 THEN + ( - - 76 ) ELSE 33 * 71 END * - MIN ( - 85 ) + + 44 AS col1
----
-199111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7106
SELECT CAST( NULL AS SIGNED ) * - 21 * + - 10 * + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT CAST ( NULL AS INTEGER ) * - 21 * + - 10 * + 18 AS col0
----
NULL

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

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

query II rowsort
SELECT + 55, 79 * + + 46 AS col1
----
55
3634

onlyif mysql # DIV for integer division: 
query I rowsort label-7109
SELECT 49 DIV 30 DIV 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7109
SELECT 49 / 30 / 41 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT ALL 52 + + NULLIF ( + COUNT( * ), + 29 + + COUNT( - - 81 ) )
----
53

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL 52 + + NULLIF ( + COUNT ( * ), + 29 + + COUNT ( - - 81 ) )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-7111
SELECT 20 * + MAX( ALL - 72 ) * + 53 AS col1, + 31 * - + 48
----
-76320
-1488

skipif mysql # not compatible
query II rowsort label-7111
SELECT 20 * + MAX ( ALL - 72 ) * + 53 AS col1, + 31 * - + 48
----
-76320
-1488

query I rowsort
SELECT 55 * - + 32
----
-1760

query I rowsort
SELECT ALL 46 + - 78 AS col0
----
-32

query I rowsort
SELECT 45 - - 38
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7115
SELECT ALL + 87 + - - 83 DIV - + COUNT( DISTINCT 42 )
----
4

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL + 87 + - - 83 / - + COUNT ( DISTINCT 42 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7116
SELECT CAST( - CAST( + 70 AS SIGNED ) AS SIGNED ) - ( - NULLIF ( - 28, - COALESCE ( 33, - 1, + + COUNT( * ), 74 ) ) ), COALESCE ( 43, - + 4 - + 39 * - 28 - + 26 DIV 90 * + 54 ) * + 74 + - + 22 + + 25 DIV 89 AS col0
----
-98
3160

skipif mysql # not compatible
query II rowsort label-7116
SELECT CAST ( - CAST ( + 70 AS INTEGER ) AS INTEGER ) - ( - NULLIF ( - 28, - COALESCE ( 33, - 1, + + COUNT ( * ), 74 ) ) ), COALESCE ( 43, - + 4 - + 39 * - 28 - + 26 / 90 * + 54 ) * + 74 + - + 22 + + 25 / 89 AS col0
----
-98
3160

query I rowsort
SELECT ALL ( - + 76 ) + + 85 + - ( + - 66 ) * + - 42 - + - 50 * - - 54 - + ( - 56 ) + - 2 AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7118
SELECT 64 DIV + - 82
----
0

skipif mysql # not compatible
query I rowsort label-7118
SELECT 64 / + - 82
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7119
SELECT 71 * + + COUNT( + - 33 ), 43 AS col1
----
71
43

skipif mysql # not compatible
query II rowsort label-7119
SELECT 71 * + + COUNT ( + - 33 ), 43 AS col1
----
71
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7120
SELECT CAST( NULL AS SIGNED ) + + MAX( - 5 ) + - + 79 / 57 - - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7120
SELECT CAST ( NULL AS INTEGER ) + + MAX ( - 5 ) + - + 79 / 57 - - 15 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7121
SELECT 21 + - CAST ( NULL AS INTEGER ) * + + 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7122
SELECT ALL + 28 - + 27 - 81 + - COUNT( DISTINCT - + ( - CAST( - - 5 AS SIGNED ) ) ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL + 28 - + 27 - 81 + - COUNT ( DISTINCT - + ( - CAST ( - - 5 AS INTEGER ) ) ) AS col2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7123
SELECT + COALESCE ( - 15, + + SUM( + 75 ) DIV 82 + 87 ) + ( + COUNT( * ) ) + 42 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7123
SELECT + COALESCE ( - 15, + + SUM ( + 75 ) / 82 + 87 ) + ( + COUNT ( * ) ) + 42 AS col0
----
28

query II rowsort
SELECT ALL 81, + 45 AS col0
----
81
45

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

skipif mysql # not compatible
query I rowsort label-7125
SELECT + 14 + + COUNT ( * ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7126
SELECT ALL 26 AS col2, 78 + - NULLIF ( COUNT( * ), + COUNT( * ) + + CASE + + 63 WHEN + - COALESCE ( + 17, + 95 / - COUNT( - 59 ), + + 87 + - 67 * COUNT( * ), 40 ) THEN COUNT( * ) WHEN - + COUNT( * ) * + - 1 - - 39 * + 78 + - 31 + 7 * 26 THEN NULL END + - - 56 )
----
26
77

skipif mysql # not compatible
query II rowsort label-7126
SELECT ALL 26 AS col2, 78 + - NULLIF ( COUNT ( * ), + COUNT ( * ) + + CASE + + 63 WHEN + - COALESCE ( + 17, + 95 / - COUNT ( - 59 ), + + 87 + - 67 * COUNT ( * ), 40 ) THEN COUNT ( * ) WHEN - + COUNT ( * ) * + - 1 - - 39 * + 78 + - 31 + 7 * 26 THEN NULL END + - - 56 )
----
26
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT ALL - 79 * 12 + + 16 * + COUNT( * )
----
-932

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL - 79 * 12 + + 16 * + COUNT ( * )
----
-932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7128
SELECT 31 * + - CAST( - + 95 AS SIGNED ) * - - 40 * - + NULLIF ( + + 1, - 30 ) AS col2
----
-117800

skipif mysql # not compatible
query I rowsort label-7128
SELECT 31 * + - CAST ( - + 95 AS INTEGER ) * - - 40 * - + NULLIF ( + + 1, - 30 ) AS col2
----
-117800

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

skipif mysql # not compatible
query I rowsort label-7129
SELECT - SUM ( - + 47 )
----
47

query I rowsort
SELECT 90 + - - 66 + + 10 * 35
----
506

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT + ( + 4 ) * 96 + + COUNT( * ) + + 48 * - 56 * - SUM( ALL + 94 ) AS col1
----
253057

skipif mysql # not compatible
query I rowsort label-7132
SELECT + ( + 4 ) * 96 + + COUNT ( * ) + + 48 * - 56 * - SUM ( ALL + 94 ) AS col1
----
253057

query I rowsort
SELECT + 3 * - 0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7135
SELECT + 30 DIV - 65
----
0

skipif mysql # not compatible
query I rowsort label-7135
SELECT + 30 / - 65
----
0

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

query I rowsort
SELECT DISTINCT + COALESCE ( - 4, + ( + - 95 ) ) / + CASE + ( - 12 ) WHEN + 25 THEN + - 12 ELSE NULL END AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT 94 DIV + - 34
----
-2

skipif mysql # not compatible
query I rowsort label-7139
SELECT 94 / + - 34
----
-2

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

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

query I rowsort
SELECT ALL + ( + 86 ) + + 88 AS col1
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT - ( + 94 ) * ( - MIN( ALL - 96 ) ) + - - 35 AS col2
----
-8989

skipif mysql # not compatible
query I rowsort label-7142
SELECT - ( + 94 ) * ( - MIN ( ALL - 96 ) ) + - - 35 AS col2
----
-8989

query I rowsort
SELECT 14 - - 77
----
91

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

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

query I rowsort
SELECT DISTINCT 64 * - 85
----
-5440

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT DISTINCT - ( + 97 ) + - 64 * + - 65 - + NULLIF ( 28, + COUNT( * ) ) AS col2
----
4035

skipif mysql # not compatible
query I rowsort label-7146
SELECT DISTINCT - ( + 97 ) + - 64 * + - 65 - + NULLIF ( 28, + COUNT ( * ) ) AS col2
----
4035

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT ALL 99 + CASE - - ( - + 80 ) WHEN - 3 THEN 12 WHEN 42 / - COUNT( ALL - - 75 ) + 47 THEN - 52 ELSE + 73 * + 17 + 19 + + 8 + - + 85 + - 44 - - + 24 + 10 * - 86 + - CASE + AVG ( DISTINCT + 59 ) WHEN COUNT( * ) THEN NULL WHEN - ( + 28 ) THEN - + 6 * 59 END * COUNT( * ) + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL 99 + CASE - - ( - + 80 ) WHEN - 3 THEN 12 WHEN 42 / - COUNT ( ALL - - 75 ) + 47 THEN - 52 ELSE + 73 * + 17 + 19 + + 8 + - + 85 + - 44 - - + 24 + 10 * - 86 + - CASE + AVG ( DISTINCT + 59 ) WHEN COUNT ( * ) THEN NULL WHEN - ( + 28 ) THEN - + 6 * 59 END * COUNT ( * ) + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7148
SELECT 19 * + 62 * - CAST( NULL AS DECIMAL ) + - 5 + - 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7148
SELECT 19 * + 62 * - CAST ( NULL AS REAL ) + - 5 + - 25 AS col0
----
NULL

query I rowsort
SELECT ALL 10 + + 62 * + 22 * ( + ( - 15 ) ) * + 5
----
-102290

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT CASE + ( + + COUNT( * ) ) WHEN - + 19 THEN - COUNT( * ) + 32 + - 32 ELSE NULL END + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT CASE + ( + + COUNT ( * ) ) WHEN - + 19 THEN - COUNT ( * ) + 32 + - 32 ELSE NULL END + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT 45 * - 44 * - COUNT( * )
----
1980

skipif mysql # not compatible
query I rowsort label-7151
SELECT 45 * - 44 * - COUNT ( * )
----
1980

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7152
SELECT 80 + CASE 54 WHEN + 17 * - + COUNT( * ) THEN NULL WHEN - SUM( DISTINCT 41 ) * - + 18 + - + 18 * - - 84 THEN + 95 * 40 + + + CAST( + + 18 AS DECIMAL ) + 10 + 29 * AVG ( DISTINCT - 48 ) * + 34 - - 32 END * - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7152
SELECT 80 + CASE 54 WHEN + 17 * - + COUNT ( * ) THEN NULL WHEN - SUM ( DISTINCT 41 ) * - + 18 + - + 18 * - - 84 THEN + 95 * 40 + + + CAST ( + + 18 AS REAL ) + 10 + 29 * AVG ( DISTINCT - 48 ) * + 34 - - 32 END * - - 96
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT DISTINCT 98 - COUNT( 7 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT 98 - COUNT ( 7 ) AS col1
----
97

query I rowsort
SELECT - 84 * + + 71 AS col1
----
-5964

query I rowsort
SELECT DISTINCT 24 * - 37 * 3 AS col1
----
-2664

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT DISTINCT + ( - NULLIF ( 10, + COUNT( * ) ) ) - + - MAX( DISTINCT 73 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT + ( - NULLIF ( 10, + COUNT ( * ) ) ) - + - MAX ( DISTINCT 73 ) AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7158
SELECT ALL + + 60 * 39 + - 66 + + - 66 AS col1, CAST( NULLIF ( + 32, + + ( + + 95 ) ) AS SIGNED ) * - + 30
----
2208
-960

skipif mysql # not compatible
query II rowsort label-7158
SELECT ALL + + 60 * 39 + - 66 + + - 66 AS col1, CAST ( NULLIF ( + 32, + + ( + + 95 ) ) AS INTEGER ) * - + 30
----
2208
-960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7159
SELECT + COUNT( ALL - - 28 ) DIV + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7159
SELECT + COUNT ( ALL - - 28 ) / + 80 AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7161
SELECT + CAST( NULL AS SIGNED ) * + + 22 * + - MAX( + - 55 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7161
SELECT + CAST ( NULL AS INTEGER ) * + + 22 * + - MAX ( + - 55 ) AS col0
----
NULL

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

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

query I rowsort
SELECT - 0 * + 6 * - 60 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7165
SELECT ALL - COUNT( ALL 66 ) * + ( + CAST( + 87 AS SIGNED ) ) + + ( + 87 ) DIV - 72
----
-88

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL - COUNT ( ALL 66 ) * + ( + CAST ( + 87 AS INTEGER ) ) + + ( + 87 ) / - 72
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7166
SELECT DISTINCT - + 51 DIV COALESCE ( + 57, + - 85 * COUNT( + 26 ) * - 76 - + MIN( - 20 ), 84 DIV - + 86 + - 0 ) + 76 + + - SUM( + - 95 ) AS col1
----
171

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT - + 51 / COALESCE ( + 57, + - 85 * COUNT ( + 26 ) * - 76 - + MIN ( - 20 ), 84 / - + 86 + - 0 ) + 76 + + - SUM ( + - 95 ) AS col1
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7167
SELECT - 54 * - - 61 + - + 48 + COUNT( * ) * - 3 DIV + 39
----
-3342

skipif mysql # not compatible
query I rowsort label-7167
SELECT - 54 * - - 61 + - + 48 + COUNT ( * ) * - 3 / + 39
----
-3342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7168
SELECT ALL + CAST( - CASE 83 WHEN + 29 * + - 81 + - 58 THEN NULL WHEN - COUNT( * ) THEN 1 * - 7 + + 51 * + 58 + - - 70 + - 66 * - - COUNT( * ) + - 17 ELSE + 34 END AS SIGNED ) * - + 15 + 72 + - COUNT( * )
----
581

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL + CAST ( - CASE 83 WHEN + 29 * + - 81 + - 58 THEN NULL WHEN - COUNT ( * ) THEN 1 * - 7 + + 51 * + 58 + - - 70 + - 66 * - - COUNT ( * ) + - 17 ELSE + 34 END AS INTEGER ) * - + 15 + 72 + - COUNT ( * )
----
581

query I rowsort
SELECT + 82 * + - 73 AS col1
----
-5986

query I rowsort
SELECT - 17 + - 81
----
-98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7172
SELECT DISTINCT + COALESCE ( + 91, + ( + + 96 ) DIV 6 + 6 - + - 6, - 67 + 4 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT + COALESCE ( + 91, + ( + + 96 ) / 6 + 6 - + - 6, - 67 + 4 ) AS col1
----
91

query I rowsort
SELECT ALL 38 * + ( + 17 ) + - + 42 AS col0
----
604

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT COUNT( * ) * COUNT( * ) * + 44 * + COUNT( * ) + - + SUM( DISTINCT - 69 ) * - 35
----
-2371

skipif mysql # not compatible
query I rowsort label-7175
SELECT COUNT ( * ) * COUNT ( * ) * + 44 * + COUNT ( * ) + - + SUM ( DISTINCT - 69 ) * - 35
----
-2371

onlyif mysql # DIV for integer division: 
query I rowsort label-7176
SELECT DISTINCT + 42 DIV 92 * + 81 * + 65
----
0

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT + 42 / 92 * + 81 * + 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT - 93 - - 4 * 81 + 13 + COUNT( * )
----
245

skipif mysql # not compatible
query I rowsort label-7177
SELECT - 93 - - 4 * 81 + 13 + COUNT ( * )
----
245

query I rowsort
SELECT - 51 * + + ( - 74 )
----
3774

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT SUM( DISTINCT - + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-7179
SELECT SUM ( DISTINCT - + 56 )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-7180
SELECT ALL + 24 DIV - 4 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL + 24 / - 4 AS col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT + ( ( 26 ) ) DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-7181
SELECT + ( ( 26 ) ) / + 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT ALL 57 - SUM( - 6 ) - ( + 93 ) * + 67 AS col1
----
-6168

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL 57 - SUM ( - 6 ) - ( + 93 ) * + 67 AS col1
----
-6168

query I rowsort
SELECT DISTINCT COALESCE ( - 21, - 90 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT - SUM( - 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7184
SELECT - SUM ( - 41 ) AS col2
----
41

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

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

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

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

query I rowsort
SELECT - 39 * + + 74 AS col2
----
-2886

query I rowsort
SELECT - - 46 + - 86 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT + - 40 * COUNT( * ) - + COUNT( * ) - - + 47
----
6

skipif mysql # not compatible
query I rowsort label-7189
SELECT + - 40 * COUNT ( * ) - + COUNT ( * ) - - + 47
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7190
SELECT CASE + 32 WHEN - CASE - COUNT( * ) WHEN 6 THEN NULL WHEN + + COUNT( * ) THEN - + 60 WHEN + 27 THEN + 44 / + 18 * + 1 - - 19 ELSE NULL END THEN NULL WHEN + 94 THEN - 41 WHEN - CAST( COALESCE ( + + 81, + + 59 + - - CAST( NULL AS SIGNED ) ) AS SIGNED ) * AVG ( DISTINCT - 12 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7190
SELECT CASE + 32 WHEN - CASE - COUNT ( * ) WHEN 6 THEN NULL WHEN + + COUNT ( * ) THEN - + 60 WHEN + 27 THEN + 44 / + 18 * + 1 - - 19 ELSE NULL END THEN NULL WHEN + 94 THEN - 41 WHEN - CAST ( COALESCE ( + + 81, + + 59 + - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * AVG ( DISTINCT - 12 ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7191
SELECT ALL CASE - 38 WHEN - COUNT( * ) THEN + 98 WHEN + CAST( NULL AS SIGNED ) + + 52 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL CASE - 38 WHEN - COUNT ( * ) THEN + 98 WHEN + CAST ( NULL AS INTEGER ) + + 52 THEN NULL END col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7192
SELECT - + MIN ( 67 ) + - COUNT ( * ) AS col0
----
-68

query I rowsort
SELECT + 32 - + - ( + 98 )
----
130

onlyif mysql # DIV for integer division: 
query II rowsort label-7194
SELECT + 85 DIV - - 70 + - 70 * - 6 * + 57 * - 72, 55 * + 31 AS col1
----
-1723679
1705

skipif mysql # not compatible
query II rowsort label-7194
SELECT + 85 / - - 70 + - 70 * - 6 * + 57 * - 72, 55 * + 31 AS col1
----
-1723679
1705

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT DISTINCT - MIN( ALL - + 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT - MIN ( ALL - + 28 ) AS col2
----
28

onlyif mysql # DIV for integer division: 
query II rowsort label-7196
SELECT ALL 0 AS col2, - 2 DIV + - 88 * 91 DIV + 19
----
0
0

skipif mysql # not compatible
query II rowsort label-7196
SELECT ALL 0 AS col2, - 2 / + - 88 * 91 / + 19
----
0
0

query I rowsort
SELECT + 12 + + - 83
----
-71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT + - 55 + + 60 * - + COUNT( * ) - COUNT( * ) + - 24 AS col0
----
-140

skipif mysql # not compatible
query I rowsort label-7199
SELECT + - 55 + + 60 * - + COUNT ( * ) - COUNT ( * ) + - 24 AS col0
----
-140

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

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

query I rowsort
SELECT + + 38 * + 38
----
1444

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT DISTINCT COUNT( * ) + + NULLIF ( ( - 74 ), 12 * + - 99 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT COUNT ( * ) + + NULLIF ( ( - 74 ), 12 * + - 99 ) AS col0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-7203
SELECT ALL - 76 DIV - - 3 + + 65
----
40

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL - 76 / - - 3 + + 65
----
40

query II rowsort
SELECT + 59 + + 33 AS col1, - 36 + - 13 * + - 35
----
92
419

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT MAX( ALL - 12 ) * + COUNT( * ) + CASE + 12 WHEN - ( + 16 ) THEN - 98 + - COUNT( * ) WHEN - 30 * - 99 THEN + - 18 * 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7208
SELECT MAX ( ALL - 12 ) * + COUNT ( * ) + CASE + 12 WHEN - ( + 16 ) THEN - 98 + - COUNT ( * ) WHEN - 30 * - 99 THEN + - 18 * 83 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT ( + - COUNT( * ) ) * + 92 - + + ( + + COUNT( - 62 ) ) + - 58 AS col0
----
-151

skipif mysql # not compatible
query I rowsort label-7209
SELECT ( + - COUNT ( * ) ) * + 92 - + + ( + + COUNT ( - 62 ) ) + - 58 AS col0
----
-151

query I rowsort
SELECT - ( - + 98 ) * 11 AS col0
----
1078

query I rowsort
SELECT ALL ( 96 ) * - ( 92 ) * - 41
----
362112

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

query I rowsort
SELECT DISTINCT 86 * - 33
----
-2838

query I rowsort
SELECT - ( + + 99 ) * - 12 AS col2
----
1188

onlyif mysql # aggregate syntax: 
query II rowsort label-7215
SELECT ALL + NULLIF ( 99, - - MIN( - 74 ) ) AS col0, MAX( 25 ) AS col1
----
99
25

skipif mysql # not compatible
query II rowsort label-7215
SELECT ALL + NULLIF ( 99, - - MIN ( - 74 ) ) AS col0, MAX ( 25 ) AS col1
----
99
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7216
SELECT ALL + 18 AS col2, - 86 * + + COUNT( * )
----
18
-86

skipif mysql # not compatible
query II rowsort label-7216
SELECT ALL + 18 AS col2, - 86 * + + COUNT ( * )
----
18
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7217
SELECT - 2 / + + CASE COUNT( * ) WHEN - 91 + - COUNT( * ) + + + 91 / + + CASE 36 WHEN CAST( - - 21 AS SIGNED ) THEN - 28 WHEN + 55 THEN + SUM( 12 ) ELSE + AVG ( 1 ) + COUNT( * ) - + + 47 - 46 * - 81 END THEN 8 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7217
SELECT - 2 / + + CASE COUNT ( * ) WHEN - 91 + - COUNT ( * ) + + + 91 / + + CASE 36 WHEN CAST ( - - 21 AS INTEGER ) THEN - 28 WHEN + 55 THEN + SUM ( 12 ) ELSE + AVG ( 1 ) + COUNT ( * ) - + + 47 - 46 * - 81 END THEN 8 END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7218
SELECT + ( - + 45 ) DIV - 3
----
15

skipif mysql # not compatible
query I rowsort label-7218
SELECT + ( - + 45 ) / - 3
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7219
SELECT ALL + 56 * - CAST( MIN( ( - 54 ) ) AS SIGNED )
----
3024

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL + 56 * - CAST ( MIN ( ( - 54 ) ) AS INTEGER )
----
3024

query I rowsort
SELECT - 73 * - 3 AS col1
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7221
SELECT DISTINCT + 80, 19 - + 56 * + CAST( + + 98 AS SIGNED ) - - CAST( - - 99 AS SIGNED ) AS col1
----
80
-5370

skipif mysql # not compatible
query II rowsort label-7221
SELECT DISTINCT + 80, 19 - + 56 * + CAST ( + + 98 AS INTEGER ) - - CAST ( - - 99 AS INTEGER ) AS col1
----
80
-5370

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

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

query I rowsort
SELECT ALL - 64 + 56 AS col2
----
-8

query I rowsort
SELECT ALL + + ( - 43 ) + - 2 AS col2
----
-45

query I rowsort
SELECT + 40 * + - 66 * 72 AS col1
----
-190080

query I rowsort
SELECT ( 24 ) * ( - + 41 ) + 68
----
-916

onlyif mysql # aggregate syntax: 
query II rowsort label-7227
SELECT + 1, - COUNT( DISTINCT 69 ) + + 65 AS col1
----
1
64

skipif mysql # not compatible
query II rowsort label-7227
SELECT + 1, - COUNT ( DISTINCT 69 ) + + 65 AS col1
----
1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT - COUNT( - - 0 ) - + 14 - - 58 + - - 39 - - - COUNT( * ) * + - COUNT( * ) * 44
----
126

skipif mysql # not compatible
query I rowsort label-7228
SELECT - COUNT ( - - 0 ) - + 14 - - 58 + - - 39 - - - COUNT ( * ) * + - COUNT ( * ) * 44
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT 24 - + MAX( + 29 ) + + - COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7229
SELECT 24 - + MAX ( + 29 ) + + - COUNT ( * ) AS col0
----
-6

query I rowsort
SELECT - 46 * - 42 AS col1
----
1932

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7232
SELECT DISTINCT 47 + CAST( NULL AS DECIMAL ) / + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT 47 + CAST ( NULL AS REAL ) / + 8 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7233
SELECT NULLIF ( + CAST( NULL AS SIGNED ), + + CASE + + 57 WHEN + 43 THEN + AVG ( + 84 ) ELSE NULL END ) * 41 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7233
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), + + CASE + + 57 WHEN + 43 THEN + AVG ( + 84 ) ELSE NULL END ) * 41 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT 69 DIV - 10 + - 94 - + 82
----
-182

skipif mysql # not compatible
query I rowsort label-7234
SELECT 69 / - 10 + - 94 - + 82
----
-182

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7235
SELECT ALL ( + 50 ) - + 47 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL ( + 50 ) - + 47 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( 94, + 22, 56 )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7237
SELECT CAST( - - 13 AS SIGNED ) * + 82 * 65
----
69290

skipif mysql # not compatible
query I rowsort label-7237
SELECT CAST ( - - 13 AS INTEGER ) * + 82 * 65
----
69290

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT 10 * - - 3 + - + COUNT( * ) * + - 38 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7238
SELECT 10 * - - 3 + - + COUNT ( * ) * + - 38 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT - 31 + - NULLIF ( + 64, - 5 ) + 87 + + COUNT( * ) + + 46 * + 49 + - 15
----
2232

skipif mysql # not compatible
query I rowsort label-7239
SELECT - 31 + - NULLIF ( + 64, - 5 ) + 87 + + COUNT ( * ) + + 46 * + 49 + - 15
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT DISTINCT - 7 + 34 + + + CASE + 10 WHEN + 62 + - 88 - - - 27 THEN 5 * + + COUNT( * ) * - ( 98 ) + 50 + - + 69 + + 47 + + + 36 * 31 * - - 31 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT - 7 + 34 + + + CASE + 10 WHEN + 62 + - 88 - - - 27 THEN 5 * + + COUNT ( * ) * - ( 98 ) + 50 + - + 69 + + 47 + + + 36 * 31 * - - 31 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 49 + + 57 * - + 88 AS col1
----
-4967

query I rowsort
SELECT DISTINCT 18 * - 69 * + 14 col0
----
-17388

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT DISTINCT COUNT( * ) * + - 2 * + 34 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT COUNT ( * ) * + - 2 * + 34 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT 19 * 74 * 29 + - 70 + + 55 * + COUNT( * )
----
40759

skipif mysql # not compatible
query I rowsort label-7245
SELECT 19 * 74 * 29 + - 70 + + 55 * + COUNT ( * )
----
40759

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7246
SELECT 59 * CAST( NULL AS SIGNED ), + 46 * 5 AS col1
----
NULL
230

skipif mysql # not compatible
query II rowsort label-7246
SELECT 59 * CAST ( NULL AS INTEGER ), + 46 * 5 AS col1
----
NULL
230

query I rowsort
SELECT ALL + - 6 + - ( + 62 ) - 67 AS col0
----
-135

query I rowsort
SELECT - 47 + + COALESCE ( - + 62, + 74 ) AS col1
----
-109

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7250
SELECT DISTINCT - 31 DIV + - 34
----
0

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT - 31 / + - 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT + CASE + 72 WHEN - + 20 THEN NULL WHEN 6 + - - 68 / + + COUNT( * ) THEN + + 30 END + + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7251
SELECT + CASE + 72 WHEN - + 20 THEN NULL WHEN 6 + - - 68 / + + COUNT ( * ) THEN + + 30 END + + 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT COUNT( * ) + 69 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7252
SELECT COUNT ( * ) + 69 AS col2
----
70

query I rowsort
SELECT 58 + 72 AS col1
----
130

query II rowsort
SELECT 52, 75 AS col0
----
52
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT CASE 22 WHEN - 35 THEN + - 73 + - 8 ELSE NULL END + - + MIN( ALL 78 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7255
SELECT CASE 22 WHEN - 35 THEN + - 73 + - 8 ELSE NULL END + - + MIN ( ALL 78 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT 39 * - - NULLIF ( 39, + - COUNT( * ) ) AS col1
----
1521

skipif mysql # not compatible
query I rowsort label-7256
SELECT 39 * - - NULLIF ( 39, + - COUNT ( * ) ) AS col1
----
1521

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

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

query I rowsort
SELECT 54 + - 91 col2
----
-37

query I rowsort
SELECT ALL 34 * - 10 * - - 26 AS col2
----
-8840

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7261
SELECT + 32 * - - COUNT( - - ( - + 9 ) ) + + 56 + 28, 48 + + 62 AS col2
----
116
110

skipif mysql # not compatible
query II rowsort label-7261
SELECT + 32 * - - COUNT ( - - ( - + 9 ) ) + + 56 + 28, 48 + + 62 AS col2
----
116
110

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

skipif mysql # not compatible
query I rowsort label-7262
SELECT MAX ( DISTINCT 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT 54 * + - 15 * 78 * - COUNT( * )
----
63180

skipif mysql # not compatible
query I rowsort label-7263
SELECT 54 * + - 15 * 78 * - COUNT ( * )
----
63180

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT DISTINCT MAX( ALL - + 57 ) * - - 24
----
-1368

skipif mysql # not compatible
query I rowsort label-7264
SELECT DISTINCT MAX ( ALL - + 57 ) * - - 24
----
-1368

onlyif mysql # DIV for integer division: 
query II rowsort label-7265
SELECT DISTINCT - 20 + - + 9 + - + 36 + + COALESCE ( 19, + - 76 ) DIV - 51 - - 12, - 49 AS col0
----
-53
-49

skipif mysql # not compatible
query II rowsort label-7265
SELECT DISTINCT - 20 + - + 9 + - + 36 + + COALESCE ( 19, + - 76 ) / - 51 - - 12, - 49 AS col0
----
-53
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT DISTINCT COALESCE ( + MIN( ALL - + 78 ), 26 * + 16, NULLIF ( + 99, 35 ) + - - 10 ) * - 14 AS col0
----
1092

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT COALESCE ( + MIN ( ALL - + 78 ), 26 * + 16, NULLIF ( + 99, 35 ) + - - 10 ) * - 14 AS col0
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT ALL COUNT( 14 ) + - - 67 + 71 col2
----
139

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL COUNT ( 14 ) + - - 67 + 71 col2
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7268
SELECT + CAST( - 41 AS SIGNED ) + COUNT( * ) - 46
----
-86

skipif mysql # not compatible
query I rowsort label-7268
SELECT + CAST ( - 41 AS INTEGER ) + COUNT ( * ) - 46
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-7269
SELECT + - 5 AS col1, - COUNT( ALL 15 ) + - 21 AS col2
----
-5
-22

skipif mysql # not compatible
query II rowsort label-7269
SELECT + - 5 AS col1, - COUNT ( ALL 15 ) + - 21 AS col2
----
-5
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7270
SELECT + CAST( - + 40 AS SIGNED ) + + - CAST( - 58 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-7270
SELECT + CAST ( - + 40 AS INTEGER ) + + - CAST ( - 58 AS INTEGER )
----
18

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

query I rowsort
SELECT + ( - - NULLIF ( ( NULLIF ( 0, - 14 ) ), + + 81 + - ( + CASE - - ( - 4 ) WHEN + 52 THEN NULL WHEN COALESCE ( - ( - - 96 ), - - 14 ) THEN NULL ELSE 62 + - 56 * - - 24 / - - 23 END ) * - ( + NULLIF ( - 75, + 56 ) ) ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7273
SELECT + + 57 * + COUNT( * ) * - ( 59 ) AS col0, - 1 + + 65 + + - COUNT( * ) + - 81 * - + 71 col1
----
-3363
5814

skipif mysql # not compatible
query II rowsort label-7273
SELECT + + 57 * + COUNT ( * ) * - ( 59 ) AS col0, - 1 + + 65 + + - COUNT ( * ) + - 81 * - + 71 col1
----
-3363
5814

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7276
SELECT - COALESCE ( - 91, + - COUNT( * ), - CAST( + + 79 AS SIGNED ) )
----
91

skipif mysql # not compatible
query I rowsort label-7276
SELECT - COALESCE ( - 91, + - COUNT ( * ), - CAST ( + + 79 AS INTEGER ) )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7277
SELECT - - 76 + - CAST( - 8 AS SIGNED ) * - 35 AS col1, - COUNT( 20 ) AS col0
----
-204
-1

skipif mysql # not compatible
query II rowsort label-7277
SELECT - - 76 + - CAST ( - 8 AS INTEGER ) * - 35 AS col1, - COUNT ( 20 ) AS col0
----
-204
-1

query II rowsort
SELECT 79 AS col0, 43 * + 38 * - + 93
----
79
-151962

query I rowsort
SELECT DISTINCT 37 * + - 41 AS col0
----
-1517

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT ALL MAX( ALL ( 32 ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL MAX ( ALL ( 32 ) ) AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7281
SELECT - MIN( DISTINCT + CAST( - NULLIF ( + + CASE + + 37 WHEN 19 THEN NULL WHEN - + 7 * - 71 + + + 10 THEN - 48 WHEN + + 63 + 15 THEN NULL ELSE 27 - + - 45 END, CAST( NULL AS SIGNED ) ) AS SIGNED ) ) DIV - - 89, + 95 + 26 + 60 * ( - 14 ) * - 27 + 59 * - 63 AS col1
----
0
19084

skipif mysql # not compatible
query II rowsort label-7281
SELECT - MIN ( DISTINCT + CAST ( - NULLIF ( + + CASE + + 37 WHEN 19 THEN NULL WHEN - + 7 * - 71 + + + 10 THEN - 48 WHEN + + 63 + 15 THEN NULL ELSE 27 - + - 45 END, CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) / - - 89, + 95 + 26 + 60 * ( - 14 ) * - 27 + 59 * - 63 AS col1
----
0
19084

query I rowsort
SELECT + 0 * + - ( 32 )
----
0

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

skipif mysql # not compatible
query I rowsort label-7283
SELECT - MAX ( ALL + 93 ) / - + 19
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT - NULLIF ( - ( + + 24 ), 39 / 69 * - - 77 + + + 9 * - 93 - - 81 ) - - COUNT( * ) + - - 86 col2
----
111

skipif mysql # not compatible
query I rowsort label-7284
SELECT - NULLIF ( - ( + + 24 ), 39 / 69 * - - 77 + + + 9 * - 93 - - 81 ) - - COUNT ( * ) + - - 86 col2
----
111

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

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

query II rowsort
SELECT DISTINCT + 79 * - + 10 AS col0, 54
----
-790
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT - COUNT( * ) + - - 54 * - - 8 AS col0
----
431

skipif mysql # not compatible
query I rowsort label-7287
SELECT - COUNT ( * ) + - - 54 * - - 8 AS col0
----
431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7288
SELECT ALL COUNT( - 28 ) col2, CAST( NULL AS SIGNED ) + 47 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7288
SELECT ALL COUNT ( - 28 ) col2, CAST ( NULL AS INTEGER ) + 47 AS col0
----
1
NULL

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

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

query I rowsort
SELECT ALL - 7 * 78 col0
----
-546

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

query I rowsort
SELECT - 68 * - 13
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT ( + CASE - 63 WHEN - MAX( ALL 26 ) * - 58 THEN NULL ELSE + 75 - + COUNT( * ) END )
----
74

skipif mysql # not compatible
query I rowsort label-7293
SELECT ( + CASE - 63 WHEN - MAX ( ALL 26 ) * - 58 THEN NULL ELSE + 75 - + COUNT ( * ) END )
----
74

query I rowsort
SELECT ALL 90 * - 24 + 88 + + 7 + 86 * + NULLIF ( + 80, + - 14 )
----
4815

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7295
SELECT ( - CASE + + 30 WHEN - 56 THEN + 29 + + + 93 + 11 * COUNT( - CAST( - CASE 19 WHEN - 41 * 67 / + - 76 THEN NULL WHEN + 10 THEN + 71 ELSE NULL END AS SIGNED ) ) / + - 36 - 95 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT ( - CASE + + 30 WHEN - 56 THEN + 29 + + + 93 + 11 * COUNT ( - CAST ( - CASE 19 WHEN - 41 * 67 / + - 76 THEN NULL WHEN + 10 THEN + 71 ELSE NULL END AS INTEGER ) ) / + - 36 - 95 ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT + 62 + 65 + - 78 col1
----
49

query I rowsort
SELECT ALL - 7 * - 83 AS col2
----
581

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT DISTINCT 65 * + 4 + - SUM( ALL ( 47 ) ) * - 91
----
4537

skipif mysql # not compatible
query I rowsort label-7300
SELECT DISTINCT 65 * + 4 + - SUM ( ALL ( 47 ) ) * - 91
----
4537

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

skipif mysql # not compatible
query I rowsort label-7301
SELECT + CAST ( NULL AS REAL ) * + COUNT ( * ) + 55
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT - - 86 + - NULLIF ( 49, - + COUNT( * ) ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-7304
SELECT - - 86 + - NULLIF ( 49, - + COUNT ( * ) ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT DISTINCT SUM( - 94 ) * + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT SUM ( - 94 ) * + COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT ALL + NULLIF ( - 19, - 92 * MIN( - ( - 69 ) ) ) * - - CASE + 23 WHEN + + 23 THEN NULL WHEN + 67 + - COUNT( * ) + + - 57 THEN COUNT( * ) / 63 - + 38 + - 9 END / COUNT( * ) / - SUM( - NULLIF ( + 29, + + 69 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL + NULLIF ( - 19, - 92 * MIN ( - ( - 69 ) ) ) * - - CASE + 23 WHEN + + 23 THEN NULL WHEN + 67 + - COUNT ( * ) + + - 57 THEN COUNT ( * ) / 63 - + 38 + - 9 END / COUNT ( * ) / - SUM ( - NULLIF ( + 29, + + 69 ) )
----
NULL

query I rowsort
SELECT - 29 + + 65 AS col1
----
36

query I rowsort
SELECT + ( + + 7 ) * + NULLIF ( - 90, 18 * + - 5 * - 16 ) + + - 34 AS col0
----
-664

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT ALL + + 60 * + COUNT( ALL 0 ) + ( - 72 ) * - ( + + 51 ) + - 23
----
3709

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL + + 60 * + COUNT ( ALL 0 ) + ( - 72 ) * - ( + + 51 ) + - 23
----
3709

query I rowsort
SELECT - - 95 * 47 + - - 41 + + 84
----
4590

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT ALL - - 28 * + - COUNT( * ) + + + 45 - - 67 * + 77
----
5176

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL - - 28 * + - COUNT ( * ) + + + 45 - - 67 * + 77
----
5176

query I rowsort
SELECT + 51 * + 54
----
2754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7313
SELECT ALL - + 47 * 23 + 78 + + CASE 92 WHEN + COALESCE ( + 12, - + 0 - + 61 ) THEN NULL WHEN - ( + 39 ) / CAST( - MAX( - - 51 ) AS SIGNED ) + + 19 + - 10 * - 89 THEN NULL ELSE + 11 + - - 42 END * - 73 * + COUNT( * ) AS col2
----
-4872

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL - + 47 * 23 + 78 + + CASE 92 WHEN + COALESCE ( + 12, - + 0 - + 61 ) THEN NULL WHEN - ( + 39 ) / CAST ( - MAX ( - - 51 ) AS INTEGER ) + + 19 + - 10 * - 89 THEN NULL ELSE + 11 + - - 42 END * - 73 * + COUNT ( * ) AS col2
----
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT COUNT( * ) * + 84 - + COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7314
SELECT COUNT ( * ) * + 84 - + COUNT ( * ) AS col2
----
83

query I rowsort
SELECT ALL - NULLIF ( - - 83, + 39 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7316
SELECT - - NULLIF ( ( NULLIF ( SUM( + 41 ), CASE COUNT( * ) WHEN 75 THEN - 43 + - 75 / + - COUNT( * ) - - 84 WHEN + CAST( - + 80 AS SIGNED ) * - 90 THEN + - 44 END + - - 95 + COALESCE ( + 49, + MIN( DISTINCT - + 12 ) * + + 4 * + + ( 16 ), + + 68 ) * + CAST( - 7 AS SIGNED ) ) ), + CAST( NULL AS SIGNED ) * + - 50 * + ( - 66 ) + - + COALESCE ( - + 51, COUNT( * ) * + - COUNT( * ) + - 32 ) * NULLIF ( - 34, + 5 ) + - SUM( ALL + 7 ) / - 27 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-7316
SELECT - - NULLIF ( ( NULLIF ( SUM ( + 41 ), CASE COUNT ( * ) WHEN 75 THEN - 43 + - 75 / + - COUNT ( * ) - - 84 WHEN + CAST ( - + 80 AS INTEGER ) * - 90 THEN + - 44 END + - - 95 + COALESCE ( + 49, + MIN ( DISTINCT - + 12 ) * + + 4 * + + ( 16 ), + + 68 ) * + CAST ( - 7 AS INTEGER ) ) ), + CAST ( NULL AS INTEGER ) * + - 50 * + ( - 66 ) + - + COALESCE ( - + 51, COUNT ( * ) * + - COUNT ( * ) + - 32 ) * NULLIF ( - 34, + 5 ) + - SUM ( ALL + 7 ) / - 27 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT + - MIN( - 36 ) + + + 1 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-7317
SELECT + - MIN ( - 36 ) + + + 1 AS col0
----
37

query I rowsort
SELECT + 82 * - 32
----
-2624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7319
SELECT + MAX( DISTINCT + 70 ) + 33 DIV + 76
----
70

skipif mysql # not compatible
query I rowsort label-7319
SELECT + MAX ( DISTINCT + 70 ) + 33 / + 76
----
70

query I rowsort
SELECT + 46 * - 74 col0
----
-3404

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT ALL 87 * CASE + 27 WHEN + + COUNT( * ) THEN NULL WHEN + - 32 THEN + 91 ELSE NULL END * + ( - 0 ) * - 55 + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL 87 * CASE + 27 WHEN + + COUNT ( * ) THEN NULL WHEN + - 32 THEN + 91 ELSE NULL END * + ( - 0 ) * - 55 + 51
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7323
SELECT DISTINCT 22 + - + 96 / + CASE - 75 WHEN - ( 96 ) THEN + 14 + 99 END + - AVG ( DISTINCT - + 45 ) + + CASE + - 85 WHEN CAST( NULL AS DECIMAL ) THEN NULL ELSE 39 + + 10 END - COUNT( - 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT 22 + - + 96 / + CASE - 75 WHEN - ( 96 ) THEN + 14 + 99 END + - AVG ( DISTINCT - + 45 ) + + CASE + - 85 WHEN CAST ( NULL AS REAL ) THEN NULL ELSE 39 + + 10 END - COUNT ( - 27 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT - ( - ( + + COUNT( * ) ) ) + - 85 * ( + 3 )
----
-254

skipif mysql # not compatible
query I rowsort label-7324
SELECT - ( - ( + + COUNT ( * ) ) ) + - 85 * ( + 3 )
----
-254

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT ALL CASE AVG ( - 7 ) WHEN + 29 THEN + - COUNT( * ) * + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL CASE AVG ( - 7 ) WHEN + 29 THEN + - COUNT ( * ) * + - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7326
SELECT - CAST( - NULLIF ( + - 45, + ( ( - 79 ) ) * 79 * 92 * 78 ) AS SIGNED ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-7326
SELECT - CAST ( - NULLIF ( + - 45, + ( ( - 79 ) ) * 79 * 92 * 78 ) AS INTEGER ) AS col2
----
-45

query I rowsort
SELECT ALL - 3 + - - 10
----
7

query I rowsort
SELECT + 57 + - 28 AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7329
SELECT + ( + COALESCE ( - + CASE - + ( - 91 ) WHEN + - SUM( + 67 ) + + 28 THEN NULL WHEN + - 61 * + 29 + + + MIN( - 62 ) THEN + 0 DIV + - 82 WHEN - - 44 + + + 79 - - 99 + - 19 THEN + 24 END, 51 ) ) * + 55 * 39 - - 92 AS col0
----
109487

skipif mysql # not compatible
query I rowsort label-7329
SELECT + ( + COALESCE ( - + CASE - + ( - 91 ) WHEN + - SUM ( + 67 ) + + 28 THEN NULL WHEN + - 61 * + 29 + + + MIN ( - 62 ) THEN + 0 / + - 82 WHEN - - 44 + + + 79 - - 99 + - 19 THEN + 24 END, 51 ) ) * + 55 * 39 - - 92 AS col0
----
109487

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7330
SELECT DISTINCT + 30 + + CAST( + - COALESCE ( + - 13, + - 18 ) AS SIGNED ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT + 30 + + CAST ( + - COALESCE ( + - 13, + - 18 ) AS INTEGER ) AS col1
----
43

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

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT 56 / + COUNT ( * ) col2
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-7332
SELECT + + 42, 42 DIV 10 AS col0
----
42
4

skipif mysql # not compatible
query II rowsort label-7332
SELECT + + 42, 42 / 10 AS col0
----
42
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT DISTINCT - 28 + COUNT( * ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT - 28 + COUNT ( * ) AS col1
----
-27

query I rowsort
SELECT DISTINCT + - 62 + + 74 col2
----
12

query I rowsort
SELECT 19 + + 61 + - 58 + - + 16 + ( - 53 ) AS col0
----
-47

query I rowsort
SELECT DISTINCT - 79 * - - 5 AS col1
----
-395

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

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

query III rowsort
SELECT ALL - 57 AS col1, 3 * + + 56 AS col1, + 17 * - 29 AS col2
----
-57
168
-493

query I rowsort
SELECT DISTINCT + + 58 * - 40
----
-2320

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7340
SELECT ALL - - MAX( ALL + ( - 84 ) ) - - + 40 * - + CAST( NULL AS DECIMAL ) - + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL - - MAX ( ALL + ( - 84 ) ) - - + 40 * - + CAST ( NULL AS REAL ) - + - 17
----
NULL

query I rowsort
SELECT DISTINCT 88 * + + 33 col1
----
2904

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT ALL - 94 - - 55 - - COUNT( * ) / + 14 * - 39 + - 2 / - 57 + - CASE + 90 WHEN - - 12 THEN + - 53 END + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL - 94 - - 55 - - COUNT ( * ) / + 14 * - 39 + - 2 / - 57 + - CASE + 90 WHEN - - 12 THEN + - 53 END + - 75
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7344
SELECT COALESCE ( CAST( NULL AS SIGNED ), + + 99 ) + + 39 + 90 - - MAX( + + 6 ) * COUNT( * ) * + ( + 2 )
----
240

skipif mysql # not compatible
query I rowsort label-7344
SELECT COALESCE ( CAST ( NULL AS INTEGER ), + + 99 ) + + 39 + 90 - - MAX ( + + 6 ) * COUNT ( * ) * + ( + 2 )
----
240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7345
SELECT COUNT( * ) * 50 DIV + 93 col2
----
0

skipif mysql # not compatible
query I rowsort label-7345
SELECT COUNT ( * ) * 50 / + 93 col2
----
0

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

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

query II rowsort
SELECT DISTINCT 95, - 68 col2
----
95
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7348
SELECT CASE - 16 WHEN - 15 THEN COALESCE ( + 72, 67, - - 38 * + 1 ) / 89 + + + 74 ELSE + CAST( NULL AS DECIMAL ) * 6 * - 92 END / 65 AS col1, + 42
----
NULL
42

skipif mysql # not compatible
query II rowsort label-7348
SELECT CASE - 16 WHEN - 15 THEN COALESCE ( + 72, 67, - - 38 * + 1 ) / 89 + + + 74 ELSE + CAST ( NULL AS REAL ) * 6 * - 92 END / 65 AS col1, + 42
----
NULL
42

query I rowsort
SELECT DISTINCT - 24 * - 68
----
1632

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

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL 11 + ( - NULLIF ( + AVG ( + + CAST ( NULL AS INTEGER ) ), - - COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT CASE 91 WHEN + - 1 / - 53 THEN - ( + - 5 ) + COUNT( * ) END + + ( 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7351
SELECT CASE 91 WHEN + - 1 / - 53 THEN - ( + - 5 ) + COUNT ( * ) END + + ( 18 )
----
NULL

query II rowsort
SELECT 48, - CASE + 62 WHEN 58 THEN NULL ELSE + 81 END + + 58 + - + 77 AS col0
----
48
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-7353
SELECT ALL 75 + + - 96, + 36 * + - MIN( ALL - + 40 ) AS col2
----
-21
1440

skipif mysql # not compatible
query II rowsort label-7353
SELECT ALL 75 + + - 96, + 36 * + - MIN ( ALL - + 40 ) AS col2
----
-21
1440

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

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

query I rowsort
SELECT ALL 21 + - + 38 + + 80 col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-7356
SELECT DISTINCT 71, + COALESCE ( - 67, + CASE + 1 WHEN + COUNT( * ) + + 63 + - 12 * 87 THEN NULL WHEN 12 THEN NULL ELSE + COUNT( DISTINCT ( - + 53 ) ) END * - 19 ) col1
----
71
-67

skipif mysql # not compatible
query II rowsort label-7356
SELECT DISTINCT 71, + COALESCE ( - 67, + CASE + 1 WHEN + COUNT ( * ) + + 63 + - 12 * 87 THEN NULL WHEN 12 THEN NULL ELSE + COUNT ( DISTINCT ( - + 53 ) ) END * - 19 ) col1
----
71
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT ALL 15 * + COUNT( * ) * + 21 * + COUNT( * ) AS col0
----
315

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL 15 * + COUNT ( * ) * + 21 * + COUNT ( * ) AS col0
----
315

query II rowsort
SELECT ALL 32 col0, + 84 * 41 + 85 + 62 AS col0
----
32
3591

query I rowsort
SELECT 13 + + - 60 AS col1
----
-47

query I rowsort
SELECT ALL - 41 * - + 30 col2
----
1230

query I rowsort
SELECT ( - 31 ) - + 47 + + 38 AS col2
----
-40

query I rowsort
SELECT - 88 * + 24
----
-2112

query I rowsort
SELECT 82 + + + 62 AS col1
----
144

query I rowsort
SELECT ALL - - 85 * + 15 AS col1
----
1275

onlyif mysql # DIV for integer division: 
query II rowsort label-7365
SELECT CASE - 48 WHEN + - 8 THEN NULL ELSE 28 DIV + 85 * 44 END * + + 57, - 47 + + + 81 AS col0
----
0
34

skipif mysql # not compatible
query II rowsort label-7365
SELECT CASE - 48 WHEN + - 8 THEN NULL ELSE 28 / + 85 * 44 END * + + 57, - 47 + + + 81 AS col0
----
0
34

query II rowsort
SELECT DISTINCT - - 98 AS col0, 79
----
98
79

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7367
SELECT ALL + + 72 * + 53 AS col0, CAST( NULL AS DECIMAL )
----
3816
NULL

skipif mysql # not compatible
query II rowsort label-7367
SELECT ALL + + 72 * + 53 AS col0, CAST ( NULL AS REAL )
----
3816
NULL

query II rowsort
SELECT + - 82 AS col2, 39 + - + 0 col2
----
-82
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7369
SELECT 28 * + 8 - - 46 + - CASE - + MIN( 64 ) WHEN - 40 * + + 99 + + + CAST( NULL AS SIGNED ) + + CASE - COALESCE ( COALESCE ( NULLIF ( - MIN( ALL + - 9 ), + 41 * - AVG ( - - 38 ) * - + AVG ( 90 ) ), - COUNT( * ) / - NULLIF ( + CAST( NULL AS SIGNED ), 63 ) ), - 83 + - 47, 4 * + - 66 ) WHEN + 37 * + 69 * + 32 * + 52 THEN - 10 WHEN 60 THEN + 97 - 38 END * + - 62 THEN NULL WHEN + 47 - - CASE 70 WHEN COUNT( * ) + + 58 - 5 + - 90 + + + COUNT( * ) * - - CAST( + COUNT( ALL 59 ) AS SIGNED ) + - 92 / - 16 THEN CAST( 29 AS SIGNED ) + 54 END + + 85 THEN COALESCE ( - 2, 86 * - 39 + 76 ) ELSE NULL END + 65 * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT 28 * + 8 - - 46 + - CASE - + MIN ( 64 ) WHEN - 40 * + + 99 + + + CAST ( NULL AS INTEGER ) + + CASE - COALESCE ( COALESCE ( NULLIF ( - MIN ( ALL + - 9 ), + 41 * - AVG ( - - 38 ) * - + AVG ( 90 ) ), - COUNT ( * ) / - NULLIF ( + CAST ( NULL AS INTEGER ), 63 ) ), - 83 + - 47, 4 * + - 66 ) WHEN + 37 * + 69 * + 32 * + 52 THEN - 10 WHEN 60 THEN + 97 - 38 END * + - 62 THEN NULL WHEN + 47 - - CASE 70 WHEN COUNT ( * ) + + 58 - 5 + - 90 + + + COUNT ( * ) * - - CAST ( + COUNT ( ALL 59 ) AS INTEGER ) + - 92 / - 16 THEN CAST ( 29 AS INTEGER ) + 54 END + + 85 THEN COALESCE ( - 2, 86 * - 39 + 76 ) ELSE NULL END + 65 * - 5
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7371
SELECT + - 59 AS col0, + SUM( - 34 ) col0
----
-59
-34

skipif mysql # not compatible
query II rowsort label-7371
SELECT + - 59 AS col0, + SUM ( - 34 ) col0
----
-59
-34

query II rowsort
SELECT - 17 AS col0, + 45
----
-17
45

onlyif mysql # aggregate syntax: 
query II rowsort label-7373
SELECT ALL - COALESCE ( 49, - 81 * + COUNT( * ) - + 30 - - + 67 ) AS col2, + 98 AS col0
----
-49
98

skipif mysql # not compatible
query II rowsort label-7373
SELECT ALL - COALESCE ( 49, - 81 * + COUNT ( * ) - + 30 - - + 67 ) AS col2, + 98 AS col0
----
-49
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT DISTINCT - CASE - ( 65 ) WHEN - 1 THEN - + NULLIF ( + MIN( 67 ), - + 7 + 44 - + - 10 * - 68 / COUNT( * ) * + - 21 ) ELSE NULL END + + COUNT( * ) - - + 22 * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT - CASE - ( 65 ) WHEN - 1 THEN - + NULLIF ( + MIN ( 67 ), - + 7 + 44 - + - 10 * - 68 / COUNT ( * ) * + - 21 ) ELSE NULL END + + COUNT ( * ) - - + 22 * - 94
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7375
SELECT 67 + + 84 DIV - - 92 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-7375
SELECT 67 + + 84 / - - 92 AS col0
----
67

onlyif mysql # aggregate syntax: 
query III rowsort label-7376
SELECT DISTINCT + 92 + - 36 AS col1, ( + MIN( ALL + 41 ) ) col2, + 33 + 74 + + MAX( ALL ( + 32 ) ) * 58 AS col2
----
56
41
1963

skipif mysql # not compatible
query III rowsort label-7376
SELECT DISTINCT + 92 + - 36 AS col1, ( + MIN ( ALL + 41 ) ) col2, + 33 + 74 + + MAX ( ALL ( + 32 ) ) * 58 AS col2
----
56
41
1963

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT SUM( + 75 ) + NULLIF ( - ( - 22 ), + MAX( + ( - 76 ) ) ) + COUNT( * ) + 81 + - + 66 * 37 * + - 43 AS col0
----
105185

skipif mysql # not compatible
query I rowsort label-7377
SELECT SUM ( + 75 ) + NULLIF ( - ( - 22 ), + MAX ( + ( - 76 ) ) ) + COUNT ( * ) + 81 + - + 66 * 37 * + - 43 AS col0
----
105185

onlyif mysql # DIV for integer division: 
query I rowsort label-7378
SELECT ALL + 75 DIV - 38
----
-1

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL + 75 / - 38
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT DISTINCT - 66 + 5 * ( + + 99 ) * - + 5 * - - COUNT( * ) - + 13 + + 12 AS col2
----
-2542

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT - 66 + 5 * ( + + 99 ) * - + 5 * - - COUNT ( * ) - + 13 + + 12 AS col2
----
-2542

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT DISTINCT MAX( ALL - + 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT MAX ( ALL - + 82 ) AS col1
----
-82

query I rowsort
SELECT ALL - 48 + + 51 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT - NULLIF ( + 75, - COUNT( * ) + COUNT( * ) ) + + COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-7382
SELECT - NULLIF ( + 75, - COUNT ( * ) + COUNT ( * ) ) + + COUNT ( * ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-7383
SELECT ALL COUNT( * ) * + 24 AS col2, NULLIF ( 52, + 19 ) * - + 87
----
24
-4524

skipif mysql # not compatible
query II rowsort label-7383
SELECT ALL COUNT ( * ) * + 24 AS col2, NULLIF ( 52, + 19 ) * - + 87
----
24
-4524

query I rowsort
SELECT ALL - 48 + 20 * + ( 31 ) AS col2
----
572

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

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT 21 / COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT + 62 + - - COUNT( ALL - 60 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7386
SELECT + 62 + - - COUNT ( ALL - 60 ) AS col0
----
63

query I rowsort
SELECT ALL COALESCE ( + 14, - - 50, - 53 * + 47 * 45 )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7388
SELECT - + 33 * + ( + COUNT( * ) ) DIV + 85 * - + 30 + 42 + + 44 + - 1 DIV + 59 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7388
SELECT - + 33 * + ( + COUNT ( * ) ) / + 85 * - + 30 + 42 + + 44 + - 1 / + 59 AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7389
SELECT + ( - - COALESCE ( + - 20, CAST( 1 AS SIGNED ) ) ) DIV - + 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7389
SELECT + ( - - COALESCE ( + - 20, CAST ( 1 AS INTEGER ) ) ) / - + 56 AS col1
----
0

query I rowsort
SELECT ALL 92 * - 75 AS col1
----
-6900

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT ALL 40 * + 23 + ( NULLIF ( - ( + + COUNT( * ) ), - + 7 + + MIN( - 17 ) - - + ( COUNT( * ) ) ) ) + + 26 + + + ( 2 ) * - 86
----
773

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL 40 * + 23 + ( NULLIF ( - ( + + COUNT ( * ) ), - + 7 + + MIN ( - 17 ) - - + ( COUNT ( * ) ) ) ) + + 26 + + + ( 2 ) * - 86
----
773

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7392
SELECT - + 91 + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7392
SELECT - + 91 + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT - + COUNT( * ) * - 81 * + + 47 + NULLIF ( + 57, - - NULLIF ( COUNT( * ), - ( + 17 ) * - + COUNT( * ) * + ( - MAX( DISTINCT + - 41 ) ) + 16 ) / + - 33 + - - 99 )
----
3864

skipif mysql # not compatible
query I rowsort label-7393
SELECT - + COUNT ( * ) * - 81 * + + 47 + NULLIF ( + 57, - - NULLIF ( COUNT ( * ), - ( + 17 ) * - + COUNT ( * ) * + ( - MAX ( DISTINCT + - 41 ) ) + 16 ) / + - 33 + - - 99 )
----
3864

onlyif mysql # DIV for integer division: 
query I rowsort label-7394
SELECT + - 47 DIV - + 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7394
SELECT + - 47 / - + 74 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7395
SELECT ALL - - 59 * + 91 / CAST( NULL AS SIGNED ) / 87 * + 39 * + 46 * - 86 + + 50 + - COUNT( * ) * + 81 / + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL - - 59 * + 91 / CAST ( NULL AS INTEGER ) / 87 * + 39 * + 46 * - 86 + + 50 + - COUNT ( * ) * + 81 / + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + + 92 * + ( + - 44 ) + + 36
----
-4012

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7399
SELECT MAX ( + - 80 )
----
-80

query II rowsort
SELECT + 40 col1, - 98 col1
----
40
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT MIN( DISTINCT - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-7401
SELECT MIN ( DISTINCT - 34 )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7402
SELECT + ( - 74 ) - - ( + 18 ) + - 60 DIV + COUNT( * )
----
-116

skipif mysql # not compatible
query I rowsort label-7402
SELECT + ( - 74 ) - - ( + 18 ) + - 60 / + COUNT ( * )
----
-116

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT DISTINCT ( - 50 ) * + - 19 + 86 + - COUNT( * )
----
1035

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT ( - 50 ) * + - 19 + 86 + - COUNT ( * )
----
1035

query I rowsort
SELECT DISTINCT 63 + + 37
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-7406
SELECT - 9 AS col0, 53 * + 63 * SUM( ALL - 86 )
----
-9
-287154

skipif mysql # not compatible
query II rowsort label-7406
SELECT - 9 AS col0, 53 * + 63 * SUM ( ALL - 86 )
----
-9
-287154

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

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

query I rowsort
SELECT ALL 98 - 30
----
68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7410
SELECT - 86 * - + CAST( 64 AS SIGNED ) * + + 4 AS col0
----
22016

skipif mysql # not compatible
query I rowsort label-7410
SELECT - 86 * - + CAST ( 64 AS INTEGER ) * + + 4 AS col0
----
22016

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT ALL NULLIF ( 43, + COALESCE ( + NULLIF ( + ( + - 34 ), + - 50 - + 27 + - COUNT( * ) ), - 7, - NULLIF ( + 29, 35 ) ) )
----
43

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL NULLIF ( 43, + COALESCE ( + NULLIF ( + ( + - 34 ), + - 50 - + 27 + - COUNT ( * ) ), - 7, - NULLIF ( + 29, 35 ) ) )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7412
SELECT DISTINCT CASE 98 WHEN + 96 - 46 THEN NULL WHEN + 98 THEN NULL ELSE + CASE + + 70 WHEN 45 + - - ( + - 67 ) THEN - + COALESCE ( ( - CAST( NULL AS SIGNED ) ), + + 4 * - - 40 ) + - 13 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT CASE 98 WHEN + 96 - 46 THEN NULL WHEN + 98 THEN NULL ELSE + CASE + + 70 WHEN 45 + - - ( + - 67 ) THEN - + COALESCE ( ( - CAST ( NULL AS INTEGER ) ), + + 4 * - - 40 ) + - 13 END END
----
NULL

query I rowsort
SELECT + ( 96 ) + - 31 + 31
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7414
SELECT 3 col1, CAST( NULL AS SIGNED ) - + 86 + 95 + + 61 / - + 32 AS col2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7414
SELECT 3 col1, CAST ( NULL AS INTEGER ) - + 86 + 95 + + 61 / - + 32 AS col2
----
3
NULL

query I rowsort
SELECT - 50 * + + 6
----
-300

query I rowsort
SELECT - 56 * 60 AS col0
----
-3360

query I rowsort
SELECT - - 69 + - + 85
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT - 79 * + COUNT( * ) col0
----
-79

skipif mysql # not compatible
query I rowsort label-7418
SELECT - 79 * + COUNT ( * ) col0
----
-79

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL COUNT ( * ) / - 68 * + 51
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7422
SELECT - + 92 DIV + - 23
----
4

skipif mysql # not compatible
query I rowsort label-7422
SELECT - + 92 / + - 23
----
4

query II rowsort
SELECT 66 AS col2, 81
----
66
81

onlyif mysql # DIV for integer division: 
query II rowsort label-7424
SELECT + 22 DIV - 36 - 20 AS col0, 56 * + 77 AS col0
----
-20
4312

skipif mysql # not compatible
query II rowsort label-7424
SELECT + 22 / - 36 - 20 AS col0, 56 * + 77 AS col0
----
-20
4312

query I rowsort
SELECT + - 12 * + - 91 col2
----
1092

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

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL + - 0 / COUNT ( * ) + - 22 col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7427
SELECT - ( - - ( - CASE - 0 WHEN + 64 THEN + - 63 WHEN + CAST( NULL AS SIGNED ) * + 0 THEN + 11 END ) ) AS col1, 83
----
NULL
83

skipif mysql # not compatible
query II rowsort label-7427
SELECT - ( - - ( - CASE - 0 WHEN + 64 THEN + - 63 WHEN + CAST ( NULL AS INTEGER ) * + 0 THEN + 11 END ) ) AS col1, 83
----
NULL
83

query II rowsort
SELECT 3, 44 + - 50 col2
----
3
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7429
SELECT ALL - 13 DIV 41 + + 55 * - + 43 + + 17 AS col1
----
-2348

skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL - 13 / 41 + + 55 * - + 43 + + 17 AS col1
----
-2348

onlyif mysql # DIV for integer division: 
query I rowsort label-7430
SELECT DISTINCT + - 15 DIV + 96 - - 39 + + 72 + 56
----
167

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT + - 15 / + 96 - - 39 + + 72 + 56
----
167

onlyif mysql # DIV for integer division: 
query II rowsort label-7431
SELECT + 52 AS col0, 21 DIV + - 41 AS col0
----
52
0

skipif mysql # not compatible
query II rowsort label-7431
SELECT + 52 AS col0, 21 / + - 41 AS col0
----
52
0

query I rowsort
SELECT DISTINCT + 79 * - + 32 col2
----
-2528

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT ALL 83 * + + 4 + + 36 + - COUNT( ALL 43 ) * + 92 * - 50 + + 12
----
4980

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL 83 * + + 4 + + 36 + - COUNT ( ALL 43 ) * + 92 * - 50 + + 12
----
4980

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

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

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

query I rowsort
SELECT - 14 * + 38 - + 80
----
-612

query I rowsort
SELECT 84 * 46 + 9
----
3873

query I rowsort
SELECT DISTINCT 57 - + - 41
----
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT DISTINCT COUNT( * ) * 86 * + 10
----
860

skipif mysql # not compatible
query I rowsort label-7440
SELECT DISTINCT COUNT ( * ) * 86 * + 10
----
860

query I rowsort
SELECT 89 * - 92 AS col1
----
-8188

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT DISTINCT 3 * 61 * - - CASE + 37 WHEN - 61 * + - COUNT( * ) * - - 64 THEN NULL WHEN - - CASE - + 27 WHEN + + 61 THEN NULL WHEN - 34 + - COUNT( * ) THEN NULL ELSE + 3 END THEN NULL WHEN 87 * - - 9 THEN ( - 61 ) END * 66 * 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT 3 * 61 * - - CASE + 37 WHEN - 61 * + - COUNT ( * ) * - - 64 THEN NULL WHEN - - CASE - + 27 WHEN + + 61 THEN NULL WHEN - 34 + - COUNT ( * ) THEN NULL ELSE + 3 END THEN NULL WHEN 87 * - - 9 THEN ( - 61 ) END * 66 * 20 AS col2
----
NULL

query I rowsort
SELECT 37 + + 21 AS col2
----
58

query I rowsort
SELECT 8 + - 81 col0
----
-73

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7447
SELECT ALL 38 * 95 DIV 94 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL 38 * 95 / 94 AS col1
----
38

query II rowsort
SELECT DISTINCT ( - 63 ) AS col2, - 79
----
-63
-79

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7451
SELECT - 34 * + + CAST( - ( + - 95 ) AS SIGNED ) + 70 AS col0
----
-3160

skipif mysql # not compatible
query I rowsort label-7451
SELECT - 34 * + + CAST ( - ( + - 95 ) AS INTEGER ) + 70 AS col0
----
-3160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7452
SELECT CAST( - 22 AS SIGNED ) * 36 AS col0
----
-792

skipif mysql # not compatible
query I rowsort label-7452
SELECT CAST ( - 22 AS INTEGER ) * 36 AS col0
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT ALL - COUNT( - 11 ) + - 78 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL - COUNT ( - 11 ) + - 78 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT - 66 + + MIN( + + 16 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-7454
SELECT - 66 + + MIN ( + + 16 ) AS col2
----
-50

query I rowsort
SELECT DISTINCT - NULLIF ( - 57, - - 64 * + 52 ) AS col0
----
57

query I rowsort
SELECT ALL + - 73 * - + 45 * - + 44 AS col2
----
-144540

query I rowsort
SELECT 67 + 61 * 42
----
2629

query I rowsort
SELECT ALL + 75 + + 5
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT ALL - - COUNT( ALL - - 14 ) + - 21 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL - - COUNT ( ALL - - 14 ) + - 21 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT DISTINCT - ( ( - 50 ) ) * - NULLIF ( COUNT( * ), COALESCE ( 59, - - 42 ) ) col1
----
-50

skipif mysql # not compatible
query I rowsort label-7460
SELECT DISTINCT - ( ( - 50 ) ) * - NULLIF ( COUNT ( * ), COALESCE ( 59, - - 42 ) ) col1
----
-50

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7463
SELECT ALL - CAST( NULL AS SIGNED ) + - SUM( ALL - 92 ) + - - 59 * - 45 + + 85 + 98 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL - CAST ( NULL AS INTEGER ) + - SUM ( ALL - 92 ) + - - 59 * - 45 + + 85 + 98 + + COUNT ( * )
----
NULL

query II rowsort
SELECT + 35 AS col2, 76
----
35
76

query I rowsort
SELECT 88 * + 81 * - 61 + + + 34
----
-434774

query I rowsort
SELECT 73 * + ( - 17 )
----
-1241

query I rowsort
SELECT 80 * + 64 * + 45 + - + 1 AS col2
----
230399

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

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

query I rowsort
SELECT DISTINCT 70 * - 58 AS col2
----
-4060

query II rowsort
SELECT 50, COALESCE ( + - 98, - 32 * - 51 ) AS col2
----
50
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7471
SELECT ALL COUNT( * ) - - COUNT( * ) + - ( - 24 ) + + 80 * + 93 * CAST( + 49 AS SIGNED ) DIV - ( + 49 ) DIV COUNT( * )
----
-7414

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL COUNT ( * ) - - COUNT ( * ) + - ( - 24 ) + + 80 * + 93 * CAST ( + 49 AS INTEGER ) / - ( + 49 ) / COUNT ( * )
----
-7414

query I rowsort
SELECT 99 * 93
----
9207

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT DISTINCT COUNT( * ) - + 65 * + - ( - ( CASE - + 43 WHEN - + 69 THEN NULL WHEN + 74 * 33 THEN NULL WHEN + + 73 THEN NULL WHEN - - COUNT( * ) THEN NULL ELSE + 59 END ) ) AS col1
----
-3834

skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT COUNT ( * ) - + 65 * + - ( - ( CASE - + 43 WHEN - + 69 THEN NULL WHEN + 74 * 33 THEN NULL WHEN + + 73 THEN NULL WHEN - - COUNT ( * ) THEN NULL ELSE + 59 END ) ) AS col1
----
-3834

query I rowsort
SELECT 89 * + + 73
----
6497

query I rowsort
SELECT 98 - 77 AS col2
----
21

query I rowsort
SELECT ( 57 ) * - 32 col2
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT DISTINCT MIN( ALL - - 61 )
----
61

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT MIN ( ALL - - 61 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7479
SELECT ALL CAST( 98 AS SIGNED ) * - 15 AS col2
----
-1470

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL CAST ( 98 AS INTEGER ) * - 15 AS col2
----
-1470

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT COUNT( * ) - + 56 * + 62 AS col0
----
-3471

skipif mysql # not compatible
query I rowsort label-7481
SELECT COUNT ( * ) - + 56 * + 62 AS col0
----
-3471

query I rowsort
SELECT 14 * + 67
----
938

query I rowsort
SELECT NULLIF ( + 31, 91 + - 43 * + 2 ) + + 62 col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7484
SELECT ALL CAST( - CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) * MIN( 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL CAST ( - CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) * MIN ( 34 )
----
-34

query I rowsort
SELECT 62 * 57 AS col1
----
3534

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL COALESCE ( ( 48 ), COUNT( * ) ) + - COUNT( + 95 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL COALESCE ( ( 48 ), COUNT ( * ) ) + - COUNT ( + 95 ) AS col2
----
47

query I rowsort
SELECT ALL 49 + + 47 * - 1 AS col0
----
2

query I rowsort
SELECT 42 + 55
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT CASE - COUNT( * ) WHEN ( COALESCE ( - 67, MIN( DISTINCT 52 ) * 49 ) ) THEN NULL WHEN 22 THEN NULL ELSE + 7 * + 6 + 68 END + 36
----
146

skipif mysql # not compatible
query I rowsort label-7489
SELECT CASE - COUNT ( * ) WHEN ( COALESCE ( - 67, MIN ( DISTINCT 52 ) * 49 ) ) THEN NULL WHEN 22 THEN NULL ELSE + 7 * + 6 + 68 END + 36
----
146

query I rowsort
SELECT ALL + 47 + 16 * + 94
----
1551

query I rowsort
SELECT 77 * + 74
----
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL COUNT( * ) * - COALESCE ( - ( + 27 ), - 94 ) - 26 * 4 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL COUNT ( * ) * - COALESCE ( - ( + 27 ), - 94 ) - 26 * 4 AS col1
----
-77

query I rowsort
SELECT CASE + 19 WHEN 92 * 76 THEN 78 END
----
NULL

query I rowsort
SELECT 64 - - 82
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7495
SELECT COALESCE ( - 40, CASE WHEN CAST( NULL AS SIGNED ) <= ( 70 ) + CASE + COUNT( * ) WHEN - 73 THEN ( CAST( NULL AS SIGNED ) ) ELSE + 5 + 64 END THEN 16 END )
----
-40

skipif mysql # not compatible
query I rowsort label-7495
SELECT COALESCE ( - 40, CASE WHEN CAST ( NULL AS INTEGER ) <= ( 70 ) + CASE + COUNT ( * ) WHEN - 73 THEN ( CAST ( NULL AS INTEGER ) ) ELSE + 5 + 64 END THEN 16 END )
----
-40

query I rowsort
SELECT COALESCE ( + 25, - 51 ) AS col1
----
25

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

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT + COUNT ( * ) * 28 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT ALL - COUNT( * ) * 41 - CASE 96 WHEN 22 * + 30 THEN - 80 ELSE COALESCE ( - COALESCE ( + SUM( ALL 3 ), - 72 + - 20 ), - 41 ) END AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL - COUNT ( * ) * 41 - CASE 96 WHEN 22 * + 30 THEN - 80 ELSE COALESCE ( - COALESCE ( + SUM ( ALL 3 ), - 72 + - 20 ), - 41 ) END AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7499
SELECT - CAST( + 7 AS SIGNED ) * 20
----
-140

skipif mysql # not compatible
query I rowsort label-7499
SELECT - CAST ( + 7 AS INTEGER ) * 20
----
-140

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

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL + CAST ( 96 AS INTEGER )
----
96

query I rowsort
SELECT DISTINCT + 12 * 86
----
1032

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

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL - COUNT ( + 52 ) * 68 AS col0
----
-68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7504
SELECT - 75 DIV 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7504
SELECT - 75 / 87 AS col0
----
0

query I rowsort
SELECT - ( - 39 ) + 73 * 69
----
5076

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT DISTINCT + CASE 90 WHEN 94 THEN + COUNT( DISTINCT 74 ) WHEN + 73 * 26 + - 60 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT DISTINCT + CASE 90 WHEN 94 THEN + COUNT ( DISTINCT 74 ) WHEN + 73 * 26 + - 60 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 27 + 31 AS col1
----
4

query I rowsort
SELECT - 21 * + 32
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT DISTINCT + CASE + AVG ( - 90 ) WHEN - 80 THEN - MIN( ALL + 6 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT + CASE + AVG ( - 90 ) WHEN - 80 THEN - MIN ( ALL + 6 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT DISTINCT 50 * + CASE - 19 WHEN COUNT( * ) THEN - 15 * 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT 50 * + CASE - 19 WHEN COUNT ( * ) THEN - 15 * 54 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT + MAX( DISTINCT 19 ) * 29
----
551

skipif mysql # not compatible
query I rowsort label-7511
SELECT + MAX ( DISTINCT 19 ) * 29
----
551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7512
SELECT ALL + CASE WHEN NOT ( NULL ) >= ( - CAST( + 56 AS SIGNED ) ) THEN + 39 * 46 END + + 88 * - ( + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL + CASE WHEN NOT ( NULL ) >= ( - CAST ( + 56 AS INTEGER ) ) THEN + 39 * 46 END + + 88 * - ( + 93 )
----
NULL

query I rowsort
SELECT DISTINCT - 41 + - 80 AS col2
----
-121

query I rowsort
SELECT NULLIF ( - 47, - 70 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT DISTINCT + - 57 + 54 * MAX( ALL 82 )
----
4371

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT + - 57 + 54 * MAX ( ALL 82 )
----
4371

query I rowsort
SELECT ALL 42 + 23 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT + 86 + - ( COUNT( * ) + + 82 )
----
3

skipif mysql # not compatible
query I rowsort label-7517
SELECT + 86 + - ( COUNT ( * ) + + 82 )
----
3

query I rowsort
SELECT ALL 69 + 94 AS col1
----
163

query I rowsort
SELECT DISTINCT 83 + 79
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7520
SELECT + - 80 / NULLIF ( CAST( NULL AS SIGNED ) * 35, - 82 + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7520
SELECT + - 80 / NULLIF ( CAST ( NULL AS INTEGER ) * 35, - 82 + 97 )
----
NULL

query I rowsort
SELECT ALL - 75 + + 6 AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7522
SELECT ALL + 69 DIV SUM( - 22 + + 68 * 84 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL + 69 / SUM ( - 22 + + 68 * 84 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL - 94 + + NULLIF ( CASE WHEN ( 52 ) IS NULL THEN 68 + + SUM( - CASE - 73 WHEN + ( 29 ) THEN NULL ELSE 48 END ) WHEN NOT ( 25 * - 97 ) <= ( - 23 ) THEN 54 ELSE - 97 + + ( - COALESCE ( - 62, 45 ) ) END, - 58 ) AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL - 94 + + NULLIF ( CASE WHEN ( 52 ) IS NULL THEN 68 + + SUM ( - CASE - 73 WHEN + ( 29 ) THEN NULL ELSE 48 END ) WHEN NOT ( 25 * - 97 ) <= ( - 23 ) THEN 54 ELSE - 97 + + ( - COALESCE ( - 62, 45 ) ) END, - 58 ) AS col2
----
-129

query I rowsort
SELECT DISTINCT - 36 * - 50
----
1800

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7525
SELECT DISTINCT - 25 DIV CAST( - 16 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT - 25 / CAST ( - 16 AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT DISTINCT + SUM( ALL + 72 ) - + 19
----
53

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT + SUM ( ALL + 72 ) - + 19
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT DISTINCT - 92 - - 40 * - COUNT( ALL - 35 ) col0
----
-132

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT - 92 - - 40 * - COUNT ( ALL - 35 ) col0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT DISTINCT - SUM( DISTINCT - 83 ) * 4 AS col2
----
332

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT - SUM ( DISTINCT - 83 ) * 4 AS col2
----
332

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7531
SELECT + + CAST( - 31 AS SIGNED ) + + 49 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-7531
SELECT + + CAST ( - 31 AS INTEGER ) + + 49 AS col1
----
18

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

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

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

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

query I rowsort
SELECT + 34 * - - 25 * 53 col0
----
45050

query I rowsort
SELECT - 40 + + 11 AS col1
----
-29

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

skipif mysql # not compatible
query I rowsort label-7536
SELECT ( - SUM ( + 10 ) )
----
-10

query I rowsort
SELECT ALL - 72 * 22 * + 95 + - 65 * 81
----
-155745

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

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

query I rowsort
SELECT - 4 * + 41
----
-164

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

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL - 54 * CAST ( NULL AS INTEGER ) * 77
----
NULL

query I rowsort
SELECT DISTINCT 57 * 73 + + ( + 74 )
----
4235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7542
SELECT ALL 25 * + ( CAST( NULL AS SIGNED ) ) + 19
----
NULL

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

query I rowsort
SELECT - 74 * - - 99
----
-7326

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

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

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

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

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

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

query I rowsort
SELECT - + 59 - - 74 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT - NULLIF ( + - 98, - 74 * COUNT( * ) + + 46 )
----
98

skipif mysql # not compatible
query I rowsort label-7548
SELECT - NULLIF ( + - 98, - 74 * COUNT ( * ) + + 46 )
----
98

query I rowsort
SELECT - 71 * 7 - + 88 AS col0
----
-585

query I rowsort
SELECT DISTINCT - COALESCE ( 37, + ( - 65 ), 84 )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7551
SELECT + CASE + COALESCE ( 74, - COALESCE ( - 53, - 70, 55 / + 3 ) + - 64, - 53 * - COALESCE ( - 90 * + 59, - 29 / 52 ) + - CAST( + 23 - + 84 AS SIGNED ) ) WHEN 80 + CAST( NULL AS SIGNED ) * - COUNT( * ) THEN 90 ELSE ( 80 ) * 70 END AS col2
----
5600

skipif mysql # not compatible
query I rowsort label-7551
SELECT + CASE + COALESCE ( 74, - COALESCE ( - 53, - 70, 55 / + 3 ) + - 64, - 53 * - COALESCE ( - 90 * + 59, - 29 / 52 ) + - CAST ( + 23 - + 84 AS INTEGER ) ) WHEN 80 + CAST ( NULL AS INTEGER ) * - COUNT ( * ) THEN 90 ELSE ( 80 ) * 70 END AS col2
----
5600

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

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 92
----
NULL

query I rowsort
SELECT ALL + 39 * + 89 * ( 40 ) - + ( - 75 ) col0
----
138915

query I rowsort
SELECT ALL + COALESCE ( + + 79, 85 ) * + 99
----
7821

query I rowsort
SELECT ALL 3 - - 44 * 21
----
927

query I rowsort
SELECT + 73 - - 52 * 49 AS col0
----
2621

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL - - MIN( DISTINCT + 36 ) * 29 AS col1
----
1044

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL - - MIN ( DISTINCT + 36 ) * 29 AS col1
----
1044

query I rowsort
SELECT - + 57 * + 74 col2
----
-4218

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT ALL - 46 * + - 72 + COUNT( * )
----
3313

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL - 46 * + - 72 + COUNT ( * )
----
3313

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT - 62 * + - 74 * + COUNT( ALL + 19 ) AS col0
----
4588

skipif mysql # not compatible
query I rowsort label-7562
SELECT - 62 * + - 74 * + COUNT ( ALL + 19 ) AS col0
----
4588

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT SUM( + 71 ) + + 45 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-7563
SELECT SUM ( + 71 ) + + 45 AS col1
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-7564
SELECT DISTINCT + 64 DIV 28 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT + 64 / 28 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7565
SELECT 2 DIV - - 7 * 18 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7565
SELECT 2 / - - 7 * 18 * - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL 82 * + + 97
----
7954

query II rowsort
SELECT - 90, - NULLIF ( + + 98, - 84 + 39 ) * - 5 AS col0
----
-90
490

onlyif mysql # DIV for integer division: 
query I rowsort label-7568
SELECT 92 DIV + 17
----
5

skipif mysql # not compatible
query I rowsort label-7568
SELECT 92 / + 17
----
5

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

skipif mysql # not compatible
query I rowsort label-7569
SELECT COUNT ( * ) / 77 * - + 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT ALL COUNT( * ) + + 61 + 93 * MAX( ALL + 87 )
----
8153

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL COUNT ( * ) + + 61 + 93 * MAX ( ALL + 87 )
----
8153

query I rowsort
SELECT 98 - - 72 + - + 78 + - 48 * ( + 59 * - 45 )
----
127532

onlyif mysql # DIV for integer division: 
query I rowsort label-7572
SELECT ALL 22 + 86 DIV - + 59
----
21

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL 22 + 86 / - + 59
----
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT DISTINCT 51 + + + 13 + 24 * SUM( 91 )
----
2248

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT 51 + + + 13 + 24 * SUM ( 91 )
----
2248

query I rowsort
SELECT ALL NULLIF ( + 9, 7 ) + + 17
----
26

query I rowsort
SELECT 27 * - 88
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL 86 + + + MIN( ( 52 ) )
----
138

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL 86 + + + MIN ( ( 52 ) )
----
138

query I rowsort
SELECT ALL + 95 + + 92
----
187

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7580
SELECT 32 DIV + COALESCE ( - 76, - 91 + 44 ) + 8 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7580
SELECT 32 / + COALESCE ( - 76, - 91 + 44 ) + 8 AS col1
----
8

query I rowsort
SELECT 52 * + - COALESCE ( 25, 98 )
----
-1300

query I rowsort
SELECT ( + - 26 ) + - 33
----
-59

query I rowsort
SELECT ALL - NULLIF ( 24, - 56 - 60 * NULLIF ( + 1, + 16 / - 77 ) ) * 80
----
-1920

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7584
SELECT DISTINCT - CAST( - 49 AS SIGNED ) DIV - 2
----
-24

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT - CAST ( - 49 AS INTEGER ) / - 2
----
-24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT DISTINCT - + CASE - - 29 WHEN + - 6 + 8 * 89 THEN NULL WHEN COUNT( * ) + 73 THEN - 21 + 58 END * 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT - + CASE - - 29 WHEN + - 6 + 8 * 89 THEN NULL WHEN COUNT ( * ) + 73 THEN - 21 + 58 END * 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7587
SELECT - 35 + + 12 + COUNT( * ) DIV 78 * - 82
----
-23

skipif mysql # not compatible
query I rowsort label-7587
SELECT - 35 + + 12 + COUNT ( * ) / 78 * - 82
----
-23

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

query I rowsort
SELECT DISTINCT 9 - 82
----
-73

query I rowsort
SELECT DISTINCT + COALESCE ( 8, + - 38 * 51, - 27 )
----
8

query I rowsort
SELECT DISTINCT - - 97 - + 99 - - - COALESCE ( + 34, + 12 ) * ( - 65 * + COALESCE ( - 13 * + 39, 87 + + NULLIF ( - 33, 95 + - 12 * + 96 ) ) ) AS col0
----
-1120472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7592
SELECT 26 + 65 + - CAST( NULL AS SIGNED ) / - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT 26 + 65 + - CAST ( NULL AS INTEGER ) / - 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7593
SELECT + 10 DIV - COUNT( * ) + 94 + 23 DIV - 35 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-7593
SELECT + 10 / - COUNT ( * ) + 94 + 23 / - 35 AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7594
SELECT + 68 * + CAST( NULL AS SIGNED ) + - - 87 + - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7594
SELECT + 68 * + CAST ( NULL AS INTEGER ) + - - 87 + - 66 AS col1
----
NULL

query I rowsort
SELECT - 24 * + 30
----
-720

query I rowsort
SELECT - 93 * 75 + - 60 * - 37 AS col1
----
-4755

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT DISTINCT - SUM( ALL - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT - SUM ( ALL - 58 )
----
58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7600
SELECT ALL + 39 AS col0, + COALESCE ( + + COUNT( * ), - 48 DIV 56 ) + - 89 AS col0
----
39
-88

skipif mysql # not compatible
query II rowsort label-7600
SELECT ALL + 39 AS col0, + COALESCE ( + + COUNT ( * ), - 48 / 56 ) + - 89 AS col0
----
39
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7601
SELECT DISTINCT - + COUNT( * ) * CASE + - 91 WHEN ( - 9 ) THEN - CAST( NULL AS SIGNED ) + 54 WHEN ( 53 ) THEN 93 + - 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT - + COUNT ( * ) * CASE + - 91 WHEN ( - 9 ) THEN - CAST ( NULL AS INTEGER ) + 54 WHEN ( 53 ) THEN 93 + - 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT - + COALESCE ( + 50, - 63, COALESCE ( - 44, COUNT( * ) ) + - 55 )
----
-50

skipif mysql # not compatible
query I rowsort label-7602
SELECT - + COALESCE ( + 50, - 63, COALESCE ( - 44, COUNT ( * ) ) + - 55 )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7603
SELECT COUNT( * ) + + 65 DIV + COUNT( * ) + - - 92 * - 73
----
-6650

skipif mysql # not compatible
query I rowsort label-7603
SELECT COUNT ( * ) + + 65 / + COUNT ( * ) + - - 92 * - 73
----
-6650

query I rowsort
SELECT ALL - 98 * + 17 * 5 * 44 AS col1
----
-366520

query I rowsort
SELECT 82 * + + 85 col2
----
6970

query I rowsort
SELECT 18 + + 3 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT ALL + COUNT( * ) + + ( + ( + ( 73 ) ) ) + 92 * - 77 col2
----
-7010

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL + COUNT ( * ) + + ( + ( + ( 73 ) ) ) + 92 * - 77 col2
----
-7010

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT COUNT( * ) - 49 + 14 * + 51 * 19 AS col1
----
13518

skipif mysql # not compatible
query I rowsort label-7608
SELECT COUNT ( * ) - 49 + 14 * + 51 * 19 AS col1
----
13518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7609
SELECT DISTINCT - 81 + - + 78 * + 68 / + 31 * 90 + + CAST( NULL AS SIGNED ) * - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT - 81 + - + 78 * + 68 / + 31 * 90 + + CAST ( NULL AS INTEGER ) * - 78 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 2 * - 90 + + - 39 AS col1
----
141

query I rowsort
SELECT ALL + 18 * - CASE + 87 WHEN + + 88 THEN NULL ELSE - 69 + 80 END + 13 AS col1
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7612
SELECT DISTINCT - CASE + 39 WHEN 75 + COALESCE ( - 4, AVG ( NULLIF ( + 12, ( - ( CAST( 60 AS DECIMAL ) ) ) ) ), 26, + 42 / COUNT( - 3 / NULLIF ( + 45, 0 + + 76 ) ) ) * - CAST( NULL AS SIGNED ) THEN + CAST( 90 AS SIGNED ) WHEN 32 * + 76 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT DISTINCT - CASE + 39 WHEN 75 + COALESCE ( - 4, AVG ( NULLIF ( + 12, ( - ( CAST ( 60 AS REAL ) ) ) ) ), 26, + 42 / COUNT ( - 3 / NULLIF ( + 45, 0 + + 76 ) ) ) * - CAST ( NULL AS INTEGER ) THEN + CAST ( 90 AS INTEGER ) WHEN 32 * + 76 THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7613
SELECT COUNT ( * ) / + 17 * ( + + 17 ) + 47
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7614
SELECT ALL NULLIF ( + 13, - 25 ) DIV NULLIF ( 71, 54 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL NULLIF ( + 13, - 25 ) / NULLIF ( 71, 54 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT COUNT( * ) * + 25 * - 71 AS col1
----
-1775

skipif mysql # not compatible
query I rowsort label-7615
SELECT COUNT ( * ) * + 25 * - 71 AS col1
----
-1775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7616
SELECT DISTINCT ( + MAX( DISTINCT + 74 ) ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

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

query I rowsort
SELECT ALL - 92 * - 56 * - - 96 + NULLIF ( - 65, + 90 + + 85 * - 86 ) + - 61 AS col2
----
494466

query II rowsort
SELECT 33 * - 59 AS col2, - 99
----
-1947
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT MAX( ALL 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7619
SELECT MAX ( ALL 8 ) AS col2
----
8

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

skipif mysql # not compatible
query I rowsort label-7620
SELECT + SUM ( - - 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT DISTINCT MIN( ALL - 38 ) * + ( COUNT( * ) ) - + MAX( DISTINCT 26 )
----
-64

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT MIN ( ALL - 38 ) * + ( COUNT ( * ) ) - + MAX ( DISTINCT 26 )
----
-64

query I rowsort
SELECT + 14 * + + 26 * 0 * + 1 col2
----
0

query I rowsort
SELECT + 12 * - + 66 - 0 AS col2
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT - CASE 42 WHEN SUM( - 53 ) THEN NULL WHEN + 66 * 72 THEN 68 * 41 END * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT - CASE 42 WHEN SUM ( - 53 ) THEN NULL WHEN + 66 * 72 THEN 68 * 41 END * + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT 66 * 43 - + + 37 - - + COUNT( - 93 )
----
2802

skipif mysql # not compatible
query I rowsort label-7625
SELECT 66 * 43 - + + 37 - - + COUNT ( - 93 )
----
2802

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

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

query II rowsort
SELECT + 35 * - + 99 col1, 62
----
-3465
62

onlyif mysql # DIV for integer division: 
query I rowsort label-7628
SELECT ALL + 86 DIV 71 * 79 * - + 4
----
-316

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL + 86 / 71 * 79 * - + 4
----
-316

query I rowsort
SELECT DISTINCT 23 * + + 77 * - 20 * + 64 AS col2
----
-2266880

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL - NULLIF ( - 78, ( + + 70 ) * MIN( ALL - 47 * + 80 + - 28 * - 11 ) )
----
78

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL - NULLIF ( - 78, ( + + 70 ) * MIN ( ALL - 47 * + 80 + - 28 * - 11 ) )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT - + COUNT( * ) - - 62 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7631
SELECT - + COUNT ( * ) - - 62 AS col2
----
61

query I rowsort
SELECT ALL 41 * - CASE 68 WHEN - 50 THEN 40 + 81 END / + 94
----
NULL

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

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

query I rowsort
SELECT - 41 * 52
----
-2132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7635
SELECT ALL - MIN( DISTINCT 96 ) + - - 15 DIV + 16 * + 5 + 76 * 87 AS col2
----
6516

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL - MIN ( DISTINCT 96 ) + - - 15 / + 16 * + 5 + 76 * 87 AS col2
----
6516

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7636
SELECT ALL + 40 + + - 37 + + - CAST( - + 34 AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL + 40 + + - 37 + + - CAST ( - + 34 AS INTEGER )
----
37

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

query I rowsort
SELECT DISTINCT 76 + + 23
----
99

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

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

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

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

query I rowsort
SELECT ALL + 40 + 75 * + 16 + + - 97 + 78 AS col2
----
1221

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT ALL SUM( DISTINCT 67 )
----
67

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL SUM ( DISTINCT 67 )
----
67

query I rowsort
SELECT + 69 + 40
----
109

query I rowsort
SELECT - 75 * - 87 AS col2
----
6525

onlyif mysql # aggregate syntax: 
query II rowsort label-7645
SELECT ALL COALESCE ( - + 50, 14 ), + COUNT( * ) col1
----
-50
1

skipif mysql # not compatible
query II rowsort label-7645
SELECT ALL COALESCE ( - + 50, 14 ), + COUNT ( * ) col1
----
-50
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7646
SELECT DISTINCT + CAST( + CASE + - 26 WHEN + - 8 / + - 95 - + 64 THEN - COUNT( * ) END AS DECIMAL ) * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7646
SELECT DISTINCT + CAST ( + CASE + - 26 WHEN + - 8 / + - 95 - + 64 THEN - COUNT ( * ) END AS REAL ) * 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT ALL - CASE + ( + 6 ) WHEN + + ( - - 95 ) * COUNT( * ) + + 96 THEN NULL ELSE 70 + + SUM( ALL 93 ) END - CASE 21 + - 86 WHEN - COUNT( * ) THEN - COUNT( * ) * - 85 WHEN - 54 + 15 THEN NULLIF ( 81, + 85 * + NULLIF ( + 98, COUNT( * ) ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL - CASE + ( + 6 ) WHEN + + ( - - 95 ) * COUNT ( * ) + + 96 THEN NULL ELSE 70 + + SUM ( ALL 93 ) END - CASE 21 + - 86 WHEN - COUNT ( * ) THEN - COUNT ( * ) * - 85 WHEN - 54 + 15 THEN NULLIF ( 81, + 85 * + NULLIF ( + 98, COUNT ( * ) ) ) ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7648
SELECT + SUM ( + 69 )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7649
SELECT ALL + COUNT( * ) * + 90 * - 58 AS col2, - 63 + - 96 + 39 AS col2
----
-5220
-120

skipif mysql # not compatible
query II rowsort label-7649
SELECT ALL + COUNT ( * ) * + 90 * - 58 AS col2, - 63 + - 96 + 39 AS col2
----
-5220
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT + 23 * + MAX( DISTINCT - - 7 )
----
161

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT + 23 * + MAX ( DISTINCT - - 7 )
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT DISTINCT + CASE 75 WHEN + - 40 + 44 + + 74 / 17 THEN + 20 - COUNT( * ) WHEN + 25 + - 30 THEN NULL ELSE NULL END * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT DISTINCT + CASE 75 WHEN + - 40 + 44 + + 74 / 17 THEN + 20 - COUNT ( * ) WHEN + 25 + - 30 THEN NULL ELSE NULL END * 57
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7652
SELECT DISTINCT + 13, + COUNT( * ) AS col2
----
13
1

skipif mysql # not compatible
query II rowsort label-7652
SELECT DISTINCT + 13, + COUNT ( * ) AS col2
----
13
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7654
SELECT DISTINCT 38 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT 38 / - 62
----
0

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

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

query I rowsort
SELECT + 26 - + + 73
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-7657
SELECT - 65 DIV + 27 col1
----
-2

skipif mysql # not compatible
query I rowsort label-7657
SELECT - 65 / + 27 col1
----
-2

query I rowsort
SELECT 56 * - 90 + 76
----
-4964

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT - MIN( ALL - + 58 ) * - + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-7659
SELECT - MIN ( ALL - + 58 ) * - + COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT + + COALESCE ( + ( + 91 ), + 8, - 75 * - COALESCE ( - COUNT( * ), - 2 + COUNT( * ) * + COUNT( * ), + 35 ), 71 ) * - 64 AS col2
----
-5824

skipif mysql # not compatible
query I rowsort label-7660
SELECT + + COALESCE ( + ( + 91 ), + 8, - 75 * - COALESCE ( - COUNT ( * ), - 2 + COUNT ( * ) * + COUNT ( * ), + 35 ), 71 ) * - 64 AS col2
----
-5824

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

skipif mysql # not compatible
query I rowsort label-7661
SELECT + 53 * + + COUNT ( ALL + 23 ) col0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-7662
SELECT ALL 22 * + + 43 + + 89, - SUM( - + 92 ) + 51 AS col2
----
1035
143

skipif mysql # not compatible
query II rowsort label-7662
SELECT ALL 22 * + + 43 + + 89, - SUM ( - + 92 ) + 51 AS col2
----
1035
143

query I rowsort
SELECT ALL - 59 * - 87
----
5133

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

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT - + COUNT ( * ) / + 54 + + 10 AS col1
----
10

query I rowsort
SELECT ALL + 84 * - 67
----
-5628

query I rowsort
SELECT + - 79 * - + 93 AS col0
----
7347

query I rowsort
SELECT 20 * - + 96 + - - 65 + + - 98
----
-1953

query I rowsort
SELECT DISTINCT + CASE - + 39 WHEN + 63 - 92 THEN + 35 ELSE + 5 END * - 81
----
-405

query I rowsort
SELECT + + 45 + 3
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7670
SELECT ALL + - CAST( NULL AS SIGNED ) * - COUNT( * ) + + 92 - - + 6 * - 41 + ( ( 96 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 92 - - + 6 * - 41 + ( ( 96 ) )
----
NULL

query I rowsort
SELECT ALL 11 * - 44 + + 82 AS col0
----
-402

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7674
SELECT COUNT ( 67 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7675
SELECT ALL 6 + - + CAST( + 80 AS SIGNED ) + - + 82
----
-156

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL 6 + - + CAST ( + 80 AS INTEGER ) + - + 82
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT DISTINCT SUM( DISTINCT - + 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT SUM ( DISTINCT - + 19 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-7677
SELECT ALL COUNT( * ) AS col2, 37 * - COUNT( ALL + 23 ) - SUM( DISTINCT + + 96 ) * 22 AS col0
----
1
-2149

skipif mysql # not compatible
query II rowsort label-7677
SELECT ALL COUNT ( * ) AS col2, 37 * - COUNT ( ALL + 23 ) - SUM ( DISTINCT + + 96 ) * 22 AS col0
----
1
-2149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7678
SELECT + 29 + - 44 + + CASE - - 92 WHEN - 34 DIV + + 94 THEN NULL WHEN + CASE - 23 WHEN 54 DIV 95 + 37 * + ( + NULLIF ( + 72, 0 ) + + 76 * + COUNT( * ) ) THEN - AVG ( 85 ) * 38 ELSE 34 + MAX( DISTINCT - 88 ) END THEN 34 WHEN - 92 + + 8 * - 39 THEN + ( CASE - CAST( 27 AS DECIMAL ) WHEN 85 THEN + CAST( - 46 AS SIGNED ) DIV 95 WHEN + CASE - 64 WHEN + 48 THEN 59 END - - 30 * 46 THEN NULL ELSE - 57 END ) * - 32 + COALESCE ( - 80 + 30 DIV - COUNT( * ), + 61 + + 17 ) ELSE - 87 + 74 * + 71 END + 4 * + 13 * 50
----
7752

skipif mysql # not compatible
query I rowsort label-7678
SELECT + 29 + - 44 + + CASE - - 92 WHEN - 34 / + + 94 THEN NULL WHEN + CASE - 23 WHEN 54 / 95 + 37 * + ( + NULLIF ( + 72, 0 ) + + 76 * + COUNT ( * ) ) THEN - AVG ( 85 ) * 38 ELSE 34 + MAX ( DISTINCT - 88 ) END THEN 34 WHEN - 92 + + 8 * - 39 THEN + ( CASE - CAST ( 27 AS REAL ) WHEN 85 THEN + CAST ( - 46 AS INTEGER ) / 95 WHEN + CASE - 64 WHEN + 48 THEN 59 END - - 30 * 46 THEN NULL ELSE - 57 END ) * - 32 + COALESCE ( - 80 + 30 / - COUNT ( * ), + 61 + + 17 ) ELSE - 87 + 74 * + 71 END + 4 * + 13 * 50
----
7752

query I rowsort
SELECT DISTINCT 35 + - 76 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT ALL ( - - 97 ) * - COUNT( * ) + - - 83 + + 42 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL ( - - 97 ) * - COUNT ( * ) + - - 83 + + 42 AS col2
----
28

query II rowsort
SELECT 82 AS col2, + 37
----
82
37

query I rowsort
SELECT ALL 70 + - - 65
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT + SUM( + ( - - 23 ) ) * + 40 AS col1
----
920

skipif mysql # not compatible
query I rowsort label-7683
SELECT + SUM ( + ( - - 23 ) ) * + 40 AS col1
----
920

onlyif mysql # aggregate syntax: 
query II rowsort label-7684
SELECT ALL ( 22 ) * + + 89 * + 22 AS col0, - MAX( 21 ) + - 72 AS col1
----
43076
-93

skipif mysql # not compatible
query II rowsort label-7684
SELECT ALL ( 22 ) * + + 89 * + 22 AS col0, - MAX ( 21 ) + - 72 AS col1
----
43076
-93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT - CASE 73 WHEN + COALESCE ( - SUM( ALL - + CASE - + 35 WHEN 89 THEN CASE + 97 WHEN ( 85 ) THEN 39 / 13 ELSE NULL END * 25 ELSE + ( 32 ) + 4 * - 61 END ), 91, 49 + + MAX( 32 + - 55 ), - 61 ) THEN 81 WHEN - 97 - 27 THEN NULL END + + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT - CASE 73 WHEN + COALESCE ( - SUM ( ALL - + CASE - + 35 WHEN 89 THEN CASE + 97 WHEN ( 85 ) THEN 39 / 13 ELSE NULL END * 25 ELSE + ( 32 ) + 4 * - 61 END ), 91, 49 + + MAX ( 32 + - 55 ), - 61 ) THEN 81 WHEN - 97 - 27 THEN NULL END + + 46 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT ALL CASE - COUNT( * ) WHEN - 42 * + 64 THEN - 74 * + - 19 + 8 * - COUNT( * ) ELSE NULL END - 8 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL CASE - COUNT ( * ) WHEN - 42 * + 64 THEN - 74 * + - 19 + 8 * - COUNT ( * ) ELSE NULL END - 8 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7689
SELECT ALL COALESCE ( + - 63, - + ( + - CAST( NULL AS SIGNED ) ) + + - 94 * + 98, - 67 * COUNT( * ) )
----
-63

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL COALESCE ( + - 63, - + ( + - CAST ( NULL AS INTEGER ) ) + + - 94 * + 98, - 67 * COUNT ( * ) )
----
-63

query I rowsort
SELECT - 27 * - 73
----
1971

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT + 39 + COUNT( * ) * - 81 * 82 + + 16 AS col1
----
-6587

skipif mysql # not compatible
query I rowsort label-7691
SELECT + 39 + COUNT ( * ) * - 81 * 82 + + 16 AS col1
----
-6587

onlyif mysql # aggregate syntax: 
query II rowsort label-7692
SELECT DISTINCT COUNT( * ) AS col1, + 10 + + 28 + + 59 + COUNT( * )
----
1
98

skipif mysql # not compatible
query II rowsort label-7692
SELECT DISTINCT COUNT ( * ) AS col1, + 10 + + 28 + + 59 + COUNT ( * )
----
1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT ALL COALESCE ( + COUNT( * ), - + MAX( - 33 ) ) * + 76 * + 31 AS col2
----
2356

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL COALESCE ( + COUNT ( * ), - + MAX ( - 33 ) ) * + 76 * + 31 AS col2
----
2356

query II rowsort
SELECT 6, 15 AS col0
----
6
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7695
SELECT DISTINCT ( + 30 ) - + 21 * - + 75 * - ( + 96 ) * - 80 + COUNT( * ) DIV - 52 col2
----
12096030

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT ( + 30 ) - + 21 * - + 75 * - ( + 96 ) * - 80 + COUNT ( * ) / - 52 col2
----
12096030

query I rowsort
SELECT + COALESCE ( - 1, + 52 * 74, + NULLIF ( - 15, 80 ) ) * 51 + 67
----
16

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT - CAST( - + 7 AS SIGNED ) * - 95 AS col1
----
-665

skipif mysql # not compatible
query I rowsort label-7698
SELECT - CAST ( - + 7 AS INTEGER ) * - 95 AS col1
----
-665

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7700
SELECT ALL + ( 53 ) * ( 5 ) col0, + COUNT( * )
----
265
1

skipif mysql # not compatible
query II rowsort label-7700
SELECT ALL + ( 53 ) * ( 5 ) col0, + COUNT ( * )
----
265
1

query I rowsort
SELECT + 49 * + NULLIF ( 39, 59 ) + 78 AS col2
----
1989

query II rowsort
SELECT + 72 col0, NULLIF ( - 81, - - 25 * 66 ) + + + 89
----
72
8

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

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL + 30 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT 11 * - 1 * - - 56 * - - COUNT( + + 93 ) AS col1
----
-616

skipif mysql # not compatible
query I rowsort label-7704
SELECT 11 * - 1 * - - 56 * - - COUNT ( + + 93 ) AS col1
----
-616

onlyif mysql # aggregate syntax: 
query II rowsort label-7705
SELECT ALL + COUNT( * ) * 23, + COALESCE ( - COUNT( * ), + MIN( ALL - + 17 ) ) + - ( 11 ) AS col0
----
23
-12

skipif mysql # not compatible
query II rowsort label-7705
SELECT ALL + COUNT ( * ) * 23, + COALESCE ( - COUNT ( * ), + MIN ( ALL - + 17 ) ) + - ( 11 ) AS col0
----
23
-12

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7707
SELECT DISTINCT - 86 * + 39 + + COUNT( * ) DIV - 40 col1
----
-3354

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT - 86 * + 39 + + COUNT ( * ) / - 40 col1
----
-3354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7708
SELECT 4 DIV CASE + + 45 WHEN 98 * - ( - CAST( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) ) THEN NULL ELSE 20 END + NULLIF ( 14, COUNT( * ) ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-7708
SELECT 4 / CASE + + 45 WHEN 98 * - ( - CAST ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) ) THEN NULL ELSE 20 END + NULLIF ( 14, COUNT ( * ) ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT ALL SUM( ALL ( + + 9 ) ) + - 11 * + ( - 11 ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL SUM ( ALL ( + + 9 ) ) + - 11 * + ( - 11 ) AS col1
----
130

query II rowsort
SELECT + - 34, 34 - + 23 AS col1
----
-34
11

query I rowsort
SELECT ALL + + 73 + - 39 * 64 AS col1
----
-2423

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT + COALESCE ( COUNT( * ), MIN( ALL 1 ) * COALESCE ( ( 87 ), - 71 * 70, 38 + + 29 ) * COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7712
SELECT + COALESCE ( COUNT ( * ), MIN ( ALL 1 ) * COALESCE ( ( 87 ), - 71 * 70, 38 + + 29 ) * COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7713
SELECT 83 DIV - 29 col2, - COUNT( * ) * - 96
----
-2
96

skipif mysql # not compatible
query II rowsort label-7713
SELECT 83 / - 29 col2, - COUNT ( * ) * - 96
----
-2
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7714
SELECT + 53 * COALESCE ( 84, - + CASE - 33 WHEN + - 62 THEN COUNT( * ) - - CASE COALESCE ( 45, 74 * - 92 + + 36 * + 86 ) WHEN + COUNT( * ) * COUNT( 67 * 48 ) THEN NULL ELSE - 5 DIV - 6 END ELSE NULL END ) + SUM( ALL 72 )
----
4524

skipif mysql # not compatible
query I rowsort label-7714
SELECT + 53 * COALESCE ( 84, - + CASE - 33 WHEN + - 62 THEN COUNT ( * ) - - CASE COALESCE ( 45, 74 * - 92 + + 36 * + 86 ) WHEN + COUNT ( * ) * COUNT ( 67 * 48 ) THEN NULL ELSE - 5 / - 6 END ELSE NULL END ) + SUM ( ALL 72 )
----
4524

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

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL - + 61 + + COUNT ( * ) AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7716
SELECT ( 29 ) * - COALESCE ( MIN( ALL + + 79 ), - 61, + 49 * - 47 + NULLIF ( 1 + 74, COUNT( * ) * AVG ( ALL - 14 DIV CASE - 43 WHEN 21 THEN 35 * 40 ELSE + 26 * - 92 END ) ) DIV 33 )
----
-2291

skipif mysql # not compatible
query I rowsort label-7716
SELECT ( 29 ) * - COALESCE ( MIN ( ALL + + 79 ), - 61, + 49 * - 47 + NULLIF ( 1 + 74, COUNT ( * ) * AVG ( ALL - 14 / CASE - 43 WHEN 21 THEN 35 * 40 ELSE + 26 * - 92 END ) ) / 33 )
----
-2291

query II rowsort
SELECT 88 AS col2, 8
----
88
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7718
SELECT 73 * - + 95 * + CAST( COUNT( - - 83 ) AS SIGNED ) * - 93 + - 64 * 52 AS col1
----
641627

skipif mysql # not compatible
query I rowsort label-7718
SELECT 73 * - + 95 * + CAST ( COUNT ( - - 83 ) AS INTEGER ) * - 93 + - 64 * 52 AS col1
----
641627

query I rowsort
SELECT - - 42 * - 57 - 19
----
-2413

query I rowsort
SELECT ALL 45 * 6 * + + 30 AS col1
----
8100

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT ALL + COUNT( ALL - 68 ) + + 57 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL + COUNT ( ALL - 68 ) + + 57 AS col0
----
58

query I rowsort
SELECT + 20 - - ( NULLIF ( - 25, 68 ) ) * - 75
----
1895

query I rowsort
SELECT DISTINCT ( + + 55 ) * + - 73
----
-4015

query I rowsort
SELECT COALESCE ( + + ( + COALESCE ( + 46, + + ( + 40 ), + 2, + 29 * 56 ) ), 67 + - 57 * 1 ) * - 39
----
-1794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT ALL CAST( + + 67 AS SIGNED ) * + 45 AS col0
----
3015

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL CAST ( + + 67 AS INTEGER ) * + 45 AS col0
----
3015

query I rowsort
SELECT ALL 52 - - 90 - - + 77 - - - 6 * - 9 * + 4
----
435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7727
SELECT DISTINCT ( CAST( + 52 AS SIGNED ) ) * + 59 + COALESCE ( - 76, NULLIF ( + 87, ( 10 ) ) + 50 ) AS col1
----
2992

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT ( CAST ( + 52 AS INTEGER ) ) * + 59 + COALESCE ( - 76, NULLIF ( + 87, ( 10 ) ) + 50 ) AS col1
----
2992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7728
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0, 58 + - - CAST( NULL AS SIGNED ) + 12 * - 50 + - 46 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7728
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0, 58 + - - CAST ( NULL AS INTEGER ) + 12 * - 50 + - 46 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ( + SUM( DISTINCT - 76 ) ) - 90 AS col0
----
-166

skipif mysql # not compatible
query I rowsort label-7729
SELECT ( + SUM ( DISTINCT - 76 ) ) - 90 AS col0
----
-166

onlyif mysql # aggregate syntax: 
query II rowsort label-7730
SELECT 36 * + 61 col2, MIN( DISTINCT - + 87 ) + + NULLIF ( + 68, 86 * + 44 ) + + 79 AS col2
----
2196
60

skipif mysql # not compatible
query II rowsort label-7730
SELECT 36 * + 61 col2, MIN ( DISTINCT - + 87 ) + + NULLIF ( + 68, 86 * + 44 ) + + 79 AS col2
----
2196
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7731
SELECT ALL 10 / CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL 10 / CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7732
SELECT COUNT( * ) + - ( - COUNT( * ) ), 47 + - - 6 - - 54 + - - CASE ( COUNT( - 64 ) ) WHEN + COUNT( * ) + 17 DIV + 63 THEN NULL WHEN 19 THEN 39 WHEN + 67 THEN - 32 ELSE + 27 * COALESCE ( + 94, - MIN( ALL + 41 ), + COUNT( * ) ) END AS col0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-7732
SELECT COUNT ( * ) + - ( - COUNT ( * ) ), 47 + - - 6 - - 54 + - - CASE ( COUNT ( - 64 ) ) WHEN + COUNT ( * ) + 17 / + 63 THEN NULL WHEN 19 THEN 39 WHEN + 67 THEN - 32 ELSE + 27 * COALESCE ( + 94, - MIN ( ALL + 41 ), + COUNT ( * ) ) END AS col0
----
2
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7733
SELECT DISTINCT 45 * + COUNT( * ), 33 AS col1
----
45
33

skipif mysql # not compatible
query II rowsort label-7733
SELECT DISTINCT 45 * + COUNT ( * ), 33 AS col1
----
45
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT 61 * - COUNT( * ) * + CASE - 94 WHEN 51 * - 52 THEN + 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7735
SELECT 61 * - COUNT ( * ) * + CASE - 94 WHEN 51 * - 52 THEN + 71 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7736
SELECT ALL 74 DIV + 65 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL 74 / + 65 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7737
SELECT COALESCE ( + + 63, + - MIN( ALL 56 ) ) + + COUNT( * ), 76 AS col2
----
64
76

skipif mysql # not compatible
query II rowsort label-7737
SELECT COALESCE ( + + 63, + - MIN ( ALL 56 ) ) + + COUNT ( * ), 76 AS col2
----
64
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7738
SELECT NULLIF ( - - ( COUNT( * ) ), - + 27 ) * 6 DIV + 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7738
SELECT NULLIF ( - - ( COUNT ( * ) ), - + 27 ) * 6 / + 77 AS col0
----
0

query I rowsort
SELECT ALL ( + + 5 ) AS col1
----
5

query I rowsort
SELECT 88 - - - 87 + - ( + + 25 )
----
-24

query I rowsort
SELECT - 61 - - 74 + + 18 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT + COUNT( * ) * 75 + + - 59 - - 70 / - COUNT( * ) * - 22 - - 44 + - CASE 54 WHEN 42 THEN + 86 + 18 * SUM( + 79 * + 1 ) ELSE NULL END * + 25 * 54 + MAX( DISTINCT 15 + + 36 / 13 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT + COUNT ( * ) * 75 + + - 59 - - 70 / - COUNT ( * ) * - 22 - - 44 + - CASE 54 WHEN 42 THEN + 86 + 18 * SUM ( + 79 * + 1 ) ELSE NULL END * + 25 * 54 + MAX ( DISTINCT 15 + + 36 / 13 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT ALL 44 + - COUNT( DISTINCT - + 14 ) * + 12
----
32

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL 44 + - COUNT ( DISTINCT - + 14 ) * + 12
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-7744
SELECT + - COUNT( DISTINCT - - 98 ) AS col0, - 28 + - COUNT( * )
----
-1
-29

skipif mysql # not compatible
query II rowsort label-7744
SELECT + - COUNT ( DISTINCT - - 98 ) AS col0, - 28 + - COUNT ( * )
----
-1
-29

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

query I rowsort
SELECT ALL 71 + 82 AS col0
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7747
SELECT + 10 - NULLIF ( 13, 93 * - COUNT( * ) * + + NULLIF ( + 4, CAST( 75 AS SIGNED ) + - 41 * + 93 ) / AVG ( 16 * + 50 ) - 12 )
----
-3

skipif mysql # not compatible
query I rowsort label-7747
SELECT + 10 - NULLIF ( 13, 93 * - COUNT ( * ) * + + NULLIF ( + 4, CAST ( 75 AS INTEGER ) + - 41 * + 93 ) / AVG ( 16 * + 50 ) - 12 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT - 25 * + - 66 + - ( - 65 ) + - CAST( NULL AS SIGNED ) / + 41 * - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT - 25 * + - 66 + - ( - 65 ) + - CAST ( NULL AS INTEGER ) / + 41 * - 78 AS col1
----
NULL

query I rowsort
SELECT ALL - + 9 + + 55 AS col2
----
46

query I rowsort
SELECT ALL + 32 + 79
----
111

query I rowsort
SELECT DISTINCT - 74 * - - 4 * - 28
----
8288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7752
SELECT 29 + 47 * - + 87 * ( - 31 ) + + + 23 - CASE 87 WHEN + 67 + CASE 49 + - 57 WHEN - 99 * - CAST( - 23 AS SIGNED ) THEN 60 - - 75 WHEN COUNT( * ) * + 47 THEN NULL END * + 35 THEN NULL WHEN 4 THEN - 70 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT 29 + 47 * - + 87 * ( - 31 ) + + + 23 - CASE 87 WHEN + 67 + CASE 49 + - 57 WHEN - 99 * - CAST ( - 23 AS INTEGER ) THEN 60 - - 75 WHEN COUNT ( * ) * + 47 THEN NULL END * + 35 THEN NULL WHEN 4 THEN - 70 + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + 71 + 14 AS col1
----
85

query II rowsort
SELECT DISTINCT - - 67 * + + 91 AS col1, - 89 * - 43 AS col2
----
6097
3827

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT - 50 * - 12 + - COUNT( * )
----
599

skipif mysql # not compatible
query I rowsort label-7755
SELECT - 50 * - 12 + - COUNT ( * )
----
599

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT ALL - ( - + COUNT( + 92 ) ) - - 50 + + + 65 * + 84
----
5511

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL - ( - + COUNT ( + 92 ) ) - - 50 + + + 65 * + 84
----
5511

query I rowsort
SELECT 27 * + - 16 AS col0
----
-432

query II rowsort
SELECT 36 AS col0, 89 AS col1
----
36
89

query I rowsort
SELECT 8 + + - 21 - 30 + + 0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT DISTINCT SUM( DISTINCT 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-7760
SELECT DISTINCT SUM ( DISTINCT 15 ) AS col1
----
15

query I rowsort
SELECT 17 * - 82 col2
----
-1394

query I rowsort
SELECT 53 * - 26 * - - ( - NULLIF ( + - 36, + 74 / + 5 + - ( + 20 ) ) )
----
-49608

onlyif mysql # DIV for integer division: 
query I rowsort label-7763
SELECT ALL + 45 - + 25 DIV - + 52 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL + 45 - + 25 / - + 52 AS col1
----
45

query I rowsort
SELECT ALL 10 * - - 56 * + - 55 AS col2
----
-30800

query I rowsort
SELECT 42 + + 17 + - 42 * ( - 62 ) col0
----
2663

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT DISTINCT + COUNT( + COALESCE ( - - 32, ( 76 ) / 83 + + 37 + 94 ) ) * + 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT + COUNT ( + COALESCE ( - - 32, ( 76 ) / 83 + + 37 + 94 ) ) * + 30 AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7767
SELECT DISTINCT 4 * - 53 DIV 16 DIV - - 60
----
0

skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT 4 * - 53 / 16 / - - 60
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7768
SELECT - 60 AS col1, + 88 + + 77 DIV + 32
----
-60
90

skipif mysql # not compatible
query II rowsort label-7768
SELECT - 60 AS col1, + 88 + + 77 / + 32
----
-60
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT DISTINCT - 19 * + MIN( + 21 )
----
-399

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT - 19 * + MIN ( + 21 )
----
-399

query I rowsort
SELECT 42 * + 33
----
1386

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

query I rowsort
SELECT DISTINCT 68 * 11 AS col2
----
748

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

query I rowsort
SELECT + 14 * + 90 AS col1
----
1260

query I rowsort
SELECT + 45 + - + 3
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7777
SELECT + 58 + + 88 * 78 AS col0, CAST( NULL AS SIGNED )
----
6922
NULL

skipif mysql # not compatible
query II rowsort label-7777
SELECT + 58 + + 88 * 78 AS col0, CAST ( NULL AS INTEGER )
----
6922
NULL

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

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

query I rowsort
SELECT ALL - 97 + + - ( ( - 63 ) ) + + + 86 AS col1
----
52

query II rowsort
SELECT ALL + - 16, 65 AS col1
----
-16
65

query II rowsort
SELECT DISTINCT 20 * - 51 * + 27, - 49 + - 64 AS col0
----
-27540
-113

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

skipif mysql # not compatible
query I rowsort label-7782
SELECT + - COUNT ( * ) / - + 65 + + + 4
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7783
SELECT ALL + 6 * - + 18 * 18 - + COUNT( * ) * + 78 + + + CAST( + ( + 11 ) AS SIGNED )
----
-2011

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL + 6 * - + 18 * 18 - + COUNT ( * ) * + 78 + + + CAST ( + ( + 11 ) AS INTEGER )
----
-2011

query II rowsort
SELECT + + 66 AS col0, 30
----
66
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7785
SELECT ALL - CAST( + CASE - - 43 WHEN - MIN( + 30 ) THEN - CAST( + - 7 AS SIGNED ) WHEN + - 3 + + 45 THEN NULLIF ( ( - ( 85 ) ), + 95 - 75 * 49 ) ELSE + 72 END AS SIGNED ) * + 46 + + 72 AS col2
----
-3240

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL - CAST ( + CASE - - 43 WHEN - MIN ( + 30 ) THEN - CAST ( + - 7 AS INTEGER ) WHEN + - 3 + + 45 THEN NULLIF ( ( - ( 85 ) ), + 95 - 75 * 49 ) ELSE + 72 END AS INTEGER ) * + 46 + + 72 AS col2
----
-3240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7786
SELECT + COUNT( ALL + CASE WHEN ( - 62 ) <> + 34 THEN 14 ELSE NULL END ) DIV - 11 - COUNT( * ) - - 59 * + 29 AS col2
----
1710

skipif mysql # not compatible
query I rowsort label-7786
SELECT + COUNT ( ALL + CASE WHEN ( - 62 ) <> + 34 THEN 14 ELSE NULL END ) / - 11 - COUNT ( * ) - - 59 * + 29 AS col2
----
1710

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

query II rowsort
SELECT 80, 20 * 37 * - 13 AS col1
----
80
-9620

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

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

skipif mysql # not compatible
query I rowsort label-7790
SELECT SUM ( + - 8 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7791
SELECT DISTINCT - + 81 * + CAST( + SUM( + 51 ) AS SIGNED ) * - - 27 + + 75 DIV + NULLIF ( 96, 17 ) - 57 AS col1
----
-111594

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT - + 81 * + CAST ( + SUM ( + 51 ) AS INTEGER ) * - - 27 + + 75 / + NULLIF ( 96, 17 ) - 57 AS col1
----
-111594

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT COUNT( + + 92 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7792
SELECT COUNT ( + + 92 ) AS col1
----
1

query I rowsort
SELECT + 35 * 10 * - + 60 * + 7 + 32 + - + 49 + ( - 64 ) AS col1
----
-147081

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

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

query I rowsort
SELECT - 28 * + 49 * - 48 AS col0
----
65856

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

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

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

query I rowsort
SELECT ALL - 87 * 81
----
-7047

query II rowsort
SELECT - 75 - - 53 AS col1, + 55 AS col1
----
-22
55

query II rowsort
SELECT - 92 * 75 AS col1, + 68 * 89 AS col1
----
-6900
6052

onlyif mysql # aggregate syntax: 
query II rowsort label-7801
SELECT DISTINCT ( 83 ) AS col2, - COUNT( * ) * - 18 * - - ( 6 ) AS col0
----
83
108

skipif mysql # not compatible
query II rowsort label-7801
SELECT DISTINCT ( 83 ) AS col2, - COUNT ( * ) * - 18 * - - ( 6 ) AS col0
----
83
108

query I rowsort
SELECT ALL - 5 + + 52
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT + 39 + + + COUNT( * ) * - 36 col0
----
3

skipif mysql # not compatible
query I rowsort label-7803
SELECT + 39 + + + COUNT ( * ) * - 36 col0
----
3

query I rowsort
SELECT - 56 * + ( + 99 ) * - 22 AS col1
----
121968

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7805
SELECT - 21 - + - ( - + CASE + CASE - 90 WHEN + ( - - COUNT( * ) ) THEN + + MAX( DISTINCT + 38 ) WHEN - 81 / - COUNT( ALL 77 ) THEN NULL ELSE 6 END WHEN 88 * CAST( 13 / + 52 AS DECIMAL ) THEN + 14 WHEN 50 THEN + 82 END ) * - 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT - 21 - + - ( - + CASE + CASE - 90 WHEN + ( - - COUNT ( * ) ) THEN + + MAX ( DISTINCT + 38 ) WHEN - 81 / - COUNT ( ALL 77 ) THEN NULL ELSE 6 END WHEN 88 * CAST ( 13 / + 52 AS REAL ) THEN + 14 WHEN 50 THEN + 82 END ) * - 76 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT - ( - + 24 ) - - COUNT( * ) - - 28 * - 65 * + 87 * 75 * + 55 + + + 41 AS col0
----
-653152434

skipif mysql # not compatible
query I rowsort label-7806
SELECT - ( - + 24 ) - - COUNT ( * ) - - 28 * - 65 * + 87 * 75 * + 55 + + + 41 AS col0
----
-653152434

onlyif mysql # DIV for integer division: 
query I rowsort label-7807
SELECT + ( + + 78 ) DIV 22 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7807
SELECT + ( + + 78 ) / 22 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL + 43 + + SUM( 79 ) + 84 col2
----
206

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL + 43 + + SUM ( 79 ) + 84 col2
----
206

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT - NULLIF ( + 94, - SUM( - 40 ) ) * 7
----
-658

skipif mysql # not compatible
query I rowsort label-7809
SELECT - NULLIF ( + 94, - SUM ( - 40 ) ) * 7
----
-658

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT DISTINCT + 70 + - - 23 * + - ( - 83 ) * + 75 * COALESCE ( + 30, + + ( - - 61 ), + 3 ) + 7 DIV 35 AS col1
----
4295320

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT + 70 + - - 23 * + - ( - 83 ) * + 75 * COALESCE ( + 30, + + ( - - 61 ), + 3 ) + 7 / 35 AS col1
----
4295320

query I rowsort
SELECT ALL NULLIF ( - 65, + + 19 )
----
-65

query I rowsort
SELECT - + 12 * 98 AS col0
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT - 47 + 79 * + MAX( ALL + - 31 ) AS col0
----
-2496

skipif mysql # not compatible
query I rowsort label-7813
SELECT - 47 + 79 * + MAX ( ALL + - 31 ) AS col0
----
-2496

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

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

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

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

query I rowsort
SELECT ALL + - 29 + - 83 + - + 48
----
-160

query I rowsort
SELECT ALL + 67 * - 7 col2
----
-469

onlyif mysql # aggregate syntax: 
query II rowsort label-7818
SELECT ALL 9 + - + 70, + COUNT( * ) - + 64 AS col2
----
-61
-63

skipif mysql # not compatible
query II rowsort label-7818
SELECT ALL 9 + - + 70, + COUNT ( * ) - + 64 AS col2
----
-61
-63

query I rowsort
SELECT + 79 * - 17
----
-1343

onlyif mysql # aggregate syntax: 
query II rowsort label-7820
SELECT DISTINCT - COUNT( * ) * 84 + + SUM( - 29 ) AS col1, ( 0 ) + + 86 AS col2
----
-113
86

skipif mysql # not compatible
query II rowsort label-7820
SELECT DISTINCT - COUNT ( * ) * 84 + + SUM ( - 29 ) AS col1, ( 0 ) + + 86 AS col2
----
-113
86

query I rowsort
SELECT - 23 + - + 57 + - - 24 * - 32 AS col0
----
-848

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT + 46 * + 90 + - + CASE + 2 WHEN - 53 * + MAX( - 59 ) + - - 96 + - 80 * 58 THEN NULL ELSE 18 END - - 33 * 45 + - 84
----
5523

skipif mysql # not compatible
query I rowsort label-7823
SELECT + 46 * + 90 + - + CASE + 2 WHEN - 53 * + MAX ( - 59 ) + - - 96 + - 80 * 58 THEN NULL ELSE 18 END - - 33 * 45 + - 84
----
5523

onlyif mysql # DIV for integer division: 
query I rowsort label-7824
SELECT ALL 37 DIV + 2 - - 41 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL 37 / + 2 - - 41 AS col2
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7825
SELECT ALL + 24 * 70 + - 86 DIV + 50 + + 60 AS col0
----
1739

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL + 24 * 70 + - 86 / + 50 + + 60 AS col0
----
1739

query I rowsort
SELECT DISTINCT - 91 * - + 80
----
7280

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7828
SELECT 0 DIV - - 54 DIV - - 37 DIV - 14 + 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-7828
SELECT 0 / - - 54 / - - 37 / - 14 + 67 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT + NULLIF ( + + 22, - - 52 * + COUNT( * ) + - - 35 * + - COUNT( * ) + + + 94 )
----
22

skipif mysql # not compatible
query I rowsort label-7829
SELECT + NULLIF ( + + 22, - - 52 * + COUNT ( * ) + - - 35 * + - COUNT ( * ) + + + 94 )
----
22

query I rowsort
SELECT + 5 * - - 72
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT + 31 * - COUNT( * ) * - + 69 + + - 32 AS col0
----
2107

skipif mysql # not compatible
query I rowsort label-7831
SELECT + 31 * - COUNT ( * ) * - + 69 + + - 32 AS col0
----
2107

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7833
SELECT + NULLIF ( - 99, - 79 ) DIV + 14
----
-7

skipif mysql # not compatible
query I rowsort label-7833
SELECT + NULLIF ( - 99, - 79 ) / + 14
----
-7

query I rowsort
SELECT + 99 + - - COALESCE ( - 91, + 0 ) + - 5 * 22 AS col1
----
-102

query I rowsort
SELECT ALL 5 * ( + 61 )
----
305

query I rowsort
SELECT DISTINCT ( + + 33 ) * + - 67 * - 90 AS col1
----
198990

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7837
SELECT ALL 87 DIV 93 * + COUNT( * ) DIV + 47 * - 12, - 2 AS col0
----
0
-2

skipif mysql # not compatible
query II rowsort label-7837
SELECT ALL 87 / 93 * + COUNT ( * ) / + 47 * - 12, - 2 AS col0
----
0
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7838
SELECT DISTINCT + 88 AS col1, - COUNT( * ) * - - 84
----
88
-84

skipif mysql # not compatible
query II rowsort label-7838
SELECT DISTINCT + 88 AS col1, - COUNT ( * ) * - - 84
----
88
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7839
SELECT ALL + 91 AS col2, + MAX( + + 99 ) * + 74 + + - CASE 68 WHEN + + 89 * SUM( + COALESCE ( - 72, 56 ) ) THEN + ( CAST( ( + 53 ) AS SIGNED ) ) WHEN 33 THEN 74 * - 21 END col0
----
91
NULL

skipif mysql # not compatible
query II rowsort label-7839
SELECT ALL + 91 AS col2, + MAX ( + + 99 ) * + 74 + + - CASE 68 WHEN + + 89 * SUM ( + COALESCE ( - 72, 56 ) ) THEN + ( CAST ( ( + 53 ) AS INTEGER ) ) WHEN 33 THEN 74 * - 21 END col0
----
91
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT 81 + COUNT( * ) - + 15
----
67

skipif mysql # not compatible
query I rowsort label-7841
SELECT 81 + COUNT ( * ) - + 15
----
67

query I rowsort
SELECT 87 * - ( + 4 ) AS col0
----
-348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7843
SELECT DISTINCT 44 + 45 - + 82 * 93 + COUNT( ALL + 32 ) DIV + 23 - - MAX( - 22 ) * - + 11 + 89 AS col2
----
-7206

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT 44 + 45 - + 82 * 93 + COUNT ( ALL + 32 ) / + 23 - - MAX ( - 22 ) * - + 11 + 89 AS col2
----
-7206

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT 74 * + - 71 + MAX( ALL - - 79 ) AS col0
----
-5175

skipif mysql # not compatible
query I rowsort label-7844
SELECT 74 * + - 71 + MAX ( ALL - - 79 ) AS col0
----
-5175

query II rowsort
SELECT ALL 91 * + + 74 * 87 col1, 73
----
585858
73

query I rowsort
SELECT DISTINCT + 38 + + 18
----
56

query II rowsort
SELECT ALL 23 col2, + 93
----
23
93

onlyif mysql # aggregate syntax: 
query II rowsort label-7848
SELECT 87 + + ( - 9 ) * + - 0 * - 32, 59 * - COUNT( * ) + - + 93 col2
----
87
-152

skipif mysql # not compatible
query II rowsort label-7848
SELECT 87 + + ( - 9 ) * + - 0 * - 32, 59 * - COUNT ( * ) + - + 93 col2
----
87
-152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7849
SELECT ALL 10 + - + 55 * - - 2 + - + COUNT( * ) * + - SUM( ALL - 61 ) * ( - 68 ) DIV - - 94 - - 0 * 83
----
-56

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL 10 + - + 55 * - - 2 + - + COUNT ( * ) * + - SUM ( ALL - 61 ) * ( - 68 ) / - - 94 - - 0 * 83
----
-56

query I rowsort
SELECT ALL - 2 + + + 98
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7851
SELECT ALL + + CAST( - 72 AS SIGNED ) + 36 - + 68 AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL + + CAST ( - 72 AS INTEGER ) + 36 - + 68 AS col0
----
-104

query II rowsort
SELECT - 63 + + 39 * - 12 AS col0, 90 AS col1
----
-531
90

query I rowsort
SELECT DISTINCT + + 77 + + 47 AS col2
----
124

query I rowsort
SELECT 55 + + 94
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT - MIN( 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-7855
SELECT - MIN ( 5 )
----
-5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7857
SELECT ALL - + 35 DIV 36 col1
----
0

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL - + 35 / 36 col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7859
SELECT 98 DIV COUNT( * ) + - 56 col1
----
42

skipif mysql # not compatible
query I rowsort label-7859
SELECT 98 / COUNT ( * ) + - 56 col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT - 97 * - 83 + + 81 + - SUM( ALL - 46 ) AS col2
----
8178

skipif mysql # not compatible
query I rowsort label-7860
SELECT - 97 * - 83 + + 81 + - SUM ( ALL - 46 ) AS col2
----
8178

query I rowsort
SELECT ALL + + 47 * + CASE + 31 WHEN - - 54 THEN - + 48 / - 58 + + ( - 25 ) END * + - 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7862
SELECT + NULLIF ( CAST( NULL AS SIGNED ), - 5 * 6 ) + ( + + 11 ) * - 51 * + COALESCE ( + 25, 79 ) * - 36 + 28 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), - 5 * 6 ) + ( + + 11 ) * - 51 * + COALESCE ( + 25, 79 ) * - 36 + 28 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7863
SELECT + 46 * + NULLIF ( - 80, - - 32 - ( + 38 ) * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * - 82 AS col1
----
301760

skipif mysql # not compatible
query I rowsort label-7863
SELECT + 46 * + NULLIF ( - 80, - - 32 - ( + 38 ) * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - 82 AS col1
----
301760

query I rowsort
SELECT 30 * + + NULLIF ( - - 30, - 78 + 43 ) * 36 AS col0
----
32400

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT DISTINCT + 5 + COUNT( * ) col1
----
6

skipif mysql # not compatible
query I rowsort label-7865
SELECT DISTINCT + 5 + COUNT ( * ) col1
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-7866
SELECT 52, 61 DIV - + 84 AS col2
----
52
0

skipif mysql # not compatible
query II rowsort label-7866
SELECT 52, 61 / - + 84 AS col2
----
52
0

query II rowsort
SELECT + 45 AS col1, + 20 AS col1
----
45
20

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT 81 * MAX( + + 90 )
----
7290

skipif mysql # not compatible
query I rowsort label-7869
SELECT 81 * MAX ( + + 90 )
----
7290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7870
SELECT + 3 AS col2, - CASE - 98 WHEN - 15 THEN - + CAST( COUNT( * ) AS SIGNED ) / + + 59 WHEN - 72 THEN + 7 ELSE NULL END AS col2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7870
SELECT + 3 AS col2, - CASE - 98 WHEN - 15 THEN - + CAST ( COUNT ( * ) AS INTEGER ) / + + 59 WHEN - 72 THEN + 7 ELSE NULL END AS col2
----
3
NULL

query I rowsort
SELECT DISTINCT 45 + - + 50 col2
----
-5

query I rowsort
SELECT ALL 4 + - 61 + 51 * - + 14
----
-771

onlyif mysql # aggregate syntax: 
query II rowsort label-7873
SELECT 90 AS col0, MAX( + 92 )
----
90
92

skipif mysql # not compatible
query II rowsort label-7873
SELECT 90 AS col0, MAX ( + 92 )
----
90
92

query I rowsort
SELECT DISTINCT 50 * + 30
----
1500

onlyif mysql # DIV for integer division: 
query I rowsort label-7875
SELECT DISTINCT 32 DIV + 2
----
16

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT 32 / + 2
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7876
SELECT 96 * + ( ( + + 44 ) ) AS col2, 58 * - - COUNT( * ) + 32 AS col0
----
4224
90

skipif mysql # not compatible
query II rowsort label-7876
SELECT 96 * + ( ( + + 44 ) ) AS col2, 58 * - - COUNT ( * ) + 32 AS col0
----
4224
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7877
SELECT 49 + - + 20 * 46 + + 57 + - + 48 * - + NULLIF ( + 10, - + MAX( ALL - + 77 ) ) + - + ( + 9 ) DIV 32 * - 62 col0
----
-334

skipif mysql # not compatible
query I rowsort label-7877
SELECT 49 + - + 20 * 46 + + 57 + - + 48 * - + NULLIF ( + 10, - + MAX ( ALL - + 77 ) ) + - + ( + 9 ) / 32 * - 62 col0
----
-334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7878
SELECT - CASE - 72 WHEN + 25 THEN - CASE + 32 WHEN + + 73 * + 26 + - + 10 + + MIN( + - 57 ) THEN - 23 + - COUNT( * ) WHEN + 59 / - 94 THEN NULL ELSE NULL END WHEN - 98 THEN CAST( - 97 AS SIGNED ) ELSE - 62 END * 77 AS col2
----
4774

skipif mysql # not compatible
query I rowsort label-7878
SELECT - CASE - 72 WHEN + 25 THEN - CASE + 32 WHEN + + 73 * + 26 + - + 10 + + MIN ( + - 57 ) THEN - 23 + - COUNT ( * ) WHEN + 59 / - 94 THEN NULL ELSE NULL END WHEN - 98 THEN CAST ( - 97 AS INTEGER ) ELSE - 62 END * 77 AS col2
----
4774

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

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

query II rowsort
SELECT - 75 AS col2, + 11 AS col1
----
-75
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT - ( + CASE - + 3 WHEN + + 33 + + 85 + - CASE + + 57 WHEN + 34 THEN NULL ELSE 94 END + - COUNT( * ) * + - 81 THEN + 25 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7881
SELECT - ( + CASE - + 3 WHEN + + 33 + + 85 + - CASE + + 57 WHEN + 34 THEN NULL ELSE 94 END + - COUNT ( * ) * + - 81 THEN + 25 ELSE NULL END )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7882
SELECT 39 - + + COUNT ( * ) * - + 57 / 91
----
39

query II rowsort
SELECT - 37 AS col2, - 66
----
-37
-66

query I rowsort
SELECT ALL + 90 - + 46 + + ( - - 16 ) + - - 19
----
79

query I rowsort
SELECT 18 + 90 AS col0
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7886
SELECT - 54 * COUNT( * ) * 99 DIV - 14 + + 16 AS col1
----
397

skipif mysql # not compatible
query I rowsort label-7886
SELECT - 54 * COUNT ( * ) * 99 / - 14 + + 16 AS col1
----
397

onlyif mysql # aggregate syntax: 
query II rowsort label-7887
SELECT DISTINCT 38 AS col0, 75 * + COUNT( DISTINCT + 83 ) * - - 72
----
38
5400

skipif mysql # not compatible
query II rowsort label-7887
SELECT DISTINCT 38 AS col0, 75 * + COUNT ( DISTINCT + 83 ) * - - 72
----
38
5400

onlyif mysql # DIV for integer division: 
query II rowsort label-7888
SELECT 87 DIV + 90 AS col1, + 71
----
0
71

skipif mysql # not compatible
query II rowsort label-7888
SELECT 87 / + 90 AS col1, + 71
----
0
71

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

skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL NULLIF ( 12, + 84 + - + COUNT ( * ) )
----
12

query I rowsort
SELECT + 21 + + + 52 * - 45
----
-2319

query I rowsort
SELECT + 34 + 66 col0
----
100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7892
SELECT - CASE + - 51 WHEN - - 76 THEN + 68 * ( - 64 ) / + - CASE + ( - 90 ) WHEN + 73 THEN ( + CASE - CAST( 58 AS DECIMAL ) WHEN + COALESCE ( + 59, 50, 57 ) * 96 + + 4 THEN NULL WHEN - 15 - 69 * 17 THEN 89 END ) - - 84 * - 19 WHEN 29 * 16 + COALESCE ( 89, 1, - 98, ( - 66 ) + 23 ) THEN CASE + COUNT( * ) WHEN - ( - 43 ) THEN NULL ELSE 57 * + 4 END END WHEN MIN( 60 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7892
SELECT - CASE + - 51 WHEN - - 76 THEN + 68 * ( - 64 ) / + - CASE + ( - 90 ) WHEN + 73 THEN ( + CASE - CAST ( 58 AS REAL ) WHEN + COALESCE ( + 59, 50, 57 ) * 96 + + 4 THEN NULL WHEN - 15 - 69 * 17 THEN 89 END ) - - 84 * - 19 WHEN 29 * 16 + COALESCE ( 89, 1, - 98, ( - 66 ) + 23 ) THEN CASE + COUNT ( * ) WHEN - ( - 43 ) THEN NULL ELSE 57 * + 4 END END WHEN MIN ( 60 ) THEN NULL END
----
NULL

query II rowsort
SELECT ALL 6, - 41 AS col1
----
6
-41

query I rowsort
SELECT - 43 + - - 91 * - + 41 AS col0
----
-3774

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

skipif mysql # not compatible
query I rowsort label-7895
SELECT - COUNT ( * ) / ( + 57 ) + + 86
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7896
SELECT ALL + 28 * - - 43 * - + COUNT( * ) + COUNT( * ) * - COUNT( DISTINCT + - 69 ) DIV + + 61 * COUNT( * )
----
-1204

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL + 28 * - - 43 * - + COUNT ( * ) + COUNT ( * ) * - COUNT ( DISTINCT + - 69 ) / + + 61 * COUNT ( * )
----
-1204

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

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL - 28 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7898
SELECT 55 + + + 52 * - 19 * - COUNT( - 28 ) * + - 98 * - 93 * 99 - + 77 DIV - COUNT( * ) AS col2, - 31 * + CASE - 75 WHEN 99 DIV - COALESCE ( 83 * - ( - 65 * ( CAST( NULL AS SIGNED ) ) ), - 84, + 90, + COUNT( * ) ) + - SUM( 77 ) THEN + 24 ELSE NULL END col2
----
891458700
NULL

skipif mysql # not compatible
query II rowsort label-7898
SELECT 55 + + + 52 * - 19 * - COUNT ( - 28 ) * + - 98 * - 93 * 99 - + 77 / - COUNT ( * ) AS col2, - 31 * + CASE - 75 WHEN 99 / - COALESCE ( 83 * - ( - 65 * ( CAST ( NULL AS INTEGER ) ) ), - 84, + 90, + COUNT ( * ) ) + - SUM ( 77 ) THEN + 24 ELSE NULL END col2
----
891458700
NULL

query I rowsort
SELECT ALL 54 * + - 60 + - - 71 - + 85
----
-3254

query I rowsort
SELECT - 60 * 44 + - 48
----
-2688

query I rowsort
SELECT - ( + ( - + COALESCE ( + COALESCE ( 43, - - 54, + 9 ), - + 63, + - 15 ) ) ) + + 62
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7902
SELECT ALL 97 * - CASE 49 WHEN 76 + - 7 + - 91 THEN MIN( + 92 ) WHEN - + 9 * CASE - ( + 78 ) WHEN COUNT( * ) * + 9 THEN 46 * 23 + - ( + 48 + - COALESCE ( 36, - 66 * + ( 88 ), - 76, CAST( NULL AS SIGNED ) ) ) * + ( + 86 * - ( 44 ) ) WHEN + SUM( ALL 11 ) + - 68 THEN NULL ELSE 25 END * + COUNT( * ) - 63 THEN NULL WHEN COUNT( * ) THEN 57 ELSE - 20 END + + COUNT( * ) AS col2
----
1941

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL 97 * - CASE 49 WHEN 76 + - 7 + - 91 THEN MIN ( + 92 ) WHEN - + 9 * CASE - ( + 78 ) WHEN COUNT ( * ) * + 9 THEN 46 * 23 + - ( + 48 + - COALESCE ( 36, - 66 * + ( 88 ), - 76, CAST ( NULL AS INTEGER ) ) ) * + ( + 86 * - ( 44 ) ) WHEN + SUM ( ALL 11 ) + - 68 THEN NULL ELSE 25 END * + COUNT ( * ) - 63 THEN NULL WHEN COUNT ( * ) THEN 57 ELSE - 20 END + + COUNT ( * ) AS col2
----
1941

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT - MIN( 61 ) + + MAX( DISTINCT + 4 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-7903
SELECT - MIN ( 61 ) + + MAX ( DISTINCT + 4 ) AS col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7904
SELECT ALL COUNT( * ) * + 80 + - + MAX( DISTINCT 31 ) + + COUNT( * ) DIV 83 + 46 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL COUNT ( * ) * + 80 + - + MAX ( DISTINCT 31 ) + + COUNT ( * ) / 83 + 46 AS col2
----
95

query I rowsort
SELECT DISTINCT 91 * 74 AS col0
----
6734

onlyif mysql # aggregate syntax: 
query II rowsort label-7906
SELECT ALL + COUNT( * ) * + - 82 - - 30 AS col0, 79 * 19
----
-52
1501

skipif mysql # not compatible
query II rowsort label-7906
SELECT ALL + COUNT ( * ) * + - 82 - - 30 AS col0, 79 * 19
----
-52
1501

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7907
SELECT ALL + ( + 34 ), + 26 * 36 - + 77 * - 73 * - 11 / + CAST( NULL AS SIGNED ) AS col1
----
34
NULL

skipif mysql # not compatible
query II rowsort label-7907
SELECT ALL + ( + 34 ), + 26 * 36 - + 77 * - 73 * - 11 / + CAST ( NULL AS INTEGER ) AS col1
----
34
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7908
SELECT - 26 DIV + 86 * - 80
----
0

skipif mysql # not compatible
query I rowsort label-7908
SELECT - 26 / + 86 * - 80
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7909
SELECT + 32 + - MAX( ALL - ( - + CAST( - 41 AS SIGNED ) ) ) * - 93 + + 53 AS col2
----
-3728

skipif mysql # not compatible
query I rowsort label-7909
SELECT + 32 + - MAX ( ALL - ( - + CAST ( - 41 AS INTEGER ) ) ) * - 93 + + 53 AS col2
----
-3728

onlyif mysql # aggregate syntax: 
query II rowsort label-7910
SELECT MAX( - 40 ) col1, MIN( ALL 99 )
----
-40
99

skipif mysql # not compatible
query II rowsort label-7910
SELECT MAX ( - 40 ) col1, MIN ( ALL 99 )
----
-40
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7911
SELECT DISTINCT 15 * - ( - + 56 ) DIV - 7 + - 10 - - + 89 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT 15 * - ( - + 56 ) / - 7 + - 10 - - + 89 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT COUNT( * ) * - + 98 + + 58 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-7912
SELECT COUNT ( * ) * - + 98 + + 58 AS col2
----
-40

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7914
SELECT + AVG ( + + ( + 53 ) ) * + 33 + CAST( NULL AS DECIMAL ) + - ( - + COUNT( * ) ) AS col0, + 11 * - - MIN( + 45 ) * 2 AS col1
----
NULL
990

skipif mysql # not compatible
query II rowsort label-7914
SELECT + AVG ( + + ( + 53 ) ) * + 33 + CAST ( NULL AS REAL ) + - ( - + COUNT ( * ) ) AS col0, + 11 * - - MIN ( + 45 ) * 2 AS col1
----
NULL
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7915
SELECT + CAST( NULL AS SIGNED ) * + + COUNT( * ) * - AVG ( + 77 ) * + 9 col2, 43 * + + 8 + - COUNT( * ) - + 73 AS col0
----
NULL
270

skipif mysql # not compatible
query II rowsort label-7915
SELECT + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * - AVG ( + 77 ) * + 9 col2, 43 * + + 8 + - COUNT ( * ) - + 73 AS col0
----
NULL
270

query II rowsort
SELECT + - 23 + + 70 AS col0, + 62 * - + 85 AS col2
----
47
-5270

query I rowsort
SELECT ALL + ( - - 86 ) * - NULLIF ( + - 90, + + ( 43 ) ) AS col2
----
7740

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT + + 48 * - - SUM( 63 ) AS col0
----
3024

skipif mysql # not compatible
query I rowsort label-7918
SELECT + + 48 * - - SUM ( 63 ) AS col0
----
3024

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7920
SELECT + - 73 * + COUNT( * ) AS col1, 59 DIV - COUNT( * ) + - 79 AS col1
----
-73
-138

skipif mysql # not compatible
query II rowsort label-7920
SELECT + - 73 * + COUNT ( * ) AS col1, 59 / - COUNT ( * ) + - 79 AS col1
----
-73
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7921
SELECT CASE + COUNT( * ) WHEN - 69 - + 66 THEN - CAST( NULL AS SIGNED ) * + 94 / - 10 WHEN 30 * + 16 * + 27 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7921
SELECT CASE + COUNT ( * ) WHEN - 69 - + 66 THEN - CAST ( NULL AS INTEGER ) * + 94 / - 10 WHEN 30 * + 16 * + 27 THEN NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT + COUNT( * ) * + 6 + - 77 + - 20
----
-91

skipif mysql # not compatible
query I rowsort label-7923
SELECT + COUNT ( * ) * + 6 + - 77 + - 20
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7924
SELECT DISTINCT - CAST( + 99 AS SIGNED ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT - CAST ( + 99 AS INTEGER ) AS col0
----
-99

query II rowsort
SELECT ALL + 41 + - - 27, 47 AS col0
----
68
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT ALL + 87 + + + COUNT( * ) + - - 53 + - 87 * 93
----
-7950

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL + 87 + + + COUNT ( * ) + - - 53 + - 87 * 93
----
-7950

query II rowsort
SELECT 99 AS col1, + 83
----
99
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7928
SELECT ALL 75 DIV - - 37 + - - COALESCE ( NULLIF ( + + 9, - 8 ), - + COUNT( * ), - + 18 + + COUNT( * ) ) * - 0 * - + 20 + NULLIF ( 92, - ( - MIN( + ( + 84 ) ) ) DIV 82 ) + - 62 * 56 AS col0
----
-3378

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL 75 / - - 37 + - - COALESCE ( NULLIF ( + + 9, - 8 ), - + COUNT ( * ), - + 18 + + COUNT ( * ) ) * - 0 * - + 20 + NULLIF ( 92, - ( - MIN ( + ( + 84 ) ) ) / 82 ) + - 62 * 56 AS col0
----
-3378

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT - 46 * - + CASE - 93 WHEN 51 THEN - 62 END / + 2 * + SUM( DISTINCT 51 ) * - - 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7930
SELECT - 46 * - + CASE - 93 WHEN 51 THEN - 62 END / + 2 * + SUM ( DISTINCT 51 ) * - - 56 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7931
SELECT CAST( 20 AS SIGNED ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-7931
SELECT CAST ( 20 AS INTEGER ) AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7932
SELECT ALL 18 DIV - - 95 + - ( - 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL 18 / - - 95 + - ( - 9 ) AS col1
----
9

query I rowsort
SELECT + 10 * - + 95 AS col2
----
-950

onlyif mysql # DIV for integer division: 
query I rowsort label-7934
SELECT DISTINCT - 15 DIV + - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT - 15 / + - 79 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7935
SELECT DISTINCT 87 DIV + 80 + + 14
----
15

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT 87 / + 80 + + 14
----
15

query I rowsort
SELECT ALL + 97 * 55
----
5335

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7938
SELECT + 7 AS col1, - NULLIF ( 12, + COUNT( DISTINCT - 37 ) ) AS col2
----
7
-12

skipif mysql # not compatible
query II rowsort label-7938
SELECT + 7 AS col1, - NULLIF ( 12, + COUNT ( DISTINCT - 37 ) ) AS col2
----
7
-12

query I rowsort
SELECT ALL + 3 * 36 - + + 84 AS col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7940
SELECT ALL + 98 * - - ( + - COUNT( * ) ), + 75 AS col1
----
-98
75

skipif mysql # not compatible
query II rowsort label-7940
SELECT ALL + 98 * - - ( + - COUNT ( * ) ), + 75 AS col1
----
-98
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7941
SELECT - 32 DIV 20
----
-1

skipif mysql # not compatible
query I rowsort label-7941
SELECT - 32 / 20
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7942
SELECT - 3 + - - 32 DIV 27 * 28
----
25

skipif mysql # not compatible
query I rowsort label-7942
SELECT - 3 + - - 32 / 27 * 28
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT ALL - 26 * 42 - + - COUNT( * )
----
-1091

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL - 26 * 42 - + - COUNT ( * )
----
-1091

query I rowsort
SELECT - 20 * - - 72
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT COALESCE ( SUM( 83 ), 81 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7945
SELECT COALESCE ( SUM ( 83 ), 81 ) AS col2
----
83

query I rowsort
SELECT - + 52 * + 4 + - 71 + + 29 * - ( 97 )
----
-3092

query I rowsort
SELECT - 14 + - + 37 * - - 9 + - 49
----
-396

query I rowsort
SELECT ALL + 8 * 21 - + 52 + - - 6 col1
----
122

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

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

query I rowsort
SELECT ALL - 5 * 28 + - 22 * - 69 - - 20 AS col0
----
1398

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT ALL + - 40 * + COALESCE ( 88, - + 72 ) * 63 * MIN( + 16 ) + NULLIF ( - - 55, + - 11 + + ( - 96 ) ) AS col1
----
-3548105

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL + - 40 * + COALESCE ( 88, - + 72 ) * 63 * MIN ( + 16 ) + NULLIF ( - - 55, + - 11 + + ( - 96 ) ) AS col1
----
-3548105

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT - - 25 - - COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7952
SELECT - - 25 - - COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT - MAX( 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-7953
SELECT - MAX ( 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT ALL - + COALESCE ( - 25, 57 ) + - + 3 - + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL - + COALESCE ( - 25, 57 ) + - + 3 - + COUNT ( * )
----
21

query II rowsort
SELECT DISTINCT 74 AS col2, 78 AS col1
----
74
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT 58 - - ( COUNT( * ) ) * 88 AS col1
----
146

skipif mysql # not compatible
query I rowsort label-7956
SELECT 58 - - ( COUNT ( * ) ) * 88 AS col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT COUNT( * ) + - - CASE - + 22 WHEN + 76 + + COALESCE ( - - COALESCE ( + COUNT( * ), + COUNT( * ) * + + 63, + CASE + 18 WHEN 80 / - - 86 THEN SUM( DISTINCT + 27 ) ELSE - 2 END ), - ( 15 ) ) + 36 THEN - 98 WHEN 59 THEN - 28 / - CASE - CASE 93 WHEN 3 THEN 47 END WHEN - COUNT( * ) THEN NULL WHEN 40 THEN - 44 * 95 + + ( + COALESCE ( - COUNT( * ), 37 / 56, 38 ) ) * 36 ELSE NULL END ELSE NULL END * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7957
SELECT COUNT ( * ) + - - CASE - + 22 WHEN + 76 + + COALESCE ( - - COALESCE ( + COUNT ( * ), + COUNT ( * ) * + + 63, + CASE + 18 WHEN 80 / - - 86 THEN SUM ( DISTINCT + 27 ) ELSE - 2 END ), - ( 15 ) ) + 36 THEN - 98 WHEN 59 THEN - 28 / - CASE - CASE 93 WHEN 3 THEN 47 END WHEN - COUNT ( * ) THEN NULL WHEN 40 THEN - 44 * 95 + + ( + COALESCE ( - COUNT ( * ), 37 / 56, 38 ) ) * 36 ELSE NULL END ELSE NULL END * 47
----
NULL

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

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

query I rowsort
SELECT 45 + + 10
----
55

query II rowsort
SELECT 81 * - 92 AS col2, 10 * + + 79
----
-7452
790

query I rowsort
SELECT ALL 28 + 59 + - 12 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT CASE + 63 WHEN - MIN( ALL - 91 ) * + COUNT( * ) THEN NULL WHEN + 46 * 98 THEN NULLIF ( - 2, - 83 / 43 - - ( + - 53 ) + + COUNT( * ) ) * 95 ELSE - SUM( DISTINCT 10 ) + ( + 83 ) END + ( + COUNT( DISTINCT 53 ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7962
SELECT CASE + 63 WHEN - MIN ( ALL - 91 ) * + COUNT ( * ) THEN NULL WHEN + 46 * 98 THEN NULLIF ( - 2, - 83 / 43 - - ( + - 53 ) + + COUNT ( * ) ) * 95 ELSE - SUM ( DISTINCT 10 ) + ( + 83 ) END + ( + COUNT ( DISTINCT 53 ) ) AS col0
----
74

query I rowsort
SELECT ( + 97 ) * ( - - 34 ) + + 35 col1
----
3333

onlyif mysql # aggregate syntax: 
query II rowsort label-7964
SELECT ALL 92 - - 53 * - 30 + - + COUNT( * ), MAX( DISTINCT - 65 ) * - COUNT( * ) AS col2
----
-1499
65

skipif mysql # not compatible
query II rowsort label-7964
SELECT ALL 92 - - 53 * - 30 + - + COUNT ( * ), MAX ( DISTINCT - 65 ) * - COUNT ( * ) AS col2
----
-1499
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT ALL CASE + 52 WHEN + 63 THEN COUNT( * ) * + 87 ELSE NULL END - + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL CASE + 52 WHEN + 63 THEN COUNT ( * ) * + 87 ELSE NULL END - + 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT CASE - 92 WHEN - - 73 + CASE + 71 WHEN + + ( - 51 ) - + AVG ( DISTINCT - + CASE 29 WHEN + NULLIF ( - 80, + 64 ) THEN - 54 ELSE NULL END ) + 90 THEN COUNT( * ) * + COUNT( * ) ELSE NULL END THEN 22 * 35 END * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT CASE - 92 WHEN - - 73 + CASE + 71 WHEN + + ( - 51 ) - + AVG ( DISTINCT - + CASE 29 WHEN + NULLIF ( - 80, + 64 ) THEN - 54 ELSE NULL END ) + 90 THEN COUNT ( * ) * + COUNT ( * ) ELSE NULL END THEN 22 * 35 END * 8
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7967
SELECT - 32 * - 45 + + - NULLIF ( + + COUNT( * ), 41 / + 75 * - 17 - + AVG ( + CAST( NULL AS SIGNED ) ) ) + - + 34
----
1405

skipif mysql # not compatible
query I rowsort label-7967
SELECT - 32 * - 45 + + - NULLIF ( + + COUNT ( * ), 41 / + 75 * - 17 - + AVG ( + CAST ( NULL AS INTEGER ) ) ) + - + 34
----
1405

query I rowsort
SELECT 22 * 31
----
682

onlyif mysql # DIV for integer division: 
query I rowsort label-7969
SELECT 66 DIV + 87 + + 4 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7969
SELECT 66 / + 87 + + 4 AS col0
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-7970
SELECT ALL + CASE + 11 WHEN 38 THEN - 14 ELSE + - 17 * + + 41 END DIV + 26, - 85 AS col0
----
-26
-85

skipif mysql # not compatible
query II rowsort label-7970
SELECT ALL + CASE + 11 WHEN 38 THEN - 14 ELSE + - 17 * + + 41 END / + 26, - 85 AS col0
----
-26
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT 55 * + SUM( + ( - 85 ) ) * + 86 * - - ( + + 63 )
----
-25329150

skipif mysql # not compatible
query I rowsort label-7971
SELECT 55 * + SUM ( + ( - 85 ) ) * + 86 * - - ( + + 63 )
----
-25329150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7972
SELECT + COALESCE ( - - CASE + + 61 WHEN 67 + + + 46 THEN NULL WHEN - 36 / + 90 + MAX( DISTINCT 35 ) + - 35 * + + 47 * 78 * - CASE - 16 WHEN + 69 + - 4 THEN 31 * + 72 END + + 17 * + 38 THEN CAST( NULL AS SIGNED ) - + 92 ELSE - 94 * NULLIF ( - 58 * NULLIF ( 53, + 62 * + 47 ), + ( + ( 97 ) ) * + CASE COUNT( * ) * 3 + - CASE - 28 WHEN + 6 + - 42 THEN NULL ELSE - 60 * 7 + + CAST( CASE + COUNT( * ) WHEN + 94 THEN - 49 * 59 - + NULLIF ( + 48 + - 57, + CASE 94 WHEN 83 THEN 7 WHEN + 48 * 64 THEN NULL WHEN + 15 THEN NULL END + COUNT( * ) ) * + 74 WHEN + 62 THEN NULL END AS SIGNED ) END WHEN - COUNT( * ) THEN NULL WHEN MIN( + COALESCE ( + CAST( NULL AS SIGNED ), ( 54 ) / 98, 28 ) ) THEN 79 + - COUNT( * ) WHEN - 30 THEN CAST( NULL AS SIGNED ) END + COUNT( * ) / - 14 ) END, - 39 + + COALESCE ( - 85 + 24, COUNT( * ) * - 57 + - 54 * 16 ) * - 96, 90 ) AS col2
----
288956

skipif mysql # not compatible
query I rowsort label-7972
SELECT + COALESCE ( - - CASE + + 61 WHEN 67 + + + 46 THEN NULL WHEN - 36 / + 90 + MAX ( DISTINCT 35 ) + - 35 * + + 47 * 78 * - CASE - 16 WHEN + 69 + - 4 THEN 31 * + 72 END + + 17 * + 38 THEN CAST ( NULL AS INTEGER ) - + 92 ELSE - 94 * NULLIF ( - 58 * NULLIF ( 53, + 62 * + 47 ), + ( + ( 97 ) ) * + CASE COUNT ( * ) * 3 + - CASE - 28 WHEN + 6 + - 42 THEN NULL ELSE - 60 * 7 + + CAST ( CASE + COUNT ( * ) WHEN + 94 THEN - 49 * 59 - + NULLIF ( + 48 + - 57, + CASE 94 WHEN 83 THEN 7 WHEN + 48 * 64 THEN NULL WHEN + 15 THEN NULL END + COUNT ( * ) ) * + 74 WHEN + 62 THEN NULL END AS INTEGER ) END WHEN - COUNT ( * ) THEN NULL WHEN MIN ( + COALESCE ( + CAST ( NULL AS INTEGER ), ( 54 ) / 98, 28 ) ) THEN 79 + - COUNT ( * ) WHEN - 30 THEN CAST ( NULL AS INTEGER ) END + COUNT ( * ) / - 14 ) END, - 39 + + COALESCE ( - 85 + 24, COUNT ( * ) * - 57 + - 54 * 16 ) * - 96, 90 ) AS col2
----
288956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7973
SELECT DISTINCT + 59 / - 66 + - 96 - 47 + + CAST( NULL AS SIGNED ) * - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT + 59 / - 66 + - 96 - 47 + + CAST ( NULL AS INTEGER ) * - 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT 34 + + + COUNT( * ) col2
----
35

skipif mysql # not compatible
query I rowsort label-7974
SELECT 34 + + + COUNT ( * ) col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT - 48 + + - COUNT( * ) + - 69 * - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-7975
SELECT - 48 + + - COUNT ( * ) + - 69 * - COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT - SUM( DISTINCT + 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-7976
SELECT - SUM ( DISTINCT + 8 )
----
-8

query I rowsort
SELECT ALL + 85 + - 98 col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7978
SELECT COUNT( * ) + + - 14 col2, 11 * 63 DIV + + 5
----
-13
138

skipif mysql # not compatible
query II rowsort label-7978
SELECT COUNT ( * ) + + - 14 col2, 11 * 63 / + + 5
----
-13
138

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT DISTINCT + SUM( + 66 ) + - 21 + + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT + SUM ( + 66 ) + - 21 + + COUNT ( * )
----
46

query I rowsort
SELECT DISTINCT - 93 + + 29 + 34 * - 40
----
-1424

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT DISTINCT + 91 + + CASE + 61 WHEN + 77 * 37 - - 55 * + - 45 + 5 THEN - - ( - COUNT( * ) ) * - + 74 ELSE - - 20 END AS col0
----
111

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT + 91 + + CASE + 61 WHEN + 77 * 37 - - 55 * + - 45 + 5 THEN - - ( - COUNT ( * ) ) * - + 74 ELSE - - 20 END AS col0
----
111

query I rowsort
SELECT DISTINCT - 33 + - 22 - 3
----
-58

query I rowsort
SELECT DISTINCT + 15 * + 51
----
765

onlyif mysql # aggregate syntax: 
query II rowsort label-7984
SELECT DISTINCT 31 AS col0, MAX( - - 3 ) * 24
----
31
72

skipif mysql # not compatible
query II rowsort label-7984
SELECT DISTINCT 31 AS col0, MAX ( - - 3 ) * 24
----
31
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7985
SELECT ALL COUNT( DISTINCT - 22 ) * CAST( + 86 AS SIGNED ) col0
----
86

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL COUNT ( DISTINCT - 22 ) * CAST ( + 86 AS INTEGER ) col0
----
86

query II rowsort
SELECT 40 col1, 28 * + 83 AS col0
----
40
2324

query I rowsort
SELECT ALL 75 - - - 29 AS col2
----
46

query I rowsort
SELECT DISTINCT - 52 * + 67 AS col2
----
-3484

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

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL MAX ( - 11 )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-7990
SELECT ( + 64 ) DIV - + 33 + + 22 + 50 * - ( 3 ) AS col1
----
-129

skipif mysql # not compatible
query I rowsort label-7990
SELECT ( + 64 ) / - + 33 + + 22 + 50 * - ( 3 ) AS col1
----
-129

query II rowsort
SELECT DISTINCT - 38 col2, 21 col2
----
-38
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT 80 * COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-7992
SELECT 80 * COUNT ( * ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7993
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * - CASE - COALESCE ( + + 48, - COUNT( * ) * + 37 * + - 31 ) WHEN + - MAX( DISTINCT + ( - 44 ) ) + + 92 * 1 + ( + - 95 ) THEN AVG ( 89 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7993
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - CASE - COALESCE ( + + 48, - COUNT ( * ) * + 37 * + - 31 ) WHEN + - MAX ( DISTINCT + ( - 44 ) ) + + 92 * 1 + ( + - 95 ) THEN AVG ( 89 ) END col0
----
NULL

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

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

query I rowsort
SELECT ALL - ( - + 33 ) AS col1
----
33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT NULLIF ( + 96, + 75 ) * - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-7997
SELECT NULLIF ( + 96, + 75 ) * - COUNT ( * )
----
-96

query I rowsort
SELECT ALL 22 * + 8 + + - 81 AS col2
----
95

query I rowsort
SELECT ALL - 30 * 70 AS col0
----
-2100

query I rowsort
SELECT ALL 66 + + 93 * - + 70 * + 60
----
-390534

query I rowsort
SELECT ALL - 80 * 35
----
-2800

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

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL 11 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8003
SELECT DISTINCT SUM( 31 ) + - 63 DIV - 99 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT SUM ( 31 ) + - 63 / - 99 AS col2
----
31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT - ( + - 99 ) / + - COUNT( * ) * + CASE 9 WHEN - 92 THEN + 39 * + 80 - - 72 END * + + COUNT( * ) - COUNT( * ) / + - MAX( 65 ) * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT - ( + - 99 ) / + - COUNT ( * ) * + CASE 9 WHEN - 92 THEN + 39 * + 80 - - 72 END * + + COUNT ( * ) - COUNT ( * ) / + - MAX ( 65 ) * 18
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8006
SELECT 87 + + - ( 2 ) + 0 * - + 32 DIV + - 5 + + - 32 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8006
SELECT 87 + + - ( 2 ) + 0 * - + 32 / + - 5 + + - 32 AS col0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-8007
SELECT ALL - 31 AS col0, COALESCE ( + 14, 42 + - 7 + + COUNT( ALL 50 ) + 64 + 10, + CASE + 86 WHEN + + 61 THEN + - 74 WHEN COUNT( * ) THEN NULL END + + NULLIF ( 20, - 59 + 18 * + 13 ), 64 ) * 63 - 23 AS col2
----
-31
859

skipif mysql # not compatible
query II rowsort label-8007
SELECT ALL - 31 AS col0, COALESCE ( + 14, 42 + - 7 + + COUNT ( ALL 50 ) + 64 + 10, + CASE + 86 WHEN + + 61 THEN + - 74 WHEN COUNT ( * ) THEN NULL END + + NULLIF ( 20, - 59 + 18 * + 13 ), 64 ) * 63 - 23 AS col2
----
-31
859

onlyif mysql # DIV for integer division: 
query I rowsort label-8008
SELECT - 12 + + + 51 DIV + 66 col0
----
-12

skipif mysql # not compatible
query I rowsort label-8008
SELECT - 12 + + + 51 / + 66 col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8009
SELECT ALL - - SUM( ALL - 26 ) * - NULLIF ( 64, + CAST( NULL AS DECIMAL ) * CASE + COUNT( * ) WHEN - 24 + - 47 * + + 82 * + 97 THEN - COALESCE ( + 71, ( - + ( - 76 ) ), 66 * + 0 ) WHEN + 39 THEN NULL ELSE NULL END - 70 ) col1
----
1664

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL - - SUM ( ALL - 26 ) * - NULLIF ( 64, + CAST ( NULL AS REAL ) * CASE + COUNT ( * ) WHEN - 24 + - 47 * + + 82 * + 97 THEN - COALESCE ( + 71, ( - + ( - 76 ) ), 66 * + 0 ) WHEN + 39 THEN NULL ELSE NULL END - 70 ) col1
----
1664

query I rowsort
SELECT DISTINCT CASE NULLIF ( + 85, - - ( - 25 ) ) WHEN + 82 THEN NULL ELSE - ( + 67 ) END col1
----
-67

onlyif mysql # DIV for integer division: 
query II rowsort label-8011
SELECT ALL 95 + + + 38 + 90 DIV - - 81 - 55 AS col0, 63 * - 9 AS col0
----
79
-567

skipif mysql # not compatible
query II rowsort label-8011
SELECT ALL 95 + + + 38 + 90 / - - 81 - 55 AS col0, 63 * - 9 AS col0
----
79
-567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8012
SELECT - + CAST( + 29 AS SIGNED ) * 17 + + COUNT( * ) AS col1
----
-492

skipif mysql # not compatible
query I rowsort label-8012
SELECT - + CAST ( + 29 AS INTEGER ) * 17 + + COUNT ( * ) AS col1
----
-492

query I rowsort
SELECT - + 67 * - - 52 col2
----
-3484

query I rowsort
SELECT DISTINCT + + 44 - + - 58 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT ALL - 4 * - SUM( 13 ) + + 73
----
125

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL - 4 * - SUM ( 13 ) + + 73
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT DISTINCT SUM( 17 ) col2
----
17

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT SUM ( 17 ) col2
----
17

query I rowsort
SELECT ALL + 28 * + 36 AS col1
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT - COALESCE ( - ( - SUM( - - ( - - 58 ) ) ), + 64, - + 8, COUNT( ALL + 9 ) ) - COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-8018
SELECT - COALESCE ( - ( - SUM ( - - ( - - 58 ) ) ), + 64, - + 8, COUNT ( ALL + 9 ) ) - COUNT ( * ) AS col0
----
-59

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - 93, 45 + + 44 / + NULLIF ( - - 34, 54 ) ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-8021
SELECT ALL COALESCE ( + - COUNT( * ), - ( 97 ) ) AS col1, 75 * 33
----
-1
2475

skipif mysql # not compatible
query II rowsort label-8021
SELECT ALL COALESCE ( + - COUNT ( * ), - ( 97 ) ) AS col1, 75 * 33
----
-1
2475

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8022
SELECT ALL COUNT( * ), 6 DIV - + 93 * - SUM( ALL - - 55 ) AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-8022
SELECT ALL COUNT ( * ), 6 / - + 93 * - SUM ( ALL - - 55 ) AS col0
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT - ( ( 61 ) ) + 3 * COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-8023
SELECT - ( ( 61 ) ) + 3 * COUNT ( * )
----
-58

query I rowsort
SELECT - 33 - ( + 21 ) AS col2
----
-54

query I rowsort
SELECT - 80 * 2
----
-160

query I rowsort
SELECT + 86 * 91 AS col1
----
7826

query I rowsort
SELECT - 97 + - - 73 AS col0
----
-24

query II rowsort
SELECT ALL + 76 AS col0, + 50 * + 66
----
76
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT DISTINCT 73 * - COUNT( - + 41 ) + + 8 + + ( - COUNT( * ) ) col1
----
-66

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT 73 * - COUNT ( - + 41 ) + + 8 + + ( - COUNT ( * ) ) col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-8030
SELECT + COUNT( * ), 5 * + MAX( - 24 ) AS col0
----
1
-120

skipif mysql # not compatible
query II rowsort label-8030
SELECT + COUNT ( * ), 5 * + MAX ( - 24 ) AS col0
----
1
-120

query I rowsort
SELECT ALL - 18 * + + 45 * - ( 0 ) + 6 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT - + COUNT( * ) * COALESCE ( + 1, + COALESCE ( + 63, + - 53 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8032
SELECT - + COUNT ( * ) * COALESCE ( + 1, + COALESCE ( + 63, + - 53 ) ) AS col2
----
-1

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

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

query II rowsort
SELECT ALL + 74 AS col0, + 98 col1
----
74
98

onlyif mysql # DIV for integer division: 
query II rowsort label-8035
SELECT DISTINCT + + 77 AS col1, 99 - + ( 91 ) + + 47 + - + 38 DIV 30 * ( + + 2 ) + - 53 col1
----
77
0

skipif mysql # not compatible
query II rowsort label-8035
SELECT DISTINCT + + 77 AS col1, 99 - + ( 91 ) + + 47 + - + 38 / 30 * ( + + 2 ) + - 53 col1
----
77
0

query I rowsort
SELECT - - 45 * + 35 AS col0
----
1575

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

skipif mysql # not compatible
query I rowsort label-8037
SELECT + - 64 * 77 + COUNT ( * ) AS col0
----
-4927

query I rowsort
SELECT ALL + 0 * 44 + - 30 AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8039
SELECT CAST( + + NULLIF ( + - 73, 34 + + + 43 ) AS SIGNED ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-8039
SELECT CAST ( + + NULLIF ( + - 73, 34 + + + 43 ) AS INTEGER ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-8040
SELECT DISTINCT + + 61 AS col2, - 8 * + + MIN( DISTINCT - - 63 ) AS col0
----
61
-504

skipif mysql # not compatible
query II rowsort label-8040
SELECT DISTINCT + + 61 AS col2, - 8 * + + MIN ( DISTINCT - - 63 ) AS col0
----
61
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT ALL - - COUNT( * ) * - COUNT( * ) + COUNT( * ) - - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL - - COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) - - COUNT ( * ) col2
----
1

query II rowsort
SELECT - + 19 * + 2, 28 col1
----
-38
28

query I rowsort
SELECT + + 13 * 32 + + - 18 * + + ( + - 19 ) AS col2
----
758

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT - - COUNT( * ) + - 10 - - 49 * - 69
----
-3390

skipif mysql # not compatible
query I rowsort label-8044
SELECT - - COUNT ( * ) + - 10 - - 49 * - 69
----
-3390

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT 97 * - 14 + - + CASE + 90 WHEN + ( + 7 ) THEN NULL WHEN 89 * - COUNT( * ) THEN - 19 ELSE NULL END + - - 49 / - + 10 * + 96 * + - 71 * - + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT 97 * - 14 + - + CASE + 90 WHEN + ( + 7 ) THEN NULL WHEN 89 * - COUNT ( * ) THEN - 19 ELSE NULL END + - - 49 / - + 10 * + 96 * + - 71 * - + 69
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8046
SELECT + + SUM( + 49 ) DIV + 3
----
16

skipif mysql # not compatible
query I rowsort label-8046
SELECT + + SUM ( + 49 ) / + 3
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT + 85 * - - SUM( DISTINCT + 88 ) AS col0
----
7480

skipif mysql # not compatible
query I rowsort label-8047
SELECT + 85 * - - SUM ( DISTINCT + 88 ) AS col0
----
7480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8048
SELECT + COUNT( * ) * 41 * + 94 * - 96 + + + MIN( - - CAST( + 49 AS DECIMAL ) ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8048
SELECT + COUNT ( * ) * 41 * + 94 * - 96 + + + MIN ( - - CAST ( + 49 AS REAL ) ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT DISTINCT - - 29 * + - 49 + + COALESCE ( - COUNT( ALL 56 ), - 84 ) - - 41 AS col1
----
-1381

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT - - 29 * + - 49 + + COALESCE ( - COUNT ( ALL 56 ), - 84 ) - - 41 AS col1
----
-1381

onlyif mysql # aggregate syntax: 
query II rowsort label-8050
SELECT ALL + 48 AS col1, MAX( DISTINCT NULLIF ( + 47, + 48 ) )
----
48
47

skipif mysql # not compatible
query II rowsort label-8050
SELECT ALL + 48 AS col1, MAX ( DISTINCT NULLIF ( + 47, + 48 ) )
----
48
47

query I rowsort
SELECT - ( 37 ) AS col0
----
-37

query II rowsort
SELECT + 64 + + 94, 67 + - 86 AS col0
----
158
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8053
SELECT - CAST( 47 AS SIGNED ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-8053
SELECT - CAST ( 47 AS INTEGER ) col1
----
-47

query I rowsort
SELECT - CASE - 91 WHEN + 37 - + COALESCE ( 36, 50 ) THEN - 5 - - 59 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT MAX( ALL 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT MAX ( ALL 28 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT + 28 * 58 * ( - SUM( ALL 19 ) ) AS col0
----
-30856

skipif mysql # not compatible
query I rowsort label-8056
SELECT + 28 * 58 * ( - SUM ( ALL 19 ) ) AS col0
----
-30856

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT - 33 + - COUNT( * ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-8057
SELECT - 33 + - COUNT ( * ) col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8058
SELECT + CAST( NULL AS SIGNED ) * - MIN( ALL + - 25 ) * + - 34 + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8058
SELECT + CAST ( NULL AS INTEGER ) * - MIN ( ALL + - 25 ) * + - 34 + + 75
----
NULL

query I rowsort
SELECT - 10 + + 15 + - 96 col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT DISTINCT COALESCE ( - + ( - 91 ), + 92, COUNT( * ) + NULLIF ( + MAX( - 83 ), + COUNT( * ) ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT COALESCE ( - + ( - 91 ), + 92, COUNT ( * ) + NULLIF ( + MAX ( - 83 ), + COUNT ( * ) ) ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT DISTINCT COALESCE ( - 55, - COUNT( * ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT COALESCE ( - 55, - COUNT ( * ) ) AS col1
----
-55

query II rowsort
SELECT + 38 - - - 82 col1, + 79
----
-44
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8063
SELECT + MIN( - 78 ) AS col1, 9
----
-78
9

skipif mysql # not compatible
query II rowsort label-8063
SELECT + MIN ( - 78 ) AS col1, 9
----
-78
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8064
SELECT ALL - + NULLIF ( 0, - 51 + + 68 + - COALESCE ( 72, 44 DIV 87 ) * + 2 ) DIV 8
----
0

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL - + NULLIF ( 0, - 51 + + 68 + - COALESCE ( 72, 44 / 87 ) * + 2 ) / 8
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8065
SELECT - 40 * + 82 + - 42 + - 8 DIV 90 * - 13 + + - 53 AS col1
----
-3375

skipif mysql # not compatible
query I rowsort label-8065
SELECT - 40 * + 82 + - 42 + - 8 / 90 * - 13 + + - 53 AS col1
----
-3375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8066
SELECT - + CAST( 9 AS SIGNED ) DIV - 18 - + + MAX( ALL + - 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-8066
SELECT - + CAST ( 9 AS INTEGER ) / - 18 - + + MAX ( ALL + - 75 ) AS col0
----
75

query II rowsort
SELECT ALL + NULLIF ( 48, - 56 ) AS col2, 74
----
48
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8068
SELECT DISTINCT - - 15 DIV + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT - - 15 / + 77 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT DISTINCT - + MIN( 15 ) * + 51 * - COALESCE ( - 93, - 87, + 32 ) + + - MIN( 82 ) AS col2
----
-71227

skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT - + MIN ( 15 ) * + 51 * - COALESCE ( - 93, - 87, + 32 ) + + - MIN ( 82 ) AS col2
----
-71227

query I rowsort
SELECT ALL + - 2 - + 22
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8071
SELECT DISTINCT - - COUNT( * ) * + - CAST( NULL AS SIGNED ) / + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT - - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) / + 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8072
SELECT 48 DIV ( ( + 45 ) ) DIV COUNT( ALL + - 78 ) * 65 + - + 9 * + 5
----
20

skipif mysql # not compatible
query I rowsort label-8072
SELECT 48 / ( ( + 45 ) ) / COUNT ( ALL + - 78 ) * 65 + - + 9 * + 5
----
20

query I rowsort
SELECT 67 * 64 - - 5 AS col2
----
4293

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8074
SELECT DISTINCT + NULLIF ( + 72, - + 36 ) DIV + 54 * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8074
SELECT DISTINCT + NULLIF ( + 72, - + 36 ) / + 54 * COUNT ( * ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8075
SELECT 27 DIV + + 83
----
0

skipif mysql # not compatible
query I rowsort label-8075
SELECT 27 / + + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT COUNT( * ) + 68 + + 58 + - SUM( DISTINCT - 96 ) AS col2
----
223

skipif mysql # not compatible
query I rowsort label-8076
SELECT COUNT ( * ) + 68 + + 58 + - SUM ( DISTINCT - 96 ) AS col2
----
223

query I rowsort
SELECT DISTINCT 17 * - - 83
----
1411

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8078
SELECT DISTINCT 74, - COUNT( * ) DIV - - COUNT( * ) AS col0
----
74
-1

skipif mysql # not compatible
query II rowsort label-8078
SELECT DISTINCT 74, - COUNT ( * ) / - - COUNT ( * ) AS col0
----
74
-1

query I rowsort
SELECT 61 + + + NULLIF ( + + 28, 14 ) * 52
----
1517

query I rowsort
SELECT DISTINCT 63 * - - 23 AS col1
----
1449

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT 80 * 61 * CASE - 38 WHEN - 53 / NULLIF ( COUNT( * ), - COUNT( * ) ) + - CASE + 36 WHEN - + 46 THEN COUNT( * ) ELSE 87 * - + 17 * 61 - - 92 END * 37 THEN + 72 WHEN 0 THEN NULL END * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8081
SELECT 80 * 61 * CASE - 38 WHEN - 53 / NULLIF ( COUNT ( * ), - COUNT ( * ) ) + - CASE + 36 WHEN - + 46 THEN COUNT ( * ) ELSE 87 * - + 17 * 61 - - 92 END * 37 THEN + 72 WHEN 0 THEN NULL END * 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL 16 + + MAX( + 25 ) * + 13 AS col1
----
341

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL 16 + + MAX ( + 25 ) * + 13 AS col1
----
341

query I rowsort
SELECT ( - - 82 ) - + 34 AS col0
----
48

query II rowsort
SELECT - 45 AS col1, + 6 * + 19
----
-45
114

query II rowsort
SELECT ALL 46, - 61 col2
----
46
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT DISTINCT COUNT( * ) + 29
----
30

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT COUNT ( * ) + 29
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8087
SELECT ALL 80 + - 66 * + CAST( NULL AS SIGNED ) * + 71 * + MIN( ALL - - 38 ) * - 78 - + 83 + CAST( + + 1 AS SIGNED ) * + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL 80 + - 66 * + CAST ( NULL AS INTEGER ) * + 71 * + MIN ( ALL - - 38 ) * - 78 - + 83 + CAST ( + + 1 AS INTEGER ) * + 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT DISTINCT COUNT( * ) + - 66
----
-65

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT COUNT ( * ) + - 66
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-8089
SELECT MAX( - 57 ) + + COUNT( * ) AS col1, + 23 + - COUNT( * ) - - - 6 * + + 17 AS col1
----
-56
-80

skipif mysql # not compatible
query II rowsort label-8089
SELECT MAX ( - 57 ) + + COUNT ( * ) AS col1, + 23 + - COUNT ( * ) - - - 6 * + + 17 AS col1
----
-56
-80

query I rowsort
SELECT NULLIF ( + 27, + 94 - - 80 ) - + - 95 AS col2
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8091
SELECT ALL MAX( + 67 ) DIV 60 + - 60
----
-59

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL MAX ( + 67 ) / 60 + - 60
----
-59

query I rowsort
SELECT 5 + 17
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8093
SELECT 40 - CASE + 88 WHEN + COALESCE ( + 62, ( + SUM( - + 70 ) ) ) + COUNT( * ) + - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * ( + 46 ) - + NULLIF ( 33, - 26 * + - 54 + COUNT( * ) + 59 ) THEN 34 - 55 WHEN 97 / 57 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8093
SELECT 40 - CASE + 88 WHEN + COALESCE ( + 62, ( + SUM ( - + 70 ) ) ) + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * ( + 46 ) - + NULLIF ( 33, - 26 * + - 54 + COUNT ( * ) + 59 ) THEN 34 - 55 WHEN 97 / 57 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL ( + + 10 ) + + + ( 9 ) AS col1
----
19

query I rowsort
SELECT NULLIF ( - + 5, 30 ) * + 34 AS col1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT ( + 72 ) * + + MAX( 23 ) AS col0
----
1656

skipif mysql # not compatible
query I rowsort label-8096
SELECT ( + 72 ) * + + MAX ( 23 ) AS col0
----
1656

query II rowsort
SELECT ALL + 60 AS col1, 48 AS col1
----
60
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8098
SELECT ALL + 32 - + + MIN( + 8 ) + + 46 - - COUNT( * ) * + CASE MAX( - 90 ) WHEN + 63 + + - 26 THEN NULL ELSE AVG ( ALL - CAST( NULL AS SIGNED ) ) + + + 19 END * - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL + 32 - + + MIN ( + 8 ) + + 46 - - COUNT ( * ) * + CASE MAX ( - 90 ) WHEN + 63 + + - 26 THEN NULL ELSE AVG ( ALL - CAST ( NULL AS INTEGER ) ) + + + 19 END * - 38 AS col2
----
NULL

query II rowsort
SELECT ALL - 96 col2, + 95 AS col0
----
-96
95

query I rowsort
SELECT DISTINCT - + COALESCE ( + 39, ( + COALESCE ( 3, 90 ) ) ) AS col2
----
-39

query II rowsort
SELECT + 98 AS col2, - 95 - - + 79 + - 35
----
98
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8102
SELECT + 70 * CAST( - + COUNT( - 18 ) AS SIGNED ) + + + CAST( - 2 AS SIGNED ) + 32 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-8102
SELECT + 70 * CAST ( - + COUNT ( - 18 ) AS INTEGER ) + + + CAST ( - 2 AS INTEGER ) + 32 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT + COUNT( * ) * + 55 * - 31
----
-1705

skipif mysql # not compatible
query I rowsort label-8103
SELECT + COUNT ( * ) * + 55 * - 31
----
-1705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8104
SELECT DISTINCT + MAX( + 18 ) DIV 80 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT + MAX ( + 18 ) / 80 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT + NULLIF ( + - COALESCE ( 39, 36 + + 28, - 96 + - 89, + COALESCE ( + 94, + + 97 * - 73 ) - + 73 ), + - COUNT( * ) + + + 38 + - + 35 - + CASE WHEN + 6 >= - SUM( ALL - 70 ) THEN ( NULLIF ( - ( - 7 ), + COUNT( * ) + + COUNT( * ) ) ) WHEN NOT COUNT( * ) * - 25 + ( - ( 56 ) ) / + SUM( DISTINCT 92 + 54 ) IS NULL THEN + 56 ELSE 49 END - MAX( - 45 ) * - 11 )
----
-39

skipif mysql # not compatible
query I rowsort label-8105
SELECT + NULLIF ( + - COALESCE ( 39, 36 + + 28, - 96 + - 89, + COALESCE ( + 94, + + 97 * - 73 ) - + 73 ), + - COUNT ( * ) + + + 38 + - + 35 - + CASE WHEN + 6 >= - SUM ( ALL - 70 ) THEN ( NULLIF ( - ( - 7 ), + COUNT ( * ) + + COUNT ( * ) ) ) WHEN NOT COUNT ( * ) * - 25 + ( - ( 56 ) ) / + SUM ( DISTINCT 92 + 54 ) IS NULL THEN + 56 ELSE 49 END - MAX ( - 45 ) * - 11 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT + MIN( ALL 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-8106
SELECT + MIN ( ALL 73 ) AS col0
----
73

query I rowsort
SELECT ALL + 25 * + ( - + 24 ) * 95 * + ( - 31 )
----
1767000

query I rowsort
SELECT 73 + - - 53 - 82 - - 82
----
126

query II rowsort
SELECT + + 19 AS col0, 99 + - 77
----
19
22

query I rowsort
SELECT ( + ( - - 8 ) ) * - + 5 AS col1
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8111
SELECT 65 DIV 41 DIV 4 * 47 DIV - - ( - 82 ) * - ( - 90 ) DIV + SUM( ALL 56 ) + + - 72
----
-72

skipif mysql # not compatible
query I rowsort label-8111
SELECT 65 / 41 / 4 * 47 / - - ( - 82 ) * - ( - 90 ) / + SUM ( ALL 56 ) + + - 72
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT ALL + 64 * + MIN( DISTINCT - 67 ) * 89 - - + 35 + 41 AS col0
----
-381556

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL + 64 * + MIN ( DISTINCT - 67 ) * 89 - - + 35 + 41 AS col0
----
-381556

query I rowsort
SELECT 61 + - 53 col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8114
SELECT 64 - 4 + - 51 * + CASE - 57 WHEN + 10 / - CAST( NULL AS SIGNED ) THEN NULL WHEN - + 67 THEN NULL WHEN - + 72 * + 57 + - ( - 49 ) + 78 THEN 33 + + CAST( + 20 AS SIGNED ) - + MAX( ALL - 14 ) - + COUNT( * ) * 14 END + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT 64 - 4 + - 51 * + CASE - 57 WHEN + 10 / - CAST ( NULL AS INTEGER ) THEN NULL WHEN - + 67 THEN NULL WHEN - + 72 * + 57 + - ( - 49 ) + 78 THEN 33 + + CAST ( + 20 AS INTEGER ) - + MAX ( ALL - 14 ) - + COUNT ( * ) * 14 END + 88
----
NULL

query I rowsort
SELECT 74 * - 1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8116
SELECT 80 / - CAST( + CASE - MAX( ALL - 26 ) WHEN + 27 THEN + CAST( NULL AS SIGNED ) WHEN 55 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT 80 / - CAST ( + CASE - MAX ( ALL - 26 ) WHEN + 27 THEN + CAST ( NULL AS INTEGER ) WHEN 55 THEN NULL END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8117
SELECT NULLIF ( + 36, + - 97 ) / - - CASE + 82 WHEN + 94 THEN NULL WHEN - + 83 THEN 0 * + - CAST( 40 AS DECIMAL ) * + CAST( - 54 AS SIGNED ) + + 56 + 11 - + - 6 + - 51 WHEN + COUNT( * ) + - 95 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8117
SELECT NULLIF ( + 36, + - 97 ) / - - CASE + 82 WHEN + 94 THEN NULL WHEN - + 83 THEN 0 * + - CAST ( 40 AS REAL ) * + CAST ( - 54 AS INTEGER ) + + 56 + 11 - + - 6 + - 51 WHEN + COUNT ( * ) + - 95 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8118
SELECT ALL + 34 + + + 69 + ( + - NULLIF ( - - 1, 56 - + 6 * 60 * - - 31 ) ) * + 74 * + 17 DIV COUNT( * ) AS col1
----
-1155

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL + 34 + + + 69 + ( + - NULLIF ( - - 1, 56 - + 6 * 60 * - - 31 ) ) * + 74 * + 17 / COUNT ( * ) AS col1
----
-1155

query I rowsort
SELECT 25 * - 59
----
-1475

query I rowsort
SELECT DISTINCT + 53 + 77 + - + 4 + - 49 * + 31
----
-1393

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8121
SELECT COUNT( * ) + - - COUNT( * ) + + CAST( NULL AS DECIMAL ) - - 58 * - 39 * + 16 * CASE - 9 WHEN - 89 THEN - 78 ELSE - - 7 END + - - 99, - 99 + - COALESCE ( - ( + 37 ), 85 + + + 14 + + 2 + - 28, 3 ) AS col1
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-8121
SELECT COUNT ( * ) + - - COUNT ( * ) + + CAST ( NULL AS REAL ) - - 58 * - 39 * + 16 * CASE - 9 WHEN - 89 THEN - 78 ELSE - - 7 END + - - 99, - 99 + - COALESCE ( - ( + 37 ), 85 + + + 14 + + 2 + - 28, 3 ) AS col1
----
NULL
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT ALL + COUNT( * ) + 66
----
67

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL + COUNT ( * ) + 66
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT DISTINCT MIN( DISTINCT + + 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT MIN ( DISTINCT + + 19 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL COUNT( * ) * 31
----
31

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL COUNT ( * ) * 31
----
31

query I rowsort
SELECT 50 + - - 12 + - - 61
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT ALL 2 - MAX( 20 ) * 24 + 83 - 83 + - 33
----
-511

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL 2 - MAX ( 20 ) * 24 + 83 - 83 + - 33
----
-511

query I rowsort
SELECT ALL 5 - 19 + + + ( - COALESCE ( - 18, - + 76, + 69 ) )
----
4

query I rowsort
SELECT ALL 88 - + + ( 47 ) + - 94 * + 72 AS col0
----
-6727

query I rowsort
SELECT + 58 * - 55 + + - 70 * - - 66 * + 90 * 60 + - - ( - + 31 ) col0
----
-24951221

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT + 2 - SUM( + 52 ) + 52 - 85
----
-83

skipif mysql # not compatible
query I rowsort label-8130
SELECT + 2 - SUM ( + 52 ) + 52 - 85
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT ALL COUNT( * ) * + 50 + + COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL COUNT ( * ) * + 50 + + COUNT ( * ) AS col1
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-8132
SELECT + - 15 DIV 63, + 98 col1
----
0
98

skipif mysql # not compatible
query II rowsort label-8132
SELECT + - 15 / 63, + 98 col1
----
0
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8133
SELECT + SUM( DISTINCT + + 21 ) AS col1, + 47 * + - COALESCE ( ( + 64 ), + ( + COUNT( * ) ) * 17 ) AS col2
----
21
-3008

skipif mysql # not compatible
query II rowsort label-8133
SELECT + SUM ( DISTINCT + + 21 ) AS col1, + 47 * + - COALESCE ( ( + 64 ), + ( + COUNT ( * ) ) * 17 ) AS col2
----
21
-3008

query I rowsort
SELECT ALL + 45 * - 95 AS col1
----
-4275

query I rowsort
SELECT + + 40 * + 24 col1
----
960

query I rowsort
SELECT ALL - 76 * + COALESCE ( - 99, - 22, - 35 )
----
7524

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT 65 DIV 27 - + 89 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-8137
SELECT 65 / 27 - + 89 AS col1
----
-87

query I rowsort
SELECT DISTINCT + - ( 7 ) AS col2
----
-7

query I rowsort
SELECT ALL 35 * - 28
----
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT + + MIN( ALL 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT + + MIN ( ALL 24 ) AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8141
SELECT ALL + 71 * ( + - 43 ) + + 1 - 9 * 29 DIV COUNT( DISTINCT - 95 ) AS col2
----
-3313

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL + 71 * ( + - 43 ) + + 1 - 9 * 29 / COUNT ( DISTINCT - 95 ) AS col2
----
-3313

query II rowsort
SELECT + 32 + 4 AS col2, 98 * + + 21
----
36
2058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8143
SELECT - 26 * + 65 + + + 29 + - + SUM( CAST( - - NULLIF ( - 14, - + 89 ) AS SIGNED ) )
----
-1647

skipif mysql # not compatible
query I rowsort label-8143
SELECT - 26 * + 65 + + + 29 + - + SUM ( CAST ( - - NULLIF ( - 14, - + 89 ) AS INTEGER ) )
----
-1647

query I rowsort
SELECT DISTINCT 2 * + - 18 + 34 - - - 12 AS col0
----
-14

query I rowsort
SELECT - 69 * + - 39
----
2691

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT DISTINCT 39 * - 16 + + MIN( DISTINCT - 47 )
----
-671

skipif mysql # not compatible
query I rowsort label-8146
SELECT DISTINCT 39 * - 16 + + MIN ( DISTINCT - 47 )
----
-671

query I rowsort
SELECT DISTINCT - 35 * 19 * + 78 + + + 5
----
-51865

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT ALL COUNT( * ) * + 20 * + 95
----
1900

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL COUNT ( * ) * + 20 * + 95
----
1900

query I rowsort
SELECT ALL - 76 * - + 74
----
5624

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT + NULLIF ( - - 67, - 44 ) + - + SUM( ALL - 28 )
----
95

skipif mysql # not compatible
query I rowsort label-8150
SELECT + NULLIF ( - - 67, - 44 ) + - + SUM ( ALL - 28 )
----
95

query I rowsort
SELECT ALL - 4 - 28 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT - MIN( DISTINCT - + 17 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8152
SELECT - MIN ( DISTINCT - + 17 ) AS col2
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8153
SELECT - 9 - - + 90 + 78 DIV 16 + + + ( + 4 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-8153
SELECT - 9 - - + 90 + 78 / 16 + + + ( + 4 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT - 67 * - COALESCE ( - 92, SUM( ALL + 17 ) * + 13, 41 * - 32 * + 38 + - 9 + + ( + 71 ) * - - 17 ) * + NULLIF ( - MAX( - 76 ), - 4 + - - CASE - - 29 WHEN 95 + - 58 THEN CASE COUNT( * ) WHEN - 90 * + 1 THEN - 60 ELSE NULL END END + 82 * - 6 ) AS col2
----
-468464

skipif mysql # not compatible
query I rowsort label-8154
SELECT - 67 * - COALESCE ( - 92, SUM ( ALL + 17 ) * + 13, 41 * - 32 * + 38 + - 9 + + ( + 71 ) * - - 17 ) * + NULLIF ( - MAX ( - 76 ), - 4 + - - CASE - - 29 WHEN 95 + - 58 THEN CASE COUNT ( * ) WHEN - 90 * + 1 THEN - 60 ELSE NULL END END + 82 * - 6 ) AS col2
----
-468464

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8155
SELECT ALL - ( + 91 ) - + + COUNT( * ) * - - NULLIF ( MIN( ALL 94 ), + + COUNT( * ) * - - 75 ) col2, 93 + - 10 DIV - + 63 * - 32 * - 22
----
-185
93

skipif mysql # not compatible
query II rowsort label-8155
SELECT ALL - ( + 91 ) - + + COUNT ( * ) * - - NULLIF ( MIN ( ALL 94 ), + + COUNT ( * ) * - - 75 ) col2, 93 + - 10 / - + 63 * - 32 * - 22
----
-185
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT ALL CAST( + 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL CAST ( + 94 AS INTEGER )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8157
SELECT DISTINCT + CAST( - 26 AS SIGNED ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT + CAST ( - 26 AS INTEGER ) col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL + + 95 * 66 * + COUNT( * ) AS col0
----
6270

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL + + 95 * 66 * + COUNT ( * ) AS col0
----
6270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8159
SELECT - - 35 + + - CAST( + 6 AS SIGNED ) / + - CAST( NULL AS SIGNED ) / + 55 * - 4 - 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8159
SELECT - - 35 + + - CAST ( + 6 AS INTEGER ) / + - CAST ( NULL AS INTEGER ) / + 55 * - 4 - 92 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8160
SELECT + - COUNT( * ) - + + 73 - + COUNT( + 68 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8160
SELECT + - COUNT ( * ) - + + 73 - + COUNT ( + 68 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8161
SELECT - + 60 + - - COUNT( * ) DIV + - 27 + - 43 + + 88 * - + 40 + - + COUNT( * ) * + - 36 * + - 6 * + NULLIF ( + COUNT( * ), - COUNT( * ) )
----
-3839

skipif mysql # not compatible
query I rowsort label-8161
SELECT - + 60 + - - COUNT ( * ) / + - 27 + - 43 + + 88 * - + 40 + - + COUNT ( * ) * + - 36 * + - 6 * + NULLIF ( + COUNT ( * ), - COUNT ( * ) )
----
-3839

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8162
SELECT - - 86 * 70 DIV - COUNT( * ) - + 49 + + COUNT( ALL + 58 ) AS col2
----
-6068

skipif mysql # not compatible
query I rowsort label-8162
SELECT - - 86 * 70 / - COUNT ( * ) - + 49 + + COUNT ( ALL + 58 ) AS col2
----
-6068

query I rowsort
SELECT - + NULLIF ( 57, COALESCE ( + - 35, + 65 * 46 + + + 75 ) ) AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8164
SELECT ALL + CAST( 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL + CAST ( 0 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT + - 53 * - - 35
----
-1855

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8166
SELECT ALL 80 + SUM( 62 ) + - + CAST( NULL AS DECIMAL ) + 21 / - + ( + 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL 80 + SUM ( 62 ) + - + CAST ( NULL AS REAL ) + 21 / - + ( + 51 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8167
SELECT + 11 DIV + + 9 + - 74 + + 88
----
15

skipif mysql # not compatible
query I rowsort label-8167
SELECT + 11 / + + 9 + - 74 + + 88
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8168
SELECT + + COUNT( * ) DIV - + ( - ( + 48 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8168
SELECT + + COUNT ( * ) / - + ( - ( + 48 ) ) AS col1
----
0

query I rowsort
SELECT - + 59 * ( ( - 77 ) ) AS col0
----
4543

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8170
SELECT 42 * + + CAST( - 75 AS SIGNED ) + 90
----
-3060

skipif mysql # not compatible
query I rowsort label-8170
SELECT 42 * + + CAST ( - 75 AS INTEGER ) + 90
----
-3060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8171
SELECT DISTINCT 78 DIV + 34 + - 14 + MIN( DISTINCT 97 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT 78 / + 34 + - 14 + MIN ( DISTINCT 97 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT DISTINCT + COUNT( * ) * - + 89
----
-89

skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT + COUNT ( * ) * - + 89
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT 52 / + - 16 + - COUNT( * ) + - SUM( - 16 ) * CASE + 46 WHEN + 86 THEN - 95 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8173
SELECT 52 / + - 16 + - COUNT ( * ) + - SUM ( - 16 ) * CASE + 46 WHEN + 86 THEN - 95 END AS col1
----
NULL

query I rowsort
SELECT + 81 * - 17 * 13 AS col2
----
-17901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8175
SELECT DISTINCT MAX( ALL - 3 ) DIV 83 * + 64 + 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT MAX ( ALL - 3 ) / 83 * + 64 + 15 AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8176
SELECT DISTINCT 67 DIV - 79 * + COALESCE ( - 27, - 9 ) * - 55 + - - COUNT( * ) + 88 * 70 * - COUNT( * ) * - 48 + - 1
----
295680

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT 67 / - 79 * + COALESCE ( - 27, - 9 ) * - 55 + - - COUNT ( * ) + 88 * 70 * - COUNT ( * ) * - 48 + - 1
----
295680

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT + 75 + - - CASE - 18 WHEN + 75 * + 3 THEN - SUM( - 2 ) WHEN - 96 + - + ( + 91 ) THEN 22 - COUNT( * ) - + 76 + - 17 ELSE - 23 END AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8177
SELECT + 75 + - - CASE - 18 WHEN + 75 * + 3 THEN - SUM ( - 2 ) WHEN - 96 + - + ( + 91 ) THEN 22 - COUNT ( * ) - + 76 + - 17 ELSE - 23 END AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8178
SELECT + CAST( NULL AS SIGNED ) AS col0, - 94
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-8178
SELECT + CAST ( NULL AS INTEGER ) AS col0, - 94
----
NULL
-94

query I rowsort
SELECT ALL 41 * 90 + 86
----
3776

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT DISTINCT SUM( - 7 ) * + 15
----
-105

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT SUM ( - 7 ) * + 15
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-8181
SELECT ALL + 51 AS col1, - 71 * - COUNT( * ) col0
----
51
71

skipif mysql # not compatible
query II rowsort label-8181
SELECT ALL + 51 AS col1, - 71 * - COUNT ( * ) col0
----
51
71

query II rowsort
SELECT ALL + 60, + 17 * + 28 + - 34 * + ( + + 15 ) AS col2
----
60
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8183
SELECT NULLIF ( - 90, CAST( COUNT( ALL - 54 ) AS SIGNED ) )
----
-90

skipif mysql # not compatible
query I rowsort label-8183
SELECT NULLIF ( - 90, CAST ( COUNT ( ALL - 54 ) AS INTEGER ) )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8184
SELECT CASE + - 83 WHEN - 4 THEN + CASE + 13 WHEN CAST( NULL AS SIGNED ) / - 1 + 2 + + - 33 THEN - 26 ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT CASE + - 83 WHEN - 4 THEN + CASE + 13 WHEN CAST ( NULL AS INTEGER ) / - 1 + 2 + + - 33 THEN - 26 ELSE NULL END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8185
SELECT DISTINCT - 81 * COUNT( * ) - 62 + 64 AS col2, - CASE + - MIN( DISTINCT 18 ) WHEN COALESCE ( MAX( + 56 ), - 90 ) THEN - 67 * - - 46 WHEN + 80 THEN - 14 - + 16 ELSE NULL END * - 95 + - ( - 92 )
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-8185
SELECT DISTINCT - 81 * COUNT ( * ) - 62 + 64 AS col2, - CASE + - MIN ( DISTINCT 18 ) WHEN COALESCE ( MAX ( + 56 ), - 90 ) THEN - 67 * - - 46 WHEN + 80 THEN - 14 - + 16 ELSE NULL END * - 95 + - ( - 92 )
----
-79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT CASE - - COUNT( * ) WHEN - 19 THEN NULL WHEN 81 THEN NULL ELSE + MIN( ALL - 79 ) END AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-8186
SELECT CASE - - COUNT ( * ) WHEN - 19 THEN NULL WHEN 81 THEN NULL ELSE + MIN ( ALL - 79 ) END AS col1
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8187
SELECT DISTINCT COUNT( * ) AS col2, + MIN( + 62 ) DIV - 79 + - 89
----
1
-89

skipif mysql # not compatible
query II rowsort label-8187
SELECT DISTINCT COUNT ( * ) AS col2, + MIN ( + 62 ) / - 79 + - 89
----
1
-89

query I rowsort
SELECT DISTINCT - 73 - + 22 * + 78
----
-1789

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT DISTINCT 85 * COUNT( * ) * + + COUNT( + ( + 15 ) )
----
85

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT 85 * COUNT ( * ) * + + COUNT ( + ( + 15 ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT MAX( DISTINCT - 1 ) * 6 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-8190
SELECT MAX ( DISTINCT - 1 ) * 6 AS col0
----
-6

query I rowsort
SELECT ALL - - 56 * - 38
----
-2128

query I rowsort
SELECT 68 + + 71 + - 91 * + 42
----
-3683

onlyif mysql # DIV for integer division: 
query I rowsort label-8193
SELECT 71 DIV - 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8193
SELECT 71 / - 85 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT - 67 + - 5 + 49 + 33 - + + 7 + + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-8194
SELECT - 67 + - 5 + 49 + 33 - + + 7 + + + COUNT ( * )
----
4

query I rowsort
SELECT - 11 * 44
----
-484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8196
SELECT ALL + 29 + + 90 / + 63 * ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL + 29 + + 90 / + 63 * ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8197
SELECT ALL - COUNT( + 66 ), - 26 * - 93 col1
----
-1
2418

skipif mysql # not compatible
query II rowsort label-8197
SELECT ALL - COUNT ( + 66 ), - 26 * - 93 col1
----
-1
2418

query II rowsort
SELECT ALL - 81 AS col0, + 35 AS col0
----
-81
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT DISTINCT - 26 + - MAX( - 56 )
----
30

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT - 26 + - MAX ( - 56 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT ALL + 93 + - - COALESCE ( + 6, + COUNT( * ) * 68 ) * ( - 57 ) + + 99
----
-150

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL + 93 + - - COALESCE ( + 6, + COUNT ( * ) * 68 ) * ( - 57 ) + + 99
----
-150

query II rowsort
SELECT - 35, ( - + 32 ) AS col0
----
-35
-32

query II rowsort
SELECT ALL 46 AS col1, 2
----
46
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8203
SELECT - 92 * + COUNT( * ) + + ( COUNT( * ) ) + - 11 + - - 81 * - 74 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT - 92 * + COUNT ( * ) + + ( COUNT ( * ) ) + - 11 + - - 81 * - 74 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8204
SELECT ALL - - 75 + - 51 + 29 * + 51, - 86 * - 11 + + + COUNT( * ) + 11 + - ( + ( + + 27 ) ) AS col2
----
1503
931

skipif mysql # not compatible
query II rowsort label-8204
SELECT ALL - - 75 + - 51 + 29 * + 51, - 86 * - 11 + + + COUNT ( * ) + 11 + - ( + ( + + 27 ) ) AS col2
----
1503
931

query I rowsort
SELECT DISTINCT - 86 + 52 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT ALL - 48 * - + 24 * - - MIN( ALL - 12 )
----
-13824

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL - 48 * - + 24 * - - MIN ( ALL - 12 )
----
-13824

query I rowsort
SELECT DISTINCT - ( + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT COUNT( * ) - + + 59 + + - 69 * + 68 AS col1
----
-4750

skipif mysql # not compatible
query I rowsort label-8208
SELECT COUNT ( * ) - + + 59 + + - 69 * + 68 AS col1
----
-4750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8209
SELECT ALL - CAST( + 57 AS SIGNED ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL - CAST ( + 57 AS INTEGER ) AS col1
----
-57

query I rowsort
SELECT ALL - 21 - - + COALESCE ( + - 88, - 70 )
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT COUNT( 59 ) + COUNT( * ) + - 48
----
-46

skipif mysql # not compatible
query I rowsort label-8211
SELECT COUNT ( 59 ) + COUNT ( * ) + - 48
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8212
SELECT 8 + 84 * + CAST( NULL AS SIGNED ) + + + NULLIF ( 47, + 38 ) * - + 75 * - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT 8 + 84 * + CAST ( NULL AS INTEGER ) + + + NULLIF ( 47, + 38 ) * - + 75 * - 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT COUNT( * ) - 0 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8213
SELECT COUNT ( * ) - 0 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT COUNT( - 12 ) * - 36
----
-36

skipif mysql # not compatible
query I rowsort label-8214
SELECT COUNT ( - 12 ) * - 36
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT ALL COUNT( * ) * + + COALESCE ( + + 61, - 35 )
----
61

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL COUNT ( * ) * + + COALESCE ( + + 61, - 35 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT - 49 * - - 99 + - + COUNT( * ) + - 12 * - 23 * SUM( ALL + 79 ) * + 87 AS col2
----
1892096

skipif mysql # not compatible
query I rowsort label-8216
SELECT - 49 * - - 99 + - + COUNT ( * ) + - 12 * - 23 * SUM ( ALL + 79 ) * + 87 AS col2
----
1892096

onlyif mysql # aggregate syntax: 
query II rowsort label-8217
SELECT COUNT( * ) + MIN( DISTINCT 41 ) AS col0, - 32 col0
----
42
-32

skipif mysql # not compatible
query II rowsort label-8217
SELECT COUNT ( * ) + MIN ( DISTINCT 41 ) AS col0, - 32 col0
----
42
-32

query I rowsort
SELECT + 20 * - - 98 + - - 56 + 24
----
2040

query I rowsort
SELECT DISTINCT ( + ( + - 23 ) ) col2
----
-23

query I rowsort
SELECT ALL - 33 + - ( - 9 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT ALL - + 28 + - 27 + + - MIN( - 2 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL - + 28 + - 27 + + - MIN ( - 2 ) AS col0
----
-53

query I rowsort
SELECT 16 + + 79 AS col0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-8223
SELECT ALL + + COUNT( * ) + 80 + + 28 + - 36 * 45 AS col0, 73 AS col1
----
-1511
73

skipif mysql # not compatible
query II rowsort label-8223
SELECT ALL + + COUNT ( * ) + 80 + + 28 + - 36 * 45 AS col0, 73 AS col1
----
-1511
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8224
SELECT ALL 1 + + - 72 + + 30 + + 78 + - + 87 * - 24 * 13 + + COUNT( * ) * 19 - - ( + MIN( 46 ) ), - 23 * + 47 AS col1
----
27246
-1081

skipif mysql # not compatible
query II rowsort label-8224
SELECT ALL 1 + + - 72 + + 30 + + 78 + - + 87 * - 24 * 13 + + COUNT ( * ) * 19 - - ( + MIN ( 46 ) ), - 23 * + 47 AS col1
----
27246
-1081

query I rowsort
SELECT + 7 * + 41
----
287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8226
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + 31 + - COUNT( * ) - + - 4 AS col0, 5
----
NULL
5

skipif mysql # not compatible
query II rowsort label-8226
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + 31 + - COUNT ( * ) - + - 4 AS col0, 5
----
NULL
5

query I rowsort
SELECT ALL - 56 + + 42
----
-14

query I rowsort
SELECT 65 + - 99 + - + 18 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-8229
SELECT ALL - 45 * 42 AS col0, - COUNT( * ) * + 55 AS col1
----
-1890
-55

skipif mysql # not compatible
query II rowsort label-8229
SELECT ALL - 45 * 42 AS col0, - COUNT ( * ) * + 55 AS col1
----
-1890
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT ALL + + CASE + 50 WHEN + ( 99 ) * 5 * 93 + 12 THEN + - COUNT( * ) END + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL + + CASE + 50 WHEN + ( 99 ) * 5 * 93 + 12 THEN + - COUNT ( * ) END + + 92
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8231
SELECT DISTINCT + 54 DIV + NULLIF ( - + ( + 48 ), - - 53 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT + 54 / + NULLIF ( - + ( + 48 ), - - 53 ) AS col1
----
-1

query II rowsort
SELECT + 20, - 90 + 71 AS col2
----
20
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT SUM( ALL + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-8233
SELECT SUM ( ALL + 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT + NULLIF ( + 29, + 29 ) * COUNT( * ) * 86 - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT + NULLIF ( + 29, + 29 ) * COUNT ( * ) * 86 - - 14
----
NULL

query I rowsort
SELECT ALL - 17 * - 32
----
544

query I rowsort
SELECT DISTINCT - ( - 70 )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8237
SELECT - CAST( NULL AS SIGNED ) * + + ( - + 4 ) + - 83 + + 31 * ( 38 ) * - COUNT( * ) * 54 + + - COALESCE ( 55, - COALESCE ( - 27, - - AVG ( ALL 7 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT - CAST ( NULL AS INTEGER ) * + + ( - + 4 ) + - 83 + + 31 * ( 38 ) * - COUNT ( * ) * 54 + + - COALESCE ( 55, - COALESCE ( - 27, - - AVG ( ALL 7 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT ALL - CASE + 65 WHEN + + 29 * - + 47 * 65 * 71 THEN + + AVG ( + + 78 ) WHEN + SUM( DISTINCT - - 82 ) + + 72 THEN - 12 * 20 END * 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL - CASE + 65 WHEN + + 29 * - + 47 * 65 * 71 THEN + + AVG ( + + 78 ) WHEN + SUM ( DISTINCT - - 82 ) + + 72 THEN - 12 * 20 END * 62 AS col1
----
NULL

query I rowsort
SELECT 24 * + + 17
----
408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8240
SELECT ALL - COALESCE ( - 5, + - NULLIF ( - - 6, + 97 ) * 8 * + SUM( ALL + 89 ) * - + MIN( DISTINCT 46 ) * ( - + NULLIF ( - + COALESCE ( - + CASE 0 WHEN - 22 * - 25 * CAST( + 21 AS SIGNED ) THEN - SUM( ALL - 78 ) ELSE COUNT( + 59 ) + 30 END, - SUM( ALL 7 ), + ( 80 ) * - 41 ), - 21 ) ) + COUNT( * ) DIV + 12 + + COUNT( * ) - 17, + 48 + - COUNT( * ) * + 7 ) * + 18 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL - COALESCE ( - 5, + - NULLIF ( - - 6, + 97 ) * 8 * + SUM ( ALL + 89 ) * - + MIN ( DISTINCT 46 ) * ( - + NULLIF ( - + COALESCE ( - + CASE 0 WHEN - 22 * - 25 * CAST ( + 21 AS INTEGER ) THEN - SUM ( ALL - 78 ) ELSE COUNT ( + 59 ) + 30 END, - SUM ( ALL 7 ), + ( 80 ) * - 41 ), - 21 ) ) + COUNT ( * ) / + 12 + + COUNT ( * ) - 17, + 48 + - COUNT ( * ) * + 7 ) * + 18 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT - 86 + 71 + + + 58 * MIN( DISTINCT - + 52 ) + + 16
----
-3015

skipif mysql # not compatible
query I rowsort label-8241
SELECT - 86 + 71 + + + 58 * MIN ( DISTINCT - + 52 ) + + 16
----
-3015

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT DISTINCT - 0 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT - 0 * - COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8243
SELECT ALL + CAST( - 36 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL + CAST ( - 36 AS INTEGER )
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8244
SELECT + 38 * 93 DIV 40
----
88

skipif mysql # not compatible
query I rowsort label-8244
SELECT + 38 * 93 / 40
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8245
SELECT ALL + CASE + + 26 WHEN - 19 + - - COUNT( * ) * - + 30 * - - NULLIF ( - - 38, + - 24 * - 48 * - 74 ) - + - 97 + - CASE ( + 6 ) WHEN 25 * CAST( NULL AS SIGNED ) THEN - 92 WHEN - + 88 * - CAST( - + COALESCE ( + ( 4 ), - 59 + + 6 ) AS SIGNED ) * 19 THEN 42 * - 91 WHEN + 6 * + 83 THEN + 63 END THEN NULL WHEN 27 THEN - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL + CASE + + 26 WHEN - 19 + - - COUNT ( * ) * - + 30 * - - NULLIF ( - - 38, + - 24 * - 48 * - 74 ) - + - 97 + - CASE ( + 6 ) WHEN 25 * CAST ( NULL AS INTEGER ) THEN - 92 WHEN - + 88 * - CAST ( - + COALESCE ( + ( 4 ), - 59 + + 6 ) AS INTEGER ) * 19 THEN 42 * - 91 WHEN + 6 * + 83 THEN + 63 END THEN NULL WHEN 27 THEN - 28 END
----
NULL

query I rowsort
SELECT - 2 * 63 AS col2
----
-126

query I rowsort
SELECT + COALESCE ( + + 61, 7 ) + - 74 AS col0
----
-13

query I rowsort
SELECT - 78 * + + 66 * 2
----
-10296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8249
SELECT ALL - 62 + - + MIN( 64 ) + + COALESCE ( 84, + + CASE - + 75 WHEN - - 51 THEN 40 WHEN + 80 * - - 26 + + 40 THEN NULL ELSE NULL END + 66 * - - 85 ) DIV + 30
----
-124

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL - 62 + - + MIN ( 64 ) + + COALESCE ( 84, + + CASE - + 75 WHEN - - 51 THEN 40 WHEN + 80 * - - 26 + + 40 THEN NULL ELSE NULL END + 66 * - - 85 ) / + 30
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT SUM( + + NULLIF ( 38, - NULLIF ( 73, - 76 ) ) ) * - SUM( DISTINCT 36 ) * + 80 + - 46 * COUNT( * ) AS col2
----
-109486

skipif mysql # not compatible
query I rowsort label-8250
SELECT SUM ( + + NULLIF ( 38, - NULLIF ( 73, - 76 ) ) ) * - SUM ( DISTINCT 36 ) * + 80 + - 46 * COUNT ( * ) AS col2
----
-109486

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8251
SELECT ALL + CASE - - COUNT( * ) WHEN + - COUNT( * ) * - + 28 THEN + 20 WHEN - COUNT( * ) + NULLIF ( + 8, 14 ) * 28 THEN NULL WHEN + 41 THEN NULL ELSE - 61 END DIV - 3
----
20

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL + CASE - - COUNT ( * ) WHEN + - COUNT ( * ) * - + 28 THEN + 20 WHEN - COUNT ( * ) + NULLIF ( + 8, 14 ) * 28 THEN NULL WHEN + 41 THEN NULL ELSE - 61 END / - 3
----
20

query I rowsort
SELECT + + 23 - + + 23
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8253
SELECT ALL CAST( - + 31 AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL CAST ( - + 31 AS INTEGER )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8254
SELECT DISTINCT + MIN( - COALESCE ( + 12, + 62 ) ) + + 53 + + + COUNT( * ) - + + 9 * + CAST( NULL AS SIGNED ) * - - 32 + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT DISTINCT + MIN ( - COALESCE ( + 12, + 62 ) ) + + 53 + + + COUNT ( * ) - + + 9 * + CAST ( NULL AS INTEGER ) * - - 32 + 72
----
NULL

query I rowsort
SELECT DISTINCT + 79 + - 8 AS col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8256
SELECT + + 15 + MAX( ALL 69 ) + - CASE + - AVG ( ALL 49 ) WHEN + - 47 * - - 22 + + 2 - - - 8 THEN - 45 ELSE + - 50 * - - CAST( NULL AS SIGNED ) + + - 21 * + 80 + - + 44 END / ( + - COUNT( * ) ) * + 6 - 18 / + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8256
SELECT + + 15 + MAX ( ALL 69 ) + - CASE + - AVG ( ALL 49 ) WHEN + - 47 * - - 22 + + 2 - - - 8 THEN - 45 ELSE + - 50 * - - CAST ( NULL AS INTEGER ) + + - 21 * + 80 + - + 44 END / ( + - COUNT ( * ) ) * + 6 - 18 / + 39 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8257
SELECT + - 41 + + 20 * + 68, 54 DIV + 36 AS col1
----
1319
1

skipif mysql # not compatible
query II rowsort label-8257
SELECT + - 41 + + 20 * + 68, 54 / + 36 AS col1
----
1319
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT ALL COUNT( - + 45 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL COUNT ( - + 45 ) AS col0
----
1

query I rowsort
SELECT + + 80 * 55
----
4400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8260
SELECT ALL CAST( - 26 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL CAST ( - 26 AS INTEGER )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT DISTINCT + 52 - - COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT + 52 - - COUNT ( * ) AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8262
SELECT ALL - 67 col2, + 21 * + + 18 + - CASE 16 WHEN + COUNT( * ) THEN - 68 WHEN - 75 + - - CAST( + 42 AS SIGNED ) THEN NULL ELSE NULL END AS col0
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-8262
SELECT ALL - 67 col2, + 21 * + + 18 + - CASE 16 WHEN + COUNT ( * ) THEN - 68 WHEN - 75 + - - CAST ( + 42 AS INTEGER ) THEN NULL ELSE NULL END AS col0
----
-67
NULL

query I rowsort
SELECT ALL NULLIF ( - 95, - 80 ) - + + 68 + 70 * 95 * - + 40
----
-266163

query I rowsort
SELECT + 41 * 48 AS col0
----
1968

onlyif mysql # aggregate syntax: 
query II rowsort label-8265
SELECT - 20 AS col1, + NULLIF ( + ( - - 58 ), - CASE - - COUNT( * ) WHEN + + 95 THEN 90 ELSE 46 * - - 65 * - 76 + - 46 END ) col2
----
-20
58

skipif mysql # not compatible
query II rowsort label-8265
SELECT - 20 AS col1, + NULLIF ( + ( - - 58 ), - CASE - - COUNT ( * ) WHEN + + 95 THEN 90 ELSE 46 * - - 65 * - 76 + - 46 END ) col2
----
-20
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8266
SELECT + CAST( - 21 AS SIGNED ) + - + COUNT( * ) + 0 / + + 13 + 73 + CASE - 17 WHEN + + CAST( NULL AS SIGNED ) THEN + 66 WHEN - 0 * + + COUNT( * ) * + CASE WHEN NOT + COALESCE ( + 58, + COUNT( * ), - 85 * 9 * + 76 * + COUNT( * ) * + 34 + + - COUNT( * ) + + MAX( + 81 ) + - COALESCE ( - MAX( DISTINCT - 37 ), 4 ) ) IS NOT NULL THEN + 68 END * + 88 + MAX( DISTINCT + 17 - NULLIF ( COALESCE ( - 47, + 82 + + 8 ), - 76 ) ) THEN NULL END / 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8266
SELECT + CAST ( - 21 AS INTEGER ) + - + COUNT ( * ) + 0 / + + 13 + 73 + CASE - 17 WHEN + + CAST ( NULL AS INTEGER ) THEN + 66 WHEN - 0 * + + COUNT ( * ) * + CASE WHEN NOT + COALESCE ( + 58, + COUNT ( * ), - 85 * 9 * + 76 * + COUNT ( * ) * + 34 + + - COUNT ( * ) + + MAX ( + 81 ) + - COALESCE ( - MAX ( DISTINCT - 37 ), 4 ) ) IS NOT NULL THEN + 68 END * + 88 + MAX ( DISTINCT + 17 - NULLIF ( COALESCE ( - 47, + 82 + + 8 ), - 76 ) ) THEN NULL END / 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT ALL COALESCE ( MIN( 1 ), - 41 * - + 88 ) * - 27 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL COALESCE ( MIN ( 1 ), - 41 * - + 88 ) * - 27 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT + 16 * - MIN( 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8268
SELECT + 16 * - MIN ( 0 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8269
SELECT + CAST( 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-8269
SELECT + CAST ( 43 AS INTEGER )
----
43

query I rowsort
SELECT - 45 - + 96
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT - COUNT( * ) + - 49
----
-50

skipif mysql # not compatible
query I rowsort label-8271
SELECT - COUNT ( * ) + - 49
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8272
SELECT ALL + 59 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL + 59 / 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8273
SELECT - COALESCE ( + 94, - 17 ) DIV 40 AS col1, + COUNT( * )
----
-2
1

skipif mysql # not compatible
query II rowsort label-8273
SELECT - COALESCE ( + 94, - 17 ) / 40 AS col1, + COUNT ( * )
----
-2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL + MAX( DISTINCT 4 )
----
4

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL + MAX ( DISTINCT 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT + 26 * + ( - COUNT( * ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8275
SELECT + 26 * + ( - COUNT ( * ) ) AS col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8276
SELECT - 85 + + 26 + - 46 * 37 / 73 / + 92 * - + 75 + - CAST( NULL AS SIGNED ) - + 26 * ( - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8276
SELECT - 85 + + 26 + - 46 * 37 / 73 / + 92 * - + 75 + - CAST ( NULL AS INTEGER ) - + 26 * ( - 41 )
----
NULL

query I rowsort
SELECT ( + + 56 ) col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT DISTINCT 9 * + ( + - 40 ) + - + 97 + - + CAST( - 59 AS SIGNED ) AS col0
----
-398

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT 9 * + ( + - 40 ) + - + 97 + - + CAST ( - 59 AS INTEGER ) AS col0
----
-398

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8279
SELECT COALESCE ( + + 58, + 11 * - CAST( NULL AS SIGNED ) + - 60, - 97 )
----
58

skipif mysql # not compatible
query I rowsort label-8279
SELECT COALESCE ( + + 58, + 11 * - CAST ( NULL AS INTEGER ) + - 60, - 97 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT - CASE + 79 WHEN - 38 / + - 97 + + 69 THEN - ( COUNT( DISTINCT + 43 ) ) ELSE NULL END * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT - CASE + 79 WHEN - 38 / + - 97 + + 69 THEN - ( COUNT ( DISTINCT + 43 ) ) ELSE NULL END * - 42
----
NULL

query I rowsort
SELECT DISTINCT - ( - 77 ) * 97 + + - 1
----
7468

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT + + COUNT( * ) * + + COUNT( * ) * + 33 + + ( + 31 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8282
SELECT + + COUNT ( * ) * + + COUNT ( * ) * + 33 + + ( + 31 ) AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8283
SELECT DISTINCT + COALESCE ( + + 61, + - 18 + + CAST( - + 13 AS SIGNED ), - 48 + - CASE - 88 WHEN - 69 + - 89 + - + 36 + - 59 THEN NULL WHEN + - 47 THEN 88 * 18 - + 1 * - 5 + - 54 - - COALESCE ( - + 15, - + CAST( NULL AS SIGNED ), 29 ) DIV - + 14 ELSE NULL END + + + COUNT( + 38 ) + COUNT( * ) * 37 )
----
61

skipif mysql # not compatible
query I rowsort label-8283
SELECT DISTINCT + COALESCE ( + + 61, + - 18 + + CAST ( - + 13 AS INTEGER ), - 48 + - CASE - 88 WHEN - 69 + - 89 + - + 36 + - 59 THEN NULL WHEN + - 47 THEN 88 * 18 - + 1 * - 5 + - 54 - - COALESCE ( - + 15, - + CAST ( NULL AS INTEGER ), 29 ) / - + 14 ELSE NULL END + + + COUNT ( + 38 ) + COUNT ( * ) * 37 )
----
61

query I rowsort
SELECT ALL 44 * ( + 55 ) + 85
----
2505

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8285
SELECT ALL + ( - COUNT( * ) ) * - 17 + + 92 DIV + 25 + + + ( + 13 ) + + + 41 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL + ( - COUNT ( * ) ) * - 17 + + 92 / + 25 + + + ( + 13 ) + + + 41 AS col1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8286
SELECT DISTINCT 35 DIV 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT 35 / 73 AS col1
----
0

query II rowsort
SELECT - 44 * + 11 AS col1, 29
----
-484
29

query I rowsort
SELECT + + NULLIF ( + 10, + 97 ) * - 16 + + 48 + - + 47
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8289
SELECT + - 70 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8289
SELECT + - 70 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - - 0 + - 90 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT - + CASE + 74 WHEN - COUNT( * ) THEN ( - + 7 ) + COUNT( * ) WHEN - 1 THEN 66 * + 83 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8291
SELECT - + CASE + 74 WHEN - COUNT ( * ) THEN ( - + 7 ) + COUNT ( * ) WHEN - 1 THEN 66 * + 83 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8292
SELECT ALL 56 * 99 - - 51 + - 63 DIV + + COUNT( * ) + - 48 AS col2
----
5484

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL 56 * 99 - - 51 + - 63 / + + COUNT ( * ) + - 48 AS col2
----
5484

query I rowsort
SELECT - 89 + - 70 AS col1
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT DISTINCT - 98 * - 82 + + 16 + 24 * + ( + + COALESCE ( - CAST( NULL AS SIGNED ), + 81 ) )
----
9996

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT - 98 * - 82 + + 16 + 24 * + ( + + COALESCE ( - CAST ( NULL AS INTEGER ), + 81 ) )
----
9996

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8295
SELECT + COUNT( * ) + 87 DIV 4 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-8295
SELECT + COUNT ( * ) + 87 / 4 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT - + 74 + + - 50 + + COUNT( * ) - + 80 AS col1
----
-203

skipif mysql # not compatible
query I rowsort label-8296
SELECT - + 74 + + - 50 + + COUNT ( * ) - + 80 AS col1
----
-203

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8297
SELECT + - 68 * + - COUNT( * ) DIV - 93 DIV 42 * COUNT( DISTINCT - 74 ) * 85 + + + 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8297
SELECT + - 68 * + - COUNT ( * ) / - 93 / 42 * COUNT ( DISTINCT - 74 ) * 85 + + + 70 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT ALL - 63 * - COUNT( * ) + + + 10
----
73

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL - 63 * - COUNT ( * ) + + + 10
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT + + 93 - - + COUNT( * ) * - + NULLIF ( + 79, + COUNT( * ) ) col0
----
14

skipif mysql # not compatible
query I rowsort label-8299
SELECT + + 93 - - + COUNT ( * ) * - + NULLIF ( + 79, + COUNT ( * ) ) col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8300
SELECT - NULLIF ( + 74, - CAST( NULL AS SIGNED ) * - 68 * 78 * + - 68 ) col1
----
-74

skipif mysql # not compatible
query I rowsort label-8300
SELECT - NULLIF ( + 74, - CAST ( NULL AS INTEGER ) * - 68 * 78 * + - 68 ) col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT + MAX( ALL - + 23 ) + - COUNT( * ) * - - ( 21 ) * - 93 + - 25 + 74
----
1979

skipif mysql # not compatible
query I rowsort label-8301
SELECT + MAX ( ALL - + 23 ) + - COUNT ( * ) * - - ( 21 ) * - 93 + - 25 + 74
----
1979

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT + 93 * - - COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-8302
SELECT + 93 * - - COUNT ( * ) AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT + AVG ( - - CAST( NULL AS SIGNED ) ) * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT + AVG ( - - CAST ( NULL AS INTEGER ) ) * 19
----
NULL

query I rowsort
SELECT ALL 57 * + 0 * - 92 * + 59 * - 58 * NULLIF ( - 17, 98 * - - 89 )
----
0

query I rowsort
SELECT DISTINCT ( 34 ) + + 70 AS col2
----
104

query I rowsort
SELECT DISTINCT + 45 * + 49
----
2205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8307
SELECT CAST( - - COUNT( * ) AS SIGNED ) + 13 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-8307
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) + 13 AS col0
----
14

query II rowsort
SELECT 97 AS col2, + 47 col2
----
97
47

query I rowsort
SELECT ( - 44 ) + 9 + - - 37 col1
----
2

query I rowsort
SELECT 69 + - 45 AS col1
----
24

query II rowsort
SELECT DISTINCT 56 + + 18 + + - 99 AS col2, - 44 - + 98 AS col0
----
-25
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT ALL 73 + - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL 73 + - COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-8313
SELECT ALL - COUNT( * ) AS col1, 5 * 71 - + 81
----
-1
274

skipif mysql # not compatible
query II rowsort label-8313
SELECT ALL - COUNT ( * ) AS col1, 5 * 71 - + 81
----
-1
274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8314
SELECT ( - CASE - 7 WHEN + 40 / + 26 + 89 / + MAX( ALL - 40 ) THEN NULL WHEN COUNT( * ) + ( - - 28 ) THEN - 69 WHEN - - 31 + 41 * + 58 THEN NULL ELSE NULL END ) + AVG ( + + NULLIF ( COALESCE ( + 39, ( 29 ) * - 70 + - 34 ), + 66 ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT ( - CASE - 7 WHEN + 40 / + 26 + 89 / + MAX ( ALL - 40 ) THEN NULL WHEN COUNT ( * ) + ( - - 28 ) THEN - 69 WHEN - - 31 + 41 * + 58 THEN NULL ELSE NULL END ) + AVG ( + + NULLIF ( COALESCE ( + 39, ( 29 ) * - 70 + - 34 ), + 66 ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 78 + ( 17 ) * + 42 col2
----
792

onlyif mysql # DIV for integer division: 
query I rowsort label-8316
SELECT ALL - 92 DIV - + 18 col0
----
5

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL - 92 / - + 18 col0
----
5

query I rowsort
SELECT + 71 + 33
----
104

query I rowsort
SELECT ALL - 60 + - 49
----
-109

query I rowsort
SELECT DISTINCT - 54 + + 6
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT + 28 - + - COUNT( * ) - + + 22 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8320
SELECT + 28 - + - COUNT ( * ) - + + 22 AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8321
SELECT + 13 * - 70 + + ( 47 ) + - 94 DIV + 12 + 81 + - - 39 * + CAST( + ( - 40 ) AS SIGNED ) AS col1, 28 * 99 AS col1
----
-2349
2772

skipif mysql # not compatible
query II rowsort label-8321
SELECT + 13 * - 70 + + ( 47 ) + - 94 / + 12 + 81 + - - 39 * + CAST ( + ( - 40 ) AS INTEGER ) AS col1, 28 * 99 AS col1
----
-2349
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT + 11 * COUNT( - - 50 ) + + COUNT( * ) col0
----
12

skipif mysql # not compatible
query I rowsort label-8322
SELECT + 11 * COUNT ( - - 50 ) + + COUNT ( * ) col0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8323
SELECT + + 94 AS col2, - COALESCE ( - 17, NULLIF ( - 5, 68 ) + 8 - - MAX( 92 ) * - 74 )
----
94
17

skipif mysql # not compatible
query II rowsort label-8323
SELECT + + 94 AS col2, - COALESCE ( - 17, NULLIF ( - 5, 68 ) + 8 - - MAX ( 92 ) * - 74 )
----
94
17

query I rowsort
SELECT - 20 + ( + 66 ) AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8325
SELECT ALL + CAST( NULL AS SIGNED ) - CASE + - COUNT( * ) WHEN + COUNT( * ) THEN - COALESCE ( + ( - 8 ), + ( 64 ), - COUNT( * ), + 67 + 67 ) * - 69 WHEN + 2 THEN - 74 END - + ( 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL + CAST ( NULL AS INTEGER ) - CASE + - COUNT ( * ) WHEN + COUNT ( * ) THEN - COALESCE ( + ( - 8 ), + ( 64 ), - COUNT ( * ), + 67 + 67 ) * - 69 WHEN + 2 THEN - 74 END - + ( 98 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT ALL - - SUM( ALL - ( 1 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL - - SUM ( ALL - ( 1 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT + - CASE 4 WHEN + CASE - + 73 WHEN 45 THEN 71 * - - SUM( - 34 ) WHEN - 75 / + - MIN( DISTINCT - 4 ) + 70 THEN - 78 + + + 21 + 51 + - - COUNT( * ) * - 47 END - - 36 THEN NULL WHEN - + COUNT( * ) * + + 42 + - 77 THEN + CASE + 11 WHEN - COUNT( * ) - 16 THEN 93 END ELSE + ( - 62 ) END col1
----
62

skipif mysql # not compatible
query I rowsort label-8327
SELECT + - CASE 4 WHEN + CASE - + 73 WHEN 45 THEN 71 * - - SUM ( - 34 ) WHEN - 75 / + - MIN ( DISTINCT - 4 ) + 70 THEN - 78 + + + 21 + 51 + - - COUNT ( * ) * - 47 END - - 36 THEN NULL WHEN - + COUNT ( * ) * + + 42 + - 77 THEN + CASE + 11 WHEN - COUNT ( * ) - 16 THEN 93 END ELSE + ( - 62 ) END col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8328
SELECT - CAST( - 92 AS SIGNED ) * - 41 * - 0 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8328
SELECT - CAST ( - 92 AS INTEGER ) * - 41 * - 0 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 74 * - - 60 * + 98 AS col0
----
435120

onlyif mysql # aggregate syntax: 
query II rowsort label-8330
SELECT + COUNT( * ), COUNT( ( ( + + 2 ) ) )
----
1
1

skipif mysql # not compatible
query II rowsort label-8330
SELECT + COUNT ( * ), COUNT ( ( ( + + 2 ) ) )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT ALL + MAX( - - 81 ) - 76 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL + MAX ( - - 81 ) - 76 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT COUNT( ALL + 31 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8332
SELECT COUNT ( ALL + 31 ) AS col2
----
1

query I rowsort
SELECT ALL + 78 - 40
----
38

query II rowsort
SELECT DISTINCT - 37 AS col1, + 33 * - - 49 AS col0
----
-37
1617

query I rowsort
SELECT 40 + - 29
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8336
SELECT ALL - CAST( - - COUNT( ALL + + 64 ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL - CAST ( - - COUNT ( ALL + + 64 ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT 88 * + 61 + - 54 * + 73 AS col0
----
1426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8338
SELECT - 50 + - CAST( + 64 AS SIGNED ) AS col2, COUNT( * ) * + 87
----
-114
87

skipif mysql # not compatible
query II rowsort label-8338
SELECT - 50 + - CAST ( + 64 AS INTEGER ) AS col2, COUNT ( * ) * + 87
----
-114
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8339
SELECT ALL - + 49 DIV 62 - MAX( ALL - 86 ) * + 35
----
3010

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL - + 49 / 62 - MAX ( ALL - 86 ) * + 35
----
3010

query II rowsort
SELECT DISTINCT 73 col2, 87 * - 70 AS col0
----
73
-6090

query I rowsort
SELECT 34 * ( - 54 ) AS col0
----
-1836

onlyif mysql # aggregate syntax: 
query II rowsort label-8342
SELECT 53 AS col0, - CASE 50 WHEN - 95 THEN + 62 WHEN - 90 * + + COALESCE ( - 80, - 42, + 45 / + 51 + - COUNT( DISTINCT + + 43 ) + - 28 * + + 78 * + 64 ) + + COALESCE ( - - 35, 51 + 70 ) THEN NULL END * - 94
----
53
NULL

skipif mysql # not compatible
query II rowsort label-8342
SELECT 53 AS col0, - CASE 50 WHEN - 95 THEN + 62 WHEN - 90 * + + COALESCE ( - 80, - 42, + 45 / + 51 + - COUNT ( DISTINCT + + 43 ) + - 28 * + + 78 * + 64 ) + + COALESCE ( - - 35, 51 + 70 ) THEN NULL END * - 94
----
53
NULL

query II rowsort
SELECT DISTINCT - ( - ( + + 8 ) ) * + - 65, 12 AS col2
----
-520
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT 24 + - - 80 - + CASE COUNT( * ) WHEN - - 47 THEN NULL WHEN 53 + + + 61 + 75 * + 98 + - 94 THEN NULL WHEN - - 25 + + 47 THEN NULL ELSE + COUNT( * ) END
----
103

skipif mysql # not compatible
query I rowsort label-8344
SELECT 24 + - - 80 - + CASE COUNT ( * ) WHEN - - 47 THEN NULL WHEN 53 + + + 61 + 75 * + 98 + - 94 THEN NULL WHEN - - 25 + + 47 THEN NULL ELSE + COUNT ( * ) END
----
103

query II rowsort
SELECT ALL 38 AS col0, - 23 AS col1
----
38
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT COUNT( * ) + - 5 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8346
SELECT COUNT ( * ) + - 5 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-8347
SELECT - 92 col0, + COUNT( * ) + - 6 AS col0
----
-92
-5

skipif mysql # not compatible
query II rowsort label-8347
SELECT - 92 col0, + COUNT ( * ) + - 6 AS col0
----
-92
-5

query II rowsort
SELECT 45 AS col0, ( 40 ) AS col2
----
45
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT MIN( DISTINCT + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-8349
SELECT MIN ( DISTINCT + 70 )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8350
SELECT MIN( DISTINCT + 15 ) DIV - - ( + SUM( ALL 72 ) ) - 9 * - 30 * - 38 + + + 73 + - 90 * 92 * - + 81 + 18
----
660511

skipif mysql # not compatible
query I rowsort label-8350
SELECT MIN ( DISTINCT + 15 ) / - - ( + SUM ( ALL 72 ) ) - 9 * - 30 * - 38 + + + 73 + - 90 * 92 * - + 81 + 18
----
660511

query II rowsort
SELECT ALL - 30 AS col0, + 15
----
-30
15

query I rowsort
SELECT 65 * + - 69 * 82
----
-367770

onlyif mysql # aggregate syntax: 
query II rowsort label-8353
SELECT + 60 AS col2, + 84 + MAX( DISTINCT + 57 )
----
60
141

skipif mysql # not compatible
query II rowsort label-8353
SELECT + 60 AS col2, + 84 + MAX ( DISTINCT + 57 )
----
60
141

query I rowsort
SELECT 69 * + 36 + - 27 * + 58 AS col0
----
918

query I rowsort
SELECT ALL 14 + - ( - 4 )
----
18

query II rowsort
SELECT ALL 19 * + - 96 AS col2, 37 - + 35 - - 41
----
-1824
43

query I rowsort
SELECT ALL 31 * 92 AS col0
----
2852

onlyif mysql # aggregate syntax: 
query II rowsort label-8358
SELECT + 53 AS col2, 20 + - + COUNT( * )
----
53
19

skipif mysql # not compatible
query II rowsort label-8358
SELECT + 53 AS col2, 20 + - + COUNT ( * )
----
53
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT DISTINCT - CASE - MIN( ALL + + 64 ) WHEN - + 94 - CASE + 62 WHEN 41 THEN NULL WHEN - 45 / + + 99 THEN COUNT( - 39 ) + COUNT( * ) ELSE + + 33 + 29 END * - 13 THEN NULL ELSE + 0 + + - 53 END * + - 33 AS col0
----
-1749

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT - CASE - MIN ( ALL + + 64 ) WHEN - + 94 - CASE + 62 WHEN 41 THEN NULL WHEN - 45 / + + 99 THEN COUNT ( - 39 ) + COUNT ( * ) ELSE + + 33 + 29 END * - 13 THEN NULL ELSE + 0 + + - 53 END * + - 33 AS col0
----
-1749

query I rowsort
SELECT - 26 + - 47 AS col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8361
SELECT + - COUNT( * ), + 92 DIV - 84 AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8361
SELECT + - COUNT ( * ), + 92 / - 84 AS col2
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT ALL - SUM( ALL ( 26 ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL - SUM ( ALL ( 26 ) ) AS col0
----
-26

query II rowsort
SELECT ALL - + 18 col2, 2
----
-18
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8364
SELECT + 75 + + COUNT( + 78 ) - CAST( + + 91 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-8364
SELECT + 75 + + COUNT ( + 78 ) - CAST ( + + 91 AS INTEGER )
----
-15

query I rowsort
SELECT ALL - + ( + 60 )
----
-60

query I rowsort
SELECT ALL - - 26 * + 69 * + 0 * + 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8367
SELECT + ( + CASE - COUNT( ALL + 76 ) WHEN - COUNT( * ) * 27 + - CAST( COUNT( * ) AS SIGNED ) + + COUNT( DISTINCT - 64 ) - + COALESCE ( 22, - 6 ) THEN - COALESCE ( 61, + COUNT( * ), - 58 ) END ) * - 30 + + CASE + - 17 WHEN - 49 THEN NULL WHEN + - 85 * - - 53 * 35 + 65 + - 38 THEN NULL ELSE - 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT + ( + CASE - COUNT ( ALL + 76 ) WHEN - COUNT ( * ) * 27 + - CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( DISTINCT - 64 ) - + COALESCE ( 22, - 6 ) THEN - COALESCE ( 61, + COUNT ( * ), - 58 ) END ) * - 30 + + CASE + - 17 WHEN - 49 THEN NULL WHEN + - 85 * - - 53 * 35 + 65 + - 38 THEN NULL ELSE - 3 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8368
SELECT ALL 68 DIV ( - 17 )
----
-4

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL 68 / ( - 17 )
----
-4

query I rowsort
SELECT 65 + - 91 col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT 24 * + SUM( + 99 )
----
2376

skipif mysql # not compatible
query I rowsort label-8370
SELECT 24 * + SUM ( + 99 )
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT - COUNT( * ) * 72 + + 9 + - 57
----
-120

skipif mysql # not compatible
query I rowsort label-8371
SELECT - COUNT ( * ) * 72 + + 9 + - 57
----
-120

query I rowsort
SELECT - 64 + - + 82 AS col1
----
-146

query I rowsort
SELECT - 78 * - 6 + - 95 * + 94 + 75 AS col0
----
-8387

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT ALL + SUM( ( - 12 ) ) + + + 11
----
-1

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL + SUM ( ( - 12 ) ) + + + 11
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT - 46 + 18 * - COUNT( * ) * - - 50
----
-946

skipif mysql # not compatible
query I rowsort label-8375
SELECT - 46 + 18 * - COUNT ( * ) * - - 50
----
-946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8376
SELECT ALL CASE + - 23 WHEN - + 40 THEN + 65 + 4 ELSE + + 97 + - 2 END + - 23 * 81 * 63 * - + CAST( - + COALESCE ( - - 97, - 37 * - 51 + - - 5 ) AS SIGNED )
----
-11384698

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL CASE + - 23 WHEN - + 40 THEN + 65 + 4 ELSE + + 97 + - 2 END + - 23 * 81 * 63 * - + CAST ( - + COALESCE ( - - 97, - 37 * - 51 + - - 5 ) AS INTEGER )
----
-11384698

query I rowsort
SELECT ALL - 72 * + 4 col1
----
-288

query I rowsort
SELECT - 22 + - 57 AS col2
----
-79

query II rowsort
SELECT ALL - 27 + + 14 AS col2, - 74
----
-13
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8380
SELECT - CASE + 62 WHEN - - AVG ( DISTINCT - 95 ) THEN NULL WHEN - 38 - - + 82 * + CASE 69 WHEN + + MAX( DISTINCT 89 ) * + 49 + - - 65 THEN + CAST( + - 33 AS SIGNED ) + COUNT( * ) * + COUNT( * ) * - 32 END THEN 78 + + - 22 WHEN + 18 + - COUNT( * ) THEN NULL WHEN COALESCE ( + 6, + COUNT( * ), - 60 ) THEN NULL ELSE NULL END AS col2, COALESCE ( COUNT( * ), + 83 * - 64 ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8380
SELECT - CASE + 62 WHEN - - AVG ( DISTINCT - 95 ) THEN NULL WHEN - 38 - - + 82 * + CASE 69 WHEN + + MAX ( DISTINCT 89 ) * + 49 + - - 65 THEN + CAST ( + - 33 AS INTEGER ) + COUNT ( * ) * + COUNT ( * ) * - 32 END THEN 78 + + - 22 WHEN + 18 + - COUNT ( * ) THEN NULL WHEN COALESCE ( + 6, + COUNT ( * ), - 60 ) THEN NULL ELSE NULL END AS col2, COALESCE ( COUNT ( * ), + 83 * - 64 ) AS col0
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8381
SELECT ALL + 0 + - 99 + - 28 DIV - ( + 60 )
----
-99

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL + 0 + - 99 + - 28 / - ( + 60 )
----
-99

query I rowsort
SELECT - 10 + + 38 + + 32
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8383
SELECT ALL - CAST( NULL AS SIGNED ) + + - ( + + CASE + SUM( - NULLIF ( - 60, 31 - + 17 ) ) WHEN + COUNT( * ) + 67 THEN + + SUM( ALL + 48 ) ELSE 47 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL - CAST ( NULL AS INTEGER ) + + - ( + + CASE + SUM ( - NULLIF ( - 60, 31 - + 17 ) ) WHEN + COUNT ( * ) + 67 THEN + + SUM ( ALL + 48 ) ELSE 47 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT - 92 + COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-8384
SELECT - 92 + COUNT ( * ) AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8385
SELECT ALL + 64 + - 14 + + - 54 + COUNT( * ) * - CAST( + + 40 AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL + 64 + - 14 + + - 54 + COUNT ( * ) * - CAST ( + + 40 AS INTEGER )
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT DISTINCT - 10 DIV - 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT - 10 / - 36 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8387
SELECT DISTINCT CASE - MAX( DISTINCT - + 49 ) WHEN + 11 * - + 35 + - 22 * + - 97 THEN 93 WHEN CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT CASE - MAX ( DISTINCT - + 49 ) WHEN + 11 * - + 35 + - 22 * + - 97 THEN 93 WHEN CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 82 + + + 29, + 39 AS col1
----
111
39

query I rowsort
SELECT ALL 67 * - 26
----
-1742

query I rowsort
SELECT ALL 26 * 68
----
1768

onlyif mysql # aggregate syntax: 
query II rowsort label-8391
SELECT - 32 + + COUNT( * ) AS col0, - 58 AS col2
----
-31
-58

skipif mysql # not compatible
query II rowsort label-8391
SELECT - 32 + + COUNT ( * ) AS col0, - 58 AS col2
----
-31
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT - NULLIF ( + 9, + + CASE + COUNT( * ) WHEN 45 THEN NULL ELSE 75 END ) + 88 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-8392
SELECT - NULLIF ( + 9, + + CASE + COUNT ( * ) WHEN 45 THEN NULL ELSE 75 END ) + 88 AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8393
SELECT DISTINCT - 47 * + + COUNT( * ) AS col0, 51 AS col0
----
-47
51

skipif mysql # not compatible
query II rowsort label-8393
SELECT DISTINCT - 47 * + + COUNT ( * ) AS col0, 51 AS col0
----
-47
51

query I rowsort
SELECT - 96 * - 29 * 25
----
69600

query I rowsort
SELECT + 2 * - 29 * - 19 * 97 AS col0
----
106894

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8396
SELECT 92 * + - 30 + - 49 + - + ( 81 ) DIV - 49 + + + COUNT( + + 22 )
----
-2807

skipif mysql # not compatible
query I rowsort label-8396
SELECT 92 * + - 30 + - 49 + - + ( 81 ) / - 49 + + + COUNT ( + + 22 )
----
-2807

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8397
SELECT DISTINCT - 67 * + + 60 - - 50 + CAST( - 77 AS SIGNED ) * - COALESCE ( - NULLIF ( + + 20, - 73 ), + 13 ) DIV + 2 + + 84 + + 2 * - 46 + - + 34 DIV - - COUNT( * )
----
-4782

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT - 67 * + + 60 - - 50 + CAST ( - 77 AS INTEGER ) * - COALESCE ( - NULLIF ( + + 20, - 73 ), + 13 ) / + 2 + + 84 + + 2 * - 46 + - + 34 / - - COUNT ( * )
----
-4782

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL 75 * 67 - + COUNT( DISTINCT - - 45 )
----
5024

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL 75 * 67 - + COUNT ( DISTINCT - - 45 )
----
5024

query I rowsort
SELECT - + 13 * + - 20
----
260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8400
SELECT ALL + + CASE + 5 WHEN - + ( + - 33 ) - + 85 + + CAST( 90 AS SIGNED ) THEN - NULLIF ( - 41, - 53 * 29 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL + + CASE + 5 WHEN - + ( + - 33 ) - + 85 + + CAST ( 90 AS INTEGER ) THEN - NULLIF ( - 41, - 53 * 29 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT DISTINCT + - NULLIF ( + 82, COUNT( * ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-8401
SELECT DISTINCT + - NULLIF ( + 82, COUNT ( * ) ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL + ( - ( CASE - - 84 WHEN + - 93 THEN - 2 * + NULLIF ( + - 47, - CASE - ( - + SUM( - + 42 ) ) WHEN - 72 * 59 THEN NULL WHEN - ( - 28 ) THEN NULL WHEN + + 11 THEN + 80 * + 20 - + + 85 + 38 / - + 47 * + - 97 - - 97 ELSE - 61 END * 76 + 99 ) - COUNT( * ) ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL + ( - ( CASE - - 84 WHEN + - 93 THEN - 2 * + NULLIF ( + - 47, - CASE - ( - + SUM ( - + 42 ) ) WHEN - 72 * 59 THEN NULL WHEN - ( - 28 ) THEN NULL WHEN + + 11 THEN + 80 * + 20 - + + 85 + 38 / - + 47 * + - 97 - - 97 ELSE - 61 END * 76 + 99 ) - COUNT ( * ) ELSE NULL END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT - COUNT( DISTINCT 87 ) * - - 83 + + 87 + - 26 + - - 60 * + + ( - + 83 ) * - - COUNT( * ) + - - 13 AS col0
----
-4989

skipif mysql # not compatible
query I rowsort label-8403
SELECT - COUNT ( DISTINCT 87 ) * - - 83 + + 87 + - 26 + - - 60 * + + ( - + 83 ) * - - COUNT ( * ) + - - 13 AS col0
----
-4989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8404
SELECT DISTINCT 8 * NULLIF ( + 41, + 11 ) * - CAST( NULL AS SIGNED ) / - - 68 + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT 8 * NULLIF ( + 41, + 11 ) * - CAST ( NULL AS INTEGER ) / - - 68 + 81
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8405
SELECT DISTINCT - COUNT( * ) DIV 16 AS col1, - 56
----
0
-56

skipif mysql # not compatible
query II rowsort label-8405
SELECT DISTINCT - COUNT ( * ) / 16 AS col1, - 56
----
0
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT - COUNT( * ) - + 82 - 18 AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-8406
SELECT - COUNT ( * ) - + 82 - 18 AS col1
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT 81 * + ( - ( 98 ) ) + - - COUNT( * ) + + - 26 - + 1 AS col0
----
-7964

skipif mysql # not compatible
query I rowsort label-8407
SELECT 81 * + ( - ( 98 ) ) + - - COUNT ( * ) + + - 26 - + 1 AS col0
----
-7964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8408
SELECT ALL + SUM( + CAST( NULL AS SIGNED ) ) AS col1, + 61, 88 AS col1
----
NULL
61
88

skipif mysql # not compatible
query III rowsort label-8408
SELECT ALL + SUM ( + CAST ( NULL AS INTEGER ) ) AS col1, + 61, 88 AS col1
----
NULL
61
88

query I rowsort
SELECT + + NULLIF ( 94, - 70 )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8410
SELECT + + 6 + - 70 DIV COUNT( ( - - ( - 82 ) ) ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-8410
SELECT + + 6 + - 70 / COUNT ( ( - - ( - 82 ) ) ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT ALL + 22 * COUNT( * ) + - - ( - COUNT( * ) ) - 95 * - ( 22 ) AS col0
----
2111

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL + 22 * COUNT ( * ) + - - ( - COUNT ( * ) ) - 95 * - ( 22 ) AS col0
----
2111

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT DISTINCT COUNT( * ) * COUNT( 63 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT COUNT ( * ) * COUNT ( 63 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ALL COUNT( * ) * + 61 + - + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL COUNT ( * ) * + 61 + - + COUNT ( * )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8414
SELECT DISTINCT ( - + 2 ) DIV - 12
----
0

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT ( - + 2 ) / - 12
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8415
SELECT DISTINCT ( - + CASE - - 21 WHEN COUNT( * ) THEN - 62 - - 5 END ) + 76 + + 80 * - 85 * 83 * + 82, - 1 + + 7 + - 64 DIV 69 AS col0
----
NULL
6

skipif mysql # not compatible
query II rowsort label-8415
SELECT DISTINCT ( - + CASE - - 21 WHEN COUNT ( * ) THEN - 62 - - 5 END ) + 76 + + 80 * - 85 * 83 * + 82, - 1 + + 7 + - 64 / 69 AS col0
----
NULL
6

query II rowsort
SELECT 78 AS col2, + 56
----
78
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT - 68 * + ( MIN( - 12 ) ) AS col2
----
816

skipif mysql # not compatible
query I rowsort label-8417
SELECT - 68 * + ( MIN ( - 12 ) ) AS col2
----
816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8418
SELECT ALL + 69 + CAST( NULL AS SIGNED ) / - 80 + AVG ( ALL + 74 ) * + COUNT( * ) * - - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL + 69 + CAST ( NULL AS INTEGER ) / - 80 + AVG ( ALL + 74 ) * + COUNT ( * ) * - - 49 AS col0
----
NULL

query I rowsort
SELECT ALL ( + 25 ) AS col2
----
25

query I rowsort
SELECT ALL ( - - 55 ) col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT DISTINCT 56 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT 56 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT ALL NULLIF ( SUM( ALL - 43 ), 83 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL NULLIF ( SUM ( ALL - 43 ), 83 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-8423
SELECT + SUM( + - 50 ) + 92, 68 AS col0
----
42
68

skipif mysql # not compatible
query II rowsort label-8423
SELECT + SUM ( + - 50 ) + 92, 68 AS col0
----
42
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8424
SELECT - NULLIF ( 53, 7 ) * CASE COUNT( - 61 ) WHEN + + 56 * - 51 - CASE - NULLIF ( - 86, 44 ) WHEN + + COUNT( * ) + - CASE - 2 WHEN + CAST( NULL AS SIGNED ) * - 28 / + SUM( + 44 ) THEN - 32 END * 6 THEN NULL WHEN + + 23 + + 35 * + 61 THEN NULL WHEN + + 36 THEN 41 ELSE + + 8 * 59 + CASE - AVG ( DISTINCT - 45 ) WHEN + 72 * COUNT( * ) + 13 * NULLIF ( + 52 * + 75, + 46 + COUNT( * ) ) THEN + 49 END * 23 - + 44 END THEN NULL WHEN + 48 + - CAST( - COALESCE ( 2, + COUNT( * ) * AVG ( DISTINCT 50 ) ) AS SIGNED ) THEN - COUNT( DISTINCT 26 ) ELSE SUM( ALL 16 ) END AS col0
----
-848

skipif mysql # not compatible
query I rowsort label-8424
SELECT - NULLIF ( 53, 7 ) * CASE COUNT ( - 61 ) WHEN + + 56 * - 51 - CASE - NULLIF ( - 86, 44 ) WHEN + + COUNT ( * ) + - CASE - 2 WHEN + CAST ( NULL AS INTEGER ) * - 28 / + SUM ( + 44 ) THEN - 32 END * 6 THEN NULL WHEN + + 23 + + 35 * + 61 THEN NULL WHEN + + 36 THEN 41 ELSE + + 8 * 59 + CASE - AVG ( DISTINCT - 45 ) WHEN + 72 * COUNT ( * ) + 13 * NULLIF ( + 52 * + 75, + 46 + COUNT ( * ) ) THEN + 49 END * 23 - + 44 END THEN NULL WHEN + 48 + - CAST ( - COALESCE ( 2, + COUNT ( * ) * AVG ( DISTINCT 50 ) ) AS INTEGER ) THEN - COUNT ( DISTINCT 26 ) ELSE SUM ( ALL 16 ) END AS col0
----
-848

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT - 73 + MAX( - 7 ) + + 39 col0
----
-41

skipif mysql # not compatible
query I rowsort label-8425
SELECT - 73 + MAX ( - 7 ) + + 39 col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT - 96 + - ( + SUM( DISTINCT + 25 ) )
----
-121

skipif mysql # not compatible
query I rowsort label-8426
SELECT - 96 + - ( + SUM ( DISTINCT + 25 ) )
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-8427
SELECT - - 42 DIV 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8427
SELECT - - 42 / 54 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8428
SELECT ALL + 31 * COUNT( * ) * + CAST( NULL AS SIGNED ) / + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL + 31 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) / + + 88
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + + 5, - 69 ) AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8430
SELECT + 39 DIV 68 - + 87 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-8430
SELECT + 39 / 68 - + 87 AS col0
----
-87

query I rowsort
SELECT ALL + ( - 72 ) * + + 46
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT - 44 + 64 + COUNT( * ) * - NULLIF ( 0, - - 93 ) * + 38
----
20

skipif mysql # not compatible
query I rowsort label-8432
SELECT - 44 + 64 + COUNT ( * ) * - NULLIF ( 0, - - 93 ) * + 38
----
20

query II rowsort
SELECT ALL 83 * - 91 * - 52 AS col2, 32 AS col1
----
392756
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT ALL + - 18 * + + MIN( + + ( + 38 ) ) col2
----
-684

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL + - 18 * + + MIN ( + + ( + 38 ) ) col2
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT + SUM( ALL + - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-8435
SELECT + SUM ( ALL + - 24 )
----
-24

query I rowsort
SELECT - - 1 * - 16 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT ALL - 96 * COUNT( * ) + + + 45 - + - 69
----
18

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL - 96 * COUNT ( * ) + + + 45 - + - 69
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT + NULLIF ( - - 87, - COUNT( * ) * - 48 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-8438
SELECT + NULLIF ( - - 87, - COUNT ( * ) * - 48 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT + + COUNT( - 24 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8439
SELECT + + COUNT ( - 24 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8440
SELECT - + 15 / COUNT( * ) - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT - + 15 / COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8441
SELECT + + CAST( NULL AS SIGNED ) * - + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-8441
SELECT + + CAST ( NULL AS INTEGER ) * - + 41
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8442
SELECT 52 / - - 24 - 1 + - CASE - - CAST( NULL AS DECIMAL ) WHEN + 94 THEN + MIN( + 90 ) END AS col2, - COUNT( * ) * + 15 AS col1
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-8442
SELECT 52 / - - 24 - 1 + - CASE - - CAST ( NULL AS REAL ) WHEN + 94 THEN + MIN ( + 90 ) END AS col2, - COUNT ( * ) * + 15 AS col1
----
NULL
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8443
SELECT 94 * 58 DIV 47, + COUNT( ALL - + 41 ) AS col0
----
116
1

skipif mysql # not compatible
query II rowsort label-8443
SELECT 94 * 58 / 47, + COUNT ( ALL - + 41 ) AS col0
----
116
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8444
SELECT + + CAST( NULL AS SIGNED ) col2, - 15 * - 28 * - 58
----
NULL
-24360

skipif mysql # not compatible
query II rowsort label-8444
SELECT + + CAST ( NULL AS INTEGER ) col2, - 15 * - 28 * - 58
----
NULL
-24360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8445
SELECT ALL 86 + + ( + ( + + CAST( - + 59 AS SIGNED ) ) ) col0
----
27

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL 86 + + ( + ( + + CAST ( - + 59 AS INTEGER ) ) ) col0
----
27

query II rowsort
SELECT NULLIF ( 31, + + 26 ), 24 AS col1
----
31
24

query I rowsort
SELECT DISTINCT - 44 + 16 AS col0
----
-28

query I rowsort
SELECT - 69 * - + 35 * 91
----
219765

query I rowsort
SELECT DISTINCT + 63 * 14
----
882

query II rowsort
SELECT ALL - - 13, 84 AS col0
----
13
84

query I rowsort
SELECT 24 + + 16 + - 99 * + + 91 AS col1
----
-8969

query I rowsort
SELECT DISTINCT ( - - 16 ) * - 11 AS col0
----
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8453
SELECT COUNT( * ) * - - COUNT( + 99 ) + + - 25 + - - ( NULLIF ( - CAST( NULL AS SIGNED ), + COUNT( * ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8453
SELECT COUNT ( * ) * - - COUNT ( + 99 ) + + - 25 + - - ( NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT ALL 57 * COUNT( * ) * 63 AS col1
----
3591

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL 57 * COUNT ( * ) * 63 AS col1
----
3591

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT DISTINCT - 82 - - ( + COUNT( * ) ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT - 82 - - ( + COUNT ( * ) ) AS col0
----
-81

query I rowsort
SELECT 59 + 76 + - 24
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8457
SELECT ALL CAST( NULL AS SIGNED ) * - - 27 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL CAST ( NULL AS INTEGER ) * - - 27 / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8458
SELECT ALL COUNT( * ) / + + 19 * - CASE + ( - 87 ) WHEN - - 94 * - 90 * 37 * - 28 * - 68 + - 36 THEN - 11 - + - 1 + - CASE - 27 WHEN - 71 * - + 54 * + COUNT( * ) + - 0 THEN NULL ELSE + ( ( + SUM( 76 ) ) ) + - 34 END END AS col2, 98 AS col1
----
NULL
98

skipif mysql # not compatible
query II rowsort label-8458
SELECT ALL COUNT ( * ) / + + 19 * - CASE + ( - 87 ) WHEN - - 94 * - 90 * 37 * - 28 * - 68 + - 36 THEN - 11 - + - 1 + - CASE - 27 WHEN - 71 * - + 54 * + COUNT ( * ) + - 0 THEN NULL ELSE + ( ( + SUM ( 76 ) ) ) + - 34 END END AS col2, 98 AS col1
----
NULL
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT 49 * + CAST( + - 20 AS SIGNED ) * + 33 * - COALESCE ( + + 76, + 77 ) AS col2
----
2457840

skipif mysql # not compatible
query I rowsort label-8459
SELECT 49 * + CAST ( + - 20 AS INTEGER ) * + 33 * - COALESCE ( + + 76, + 77 ) AS col2
----
2457840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8460
SELECT 94 + - + NULLIF ( + + 76, - NULLIF ( - + 19, + 42 * + 1 + + CAST( NULL AS SIGNED ) + - - MIN( + 67 ) + 12 - 50 - + 68 + + CASE - 22 WHEN - 97 THEN + 21 WHEN - + 50 * COUNT( * ) THEN 86 / + COUNT( * ) * + 75 * 5 * COUNT( * ) / - - 4 + - COUNT( - ( - 28 ) ) WHEN - - COUNT( * ) + - 10 THEN NULL END ) ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8460
SELECT 94 + - + NULLIF ( + + 76, - NULLIF ( - + 19, + 42 * + 1 + + CAST ( NULL AS INTEGER ) + - - MIN ( + 67 ) + 12 - 50 - + 68 + + CASE - 22 WHEN - 97 THEN + 21 WHEN - + 50 * COUNT ( * ) THEN 86 / + COUNT ( * ) * + 75 * 5 * COUNT ( * ) / - - 4 + - COUNT ( - ( - 28 ) ) WHEN - - COUNT ( * ) + - 10 THEN NULL END ) ) AS col1
----
18

query I rowsort
SELECT 3 + + + 19 + + 40
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8462
SELECT 13 + - ( - ( - 66 ) ) + - 3 + NULLIF ( + + 89, + COUNT( + 29 ) * - - 90 + + + CAST( NULL AS SIGNED ) * ( CAST( - + 95 AS DECIMAL ) ) * 18 ) + - 58 * - COUNT( * ) - - 64 / + + CAST( NULL AS SIGNED ) * - 44 * + ( COUNT( * ) ) / + - ( 98 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT 13 + - ( - ( - 66 ) ) + - 3 + NULLIF ( + + 89, + COUNT ( + 29 ) * - - 90 + + + CAST ( NULL AS INTEGER ) * ( CAST ( - + 95 AS REAL ) ) * 18 ) + - 58 * - COUNT ( * ) - - 64 / + + CAST ( NULL AS INTEGER ) * - 44 * + ( COUNT ( * ) ) / + - ( 98 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT ALL + 2 * - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL + 2 * - COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT ALL 84 * + + 28 * - COUNT( ALL - 29 ) + - 43 AS col1
----
-2395

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL 84 * + + 28 * - COUNT ( ALL - 29 ) + - 43 AS col1
----
-2395

query II rowsort
SELECT ALL - 0 + 96, - 25 AS col0
----
96
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8466
SELECT ALL - 41 * 40 DIV - 9 + + 97 + + NULLIF ( - MIN( CAST( + - 91 AS SIGNED ) ), + 1 ) * + + 66 + + 19 * - 96 - + 62 * + 45 AS col2, 85 * - ( + MAX( DISTINCT ( 20 ) ) )
----
1671
-1700

skipif mysql # not compatible
query II rowsort label-8466
SELECT ALL - 41 * 40 / - 9 + + 97 + + NULLIF ( - MIN ( CAST ( + - 91 AS INTEGER ) ), + 1 ) * + + 66 + + 19 * - 96 - + 62 * + 45 AS col2, 85 * - ( + MAX ( DISTINCT ( 20 ) ) )
----
1671
-1700

query II rowsort
SELECT 71 + + 65 col0, + 69 AS col0
----
136
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT COUNT( * ) * - 76
----
-76

skipif mysql # not compatible
query I rowsort label-8468
SELECT COUNT ( * ) * - 76
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT - + 50 * SUM( - 30 ) + - 19 * + ( + COUNT( * ) )
----
1481

skipif mysql # not compatible
query I rowsort label-8469
SELECT - + 50 * SUM ( - 30 ) + - 19 * + ( + COUNT ( * ) )
----
1481

query I rowsort
SELECT DISTINCT - - 53 + + + 46 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8471
SELECT ALL + COUNT( - 75 ) + + NULLIF ( - COUNT( * ), + 79 * - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL + COUNT ( - 75 ) + + NULLIF ( - COUNT ( * ), + 79 * - CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8472
SELECT - MIN( DISTINCT + 21 ) DIV - 58 - + + ( 20 ) * SUM( - 21 ) DIV COUNT( * ) + - ( COUNT( * ) ) col1
----
419

skipif mysql # not compatible
query I rowsort label-8472
SELECT - MIN ( DISTINCT + 21 ) / - 58 - + + ( 20 ) * SUM ( - 21 ) / COUNT ( * ) + - ( COUNT ( * ) ) col1
----
419

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT - NULLIF ( + 5, COUNT( * ) + - ( 64 ) ) * - + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8473
SELECT - NULLIF ( + 5, COUNT ( * ) + - ( 64 ) ) * - + COUNT ( * ) AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8474
SELECT ALL + + 23 DIV + + 55
----
0

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL + + 23 / + + 55
----
0

query I rowsort
SELECT DISTINCT - ( 61 ) + - - 20 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL + + COUNT( * ) * + + 18
----
18

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL + + COUNT ( * ) * + + 18
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8477
SELECT ALL + + 11 + - 11 * - 13 * CAST( NULL AS DECIMAL ) AS col0, 1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8477
SELECT ALL + + 11 + - 11 * - 13 * CAST ( NULL AS REAL ) AS col0, 1
----
NULL
1

query I rowsort
SELECT + 11 * - 29 - - 42 - + 79
----
-356

onlyif mysql # aggregate syntax: 
query II rowsort label-8479
SELECT 37 * 28 + - 65 + - 37, - SUM( + + 39 ) AS col1
----
934
-39

skipif mysql # not compatible
query II rowsort label-8479
SELECT 37 * 28 + - 65 + - 37, - SUM ( + + 39 ) AS col1
----
934
-39

query I rowsort
SELECT DISTINCT - + 98 * 51 AS col1
----
-4998

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8481
SELECT ALL + CAST( NULL AS DECIMAL ) * + + COUNT( * ) * - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL + CAST ( NULL AS REAL ) * + + COUNT ( * ) * - - 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8482
SELECT COUNT( ALL - - 59 ) + CAST( - 49 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-8482
SELECT COUNT ( ALL - - 59 ) + CAST ( - 49 AS INTEGER )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-8483
SELECT 72 DIV - 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8483
SELECT 72 / - 77 AS col0
----
0

query I rowsort
SELECT DISTINCT - ( 75 ) col0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-8485
SELECT ALL - 68 - 80 - + 68 AS col0, COUNT( * ) * - 17 AS col1
----
-216
-17

skipif mysql # not compatible
query II rowsort label-8485
SELECT ALL - 68 - 80 - + 68 AS col0, COUNT ( * ) * - 17 AS col1
----
-216
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT ALL COUNT( * ) * + + 68 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL COUNT ( * ) * + + 68 AS col1
----
68

query II rowsort
SELECT - 40 col2, - 60 AS col2
----
-40
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT ( COUNT( - - 37 ) ) * COUNT( + - 38 )
----
1

skipif mysql # not compatible
query I rowsort label-8488
SELECT ( COUNT ( - - 37 ) ) * COUNT ( + - 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL SUM( ALL COALESCE ( + 86, + + 32 ) ) * + ( - 52 ) AS col2
----
-4472

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL SUM ( ALL COALESCE ( + 86, + + 32 ) ) * + ( - 52 ) AS col2
----
-4472

query I rowsort
SELECT 74 * - - 79
----
5846

query I rowsort
SELECT DISTINCT 2 * + COALESCE ( 33, + 77 ) col0
----
66

query I rowsort
SELECT DISTINCT - 88 * - - 94
----
-8272

query II rowsort
SELECT ALL 8 AS col1, - 76 * + ( 71 ) + 53
----
8
-5343

query I rowsort
SELECT DISTINCT 66 + - 99 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT 6 * + CASE 48 WHEN + ( 56 ) * - - NULLIF ( - 40, - 48 ) THEN NULL WHEN - 45 * + + COUNT( * ) THEN - 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8495
SELECT 6 * + CASE 48 WHEN + ( 56 ) * - - NULLIF ( - 40, - 48 ) THEN NULL WHEN - 45 * + + COUNT ( * ) THEN - 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT 8 + - COUNT( * ) * + 81 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-8496
SELECT 8 + - COUNT ( * ) * + 81 AS col1
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8497
SELECT 55 + - + 61 DIV - 40 - - COUNT( * ) DIV - 12
----
56

skipif mysql # not compatible
query I rowsort label-8497
SELECT 55 + - + 61 / - 40 - - COUNT ( * ) / - 12
----
56

query II rowsort
SELECT - - 98, - 99 AS col1
----
98
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT COUNT( DISTINCT - - 34 ) * + ( + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-8499
SELECT COUNT ( DISTINCT - - 34 ) * + ( + 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT + 92 + + 48 + + 51 - - COUNT( * )
----
192

skipif mysql # not compatible
query I rowsort label-8500
SELECT + 92 + + 48 + + 51 - - COUNT ( * )
----
192

query I rowsort
SELECT - - 75 col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8502
SELECT ALL - + 39 * - - COUNT( * ) + - 33 + - + CAST( - + 34 AS SIGNED ) * CASE - - 20 WHEN - - COUNT( * ) / + 45 THEN 8 WHEN + + MAX( DISTINCT + + 44 ) THEN NULL ELSE NULL END * CAST( - 83 AS SIGNED ) * - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL - + 39 * - - COUNT ( * ) + - 33 + - + CAST ( - + 34 AS INTEGER ) * CASE - - 20 WHEN - - COUNT ( * ) / + 45 THEN 8 WHEN + + MAX ( DISTINCT + + 44 ) THEN NULL ELSE NULL END * CAST ( - 83 AS INTEGER ) * - 27 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8503
SELECT 49 DIV + - ( - - 38 ) + - 17 * + - 99 + + - 41 - CASE - 24 WHEN - - 34 * 24 * COALESCE ( - + 88, - 97 ) + + COUNT( * ) DIV - + 23 THEN NULL ELSE 47 END * + 67 - - CAST( - - 96 AS SIGNED ) col2
----
-1412

skipif mysql # not compatible
query I rowsort label-8503
SELECT 49 / + - ( - - 38 ) + - 17 * + - 99 + + - 41 - CASE - 24 WHEN - - 34 * 24 * COALESCE ( - + 88, - 97 ) + + COUNT ( * ) / - + 23 THEN NULL ELSE 47 END * + 67 - - CAST ( - - 96 AS INTEGER ) col2
----
-1412

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT DISTINCT COALESCE ( - 22, + COUNT( * ) * 36 ) * - - COUNT( * ) + - - 47 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT COALESCE ( - 22, + COUNT ( * ) * 36 ) * - - COUNT ( * ) + - - 47 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL + 95 * + NULLIF ( + 41, COUNT( * ) ) + + + COUNT( * ) + SUM( 20 )
----
3916

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL + 95 * + NULLIF ( + 41, COUNT ( * ) ) + + + COUNT ( * ) + SUM ( 20 )
----
3916

onlyif mysql # DIV for integer division: 
query II rowsort label-8506
SELECT + - COALESCE ( - + 28, + 60 DIV 4 - + + 97 ), + 89 * + 48 * - + 20 AS col0
----
28
-85440

skipif mysql # not compatible
query II rowsort label-8506
SELECT + - COALESCE ( - + 28, + 60 / 4 - + + 97 ), + 89 * + 48 * - + 20 AS col0
----
28
-85440

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT + 9 + MIN( ALL + 99 )
----
108

skipif mysql # not compatible
query I rowsort label-8507
SELECT + 9 + MIN ( ALL + 99 )
----
108

query I rowsort
SELECT - 92 + - - 44 + - 38
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT CASE - 89 WHEN + 46 THEN + + ( 80 ) * - 84 + + + 22 WHEN - + 4 THEN COUNT( * ) ELSE + + 66 END AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8509
SELECT CASE - 89 WHEN + 46 THEN + + ( 80 ) * - 84 + + + 22 WHEN - + 4 THEN COUNT ( * ) ELSE + + 66 END AS col2
----
66

query I rowsort
SELECT - 39 * 80
----
-3120

query I rowsort
SELECT - 57 - - 82 AS col0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8512
SELECT DISTINCT 80 DIV - - 38 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT 80 / - - 38 AS col0
----
2

query I rowsort
SELECT + 21 + + 88
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-8514
SELECT - 27 DIV + 15 col0
----
-1

skipif mysql # not compatible
query I rowsort label-8514
SELECT - 27 / + 15 col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8515
SELECT - CAST( NULL AS SIGNED ) - + + 26 * - 15 / ( 26 ) * + 0 + - + 15 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8515
SELECT - CAST ( NULL AS INTEGER ) - + + 26 * - 15 / ( 26 ) * + 0 + - + 15 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8516
SELECT ALL + 1 * + + 99 DIV + + 93
----
1

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL + 1 * + + 99 / + + 93
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8517
SELECT NULLIF ( - 23, 38 ) * + 76 + - 71 DIV - - 87 AS col0
----
-1748

skipif mysql # not compatible
query I rowsort label-8517
SELECT NULLIF ( - 23, 38 ) * + 76 + - 71 / - - 87 AS col0
----
-1748

query I rowsort
SELECT - 79 * - 23
----
1817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8519
SELECT ALL ( - ( + COALESCE ( - 80, CAST( - 27 AS SIGNED ) ) ) )
----
80

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL ( - ( + COALESCE ( - 80, CAST ( - 27 AS INTEGER ) ) ) )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8520
SELECT - CAST( - 47 AS SIGNED ) + 83 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-8520
SELECT - CAST ( - 47 AS INTEGER ) + 83 AS col1
----
130

query I rowsort
SELECT ALL + 2 * + + 48 AS col2
----
96

query I rowsort
SELECT ALL + 47 + 98 col2
----
145

query II rowsort
SELECT ALL 54 AS col0, 52 AS col1
----
54
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8524
SELECT ALL 14 + - MIN( DISTINCT - 55 ) + MIN( DISTINCT - + 45 ) * - 91 + - 20 DIV - 33 + + 6 AS col0
----
4170

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL 14 + - MIN ( DISTINCT - 55 ) + MIN ( DISTINCT - + 45 ) * - 91 + - 20 / - 33 + + 6 AS col0
----
4170

onlyif mysql # aggregate syntax: 
query II rowsort label-8525
SELECT ALL - 75 + + COALESCE ( - + 59, - 95 * + + 60 - - - 87 * + - 82 * - - 67 + + COUNT( * ) + - + 69 + - + COUNT( * ) ) AS col0, - 85 AS col0
----
-134
-85

skipif mysql # not compatible
query II rowsort label-8525
SELECT ALL - 75 + + COALESCE ( - + 59, - 95 * + + 60 - - - 87 * + - 82 * - - 67 + + COUNT ( * ) + - + 69 + - + COUNT ( * ) ) AS col0, - 85 AS col0
----
-134
-85

query I rowsort
SELECT - 96 + + 23 * - - 74
----
1606

query I rowsort
SELECT DISTINCT + COALESCE ( + 15, - - 49, 57, + + 21 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8528
SELECT ALL 79 col0, COUNT( * )
----
79
1

skipif mysql # not compatible
query II rowsort label-8528
SELECT ALL 79 col0, COUNT ( * )
----
79
1

query I rowsort
SELECT - 63 * + 13
----
-819

query I rowsort
SELECT ALL - 8 * - 67 * - 93 + + 60 + + 1 + 38 * - 10 + + - 68
----
-50235

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT ALL + 50 + - + 89 + + - 30 + + 36 + + + 0 + + ( + COUNT( ALL - 31 ) ) * 57 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL + 50 + - + 89 + + - 30 + + 36 + + + 0 + + ( + COUNT ( ALL - 31 ) ) * 57 AS col2
----
24

query I rowsort
SELECT - - ( + 54 ) AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8533
SELECT DISTINCT - 17 + ( + CASE CAST( NULL AS SIGNED ) WHEN + 83 * COUNT( * ) THEN - + 31 * - 55 DIV 49 ELSE 81 END )
----
64

skipif mysql # not compatible
query I rowsort label-8533
SELECT DISTINCT - 17 + ( + CASE CAST ( NULL AS INTEGER ) WHEN + 83 * COUNT ( * ) THEN - + 31 * - 55 / 49 ELSE 81 END )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT - - CASE + 27 WHEN + 94 THEN NULL WHEN 41 THEN NULL ELSE 9 END * + 85 * - CASE + + 83 WHEN + 15 * + ( - 72 ) THEN - COUNT( DISTINCT + 42 ) ELSE + 87 + - 57 * - 74 END
----
-3293325

skipif mysql # not compatible
query I rowsort label-8534
SELECT - - CASE + 27 WHEN + 94 THEN NULL WHEN 41 THEN NULL ELSE 9 END * + 85 * - CASE + + 83 WHEN + 15 * + ( - 72 ) THEN - COUNT ( DISTINCT + 42 ) ELSE + 87 + - 57 * - 74 END
----
-3293325

onlyif mysql # aggregate syntax: 
query II rowsort label-8535
SELECT ALL - + COUNT( * ) * - 94 - + 48 + 51 * COUNT( 83 ) col2, + 10 * 14 * 26 col2
----
97
3640

skipif mysql # not compatible
query II rowsort label-8535
SELECT ALL - + COUNT ( * ) * - 94 - + 48 + 51 * COUNT ( 83 ) col2, + 10 * 14 * 26 col2
----
97
3640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8536
SELECT ALL CASE - + COUNT( DISTINCT + 75 ) WHEN CAST( NULL AS SIGNED ) * + 88 THEN - 0 * - - 79 - - 70 + - 24 / - ( - 20 ) + 5 - + 16 + - 10 * + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL CASE - + COUNT ( DISTINCT + 75 ) WHEN CAST ( NULL AS INTEGER ) * + 88 THEN - 0 * - - 79 - - 70 + - 24 / - ( - 20 ) + 5 - + 16 + - 10 * + 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT DISTINCT + MIN( + 82 ) col1
----
82

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT + MIN ( + 82 ) col1
----
82

query II rowsort
SELECT ALL 13 AS col1, 90
----
13
90

query I rowsort
SELECT DISTINCT - ( + - 39 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT - 79 - - - ( 78 ) + - - 72 * 65 + + CASE + 55 WHEN + + 95 THEN NULL WHEN - 6 THEN + + 63 / + + COALESCE ( - COUNT( + - 60 ), 22 / - 40 ) + - CASE + 83 WHEN 33 THEN NULL WHEN 44 + 39 THEN NULL WHEN 43 THEN 84 END WHEN - 49 + + + 67 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT - 79 - - - ( 78 ) + - - 72 * 65 + + CASE + 55 WHEN + + 95 THEN NULL WHEN - 6 THEN + + 63 / + + COALESCE ( - COUNT ( + - 60 ), 22 / - 40 ) + - CASE + 83 WHEN 33 THEN NULL WHEN 44 + 39 THEN NULL WHEN 43 THEN 84 END WHEN - 49 + + + 67 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT - - 1 + + + MAX( ALL - NULLIF ( 19, 40 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-8541
SELECT - - 1 + + + MAX ( ALL - NULLIF ( 19, 40 ) )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8542
SELECT ALL + 32 DIV + 27 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL + 32 / + 27 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT DISTINCT - 15 / 7 - - + 5 + + 18 + - 21 * 88 / 47 + - 33 - + MIN( ALL - - 99 ) / + 86 + + - CASE - 24 WHEN 72 * - CASE COUNT( * ) WHEN - 22 * 34 THEN + 97 * + 78 END THEN 24 + 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT - 15 / 7 - - + 5 + + 18 + - 21 * 88 / 47 + - 33 - + MIN ( ALL - - 99 ) / + 86 + + - CASE - 24 WHEN 72 * - CASE COUNT ( * ) WHEN - 22 * 34 THEN + 97 * + 78 END THEN 24 + 79 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT + MAX( ALL 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8544
SELECT + MAX ( ALL 56 ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8545
SELECT ALL + ( - + CAST( + COUNT( * ) AS SIGNED ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL + ( - + CAST ( + COUNT ( * ) AS INTEGER ) ) col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8546
SELECT ALL + ( + 63 ) DIV - 56 - 31
----
-32

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL + ( + 63 ) / - 56 - 31
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT DISTINCT 64 * - COUNT( * ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT 64 * - COUNT ( * ) AS col0
----
-64

query I rowsort
SELECT 51 * - - 35 - 95 - + - 63 - - - 57 col1
----
1696

onlyif mysql # DIV for integer division: 
query I rowsort label-8549
SELECT ALL - 78 * - 27 DIV + 3
----
702

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL - 78 * - 27 / + 3
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT + 33 + - - COUNT( 50 ) + + 38 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-8550
SELECT + 33 + - - COUNT ( 50 ) + + 38 AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8551
SELECT + CAST( + + CASE 46 WHEN COUNT( * ) * - + 71 * - + 25 THEN 94 + - 40 * 28 + - - 33 * + - 75 * + 94 * + COUNT( DISTINCT + 53 ) * - 85 * + 58 ELSE NULL END AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT + CAST ( + + CASE 46 WHEN COUNT ( * ) * - + 71 * - + 25 THEN 94 + - 40 * 28 + - - 33 * + - 75 * + 94 * + COUNT ( DISTINCT + 53 ) * - 85 * + 58 ELSE NULL END AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT + ( + - MIN( ALL - 66 ) )
----
66

skipif mysql # not compatible
query I rowsort label-8552
SELECT + ( + - MIN ( ALL - 66 ) )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8553
SELECT - 86 * CAST( - 87 AS SIGNED )
----
7482

skipif mysql # not compatible
query I rowsort label-8553
SELECT - 86 * CAST ( - 87 AS INTEGER )
----
7482

query I rowsort
SELECT - 80 + + 96 col0
----
16

query I rowsort
SELECT ALL + COALESCE ( + 77, 63 )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8556
SELECT ALL 95 * + 77 * - 8 * + - CAST( NULL AS SIGNED ) + - + 52 + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL 95 * + 77 * - 8 * + - CAST ( NULL AS INTEGER ) + - + 52 + + 25
----
NULL

query I rowsort
SELECT ALL 89 * + 1 + - 96 AS col1
----
-7

query I rowsort
SELECT DISTINCT + ( - - 10 ) AS col2
----
10

query I rowsort
SELECT - 20 * - + 55 AS col1
----
1100

query I rowsort
SELECT ALL 32 * + 55 + - 10
----
1750

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT DISTINCT NULLIF ( - - MAX( DISTINCT - 59 ), - 36 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-8561
SELECT DISTINCT NULLIF ( - - MAX ( DISTINCT - 59 ), - 36 ) AS col0
----
-59

query I rowsort
SELECT 43 * - - 9 - + + 85
----
302

onlyif mysql # aggregate syntax: 
query II rowsort label-8563
SELECT DISTINCT ( 60 ), COUNT( * ) AS col2
----
60
1

skipif mysql # not compatible
query II rowsort label-8563
SELECT DISTINCT ( 60 ), COUNT ( * ) AS col2
----
60
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT + ( + 90 ) * COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-8564
SELECT + ( + 90 ) * COUNT ( * ) AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8565
SELECT + 31 * - - 74 - CAST( - + 84 AS SIGNED ) AS col0
----
2378

skipif mysql # not compatible
query I rowsort label-8565
SELECT + 31 * - - 74 - CAST ( - + 84 AS INTEGER ) AS col0
----
2378

query I rowsort
SELECT ALL - 63 + - + 17 AS col0
----
-80

query I rowsort
SELECT ALL - NULLIF ( + - 38, - - 72 - - + 92 ) * + ( - - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT DISTINCT - SUM( ALL 33 ) - 88
----
-121

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT - SUM ( ALL 33 ) - 88
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT - MIN( - + 1 ) + 74 - - + ( 22 ) * - 98
----
-2081

skipif mysql # not compatible
query I rowsort label-8569
SELECT - MIN ( - + 1 ) + 74 - - + ( 22 ) * - 98
----
-2081

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT - ( - - ( - - MAX( + 75 ) ) ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-8570
SELECT - ( - - ( - - MAX ( + 75 ) ) ) AS col2
----
-75

query II rowsort
SELECT + 47 - - - 91 AS col0, + 67 - 23 AS col0
----
-44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT - MIN( - 70 ) + + + ( + - 3 ) col0
----
67

skipif mysql # not compatible
query I rowsort label-8572
SELECT - MIN ( - 70 ) + + + ( + - 3 ) col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT ( - ( - + COUNT( DISTINCT - 24 ) ) ) - + + 7 + + + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-8573
SELECT ( - ( - + COUNT ( DISTINCT - 24 ) ) ) - + + 7 + + + COUNT ( * )
----
-5

query I rowsort
SELECT ALL - - 29 * + CASE + 30 WHEN - 5 * - 42 THEN + - 7 + + + 85 END AS col1
----
NULL

query I rowsort
SELECT 63 * - 4 AS col0
----
-252

query I rowsort
SELECT DISTINCT - ( - 96 ) col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT 74 * - 29 - - SUM( DISTINCT 97 ) * + 28 + + 92 col1
----
662

skipif mysql # not compatible
query I rowsort label-8577
SELECT 74 * - 29 - - SUM ( DISTINCT 97 ) * + 28 + + 92 col1
----
662

query II rowsort
SELECT 49, 12 col0
----
49
12

query I rowsort
SELECT ALL 86 + 20 + 62
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT DISTINCT - SUM( + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT - SUM ( + 2 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8581
SELECT ALL 38 + - 94 - + - 21 DIV + ( 69 ) * - - MIN( DISTINCT + 81 )
----
-56

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL 38 + - 94 - + - 21 / + ( 69 ) * - - MIN ( DISTINCT + 81 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL 50 + + 43 * + MIN( 97 ) * CASE - 62 WHEN - - 38 * + 27 + - COUNT( * ) THEN NULL ELSE + 30 * NULLIF ( 57, 5 ) + - 80 END + 65 AS col1
----
6798845

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL 50 + + 43 * + MIN ( 97 ) * CASE - 62 WHEN - - 38 * + 27 + - COUNT ( * ) THEN NULL ELSE + 30 * NULLIF ( 57, 5 ) + - 80 END + 65 AS col1
----
6798845

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8583
SELECT ALL ( - 54 ) + 38 + - ( - COUNT( * ) ) DIV + + 54 * + 96
----
-16

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL ( - 54 ) + 38 + - ( - COUNT ( * ) ) / + + 54 * + 96
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8584
SELECT ALL CAST( NULL AS DECIMAL ) + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL CAST ( NULL AS REAL ) + - 28
----
NULL

query II rowsort
SELECT 92 AS col2, 61
----
92
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8586
SELECT CAST( NULL AS SIGNED ) * - + COALESCE ( COUNT( * ), + COUNT( * ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8586
SELECT CAST ( NULL AS INTEGER ) * - + COALESCE ( COUNT ( * ), + COUNT ( * ) ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT 28 - - 6 AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8588
SELECT COALESCE ( - 57, - CAST( - + 21 AS SIGNED ) ) + + - COUNT( * ) * - - MIN( ALL + - 36 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-8588
SELECT COALESCE ( - 57, - CAST ( - + 21 AS INTEGER ) ) + + - COUNT ( * ) * - - MIN ( ALL + - 36 ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT - 54 * - - ( + + 3 ) * - - 17 + - COUNT( * ) col1
----
-2755

skipif mysql # not compatible
query I rowsort label-8589
SELECT - 54 * - - ( + + 3 ) * - - 17 + - COUNT ( * ) col1
----
-2755

query I rowsort
SELECT 83 + - + 39 - + 71 * - - 7
----
-453

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT DISTINCT - CASE - 16 WHEN - 72 THEN 44 WHEN - CAST( + - 50 AS SIGNED ) THEN 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT - CASE - 16 WHEN - 72 THEN 44 WHEN - CAST ( + - 50 AS INTEGER ) THEN 58 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8592
SELECT ALL + + 81 DIV - + 78
----
-1

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL + + 81 / - + 78
----
-1

query I rowsort
SELECT 30 + - + 26 - - 4
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8594
SELECT ALL 14 AS col1, - COUNT( * ) AS col0
----
14
-1

skipif mysql # not compatible
query II rowsort label-8594
SELECT ALL 14 AS col1, - COUNT ( * ) AS col0
----
14
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8595
SELECT ALL 76 AS col2, - 34 / - - 80 * CASE + 82 WHEN - 20 THEN - MAX( + 30 ) * - + 65 END + + + 63
----
76
NULL

skipif mysql # not compatible
query II rowsort label-8595
SELECT ALL 76 AS col2, - 34 / - - 80 * CASE + 82 WHEN - 20 THEN - MAX ( + 30 ) * - + 65 END + + + 63
----
76
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8596
SELECT 9 DIV SUM( DISTINCT - - 33 ) + - 62
----
-62

skipif mysql # not compatible
query I rowsort label-8596
SELECT 9 / SUM ( DISTINCT - - 33 ) + - 62
----
-62

query I rowsort
SELECT ALL - COALESCE ( 95, + 21, - - 53 ) col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT - + ( - + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8598
SELECT - + ( - + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT - 45 + - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-8599
SELECT - 45 + - COUNT ( * )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8600
SELECT ALL + 15 - - 44 * - CAST( NULL AS SIGNED ) + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL + 15 - - 44 * - CAST ( NULL AS INTEGER ) + - 17
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8601
SELECT ALL CAST( 85 AS SIGNED ) * - 56 + - 49 AS col2
----
-4809

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL CAST ( 85 AS INTEGER ) * - 56 + - 49 AS col2
----
-4809

query I rowsort
SELECT DISTINCT + + 60 * - 13 AS col1
----
-780

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT + NULLIF ( 39, - 45 ) + + 31 + - COALESCE ( 98, + 37 * - 63 ) DIV + 18 + - 12
----
53

skipif mysql # not compatible
query I rowsort label-8603
SELECT + NULLIF ( 39, - 45 ) + + 31 + - COALESCE ( 98, + 37 * - 63 ) / + 18 + - 12
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT COUNT( * ) * + 48 + 59 * - + 14 AS col1
----
-778

skipif mysql # not compatible
query I rowsort label-8604
SELECT COUNT ( * ) * + 48 + 59 * - + 14 AS col1
----
-778

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT ALL + 78 + + + 77 * + - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL + 78 + + + 77 * + - COUNT ( * ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8606
SELECT 52 - 47 DIV + ( + - 21 )
----
54

skipif mysql # not compatible
query I rowsort label-8606
SELECT 52 - 47 / + ( + - 21 )
----
54

query I rowsort
SELECT 68 * - 98 AS col1
----
-6664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8608
SELECT DISTINCT 81 * 66 * COUNT( + ( + 82 ) ) + SUM( 14 ) + - + SUM( ALL 63 ) + - 46, CAST( NULL AS SIGNED ) * COALESCE ( + NULLIF ( - 16, + 58 ), + 95 * + 4 + + ( 49 ) ) AS col2
----
5251
NULL

skipif mysql # not compatible
query II rowsort label-8608
SELECT DISTINCT 81 * 66 * COUNT ( + ( + 82 ) ) + SUM ( 14 ) + - + SUM ( ALL 63 ) + - 46, CAST ( NULL AS INTEGER ) * COALESCE ( + NULLIF ( - 16, + 58 ), + 95 * + 4 + + ( 49 ) ) AS col2
----
5251
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8609
SELECT DISTINCT 6 * - 5 + 9 * + COUNT( * ) AS col2, CASE + 90 WHEN 65 THEN NULL WHEN - 69 / + 4 THEN NULL WHEN 96 + 83 THEN + + 48 * - - 70 END AS col2
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-8609
SELECT DISTINCT 6 * - 5 + 9 * + COUNT ( * ) AS col2, CASE + 90 WHEN 65 THEN NULL WHEN - 69 / + 4 THEN NULL WHEN 96 + 83 THEN + + 48 * - - 70 END AS col2
----
-21
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT MIN( DISTINCT + - 46 ) + - 21 + - - 36 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-8610
SELECT MIN ( DISTINCT + - 46 ) + - 21 + - - 36 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT DISTINCT 81 * + 1 * 9 + + ( 49 ) * + 4 + + COUNT( * ) AS col1
----
926

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT 81 * + 1 * 9 + + ( 49 ) * + 4 + + COUNT ( * ) AS col1
----
926

query I rowsort
SELECT 3 + + + 61 AS col2
----
64

query II rowsort
SELECT 83 * 51, + 70 AS col1
----
4233
70

query I rowsort
SELECT - 18 * - 15 + - 50 + - 73 * 6 - - - 62 + + 38 AS col1
----
-242

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT MIN( - 56 ) col1
----
-56

skipif mysql # not compatible
query I rowsort label-8615
SELECT MIN ( - 56 ) col1
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8616
SELECT - CAST( NULL AS DECIMAL ) * - + 24 + 16 + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8616
SELECT - CAST ( NULL AS REAL ) * - + 24 + 16 + 5
----
NULL

query I rowsort
SELECT + 66 + - 20 AS col0
----
46

query I rowsort
SELECT - 78 * 17 AS col2
----
-1326

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8619
SELECT DISTINCT 90 * + + CAST( NULL AS SIGNED ) AS col2, + 50 * + + 79
----
NULL
3950

skipif mysql # not compatible
query II rowsort label-8619
SELECT DISTINCT 90 * + + CAST ( NULL AS INTEGER ) AS col2, + 50 * + + 79
----
NULL
3950

query I rowsort
SELECT ALL + + 96 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT ALL + MIN( + - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL + MIN ( + - 32 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT ALL - 80 * - 90 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL - 80 * - 90 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 58 * - + 40 AS col2
----
-2320

query I rowsort
SELECT + - 41 * - + 13 * - 38
----
-20254

query I rowsort
SELECT + 73 * + - 4 AS col1
----
-292

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8626
SELECT + + MIN( - 44 ) - - - 24 + - + 29 DIV + COUNT( * ) AS col1, - 61
----
-97
-61

skipif mysql # not compatible
query II rowsort label-8626
SELECT + + MIN ( - 44 ) - - - 24 + - + 29 / + COUNT ( * ) AS col1, - 61
----
-97
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8627
SELECT ALL + - 37 DIV COUNT( * ) * NULLIF ( + 93, AVG ( ALL - 60 ) )
----
-3441

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL + - 37 / COUNT ( * ) * NULLIF ( + 93, AVG ( ALL - 60 ) )
----
-3441

query I rowsort
SELECT ALL NULLIF ( - 7, 42 * 4 * 80 ) AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8629
SELECT + + 15 * - + CAST( NULL AS DECIMAL ) * + - 64 * + NULLIF ( COUNT( * ), 6 / + 32 * NULLIF ( + 82, COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8629
SELECT + + 15 * - + CAST ( NULL AS REAL ) * + - 64 * + NULLIF ( COUNT ( * ), 6 / + 32 * NULLIF ( + 82, COUNT ( * ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8630
SELECT - 18 DIV + + 40
----
0

skipif mysql # not compatible
query I rowsort label-8630
SELECT - 18 / + + 40
----
0

query I rowsort
SELECT ALL 87 + + - 30 * 43
----
-1203

onlyif mysql # aggregate syntax: 
query II rowsort label-8632
SELECT ALL - 34 + + ( - COUNT( * ) ) * COUNT( * ) AS col0, + CASE - + 32 WHEN + 8 THEN NULL ELSE - NULLIF ( - 13, 63 ) END * 83 AS col0
----
-35
1079

skipif mysql # not compatible
query II rowsort label-8632
SELECT ALL - 34 + + ( - COUNT ( * ) ) * COUNT ( * ) AS col0, + CASE - + 32 WHEN + 8 THEN NULL ELSE - NULLIF ( - 13, 63 ) END * 83 AS col0
----
-35
1079

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8633
SELECT + MAX( DISTINCT 14 ) + + + 78 * + CASE WHEN NOT 58 > + + CAST( - + 89 AS DECIMAL ) * + 99 * 22 - + 72 THEN + + 27 * + - 73 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8633
SELECT + MAX ( DISTINCT 14 ) + + + 78 * + CASE WHEN NOT 58 > + + CAST ( - + 89 AS REAL ) * + 99 * 22 - + 72 THEN + + 27 * + - 73 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 63 - 20
----
-83

query I rowsort
SELECT ALL - 19 * + 50
----
-950

onlyif mysql # DIV for integer division: 
query I rowsort label-8636
SELECT + 75 DIV - - 80
----
0

skipif mysql # not compatible
query I rowsort label-8636
SELECT + 75 / - - 80
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8637
SELECT - 80 DIV - 5 * + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-8637
SELECT - 80 / - 5 * + COUNT ( * )
----
16

query I rowsort
SELECT DISTINCT NULLIF ( 30, - 44 / - 76 + ( - NULLIF ( + ( - - 96 ), + + ( + + AVG ( 19 ) ) + + - 5 ) ) / - AVG ( DISTINCT + + 26 ) ) AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8639
SELECT ALL + COUNT( * ) + + - 97 DIV 40 * + COALESCE ( 28, + CAST( NULL AS SIGNED ) * + COALESCE ( - + COUNT( * ), - 40 ) + - 2 )
----
-55

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL + COUNT ( * ) + + - 97 / 40 * + COALESCE ( 28, + CAST ( NULL AS INTEGER ) * + COALESCE ( - + COUNT ( * ), - 40 ) + - 2 )
----
-55

query I rowsort
SELECT DISTINCT 74 + COALESCE ( + ( - + 79 ), + + 29 * 71 * - 78 + - 49 * + 95 ) + + 1 - - 59 + - NULLIF ( + 13, - 44 ) + 96 AS col0
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-8641
SELECT ALL - 84 DIV - 96 * 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL - 84 / - 96 * 59 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8642
SELECT - 45 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-8642
SELECT - 45 / + 79
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8643
SELECT - CAST( NULL AS DECIMAL ) + + 0 * + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8643
SELECT - CAST ( NULL AS REAL ) + + 0 * + 31 AS col0
----
NULL

query I rowsort
SELECT ALL 9 * + - 66 AS col2
----
-594

query I rowsort
SELECT DISTINCT - 30 / - CASE + - 27 WHEN - - 75 THEN - 62 + + 16 - + - 36 * - + 46 END + - - 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT 48 * + 72 + MAX( - + 64 ) AS col1
----
3392

skipif mysql # not compatible
query I rowsort label-8646
SELECT 48 * + 72 + MAX ( - + 64 ) AS col1
----
3392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8647
SELECT + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-8647
SELECT + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 35
----
NULL

query I rowsort
SELECT - 91 * 61 col1
----
-5551

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL + MIN( ALL 58 )
----
58

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL + MIN ( ALL 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT ALL - SUM( DISTINCT + 84 ) * 89 * - 78
----
583128

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL - SUM ( DISTINCT + 84 ) * 89 * - 78
----
583128

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT DISTINCT - COUNT( * ) * - 48 col2
----
48

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT - COUNT ( * ) * - 48 col2
----
48

query I rowsort
SELECT ALL - 31 * + 58
----
-1798

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT NULLIF ( 70, + + COUNT( * ) ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8653
SELECT NULLIF ( 70, + + COUNT ( * ) ) AS col0
----
70

query I rowsort
SELECT - 16 + - - 31 AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8655
SELECT + 90 * - + COUNT( * ) + - 13 + + + COALESCE ( 65, - - 50 / 25 + + 54 ) * - - CAST( NULL AS SIGNED ) * + 27 / - - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT + 90 * - + COUNT ( * ) + - 13 + + + COALESCE ( 65, - - 50 / 25 + + 54 ) * - - CAST ( NULL AS INTEGER ) * + 27 / - - 77 AS col1
----
NULL

query I rowsort
SELECT + 14 * - 56 * - - 49 + 74 - + 16 AS col1
----
-38358

query I rowsort
SELECT + + 54 - - 94 AS col2
----
148

query I rowsort
SELECT - 43 + - 6
----
-49

query I rowsort
SELECT + - 96 * 51 * 68 + + - 28
----
-332956

query I rowsort
SELECT - + ( + - 68 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8661
SELECT - + NULLIF ( - 60, - COALESCE ( - 61, 42 + + + 99 ) ) / + 65 + COUNT( * ) + - - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8661
SELECT - + NULLIF ( - 60, - COALESCE ( - 61, 42 + + + 99 ) ) / + 65 + COUNT ( * ) + - - ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - - 93 + + 72 - - ( 25 )
----
190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8663
SELECT ALL - 88 DIV - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL - 88 / - COUNT ( * )
----
88

query I rowsort
SELECT DISTINCT + 96 + - + 71 * 57
----
-3951

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT + COUNT( * ) + - COUNT( * ) * - 70 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8665
SELECT + COUNT ( * ) + - COUNT ( * ) * - 70 AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8666
SELECT ALL CAST( + + 46 AS SIGNED ) + COALESCE ( - - 95, 81 + + - 77 ) col2
----
141

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL CAST ( + + 46 AS INTEGER ) + COALESCE ( - - 95, 81 + + - 77 ) col2
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8667
SELECT - - COUNT( * ) + - 22 + - CAST( + + 65 AS SIGNED ) * + 4
----
-281

skipif mysql # not compatible
query I rowsort label-8667
SELECT - - COUNT ( * ) + - 22 + - CAST ( + + 65 AS INTEGER ) * + 4
----
-281

query I rowsort
SELECT + 29 + + - 17
----
12

query I rowsort
SELECT - + ( + NULLIF ( - - 10, + + 29 * - 88 * + 88 * + + 1 ) )
----
-10

query II rowsort
SELECT + 39 + NULLIF ( + + NULLIF ( - 10, ( 74 ) * - 23 * 1 + 42 - - 66 * + - 84 * 24 + + 29 ), + - 62 / + 79 * 47 ) * - 90 AS col0, 0
----
939
0

query I rowsort
SELECT ALL 63 + + 61 AS col2
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8672
SELECT ALL COUNT( * ) + - 94 * 48 + - COUNT( * ) + 45 + + CAST( NULL AS SIGNED ) AS col2, + COALESCE ( + - CAST( NULL AS SIGNED ), 30 DIV 86, - 46 - - COUNT( * ) + + + 97 * + 88 * MIN( DISTINCT + 91 ) ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8672
SELECT ALL COUNT ( * ) + - 94 * 48 + - COUNT ( * ) + 45 + + CAST ( NULL AS INTEGER ) AS col2, + COALESCE ( + - CAST ( NULL AS INTEGER ), 30 / 86, - 46 - - COUNT ( * ) + + + 97 * + 88 * MIN ( DISTINCT + 91 ) ) AS col1
----
NULL
0

query II rowsort
SELECT 73 AS col0, - 19
----
73
-19

query I rowsort
SELECT + 4 * + - 26 AS col0
----
-104

query I rowsort
SELECT ALL - 88 * 94 AS col0
----
-8272

query I rowsort
SELECT + 21 + + 66 AS col2
----
87

query I rowsort
SELECT 22 * - - ( - COALESCE ( - + 78, - 8, - 88 + - 0 ) ) * + 12
----
20592

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT ALL - MIN( + + 35 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL - MIN ( + + 35 ) AS col1
----
-35

query II rowsort
SELECT 38 + + 68 + + 30 * 50 col1, COALESCE ( 71, 60 ) + + ( - 65 )
----
1606
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT COUNT( * ) * - 18 * - + 79
----
1422

skipif mysql # not compatible
query I rowsort label-8680
SELECT COUNT ( * ) * - 18 * - + 79
----
1422

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8681
SELECT 17 DIV COUNT( * ) + - 48 + - ( 13 ) DIV + 35 * 38 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-8681
SELECT 17 / COUNT ( * ) + - 48 + - ( 13 ) / + 35 * 38 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL 20 * + 31 * - - COUNT( * ) AS col0
----
620

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL 20 * + 31 * - - COUNT ( * ) AS col0
----
620

query II rowsort
SELECT 28 + - 93, 96 AS col1
----
-65
96

query I rowsort
SELECT 28 * + - 35 AS col2
----
-980

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8685
SELECT CASE - CASE - 13 WHEN 76 * - CASE 46 WHEN 3 + - 8 * + COUNT( * ) + - - NULLIF ( + 90, 74 ) + - 67 - - - 85 - - COALESCE ( - 70, COUNT( * ) / - 5 * + + 71 + - ( - COUNT( * ) ) * COUNT( * ), + - 41 * 19 + + - 99 ) / + CAST( - 62 AS DECIMAL ) / + 48 THEN - + 86 * - 17 WHEN + - ( - 63 ) * 94 * + 9 * 46 THEN 18 END - - 61 * 16 THEN 52 END WHEN + 67 + - 75 / CASE + 65 + - COUNT( * ) * + MAX( ALL 71 * 35 ) WHEN 67 THEN + COUNT( * ) * + 35 END THEN - ( + 52 ) * 89 WHEN 19 * COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT CASE - CASE - 13 WHEN 76 * - CASE 46 WHEN 3 + - 8 * + COUNT ( * ) + - - NULLIF ( + 90, 74 ) + - 67 - - - 85 - - COALESCE ( - 70, COUNT ( * ) / - 5 * + + 71 + - ( - COUNT ( * ) ) * COUNT ( * ), + - 41 * 19 + + - 99 ) / + CAST ( - 62 AS REAL ) / + 48 THEN - + 86 * - 17 WHEN + - ( - 63 ) * 94 * + 9 * 46 THEN 18 END - - 61 * 16 THEN 52 END WHEN + 67 + - 75 / CASE + 65 + - COUNT ( * ) * + MAX ( ALL 71 * 35 ) WHEN 67 THEN + COUNT ( * ) * + 35 END THEN - ( + 52 ) * 89 WHEN 19 * COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT DISTINCT - + 40 AS col0, - 91
----
-40
-91

query I rowsort
SELECT ( - 26 ) col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8688
SELECT ( - 78 ) * + 29 + 70 col0, - SUM( DISTINCT + 87 ) * + CASE - 17 WHEN - 57 THEN + - 67 * - COUNT( * ) WHEN 10 * - - CAST( + 14 AS DECIMAL ) / + 43 THEN 1 END + - 38 + - 69 * - + 64 / + + 57 + - + 89 + - - COUNT( 85 ) * MIN( - CAST( 98 AS SIGNED ) ) AS col1
----
-2192
NULL

skipif mysql # not compatible
query II rowsort label-8688
SELECT ( - 78 ) * + 29 + 70 col0, - SUM ( DISTINCT + 87 ) * + CASE - 17 WHEN - 57 THEN + - 67 * - COUNT ( * ) WHEN 10 * - - CAST ( + 14 AS REAL ) / + 43 THEN 1 END + - 38 + - 69 * - + 64 / + + 57 + - + 89 + - - COUNT ( 85 ) * MIN ( - CAST ( 98 AS INTEGER ) ) AS col1
----
-2192
NULL

query I rowsort
SELECT + 97 + + 26
----
123

query II rowsort
SELECT + - 38, + COALESCE ( + 85, 34 ) + 97 col0
----
-38
182

query I rowsort
SELECT DISTINCT - + ( 4 ) * - + 74 AS col2
----
296

onlyif mysql # aggregate syntax: 
query II rowsort label-8692
SELECT - 95 AS col0, - SUM( + + 85 )
----
-95
-85

skipif mysql # not compatible
query II rowsort label-8692
SELECT - 95 AS col0, - SUM ( + + 85 )
----
-95
-85

query I rowsort
SELECT ALL - 59 * 91 * - 5
----
26845

query I rowsort
SELECT - 64 * + 56 AS col2
----
-3584

query II rowsort
SELECT ALL - 17, 31 AS col0
----
-17
31

query I rowsort
SELECT ALL + - 7 + 11
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL + - MIN( + - 76 ) + 29
----
105

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + - MIN ( + - 76 ) + 29
----
105

onlyif mysql # DIV for integer division: 
query II rowsort label-8698
SELECT - 12, - 0 DIV + 79 - 85 AS col0
----
-12
-85

skipif mysql # not compatible
query II rowsort label-8698
SELECT - 12, - 0 / + 79 - 85 AS col0
----
-12
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8699
SELECT - 91 DIV - + 16
----
5

skipif mysql # not compatible
query I rowsort label-8699
SELECT - 91 / - + 16
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8700
SELECT + 57 DIV + 22
----
2

skipif mysql # not compatible
query I rowsort label-8700
SELECT + 57 / + 22
----
2

query I rowsort
SELECT ALL + - 11 + + - 2 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8702
SELECT DISTINCT + MAX( ALL + CAST( + + 82 AS SIGNED ) )
----
82

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT + MAX ( ALL + CAST ( + + 82 AS INTEGER ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ALL 22 + NULLIF ( - ( 49 ), COUNT( * ) )
----
-27

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL 22 + NULLIF ( - ( 49 ), COUNT ( * ) )
----
-27

query I rowsort
SELECT 87 - ( - + 64 ) AS col2
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT DISTINCT + 2 DIV + + 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT + 2 / + + 66 AS col0
----
0

query I rowsort
SELECT ALL COALESCE ( + ( + 59 ), + 56 ) * 84 AS col0
----
4956

query I rowsort
SELECT DISTINCT 74 * 81 AS col2
----
5994

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT 6 + - 51 * - - 55 * + 22 * + ( + 97 ) + - COUNT( - 10 ) AS col0
----
-5985865

skipif mysql # not compatible
query I rowsort label-8708
SELECT 6 + - 51 * - - 55 * + 22 * + ( + 97 ) + - COUNT ( - 10 ) AS col0
----
-5985865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8709
SELECT ALL - COUNT( * ) - 21 - 17 + 55 + + + 23 + - + 0 * 47 * - CAST( NULL AS SIGNED ) + - + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL - COUNT ( * ) - 21 - 17 + 55 + + + 23 + - + 0 * 47 * - CAST ( NULL AS INTEGER ) + - + 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT 77 * + - SUM( 36 ) AS col0
----
-2772

skipif mysql # not compatible
query I rowsort label-8710
SELECT 77 * + - SUM ( 36 ) AS col0
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT 87 + - + MIN( - 50 ) AS col2
----
137

skipif mysql # not compatible
query I rowsort label-8711
SELECT 87 + - + MIN ( - 50 ) AS col2
----
137

query I rowsort
SELECT 96 + + - 65 + ( 19 ) AS col0
----
50

query I rowsort
SELECT 32 - + + 89 + + 69 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT DISTINCT - COUNT( * ) * + 48 * - 75 AS col2
----
3600

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT - COUNT ( * ) * + 48 * - 75 AS col2
----
3600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8715
SELECT COUNT( * ) * 94 DIV - 90 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8715
SELECT COUNT ( * ) * 94 / - 90 AS col1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8716
SELECT CAST( NULL AS DECIMAL ) + CAST( ( - + 98 ) AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8716
SELECT CAST ( NULL AS REAL ) + CAST ( ( - + 98 ) AS REAL ) col2
----
NULL

query I rowsort
SELECT DISTINCT 61 * 33
----
2013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8718
SELECT COUNT( * ) DIV - 24 * - 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8718
SELECT COUNT ( * ) / - 24 * - 91 AS col1
----
0

query I rowsort
SELECT - 86 * + - 7 + 9
----
611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8720
SELECT COUNT( * ) / 9 / 8 + - - CAST( NULL AS SIGNED ) * - 93 + - 46 + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT COUNT ( * ) / 9 / 8 + - - CAST ( NULL AS INTEGER ) * - 93 + - 46 + - 77
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8721
SELECT + COALESCE ( 98, + - 97 DIV - + 58, + 47 )
----
98

skipif mysql # not compatible
query I rowsort label-8721
SELECT + COALESCE ( 98, + - 97 / - + 58, + 47 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT + COUNT( * ) + - ( + + 4 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8722
SELECT + COUNT ( * ) + - ( + + 4 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT DISTINCT CASE 92 WHEN - - 3 + + 84 THEN NULL ELSE - - COUNT( * ) END * + + SUM( 51 )
----
51

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT CASE 92 WHEN - - 3 + + 84 THEN NULL ELSE - - COUNT ( * ) END * + + SUM ( 51 )
----
51

query I rowsort
SELECT 53 - 4 AS col0
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8725
SELECT ALL 9 * + - ( + 22 ) * 71 + - 51 - - - NULLIF ( - 11, 32 + + 42 ) DIV - + 35 * + 19 * - + COUNT( * )
----
-14109

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL 9 * + - ( + 22 ) * 71 + - 51 - - - NULLIF ( - 11, 32 + + 42 ) / - + 35 * + 19 * - + COUNT ( * )
----
-14109

query I rowsort
SELECT DISTINCT + 30 + - + 40
----
-10

query I rowsort
SELECT 2 * + + 79 + - - 43
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8728
SELECT + CAST( 34 AS SIGNED ), - 77 - 19 AS col1
----
34
-96

skipif mysql # not compatible
query II rowsort label-8728
SELECT + CAST ( 34 AS INTEGER ), - 77 - 19 AS col1
----
34
-96

query I rowsort
SELECT + 14 + + ( - - 19 ) AS col1
----
33

query I rowsort
SELECT + NULLIF ( - - 98, - - 28 - 72 )
----
98

query I rowsort
SELECT 70 + - 26 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL + CASE + 8 WHEN 30 THEN NULL WHEN - COUNT( * ) THEN 54 * - 16 * + ( + 54 ) ELSE - - 65 END + - - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL + CASE + 8 WHEN 30 THEN NULL WHEN - COUNT ( * ) THEN 54 * - 16 * + ( + 54 ) ELSE - - 65 END + - - COUNT ( * ) AS col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8733
SELECT DISTINCT + 53 * 75 * + 96 DIV COUNT( * ) AS col1
----
381600

skipif mysql # not compatible
query I rowsort label-8733
SELECT DISTINCT + 53 * 75 * + 96 / COUNT ( * ) AS col1
----
381600

query II rowsort
SELECT - 52 * - - 14 + - 40 AS col2, 24
----
-768
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8735
SELECT ALL + SUM( + + ( - 7 ) ) - 86 * + 48 * 48 + + CAST( 48 AS SIGNED ) + 93 + + + 19 * ( - + 90 ) AS col0
----
-199720

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL + SUM ( + + ( - 7 ) ) - 86 * + 48 * 48 + + CAST ( 48 AS INTEGER ) + 93 + + + 19 * ( - + 90 ) AS col0
----
-199720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8736
SELECT - 98 * MAX( ALL + 79 ) AS col1, + CAST( ( - - 28 ) AS SIGNED ) + 10 * - SUM( DISTINCT - 3 ) AS col1
----
-7742
58

skipif mysql # not compatible
query II rowsort label-8736
SELECT - 98 * MAX ( ALL + 79 ) AS col1, + CAST ( ( - - 28 ) AS INTEGER ) + 10 * - SUM ( DISTINCT - 3 ) AS col1
----
-7742
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT - 57 + ( 60 ) * 80 - - ( - 4 ) - - + CASE + 47 WHEN 79 * + MAX( ALL 89 ) / + + COUNT( * ) + + 81 + + - 75 THEN + + 2 WHEN - + 69 * - 99 + + MIN( 76 ) + - ( - 87 ) + - 12 / - + 81 THEN NULL END + - MAX( - + 96 ) + - ( + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT - 57 + ( 60 ) * 80 - - ( - 4 ) - - + CASE + 47 WHEN 79 * + MAX ( ALL 89 ) / + + COUNT ( * ) + + 81 + + - 75 THEN + + 2 WHEN - + 69 * - 99 + + MIN ( 76 ) + - ( - 87 ) + - 12 / - + 81 THEN NULL END + - MAX ( - + 96 ) + - ( + 14 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8738
SELECT - 20 col2, CASE 49 WHEN - 68 / + 52 THEN - - 69 + MIN( - COALESCE ( + 66, - 70 / + 37 / 14 ) ) END - + + ( - - CAST( NULL AS DECIMAL ) ) + + - 63 * 24
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-8738
SELECT - 20 col2, CASE 49 WHEN - 68 / + 52 THEN - - 69 + MIN ( - COALESCE ( + 66, - 70 / + 37 / 14 ) ) END - + + ( - - CAST ( NULL AS REAL ) ) + + - 63 * 24
----
-20
NULL

query I rowsort
SELECT - 86 + - 78 AS col2
----
-164

query I rowsort
SELECT - 50 + 53
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT - 62 * 13 * - ( SUM( 35 ) ) AS col2
----
28210

skipif mysql # not compatible
query I rowsort label-8741
SELECT - 62 * 13 * - ( SUM ( 35 ) ) AS col2
----
28210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8742
SELECT DISTINCT + CASE 60 WHEN - COUNT( * ) * + 70 THEN CAST( + 35 AS SIGNED ) END / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT + CASE 60 WHEN - COUNT ( * ) * + 70 THEN CAST ( + 35 AS INTEGER ) END / + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8743
SELECT ALL CAST( NULL AS SIGNED ) * - 65 / 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL CAST ( NULL AS INTEGER ) * - 65 / 12 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8744
SELECT - 32 + 32 + 82 DIV + 1 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-8744
SELECT - 32 + 32 + 82 / + 1 AS col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8745
SELECT DISTINCT + 53 DIV + 61 * + COALESCE ( - 29, + COUNT( * ), - 3, COUNT( * ) ) * - - 15 * - 52, 61 + 97 AS col0
----
0
158

skipif mysql # not compatible
query II rowsort label-8745
SELECT DISTINCT + 53 / + 61 * + COALESCE ( - 29, + COUNT ( * ), - 3, COUNT ( * ) ) * - - 15 * - 52, 61 + 97 AS col0
----
0
158

query I rowsort
SELECT - 8 + 59 AS col0
----
51

query II rowsort
SELECT 22 AS col2, 88 AS col2
----
22
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT - MIN( DISTINCT - 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8748
SELECT - MIN ( DISTINCT - 70 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT - 55 - 62 + + MIN( DISTINCT - 67 ) + + + 13 + - 21 * + 48 AS col0
----
-1179

skipif mysql # not compatible
query I rowsort label-8749
SELECT - 55 - 62 + + MIN ( DISTINCT - 67 ) + + + 13 + - 21 * + 48 AS col0
----
-1179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8750
SELECT + COUNT( 38 ) + - COUNT( * ) + CAST( NULL AS SIGNED ) - - COALESCE ( COALESCE ( 88, + COUNT( * ) ), ( + 69 ) * - 53, 54 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT + COUNT ( 38 ) + - COUNT ( * ) + CAST ( NULL AS INTEGER ) - - COALESCE ( COALESCE ( 88, + COUNT ( * ) ), ( + 69 ) * - 53, 54 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8751
SELECT + 95 DIV - 49 + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8751
SELECT + 95 / - 49 + - COUNT ( * )
----
-2

query I rowsort
SELECT + - 6 + - 30
----
-36

query I rowsort
SELECT ALL - 47 * - 36 + - 47 + - CASE + + CASE - 64 WHEN + 99 / 63 THEN - 34 + 18 END WHEN 39 THEN NULL ELSE - 7 END * + 41 * - 55 + - 54
----
-14194

onlyif mysql # DIV for integer division: 
query I rowsort label-8754
SELECT + + 31 DIV 14 + 83 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-8754
SELECT + + 31 / 14 + 83 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT - 85 * - COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8755
SELECT - 85 * - COUNT ( * ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT + - MIN( ALL ( - 76 ) ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-8756
SELECT + - MIN ( ALL ( - 76 ) ) AS col1
----
76

query I rowsort
SELECT ALL 43 * - 83
----
-3569

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8758
SELECT + 12 DIV - - 63 * - + 25 AS col1, - 16 DIV - 86 + 25 * + COUNT( * )
----
0
25

skipif mysql # not compatible
query II rowsort label-8758
SELECT + 12 / - - 63 * - + 25 AS col1, - 16 / - 86 + 25 * + COUNT ( * )
----
0
25

query I rowsort
SELECT + 82 + - 34
----
48

query I rowsort
SELECT + + ( 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT ALL 9 * COUNT( * ) + - ( + - COUNT( + 12 ) ) - + + 18 + - 9 + - + CASE + COUNT( * ) WHEN - 40 + + + 58 THEN 36 * - 18 + 76 + + 35 END + 83 * + 4 / - + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL 9 * COUNT ( * ) + - ( + - COUNT ( + 12 ) ) - + + 18 + - 9 + - + CASE + COUNT ( * ) WHEN - 40 + + + 58 THEN 36 * - 18 + 76 + + 35 END + 83 * + 4 / - + 52
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8762
SELECT + - 4 DIV 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8762
SELECT + - 4 / 21 AS col2
----
0

query I rowsort
SELECT ALL 31 * + 37 - + 38 AS col1
----
1109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8764
SELECT CAST( NULL AS SIGNED ) * - 23 * + 52 - + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT CAST ( NULL AS INTEGER ) * - 23 * + 52 - + 26 AS col0
----
NULL

query I rowsort
SELECT + CASE - 88 WHEN NULLIF ( - 3, - 47 ) THEN NULL ELSE + 64 END - - - 5 AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8766
SELECT - 74 * + 80 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT - 74 * + 80 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8767
SELECT + 45 + + 80 + + 49 * 2 * - - 94 + - MIN( ALL 77 ) + - + NULLIF ( - 66, - + COUNT( * ) * - COUNT( * ) ) DIV + + NULLIF ( 21, + SUM( - 17 ) )
----
9263

skipif mysql # not compatible
query I rowsort label-8767
SELECT + 45 + + 80 + + 49 * 2 * - - 94 + - MIN ( ALL 77 ) + - + NULLIF ( - 66, - + COUNT ( * ) * - COUNT ( * ) ) / + + NULLIF ( 21, + SUM ( - 17 ) )
----
9263

query I rowsort
SELECT ALL + 66 * - ( + 73 ) AS col1
----
-4818

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT - 15 - - - ( - 86 ) * 88 - + 29 + - MIN( - 73 )
----
7597

skipif mysql # not compatible
query I rowsort label-8769
SELECT - 15 - - - ( - 86 ) * 88 - + 29 + - MIN ( - 73 )
----
7597

query I rowsort
SELECT ALL ( - + 8 ) * + 18
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-8771
SELECT - COUNT( * ) * - 57 AS col0, 14 AS col2
----
57
14

skipif mysql # not compatible
query II rowsort label-8771
SELECT - COUNT ( * ) * - 57 AS col0, 14 AS col2
----
57
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT - 67 + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-8772
SELECT - 67 + COUNT ( * )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8773
SELECT ALL - CAST( - + AVG ( DISTINCT + 20 ) AS SIGNED ) + + + 60 + + COUNT( * ) * 35 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL - CAST ( - + AVG ( DISTINCT + 20 ) AS INTEGER ) + + + 60 + + COUNT ( * ) * 35 AS col1
----
115

query I rowsort
SELECT + 55 + - + 91 + 41
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT - MIN( DISTINCT + - 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-8775
SELECT - MIN ( DISTINCT + - 94 ) AS col0
----
94

query I rowsort
SELECT - ( - 0 ) * - + 47 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT ALL COUNT( DISTINCT - 38 ) + + 68 * + 35 AS col2
----
2381

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL COUNT ( DISTINCT - 38 ) + + 68 * + 35 AS col2
----
2381

query I rowsort
SELECT ALL - 4 + 4 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8779
SELECT DISTINCT CAST( - 89 AS SIGNED ), + 89 + ( + 21 ) * - COUNT( * ) AS col1
----
-89
68

skipif mysql # not compatible
query II rowsort label-8779
SELECT DISTINCT CAST ( - 89 AS INTEGER ), + 89 + ( + 21 ) * - COUNT ( * ) AS col1
----
-89
68

query I rowsort
SELECT DISTINCT + 63 + - 20 + 25
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT - CASE + 94 WHEN - - 95 THEN NULL ELSE + SUM( 76 ) END + - - COUNT( * ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-8781
SELECT - CASE + 94 WHEN - - 95 THEN NULL ELSE + SUM ( 76 ) END + - - COUNT ( * ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-8782
SELECT DISTINCT + + NULLIF ( + 70, + - MIN( ALL 65 ) ) AS col2, + COUNT( * )
----
70
1

skipif mysql # not compatible
query II rowsort label-8782
SELECT DISTINCT + + NULLIF ( + 70, + - MIN ( ALL 65 ) ) AS col2, + COUNT ( * )
----
70
1

query I rowsort
SELECT ALL + 80 * + 34 - + + 93 AS col0
----
2627

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT + - SUM( DISTINCT + 40 ) * - COUNT( * ) + 17 - CASE + 10 WHEN + + 58 THEN NULL ELSE - 72 + 35 - + + 39 * + COUNT( * ) + - - 22 END * - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8784
SELECT + - SUM ( DISTINCT + 40 ) * - COUNT ( * ) + 17 - CASE + 10 WHEN + + 58 THEN NULL ELSE - 72 + 35 - + + 39 * + COUNT ( * ) + - - 22 END * - COUNT ( * ) AS col1
----
3

query I rowsort
SELECT - - 25 + + 4
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ALL + COUNT( * ) * - 61 * 4
----
-244

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL + COUNT ( * ) * - 61 * 4
----
-244

query I rowsort
SELECT + - 75 * - 45 * + 98 + - 61
----
330689

query I rowsort
SELECT ALL + ( - + 81 )
----
-81

query I rowsort
SELECT - 60 + 37 col2
----
-23

query I rowsort
SELECT - 8 * - - 15 + 57
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8791
SELECT 22 - + - CAST( NULL AS SIGNED ) / 46
----
NULL

skipif mysql # not compatible
query I rowsort label-8791
SELECT 22 - + - CAST ( NULL AS INTEGER ) / 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT + COUNT( * ) * - 35 + + 96
----
61

skipif mysql # not compatible
query I rowsort label-8792
SELECT + COUNT ( * ) * - 35 + + 96
----
61

query I rowsort
SELECT 6 * 76
----
456

onlyif mysql # DIV for integer division: 
query I rowsort label-8794
SELECT ALL - 71 DIV + 19 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL - 71 / + 19 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT DISTINCT CASE 88 WHEN - 28 THEN + 55 + + 72 ELSE NULL END * - + MIN( ALL - 94 ) + + 71 - - COUNT( * ) * - - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT CASE 88 WHEN - 28 THEN + 55 + + 72 ELSE NULL END * - + MIN ( ALL - 94 ) + + 71 - - COUNT ( * ) * - - 3
----
NULL

query I rowsort
SELECT ALL 85 + 20 AS col0
----
105

query I rowsort
SELECT ALL 97 * - 0 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT CAST( NULL AS SIGNED ) + + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT CAST ( NULL AS INTEGER ) + + 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT COUNT( * ) + COALESCE ( - - MAX( - 36 ), - 57 ) * - + 28 * - + 11 + + MAX( DISTINCT + - 97 )
----
-11184

skipif mysql # not compatible
query I rowsort label-8799
SELECT COUNT ( * ) + COALESCE ( - - MAX ( - 36 ), - 57 ) * - + 28 * - + 11 + + MAX ( DISTINCT + - 97 )
----
-11184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8800
SELECT CAST( NULL AS SIGNED ) * + CASE - + 55 WHEN 22 / 55 + - 9 THEN + 38 - + 4 + + 35 ELSE - 97 - - ( + COALESCE ( - - 25, - 17, + COUNT( * ) ) ) * + 44 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8800
SELECT CAST ( NULL AS INTEGER ) * + CASE - + 55 WHEN 22 / 55 + - 9 THEN + 38 - + 4 + + 35 ELSE - 97 - - ( + COALESCE ( - - 25, - 17, + COUNT ( * ) ) ) * + 44 END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8801
SELECT ALL CAST( + 78 AS SIGNED ) + + 7 * + - 91 * + 93 AS col0
----
-59163

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL CAST ( + 78 AS INTEGER ) + + 7 * + - 91 * + 93 AS col0
----
-59163

query II rowsort
SELECT 90 AS col1, - 53
----
90
-53

query I rowsort
SELECT ALL + 64 + 8
----
72

query I rowsort
SELECT - 1 + - + 99 AS col1
----
-100

query I rowsort
SELECT - - ( - 34 )
----
-34

query I rowsort
SELECT DISTINCT + ( 6 ) * + 40
----
240

query I rowsort
SELECT - 58 * + COALESCE ( 56, + 77 ) AS col1
----
-3248

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT ALL - - 44 * - MAX( DISTINCT - 94 ) - - 62
----
4198

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL - - 44 * - MAX ( DISTINCT - 94 ) - - 62
----
4198

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT SUM( + 6 ) - 74 * 2
----
-142

skipif mysql # not compatible
query I rowsort label-8809
SELECT SUM ( + 6 ) - 74 * 2
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT + 50 + - COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-8810
SELECT + 50 + - COUNT ( * ) AS col1
----
49

query I rowsort
SELECT ( - 38 ) * + ( - + 56 ) AS col0
----
2128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT ALL + 48 * + - CAST( NULL AS SIGNED ) * - + 45 / - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL + 48 * + - CAST ( NULL AS INTEGER ) * - + 45 / - 81
----
NULL

query I rowsort
SELECT DISTINCT - 90 - 8 * - 68
----
454

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8814
SELECT DISTINCT - COUNT( * ) DIV - 23 * - - ( + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT - COUNT ( * ) / - 23 * - - ( + COUNT ( * ) )
----
0

query I rowsort
SELECT ALL - - 91 col2
----
91

query II rowsort
SELECT + + 2 AS col0, 29 AS col1
----
2
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT + + COALESCE ( + 5, COUNT( * ), 14 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8817
SELECT + + COALESCE ( + 5, COUNT ( * ), 14 ) AS col2
----
5

query I rowsort
SELECT - 57 * 35 * + 49 * + ( 18 ) + NULLIF ( + 87, - + COALESCE ( 58, + 80 ) * - + 57 )
----
-1759503

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8819
SELECT COUNT( * ) * + - 71 + 2 - + CAST( NULL AS SIGNED ) * - + 26 col1, 5 col0
----
NULL
5

skipif mysql # not compatible
query II rowsort label-8819
SELECT COUNT ( * ) * + - 71 + 2 - + CAST ( NULL AS INTEGER ) * - + 26 col1, 5 col0
----
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT ALL - COUNT( 11 ) * - 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL - COUNT ( 11 ) * - 32 AS col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8821
SELECT ALL - CASE + 99 WHEN - - 77 THEN NULL WHEN + AVG ( ALL 50 ) * + 71 THEN + CASE - 15 WHEN + - 34 * + + COUNT( * ) THEN NULL WHEN + + 7 * + CAST( NULL AS SIGNED ) * + - 2 THEN - + 68 * - 47 / - COUNT( * ) + - 67 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL - CASE + 99 WHEN - - 77 THEN NULL WHEN + AVG ( ALL 50 ) * + 71 THEN + CASE - 15 WHEN + - 34 * + + COUNT ( * ) THEN NULL WHEN + + 7 * + CAST ( NULL AS INTEGER ) * + - 2 THEN - + 68 * - 47 / - COUNT ( * ) + - 67 END END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8822
SELECT ALL - COUNT( * ), 80 - + 0 AS col2
----
-1
80

skipif mysql # not compatible
query II rowsort label-8822
SELECT ALL - COUNT ( * ), 80 - + 0 AS col2
----
-1
80

query I rowsort
SELECT 15 * - 44
----
-660

query I rowsort
SELECT ALL 9 + 25
----
34

query I rowsort
SELECT ALL - 67 * + 85
----
-5695

query I rowsort
SELECT ALL - ( ( - 30 ) ) AS col0
----
30

query II rowsort
SELECT ALL - 2, - 5 AS col0
----
-2
-5

query I rowsort
SELECT 41 * + 13
----
533

query II rowsort
SELECT - 81 AS col1, 69
----
-81
69

query I rowsort
SELECT ALL ( + 93 ) + - + 95
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8831
SELECT COUNT( * ) + + CASE - 97 WHEN + - 45 * - CAST( + COUNT( * ) AS DECIMAL ) * + - CAST( NULL AS SIGNED ) THEN NULL WHEN + ( - + 11 ) + - - ( + 63 ) + COUNT( + 57 ) THEN - 49 WHEN + 35 * - 8 THEN + ( + 83 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT COUNT ( * ) + + CASE - 97 WHEN + - 45 * - CAST ( + COUNT ( * ) AS REAL ) * + - CAST ( NULL AS INTEGER ) THEN NULL WHEN + ( - + 11 ) + - - ( + 63 ) + COUNT ( + 57 ) THEN - 49 WHEN + 35 * - 8 THEN + ( + 83 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT MAX( + 5 ) * COUNT( * ) * 63 AS col1
----
315

skipif mysql # not compatible
query I rowsort label-8832
SELECT MAX ( + 5 ) * COUNT ( * ) * 63 AS col1
----
315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8833
SELECT ALL 43 * + ( - - CAST( + - 95 AS SIGNED ) ) AS col1
----
-4085

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL 43 * + ( - - CAST ( + - 95 AS INTEGER ) ) AS col1
----
-4085

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8834
SELECT ALL - COUNT( * ) DIV + 76 col0
----
0

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL - COUNT ( * ) / + 76 col0
----
0

query I rowsort
SELECT ALL + 77 + - 64 AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8836
SELECT DISTINCT - ( + 64 ) + + 29 * 83 * - CAST( - - 45 AS SIGNED )
----
-108379

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT - ( + 64 ) + + 29 * 83 * - CAST ( - - 45 AS INTEGER )
----
-108379

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT - SUM( + - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-8837
SELECT - SUM ( + - 11 )
----
11

query II rowsort
SELECT DISTINCT 56, 87 * + 92 * - 34 AS col2
----
56
-272136

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT 65 * + ( + - SUM( ALL + 15 ) ) AS col1
----
-975

skipif mysql # not compatible
query I rowsort label-8839
SELECT 65 * + ( + - SUM ( ALL + 15 ) ) AS col1
----
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT + 39 - - COUNT( * ) * 2 * SUM( - + 9 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-8840
SELECT + 39 - - COUNT ( * ) * 2 * SUM ( - + 9 ) AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8841
SELECT DISTINCT + COALESCE ( 97, - CASE + + 30 WHEN 98 THEN - SUM( - CAST( - 92 AS SIGNED ) ) - + 26 + + - 57 WHEN + 3 THEN NULL ELSE 21 END * 29 * - NULLIF ( - + MIN( - 78 ), NULLIF ( COUNT( * ), 87 * + 16 * + 9 + + + CASE - 52 WHEN COUNT( * ) + 3 * + + 33 THEN + 79 + + - 85 END + + 10 ) ) )
----
97

skipif mysql # not compatible
query I rowsort label-8841
SELECT DISTINCT + COALESCE ( 97, - CASE + + 30 WHEN 98 THEN - SUM ( - CAST ( - 92 AS INTEGER ) ) - + 26 + + - 57 WHEN + 3 THEN NULL ELSE 21 END * 29 * - NULLIF ( - + MIN ( - 78 ), NULLIF ( COUNT ( * ), 87 * + 16 * + 9 + + + CASE - 52 WHEN COUNT ( * ) + 3 * + + 33 THEN + 79 + + - 85 END + + 10 ) ) )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8842
SELECT ALL - 97 * COUNT( ALL - 94 ) - + + 53 AS col2, + 95 - + + 87 AS col0
----
-150
8

skipif mysql # not compatible
query II rowsort label-8842
SELECT ALL - 97 * COUNT ( ALL - 94 ) - + + 53 AS col2, + 95 - + + 87 AS col0
----
-150
8

query I rowsort
SELECT DISTINCT - + ( - - 97 )
----
-97

query I rowsort
SELECT - - 42 * ( + + 4 )
----
168

query I rowsort
SELECT 31 * 11 + 10 * - + 62 + 5 AS col2
----
-274

onlyif mysql # aggregate syntax: 
query II rowsort label-8846
SELECT + + COUNT( * ) AS col1, 29
----
1
29

skipif mysql # not compatible
query II rowsort label-8846
SELECT + + COUNT ( * ) AS col1, 29
----
1
29

query II rowsort
SELECT 68 AS col2, 20 + + 47
----
68
67

query II rowsort
SELECT 5, - 87 AS col2
----
5
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8849
SELECT - - 93 DIV + 76 + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8849
SELECT - - 93 / + 76 + - COUNT ( * )
----
0

query I rowsort
SELECT - 64 * - 99 AS col1
----
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT + COUNT( * ) + + NULLIF ( + - 54, - 18 + 14 * 73 ) + - + 74 AS col1
----
-127

skipif mysql # not compatible
query I rowsort label-8851
SELECT + COUNT ( * ) + + NULLIF ( + - 54, - 18 + 14 * 73 ) + - + 74 AS col1
----
-127

query I rowsort
SELECT ALL + 11 * - - 35 + - 41
----
344

query I rowsort
SELECT ALL - 62 * + 11 + - 16
----
-698

onlyif mysql # aggregate syntax: 
query II rowsort label-8854
SELECT DISTINCT - 18 * - - COUNT( * ) * MIN( ALL - 79 ) + - 31 AS col0, + 51 * 34 * - + COUNT( * ) * + 18 * + 65 AS col1
----
1391
-2028780

skipif mysql # not compatible
query II rowsort label-8854
SELECT DISTINCT - 18 * - - COUNT ( * ) * MIN ( ALL - 79 ) + - 31 AS col0, + 51 * 34 * - + COUNT ( * ) * + 18 * + 65 AS col1
----
1391
-2028780

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT SUM( + + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-8855
SELECT SUM ( + + 47 )
----
47

query I rowsort
SELECT + 80 * + 54 * 19
----
82080

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8857
SELECT 8 * - 18 * + CAST( + - 84 AS DECIMAL ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT 8 * - 18 * + CAST ( + - 84 AS REAL ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 62 + + - 2 + - 91 + - 2 * + 49 * + 55
----
-5545

query I rowsort
SELECT ALL - ( - 21 ) * 35
----
735

query I rowsort
SELECT + 10 * - 59 + + 9 + - 16
----
-597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8861
SELECT ALL - 45 + - 27, + COUNT( * ) + + - CAST( + + 11 AS SIGNED ) - - 48 AS col0
----
-72
38

skipif mysql # not compatible
query II rowsort label-8861
SELECT ALL - 45 + - 27, + COUNT ( * ) + + - CAST ( + + 11 AS INTEGER ) - - 48 AS col0
----
-72
38

query I rowsort
SELECT DISTINCT + ( - - 70 ) + + - 98
----
-28

query I rowsort
SELECT ALL - 36 * + 52
----
-1872

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8864
SELECT DISTINCT - ( - COUNT( * ) ) * + 61 DIV - 80 * + ( - 80 ) * + 53, - 9 + + 53 + + - 97 AS col2
----
0
-53

skipif mysql # not compatible
query II rowsort label-8864
SELECT DISTINCT - ( - COUNT ( * ) ) * + 61 / - 80 * + ( - 80 ) * + 53, - 9 + + 53 + + - 97 AS col2
----
0
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT - 90 * + - CASE - 23 WHEN + 84 THEN - + 81 + ( + + 63 ) * SUM( + 92 ) WHEN 61 / + - CASE - 31 WHEN 24 THEN NULL ELSE + 2 END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8865
SELECT - 90 * + - CASE - 23 WHEN + 84 THEN - + 81 + ( + + 63 ) * SUM ( + 92 ) WHEN 61 / + - CASE - 31 WHEN 24 THEN NULL ELSE + 2 END THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT - SUM( ALL + + 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-8866
SELECT - SUM ( ALL + + 55 ) AS col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8867
SELECT ALL - 46 - 72 + + + CAST( NULL AS SIGNED ) AS col2, COUNT( * ) - - 27 AS col1
----
NULL
28

skipif mysql # not compatible
query II rowsort label-8867
SELECT ALL - 46 - 72 + + + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) - - 27 AS col1
----
NULL
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8868
SELECT - - 4 DIV - 87 * + + 76 * 42 + - COUNT( ALL 91 ) + + 47 * + - 11 AS col1
----
-518

skipif mysql # not compatible
query I rowsort label-8868
SELECT - - 4 / - 87 * + + 76 * 42 + - COUNT ( ALL 91 ) + + 47 * + - 11 AS col1
----
-518

onlyif mysql # DIV for integer division: 
query I rowsort label-8869
SELECT ALL 80 DIV + 7 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL 80 / + 7 AS col2
----
11

query I rowsort
SELECT - 49 + - 4 * - + 62 col0
----
199

query I rowsort
SELECT + 23 + + 3 AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8872
SELECT ALL + 48 DIV 53, CAST( + COUNT( * ) AS SIGNED ) col2
----
0
1

skipif mysql # not compatible
query II rowsort label-8872
SELECT ALL + 48 / 53, CAST ( + COUNT ( * ) AS INTEGER ) col2
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8873
SELECT ALL + 32 DIV + + 40 col1
----
0

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL + 32 / + + 40 col1
----
0

query I rowsort
SELECT ALL - ( ( 53 ) )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8875
SELECT ALL - COALESCE ( 35, + - CAST( NULL AS SIGNED ) + + 45 ) * + COALESCE ( + - CAST( NULL AS SIGNED ), CASE - - COALESCE ( + 11, - 65 * 86 / - 41, - - 42 / + 24 ) WHEN - 32 THEN NULL WHEN COUNT( DISTINCT + 56 ) * ( - COUNT( * ) ) THEN + 97 END ) + - + 36 + - SUM( - - 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL - COALESCE ( 35, + - CAST ( NULL AS INTEGER ) + + 45 ) * + COALESCE ( + - CAST ( NULL AS INTEGER ), CASE - - COALESCE ( + 11, - 65 * 86 / - 41, - - 42 / + 24 ) WHEN - 32 THEN NULL WHEN COUNT ( DISTINCT + 56 ) * ( - COUNT ( * ) ) THEN + 97 END ) + - + 36 + - SUM ( - - 35 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8876
SELECT - + 77 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8876
SELECT - + 77 / 92 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8877
SELECT + + 71 + CAST( COUNT( * ) AS SIGNED ) * 7
----
78

skipif mysql # not compatible
query I rowsort label-8877
SELECT + + 71 + CAST ( COUNT ( * ) AS INTEGER ) * 7
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT ALL ( - + MIN( ALL 96 ) ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL ( - + MIN ( ALL 96 ) ) AS col0
----
-96

query I rowsort
SELECT + - 96 * - 92 AS col1
----
8832

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT + COUNT( * ) + 74 * - 93 - - + 14 AS col2
----
-6867

skipif mysql # not compatible
query I rowsort label-8880
SELECT + COUNT ( * ) + 74 * - 93 - - + 14 AS col2
----
-6867

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8881
SELECT + 49 + + 96 col0, - 76 + - CAST( 10 AS SIGNED ) * 77 * - 16 + - - ( - 46 ) - 87 DIV - 73
----
145
12199

skipif mysql # not compatible
query II rowsort label-8881
SELECT + 49 + + 96 col0, - 76 + - CAST ( 10 AS INTEGER ) * 77 * - 16 + - - ( - 46 ) - 87 / - 73
----
145
12199

query I rowsort
SELECT + 92 * + 94 * - 99 * 72 AS col1
----
-61642944

onlyif mysql # DIV for integer division: 
query I rowsort label-8883
SELECT ALL - 0 DIV + COALESCE ( - 27, + ( - + 92 ) ) + - 29
----
-29

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL - 0 / + COALESCE ( - 27, + ( - + 92 ) ) + - 29
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8884
SELECT DISTINCT + + CAST( + NULLIF ( 56, - 76 * AVG ( 6 ) ) AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT + + CAST ( + NULLIF ( 56, - 76 * AVG ( 6 ) ) AS INTEGER )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8885
SELECT ALL - + 78 DIV + 42 + - + 80 + 23 + - 91 + 54 col0
----
-95

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL - + 78 / + 42 + - + 80 + 23 + - 91 + 54 col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8886
SELECT DISTINCT + + 1 DIV - ( 37 ) + + 47 * COUNT( * ) * + + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT + + 1 / - ( 37 ) + + 47 * COUNT ( * ) * + + COUNT ( * ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8887
SELECT ( 59 ) AS col0, - COUNT( ALL - - 73 ) AS col0
----
59
-1

skipif mysql # not compatible
query II rowsort label-8887
SELECT ( 59 ) AS col0, - COUNT ( ALL - - 73 ) AS col0
----
59
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8888
SELECT ALL + 61 AS col1, 44 + + - COUNT( * ) AS col0
----
61
43

skipif mysql # not compatible
query II rowsort label-8888
SELECT ALL + 61 AS col1, 44 + + - COUNT ( * ) AS col0
----
61
43

onlyif mysql # DIV for integer division: 
query I rowsort label-8889
SELECT ALL + 40 DIV 56 + 82 + 28 * - 74 AS col0
----
-1990

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL + 40 / 56 + 82 + 28 * - 74 AS col0
----
-1990

query I rowsort
SELECT ( + + 7 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT + 56 * - COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-8891
SELECT + 56 * - COUNT ( * ) AS col1
----
-56

query I rowsort
SELECT ALL ( 3 ) * + + 41
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8893
SELECT + CAST( 14 AS SIGNED ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8893
SELECT + CAST ( 14 AS INTEGER ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT NULLIF ( - ( - 2 ), - 13 * + 65 + - 14 + + COALESCE ( - COUNT( * ), - - COALESCE ( MAX( - 64 ), 72 ) + 73 + + 59 / + 46 + AVG ( - 48 ), COUNT( * ) ) * + 90 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8894
SELECT NULLIF ( - ( - 2 ), - 13 * + 65 + - 14 + + COALESCE ( - COUNT ( * ), - - COALESCE ( MAX ( - 64 ), 72 ) + 73 + + 59 / + 46 + AVG ( - 48 ), COUNT ( * ) ) * + 90 ) AS col1
----
2

query I rowsort
SELECT COALESCE ( 21, ( 17 ) ) AS col2
----
21

query I rowsort
SELECT ALL ( 18 ) * 43 - - 59 * + + 54 * 33 + - 91 + 23
----
105844

query I rowsort
SELECT ALL ( + 75 ) AS col2
----
75

query I rowsort
SELECT - 42 + - + 33
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8899
SELECT - 48 DIV - 38
----
1

skipif mysql # not compatible
query I rowsort label-8899
SELECT - 48 / - 38
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT ALL - 42 * COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL - 42 * COUNT ( * ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT - 38 + + + ( + + COUNT( * ) ) * + COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8901
SELECT - 38 + + + ( + + COUNT ( * ) ) * + COUNT ( * ) AS col2
----
-37

query II rowsort
SELECT DISTINCT + 10, - 63 AS col1
----
10
-63

query I rowsort
SELECT DISTINCT + + 25 * - + 55
----
-1375

query I rowsort
SELECT DISTINCT + + 8 * - 48 AS col0
----
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT DISTINCT + COUNT( * ) * + + 75 + + + MAX( 9 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT + COUNT ( * ) * + + 75 + + + MAX ( 9 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT SUM( DISTINCT + ( + 71 ) ) + + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-8906
SELECT SUM ( DISTINCT + ( + 71 ) ) + + COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT ALL SUM( - 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL SUM ( - 74 ) AS col0
----
-74

query I rowsort
SELECT 5 * + 41 AS col0
----
205

query I rowsort
SELECT DISTINCT ( + - 59 )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8910
SELECT ALL - 54 + + + CAST( - COUNT( * ) AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL - 54 + + + CAST ( - COUNT ( * ) AS INTEGER )
----
-55

query I rowsort
SELECT ALL - 96 + + 14 AS col1
----
-82

query I rowsort
SELECT DISTINCT + + 15 + - 38
----
-23

query I rowsort
SELECT DISTINCT + 52 + - 70
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-8914
SELECT 45 / - NULLIF ( + CASE + - 56 WHEN COUNT( + COALESCE ( + NULLIF ( 64, + 18 ), ( + CASE + 60 WHEN + 50 THEN NULL WHEN + 39 THEN 31 + - 6 END ), 71 + - 35 - ( 26 ) ) ) THEN - ( 95 ) END, - + ( + 63 ) * - NULLIF ( - + 65, + COUNT( 85 ) ) + - COALESCE ( 90, 64 * 75 + + + 95, - 75 ) ) + + 12, - 60 + + CASE WHEN NOT 87 BETWEEN NULL AND 60 + - 64 THEN - 47 ELSE NULL END * 89 AS col0
----
NULL
-4243

skipif mysql # not compatible
query II rowsort label-8914
SELECT 45 / - NULLIF ( + CASE + - 56 WHEN COUNT ( + COALESCE ( + NULLIF ( 64, + 18 ), ( + CASE + 60 WHEN + 50 THEN NULL WHEN + 39 THEN 31 + - 6 END ), 71 + - 35 - ( 26 ) ) ) THEN - ( 95 ) END, - + ( + 63 ) * - NULLIF ( - + 65, + COUNT ( 85 ) ) + - COALESCE ( 90, 64 * 75 + + + 95, - 75 ) ) + + 12, - 60 + + CASE WHEN NOT 87 BETWEEN NULL AND 60 + - 64 THEN - 47 ELSE NULL END * 89 AS col0
----
NULL
-4243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8915
SELECT COUNT( * ) * + + COUNT( * ) - + + ( + CAST( NULL AS SIGNED ) ), + CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8915
SELECT COUNT ( * ) * + + COUNT ( * ) - + + ( + CAST ( NULL AS INTEGER ) ), + CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT COUNT( * ) + - ( + + COALESCE ( + 71, - 13 ) ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-8916
SELECT COUNT ( * ) + - ( + + COALESCE ( + 71, - 13 ) ) AS col0
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8917
SELECT ALL + 45 - + + MIN( 13 ) + + 55 DIV + - 12 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL + 45 - + + MIN ( 13 ) + + 55 / + - 12 AS col2
----
28

query I rowsort
SELECT DISTINCT - ( - CASE WHEN NOT 44 < + COALESCE ( + ( - 43 ), - 77 ) THEN - 18 ELSE + 49 * + 17 + ( 81 ) * ( 24 ) END ) - + 15 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT DISTINCT - ( SUM( 80 ) ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT - ( SUM ( 80 ) ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT ALL 20 - 47 - 10 * + + COUNT( * ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL 20 - 47 - 10 * + + COUNT ( * ) col1
----
-37

query I rowsort
SELECT 47 + + - 19 col0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT ALL 14 * - 72 * + - COUNT( + 91 ) * - 63 + MAX( ALL 9 ) - + ( + + 8 ) DIV - 20 - 91 AS col1
----
-63586

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL 14 * - 72 * + - COUNT ( + 91 ) * - 63 + MAX ( ALL 9 ) - + ( + + 8 ) / - 20 - 91 AS col1
----
-63586

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8923
SELECT CASE 70 WHEN - + 65 THEN 66 WHEN 83 THEN NULL END * + - 57 * + + 59 + CASE ( ( + 55 ) ) WHEN + 83 THEN NULL WHEN 7 THEN - 94 * 30 - - COALESCE ( - 70, + + CAST( COALESCE ( + 2, 30 + + 52 + - + 16 ) AS DECIMAL ) ) + MIN( 93 ) * + + 35 ELSE + + COUNT( DISTINCT + 2 ) END + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-8923
SELECT CASE 70 WHEN - + 65 THEN 66 WHEN 83 THEN NULL END * + - 57 * + + 59 + CASE ( ( + 55 ) ) WHEN + 83 THEN NULL WHEN 7 THEN - 94 * 30 - - COALESCE ( - 70, + + CAST ( COALESCE ( + 2, 30 + + 52 + - + 16 ) AS REAL ) ) + MIN ( 93 ) * + + 35 ELSE + + COUNT ( DISTINCT + 2 ) END + - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT DISTINCT 43 * + COUNT( DISTINCT 22 )
----
43

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT 43 * + COUNT ( DISTINCT 22 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT NULLIF ( - - COUNT( * ), COUNT( * ) ) * + + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8925
SELECT NULLIF ( - - COUNT ( * ), COUNT ( * ) ) * + + 60 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8926
SELECT CAST( - + 13 AS SIGNED ) + 72
----
59

skipif mysql # not compatible
query I rowsort label-8926
SELECT CAST ( - + 13 AS INTEGER ) + 72
----
59

query II rowsort
SELECT DISTINCT 19 - + + 53 AS col1, - 77
----
-34
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8928
SELECT ALL 78 * + - CAST( - + 36 AS SIGNED )
----
2808

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL 78 * + - CAST ( - + 36 AS INTEGER )
----
2808

query II rowsort
SELECT 91 + - - 30 AS col0, 41
----
121
41

query I rowsort
SELECT ALL 42 * - + 9 AS col2
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT - CASE - 62 WHEN NULLIF ( - - NULLIF ( - 72, 50 * + 29 + + MAX( 75 ) ), + 23 * + COUNT( DISTINCT 26 ) / + 64 * - + COALESCE ( + - 11, - 31 - COUNT( * ), + 76 ) + 57 ) * + + COUNT( * ) * - COUNT( * ) + 10 * + 58 THEN - - 5 * + ( + 63 ) WHEN - + 71 THEN - - ( 1 ) * + + 73 * COALESCE ( - + ( - - 72 ), + COUNT( * ) * - + 23 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8931
SELECT - CASE - 62 WHEN NULLIF ( - - NULLIF ( - 72, 50 * + 29 + + MAX ( 75 ) ), + 23 * + COUNT ( DISTINCT 26 ) / + 64 * - + COALESCE ( + - 11, - 31 - COUNT ( * ), + 76 ) + 57 ) * + + COUNT ( * ) * - COUNT ( * ) + 10 * + 58 THEN - - 5 * + ( + 63 ) WHEN - + 71 THEN - - ( 1 ) * + + 73 * COALESCE ( - + ( - - 72 ), + COUNT ( * ) * - + 23 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8932
SELECT ALL - COUNT( * ) / - CASE 86 WHEN + COALESCE ( - 58, 21 * 70, 17 * - CAST( NULL AS SIGNED ) * + 1 ) THEN 87 + CAST( NULL AS SIGNED ) + + 91 WHEN + ( 75 ) THEN + + AVG ( DISTINCT + 37 ) * + + 59 / + 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL - COUNT ( * ) / - CASE 86 WHEN + COALESCE ( - 58, 21 * 70, 17 * - CAST ( NULL AS INTEGER ) * + 1 ) THEN 87 + CAST ( NULL AS INTEGER ) + + 91 WHEN + ( 75 ) THEN + + AVG ( DISTINCT + 37 ) * + + 59 / + 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8933
SELECT - 67 * + 63 * - + 94 * 98 AS col1, SUM( DISTINCT + + 19 )
----
38883852
19

skipif mysql # not compatible
query II rowsort label-8933
SELECT - 67 * + 63 * - + 94 * 98 AS col1, SUM ( DISTINCT + + 19 )
----
38883852
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT DISTINCT - 99 + + 93 DIV + 97 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT - 99 + + 93 / + 97 AS col2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8935
SELECT DISTINCT + 82 / - - 75 * - + 71 / + + 37 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT + 82 / - - 75 * - + 71 / + + 37 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( 10 ) col1
----
10

onlyif mysql # DIV for integer division: 
query II rowsort label-8937
SELECT ALL - 49 * 24 DIV - 87 + 46, - 21 + - - 21 + + 10 AS col1
----
59
10

skipif mysql # not compatible
query II rowsort label-8937
SELECT ALL - 49 * 24 / - 87 + 46, - 21 + - - 21 + + 10 AS col1
----
59
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8938
SELECT + COUNT( * ) + + COUNT( - NULLIF ( - 63, 82 * + CASE + 68 WHEN CAST( + + 59 AS SIGNED ) THEN NULL WHEN - 3 + - 50 * - 26 THEN - - 40 ELSE NULL END ) )
----
2

skipif mysql # not compatible
query I rowsort label-8938
SELECT + COUNT ( * ) + + COUNT ( - NULLIF ( - 63, 82 * + CASE + 68 WHEN CAST ( + + 59 AS INTEGER ) THEN NULL WHEN - 3 + - 50 * - 26 THEN - - 40 ELSE NULL END ) )
----
2

query I rowsort
SELECT 99 * 32
----
3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT DISTINCT + CAST( + 13 AS SIGNED ) + - 35 + 24 - - 51
----
53

skipif mysql # not compatible
query I rowsort label-8940
SELECT DISTINCT + CAST ( + 13 AS INTEGER ) + - 35 + 24 - - 51
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT - MIN( DISTINCT + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-8941
SELECT - MIN ( DISTINCT + 44 )
----
-44

query I rowsort
SELECT ALL + 89 + 15 + 53
----
157

query I rowsort
SELECT ALL + 14 * + 62 * + 84 AS col0
----
72912

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT COUNT( + 95 ) + 80 + - 34 + - 67 * + 39 * - ( + - 17 ) AS col0
----
-44374

skipif mysql # not compatible
query I rowsort label-8944
SELECT COUNT ( + 95 ) + 80 + - 34 + - 67 * + 39 * - ( + - 17 ) AS col0
----
-44374

query I rowsort
SELECT ALL - 22 + + + 13
----
-9

query I rowsort
SELECT ALL + 64 + - ( - 15 )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8947
SELECT NULLIF ( MAX( ALL - + 42 ), + 20 ), + 17 AS col2
----
-42
17

skipif mysql # not compatible
query II rowsort label-8947
SELECT NULLIF ( MAX ( ALL - + 42 ), + 20 ), + 17 AS col2
----
-42
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8948
SELECT + 50 * CAST( + + 44 AS SIGNED ) * 73 * 36 col1
----
5781600

skipif mysql # not compatible
query I rowsort label-8948
SELECT + 50 * CAST ( + + 44 AS INTEGER ) * 73 * 36 col1
----
5781600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8949
SELECT DISTINCT - CAST( - 25 AS SIGNED ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT - CAST ( - 25 AS INTEGER ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL COUNT( ALL - 32 )
----
1

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL COUNT ( ALL - 32 )
----
1

query I rowsort
SELECT DISTINCT - 95 - 65
----
-160

query I rowsort
SELECT 60 * 98
----
5880

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL COUNT( * ) * + - COALESCE ( - 31, - 84 ) - - CASE + 74 WHEN - ( + 28 ) / + 25 * + 2 THEN - + 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL COUNT ( * ) * + - COALESCE ( - 31, - 84 ) - - CASE + 74 WHEN - ( + 28 ) / + 25 * + 2 THEN - + 50 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT DISTINCT - CASE MAX( ALL NULLIF ( 46, - 95 ) ) WHEN 69 THEN + 47 WHEN + + ( + - 88 ) THEN - 65 - 21 WHEN - MIN( DISTINCT + - 9 ) * - - 38 + - + 49 THEN NULL ELSE + - 35 END
----
35

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT - CASE MAX ( ALL NULLIF ( 46, - 95 ) ) WHEN 69 THEN + 47 WHEN + + ( + - 88 ) THEN - 65 - 21 WHEN - MIN ( DISTINCT + - 9 ) * - - 38 + - + 49 THEN NULL ELSE + - 35 END
----
35

query I rowsort
SELECT ALL - ( COALESCE ( + - ( - - 55 ), 43, + 88 ) ) AS col1
----
55

query I rowsort
SELECT 40 * - 19 * - - 15 col2
----
-11400

onlyif mysql # DIV for integer division: 
query I rowsort label-8957
SELECT 82 DIV + + 92
----
0

skipif mysql # not compatible
query I rowsort label-8957
SELECT 82 / + + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT COUNT( ALL 81 )
----
1

skipif mysql # not compatible
query I rowsort label-8958
SELECT COUNT ( ALL 81 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT + COUNT( + 81 )
----
1

skipif mysql # not compatible
query I rowsort label-8959
SELECT + COUNT ( + 81 )
----
1

query I rowsort
SELECT 65 * 53
----
3445

query I rowsort
SELECT DISTINCT + 96 * + + 37 AS col2
----
3552

query I rowsort
SELECT 15 * + 55 - - 74 * + 81 * + + 51 AS col2
----
306519

query I rowsort
SELECT ALL + 24 + 91
----
115

query I rowsort
SELECT DISTINCT + 3 + - + 90 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT - ( 34 ) * - MAX( DISTINCT + - 16 ) + 13 * - 37 AS col1
----
-1025

skipif mysql # not compatible
query I rowsort label-8965
SELECT - ( 34 ) * - MAX ( DISTINCT + - 16 ) + 13 * - 37 AS col1
----
-1025

query I rowsort
SELECT + 56 * + 48 AS col0
----
2688

query I rowsort
SELECT ALL 26 + - 39 * 16 AS col2
----
-598

onlyif mysql # aggregate syntax: 
query II rowsort label-8968
SELECT + - 45 col1, 75 * + 32 + - 0 - - - NULLIF ( + 21, + + 47 + + - ( - 94 ) + + COALESCE ( + 14, - COUNT( * ) * - + NULLIF ( + 29, SUM( DISTINCT - 22 ) ) / - COUNT( 81 ) + + ( + 6 ) ) + 83 * 9 ) + - CASE 98 WHEN + COALESCE ( - 34, + - 47 ) / + - 17 + + + 92 THEN NULL WHEN + - ( - 56 ) * - - 19 THEN + + COUNT( * ) + - COUNT( * ) END + + MIN( + - 43 ) + COALESCE ( + 62, COUNT( ALL + 2 ) * 18 + - - 9, + - 96 ) / + 51 - + 99
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-8968
SELECT + - 45 col1, 75 * + 32 + - 0 - - - NULLIF ( + 21, + + 47 + + - ( - 94 ) + + COALESCE ( + 14, - COUNT ( * ) * - + NULLIF ( + 29, SUM ( DISTINCT - 22 ) ) / - COUNT ( 81 ) + + ( + 6 ) ) + 83 * 9 ) + - CASE 98 WHEN + COALESCE ( - 34, + - 47 ) / + - 17 + + + 92 THEN NULL WHEN + - ( - 56 ) * - - 19 THEN + + COUNT ( * ) + - COUNT ( * ) END + + MIN ( + - 43 ) + COALESCE ( + 62, COUNT ( ALL + 2 ) * 18 + - - 9, + - 96 ) / + 51 - + 99
----
-45
NULL

query I rowsort
SELECT ALL + 53 + - 57 AS col0
----
-4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8970
SELECT + - CAST( NULL AS DECIMAL ) * + + 80 + - 11 - + CASE CAST( NULL AS SIGNED ) WHEN + 78 + - 85 THEN + + 96 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8970
SELECT + - CAST ( NULL AS REAL ) * + + 80 + - 11 - + CASE CAST ( NULL AS INTEGER ) WHEN + 78 + - 85 THEN + + 96 END AS col0
----
NULL

query I rowsort
SELECT - - ( + + 42 ) AS col2
----
42

query I rowsort
SELECT + - 15 + + 56
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8973
SELECT CAST( NULL AS DECIMAL ) * + 29 + + 63 + 21 + - COUNT( * ) * CAST( NULL AS SIGNED ) - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT CAST ( NULL AS REAL ) * + 29 + + 63 + 21 + - COUNT ( * ) * CAST ( NULL AS INTEGER ) - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT + + COUNT( * ) + + CASE 92 WHEN + + 56 THEN + - ( - - COUNT( * ) ) + COUNT( * ) * + 73 * COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT + + COUNT ( * ) + + CASE 92 WHEN + + 56 THEN + - ( - - COUNT ( * ) ) + COUNT ( * ) * + 73 * COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 59 + + 26
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT + MIN( 87 ) * 31 AS col0
----
2697

skipif mysql # not compatible
query I rowsort label-8976
SELECT + MIN ( 87 ) * 31 AS col0
----
2697

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL MIN( ALL + - 82 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL MIN ( ALL + - 82 ) AS col0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-8978
SELECT + + ( - 15 ) DIV 16 + + 99
----
99

skipif mysql # not compatible
query I rowsort label-8978
SELECT + + ( - 15 ) / 16 + + 99
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT DISTINCT - 26 + COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT - 26 + COUNT ( * ) AS col1
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8980
SELECT ALL - 77 DIV - 42 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL - 77 / - 42 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT + + 38 + - COUNT( ALL - 30 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-8981
SELECT + + 38 + - COUNT ( ALL - 30 ) AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8982
SELECT - + 33 DIV - 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8982
SELECT - + 33 / - 74 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT + 33 * 8 * - - COUNT( * )
----
264

skipif mysql # not compatible
query I rowsort label-8983
SELECT + 33 * 8 * - - COUNT ( * )
----
264

query I rowsort
SELECT ALL - 90 * 86 AS col0
----
-7740

query II rowsort
SELECT ALL 11 AS col0, 50 AS col0
----
11
50

query II rowsort
SELECT DISTINCT 62 AS col2, NULLIF ( - + 99, - 42 * 12 + + 55 )
----
62
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-8987
SELECT DISTINCT NULLIF ( - 48, + - MIN( 73 ) ) AS col2, - ( + NULLIF ( - 33, COUNT( * ) + + 78 ) ) AS col1
----
-48
33

skipif mysql # not compatible
query II rowsort label-8987
SELECT DISTINCT NULLIF ( - 48, + - MIN ( 73 ) ) AS col2, - ( + NULLIF ( - 33, COUNT ( * ) + + 78 ) ) AS col1
----
-48
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT ALL CASE - - SUM( DISTINCT ( - 27 ) ) WHEN 19 THEN 28 - 86 / + 11 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL CASE - - SUM ( DISTINCT ( - 27 ) ) WHEN 19 THEN 28 - 86 / + 11 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT - COUNT( * ) - + + COALESCE ( - 89, 98 ) * 6 AS col1
----
533

skipif mysql # not compatible
query I rowsort label-8989
SELECT - COUNT ( * ) - + + COALESCE ( - 89, 98 ) * 6 AS col1
----
533

onlyif mysql # aggregate syntax: 
query II rowsort label-8990
SELECT - 62 + - COUNT( * ) AS col2, ( 44 )
----
-63
44

skipif mysql # not compatible
query II rowsort label-8990
SELECT - 62 + - COUNT ( * ) AS col2, ( 44 )
----
-63
44

query I rowsort
SELECT + 91 + + 68 * 61
----
4239

query I rowsort
SELECT + ( + 81 ) AS col0
----
81

query II rowsort
SELECT ( + COALESCE ( NULLIF ( + + COALESCE ( - 91, - 40 ), - 56 * + 18 ), - ( 75 ), - + 80 ) ) AS col2, 4
----
-91
4

query I rowsort
SELECT - ( - 52 ) - - 52 AS col1
----
104

query I rowsort
SELECT - 32 * + - ( + 67 )
----
2144

query II rowsort
SELECT ALL + 20, - 63 AS col2
----
20
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-8997
SELECT 19 DIV - 85 + + 57 + + 45
----
102

skipif mysql # not compatible
query I rowsort label-8997
SELECT 19 / - 85 + + 57 + + 45
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8998
SELECT CASE 61 WHEN - + 47 THEN - 54 * - 93 * 46 + - - 47 END * + 55 * - SUM( - - 74 ) * - + ( + 87 ) - + CAST( NULL AS SIGNED ) * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8998
SELECT CASE 61 WHEN - + 47 THEN - 54 * - 93 * 46 + - - 47 END * + 55 * - SUM ( - - 74 ) * - + ( + 87 ) - + CAST ( NULL AS INTEGER ) * + 86
----
NULL

query II rowsort
SELECT DISTINCT + 98 AS col2, ( + 93 )
----
98
93

query I rowsort
SELECT ( 13 ) col0
----
13

query I rowsort
SELECT DISTINCT + NULLIF ( + 50, - 98 )
----
50

query I rowsort
SELECT DISTINCT 25 * 6 AS col2
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL + 0 * ( - - 15 ) * 67 + - - NULLIF ( COUNT( * ), 47 / - + 16 ) * + 85
----
85

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL + 0 * ( - - 15 ) * 67 + - - NULLIF ( COUNT ( * ), 47 / - + 16 ) * + 85
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9004
SELECT + 55 * COUNT( * ) * 23 * - + COUNT( * ) + + CAST( COUNT( * ) AS SIGNED ) + - - 85 + MIN( - - 66 ) * - NULLIF ( - COUNT( * ), 46 * - 31 - + + 96 * + + CAST( NULL AS SIGNED ) / + COALESCE ( 95, + 50 ) )
----
-1113

skipif mysql # not compatible
query I rowsort label-9004
SELECT + 55 * COUNT ( * ) * 23 * - + COUNT ( * ) + + CAST ( COUNT ( * ) AS INTEGER ) + - - 85 + MIN ( - - 66 ) * - NULLIF ( - COUNT ( * ), 46 * - 31 - + + 96 * + + CAST ( NULL AS INTEGER ) / + COALESCE ( 95, + 50 ) )
----
-1113

query I rowsort
SELECT DISTINCT 26 * + + 20 * 13 + 53 + + 13
----
6826

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT ALL 63 * ( - - COUNT( * ) ) + - SUM( DISTINCT - 90 )
----
153

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL 63 * ( - - COUNT ( * ) ) + - SUM ( DISTINCT - 90 )
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT NULLIF ( - ( - SUM( 52 ) ), + - NULLIF ( COUNT( * ), 74 * 24 ) ) col0
----
52

skipif mysql # not compatible
query I rowsort label-9007
SELECT NULLIF ( - ( - SUM ( 52 ) ), + - NULLIF ( COUNT ( * ), 74 * 24 ) ) col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL - COUNT( * ) * NULLIF ( - 86, + + SUM( + 36 ) ) + - 52
----
34

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL - COUNT ( * ) * NULLIF ( - 86, + + SUM ( + 36 ) ) + - 52
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9009
SELECT - + 44 DIV + + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9009
SELECT - + 44 / + + 97 AS col0
----
0

query I rowsort
SELECT - 20 * + 62 col1
----
-1240

query II rowsort
SELECT 42 AS col1, 68 AS col0
----
42
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9012
SELECT ALL + COALESCE ( - 4, + CASE 14 WHEN + 75 THEN 76 + 57 * - 15 WHEN 65 * + 2 + 22 THEN + COUNT( * ) WHEN - COUNT( * ) * + 0 / + - 64 + - 43 THEN NULL ELSE - + ( - 67 ) * - 6 + + 45 + 81 * - 80 * + 41 * + + MAX( ALL CAST( NULL AS SIGNED ) ) + - + COUNT( * ) END, - CAST( 0 AS SIGNED ) ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL + COALESCE ( - 4, + CASE 14 WHEN + 75 THEN 76 + 57 * - 15 WHEN 65 * + 2 + 22 THEN + COUNT ( * ) WHEN - COUNT ( * ) * + 0 / + - 64 + - 43 THEN NULL ELSE - + ( - 67 ) * - 6 + + 45 + 81 * - 80 * + 41 * + + MAX ( ALL CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) END, - CAST ( 0 AS INTEGER ) ) col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9013
SELECT DISTINCT - 69 * CAST( COUNT( * ) AS SIGNED ) + - 29 + - ( + 63 ) + + 96 + - 96 DIV + ( ( 20 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-9013
SELECT DISTINCT - 69 * CAST ( COUNT ( * ) AS INTEGER ) + - 29 + - ( + 63 ) + + 96 + - 96 / + ( ( 20 ) )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9014
SELECT ALL COUNT( * ), 88 * + 54 * + + COALESCE ( - 99, - 28, + + 77, - - COUNT( * ) - - 29 ) AS col2
----
1
-470448

skipif mysql # not compatible
query II rowsort label-9014
SELECT ALL COUNT ( * ), 88 * + 54 * + + COALESCE ( - 99, - 28, + + 77, - - COUNT ( * ) - - 29 ) AS col2
----
1
-470448

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT ALL - NULLIF ( + 31, - COUNT( * ) + 14 * - 33 + + 69 )
----
-31

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL - NULLIF ( + 31, - COUNT ( * ) + 14 * - 33 + + 69 )
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-9016
SELECT - - 5 AS col0, - 52 + + COUNT( + 70 ) * + + CASE + + 34 WHEN - COUNT( * ) - 47 THEN NULL WHEN + 40 * - COALESCE ( - COALESCE ( - + COUNT( * ), - - 50 ), ( + - 51 ) ) THEN + ( - 6 ) + 77 / MAX( DISTINCT - - 0 ) END
----
5
NULL

skipif mysql # not compatible
query II rowsort label-9016
SELECT - - 5 AS col0, - 52 + + COUNT ( + 70 ) * + + CASE + + 34 WHEN - COUNT ( * ) - 47 THEN NULL WHEN + 40 * - COALESCE ( - COALESCE ( - + COUNT ( * ), - - 50 ), ( + - 51 ) ) THEN + ( - 6 ) + 77 / MAX ( DISTINCT - - 0 ) END
----
5
NULL

query I rowsort
SELECT ALL + 48 * - + 54 * - 56 * 78 + 39 + + 98 AS col2
----
11321993

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9018
SELECT - + 42 - - 50 * - MIN( ALL + 92 ) * + + COUNT( * ) - + CAST( NULL AS SIGNED ) + COUNT( * ) + + 35 * - + 77 - - 81 * - COUNT( * ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT - + 42 - - 50 * - MIN ( ALL + 92 ) * + + COUNT ( * ) - + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 35 * - + 77 - - 81 * - COUNT ( * ) * - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT - + 29 * + - 6 col2, - 18 * - + 23
----
174
414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9020
SELECT + 59 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT + 59 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL COUNT( * ) * + - 14
----
-14

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL COUNT ( * ) * + - 14
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9022
SELECT DISTINCT COALESCE ( - ( - + 16 ), + COUNT( * ) DIV + NULLIF ( - SUM( DISTINCT + - ( - + 28 ) ), + 21 * + 24 + - 59 * + 62 * - 68 ) - 85, CASE - CASE 94 WHEN + + ( - + 76 ) * ( + 14 ) + - 15 - + + 37 + - 63 * + ( - 19 ) * + 45 + - 30 * - 55 + + + 36 * 8 * - 16 - - + 60 + 51 THEN NULL ELSE CAST( - - 78 AS SIGNED ) END WHEN SUM( + 14 ) THEN + - 15 ELSE - 89 END ) - - COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9022
SELECT DISTINCT COALESCE ( - ( - + 16 ), + COUNT ( * ) / + NULLIF ( - SUM ( DISTINCT + - ( - + 28 ) ), + 21 * + 24 + - 59 * + 62 * - 68 ) - 85, CASE - CASE 94 WHEN + + ( - + 76 ) * ( + 14 ) + - 15 - + + 37 + - 63 * + ( - 19 ) * + 45 + - 30 * - 55 + + + 36 * 8 * - 16 - - + 60 + 51 THEN NULL ELSE CAST ( - - 78 AS INTEGER ) END WHEN SUM ( + 14 ) THEN + - 15 ELSE - 89 END ) - - COUNT ( * ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT ALL NULLIF ( - ( NULLIF ( 83, - + 84 + COUNT( * ) * 62 * - 49 / + - COUNT( DISTINCT - 73 ) * - 43 ) ), - 20 / - 76 + - 84 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL NULLIF ( - ( NULLIF ( 83, - + 84 + COUNT ( * ) * 62 * - 49 / + - COUNT ( DISTINCT - 73 ) * - 43 ) ), - 20 / - 76 + - 84 ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT + COUNT( ALL NULLIF ( - 32, - 87 ) ) - + 38 + + - 23
----
-60

skipif mysql # not compatible
query I rowsort label-9024
SELECT + COUNT ( ALL NULLIF ( - 32, - 87 ) ) - + 38 + + - 23
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT + 74 * COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9025
SELECT + 74 * COUNT ( * ) AS col1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9026
SELECT DISTINCT 3 DIV + 34 * + - 58
----
0

skipif mysql # not compatible
query I rowsort label-9026
SELECT DISTINCT 3 / + 34 * + - 58
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9027
SELECT DISTINCT 20 DIV - 15 AS col1, + ( + COUNT( * ) ) * - 84 AS col1
----
-1
-84

skipif mysql # not compatible
query II rowsort label-9027
SELECT DISTINCT 20 / - 15 AS col1, + ( + COUNT ( * ) ) * - 84 AS col1
----
-1
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-9028
SELECT + COALESCE ( + - 11, + - 73 ) * + COALESCE ( 56, + 5, - COUNT( * ) ), + COUNT( * ) AS col0
----
-616
1

skipif mysql # not compatible
query II rowsort label-9028
SELECT + COALESCE ( + - 11, + - 73 ) * + COALESCE ( 56, + 5, - COUNT ( * ) ), + COUNT ( * ) AS col0
----
-616
1

query I rowsort
SELECT - ( - 70 ) + + + ( - + 57 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT ALL 55 * MAX( - 86 ) AS col1
----
-4730

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL 55 * MAX ( - 86 ) AS col1
----
-4730

query I rowsort
SELECT ALL NULLIF ( 2, - - 4 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT + 20 * - SUM( DISTINCT - - 19 )
----
-380

skipif mysql # not compatible
query I rowsort label-9032
SELECT + 20 * - SUM ( DISTINCT - - 19 )
----
-380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9033
SELECT ALL 51 DIV - + COUNT( 52 ) + SUM( DISTINCT + 88 ) + + 82
----
119

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL 51 / - + COUNT ( 52 ) + SUM ( DISTINCT + 88 ) + + 82
----
119

query I rowsort
SELECT ALL + 87 + - 59
----
28

query I rowsort
SELECT ALL - COALESCE ( 71, - 55 ) + + + 20 AS col1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9036
SELECT ALL 96 + - + 45 * CAST( - 72 AS SIGNED ) + - ( + 0 )
----
3336

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL 96 + - + 45 * CAST ( - 72 AS INTEGER ) + - ( + 0 )
----
3336

query II rowsort
SELECT DISTINCT 13 + 41, - 75 AS col1
----
54
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9038
SELECT DISTINCT + 20 + + NULLIF ( - 77, - CAST( NULL AS SIGNED ) ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT + 20 + + NULLIF ( - 77, - CAST ( NULL AS INTEGER ) ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-9039
SELECT ALL - - ( + - MIN( ALL + - 44 ) ) col2, + 49 * + + 34 AS col0
----
44
1666

skipif mysql # not compatible
query II rowsort label-9039
SELECT ALL - - ( + - MIN ( ALL + - 44 ) ) col2, + 49 * + + 34 AS col0
----
44
1666

query I rowsort
SELECT ALL 74 + - 99 AS col2
----
-25

query I rowsort
SELECT DISTINCT + 70 * - - 2 - - + 10
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT ALL - + 36 - + MAX( + 26 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL - + 36 - + MAX ( + 26 ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT DISTINCT - 79 - - 15 + - MAX( DISTINCT + + 5 ) * + COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT - 79 - - 15 + - MAX ( DISTINCT + + 5 ) * + COUNT ( * ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT - CASE + + 15 WHEN + 27 * 73 - + 59 * - - 14 * + COUNT( * ) - 52 THEN - 97 * 90 + 29 END * + 47 + - + 31 + + - 24 * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT - CASE + + 15 WHEN + 27 * 73 - + 59 * - - 14 * + COUNT ( * ) - 52 THEN - 97 * 90 + 29 END * + 47 + - + 31 + + - 24 * + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT SUM( DISTINCT + 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9045
SELECT SUM ( DISTINCT + 39 ) AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9046
SELECT ALL + MIN( DISTINCT - 44 ) * - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL + MIN ( DISTINCT - 44 ) * - ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT 23 + 15, - 19 + + - ( 87 ) AS col0
----
38
-106

query I rowsort
SELECT - ( - 37 ) + - + 97 AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9049
SELECT ALL COALESCE ( 62, CAST( + 25 AS SIGNED ) + CASE COUNT( * ) WHEN - 23 THEN 66 * - MAX( + 96 ) * + 4 END ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL COALESCE ( 62, CAST ( + 25 AS INTEGER ) + CASE COUNT ( * ) WHEN - 23 THEN 66 * - MAX ( + 96 ) * + 4 END ) AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9050
SELECT + COUNT( * ) DIV - 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9050
SELECT + COUNT ( * ) / - 34 AS col1
----
0

query II rowsort
SELECT 92 * - + 17 AS col1, - 83 col2
----
-1564
-83

query II rowsort
SELECT ALL 7 AS col2, + 41 * - 89 AS col0
----
7
-3649

query I rowsort
SELECT 47 + 60 col1
----
107

query II rowsort
SELECT - 21 AS col2, - 74 AS col1
----
-21
-74

query II rowsort
SELECT DISTINCT 22, + 42 AS col0
----
22
42

query I rowsort
SELECT ALL 14 * 21 * + - 7 AS col0
----
-2058

onlyif mysql # aggregate syntax: 
query II rowsort label-9057
SELECT MAX( DISTINCT - - 42 ) * + 24 AS col2, + 66
----
1008
66

skipif mysql # not compatible
query II rowsort label-9057
SELECT MAX ( DISTINCT - - 42 ) * + 24 AS col2, + 66
----
1008
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9058
SELECT ALL + 55 + - CAST( 39 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL + 55 + - CAST ( 39 AS INTEGER )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9059
SELECT DISTINCT - 1 + - ( + 76 ) + + - 49 * CAST( NULL AS SIGNED ) + + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT - 1 + - ( + 76 ) + + - 49 * CAST ( NULL AS INTEGER ) + + + 40
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9060
SELECT ALL 8 + COALESCE ( COUNT( * ), - + CAST( NULL AS SIGNED ) ) * - ( 71 )
----
-63

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL 8 + COALESCE ( COUNT ( * ), - + CAST ( NULL AS INTEGER ) ) * - ( 71 )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9061
SELECT 81 - + 84 + SUM( DISTINCT 17 ) DIV - - 32
----
-3

skipif mysql # not compatible
query I rowsort label-9061
SELECT 81 - + 84 + SUM ( DISTINCT 17 ) / - - 32
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9062
SELECT - 83 AS col2, + 94 - COUNT( * ) + - - 27 * 23 + + MAX( 82 ) AS col1
----
-83
796

skipif mysql # not compatible
query II rowsort label-9062
SELECT - 83 AS col2, + 94 - COUNT ( * ) + - - 27 * 23 + + MAX ( 82 ) AS col1
----
-83
796

query I rowsort
SELECT ALL 78 * 96
----
7488

query I rowsort
SELECT ( + 58 ) + - + 52
----
6

query II rowsort
SELECT 49, + 66 col0
----
49
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9066
SELECT ALL 72 + - COALESCE ( + + 38, + ( + - 42 ) * 4 * + CAST( NULL AS SIGNED ) ) + 8 - - ( + ( + 9 ) ) DIV NULLIF ( - - 47, - 79 ) + + 87 - - 31 DIV - 97 AS col1
----
129

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL 72 + - COALESCE ( + + 38, + ( + - 42 ) * 4 * + CAST ( NULL AS INTEGER ) ) + 8 - - ( + ( + 9 ) ) / NULLIF ( - - 47, - 79 ) + + 87 - - 31 / - 97 AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT 71 + - SUM( ALL - 56 ) + - + 44 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-9067
SELECT 71 + - SUM ( ALL - 56 ) + - + 44 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT + COUNT( * ) * 29 * 43 * + 6 + + COUNT( + 51 )
----
7483

skipif mysql # not compatible
query I rowsort label-9068
SELECT + COUNT ( * ) * 29 * 43 * + 6 + + COUNT ( + 51 )
----
7483

query I rowsort
SELECT ALL 19 * 43 * - + 6 AS col2
----
-4902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9070
SELECT 89 + 50 + - + 28 * + CAST( NULL AS SIGNED ) / 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9070
SELECT 89 + 50 + - + 28 * + CAST ( NULL AS INTEGER ) / 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT ALL + 22 + 96 + - 55 + - 0 + + - COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL + 22 + 96 + - 55 + - 0 + + - COUNT ( * ) AS col1
----
62

query I rowsort
SELECT + + ( - 72 ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT - 11 + - + COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9073
SELECT - 11 + - + COUNT ( * ) AS col2
----
-12

query I rowsort
SELECT - 0 * - 70 + + - 14 * - 67 * 46 AS col2
----
43148

query II rowsort
SELECT - 20, 71 col2
----
-20
71

query I rowsort
SELECT 58 + - 55 * + 9 * + + 11 AS col1
----
-5387

query I rowsort
SELECT ALL 8 * - - 29
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT - 78 * + - MAX( DISTINCT 64 ) AS col0
----
4992

skipif mysql # not compatible
query I rowsort label-9078
SELECT - 78 * + - MAX ( DISTINCT 64 ) AS col0
----
4992

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9079
SELECT + COALESCE ( - 76, 61 DIV - SUM( - - 21 ) + - 88, + 10 * + 69, + - 31 ) AS col1, 30 * 91 * - 38 AS col0
----
-76
-103740

skipif mysql # not compatible
query II rowsort label-9079
SELECT + COALESCE ( - 76, 61 / - SUM ( - - 21 ) + - 88, + 10 * + 69, + - 31 ) AS col1, 30 * 91 * - 38 AS col0
----
-76
-103740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9080
SELECT + 0 + + COUNT( * ) / + CASE + 59 WHEN - ( - 35 ) * + 87 + - + 43 * + 46 * + + 64 * + 28 THEN + CAST( + 81 AS SIGNED ) END * COUNT( * ) - - - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9080
SELECT + 0 + + COUNT ( * ) / + CASE + 59 WHEN - ( - 35 ) * + 87 + - + 43 * + 46 * + + 64 * + 28 THEN + CAST ( + 81 AS INTEGER ) END * COUNT ( * ) - - - 7 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - - 93 AS col0, - 43 AS col2
----
93
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-9082
SELECT ALL - - 67, CASE - COUNT( * ) WHEN 31 * 77 THEN + + 75 * 0 END AS col1
----
67
NULL

skipif mysql # not compatible
query II rowsort label-9082
SELECT ALL - - 67, CASE - COUNT ( * ) WHEN 31 * 77 THEN + + 75 * 0 END AS col1
----
67
NULL

query II rowsort
SELECT - - 7 AS col1, + 2
----
7
2

query I rowsort
SELECT DISTINCT - + 62 * - - 33 + - 87 AS col2
----
-2133

query I rowsort
SELECT ALL + 86 + + 3 * - + ( + + 18 )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9086
SELECT ALL - 32 * CASE + 62 WHEN + - 97 + - 44 THEN - + 77 DIV - 99 WHEN 87 THEN NULL ELSE + + MIN( 53 ) END AS col1
----
-1696

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL - 32 * CASE + 62 WHEN + - 97 + - 44 THEN - + 77 / - 99 WHEN 87 THEN NULL ELSE + + MIN ( 53 ) END AS col1
----
-1696

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT 50 - - 33 + - - 33 + - ( - 65 ) * + 73 + + 49 + 32 * 22 * - 16 * + + 41 + + - MIN( ALL 12 ) AS col0
----
-456926

skipif mysql # not compatible
query I rowsort label-9087
SELECT 50 - - 33 + - - 33 + - ( - 65 ) * + 73 + + 49 + 32 * 22 * - 16 * + + 41 + + - MIN ( ALL 12 ) AS col0
----
-456926

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT ALL MAX( 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL MAX ( 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT MIN( DISTINCT - - COALESCE ( + 73, 42 ) ) + - + COUNT( + - 34 )
----
72

skipif mysql # not compatible
query I rowsort label-9089
SELECT MIN ( DISTINCT - - COALESCE ( + 73, 42 ) ) + - + COUNT ( + - 34 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ALL NULLIF ( - MIN( - 97 ), + ( + 28 ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL NULLIF ( - MIN ( - 97 ), + ( + 28 ) ) AS col0
----
97

query I rowsort
SELECT ALL - 87 + + - 70
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT ALL COUNT( * ) + + COALESCE ( - 8, + - 67 * + 1 ) - + 33 + - 16
----
-56

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL COUNT ( * ) + + COALESCE ( - 8, + - 67 * + 1 ) - + 33 + - 16
----
-56

query I rowsort
SELECT DISTINCT + 51 + - 9 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9094
SELECT - CAST( NULL AS SIGNED ) - - + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT - CAST ( NULL AS INTEGER ) - - + 16 AS col0
----
NULL

query I rowsort
SELECT ALL + 24 + + 57 col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT + 36 + + + COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-9096
SELECT + 36 + + + COUNT ( * ) AS col2
----
37

query I rowsort
SELECT DISTINCT 60 * - 39 AS col1
----
-2340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9098
SELECT ALL - 25 * - MAX( ALL - 6 ) * 4 - - CAST( 74 AS SIGNED ) col1
----
-526

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL - 25 * - MAX ( ALL - 6 ) * 4 - - CAST ( 74 AS INTEGER ) col1
----
-526

query I rowsort
SELECT ALL + - ( - 17 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT ALL - + COUNT( * ) * - - 76 * + 4
----
-304

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL - + COUNT ( * ) * - - 76 * + 4
----
-304

query I rowsort
SELECT + - 99 * - 79
----
7821

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9102
SELECT + + COALESCE ( 24, - CASE + - 81 WHEN + + ( + COUNT( * ) ) THEN NULL WHEN ( + MAX( ALL - + 14 ) ) * - - CAST( + 50 AS DECIMAL ) * - - ( - 5 ) THEN - 1 END * COALESCE ( - + NULLIF ( 9, + 66 * + - MIN( 74 ) + + COALESCE ( 18, 57, + 2 ) - - NULLIF ( - + 16, 86 * + + 85 + - MIN( + 67 ) DIV + 1 ) * - - 56 * - - 82 + + + 59 ), - SUM( + - 12 ) ) DIV + - 9, - 43, 14 * + - 55 + 82 ) - + ( + + 82 )
----
-58

skipif mysql # not compatible
query I rowsort label-9102
SELECT + + COALESCE ( 24, - CASE + - 81 WHEN + + ( + COUNT ( * ) ) THEN NULL WHEN ( + MAX ( ALL - + 14 ) ) * - - CAST ( + 50 AS REAL ) * - - ( - 5 ) THEN - 1 END * COALESCE ( - + NULLIF ( 9, + 66 * + - MIN ( 74 ) + + COALESCE ( 18, 57, + 2 ) - - NULLIF ( - + 16, 86 * + + 85 + - MIN ( + 67 ) / + 1 ) * - - 56 * - - 82 + + + 59 ), - SUM ( + - 12 ) ) / + - 9, - 43, 14 * + - 55 + 82 ) - + ( + + 82 )
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9103
SELECT + - 55 + + 22 DIV + 58 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-9103
SELECT + - 55 + + 22 / + 58 AS col1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9104
SELECT + 98 DIV 98 * + 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9104
SELECT + 98 / 98 * + 37 AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9105
SELECT ALL + + ( - CAST( + - 44 AS SIGNED ) )
----
44

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL + + ( - CAST ( + - 44 AS INTEGER ) )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9106
SELECT DISTINCT + 16 DIV 47 * + + 77 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT + 16 / 47 * + + 77 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9107
SELECT 89 * + + 88 * COUNT( * ) - - 91 DIV - 77 + 31 * + COUNT( * ) + - 59
----
7803

skipif mysql # not compatible
query I rowsort label-9107
SELECT 89 * + + 88 * COUNT ( * ) - - 91 / - 77 + 31 * + COUNT ( * ) + - 59
----
7803

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT ALL COUNT( ALL - 88 ) * - 64 + ( - 63 ) AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL COUNT ( ALL - 88 ) * - 64 + ( - 63 ) AS col0
----
-127

query I rowsort
SELECT ALL + + 65 col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT + - 97 * - 78 + 28 + - 89 + - + COUNT( * ) AS col1
----
7504

skipif mysql # not compatible
query I rowsort label-9110
SELECT + - 97 * - 78 + 28 + - 89 + - + COUNT ( * ) AS col1
----
7504

query I rowsort
SELECT + 27 + + 45 AS col1
----
72

query I rowsort
SELECT + 45 * - + 46
----
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT SUM( ALL + NULLIF ( - - 5, - - 4 * - 5 + + 34 ) )
----
5

skipif mysql # not compatible
query I rowsort label-9113
SELECT SUM ( ALL + NULLIF ( - - 5, - - 4 * - 5 + + 34 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ALL + COUNT( * ) + + + 74
----
75

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL + COUNT ( * ) + + + 74
----
75

query I rowsort
SELECT ALL + 38 + + 13
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT - COUNT( * ) * - 78
----
78

skipif mysql # not compatible
query I rowsort label-9116
SELECT - COUNT ( * ) * - 78
----
78

query I rowsort
SELECT - 19 * - 45
----
855

query I rowsort
SELECT ALL ( - 64 ) col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL MAX( ALL 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL MAX ( ALL 49 ) AS col0
----
49

query I rowsort
SELECT DISTINCT ( + 68 )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9121
SELECT DISTINCT - 75 - MAX( ALL + - 94 ) DIV 92
----
-74

skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT - 75 - MAX ( ALL + - 94 ) / 92
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT ALL - ( 95 ) DIV - - NULLIF ( ( 2 ), + - 82 )
----
-47

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL - ( 95 ) / - - NULLIF ( ( 2 ), + - 82 )
----
-47

query I rowsort
SELECT - 83 * 78 * + 78
----
-504972

query I rowsort
SELECT - 1 - + + ( 83 ) * - + 90
----
7469

query I rowsort
SELECT - 59 * 18 AS col1
----
-1062

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT DISTINCT ( + CASE - COUNT( ALL - 92 ) WHEN + 98 THEN - ( - 70 ) * 85 WHEN - 44 + - 77 THEN NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT ( + CASE - COUNT ( ALL - 92 ) WHEN + 98 THEN - ( - 70 ) * 85 WHEN - 44 + - 77 THEN NULL END ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9127
SELECT ALL ( ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL ( ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT - 89 * + 33
----
-2937

query I rowsort
SELECT - ( 33 ) * + 25 + COALESCE ( - 30, 42 ) * - 74 AS col0
----
1395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9130
SELECT DISTINCT + CASE 68 WHEN CASE 6 WHEN - 79 THEN 81 + + CAST( COUNT( * ) AS SIGNED ) * 58 WHEN - 54 THEN NULL END * 78 THEN NULL WHEN 2 * 58 THEN NULL ELSE + 43 * COALESCE ( 26, 89, + ( + COALESCE ( - CASE 44 WHEN 74 / CAST( - COUNT( * ) AS SIGNED ) THEN - 86 END, 43, + 90, + 27 ) ) * CAST( CASE NULLIF ( 49, 51 / 97 + - COUNT( * ) ) WHEN 58 THEN - MAX( - CAST( NULL AS SIGNED ) ) ELSE - MAX( ALL 67 ) * - 27 END AS SIGNED ) ) END
----
1118

skipif mysql # not compatible
query I rowsort label-9130
SELECT DISTINCT + CASE 68 WHEN CASE 6 WHEN - 79 THEN 81 + + CAST ( COUNT ( * ) AS INTEGER ) * 58 WHEN - 54 THEN NULL END * 78 THEN NULL WHEN 2 * 58 THEN NULL ELSE + 43 * COALESCE ( 26, 89, + ( + COALESCE ( - CASE 44 WHEN 74 / CAST ( - COUNT ( * ) AS INTEGER ) THEN - 86 END, 43, + 90, + 27 ) ) * CAST ( CASE NULLIF ( 49, 51 / 97 + - COUNT ( * ) ) WHEN 58 THEN - MAX ( - CAST ( NULL AS INTEGER ) ) ELSE - MAX ( ALL 67 ) * - 27 END AS INTEGER ) ) END
----
1118

query I rowsort
SELECT 31 * 60 + 85
----
1945

query I rowsort
SELECT + 47 - 53
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT ALL - CASE COUNT( * ) WHEN COUNT( * ) + 24 THEN - COALESCE ( + 95, + COUNT( * ) / 26 ) WHEN 50 THEN NULL WHEN + 80 / + 73 THEN NULL END * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL - CASE COUNT ( * ) WHEN COUNT ( * ) + 24 THEN - COALESCE ( + 95, + COUNT ( * ) / 26 ) WHEN 50 THEN NULL WHEN + 80 / + 73 THEN NULL END * 38
----
NULL

query I rowsort
SELECT ALL + ( 49 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT + MAX( - 43 ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-9135
SELECT + MAX ( - 43 ) col1
----
-43

query I rowsort
SELECT - 93 + 9 AS col1
----
-84

query I rowsort
SELECT ALL 5 * 8
----
40

query I rowsort
SELECT ALL - 58 * + ( - 45 ) col1
----
2610

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9139
SELECT ALL + 78 DIV 58 + ( CAST( 3 AS SIGNED ) )
----
4

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL + 78 / 58 + ( CAST ( 3 AS INTEGER ) )
----
4

query I rowsort
SELECT + 56 * 18 + 90
----
1098

query I rowsort
SELECT ALL - NULLIF ( - 41, 71 + + 66 ) * 68 AS col2
----
2788

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9142
SELECT ALL 49 DIV 48 + - 74 * ( - MIN( ALL 26 ) * - COUNT( * ) ) AS col2
----
-1923

skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL 49 / 48 + - 74 * ( - MIN ( ALL 26 ) * - COUNT ( * ) ) AS col2
----
-1923

onlyif mysql # DIV for integer division: 
query I rowsort label-9143
SELECT ALL + 62 DIV + 79 + 59
----
59

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL + 62 / + 79 + 59
----
59

query I rowsort
SELECT + ( + 28 ) col0
----
28

query I rowsort
SELECT + ( NULLIF ( - 89, 98 ) ) + 63 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT ( - ( + COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9146
SELECT ( - ( + COUNT ( * ) ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT + COUNT( * ) + - CASE COUNT( DISTINCT 65 ) + ( 82 + + 49 * + SUM( ALL - COALESCE ( - 75, 87 * - 20, 26 + 95 ) ) ) * - 83 WHEN MAX( + ( 73 ) ) THEN + 83 WHEN 38 THEN - COUNT( DISTINCT + 68 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9147
SELECT + COUNT ( * ) + - CASE COUNT ( DISTINCT 65 ) + ( 82 + + 49 * + SUM ( ALL - COALESCE ( - 75, 87 * - 20, 26 + 95 ) ) ) * - 83 WHEN MAX ( + ( 73 ) ) THEN + 83 WHEN 38 THEN - COUNT ( DISTINCT + 68 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 27 * + 90 AS col0
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT + COUNT( * ) * 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-9149
SELECT + COUNT ( * ) * 67 AS col1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9150
SELECT ALL 39 DIV - 29 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL 39 / - 29 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9151
SELECT DISTINCT + CASE 69 WHEN + 68 * NULLIF ( + 42, CASE WHEN NOT NULL IN ( CAST( NULL AS SIGNED ) ) THEN NULL ELSE + 56 END ) THEN + SUM( ALL 39 ) - 85 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT + CASE 69 WHEN + 68 * NULLIF ( + 42, CASE WHEN NOT NULL IN ( CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + 56 END ) THEN + SUM ( ALL 39 ) - 85 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9152
SELECT COUNT( + 17 ) DIV - 11 col1
----
0

skipif mysql # not compatible
query I rowsort label-9152
SELECT COUNT ( + 17 ) / - 11 col1
----
0

query I rowsort
SELECT ALL 91 + - 69 AS col2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9154
SELECT ALL 3 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL 3 / + 95
----
0

query I rowsort
SELECT ALL 62 + 52 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT DISTINCT - MAX( ALL 57 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT - MAX ( ALL 57 ) AS col0
----
-57

query I rowsort
SELECT ALL 85 * + ( 89 )
----
7565

query I rowsort
SELECT 91 + 48 * 82
----
4027

query I rowsort
SELECT DISTINCT 97 + 19
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT ( + COUNT( * ) ) + + 33
----
34

skipif mysql # not compatible
query I rowsort label-9160
SELECT ( + COUNT ( * ) ) + + 33
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT ALL 32 - - MIN( DISTINCT + 22 )
----
54

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL 32 - - MIN ( DISTINCT + 22 )
----
54

query I rowsort
SELECT ALL 49 * - 45 AS col1
----
-2205

query I rowsort
SELECT 81 + 56 * 13
----
809

query I rowsort
SELECT ( 94 ) - - ( 45 ) * 22
----
1084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9165
SELECT DISTINCT NULLIF ( + 58, CAST( NULL AS SIGNED ) ) - + 89
----
-31

skipif mysql # not compatible
query I rowsort label-9165
SELECT DISTINCT NULLIF ( + 58, CAST ( NULL AS INTEGER ) ) - + 89
----
-31

query I rowsort
SELECT 19 * - 87 AS col2
----
-1653

query I rowsort
SELECT ALL - ( + 5 ) * 86
----
-430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9168
SELECT COUNT( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9168
SELECT COUNT ( CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT + 10 * 45 AS col2
----
450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9170
SELECT MAX( 83 ) DIV 31 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9170
SELECT MAX ( 83 ) / 31 AS col2
----
2

query I rowsort
SELECT ALL + + ( 20 ) * - 39 AS col2
----
-780

query I rowsort
SELECT - ( 72 ) * - 79 AS col1
----
5688

query I rowsort
SELECT 56 * 90 AS col2
----
5040

query I rowsort
SELECT DISTINCT + 60 + 1 * 64 col2
----
124

query I rowsort
SELECT DISTINCT 32 * 99 AS col2
----
3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT DISTINCT CAST( CAST( COALESCE ( + 39, 12 - - 64 ) AS SIGNED ) AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-9176
SELECT DISTINCT CAST ( CAST ( COALESCE ( + 39, 12 - - 64 ) AS INTEGER ) AS INTEGER )
----
39

query I rowsort
SELECT ALL + + 97 + - 48
----
49

query I rowsort
SELECT + NULLIF ( 4, 87 + + 93 )
----
4

query I rowsort
SELECT 36 * + 79
----
2844

query I rowsort
SELECT DISTINCT + + 55 + + 70
----
125

query I rowsort
SELECT 12 * 82
----
984

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT + + MAX( ALL 89 )
----
89

skipif mysql # not compatible
query I rowsort label-9182
SELECT + + MAX ( ALL 89 )
----
89

query I rowsort
SELECT ALL + 17 + 51 AS col0
----
68

query I rowsort
SELECT 92 - 75
----
17

query I rowsort
SELECT ALL - + 42 * 92
----
-3864

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT - COUNT( * ) * 22 + 14
----
-8

skipif mysql # not compatible
query I rowsort label-9186
SELECT - COUNT ( * ) * 22 + 14
----
-8

query I rowsort
SELECT ALL - 26 * 14 AS col2
----
-364

query I rowsort
SELECT - COALESCE ( - 94, + 77, - 45 - + 23 ) AS col0
----
94

query I rowsort
SELECT ALL 92 + + 57 AS col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT DISTINCT 50 * - 8 * - SUM( DISTINCT + 6 ) AS col2
----
2400

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT 50 * - 8 * - SUM ( DISTINCT + 6 ) AS col2
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT ALL + 10 * + - 65 * - CASE NULLIF ( 97, ( 21 ) * + SUM( ALL - 66 ) ) WHEN + 66 + 18 THEN 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL + 10 * + - 65 * - CASE NULLIF ( 97, ( 21 ) * + SUM ( ALL - 66 ) ) WHEN + 66 + 18 THEN 8 END
----
NULL

query I rowsort
SELECT DISTINCT - 55 - + - 52
----
-3

query I rowsort
SELECT 10 * + 38 + 32
----
412

query I rowsort
SELECT 94 - + 9 + + 82 * - ( + 19 )
----
-1473

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT ALL - 38 - - + 79 + + CASE 7 WHEN 91 THEN NULL ELSE COUNT( * ) END
----
42

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL - 38 - - + 79 + + CASE 7 WHEN 91 THEN NULL ELSE COUNT ( * ) END
----
42

query I rowsort
SELECT DISTINCT - ( - + 85 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT - 94 * 53 + COUNT( * )
----
-4981

skipif mysql # not compatible
query I rowsort label-9197
SELECT - 94 * 53 + COUNT ( * )
----
-4981

query I rowsort
SELECT 75 * - 79
----
-5925

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT NULLIF ( 7, 72 ) * + COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9199
SELECT NULLIF ( 7, 72 ) * + COUNT ( * ) AS col0
----
7

query I rowsort
SELECT 84 + - ( 98 ) - - 2 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT COUNT( - - NULLIF ( 20, 52 ) ) + 65 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-9201
SELECT COUNT ( - - NULLIF ( 20, 52 ) ) + 65 AS col1
----
66

query I rowsort
SELECT NULLIF ( - 48, + 77 * - NULLIF ( + 20, + 42 * 11 ) ) * + 87
----
-4176

onlyif mysql # DIV for integer division: 
query I rowsort label-9203
SELECT ALL + 66 DIV + - 24 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL + 66 / + - 24 AS col1
----
-2

query I rowsort
SELECT 10 * - + 45 AS col1
----
-450

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9205
SELECT CAST( NULL AS DECIMAL ) * 30 * + ( 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9205
SELECT CAST ( NULL AS REAL ) * 30 * + ( 41 )
----
NULL

query I rowsort
SELECT ALL ( 26 ) * + 43
----
1118

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT ALL COUNT( * ) * + + 60 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL COUNT ( * ) * + + 60 AS col0
----
60

query I rowsort
SELECT 0 * - 90 * + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT COUNT( * ) * - 19 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-9209
SELECT COUNT ( * ) * - 19 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT 6 + COUNT( DISTINCT - 96 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9210
SELECT 6 + COUNT ( DISTINCT - 96 ) AS col0
----
7

query I rowsort
SELECT DISTINCT - 81 * + 81
----
-6561

query I rowsort
SELECT + 28 + - 82 - NULLIF ( + ( + 32 ), - 7 ) * 84 AS col1
----
-2742

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT NULLIF ( + 31, - 13 * - 48 ) + COUNT( * ) * - 39 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9213
SELECT NULLIF ( + 31, - 13 * - 48 ) + COUNT ( * ) * - 39 AS col1
----
-8

query I rowsort
SELECT DISTINCT 21 * + 69 * 88 AS col1
----
127512

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT 89 - - + ( - 30 ) * + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-9215
SELECT 89 - - + ( - 30 ) * + COUNT ( * )
----
59

query I rowsort
SELECT - + ( 94 )
----
-94

query I rowsort
SELECT - 78 + - 67 * 83
----
-5639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9218
SELECT ALL 48 + - - NULLIF ( 47, CAST( 61 AS SIGNED ) / + 4 ) * + SUM( - 27 ) AS col0
----
-1221

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL 48 + - - NULLIF ( 47, CAST ( 61 AS INTEGER ) / + 4 ) * + SUM ( - 27 ) AS col0
----
-1221

query I rowsort
SELECT 81 + - 13
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9220
SELECT DISTINCT + 37 DIV 25 DIV + 27 + + 95 * 11
----
1045

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT + 37 / 25 / + 27 + + 95 * 11
----
1045

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT 27 + - - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9221
SELECT 27 + - - COUNT ( * )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9222
SELECT - 69 * CASE 33 WHEN + 29 THEN COUNT( * ) WHEN CAST( NULL AS SIGNED ) * + 58 + - CAST( NULL AS DECIMAL ) / - 35 THEN NULL WHEN + 84 THEN NULL ELSE + SUM( NULLIF ( 70, - 59 ) ) END + + 99 col0
----
-4731

skipif mysql # not compatible
query I rowsort label-9222
SELECT - 69 * CASE 33 WHEN + 29 THEN COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) * + 58 + - CAST ( NULL AS REAL ) / - 35 THEN NULL WHEN + 84 THEN NULL ELSE + SUM ( NULLIF ( 70, - 59 ) ) END + + 99 col0
----
-4731

query I rowsort
SELECT 58 * 74 col2
----
4292

query I rowsort
SELECT DISTINCT + - 53 * - 54
----
2862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9225
SELECT - 73 * MIN( DISTINCT 26 ) - - 93 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT - 73 * MIN ( DISTINCT 26 ) - - 93 * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9226
SELECT + - 66 + 32 DIV - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-9226
SELECT + - 66 + 32 / - COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ALL - CASE - + NULLIF ( + COUNT( + 89 ), - COUNT( * ) ) WHEN + 28 + 12 THEN NULL WHEN COALESCE ( - 97, COUNT( * ) ) THEN 28 + + MIN( - 63 ) END * 13 + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL - CASE - + NULLIF ( + COUNT ( + 89 ), - COUNT ( * ) ) WHEN + 28 + 12 THEN NULL WHEN COALESCE ( - 97, COUNT ( * ) ) THEN 28 + + MIN ( - 63 ) END * 13 + - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT - + COUNT( * ) * - NULLIF ( 44, 75 )
----
44

skipif mysql # not compatible
query I rowsort label-9228
SELECT - + COUNT ( * ) * - NULLIF ( 44, 75 )
----
44

query I rowsort
SELECT DISTINCT ( 71 ) * - 54 AS col2
----
-3834

onlyif mysql # DIV for integer division: 
query I rowsort label-9230
SELECT ALL - + 2 DIV - 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL - + 2 / - 85 AS col2
----
0

query I rowsort
SELECT ( - ( + - 35 ) ) * 67 + COALESCE ( ( + 87 ), 18 ) AS col2
----
2432

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT MIN( ALL 7 )
----
7

skipif mysql # not compatible
query I rowsort label-9232
SELECT MIN ( ALL 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT ALL 28 * 88 - + COUNT( * )
----
2463

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL 28 * 88 - + COUNT ( * )
----
2463

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT + SUM( - + 47 ) * - 97
----
4559

skipif mysql # not compatible
query I rowsort label-9234
SELECT + SUM ( - + 47 ) * - 97
----
4559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9235
SELECT ALL + NULLIF ( - + 32, 58 * + COALESCE ( - 36, + CAST( ( + 78 ) AS SIGNED ) * - 69 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL + NULLIF ( - + 32, 58 * + COALESCE ( - 36, + CAST ( ( + 78 ) AS INTEGER ) * - 69 ) )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9236
SELECT - 20 * CAST( NULL AS SIGNED ) * MAX( 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9236
SELECT - 20 * CAST ( NULL AS INTEGER ) * MAX ( 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9237
SELECT COUNT( * ), 17 AS col1
----
1
17

skipif mysql # not compatible
query II rowsort label-9237
SELECT COUNT ( * ), 17 AS col1
----
1
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL + SUM( DISTINCT + - 69 ) * 2 col2
----
-138

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL + SUM ( DISTINCT + - 69 ) * 2 col2
----
-138

query II rowsort
SELECT ALL + 84 col0, 25 AS col2
----
84
25

query I rowsort
SELECT - 78 + + 33
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT - MAX( 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-9241
SELECT - MAX ( 13 )
----
-13

query I rowsort
SELECT ALL + 44 * 98 col1
----
4312

query I rowsort
SELECT - 1 - + 89 + + 19 + - 9 * - 43 * CASE WHEN + CASE - 48 WHEN 18 / - ( - 23 ) THEN 36 END / + 86 IS NULL THEN 11 + - 50 END AS col0
----
-15164

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL SUM( - 81 ) + 0 * + 97
----
-81

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL SUM ( - 81 ) + 0 * + 97
----
-81

query I rowsort
SELECT ALL - ( - 3 ) AS col0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9246
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + 32 + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT + CAST ( NULL AS REAL ) + + 32 + - 13
----
NULL

query I rowsort
SELECT DISTINCT - 33 + + + 11 * + 47 * 44 + 29
----
22744

onlyif mysql # aggregate syntax: 
query II rowsort label-9248
SELECT DISTINCT 40, - COUNT( * ) * - + NULLIF ( - SUM( - 43 ), 21 ) col0
----
40
43

skipif mysql # not compatible
query II rowsort label-9248
SELECT DISTINCT 40, - COUNT ( * ) * - + NULLIF ( - SUM ( - 43 ), 21 ) col0
----
40
43

query I rowsort
SELECT + 62 + + 84
----
146

query I rowsort
SELECT ALL - - 13 + - - COALESCE ( + 21, COALESCE ( + 97, + 40 + + 91 ) ) - 13
----
21

query I rowsort
SELECT ALL 50 * + 30
----
1500

query I rowsort
SELECT DISTINCT + 8 * - 20
----
-160

query I rowsort
SELECT ALL + 50 + + - 76 col0
----
-26

query I rowsort
SELECT - - ( - 64 ) AS col1
----
-64

query II rowsort
SELECT - - 27 AS col2, 73
----
27
73

query I rowsort
SELECT ALL - ( + 53 ) * - + 12
----
636

query I rowsort
SELECT + - 70 * + 71 + - 56
----
-5026

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT + + 64 + + COALESCE ( - 50, - COUNT( * ) * - 28 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-9258
SELECT + + 64 + + COALESCE ( - 50, - COUNT ( * ) * - 28 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9259
SELECT ALL 64, ( + COUNT( * ) ) + + 22 * - ( COALESCE ( 89, - COUNT( * ) + 20 ) * - 65 ) AS col2
----
64
127271

skipif mysql # not compatible
query II rowsort label-9259
SELECT ALL 64, ( + COUNT ( * ) ) + + 22 * - ( COALESCE ( 89, - COUNT ( * ) + 20 ) * - 65 ) AS col2
----
64
127271

query I rowsort
SELECT DISTINCT + - 9 * + 42 AS col0
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL 95 - SUM( DISTINCT - 44 ) + 55
----
194

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL 95 - SUM ( DISTINCT - 44 ) + 55
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL + - SUM( DISTINCT 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL + - SUM ( DISTINCT 97 ) AS col2
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9263
SELECT + 75 DIV 83 * COUNT( * ) + 77 + + 67 AS col2
----
144

skipif mysql # not compatible
query I rowsort label-9263
SELECT + 75 / 83 * COUNT ( * ) + 77 + + 67 AS col2
----
144

query I rowsort
SELECT + 62 * 23 AS col1
----
1426

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT ( + NULLIF ( 67, + COUNT( * ) / + 44 + + 35 ) )
----
67

skipif mysql # not compatible
query I rowsort label-9265
SELECT ( + NULLIF ( 67, + COUNT ( * ) / + 44 + + 35 ) )
----
67

query II rowsort
SELECT - 3 * + - 19 AS col1, + 8 AS col0
----
57
8

query I rowsort
SELECT ALL 9 * + 24
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9268
SELECT + 15 + - + 72 - - 21 + COALESCE ( 38, 14 * + 41, - CAST( NULL AS SIGNED ) * + 48 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9268
SELECT + 15 + - + 72 - - 21 + COALESCE ( 38, 14 * + 41, - CAST ( NULL AS INTEGER ) * + 48 ) AS col0
----
2

query I rowsort
SELECT ALL - 38 * - 39 AS col0
----
1482

query I rowsort
SELECT DISTINCT 38 * - + 47 * - - 86 AS col1
----
-153596

query I rowsort
SELECT ALL 73 * 80 * - - 18
----
105120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9272
SELECT DISTINCT COUNT( * ) * + + 5 * + CAST( NULL AS SIGNED ) / - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT COUNT ( * ) * + + 5 * + CAST ( NULL AS INTEGER ) / - 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9273
SELECT + CAST( - 11 AS SIGNED ) * - + MIN( - 83 )
----
-913

skipif mysql # not compatible
query I rowsort label-9273
SELECT + CAST ( - 11 AS INTEGER ) * - + MIN ( - 83 )
----
-913

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT MAX( 24 ) * COALESCE ( + 68, + 1, 59, 50 ) + - 99 AS col0
----
1533

skipif mysql # not compatible
query I rowsort label-9274
SELECT MAX ( 24 ) * COALESCE ( + 68, + 1, 59, 50 ) + - 99 AS col0
----
1533

query I rowsort
SELECT - 37 - 11 col1
----
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-9276
SELECT - 54 DIV + 12, + 87 AS col2
----
-4
87

skipif mysql # not compatible
query II rowsort label-9276
SELECT - 54 / + 12, + 87 AS col2
----
-4
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT ALL + 78 * 68 * + COUNT( * ) + + + 17
----
5321

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL + 78 * 68 * + COUNT ( * ) + + + 17
----
5321

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9278
SELECT - 72 * 80 DIV + - 80 + + 25 - 92 * + COUNT( * ) * COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9278
SELECT - 72 * 80 / + - 80 + + 25 - 92 * + COUNT ( * ) * COUNT ( * ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT + MIN( + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-9279
SELECT + MIN ( + 94 )
----
94

query I rowsort
SELECT - 42 * + 51
----
-2142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9281
SELECT - 1 + - COALESCE ( + 37, + CAST( NULL AS SIGNED ) ) * COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-9281
SELECT - 1 + - COALESCE ( + 37, + CAST ( NULL AS INTEGER ) ) * COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT NULLIF ( 94, NULLIF ( + 42, COUNT( * ) * 63 + - 83 ) / NULLIF ( - CASE 42 WHEN - 16 + + 56 THEN 7 WHEN - 78 - 62 THEN 35 + + 19 * + COUNT( * ) WHEN - 25 THEN NULL END, + COUNT( * ) ) ) col1
----
94

skipif mysql # not compatible
query I rowsort label-9282
SELECT NULLIF ( 94, NULLIF ( + 42, COUNT ( * ) * 63 + - 83 ) / NULLIF ( - CASE 42 WHEN - 16 + + 56 THEN 7 WHEN - 78 - 62 THEN 35 + + 19 * + COUNT ( * ) WHEN - 25 THEN NULL END, + COUNT ( * ) ) ) col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT ALL - 1 * + ( - 92 ) + + CAST( 6 AS SIGNED ) * ( 97 )
----
674

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL - 1 * + ( - 92 ) + + CAST ( 6 AS INTEGER ) * ( 97 )
----
674

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT ALL + 92 * 25 - + MAX( - 35 ) * COUNT( * ) + - 49
----
2286

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL + 92 * 25 - + MAX ( - 35 ) * COUNT ( * ) + - 49
----
2286

query I rowsort
SELECT DISTINCT - + 61 * - + 22
----
1342

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT ALL COUNT( 37 ) * 57 + - 47 + 29 col1
----
39

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL COUNT ( 37 ) * 57 + - 47 + 29 col1
----
39

query I rowsort
SELECT DISTINCT ( - + 49 ) * + - 24 + + 75 * - 56 AS col1
----
-3024

query II rowsort
SELECT ALL - - 11 * 38, - 36 AS col1
----
418
-36

query I rowsort
SELECT - + ( - 78 ) + - 6
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9290
SELECT - - COALESCE ( + 69, 36 * - - 11 * - 8, 79 + + 16 * NULLIF ( + 46 * - MAX( ALL 13 ), + 26 + CAST( NULL AS SIGNED ) ) )
----
69

skipif mysql # not compatible
query I rowsort label-9290
SELECT - - COALESCE ( + 69, 36 * - - 11 * - 8, 79 + + 16 * NULLIF ( + 46 * - MAX ( ALL 13 ), + 26 + CAST ( NULL AS INTEGER ) ) )
----
69

query II rowsort
SELECT - ( 76 ) col1, - 97
----
-76
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT - 13 + 99 DIV + 66 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-9292
SELECT - 13 + 99 / + 66 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT - + 15 * - COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-9293
SELECT - + 15 * - COUNT ( * ) AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9294
SELECT + 96 DIV + + 44
----
2

skipif mysql # not compatible
query I rowsort label-9294
SELECT + 96 / + + 44
----
2

query I rowsort
SELECT - 40 + + + 11 AS col2
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9296
SELECT ALL MIN( + 70 ) DIV MIN( - + 48 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL MIN ( + 70 ) / MIN ( - + 48 ) AS col2
----
-1

query I rowsort
SELECT ALL 93 * - 73 * 38
----
-257982

query I rowsort
SELECT 21 + - 63 col2
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9299
SELECT DISTINCT - 27 DIV - + 4 + + - 36 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT - 27 / - + 4 + + - 36 AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9300
SELECT ALL + 63 * - 38 + + ( + CAST( NULL AS SIGNED ) ) + COUNT( * ) * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL + 63 * - 38 + + ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * - 80
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9301
SELECT ALL - 94 * + MIN( + - 95 ) DIV - COUNT( * ) + 4 AS col0
----
-8926

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL - 94 * + MIN ( + - 95 ) / - COUNT ( * ) + 4 AS col0
----
-8926

query I rowsort
SELECT 69 * - 95 * + 69 AS col0
----
-452295

query I rowsort
SELECT + 90 + + 23
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9304
SELECT NULLIF ( + - CAST( NULL AS SIGNED ), - 53 + + COALESCE ( - 84, 64, ( COUNT( * ) ) ) + 7 / 74 ) / + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT NULLIF ( + - CAST ( NULL AS INTEGER ), - 53 + + COALESCE ( - 84, 64, ( COUNT ( * ) ) ) + 7 / 74 ) / + 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT ALL + 3 * 90 * + - COUNT( * ) col0
----
-270

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL + 3 * 90 * + - COUNT ( * ) col0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT CASE COALESCE ( + + 65, + - 49 * 54 + 30, 56, - MAX( + 99 ) ) WHEN 96 THEN 13 ELSE NULL END + - 37 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9306
SELECT CASE COALESCE ( + + 65, + - 49 * 54 + 30, 56, - MAX ( + 99 ) ) WHEN 96 THEN 13 ELSE NULL END + - 37 col0
----
NULL

query I rowsort
SELECT 10 * 11
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT + 7 / + CASE 39 WHEN + 37 THEN + 31 * 58 WHEN + COUNT( * ) + 10 THEN NULL END + - COUNT( * ) / ( 66 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT + 7 / + CASE 39 WHEN + 37 THEN + 31 * 58 WHEN + COUNT ( * ) + 10 THEN NULL END + - COUNT ( * ) / ( 66 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT - 19 * - 78 - COUNT( * )
----
1481

skipif mysql # not compatible
query I rowsort label-9309
SELECT - 19 * - 78 - COUNT ( * )
----
1481

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL - MAX( 26 ) * + + 57
----
-1482

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL - MAX ( 26 ) * + + 57
----
-1482

query I rowsort
SELECT 0 * - 16 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9312
SELECT 72 AS col1, - CAST( NULL AS SIGNED ) AS col0
----
72
NULL

skipif mysql # not compatible
query II rowsort label-9312
SELECT 72 AS col1, - CAST ( NULL AS INTEGER ) AS col0
----
72
NULL

query I rowsort
SELECT ALL 55 + 86
----
141

query I rowsort
SELECT 80 * - - 68 * + 81 + 16 - - 67
----
440723

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9315
SELECT 26 * + - CAST( - 6 AS SIGNED )
----
156

skipif mysql # not compatible
query I rowsort label-9315
SELECT 26 * + - CAST ( - 6 AS INTEGER )
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9316
SELECT DISTINCT 84 + - 66 + + 96 / + 55 * - ( CAST( NULL AS SIGNED ) ) + + CASE - 2 + - 17 / + 55 WHEN + COUNT( DISTINCT 48 ) THEN 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT 84 + - 66 + + 96 / + 55 * - ( CAST ( NULL AS INTEGER ) ) + + CASE - 2 + - 17 / + 55 WHEN + COUNT ( DISTINCT 48 ) THEN 40 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9317
SELECT COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 19 + + 42 AS col1
----
61

query I rowsort
SELECT 16 + - 27 - + 51 AS col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9320
SELECT DISTINCT COUNT( ALL + 30 ) + 73 * + CASE + + 67 WHEN ( - ( 40 ) ) * + 24 THEN NULL WHEN 44 * + CASE 91 WHEN - 13 + + 89 * 84 THEN NULL WHEN ( + CAST( 63 AS SIGNED ) ) * + 97 THEN NULL WHEN 31 * COUNT( * ) THEN NULLIF ( + 76, 22 / - COALESCE ( 86, 59 ) ) * COUNT( * ) ELSE 4 * + 2 + ( + 12 ) END THEN + 71 ELSE 21 END
----
1534

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT COUNT ( ALL + 30 ) + 73 * + CASE + + 67 WHEN ( - ( 40 ) ) * + 24 THEN NULL WHEN 44 * + CASE 91 WHEN - 13 + + 89 * 84 THEN NULL WHEN ( + CAST ( 63 AS INTEGER ) ) * + 97 THEN NULL WHEN 31 * COUNT ( * ) THEN NULLIF ( + 76, 22 / - COALESCE ( 86, 59 ) ) * COUNT ( * ) ELSE 4 * + 2 + ( + 12 ) END THEN + 71 ELSE 21 END
----
1534

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT DISTINCT COUNT( DISTINCT 77 ) + COALESCE ( - 23, - + 3 + 31 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT COUNT ( DISTINCT 77 ) + COALESCE ( - 23, - + 3 + 31 ) AS col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9322
SELECT COUNT( * ) * + 17 * 22 * 61 DIV - 54 * + COUNT( + 37 )
----
-422

skipif mysql # not compatible
query I rowsort label-9322
SELECT COUNT ( * ) * + 17 * 22 * 61 / - 54 * + COUNT ( + 37 )
----
-422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9323
SELECT ALL CAST( + 27 AS SIGNED ) * - + SUM( DISTINCT + + 15 ) AS col2
----
-405

skipif mysql # not compatible
query I rowsort label-9323
SELECT ALL CAST ( + 27 AS INTEGER ) * - + SUM ( DISTINCT + + 15 ) AS col2
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT + COUNT( * ) + - 47 + - - 13 + + 77 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-9324
SELECT + COUNT ( * ) + - 47 + - - 13 + + 77 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT ( - - COUNT( * ) ) * - 68 col2
----
-68

skipif mysql # not compatible
query I rowsort label-9325
SELECT ( - - COUNT ( * ) ) * - 68 col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT MIN( DISTINCT 2 ) + 67 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9326
SELECT MIN ( DISTINCT 2 ) + 67 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT SUM( DISTINCT 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9327
SELECT SUM ( DISTINCT 12 ) AS col0
----
12

query I rowsort
SELECT - 97 * 32 AS col1
----
-3104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9329
SELECT DISTINCT + + 46 - 1 + + 24 * + + CAST( + 74 AS SIGNED ) + + 85
----
1906

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT + + 46 - 1 + + 24 * + + CAST ( + 74 AS INTEGER ) + + 85
----
1906

query I rowsort
SELECT ALL 99 - COALESCE ( 34, - + 57 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT DISTINCT MAX( + + 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT MAX ( + + 3 ) AS col0
----
3

query I rowsort
SELECT ALL - 98 * + + 5
----
-490

query I rowsort
SELECT - ( - - ( - - 65 ) )
----
-65

query I rowsort
SELECT - 13 - + COALESCE ( + - 17, - + 60 ) AS col0
----
4

query I rowsort
SELECT 84 * 73
----
6132

query I rowsort
SELECT - 88 * 65
----
-5720

query I rowsort
SELECT DISTINCT + CASE + CASE + 23 WHEN 38 + + 0 + 74 THEN NULL ELSE 85 END WHEN + 8 * 56 - + 72 THEN 42 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT ALL MIN( ALL 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL MIN ( ALL 98 ) AS col1
----
98

query I rowsort
SELECT 94 * + - 53
----
-4982

onlyif mysql # DIV for integer division: 
query II rowsort label-9340
SELECT ALL 53, 66 DIV - 88 AS col2
----
53
0

skipif mysql # not compatible
query II rowsort label-9340
SELECT ALL 53, 66 / - 88 AS col2
----
53
0

query II rowsort
SELECT DISTINCT 4, 71 AS col1
----
4
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9342
SELECT ALL 79 + + 42 * - ( + + COUNT( ALL 98 ) ) DIV 55
----
79

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL 79 + + 42 * - ( + + COUNT ( ALL 98 ) ) / 55
----
79

query I rowsort
SELECT DISTINCT COALESCE ( 63, + + 57 ) * 11 + - 6
----
687

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL 65 * - - 15 + MIN( DISTINCT - 41 )
----
934

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL 65 * - - 15 + MIN ( DISTINCT - 41 )
----
934

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT COUNT( * ) * - 41 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9345
SELECT COUNT ( * ) * - 41 AS col1
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9346
SELECT COUNT( * ) DIV - + ( - + 65 ) + 43 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9346
SELECT COUNT ( * ) / - + ( - + 65 ) + 43 AS col0
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9347
SELECT ALL - 56 * 93 + NULLIF ( + - 59, - 38 + - - 66 ) + - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL - 56 * 93 + NULLIF ( + - 59, - 38 + - - 66 ) + - ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT 9 + 5
----
14

query II rowsort
SELECT ALL - 80, - 74 + + 45 AS col0
----
-80
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9350
SELECT 19 + 98 + CASE + - 72 WHEN COUNT( DISTINCT - 58 ) THEN NULL WHEN CAST( NULL AS SIGNED ) + 75 THEN - 81 ELSE 60 END + 83 * - COALESCE ( + 91 - 18, - CASE - 48 WHEN + 93 + - 72 THEN 15 DIV + CASE WHEN NOT ( + COUNT( * ) ) NOT IN ( + 10 * - 58 ) THEN ( 51 ) + 86 * + COUNT( * ) ELSE 30 END WHEN CAST( + COUNT( * ) AS SIGNED ) THEN 71 ELSE NULL END, + 83 * COUNT( * ), + 90 * + CAST( NULLIF ( + ( 77 ), 38 ) * 47 AS SIGNED ) ) AS col2
----
-5882

skipif mysql # not compatible
query I rowsort label-9350
SELECT 19 + 98 + CASE + - 72 WHEN COUNT ( DISTINCT - 58 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) + 75 THEN - 81 ELSE 60 END + 83 * - COALESCE ( + 91 - 18, - CASE - 48 WHEN + 93 + - 72 THEN 15 / + CASE WHEN NOT ( + COUNT ( * ) ) NOT IN ( + 10 * - 58 ) THEN ( 51 ) + 86 * + COUNT ( * ) ELSE 30 END WHEN CAST ( + COUNT ( * ) AS INTEGER ) THEN 71 ELSE NULL END, + 83 * COUNT ( * ), + 90 * + CAST ( NULLIF ( + ( 77 ), 38 ) * 47 AS INTEGER ) ) AS col2
----
-5882

query I rowsort
SELECT - 39 * - 51 + NULLIF ( + COALESCE ( - 73, + 5 * - 14, + 87 ), + 28 ) + - 26
----
1890

query I rowsort
SELECT 44 * - 92
----
-4048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9353
SELECT ( - AVG ( - 69 ) ) - - + ( - 14 ) + 27 + - CAST( NULL AS SIGNED ) * - AVG ( 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT ( - AVG ( - 69 ) ) - - + ( - 14 ) + 27 + - CAST ( NULL AS INTEGER ) * - AVG ( 67 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT - COUNT( - 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT - COUNT ( - 0 )
----
-1

query I rowsort
SELECT ALL 3 - 39 - - 34
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9356
SELECT - 73 * - 70 * - - CAST( NULL AS SIGNED ) * + 75 col0, 47 * 34 AS col1
----
NULL
1598

skipif mysql # not compatible
query II rowsort label-9356
SELECT - 73 * - 70 * - - CAST ( NULL AS INTEGER ) * + 75 col0, 47 * 34 AS col1
----
NULL
1598

query I rowsort
SELECT - 86 + + 88 + - 88 * + 27 * 39 AS col1
----
-92662

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL + CASE + 13 WHEN - - ( - 39 ) * + + 4 THEN NULL ELSE + - SUM( - 6 ) - 91 END
----
-85

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL + CASE + 13 WHEN - - ( - 39 ) * + + 4 THEN NULL ELSE + - SUM ( - 6 ) - 91 END
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT + NULLIF ( + - MAX( DISTINCT + ( 38 ) ), + AVG ( DISTINCT + + 81 ) ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-9359
SELECT + NULLIF ( + - MAX ( DISTINCT + ( 38 ) ), + AVG ( DISTINCT + + 81 ) ) AS col0
----
-38

query I rowsort
SELECT + 0 + + - 41 * + 63
----
-2583

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT ALL - 88 * NULLIF ( + COUNT( - ( + - 45 ) ), - 58 * MIN( 15 ) + 51 )
----
-88

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL - 88 * NULLIF ( + COUNT ( - ( + - 45 ) ), - 58 * MIN ( 15 ) + 51 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT + + 82 * CASE - + MAX( DISTINCT - 67 ) WHEN MAX( DISTINCT + 71 ) / - 3 + + 83 THEN COUNT( * ) END * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9362
SELECT + + 82 * CASE - + MAX ( DISTINCT - 67 ) WHEN MAX ( DISTINCT + 71 ) / - 3 + + 83 THEN COUNT ( * ) END * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT DISTINCT 87 * - COUNT( * ) + - 25 AS col1
----
-112

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT 87 * - COUNT ( * ) + - 25 AS col1
----
-112

query I rowsort
SELECT ALL + 27 * - 68
----
-1836

onlyif mysql # DIV for integer division: 
query II rowsort label-9365
SELECT - 32, 13 DIV 48 AS col1
----
-32
0

skipif mysql # not compatible
query II rowsort label-9365
SELECT - 32, 13 / 48 AS col1
----
-32
0

query I rowsort
SELECT + 98 + + 63 AS col0
----
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9367
SELECT + COALESCE ( - 33, 20 + + - 21 + - + 51 * - + NULLIF ( - 50, 69 + + COUNT( * ) ) * 26, COUNT( * ) * + 96 - 55 * + 21 ) DIV + 19 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9367
SELECT + COALESCE ( - 33, 20 + + - 21 + - + 51 * - + NULLIF ( - 50, 69 + + COUNT ( * ) ) * 26, COUNT ( * ) * + 96 - 55 * + 21 ) / + 19 AS col2
----
-1

query I rowsort
SELECT - - 50 - + 47
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9369
SELECT DISTINCT + COUNT( * ) DIV 19
----
0

skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT + COUNT ( * ) / 19
----
0

query I rowsort
SELECT + + 81 + - 94 + + ( + 55 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT + - COUNT( * ) + - 3
----
-4

skipif mysql # not compatible
query I rowsort label-9371
SELECT + - COUNT ( * ) + - 3
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9372
SELECT ALL + CASE 99 WHEN + COUNT( 85 ) / + 93 THEN 94 WHEN COUNT( * ) + SUM( DISTINCT + 7 ) THEN COUNT( - CAST( NULL AS SIGNED ) ) / + 19 WHEN 31 + + 30 THEN NULL END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL + CASE 99 WHEN + COUNT ( 85 ) / + 93 THEN 94 WHEN COUNT ( * ) + SUM ( DISTINCT + 7 ) THEN COUNT ( - CAST ( NULL AS INTEGER ) ) / + 19 WHEN 31 + + 30 THEN NULL END + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9373
SELECT - 68 * + - COUNT( * ) AS col0, - SUM( 88 ) AS col2
----
68
-88

skipif mysql # not compatible
query II rowsort label-9373
SELECT - 68 * + - COUNT ( * ) AS col0, - SUM ( 88 ) AS col2
----
68
-88

query I rowsort
SELECT - 85 + + 90
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9375
SELECT DISTINCT + 34 + ( + CAST( NULL AS SIGNED ) ) + COUNT( DISTINCT + 53 ) + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT + 34 + ( + CAST ( NULL AS INTEGER ) ) + COUNT ( DISTINCT + 53 ) + 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT - ( + NULLIF ( COUNT( * ), - 84 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9376
SELECT - ( + NULLIF ( COUNT ( * ), - 84 ) ) AS col0
----
-1

query I rowsort
SELECT + ( + 19 ) * 34 AS col1
----
646

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT - 38 + CAST( - 93 AS SIGNED ) + + + 65
----
-66

skipif mysql # not compatible
query I rowsort label-9378
SELECT - 38 + CAST ( - 93 AS INTEGER ) + + + 65
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-9379
SELECT ( + - COUNT( * ) ), - 62 - + COUNT( * ) AS col2
----
-1
-63

skipif mysql # not compatible
query II rowsort label-9379
SELECT ( + - COUNT ( * ) ), - 62 - + COUNT ( * ) AS col2
----
-1
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT + MIN( ALL 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9380
SELECT + MIN ( ALL 14 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT - 2 * + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9381
SELECT - 2 * + - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT ALL + 97 * - COUNT( * ) + - + 21
----
-118

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL + 97 * - COUNT ( * ) + - + 21
----
-118

query I rowsort
SELECT ( - 88 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT ( - CASE + COUNT( * ) WHEN + 28 * 56 * + 18 + - 45 THEN 56 + 19 * + 33 WHEN - 35 * + 18 THEN NULL WHEN ( + 96 ) + - 98 THEN NULL ELSE + 68 END )
----
-68

skipif mysql # not compatible
query I rowsort label-9384
SELECT ( - CASE + COUNT ( * ) WHEN + 28 * 56 * + 18 + - 45 THEN 56 + 19 * + 33 WHEN - 35 * + 18 THEN NULL WHEN ( + 96 ) + - 98 THEN NULL ELSE + 68 END )
----
-68

query I rowsort
SELECT ALL 83 * 93
----
7719

query II rowsort
SELECT DISTINCT + NULLIF ( + 8, 61 ) * - + 87 - + + 24 AS col1, 87 AS col0
----
-720
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9387
SELECT + 22 DIV - 13 + + COALESCE ( + 7, + - 88 )
----
6

skipif mysql # not compatible
query I rowsort label-9387
SELECT + 22 / - 13 + + COALESCE ( + 7, + - 88 )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9388
SELECT - COUNT( * ) DIV + 40
----
0

skipif mysql # not compatible
query I rowsort label-9388
SELECT - COUNT ( * ) / + 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT + ( 10 ) * + MAX( + 71 ) + 91 * 18
----
2348

skipif mysql # not compatible
query I rowsort label-9389
SELECT + ( 10 ) * + MAX ( + 71 ) + 91 * 18
----
2348

query I rowsort
SELECT - - NULLIF ( 74, - ( + ( - 51 ) ) * - - 31 ) * - 80 * - 12 AS col1
----
71040

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT + - 97 * ( - NULLIF ( + - 4, + 4 ) ) * 10 + + 90 * COUNT( * )
----
-3790

skipif mysql # not compatible
query I rowsort label-9391
SELECT + - 97 * ( - NULLIF ( + - 4, + 4 ) ) * 10 + + 90 * COUNT ( * )
----
-3790

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT + + COALESCE ( - - COUNT( * ), 21 * - 75 - - - 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9392
SELECT + + COALESCE ( - - COUNT ( * ), 21 * - 75 - - - 12 ) AS col2
----
1

query I rowsort
SELECT ALL + - 87 * - 47 - + 33
----
4056

query I rowsort
SELECT + ( + - 16 ) * 52 AS col0
----
-832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9395
SELECT ALL + - 0 * + + CAST( + + MAX( + 81 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL + - 0 * + + CAST ( + + MAX ( + 81 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9396
SELECT + COUNT( * ) + - CASE + + 5 WHEN - + 44 / MAX( ALL + CAST( - 60 AS SIGNED ) ) THEN 24 WHEN + AVG ( 40 ) * - ( 94 ) THEN NULL ELSE NULL END * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9396
SELECT + COUNT ( * ) + - CASE + + 5 WHEN - + 44 / MAX ( ALL + CAST ( - 60 AS INTEGER ) ) THEN 24 WHEN + AVG ( 40 ) * - ( 94 ) THEN NULL ELSE NULL END * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - ( + - 27 ) * - 82
----
-2214

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT ALL + COUNT( * ) + NULLIF ( + 38, + 40 ) + COALESCE ( 53, - - COUNT( * ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-9398
SELECT ALL + COUNT ( * ) + NULLIF ( + 38, + 40 ) + COALESCE ( 53, - - COUNT ( * ) ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT ALL + COUNT( - 44 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL + COUNT ( - 44 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9400
SELECT - - ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9400
SELECT - - ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9401
SELECT ALL MAX( + CAST( - - 65 AS SIGNED ) ) + - 52 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL MAX ( + CAST ( - - 65 AS INTEGER ) ) + - 52 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT ALL - MIN( - - 32 ) * 38 AS col0
----
-1216

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL - MIN ( - - 32 ) * 38 AS col0
----
-1216

query I rowsort
SELECT ALL 6 + - 14
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9404
SELECT + 45 * CAST( CASE - - COALESCE ( 25, - ( 6 ) / 62 ) WHEN + 42 THEN NULL WHEN 58 THEN - COUNT( * ) WHEN ( - ( + COUNT( * ) ) ) THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9404
SELECT + 45 * CAST ( CASE - - COALESCE ( 25, - ( 6 ) / 62 ) WHEN + 42 THEN NULL WHEN 58 THEN - COUNT ( * ) WHEN ( - ( + COUNT ( * ) ) ) THEN NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 82, + 18 ) + 53 AS col2
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9406
SELECT + 50 - - ( + CAST( NULL AS SIGNED ) ) * - - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT + 50 - - ( + CAST ( NULL AS INTEGER ) ) * - - 38
----
NULL

query II rowsort
SELECT 69 AS col2, - 37
----
69
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9408
SELECT 12, - 88 * + CASE - - 84 WHEN + COUNT( * ) THEN AVG ( CAST( + 27 AS SIGNED ) ) * 81 WHEN 42 THEN + NULLIF ( + 85, - ( COUNT( * ) ) ) END AS col0
----
12
NULL

skipif mysql # not compatible
query II rowsort label-9408
SELECT 12, - 88 * + CASE - - 84 WHEN + COUNT ( * ) THEN AVG ( CAST ( + 27 AS INTEGER ) ) * 81 WHEN 42 THEN + NULLIF ( + 85, - ( COUNT ( * ) ) ) END AS col0
----
12
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9409
SELECT ALL 96 DIV + - CAST( 13 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL 96 / + - CAST ( 13 AS INTEGER )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-9410
SELECT + 2 DIV + 4 * - 55 * 67
----
0

skipif mysql # not compatible
query I rowsort label-9410
SELECT + 2 / + 4 * - 55 * 67
----
0

query I rowsort
SELECT ALL 8 + - - 71 AS col2
----
79

query I rowsort
SELECT + 96 * - CASE + 40 WHEN - ( - 52 ) * - ( 92 ) THEN - - 22 END * + 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT DISTINCT SUM( 28 )
----
28

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT SUM ( 28 )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-9414
SELECT - 72 - - NULLIF ( 95, + MAX( DISTINCT - ( + 14 ) ) ), 19 AS col1
----
23
19

skipif mysql # not compatible
query II rowsort label-9414
SELECT - 72 - - NULLIF ( 95, + MAX ( DISTINCT - ( + 14 ) ) ), 19 AS col1
----
23
19

query I rowsort
SELECT - 31 * - - 55 + + 61 * + 43 AS col2
----
918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9416
SELECT ALL + CASE + - COUNT( * ) WHEN + 79 * - ( + SUM( 58 ) ) DIV 40 + - - 83 THEN NULL WHEN COALESCE ( 75, + 96, - 49 ) THEN 47 + + 40 ELSE + 67 DIV - 89 - - COUNT( * ) END DIV COUNT( * ) - 13
----
-12

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL + CASE + - COUNT ( * ) WHEN + 79 * - ( + SUM ( 58 ) ) / 40 + - - 83 THEN NULL WHEN COALESCE ( 75, + 96, - 49 ) THEN 47 + + 40 ELSE + 67 / - 89 - - COUNT ( * ) END / COUNT ( * ) - 13
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT + SUM( NULLIF ( + 29, + - 56 ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9417
SELECT + SUM ( NULLIF ( + 29, + - 56 ) ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT + MIN( ALL + 5 ) + 9
----
14

skipif mysql # not compatible
query I rowsort label-9418
SELECT + MIN ( ALL + 5 ) + 9
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9419
SELECT ALL - NULLIF ( - - 28, - 12 ), + 99 + COUNT( * ) AS col1
----
-28
100

skipif mysql # not compatible
query II rowsort label-9419
SELECT ALL - NULLIF ( - - 28, - 12 ), + 99 + COUNT ( * ) AS col1
----
-28
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT - ( - + CASE + + NULLIF ( + 43, 17 ) WHEN ( + 50 ) THEN + 33 END ) * SUM( 71 + 23 ) + + MAX( ALL + 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9420
SELECT - ( - + CASE + + NULLIF ( + 43, 17 ) WHEN ( + 50 ) THEN + 33 END ) * SUM ( 71 + 23 ) + + MAX ( ALL + 39 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9421
SELECT ALL - 71 DIV - + 58 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL - 71 / - + 58 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9422
SELECT - 91 DIV + - 55 + 39 * 42 col2
----
1639

skipif mysql # not compatible
query I rowsort label-9422
SELECT - 91 / + - 55 + 39 * 42 col2
----
1639

onlyif mysql # aggregate syntax: 
query II rowsort label-9423
SELECT ALL - - 60 AS col2, COUNT( * )
----
60
1

skipif mysql # not compatible
query II rowsort label-9423
SELECT ALL - - 60 AS col2, COUNT ( * )
----
60
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9424
SELECT ALL - - 65, - 41 DIV 63 * + 91 * - 1 col1
----
65
0

skipif mysql # not compatible
query II rowsort label-9424
SELECT ALL - - 65, - 41 / 63 * + 91 * - 1 col1
----
65
0

query II rowsort
SELECT + - 11, 26 AS col2
----
-11
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9426
SELECT - 18 + - 51 + + + 34 AS col1, + SUM( + 27 )
----
-35
27

skipif mysql # not compatible
query II rowsort label-9426
SELECT - 18 + - 51 + + + 34 AS col1, + SUM ( + 27 )
----
-35
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT ALL - 11 DIV + - 59 * - + 92 * - 50
----
0

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL - 11 / + - 59 * - + 92 * - 50
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT + 57 DIV + 78 * + 24
----
0

skipif mysql # not compatible
query I rowsort label-9428
SELECT + 57 / + 78 * + 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT - 31 + + ( - + NULLIF ( - + CASE + + 85 WHEN COUNT( * ) THEN NULL WHEN + + 87 - - 62 THEN NULL WHEN 81 * - 72 - 97 * + ( - COUNT( * ) * - NULLIF ( + 65, CASE ( - 39 ) WHEN 97 * 9 THEN COUNT( * ) END + 70 ) ) THEN + COUNT( * ) ELSE 86 * 70 END, 87 + 27 ) ) + + 12 * CASE + ( 69 ) * + 48 WHEN - AVG ( ALL 51 ) THEN + 89 ELSE NULLIF ( - 44, - 99 ) END AS col0
----
5461

skipif mysql # not compatible
query I rowsort label-9429
SELECT - 31 + + ( - + NULLIF ( - + CASE + + 85 WHEN COUNT ( * ) THEN NULL WHEN + + 87 - - 62 THEN NULL WHEN 81 * - 72 - 97 * + ( - COUNT ( * ) * - NULLIF ( + 65, CASE ( - 39 ) WHEN 97 * 9 THEN COUNT ( * ) END + 70 ) ) THEN + COUNT ( * ) ELSE 86 * 70 END, 87 + 27 ) ) + + 12 * CASE + ( 69 ) * + 48 WHEN - AVG ( ALL 51 ) THEN + 89 ELSE NULLIF ( - 44, - 99 ) END AS col0
----
5461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9430
SELECT DISTINCT - 77 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT - 77 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT ALL + 19 + - COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL + 19 + - COUNT ( * ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT + 84 + - COUNT( * ) + 63 * + + 41
----
2666

skipif mysql # not compatible
query I rowsort label-9432
SELECT + 84 + - COUNT ( * ) + 63 * + + 41
----
2666

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9433
SELECT + 56 AS col2, + ( 45 ) DIV - COUNT( * ) * + + COUNT( * ) AS col1
----
56
-45

skipif mysql # not compatible
query II rowsort label-9433
SELECT + 56 AS col2, + ( 45 ) / - COUNT ( * ) * + + COUNT ( * ) AS col1
----
56
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9434
SELECT + CAST( 28 AS SIGNED ) + 79 + 34 * 17 * - - NULLIF ( - - 95, + - CAST( NULL AS SIGNED ) )
----
55017

skipif mysql # not compatible
query I rowsort label-9434
SELECT + CAST ( 28 AS INTEGER ) + 79 + 34 * 17 * - - NULLIF ( - - 95, + - CAST ( NULL AS INTEGER ) )
----
55017

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9435
SELECT ALL - - CAST( COUNT( * ) AS SIGNED ) + 88 AS col2, - 71
----
89
-71

skipif mysql # not compatible
query II rowsort label-9435
SELECT ALL - - CAST ( COUNT ( * ) AS INTEGER ) + 88 AS col2, - 71
----
89
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT DISTINCT - SUM( DISTINCT + + 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT - SUM ( DISTINCT + + 49 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT + CASE + COUNT( * ) WHEN 26 + - NULLIF ( 15, 38 ) THEN + + 44 WHEN 6 * - AVG ( - 5 - - 34 ) + NULLIF ( - 21 - 73, 74 ) THEN NULL END + - 89 * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9437
SELECT + CASE + COUNT ( * ) WHEN 26 + - NULLIF ( 15, 38 ) THEN + + 44 WHEN 6 * - AVG ( - 5 - - 34 ) + NULLIF ( - 21 - 73, 74 ) THEN NULL END + - 89 * 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT 9 + - COUNT( * ) col0
----
8

skipif mysql # not compatible
query I rowsort label-9438
SELECT 9 + - COUNT ( * ) col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT 45 - - 60 + + 90 * + 45 * - 43 * NULLIF ( + - 31, MAX( 1 ) * + 67 ) AS col1
----
5398755

skipif mysql # not compatible
query I rowsort label-9439
SELECT 45 - - 60 + + 90 * + 45 * - 43 * NULLIF ( + - 31, MAX ( 1 ) * + 67 ) AS col1
----
5398755

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT COUNT( * ) + 44 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-9440
SELECT COUNT ( * ) + 44 AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9441
SELECT ALL NULLIF ( - + CASE COALESCE ( - 96, 1 * 10 * - 24 * - 2 + + + ( - 92 ) + + 84 ) WHEN - 30 THEN 90 * 53 WHEN - 86 / + 65 THEN NULL END, + COALESCE ( 45, - 25 / - 79 + + CAST( NULL AS SIGNED ), SUM( DISTINCT + 15 ) ) + 14 * 5 ) - + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL NULLIF ( - + CASE COALESCE ( - 96, 1 * 10 * - 24 * - 2 + + + ( - 92 ) + + 84 ) WHEN - 30 THEN 90 * 53 WHEN - 86 / + 65 THEN NULL END, + COALESCE ( 45, - 25 / - 79 + + CAST ( NULL AS INTEGER ), SUM ( DISTINCT + 15 ) ) + 14 * 5 ) - + 60
----
NULL

query I rowsort
SELECT 29 + 48 AS col2
----
77

query I rowsort
SELECT 35 * - + 51 AS col1
----
-1785

query I rowsort
SELECT DISTINCT 19 * - - 89 AS col0
----
1691

query I rowsort
SELECT 54 + + 80 * - - 70
----
5654

query I rowsort
SELECT 25 * - 40 col0
----
-1000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9447
SELECT CAST( - 41 AS SIGNED ) + 53 col2
----
12

skipif mysql # not compatible
query I rowsort label-9447
SELECT CAST ( - 41 AS INTEGER ) + 53 col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9448
SELECT 79 DIV 35
----
2

skipif mysql # not compatible
query I rowsort label-9448
SELECT 79 / 35
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9449
SELECT DISTINCT 42 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT 42 / 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL - NULLIF ( - 36, + COUNT( * ) )
----
36

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL - NULLIF ( - 36, + COUNT ( * ) )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9451
SELECT + MAX( DISTINCT + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT + MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + ( - 61 ) AS col1, 44 col1
----
-61
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9453
SELECT - COUNT( + - 96 ) col2, COUNT( + - 6 ) DIV - + 80
----
-1
0

skipif mysql # not compatible
query II rowsort label-9453
SELECT - COUNT ( + - 96 ) col2, COUNT ( + - 6 ) / - + 80
----
-1
0

query I rowsort
SELECT ALL - + ( - 86 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9455
SELECT + 16 * + 84 AS col1, + CAST( NULL AS SIGNED ) + + ( - + COUNT( * ) ) + - COALESCE ( 3, + + CASE - 8 WHEN MAX( ALL 22 ) + + 94 THEN NULL WHEN 66 + - CAST( ( + 70 ) - + 76 AS SIGNED ) THEN NULL ELSE 40 END - - 28 ) * + AVG ( - 56 + - 69 ) * 92 AS col1
----
1344
NULL

skipif mysql # not compatible
query II rowsort label-9455
SELECT + 16 * + 84 AS col1, + CAST ( NULL AS INTEGER ) + + ( - + COUNT ( * ) ) + - COALESCE ( 3, + + CASE - 8 WHEN MAX ( ALL 22 ) + + 94 THEN NULL WHEN 66 + - CAST ( ( + 70 ) - + 76 AS INTEGER ) THEN NULL ELSE 40 END - - 28 ) * + AVG ( - 56 + - 69 ) * 92 AS col1
----
1344
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9456
SELECT + COALESCE ( - 98, - 10, 33 ) * - 47 + + - 0 + 70 + - 52 DIV 17 * - 52
----
4832

skipif mysql # not compatible
query I rowsort label-9456
SELECT + COALESCE ( - 98, - 10, 33 ) * - 47 + + - 0 + 70 + - 52 / 17 * - 52
----
4832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9457
SELECT - 82 * + CAST( 67 AS SIGNED ) + - COUNT( * ) + 64, 65 * - + 52 AS col1
----
-5431
-3380

skipif mysql # not compatible
query II rowsort label-9457
SELECT - 82 * + CAST ( 67 AS INTEGER ) + - COUNT ( * ) + 64, 65 * - + 52 AS col1
----
-5431
-3380

query I rowsort
SELECT ALL + 88 + - - 88 AS col1
----
176

query I rowsort
SELECT ALL + - 44 + - 22 + NULLIF ( 73, 17 ) + ( + ( + CASE NULLIF ( 2, 59 ) WHEN - 19 * - 15 + + 22 THEN NULL ELSE + 96 END ) ) AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT + NULLIF ( + 40, COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-9460
SELECT + NULLIF ( + 40, COUNT ( * ) )
----
40

query I rowsort
SELECT ALL - 57 * - 68 AS col1
----
3876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT - 49 * - 58 + + + ( + - 80 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT - 49 * - 58 + + + ( + - 80 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ALL COUNT( ALL - - 52 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL COUNT ( ALL - - 52 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL SUM( DISTINCT + + 23 ) col1
----
23

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL SUM ( DISTINCT + + 23 ) col1
----
23

query II rowsort
SELECT - 61, + 64 AS col2
----
-61
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT DISTINCT SUM( - - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT SUM ( - - 11 )
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-9467
SELECT 51 AS col1, - 57 + + COUNT( * )
----
51
-56

skipif mysql # not compatible
query II rowsort label-9467
SELECT 51 AS col1, - 57 + + COUNT ( * )
----
51
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9468
SELECT - 72, + CAST( NULL AS SIGNED ) * + + ( - + 18 ) - + 98 AS col2
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-9468
SELECT - 72, + CAST ( NULL AS INTEGER ) * + + ( - + 18 ) - + 98 AS col2
----
-72
NULL

query I rowsort
SELECT 28 * 17 col0
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT - COUNT( * ) - + + NULLIF ( ( - COUNT( + 43 ) ), + COUNT( * ) / - 67 )
----
0

skipif mysql # not compatible
query I rowsort label-9470
SELECT - COUNT ( * ) - + + NULLIF ( ( - COUNT ( + 43 ) ), + COUNT ( * ) / - 67 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT - SUM( + + 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9471
SELECT - SUM ( + + 5 ) AS col0
----
-5

query I rowsort
SELECT ALL 1 * 44
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT - SUM( ALL + 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-9473
SELECT - SUM ( ALL + 24 )
----
-24

query I rowsort
SELECT ALL + 55 + 11 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT + + COUNT( * ) - + 30
----
-29

skipif mysql # not compatible
query I rowsort label-9475
SELECT + + COUNT ( * ) - + 30
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-9476
SELECT - 12 DIV - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9476
SELECT - 12 / - 86 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT DISTINCT + CASE - 26 WHEN + + CASE - AVG ( 97 ) WHEN + + 51 THEN NULL WHEN - + 83 THEN 72 ELSE - 79 END THEN + COUNT( * ) - + COALESCE ( 77, COUNT( * ) + CASE 10 + - COUNT( * ) * + 91 WHEN COUNT( * ) THEN + 20 WHEN - 37 THEN 62 END * 43, MAX( + 24 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT + CASE - 26 WHEN + + CASE - AVG ( 97 ) WHEN + + 51 THEN NULL WHEN - + 83 THEN 72 ELSE - 79 END THEN + COUNT ( * ) - + COALESCE ( 77, COUNT ( * ) + CASE 10 + - COUNT ( * ) * + 91 WHEN COUNT ( * ) THEN + 20 WHEN - 37 THEN 62 END * 43, MAX ( + 24 ) ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9478
SELECT + - 87 DIV + 86 + 97 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9478
SELECT + - 87 / + 86 + 97 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT + COUNT( * ) * - COALESCE ( 92, - 46 * + + 84 + - 59 * + - 57 * + 87 + - 18 + CASE 15 WHEN - 41 + + 28 * + MAX( DISTINCT - 79 ) THEN - 22 WHEN + 70 THEN NULL END, ( - 57 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-9479
SELECT + COUNT ( * ) * - COALESCE ( 92, - 46 * + + 84 + - 59 * + - 57 * + 87 + - 18 + CASE 15 WHEN - 41 + + 28 * + MAX ( DISTINCT - 79 ) THEN - 22 WHEN + 70 THEN NULL END, ( - 57 ) )
----
-92

query I rowsort
SELECT ALL 30 * - - 71 + + 96 + 35 + 46 + + 73 + + COALESCE ( + 95, - + 35, - 99 ) * - 7
----
1715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT - ( + CAST( 30 AS SIGNED ) )
----
-30

skipif mysql # not compatible
query I rowsort label-9481
SELECT - ( + CAST ( 30 AS INTEGER ) )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9482
SELECT ALL - 28 DIV + COUNT( + 16 ) - 6
----
-34

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL - 28 / + COUNT ( + 16 ) - 6
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT ALL COUNT( * ) * - 64 + + 10 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL COUNT ( * ) * - 64 + + 10 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-9484
SELECT ALL - 37 * 4 * - COUNT( * ) AS col0, ( 99 ) * + SUM( - 34 ) + - 99
----
148
-3465

skipif mysql # not compatible
query II rowsort label-9484
SELECT ALL - 37 * 4 * - COUNT ( * ) AS col0, ( 99 ) * + SUM ( - 34 ) + - 99
----
148
-3465

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT ALL - COUNT( ALL + 99 ) * + + 59 + - COUNT( * ) + + NULLIF ( - - 41, - + 87 + + 39 - + 20 ) + - 18 - MAX( DISTINCT 57 ) * - 87 AS col0
----
4922

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL - COUNT ( ALL + 99 ) * + + 59 + - COUNT ( * ) + + NULLIF ( - - 41, - + 87 + + 39 - + 20 ) + - 18 - MAX ( DISTINCT 57 ) * - 87 AS col0
----
4922

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9486
SELECT ALL + - CASE 52 WHEN + 17 THEN + ( + 75 ) * - CAST( 54 AS SIGNED ) * - 93 + 93 - 13 / 75 + CASE - COUNT( * ) WHEN SUM( 39 ) - 84 THEN ( 94 ) + - 76 WHEN - 37 + 22 * CASE - COUNT( * ) WHEN ( - ( - 26 ) ) THEN 89 END THEN - 10 END WHEN 44 * - 19 + - 52 THEN NULL WHEN SUM( DISTINCT 68 ) THEN 23 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL + - CASE 52 WHEN + 17 THEN + ( + 75 ) * - CAST ( 54 AS INTEGER ) * - 93 + 93 - 13 / 75 + CASE - COUNT ( * ) WHEN SUM ( 39 ) - 84 THEN ( 94 ) + - 76 WHEN - 37 + 22 * CASE - COUNT ( * ) WHEN ( - ( - 26 ) ) THEN 89 END THEN - 10 END WHEN 44 * - 19 + - 52 THEN NULL WHEN SUM ( DISTINCT 68 ) THEN 23 END AS col1
----
NULL

query I rowsort
SELECT + + 98 + + 60 col0
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9488
SELECT + 14 AS col0, + ( CAST( NULL AS SIGNED ) ) col1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-9488
SELECT + 14 AS col0, + ( CAST ( NULL AS INTEGER ) ) col1
----
14
NULL

query I rowsort
SELECT + 82 * 32 + - - 40 AS col1
----
2664

onlyif mysql # aggregate syntax: 
query II rowsort label-9490
SELECT ALL + 64 AS col0, 58 * + COUNT( * ) AS col0
----
64
58

skipif mysql # not compatible
query II rowsort label-9490
SELECT ALL + 64 AS col0, 58 * + COUNT ( * ) AS col0
----
64
58

query I rowsort
SELECT - 55 * + + 44
----
-2420

onlyif mysql # DIV for integer division: 
query I rowsort label-9492
SELECT ALL + 26 DIV 19 * - + 41 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL + 26 / 19 * - + 41 AS col1
----
-41

query I rowsort
SELECT - 73 - - 20
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9494
SELECT + 43 + - CASE + 68 WHEN + 69 - + ( + COALESCE ( - 96, 47 * + 25 * - 49 + - COUNT( NULLIF ( CASE 66 WHEN - ( 71 ) THEN - CASE 28 WHEN 53 THEN 8 + + 38 ELSE NULL END * 15 - CASE + 60 - 13 WHEN + NULLIF ( + 7, 33 * 69 ) THEN CAST( NULL AS SIGNED ) / - 95 END WHEN + 80 THEN 86 + + 19 END, 42 ) ) * 81 ) ) * 9 THEN + CAST( NULL AS SIGNED ) + - 8 ELSE 11 END
----
32

skipif mysql # not compatible
query I rowsort label-9494
SELECT + 43 + - CASE + 68 WHEN + 69 - + ( + COALESCE ( - 96, 47 * + 25 * - 49 + - COUNT ( NULLIF ( CASE 66 WHEN - ( 71 ) THEN - CASE 28 WHEN 53 THEN 8 + + 38 ELSE NULL END * 15 - CASE + 60 - 13 WHEN + NULLIF ( + 7, 33 * 69 ) THEN CAST ( NULL AS INTEGER ) / - 95 END WHEN + 80 THEN 86 + + 19 END, 42 ) ) * 81 ) ) * 9 THEN + CAST ( NULL AS INTEGER ) + - 8 ELSE 11 END
----
32

query I rowsort
SELECT + 20 * - + 75
----
-1500

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9496
SELECT - COALESCE ( - + 76, + + COALESCE ( + ( - 89 ), - - COALESCE ( 84, - 0 ) ) ) * CAST( - 30 AS SIGNED ) DIV 69 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9496
SELECT - COALESCE ( - + 76, + + COALESCE ( + ( - 89 ), - - COALESCE ( 84, - 0 ) ) ) * CAST ( - 30 AS INTEGER ) / 69 AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9497
SELECT ALL + COUNT( * ) / CASE CASE - 75 WHEN + - 59 + - + 40 THEN - - CAST( + 1 AS SIGNED ) / - 8 + - + COUNT( * ) / - 17 * - 49 WHEN + CASE + ( COUNT( * ) ) WHEN - 97 THEN 40 END + 56 THEN NULL END WHEN 79 * - 84 + - 28 THEN + ( AVG ( ALL 2 ) ) WHEN + 13 * - 35 - 86 * + COUNT( * ) THEN - 35 * + 30 - 25 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL + COUNT ( * ) / CASE CASE - 75 WHEN + - 59 + - + 40 THEN - - CAST ( + 1 AS INTEGER ) / - 8 + - + COUNT ( * ) / - 17 * - 49 WHEN + CASE + ( COUNT ( * ) ) WHEN - 97 THEN 40 END + 56 THEN NULL END WHEN 79 * - 84 + - 28 THEN + ( AVG ( ALL 2 ) ) WHEN + 13 * - 35 - 86 * + COUNT ( * ) THEN - 35 * + 30 - 25 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 37 + + 86 + + + ( 75 ) * 24
----
1923

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9499
SELECT - 19 - - + COUNT( ( + 8 ) ) DIV 53 DIV + 60, - ( + - 96 ) * 40 AS col2
----
-19
3840

skipif mysql # not compatible
query II rowsort label-9499
SELECT - 19 - - + COUNT ( ( + 8 ) ) / 53 / + 60, - ( + - 96 ) * 40 AS col2
----
-19
3840

query I rowsort
SELECT DISTINCT - 54 * + + 79
----
-4266

query I rowsort
SELECT DISTINCT 37 + - 80
----
-43

query I rowsort
SELECT - 66 + - + 28 AS col2
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9503
SELECT ALL SUM( ( - 81 ) ) + + + COALESCE ( + - 68, 54 DIV 95 - + 62 )
----
-149

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL SUM ( ( - 81 ) ) + + + COALESCE ( + - 68, 54 / 95 - + 62 )
----
-149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9504
SELECT - CAST( + 80 AS SIGNED ) + + COALESCE ( 78, - - 2 - + 23, + - COUNT( * ) * COUNT( * ), 99 * - + 53 * + + COUNT( * ) DIV - ( + 23 ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9504
SELECT - CAST ( + 80 AS INTEGER ) + + COALESCE ( 78, - - 2 - + 23, + - COUNT ( * ) * COUNT ( * ), 99 * - + 53 * + + COUNT ( * ) / - ( + 23 ) ) AS col2
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-9505
SELECT ALL - 37 + 18 - 12 DIV - - 37 col1, 67
----
-19
67

skipif mysql # not compatible
query II rowsort label-9505
SELECT ALL - 37 + 18 - 12 / - - 37 col1, 67
----
-19
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9506
SELECT - CASE + ( 37 ) WHEN + - COUNT( * ) THEN NULL WHEN 23 THEN + CAST( + - COALESCE ( - 37, 56 ) AS DECIMAL ) ELSE - + 57 END + - 28 + - CASE 42 WHEN + COUNT( * ) * 80 THEN - 4 + + 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT - CASE + ( 37 ) WHEN + - COUNT ( * ) THEN NULL WHEN 23 THEN + CAST ( + - COALESCE ( - 37, 56 ) AS REAL ) ELSE - + 57 END + - 28 + - CASE 42 WHEN + COUNT ( * ) * 80 THEN - 4 + + 13 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT ALL - + 78 + - 49 + - + COUNT( * ) + - - 71 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL - + 78 + - 49 + - + COUNT ( * ) + - - 71 AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT - - 43 * + MIN( ALL + + 40 ) col1
----
1720

skipif mysql # not compatible
query I rowsort label-9508
SELECT - - 43 * + MIN ( ALL + + 40 ) col1
----
1720

query I rowsort
SELECT + COALESCE ( 68, - 68, + 66 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT + SUM( DISTINCT 63 ) * - 59 AS col1
----
-3717

skipif mysql # not compatible
query I rowsort label-9510
SELECT + SUM ( DISTINCT 63 ) * - 59 AS col1
----
-3717

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9511
SELECT ALL - 18 / + AVG ( ALL - 85 ) * - 32 + - 67 + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL - 18 / + AVG ( ALL - 85 ) * - 32 + - 67 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - - 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT + - SUM( DISTINCT NULLIF ( - - 27, + 69 ) ) + 79
----
52

skipif mysql # not compatible
query I rowsort label-9512
SELECT + - SUM ( DISTINCT NULLIF ( - - 27, + 69 ) ) + 79
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9513
SELECT + 0 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-9513
SELECT + 0 / 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT - COUNT( * ) * 62 + 93
----
31

skipif mysql # not compatible
query I rowsort label-9514
SELECT - COUNT ( * ) * 62 + 93
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9515
SELECT + + 25 + + 8 + 97 * + COUNT( * ) + CASE WHEN NOT ( + 58 ) BETWEEN ( + ( 19 ) ) AND NULL THEN 54 - COUNT( * ) * - AVG ( CAST( NULL AS DECIMAL ) ) WHEN NULL = - 0 * 32 THEN 60 + 51 * 59 END + + COUNT( * ) * CAST( + 8 AS SIGNED ) / 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9515
SELECT + + 25 + + 8 + 97 * + COUNT ( * ) + CASE WHEN NOT ( + 58 ) BETWEEN ( + ( 19 ) ) AND NULL THEN 54 - COUNT ( * ) * - AVG ( CAST ( NULL AS REAL ) ) WHEN NULL = - 0 * 32 THEN 60 + 51 * 59 END + + COUNT ( * ) * CAST ( + 8 AS INTEGER ) / 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9516
SELECT - NULLIF ( - 91, 3 * 18 + + + 59 ) * - 79 - 31 + - + 77 - COUNT( * ) - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT - NULLIF ( - 91, 3 * 18 + + + 59 ) * - 79 - 31 + - + 77 - COUNT ( * ) - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9517
SELECT ALL + 55 DIV - ( - 74 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL + 55 / - ( - 74 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9518
SELECT + ( - + COUNT( * ) ) col0, 72
----
-1
72

skipif mysql # not compatible
query II rowsort label-9518
SELECT + ( - + COUNT ( * ) ) col0, 72
----
-1
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9519
SELECT ALL ( - - ( - COUNT( 42 ) ) ) DIV + - 75 + + 99 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL ( - - ( - COUNT ( 42 ) ) ) / + - 75 + + 99 AS col2
----
99

query II rowsort
SELECT + 73 + - 22 AS col1, 36
----
51
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9521
SELECT + CAST( + 88 AS SIGNED ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9521
SELECT + CAST ( + 88 AS INTEGER ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT + COUNT( * ) + - CASE - + ( - - AVG ( + 90 ) ) WHEN + - ( - - 58 ) THEN NULL ELSE 46 + - + 98 END * + 29 - - 46 * 31 * + COUNT( * ) AS col2
----
2935

skipif mysql # not compatible
query I rowsort label-9522
SELECT + COUNT ( * ) + - CASE - + ( - - AVG ( + 90 ) ) WHEN + - ( - - 58 ) THEN NULL ELSE 46 + - + 98 END * + 29 - - 46 * 31 * + COUNT ( * ) AS col2
----
2935

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT ALL 90 * - MAX( DISTINCT - - 57 ) AS col0
----
-5130

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL 90 * - MAX ( DISTINCT - - 57 ) AS col0
----
-5130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9524
SELECT 73 * + 32, - CAST( 46 AS SIGNED ) / - ( + + CAST( NULL AS SIGNED ) ) AS col2
----
2336
NULL

skipif mysql # not compatible
query II rowsort label-9524
SELECT 73 * + 32, - CAST ( 46 AS INTEGER ) / - ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
2336
NULL

query I rowsort
SELECT DISTINCT ( - + 82 ) + - 16
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT ALL ( - + ( COUNT( * ) ) ) * 34
----
-34

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL ( - + ( COUNT ( * ) ) ) * 34
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9527
SELECT ALL + 96 + + + 91, - COUNT( * ) * + 97 DIV + 27 AS col0
----
187
-3

skipif mysql # not compatible
query II rowsort label-9527
SELECT ALL + 96 + + + 91, - COUNT ( * ) * + 97 / + 27 AS col0
----
187
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9528
SELECT ( + - ( + 33 ) ) DIV + SUM( 91 ) * - - 83 * - 74
----
0

skipif mysql # not compatible
query I rowsort label-9528
SELECT ( + - ( + 33 ) ) / + SUM ( 91 ) * - - 83 * - 74
----
0

query II rowsort
SELECT 88 * - 82 col0, 49 AS col0
----
-7216
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL - 33 + - MAX( DISTINCT + 57 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL - 33 + - MAX ( DISTINCT + 57 ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT + 8 - 25 + 75 * - COUNT( * ) col2
----
-92

skipif mysql # not compatible
query I rowsort label-9531
SELECT + 8 - 25 + 75 * - COUNT ( * ) col2
----
-92

query I rowsort
SELECT ALL + 3 * + 38 AS col0
----
114

query I rowsort
SELECT - 57 * - 15
----
855

onlyif mysql # aggregate syntax: 
query II rowsort label-9534
SELECT + SUM( + 85 ), ( 47 ) / + - 46 * - 71 + - + 77 + NULLIF ( 15, 97 + + 40 ) - CASE 74 WHEN 55 + - NULLIF ( 72, - CASE + 94 WHEN 61 / - AVG ( DISTINCT 88 ) + + 24 THEN 7 * 37 ELSE NULL END ) / + 44 THEN - 86 END col0
----
85
NULL

skipif mysql # not compatible
query II rowsort label-9534
SELECT + SUM ( + 85 ), ( 47 ) / + - 46 * - 71 + - + 77 + NULLIF ( 15, 97 + + 40 ) - CASE 74 WHEN 55 + - NULLIF ( 72, - CASE + 94 WHEN 61 / - AVG ( DISTINCT 88 ) + + 24 THEN 7 * 37 ELSE NULL END ) / + 44 THEN - 86 END col0
----
85
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9535
SELECT + 75 DIV - + ( + + 97 ) + - 6 col0
----
-6

skipif mysql # not compatible
query I rowsort label-9535
SELECT + 75 / - + ( + + 97 ) + - 6 col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT + - COUNT( DISTINCT 24 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9536
SELECT + - COUNT ( DISTINCT 24 ) AS col1
----
-1

query I rowsort
SELECT + 7 * + - 63
----
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT ALL - - CASE - 91 WHEN + COUNT( * ) * - 41 + - 2 THEN 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL - - CASE - 91 WHEN + COUNT ( * ) * - 41 + - 2 THEN 60 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9539
SELECT DISTINCT + - 96 * - COUNT( * ), COUNT( * ) AS col1
----
96
1

skipif mysql # not compatible
query II rowsort label-9539
SELECT DISTINCT + - 96 * - COUNT ( * ), COUNT ( * ) AS col1
----
96
1

query I rowsort
SELECT - 73 * 82 + 93
----
-5893

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT DISTINCT - 93 * + 46 + SUM( ALL + 40 ) AS col0
----
-4238

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT - 93 * + 46 + SUM ( ALL + 40 ) AS col0
----
-4238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9542
SELECT DISTINCT + + COALESCE ( + MIN( ALL + + 7 ), - 12 - + - COUNT( * ), - 28 * 46 + - 67 + - 24 * - 9 * - - 83 + COUNT( * ), 39 ) DIV - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT + + COALESCE ( + MIN ( ALL + + 7 ), - 12 - + - COUNT ( * ), - 28 * 46 + - 67 + - 24 * - 9 * - - 83 + COUNT ( * ), 39 ) / - COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT ALL - SUM( ALL 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL - SUM ( ALL 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT NULLIF ( + + COUNT( * ), + 93 + + - 13 * 37 ) + + 20
----
21

skipif mysql # not compatible
query I rowsort label-9544
SELECT NULLIF ( + + COUNT ( * ), + 93 + + - 13 * 37 ) + + 20
----
21

query I rowsort
SELECT 54 * + 53 AS col1
----
2862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9546
SELECT DISTINCT - COALESCE ( - COUNT( * ), + CAST( NULL AS SIGNED ), - CAST( - - 65 AS SIGNED ) + + COUNT( ALL + + 25 ) ) * - - CAST( 29 AS SIGNED ) * - 26 AS col2
----
-754

skipif mysql # not compatible
query I rowsort label-9546
SELECT DISTINCT - COALESCE ( - COUNT ( * ), + CAST ( NULL AS INTEGER ), - CAST ( - - 65 AS INTEGER ) + + COUNT ( ALL + + 25 ) ) * - - CAST ( 29 AS INTEGER ) * - 26 AS col2
----
-754

query I rowsort
SELECT 35 - + 46
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9548
SELECT + 9, COUNT( * ) + - CAST( + - 27 AS SIGNED ) + + 89 AS col0
----
9
117

skipif mysql # not compatible
query II rowsort label-9548
SELECT + 9, COUNT ( * ) + - CAST ( + - 27 AS INTEGER ) + + 89 AS col0
----
9
117

query I rowsort
SELECT 63 * 84 * ( + - 12 ) * - - 82 + + 43 * - + 90 AS col2
----
-5211198

query I rowsort
SELECT 79 * NULLIF ( + 58, 50 + + 72 )
----
4582

query I rowsort
SELECT DISTINCT - ( + 25 )
----
-25

query I rowsort
SELECT ALL 78 + + ( 36 ) * ( + 18 ) * 56
----
36366

query I rowsort
SELECT 69 - - - 91
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9554
SELECT DISTINCT 90 / + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT 90 / + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT ( - COUNT( * ) ) - - 93 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-9555
SELECT ( - COUNT ( * ) ) - - 93 AS col2
----
92

query II rowsort
SELECT 91 AS col1, 61 AS col2
----
91
61

query II rowsort
SELECT - 41 AS col2, 89 col2
----
-41
89

onlyif mysql # aggregate syntax: 
query II rowsort label-9558
SELECT - COUNT( * ), 36 + + 25 col1
----
-1
61

skipif mysql # not compatible
query II rowsort label-9558
SELECT - COUNT ( * ), 36 + + 25 col1
----
-1
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9559
SELECT ALL 75 + 23 DIV + 99 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL 75 + 23 / + 99 AS col1
----
75

query I rowsort
SELECT 56 * - ( + + 79 ) * 34 AS col1
----
-150416

query I rowsort
SELECT DISTINCT - 4 * - + 93 * + ( - 17 )
----
-6324

query I rowsort
SELECT CASE + 72 WHEN - 23 THEN 88 * + - 71 * - ( 0 ) ELSE - 10 + + 55 * + 96 END AS col0
----
5270

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT ALL - NULLIF ( - 66, 12 * COUNT( * ) * - 10 / - SUM( DISTINCT 19 ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL - NULLIF ( - 66, 12 * COUNT ( * ) * - 10 / - SUM ( DISTINCT 19 ) ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT ALL SUM( + - 71 ) col1
----
-71

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL SUM ( + - 71 ) col1
----
-71

query II rowsort
SELECT 48 + + 56 * - 77 AS col0, + 63
----
-4264
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT COUNT( * ) * - + ( - COUNT( * ) ) * 95 + - 71 + 86
----
110

skipif mysql # not compatible
query I rowsort label-9566
SELECT COUNT ( * ) * - + ( - COUNT ( * ) ) * 95 + - 71 + 86
----
110

query I rowsort
SELECT - COALESCE ( + 38, 97, - 85, + 84 + - + 64 )
----
-38

query I rowsort
SELECT ALL + 80 - - 20 col2
----
100

query I rowsort
SELECT + 82 + + ( + 16 ) + + 70 + + 5
----
173

onlyif mysql # DIV for integer division: 
query I rowsort label-9570
SELECT 28 DIV COALESCE ( - 30, 12 + - + 26 )
----
0

skipif mysql # not compatible
query I rowsort label-9570
SELECT 28 / COALESCE ( - 30, 12 + - + 26 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9571
SELECT - COUNT( - - 75 ) DIV - 27 * + 83 DIV + 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9571
SELECT - COUNT ( - - 75 ) / - 27 * + 83 / + 32 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9572
SELECT ALL - ( - 84 ) * - 64 AS col2, + 56 DIV - + CAST( - + 95 AS SIGNED ) + - ( + 86 ) AS col1
----
-5376
-86

skipif mysql # not compatible
query II rowsort label-9572
SELECT ALL - ( - 84 ) * - 64 AS col2, + 56 / - + CAST ( - + 95 AS INTEGER ) + - ( + 86 ) AS col1
----
-5376
-86

query I rowsort
SELECT - 49 * - + 87
----
4263

query I rowsort
SELECT ALL 18 * + 13
----
234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT DISTINCT - - COALESCE ( CAST( 60 AS SIGNED ), + - 97 + + - 26, + 5 * - - 81 )
----
60

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT - - COALESCE ( CAST ( 60 AS INTEGER ), + - 97 + + - 26, + 5 * - - 81 )
----
60

query II rowsort
SELECT 64, 32 AS col1
----
64
32

onlyif mysql # aggregate syntax: 
query II rowsort label-9577
SELECT ALL + 53 * + COUNT( * ) - - - 50 col0, NULLIF ( - + 88, - + 97 + - - COUNT( * ) )
----
3
-88

skipif mysql # not compatible
query II rowsort label-9577
SELECT ALL + 53 * + COUNT ( * ) - - - 50 col0, NULLIF ( - + 88, - + 97 + - - COUNT ( * ) )
----
3
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-9578
SELECT DISTINCT - 56, + 95 DIV - 95 AS col2
----
-56
-1

skipif mysql # not compatible
query II rowsort label-9578
SELECT DISTINCT - 56, + 95 / - 95 AS col2
----
-56
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9579
SELECT DISTINCT + 11 * - 60 + COUNT( * ) DIV - 88
----
-660

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT + 11 * - 60 + COUNT ( * ) / - 88
----
-660

query I rowsort
SELECT ALL + ( - 51 ) AS col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-9581
SELECT ALL 32 * + 86 + - + COALESCE ( + - 69, - - 77 DIV - - 25 ) AS col0
----
2821

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL 32 * + 86 + - + COALESCE ( + - 69, - - 77 / - - 25 ) AS col0
----
2821

query I rowsort
SELECT - 90 * + 97
----
-8730

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT DISTINCT 75 * + 41 + + NULLIF ( - 86, 36 ) - + 90 - SUM( - + 7 )
----
2906

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT 75 * + 41 + + NULLIF ( - 86, 36 ) - + 90 - SUM ( - + 7 )
----
2906

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT ALL - 5 * + - 42 * COUNT( * )
----
210

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL - 5 * + - 42 * COUNT ( * )
----
210

query I rowsort
SELECT DISTINCT 44 * ( + ( - ( - 35 ) ) ) + + - 15 AS col1
----
1525

query I rowsort
SELECT ALL + 32 + + 74 - 30
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9587
SELECT - 24 DIV NULLIF ( + + 98, + 51 * - 95 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9587
SELECT - 24 / NULLIF ( + + 98, + 51 * - 95 ) AS col1
----
0

query I rowsort
SELECT ALL + 33 - 44 * + - 32 AS col1
----
1441

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL - 78 * 56 * - COUNT( * ) * + 50
----
218400

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL - 78 * 56 * - COUNT ( * ) * + 50
----
218400

query I rowsort
SELECT ALL 88 - + + 18
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9591
SELECT DISTINCT ( + - NULLIF ( - + CAST( - ( - 71 ) AS SIGNED ), + 62 + - MIN( + 98 ) ) )
----
71

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT ( + - NULLIF ( - + CAST ( - ( - 71 ) AS INTEGER ), + 62 + - MIN ( + 98 ) ) )
----
71

query I rowsort
SELECT ALL - ( - 70 ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT + - 64 * - - ( MAX( DISTINCT + 21 ) ) + + - COUNT( * ) + 90 col2
----
-1255

skipif mysql # not compatible
query I rowsort label-9593
SELECT + - 64 * - - ( MAX ( DISTINCT + 21 ) ) + + - COUNT ( * ) + 90 col2
----
-1255

query I rowsort
SELECT + - 6 * - 11
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9595
SELECT SUM( - + CAST( - 50 AS SIGNED ) )
----
50

skipif mysql # not compatible
query I rowsort label-9595
SELECT SUM ( - + CAST ( - 50 AS INTEGER ) )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9596
SELECT - 92 * ( + + CAST( NULL AS SIGNED ) ) + - 9 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT - 92 * ( + + CAST ( NULL AS INTEGER ) ) + - 9 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9597
SELECT + CAST( - 46 AS SIGNED ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-9597
SELECT + CAST ( - 46 AS INTEGER ) AS col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9598
SELECT + CAST( NULL AS SIGNED ) - + ( CASE + 80 WHEN + - COUNT( * ) THEN 75 END ) * + ( + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT + CAST ( NULL AS INTEGER ) - + ( CASE + 80 WHEN + - COUNT ( * ) THEN 75 END ) * + ( + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT + 19 - CAST( NULL AS SIGNED ) * - 13 * - - CASE + 68 WHEN + 98 - - 76 - + + 18 * + + 16 THEN NULL WHEN + ( + 66 ) THEN 71 * + 9 * 86 + 34 - + 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT + 19 - CAST ( NULL AS INTEGER ) * - 13 * - - CASE + 68 WHEN + 98 - - 76 - + + 18 * + + 16 THEN NULL WHEN + ( + 66 ) THEN 71 * + 9 * 86 + 34 - + 6 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9600
SELECT + + 37 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT + + 37 * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT - - MAX( ALL 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-9601
SELECT - - MAX ( ALL 33 ) AS col1
----
33

query I rowsort
SELECT ALL + 99 + + 94
----
193

query I rowsort
SELECT ALL - 24 + + 0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT + - ( + + 71 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT + - ( + + 71 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 13 - - 14
----
1

query I rowsort
SELECT + + 42 col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT + COUNT( * ) * - 61 - - 32 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-9607
SELECT + COUNT ( * ) * - 61 - - 32 AS col0
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9608
SELECT ALL - - 21 DIV - COUNT( * ) + 71 * + 48 * + - ( - 80 ) * - 16, - 95 AS col2
----
-4362261
-95

skipif mysql # not compatible
query II rowsort label-9608
SELECT ALL - - 21 / - COUNT ( * ) + 71 * + 48 * + - ( - 80 ) * - 16, - 95 AS col2
----
-4362261
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9609
SELECT - 34 / 22 + 51 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9609
SELECT - 34 / 22 + 51 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( - + 34 ) AS col2
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9611
SELECT ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT MIN( 79 ) * - COUNT( * ) + + 5 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-9612
SELECT MIN ( 79 ) * - COUNT ( * ) + + 5 AS col2
----
-74

query I rowsort
SELECT ALL - 9 * + 52 AS col1
----
-468

query I rowsort
SELECT ( + + ( 75 ) ) AS col1
----
75

query I rowsort
SELECT ALL 65 * - 46 + 88 AS col0
----
-2902

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ALL + COALESCE ( COUNT( * ), - - 50 * + 40 )
----
1

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL + COALESCE ( COUNT ( * ), - - 50 * + 40 )
----
1

query I rowsort
SELECT - ( - 95 ) + - + 30 AS col1
----
65

query I rowsort
SELECT ALL + NULLIF ( - + 64, 74 ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-9619
SELECT + 64 * + 55 + - 31 AS col1, COUNT( ALL 47 ) * - 70 col0
----
3489
-70

skipif mysql # not compatible
query II rowsort label-9619
SELECT + 64 * + 55 + - 31 AS col1, COUNT ( ALL 47 ) * - 70 col0
----
3489
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9620
SELECT - CAST( - + 41 AS SIGNED ) + + 11
----
52

skipif mysql # not compatible
query I rowsort label-9620
SELECT - CAST ( - + 41 AS INTEGER ) + + 11
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT ALL - COUNT( * ) * - - 12 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL - COUNT ( * ) * - - 12 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT - MIN( 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-9622
SELECT - MIN ( 87 )
----
-87

query I rowsort
SELECT - 54 + 60
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT - 24 + - CAST( 20 AS SIGNED ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-9624
SELECT - 24 + - CAST ( 20 AS INTEGER ) AS col2
----
-44

query I rowsort
SELECT ALL + CASE + 92 WHEN + - 56 THEN + 53 * + 26 WHEN CASE + 14 WHEN + - 59 - + 68 THEN - - 24 ELSE NULL END - + - 30 + - 64 * + - 43 + - 7 THEN + + 93 END * 72
----
NULL

query I rowsort
SELECT - + 33 + + 45
----
12

query I rowsort
SELECT DISTINCT + 22 * 46 AS col0
----
1012

query I rowsort
SELECT - - ( + 21 ) + + 59
----
80

query I rowsort
SELECT + 64 * + 41 * 30 AS col1
----
78720

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL - CASE 93 WHEN + ( - 30 ) THEN - ( - 78 ) WHEN + 70 THEN - 11 * - 88 / - COUNT( - 98 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL - CASE 93 WHEN + ( - 30 ) THEN - ( - 78 ) WHEN + 70 THEN - 11 * - 88 / - COUNT ( - 98 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - + 83 + + + 89 col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9632
SELECT ALL + MIN( DISTINCT - + CAST( - 19 AS SIGNED ) ) * + 70 - - ( + - 67 )
----
1263

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL + MIN ( DISTINCT - + CAST ( - 19 AS INTEGER ) ) * + 70 - - ( + - 67 )
----
1263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9633
SELECT DISTINCT - COALESCE ( + + 25, COUNT( * ) / - 30 - - 33 * + + COUNT( * ), - 7 * + 30 + + ( + 28 ) * ( - + MIN( DISTINCT - 55 ) ) - + 65, - + 28 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT - COALESCE ( + + 25, COUNT ( * ) / - 30 - - 33 * + + COUNT ( * ), - 7 * + 30 + + ( + 28 ) * ( - + MIN ( DISTINCT - 55 ) ) - + 65, - + 28 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9634
SELECT DISTINCT + COUNT( * ) DIV + 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT + COUNT ( * ) / + 21 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9635
SELECT - + 33 DIV + + 75 DIV COUNT( * ) * - COALESCE ( - 24, - 11 ) - + 10 DIV + CAST( 94 AS SIGNED ) * + 29
----
0

skipif mysql # not compatible
query I rowsort label-9635
SELECT - + 33 / + + 75 / COUNT ( * ) * - COALESCE ( - 24, - 11 ) - + 10 / + CAST ( 94 AS INTEGER ) * + 29
----
0

query I rowsort
SELECT ALL + 28 + + + 71
----
99

query I rowsort
SELECT DISTINCT 79 * - 30 AS col0
----
-2370

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9638
SELECT - ( - 75 ) + - CASE COUNT( * ) WHEN + - ( - 53 ) - 16 + - 9 * - 57 - 46 - 76 + 50 / - 72 THEN NULL WHEN - - COUNT( * ) THEN - + CAST( NULL AS DECIMAL ) ELSE + 22 END * - 96 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT - ( - 75 ) + - CASE COUNT ( * ) WHEN + - ( - 53 ) - 16 + - 9 * - 57 - 46 - 76 + 50 / - 72 THEN NULL WHEN - - COUNT ( * ) THEN - + CAST ( NULL AS REAL ) ELSE + 22 END * - 96 col2
----
NULL

query II rowsort
SELECT - + 60, + 75 AS col2
----
-60
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT DISTINCT 26 + + + 69 + MAX( DISTINCT + 61 ) * + 93 + - - 8 + 53 AS col2
----
5829

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT 26 + + + 69 + MAX ( DISTINCT + 61 ) * + 93 + - - 8 + 53 AS col2
----
5829

onlyif mysql # DIV for integer division: 
query II rowsort label-9641
SELECT DISTINCT 67 - + 52 AS col2, 75 DIV + + ( - 96 ) AS col1
----
15
0

skipif mysql # not compatible
query II rowsort label-9641
SELECT DISTINCT 67 - + 52 AS col2, 75 / + + ( - 96 ) AS col1
----
15
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9642
SELECT + 63 AS col1, COUNT( * ) + + COUNT( * ) AS col0
----
63
2

skipif mysql # not compatible
query II rowsort label-9642
SELECT + 63 AS col1, COUNT ( * ) + + COUNT ( * ) AS col0
----
63
2

query I rowsort
SELECT + 61 * - + 78 + + 89 + 91 AS col2
----
-4578

query II rowsort
SELECT DISTINCT - 30 AS col0, 91
----
-30
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9645
SELECT 8 * + 75 AS col0, COUNT( ALL + - 42 )
----
600
1

skipif mysql # not compatible
query II rowsort label-9645
SELECT 8 * + 75 AS col0, COUNT ( ALL + - 42 )
----
600
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9646
SELECT CASE - 5 WHEN - CAST( COUNT( DISTINCT + - 81 ) AS DECIMAL ) * 25 THEN ( + - 17 ) + + - AVG ( DISTINCT + 96 ) WHEN + 85 + - 33 * + + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * AVG ( DISTINCT + 78 ) - - 78 * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9646
SELECT CASE - 5 WHEN - CAST ( COUNT ( DISTINCT + - 81 ) AS REAL ) * 25 THEN ( + - 17 ) + + - AVG ( DISTINCT + 96 ) WHEN + 85 + - 33 * + + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * AVG ( DISTINCT + 78 ) - - 78 * - 33
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9647
SELECT DISTINCT 24 DIV - + 84
----
0

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT 24 / - + 84
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9648
SELECT ALL - 24 AS col1, 93 * + COUNT( * ) AS col0
----
-24
93

skipif mysql # not compatible
query II rowsort label-9648
SELECT ALL - 24 AS col1, 93 * + COUNT ( * ) AS col0
----
-24
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9649
SELECT CAST( - 55 AS SIGNED ) * + 45 * + 41 AS col2
----
-101475

skipif mysql # not compatible
query I rowsort label-9649
SELECT CAST ( - 55 AS INTEGER ) * + 45 * + 41 AS col2
----
-101475

query I rowsort
SELECT ALL 59 * 45 AS col1
----
2655

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT DISTINCT MAX( ALL + 10 ) * + 48 AS col1
----
480

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT MAX ( ALL + 10 ) * + 48 AS col1
----
480

query I rowsort
SELECT 14 + + - 70 AS col2
----
-56

query I rowsort
SELECT ALL 53 * + - 40 AS col1
----
-2120

query II rowsort
SELECT ALL - 13 AS col2, 26 AS col1
----
-13
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9655
SELECT - 52 DIV - 26 * + ( - MIN( DISTINCT - 37 ) ) DIV + 36 + - CAST( - 50 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-9655
SELECT - 52 / - 26 * + ( - MIN ( DISTINCT - 37 ) ) / + 36 + - CAST ( - 50 AS INTEGER )
----
52

query I rowsort
SELECT 0 + 3 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT + COUNT( * ) * - - 41 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9657
SELECT + COUNT ( * ) * - - 41 AS col2
----
41

query II rowsort
SELECT 90, - 99 AS col1
----
90
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9659
SELECT - - CAST( NULL AS SIGNED ) * + 96 - NULLIF ( + 40, 58 * + 85 ) * - 49 * - 57 - + 43 - + 33 * - - 53 + - 95 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9659
SELECT - - CAST ( NULL AS INTEGER ) * + 96 - NULLIF ( + 40, 58 * + 85 ) * - 49 * - 57 - + 43 - + 33 * - - 53 + - 95 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9660
SELECT MIN( DISTINCT - 21 ), 15 * + 81 AS col2
----
-21
1215

skipif mysql # not compatible
query II rowsort label-9660
SELECT MIN ( DISTINCT - 21 ), 15 * + 81 AS col2
----
-21
1215

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9661
SELECT ALL + ( 59 ) AS col2, - CAST( NULL AS SIGNED ) * - 56
----
59
NULL

skipif mysql # not compatible
query II rowsort label-9661
SELECT ALL + ( 59 ) AS col2, - CAST ( NULL AS INTEGER ) * - 56
----
59
NULL

query I rowsort
SELECT ALL 71 + + 14 AS col0
----
85

query I rowsort
SELECT ALL NULLIF ( - 81, - 52 ) AS col2
----
-81

query I rowsort
SELECT 49 * - 9 * - 45 * + 83
----
1647135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9665
SELECT 41 DIV - + COALESCE ( + - 62, 83 ) DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9665
SELECT 41 / - + COALESCE ( + - 62, 83 ) / - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL + COUNT( * ) + + + 81 * COALESCE ( - + 14, + 18 * - + 5 ) * + 83
----
-94121

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL + COUNT ( * ) + + + 81 * COALESCE ( - + 14, + 18 * - + 5 ) * + 83
----
-94121

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT 72 * - 57 * + - COUNT( * ) AS col2
----
4104

skipif mysql # not compatible
query I rowsort label-9667
SELECT 72 * - 57 * + - COUNT ( * ) AS col2
----
4104

query I rowsort
SELECT ALL + ( + + 62 ) AS col1
----
62

query I rowsort
SELECT + 17 + + 67
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9670
SELECT SUM( 28 ) * - 50 - + - 65 DIV 99 * SUM( - 83 ) AS col0
----
-1400

skipif mysql # not compatible
query I rowsort label-9670
SELECT SUM ( 28 ) * - 50 - + - 65 / 99 * SUM ( - 83 ) AS col0
----
-1400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9671
SELECT DISTINCT MAX( ALL + 7 ) / + 24 + CAST( NULL AS SIGNED ) + + 39 * ( - 97 ) + 60 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT MAX ( ALL + 7 ) / + 24 + CAST ( NULL AS INTEGER ) + + 39 * ( - 97 ) + 60 * - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 64 - - 54
----
118

query I rowsort
SELECT + 57 * 19 - + 78 AS col0
----
1005

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT 63 * - 79 * + COALESCE ( + 95, - - MAX( ( + + 13 ) ), 17 ) AS col1
----
-472815

skipif mysql # not compatible
query I rowsort label-9674
SELECT 63 * - 79 * + COALESCE ( + 95, - - MAX ( ( + + 13 ) ), 17 ) AS col1
----
-472815

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9675
SELECT ALL 19 * - - 77 * - CAST( NULL AS DECIMAL ) * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL 19 * - - 77 * - CAST ( NULL AS REAL ) * 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL + 74 * CASE + + 58 WHEN - COUNT( * ) THEN 39 WHEN + COUNT( * ) THEN + - 63 * 74 + - - ( - COUNT( ALL + 72 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL + 74 * CASE + + 58 WHEN - COUNT ( * ) THEN 39 WHEN + COUNT ( * ) THEN + - 63 * 74 + - - ( - COUNT ( ALL + 72 ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT DISTINCT COUNT( * ) * - - 50 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT COUNT ( * ) * - - 50 AS col1
----
50

query I rowsort
SELECT ( + 36 ) * + 21
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT MIN( + - 78 ) + - + 77 AS col2
----
-155

skipif mysql # not compatible
query I rowsort label-9679
SELECT MIN ( + - 78 ) + - + 77 AS col2
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT MAX( 94 )
----
94

skipif mysql # not compatible
query I rowsort label-9680
SELECT MAX ( 94 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9681
SELECT + 50 / COUNT( * ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9681
SELECT + 50 / COUNT ( * ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9682
SELECT DISTINCT - MAX( DISTINCT - 28 ) + - + COALESCE ( + - 39, CAST( NULL AS SIGNED ) DIV + 23 DIV - 92 + CAST( + - 92 AS SIGNED ) DIV - + COALESCE ( - 28, - + 62 ), 88, + ( + 61 ) DIV + 55 + - + 47 * - 54 ) col0
----
67

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT - MAX ( DISTINCT - 28 ) + - + COALESCE ( + - 39, CAST ( NULL AS INTEGER ) / + 23 / - 92 + CAST ( + - 92 AS INTEGER ) / - + COALESCE ( - 28, - + 62 ), 88, + ( + 61 ) / + 55 + - + 47 * - 54 ) col0
----
67

query I rowsort
SELECT ALL 16 * + 79 * - 57
----
-72048

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT ALL 55 + MAX( - 51 ) * + 91 - + 92
----
-4678

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL 55 + MAX ( - 51 ) * + 91 - + 92
----
-4678

query I rowsort
SELECT ALL + 81 + - 68 * + - 73 AS col1
----
5045

query I rowsort
SELECT DISTINCT - COALESCE ( ( + 75 ), + 44, - 67 )
----
-75

query I rowsort
SELECT ALL + 11 * - 42
----
-462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9688
SELECT + + COUNT( * ) DIV + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9688
SELECT + + COUNT ( * ) / + 71 AS col0
----
0

query I rowsort
SELECT - 88 * 17 + 71 + 81 + - - 57 + - 20 AS col0
----
-1307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9690
SELECT ALL - CAST( NULL AS SIGNED ) * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL - CAST ( NULL AS INTEGER ) * 97
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9691
SELECT ALL + 20 + - + 10 * - COALESCE ( - - NULLIF ( 88, CAST( COUNT( * ) AS DECIMAL ) ), + 66 DIV - NULLIF ( + + MIN( ALL - 46 ), - 12 ) ) + - 83 + + 70 DIV - CAST( ( 13 ) AS SIGNED ) + + 93
----
905

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL + 20 + - + 10 * - COALESCE ( - - NULLIF ( 88, CAST ( COUNT ( * ) AS REAL ) ), + 66 / - NULLIF ( + + MIN ( ALL - 46 ), - 12 ) ) + - 83 + + 70 / - CAST ( ( 13 ) AS INTEGER ) + + 93
----
905

query I rowsort
SELECT - - ( 64 ) col1
----
64

query I rowsort
SELECT - + 51 + 49
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT ALL - 45 + - 43 + + COUNT( * ) * 41 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL - 45 + - 43 + + COUNT ( * ) * 41 AS col2
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9695
SELECT ALL - MAX( ALL - ( + 73 ) ) * 35 DIV + MAX( DISTINCT - 9 ) AS col2
----
-283

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL - MAX ( ALL - ( + 73 ) ) * 35 / + MAX ( DISTINCT - 9 ) AS col2
----
-283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9696
SELECT DISTINCT CASE CASE + 9 WHEN - + 24 THEN - CASE - + 29 WHEN + - 86 / 85 + 63 THEN NULL WHEN 35 * - - CASE + + 51 WHEN - - 83 THEN + 62 * - CAST( NULL AS SIGNED ) + - - 88 + - + COUNT( * ) + 83 * - 15 + 7 / 48 WHEN + ( - 2 ) * 60 THEN 78 + - COUNT( * ) ELSE NULL END + - 84 THEN NULL WHEN + ( + 30 ) THEN + 71 * COUNT( * ) ELSE NULL END + - 37 ELSE NULL END WHEN - 93 - - 92 THEN + 28 WHEN - ( - COUNT( * ) ) + 46 / - 92 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT CASE CASE + 9 WHEN - + 24 THEN - CASE - + 29 WHEN + - 86 / 85 + 63 THEN NULL WHEN 35 * - - CASE + + 51 WHEN - - 83 THEN + 62 * - CAST ( NULL AS INTEGER ) + - - 88 + - + COUNT ( * ) + 83 * - 15 + 7 / 48 WHEN + ( - 2 ) * 60 THEN 78 + - COUNT ( * ) ELSE NULL END + - 84 THEN NULL WHEN + ( + 30 ) THEN + 71 * COUNT ( * ) ELSE NULL END + - 37 ELSE NULL END WHEN - 93 - - 92 THEN + 28 WHEN - ( - COUNT ( * ) ) + 46 / - 92 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT - - ( ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9697
SELECT - - ( ( - COUNT ( * ) ) )
----
-1

query I rowsort
SELECT - 15 + + 85 col2
----
70

query I rowsort
SELECT ALL 85 - 13 + 37
----
109

query I rowsort
SELECT + NULLIF ( + 16, ( + + 50 ) ) AS col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT - ( 48 ) + + NULLIF ( - 43, + 87 / CAST( NULL AS SIGNED ) - - - 94 )
----
-91

skipif mysql # not compatible
query I rowsort label-9701
SELECT - ( 48 ) + + NULLIF ( - 43, + 87 / CAST ( NULL AS INTEGER ) - - - 94 )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9702
SELECT ALL AVG ( DISTINCT - CASE - CAST( NULL AS SIGNED ) WHEN + + ( 79 ) THEN - 28 END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL AVG ( DISTINCT - CASE - CAST ( NULL AS INTEGER ) WHEN + + ( 79 ) THEN - 28 END ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9703
SELECT - CASE + + CAST( NULL AS SIGNED ) WHEN + 80 THEN + NULLIF ( - 54, + - ( + 96 ) * - 27 * + + 57 + - - 94 ) * - 0 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT - CASE + + CAST ( NULL AS INTEGER ) WHEN + 80 THEN + NULLIF ( - 54, + - ( + 96 ) * - 27 * + + 57 + - - 94 ) * - 0 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT - COUNT( * ) + - 9 * 94 * - + 27
----
22841

skipif mysql # not compatible
query I rowsort label-9704
SELECT - COUNT ( * ) + - 9 * 94 * - + 27
----
22841

query II rowsort
SELECT - 51 AS col0, 82 AS col0
----
-51
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT DISTINCT MAX( 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT MAX ( 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT ALL - 50 * - COUNT( * ) col0
----
50

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL - 50 * - COUNT ( * ) col0
----
50

query I rowsort
SELECT - 8 * 30 AS col0
----
-240

query I rowsort
SELECT - 14 * - 28
----
392

query I rowsort
SELECT - 73 + + 14 AS col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9711
SELECT - 59 AS col0, - CAST( NULL AS SIGNED ) col2
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-9711
SELECT - 59 AS col0, - CAST ( NULL AS INTEGER ) col2
----
-59
NULL

query I rowsort
SELECT DISTINCT 49 * + + 80 AS col2
----
3920

query I rowsort
SELECT - 78 * + 71
----
-5538

query I rowsort
SELECT ALL + NULLIF ( - 9, + 96 + - - 72 )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9715
SELECT ALL 24 DIV + - 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL 24 / + - 71 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT - 42 * + COUNT( * ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-9716
SELECT - 42 * + COUNT ( * ) AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9717
SELECT - CAST( NULL AS SIGNED ) * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT - CAST ( NULL AS INTEGER ) * 46
----
NULL

query I rowsort
SELECT - 14 * + ( - + 70 ) + + - 34 - 87 + - 45
----
814

query I rowsort
SELECT ALL - 50 * + - 88 + + + 87 + - 75 * 37 * - 28
----
82187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9720
SELECT NULLIF ( - 54, + - 86 - - 46 * - - CAST( 75 AS SIGNED ) * - - 1 * - - 57 + + CAST( - - 66 AS SIGNED ) )
----
-54

skipif mysql # not compatible
query I rowsort label-9720
SELECT NULLIF ( - 54, + - 86 - - 46 * - - CAST ( 75 AS INTEGER ) * - - 1 * - - 57 + + CAST ( - - 66 AS INTEGER ) )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9721
SELECT - ( - 76 ) * + + 22 - - - CAST( - COUNT( ALL - - 21 ) AS SIGNED ) + 66
----
1739

skipif mysql # not compatible
query I rowsort label-9721
SELECT - ( - 76 ) * + + 22 - - - CAST ( - COUNT ( ALL - - 21 ) AS INTEGER ) + 66
----
1739

query II rowsort
SELECT ALL + - 17 AS col2, 94
----
-17
94

query I rowsort
SELECT DISTINCT 91 * + ( 97 ) * - 98 + - 14
----
-865060

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT DISTINCT - COUNT( DISTINCT - 53 ) * - + 88 + - 73
----
15

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT - COUNT ( DISTINCT - 53 ) * - + 88 + - 73
----
15

query II rowsort
SELECT ALL + + 67, 76 - + + 89 col2
----
67
-13

query I rowsort
SELECT - 86 * ( - 43 ) - - ( - + 42 ) * 77 * 80
----
-255022

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT DISTINCT + CASE + + 82 WHEN - + COALESCE ( + - ( + COUNT( ( 2 ) ) ), 1 ) + - MIN( DISTINCT - 97 ) THEN NULL WHEN 51 + - + 6 THEN + 72 ELSE - 21 END AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-9727
SELECT DISTINCT + CASE + + 82 WHEN - + COALESCE ( + - ( + COUNT ( ( 2 ) ) ), 1 ) + - MIN ( DISTINCT - 97 ) THEN NULL WHEN 51 + - + 6 THEN + 72 ELSE - 21 END AS col2
----
-21

query I rowsort
SELECT DISTINCT 3 * 75 - - 71 * - - 6 + - 65 AS col2
----
586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9729
SELECT ALL + + MIN( DISTINCT CAST( NULL AS SIGNED ) ) * + + 60 - 44 + - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL + + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * + + 60 - 44 + - 34 AS col2
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 90, - + 58, - 57 + + ( 82 ) )
----
90

query I rowsort
SELECT DISTINCT 74 - ( - 2 ) AS col1
----
76

query II rowsort
SELECT DISTINCT - 32 AS col2, + 11 - + 4 * 10
----
-32
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT ALL CASE - 28 WHEN - 42 * 0 THEN - 21 * - COUNT( * ) END * - - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL CASE - 28 WHEN - 42 * 0 THEN - 21 * - COUNT ( * ) END * - - 44
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9734
SELECT + + 59 + - - 16 DIV + NULLIF ( 36, - 30 )
----
59

skipif mysql # not compatible
query I rowsort label-9734
SELECT + + 59 + - - 16 / + NULLIF ( 36, - 30 )
----
59

query I rowsort
SELECT + NULLIF ( - 77, ( + COALESCE ( + 99, - NULLIF ( - ( + 8 ), + ( 85 ) * 94 + 69 ) ) ) * - 17 + + 37 ) * 85
----
-6545

onlyif mysql # DIV for integer division: 
query I rowsort label-9736
SELECT + 91 + + + 19 DIV - 62 * + 55 DIV + 44
----
91

skipif mysql # not compatible
query I rowsort label-9736
SELECT + 91 + + + 19 / - 62 * + 55 / + 44
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9737
SELECT - NULLIF ( - 87, 50 ) DIV - 19
----
-4

skipif mysql # not compatible
query I rowsort label-9737
SELECT - NULLIF ( - 87, 50 ) / - 19
----
-4

query I rowsort
SELECT + 85 - + 18 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT DISTINCT 8 * + 20 * COUNT( * ) AS col1
----
160

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT 8 * + 20 * COUNT ( * ) AS col1
----
160

query I rowsort
SELECT DISTINCT COALESCE ( - - 3, + + 63 * - + 81 * + + 35 * - + 74 + + ( - 80 ) )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9741
SELECT + 37 + - 55 * CAST( - + 17 AS SIGNED ) AS col2
----
972

skipif mysql # not compatible
query I rowsort label-9741
SELECT + 37 + - 55 * CAST ( - + 17 AS INTEGER ) AS col2
----
972

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT ALL MIN( 13 ) col1
----
13

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL MIN ( 13 ) col1
----
13

query I rowsort
SELECT DISTINCT 95 + 16
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-9744
SELECT + 1 + + 24 DIV - 43 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9744
SELECT + 1 + + 24 / - 43 AS col2
----
1

query I rowsort
SELECT - 7 - + - 41 + + + 66 AS col0
----
100

query II rowsort
SELECT - 24 * + 63 AS col0, 66 col2
----
-1512
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9747
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) AS col1, 97 AS col0
----
1
97

skipif mysql # not compatible
query II rowsort label-9747
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) AS col1, 97 AS col0
----
1
97

query I rowsort
SELECT DISTINCT + ( - ( - NULLIF ( - - 0, - 57 ) ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9749
SELECT DISTINCT 22 DIV - 87 + + - 86 col0
----
-86

skipif mysql # not compatible
query I rowsort label-9749
SELECT DISTINCT 22 / - 87 + + - 86 col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9750
SELECT ALL + COUNT( * ) DIV + 45 + + NULLIF ( - 18, + 57 DIV SUM( ALL - 40 ) DIV - - 37 + CASE + CASE - 55 WHEN - COALESCE ( 65, - COUNT( * ) ) - + CAST( NULL AS SIGNED ) * - + COUNT( * ) + 71 THEN + COUNT( * ) DIV - COUNT( * ) END WHEN - 5 THEN NULL WHEN - 56 * + 72 + - 29 * 26 THEN - 19 END + COUNT( * ) ) + - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL + COUNT ( * ) / + 45 + + NULLIF ( - 18, + 57 / SUM ( ALL - 40 ) / - - 37 + CASE + CASE - 55 WHEN - COALESCE ( 65, - COUNT ( * ) ) - + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + 71 THEN + COUNT ( * ) / - COUNT ( * ) END WHEN - 5 THEN NULL WHEN - 56 * + 72 + - 29 * 26 THEN - 19 END + COUNT ( * ) ) + - COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9751
SELECT ALL + - ( - + 27 ) DIV + - 30 + COUNT( * ) AS col0, - 20
----
1
-20

skipif mysql # not compatible
query II rowsort label-9751
SELECT ALL + - ( - + 27 ) / + - 30 + COUNT ( * ) AS col0, - 20
----
1
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT ALL - ( + MAX( + 99 ) ) + - 11 + - + 63
----
-173

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL - ( + MAX ( + 99 ) ) + - 11 + - + 63
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT DISTINCT + + CASE + 46 WHEN - + 77 THEN - 38 WHEN + SUM( DISTINCT - 41 ) THEN NULL END * - + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT + + CASE + 46 WHEN - + 77 THEN - 38 WHEN + SUM ( DISTINCT - 41 ) THEN NULL END * - + 79
----
NULL

query I rowsort
SELECT 98 * 90 * + 87 + 87 AS col0
----
767427

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL + - 21 - + COUNT( * ) + - 48 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL + - 21 - + COUNT ( * ) + - 48 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT 26 + MAX( + 32 ) * - 99
----
-3142

skipif mysql # not compatible
query I rowsort label-9756
SELECT 26 + MAX ( + 32 ) * - 99
----
-3142

query I rowsort
SELECT ALL 23 * 80
----
1840

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9758
SELECT DISTINCT - - 8 * - MIN( ALL - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT - - 8 * - MIN ( ALL - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9759
SELECT - 6 + + - COUNT( * ) AS col1, 45 - - 85 + - 0 AS col1
----
-7
130

skipif mysql # not compatible
query II rowsort label-9759
SELECT - 6 + + - COUNT ( * ) AS col1, 45 - - 85 + - 0 AS col1
----
-7
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT ALL - CASE - + 31 WHEN - 85 / - 30 THEN - - COUNT( * ) END * 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL - CASE - + 31 WHEN - 85 / - 30 THEN - - COUNT ( * ) END * 34 AS col0
----
NULL

query I rowsort
SELECT 95 + + + 30 - - + 60 AS col1
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-9762
SELECT ALL 96 DIV 55 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL 96 / 55 AS col1
----
1

query I rowsort
SELECT 82 + - 21 col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT ALL COUNT( * ) * - - MAX( DISTINCT + - ( 76 ) ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL COUNT ( * ) * - - MAX ( DISTINCT + - ( 76 ) ) AS col1
----
-76

query I rowsort
SELECT ALL 19 + + 79
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT 7 + MAX( + 3 ) + + - CASE - 22 WHEN 53 / 83 + + + ( + 77 ) + - 31 THEN - - 93 / + - 21 * 33 * - 43 * + 71 WHEN + 95 + + 73 * + - 32 THEN NULL WHEN + - COUNT( * ) * - - 50 THEN NULL WHEN 97 THEN - COUNT( * ) * + 36 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT 7 + MAX ( + 3 ) + + - CASE - 22 WHEN 53 / 83 + + + ( + 77 ) + - 31 THEN - - 93 / + - 21 * 33 * - 43 * + 71 WHEN + 95 + + 73 * + - 32 THEN NULL WHEN + - COUNT ( * ) * - - 50 THEN NULL WHEN 97 THEN - COUNT ( * ) * + 36 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9767
SELECT 78 * 70 DIV COUNT( * ) col0, - 80
----
5460
-80

skipif mysql # not compatible
query II rowsort label-9767
SELECT 78 * 70 / COUNT ( * ) col0, - 80
----
5460
-80

query I rowsort
SELECT ( 32 ) + - ( - 15 ) col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL COUNT( * ) * - + 97
----
-97

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL COUNT ( * ) * - + 97
----
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-9770
SELECT ( + 85 ) DIV - + 70 AS col2, 20
----
-1
20

skipif mysql # not compatible
query II rowsort label-9770
SELECT ( + 85 ) / - + 70 AS col2, 20
----
-1
20

query I rowsort
SELECT ALL 89 + - 85
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9772
SELECT 65, 86 - + - COUNT( * ) AS col2
----
65
87

skipif mysql # not compatible
query II rowsort label-9772
SELECT 65, 86 - + - COUNT ( * ) AS col2
----
65
87

query I rowsort
SELECT ALL 7 + 72 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT DISTINCT 18 + COUNT( * ) + + - 43 + - 75 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT 18 + COUNT ( * ) + + - 43 + - 75 AS col1
----
-99

query I rowsort
SELECT ( - + 48 ) + - + 54
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-9776
SELECT DISTINCT ( - SUM( + 81 ) ) + + MAX( ALL + 67 ) col1, 91 + - 51 + - - 10 col0
----
-14
50

skipif mysql # not compatible
query II rowsort label-9776
SELECT DISTINCT ( - SUM ( + 81 ) ) + + MAX ( ALL + 67 ) col1, 91 + - 51 + - - 10 col0
----
-14
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9777
SELECT DISTINCT - CAST( - + COUNT( * ) AS SIGNED ) + - CAST( - - 64 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-9777
SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) + - CAST ( - - 64 AS INTEGER )
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9778
SELECT ALL - - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL - - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT DISTINCT - 15 + 66 + + 51 AS col0
----
102

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9780
SELECT 92 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT 92 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9781
SELECT COUNT( * ) + + - 98 + - + NULLIF ( 81, 3 ) + - CAST( + - COUNT( * ) AS SIGNED ) * 69 + - 43 AS col2
----
-152

skipif mysql # not compatible
query I rowsort label-9781
SELECT COUNT ( * ) + + - 98 + - + NULLIF ( 81, 3 ) + - CAST ( + - COUNT ( * ) AS INTEGER ) * 69 + - 43 AS col2
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT DISTINCT + SUM( DISTINCT 50 ) - + 68
----
-18

skipif mysql # not compatible
query I rowsort label-9782
SELECT DISTINCT + SUM ( DISTINCT 50 ) - + 68
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT ALL - MIN( - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL - MIN ( - 29 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9784
SELECT ( + 95 ) * - 33 * - + 97 + - CAST( - - MIN( DISTINCT + 77 ) AS SIGNED ) col0
----
304018

skipif mysql # not compatible
query I rowsort label-9784
SELECT ( + 95 ) * - 33 * - + 97 + - CAST ( - - MIN ( DISTINCT + 77 ) AS INTEGER ) col0
----
304018

query I rowsort
SELECT ALL + 49 - + + 64 AS col0
----
-15

query I rowsort
SELECT ALL + + 86 * + 40 AS col0
----
3440

query I rowsort
SELECT DISTINCT NULLIF ( 35, + 71 ) - - 28 AS col1
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9788
SELECT DISTINCT - 21 AS col0, 66 + + 79 + + ( - 45 ) + - COUNT( * ) * + CASE + 70 WHEN - + 77 THEN + 57 * + + ( 14 ) + COUNT( * ) END * - ( - ( 80 ) ) col0
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-9788
SELECT DISTINCT - 21 AS col0, 66 + + 79 + + ( - 45 ) + - COUNT ( * ) * + CASE + 70 WHEN - + 77 THEN + 57 * + + ( 14 ) + COUNT ( * ) END * - ( - ( 80 ) ) col0
----
-21
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9789
SELECT DISTINCT - - COUNT( - 49 ) - + - 9 AS col0, - 17 AS col1
----
10
-17

skipif mysql # not compatible
query II rowsort label-9789
SELECT DISTINCT - - COUNT ( - 49 ) - + - 9 AS col0, - 17 AS col1
----
10
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT ALL - - COUNT( 18 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL - - COUNT ( 18 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - ( - CASE + 12 WHEN - 13 THEN - + 47 * + 71 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT ALL - - MIN( + 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL - - MIN ( + 11 ) AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT + + CASE + + 78 WHEN + ( - + 70 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) + + 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9793
SELECT + + CASE + + 78 WHEN + ( - + 70 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) + + 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9794
SELECT + 88 AS col2, MAX( ALL + + 22 ) AS col0
----
88
22

skipif mysql # not compatible
query II rowsort label-9794
SELECT + 88 AS col2, MAX ( ALL + + 22 ) AS col0
----
88
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9795
SELECT + 62 / - + MAX( + 33 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT + 62 / - + MAX ( + 33 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT 10 DIV + 2 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9796
SELECT 10 / + 2 AS col1
----
5

query I rowsort
SELECT ALL + 56 * 0 AS col1
----
0

query I rowsort
SELECT ALL - 28 * + 81 col2
----
-2268

query II rowsort
SELECT - 44 col0, NULLIF ( + + 90, - 12 )
----
-44
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT ALL - COUNT( * ) * COALESCE ( + 90, + 17 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL - COUNT ( * ) * COALESCE ( + 90, + 17 ) AS col2
----
-90

query II rowsort
SELECT DISTINCT 48, - 8 * - 22 AS col2
----
48
176

query I rowsort
SELECT ALL 49 + + - 20 + + + 76 - 22 AS col1
----
83

query II rowsort
SELECT DISTINCT 52 AS col0, + 47
----
52
47

query I rowsort
SELECT 1 * 62
----
62

query I rowsort
SELECT ALL + 29 + + - ( - 30 )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9806
SELECT DISTINCT - COUNT( 6 ) + + 95 DIV - 11
----
-9

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT - COUNT ( 6 ) + + 95 / - 11
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9807
SELECT 18 AS col2, - COUNT( * ) * - 31
----
18
31

skipif mysql # not compatible
query II rowsort label-9807
SELECT 18 AS col2, - COUNT ( * ) * - 31
----
18
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT 81 + + 5 + + 58 * COUNT( * ) * - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9808
SELECT 81 + + 5 + + 58 * COUNT ( * ) * - COUNT ( * )
----
28

query I rowsort
SELECT ALL 66 + - + 76
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-9810
SELECT ALL COUNT( * ), - 42 AS col2
----
1
-42

skipif mysql # not compatible
query II rowsort label-9810
SELECT ALL COUNT ( * ), - 42 AS col2
----
1
-42

query I rowsort
SELECT ALL + 93 + + + 59 + 90 AS col2
----
242

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL ( + COUNT( * ) ) * - 75
----
-75

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL ( + COUNT ( * ) ) * - 75
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL COUNT( * ) + 8 + - 86 col0
----
-77

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL COUNT ( * ) + 8 + - 86 col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT ALL ( CAST( NULL AS SIGNED ) ) * 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * 16 AS col1
----
NULL

query I rowsort
SELECT - 12 + - 0 col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT + COUNT( * ) - - 78 + 77 + + + CASE - 99 WHEN MAX( ALL + + ( + 1 ) ) THEN + 0 WHEN 73 * + 72 * - MIN( + - 92 ) THEN NULL END * 24 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9816
SELECT + COUNT ( * ) - - 78 + 77 + + + CASE - 99 WHEN MAX ( ALL + + ( + 1 ) ) THEN + 0 WHEN 73 * + 72 * - MIN ( + - 92 ) THEN NULL END * 24 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9817
SELECT - CAST( NULL AS DECIMAL ), + 33 AS col1
----
NULL
33

skipif mysql # not compatible
query II rowsort label-9817
SELECT - CAST ( NULL AS REAL ), + 33 AS col1
----
NULL
33

query I rowsort
SELECT DISTINCT 28 - + 41 + 36 * 8
----
275

query I rowsort
SELECT ALL - 53 * + + 37
----
-1961

query II rowsort
SELECT - 64, 61 - - 36 - + 23 AS col2
----
-64
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT + + ( - - 31 ) * 39 * - + MAX( DISTINCT + 17 ) + - CASE - 71 WHEN + - COUNT( * ) * + + 15 * 58 * - COUNT( * ) / + 46 THEN COUNT( * ) WHEN + MIN( ALL + + 87 ) THEN NULL ELSE NULL END + - CASE + 61 WHEN + COUNT( * ) THEN NULL WHEN - 38 THEN - 99 * - 26 END + - 3 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9821
SELECT + + ( - - 31 ) * 39 * - + MAX ( DISTINCT + 17 ) + - CASE - 71 WHEN + - COUNT ( * ) * + + 15 * 58 * - COUNT ( * ) / + 46 THEN COUNT ( * ) WHEN + MIN ( ALL + + 87 ) THEN NULL ELSE NULL END + - CASE + 61 WHEN + COUNT ( * ) THEN NULL WHEN - 38 THEN - 99 * - 26 END + - 3 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9822
SELECT + - 73 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-9822
SELECT + - 73 / - 97
----
0

query I rowsort
SELECT + 86 * + - 67 - + 66 AS col1
----
-5828

query II rowsort
SELECT ALL + 28 AS col0, - 9 AS col2
----
28
-9

query II rowsort
SELECT ALL + + 60, - 77 AS col2
----
60
-77

query I rowsort
SELECT + + 98 + ( - - 94 ) AS col2
----
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9827
SELECT ALL 99 * + 73 + COUNT( * ) DIV + 15 * SUM( + + 65 ) AS col2
----
7227

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL 99 * + 73 + COUNT ( * ) / + 15 * SUM ( + + 65 ) AS col2
----
7227

query II rowsort
SELECT 32 AS col2, 43 * - 35
----
32
-1505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9829
SELECT DISTINCT + + COUNT( * ) AS col0, 8 DIV - CAST( + - SUM( 60 ) AS SIGNED ) AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-9829
SELECT DISTINCT + + COUNT ( * ) AS col0, 8 / - CAST ( + - SUM ( 60 ) AS INTEGER ) AS col2
----
1
0

query I rowsort
SELECT + 66 * 7
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT ALL + + NULLIF ( + + 51, - COUNT( ALL - - 32 ) ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL + + NULLIF ( + + 51, - COUNT ( ALL - - 32 ) ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT + + 46 + + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9832
SELECT + + 46 + + COUNT ( * ) AS col0
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9833
SELECT + 71 AS col1, - CAST( NULL AS DECIMAL ) AS col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-9833
SELECT + 71 AS col1, - CAST ( NULL AS REAL ) AS col1
----
71
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9834
SELECT - + 82 + - - ( COUNT( * ) ) + - COUNT( * ) + CAST( NULL AS SIGNED ) + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT - + 82 + - - ( COUNT ( * ) ) + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT ALL + COUNT( DISTINCT - 92 ) * - + 81 * + ( - COUNT( * ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL + COUNT ( DISTINCT - 92 ) * - + 81 * + ( - COUNT ( * ) ) AS col0
----
81

query I rowsort
SELECT - - 66 * + 84 * + - 96 col0
----
-532224

query I rowsort
SELECT + 41 + - 98 col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9838
SELECT + + CAST( 90 AS SIGNED ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9838
SELECT + + CAST ( 90 AS INTEGER ) AS col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9839
SELECT ALL 29 * 35 + - 81 + COUNT( * ) * ( + 10 ) DIV + 46
----
934

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL 29 * 35 + - 81 + COUNT ( * ) * ( + 10 ) / + 46
----
934

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9840
SELECT + 68 + 93 AS col2, - CAST( NULL AS DECIMAL )
----
161
NULL

skipif mysql # not compatible
query II rowsort label-9840
SELECT + 68 + 93 AS col2, - CAST ( NULL AS REAL )
----
161
NULL

query I rowsort
SELECT ALL + ( - NULLIF ( - + 31, - + AVG ( DISTINCT + 8 ) ) )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9842
SELECT ALL + MAX( 96 ), - 64 AS col1
----
96
-64

skipif mysql # not compatible
query II rowsort label-9842
SELECT ALL + MAX ( 96 ), - 64 AS col1
----
96
-64

query I rowsort
SELECT ALL 49 * - 32 + 44
----
-1524

query I rowsort
SELECT DISTINCT + 51 * - 3 + + 54
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9845
SELECT + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) / - - COUNT( + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) / - - COUNT ( + 30 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9846
SELECT - 32 + - + CASE + 59 WHEN - - 59 * 75 * - 23 THEN COUNT( * ) * COUNT( * ) * 83 * ( + 8 ) + 16 END, 6 * 38 * 19 * - 32 + MAX( + CAST( NULL AS SIGNED ) ) * ( + ( 3 ) ) * + 26
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9846
SELECT - 32 + - + CASE + 59 WHEN - - 59 * 75 * - 23 THEN COUNT ( * ) * COUNT ( * ) * 83 * ( + 8 ) + 16 END, 6 * 38 * 19 * - 32 + MAX ( + CAST ( NULL AS INTEGER ) ) * ( + ( 3 ) ) * + 26
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT + COALESCE ( ( + - 19 ), - - COUNT( * ) - + 17 * + 82, - + NULLIF ( + 31, 83 + - - 96 ) ) * - 37
----
703

skipif mysql # not compatible
query I rowsort label-9847
SELECT + COALESCE ( ( + - 19 ), - - COUNT ( * ) - + 17 * + 82, - + NULLIF ( + 31, 83 + - - 96 ) ) * - 37
----
703

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT - 86 * - 21 * + COUNT( * ) + - - 51
----
1857

skipif mysql # not compatible
query I rowsort label-9848
SELECT - 86 * - 21 * + COUNT ( * ) + - - 51
----
1857

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9849
SELECT - 84 + COUNT( * ) DIV - 78 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-9849
SELECT - 84 + COUNT ( * ) / - 78 AS col1
----
-84

query I rowsort
SELECT - 1 * - + 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT DISTINCT - 52 * + COUNT( + - 37 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT - 52 * + COUNT ( + - 37 ) AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9852
SELECT ALL + CASE + 70 WHEN - 95 * - - 87 THEN 66 * - - 2 + - + 61 * - CASE 39 WHEN - 75 / COALESCE ( - NULLIF ( - 53, 97 * + 96 / - 48 ), + CAST( + + 48 AS SIGNED ) ) * 92 + - 30 * 19 + 52 THEN 51 / COUNT( * ) + + COALESCE ( + 34, - CAST( COALESCE ( 21, 94 ) AS SIGNED ) * + 98 ) ELSE NULL END WHEN 1 THEN NULL ELSE NULL END + 22 * ( + 66 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL + CASE + 70 WHEN - 95 * - - 87 THEN 66 * - - 2 + - + 61 * - CASE 39 WHEN - 75 / COALESCE ( - NULLIF ( - 53, 97 * + 96 / - 48 ), + CAST ( + + 48 AS INTEGER ) ) * 92 + - 30 * 19 + 52 THEN 51 / COUNT ( * ) + + COALESCE ( + 34, - CAST ( COALESCE ( 21, 94 ) AS INTEGER ) * + 98 ) ELSE NULL END WHEN 1 THEN NULL ELSE NULL END + 22 * ( + 66 ) AS col1
----
NULL

query I rowsort
SELECT - 72 * - 38 AS col2
----
2736

query I rowsort
SELECT ALL 78 + - 14 + + + 39 * + - 82 AS col1
----
-3134

query II rowsort
SELECT DISTINCT + 80 + - 27 + + 68, 11 AS col0
----
121
11

query II rowsort
SELECT ALL ( + 98 ) col2, - 87 * 23
----
98
-2001

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT ALL + 98 - + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL + 98 - + COUNT ( * )
----
97

query I rowsort
SELECT - 42 * 44
----
-1848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9859
SELECT ALL COALESCE ( + - CAST( NULL AS SIGNED ), + 42, 89 * + 8 )
----
42

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL COALESCE ( + - CAST ( NULL AS INTEGER ), + 42, 89 * + 8 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT DISTINCT + CASE - 39 WHEN + NULLIF ( 31, - CASE - NULLIF ( - 40, - NULLIF ( + 76, - 8 ) ) WHEN 42 * - 92 THEN NULL WHEN - + 19 THEN - - 46 + COUNT( * ) * 62 END ) THEN - 9 END - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT + CASE - 39 WHEN + NULLIF ( 31, - CASE - NULLIF ( - 40, - NULLIF ( + 76, - 8 ) ) WHEN 42 * - 92 THEN NULL WHEN - + 19 THEN - - 46 + COUNT ( * ) * 62 END ) THEN - 9 END - 68
----
NULL

query II rowsort
SELECT ALL ( - 4 ) AS col2, 53 * + + 95 col0
----
-4
5035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9862
SELECT - 6 * - ( - CASE - COUNT( * ) WHEN 73 THEN 94 WHEN + + 53 + ( - 52 ) - + 4 THEN - + CAST( + 93 AS SIGNED ) ELSE + + 26 END ) * 28 col0
----
-4368

skipif mysql # not compatible
query I rowsort label-9862
SELECT - 6 * - ( - CASE - COUNT ( * ) WHEN 73 THEN 94 WHEN + + 53 + ( - 52 ) - + 4 THEN - + CAST ( + 93 AS INTEGER ) ELSE + + 26 END ) * 28 col0
----
-4368

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9863
SELECT COALESCE ( COUNT( * ), - 9 + + 54 + - - 58 DIV 59 - - - 87 + + ( + ( COUNT( * ) ) ) ), 22 AS col0
----
1
22

skipif mysql # not compatible
query II rowsort label-9863
SELECT COALESCE ( COUNT ( * ), - 9 + + 54 + - - 58 / 59 - - - 87 + + ( + ( COUNT ( * ) ) ) ), 22 AS col0
----
1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL COUNT( ALL + 8 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL COUNT ( ALL + 8 ) AS col2
----
1

query I rowsort
SELECT - - ( - - 24 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-9866
SELECT ALL - 72 DIV + - 73
----
0

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL - 72 / + - 73
----
0

query I rowsort
SELECT - + ( + 90 ) * 15 col2
----
-1350

query I rowsort
SELECT DISTINCT - + 2 * + - 62
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT + + 5 * - - 71 * + - COALESCE ( + NULLIF ( + 15, - 17 - - - COUNT( * ) + + 58 ), 30 * - 72 * - + 51 * + SUM( + 2 ) ) + + 68 * - + CASE + + 33 WHEN + 2 THEN - + MIN( 46 ) WHEN + 85 + + + 11 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9869
SELECT + + 5 * - - 71 * + - COALESCE ( + NULLIF ( + 15, - 17 - - - COUNT ( * ) + + 58 ), 30 * - 72 * - + 51 * + SUM ( + 2 ) ) + + 68 * - + CASE + + 33 WHEN + 2 THEN - + MIN ( 46 ) WHEN + 85 + + + 11 THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT - 26 * - 34 + + + NULLIF ( + 15, - - 71 * - 11 + COUNT( * ) + 14 + + 47 + + MIN( - 67 ) )
----
899

skipif mysql # not compatible
query I rowsort label-9870
SELECT - 26 * - 34 + + + NULLIF ( + 15, - - 71 * - 11 + COUNT ( * ) + 14 + + 47 + + MIN ( - 67 ) )
----
899

query I rowsort
SELECT + 0 * - 46 + + 83 AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9872
SELECT ALL + 33 DIV + + 4 + + ( 78 ) * + - 49
----
-3814

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL + 33 / + + 4 + + ( 78 ) * + - 49
----
-3814

onlyif mysql # DIV for integer division: 
query I rowsort label-9873
SELECT DISTINCT 97 DIV + 56 + 91 col2
----
92

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT 97 / + 56 + 91 col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT + + 59 * + + MIN( DISTINCT - - 36 )
----
2124

skipif mysql # not compatible
query I rowsort label-9874
SELECT + + 59 * + + MIN ( DISTINCT - - 36 )
----
2124

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL - 4 * ( COUNT( * ) ) + 85
----
81

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL - 4 * ( COUNT ( * ) ) + 85
----
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9876
SELECT DISTINCT - CAST( + + 1 AS SIGNED ) * + - 12 DIV 26 + 9 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT - CAST ( + + 1 AS INTEGER ) * + - 12 / 26 + 9 AS col0
----
9

query I rowsort
SELECT ( - - CASE - 65 WHEN - + 75 THEN NULL ELSE - - 24 END )
----
24

query I rowsort
SELECT ( - 23 ) col1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT ALL 20 * 83 + - + 60 DIV - + 72
----
1660

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL 20 * 83 + - + 60 / - + 72
----
1660

onlyif mysql # aggregate syntax: 
query III rowsort label-9880
SELECT ALL + 46 AS col1, 32 + COUNT( * ) + + ( - ( 26 ) ) AS col0, + 96 + ( + COALESCE ( 48, - COALESCE ( + 45, + 96 * - 43 - - - 2 ), - 11 ) ) - - 10 AS col2
----
46
7
154

skipif mysql # not compatible
query III rowsort label-9880
SELECT ALL + 46 AS col1, 32 + COUNT ( * ) + + ( - ( 26 ) ) AS col0, + 96 + ( + COALESCE ( 48, - COALESCE ( + 45, + 96 * - 43 - - - 2 ), - 11 ) ) - - 10 AS col2
----
46
7
154

query I rowsort
SELECT + 8 * + 74
----
592

query II rowsort
SELECT + 52, - 93 AS col2
----
52
-93

query I rowsort
SELECT ALL 66 * - 46 * 98 col2
----
-297528

query I rowsort
SELECT DISTINCT 95 * - 87 AS col1
----
-8265

query II rowsort
SELECT 94 AS col1, 4 * 43
----
94
172

query II rowsort
SELECT 5 AS col1, 88
----
5
88

query II rowsort
SELECT 18, - 0 AS col1
----
18
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9888
SELECT 22 DIV - 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9888
SELECT 22 / - 47 AS col2
----
0

query I rowsort
SELECT 58 * + 90 * - 12 AS col1
----
-62640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9890
SELECT CAST( NULL AS SIGNED ) + + - 69 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT CAST ( NULL AS INTEGER ) + + - 69 col2
----
NULL

query I rowsort
SELECT 67 * + NULLIF ( + 41, - 83 ) AS col2
----
2747

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT ALL - + 4 * + 30 * MIN( ALL 43 )
----
-5160

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL - + 4 * + 30 * MIN ( ALL 43 )
----
-5160

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9893
SELECT - 98 + - + COUNT( * ) * - 71 * ( - 96 ) + - 97 + - - ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT - 98 + - + COUNT ( * ) * - 71 * ( - 96 ) + - 97 + - - ( - CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT ALL - - 79 * - 55 * 1, 52 AS col1
----
-4345
52

query I rowsort
SELECT + NULLIF ( + + 98, - + 32 ) * - 76
----
-7448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT 70 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT 70 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT DISTINCT - + MAX( ALL + 75 ) * NULLIF ( - - COUNT( - 9 ), - - 35 ) + + 57
----
-18

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT - + MAX ( ALL + 75 ) * NULLIF ( - - COUNT ( - 9 ), - - 35 ) + + 57
----
-18

query I rowsort
SELECT ALL - - 99 * - 46
----
-4554

onlyif mysql # aggregate syntax: 
query II rowsort label-9899
SELECT - ( - 40 ) * - - 64 AS col0, - COUNT( * ) * - MAX( DISTINCT 80 )
----
2560
80

skipif mysql # not compatible
query II rowsort label-9899
SELECT - ( - 40 ) * - - 64 AS col0, - COUNT ( * ) * - MAX ( DISTINCT 80 )
----
2560
80

query I rowsort
SELECT - 57 * + - 46 + 82 * + 67 AS col0
----
8116

query I rowsort
SELECT 39 + + 69
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9902
SELECT ALL + 18 + + - 26 DIV 30 - + COUNT( DISTINCT + 23 ) col2
----
17

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL + 18 + + - 26 / 30 - + COUNT ( DISTINCT + 23 ) col2
----
17

query I rowsort
SELECT ALL - - 24 + + - 25
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9904
SELECT + - COALESCE ( NULLIF ( 97, - CAST( NULL AS SIGNED ) ), - 97 + 80 + 87 + - - 20 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-9904
SELECT + - COALESCE ( NULLIF ( 97, - CAST ( NULL AS INTEGER ) ), - 97 + 80 + 87 + - - 20 ) AS col0
----
-97

query I rowsort
SELECT + 23 * - 11 AS col1
----
-253

query I rowsort
SELECT 18 + + 89 AS col2
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-9907
SELECT ALL - COUNT( * ) AS col2, 86 + + 54
----
-1
140

skipif mysql # not compatible
query II rowsort label-9907
SELECT ALL - COUNT ( * ) AS col2, 86 + + 54
----
-1
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT + CAST( - + 26 AS SIGNED ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-9908
SELECT + CAST ( - + 26 AS INTEGER ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT ALL + MAX( DISTINCT - + 28 ) * COUNT( * ) - + + 11 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL + MAX ( DISTINCT - + 28 ) * COUNT ( * ) - + + 11 AS col0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-9910
SELECT ALL 90 + - 29 DIV - 75 * + - 9
----
90

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL 90 + - 29 / - 75 * + - 9
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-9911
SELECT 17 DIV - 40 AS col1, 62 AS col2
----
0
62

skipif mysql # not compatible
query II rowsort label-9911
SELECT 17 / - 40 AS col1, 62 AS col2
----
0
62

query I rowsort
SELECT DISTINCT 32 * + + 49
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT 1 * - - SUM( + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-9913
SELECT 1 * - - SUM ( + 92 ) AS col2
----
92

query I rowsort
SELECT ALL + 70 * - 99
----
-6930

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT - ( - 23 ) * + 97 * + + 58 + COUNT( * )
----
129399

skipif mysql # not compatible
query I rowsort label-9915
SELECT - ( - 23 ) * + 97 * + + 58 + COUNT ( * )
----
129399

query I rowsort
SELECT DISTINCT - COALESCE ( + 70, + 3 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL - COUNT( + 59 ) * + - COALESCE ( - 48, - - 71 ) * + 58 + 45 AS col1
----
-2739

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL - COUNT ( + 59 ) * + - COALESCE ( - 48, - - 71 ) * + 58 + 45 AS col1
----
-2739

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT COUNT( * ) + + 77 - - MIN( - 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-9918
SELECT COUNT ( * ) + + 77 - - MIN ( - 79 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9919
SELECT 13 * ( - 56 ) * ( - ( + COUNT( * ) ) ) DIV + COUNT( + 16 ) + ( + + SUM( - 98 ) ) + - 26 + 3 - - 96 + COUNT( * )
----
704

skipif mysql # not compatible
query I rowsort label-9919
SELECT 13 * ( - 56 ) * ( - ( + COUNT ( * ) ) ) / + COUNT ( + 16 ) + ( + + SUM ( - 98 ) ) + - 26 + 3 - - 96 + COUNT ( * )
----
704

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT + COUNT( * ) * - + 82 * 96 * + NULLIF ( + 20, + MAX( + 88 ) ) + - 88 AS col2
----
-157528

skipif mysql # not compatible
query I rowsort label-9920
SELECT + COUNT ( * ) * - + 82 * 96 * + NULLIF ( + 20, + MAX ( + 88 ) ) + - 88 AS col2
----
-157528

query I rowsort
SELECT 26 * - + 49
----
-1274

query I rowsort
SELECT ALL 77 * + 84
----
6468

query I rowsort
SELECT 67 * + 66 * + 54
----
238788

query II rowsort
SELECT DISTINCT 12 * 17 AS col0, + 84 AS col0
----
204
84

query I rowsort
SELECT ALL 29 * 84 AS col2
----
2436

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT + 96 * - 76 + SUM( + 62 ) AS col0
----
-7234

skipif mysql # not compatible
query I rowsort label-9926
SELECT + 96 * - 76 + SUM ( + 62 ) AS col0
----
-7234

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT DISTINCT - 83 + - 98 + - COALESCE ( + - 70, 96 + MIN( + + 28 ) * + - 56 * + 82 + 11 )
----
-111

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT - 83 + - 98 + - COALESCE ( + - 70, 96 + MIN ( + + 28 ) * + - 56 * + 82 + 11 )
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-9928
SELECT + 72 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-9928
SELECT + 72 / 89
----
0

query I rowsort
SELECT DISTINCT + 22 + - + 83
----
-61

query I rowsort
SELECT ALL - 48 + - 44 AS col0
----
-92

query I rowsort
SELECT 41 * + - 87 AS col1
----
-3567

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL - SUM( DISTINCT - 18 )
----
18

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL - SUM ( DISTINCT - 18 )
----
18

query I rowsort
SELECT DISTINCT + 20 + 44
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT - CASE + 16 WHEN + + 43 + - 56 THEN - + 67 + - 4 WHEN - COUNT( DISTINCT 8 ) THEN NULL WHEN - 21 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9934
SELECT - CASE + 16 WHEN + + 43 + - 56 THEN - + 67 + - 4 WHEN - COUNT ( DISTINCT 8 ) THEN NULL WHEN - 21 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT DISTINCT + NULLIF ( - COUNT( * ), 54 + + 52 * + 11 ) + - CASE WHEN NOT 66 BETWEEN 58 AND ( 44 ) THEN + 41 ELSE NULL END AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT + NULLIF ( - COUNT ( * ), 54 + + 52 * + 11 ) + - CASE WHEN NOT 66 BETWEEN 58 AND ( 44 ) THEN + 41 ELSE NULL END AS col1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9936
SELECT 33 DIV 6
----
5

skipif mysql # not compatible
query I rowsort label-9936
SELECT 33 / 6
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT DISTINCT - - COALESCE ( - - COUNT( * ), - 14 * + COUNT( * ) ) * - 79 - 2 + - - 48 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT - - COALESCE ( - - COUNT ( * ), - 14 * + COUNT ( * ) ) * - 79 - 2 + - - 48 AS col1
----
-33

query I rowsort
SELECT ALL - - 5 * - - 28 + + 62 AS col2
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT ALL - 37 * + 83 - + 77 - NULLIF ( - + COUNT( * ), - ( - - AVG ( DISTINCT - - 70 ) ) + - - 60 ) * + NULLIF ( NULLIF ( - 81, - COUNT( * ) + - - 78 ), - 54 )
----
-3229

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL - 37 * + 83 - + 77 - NULLIF ( - + COUNT ( * ), - ( - - AVG ( DISTINCT - - 70 ) ) + - - 60 ) * + NULLIF ( NULLIF ( - 81, - COUNT ( * ) + - - 78 ), - 54 )
----
-3229

onlyif mysql # aggregate syntax: 
query II rowsort label-9940
SELECT COUNT( * ) + + 15 col2, + ( + - 11 ) * + ( - 73 ) * + - COALESCE ( + 44, SUM( ALL 12 ) + 24 + - ( ( + 23 ) ) ) * - 71 AS col2
----
16
2508572

skipif mysql # not compatible
query II rowsort label-9940
SELECT COUNT ( * ) + + 15 col2, + ( + - 11 ) * + ( - 73 ) * + - COALESCE ( + 44, SUM ( ALL 12 ) + 24 + - ( ( + 23 ) ) ) * - 71 AS col2
----
16
2508572

query I rowsort
SELECT - + 39 * - - 13 - + + ( - ( + 7 ) ) - - 74 * + 6 - + + CASE NULLIF ( + 34, + 43 ) WHEN 50 * + - 69 * - 12 THEN ( - 71 ) * - 91 + - ( + 66 ) / + 20 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - - 30 * 25 * + - 9
----
-6750

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT ALL - COUNT( * ) * + 61 - - 78 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL - COUNT ( * ) * + 61 - - 78 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL - COUNT( DISTINCT + 40 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL - COUNT ( DISTINCT + 40 ) AS col0
----
-1

query I rowsort
SELECT 98 * - + 70 AS col0
----
-6860

onlyif mysql # aggregate syntax: 
query II rowsort label-9946
SELECT COUNT( * ) AS col2, + 90 AS col1
----
1
90

skipif mysql # not compatible
query II rowsort label-9946
SELECT COUNT ( * ) AS col2, + 90 AS col1
----
1
90

query I rowsort
SELECT DISTINCT - 84 * 40 AS col0
----
-3360

query I rowsort
SELECT 11 * - ( 26 ) + + 43 AS col2
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT DISTINCT - 98 * - COUNT( * ) - - 93
----
191

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT - 98 * - COUNT ( * ) - - 93
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT DISTINCT 95 * - COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT 95 * - COUNT ( * ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT - 1 * - 10 * + SUM( DISTINCT - - ( 96 ) )
----
960

skipif mysql # not compatible
query I rowsort label-9951
SELECT - 1 * - 10 * + SUM ( DISTINCT - - ( 96 ) )
----
960

onlyif mysql # DIV for integer division: 
query I rowsort label-9952
SELECT ALL + 39 DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL + 39 / 53
----
0

query II rowsort
SELECT ALL + 81 AS col0, + 66
----
81
66

query I rowsort
SELECT - 65 * + 28
----
-1820

query II rowsort
SELECT - 83 - + 85 * 51 AS col1, - 71
----
-4418
-71

query I rowsort
SELECT DISTINCT + 22 * + 46
----
1012

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT DISTINCT 88 + SUM( - 87 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT 88 + SUM ( - 87 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT DISTINCT - 49 * + 70 * COUNT( * ) AS col0
----
-3430

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT - 49 * + 70 * COUNT ( * ) AS col0
----
-3430

query I rowsort
SELECT + 11 * - - ( + 13 ) * - 90
----
-12870

query I rowsort
SELECT ALL 33 + + 64 AS col0
----
97

query I rowsort
SELECT ALL 77 + - 60 * + ( + 13 ) + + - 94
----
-797

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT - COALESCE ( ( - + 96 ), - + COUNT( * ) * 54 ) + 83 AS col1
----
179

skipif mysql # not compatible
query I rowsort label-9962
SELECT - COALESCE ( ( - + 96 ), - + COUNT ( * ) * 54 ) + 83 AS col1
----
179

query I rowsort
SELECT + + 73 - - 44 col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT DISTINCT - COUNT( - 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT - COUNT ( - 22 )
----
-1

query I rowsort
SELECT - - 4 + + - 56 AS col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9966
SELECT + - 99 * - ( - 56 ) AS col2, 11 * + CASE - + 91 WHEN + 33 + + - CASE + AVG ( ALL - + 57 ) WHEN + 58 + CASE + + 43 WHEN 40 THEN + 50 + - ( 2 ) END * + ( - 24 ) + - 55 + + + 93 THEN 97 * + 84 END THEN NULL WHEN + NULLIF ( - - 83, - ( 41 ) + - CAST( 39 AS SIGNED ) ) THEN - 61 / 43 END
----
-5544
NULL

skipif mysql # not compatible
query II rowsort label-9966
SELECT + - 99 * - ( - 56 ) AS col2, 11 * + CASE - + 91 WHEN + 33 + + - CASE + AVG ( ALL - + 57 ) WHEN + 58 + CASE + + 43 WHEN 40 THEN + 50 + - ( 2 ) END * + ( - 24 ) + - 55 + + + 93 THEN 97 * + 84 END THEN NULL WHEN + NULLIF ( - - 83, - ( 41 ) + - CAST ( 39 AS INTEGER ) ) THEN - 61 / 43 END
----
-5544
NULL

query I rowsort
SELECT ALL - 93 + - - 59 + + 8 + + 46 + - COALESCE ( + 13, 71 * - 32 ) * - - 81
----
-1033

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT - + SUM( ALL + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-9968
SELECT - + SUM ( ALL + 50 )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-9969
SELECT - + NULLIF ( CASE - 41 WHEN - 68 * 31 - + 47 + + 99 * - - 23 THEN NULL ELSE - COUNT( * ) END, + - 23 - - COUNT( * ) + - + COUNT( * ) * - 56 ), 81 + 80 col2
----
1
161

skipif mysql # not compatible
query II rowsort label-9969
SELECT - + NULLIF ( CASE - 41 WHEN - 68 * 31 - + 47 + + 99 * - - 23 THEN NULL ELSE - COUNT ( * ) END, + - 23 - - COUNT ( * ) + - + COUNT ( * ) * - 56 ), 81 + 80 col2
----
1
161

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT + + 13 + + CASE + - 18 WHEN COUNT( + ( + 35 ) ) THEN - 95 WHEN - - COUNT( * ) THEN NULL END - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT + + 13 + + CASE + - 18 WHEN COUNT ( + ( + 35 ) ) THEN - 95 WHEN - - COUNT ( * ) THEN NULL END - 20
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9971
SELECT DISTINCT 12 AS col1, - COUNT( * ) + - 39 AS col0
----
12
-40

skipif mysql # not compatible
query II rowsort label-9971
SELECT DISTINCT 12 AS col1, - COUNT ( * ) + - 39 AS col0
----
12
-40

query I rowsort
SELECT DISTINCT 62 + - + 98
----
-36

query I rowsort
SELECT ALL 36 * 75
----
2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9974
SELECT DISTINCT - 36 + - + SUM( - 69 ), CAST( NULL AS SIGNED ) + CAST( + 79 AS SIGNED ) AS col2
----
33
NULL

skipif mysql # not compatible
query II rowsort label-9974
SELECT DISTINCT - 36 + - + SUM ( - 69 ), CAST ( NULL AS INTEGER ) + CAST ( + 79 AS INTEGER ) AS col2
----
33
NULL

query I rowsort
SELECT + + 72 * - 19 AS col1
----
-1368

query II rowsort
SELECT - 91 AS col0, + 71 + 95
----
-91
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9977
SELECT + - 97 + COUNT( * ) * + CAST( + CAST( 32 AS SIGNED ) AS SIGNED ) - + 45
----
-110

skipif mysql # not compatible
query I rowsort label-9977
SELECT + - 97 + COUNT ( * ) * + CAST ( + CAST ( 32 AS INTEGER ) AS INTEGER ) - + 45
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT - + COALESCE ( - MIN( - 91 ), - + 85 + + + ( - 26 ), + 41 ) + 64
----
-27

skipif mysql # not compatible
query I rowsort label-9978
SELECT - + COALESCE ( - MIN ( - 91 ), - + 85 + + + ( - 26 ), + 41 ) + 64
----
-27

query I rowsort
SELECT ALL + 17 - - 30
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT + + ( - SUM( - - 50 ) ) * COUNT( * ) * + + 8 AS col2
----
-400

skipif mysql # not compatible
query I rowsort label-9980
SELECT + + ( - SUM ( - - 50 ) ) * COUNT ( * ) * + + 8 AS col2
----
-400

query I rowsort
SELECT - 69 * - 40 AS col1
----
2760

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9982
SELECT + - SUM( CAST( NULL AS DECIMAL ) ) * 44 - 78 / + COUNT( ALL + 27 ) - + + 50 - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9982
SELECT + - SUM ( CAST ( NULL AS REAL ) ) * 44 - 78 / + COUNT ( ALL + 27 ) - + + 50 - 63
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9983
SELECT DISTINCT + 25 DIV - - 4
----
6

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT + 25 / - - 4
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9984
SELECT ALL + 72 AS col1, + MIN( + 51 ) AS col0
----
72
51

skipif mysql # not compatible
query II rowsort label-9984
SELECT ALL + 72 AS col1, + MIN ( + 51 ) AS col0
----
72
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9985
SELECT ALL + 43 AS col2, - COUNT( * )
----
43
-1

skipif mysql # not compatible
query II rowsort label-9985
SELECT ALL + 43 AS col2, - COUNT ( * )
----
43
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT ALL + COUNT( * ) * + 69 * - - 43
----
2967

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL + COUNT ( * ) * + 69 * - - 43
----
2967

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT + 49 * - + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-9987
SELECT + 49 * - + COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT + 13 + 43 + - - 17 + - 40 * + 45 * + - SUM( ALL 50 )
----
90073

skipif mysql # not compatible
query I rowsort label-9988
SELECT + 13 + 43 + - - 17 + - 40 * + 45 * + - SUM ( ALL 50 )
----
90073

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT + 89 * COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-9989
SELECT + 89 * COUNT ( * )
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9990
SELECT ( - - CASE 51 WHEN 48 THEN + 51 * 94 ELSE NULL END ), COALESCE ( - 69, - + 52 DIV + - 55 * 59 * - + 28, - 82 + + 68, + COUNT( * ) DIV + - 15 + - 76 * - - 53 DIV - ( - 69 ) + + 52 ) - 64 - - - COUNT( * ) AS col1
----
NULL
-134

skipif mysql # not compatible
query II rowsort label-9990
SELECT ( - - CASE 51 WHEN 48 THEN + 51 * 94 ELSE NULL END ), COALESCE ( - 69, - + 52 / + - 55 * 59 * - + 28, - 82 + + 68, + COUNT ( * ) / + - 15 + - 76 * - - 53 / - ( - 69 ) + + 52 ) - 64 - - - COUNT ( * ) AS col1
----
NULL
-134

query I rowsort
SELECT ALL + 35 * 68 * + 86
----
204680

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9992
SELECT + 7 + - 68 col2, - COUNT( * ) + - - 75 DIV - - 72 col1
----
-61
0

skipif mysql # not compatible
query II rowsort label-9992
SELECT + 7 + - 68 col2, - COUNT ( * ) + - - 75 / - - 72 col1
----
-61
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9993
SELECT + CAST( NULL AS SIGNED ), 50 AS col0
----
NULL
50

skipif mysql # not compatible
query II rowsort label-9993
SELECT + CAST ( NULL AS INTEGER ), 50 AS col0
----
NULL
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT ( + MAX( - 93 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-9994
SELECT ( + MAX ( - 93 ) )
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-9995
SELECT COALESCE ( - 24, - 39 DIV COALESCE ( + AVG ( - ( + 60 ) ), + 26 ), + 67 - - + ( 83 ) ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9995
SELECT COALESCE ( - 24, - 39 / COALESCE ( + AVG ( - ( + 60 ) ), + 26 ), + 67 - - + ( 83 ) ) AS col2
----
-24

query I rowsort
SELECT - NULLIF ( 64, + 10 ) * + 99 + 47
----
-6289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9997
SELECT - NULLIF ( + 95, 25 * + + 13 ) / + + 18 / CAST( NULL AS SIGNED ) AS col1, NULLIF ( - + ( NULLIF ( - 99, - - 64 + ( + 89 ) ) ), - NULLIF ( 73, + - MAX( DISTINCT + - 69 ) * + CAST( + + 72 AS SIGNED ) - + 4 ) )
----
NULL
99

skipif mysql # not compatible
query II rowsort label-9997
SELECT - NULLIF ( + 95, 25 * + + 13 ) / + + 18 / CAST ( NULL AS INTEGER ) AS col1, NULLIF ( - + ( NULLIF ( - 99, - - 64 + ( + 89 ) ) ), - NULLIF ( 73, + - MAX ( DISTINCT + - 69 ) * + CAST ( + + 72 AS INTEGER ) - + 4 ) )
----
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT ALL 68 * - + 78 + 2 * COUNT( DISTINCT + ( + 95 ) ) * + 93
----
-5118

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL 68 * - + 78 + 2 * COUNT ( DISTINCT + ( + 95 ) ) * + 93
----
-5118

query I rowsort
SELECT ALL + ( + + 20 ) AS col0
----
20

