Snapsheet interview question

How do I analyze a slow database query