Query to calculate successrate

One more thing,

Is this kind of query possible to visualize in kibana?
If so how?

Thanks
Mathias