Simple Question (Direct)
Simple Question
Q26462719
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Charles de Courcy ?
(Q26462719,P27,c(Q15617994))
action filter_type
action find
entity Q26462719
relation P27
type Q15617994
['Q26462719', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q26462719 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Charles de Courcy
action filter_type
action find
entity Charles de Courcy
relation country of citizenship
type designation for an administrative territorial entity
['Charles de Courcy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Charles_de_Courcy property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q26462719,P27,c(Q15617994))
action filter_type
action find
entity Q26462719
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Charles de Courcy
['Q26462719', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q26462719 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
France
France is the country of citizenship of Charles de Courcy
France
action filter_type
action find
entity Charles de Courcy
relation country of citizenship
type designation for an administrative territorial entity
['Charles de Courcy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Charles_de_Courcy property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26462719
P21
Q290
USER
Which sex does that person belong to ?
(Q142,P21,c(Q290))
action filter_type
action find
entity Q26462719
relation P21
type Q290
['Q142', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q26462719 property:P21 ?s . ?s rdf:type ontology:Q290 }
Charles de Courcy
action filter_type
action find
entity Charles de Courcy
relation gender
type sex
['France', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Charles_de_Courcy property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q142,P21,c(Q290))
action filter_type
action find
entity Q26462719
relation P21
type Q290
That person belongs to [ANSWER]
['Q142', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q26462719 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Charles de Courcy
relation gender
type sex
['France', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Charles_de_Courcy property:gender ?s . ?s rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q219 Q142
P27
Q502895
USER
Which people are a citizen of France and Bulgaria ?
AND((c(Q502895),P27,Q142), (c(Q502895),P27,Q219))
action filter_type
action intersection
action find_reverse
entity Q142
relation P27
action find_reverse
entity Q219
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q142'], [{'concept': 'Q502895'}, 'P27', 'Q219']]}
SELECT DISTINCT ?k WHERE { ?k property:P27 resource:Q142 . ?k property:P27 resource:Q219 . ?k rdf:type ontology:Q502895 }
Bulgaria France
action filter_type
action intersection
action find_reverse
entity France
relation country of citizenship
action find_reverse
entity Bulgaria
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'France'], [{'concept': 'common name'}, 'country of citizenship', 'Bulgaria']]}
SELECT DISTINCT ?k WHERE { ?k property:country_of_citizenship resource:France . ?k property:country_of_citizenship resource:Bulgaria . ?k rdf:type ontology:common_name }
[]
common name
Q23001761 Q712128 Q2909154 Q2082436 Q1508832 Q2846787
SYSTEM
Svetlin Roussev, Alexis Weissenberg, Bojidar Slavev, Emile Naoumoff, Georges Canetti, Andrey Lekarski
Q23001761 Q712128 Q2909154 Q2082436 Q1508832 Q2846787
AND((c(Q502895),P27,Q142), (c(Q502895),P27,Q219))
action filter_type
action intersection
action find_reverse
entity Q142
relation P27
action find_reverse
entity Q219
relation P27
type Q502895
[ANSWERS] are a citizen of France and Bulgaria
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q142'], [{'concept': 'Q502895'}, 'P27', 'Q219']]}
SELECT DISTINCT ?k WHERE { ?k property:P27 resource:Q142 . ?k property:P27 resource:Q219 . ?k rdf:type ontology:Q502895 }
Svetlin Roussev Alexis Weissenberg Bojidar Slavev Emile Naoumoff Georges Canetti Andrey Lekarski
Svetlin Roussev, Alexis Weissenberg, Bojidar Slavev, Emile Naoumoff, Georges Canetti and Andrey Lekarski are a citizen of France and Bulgaria
Svetlin Roussev Alexis Weissenberg Bojidar Slavev Emile Naoumoff Georges Canetti Andrey Lekarski
action filter_type
action intersection
action find_reverse
entity France
relation country of citizenship
action find_reverse
entity Bulgaria
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'France'], [{'concept': 'common name'}, 'country of citizenship', 'Bulgaria']]}
SELECT DISTINCT ?k WHERE { ?k property:country_of_citizenship resource:France . ?k property:country_of_citizenship resource:Bulgaria . ?k rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P27
Q15617994
USER
How many administrative territories are that person an inhabitant of ?
(Q712128,P27,c(Q15617994))
['Q712128', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q712128 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
['Alexis Weissenberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Alexis_Weissenberg property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q2846787
SYSTEM
Did you mean Andrey Lekarski ?
(Q23001761,P27,c(Q15617994)) (Q712128,P27,c(Q15617994)) (Q2909154,P27,c(Q15617994)) (Q2082436,P27,c(Q15617994)) (Q1508832,P27,c(Q15617994)) (Q2846787,P27,c(Q15617994))
[ANSWER]
['Q23001761', 'P27', {'concept': 'Q15617994'}] ['Q712128', 'P27', {'concept': 'Q15617994'}] ['Q2909154', 'P27', {'concept': 'Q15617994'}] ['Q2082436', 'P27', {'concept': 'Q15617994'}] ['Q1508832', 'P27', {'concept': 'Q15617994'}] ['Q2846787', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q712128 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Andrey Lekarski ?
Andrey Lekarski
['Svetlin Roussev', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Alexis Weissenberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Bojidar Slavev', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Emile Naoumoff', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Georges Canetti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Andrey Lekarski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Alexis_Weissenberg property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Alexis Weissenberg. Could you tell me the answer for that?
(Q712128,P27,c(Q15617994))
Q712128
['Q712128', 'P27', {'concept': 'Q15617994'}]
['Alexis Weissenberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
2
Q142 Q219
(Q712128,P27,c(Q15617994))
[ANSWER]
['Q712128', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q712128 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
France Bulgaria
2
['Alexis Weissenberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Alexis_Weissenberg property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q2082436 Q1918673
P802
Q502895
USER
How many people were Emile Naoumoff or Meister von Coëtivy a student of ?
(c(Q502895),P802,Q2082436) (c(Q502895),P802,Q1918673)
action count
action union
action filter_type
action find_reverse
entity Q2082436
relation P802
type Q502895
action filter_type
action find_reverse
entity Q1918673
relation P802
type Q502895
[{'concept': 'Q502895'}, 'P802', 'Q2082436'] [{'concept': 'Q502895'}, 'P802', 'Q1918673']
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { ?j property:P802 resource:Q2082436 . ?j rdf:type ontology:Q502895 } UNION { ?j property:P802 resource:Q1918673 . ?j rdf:type ontology:Q502895 } }
Emile Naoumoff Meister von Coëtivy
action count
action union
action filter_type
action find_reverse
entity Emile Naoumoff
relation student
type common name
action filter_type
action find_reverse
entity Meister von Coëtivy
relation student
type common name
[{'concept': 'common name'}, 'student', 'Emile Naoumoff'] [{'concept': 'common name'}, 'student', 'Meister von Coëtivy']
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { ?j property:student resource:Emile_Naoumoff . ?j rdf:type ontology:common_name } UNION { ?j property:student resource:Meister_von_Coëtivy . ?j rdf:type ontology:common_name } }
[]
common name
SYSTEM
2
Q140619 Q523603
(c(Q502895),P802,Q2082436) (c(Q502895),P802,Q1918673)
action count
action union
action filter_type
action find_reverse
entity Q2082436
relation P802
type Q502895
action filter_type
action find_reverse
entity Q1918673
relation P802
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P802', 'Q2082436'] [{'concept': 'Q502895'}, 'P802', 'Q1918673']
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { ?j property:P802 resource:Q2082436 . ?j rdf:type ontology:Q502895 } UNION { ?j property:P802 resource:Q1918673 . ?j rdf:type ontology:Q502895 } }
Nadia Boulanger André d’Ypres
2
action count
action union
action filter_type
action find_reverse
entity Emile Naoumoff
relation student
type common name
action filter_type
action find_reverse
entity Meister von Coëtivy
relation student
type common name
[{'concept': 'common name'}, 'student', 'Emile Naoumoff'] [{'concept': 'common name'}, 'student', 'Meister von Coëtivy']
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { ?j property:student resource:Emile_Naoumoff . ?j rdf:type ontology:common_name } UNION { ?j property:student resource:Meister_von_Coëtivy . ?j rdf:type ontology:common_name } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q263124 Q1508832
P27
Q15617994
USER
Which administrative territories are the native countriesof Georges Canetti or Takeshi Rikio ?
OR((Q1508832,P27,c(Q15617994)), (Q263124,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1508832
relation P27
action find
entity Q263124
relation P27
type Q15617994
{'OR': [['Q1508832', 'P27', {'concept': 'Q15617994'}], ['Q263124', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { ?l property:P27 ?v . VALUES ( ?l ) { ( resource:Q263124 ) ( resource:Q1508832 ) } } }
Takeshi Rikio Georges Canetti
action filter_type
action union
action find
entity Georges Canetti
relation country of citizenship
action find
entity Takeshi Rikio
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Georges Canetti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Takeshi Rikio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?l property:country_of_citizenship ?v . VALUES ( ?l ) { ( resource:Takeshi_Rikio ) ( resource:Georges_Canetti ) } } }
[]
designation for an administrative territorial entity
Q142 Q17 Q219
SYSTEM
France, Japan, Bulgaria
Q142 Q17 Q219
OR((Q1508832,P27,c(Q15617994)), (Q263124,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1508832
relation P27
action find
entity Q263124
relation P27
type Q15617994
[ANSWERS] are the native countriesof Georges Canetti or Takeshi Rikio
{'OR': [['Q1508832', 'P27', {'concept': 'Q15617994'}], ['Q263124', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { ?l property:P27 ?v . VALUES ( ?l ) { ( resource:Q263124 ) ( resource:Q1508832 ) } } }
France Japan Bulgaria
France, Japan and Bulgaria are the native countriesof Georges Canetti or Takeshi Rikio
France Japan Bulgaria
action filter_type
action union
action find
entity Georges Canetti
relation country of citizenship
action find
entity Takeshi Rikio
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Georges Canetti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Takeshi Rikio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?l property:country_of_citizenship ?v . VALUES ( ?l ) { ( resource:Takeshi_Rikio ) ( resource:Georges_Canetti ) } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q219
P710
Q831663
USER
Which military campaign did that administrative territory participate in ?
(c(Q831663),P710,Q219)
action filter_type
action find_reverse
entity Q219
relation P710
type Q831663
[{'concept': 'Q831663'}, 'P710', 'Q219']
SELECT DISTINCT ?v WHERE { ?v property:P710 resource:Q219 . ?v rdf:type ontology:Q831663 }
Bulgaria
action filter_type
action find_reverse
entity Bulgaria
relation participant
type military campaign
[{'concept': 'military campaign'}, 'participant', 'Bulgaria']
SELECT DISTINCT ?v WHERE { ?v property:participant resource:Bulgaria . ?v rdf:type ontology:military_campaign }
[]
military campaign
Clarification for simple ques.
Q17
SYSTEM
Did you mean Japan ?
Q142 Q17 Q219
(c(Q831663),P710,Q142) (c(Q831663),P710,Q17) (c(Q831663),P710,Q219)
[ANSWER]
[{'concept': 'Q831663'}, 'P710', 'Q142'] [{'concept': 'Q831663'}, 'P710', 'Q17'] [{'concept': 'Q831663'}, 'P710', 'Q219']
SELECT DISTINCT ?v WHERE { ?v property:P710 resource:Q219 . ?v rdf:type ontology:Q831663 }
France Japan Bulgaria
Did you mean Japan ?
Japan
[{'concept': 'military campaign'}, 'participant', 'France'] [{'concept': 'military campaign'}, 'participant', 'Japan'] [{'concept': 'military campaign'}, 'participant', 'Bulgaria']
SELECT DISTINCT ?v WHERE { ?v property:participant resource:Bulgaria . ?v rdf:type ontology:military_campaign }
[]
Simple Question (Coreferenced)
USER
No, I meant Bulgaria. Could you tell me the answer for that?
(c(Q831663),P710,Q219)
Q219
[{'concept': 'Q831663'}, 'P710', 'Q219']
[{'concept': 'military campaign'}, 'participant', 'Bulgaria']
[]
Q817137
SYSTEM
2001 insurgency in the Republic of Macedonia
Q817137
(c(Q831663),P710,Q219)
action filter_type
action find_reverse
entity Q219
relation P710
type Q831663
That administrative territory participated in [ANSWER]
[{'concept': 'Q831663'}, 'P710', 'Q219']
SELECT DISTINCT ?v WHERE { ?v property:P710 resource:Q219 . ?v rdf:type ontology:Q831663 }
2001 insurgency in the Republic of Macedonia
That administrative territory participated in 2001 insurgency in the Republic of Macedonia
2001 insurgency in the Republic of Macedonia
action filter_type
action find_reverse
entity Bulgaria
relation participant
type military campaign
[{'concept': 'military campaign'}, 'participant', 'Bulgaria']
SELECT DISTINCT ?v WHERE { ?v property:participant resource:Bulgaria . ?v rdf:type ontology:military_campaign }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q817137 Q19052588
P361
Q1190554
USER
Is Atlantic Trust Company v. Chapman a part of that military campaign ?
(Q19052588,P361,Q817137)
action is_in
entity Q19052588
action find
entity Q817137
relation P361
['Q19052588', 'P361', 'Q817137']
ASK WHERE { resource:Q817137 property:P361 resource:Q19052588 }
2001 insurgency in the Republic of Macedonia Atlantic Trust Company v. Chapman
action is_in
entity Atlantic Trust Company v. Chapman
action find
entity 2001 insurgency in the Republic of Macedonia
relation part of
['Atlantic Trust Company v. Chapman', 'part of', '2001 insurgency in the Republic of Macedonia']
ASK WHERE { resource:2001_insurgency_in_the_Republic_of_Macedonia property:part_of resource:Atlantic_Trust_Company_v._Chapman }
[]
event
SYSTEM
NO
(Q19052588,P361,Q817137)
action is_in
entity Q19052588
action find
entity Q817137
relation P361
[ANSWER]
['Q19052588', 'P361', 'Q817137']
ASK WHERE { resource:Q817137 property:P361 resource:Q19052588 }
No
action is_in
entity Atlantic Trust Company v. Chapman
action find
entity 2001 insurgency in the Republic of Macedonia
relation part of
['Atlantic Trust Company v. Chapman', 'part of', '2001 insurgency in the Republic of Macedonia']
ASK WHERE { resource:2001_insurgency_in_the_Republic_of_Macedonia property:part_of resource:Atlantic_Trust_Company_v._Chapman }
[]