q(?x) :- Account(?x), hasOwner(?x,?y), hasAgeValue(?y,?z).