whole glottocode generation by query