Simple Question (Direct)
Simple Question
Q86997
P22
Q502895
USER
Which male person was the parent of Beatrice of Savoy ?
(Q86997,P22,c(Q502895))
action filter_type
action find
entity Q86997
relation P22
type Q502895
['Q86997', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q86997 property:P22 ?v . ?v rdf:type ontology:Q502895 }
Beatrice of Savoy
action filter_type
action find
entity Beatrice of Savoy
relation father
type common name
['Beatrice of Savoy', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Beatrice_of_Savoy property:father ?v . ?v rdf:type ontology:common_name }
[]
common name
Q451989
SYSTEM
Amadeus V, Count of Savoy
Q451989
(Q86997,P22,c(Q502895))
action filter_type
action find
entity Q86997
relation P22
type Q502895
[ANSWER] was the parent of Beatrice of Savoy
['Q86997', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q86997 property:P22 ?v . ?v rdf:type ontology:Q502895 }
Amadeus V, Count of Savoy
Amadeus V, Count of Savoy was the parent of Beatrice of Savoy
Amadeus V, Count of Savoy
action filter_type
action find
entity Beatrice of Savoy
relation father
type common name
['Beatrice of Savoy', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Beatrice_of_Savoy property:father ?v . ?v rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q451989
P25
Q502895
USER
Who was the mother of that one ?
(Q451989,P25,c(Q502895))
action filter_type
action find
entity Q451989
relation P25
type Q502895
['Q451989', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q451989 property:P25 ?m . ?m rdf:type ontology:Q502895 }
Amadeus V, Count of Savoy
action filter_type
action find
entity Amadeus V, Count of Savoy
relation mother
type common name
['Amadeus V, Count of Savoy', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Amadeus_V,_Count_of_Savoy property:mother ?m . ?m rdf:type ontology:common_name }
[]
common name
Q2929437
SYSTEM
Beatrice Fieschi
Q2929437
(Q451989,P25,c(Q502895))
action filter_type
action find
entity Q451989
relation P25
type Q502895
The mother of that one was the [ANSWER]
['Q451989', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q451989 property:P25 ?m . ?m rdf:type ontology:Q502895 }
Beatrice Fieschi
The mother of that one was the Beatrice Fieschi
Beatrice Fieschi
action filter_type
action find
entity Amadeus V, Count of Savoy
relation mother
type common name
['Amadeus V, Count of Savoy', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Amadeus_V,_Count_of_Savoy property:mother ?m . ?m rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q451989
P21 P22
Q502895
USER
Which people have Amadeus V, Count of Savoy as a father and are a male ?
AND((c(Q502895),P22,Q451989), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q451989
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q451989'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P22 resource:Q451989 . ?h property:P21 resource:Q6581097 }
male Amadeus V, Count of Savoy
action filter_type
action intersection
action find_reverse
entity Amadeus V, Count of Savoy
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Amadeus V, Count of Savoy'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:father resource:Amadeus_V,_Count_of_Savoy . ?h property:gender resource:male }
[]
common name
Q739378 Q547610
SYSTEM
Edward, Count of Savoy, Aymon, Count of Savoy
Q739378 Q547610
AND((c(Q502895),P22,Q451989), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q451989
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q451989'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P22 resource:Q451989 . ?h property:P21 resource:Q6581097 }
Edward, Count of Savoy Aymon, Count of Savoy
Edward, Count of Savoy and Aymon, Count of Savoy have Amadeus V, Count of Savoy as a father and are a male
Edward, Count of Savoy Aymon, Count of Savoy
action filter_type
action intersection
action find_reverse
entity Amadeus V, Count of Savoy
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Amadeus V, Count of Savoy'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:father resource:Amadeus_V,_Count_of_Savoy . ?h property:gender resource:male }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5993925
P7
Q502895
USER
Are those ones a brother of Manuel Ojinaga ?
(Q5993925,P7,Q739378) (Q5993925,P7,Q547610)
action is_in
entity prev_answer
action find
entity Q5993925
relation P7
['Q5993925', 'P7', 'Q739378'] ['Q5993925', 'P7', 'Q547610']
ASK WHERE { resource:Q5993925 property:P7 ?o . VALUES ( ?o ) { ( resource:Q739378 ) ( resource:Q547610 ) } }
Manuel Ojinaga
action is_in
entity prev_answer
action find
entity Manuel Ojinaga
relation brother
['Manuel Ojinaga', 'brother', 'Edward, Count of Savoy'] ['Manuel Ojinaga', 'brother', 'Aymon, Count of Savoy']
ASK WHERE { resource:Manuel_Ojinaga property:brother ?o . VALUES ( ?o ) { ( resource:Edward,_Count_of_Savoy ) ( resource:Aymon,_Count_of_Savoy ) } }
[]
common name
SYSTEM
NO
(Q5993925,P7,Q739378) (Q5993925,P7,Q547610)
action is_in
entity prev_answer
action find
entity Q5993925
relation P7
[ANSWER]
['Q5993925', 'P7', 'Q739378'] ['Q5993925', 'P7', 'Q547610']
ASK WHERE { resource:Q5993925 property:P7 ?o . VALUES ( ?o ) { ( resource:Q739378 ) ( resource:Q547610 ) } }
No
action is_in
entity prev_answer
action find
entity Manuel Ojinaga
relation brother
['Manuel Ojinaga', 'brother', 'Edward, Count of Savoy'] ['Manuel Ojinaga', 'brother', 'Aymon, Count of Savoy']
ASK WHERE { resource:Manuel_Ojinaga property:brother ?o . VALUES ( ?o ) { ( resource:Edward,_Count_of_Savoy ) ( resource:Aymon,_Count_of_Savoy ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q739378
P26
Q502895
USER
Which person is the life partner of Edward, Count of Savoy ?
(c(Q502895),P26,Q739378)
action filter_type
action find
entity Q739378
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q739378']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q739378 property:P26 ?m }
Edward, Count of Savoy
action filter_type
action find
entity Edward, Count of Savoy
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Edward, Count of Savoy']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:Edward,_Count_of_Savoy property:spouse ?m }
[]
common name
Q552160
SYSTEM
Bianca of Burgundy
Q552160
(c(Q502895),P26,Q739378)
action filter_type
action find
entity Q739378
relation P26
type Q502895
[ANSWER] is the life partner of Edward, Count of Savoy
[{'concept': 'Q502895'}, 'P26', 'Q739378']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q739378 property:P26 ?m }
Bianca of Burgundy
Bianca of Burgundy is the life partner of Edward, Count of Savoy
Bianca of Burgundy
action filter_type
action find
entity Edward, Count of Savoy
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Edward, Count of Savoy']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:Edward,_Count_of_Savoy property:spouse ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q552160
P9
Q502895
USER
Who had that one as their sibling ?
(c(Q502895),P9,Q552160)
action filter_type
action find_reverse
entity Q552160
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q552160']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P9 resource:Q552160 }
Bianca of Burgundy
action filter_type
action find_reverse
entity Bianca of Burgundy
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Bianca of Burgundy']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:sister resource:Bianca_of_Burgundy }
[]
common name
Q231742 Q70590 Q707654
SYSTEM
Joan the Lame, Margaret of Burgundy, Queen of France, Hugh V, Duke of Burgundy
Q717968 Q70590 Q707654 Q707899 Q231742
(c(Q502895),P9,Q552160)
action filter_type
action find_reverse
entity Q552160
relation P9
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P9', 'Q552160']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P9 resource:Q552160 }
Louis of Burgundy Margaret of Burgundy, Queen of France Hugh V, Duke of Burgundy Odo IV, Duke of Burgundy Joan the Lame
Joan the Lame, Margaret of Burgundy, Queen of France and Hugh V, Duke of Burgundy had that one as their sibling
Joan the Lame Margaret of Burgundy, Queen of France Hugh V, Duke of Burgundy
action filter_type
action find_reverse
entity Bianca of Burgundy
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Bianca of Burgundy']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:sister resource:Bianca_of_Burgundy }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q552160 Q487095
P26
Q502895
USER
How many people are the spouses of Bianca of Burgundy or Liu Yongqing ?
(Q552160,P26,c(Q502895)) (Q487095,P26,c(Q502895))
action count
action union
action filter_type
action find
entity Q552160
relation P26
type Q502895
action filter_type
action find
entity Q487095
relation P26
type Q502895
['Q552160', 'P26', {'concept': 'Q502895'}] ['Q487095', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { resource:Q487095 property:P26 ?o . ?o rdf:type ontology:Q502895 } UNION { resource:Q552160 property:P26 ?o . ?o rdf:type ontology:Q502895 } }
Bianca of Burgundy Liu Yongqing
action count
action union
action filter_type
action find
entity Bianca of Burgundy
relation spouse
type common name
action filter_type
action find
entity Liu Yongqing
relation spouse
type common name
['Bianca of Burgundy', 'spouse', {'concept': 'common name'}] ['Liu Yongqing', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { resource:Liu_Yongqing property:spouse ?o . ?o rdf:type ontology:common_name } UNION { resource:Bianca_of_Burgundy property:spouse ?o . ?o rdf:type ontology:common_name } }
[]
common name
SYSTEM
2
Q739378 Q15029
(Q552160,P26,c(Q502895)) (Q487095,P26,c(Q502895))
action count
action union
action filter_type
action find
entity Q552160
relation P26
type Q502895
action filter_type
action find
entity Q487095
relation P26
type Q502895
[ANSWER]
['Q552160', 'P26', {'concept': 'Q502895'}] ['Q487095', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { resource:Q487095 property:P26 ?o . ?o rdf:type ontology:Q502895 } UNION { resource:Q552160 property:P26 ?o . ?o rdf:type ontology:Q502895 } }
Edward, Count of Savoy Hu Jintao
2
action count
action union
action filter_type
action find
entity Bianca of Burgundy
relation spouse
type common name
action filter_type
action find
entity Liu Yongqing
relation spouse
type common name
['Bianca of Burgundy', 'spouse', {'concept': 'common name'}] ['Liu Yongqing', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { resource:Liu_Yongqing property:spouse ?o . ?o rdf:type ontology:common_name } UNION { resource:Bianca_of_Burgundy property:spouse ?o . ?o rdf:type ontology:common_name } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17505186 Q70590
P19
Q56061
USER
Which administrative territories were Margaret of Burgundy, Queen of France or Jerzy Ciszewski born in ?
OR((Q70590,P19,c(Q56061)), (Q17505186,P19,c(Q56061)))
action filter_type
action union
action find
entity Q70590
relation P19
action find
entity Q17505186
relation P19
type Q56061
{'OR': [['Q70590', 'P19', {'concept': 'Q56061'}], ['Q17505186', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { ?x property:P19 ?p . VALUES ( ?x ) { ( resource:Q70590 ) ( resource:Q17505186 ) } } . ?p rdf:type ontology:Q56061 }
Jerzy Ciszewski Margaret of Burgundy, Queen of France
action filter_type
action union
action find
entity Margaret of Burgundy, Queen of France
relation place of birth
action find
entity Jerzy Ciszewski
relation place of birth
type administrative territorial entity
{'OR': [['Margaret of Burgundy, Queen of France', 'place of birth', {'concept': 'administrative territorial entity'}], ['Jerzy Ciszewski', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { ?x property:place_of_birth ?p . VALUES ( ?x ) { ( resource:Margaret_of_Burgundy,_Queen_of_France ) ( resource:Jerzy_Ciszewski ) } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q270 Q90
SYSTEM
Warsaw, Paris
Q270 Q90
OR((Q70590,P19,c(Q56061)), (Q17505186,P19,c(Q56061)))
action filter_type
action union
action find
entity Q70590
relation P19
action find
entity Q17505186
relation P19
type Q56061
[ANSWERS] were Margaret of Burgundy, Queen of France or Jerzy Ciszewski born in
{'OR': [['Q70590', 'P19', {'concept': 'Q56061'}], ['Q17505186', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { ?x property:P19 ?p . VALUES ( ?x ) { ( resource:Q70590 ) ( resource:Q17505186 ) } } . ?p rdf:type ontology:Q56061 }
Warsaw Paris
Warsaw and Paris were Margaret of Burgundy, Queen of France or Jerzy Ciszewski born in
Warsaw Paris
action filter_type
action union
action find
entity Margaret of Burgundy, Queen of France
relation place of birth
action find
entity Jerzy Ciszewski
relation place of birth
type administrative territorial entity
{'OR': [['Margaret of Burgundy, Queen of France', 'place of birth', {'concept': 'administrative territorial entity'}], ['Jerzy Ciszewski', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { ?x property:place_of_birth ?p . VALUES ( ?x ) { ( resource:Margaret_of_Burgundy,_Queen_of_France ) ( resource:Jerzy_Ciszewski ) } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q270
P6
Q502895
USER
Which people do that administrative territory serve as the head of government for ?
(Q270,P6,c(Q502895))
action filter_type
action find
entity Q270
relation P6
type Q502895
['Q270', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q270 property:P6 ?r }
Warsaw
action filter_type
action find
entity Warsaw
relation head of government
type common name
['Warsaw', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Warsaw property:head_of_government ?r }
[]
common name
Clarification for simple ques.
Q90
SYSTEM
Did you mean Paris ?
Q270 Q90
(Q270,P6,c(Q502895)) (Q90,P6,c(Q502895))
[ANSWER]
['Q270', 'P6', {'concept': 'Q502895'}] ['Q90', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q270 property:P6 ?r }
Warsaw Paris
Did you mean Paris ?
Paris
['Warsaw', 'head of government', {'concept': 'common name'}] ['Paris', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Warsaw property:head_of_government ?r }
[]
Simple Question (Coreferenced)
USER
No, I meant Warsaw. Could you tell me the answer for that?
(Q270,P6,c(Q502895))
Q270
['Q270', 'P6', {'concept': 'Q502895'}]
['Warsaw', 'head of government', {'concept': 'common name'}]
[]
Q2757 Q271902 Q6271017
SYSTEM
Lech Kaczyński, Hanna Gronkiewicz-Waltz, Paweł Piskorski
Q2757 Q271902 Q9376610 Q3511455 Q55920 Q6271017 Q11767901
(Q270,P6,c(Q502895))
action filter_type
action find
entity Q270
relation P6
type Q502895
[ANSWERS] that administrative territory serve as the head of government for
['Q270', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q270 property:P6 ?r }
Lech Kaczyński Hanna Gronkiewicz-Waltz Wojciech Kozak Mirosław Kochalski Kazimierz Marcinkiewicz Paweł Piskorski Marcin Święcicki
Lech Kaczyński, Hanna Gronkiewicz-Waltz and Paweł Piskorski that administrative territory serve as the head of government for
Lech Kaczyński Hanna Gronkiewicz-Waltz Paweł Piskorski
action filter_type
action find
entity Warsaw
relation head of government
type common name
['Warsaw', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Warsaw property:head_of_government ?r }
[]