Short answer: quite a lot (because you have the stuff belonging to mod_quiz, and the stuff belonging to core_question, but it is quite logical once you understand it.)
The quickest way to find this out is to start reading code at https://github.com/moodle/moodle/blob/269a8a8a1b3965e95e713ccc93ad1b7eb0d0e249/mod/quiz/locallib.php#L2038.
Or, for spoilers, this DB query joins most of the affected tables: https://docs.moodle.org/dev/Overview_of_the_Moodle_question_engine#Detailed_data_about_an_attempt
The quickest way to find this out is to start reading code at https://github.com/moodle/moodle/blob/269a8a8a1b3965e95e713ccc93ad1b7eb0d0e249/mod/quiz/locallib.php#L2038.
Or, for spoilers, this DB query joins most of the affected tables: https://docs.moodle.org/dev/Overview_of_the_Moodle_question_engine#Detailed_data_about_an_attempt