What is {predecessor} of {indirect cause} of {street sweeper, janitor, professional who takes care of buildings such as hospitals and schools} ?
What is the circuitous cause of the forerunner of road sweepers, janitors, and experts who watch out of buildings such as clinics and schools?
What is the indirect cause of the predecessor of street sweepers, janitors, and professionals who take care of buildings such as hospitals and schools?
SELECT ?t WHERE { resource:street_sweeper property:has_contributing_factor ?r . ?r property:follows ?t }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q17309512> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1479>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P155> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q17309512 wdt:P1479 ?X . ?X wdt:P155 ?answer}