Did {epilepsy} {health specialty} {psychology} and {psychiatry} ?
Was psychology and psychiatry the specialty of epilepsy?
Was epilepsy health specialty psychology and psychiatry?
ASK WHERE { resource:epilepsy property:health_specialty resource:psychiatry . resource:epilepsy property:health_specialty resource:psychology }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q41571> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1995> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q9418>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q41571> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1995> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q7867>. } 
ASK WHERE { wd:Q41571 wdt:P1995 wd:Q9418 . wd:Q41571 wdt:P1995 wd:Q7867 }