[LDP PATCH] accept vars in predicate position