Did {Komodo_dragon} {habitat} {Flores} and {Rinca} ?
Do Komodo dragons inhabit Flores and Rinca?
Was Komodo_dragon habitat Flores and Rinca ?
ASK WHERE { resource:Varanus_komodoensis property:habitat resource:Flores . resource:Varanus_komodoensis property:habitat resource:Rinca }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q4504> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2974> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q148440>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q4504> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2974> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1164773>. } 
ASK WHERE { wd:Q4504 wdt:P2974 wd:Q148440 . wd:Q4504 wdt:P2974 wd:Q1164773 }