calculate article by query