Statistics for Visually querying object-oriented databases