How would you write a query to calculate the percentage of passed test cases for Applied Data Finance test reporting?