Models and algorithms for promoting diverse and fair query results