created logics for familyQuery functionality
merge commit