return new LinkedHashSet<EvaluatedRelation>(partialResults);
}
// TODO YF join those with common attributes first.
private void matchAttributes(List<EvaluatedRelation> relations, int pos) {
EvaluatedRelation first = relations.get(pos);
int idx, badPos = -1;
for (idx = pos + 1; idx < relations.size(); idx++) {
final EvaluatedRelation nextRel = relations.get(idx);
final Set<Attribute> headings = getCommonHeadings(first, nextRel);
if (headings.size() >= 1) {
break;
} else if (badPos < 0) {
badPos = idx;