Finding people with multiple activities
Maybe the extension summary fields could be used as a base. Even though it probably does not do exactly what you want, it may be easier to build up on it insted of developing something completely new.

Or you could use the SQL-Task Extension.