Did {William_McKinley} {educated at} {Allegheny College} and {New York Law School} ?
Did William McKinley receive his education at the Allegheny College and the New York Law School?
Was William McKinley educated at the Allegheny College and the New York Law School?
ASK WHERE { resource:William_McKinley property:educated_at resource:Allegheny_College . resource:William_McKinley property:educated_at resource:New_York_Law_School }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q35041> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P69> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q4062566>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q35041> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P69> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q3339059>. } 
ASK WHERE { wd:Q35041 wdt:P69 wd:Q4062566 . wd:Q35041 wdt:P69 wd:Q3339059 }