Fixed SPARQL queries for sub and super properties.

Change-Id: I98590f3d87152eb7bb854e573a3cf9082054aae9