Adds family column to the query.