Applications of Top-k Representative Queries