change search sql query

add comment for sql