Is this query optimized?

Original text of this message