Modern Dashbaord - need to create percent availability of node.customproperties

hi

can any one help me to  create sql query for modern dashboard that can generate Average availability on  node.customproperties