add query_by_date