Fix semantic errors in integration spec relations
Fix semantic errors in integration spec relations

Given that :events contain a FK pointing to :companies and that
:instructions contain a FK pointing to :employments, make sure that we
only count tuples in the appropriately restricted and joined relations.

snusnu/ramom