I think the best thing to do would be to use a where clause on the procedure, where atrisk >…