Simple Question (Direct)
Simple Question
Q62033
P22
Q502895
USER
Who was the dad of Gisela of Swabia ?
(Q62033,P22,c(Q502895))
action filter_type
action find
entity Q62033
relation P22
type Q502895
['Q62033', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q62033 property:P22 ?x . ?x rdf:type ontology:Q502895 }
Gisela of Swabia
action filter_type
action find
entity Gisela of Swabia
relation father
type common name
['Gisela of Swabia', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Gisela_of_Swabia property:father ?x . ?x rdf:type ontology:common_name }
[]
common name
Q715062
SYSTEM
Herman II, Duke of Swabia
Q715062
(Q62033,P22,c(Q502895))
action filter_type
action find
entity Q62033
relation P22
type Q502895
The dad of Gisela of Swabia was Duke [ANSWER]
['Q62033', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q62033 property:P22 ?x . ?x rdf:type ontology:Q502895 }
Herman II, Duke of Swabia
The dad of Gisela of Swabia was Duke Herman II, Duke of Swabia
Herman II, Duke of Swabia
action filter_type
action find
entity Gisela of Swabia
relation father
type common name
['Gisela of Swabia', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Gisela_of_Swabia property:father ?x . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q715062
P40
Q502895
USER
Who are the children of that one ?
(Q715062,P40,c(Q502895))
action filter_type
action find
entity Q715062
relation P40
type Q502895
['Q715062', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q715062 property:P40 ?b . ?b rdf:type ontology:Q502895 }
Herman II, Duke of Swabia
action filter_type
action find
entity Herman II, Duke of Swabia
relation child
type common name
['Herman II, Duke of Swabia', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Herman_II,_Duke_of_Swabia property:child ?b . ?b rdf:type ontology:common_name }
[]
common name
Q470283 Q77573 Q62033
SYSTEM
Matilda of Swabia, Herman III, Duke of Swabia, Gisela of Swabia
Q470283 Q77573 Q62033
(Q715062,P40,c(Q502895))
action filter_type
action find
entity Q715062
relation P40
type Q502895
The children of that one are Princess [ANSWERS]
['Q715062', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q715062 property:P40 ?b . ?b rdf:type ontology:Q502895 }
Matilda of Swabia Herman III, Duke of Swabia Gisela of Swabia
The children of that one are Princess Matilda of Swabia, Herman III, Duke of Swabia and Gisela of Swabia
Matilda of Swabia Herman III, Duke of Swabia Gisela of Swabia
action filter_type
action find
entity Herman II, Duke of Swabia
relation child
type common name
['Herman II, Duke of Swabia', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Herman_II,_Duke_of_Swabia property:child ?b . ?b rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q62033
P9
Q502895
USER
Which people have that one as their sibling ?
(c(Q502895),P9,Q62033)
action filter_type
action find_reverse
entity Q62033
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q62033']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P9 resource:Q62033 }
Gisela of Swabia
action filter_type
action find_reverse
entity Gisela of Swabia
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Gisela of Swabia']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:sister resource:Gisela_of_Swabia }
[]
common name
Clarification for simple ques.
Q470283
SYSTEM
Did you mean Matilda of Swabia ?
Q470283 Q77573 Q62033
(c(Q502895),P9,Q470283) (c(Q502895),P9,Q77573) (c(Q502895),P9,Q62033)
[ANSWER]
[{'concept': 'Q502895'}, 'P9', 'Q470283'] [{'concept': 'Q502895'}, 'P9', 'Q77573'] [{'concept': 'Q502895'}, 'P9', 'Q62033']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P9 resource:Q62033 }
Matilda of Swabia Herman III, Duke of Swabia Gisela of Swabia
Did you mean Matilda of Swabia ?
Matilda of Swabia
[{'concept': 'common name'}, 'sister', 'Matilda of Swabia'] [{'concept': 'common name'}, 'sister', 'Herman III, Duke of Swabia'] [{'concept': 'common name'}, 'sister', 'Gisela of Swabia']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:sister resource:Gisela_of_Swabia }
[]
Simple Question (Coreferenced)
USER
No, I meant Gisela of Swabia. Could you tell me the answer for that?
(c(Q502895),P9,Q62033)
Q62033
[{'concept': 'Q502895'}, 'P9', 'Q62033']
[{'concept': 'common name'}, 'sister', 'Gisela of Swabia']
[]
Q470283 Q77573
SYSTEM
Matilda of Swabia, Herman III, Duke of Swabia
Q77573 Q470283
(c(Q502895),P9,Q62033)
action filter_type
action find_reverse
entity Q62033
relation P9
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P9', 'Q62033']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P9 resource:Q62033 }
Herman III, Duke of Swabia Matilda of Swabia
Matilda of Swabia and Herman III, Duke of Swabia have that one as their sibling
Matilda of Swabia Herman III, Duke of Swabia
action filter_type
action find_reverse
entity Gisela of Swabia
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Gisela of Swabia']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:sister resource:Gisela_of_Swabia }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P25
Q502895
USER
How many people are the offspring of that person ?
(c(Q502895),P25,Q470283)
[{'concept': 'Q502895'}, 'P25', 'Q470283']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q7560 resource:Q470283 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'mother', 'Matilda of Swabia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:mother resource:Matilda_of_Swabia . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q77573
SYSTEM
Did you mean Herman III, Duke of Swabia ?
(c(Q502895),P25,Q470283) (c(Q502895),P25,Q77573)
[ANSWER]
[{'concept': 'Q502895'}, 'P25', 'Q470283'] [{'concept': 'Q502895'}, 'P25', 'Q77573']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q7560 resource:Q470283 . ?z rdf:type ontology:Q502895 }
Did you mean Herman III, Duke of Swabia ?
Herman III, Duke of Swabia
[{'concept': 'common name'}, 'mother', 'Matilda of Swabia'] [{'concept': 'common name'}, 'mother', 'Herman III, Duke of Swabia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:mother resource:Matilda_of_Swabia . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Matilda of Swabia. Could you tell me the answer for that?
(c(Q502895),P25,Q470283)
Q470283
[{'concept': 'Q502895'}, 'P25', 'Q470283']
[{'concept': 'common name'}, 'mother', 'Matilda of Swabia']
[]
SYSTEM
4
Q291762 Q693903 Q266635 Q685118
(c(Q502895),P25,Q470283)
[ANSWER]
[{'concept': 'Q502895'}, 'P25', 'Q470283']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q7560 resource:Q470283 . ?z rdf:type ontology:Q502895 }
Sophie, Countess of Bar Frederick III, Duke of Upper Lorraine Beatrice of Lorraine Conrad II, Duke of Carinthia
4
[{'concept': 'common name'}, 'mother', 'Matilda of Swabia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:mother resource:Matilda_of_Swabia . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q470283
P26
Q502895
USER
Which people are the life partner of Matilda of Swabia ?
(c(Q502895),P26,Q470283)
action filter_type
action find
entity Q470283
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q470283']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . resource:Q470283 property:P26 ?n }
Matilda of Swabia
action filter_type
action find
entity Matilda of Swabia
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Matilda of Swabia']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . resource:Matilda_of_Swabia property:spouse ?n }
[]
common name
Q700599 Q698264
SYSTEM
Frederick II, Duke of Upper Lorraine, Conrad I, Duke of Carinthia
Q700599 Q698264
(c(Q502895),P26,Q470283)
action filter_type
action find
entity Q470283
relation P26
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P26', 'Q470283']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . resource:Q470283 property:P26 ?n }
Frederick II, Duke of Upper Lorraine Conrad I, Duke of Carinthia
Frederick II, Duke of Upper Lorraine and Conrad I, Duke of Carinthia are the life partner of Matilda of Swabia
Frederick II, Duke of Upper Lorraine Conrad I, Duke of Carinthia
action filter_type
action find
entity Matilda of Swabia
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Matilda of Swabia']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . resource:Matilda_of_Swabia property:spouse ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q62033
P27
Q1048835
USER
Which political territory is Gisela of Swabia an inhabitant of ?
(Q62033,P27,c(Q1048835))
action filter_type
action find
entity Q62033
relation P27
type Q1048835
['Q62033', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { resource:Q62033 property:P27 ?d . ?d rdf:type ontology:Q1048835 }
Gisela of Swabia
action filter_type
action find
entity Gisela of Swabia
relation country of citizenship
type political territorial entity
['Gisela of Swabia', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Gisela_of_Swabia property:country_of_citizenship ?d . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q62033,P27,c(Q1048835))
action filter_type
action find
entity Q62033
relation P27
type Q1048835
[ANSWER] is Gisela of Swabia an inhabitant of
['Q62033', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { resource:Q62033 property:P27 ?d . ?d rdf:type ontology:Q1048835 }
Germany
Germany is Gisela of Swabia an inhabitant of
Germany
action filter_type
action find
entity Gisela of Swabia
relation country of citizenship
type political territorial entity
['Gisela of Swabia', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Gisela_of_Swabia property:country_of_citizenship ?d . ?d rdf:type ontology:political_territorial_entity }
[]