port SQEL from javascript to .NET