Create Loop for all topics and Query Result