move the query on ResourceBase
Merge pull request #115 from simod/1.4

move the query on ResourceBase