re-ordering to avoid family freeze errors with manual queries using 1-ary relation trick