Resolve queries by rowid (nrow)