orm with instance query