From 2636f7b845c14531c72b78db1ef7e4b65db84357 Mon Sep 17 00:00:00 2001 From: Prashanth Rao <35005448+prrao87@users.noreply.github.com> Date: Fri, 1 Sep 2023 10:14:26 -0400 Subject: [PATCH] Clarify query statements in docs --- README.md | 2 ++ kuzudb/query.py | 2 +- neo4j/query.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0381756..24bfe88 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,8 @@ The following questions are asked of both graphs: * **Query 6**: Which city has the maximum number of women that like Tennis? * **Query 7**: Which U.S. state has the maximum number of persons between the age 23-30 who enjoy photography? * **Query 8**: How many second-degree connections of persons are reachable in the graph? +* **Query 9**: Which 'influencers' (people with > 3K followers) below age 30 in the network follow the most people? +* **Query 10**: How many persons in the network are followed by people that follow influencers in the age range 18-25? ## Performance comparison diff --git a/kuzudb/query.py b/kuzudb/query.py index c9de248..c6e93d7 100644 --- a/kuzudb/query.py +++ b/kuzudb/query.py @@ -181,7 +181,7 @@ def run_query10(conn: Connection, params: list[tuple[str, Any]]) -> None: result = pl.from_arrow(response.get_as_arrow(chunk_size=1000)) print( f""" - Persons within age range {params[0][1]}-{params[1][1]} who can be considered 'influencers' in the network:\n{result} + Number of people followed by people who follow influencers between the age of {params[0][1]}-{params[1][1]}:\n{result} """ ) return result diff --git a/neo4j/query.py b/neo4j/query.py index 46f8721..90d5005 100644 --- a/neo4j/query.py +++ b/neo4j/query.py @@ -189,7 +189,7 @@ def run_query10(session: Session, age_lower: int, age_upper: int) -> None: result = pl.from_dicts(response.data()) print( f""" - Influencers below the age of {age_lower}-{age_upper} who can be considered 'influencers' in the network:\n{result} + Number of people followed by people who follow influencers between the age of {age_lower}-{age_upper}:\n{result} """ ) return result