Hello,
Just to clarify, you need three queries?
- For all groups that are older than 365 days, list how many mentions they have had, in ascending order
- For all groups that are older than 365 days, list how many mentions they have had, in ascending order, only if they have had less than five mentions
- For all groups with less than 10 members, list how many members they have
If so, I can do this for you - all the information you need would be stored in groups, group_users and group_mentions.