Simple Question (Direct)
Simple Question
Q2959294
P607
Q1190554
USER
What was the event that Charles Gérardin took part in
(Q2959294,P607,c(Q1190554))
action filter_type
action find
entity Q2959294
relation P607
type Q1190554
['Q2959294', 'P607', {'concept': 'Q1190554'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q1190554 . resource:Q2959294 property:P607 ?y }
Charles Gérardin
action filter_type
action find
entity Charles Gérardin
relation conflict
type event
['Charles Gérardin', 'conflict', {'concept': 'event'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:event . resource:Charles_Gérardin property:conflict ?y }
[]
event
Q690489
SYSTEM
Siege of Paris
Q690489
(Q2959294,P607,c(Q1190554))
action filter_type
action find
entity Q2959294
relation P607
type Q1190554
The event that Charles Gérardin took part in was the [ANSWER]
['Q2959294', 'P607', {'concept': 'Q1190554'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q1190554 . resource:Q2959294 property:P607 ?y }
Siege of Paris
The event that Charles Gérardin took part in was the Siege of Paris
Siege of Paris
action filter_type
action find
entity Charles Gérardin
relation conflict
type event
['Charles Gérardin', 'conflict', {'concept': 'event'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:event . resource:Charles_Gérardin property:conflict ?y }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2959294
P19
Q20667921
USER
Which french administrative division is the birthplace of that person ?
(Q690489,P19,c(Q20667921))
action filter_type
action find
entity Q2959294
relation P19
type Q20667921
['Q690489', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q20667921 . resource:Q2959294 property:P19 ?z }
Charles Gérardin
action filter_type
action find
entity Charles Gérardin
relation place of birth
type type of french administrative division
['Siege of Paris', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:type_of_french_administrative_division . resource:Charles_Gérardin property:place_of_birth ?z }
[]
type of french administrative division
Q384516
SYSTEM
Saint-Louis
Q384516
(Q690489,P19,c(Q20667921))
action filter_type
action find
entity Q2959294
relation P19
type Q20667921
[ANSWER] is the birthplace of that person
['Q690489', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q20667921 . resource:Q2959294 property:P19 ?z }
Saint-Louis
Saint-Louis is the birthplace of that person
Saint-Louis
action filter_type
action find
entity Charles Gérardin
relation place of birth
type type of french administrative division
['Siege of Paris', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:type_of_french_administrative_division . resource:Charles_Gérardin property:place_of_birth ?z }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q384516 Q2040513
P20
Q502895
USER
Does Otto Schopf have that french administrative division as the location of death ?
(Q2040513,P20,Q384516)
action is_in
entity Q384516
action find
entity Q2040513
relation P20
['Q2040513', 'P20', 'Q384516']
ASK WHERE { resource:Q2040513 property:P20 resource:Q384516 }
Saint-Louis Otto Schopf
action is_in
entity Saint-Louis
action find
entity Otto Schopf
relation place of death
['Otto Schopf', 'place of death', 'Saint-Louis']
ASK WHERE { resource:Otto_Schopf property:place_of_death resource:Saint-Louis }
[]
common name
SYSTEM
YES
(Q2040513,P20,Q384516)
action is_in
entity Q384516
action find
entity Q2040513
relation P20
[ANSWER]
['Q2040513', 'P20', 'Q384516']
ASK WHERE { resource:Q2040513 property:P20 resource:Q384516 }
Yes
action is_in
entity Saint-Louis
action find
entity Otto Schopf
relation place of death
['Otto Schopf', 'place of death', 'Saint-Louis']
ASK WHERE { resource:Otto_Schopf property:place_of_death resource:Saint-Louis }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2959294 Q81151 Q142
P27
Q15617994
USER
Is Charles Gérardin a native of Ogliastro Cilento and France ?
(Q2959294,P27,Q81151) (Q2959294,P27,Q142)
action is_in
entity Q2959294
action intersection
action find_reverse
entity Q81151
relation P27
action find_reverse
entity Q142
relation P27
['Q2959294', 'P27', 'Q81151'] ['Q2959294', 'P27', 'Q142']
ASK WHERE { resource:Q2959294 property:P27 resource:Q81151 . resource:Q2959294 property:P27 resource:Q142 }
Charles Gérardin Ogliastro Cilento France
action is_in
entity Charles Gérardin
action intersection
action find_reverse
entity Ogliastro Cilento
relation country of citizenship
action find_reverse
entity France
relation country of citizenship
['Charles Gérardin', 'country of citizenship', 'Ogliastro Cilento'] ['Charles Gérardin', 'country of citizenship', 'France']
ASK WHERE { resource:Charles_Gérardin property:country_of_citizenship resource:Ogliastro_Cilento . resource:Charles_Gérardin property:country_of_citizenship resource:France }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q2959294,P27,Q81151) (Q2959294,P27,Q142)
action is_in
entity Q2959294
action intersection
action find_reverse
entity Q81151
relation P27
action find_reverse
entity Q142
relation P27
[ANSWER]
['Q2959294', 'P27', 'Q81151'] ['Q2959294', 'P27', 'Q142']
ASK WHERE { resource:Q2959294 property:P27 resource:Q81151 . resource:Q2959294 property:P27 resource:Q142 }
NO and YES respectively
action is_in
entity Charles Gérardin
action intersection
action find_reverse
entity Ogliastro Cilento
relation country of citizenship
action find_reverse
entity France
relation country of citizenship
['Charles Gérardin', 'country of citizenship', 'Ogliastro Cilento'] ['Charles Gérardin', 'country of citizenship', 'France']
ASK WHERE { resource:Charles_Gérardin property:country_of_citizenship resource:Ogliastro_Cilento . resource:Charles_Gérardin property:country_of_citizenship resource:France }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q690489 Q5355794 Q90
P276
Q56061
USER
Is Siege of Paris situated at Electoral district of North Brisbane and Paris ?
(Q690489,P276,Q5355794) (Q690489,P276,Q90)
action is_in
entity Q690489
action intersection
action find_reverse
entity Q5355794
relation P276
action find_reverse
entity Q90
relation P276
['Q690489', 'P276', 'Q5355794'] ['Q690489', 'P276', 'Q90']
ASK WHERE { resource:Q690489 property:P276 resource:Q90 . resource:Q690489 property:P276 resource:Q5355794 }
Siege of Paris Electoral district of North Brisbane Paris
action is_in
entity Siege of Paris
action intersection
action find_reverse
entity Electoral district of North Brisbane
relation location
action find_reverse
entity Paris
relation location
['Siege of Paris', 'location', 'Electoral district of North Brisbane'] ['Siege of Paris', 'location', 'Paris']
ASK WHERE { resource:Siege_of_Paris property:location resource:Paris . resource:Siege_of_Paris property:location resource:Electoral_district_of_North_Brisbane }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q690489,P276,Q5355794) (Q690489,P276,Q90)
action is_in
entity Q690489
action intersection
action find_reverse
entity Q5355794
relation P276
action find_reverse
entity Q90
relation P276
[ANSWER]
['Q690489', 'P276', 'Q5355794'] ['Q690489', 'P276', 'Q90']
ASK WHERE { resource:Q690489 property:P276 resource:Q90 . resource:Q690489 property:P276 resource:Q5355794 }
NO and YES respectively
action is_in
entity Siege of Paris
action intersection
action find_reverse
entity Electoral district of North Brisbane
relation location
action find_reverse
entity Paris
relation location
['Siege of Paris', 'location', 'Electoral district of North Brisbane'] ['Siege of Paris', 'location', 'Paris']
ASK WHERE { resource:Siege_of_Paris property:location resource:Paris . resource:Siege_of_Paris property:location resource:Electoral_district_of_North_Brisbane }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2959294 Q90 Q5441625
P20
Q56061
USER
Did Charles Gérardin die in Paris and Felarg ?
(Q2959294,P20,Q90) (Q2959294,P20,Q5441625)
action is_in
entity Q2959294
action intersection
action find_reverse
entity Q90
relation P20
action find_reverse
entity Q5441625
relation P20
['Q2959294', 'P20', 'Q90'] ['Q2959294', 'P20', 'Q5441625']
ASK WHERE { resource:Q2959294 property:P20 resource:Q5441625 . resource:Q2959294 property:P20 resource:Q90 }
Charles Gérardin Paris Felarg
action is_in
entity Charles Gérardin
action intersection
action find_reverse
entity Paris
relation place of death
action find_reverse
entity Felarg
relation place of death
['Charles Gérardin', 'place of death', 'Paris'] ['Charles Gérardin', 'place of death', 'Felarg']
ASK WHERE { resource:Charles_Gérardin property:place_of_death resource:Felarg . resource:Charles_Gérardin property:place_of_death resource:Paris }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q2959294,P20,Q90) (Q2959294,P20,Q5441625)
action is_in
entity Q2959294
action intersection
action find_reverse
entity Q90
relation P20
action find_reverse
entity Q5441625
relation P20
[ANSWER]
['Q2959294', 'P20', 'Q90'] ['Q2959294', 'P20', 'Q5441625']
ASK WHERE { resource:Q2959294 property:P20 resource:Q5441625 . resource:Q2959294 property:P20 resource:Q90 }
YES and NO respectively
action is_in
entity Charles Gérardin
action intersection
action find_reverse
entity Paris
relation place of death
action find_reverse
entity Felarg
relation place of death
['Charles Gérardin', 'place of death', 'Paris'] ['Charles Gérardin', 'place of death', 'Felarg']
ASK WHERE { resource:Charles_Gérardin property:place_of_death resource:Felarg . resource:Charles_Gérardin property:place_of_death resource:Paris }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q384516
P47
Q20667921
USER
Which french administrative divisions have an adjacent border with Saint-Louis ?
(c(Q20667921),P47,Q384516)
action filter_type
action find
entity Q384516
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q384516']
SELECT DISTINCT ?q WHERE { resource:Q384516 property:P47 ?q . ?q rdf:type ontology:Q20667921 }
Saint-Louis
action filter_type
action find
entity Saint-Louis
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Louis']
SELECT DISTINCT ?q WHERE { resource:Saint-Louis property:shares_border_with ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q320293 Q148536 Q466682
SYSTEM
Bartenheim, Rosenau, Hésingue
Q333540 Q83415 Q148536 Q467351 Q122332 Q466682 Q320293
(c(Q20667921),P47,Q384516)
action filter_type
action find
entity Q384516
relation P47
type Q20667921
[ANSWERS] have an adjacent border with Saint-Louis
[{'concept': 'Q20667921'}, 'P47', 'Q384516']
SELECT DISTINCT ?q WHERE { resource:Q384516 property:P47 ?q . ?q rdf:type ontology:Q20667921 }
Hégenheim Huningue Rosenau Blotzheim Village-Neuf Hésingue Bartenheim
Bartenheim, Rosenau and Hésingue have an adjacent border with Saint-Louis
Bartenheim Rosenau Hésingue
action filter_type
action find
entity Saint-Louis
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Louis']
SELECT DISTINCT ?q WHERE { resource:Saint-Louis property:shares_border_with ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Simple Question|Single Entity|Indirect
Q320293
P17
Q15617994
USER
Which administrative territory is that french administrative division present in ?
(Q320293,P17,c(Q15617994))
action filter_type
action find
entity Q320293
relation P17
type Q15617994
['Q320293', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q320293 property:P17 ?t }
Bartenheim
action filter_type
action find
entity Bartenheim
relation country
type designation for an administrative territorial entity
['Bartenheim', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bartenheim property:country ?t }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q466682
SYSTEM
Did you mean Hésingue ?
Q320293 Q148536 Q466682
(Q320293,P17,c(Q15617994)) (Q148536,P17,c(Q15617994)) (Q466682,P17,c(Q15617994))
[ANSWER]
['Q320293', 'P17', {'concept': 'Q15617994'}] ['Q148536', 'P17', {'concept': 'Q15617994'}] ['Q466682', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q320293 property:P17 ?t }
Bartenheim Rosenau Hésingue
Did you mean Hésingue ?
Hésingue
['Bartenheim', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Rosenau', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Hésingue', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bartenheim property:country ?t }
[]
Simple Question (Coreferenced)
USER
No, I meant Bartenheim. Could you tell me the answer for that?
(Q320293,P17,c(Q15617994))
Q320293
['Q320293', 'P17', {'concept': 'Q15617994'}]
['Bartenheim', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q320293,P17,c(Q15617994))
action filter_type
action find
entity Q320293
relation P17
type Q15617994
That french administrative division is in [ANSWER]
['Q320293', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q320293 property:P17 ?t }
France
That french administrative division is in France
France
action filter_type
action find
entity Bartenheim
relation country
type designation for an administrative territorial entity
['Bartenheim', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bartenheim property:country ?t }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q15416 Q7725634
USER
How many administrative territories are the countries of origin of approximately the same number of television programs and literary works as that administrative territory ?
(c(Q15416)|c(Q7725634),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q142
relation P495
type Q15416
type Q7725634
[[{'concept': 'Q15416'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { ?t property:P495 resource:Q142 . { VALUES ( ?d ) { ( ontology:Q15416 ) ( ontology:Q7725634 ) } . ?t rdf:type ?d } } } . FILTER ( ?h = ?j ) . { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?h ) WHERE { { ?g property:P495 ?i . ?i rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15416 } UNION { ?g property:P495 ?i . ?i rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q7725634 } } GROUP BY ?i } }
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity France
relation country of origin
type television program
type literary work
[[{'concept': 'television program'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { ?t property:country_of_origin resource:France . { VALUES ( ?d ) { ( ontology:television_program ) ( ontology:literary_work ) } . ?t rdf:type ?d } } } . FILTER ( ?h = ?j ) . { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?h ) WHERE { { ?g property:country_of_origin ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:television_program } UNION { ?g property:country_of_origin ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:literary_work } } GROUP BY ?i } }
[]
designation for an administrative territorial entity television program literary work
SYSTEM
167
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q15416)|c(Q7725634),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q142
relation P495
type Q15416
type Q7725634
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { ?t property:P495 resource:Q142 . { VALUES ( ?d ) { ( ontology:Q15416 ) ( ontology:Q7725634 ) } . ?t rdf:type ?d } } } . FILTER ( ?h = ?j ) . { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?h ) WHERE { { ?g property:P495 ?i . ?i rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15416 } UNION { ?g property:P495 ?i . ?i rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q7725634 } } GROUP BY ?i } }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
167
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity France
relation country of origin
type television program
type literary work
[[{'concept': 'television program'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { ?t property:country_of_origin resource:France . { VALUES ( ?d ) { ( ontology:television_program ) ( ontology:literary_work ) } . ?t rdf:type ?d } } } . FILTER ( ?h = ?j ) . { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?h ) WHERE { { ?g property:country_of_origin ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:television_program } UNION { ?g property:country_of_origin ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:literary_work } } GROUP BY ?i } }
[]