score service and query implemented