New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with Subquery #256
Comments
So I first thought that this is a problem with
|
Ok it looks like the columns get screwed up. In the following query |
Of course the originally reported query also works with PR #259
|
Fix getVariableColumns() for TwoColumnJoin fixes #256
UPDATE: I edited this post a bit. There was a small mistake in the query and it's not true that the GROUP BY in the subquery is irrelevant.
Consider the following query on Wikidata, which asks for the political party (P102) of politicians, but only the one joined most recently (P580 = start time). This requires a subquery, which is exactly what seems to be causing problems here.
Without the last triple (... rdfs:label ...) the query seems to work fine. But with that triple, it returns an empty result. In fact, it returns an empty result also if other triples are added (for example triples to get the number of sitelinks).
I have tried to find a smaller example, but did not find one within reasonable time.
The text was updated successfully, but these errors were encountered: