Looking for a web query/expression builder widget

I am looking for a web component that allows a simple user build a query (or at least an expression / function).


The system have a known data schema, and the widget should allow the user to pick fields and to define an aritmetic formula based on those fileds.


Any recommendations? Does anyone know about a widget that can be used for that purpose?


Thanks, Udi