NODE aggregate
SQL >

    SELECT
        workspaceId,
        apiId,
        countState() AS count,
        toStartOfHour(fromUnixTimestamp64Milli(time)) AS time
    FROM key_verifications
    GROUP BY
        workspaceId,
        apiId,
        time
