Paper wasps have been shown to be capable of transitive inference, an ability that involves using known relationships to make judgments about unknown relationships.