Simple Question (Direct)
Simple Question
Q441872
P7
Q502895
USER
Who are Margaret, Marchioness of Namur a sibling of ?
(Q441872,P7,c(Q502895))
action filter_type
action find
entity Q441872
relation P7
type Q502895
['Q441872', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q441872 property:P7 ?k }
Margaret, Marchioness of Namur
action filter_type
action find
entity Margaret, Marchioness of Namur
relation brother
type common name
['Margaret, Marchioness of Namur', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Margaret,_Marchioness_of_Namur property:brother ?k }
[]
common name
Q269573 Q365620 Q1385797
SYSTEM
Baldwin II of Constantinople, Robert of Courtenay, Philip II, Marquis of Namur
Q269573 Q1385797 Q1385783 Q365620
(Q441872,P7,c(Q502895))
action filter_type
action find
entity Q441872
relation P7
type Q502895
[ANSWERS]
['Q441872', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q441872 property:P7 ?k }
Baldwin II of Constantinople Philip II, Marquis of Namur Henry II of Namur Robert of Courtenay
Baldwin II of Constantinople, Robert of Courtenay and Philip II, Marquis of Namur are Margaret, Marchioness of Namur a sibling of
Baldwin II of Constantinople Robert of Courtenay Philip II, Marquis of Namur
action filter_type
action find
entity Margaret, Marchioness of Namur
relation brother
type common name
['Margaret, Marchioness of Namur', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Margaret,_Marchioness_of_Namur property:brother ?k }
[]
Clarification
Simple Question|Single Entity|Indirect
Q269573
P22
Q502895
USER
Which person has that one as dad ?
(c(Q502895),P22,Q269573)
action filter_type
action find_reverse
entity Q269573
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q269573']
SELECT DISTINCT ?h WHERE { ?h property:P22 resource:Q269573 . ?h rdf:type ontology:Q502895 }
Baldwin II of Constantinople
action filter_type
action find_reverse
entity Baldwin II of Constantinople
relation father
type common name
[{'concept': 'common name'}, 'father', 'Baldwin II of Constantinople']
SELECT DISTINCT ?h WHERE { ?h property:father resource:Baldwin_II_of_Constantinople . ?h rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q269573
SYSTEM
Did you mean Baldwin II of Constantinople ?
Q269573 Q365620 Q1385797
(c(Q502895),P22,Q269573) (c(Q502895),P22,Q365620) (c(Q502895),P22,Q1385797)
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q269573'] [{'concept': 'Q502895'}, 'P22', 'Q365620'] [{'concept': 'Q502895'}, 'P22', 'Q1385797']
SELECT DISTINCT ?h WHERE { ?h property:P22 resource:Q269573 . ?h rdf:type ontology:Q502895 }
Baldwin II of Constantinople Robert of Courtenay Philip II, Marquis of Namur
Did you mean Baldwin II of Constantinople ?
Baldwin II of Constantinople
[{'concept': 'common name'}, 'father', 'Baldwin II of Constantinople'] [{'concept': 'common name'}, 'father', 'Robert of Courtenay'] [{'concept': 'common name'}, 'father', 'Philip II, Marquis of Namur']
SELECT DISTINCT ?h WHERE { ?h property:father resource:Baldwin_II_of_Constantinople . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P22,Q269573)
[{'concept': 'Q502895'}, 'P22', 'Q269573']
[{'concept': 'common name'}, 'father', 'Baldwin II of Constantinople']
[]
Q888405
SYSTEM
Philip of Courtenay
Q888405
(c(Q502895),P22,Q269573)
action filter_type
action find_reverse
entity Q269573
relation P22
type Q502895
[ANSWER] has that one as dad
[{'concept': 'Q502895'}, 'P22', 'Q269573']
SELECT DISTINCT ?h WHERE { ?h property:P22 resource:Q269573 . ?h rdf:type ontology:Q502895 }
Philip of Courtenay
Philip of Courtenay has that one as dad
Philip of Courtenay
action filter_type
action find_reverse
entity Baldwin II of Constantinople
relation father
type common name
[{'concept': 'common name'}, 'father', 'Baldwin II of Constantinople']
SELECT DISTINCT ?h WHERE { ?h property:father resource:Baldwin_II_of_Constantinople . ?h rdf:type ontology:common_name }
[]