Remove subqueries from query graph

* fix a bug that prevented ronja to fall back on the old planner when more than one pattern expression in or are present in the where clause