SELECT $this WHERE { { FILTER (false) . } UNION { FILTER ($this = ex:InvalidResource) . } }