I am using Neo4j. The schema for the database is:
MATCH (customer{customerid})-[:made]->(purchased{invoiceno, invoicedate})-[:includes{quantity, invoiceamo