Skip to content

Commit

Permalink
Merge pull request #24 from prrao87/query-updates
Browse files Browse the repository at this point in the history
Clarify query statements in docs
  • Loading branch information
prrao87 committed Sep 1, 2023
2 parents c1dc0e0 + 2636f7b commit 8c2e213
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion kuzudb/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion neo4j/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c2e213

Please sign in to comment.