Ranking Query Results based on the Query Semantics and in the Presence of Linkage and Evolution