Create a macro language for tags
For the tag select/value/evaluate= part, implement a complete macro language similiar to that found in Excel.
This will provide significant power & functionality for users because they can not just do simple operations but can call powerful macros. This would eliminate the need for the function tag.
Within each macro would be the capability for multiple selects, possibly against different datasources.