Changed QueryResult to be zero-indexed instead of ID indexed
Groundwork for sorted relationships