Simple Question (Direct)
Simple Question
Q2367197
P26
Q502895
USER
Which person is the spouse of Princess Marie of the Netherlands ?
(Q2367197,P26,c(Q502895))
action filter_type
action find
entity Q2367197
relation P26
type Q502895
['Q2367197', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q2367197 property:P26 ?e }
Princess Marie of the Netherlands
action filter_type
action find
entity Princess Marie of the Netherlands
relation spouse
type common name
['Princess Marie of the Netherlands', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:Princess_Marie_of_the_Netherlands property:spouse ?e }
[]
common name
Q66130
SYSTEM
William, Prince of Wied
Q66130
(Q2367197,P26,c(Q502895))
action filter_type
action find
entity Q2367197
relation P26
type Q502895
[ANSWER] is the spouse of Princess Marie of the Netherlands
['Q2367197', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q2367197 property:P26 ?e }
William, Prince of Wied
William, Prince of Wied is the spouse of Princess Marie of the Netherlands
William, Prince of Wied
action filter_type
action find
entity Princess Marie of the Netherlands
relation spouse
type common name
['Princess Marie of the Netherlands', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:Princess_Marie_of_the_Netherlands property:spouse ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q66130
P9
Q502895
USER
Who is that one a sibling of ?
(Q66130,P9,c(Q502895))
action filter_type
action find
entity Q66130
relation P9
type Q502895
['Q66130', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q66130 property:P9 ?w . ?w rdf:type ontology:Q502895 }
William, Prince of Wied
action filter_type
action find
entity William, Prince of Wied
relation sister
type common name
['William, Prince of Wied', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:William,_Prince_of_Wied property:sister ?w . ?w rdf:type ontology:common_name }
[]
common name
Q57629
SYSTEM
Elisabeth of Wied
Q57629
(Q66130,P9,c(Q502895))
action filter_type
action find
entity Q66130
relation P9
type Q502895
That one a sibling of is Princess [ANSWER]
['Q66130', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q66130 property:P9 ?w . ?w rdf:type ontology:Q502895 }
Elisabeth of Wied
That one a sibling of is Princess Elisabeth of Wied
Elisabeth of Wied
action filter_type
action find
entity William, Prince of Wied
relation sister
type common name
['William, Prince of Wied', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:William,_Prince_of_Wied property:sister ?w . ?w rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q23925370 Q2367197
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Princess Marie of the Netherlands or Dragoș Vlădulescu ?
OR((Q2367197,P27,c(Q15617994)), (Q23925370,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2367197
relation P27
action find
entity Q23925370
relation P27
type Q15617994
{'OR': [['Q2367197', 'P27', {'concept': 'Q15617994'}], ['Q23925370', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?x ) { ( resource:Q2367197 ) ( resource:Q23925370 ) } . ?x property:P27 ?q } . ?q rdf:type ontology:Q15617994 }
Dragoș Vlădulescu Princess Marie of the Netherlands
action filter_type
action union
action find
entity Princess Marie of the Netherlands
relation country of citizenship
action find
entity Dragoș Vlădulescu
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Princess Marie of the Netherlands', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Dragoș Vlădulescu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?x ) { ( resource:Princess_Marie_of_the_Netherlands ) ( resource:Dragoș_Vlădulescu ) } . ?x property:country_of_citizenship ?q } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q218 Q29999
SYSTEM
Romania, Kingdom of the Netherlands
Q218 Q29999
OR((Q2367197,P27,c(Q15617994)), (Q23925370,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2367197
relation P27
action find
entity Q23925370
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Princess Marie of the Netherlands or Dragoș Vlădulescu
{'OR': [['Q2367197', 'P27', {'concept': 'Q15617994'}], ['Q23925370', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?x ) { ( resource:Q2367197 ) ( resource:Q23925370 ) } . ?x property:P27 ?q } . ?q rdf:type ontology:Q15617994 }
Romania Kingdom of the Netherlands
Romania and Kingdom of the Netherlands are the countries of citizenship of Princess Marie of the Netherlands or Dragoș Vlădulescu
Romania Kingdom of the Netherlands
action filter_type
action union
action find
entity Princess Marie of the Netherlands
relation country of citizenship
action find
entity Dragoș Vlădulescu
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Princess Marie of the Netherlands', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Dragoș Vlădulescu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?x ) { ( resource:Princess_Marie_of_the_Netherlands ) ( resource:Dragoș_Vlădulescu ) } . ?x property:country_of_citizenship ?q } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1975650
P27
Q502895
USER
Are Alexandra van der Mije a citizen of those administrative territories ?
(Q1975650,P27,Q218) (Q1975650,P27,Q29999)
action is_in
entity prev_answer
action find
entity Q1975650
relation P27
['Q1975650', 'P27', 'Q218'] ['Q1975650', 'P27', 'Q29999']
ASK WHERE { VALUES ( ?p ) { ( resource:Q218 ) ( resource:Q29999 ) } . resource:Q1975650 property:P27 ?p }
Alexandra van der Mije
action is_in
entity prev_answer
action find
entity Alexandra van der Mije
relation country of citizenship
['Alexandra van der Mije', 'country of citizenship', 'Romania'] ['Alexandra van der Mije', 'country of citizenship', 'Kingdom of the Netherlands']
ASK WHERE { VALUES ( ?p ) { ( resource:Romania ) ( resource:Kingdom_of_the_Netherlands ) } . resource:Alexandra_van_der_Mije property:country_of_citizenship ?p }
[]
common name
SYSTEM
YES
(Q1975650,P27,Q218) (Q1975650,P27,Q29999)
action is_in
entity prev_answer
action find
entity Q1975650
relation P27
[ANSWER]
['Q1975650', 'P27', 'Q218'] ['Q1975650', 'P27', 'Q29999']
ASK WHERE { VALUES ( ?p ) { ( resource:Q218 ) ( resource:Q29999 ) } . resource:Q1975650 property:P27 ?p }
Yes
action is_in
entity prev_answer
action find
entity Alexandra van der Mije
relation country of citizenship
['Alexandra van der Mije', 'country of citizenship', 'Romania'] ['Alexandra van der Mije', 'country of citizenship', 'Kingdom of the Netherlands']
ASK WHERE { VALUES ( ?p ) { ( resource:Romania ) ( resource:Kingdom_of_the_Netherlands ) } . resource:Alexandra_van_der_Mije property:country_of_citizenship ?p }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q218 Q51181
P530
Q15617994
USER
Does Ari, Abruzzo have a diplomatic relationship with Romania ?
(Q218,P530,Q51181)
action is_in
entity Q51181
action find
entity Q218
relation P530
['Q218', 'P530', 'Q51181']
ASK WHERE { resource:Q218 property:P530 resource:Q51181 }
Romania Ari, Abruzzo
action is_in
entity Ari, Abruzzo
action find
entity Romania
relation diplomatic relation
['Romania', 'diplomatic relation', 'Ari, Abruzzo']
ASK WHERE { resource:Romania property:diplomatic_relation resource:Ari,_Abruzzo }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q218,P530,Q51181)
action is_in
entity Q51181
action find
entity Q218
relation P530
[ANSWER]
['Q218', 'P530', 'Q51181']
ASK WHERE { resource:Q218 property:P530 resource:Q51181 }
No
action is_in
entity Ari, Abruzzo
action find
entity Romania
relation diplomatic relation
['Romania', 'diplomatic relation', 'Ari, Abruzzo']
ASK WHERE { resource:Romania property:diplomatic_relation resource:Ari,_Abruzzo }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q218
P276
Q1190554
USER
Which events are situated at Romania ?
(c(Q1190554),P276,Q218)
action filter_type
action find_reverse
entity Q218
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q218']
SELECT DISTINCT ?t WHERE { ?t property:P276 resource:Q218 . ?t rdf:type ontology:Q1190554 }
Romania
action filter_type
action find_reverse
entity Romania
relation location
type event
[{'concept': 'event'}, 'location', 'Romania']
SELECT DISTINCT ?t WHERE { ?t property:location resource:Romania . ?t rdf:type ontology:event }
[]
event
Q4859251 Q789406 Q4870887
SYSTEM
Battle of Romania, Balkans Campaign, Battle of Doljești and Orbic
Q4859251 Q789406 Q4870887
(c(Q1190554),P276,Q218)
action filter_type
action find_reverse
entity Q218
relation P276
type Q1190554
[ANSWERS] are situated at Romania
[{'concept': 'Q1190554'}, 'P276', 'Q218']
SELECT DISTINCT ?t WHERE { ?t property:P276 resource:Q218 . ?t rdf:type ontology:Q1190554 }
Battle of Romania Balkans Campaign Battle of Doljești and Orbic
Battle of Romania, Balkans Campaign and Battle of Doljești and Orbic are situated at Romania
Battle of Romania Balkans Campaign Battle of Doljești and Orbic
action filter_type
action find_reverse
entity Romania
relation location
type event
[{'concept': 'event'}, 'location', 'Romania']
SELECT DISTINCT ?t WHERE { ?t property:location resource:Romania . ?t rdf:type ontology:event }
[]
Clarification
Simple Question|Single Entity|Indirect
Q789406
P361
Q198
USER
Which war is that event a part of ?
(Q789406,P361,c(Q198))
action filter_type
action find
entity Q789406
relation P361
type Q198
['Q789406', 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?q WHERE { resource:Q789406 property:P361 ?q . ?q rdf:type ontology:Q198 }
Balkans Campaign
action filter_type
action find
entity Balkans Campaign
relation part of
type war
['Balkans Campaign', 'part of', {'concept': 'war'}]
SELECT DISTINCT ?q WHERE { resource:Balkans_Campaign property:part_of ?q . ?q rdf:type ontology:war }
[]
war
Clarification for simple ques.
Q4859251
SYSTEM
Did you mean Battle of Romania ?
Q4859251 Q789406 Q4870887
(Q4859251,P361,c(Q198)) (Q789406,P361,c(Q198)) (Q4870887,P361,c(Q198))
[ANSWER]
['Q4859251', 'P361', {'concept': 'Q198'}] ['Q789406', 'P361', {'concept': 'Q198'}] ['Q4870887', 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?q WHERE { resource:Q789406 property:P361 ?q . ?q rdf:type ontology:Q198 }
Battle of Romania Balkans Campaign Battle of Doljești and Orbic
Did you mean Battle of Romania ?
Battle of Romania
['Battle of Romania', 'part of', {'concept': 'war'}] ['Balkans Campaign', 'part of', {'concept': 'war'}] ['Battle of Doljești and Orbic', 'part of', {'concept': 'war'}]
SELECT DISTINCT ?q WHERE { resource:Balkans_Campaign property:part_of ?q . ?q rdf:type ontology:war }
[]
Simple Question (Coreferenced)
USER
No, I meant Balkans Campaign. Could you tell me the answer for that?
(Q789406,P361,c(Q198))
Q789406
['Q789406', 'P361', {'concept': 'Q198'}]
['Balkans Campaign', 'part of', {'concept': 'war'}]
[]
Q361
SYSTEM
World War I
Q361
(Q789406,P361,c(Q198))
action filter_type
action find
entity Q789406
relation P361
type Q198
Which war is that event a part of
['Q789406', 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?q WHERE { resource:Q789406 property:P361 ?q . ?q rdf:type ontology:Q198 }
World War I
Which war is that event a part of
World War I
action filter_type
action find
entity Balkans Campaign
relation part of
type war
['Balkans Campaign', 'part of', {'concept': 'war'}]
SELECT DISTINCT ?q WHERE { resource:Balkans_Campaign property:part_of ?q . ?q rdf:type ontology:war }
[]