don't join on node_anno_ref if node annotation definitions (thus namespace and name) are not the same
sort automatically generated frequency query entries by the node variable