Dictionary.com
Thesaurus.com

had been querying

  • past perfect progressive of query.