More general graph querying

Specify a relation of interest, filters, rows, offset, sample.