A knowledge-based query system for biological databases