Did {Ava_Gardner} {spouse} {Mickey Rooney} and {Artie Shaw} ?
Was Mickey Rooney as well as Artie Shaw married to Ava Gardner?
Was Ava Gardner married to Mickey Rooney and Artie Shaw?
ASK WHERE { resource:Ava_Gardner property:spouse resource:Mickey_Rooney . resource:Ava_Gardner property:spouse resource:Artie_Shaw }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q164487> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P26> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q104081>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q164487> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P26> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q320065>. } 
ASK WHERE { wd:Q164487 wdt:P26 wd:Q104081 . wd:Q164487 wdt:P26 wd:Q320065 }