entry_endpoints: fix tag filter query generation