Simple Question (Direct)
Simple Question
Q570422
P19
Q15617994
USER
Which administrative territory was Ansumana Samateh born in ?
(Q570422,P19,c(Q15617994))
action filter_type
action find
entity Q570422
relation P19
type Q15617994
['Q570422', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q570422 property:P19 ?f . ?f rdf:type ontology:Q15617994 }
Ansumana Samateh
action filter_type
action find
entity Ansumana Samateh
relation place of birth
type designation for an administrative territorial entity
['Ansumana Samateh', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Ansumana_Samateh property:place_of_birth ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1005
SYSTEM
Gambia
Q1005
(Q570422,P19,c(Q15617994))
action filter_type
action find
entity Q570422
relation P19
type Q15617994
Ansumana Samateh was born in [ANSWER]
['Q570422', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q570422 property:P19 ?f . ?f rdf:type ontology:Q15617994 }
Gambia
Ansumana Samateh was born in Gambia
Gambia
action filter_type
action find
entity Ansumana Samateh
relation place of birth
type designation for an administrative territorial entity
['Ansumana Samateh', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Ansumana_Samateh property:place_of_birth ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1005
P840
Q2342494
USER
Which collectable has its narrative set in that administrative territory ?
(c(Q2342494),P840,Q1005)
action filter_type
action find_reverse
entity Q1005
relation P840
type Q2342494
[{'concept': 'Q2342494'}, 'P840', 'Q1005']
SELECT DISTINCT ?x WHERE { ?x property:P840 resource:Q1005 . ?x rdf:type ontology:Q2342494 }
Gambia
action filter_type
action find_reverse
entity Gambia
relation narrative location
type collectable
[{'concept': 'collectable'}, 'narrative location', 'Gambia']
SELECT DISTINCT ?x WHERE { ?x property:narrative_location resource:Gambia . ?x rdf:type ontology:collectable }
[]
collectable
Q4724410
SYSTEM
Alhaji
Q4724410
(c(Q2342494),P840,Q1005)
action filter_type
action find_reverse
entity Q1005
relation P840
type Q2342494
[ANSWER] has its narrative set in that administrative territory
[{'concept': 'Q2342494'}, 'P840', 'Q1005']
SELECT DISTINCT ?x WHERE { ?x property:P840 resource:Q1005 . ?x rdf:type ontology:Q2342494 }
Alhaji
Alhaji has its narrative set in that administrative territory
Alhaji
action filter_type
action find_reverse
entity Gambia
relation narrative location
type collectable
[{'concept': 'collectable'}, 'narrative location', 'Gambia']
SELECT DISTINCT ?x WHERE { ?x property:narrative_location resource:Gambia . ?x rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1005
P6
Q502895
USER
Who is the head of the government of that administrative territory ?
(Q4724410,P6,c(Q502895))
action filter_type
action find
entity Q1005
relation P6
type Q502895
['Q4724410', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . resource:Q1005 property:P6 ?t }
Gambia
action filter_type
action find
entity Gambia
relation head of government
type common name
['Alhaji', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . resource:Gambia property:head_of_government ?t }
[]
common name
Q57356
SYSTEM
Yahya Jammeh
Q57356
(Q4724410,P6,c(Q502895))
action filter_type
action find
entity Q1005
relation P6
type Q502895
The head of the government of that administrative territory is President [ANSWER]
['Q4724410', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . resource:Q1005 property:P6 ?t }
Yahya Jammeh
The head of the government of that administrative territory is President Yahya Jammeh
Yahya Jammeh
action filter_type
action find
entity Gambia
relation head of government
type common name
['Alhaji', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . resource:Gambia property:head_of_government ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q57356
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q57356,P27,c(Q15617994))
action filter_type
action find
entity Q57356
relation P27
type Q15617994
['Q57356', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q57356 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Yahya Jammeh
action filter_type
action find
entity Yahya Jammeh
relation country of citizenship
type designation for an administrative territorial entity
['Yahya Jammeh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Yahya_Jammeh property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1005
SYSTEM
Gambia
Q1005
(Q57356,P27,c(Q15617994))
action filter_type
action find
entity Q57356
relation P27
type Q15617994
The [ANSWER] is the native country of that person
['Q57356', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q57356 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Gambia
The Gambia is the native country of that person
Gambia
action filter_type
action find
entity Yahya Jammeh
relation country of citizenship
type designation for an administrative territorial entity
['Yahya Jammeh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Yahya_Jammeh property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1009705
Q15617994
USER
And what about András Gerendás?
(Q1009705,P27,c(Q15617994))
action filter_type
action find
entity Q1009705
relation P27
type Q15617994
['Q1009705', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q1009705 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
András Gerendás
action filter_type
action find
entity András Gerendás
relation country of citizenship
type designation for an administrative territorial entity
['András Gerendás', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:András_Gerendás property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
(Q1009705,P27,c(Q15617994))
action filter_type
action find
entity Q1009705
relation P27
type Q15617994
[ANSWER]
['Q1009705', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q1009705 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Hungary
Hungary
action filter_type
action find
entity András Gerendás
relation country of citizenship
type designation for an administrative territorial entity
['András Gerendás', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:András_Gerendás property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P47
Q15617994 Q1048835
USER
How many administrative territories and political territories are adjacent to that administrative territory ?
(Q28,P47,c(Q15617994)) (Q28,P47,c(Q1048835)) (Q28,P47,c(Q15617994)) (Q28,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q28
relation P47
type Q15617994
action filter_type
action find
entity Q28
relation P47
type Q1048835
['Q28', 'P47', {'concept': 'Q15617994'}] ['Q28', 'P47', {'concept': 'Q1048835'}] ['Q28', 'P47', {'concept': 'Q15617994'}] ['Q28', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { { ?x rdf:type ontology:Q15617994 . resource:Q28 property:P47 ?x } UNION { resource:Q28 property:P47 ?x . ?x rdf:type ontology:Q1048835 } }
action count
action union
action filter_type
action find
entity Hungary
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Hungary
relation shares border with
type political territorial entity
['Hungary', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Hungary', 'shares border with', {'concept': 'political territorial entity'}] ['Hungary', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Hungary', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Hungary property:shares_border_with ?x } UNION { resource:Hungary property:shares_border_with ?x . ?x rdf:type ontology:political_territorial_entity } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
6 administrative territories and 1 political territories
Q212 Q224 Q40 Q214 Q215 Q403 Q218
(Q28,P47,c(Q15617994)) (Q28,P47,c(Q1048835)) (Q28,P47,c(Q15617994)) (Q28,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q28
relation P47
type Q15617994
action filter_type
action find
entity Q28
relation P47
type Q1048835
[ANSWER]
['Q28', 'P47', {'concept': 'Q15617994'}] ['Q28', 'P47', {'concept': 'Q1048835'}] ['Q28', 'P47', {'concept': 'Q15617994'}] ['Q28', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { { ?x rdf:type ontology:Q15617994 . resource:Q28 property:P47 ?x } UNION { resource:Q28 property:P47 ?x . ?x rdf:type ontology:Q1048835 } }
Ukraine Croatia Austria Slovakia Slovenia Serbia Romania
6 administrative territories and 1 political territories
action count
action union
action filter_type
action find
entity Hungary
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Hungary
relation shares border with
type political territorial entity
['Hungary', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Hungary', 'shares border with', {'concept': 'political territorial entity'}] ['Hungary', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Hungary', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Hungary property:shares_border_with ?x } UNION { resource:Hungary property:shares_border_with ?x . ?x rdf:type ontology:political_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q6581097 Q1005
P27 P21
Q502895
USER
Which people are a native of Gambia and do not have gender of male ?
AND((c(Q502895),P27,Q1005), NOT((c(Q502895),P21,Q6581097)))
action filter_type
action difference
action find_reverse
entity Q1005
relation P27
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q1005'], {'NOT': [[{'concept': 'Q502895'}, 'P21', 'Q6581097']]}]}
SELECT DISTINCT ?e WHERE { ?e property:P27 resource:Q1005 . FILTER NOT EXISTS { ?e property:P21 resource:Q6581097 } . ?e rdf:type ontology:Q502895 }
male Gambia
action filter_type
action difference
action find_reverse
entity Gambia
relation country of citizenship
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Gambia'], {'NOT': [[{'concept': 'common name'}, 'gender', 'male']]}]}
SELECT DISTINCT ?e WHERE { ?e property:country_of_citizenship resource:Gambia . FILTER NOT EXISTS { ?e property:gender resource:male } . ?e rdf:type ontology:common_name }
[]
common name
Q1591578 Q2368962 Q1872177 Q27683833 Q508482 Q351440 Q2006110 Q2290164 Q24951757 Q24572648
SYSTEM
Some of them are Hawa Sisay-Sabally, Susan Waffa-Ogoo, Louise N’Jie, Fatim Jawara, Fatou Bensouda, Adama Njie, Nyimasata Sanneh-Bojang, Sirra Wally Ndow-Njie, Gina Bass, Jaha Dukureh
Q1442290 Q765696 Q2522720 Q24951757 Q508482 Q1872177 Q864065 Q815618 Q470913 Q571388 Q1591578 Q1509330 Q532702 Q1873742 Q24572648 Q2290164 Q773793 Q467531 Q6306369 Q27683833 Q351440 Q1398232 Q2006110 Q7424698 Q27541581 Q2368962 Q1897476 Q1620941
AND((c(Q502895),P27,Q1005), NOT((c(Q502895),P21,Q6581097)))
action filter_type
action difference
action find_reverse
entity Q1005
relation P27
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] are a native of Gambia and do not have gender of male
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q1005'], {'NOT': [[{'concept': 'Q502895'}, 'P21', 'Q6581097']]}]}
SELECT DISTINCT ?e WHERE { ?e property:P27 resource:Q1005 . FILTER NOT EXISTS { ?e property:P21 resource:Q6581097 } . ?e rdf:type ontology:Q502895 }
Teneng Mba Jaiteh Augusta Jawara Victoria Decka Gina Bass Fatou Bensouda Louise N’Jie Bintanding Jarju Belinda Bidwell Amie Ndow Nancy Njie Hawa Sisay-Sabally Georgiana Freeman Fatou Tiyana Lucretia St. Clair Joof Jaha Dukureh Sirra Wally Ndow-Njie Sona Jobarteh Isatou Njie-Saidy Julia Dolly Joiner Fatim Jawara Adama Njie Fatou Mass Jobe-Njie Nyimasata Sanneh-Bojang Saruba Colley Isatou Touray Susan Waffa-Ogoo Marie Saine-Firdaus Jabou Jawo
Hawa Sisay-Sabally, Susan Waffa-Ogoo, Louise N’Jie, Fatim Jawara, Fatou Bensouda, Adama Njie, Nyimasata Sanneh-Bojang, Sirra Wally Ndow-Njie, Gina Bass and Jaha Dukureh are a native of Gambia and do not have gender of male
Hawa Sisay-Sabally Susan Waffa-Ogoo Louise N’Jie Fatim Jawara Fatou Bensouda Adama Njie Nyimasata Sanneh-Bojang Sirra Wally Ndow-Njie Gina Bass Jaha Dukureh
action filter_type
action difference
action find_reverse
entity Gambia
relation country of citizenship
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Gambia'], {'NOT': [[{'concept': 'common name'}, 'gender', 'male']]}]}
SELECT DISTINCT ?e WHERE { ?e property:country_of_citizenship resource:Gambia . FILTER NOT EXISTS { ?e property:gender resource:male } . ?e rdf:type ontology:common_name }
[]