Query-based sampling of text databases | Synapse