Converting a InfluxQL query to Flux?

Hi everyone,
Can anyone help me converting a InfluxQL query to Flux? I’ve been trying for a while but flux is still a bit confusing.
The query is this one:
SELECT sum(metrics) AS metrics INTO database_1h…measurement FROM database…measurement WHERE time > ‘2020-XX-XXT00:00:00Z’ GROUP BY time(1h), *

Thanks!