Simple Question (Direct)
Simple Question
Q1311364
P9
Q502895
USER
Who is the sister of Duke Xiang of Zheng ?
(Q1311364,P9,c(Q502895))
action filter_type
action find
entity Q1311364
relation P9
type Q502895
['Q1311364', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q1311364 property:P9 ?n . ?n rdf:type ontology:Q502895 }
Duke Xiang of Zheng
action filter_type
action find
entity Duke Xiang of Zheng
relation sister
type common name
['Duke Xiang of Zheng', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Duke_Xiang_of_Zheng property:sister ?n . ?n rdf:type ontology:common_name }
[]
common name
Q6835187
SYSTEM
Xia Ji
Q6835187
(Q1311364,P9,c(Q502895))
action filter_type
action find
entity Q1311364
relation P9
type Q502895
The sister of Duke Xiang of Zheng is named [ANSWER]
['Q1311364', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q1311364 property:P9 ?n . ?n rdf:type ontology:Q502895 }
Xia Ji
The sister of Duke Xiang of Zheng is named Xia Ji
Xia Ji
action filter_type
action find
entity Duke Xiang of Zheng
relation sister
type common name
['Duke Xiang of Zheng', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Duke_Xiang_of_Zheng property:sister ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1311364
P7
Q502895
USER
Who have Duke Xiang of Zheng as their sibling ?
(c(Q502895),P7,Q1311364)
action filter_type
action find_reverse
entity Q1311364
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q1311364']
SELECT DISTINCT ?p WHERE { ?p property:P7 resource:Q1311364 . ?p rdf:type ontology:Q502895 }
Duke Xiang of Zheng
action filter_type
action find_reverse
entity Duke Xiang of Zheng
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Duke Xiang of Zheng']
SELECT DISTINCT ?p WHERE { ?p property:brother resource:Duke_Xiang_of_Zheng . ?p rdf:type ontology:common_name }
[]
common name
Q1311347 Q6835187
SYSTEM
Duke Ling of Zheng, Xia Ji
Q1311347 Q6835187
(c(Q502895),P7,Q1311364)
action filter_type
action find_reverse
entity Q1311364
relation P7
type Q502895
[ANSWERS] have Duke Xiang of Zheng as their sibling
[{'concept': 'Q502895'}, 'P7', 'Q1311364']
SELECT DISTINCT ?p WHERE { ?p property:P7 resource:Q1311364 . ?p rdf:type ontology:Q502895 }
Duke Ling of Zheng Xia Ji
Duke Ling of Zheng and Xia Ji have Duke Xiang of Zheng as their sibling
Duke Ling of Zheng Xia Ji
action filter_type
action find_reverse
entity Duke Xiang of Zheng
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Duke Xiang of Zheng']
SELECT DISTINCT ?p WHERE { ?p property:brother resource:Duke_Xiang_of_Zheng . ?p rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1311364
P40
Q502895
USER
Who has Duke Xiang of Zheng as a child ?
(c(Q502895),P40,Q1311364)
action filter_type
action find_reverse
entity Q1311364
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q1311364']
SELECT DISTINCT ?x WHERE { ?x property:P40 resource:Q1311364 . ?x rdf:type ontology:Q502895 }
Duke Xiang of Zheng
action filter_type
action find_reverse
entity Duke Xiang of Zheng
relation child
type common name
[{'concept': 'common name'}, 'child', 'Duke Xiang of Zheng']
SELECT DISTINCT ?x WHERE { ?x property:child resource:Duke_Xiang_of_Zheng . ?x rdf:type ontology:common_name }
[]
common name
Q1263564
SYSTEM
Duke Mu of Zheng
Q1263564
(c(Q502895),P40,Q1311364)
action filter_type
action find_reverse
entity Q1311364
relation P40
type Q502895
[ANSWER] has Duke Xiang of Zheng as a child
[{'concept': 'Q502895'}, 'P40', 'Q1311364']
SELECT DISTINCT ?x WHERE { ?x property:P40 resource:Q1311364 . ?x rdf:type ontology:Q502895 }
Duke Mu of Zheng
Duke Mu of Zheng has Duke Xiang of Zheng as a child
Duke Mu of Zheng
action filter_type
action find_reverse
entity Duke Xiang of Zheng
relation child
type common name
[{'concept': 'common name'}, 'child', 'Duke Xiang of Zheng']
SELECT DISTINCT ?x WHERE { ?x property:child resource:Duke_Xiang_of_Zheng . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1263564
P22
Q502895
USER
Which person was the father of that one ?
(Q1263564,P22,c(Q502895))
action filter_type
action find
entity Q1263564
relation P22
type Q502895
['Q1263564', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q1263564 property:P22 ?u . ?u rdf:type ontology:Q502895 }
Duke Mu of Zheng
action filter_type
action find
entity Duke Mu of Zheng
relation father
type common name
['Duke Mu of Zheng', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Duke_Mu_of_Zheng property:father ?u . ?u rdf:type ontology:common_name }
[]
common name
Q1272669
SYSTEM
Duke Wen of Zheng
Q1272669
(Q1263564,P22,c(Q502895))
action filter_type
action find
entity Q1263564
relation P22
type Q502895
[ANSWER] was the father of that one
['Q1263564', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q1263564 property:P22 ?u . ?u rdf:type ontology:Q502895 }
Duke Wen of Zheng
Duke Wen of Zheng was the father of that one
Duke Wen of Zheng
action filter_type
action find
entity Duke Mu of Zheng
relation father
type common name
['Duke Mu of Zheng', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Duke_Mu_of_Zheng property:father ?u . ?u rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1272669 Q1129292
P22
Q502895
USER
Was Duke Li of Zheng the father of that one ?
(Q1272669,P22,Q1129292)
action is_in
entity Q1129292
action find
entity Q1272669
relation P22
['Q1272669', 'P22', 'Q1129292']
ASK WHERE { resource:Q1272669 property:P22 resource:Q1129292 }
Duke Wen of Zheng Duke Li of Zheng
action is_in
entity Duke Li of Zheng
action find
entity Duke Wen of Zheng
relation father
['Duke Wen of Zheng', 'father', 'Duke Li of Zheng']
ASK WHERE { resource:Duke_Wen_of_Zheng property:father resource:Duke_Li_of_Zheng }
[]
common name
SYSTEM
YES
(Q1272669,P22,Q1129292)
action is_in
entity Q1129292
action find
entity Q1272669
relation P22
[ANSWER]
['Q1272669', 'P22', 'Q1129292']
ASK WHERE { resource:Q1272669 property:P22 resource:Q1129292 }
Yes
action is_in
entity Duke Li of Zheng
action find
entity Duke Wen of Zheng
relation father
['Duke Wen of Zheng', 'father', 'Duke Li of Zheng']
ASK WHERE { resource:Duke_Wen_of_Zheng property:father resource:Duke_Li_of_Zheng }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1263564 Q12027017
P40
Q502895
USER
Is Jozef Košnár a child of Duke Mu of Zheng ?
(Q1263564,P40,Q12027017)
action is_in
entity Q12027017
action find
entity Q1263564
relation P40
['Q1263564', 'P40', 'Q12027017']
ASK WHERE { resource:Q1263564 property:P40 resource:Q12027017 }
Duke Mu of Zheng Jozef Košnár
action is_in
entity Jozef Košnár
action find
entity Duke Mu of Zheng
relation child
['Duke Mu of Zheng', 'child', 'Jozef Košnár']
ASK WHERE { resource:Duke_Mu_of_Zheng property:child resource:Jozef_Košnár }
[]
common name
SYSTEM
NO
(Q1263564,P40,Q12027017)
action is_in
entity Q12027017
action find
entity Q1263564
relation P40
[ANSWER]
['Q1263564', 'P40', 'Q12027017']
ASK WHERE { resource:Q1263564 property:P40 resource:Q12027017 }
No
action is_in
entity Jozef Košnár
action find
entity Duke Mu of Zheng
relation child
['Duke Mu of Zheng', 'child', 'Jozef Košnár']
ASK WHERE { resource:Duke_Mu_of_Zheng property:child resource:Jozef_Košnár }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2494789 Q6835187
P40
Q502895
USER
Which people have Xia Ji or Henriette Albertine, Princess of Nassau-Dietz as a child ?
OR((c(Q502895),P40,Q6835187), (c(Q502895),P40,Q2494789))
action filter_type
action union
action find_reverse
entity Q6835187
relation P40
action find_reverse
entity Q2494789
relation P40
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P40', 'Q6835187'], [{'concept': 'Q502895'}, 'P40', 'Q2494789']]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?b ) { ( resource:Q6835187 ) ( resource:Q2494789 ) } . ?r property:P40 ?b } . ?r rdf:type ontology:Q502895 }
Henriette Albertine, Princess of Nassau-Dietz Xia Ji
action filter_type
action union
action find_reverse
entity Xia Ji
relation child
action find_reverse
entity Henriette Albertine, Princess of Nassau-Dietz
relation child
type common name
{'OR': [[{'concept': 'common name'}, 'child', 'Xia Ji'], [{'concept': 'common name'}, 'child', 'Henriette Albertine, Princess of Nassau-Dietz']]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?b ) { ( resource:Xia_Ji ) ( resource:Henriette_Albertine,_Princess_of_Nassau-Dietz ) } . ?r property:child ?b } . ?r rdf:type ontology:common_name }
[]
common name
Q271927 Q702732 Q1263564
SYSTEM
Princess Henriëtte Amalia of Anhalt-Dessau, Henry Casimir II, Prince of Nassau-Dietz, Duke Mu of Zheng
Q271927 Q702732 Q1263564
OR((c(Q502895),P40,Q6835187), (c(Q502895),P40,Q2494789))
action filter_type
action union
action find_reverse
entity Q6835187
relation P40
action find_reverse
entity Q2494789
relation P40
type Q502895
[ANSWERS] have Xia Ji or Henriette Albertine, Princess of Nassau-Dietz as a child
{'OR': [[{'concept': 'Q502895'}, 'P40', 'Q6835187'], [{'concept': 'Q502895'}, 'P40', 'Q2494789']]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?b ) { ( resource:Q6835187 ) ( resource:Q2494789 ) } . ?r property:P40 ?b } . ?r rdf:type ontology:Q502895 }
Princess Henriëtte Amalia of Anhalt-Dessau Henry Casimir II, Prince of Nassau-Dietz Duke Mu of Zheng
Princess Henriëtte Amalia of Anhalt-Dessau, Henry Casimir II, Prince of Nassau-Dietz and Duke Mu of Zheng have Xia Ji or Henriette Albertine, Princess of Nassau-Dietz as a child
Princess Henriëtte Amalia of Anhalt-Dessau Henry Casimir II, Prince of Nassau-Dietz Duke Mu of Zheng
action filter_type
action union
action find_reverse
entity Xia Ji
relation child
action find_reverse
entity Henriette Albertine, Princess of Nassau-Dietz
relation child
type common name
{'OR': [[{'concept': 'common name'}, 'child', 'Xia Ji'], [{'concept': 'common name'}, 'child', 'Henriette Albertine, Princess of Nassau-Dietz']]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?b ) { ( resource:Xia_Ji ) ( resource:Henriette_Albertine,_Princess_of_Nassau-Dietz ) } . ?r property:child ?b } . ?r rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q271927
P53
Q13417114
USER
Which noble family did Princess Henriëtte Amalia of Anhalt-Dessau belong to ?
(Q271927,P53,c(Q13417114))
action filter_type
action find
entity Q271927
relation P53
type Q13417114
['Q271927', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?g WHERE { resource:Q271927 property:P53 ?g . ?g rdf:type ontology:Q13417114 }
Princess Henriëtte Amalia of Anhalt-Dessau
action filter_type
action find
entity Princess Henriëtte Amalia of Anhalt-Dessau
relation noble family
type noble family
['Princess Henriëtte Amalia of Anhalt-Dessau', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?g WHERE { resource:Princess_Henriëtte_Amalia_of_Anhalt-Dessau property:noble_family ?g . ?g rdf:type ontology:noble_family }
[]
noble family
Q168352
SYSTEM
House of Ascania
Q168352
(Q271927,P53,c(Q13417114))
action filter_type
action find
entity Q271927
relation P53
type Q13417114
[ANSWER] Princess Henriëtte Amalia of Anhalt-Dessau belonged to
['Q271927', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?g WHERE { resource:Q271927 property:P53 ?g . ?g rdf:type ontology:Q13417114 }
House of Ascania
House of Ascania Princess Henriëtte Amalia of Anhalt-Dessau belonged to
House of Ascania
action filter_type
action find
entity Princess Henriëtte Amalia of Anhalt-Dessau
relation noble family
type noble family
['Princess Henriëtte Amalia of Anhalt-Dessau', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?g WHERE { resource:Princess_Henriëtte_Amalia_of_Anhalt-Dessau property:noble_family ?g . ?g rdf:type ontology:noble_family }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q314331
Q13417114
USER
And how about Charles II of Naples?
(Q314331,P53,c(Q13417114))
action filter_type
action find
entity Q314331
relation P53
type Q13417114
['Q314331', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?k WHERE { resource:Q314331 property:P53 ?k . ?k rdf:type ontology:Q13417114 }
Charles II of Naples
action filter_type
action find
entity Charles II of Naples
relation noble family
type noble family
['Charles II of Naples', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?k WHERE { resource:Charles_II_of_Naples property:noble_family ?k . ?k rdf:type ontology:noble_family }
[]
noble family
Q939200
SYSTEM
Capetian House of Anjou
Q939200
(Q314331,P53,c(Q13417114))
action filter_type
action find
entity Q314331
relation P53
type Q13417114
[ANSWER]
['Q314331', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?k WHERE { resource:Q314331 property:P53 ?k . ?k rdf:type ontology:Q13417114 }
Capetian House of Anjou
Capetian House of Anjou
action filter_type
action find
entity Charles II of Naples
relation noble family
type noble family
['Charles II of Naples', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?k WHERE { resource:Charles_II_of_Naples property:noble_family ?k . ?k rdf:type ontology:noble_family }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q939200 Q17351897 Q1462992
P112
Q502895
USER
Was that noble family started by Meliaduse II d'Este and Friedrich Wilhelm Heidenreich ?
(Q939200,P112,Q17351897) (Q939200,P112,Q1462992)
action is_in
entity Q939200
action intersection
action find_reverse
entity Q17351897
relation P112
action find_reverse
entity Q1462992
relation P112
['Q939200', 'P112', 'Q17351897'] ['Q939200', 'P112', 'Q1462992']
ASK WHERE { resource:Q939200 property:P112 resource:Q17351897 . resource:Q939200 property:P112 resource:Q1462992 }
Capetian House of Anjou Meliaduse II d'Este Friedrich Wilhelm Heidenreich
action is_in
entity Capetian House of Anjou
action intersection
action find_reverse
entity Meliaduse II d'Este
relation founder
action find_reverse
entity Friedrich Wilhelm Heidenreich
relation founder
['Capetian House of Anjou', 'founder', "Meliaduse II d'Este"] ['Capetian House of Anjou', 'founder', 'Friedrich Wilhelm Heidenreich']
ASK WHERE { resource:Capetian_House_of_Anjou property:founder resource:Meliaduse_II_d'Este . resource:Capetian_House_of_Anjou property:founder resource:Friedrich_Wilhelm_Heidenreich }
[]
common name
SYSTEM
NO
(Q939200,P112,Q17351897) (Q939200,P112,Q1462992)
action is_in
entity Q939200
action intersection
action find_reverse
entity Q17351897
relation P112
action find_reverse
entity Q1462992
relation P112
[ANSWER]
['Q939200', 'P112', 'Q17351897'] ['Q939200', 'P112', 'Q1462992']
ASK WHERE { resource:Q939200 property:P112 resource:Q17351897 . resource:Q939200 property:P112 resource:Q1462992 }
No
action is_in
entity Capetian House of Anjou
action intersection
action find_reverse
entity Meliaduse II d'Este
relation founder
action find_reverse
entity Friedrich Wilhelm Heidenreich
relation founder
['Capetian House of Anjou', 'founder', "Meliaduse II d'Este"] ['Capetian House of Anjou', 'founder', 'Friedrich Wilhelm Heidenreich']
ASK WHERE { resource:Capetian_House_of_Anjou property:founder resource:Meliaduse_II_d'Este . resource:Capetian_House_of_Anjou property:founder resource:Friedrich_Wilhelm_Heidenreich }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q312681 Q1272669
P22
Q502895
USER
Which people were the dad of Duke Wen of Zheng or Victor Amadeus III of Sardinia ?
OR((Q1272669,P22,c(Q502895)), (Q312681,P22,c(Q502895)))
action filter_type
action union
action find
entity Q1272669
relation P22
action find
entity Q312681
relation P22
type Q502895
{'OR': [['Q1272669', 'P22', {'concept': 'Q502895'}], ['Q312681', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q312681 property:P22 ?c } UNION { resource:Q1272669 property:P22 ?c } } . ?c rdf:type ontology:Q502895 }
Victor Amadeus III of Sardinia Duke Wen of Zheng
action filter_type
action union
action find
entity Duke Wen of Zheng
relation father
action find
entity Victor Amadeus III of Sardinia
relation father
type common name
{'OR': [['Duke Wen of Zheng', 'father', {'concept': 'common name'}], ['Victor Amadeus III of Sardinia', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Victor_Amadeus_III_of_Sardinia property:father ?c } UNION { resource:Duke_Wen_of_Zheng property:father ?c } } . ?c rdf:type ontology:common_name }
[]
common name
Q1129292 Q312670
SYSTEM
Duke Li of Zheng, Charles Emmanuel III of Sardinia
Q1129292 Q312670
OR((Q1272669,P22,c(Q502895)), (Q312681,P22,c(Q502895)))
action filter_type
action union
action find
entity Q1272669
relation P22
action find
entity Q312681
relation P22
type Q502895
[ANSWERS] were the dad of Duke Wen of Zheng or Victor Amadeus III of Sardinia
{'OR': [['Q1272669', 'P22', {'concept': 'Q502895'}], ['Q312681', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q312681 property:P22 ?c } UNION { resource:Q1272669 property:P22 ?c } } . ?c rdf:type ontology:Q502895 }
Duke Li of Zheng Charles Emmanuel III of Sardinia
Duke Li of Zheng and Charles Emmanuel III of Sardinia were the dad of Duke Wen of Zheng or Victor Amadeus III of Sardinia
Duke Li of Zheng Charles Emmanuel III of Sardinia
action filter_type
action union
action find
entity Duke Wen of Zheng
relation father
action find
entity Victor Amadeus III of Sardinia
relation father
type common name
{'OR': [['Duke Wen of Zheng', 'father', {'concept': 'common name'}], ['Victor Amadeus III of Sardinia', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Victor_Amadeus_III_of_Sardinia property:father ?c } UNION { resource:Duke_Wen_of_Zheng property:father ?c } } . ?c rdf:type ontology:common_name }
[]