Did {Bali} {located in or next to body of water} {Indian Ocean} and {Gulf of Thailand} ?
Is the location of Bali in the Gulf of Thailand and Indian Ocean?
Is Bali located in the Gulf of Thailand and Indian Ocean?
ASK WHERE { resource:Bali property:located_in_or_next_to_body_of_water resource:Indian_Ocean . resource:Bali property:located_in_or_next_to_body_of_water resource:Gulf_of_Thailand }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q4648> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P206> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1239>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q4648> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P206> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q131217>. } 
ASK WHERE { wd:Q4648 wdt:P206 wd:Q1239 . wd:Q4648 wdt:P206 wd:Q131217 }