added query to return all the checkins for a particular instance