Extracts the numeric query id from a query folder name or any path containing one.
Folder name or full path carrying a _qid:<id> marker.
_qid:<id>
The query id, or NaN when no marker is present.
Extracts the numeric query id from a query folder name or any path containing one.