Question: In which country is Beijing?
Paraphrase: In which nation is Beijing?
SPARQL (Wikidata):  select distinct ?sbj where { ?sbj wdt:P150 wd:Q956 . ?sbj wdt:P31 wd:Q6256 } 
Answer: People's Republic of China