Simple Question (Direct)
Simple Question
Q11229501
P27
Q15617994
USER
Which administrative territory is Odd Henriksen a civilian of ?
(Q11229501,P27,c(Q15617994))
action filter_type
action find
entity Q11229501
relation P27
type Q15617994
['Q11229501', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q11229501 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Odd Henriksen
action filter_type
action find
entity Odd Henriksen
relation country of citizenship
type designation for an administrative territorial entity
['Odd Henriksen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Odd_Henriksen property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20
SYSTEM
Norway
Q20
(Q11229501,P27,c(Q15617994))
action filter_type
action find
entity Q11229501
relation P27
type Q15617994
[ANSWER] is Odd Henriksen a civilian of
['Q11229501', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q11229501 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Norway
Norway is Odd Henriksen a civilian of
Norway
action filter_type
action find
entity Odd Henriksen
relation country of citizenship
type designation for an administrative territorial entity
['Odd Henriksen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Odd_Henriksen property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11229501
P937
Q56061
USER
Which administrative territory is the work location of that person ?
(Q20,P937,c(Q56061))
action filter_type
action find
entity Q11229501
relation P937
type Q56061
['Q20', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q11229501 property:P937 ?t . ?t rdf:type ontology:Q56061 }
Odd Henriksen
action filter_type
action find
entity Odd Henriksen
relation work location
type administrative territorial entity
['Norway', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Odd_Henriksen property:work_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q585
SYSTEM
Oslo
Q585
(Q20,P937,c(Q56061))
action filter_type
action find
entity Q11229501
relation P937
type Q56061
[ANSWER] is the work location of that person
['Q20', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q11229501 property:P937 ?t . ?t rdf:type ontology:Q56061 }
Oslo
Oslo is the work location of that person
Oslo
action filter_type
action find
entity Odd Henriksen
relation work location
type administrative territorial entity
['Norway', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Odd_Henriksen property:work_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11229501
P102
Q7210356
USER
Which party is that person affiliated with ?
(Q585,P102,c(Q7210356))
action filter_type
action find
entity Q11229501
relation P102
type Q7210356
['Q585', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q7210356 . resource:Q11229501 property:P102 ?y }
Odd Henriksen
action filter_type
action find
entity Odd Henriksen
relation member of political party
type political organization
['Oslo', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:political_organization . resource:Odd_Henriksen property:member_of_political_party ?y }
[]
political organization
Q586364
SYSTEM
Conservative Party
Q586364
(Q585,P102,c(Q7210356))
action filter_type
action find
entity Q11229501
relation P102
type Q7210356
That person is affiliated with [ANSWER]
['Q585', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q7210356 . resource:Q11229501 property:P102 ?y }
Conservative Party
That person is affiliated with Conservative Party
Conservative Party
action filter_type
action find
entity Odd Henriksen
relation member of political party
type political organization
['Oslo', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:political_organization . resource:Odd_Henriksen property:member_of_political_party ?y }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q1359915 Q20
P530 P27
Q1048835
USER
Which political territories have diplomatic relationships with Norway and are not the countries of citizenship of Richard Escales ?
AND((Q20,P530,c(Q1048835)), NOT((Q1359915,P27,c(Q1048835))))
action filter_type
action difference
action find
entity Q20
relation P530
action find
entity Q1359915
relation P27
type Q1048835
{'AND': [['Q20', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q1359915', 'P27', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?m WHERE { resource:Q20 property:P530 ?m . FILTER NOT EXISTS { resource:Q1359915 property:P27 ?m } . ?m rdf:type ontology:Q1048835 }
Richard Escales Norway
action filter_type
action difference
action find
entity Norway
relation diplomatic relation
action find
entity Richard Escales
relation country of citizenship
type political territorial entity
{'AND': [['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Richard Escales', 'country of citizenship', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?m WHERE { resource:Norway property:diplomatic_relation ?m . FILTER NOT EXISTS { resource:Richard_Escales property:country_of_citizenship ?m } . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q16
SYSTEM
Australia, Canada
Q408 Q16
AND((Q20,P530,c(Q1048835)), NOT((Q1359915,P27,c(Q1048835))))
action filter_type
action difference
action find
entity Q20
relation P530
action find
entity Q1359915
relation P27
type Q1048835
[ANSWERS] have diplomatic relationships with Norway and are not the countries of citizenship of Richard Escales
{'AND': [['Q20', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q1359915', 'P27', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?m WHERE { resource:Q20 property:P530 ?m . FILTER NOT EXISTS { resource:Q1359915 property:P27 ?m } . ?m rdf:type ontology:Q1048835 }
Australia Canada
Australia and Canada have diplomatic relationships with Norway and are not the countries of citizenship of Richard Escales
Australia Canada
action filter_type
action difference
action find
entity Norway
relation diplomatic relation
action find
entity Richard Escales
relation country of citizenship
type political territorial entity
{'AND': [['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Richard Escales', 'country of citizenship', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?m WHERE { resource:Norway property:diplomatic_relation ?m . FILTER NOT EXISTS { resource:Richard_Escales property:country_of_citizenship ?m } . ?m rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q8066247 Q16
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relationships with Canada or do Zano belong to ?
OR((Q16,P530,c(Q15617994)), (Q8066247,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16
relation P530
action find
entity Q8066247
relation P17
type Q15617994
{'OR': [['Q16', 'P530', {'concept': 'Q15617994'}], ['Q8066247', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q16 property:P530 ?p } UNION { resource:Q8066247 property:P17 ?p } } . ?p rdf:type ontology:Q15617994 }
Zano Canada
action filter_type
action union
action find
entity Canada
relation diplomatic relation
action find
entity Zano
relation country
type designation for an administrative territorial entity
{'OR': [['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Zano', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Canada property:diplomatic_relation ?p } UNION { resource:Zano property:country ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q1030 Q258 Q739 Q252 Q212 Q843 Q229 Q423 Q851
SYSTEM
Some of them are Norway, Namibia, South Africa, Colombia, Indonesia, Ukraine, Pakistan, Cyprus, North Korea, Saudi Arabia
Q804 Q801 Q843 Q1029 Q1028 Q145 Q229 Q33 Q30 Q36 Q79 Q34 Q928 Q39 Q38 Q878 Q739 Q833 Q711 Q1030 Q851 Q29999 Q77 Q115 Q258 Q212 Q159 Q43 Q155 Q218 Q20 Q423 Q252 Q884 Q965
OR((Q16,P530,c(Q15617994)), (Q8066247,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16
relation P530
action find
entity Q8066247
relation P17
type Q15617994
[ANSWERS] have diplomatic relationships with Canada or do Zano belong to
{'OR': [['Q16', 'P530', {'concept': 'Q15617994'}], ['Q8066247', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q16 property:P530 ?p } UNION { resource:Q8066247 property:P17 ?p } } . ?p rdf:type ontology:Q15617994 }
Panama Israel Pakistan Mozambique Morocco United Kingdom Cyprus Finland United States of America Poland Egypt Sweden Philippines Switzerland Italy United Arab Emirates Colombia Malaysia Mongolia Namibia Saudi Arabia Kingdom of the Netherlands Uruguay Ethiopia South Africa Ukraine Russia Turkey Brazil Romania Norway North Korea Indonesia South Korea Burkina Faso
Norway, Namibia, South Africa, Colombia, Indonesia, Ukraine, Pakistan, Cyprus, North Korea and Saudi Arabia have diplomatic relationships with Canada or do Zano belong to
Norway Namibia South Africa Colombia Indonesia Ukraine Pakistan Cyprus North Korea Saudi Arabia
action filter_type
action union
action find
entity Canada
relation diplomatic relation
action find
entity Zano
relation country
type designation for an administrative territorial entity
{'OR': [['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Zano', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Canada property:diplomatic_relation ?p } UNION { resource:Zano property:country ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1784920
P530
Q1048835
USER
Do Santo Antônio do Palma have tactful political relations with those administrative territories ?
(Q1784920,P530,Q20) (Q1784920,P530,Q1030) (Q1784920,P530,Q258) (Q1784920,P530,Q739) (Q1784920,P530,Q252) (Q1784920,P530,Q212) (Q1784920,P530,Q843) (Q1784920,P530,Q229) (Q1784920,P530,Q423) (Q1784920,P530,Q851)
action is_in
entity prev_answer
action find
entity Q1784920
relation P530
['Q1784920', 'P530', 'Q20'] ['Q1784920', 'P530', 'Q1030'] ['Q1784920', 'P530', 'Q258'] ['Q1784920', 'P530', 'Q739'] ['Q1784920', 'P530', 'Q252'] ['Q1784920', 'P530', 'Q212'] ['Q1784920', 'P530', 'Q843'] ['Q1784920', 'P530', 'Q229'] ['Q1784920', 'P530', 'Q423'] ['Q1784920', 'P530', 'Q851']
ASK WHERE { resource:Q1784920 property:P530 ?r . VALUES ( ?r ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q843 ) } }
Santo Antônio do Palma
action is_in
entity prev_answer
action find
entity Santo Antônio do Palma
relation diplomatic relation
['Santo Antônio do Palma', 'diplomatic relation', 'Norway'] ['Santo Antônio do Palma', 'diplomatic relation', 'Namibia'] ['Santo Antônio do Palma', 'diplomatic relation', 'South Africa'] ['Santo Antônio do Palma', 'diplomatic relation', 'Colombia'] ['Santo Antônio do Palma', 'diplomatic relation', 'Indonesia'] ['Santo Antônio do Palma', 'diplomatic relation', 'Ukraine'] ['Santo Antônio do Palma', 'diplomatic relation', 'Pakistan'] ['Santo Antônio do Palma', 'diplomatic relation', 'Cyprus'] ['Santo Antônio do Palma', 'diplomatic relation', 'North Korea'] ['Santo Antônio do Palma', 'diplomatic relation', 'Saudi Arabia']
ASK WHERE { resource:Santo_Antônio_do_Palma property:diplomatic_relation ?r . VALUES ( ?r ) { ( resource:Panama ) ( resource:Israel ) ( resource:Pakistan ) } }
[]
political territorial entity
SYSTEM
NO
(Q1784920,P530,Q20) (Q1784920,P530,Q1030) (Q1784920,P530,Q258) (Q1784920,P530,Q739) (Q1784920,P530,Q252) (Q1784920,P530,Q212) (Q1784920,P530,Q843) (Q1784920,P530,Q229) (Q1784920,P530,Q423) (Q1784920,P530,Q851)
action is_in
entity prev_answer
action find
entity Q1784920
relation P530
[ANSWER]
['Q1784920', 'P530', 'Q20'] ['Q1784920', 'P530', 'Q1030'] ['Q1784920', 'P530', 'Q258'] ['Q1784920', 'P530', 'Q739'] ['Q1784920', 'P530', 'Q252'] ['Q1784920', 'P530', 'Q212'] ['Q1784920', 'P530', 'Q843'] ['Q1784920', 'P530', 'Q229'] ['Q1784920', 'P530', 'Q423'] ['Q1784920', 'P530', 'Q851']
ASK WHERE { resource:Q1784920 property:P530 ?r . VALUES ( ?r ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q843 ) } }
No
action is_in
entity prev_answer
action find
entity Santo Antônio do Palma
relation diplomatic relation
['Santo Antônio do Palma', 'diplomatic relation', 'Norway'] ['Santo Antônio do Palma', 'diplomatic relation', 'Namibia'] ['Santo Antônio do Palma', 'diplomatic relation', 'South Africa'] ['Santo Antônio do Palma', 'diplomatic relation', 'Colombia'] ['Santo Antônio do Palma', 'diplomatic relation', 'Indonesia'] ['Santo Antônio do Palma', 'diplomatic relation', 'Ukraine'] ['Santo Antônio do Palma', 'diplomatic relation', 'Pakistan'] ['Santo Antônio do Palma', 'diplomatic relation', 'Cyprus'] ['Santo Antônio do Palma', 'diplomatic relation', 'North Korea'] ['Santo Antônio do Palma', 'diplomatic relation', 'Saudi Arabia']
ASK WHERE { resource:Santo_Antônio_do_Palma property:diplomatic_relation ?r . VALUES ( ?r ) { ( resource:Panama ) ( resource:Israel ) ( resource:Pakistan ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q212 Q15850 Q189732
P35
Q502895
USER
Is Ukraine headed by Oleksandr Turchynov and Leonid Kravchuk ?
(Q212,P35,Q15850) (Q212,P35,Q189732)
action is_in
entity Q212
action intersection
action find_reverse
entity Q15850
relation P35
action find_reverse
entity Q189732
relation P35
['Q212', 'P35', 'Q15850'] ['Q212', 'P35', 'Q189732']
ASK WHERE { resource:Q212 property:P35 resource:Q15850 . resource:Q212 property:P35 resource:Q189732 }
Ukraine Oleksandr Turchynov Leonid Kravchuk
action is_in
entity Ukraine
action intersection
action find_reverse
entity Oleksandr Turchynov
relation head of state
action find_reverse
entity Leonid Kravchuk
relation head of state
['Ukraine', 'head of state', 'Oleksandr Turchynov'] ['Ukraine', 'head of state', 'Leonid Kravchuk']
ASK WHERE { resource:Ukraine property:head_of_state resource:Oleksandr_Turchynov . resource:Ukraine property:head_of_state resource:Leonid_Kravchuk }
[]
common name
SYSTEM
YES
(Q212,P35,Q15850) (Q212,P35,Q189732)
action is_in
entity Q212
action intersection
action find_reverse
entity Q15850
relation P35
action find_reverse
entity Q189732
relation P35
[ANSWER]
['Q212', 'P35', 'Q15850'] ['Q212', 'P35', 'Q189732']
ASK WHERE { resource:Q212 property:P35 resource:Q15850 . resource:Q212 property:P35 resource:Q189732 }
Yes
action is_in
entity Ukraine
action intersection
action find_reverse
entity Oleksandr Turchynov
relation head of state
action find_reverse
entity Leonid Kravchuk
relation head of state
['Ukraine', 'head of state', 'Oleksandr Turchynov'] ['Ukraine', 'head of state', 'Leonid Kravchuk']
ASK WHERE { resource:Ukraine property:head_of_state resource:Oleksandr_Turchynov . resource:Ukraine property:head_of_state resource:Leonid_Kravchuk }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1030 Q408
P530
Q1048835
USER
Does Australia have diplomatic relationships with Namibia ?
(Q1030,P530,Q408)
action is_in
entity Q408
action find
entity Q1030
relation P530
['Q1030', 'P530', 'Q408']
ASK WHERE { resource:Q1030 property:P530 resource:Q408 }
Namibia Australia
action is_in
entity Australia
action find
entity Namibia
relation diplomatic relation
['Namibia', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Namibia property:diplomatic_relation resource:Australia }
[]
political territorial entity
SYSTEM
YES
(Q1030,P530,Q408)
action is_in
entity Q408
action find
entity Q1030
relation P530
[ANSWER]
['Q1030', 'P530', 'Q408']
ASK WHERE { resource:Q1030 property:P530 resource:Q408 }
Yes
action is_in
entity Australia
action find
entity Namibia
relation diplomatic relation
['Namibia', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Namibia property:diplomatic_relation resource:Australia }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q408 Q691
P530
Q1048835
USER
Does Papua New Guinea have diplomatic relationships with Australia ?
(Q408,P530,Q691)
action is_in
entity Q691
action find
entity Q408
relation P530
['Q408', 'P530', 'Q691']
ASK WHERE { resource:Q408 property:P530 resource:Q691 }
Australia Papua New Guinea
action is_in
entity Papua New Guinea
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Papua New Guinea']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Papua_New_Guinea }
[]
political territorial entity
SYSTEM
YES
(Q408,P530,Q691)
action is_in
entity Q691
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q691']
ASK WHERE { resource:Q408 property:P530 resource:Q691 }
Yes
action is_in
entity Papua New Guinea
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Papua New Guinea']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Papua_New_Guinea }
[]