PAHMA-811: repairs to queries to get accessions values and altnum