Did {Saving_Private_Ryan} {cast member} {Matt Damon} and {Harve Presnell} ?
Were Matt Damon and Harve Presnell the cast members of Saving Private Ryan?
Did Saving Private Ryan have the cast members Matt Damon and Harve Presnell?
ASK WHERE { resource:Saving_Private_Ryan property:cast_member resource:Matt_Damon . resource:Saving_Private_Ryan property:cast_member resource:Harve_Presnell }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q165817> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P161> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q175535>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q165817> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P161> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1395333>. } 
ASK WHERE { wd:Q165817 wdt:P161 wd:Q175535 . wd:Q165817 wdt:P161 wd:Q1395333 }