Simple Question (Direct)
Simple Question
Q492454
P47
Q15617994
USER
Which administrative territories have a shared border with Cortazzone ?
(Q492454,P47,c(Q15617994))
action filter_type
action find
entity Q492454
relation P47
type Q15617994
['Q492454', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q492454 property:P47 ?p . ?p rdf:type ontology:Q15617994 }
Cortazzone
action filter_type
action find
entity Cortazzone
relation shares border with
type designation for an administrative territorial entity
['Cortazzone', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Cortazzone property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17831 Q17851 Q17868
SYSTEM
Montafia, Roatto, Soglio, Piedmont
Q17831 Q17802 Q17851 Q17819 Q17868 Q17878 Q17767
(Q492454,P47,c(Q15617994))
action filter_type
action find
entity Q492454
relation P47
type Q15617994
[ANSWERS]
['Q492454', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q492454 property:P47 ?p . ?p rdf:type ontology:Q15617994 }
Montafia Cortandone Roatto Maretto Soglio, Piedmont Viale Camerano Casasco
Montafia, Roatto and Soglio, Piedmont have a shared border with Cortazzone
Montafia Roatto Soglio, Piedmont
action filter_type
action find
entity Cortazzone
relation shares border with
type designation for an administrative territorial entity
['Cortazzone', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Cortazzone property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q17831 Q17851 Q17868
P47
Q15617994
USER
Which administrative territories are next to the border of those ones ?
(c(Q15617994),P47,Q17831) (c(Q15617994),P47,Q17851) (c(Q15617994),P47,Q17868)
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q17831'] [{'concept': 'Q15617994'}, 'P47', 'Q17851'] [{'concept': 'Q15617994'}, 'P47', 'Q17868']
SELECT DISTINCT ?i WHERE { VALUES ( ?d ) { ( resource:Q17831 ) ( resource:Q17802 ) ( resource:Q17851 ) } . ?i rdf:type ontology:Q15617994 . ?d property:P47 ?i }
Montafia Roatto Soglio, Piedmont
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Montafia'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Roatto'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Soglio, Piedmont']
SELECT DISTINCT ?i WHERE { VALUES ( ?d ) { ( resource:Montafia ) ( resource:Cortandone ) ( resource:Roatto ) } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:shares_border_with ?i }
[]
designation for an administrative territorial entity
Q17883 Q17833 Q17831
SYSTEM
Villafranca d'Asti, Montechiaro d'Asti, Montafia
Q492454 Q17851 Q17843 Q17845 Q17878 Q17863 Q17885 Q17758 Q17770 Q492454 Q17819 Q17831 Q17863 Q17883 Q492454 Q17803 Q17833 Q17843 Q17878 Q17767
(c(Q15617994),P47,Q17831) (c(Q15617994),P47,Q17851) (c(Q15617994),P47,Q17868)
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
[ANSWERS] are next to the border of those ones
[{'concept': 'Q15617994'}, 'P47', 'Q17831'] [{'concept': 'Q15617994'}, 'P47', 'Q17851'] [{'concept': 'Q15617994'}, 'P47', 'Q17868']
SELECT DISTINCT ?i WHERE { VALUES ( ?d ) { ( resource:Q17831 ) ( resource:Q17802 ) ( resource:Q17851 ) } . ?i rdf:type ontology:Q15617994 . ?d property:P47 ?i }
Cortazzone Roatto Piea Piovà Massaia Viale San Paolo Solbrito Villanova d'Asti Buttigliera d'Asti Capriglio Cortazzone Maretto Montafia San Paolo Solbrito Villafranca d'Asti Cortazzone Cortanze Montechiaro d'Asti Piea Viale Camerano Casasco
Villafranca d'Asti, Montechiaro d'Asti and Montafia are next to the border of those ones
Villafranca d'Asti Montechiaro d'Asti Montafia
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Montafia'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Roatto'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Soglio, Piedmont']
SELECT DISTINCT ?i WHERE { VALUES ( ?d ) { ( resource:Montafia ) ( resource:Cortandone ) ( resource:Roatto ) } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:shares_border_with ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17851
P417
Q502895
USER
Which person is the patron saint of Roatto ?
(Q17851,P417,c(Q502895))
action filter_type
action find
entity Q17851
relation P417
type Q502895
['Q17851', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q17851 property:P417 ?m . ?m rdf:type ontology:Q502895 }
Roatto
action filter_type
action find
entity Roatto
relation patron saint
type common name
['Roatto', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Roatto property:patron_saint ?m . ?m rdf:type ontology:common_name }
[]
common name
Q236974
SYSTEM
Radegund
Q236974
(Q17851,P417,c(Q502895))
action filter_type
action find
entity Q17851
relation P417
type Q502895
[ANSWER] is the patron saint of Roatto
['Q17851', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q17851 property:P417 ?m . ?m rdf:type ontology:Q502895 }
Radegund
Radegund is the patron saint of Roatto
Radegund
action filter_type
action find
entity Roatto
relation patron saint
type common name
['Roatto', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Roatto property:patron_saint ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17851
P17
Q15617994
USER
Which administrative territory does Roatto belong to ?
(Q17851,P17,c(Q15617994))
action filter_type
action find
entity Q17851
relation P17
type Q15617994
['Q17851', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q17851 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Roatto
action filter_type
action find
entity Roatto
relation country
type designation for an administrative territorial entity
['Roatto', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Roatto property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q17851,P17,c(Q15617994))
action filter_type
action find
entity Q17851
relation P17
type Q15617994
Roatto belongs to [ANSWER]
['Q17851', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q17851 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Italy
Roatto belongs to Italy
Italy
action filter_type
action find
entity Roatto
relation country
type designation for an administrative territorial entity
['Roatto', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Roatto property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P1001
Q14660
USER
Which flag has control over the jurisdiction of that administrative territory ?
(c(Q14660),P1001,Q38)
action filter_type
action find_reverse
entity Q38
relation P1001
type Q14660
[{'concept': 'Q14660'}, 'P1001', 'Q38']
SELECT DISTINCT ?r WHERE { ?r property:P1001 resource:Q38 . ?r rdf:type ontology:Q14660 }
Italy
action filter_type
action find_reverse
entity Italy
relation applies to jurisdiction
type flag
[{'concept': 'flag'}, 'applies to jurisdiction', 'Italy']
SELECT DISTINCT ?r WHERE { ?r property:applies_to_jurisdiction resource:Italy . ?r rdf:type ontology:flag }
[]
flag
Q42876
SYSTEM
Flag of Italy
Q42876
(c(Q14660),P1001,Q38)
action filter_type
action find_reverse
entity Q38
relation P1001
type Q14660
The [ANSWER] has control over the jurisdiction of that administrative territory
[{'concept': 'Q14660'}, 'P1001', 'Q38']
SELECT DISTINCT ?r WHERE { ?r property:P1001 resource:Q38 . ?r rdf:type ontology:Q14660 }
Flag of Italy
The Flag of Italy has control over the jurisdiction of that administrative territory
Flag of Italy
action filter_type
action find_reverse
entity Italy
relation applies to jurisdiction
type flag
[{'concept': 'flag'}, 'applies to jurisdiction', 'Italy']
SELECT DISTINCT ?r WHERE { ?r property:applies_to_jurisdiction resource:Italy . ?r rdf:type ontology:flag }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q42876
P163
Q15617994
USER
Which administrative territory has its flag named that one ?
(c(Q15617994),P163,Q42876)
action filter_type
action find_reverse
entity Q42876
relation P163
type Q15617994
[{'concept': 'Q15617994'}, 'P163', 'Q42876']
SELECT DISTINCT ?v WHERE { ?v property:P163 resource:Q42876 . ?v rdf:type ontology:Q15617994 }
Flag of Italy
action filter_type
action find_reverse
entity Flag of Italy
relation flag
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'flag', 'Flag of Italy']
SELECT DISTINCT ?v WHERE { ?v property:flag resource:Flag_of_Italy . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q15617994),P163,Q42876)
action filter_type
action find_reverse
entity Q42876
relation P163
type Q15617994
[ANSWER] has its flag named that one
[{'concept': 'Q15617994'}, 'P163', 'Q42876']
SELECT DISTINCT ?v WHERE { ?v property:P163 resource:Q42876 . ?v rdf:type ontology:Q15617994 }
Italy
Italy has its flag named that one
Italy
action filter_type
action find_reverse
entity Flag of Italy
relation flag
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'flag', 'Flag of Italy']
SELECT DISTINCT ?v WHERE { ?v property:flag resource:Flag_of_Italy . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q38 Q286344 Q5647947
P530
Q15617994
USER
Does Italy have diplomatic relations with Masainas and Hangersley ?
(Q38,P530,Q286344) (Q38,P530,Q5647947)
action is_in
entity Q38
action intersection
action find_reverse
entity Q286344
relation P530
action find_reverse
entity Q5647947
relation P530
['Q38', 'P530', 'Q286344'] ['Q38', 'P530', 'Q5647947']
ASK WHERE { resource:Q38 property:P530 resource:Q286344 . resource:Q38 property:P530 resource:Q5647947 }
Italy Masainas Hangersley
action is_in
entity Italy
action intersection
action find_reverse
entity Masainas
relation diplomatic relation
action find_reverse
entity Hangersley
relation diplomatic relation
['Italy', 'diplomatic relation', 'Masainas'] ['Italy', 'diplomatic relation', 'Hangersley']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Masainas . resource:Italy property:diplomatic_relation resource:Hangersley }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q38,P530,Q286344) (Q38,P530,Q5647947)
action is_in
entity Q38
action intersection
action find_reverse
entity Q286344
relation P530
action find_reverse
entity Q5647947
relation P530
[ANSWER]
['Q38', 'P530', 'Q286344'] ['Q38', 'P530', 'Q5647947']
ASK WHERE { resource:Q38 property:P530 resource:Q286344 . resource:Q38 property:P530 resource:Q5647947 }
No
action is_in
entity Italy
action intersection
action find_reverse
entity Masainas
relation diplomatic relation
action find_reverse
entity Hangersley
relation diplomatic relation
['Italy', 'diplomatic relation', 'Masainas'] ['Italy', 'diplomatic relation', 'Hangersley']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Masainas . resource:Italy property:diplomatic_relation resource:Hangersley }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1019
P1001
Q15617994 Q11204 Q17335294
USER
How many administrative territories come under the jurisdiction of around the same number of legislatures or coats of arms as Madagascar ?
(c(Q11204)|c(Q17335294),P1001,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q1019
relation P1001
type Q11204
type Q17335294
[[{'concept': 'Q11204'}, {'concept': 'Q17335294'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?l WHERE { { ?i property:P1001 ?l . ?l rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q11204 } UNION { ?i property:P1001 ?l . ?l rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q17335294 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f property:P1001 resource:Q1019 . { VALUES ( ?t ) { ( ontology:Q17335294 ) ( ontology:Q11204 ) } . ?f rdf:type ?t } } } . FILTER ( ?c = ?n ) }
Madagascar
action count
action approx
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity Madagascar
relation applies to jurisdiction
type legislature
type flag or coat of arms
[[{'concept': 'legislature'}, {'concept': 'flag or coat of arms'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?l WHERE { { ?i property:applies_to_jurisdiction ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:legislature } UNION { ?i property:applies_to_jurisdiction ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f property:applies_to_jurisdiction resource:Madagascar . { VALUES ( ?t ) { ( ontology:flag_or_coat_of_arms ) ( ontology:legislature ) } . ?f rdf:type ?t } } } . FILTER ( ?c = ?n ) }
[]
designation for an administrative territorial entity legislature flag or coat of arms
SYSTEM
221
Q702 Q804 Q801 Q709 Q811 Q706679 Q805 Q2765 Q419 Q668 Q163012 Q414 Q142 Q22273061 Q55 Q2871 Q145 Q262 Q784 Q31 Q265 Q24764 Q2742 Q842 Q398 Q874 Q712 Q711 Q717 Q837 Q213 Q443815 Q50198 Q1028 Q187035 Q252 Q22274206 Q399 Q1462 Q403 Q657 Q258 Q6465 Q1979 Q45 Q43 Q41 Q155 Q790 Q4628 Q796 Q794 Q954 Q958 Q881 Q7688 Q739 Q3097 Q826 Q158893 Q2942 Q822 Q241 Q817 Q11340 Q244 Q11343 Q1974 Q1019 Q2899 Q2758 Q813 Q218 Q33 Q921 Q4712 Q924 Q36 Q34 Q928 Q155019 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q163966 Q3068 Q730 Q1013 Q11323 Q236 Q230 Q1948 Q232 Q233 Q238 Q119284 Q20 Q1045 Q3403547 Q1042 Q1041 Q27 Q28 Q1049 Q1025 Q1027 Q783 Q1020 Q2009 Q843 Q2007 Q184 Q1029 Q2003 Q736 Q1904 Q32 Q228 Q3462133 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q1050 Q17 Q1989 Q2838 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q697 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q22274534 Q11337 Q211 Q11331 Q217 Q214 Q215 Q219 Q154547 Q683 Q242 Q1216 Q912 Q2805 Q917 Q916 Q2107 Q1007 Q1006 Q1005 Q833 Q977 Q1951 Q1009 Q1008 Q971 Q970 Q34020 Q2380910 Q686 Q836 Q760 Q574 Q11301 Q2904 Q158095 Q1044 Q79 Q77 Q858 Q878 Q948 Q810 Q1014 Q1016 Q158083 Q1011 Q945 Q72449 Q22273285 Q678 Q800 Q1039 Q672 Q929 Q298 Q329609 Q863 Q2938 Q2023 Q869 Q1231 Q953
(c(Q11204)|c(Q17335294),P1001,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q1019
relation P1001
type Q11204
type Q17335294
[ANSWER]
[[{'concept': 'Q11204'}, {'concept': 'Q17335294'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?l WHERE { { ?i property:P1001 ?l . ?l rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q11204 } UNION { ?i property:P1001 ?l . ?l rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q17335294 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f property:P1001 resource:Q1019 . { VALUES ( ?t ) { ( ontology:Q17335294 ) ( ontology:Q11204 ) } . ?f rdf:type ?t } } } . FILTER ( ?c = ?n ) }
Federated States of Micronesia Panama Israel Marshall Islands Nicaragua Duchy of Bar Yemen Gelsenkirchen Peru India Pankow Argentina France Duchy of Nemours Netherlands Hagen United Kingdom Algeria Dominica Belgium Uzbekistan municipality of the Philippines Münster Oman Bahrain Turkmenistan Fiji Mongolia Venezuela Nepal Czech Republic Altomünster province of Thailand Morocco Principality of Albania Indonesia Duchy of Mercoeur Armenia Sardinia Serbia Chad South Africa department of France Prince Edward Island Portugal Turkey Greece Brazil Haiti Faroe Islands Iraq Iran Zimbabwe South Sudan Vietnam raion Colombia Remscheid Maldives Friedrichshain-Kreuzberg Solingen Lebanon Cuba Kuwait Sprockhövel Barbados Wetter (Ruhr) British Columbia Madagascar Mülheim an der Ruhr Mönchengladbach Kyrgyzstan Romania Finland Brunei Duchy of Burgundy Tanzania Poland Sweden Philippines Duchy of Lorraine Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Mitte Loire-Atlantique Suriname Lesotho Breckerfeld Montenegro Georgia Manitoba Kazakhstan Malta San Marino Marzahn-Hellersdorf Norway Somalia principality of Phalsbourg and Lixheim Seychelles Senegal Ireland Hungary Sudan Mauritania Mauritius Honduras Malawi Yukon Pakistan Northwest Territories Belarus Mozambique Newfoundland and Labrador Ecuador Ontario Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Swaziland Japan Saskatchewan Oberhausen Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Nauru Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Duchy of Elbeuf Herdecke Latvia Gevelsberg Republic of Moldova Slovakia Slovenia Bulgaria duchy Samoa Belize Piedmont Mali Krefeld Bhutan Angola Wuppertal Guinea-Bissau Guinea Gambia Malaysia Djibouti Alberta Cameroon Côte d'Ivoire Republic of the Congo Comoros Niue Duchy of Zaslawye Vanuatu Myanmar Saint Lucia East Timor Ennepetal Herne Charlottenburg-Wilmersdorf Sierra Leone Egypt Uruguay Syria United Arab Emirates Tunisia Jordan Liberia Libya Spandau Cape Verde Togo Roccarainola Duchy of Guise Tonga Costa Rica Sao Tomé and Príncipe Tuvalu Central African Republic Chile Lichtenberg Tajikistan Leverkusen Nunavut Thailand Kosovo Region Zambia
221
action count
action approx
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity Madagascar
relation applies to jurisdiction
type legislature
type flag or coat of arms
[[{'concept': 'legislature'}, {'concept': 'flag or coat of arms'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?l WHERE { { ?i property:applies_to_jurisdiction ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:legislature } UNION { ?i property:applies_to_jurisdiction ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f property:applies_to_jurisdiction resource:Madagascar . { VALUES ( ?t ) { ( ontology:flag_or_coat_of_arms ) ( ontology:legislature ) } . ?f rdf:type ?t } } } . FILTER ( ?c = ?n ) }
[]