Query inverse relationships in Semantic MediaWiki
You can query the inverse of a property by simply putting a "-" in front of the property in your query. For example:
{{#ask: [[Category:Poet]]
| ?-hasSon=son of
}}
See http://semantic-mediawiki.org/wiki/Help:Inverse_properties