clarify how to use SQL functions as part of a larger search