Smalyshev added a comment.

It's a known issue with path queries, sometimes it starts looking from a wrong end of the path, especially if there are constants on both ends. Use this:

SELECT * WHERE {
  VALUES ?class { wd:Q35120 }
  wd:Q3244512 wdt:P31/wdt:P279* ?class.
  hint:Prior hint:gearing "forward".
}

TASK DETAIL
https://phabricator.wikimedia.org/T163343

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Smalyshev
Cc: Smalyshev, Aklapper, Lucas_Werkmeister_WMDE, QZanden, EBjune, merbst, Avner, debt, Gehel, Jonas, FloNight, Xmlizer, Izno, jkroll, Wikidata-bugs, Jdouglas, aude, Deskana, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to