[TODO] query with date range