Query Running more time using F5 and getting out of memory error what is the issue

While running a simple query in road using f9 it runs 1 lakh records less than a minute , but using with f5 it taking more than time and throwing out of memory error anyone help me what is the issue

See my F5 vs F9 rant.