Add labels for queries.