amodified rule Two. 1) able to handle subquery and apply rule two to subquery 2) be careful when trying to use the function 'findHomeRelation' as it is specific about subquery 3)still needs to work on output function for outputing rule 2