Simple Question (Direct)
Simple Question
Q1959902
P7
Q502895
USER
Who is the brother of John V, Count of Harcourt ?
(Q1959902,P7,c(Q502895))
action filter_type
action find
entity Q1959902
relation P7
type Q502895
['Q1959902', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q1959902 property:P7 ?k . ?k rdf:type ontology:Q502895 }
John V, Count of Harcourt
action filter_type
action find
entity John V, Count of Harcourt
relation brother
type common name
['John V, Count of Harcourt', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:John_V,_Count_of_Harcourt property:brother ?k . ?k rdf:type ontology:common_name }
[]
common name
Q8641853
SYSTEM
Louis I d'Harcourt
Q8641853
(Q1959902,P7,c(Q502895))
action filter_type
action find
entity Q1959902
relation P7
type Q502895
The brother of John V , Count of Harcourt is named [ANSWER]
['Q1959902', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q1959902 property:P7 ?k . ?k rdf:type ontology:Q502895 }
Louis I d'Harcourt
The brother of John V , Count of Harcourt is named Louis I d'Harcourt
Louis I d'Harcourt
action filter_type
action find
entity John V, Count of Harcourt
relation brother
type common name
['John V, Count of Harcourt', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:John_V,_Count_of_Harcourt property:brother ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8641853
P40
Q502895
USER
Who has that one as an offspring ?
(c(Q502895),P40,Q8641853)
action filter_type
action find_reverse
entity Q8641853
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q8641853']
SELECT DISTINCT ?h WHERE { ?h property:P40 resource:Q8641853 . ?h rdf:type ontology:Q502895 }
Louis I d'Harcourt
action filter_type
action find_reverse
entity Louis I d'Harcourt
relation child
type common name
[{'concept': 'common name'}, 'child', "Louis I d'Harcourt"]
SELECT DISTINCT ?h WHERE { ?h property:child resource:Louis_I_d'Harcourt . ?h rdf:type ontology:common_name }
[]
common name
Q2322407
SYSTEM
John IV, Count of Harcourt
Q2322407
(c(Q502895),P40,Q8641853)
action filter_type
action find_reverse
entity Q8641853
relation P40
type Q502895
[ANSWER] has that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q8641853']
SELECT DISTINCT ?h WHERE { ?h property:P40 resource:Q8641853 . ?h rdf:type ontology:Q502895 }
John IV, Count of Harcourt
John IV, Count of Harcourt has that one as an offspring
John IV, Count of Harcourt
action filter_type
action find_reverse
entity Louis I d'Harcourt
relation child
type common name
[{'concept': 'common name'}, 'child', "Louis I d'Harcourt"]
SELECT DISTINCT ?h WHERE { ?h property:child resource:Louis_I_d'Harcourt . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2322407
P22
Q502895
USER
Who have that one as a father ?
(c(Q502895),P22,Q2322407)
action filter_type
action find_reverse
entity Q2322407
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q2322407']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . ?d property:P22 resource:Q2322407 }
John IV, Count of Harcourt
action filter_type
action find_reverse
entity John IV, Count of Harcourt
relation father
type common name
[{'concept': 'common name'}, 'father', 'John IV, Count of Harcourt']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . ?d property:father resource:John_IV,_Count_of_Harcourt }
[]
common name
Q1959902 Q8641853
SYSTEM
John V, Count of Harcourt, Louis I d'Harcourt
Q1959902 Q8641853
(c(Q502895),P22,Q2322407)
action filter_type
action find_reverse
entity Q2322407
relation P22
type Q502895
[ANSWERS] have that one as a father
[{'concept': 'Q502895'}, 'P22', 'Q2322407']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . ?d property:P22 resource:Q2322407 }
John V, Count of Harcourt Louis I d'Harcourt
John V, Count of Harcourt and Louis I d'Harcourt have that one as a father
John V, Count of Harcourt Louis I d'Harcourt
action filter_type
action find_reverse
entity John IV, Count of Harcourt
relation father
type common name
[{'concept': 'common name'}, 'father', 'John IV, Count of Harcourt']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . ?d property:father resource:John_IV,_Count_of_Harcourt }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2322407
P40
Q502895
USER
Do John IV, Count of Harcourt have those ones as a child ?
(Q2322407,P40,Q1959902) (Q2322407,P40,Q8641853)
action is_in
entity prev_answer
action find
entity Q2322407
relation P40
['Q2322407', 'P40', 'Q1959902'] ['Q2322407', 'P40', 'Q8641853']
ASK WHERE { resource:Q2322407 property:P40 ?p . VALUES ( ?p ) { ( resource:Q1959902 ) ( resource:Q8641853 ) } }
John IV, Count of Harcourt
action is_in
entity prev_answer
action find
entity John IV, Count of Harcourt
relation child
['John IV, Count of Harcourt', 'child', 'John V, Count of Harcourt'] ['John IV, Count of Harcourt', 'child', "Louis I d'Harcourt"]
ASK WHERE { resource:John_IV,_Count_of_Harcourt property:child ?p . VALUES ( ?p ) { ( resource:John_V,_Count_of_Harcourt ) ( resource:Louis_I_d'Harcourt ) } }
[]
common name
SYSTEM
YES
(Q2322407,P40,Q1959902) (Q2322407,P40,Q8641853)
action is_in
entity prev_answer
action find
entity Q2322407
relation P40
[ANSWER]
['Q2322407', 'P40', 'Q1959902'] ['Q2322407', 'P40', 'Q8641853']
ASK WHERE { resource:Q2322407 property:P40 ?p . VALUES ( ?p ) { ( resource:Q1959902 ) ( resource:Q8641853 ) } }
Yes
action is_in
entity prev_answer
action find
entity John IV, Count of Harcourt
relation child
['John IV, Count of Harcourt', 'child', 'John V, Count of Harcourt'] ['John IV, Count of Harcourt', 'child', "Louis I d'Harcourt"]
ASK WHERE { resource:John_IV,_Count_of_Harcourt property:child ?p . VALUES ( ?p ) { ( resource:John_V,_Count_of_Harcourt ) ( resource:Louis_I_d'Harcourt ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1959902 Q663986
P26
Q502895
USER
Is Blanche of Ponthieu married to John V, Count of Harcourt ?
(Q1959902,P26,Q663986)
action is_in
entity Q663986
action find
entity Q1959902
relation P26
['Q1959902', 'P26', 'Q663986']
ASK WHERE { resource:Q1959902 property:P26 resource:Q663986 }
John V, Count of Harcourt Blanche of Ponthieu
action is_in
entity Blanche of Ponthieu
action find
entity John V, Count of Harcourt
relation spouse
['John V, Count of Harcourt', 'spouse', 'Blanche of Ponthieu']
ASK WHERE { resource:John_V,_Count_of_Harcourt property:spouse resource:Blanche_of_Ponthieu }
[]
common name
SYSTEM
YES
(Q1959902,P26,Q663986)
action is_in
entity Q663986
action find
entity Q1959902
relation P26
[ANSWER]
['Q1959902', 'P26', 'Q663986']
ASK WHERE { resource:Q1959902 property:P26 resource:Q663986 }
Yes
action is_in
entity Blanche of Ponthieu
action find
entity John V, Count of Harcourt
relation spouse
['John V, Count of Harcourt', 'spouse', 'Blanche of Ponthieu']
ASK WHERE { resource:John_V,_Count_of_Harcourt property:spouse resource:Blanche_of_Ponthieu }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5085835 Q8641853
P7
Q502895
USER
Which people are the brothers of Louis I d'Harcourt or Charlotte Bacon ?
OR((Q8641853,P7,c(Q502895)), (Q5085835,P7,c(Q502895)))
action filter_type
action union
action find
entity Q8641853
relation P7
action find
entity Q5085835
relation P7
type Q502895
{'OR': [['Q8641853', 'P7', {'concept': 'Q502895'}], ['Q5085835', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { { ?a property:P7 ?w . VALUES ( ?a ) { ( resource:Q5085835 ) ( resource:Q8641853 ) } } . ?w rdf:type ontology:Q502895 }
Charlotte Bacon Louis I d'Harcourt
action filter_type
action union
action find
entity Louis I d'Harcourt
relation brother
action find
entity Charlotte Bacon
relation brother
type common name
{'OR': [["Louis I d'Harcourt", 'brother', {'concept': 'common name'}], ['Charlotte Bacon', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { { ?a property:brother ?w . VALUES ( ?a ) { ( resource:Charlotte_Bacon ) ( resource:Louis_I_d'Harcourt ) } } . ?w rdf:type ontology:common_name }
[]
common name
Q1959902 Q4722795
SYSTEM
John V, Count of Harcourt, Alfred Harley, 6th Earl of Oxford and Earl Mortimer
Q1959902 Q4722795
OR((Q8641853,P7,c(Q502895)), (Q5085835,P7,c(Q502895)))
action filter_type
action union
action find
entity Q8641853
relation P7
action find
entity Q5085835
relation P7
type Q502895
[ANSWERS]
{'OR': [['Q8641853', 'P7', {'concept': 'Q502895'}], ['Q5085835', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { { ?a property:P7 ?w . VALUES ( ?a ) { ( resource:Q5085835 ) ( resource:Q8641853 ) } } . ?w rdf:type ontology:Q502895 }
John V, Count of Harcourt Alfred Harley, 6th Earl of Oxford and Earl Mortimer
John V, Count of Harcourt and Alfred Harley, 6th Earl of Oxford and Earl Mortimer are the brothers of Louis I d'Harcourt or Charlotte Bacon
John V, Count of Harcourt Alfred Harley, 6th Earl of Oxford and Earl Mortimer
action filter_type
action union
action find
entity Louis I d'Harcourt
relation brother
action find
entity Charlotte Bacon
relation brother
type common name
{'OR': [["Louis I d'Harcourt", 'brother', {'concept': 'common name'}], ['Charlotte Bacon', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { { ?a property:brother ?w . VALUES ( ?a ) { ( resource:Charlotte_Bacon ) ( resource:Louis_I_d'Harcourt ) } } . ?w rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q1959902
P21 P22
Q502895
USER
Which people have John V, Count of Harcourt as father and are a male ?
AND((c(Q502895),P22,Q1959902), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1959902
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q1959902'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?q WHERE { ?q property:P22 resource:Q1959902 . ?q property:P21 resource:Q6581097 . ?q rdf:type ontology:Q502895 }
male John V, Count of Harcourt
action filter_type
action intersection
action find_reverse
entity John V, Count of Harcourt
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'John V, Count of Harcourt'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?q WHERE { ?q property:father resource:John_V,_Count_of_Harcourt . ?q property:gender resource:male . ?q rdf:type ontology:common_name }
[]
common name
Q3380900 Q2399088
SYSTEM
Philippe d'Harcourt, John VI, Count of Harcourt
Q3380900 Q2399088
AND((c(Q502895),P22,Q1959902), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1959902
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q1959902'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?q WHERE { ?q property:P22 resource:Q1959902 . ?q property:P21 resource:Q6581097 . ?q rdf:type ontology:Q502895 }
Philippe d'Harcourt John VI, Count of Harcourt
Philippe d'Harcourt and John VI, Count of Harcourt have John V, Count of Harcourt as father and are a male
Philippe d'Harcourt John VI, Count of Harcourt
action filter_type
action intersection
action find_reverse
entity John V, Count of Harcourt
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'John V, Count of Harcourt'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?q WHERE { ?q property:father resource:John_V,_Count_of_Harcourt . ?q property:gender resource:male . ?q rdf:type ontology:common_name }
[]