Может быть, я что-то здесь упускаю, но мы не говорим о прямом соединении?
select t1.testID, t1.username, t1.topic, t1.information, t1.totalTime
,count(t2.questionID) AS questionCount
from table1 t1
,table2 t2
where t1.testID = t2.testID
and t1.testID = :myInputTestID
group by t1.testID, t1.username, t1.topic, t1.information, t1.totalTime