What is {Q48460} of {basin countries} of {Loch Ness} ?
What is the Q48460 of bowl nations of Loch Ness ?
What is the Q48460 of basin countries of Loch Ness ?
SELECT ?k WHERE { ?s property:Dewey_Decimal_Classification ?k . resource:Loch_Ness property:basin_country ?s }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q49650> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P205>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1036> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q49650 wdt:P205 ?X . ?X wdt:P1036 ?answer}
2--411