Simple Question (Direct)
Simple Question
Q13461066
P607
Q198
USER
Which war did Friedrich Giese take part in ?
(Q13461066,P607,c(Q198))
action filter_type
action find
entity Q13461066
relation P607
type Q198
['Q13461066', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?h WHERE { resource:Q13461066 property:P607 ?h . ?h rdf:type ontology:Q198 }
Friedrich Giese
action filter_type
action find
entity Friedrich Giese
relation conflict
type war
['Friedrich Giese', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?h WHERE { resource:Friedrich_Giese property:conflict ?h . ?h rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q13461066,P607,c(Q198))
action filter_type
action find
entity Q13461066
relation P607
type Q198
Friedrich Giese took part in [ANSWER]
['Q13461066', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?h WHERE { resource:Q13461066 property:P607 ?h . ?h rdf:type ontology:Q198 }
World War I
Friedrich Giese took part in World War I
World War I
action filter_type
action find
entity Friedrich Giese
relation conflict
type war
['Friedrich Giese', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?h WHERE { resource:Friedrich_Giese property:conflict ?h . ?h rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13461066
P106
Q12737077
USER
What is the job of that person ?
(Q361,P106,c(Q12737077))
action filter_type
action find
entity Q13461066
relation P106
type Q12737077
['Q361', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . resource:Q13461066 property:P106 ?t }
Friedrich Giese
action filter_type
action find
entity Friedrich Giese
relation occupation
type occupation
['World War I', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . resource:Friedrich_Giese property:occupation ?t }
[]
occupation
Q1622272
SYSTEM
university teacher
Q1622272
(Q361,P106,c(Q12737077))
action filter_type
action find
entity Q13461066
relation P106
type Q12737077
The job of that person is a [ANSWER]
['Q361', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . resource:Q13461066 property:P106 ?t }
university teacher
The job of that person is a university teacher
university teacher
action filter_type
action find
entity Friedrich Giese
relation occupation
type occupation
['World War I', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . resource:Friedrich_Giese property:occupation ?t }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1622272 Q16352309 Q19279863
P417
Q502895
USER
Does that occupation have Ačuks and Fred Hageneder as their patron saint ?
(Q1622272,P417,Q16352309) (Q1622272,P417,Q19279863)
action is_in
entity Q1622272
action intersection
action find_reverse
entity Q16352309
relation P417
action find_reverse
entity Q19279863
relation P417
['Q1622272', 'P417', 'Q16352309'] ['Q1622272', 'P417', 'Q19279863']
ASK WHERE { resource:Q1622272 property:P417 resource:Q19279863 . resource:Q1622272 property:P417 resource:Q16352309 }
university teacher Ačuks Fred Hageneder
action is_in
entity university teacher
action intersection
action find_reverse
entity Ačuks
relation patron saint
action find_reverse
entity Fred Hageneder
relation patron saint
['university teacher', 'patron saint', 'Ačuks'] ['university teacher', 'patron saint', 'Fred Hageneder']
ASK WHERE { resource:university_teacher property:patron_saint resource:Fred_Hageneder . resource:university_teacher property:patron_saint resource:Ačuks }
[]
common name
SYSTEM
NO
(Q1622272,P417,Q16352309) (Q1622272,P417,Q19279863)
action is_in
entity Q1622272
action intersection
action find_reverse
entity Q16352309
relation P417
action find_reverse
entity Q19279863
relation P417
[ANSWER]
['Q1622272', 'P417', 'Q16352309'] ['Q1622272', 'P417', 'Q19279863']
ASK WHERE { resource:Q1622272 property:P417 resource:Q19279863 . resource:Q1622272 property:P417 resource:Q16352309 }
No
action is_in
entity university teacher
action intersection
action find_reverse
entity Ačuks
relation patron saint
action find_reverse
entity Fred Hageneder
relation patron saint
['university teacher', 'patron saint', 'Ačuks'] ['university teacher', 'patron saint', 'Fred Hageneder']
ASK WHERE { resource:university_teacher property:patron_saint resource:Fred_Hageneder . resource:university_teacher property:patron_saint resource:Ačuks }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q12678 Q13461066
P47 P27
Q1048835
USER
Which political territories are Friedrich Giese an inhabitant of or are adjacent to Tírvia ?
OR((Q13461066,P27,c(Q1048835)), (Q12678,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q13461066
relation P27
action find
entity Q12678
relation P47
type Q1048835
{'OR': [['Q13461066', 'P27', {'concept': 'Q1048835'}], ['Q12678', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q13461066 property:P27 ?u } UNION { resource:Q12678 property:P47 ?u } } . ?u rdf:type ontology:Q1048835 }
Tírvia Friedrich Giese
action filter_type
action union
action find
entity Friedrich Giese
relation country of citizenship
action find
entity Tírvia
relation shares border with
type political territorial entity
{'OR': [['Friedrich Giese', 'country of citizenship', {'concept': 'political territorial entity'}], ['Tírvia', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Friedrich_Giese property:country_of_citizenship ?u } UNION { resource:Tírvia property:shares_border_with ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q12666 Q12676 Q183 Q12682 Q12672
SYSTEM
Vall de Cardós, Farrera, Germany, Llavorsí, Alins
Q12666 Q12676 Q183 Q12682 Q12672
OR((Q13461066,P27,c(Q1048835)), (Q12678,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q13461066
relation P27
action find
entity Q12678
relation P47
type Q1048835
[ANSWERS] are Friedrich Giese an inhabitant of or are adjacent to Tírvia
{'OR': [['Q13461066', 'P27', {'concept': 'Q1048835'}], ['Q12678', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q13461066 property:P27 ?u } UNION { resource:Q12678 property:P47 ?u } } . ?u rdf:type ontology:Q1048835 }
Vall de Cardós Farrera Germany Llavorsí Alins
Vall de Cardós, Farrera, Germany, Llavorsí and Alins are Friedrich Giese an inhabitant of or are adjacent to Tírvia
Vall de Cardós Farrera Germany Llavorsí Alins
action filter_type
action union
action find
entity Friedrich Giese
relation country of citizenship
action find
entity Tírvia
relation shares border with
type political territorial entity
{'OR': [['Friedrich Giese', 'country of citizenship', {'concept': 'political territorial entity'}], ['Tírvia', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Friedrich_Giese property:country_of_citizenship ?u } UNION { resource:Tírvia property:shares_border_with ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17067633 Q12682
P17
Q15617994
USER
Which administrative territories are Llavorsí or LivingStone International University a part of ?
OR((Q12682,P17,c(Q15617994)), (Q17067633,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q12682
relation P17
action find
entity Q17067633
relation P17
type Q15617994
{'OR': [['Q12682', 'P17', {'concept': 'Q15617994'}], ['Q17067633', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q12682 property:P17 ?k } UNION { resource:Q17067633 property:P17 ?k } } . ?k rdf:type ontology:Q15617994 }
LivingStone International University Llavorsí
action filter_type
action union
action find
entity Llavorsí
relation country
action find
entity LivingStone International University
relation country
type designation for an administrative territorial entity
{'OR': [['Llavorsí', 'country', {'concept': 'designation for an administrative territorial entity'}], ['LivingStone International University', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Llavorsí property:country ?k } UNION { resource:LivingStone_International_University property:country ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1036 Q29
SYSTEM
Uganda, Spain
Q1036 Q29
OR((Q12682,P17,c(Q15617994)), (Q17067633,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q12682
relation P17
action find
entity Q17067633
relation P17
type Q15617994
[ANSWERS] are Llavorsí or LivingStone International University a part of
{'OR': [['Q12682', 'P17', {'concept': 'Q15617994'}], ['Q17067633', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q12682 property:P17 ?k } UNION { resource:Q17067633 property:P17 ?k } } . ?k rdf:type ontology:Q15617994 }
Uganda Spain
Uganda and Spain are Llavorsí or LivingStone International University a part of
Uganda Spain
action filter_type
action union
action find
entity Llavorsí
relation country
action find
entity LivingStone International University
relation country
type designation for an administrative territorial entity
{'OR': [['Llavorsí', 'country', {'concept': 'designation for an administrative territorial entity'}], ['LivingStone International University', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Llavorsí property:country ?k } UNION { resource:LivingStone_International_University property:country ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have a diplomatic relationship with around 31 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 31
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?z = 31 ) . { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?z ) WHERE { ?e property:P530 ?a . ?e rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?e } }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 31
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?z = 31 ) . { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?z ) WHERE { ?e property:diplomatic_relation ?a . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q159 Q30
SYSTEM
Russia, United States of America
Q159 Q30
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 31
[ANSWERS] have a diplomatic relationship with around 31 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?z = 31 ) . { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?z ) WHERE { ?e property:P530 ?a . ?e rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?e } }
Russia United States of America
Russia and United States of America have a diplomatic relationship with around 31 administrative territories
Russia United States of America
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 31
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?z = 31 ) . { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?z ) WHERE { ?e property:diplomatic_relation ?a . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q82670
P138
Q15617994 Q502895 Q811979
USER
How many administrative territories are namesakes of approximately the same number of people or architectural structures as Fiesole ?
(c(Q502895)|c(Q811979),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q502895
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q82670
relation P138
type Q502895
type Q811979
[[{'concept': 'Q502895'}, {'concept': 'Q811979'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { ?p property:P138 resource:Q82670 . { VALUES ( ?t ) { ( ontology:Q502895 ) ( ontology:Q811979 ) } . ?p rdf:type ?t } } } . FILTER ( ?a = ?v ) . { SELECT DISTINCT ?l ( COUNT ( ?i ) AS ?a ) WHERE { VALUES ( ?m ) { ( ontology:Q811979 ) ( ontology:Q502895 ) } . ?i rdf:type ?m } GROUP BY ?l } }
Fiesole
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Fiesole
relation named after
type common name
type architectural structure
[[{'concept': 'common name'}, {'concept': 'architectural structure'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { ?p property:named_after resource:Fiesole . { VALUES ( ?t ) { ( ontology:common_name ) ( ontology:architectural_structure ) } . ?p rdf:type ?t } } } . FILTER ( ?a = ?v ) . { SELECT DISTINCT ?l ( COUNT ( ?i ) AS ?a ) WHERE { VALUES ( ?m ) { ( ontology:architectural_structure ) ( ontology:common_name ) } . ?i rdf:type ?m } GROUP BY ?l } }
[]
designation for an administrative territorial entity common name architectural structure
SYSTEM
29
Q804 Q801 Q800 Q419 Q490521 Q786 Q155 Q82670 Q739 Q733 Q736 Q189 Q1028 Q298 Q626792 Q1243 Q3105 Q792 Q33 Q30 Q750 Q77 Q176 Q674852 Q717 Q222 Q228 Q811 Q774
(c(Q502895)|c(Q811979),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q502895
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q82670
relation P138
type Q502895
type Q811979
[ANSWER]
[[{'concept': 'Q502895'}, {'concept': 'Q811979'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { ?p property:P138 resource:Q82670 . { VALUES ( ?t ) { ( ontology:Q502895 ) ( ontology:Q811979 ) } . ?p rdf:type ?t } } } . FILTER ( ?a = ?v ) . { SELECT DISTINCT ?l ( COUNT ( ?i ) AS ?a ) WHERE { VALUES ( ?m ) { ( ontology:Q811979 ) ( ontology:Q502895 ) } . ?i rdf:type ?m } GROUP BY ?l } }
Panama Israel Costa Rica Peru Strausberg Dominican Republic Brazil Fiesole Colombia Paraguay Ecuador Iceland Morocco Chile Fehrbellin Veneto Vosges El Salvador Finland United States of America Bolivia Uruguay Quebec Dätgen Venezuela Albania Andorra Nicaragua Guatemala
29
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Fiesole
relation named after
type common name
type architectural structure
[[{'concept': 'common name'}, {'concept': 'architectural structure'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { ?p property:named_after resource:Fiesole . { VALUES ( ?t ) { ( ontology:common_name ) ( ontology:architectural_structure ) } . ?p rdf:type ?t } } } . FILTER ( ?a = ?v ) . { SELECT DISTINCT ?l ( COUNT ( ?i ) AS ?a ) WHERE { VALUES ( ?m ) { ( ontology:architectural_structure ) ( ontology:common_name ) } . ?i rdf:type ?m } GROUP BY ?l } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q55
P138
Q15617994 Q502895 Q811979
USER
And what about Netherlands?
(c(Q502895)|c(Q811979),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q502895
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q55
relation P138
type Q502895
type Q811979
[[{'concept': 'Q502895'}, {'concept': 'Q811979'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?o ) WHERE { { ?j rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q502895 . ?n property:P138 ?j } UNION { ?n property:P138 ?j . ?n rdf:type ontology:Q811979 . ?j rdf:type ontology:Q15617994 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { ?a property:P138 resource:Q55 . { { ?a rdf:type ontology:Q502895 } UNION { ?a rdf:type ontology:Q811979 } } } } . FILTER ( ?o = ?r ) }
Netherlands
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Netherlands
relation named after
type common name
type architectural structure
[[{'concept': 'common name'}, {'concept': 'architectural structure'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?o ) WHERE { { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:common_name . ?n property:named_after ?j } UNION { ?n property:named_after ?j . ?n rdf:type ontology:architectural_structure . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { ?a property:named_after resource:Netherlands . { { ?a rdf:type ontology:common_name } UNION { ?a rdf:type ontology:architectural_structure } } } } . FILTER ( ?o = ?r ) }
[]
designation for an administrative territorial entity common name architectural structure
SYSTEM
351
Q572949 Q103408 Q81077 Q414 Q1799797 Q55 Q2871 Q40806 Q157598 Q224139 Q3898 Q159 Q12689 Q52240 Q3476 Q17686 Q46490 Q3372 Q243474 Q7281814 Q549449 Q13376 Q13373 Q42803 Q636991 Q100125 Q730 Q6681 Q12798 Q586072 Q1280 Q1282 Q17827 Q1273 Q913434 Q1279 Q186538 Q640473 Q184 Q1458 Q570120 Q18421666 Q167215 Q42777 Q159856 Q6274 Q279028 Q2396564 Q53127 Q115 Q114 Q41158 Q549749 Q40871 Q43055 Q42509 Q629830 Q1427674 Q53334 Q3922 Q42839 Q7603016 Q42835 Q505191 Q279373 Q3697039 Q58457 Q3326 Q214929 Q627935 Q2719360 Q948 Q42942 Q519157 Q3266 Q269476 Q33788 Q6122 Q42931 Q700831 Q80599 Q705 Q539059 Q668 Q185619 Q5084 Q6231 Q660185 Q6237 Q5642 Q99950 Q45 Q790 Q796 Q21200959 Q794 Q889 Q884 Q12788 Q26727498 Q632209 Q241 Q11340 Q11343 Q585248 Q155622 Q3798 Q12515 Q32 Q31 Q37 Q36 Q34 Q39 Q1023890 Q101226 Q42906 Q40516 Q1987554 Q159626 Q236 Q232 Q129003 Q81729 Q1101 Q1206596 Q391167 Q3038 Q52981 Q3139 Q514208 Q3468865 Q36784 Q622505 Q555328 Q1037 Q1033 Q1030 Q53873 Q18040 Q3926245 Q697 Q186115 Q39985 Q50156 Q42749 Q570035 Q540441 Q13137 Q1630 Q2009 Q39912 Q498534 Q40866 Q40862 Q191 Q1435624 Q79 Q769621 Q46130 Q512943 Q305352 Q192917 Q94979 Q39395 Q487929 Q478142 Q1951 Q1952 Q536647 Q116706 Q1256 Q40641 Q634084 Q40131 Q102634 Q100368 Q3278 Q19207 Q522459 Q144711 Q712 Q42993 Q488513 Q243311 Q503160 Q2993085 Q42996 Q954 Q690417 Q826 Q822 Q1142326 Q244095 Q223459 Q42419 Q502434 Q13645 Q155019 Q6986 Q258974 Q1527970 Q107426 Q14943702 Q681329 Q12661 Q20 Q5274 Q28 Q111460 Q50932 Q20489 Q390125 Q205050 Q581067 Q894049 Q40611 Q161825 Q359324 Q34607 Q223 Q221 Q229 Q580447 Q10957559 Q23178 Q968 Q965 Q2152015 Q333389 Q627223 Q2938 Q1210 Q1216 Q503757 Q917 Q916 Q1005 Q573523 Q40497 Q2742 Q1438 Q81740 Q837 Q17669 Q810 Q813 Q255361 Q819 Q654138 Q81261 Q493437 Q863 Q574429 Q869 Q111543 Q102736 Q269174 Q278221 Q12434 Q20077 Q31872 Q95067 Q95066 Q142 Q53246 Q1948 Q262 Q148 Q157266 Q3319482 Q264620 Q39971 Q73532 Q42626 Q42628 Q499045 Q490167 Q20103 Q10312 Q2009898 Q42245 Q4431 Q770 Q131633 Q2596432 Q928 Q19306 Q759201 Q424 Q675616 Q854 Q9574 Q2790 Q566435 Q496885 Q42984 Q552822 Q6998 Q155144 Q645814 Q2139159 Q1041 Q216977 Q489929 Q629664 Q1904 Q393594 Q41003 Q347 Q43046 Q81138 Q17 Q15059063 Q42668 Q3940173 Q4066675 Q138823 Q697787 Q11337 Q211 Q159605 Q215 Q1837 Q501626 Q554187 Q23247 Q974 Q971 Q496978 Q23238 Q11119 Q566795 Q631654 Q42192 Q645340 Q9187 Q42926 Q775 Q14870 Q100041 Q1019 Q772 Q1014 Q1016 Q16104 Q243337 Q42441 Q182248 Q20458 Q20517
(c(Q502895)|c(Q811979),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q502895
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q55
relation P138
type Q502895
type Q811979
[ANSWER]
[[{'concept': 'Q502895'}, {'concept': 'Q811979'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?o ) WHERE { { ?j rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q502895 . ?n property:P138 ?j } UNION { ?n property:P138 ?j . ?n rdf:type ontology:Q811979 . ?j rdf:type ontology:Q15617994 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { ?a property:P138 resource:Q55 . { { ?a rdf:type ontology:Q502895 } UNION { ?a rdf:type ontology:Q811979 } } } } . FILTER ( ?o = ?r ) }
Solnhofen Adro Montecorvino Rovella Argentina Wolfskehlen Netherlands Hagen Pedavena Kulmbach Frasso Sabino Castrop-Rauxel Russia Pas-de-Calais Pontremoli L'Aquila Tortona Arcole Eure Rees Radyr Prince of Orange Pistoia Lucca Olginate Jacobsdorf Calcio, Lombardy Suriname Crotone Vendée Chorin Umbria Lazio Moncalvo Tuscany Les Halles Marche Arzachena Hohenstein Belarus Calabria Hollenstedt Loguivy-de-la-Mer Cernusco Lombardone Abbiategrasso Duchy of Brabant Sondrio Simmering Mallee Farra d'Isonzo Ethiopia Kenya Cortina d'Ampezzo Heinsen Livigno Gorgonzola Bussero Meerfeld Wernborn Remanzacco Detmold Brivio Mitino Calco Leuna Rovereto Crescenzago Caiazzo Corrèze Pitigliano Berkenbrück Duchy of Luxembourg Tunisia Lierna Templin Charente Perinaldo New Caledonia Asti Merate Sögel Auletta Zeeland Kelbra India Cernusco sul Naviglio hamlet Cremona Huangpu District Lecco Brilon Predappio Portugal Haiti Iraq Keroland Iran Afghanistan South Korea Val-de-Marne Mirafiori Basedow Cuba Sprockhövel Wetter (Ruhr) Glienicke/Nordbahn Bernkastel-Kues Flensburg Gard Luxembourg Belgium Lithuania Poland Sweden Switzerland Huangpu District Mapello Cologno Monzese Bormio Nieder-Roden Württemberg Montenegro Kazakhstan French Southern and Antarctic Lands Radeberg North Brabant Deux-Nèthes Ozieri Helgoland Faenza Alpes-Maritimes Jettenbach Tõravere region of France Rauen Urmitz Rwanda Nigeria Namibia Diamante Candelo QT8 Nauru Montmartre Brugherio Secinaro Paderno d'Adda Hillesheim Tautenburg Teramo Altona Yukon Usmate Velate Diepholz Giussano Saronno Estonia Yasnaya Polyana Egypt Sanshui District Rhône Sailauf Aban Erice Pianoro Sovico Milazzo Schierstein Alberta Nova Scotia Dassow Ceccano Liguria Macherio Trebur Chiavenna Monsummano Terme Cisano Bergamasco Charente-Maritime Canosio Bad Harzburg Ettringen Fiji Gessate Anklam Sacrofano Wolfratshausen Levashovo, Saint Petersburg Pero Zimbabwe Währing Maldives Lebanon Seine Bellagio Borbona Vimodrone Sangerhausen Tempio Pausania Duchy of Lorraine Gotha Bitburg Ober-Roden Anjou Sprendlingen Dümmer Nord Norway Balve Hungary Pontevico Helpt Savigliano Linz am Rhein Geilenkirchen Britz Borodino (village), Mozhaysky District, Moscow Oblast Casteggio Daun Admont Este Greenland Republic of Macedonia Cyprus Duchy of Styria Moldavia Bisceglie Warburg Burkina Faso Riedelbach Palau Briesen Leverkusen Lombardy Piedmont Oberammergau Bhutan Angola Gambia Flechtingen Carnate Münster Campania Lauta Nepal Serravalle Scrivia Jordan Kyrgyzstan Werfen Laos Rhede, Lower Saxony Rudersberg Arneburg Tajikistan Seeheim-Jugenheim Thailand Provaglio d'Iseo San Marcello Pistoiese Worpswede Berchtesgaden Bad Honnef Werdau Moosburg an der Isar Ambivere Alzano Lombardo France Codroipo Manitoba Algeria People's Republic of China Sternberg Molegbe Garching bei München Gela Ruhpolding Vercurago Robbiate Sinagra, Sicily Pielenhofen Assisi Tavagnasco Oberhöchstadt Robecco d'Oglio Bad Köstritz Friesland Hallstatt Euvelgunne Philippines Altamura Auerbach Cambodia Langenzersdorf Sri Lanka Pino Torinese Udine Erpel Isnello Turbigo Mecklenburg-Güstrow Freising Alsace-Lorraine Kröpelin Reichenbach Senegal Coreglia Antelminelli Avola Arbesbach Ontario Agia Paraskevi Palestro Liechtenstein Olgiate Molgora Nocera Inferiore Japan Kellaways Pudost Rogoredo Annino Farnese, Lazio Duchy of Limburg Herdecke Latvia Tivoli Slovenia Wohldorf-Ohlstedt Wildeshausen Lunden Belgirate Democratic Republic of the Congo Republic of the Congo Roccapalumba Baveno Warstein Schalkenmehren Selent San Donato Milanese Brenk Carmagnola Calolziocorte Gelderland Siegburg Carpi Madagascar Drenthe Liberia Libya Ahrensburg Issum Cassina de' Pecchi Nordwalde Gubbio Treiso
351
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Netherlands
relation named after
type common name
type architectural structure
[[{'concept': 'common name'}, {'concept': 'architectural structure'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?o ) WHERE { { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:common_name . ?n property:named_after ?j } UNION { ?n property:named_after ?j . ?n rdf:type ontology:architectural_structure . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { ?a property:named_after resource:Netherlands . { { ?a rdf:type ontology:common_name } UNION { ?a rdf:type ontology:architectural_structure } } } } . FILTER ( ?o = ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q35
P17
Q1048835 Q874405 Q838948
USER
Which political territories do less number of social groups and works of art belong to than Denmark ?
(c(Q874405)|c(Q838948),P17,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q874405
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q35
relation P17
type Q874405
type Q838948
[[{'concept': 'Q874405'}, {'concept': 'Q838948'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?q ) WHERE { { ?w property:P17 ?y . ?y rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q874405 } UNION { ?w property:P17 ?y . ?y rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q838948 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { ?b property:P17 resource:Q35 . { { ?b rdf:type ontology:Q874405 } UNION { ?b rdf:type ontology:Q838948 } } } } . FILTER ( ?q < ?x ) }
Denmark
action less
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type social group
action find_reverse_tuple_counts
relation country
type political territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Denmark
relation country
type social group
type work of art
[[{'concept': 'social group'}, {'concept': 'work of art'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?q ) WHERE { { ?w property:country ?y . ?y rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:social_group } UNION { ?w property:country ?y . ?y rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:work_of_art } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { ?b property:country resource:Denmark . { { ?b rdf:type ontology:social_group } UNION { ?b rdf:type ontology:work_of_art } } } } . FILTER ( ?q < ?x ) }
[]
political territorial entity social group work of art
Q40 Q5705 Q664
SYSTEM
Austria, Catalonia, New Zealand
Q193714 Q1000 Q195972 Q21590062 Q746558 Q838261 Q785 Q193619 Q769 Q685 Q699964 Q763 Q13767 Q34617 Q22880 Q9676 Q641138 Q664 Q693551 Q13353 Q766 Q848383 Q5705 Q13726 Q953068 Q5785 Q38610 Q3405693 Q1054923 Q13862 Q79965 Q223793 Q319376 Q13869 Q407199 Q18221 Q778 Q2002138 Q3899 Q35672 Q25228 Q1747689 Q781 Q691 Q757 Q9648 Q231 Q234 Q2991382 Q40 Q168651 Q399702 Q35086 Q23635 Q208279 Q192184 Q1615455 Q31747 Q25305 Q129286
(c(Q874405)|c(Q838948),P17,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q874405
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q35
relation P17
type Q874405
type Q838948
[ANSWERS] less number of social groups and works of art belong to than Denmark
[[{'concept': 'Q874405'}, {'concept': 'Q838948'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?q ) WHERE { { ?w property:P17 ?y . ?y rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q874405 } UNION { ?w property:P17 ?y . ?y rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q838948 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { ?b property:P17 resource:Q35 . { { ?b rdf:type ontology:Q874405 } UNION { ?b rdf:type ontology:Q838948 } } } } . FILTER ( ?q < ?x ) }
Mandatory Palestine Gabon Kingdom of Kartli Antarctic Treaty area Emirate of Bukhara Federal Republic of Yugoslavia Jersey Union of South Africa Grenada Solomon Islands Archduchy of Austria Saint Kitts and Nevis Camarines Sur Saint Pierre and Miquelon Electoral Palatinate Isle of Man Duchy of Cleves New Zealand Landgraviate of Hesse-Darmstadt Montserrat Jamaica Duchy of Rome Catalonia Albay South-West Africa Cayman Islands Dominion of Newfoundland Sark British Hong Kong Negros Occidental Golden Horde Kingdom of Etruria Hanau-Münzenberg Palawan Palestinian territories Turks and Caicos Islands The Bahamas Equador, Rio Grande do Norte Kalimantan Timur Pitcairn Islands Anguilla Ancient Rome Antigua and Barbuda Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Walloon Region Flemish Region County of Provence Austria Landgraviate of Hesse-Kassel Agüimes, Las Palmas South Georgia and the South Sandwich Islands Bermuda Highland Saint Helena, Ascension and Tristan da Cunha Duchy of Mirandola Irish Free State British Virgin Islands British Raj
Austria, Catalonia and New Zealand less number of social groups and works of art belong to than Denmark
Austria Catalonia New Zealand
action less
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type social group
action find_reverse_tuple_counts
relation country
type political territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Denmark
relation country
type social group
type work of art
[[{'concept': 'social group'}, {'concept': 'work of art'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?q ) WHERE { { ?w property:country ?y . ?y rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:social_group } UNION { ?w property:country ?y . ?y rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:work_of_art } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { ?b property:country resource:Denmark . { { ?b rdf:type ontology:social_group } UNION { ?b rdf:type ontology:work_of_art } } } } . FILTER ( ?q < ?x ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q183
P17
Q1048835 Q874405 Q838948
USER
And also tell me about Germany?
(c(Q874405)|c(Q838948),P17,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q874405
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q183
relation P17
type Q874405
type Q838948
[[{'concept': 'Q874405'}, {'concept': 'Q838948'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?l ) WHERE { { ?x rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q874405 . ?j property:P17 ?x } UNION { ?j property:P17 ?x . ?j rdf:type ontology:Q838948 . ?x rdf:type ontology:Q1048835 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { ?r property:P17 resource:Q183 . { { ?r rdf:type ontology:Q874405 } UNION { ?r rdf:type ontology:Q838948 } } } } . FILTER ( ?l < ?h ) }
Germany
action less
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type social group
action find_reverse_tuple_counts
relation country
type political territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Germany
relation country
type social group
type work of art
[[{'concept': 'social group'}, {'concept': 'work of art'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?l ) WHERE { { ?x rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:social_group . ?j property:country ?x } UNION { ?j property:country ?x . ?j rdf:type ontology:work_of_art . ?x rdf:type ontology:political_territorial_entity } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { ?r property:country resource:Germany . { { ?r rdf:type ontology:social_group } UNION { ?r rdf:type ontology:work_of_art } } } } . FILTER ( ?l < ?h ) }
[]
political territorial entity social group work of art
Q408 Q35 Q40
SYSTEM
Australia, Denmark, Austria
Q193714 Q1000 Q195972 Q21590062 Q746558 Q838261 Q785 Q193619 Q769 Q685 Q699964 Q763 Q13767 Q34617 Q22880 Q9676 Q641138 Q664 Q693551 Q13353 Q766 Q848383 Q5705 Q13726 Q953068 Q5785 Q35 Q38610 Q3405693 Q1054923 Q13862 Q79965 Q223793 Q319376 Q13869 Q407199 Q18221 Q778 Q2002138 Q3899 Q35672 Q25228 Q408 Q1747689 Q781 Q691 Q757 Q9648 Q231 Q234 Q2991382 Q40 Q168651 Q399702 Q35086 Q23635 Q208279 Q192184 Q1615455 Q31747 Q25305 Q129286
(c(Q874405)|c(Q838948),P17,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q874405
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q183
relation P17
type Q874405
type Q838948
[ANSWERS]
[[{'concept': 'Q874405'}, {'concept': 'Q838948'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?l ) WHERE { { ?x rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q874405 . ?j property:P17 ?x } UNION { ?j property:P17 ?x . ?j rdf:type ontology:Q838948 . ?x rdf:type ontology:Q1048835 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { ?r property:P17 resource:Q183 . { { ?r rdf:type ontology:Q874405 } UNION { ?r rdf:type ontology:Q838948 } } } } . FILTER ( ?l < ?h ) }
Mandatory Palestine Gabon Kingdom of Kartli Antarctic Treaty area Emirate of Bukhara Federal Republic of Yugoslavia Jersey Union of South Africa Grenada Solomon Islands Archduchy of Austria Saint Kitts and Nevis Camarines Sur Saint Pierre and Miquelon Electoral Palatinate Isle of Man Duchy of Cleves New Zealand Landgraviate of Hesse-Darmstadt Montserrat Jamaica Duchy of Rome Catalonia Albay South-West Africa Cayman Islands Denmark Dominion of Newfoundland Sark British Hong Kong Negros Occidental Golden Horde Kingdom of Etruria Hanau-Münzenberg Palawan Palestinian territories Turks and Caicos Islands The Bahamas Equador, Rio Grande do Norte Kalimantan Timur Pitcairn Islands Anguilla Australia Ancient Rome Antigua and Barbuda Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Walloon Region Flemish Region County of Provence Austria Landgraviate of Hesse-Kassel Agüimes, Las Palmas South Georgia and the South Sandwich Islands Bermuda Highland Saint Helena, Ascension and Tristan da Cunha Duchy of Mirandola Irish Free State British Virgin Islands British Raj
Australia Denmark Austria
action less
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type social group
action find_reverse_tuple_counts
relation country
type political territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Germany
relation country
type social group
type work of art
[[{'concept': 'social group'}, {'concept': 'work of art'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?l ) WHERE { { ?x rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:social_group . ?j property:country ?x } UNION { ?j property:country ?x . ?j rdf:type ontology:work_of_art . ?x rdf:type ontology:political_territorial_entity } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { ?r property:country resource:Germany . { { ?r rdf:type ontology:social_group } UNION { ?r rdf:type ontology:work_of_art } } } } . FILTER ( ?l < ?h ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1572867 Q12682
P17
Q15617994
USER
Which administrative territories are Llavorsí or Hamburg, Eastern Cape present in ?
OR((Q12682,P17,c(Q15617994)), (Q1572867,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q12682
relation P17
action find
entity Q1572867
relation P17
type Q15617994
{'OR': [['Q12682', 'P17', {'concept': 'Q15617994'}], ['Q1572867', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q12682 property:P17 ?f } UNION { resource:Q1572867 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
Hamburg, Eastern Cape Llavorsí
action filter_type
action union
action find
entity Llavorsí
relation country
action find
entity Hamburg, Eastern Cape
relation country
type designation for an administrative territorial entity
{'OR': [['Llavorsí', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Hamburg, Eastern Cape', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Llavorsí property:country ?f } UNION { resource:Hamburg,_Eastern_Cape property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q258
SYSTEM
Spain, South Africa
Q29 Q258
OR((Q12682,P17,c(Q15617994)), (Q1572867,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q12682
relation P17
action find
entity Q1572867
relation P17
type Q15617994
[ANSWERS] are Llavorsí or Hamburg, Eastern Cape present in
{'OR': [['Q12682', 'P17', {'concept': 'Q15617994'}], ['Q1572867', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q12682 property:P17 ?f } UNION { resource:Q1572867 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
Spain South Africa
Spain and South Africa are Llavorsí or Hamburg, Eastern Cape present in
Spain South Africa
action filter_type
action union
action find
entity Llavorsí
relation country
action find
entity Hamburg, Eastern Cape
relation country
type designation for an administrative territorial entity
{'OR': [['Llavorsí', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Hamburg, Eastern Cape', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Llavorsí property:country ?f } UNION { resource:Hamburg,_Eastern_Cape property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]