Simple Question (Direct)
Simple Question
Q298997
P39
Q895526
USER
Which authority organ was a position held by Levi P. Morton ?
(Q298997,P39,c(Q895526))
action filter_type
action find
entity Q298997
relation P39
type Q895526
['Q298997', 'P39', {'concept': 'Q895526'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q895526 . resource:Q298997 property:P39 ?d }
Levi P. Morton
action filter_type
action find
entity Levi P. Morton
relation position held
type authority organ
['Levi P. Morton', 'position held', {'concept': 'authority organ'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:authority_organ . resource:Levi_P._Morton property:position_held ?d }
[]
authority organ
Q11699
SYSTEM
Vice President of the United States
Q11699
(Q298997,P39,c(Q895526))
action filter_type
action find
entity Q298997
relation P39
type Q895526
The [ANSWER] was a position held by Levi P. Morton
['Q298997', 'P39', {'concept': 'Q895526'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q895526 . resource:Q298997 property:P39 ?d }
Vice President of the United States
The Vice President of the United States was a position held by Levi P. Morton
Vice President of the United States
action filter_type
action find
entity Levi P. Morton
relation position held
type authority organ
['Levi P. Morton', 'position held', {'concept': 'authority organ'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:authority_organ . resource:Levi_P._Morton property:position_held ?d }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q298997
P27 P26
Q502895
USER
Which people are the life partner of Levi P. Morton and are a native of United States of America ?
AND((c(Q502895),P26,Q298997), (c(Q502895),P27,Q30))
action filter_type
action intersection
action find_reverse
entity Q298997
relation P26
action find_reverse
entity Q30
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q298997'], [{'concept': 'Q502895'}, 'P27', 'Q30']]}
SELECT DISTINCT ?e WHERE { ?e property:P26 resource:Q298997 . ?e property:P27 resource:Q30 . ?e rdf:type ontology:Q502895 }
United States of America Levi P. Morton
action filter_type
action intersection
action find_reverse
entity Levi P. Morton
relation spouse
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Levi P. Morton'], [{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}
SELECT DISTINCT ?e WHERE { ?e property:spouse resource:Levi_P._Morton . ?e property:country_of_citizenship resource:United_States_of_America . ?e rdf:type ontology:common_name }
[]
common name
Q516899
SYSTEM
Anna Morton
Q516899
AND((c(Q502895),P26,Q298997), (c(Q502895),P27,Q30))
action filter_type
action intersection
action find_reverse
entity Q298997
relation P26
action find_reverse
entity Q30
relation P27
type Q502895
[ANSWER] is the life partner of Levi P. Morton and is a native of United States of America
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q298997'], [{'concept': 'Q502895'}, 'P27', 'Q30']]}
SELECT DISTINCT ?e WHERE { ?e property:P26 resource:Q298997 . ?e property:P27 resource:Q30 . ?e rdf:type ontology:Q502895 }
Anna Morton
Anna Morton is the life partner of Levi P. Morton and is a native of United States of America
Anna Morton
action filter_type
action intersection
action find_reverse
entity Levi P. Morton
relation spouse
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Levi P. Morton'], [{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}
SELECT DISTINCT ?e WHERE { ?e property:spouse resource:Levi_P._Morton . ?e property:country_of_citizenship resource:United_States_of_America . ?e rdf:type ontology:common_name }
[]