Template:Married cousin test

If the person and spouse share a common grandparent, then autocat as Category:Married cousin