Did {The_Sopranos} {cast member} {James Gandolfini} and {Steve Schirripa} ?
Are James Gandolfini and Steven Schirripa actors in The Sopranos?
Did {The_Sopranos} {cast member} are {James Gandolfini} and {Steve Schirripa} ?
ASK WHERE { resource:The_Sopranos property:cast_member resource:Steve_Schirripa . resource:The_Sopranos property:cast_member resource:James_Gandolfini }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q23628> . ?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/Q308722>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q23628> . ?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/Q380904>. } 
ASK WHERE { wd:Q23628 wdt:P161 wd:Q308722 . wd:Q23628 wdt:P161 wd:Q380904 }