Fix SR's `_is_id_only_query`

There was a pretty glaring hole in this method.

(This reverts #303 since it should fix it at the source.)
And I think you can `define_boolexpr` a BX.