Then, the score for ranking the subgraph is the weighted sum of the literal score and the semantic score where τ is a hyper-parameter whose value need to be tuned on the validation set.
for each question q, we can get the top-n ranked subgraph G n q↓ as well as the corresponding top-n ranked candidate subjects S n q↓ and relations R n q↓ .