QueryActivity for sprint 3