type.inbound
and length(filter(body.links, .href_url.domain.root_domain == "breely.com")) == 1
and any(body.links,
.href_url.domain.root_domain == "breely.com"
and strings.icontains(.display_text, ".pdf")
)
Playground
Test against your own EMLs or sample data.