Searching in queries/scripts