Implementation of Query Structure and Getters/Setters