allow sending a query object to annotate rather than a table-name string