It takes a time to query to complete even more than 10 min

which query is this…it is not clear from above picture which query you are talking about?
Or, is it every query.
If it is every query then the issue might be with binary path
check the below stackoverflow link. Go to answer 3 and do that. If that does not work try answer 1 as well.