Query vertex gathers the pattern cardinalities before dispatching the query.