Find q_nid -> q_qid.