Added support for querying foreign key ids. Related to #4.
Merge pull request #10 from thedrow/topic/fkey-id-queries

Added support for querying foreign key ids. Fixes #6