Include duration in query