select avg(visuallyCompleteTime) from useraction where useraction.application = “APPLICATION NAME” and name = “USER ACTION NAME” and visuallyCompleteTime between 2000 and 5000.
If you don’t get the relevant data, make sure it is actually documented. Also remeber that USQL is valid only for completed sessions.