pub fn extract_query_terms(expr: &Expr) -> AHashSet<String>
Extracts unique terms from a query expression