what is the {country} for {Trygve Lie} has {place of birth} as {Grorud} ?
In what country was Trygve Lie born?
Trygve Lie was born in Grorud in what country?
SELECT ?y WHERE { ?y property:place_of_birth resource:Grorud . ?y property:country ?y . resource:Trygve_Lie property:place_of_birth ?y }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1271> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P19> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1547453> .
?statement <http://www.wikidata.org/entity/P17> ?value. 
} 

SELECT ?value WHERE { wd:Q1271 p:P19 ?s . ?s ps:P19 wd:Q1547453 . ?s pq:P17 ?value}