Add provide query utility function.