add distinct in first query to guarantee one feature per site