When doing MWAPI query, we can extract data from resulting XML by using XPath, e.g.
?ns wikibase:apiOutput "@ns" .
However, only single value per result can be matched this way. Some APIs return more than one value, for example extlinks API: https://commons.wikimedia.org/wiki/Special:ApiSandbox#action=query&format=json&prop=extlinks&titles=File%3AWilliam_Holman_Hunt_-_A_Converted_British_Family.jpg&ellimit=500
We should be able to generate multiple bindings for single page if the API returns multiple results.