Home Racing Ricciardo beats Hamilton to end Day 2 on top