The system computes the Query Relevance Score (QRS) by dividing the total count of affirmative responses by the total number of valid sampled trials for a given prompt, multiplying by 100 to yield a percentage.