How can i combine two or more queries result lead to a final result in elastic search

the A is the total request the B is the success request ,and i want C=A/B,how do i do? is there any demo

Try Meta Queries Data source