Improved problem set search query.