The same-as relation is semantically related to, but syntactically distinct from, the :same-as concept-forming operator (see defconcept Remarks).
(tellm (:about Fred (:filled-by friends Joe Pam Sue))
(:about Mary (:filled-by friends Sue Joe Pam)))
(ask (same-as (friends Fred) (friends Mary))) ==> T