avni
committed
on 18 Mar 07
moving query into xql