Efficient Activity Retrieval Through Semantic Graph Queries