based on `inspect.resultsets`
based on
inspect.resultsets