Get best cost plan for IN and EXISTS subqueries uniformly