Simple Question (Direct)
Simple Question
Q908694
P1376
Q20667921
USER
Which french administrative division has Courtenay as its county seat ?
(Q908694,P1376,c(Q20667921))
action filter_type
action find
entity Q908694
relation P1376
type Q20667921
['Q908694', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { resource:Q908694 property:P1376 ?v . ?v rdf:type ontology:Q20667921 }
Courtenay
action filter_type
action find
entity Courtenay
relation capital of
type type of french administrative division
['Courtenay', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { resource:Courtenay property:capital_of ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1463910
SYSTEM
canton of Courtenay
Q1463910
(Q908694,P1376,c(Q20667921))
action filter_type
action find
entity Q908694
relation P1376
type Q20667921
The [ANSWER] has Courtenay as its county seat
['Q908694', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { resource:Q908694 property:P1376 ?v . ?v rdf:type ontology:Q20667921 }
canton of Courtenay
The canton of Courtenay has Courtenay as its county seat
canton of Courtenay
action filter_type
action find
entity Courtenay
relation capital of
type type of french administrative division
['Courtenay', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { resource:Courtenay property:capital_of ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q908694
P36
Q20667921
USER
Which french administrative division is Courtenay the capital of ?
(c(Q20667921),P36,Q908694)
action filter_type
action find_reverse
entity Q908694
relation P36
type Q20667921
[{'concept': 'Q20667921'}, 'P36', 'Q908694']
SELECT DISTINCT ?s WHERE { ?s property:P36 resource:Q908694 . ?s rdf:type ontology:Q20667921 }
Courtenay
action filter_type
action find_reverse
entity Courtenay
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Courtenay']
SELECT DISTINCT ?s WHERE { ?s property:capital resource:Courtenay . ?s rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1463910
SYSTEM
canton of Courtenay
Q1463910
(c(Q20667921),P36,Q908694)
action filter_type
action find_reverse
entity Q908694
relation P36
type Q20667921
Which french administrative division is Courtenay the capital of
[{'concept': 'Q20667921'}, 'P36', 'Q908694']
SELECT DISTINCT ?s WHERE { ?s property:P36 resource:Q908694 . ?s rdf:type ontology:Q20667921 }
canton of Courtenay
Which french administrative division is Courtenay the capital of
canton of Courtenay
action filter_type
action find_reverse
entity Courtenay
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Courtenay']
SELECT DISTINCT ?s WHERE { ?s property:capital resource:Courtenay . ?s rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1463910
P17
Q15617994
USER
Which administrative territory is that french administrative division a part of ?
(Q1463910,P17,c(Q15617994))
action filter_type
action find
entity Q1463910
relation P17
type Q15617994
['Q1463910', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q1463910 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
canton of Courtenay
action filter_type
action find
entity canton of Courtenay
relation country
type designation for an administrative territorial entity
['canton of Courtenay', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:canton_of_Courtenay property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q1463910,P17,c(Q15617994))
action filter_type
action find
entity Q1463910
relation P17
type Q15617994
[ANSWER] is that french administrative division a part of
['Q1463910', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q1463910 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
France
France is that french administrative division a part of
France
action filter_type
action find
entity canton of Courtenay
relation country
type designation for an administrative territorial entity
['canton of Courtenay', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:canton_of_Courtenay property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P194
Q1752346
USER
Which assembly is the representative body for that administrative territory ?
(Q142,P194,c(Q1752346))
action filter_type
action find
entity Q142
relation P194
type Q1752346
['Q142', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?y WHERE { resource:Q142 property:P194 ?y . ?y rdf:type ontology:Q1752346 }
France
action filter_type
action find
entity France
relation legislative body
type assembly
['France', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?y WHERE { resource:France property:legislative_body ?y . ?y rdf:type ontology:assembly }
[]
assembly
Q632552
SYSTEM
French Parliament
Q632552
(Q142,P194,c(Q1752346))
action filter_type
action find
entity Q142
relation P194
type Q1752346
[ANSWER] is the representative body for that administrative territory
['Q142', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?y WHERE { resource:Q142 property:P194 ?y . ?y rdf:type ontology:Q1752346 }
French Parliament
French Parliament is the representative body for that administrative territory
French Parliament
action filter_type
action find
entity France
relation legislative body
type assembly
['France', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?y WHERE { resource:France property:legislative_body ?y . ?y rdf:type ontology:assembly }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1642738 Q908694
P17
Q15617994
USER
Which administrative territories are Courtenay or Regumiel de la Sierra situated in ?
OR((Q908694,P17,c(Q15617994)), (Q1642738,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q908694
relation P17
action find
entity Q1642738
relation P17
type Q15617994
{'OR': [['Q908694', 'P17', {'concept': 'Q15617994'}], ['Q1642738', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q908694 property:P17 ?b } UNION { resource:Q1642738 property:P17 ?b } } . ?b rdf:type ontology:Q15617994 }
Regumiel de la Sierra Courtenay
action filter_type
action union
action find
entity Courtenay
relation country
action find
entity Regumiel de la Sierra
relation country
type designation for an administrative territorial entity
{'OR': [['Courtenay', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Regumiel de la Sierra', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Courtenay property:country ?b } UNION { resource:Regumiel_de_la_Sierra property:country ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q29
SYSTEM
France, Spain
Q142 Q29
OR((Q908694,P17,c(Q15617994)), (Q1642738,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q908694
relation P17
action find
entity Q1642738
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q908694', 'P17', {'concept': 'Q15617994'}], ['Q1642738', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q908694 property:P17 ?b } UNION { resource:Q1642738 property:P17 ?b } } . ?b rdf:type ontology:Q15617994 }
France Spain
Which administrative territories are Courtenay or Regumiel de la Sierra situated in
France Spain
action filter_type
action union
action find
entity Courtenay
relation country
action find
entity Regumiel de la Sierra
relation country
type designation for an administrative territorial entity
{'OR': [['Courtenay', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Regumiel de la Sierra', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Courtenay property:country ?b } UNION { resource:Regumiel_de_la_Sierra property:country ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4927483
P495
Q838948
USER
Do Blondie Has Servant Trouble have those administrative territories as their place of origin ?
(Q4927483,P495,Q142) (Q4927483,P495,Q29)
action is_in
entity prev_answer
action find
entity Q4927483
relation P495
['Q4927483', 'P495', 'Q142'] ['Q4927483', 'P495', 'Q29']
ASK WHERE { resource:Q4927483 property:P495 ?p . VALUES ( ?p ) { ( resource:Q142 ) ( resource:Q29 ) } }
Blondie Has Servant Trouble
action is_in
entity prev_answer
action find
entity Blondie Has Servant Trouble
relation country of origin
['Blondie Has Servant Trouble', 'country of origin', 'France'] ['Blondie Has Servant Trouble', 'country of origin', 'Spain']
ASK WHERE { resource:Blondie_Has_Servant_Trouble property:country_of_origin ?p . VALUES ( ?p ) { ( resource:France ) ( resource:Spain ) } }
[]
work of art
SYSTEM
NO
(Q4927483,P495,Q142) (Q4927483,P495,Q29)
action is_in
entity prev_answer
action find
entity Q4927483
relation P495
[ANSWER]
['Q4927483', 'P495', 'Q142'] ['Q4927483', 'P495', 'Q29']
ASK WHERE { resource:Q4927483 property:P495 ?p . VALUES ( ?p ) { ( resource:Q142 ) ( resource:Q29 ) } }
No
action is_in
entity prev_answer
action find
entity Blondie Has Servant Trouble
relation country of origin
['Blondie Has Servant Trouble', 'country of origin', 'France'] ['Blondie Has Servant Trouble', 'country of origin', 'Spain']
ASK WHERE { resource:Blondie_Has_Servant_Trouble property:country_of_origin ?p . VALUES ( ?p ) { ( resource:France ) ( resource:Spain ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q632552 Q284696 Q3754387
P17
Q15617994
USER
Is French Parliament situated in Oberelsbach and Fundación, Barahona ?
(Q632552,P17,Q284696) (Q632552,P17,Q3754387)
action is_in
entity Q632552
action intersection
action find_reverse
entity Q284696
relation P17
action find_reverse
entity Q3754387
relation P17
['Q632552', 'P17', 'Q284696'] ['Q632552', 'P17', 'Q3754387']
ASK WHERE { resource:Q632552 property:P17 resource:Q3754387 . resource:Q632552 property:P17 resource:Q284696 }
French Parliament Oberelsbach Fundación, Barahona
action is_in
entity French Parliament
action intersection
action find_reverse
entity Oberelsbach
relation country
action find_reverse
entity Fundación, Barahona
relation country
['French Parliament', 'country', 'Oberelsbach'] ['French Parliament', 'country', 'Fundación, Barahona']
ASK WHERE { resource:French_Parliament property:country resource:Fundación,_Barahona . resource:French_Parliament property:country resource:Oberelsbach }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q632552,P17,Q284696) (Q632552,P17,Q3754387)
action is_in
entity Q632552
action intersection
action find_reverse
entity Q284696
relation P17
action find_reverse
entity Q3754387
relation P17
[ANSWER]
['Q632552', 'P17', 'Q284696'] ['Q632552', 'P17', 'Q3754387']
ASK WHERE { resource:Q632552 property:P17 resource:Q3754387 . resource:Q632552 property:P17 resource:Q284696 }
No
action is_in
entity French Parliament
action intersection
action find_reverse
entity Oberelsbach
relation country
action find_reverse
entity Fundación, Barahona
relation country
['French Parliament', 'country', 'Oberelsbach'] ['French Parliament', 'country', 'Fundación, Barahona']
ASK WHERE { resource:French_Parliament property:country resource:Fundación,_Barahona . resource:French_Parliament property:country resource:Oberelsbach }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q632552
P50
Q846882
USER
Which sources of law is that assembly an author of ?
action filter_type
action find_reverse
entity Q632552
relation P50
type Q846882
SELECT DISTINCT ?q WHERE { ?q property:P50 resource:Q632552 . ?q rdf:type ontology:Q846882 }
French Parliament
action filter_type
action find_reverse
entity French Parliament
relation author
type sources of law
SELECT DISTINCT ?q WHERE { ?q property:author resource:French_Parliament . ?q rdf:type ontology:sources_of_law }
[]
sources of law
Q1191704
SYSTEM
Tris(1-aziridinyl)phosphine oxide
Q1191704
action filter_type
action find_reverse
entity Q632552
relation P50
type Q846882
Of [ANSWER] is that assembly an author of
SELECT DISTINCT ?q WHERE { ?q property:P50 resource:Q632552 . ?q rdf:type ontology:Q846882 }
Tris(1-aziridinyl)phosphine oxide
Of Tris(1-aziridinyl)phosphine oxide is that assembly an author of
Tris(1-aziridinyl)phosphine oxide
action filter_type
action find_reverse
entity French Parliament
relation author
type sources of law
SELECT DISTINCT ?q WHERE { ?q property:author resource:French_Parliament . ?q rdf:type ontology:sources_of_law }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2839728 Q1191704
P27 P1001
Q15617994
USER
Which administrative territories come under the supervision of Tris(1-aziridinyl)phosphine oxide or are the native countriesof Alphonse Boistel ?
OR((Q1191704,P1001,c(Q15617994)), (Q2839728,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1191704
relation P1001
action find
entity Q2839728
relation P27
type Q15617994
{'OR': [['Q1191704', 'P1001', {'concept': 'Q15617994'}], ['Q2839728', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q2839728 property:P27 ?i } UNION { resource:Q1191704 property:P1001 ?i } } . ?i rdf:type ontology:Q15617994 }
Alphonse Boistel Tris(1-aziridinyl)phosphine oxide
action filter_type
action union
action find
entity Tris(1-aziridinyl)phosphine oxide
relation applies to jurisdiction
action find
entity Alphonse Boistel
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Tris(1-aziridinyl)phosphine oxide', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['Alphonse Boistel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Alphonse_Boistel property:country_of_citizenship ?i } UNION { resource:Tris(1-aziridinyl)phosphine_oxide property:applies_to_jurisdiction ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
OR((Q1191704,P1001,c(Q15617994)), (Q2839728,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1191704
relation P1001
action find
entity Q2839728
relation P27
type Q15617994
[ANSWER] come under the supervision of Tris(1-aziridinyl)phosphine oxide or are the native countriesof Alphonse Boistel
{'OR': [['Q1191704', 'P1001', {'concept': 'Q15617994'}], ['Q2839728', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q2839728 property:P27 ?i } UNION { resource:Q1191704 property:P1001 ?i } } . ?i rdf:type ontology:Q15617994 }
France
France come under the supervision of Tris(1-aziridinyl)phosphine oxide or are the native countriesof Alphonse Boistel
France
action filter_type
action union
action find
entity Tris(1-aziridinyl)phosphine oxide
relation applies to jurisdiction
action find
entity Alphonse Boistel
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Tris(1-aziridinyl)phosphine oxide', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['Alphonse Boistel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Alphonse_Boistel property:country_of_citizenship ?i } UNION { resource:Tris(1-aziridinyl)phosphine_oxide property:applies_to_jurisdiction ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with min number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?d ) { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?e ) WHERE { ?t property:P530 ?a . ?t rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?t } } . { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?h ) WHERE { ?n property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q1048835 } GROUP BY ?n } . FILTER ( ?h = ?d ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?d ) { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?e ) WHERE { ?t property:diplomatic_relation ?a . ?t rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } } . { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?h ) WHERE { ?n property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?n } . FILTER ( ?h = ?d ) }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic relations with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?d ) { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?e ) WHERE { ?t property:P530 ?a . ?t rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?t } } . { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?h ) WHERE { ?n property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q1048835 } GROUP BY ?n } . FILTER ( ?h = ?d ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea have diplomatic relations with min number of administrative territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?d ) { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?e ) WHERE { ?t property:diplomatic_relation ?a . ?t rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } } . { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?h ) WHERE { ?n property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?n } . FILTER ( ?h = ?d ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q691
P30
Q2221906
USER
Which geographic location is that political territory located in ?
(Q691,P30,c(Q2221906))
action filter_type
action find
entity Q691
relation P30
type Q2221906
['Q691', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?f WHERE { resource:Q691 property:P30 ?f . ?f rdf:type ontology:Q2221906 }
Papua New Guinea
action filter_type
action find
entity Papua New Guinea
relation continent
type geographic location
['Papua New Guinea', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?f WHERE { resource:Papua_New_Guinea property:continent ?f . ?f rdf:type ontology:geographic_location }
[]
geographic location
Clarification for simple ques.
Q691
SYSTEM
Did you mean Papua New Guinea ?
Q1000 Q769 Q691
(Q1000,P30,c(Q2221906)) (Q769,P30,c(Q2221906)) (Q691,P30,c(Q2221906))
[ANSWER]
['Q1000', 'P30', {'concept': 'Q2221906'}] ['Q769', 'P30', {'concept': 'Q2221906'}] ['Q691', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?f WHERE { resource:Q691 property:P30 ?f . ?f rdf:type ontology:Q2221906 }
Gabon Grenada Papua New Guinea
Did you mean Papua New Guinea ?
Papua New Guinea
['Gabon', 'continent', {'concept': 'geographic location'}] ['Grenada', 'continent', {'concept': 'geographic location'}] ['Papua New Guinea', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?f WHERE { resource:Papua_New_Guinea property:continent ?f . ?f rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
USER
Yes
(Q691,P30,c(Q2221906))
['Q691', 'P30', {'concept': 'Q2221906'}]
['Papua New Guinea', 'continent', {'concept': 'geographic location'}]
[]
Q538
SYSTEM
Oceania
Q538
(Q691,P30,c(Q2221906))
action filter_type
action find
entity Q691
relation P30
type Q2221906
That political territory is located in [ANSWER]
['Q691', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?f WHERE { resource:Q691 property:P30 ?f . ?f rdf:type ontology:Q2221906 }
Oceania
That political territory is located in Oceania
Oceania
action filter_type
action find
entity Papua New Guinea
relation continent
type geographic location
['Papua New Guinea', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?f WHERE { resource:Papua_New_Guinea property:continent ?f . ?f rdf:type ontology:geographic_location }
[]