I've been trying to figure out the following PostgreSQL query with no success for two days now.

Let's say I have the following table:

```

| date         | value  |
-------------------------
| 2018-05-11   |  0.20  |
| 2018-05-11   | -0.12  |
| 2018-05-11   |  0.15  |
| 2018-05-10   | -1.20  |
| 2018-05-10   | -0.70  |
| 2018-05-10   | -0.16  |
| 2018-05-10   |  0.07  |

```

And I need to find out the query to count positive and negative values per day:

```

| date         | positives  | negatives  |
------------------------------------------
| 2018-05-11   | 2          | 1          |
| 2018-05-10   | 1          | 3          |

```

I've been able to figure out the query to extract only positives or negatives, but not both at the same time:

```
SELECT to_char(table.date, 'DD/MM') AS date
      COUNT(*)                     AS negative
FROM table
WHERE table.date >= DATE(NOW() - '20 days' :: INTERVAL) AND
      value < '0'
GROUP BY to_char(date, 'DD/MM'), table.date
ORDER BY table.date DESC;

```

Can please someone assist? This is driving me mad. Thank you.