Overload Query function