nodeDegreeFilter = new NodeDegreeFilter(1);
chainQuery = new FilterQueryImpl(nodeDegreeFilter);
((FilterQueryImpl) chainQuery).addSubQuery(new FilterQueryImpl(new EdgeWeightFilter(1)));
complexQueryUnion = new OperatorQueryImpl(new UnionOperator());
((OperatorQueryImpl) complexQueryUnion).addSubQuery(new FilterQueryImpl(new NodeIdFilter(1)));
((OperatorQueryImpl) complexQueryUnion).addSubQuery(new FilterQueryImpl(new NodeIdFilter(3)));
veryComplexQueryInter = new FilterQueryImpl(new EdgeWeightFilter(0));
OperatorQueryImpl q1 = new OperatorQueryImpl(new UnionOperator());
((FilterQueryImpl) veryComplexQueryInter).addSubQuery(q1);
q1.addSubQuery(new FilterQueryImpl(new NodeIdFilter(0)));
OperatorQueryImpl q2 = new OperatorQueryImpl(new UnionOperator());
q2.addSubQuery(new FilterQueryImpl(new NodeIdFilter(1)));
q2.addSubQuery(new FilterQueryImpl(new NodeIdFilter(2)));
q1.addSubQuery(q2);
FilterQueryImpl q3 = new FilterQueryImpl(new NodeDegreeFilter(2));
q3.addSubQuery(new FilterQueryImpl(new EdgeWeightFilter(1)));
q1.addSubQuery(q3);
}