working on queries, updated node id from crew_id to resource_id