How can I find certain queries? I have logged a bunch of slow queries. Now I am wondering how should I find them in Drupal. Any ideas?
If it is related to database queries you can use Devel module.  You can configure this module http://www.example.com/admin/config/development/devel this will show you a list of slowest queries.