changes done for answer controller and it's working fine now.
Query module completed.