Our company are developing an ASP.NET based web-site that provides users with statistical data from underlying database.
We would like to let our users to create their own custom queries to that database in a friendly manner. By "friendly" I mean something more easy then just typing SQL statements of course :-)

So is there some solution (a component or ready-to-use piece of code) which allows to do this?