make query results handle duplicates