Add question dependencies to Inquisition.

Seeing as you've done half of the above, I'll further clarify. All the rest of the lines of sql one less tab-stop - not just the `select` parts.