Did {Battle_of_Waterloo} {participant} {United Kingdom} and {Prussia} ?
Were Prussia and the UK participants in the Battle of Waterloo?
Did the UK and Prussia participate in the Battle of Waterloo?
ASK WHERE { resource:Battle_of_Waterloo property:participant resource:Prussia . resource:Battle_of_Waterloo property:participant resource:United_Kingdom }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q48314> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P710> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q145>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q48314> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P710> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q38872>. } 
ASK WHERE { wd:Q48314 wdt:P710 wd:Q145 . wd:Q48314 wdt:P710 wd:Q38872 }