Data Fetch Using Jinja Template

using sql in jinja is litil difficult i think but you can try this way

if your Risk Profile doc is custom doc then you can call direct python script

write method in class
class RiskProfile():
def get_data()
//you code

and call that method in jinja directly

Thanks @AkshayJadhao but i don’t have backend access.