Add a from_config static constructor for queryengine.