Sparse query masks

Update docstring to be meaningful.