Looks like I forgot to propagate the union of entity name uses from disjunctions upwards which leads to wrong SQL especially if e.g. joined inheritance is used.