add conditional queries to Reddit API