macosxhints – 10.4: More expressive saved searches
To use the query language in a saved search, add a new criterion to the search and click “Other…” for the search attribute (the first field of the criterion, usually something like “Kind” or “Last Opened”). Then select “Raw Query” from the list of search attributes. Enter your query in the text field.