Question: How is Punjab whose FIPS 10-4 (countries and regions) is IN23 related to Rajasthan that uses Hindi as the official language?
Choices:
manufacturer
symptoms
model item
territory claimed by
partially contains
director/manager
shares border with
connects with
lyrics by
official language
Program:
function: Find
inputs: Punjab
function: FilterStr
dependencies: 0
inputs: FIPS 10-4 (countries and regions)
IN23
function: Find
inputs: Hindi
function: Relate
dependencies: 2
inputs: official language
backward
function: Find
inputs: Rajasthan
function: And
dependencies: 3
4
function: QueryRelation
dependencies: 1
5
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Punjab" . ?e_1 <FIPS_10-4_(countries_and_regions)> ?pv . ?pv <pred:value> "IN23" . ?e_2 <pred:name> "Rajasthan" . ?e_2 <official_language> ?e_3 . ?e_3 <pred:name> "Hindi" . ?e_1 ?p ?e_2 .  }
Answer: shares border with