Did {Catherine_the_Great} {family} {House of Romanov} and {House of Bourbon} ?
Was Catherine the Great part of the house of Romanov and house of bourbon?
ASK WHERE { resource:Catherine_the_Great property:family resource:House_of_Bourbon . resource:Catherine_the_Great property:family resource:House_of_Romanov }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q36450> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P53> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q112707>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q36450> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P53> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q58389>. } 
ASK WHERE { wd:Q36450 wdt:P53 wd:Q112707 . wd:Q36450 wdt:P53 wd:Q58389 }