#11: add category filter in the query API