Improved function documentation for st-query