Simple Question (Direct)
Simple Question
Q571128
P26
Q502895
USER
Which person is the life partner of Bolesław I, Duke of Cieszyn ?
(Q571128,P26,c(Q502895))
action filter_type
action find
entity Q571128
relation P26
type Q502895
['Q571128', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q571128 property:P26 ?q . ?q rdf:type ontology:Q502895 }
Bolesław I, Duke of Cieszyn
action filter_type
action find
entity Bolesław I, Duke of Cieszyn
relation spouse
type common name
['Bolesław I, Duke of Cieszyn', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Bolesław_I,_Duke_of_Cieszyn property:spouse ?q . ?q rdf:type ontology:common_name }
[]
common name
Q527861
SYSTEM
Euphemia of Masovia
Q527861
(Q571128,P26,c(Q502895))
action filter_type
action find
entity Q571128
relation P26
type Q502895
[ANSWER] is the life partner of Bolesław I, Duke of Cieszyn
['Q571128', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q571128 property:P26 ?q . ?q rdf:type ontology:Q502895 }
Euphemia of Masovia
Euphemia of Masovia is the life partner of Bolesław I, Duke of Cieszyn
Euphemia of Masovia
action filter_type
action find
entity Bolesław I, Duke of Cieszyn
relation spouse
type common name
['Bolesław I, Duke of Cieszyn', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Bolesław_I,_Duke_of_Cieszyn property:spouse ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q527861
P40
Q502895
USER
Which people have that one as a child ?
(c(Q502895),P40,Q527861)
action filter_type
action find_reverse
entity Q527861
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q527861']
SELECT DISTINCT ?t WHERE { ?t property:P40 resource:Q527861 . ?t rdf:type ontology:Q502895 }
Euphemia of Masovia
action filter_type
action find_reverse
entity Euphemia of Masovia
relation child
type common name
[{'concept': 'common name'}, 'child', 'Euphemia of Masovia']
SELECT DISTINCT ?t WHERE { ?t property:child resource:Euphemia_of_Masovia . ?t rdf:type ontology:common_name }
[]
common name
Q2318426 Q1980579
SYSTEM
Alexandra of Lithuania, Siemowit IV, Duke of Masovia
Q2318426 Q1980579
(c(Q502895),P40,Q527861)
action filter_type
action find_reverse
entity Q527861
relation P40
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P40', 'Q527861']
SELECT DISTINCT ?t WHERE { ?t property:P40 resource:Q527861 . ?t rdf:type ontology:Q502895 }
Alexandra of Lithuania Siemowit IV, Duke of Masovia
Alexandra of Lithuania and Siemowit IV, Duke of Masovia have that one as a child
Alexandra of Lithuania Siemowit IV, Duke of Masovia
action filter_type
action find_reverse
entity Euphemia of Masovia
relation child
type common name
[{'concept': 'common name'}, 'child', 'Euphemia of Masovia']
SELECT DISTINCT ?t WHERE { ?t property:child resource:Euphemia_of_Masovia . ?t rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2318426
P9
Q502895
USER
Which people have Alexandra of Lithuania as their sibling ?
(c(Q502895),P9,Q2318426)
action filter_type
action find_reverse
entity Q2318426
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q2318426']
SELECT DISTINCT ?o WHERE { ?o property:P9 resource:Q2318426 . ?o rdf:type ontology:Q502895 }
Alexandra of Lithuania
action filter_type
action find_reverse
entity Alexandra of Lithuania
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Alexandra of Lithuania']
SELECT DISTINCT ?o WHERE { ?o property:sister resource:Alexandra_of_Lithuania . ?o rdf:type ontology:common_name }
[]
common name
Q54049 Q2494481 Q2464977
SYSTEM
Jogaila, Andrei of Polotsk, Kaributas
Q4110531 Q1050358 Q992978 Q4057085 Q54049 Q3277519 Q392792 Q2494481 Q2464977 Q2992106 Q2591850
(c(Q502895),P9,Q2318426)
action filter_type
action find_reverse
entity Q2318426
relation P9
type Q502895
[ANSWERS] have Alexandra of Lithuania as their sibling
[{'concept': 'Q502895'}, 'P9', 'Q2318426']
SELECT DISTINCT ?o WHERE { ?o property:P9 resource:Q2318426 . ?o rdf:type ontology:Q502895 }
Vygantas Lengvenis Skirgaila Agrypina Jogaila Feodor Olgerdovich Švitrigaila Andrei of Polotsk Kaributas Karigaila Demetrius I Starshy
Jogaila, Andrei of Polotsk and Kaributas have Alexandra of Lithuania as their sibling
Jogaila Andrei of Polotsk Kaributas
action filter_type
action find_reverse
entity Alexandra of Lithuania
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Alexandra of Lithuania']
SELECT DISTINCT ?o WHERE { ?o property:sister resource:Alexandra_of_Lithuania . ?o rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q54049
P793
Q628455
USER
What is a significant event associated with that person ?
(Q54049,P793,c(Q628455))
action filter_type
action find
entity Q54049
relation P793
type Q628455
['Q54049', 'P793', {'concept': 'Q628455'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q628455 . resource:Q54049 property:P793 ?f }
Jogaila
action filter_type
action find
entity Jogaila
relation significant event
type rite
['Jogaila', 'significant event', {'concept': 'rite'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:rite . resource:Jogaila property:significant_event ?f }
[]
rite
Clarification for simple ques.
Q2494481
SYSTEM
Did you mean Andrei of Polotsk ?
Q54049 Q2494481 Q2464977
(Q54049,P793,c(Q628455)) (Q2494481,P793,c(Q628455)) (Q2464977,P793,c(Q628455))
[ANSWER]
['Q54049', 'P793', {'concept': 'Q628455'}] ['Q2494481', 'P793', {'concept': 'Q628455'}] ['Q2464977', 'P793', {'concept': 'Q628455'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q628455 . resource:Q54049 property:P793 ?f }
Jogaila Andrei of Polotsk Kaributas
Did you mean Andrei of Polotsk ?
Andrei of Polotsk
['Jogaila', 'significant event', {'concept': 'rite'}] ['Andrei of Polotsk', 'significant event', {'concept': 'rite'}] ['Kaributas', 'significant event', {'concept': 'rite'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:rite . resource:Jogaila property:significant_event ?f }
[]
Simple Question (Coreferenced)
USER
No, I meant Jogaila. Could you tell me the answer for that?
(Q54049,P793,c(Q628455))
Q54049
['Q54049', 'P793', {'concept': 'Q628455'}]
['Jogaila', 'significant event', {'concept': 'rite'}]
[]
Q35856
SYSTEM
baptism
Q35856
(Q54049,P793,c(Q628455))
action filter_type
action find
entity Q54049
relation P793
type Q628455
A significant event associated with that person is a [ANSWER]
['Q54049', 'P793', {'concept': 'Q628455'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q628455 . resource:Q54049 property:P793 ?f }
baptism
A significant event associated with that person is a baptism
baptism
action filter_type
action find
entity Jogaila
relation significant event
type rite
['Jogaila', 'significant event', {'concept': 'rite'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:rite . resource:Jogaila property:significant_event ?f }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q35856 Q242436
P793
Q502895
USER
Is that rite a key event of Mindaugas ?
(Q242436,P793,Q35856)
action is_in
entity Q35856
action find
entity Q242436
relation P793
['Q242436', 'P793', 'Q35856']
ASK WHERE { resource:Q242436 property:P793 resource:Q35856 }
baptism Mindaugas
action is_in
entity baptism
action find
entity Mindaugas
relation significant event
['Mindaugas', 'significant event', 'baptism']
ASK WHERE { resource:Mindaugas property:significant_event resource:baptism }
[]
common name
SYSTEM
YES
(Q242436,P793,Q35856)
action is_in
entity Q35856
action find
entity Q242436
relation P793
[ANSWER]
['Q242436', 'P793', 'Q35856']
ASK WHERE { resource:Q242436 property:P793 resource:Q35856 }
Yes
action is_in
entity baptism
action find
entity Mindaugas
relation significant event
['Mindaugas', 'significant event', 'baptism']
ASK WHERE { resource:Mindaugas property:significant_event resource:baptism }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q2318426
P25 P21
Q502895
USER
Which people have Alexandra of Lithuania as a parent and have the gender as male ?
AND((c(Q502895),P25,Q2318426), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q2318426
relation P25
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P25', 'Q2318426'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?n WHERE { ?n property:P25 resource:Q2318426 . ?n property:P21 resource:Q6581097 . ?n rdf:type ontology:Q502895 }
male Alexandra of Lithuania
action filter_type
action intersection
action find_reverse
entity Alexandra of Lithuania
relation mother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'mother', 'Alexandra of Lithuania'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?n WHERE { ?n property:mother resource:Alexandra_of_Lithuania . ?n property:gender resource:male . ?n rdf:type ontology:common_name }
[]
common name
Q2456100 Q2133975 Q2348420 Q4463654
SYSTEM
Władysław I of Masovia, Casimir II of Masovia, Siemowit V of Masovia, Trojden II of Płock
Q2456100 Q2133975 Q2348420 Q4463654
AND((c(Q502895),P25,Q2318426), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q2318426
relation P25
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have Alexandra of Lithuania as a parent and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P25', 'Q2318426'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?n WHERE { ?n property:P25 resource:Q2318426 . ?n property:P21 resource:Q6581097 . ?n rdf:type ontology:Q502895 }
Władysław I of Masovia Casimir II of Masovia Siemowit V of Masovia Trojden II of Płock
Władysław I of Masovia, Casimir II of Masovia, Siemowit V of Masovia and Trojden II of Płock have Alexandra of Lithuania as a parent and have the gender as male
Władysław I of Masovia Casimir II of Masovia Siemowit V of Masovia Trojden II of Płock
action filter_type
action intersection
action find_reverse
entity Alexandra of Lithuania
relation mother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'mother', 'Alexandra of Lithuania'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?n WHERE { ?n property:mother resource:Alexandra_of_Lithuania . ?n property:gender resource:male . ?n rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1900331 Q2133975
P7
Q502895
USER
Which people have Casimir II of Masovia or Mark Osborne as their sibling ?
OR((Q2133975,P7,c(Q502895)), (Q1900331,P7,c(Q502895)))
action filter_type
action union
action find
entity Q2133975
relation P7
action find
entity Q1900331
relation P7
type Q502895
{'OR': [['Q2133975', 'P7', {'concept': 'Q502895'}], ['Q1900331', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q2133975 property:P7 ?c } UNION { resource:Q1900331 property:P7 ?c } } . ?c rdf:type ontology:Q502895 }
Mark Osborne Casimir II of Masovia
action filter_type
action union
action find
entity Casimir II of Masovia
relation brother
action find
entity Mark Osborne
relation brother
type common name
{'OR': [['Casimir II of Masovia', 'brother', {'concept': 'common name'}], ['Mark Osborne', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Casimir_II_of_Masovia property:brother ?c } UNION { resource:Mark_Osborne property:brother ?c } } . ?c rdf:type ontology:common_name }
[]
common name
Q3195292 Q2456100 Q4463654 Q2348420
SYSTEM
Kent Osborne, Władysław I of Masovia, Trojden II of Płock, Siemowit V of Masovia
Q3195292 Q2456100 Q4463654 Q2348420
OR((Q2133975,P7,c(Q502895)), (Q1900331,P7,c(Q502895)))
action filter_type
action union
action find
entity Q2133975
relation P7
action find
entity Q1900331
relation P7
type Q502895
[ANSWERS] have Casimir II of Masovia or Mark Osborne as their sibling
{'OR': [['Q2133975', 'P7', {'concept': 'Q502895'}], ['Q1900331', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q2133975 property:P7 ?c } UNION { resource:Q1900331 property:P7 ?c } } . ?c rdf:type ontology:Q502895 }
Kent Osborne Władysław I of Masovia Trojden II of Płock Siemowit V of Masovia
Kent Osborne, Władysław I of Masovia, Trojden II of Płock and Siemowit V of Masovia have Casimir II of Masovia or Mark Osborne as their sibling
Kent Osborne Władysław I of Masovia Trojden II of Płock Siemowit V of Masovia
action filter_type
action union
action find
entity Casimir II of Masovia
relation brother
action find
entity Mark Osborne
relation brother
type common name
{'OR': [['Casimir II of Masovia', 'brother', {'concept': 'common name'}], ['Mark Osborne', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Casimir_II_of_Masovia property:brother ?c } UNION { resource:Mark_Osborne property:brother ?c } } . ?c rdf:type ontology:common_name }
[]