You can use the query language to constrain which objects (i.e. Projects) you want to read
but you always read the whole objects (possibly lazily).
When you work with EJB Entities, you should think like you are working directly on the database records.
Therefore, when you navigate a relationship like tasks and subtasks, you are really following the
foreign key reference, the constraint you used to select your object does not affect that.