Add SQL for relation full call

This currently involves 3 lookups into the relation_members table
but this table isn't too large, so it works for now.