What is the {infectious disease} for {has effect} of {bacteria}
Which is the irresistible infection that has impact on bacteria?
Which is the infectious disease that has effect on bacteria?
SELECT DISTINCT ?e WHERE { resource:bacteria property:has_effect ?e . ?e rdf:type ontology:infectious_disease }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q10876> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1542> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q18123741> } 
 select distinct ?obj where { wd:Q10876 wdt:P1542 ?obj . ?obj wdt:P31 wd:Q18123741 } 
bacterial infectious disease bacterial pneumonia