Teach SimpleQueryGraphBuilder to extract pattern predicates into sub queries