Simple Question (Direct)
Simple Question
Q7183182
P119
Q44539
USER
Which temple is the tomb of Philip Barton Key II ?
(Q7183182,P119,c(Q44539))
action filter_type
action find
entity Q7183182
relation P119
type Q44539
['Q7183182', 'P119', {'concept': 'Q44539'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q44539 . resource:Q7183182 property:P119 ?h }
Philip Barton Key II
action filter_type
action find
entity Philip Barton Key II
relation place of burial
type temple
['Philip Barton Key II', 'place of burial', {'concept': 'temple'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:temple . resource:Philip_Barton_Key_II property:place_of_burial ?h }
[]
temple
Q129795
SYSTEM
Westminster Hall and Burying Ground
Q129795
(Q7183182,P119,c(Q44539))
action filter_type
action find
entity Q7183182
relation P119
type Q44539
[ANSWER] is the tomb of Philip Barton Key II
['Q7183182', 'P119', {'concept': 'Q44539'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q44539 . resource:Q7183182 property:P119 ?h }
Westminster Hall and Burying Ground
Westminster Hall and Burying Ground is the tomb of Philip Barton Key II
Westminster Hall and Burying Ground
action filter_type
action find
entity Philip Barton Key II
relation place of burial
type temple
['Philip Barton Key II', 'place of burial', {'concept': 'temple'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:temple . resource:Philip_Barton_Key_II property:place_of_burial ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q129795
P1435
Q852446
USER
Which US administrative territory represents the heritage status given to that temple ?
(Q129795,P1435,c(Q852446))
action filter_type
action find
entity Q129795
relation P1435
type Q852446
['Q129795', 'P1435', {'concept': 'Q852446'}]
SELECT DISTINCT ?t WHERE { resource:Q129795 property:P1435 ?t . ?t rdf:type ontology:Q852446 }
Westminster Hall and Burying Ground
action filter_type
action find
entity Westminster Hall and Burying Ground
relation heritage status
type administrative territorial entity of the United States
['Westminster Hall and Burying Ground', 'heritage status', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?t WHERE { resource:Westminster_Hall_and_Burying_Ground property:heritage_status ?t . ?t rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q20856087
SYSTEM
National Register Historic District
Q20856087
(Q129795,P1435,c(Q852446))
action filter_type
action find
entity Q129795
relation P1435
type Q852446
The [ANSWER] represents the heritage status given to that temple
['Q129795', 'P1435', {'concept': 'Q852446'}]
SELECT DISTINCT ?t WHERE { resource:Q129795 property:P1435 ?t . ?t rdf:type ontology:Q852446 }
National Register Historic District
The National Register Historic District represents the heritage status given to that temple
National Register Historic District
action filter_type
action find
entity Westminster Hall and Burying Ground
relation heritage status
type administrative territorial entity of the United States
['Westminster Hall and Burying Ground', 'heritage status', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?t WHERE { resource:Westminster_Hall_and_Burying_Ground property:heritage_status ?t . ?t rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q7183182
P21 P40
Q502895
USER
Which people have Philip Barton Key II as a child and have male as the sex ?
AND((c(Q502895),P40,Q7183182), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7183182
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q7183182'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P21 resource:Q6581097 . ?a property:P40 resource:Q7183182 }
male Philip Barton Key II
action filter_type
action intersection
action find_reverse
entity Philip Barton Key II
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Philip Barton Key II'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:gender resource:male . ?a property:child resource:Philip_Barton_Key_II }
[]
common name
Q320633
SYSTEM
Francis Scott Key
Q320633
AND((c(Q502895),P40,Q7183182), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7183182
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Philip Barton Key II as a child and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q7183182'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P21 resource:Q6581097 . ?a property:P40 resource:Q7183182 }
Francis Scott Key
Francis Scott Key have Philip Barton Key II as a child and have male as the sex
Francis Scott Key
action filter_type
action intersection
action find_reverse
entity Philip Barton Key II
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Philip Barton Key II'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:gender resource:male . ?a property:child resource:Philip_Barton_Key_II }
[]