Give me {infectious disease} that {afflicts} {liver} and which contains the word {hepatitis} in their name
Name a liver - affected infectious disease with the word "hepatitis" in its name
Name an infectious disease that afflicts liver and that contains the word "hepatitis" in its name
SELECT DISTINCT ?e WHERE { FILTER ( CONTAINS ( LCASE ( ?e ) , 'hepatitis' ) ) . ?e rdf:type ontology:infectious_disease . ?e property:afflicts resource:liver }
SELECT DISTINCT ?sbj ?sbj_label { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sbj . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P31> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q18123741>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sbj . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P689> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q9368>. ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'hepatitis')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q18123741 . ?sbj wdt:P689 wd:Q9368 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'hepatitis')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 
hepatitis C hepatitis C hepatitis A hepatitis A hepatitis B hepatitis B