Did {Goodfellas} {cast member} {Vincent Pastore} and {Peter Onorati} ?
Did Vincent Pastore and Peter Onaorati star in the movie Goodfellas?
Were Vincent Pastore and Peter Onaorati cast in the film Goodfellas?
ASK WHERE { resource:Goodfellas property:cast_member resource:Vincent_Pastore . resource:Goodfellas property:cast_member resource:Peter_Onorati }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q42047> . ?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/Q512986>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q42047> . ?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/Q328409>. } 
ASK WHERE { wd:Q42047 wdt:P161 wd:Q512986 . wd:Q42047 wdt:P161 wd:Q328409 }