Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify query statements in docs #24

Merged
merged 1 commit into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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