A query language for WordNet-like lexical databases