More Advanced queries

Added statistics query for friends