query for show date