The query generator generates the java query code automatically, and could be queried by bimserver.