You can only filter on the properties of parent - In your case entity('ABC'). You cannot filter on 'child1' or 'child of child1'.
I am not sure if this is limitation or the way oDATA is supposed to work. But I tried it before and it did not work for me.