<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>I have the following class structure. <br><br>Class GrandFather {<br>&nbsp; List&lt;Father&gt; fathers;<br>&nbsp; public List&lt;Father&gt; getFathers() {return fathers;}<br>}<br><br>Class Father {<br>&nbsp;&nbsp; int age;<br>&nbsp; List&lt;Son&gt; sons;<br>&nbsp; public int getAge() {return age;}<br>&nbsp; public List&lt;Son&gt; getSons() {return sons;}<br>}<br><br>Class Son {<br>&nbsp;int age;<br>&nbsp; public int getAge() {return age;}<br>}<br><br>I'd like to write a rule that finds all the Fathers who have age &gt; 45 and have Sons where the son's age is greater than 5. But I can't figure out how to use "from" to iterate over father first and then over son.<br><br>Any help will be greatly appreciated.<br><br>Thanks,<br>--Aziz<br><br></div></div><br>

      </body></html>