How to know what sql execute Base Search?

You can with profiler but its hairy