getCurrentQuery