added local query