Based on the question title and (if available) the question category. See function qa_db_related_qs_selectspec() in qa-db-selects.php for the query.