Implement basic query for stories