PREFIX : SELECT ?s ?v ?z { BIND(4 AS ?z) # ?z is in scope at the time of filter execution. ?s :p ?v . FILTER(?v = ?z) }