Created basic query setup