Naive Bayes Query, NumConnectionsQuery now works