Realized the basic function of query score