Question: Which is the infectious disease that has effect on bacteria?
Paraphrase: Which is the irresistible infection that has impact on bacteria?
SPARQL (Wikidata):  select distinct ?obj where { wd:Q10876 wdt:P1542 ?obj . ?obj wdt:P31 wd:Q18123741 } 
Answer: bacterial infectious disease, bacterial pneumonia