add constraint to query
Merge branch 'dev' of github.com:intermine/intermine into dev