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

Create create-donor-graph.sql #30

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

reneedaos
Copy link

Hello,

I am working on my dissertation that looks at donor networks and DAOs. Will be extending some of your repo with various queries to suit my needs:)

This first one focuses on creating a standard edgelist format that can be used downstream for network analysis.

SELECT
    v."voter" AS from_node,
    pir."projectId" AS to_node,
    SUM(v."amountUSD") AS weight,
    pir."project_name",
    v."grantAddress"
FROM
    public."Vote" v
JOIN
    public."ProjectsInRounds" pir ON v."projectId" = pir."projectId"
GROUP BY
    v."voter", pir."projectId", pir."project_name", v."grantAddress"
ORDER BY
    weight DESC;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant