Simple Question (Direct)
Simple Question
Q6152261
P102
Q7210356
USER
Which political organization is Jane Garrett a member of ?
(Q6152261,P102,c(Q7210356))
action filter_type
action find
entity Q6152261
relation P102
type Q7210356
['Q6152261', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q6152261 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Jane Garrett
action filter_type
action find
entity Jane Garrett
relation member of political party
type political organization
['Jane Garrett', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:Jane_Garrett property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
political organization
Q216082
SYSTEM
Australian Labor Party
Q216082
(Q6152261,P102,c(Q7210356))
action filter_type
action find
entity Q6152261
relation P102
type Q7210356
Party [ANSWER] is Jane Garrett a member of
['Q6152261', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q6152261 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Australian Labor Party
Party Australian Labor Party is Jane Garrett a member of
Australian Labor Party
action filter_type
action find
entity Jane Garrett
relation member of political party
type political organization
['Jane Garrett', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:Jane_Garrett property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q216082
P127
Q4830453
USER
Which business enterprise is under posessision of that political organization ?
(c(Q4830453),P127,Q216082)
action filter_type
action find_reverse
entity Q216082
relation P127
type Q4830453
[{'concept': 'Q4830453'}, 'P127', 'Q216082']
SELECT DISTINCT ?o WHERE { ?o property:P127 resource:Q216082 . ?o rdf:type ontology:Q4830453 }
Australian Labor Party
action filter_type
action find_reverse
entity Australian Labor Party
relation owned by
type business enterprise
[{'concept': 'business enterprise'}, 'owned by', 'Australian Labor Party']
SELECT DISTINCT ?o WHERE { ?o property:owned_by resource:Australian_Labor_Party . ?o rdf:type ontology:business_enterprise }
[]
business enterprise
Q6227969
SYSTEM
John Curtin House
Q6227969
(c(Q4830453),P127,Q216082)
action filter_type
action find_reverse
entity Q216082
relation P127
type Q4830453
[ANSWER] is under posessision of that political organization
[{'concept': 'Q4830453'}, 'P127', 'Q216082']
SELECT DISTINCT ?o WHERE { ?o property:P127 resource:Q216082 . ?o rdf:type ontology:Q4830453 }
John Curtin House
John Curtin House is under posessision of that political organization
John Curtin House
action filter_type
action find_reverse
entity Australian Labor Party
relation owned by
type business enterprise
[{'concept': 'business enterprise'}, 'owned by', 'Australian Labor Party']
SELECT DISTINCT ?o WHERE { ?o property:owned_by resource:Australian_Labor_Party . ?o rdf:type ontology:business_enterprise }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1651719 Q216082
P47 P1001
Q1048835
USER
Which political territories come under the jurisdiction of Australian Labor Party or have a shared border with Torrelobatón ?
OR((Q216082,P1001,c(Q1048835)), (Q1651719,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q216082
relation P1001
action find
entity Q1651719
relation P47
type Q1048835
{'OR': [['Q216082', 'P1001', {'concept': 'Q1048835'}], ['Q1651719', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q1651719 property:P47 ?k } UNION { resource:Q216082 property:P1001 ?k } } . ?k rdf:type ontology:Q1048835 }
Torrelobatón Australian Labor Party
action filter_type
action union
action find
entity Australian Labor Party
relation applies to jurisdiction
action find
entity Torrelobatón
relation shares border with
type political territorial entity
{'OR': [['Australian Labor Party', 'applies to jurisdiction', {'concept': 'political territorial entity'}], ['Torrelobatón', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Torrelobatón property:shares_border_with ?k } UNION { resource:Australian_Labor_Party property:applies_to_jurisdiction ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q971452 Q1765499 Q1907020 Q644732 Q389667 Q408 Q1919463 Q1929361 Q1921104 Q1769692
SYSTEM
Some of them are Castrodeza, Torrecilla de la Torre, Robladillo, Wamba, Villasexmir, Australia, Peñaflor de Hornija, Bercero, Velliza, Barruelo del Valle
Q1921104 Q1776841 Q644732 Q1919463 Q1929361 Q1907020 Q1921076 Q1866943 Q408 Q1765499 Q1769692 Q1907214 Q971452 Q389667 Q1921068
OR((Q216082,P1001,c(Q1048835)), (Q1651719,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q216082
relation P1001
action find
entity Q1651719
relation P47
type Q1048835
[ANSWERS] come under the jurisdiction of Australian Labor Party or have a shared border with Torrelobatón
{'OR': [['Q216082', 'P1001', {'concept': 'Q1048835'}], ['Q1651719', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q1651719 property:P47 ?k } UNION { resource:Q216082 property:P1001 ?k } } . ?k rdf:type ontology:Q1048835 }
Velliza Berceruelo Wamba Peñaflor de Hornija Bercero Robladillo Ciguñuela San Pelayo Australia Torrecilla de la Torre Barruelo del Valle Castromonte Castrodeza Villasexmir Villán de Tordesillas
Castrodeza, Torrecilla de la Torre, Robladillo, Wamba, Villasexmir, Australia, Peñaflor de Hornija, Bercero, Velliza and Barruelo del Valle come under the jurisdiction of Australian Labor Party or have a shared border with Torrelobatón
Castrodeza Torrecilla de la Torre Robladillo Wamba Villasexmir Australia Peñaflor de Hornija Bercero Velliza Barruelo del Valle
action filter_type
action union
action find
entity Australian Labor Party
relation applies to jurisdiction
action find
entity Torrelobatón
relation shares border with
type political territorial entity
{'OR': [['Australian Labor Party', 'applies to jurisdiction', {'concept': 'political territorial entity'}], ['Torrelobatón', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Torrelobatón property:shares_border_with ?k } UNION { resource:Australian_Labor_Party property:applies_to_jurisdiction ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q971452 Q1765499 Q1907020 Q644732 Q389667 Q408 Q1919463 Q1929361 Q1921104 Q1769692
P1313
Q12737077
USER
Which occupations are fulfilled by Castrodeza, Torrecilla de la Torre, Robladillo, Wamba, Villasexmir, Australia, Peñaflor de Hornija, Bercero, Velliza and Barruelo del Valle ?
(Q971452,P1313,c(Q12737077)) (Q1765499,P1313,c(Q12737077)) (Q1907020,P1313,c(Q12737077)) (Q644732,P1313,c(Q12737077)) (Q389667,P1313,c(Q12737077)) (Q408,P1313,c(Q12737077)) (Q1919463,P1313,c(Q12737077)) (Q1929361,P1313,c(Q12737077)) (Q1921104,P1313,c(Q12737077)) (Q1769692,P1313,c(Q12737077))
action union
action filter_type
action find
entity Q971452
relation P1313
type Q12737077
action filter_type
action find
entity Q1765499
relation P1313
type Q12737077
action filter_type
action find
entity Q1907020
relation P1313
type Q12737077
action filter_type
action find
entity Q644732
relation P1313
type Q12737077
action filter_type
action find
entity Q389667
relation P1313
type Q12737077
action filter_type
action find
entity Q408
relation P1313
type Q12737077
action filter_type
action find
entity Q1919463
relation P1313
type Q12737077
action filter_type
action find
entity Q1929361
relation P1313
type Q12737077
action filter_type
action find
entity Q1921104
relation P1313
type Q12737077
action filter_type
action find
entity Q1769692
relation P1313
type Q12737077
['Q971452', 'P1313', {'concept': 'Q12737077'}] ['Q1765499', 'P1313', {'concept': 'Q12737077'}] ['Q1907020', 'P1313', {'concept': 'Q12737077'}] ['Q644732', 'P1313', {'concept': 'Q12737077'}] ['Q389667', 'P1313', {'concept': 'Q12737077'}] ['Q408', 'P1313', {'concept': 'Q12737077'}] ['Q1919463', 'P1313', {'concept': 'Q12737077'}] ['Q1929361', 'P1313', {'concept': 'Q12737077'}] ['Q1921104', 'P1313', {'concept': 'Q12737077'}] ['Q1769692', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { { resource:Q971452 property:P1313 ?r . ?r rdf:type ontology:Q12737077 } UNION { resource:Q1765499 property:P1313 ?r . ?r rdf:type ontology:Q12737077 } }
Castrodeza Torrecilla de la Torre Robladillo Wamba Villasexmir Australia Peñaflor de Hornija Bercero Velliza Barruelo del Valle
action union
action filter_type
action find
entity Castrodeza
relation office held by head of government
type occupation
action filter_type
action find
entity Torrecilla de la Torre
relation office held by head of government
type occupation
action filter_type
action find
entity Robladillo
relation office held by head of government
type occupation
action filter_type
action find
entity Wamba
relation office held by head of government
type occupation
action filter_type
action find
entity Villasexmir
relation office held by head of government
type occupation
action filter_type
action find
entity Australia
relation office held by head of government
type occupation
action filter_type
action find
entity Peñaflor de Hornija
relation office held by head of government
type occupation
action filter_type
action find
entity Bercero
relation office held by head of government
type occupation
action filter_type
action find
entity Velliza
relation office held by head of government
type occupation
action filter_type
action find
entity Barruelo del Valle
relation office held by head of government
type occupation
['Castrodeza', 'office held by head of government', {'concept': 'occupation'}] ['Torrecilla de la Torre', 'office held by head of government', {'concept': 'occupation'}] ['Robladillo', 'office held by head of government', {'concept': 'occupation'}] ['Wamba', 'office held by head of government', {'concept': 'occupation'}] ['Villasexmir', 'office held by head of government', {'concept': 'occupation'}] ['Australia', 'office held by head of government', {'concept': 'occupation'}] ['Peñaflor de Hornija', 'office held by head of government', {'concept': 'occupation'}] ['Bercero', 'office held by head of government', {'concept': 'occupation'}] ['Velliza', 'office held by head of government', {'concept': 'occupation'}] ['Barruelo del Valle', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { { resource:Castrodeza property:office_held_by_head_of_government ?r . ?r rdf:type ontology:occupation } UNION { resource:Torrecilla_de_la_Torre property:office_held_by_head_of_government ?r . ?r rdf:type ontology:occupation } }
[]
occupation
Q319145 Q26701367 Q26695460
SYSTEM
Prime Minister of Australia, mayor of Castrodeza, mayor of Torrecilla de la Torre
Q26701367 Q26695460 Q26696914 Q26699375 Q26698139 Q319145 Q26697190 Q26697329 Q26697250 Q26696438
(Q971452,P1313,c(Q12737077)) (Q1765499,P1313,c(Q12737077)) (Q1907020,P1313,c(Q12737077)) (Q644732,P1313,c(Q12737077)) (Q389667,P1313,c(Q12737077)) (Q408,P1313,c(Q12737077)) (Q1919463,P1313,c(Q12737077)) (Q1929361,P1313,c(Q12737077)) (Q1921104,P1313,c(Q12737077)) (Q1769692,P1313,c(Q12737077))
action union
action filter_type
action find
entity Q971452
relation P1313
type Q12737077
action filter_type
action find
entity Q1765499
relation P1313
type Q12737077
action filter_type
action find
entity Q1907020
relation P1313
type Q12737077
action filter_type
action find
entity Q644732
relation P1313
type Q12737077
action filter_type
action find
entity Q389667
relation P1313
type Q12737077
action filter_type
action find
entity Q408
relation P1313
type Q12737077
action filter_type
action find
entity Q1919463
relation P1313
type Q12737077
action filter_type
action find
entity Q1929361
relation P1313
type Q12737077
action filter_type
action find
entity Q1921104
relation P1313
type Q12737077
action filter_type
action find
entity Q1769692
relation P1313
type Q12737077
[ANSWERS] are fulfilled by Castrodeza, Torrecilla de la Torre, Robladillo, Wamba, Villasexmir, Australia, Peñaflor de Hornija, Bercero, Velliza and Barruelo del Valle
['Q971452', 'P1313', {'concept': 'Q12737077'}] ['Q1765499', 'P1313', {'concept': 'Q12737077'}] ['Q1907020', 'P1313', {'concept': 'Q12737077'}] ['Q644732', 'P1313', {'concept': 'Q12737077'}] ['Q389667', 'P1313', {'concept': 'Q12737077'}] ['Q408', 'P1313', {'concept': 'Q12737077'}] ['Q1919463', 'P1313', {'concept': 'Q12737077'}] ['Q1929361', 'P1313', {'concept': 'Q12737077'}] ['Q1921104', 'P1313', {'concept': 'Q12737077'}] ['Q1769692', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { { resource:Q971452 property:P1313 ?r . ?r rdf:type ontology:Q12737077 } UNION { resource:Q1765499 property:P1313 ?r . ?r rdf:type ontology:Q12737077 } }
mayor of Castrodeza mayor of Torrecilla de la Torre mayor of Robladillo mayor of Wamba mayor of Villasexmir Prime Minister of Australia mayor of Peñaflor de Hornija mayor of Bercero mayor of Velliza mayor of Barruelo del Valle
Prime Minister of Australia, mayor of Castrodeza and mayor of Torrecilla de la Torre are fulfilled by Castrodeza, Torrecilla de la Torre, Robladillo, Wamba, Villasexmir, Australia, Peñaflor de Hornija, Bercero, Velliza and Barruelo del Valle
Prime Minister of Australia mayor of Castrodeza mayor of Torrecilla de la Torre
action union
action filter_type
action find
entity Castrodeza
relation office held by head of government
type occupation
action filter_type
action find
entity Torrecilla de la Torre
relation office held by head of government
type occupation
action filter_type
action find
entity Robladillo
relation office held by head of government
type occupation
action filter_type
action find
entity Wamba
relation office held by head of government
type occupation
action filter_type
action find
entity Villasexmir
relation office held by head of government
type occupation
action filter_type
action find
entity Australia
relation office held by head of government
type occupation
action filter_type
action find
entity Peñaflor de Hornija
relation office held by head of government
type occupation
action filter_type
action find
entity Bercero
relation office held by head of government
type occupation
action filter_type
action find
entity Velliza
relation office held by head of government
type occupation
action filter_type
action find
entity Barruelo del Valle
relation office held by head of government
type occupation
['Castrodeza', 'office held by head of government', {'concept': 'occupation'}] ['Torrecilla de la Torre', 'office held by head of government', {'concept': 'occupation'}] ['Robladillo', 'office held by head of government', {'concept': 'occupation'}] ['Wamba', 'office held by head of government', {'concept': 'occupation'}] ['Villasexmir', 'office held by head of government', {'concept': 'occupation'}] ['Australia', 'office held by head of government', {'concept': 'occupation'}] ['Peñaflor de Hornija', 'office held by head of government', {'concept': 'occupation'}] ['Bercero', 'office held by head of government', {'concept': 'occupation'}] ['Velliza', 'office held by head of government', {'concept': 'occupation'}] ['Barruelo del Valle', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { { resource:Castrodeza property:office_held_by_head_of_government ?r . ?r rdf:type ontology:occupation } UNION { resource:Torrecilla_de_la_Torre property:office_held_by_head_of_government ?r . ?r rdf:type ontology:occupation } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q319145 Q26701367 Q26695460
P1313
Q1048835
USER
Which political territories have those occupations as position of head of government ?
(c(Q1048835),P1313,Q319145) (c(Q1048835),P1313,Q26701367) (c(Q1048835),P1313,Q26695460)
action filter_type
action find_reverse
entity prev_answer
relation P1313
type Q1048835
[{'concept': 'Q1048835'}, 'P1313', 'Q319145'] [{'concept': 'Q1048835'}, 'P1313', 'Q26701367'] [{'concept': 'Q1048835'}, 'P1313', 'Q26695460']
SELECT DISTINCT ?l WHERE { ?l property:P1313 ?h . ?l rdf:type ontology:Q1048835 . VALUES ( ?h ) { ( resource:Q26701367 ) ( resource:Q26695460 ) ( resource:Q26696914 ) } }
Prime Minister of Australia mayor of Castrodeza mayor of Torrecilla de la Torre
action filter_type
action find_reverse
entity prev_answer
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'Prime Minister of Australia'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Castrodeza'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Torrecilla de la Torre']
SELECT DISTINCT ?l WHERE { ?l property:office_held_by_head_of_government ?h . ?l rdf:type ontology:political_territorial_entity . VALUES ( ?h ) { ( resource:mayor_of_Castrodeza ) ( resource:mayor_of_Torrecilla_de_la_Torre ) ( resource:mayor_of_Robladillo ) } }
[]
political territorial entity
Q408 Q971452 Q1765499
SYSTEM
Australia, Castrodeza, Torrecilla de la Torre
Q408 Q971452 Q1765499
(c(Q1048835),P1313,Q319145) (c(Q1048835),P1313,Q26701367) (c(Q1048835),P1313,Q26695460)
action filter_type
action find_reverse
entity prev_answer
relation P1313
type Q1048835
[ANSWERS] have those occupations as position of head of government
[{'concept': 'Q1048835'}, 'P1313', 'Q319145'] [{'concept': 'Q1048835'}, 'P1313', 'Q26701367'] [{'concept': 'Q1048835'}, 'P1313', 'Q26695460']
SELECT DISTINCT ?l WHERE { ?l property:P1313 ?h . ?l rdf:type ontology:Q1048835 . VALUES ( ?h ) { ( resource:Q26701367 ) ( resource:Q26695460 ) ( resource:Q26696914 ) } }
Australia Castrodeza Torrecilla de la Torre
Australia, Castrodeza and Torrecilla de la Torre have those occupations as position of head of government
Australia Castrodeza Torrecilla de la Torre
action filter_type
action find_reverse
entity prev_answer
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'Prime Minister of Australia'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Castrodeza'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Torrecilla de la Torre']
SELECT DISTINCT ?l WHERE { ?l property:office_held_by_head_of_government ?h . ?l rdf:type ontology:political_territorial_entity . VALUES ( ?h ) { ( resource:mayor_of_Castrodeza ) ( resource:mayor_of_Torrecilla_de_la_Torre ) ( resource:mayor_of_Robladillo ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q408 Q971452 Q1765499
P47
Q1048835
USER
Which political territories have an adjacent border with Australia, Castrodeza and Torrecilla de la Torre ?
(c(Q1048835),P47,Q408) (c(Q1048835),P47,Q971452) (c(Q1048835),P47,Q1765499)
action union
action filter_type
action find_reverse
entity Q408
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q971452
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q1765499
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q408'] [{'concept': 'Q1048835'}, 'P47', 'Q971452'] [{'concept': 'Q1048835'}, 'P47', 'Q1765499']
SELECT DISTINCT ?s WHERE { VALUES ( ?d ) { ( resource:Q408 ) ( resource:Q971452 ) } . ?s property:P47 ?d }
Australia Castrodeza Torrecilla de la Torre
action union
action filter_type
action find_reverse
entity Australia
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Castrodeza
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Torrecilla de la Torre
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Australia'] [{'concept': 'political territorial entity'}, 'shares border with', 'Castrodeza'] [{'concept': 'political territorial entity'}, 'shares border with', 'Torrecilla de la Torre']
SELECT DISTINCT ?s WHERE { VALUES ( ?d ) { ( resource:Australia ) ( resource:Castrodeza ) } . ?s property:shares_border_with ?d }
[]
political territorial entity
Q664 Q691 Q1651719
SYSTEM
New Zealand, Papua New Guinea, Torrelobatón
Q5095 Q664 Q691 Q1651719 Q1651719
(c(Q1048835),P47,Q408) (c(Q1048835),P47,Q971452) (c(Q1048835),P47,Q1765499)
action union
action filter_type
action find_reverse
entity Q408
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q971452
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q1765499
relation P47
type Q1048835
[ANSWERS] have an adjacent border with Australia, Castrodeza and Torrecilla de la Torre
[{'concept': 'Q1048835'}, 'P47', 'Q408'] [{'concept': 'Q1048835'}, 'P47', 'Q971452'] [{'concept': 'Q1048835'}, 'P47', 'Q1765499']
SELECT DISTINCT ?s WHERE { VALUES ( ?d ) { ( resource:Q408 ) ( resource:Q971452 ) } . ?s property:P47 ?d }
Papua New Zealand Papua New Guinea Torrelobatón Torrelobatón
New Zealand, Papua New Guinea and Torrelobatón have an adjacent border with Australia, Castrodeza and Torrecilla de la Torre
New Zealand Papua New Guinea Torrelobatón
action union
action filter_type
action find_reverse
entity Australia
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Castrodeza
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Torrecilla de la Torre
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Australia'] [{'concept': 'political territorial entity'}, 'shares border with', 'Castrodeza'] [{'concept': 'political territorial entity'}, 'shares border with', 'Torrecilla de la Torre']
SELECT DISTINCT ?s WHERE { VALUES ( ?d ) { ( resource:Australia ) ( resource:Castrodeza ) } . ?s property:shares_border_with ?d }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q664 Q691 Q1651719
P47
Q1048835
USER
Which political territories are adjacent to those ones ?
(Q664,P47,c(Q1048835)) (Q691,P47,c(Q1048835)) (Q1651719,P47,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P47
type Q1048835
['Q664', 'P47', {'concept': 'Q1048835'}] ['Q691', 'P47', {'concept': 'Q1048835'}] ['Q1651719', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1048835 . VALUES ( ?j ) { ( resource:Q5095 ) ( resource:Q664 ) ( resource:Q691 ) } . ?j property:P47 ?i }
New Zealand Papua New Guinea Torrelobatón
action filter_type
action find
entity prev_answer
relation shares border with
type political territorial entity
['New Zealand', 'shares border with', {'concept': 'political territorial entity'}] ['Papua New Guinea', 'shares border with', {'concept': 'political territorial entity'}] ['Torrelobatón', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:political_territorial_entity . VALUES ( ?j ) { ( resource:Papua ) ( resource:New_Zealand ) ( resource:Papua_New_Guinea ) } . ?j property:shares_border_with ?i }
[]
political territorial entity
Q408 Q408 Q5095
SYSTEM
Australia for 1st, 2nd, Papua for 3rd
Q408 Q408 Q5095 Q1921104 Q1776841 Q644732 Q1919463 Q1929361 Q1907020 Q1921076 Q1866943 Q1765499 Q1769692 Q1907214 Q971452 Q389667 Q1921068
(Q664,P47,c(Q1048835)) (Q691,P47,c(Q1048835)) (Q1651719,P47,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P47
type Q1048835
[ANSWERS]
['Q664', 'P47', {'concept': 'Q1048835'}] ['Q691', 'P47', {'concept': 'Q1048835'}] ['Q1651719', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1048835 . VALUES ( ?j ) { ( resource:Q5095 ) ( resource:Q664 ) ( resource:Q691 ) } . ?j property:P47 ?i }
Australia Australia Papua Velliza Berceruelo Wamba Peñaflor de Hornija Bercero Robladillo Ciguñuela San Pelayo Torrecilla de la Torre Barruelo del Valle Castromonte Castrodeza Villasexmir Villán de Tordesillas
Australia, Australia and Papua are adjacent to those ones
Australia Australia Papua
action filter_type
action find
entity prev_answer
relation shares border with
type political territorial entity
['New Zealand', 'shares border with', {'concept': 'political territorial entity'}] ['Papua New Guinea', 'shares border with', {'concept': 'political territorial entity'}] ['Torrelobatón', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:political_territorial_entity . VALUES ( ?j ) { ( resource:Papua ) ( resource:New_Zealand ) ( resource:Papua_New_Guinea ) } . ?j property:shares_border_with ?i }
[]