This query:
SELECT ?item ?taxonName ?taxonRank ?parentName ?parentRank ?higherParent WHERE { BIND("Rivasmartinezia" AS ?taxonName) . BIND(wd:Q34740 AS ?taxonRank) . # Genus BIND(wd:Q756 AS ?higherParent) . # Plantae ?item wdt:P225 ?taxonName . ?item wdt:P105 ?taxonRank . ?item wdt:P171/wdt:P225 ?parentName . ?item wdt:P171/wdt:P105 ?parentRank . ?item (wdt:P171)* ?higherParent . }
Times out even though it has only one match for ?item (wd:Q26902704) and this:
ASK { BIND(wd:Q756 AS ?higherParent) . # Plantae wd:Q26902704 (wdt:P171)+ ?higherParent . }
is fast.
See: https://www.wikidata.org/wiki/Wikidata:Contact_the_development_team#SPARQL:_.28wdt:P171.29.2A