user: add API for displaying queries to the user