fetch all by query