Use inventory filter when building temporal xref sql