En “snyd” løsning er at bruge GROUP_CONCAT(). Den viser dog ikke antallet af spørgsmål, som ikke er knyttet til et emne.
SELECT Topics, COUNT(*) AS QuestionCount
FROM (
SELECT QuestionId,
GROUP_CONCAT(TopicId ORDER BY TopicId) AS Topics
FROM QuestionTopic
GROUP BY QuestionId
) AS grp
GROUP BY Topics;