Declarative Objectivity (DO) Language : Data Statements : MATCH Statement
MATCH Statement
A MATCH statement performs a graph query in the federated database.
Syntax 
matchStatement : matchClause whereClause? returnClause;
matchClause : MATCH pattern;
Quick Look 
Return the tracking number of the rental contract associated with a particular customer who rented a particular vehicle (inline qualification).
MATCH (v:Vehicle {license: 'XLT5663'})-->(rc:RentalContract)-->(c:Customer {lastName: 'Smith'}) RETURN rc.trackingNumber;
Return the tracking number of the rental contract associated with a particular customer who rented a particular vehicle (WHERE clause qualification):
MATCH (v:Vehicle)-->(rc:RentalContract)-->(c:Customer) WHERE v.license =='XLT5663' AND c.lastName == 'Smith' RETURN rc.trackingNumber;
Discussion 
A MATCH statement performs a graph query by finding the walks (sequences of vertices and edges) that match a path pattern. The statement can return values from the matched walks, or the walks themselves.
For information about using MATCH statements, see Performing Graph Queries and Navigating a Graph