Query Design

I am in need of a component or plug-in module that allows users to
design queries in a QBE fashion. I need to be able to define something
like a data dictionary with join conditions and let the users set
criteria for selection. I was hoping to use Crystal Info for that, but I
found out that the query designer has major bugs...

The environment is Delphi 1.0 / Win 3.x with SQL Server 6.0 (or 6.5)
TIA for any reply

Peter Antypas