TupleExpr joinArg = entry.getKey();
Set<SignedConnection> owners = entry.getValue();
if (owners.isEmpty()) {
// No results for this expression and thus for the entire join
join.replaceWith(new EmptySet());
return;
}
else if (owners.size() == 1) {
SignedConnection owner = owners.iterator().next();
replacement.addArg(new OwnedTupleExpr(owner, joinArg));