models and ids can coexist in query
when paging no need to match graph twice