Question: What state of India uses the language whose Wikimedia language code is gu (this statement's inherent property is first language)?
Choices:
Karnataka
West Bengal
Maharashtra
Gujarat
Jharkhand
Himachal Pradesh
Kerala
Punjab
Haryana
Andhra Pradesh
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Wikimedia language code
gu
function: FilterConcept
dependencies: 1
inputs: language
function: Relate
dependencies: 2
inputs: language used
backward
function: QFilterStr
dependencies: 3
inputs: has quality
first language
function: FilterConcept
dependencies: 4
inputs: state of India
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" . ?e <language_used> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "language" . ?e_1 <Wikimedia_language_code> ?pv . ?pv <pred:value> "gu" .  [ <pred:fact_h> ?e ; <pred:fact_r> <language_used> ; <pred:fact_t> ?e_1 ] <has_quality> ?qpv . ?qpv <pred:value> "first language" .  }
Answer: Gujarat