An efficient peer-to-peer semantic overlay network for learning query routing