Join Two documents

Hi vsr,
Can you explain why you have a predicate for a.type=‘accounts’, but not p.type = ‘payments’?