Update Query.java

modified prof name comparison (line 65)
Merge pull request #1 from ericpei22/patch-1

Update Query.java