Show solved problems and visible problems
Optimize query