Simple Question (Direct)
Simple Question
Q238338
P25
Q502895
USER
Who was the mom of Marie de Bourbon, Duchess of Montpensier ?
(Q238338,P25,c(Q502895))
action filter_type
action find
entity Q238338
relation P25
type Q502895
['Q238338', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q238338 property:P25 ?u . ?u rdf:type ontology:Q502895 }
Marie de Bourbon, Duchess of Montpensier
action filter_type
action find
entity Marie de Bourbon, Duchess of Montpensier
relation mother
type common name
['Marie de Bourbon, Duchess of Montpensier', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Marie_de_Bourbon,_Duchess_of_Montpensier property:mother ?u . ?u rdf:type ontology:common_name }
[]
common name
Q951903
SYSTEM
Henriette Catherine de Joyeuse
Q951903
(Q238338,P25,c(Q502895))
action filter_type
action find
entity Q238338
relation P25
type Q502895
[ANSWER]
['Q238338', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q238338 property:P25 ?u . ?u rdf:type ontology:Q502895 }
Henriette Catherine de Joyeuse
Henriette Catherine de Joyeuse
action filter_type
action find
entity Marie de Bourbon, Duchess of Montpensier
relation mother
type common name
['Marie de Bourbon, Duchess of Montpensier', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Marie_de_Bourbon,_Duchess_of_Montpensier property:mother ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q951903
P40
Q502895
USER
Who are the children of that one ?
(Q951903,P40,c(Q502895))
action filter_type
action find
entity Q951903
relation P40
type Q502895
['Q951903', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . resource:Q951903 property:P40 ?y }
Henriette Catherine de Joyeuse
action filter_type
action find
entity Henriette Catherine de Joyeuse
relation child
type common name
['Henriette Catherine de Joyeuse', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . resource:Henriette_Catherine_de_Joyeuse property:child ?y }
[]
common name
Q732579 Q238338 Q1464798
SYSTEM
Henry II of Lorraine, Duke of Guise, Marie de Bourbon, Duchess of Montpensier, Marie de Lorraine, Duchess of Guise
Q1464798 Q238338 Q732579 Q3439611 Q472308
(Q951903,P40,c(Q502895))
action filter_type
action find
entity Q951903
relation P40
type Q502895
[ANSWERS]
['Q951903', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . resource:Q951903 property:P40 ?y }
Marie de Lorraine, Duchess of Guise Marie de Bourbon, Duchess of Montpensier Henry II of Lorraine, Duke of Guise Roger of Lorraine Louis of Lorraine, duke of Joyeuse
Henry II of Lorraine, Duke of Guise Marie de Bourbon, Duchess of Montpensier Marie de Lorraine, Duchess of Guise
action filter_type
action find
entity Henriette Catherine de Joyeuse
relation child
type common name
['Henriette Catherine de Joyeuse', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . resource:Henriette_Catherine_de_Joyeuse property:child ?y }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q951903
P40
Q502895
USER
Do Henriette Catherine de Joyeuse have those ones as an offspring ?
(Q951903,P40,Q732579) (Q951903,P40,Q238338) (Q951903,P40,Q1464798)
action is_in
entity prev_answer
action find
entity Q951903
relation P40
['Q951903', 'P40', 'Q732579'] ['Q951903', 'P40', 'Q238338'] ['Q951903', 'P40', 'Q1464798']
ASK WHERE { resource:Q951903 property:P40 ?r . VALUES ( ?r ) { ( resource:Q1464798 ) ( resource:Q238338 ) ( resource:Q732579 ) } }
Henriette Catherine de Joyeuse
action is_in
entity prev_answer
action find
entity Henriette Catherine de Joyeuse
relation child
['Henriette Catherine de Joyeuse', 'child', 'Henry II of Lorraine, Duke of Guise'] ['Henriette Catherine de Joyeuse', 'child', 'Marie de Bourbon, Duchess of Montpensier'] ['Henriette Catherine de Joyeuse', 'child', 'Marie de Lorraine, Duchess of Guise']
ASK WHERE { resource:Henriette_Catherine_de_Joyeuse property:child ?r . VALUES ( ?r ) { ( resource:Marie_de_Lorraine,_Duchess_of_Guise ) ( resource:Marie_de_Bourbon,_Duchess_of_Montpensier ) ( resource:Henry_II_of_Lorraine,_Duke_of_Guise ) } }
[]
common name
SYSTEM
YES
(Q951903,P40,Q732579) (Q951903,P40,Q238338) (Q951903,P40,Q1464798)
action is_in
entity prev_answer
action find
entity Q951903
relation P40
[ANSWER]
['Q951903', 'P40', 'Q732579'] ['Q951903', 'P40', 'Q238338'] ['Q951903', 'P40', 'Q1464798']
ASK WHERE { resource:Q951903 property:P40 ?r . VALUES ( ?r ) { ( resource:Q1464798 ) ( resource:Q238338 ) ( resource:Q732579 ) } }
Yes
action is_in
entity prev_answer
action find
entity Henriette Catherine de Joyeuse
relation child
['Henriette Catherine de Joyeuse', 'child', 'Henry II of Lorraine, Duke of Guise'] ['Henriette Catherine de Joyeuse', 'child', 'Marie de Bourbon, Duchess of Montpensier'] ['Henriette Catherine de Joyeuse', 'child', 'Marie de Lorraine, Duchess of Guise']
ASK WHERE { resource:Henriette_Catherine_de_Joyeuse property:child ?r . VALUES ( ?r ) { ( resource:Marie_de_Lorraine,_Duchess_of_Guise ) ( resource:Marie_de_Bourbon,_Duchess_of_Montpensier ) ( resource:Henry_II_of_Lorraine,_Duke_of_Guise ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q951903
P25 P21
Q502895
USER
Which people have Henriette Catherine de Joyeuse as mom and have male as the sex ?
AND((c(Q502895),P25,Q951903), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q951903
relation P25
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P25', 'Q951903'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?r WHERE { ?r property:P25 resource:Q951903 . ?r property:P21 resource:Q6581097 . ?r rdf:type ontology:Q502895 }
male Henriette Catherine de Joyeuse
action filter_type
action intersection
action find_reverse
entity Henriette Catherine de Joyeuse
relation mother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'mother', 'Henriette Catherine de Joyeuse'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?r WHERE { ?r property:mother resource:Henriette_Catherine_de_Joyeuse . ?r property:gender resource:male . ?r rdf:type ontology:common_name }
[]
common name
Q472308 Q732579 Q3439611
SYSTEM
Louis of Lorraine, duke of Joyeuse, Henry II of Lorraine, Duke of Guise, Roger of Lorraine
Q472308 Q732579 Q3439611
AND((c(Q502895),P25,Q951903), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q951903
relation P25
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P25', 'Q951903'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?r WHERE { ?r property:P25 resource:Q951903 . ?r property:P21 resource:Q6581097 . ?r rdf:type ontology:Q502895 }
Louis of Lorraine, duke of Joyeuse Henry II of Lorraine, Duke of Guise Roger of Lorraine
Louis of Lorraine, duke of Joyeuse Henry II of Lorraine, Duke of Guise Roger of Lorraine
action filter_type
action intersection
action find_reverse
entity Henriette Catherine de Joyeuse
relation mother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'mother', 'Henriette Catherine de Joyeuse'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?r WHERE { ?r property:mother resource:Henriette_Catherine_de_Joyeuse . ?r property:gender resource:male . ?r rdf:type ontology:common_name }
[]