// Note: no need to apply the second duplicate elimination step if
// there's just one projection
}
else if (projections.size() > 1) {
result = new MultiProjection(result, projections);
if (distinct) {
// Add another distinct to filter duplicate statements
result = new Distinct(result);
}