working query of specific type