Made modifications to queries to better calculate the Jaccard Index