Whats the best query/solution for this problem

Original text of this message