Simple Question (Direct)
Simple Question
Q15912551
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Alfred Valensi ?
(Q15912551,P27,c(Q15617994))
action filter_type
action find
entity Q15912551
relation P27
type Q15617994
['Q15912551', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q15912551 property:P27 ?o }
Alfred Valensi
action filter_type
action find
entity Alfred Valensi
relation country of citizenship
type designation for an administrative territorial entity
['Alfred Valensi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Alfred_Valensi property:country_of_citizenship ?o }
[]
designation for an administrative territorial entity
Q948
SYSTEM
Tunisia
Q948
(Q15912551,P27,c(Q15617994))
action filter_type
action find
entity Q15912551
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Alfred Valensi
['Q15912551', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q15912551 property:P27 ?o }
Tunisia
Tunisia is the country of citizenship of Alfred Valensi
Tunisia
action filter_type
action find
entity Alfred Valensi
relation country of citizenship
type designation for an administrative territorial entity
['Alfred Valensi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Alfred_Valensi property:country_of_citizenship ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q948
P30
Q2221906
USER
Where is that administrative territory located ?
(Q948,P30,c(Q2221906))
action filter_type
action find
entity Q948
relation P30
type Q2221906
['Q948', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?o WHERE { resource:Q948 property:P30 ?o . ?o rdf:type ontology:Q2221906 }
Tunisia
action filter_type
action find
entity Tunisia
relation continent
type geographic location
['Tunisia', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?o WHERE { resource:Tunisia property:continent ?o . ?o rdf:type ontology:geographic_location }
[]
geographic location
Q15
SYSTEM
Africa
Q15
(Q948,P30,c(Q2221906))
action filter_type
action find
entity Q948
relation P30
type Q2221906
That administrative territory is located in [ANSWER]
['Q948', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?o WHERE { resource:Q948 property:P30 ?o . ?o rdf:type ontology:Q2221906 }
Africa
That administrative territory is located in Africa
Africa
action filter_type
action find
entity Tunisia
relation continent
type geographic location
['Tunisia', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?o WHERE { resource:Tunisia property:continent ?o . ?o rdf:type ontology:geographic_location }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q15 Q262
P30
Q15617994
USER
Is Algeria included in that geographic location ?
(Q262,P30,Q15)
action is_in
entity Q15
action find
entity Q262
relation P30
['Q262', 'P30', 'Q15']
ASK WHERE { resource:Q262 property:P30 resource:Q15 }
Africa Algeria
action is_in
entity Africa
action find
entity Algeria
relation continent
['Algeria', 'continent', 'Africa']
ASK WHERE { resource:Algeria property:continent resource:Africa }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q262,P30,Q15)
action is_in
entity Q15
action find
entity Q262
relation P30
[ANSWER]
['Q262', 'P30', 'Q15']
ASK WHERE { resource:Q262 property:P30 resource:Q15 }
Yes
action is_in
entity Africa
action find
entity Algeria
relation continent
['Algeria', 'continent', 'Africa']
ASK WHERE { resource:Algeria property:continent resource:Africa }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q408 Q262
P530
Q1048835
USER
Which political territories have diplomatic relationships with Algeria and Australia ?
AND((Q262,P530,c(Q1048835)), (Q408,P530,c(Q1048835)))
action filter_type
action intersection
action find
entity Q262
relation P530
action find
entity Q408
relation P530
type Q1048835
{'AND': [['Q262', 'P530', {'concept': 'Q1048835'}], ['Q408', 'P530', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { resource:Q262 property:P530 ?n . resource:Q408 property:P530 ?n . ?n rdf:type ontology:Q1048835 }
Australia Algeria
action filter_type
action intersection
action find
entity Algeria
relation diplomatic relation
action find
entity Australia
relation diplomatic relation
type political territorial entity
{'AND': [['Algeria', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Australia', 'diplomatic relation', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { resource:Algeria property:diplomatic_relation ?n . resource:Australia property:diplomatic_relation ?n . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q262,P530,c(Q1048835)), (Q408,P530,c(Q1048835)))
action filter_type
action intersection
action find
entity Q262
relation P530
action find
entity Q408
relation P530
type Q1048835
[ANSWER] have diplomatic relationships with Algeria and Australia
{'AND': [['Q262', 'P530', {'concept': 'Q1048835'}], ['Q408', 'P530', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { resource:Q262 property:P530 ?n . resource:Q408 property:P530 ?n . ?n rdf:type ontology:Q1048835 }
Germany
Germany have diplomatic relationships with Algeria and Australia
Germany
action filter_type
action intersection
action find
entity Algeria
relation diplomatic relation
action find
entity Australia
relation diplomatic relation
type political territorial entity
{'AND': [['Algeria', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Australia', 'diplomatic relation', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { resource:Algeria property:diplomatic_relation ?n . resource:Australia property:diplomatic_relation ?n . ?n rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q183 Q2567 Q2563
P35
Q502895
USER
Is Richard von Weizsäcker and Roman Herzog the head of state of Q183 ?
(Q183,P35,Q2567) (Q183,P35,Q2563)
action is_in
entity Q183
action intersection
action find_reverse
entity Q2567
relation P35
action find_reverse
entity Q2563
relation P35
['Q183', 'P35', 'Q2567'] ['Q183', 'P35', 'Q2563']
ASK WHERE { resource:Q183 property:P35 resource:Q2567 . resource:Q183 property:P35 resource:Q2563 }
Germany Richard von Weizsäcker Roman Herzog
action is_in
entity Germany
action intersection
action find_reverse
entity Richard von Weizsäcker
relation head of state
action find_reverse
entity Roman Herzog
relation head of state
['Germany', 'head of state', 'Richard von Weizsäcker'] ['Germany', 'head of state', 'Roman Herzog']
ASK WHERE { resource:Germany property:head_of_state resource:Richard_von_Weizsäcker . resource:Germany property:head_of_state resource:Roman_Herzog }
[]
common name
SYSTEM
YES
(Q183,P35,Q2567) (Q183,P35,Q2563)
action is_in
entity Q183
action intersection
action find_reverse
entity Q2567
relation P35
action find_reverse
entity Q2563
relation P35
[ANSWER]
['Q183', 'P35', 'Q2567'] ['Q183', 'P35', 'Q2563']
ASK WHERE { resource:Q183 property:P35 resource:Q2567 . resource:Q183 property:P35 resource:Q2563 }
Yes
action is_in
entity Germany
action intersection
action find_reverse
entity Richard von Weizsäcker
relation head of state
action find_reverse
entity Roman Herzog
relation head of state
['Germany', 'head of state', 'Richard von Weizsäcker'] ['Germany', 'head of state', 'Roman Herzog']
ASK WHERE { resource:Germany property:head_of_state resource:Richard_von_Weizsäcker . resource:Germany property:head_of_state resource:Roman_Herzog }
[]