Simple Question (Direct)
Simple Question
Q28886
P1441
Q15416
USER
Which television program features Alan Harper ?
(Q28886,P1441,c(Q15416))
action filter_type
action find
entity Q28886
relation P1441
type Q15416
['Q28886', 'P1441', {'concept': 'Q15416'}]
SELECT DISTINCT ?a WHERE { resource:Q28886 property:P1441 ?a . ?a rdf:type ontology:Q15416 }
Alan Harper
action filter_type
action find
entity Alan Harper
relation present in work
type television program
['Alan Harper', 'present in work', {'concept': 'television program'}]
SELECT DISTINCT ?a WHERE { resource:Alan_Harper property:present_in_work ?a . ?a rdf:type ontology:television_program }
[]
television program
Q189267
SYSTEM
Two and a Half Men
Q189267
(Q28886,P1441,c(Q15416))
action filter_type
action find
entity Q28886
relation P1441
type Q15416
Features [ANSWER] features Alan Harper
['Q28886', 'P1441', {'concept': 'Q15416'}]
SELECT DISTINCT ?a WHERE { resource:Q28886 property:P1441 ?a . ?a rdf:type ontology:Q15416 }
Two and a Half Men
Features Two and a Half Men features Alan Harper
Two and a Half Men
action filter_type
action find
entity Alan Harper
relation present in work
type television program
['Alan Harper', 'present in work', {'concept': 'television program'}]
SELECT DISTINCT ?a WHERE { resource:Alan_Harper property:present_in_work ?a . ?a rdf:type ontology:television_program }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q28886
P40
Q6619679
USER
Who is a child of Alan Harper ?
(Q28886,P40,c(Q6619679))
action filter_type
action find
entity Q28886
relation P40
type Q6619679
['Q28886', 'P40', {'concept': 'Q6619679'}]
SELECT DISTINCT ?a WHERE { resource:Q28886 property:P40 ?a . ?a rdf:type ontology:Q6619679 }
Alan Harper
action filter_type
action find
entity Alan Harper
relation child
type fictional humanoid
['Alan Harper', 'child', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ?a WHERE { resource:Alan_Harper property:child ?a . ?a rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q9290130
SYSTEM
Jake Harper
Q9290130
(Q28886,P40,c(Q6619679))
action filter_type
action find
entity Q28886
relation P40
type Q6619679
A child of Alan Harper is called [ANSWER]
['Q28886', 'P40', {'concept': 'Q6619679'}]
SELECT DISTINCT ?a WHERE { resource:Q28886 property:P40 ?a . ?a rdf:type ontology:Q6619679 }
Jake Harper
A child of Alan Harper is called Jake Harper
Jake Harper
action filter_type
action find
entity Alan Harper
relation child
type fictional humanoid
['Alan Harper', 'child', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ?a WHERE { resource:Alan_Harper property:child ?a . ?a rdf:type ontology:fictional_humanoid }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15956032
Q6619679
USER
And also tell me about Jia She?
(Q15956032,P40,c(Q6619679))
action filter_type
action find
entity Q15956032
relation P40
type Q6619679
['Q15956032', 'P40', {'concept': 'Q6619679'}]
SELECT DISTINCT ?o WHERE { resource:Q15956032 property:P40 ?o . ?o rdf:type ontology:Q6619679 }
Jia She
action filter_type
action find
entity Jia She
relation child
type fictional humanoid
['Jia She', 'child', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ?o WHERE { resource:Jia_She property:child ?o . ?o rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q15927584 Q10538381
SYSTEM
Jia Lian, Jia Cong
Q15927584 Q10538381
(Q15956032,P40,c(Q6619679))
action filter_type
action find
entity Q15956032
relation P40
type Q6619679
[ANSWERS]
['Q15956032', 'P40', {'concept': 'Q6619679'}]
SELECT DISTINCT ?o WHERE { resource:Q15956032 property:P40 ?o . ?o rdf:type ontology:Q6619679 }
Jia Lian Jia Cong
Jia Lian Jia Cong
action filter_type
action find
entity Jia She
relation child
type fictional humanoid
['Jia She', 'child', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ?o WHERE { resource:Jia_She property:child ?o . ?o rdf:type ontology:fictional_humanoid }
[]