In the Wikidata SPARQL samples, I found this query:
What is the relation between Terrell Buckley and Miami Dolphins? Items used: Terrell Buckley (Q5571382), Miami Dolphins (Q223243)
SELECT ?l
WHERE
{
wd:Q5571382 ?p wd:Q223243 .
?property ?ref ?p .
?property a wikibase:Property .
?property rdfs:label ?l FILTER (lang(?l) = "en")
}
LIMIT 10
I found really hard to know why you can't simply write:
SELECT ?l
WHERE
{
wd:Q5571382 ?property wd:Q223243 .
?property a wikibase:Property .
?property rdfs:label ?l FILTER (lang(?l) = "en")
}
LIMIT 10
Removing the ?p intermediate variable.
The fact it doesn't work numbs me beyond comprehension, I don't know if I'm simply too stupid to understand it, but, could you help me, guys?