I have the following code:
select count(*) as points from question where (select count(*) from answer inner join answer_test on answer_test.id_r=answer.id_r