Simple Question (Direct)
Simple Question
Q1020421
P47
Q1048835
USER
Who share the border with Moratinos, Palencia ?
(Q1020421,P47,c(Q1048835))
action filter_type
action find
entity Q1020421
relation P47
type Q1048835
['Q1020421', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q1020421 property:P47 ?s . ?s rdf:type ontology:Q1048835 }
Moratinos, Palencia
action filter_type
action find
entity Moratinos, Palencia
relation shares border with
type political territorial entity
['Moratinos, Palencia', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Moratinos,_Palencia property:shares_border_with ?s . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q821860 Q1919717 Q1622282
SYSTEM
Sahagún, Población de Arroyo, Escobar de Campos
Q956367 Q1622282 Q1919717 Q821860
(Q1020421,P47,c(Q1048835))
action filter_type
action find
entity Q1020421
relation P47
type Q1048835
[ANSWERS] share the border with Moratinos, Palencia
['Q1020421', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q1020421 property:P47 ?s . ?s rdf:type ontology:Q1048835 }
Ledigos Escobar de Campos Población de Arroyo Sahagún
Sahagún, Población de Arroyo and Escobar de Campos share the border with Moratinos, Palencia
Sahagún Población de Arroyo Escobar de Campos
action filter_type
action find
entity Moratinos, Palencia
relation shares border with
type political territorial entity
['Moratinos, Palencia', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Moratinos,_Palencia property:shares_border_with ?s . ?s rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1020421
P1313
Q12737077
USER
Which occupation is fulfilled by Moratinos, Palencia ?
(Q1020421,P1313,c(Q12737077))
action filter_type
action find
entity Q1020421
relation P1313
type Q12737077
['Q1020421', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1020421 property:P1313 ?p . ?p rdf:type ontology:Q12737077 }
Moratinos, Palencia
action filter_type
action find
entity Moratinos, Palencia
relation office held by head of government
type occupation
['Moratinos, Palencia', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Moratinos,_Palencia property:office_held_by_head_of_government ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q26690243
SYSTEM
mayor of Moratinos
Q26690243
(Q1020421,P1313,c(Q12737077))
action filter_type
action find
entity Q1020421
relation P1313
type Q12737077
[ANSWER] is fulfilled by Moratinos, Palencia
['Q1020421', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1020421 property:P1313 ?p . ?p rdf:type ontology:Q12737077 }
mayor of Moratinos
Mayor of Moratinos is fulfilled by Moratinos, Palencia
mayor of Moratinos
action filter_type
action find
entity Moratinos, Palencia
relation office held by head of government
type occupation
['Moratinos, Palencia', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Moratinos,_Palencia property:office_held_by_head_of_government ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26690243
P1001
Q1048835
USER
Which political territory comes under the supervision of that occupation ?
(Q26690243,P1001,c(Q1048835))
action filter_type
action find
entity Q26690243
relation P1001
type Q1048835
['Q26690243', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q26690243 property:P1001 ?f . ?f rdf:type ontology:Q1048835 }
mayor of Moratinos
action filter_type
action find
entity mayor of Moratinos
relation applies to jurisdiction
type political territorial entity
['mayor of Moratinos', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:mayor_of_Moratinos property:applies_to_jurisdiction ?f . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1020421
SYSTEM
Moratinos, Palencia
Q1020421
(Q26690243,P1001,c(Q1048835))
action filter_type
action find
entity Q26690243
relation P1001
type Q1048835
[ANSWER] comes under the supervision of that occupation
['Q26690243', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q26690243 property:P1001 ?f . ?f rdf:type ontology:Q1048835 }
Moratinos, Palencia
Moratinos, Palencia comes under the supervision of that occupation
Moratinos, Palencia
action filter_type
action find
entity mayor of Moratinos
relation applies to jurisdiction
type political territorial entity
['mayor of Moratinos', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:mayor_of_Moratinos property:applies_to_jurisdiction ?f . ?f rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5718202 Q1020421
P27 P17
Q15617994
USER
Which administrative territories are Moratinos, Palencia present in or do Henry Binns belong to ?
OR((Q1020421,P17,c(Q15617994)), (Q5718202,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1020421
relation P17
action find
entity Q5718202
relation P27
type Q15617994
{'OR': [['Q1020421', 'P17', {'concept': 'Q15617994'}], ['Q5718202', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . { { resource:Q1020421 property:P17 ?z } UNION { resource:Q5718202 property:P27 ?z } } }
Henry Binns Moratinos, Palencia
action filter_type
action union
action find
entity Moratinos, Palencia
relation country
action find
entity Henry Binns
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Moratinos, Palencia', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Henry Binns', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Moratinos,_Palencia property:country ?z } UNION { resource:Henry_Binns property:country_of_citizenship ?z } } }
[]
designation for an administrative territorial entity
Q29 Q258
SYSTEM
Spain, South Africa
Q29 Q258
OR((Q1020421,P17,c(Q15617994)), (Q5718202,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1020421
relation P17
action find
entity Q5718202
relation P27
type Q15617994
[ANSWERS] are Moratinos, Palencia present in or do Henry Binns belong to
{'OR': [['Q1020421', 'P17', {'concept': 'Q15617994'}], ['Q5718202', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . { { resource:Q1020421 property:P17 ?z } UNION { resource:Q5718202 property:P27 ?z } } }
Spain South Africa
Spain and South Africa are Moratinos, Palencia present in or do Henry Binns belong to
Spain South Africa
action filter_type
action union
action find
entity Moratinos, Palencia
relation country
action find
entity Henry Binns
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Moratinos, Palencia', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Henry Binns', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Moratinos,_Palencia property:country ?z } UNION { resource:Henry_Binns property:country_of_citizenship ?z } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with min number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?n ) { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?v ) WHERE { ?a property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?a } } . FILTER ( ?e = ?n ) . { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?e ) WHERE { ?j property:P530 ?s . ?j rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?j } }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?n ) { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?v ) WHERE { ?a property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } } . FILTER ( ?e = ?n ) . { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?e ) WHERE { ?j property:diplomatic_relation ?s . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have diplomatic relationships with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?n ) { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?v ) WHERE { ?a property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?a } } . FILTER ( ?e = ?n ) . { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?e ) WHERE { ?j property:P530 ?s . ?j rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?j } }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan have diplomatic relationships with min number of administrative territories
Central African Republic Kingdom of the Netherlands Kazakhstan
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?n ) { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?v ) WHERE { ?a property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } } . FILTER ( ?e = ?n ) . { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?e ) WHERE { ?j property:diplomatic_relation ?s . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q929 Q29999 Q232
P17
Q15617994
USER
Which administrative territories are present in those ones ?
(c(Q15617994),P17,Q929) (c(Q15617994),P17,Q29999) (c(Q15617994),P17,Q232)
action filter_type
action find_reverse
entity prev_answer
relation P17
type Q15617994
[{'concept': 'Q15617994'}, 'P17', 'Q929'] [{'concept': 'Q15617994'}, 'P17', 'Q29999'] [{'concept': 'Q15617994'}, 'P17', 'Q232']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . VALUES ( ?f ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q265 ) } . ?q property:P17 ?f }
Central African Republic Kingdom of the Netherlands Kazakhstan
action filter_type
action find_reverse
entity prev_answer
relation country
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'country', 'Central African Republic'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Kingdom of the Netherlands'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Kazakhstan']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?f ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Uzbekistan ) } . ?q property:country ?f }
[]
designation for an administrative territorial entity
Q55 Q929 Q29999
SYSTEM
Netherlands, Central African Republic, Kingdom of the Netherlands
Q929 Q29999 Q55 Q12546174 Q6511462 Q232 Q836672
(c(Q15617994),P17,Q929) (c(Q15617994),P17,Q29999) (c(Q15617994),P17,Q232)
action filter_type
action find_reverse
entity prev_answer
relation P17
type Q15617994
[ANSWERS] are present in those ones
[{'concept': 'Q15617994'}, 'P17', 'Q929'] [{'concept': 'Q15617994'}, 'P17', 'Q29999'] [{'concept': 'Q15617994'}, 'P17', 'Q232']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . VALUES ( ?f ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q265 ) } . ?q property:P17 ?f }
Central African Republic Kingdom of the Netherlands Netherlands Zadarinsky Lebyazhye District Kazakhstan region of Kazakhstan
Netherlands, Central African Republic and Kingdom of the Netherlands are present in those ones
Netherlands Central African Republic Kingdom of the Netherlands
action filter_type
action find_reverse
entity prev_answer
relation country
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'country', 'Central African Republic'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Kingdom of the Netherlands'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Kazakhstan']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?f ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Uzbekistan ) } . ?q property:country ?f }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q55 Q929 Q29999
P36
Q56061
USER
Which administrative territories are known as the capital of Netherlands, Central African Republic and Kingdom of the Netherlands ?
(Q55,P36,c(Q56061)) (Q929,P36,c(Q56061)) (Q29999,P36,c(Q56061))
action union
action filter_type
action find
entity Q55
relation P36
type Q56061
action filter_type
action find
entity Q929
relation P36
type Q56061
action filter_type
action find
entity Q29999
relation P36
type Q56061
['Q55', 'P36', {'concept': 'Q56061'}] ['Q929', 'P36', {'concept': 'Q56061'}] ['Q29999', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { { resource:Q55 property:P36 ?g . ?g rdf:type ontology:Q56061 } UNION { resource:Q929 property:P36 ?g . ?g rdf:type ontology:Q56061 } }
Netherlands Central African Republic Kingdom of the Netherlands
action union
action filter_type
action find
entity Netherlands
relation capital
type administrative territorial entity
action filter_type
action find
entity Central African Republic
relation capital
type administrative territorial entity
action filter_type
action find
entity Kingdom of the Netherlands
relation capital
type administrative territorial entity
['Netherlands', 'capital', {'concept': 'administrative territorial entity'}] ['Central African Republic', 'capital', {'concept': 'administrative territorial entity'}] ['Kingdom of the Netherlands', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { resource:Netherlands property:capital ?g . ?g rdf:type ontology:administrative_territorial_entity } UNION { resource:Central_African_Republic property:capital ?g . ?g rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q727 Q3832 Q727
SYSTEM
Amsterdam for 1st, 3rd, Bangui for 2nd
Q727 Q3832 Q727
(Q55,P36,c(Q56061)) (Q929,P36,c(Q56061)) (Q29999,P36,c(Q56061))
action union
action filter_type
action find
entity Q55
relation P36
type Q56061
action filter_type
action find
entity Q929
relation P36
type Q56061
action filter_type
action find
entity Q29999
relation P36
type Q56061
[ANSWERS]
['Q55', 'P36', {'concept': 'Q56061'}] ['Q929', 'P36', {'concept': 'Q56061'}] ['Q29999', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { { resource:Q55 property:P36 ?g . ?g rdf:type ontology:Q56061 } UNION { resource:Q929 property:P36 ?g . ?g rdf:type ontology:Q56061 } }
Amsterdam Bangui Amsterdam
Amsterdam, Bangui and Amsterdam are known as the capital of Netherlands, Central African Republic and Kingdom of the Netherlands
Amsterdam Bangui Amsterdam
action union
action filter_type
action find
entity Netherlands
relation capital
type administrative territorial entity
action filter_type
action find
entity Central African Republic
relation capital
type administrative territorial entity
action filter_type
action find
entity Kingdom of the Netherlands
relation capital
type administrative territorial entity
['Netherlands', 'capital', {'concept': 'administrative territorial entity'}] ['Central African Republic', 'capital', {'concept': 'administrative territorial entity'}] ['Kingdom of the Netherlands', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { resource:Netherlands property:capital ?g . ?g rdf:type ontology:administrative_territorial_entity } UNION { resource:Central_African_Republic property:capital ?g . ?g rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q55
P163
Q14660
USER
What is associated with Netherlands ?
(Q55,P163,c(Q14660))
action filter_type
action find
entity Q55
relation P163
type Q14660
['Q55', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?u WHERE { resource:Q55 property:P163 ?u . ?u rdf:type ontology:Q14660 }
Netherlands
action filter_type
action find
entity Netherlands
relation flag
type flag
['Netherlands', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?u WHERE { resource:Netherlands property:flag ?u . ?u rdf:type ontology:flag }
[]
flag
Q46585
SYSTEM
flag of the Netherlands
Q46585
(Q55,P163,c(Q14660))
action filter_type
action find
entity Q55
relation P163
type Q14660
Netherlands [ANSWER] is associated with Netherlands
['Q55', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?u WHERE { resource:Q55 property:P163 ?u . ?u rdf:type ontology:Q14660 }
flag of the Netherlands
Netherlands flag of the Netherlands is associated with Netherlands
flag of the Netherlands
action filter_type
action find
entity Netherlands
relation flag
type flag
['Netherlands', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?u WHERE { resource:Netherlands property:flag ?u . ?u rdf:type ontology:flag }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q986
Q14660
USER
And what about Eritrea?
(Q986,P163,c(Q14660))
action filter_type
action find
entity Q986
relation P163
type Q14660
['Q986', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?r WHERE { resource:Q986 property:P163 ?r . ?r rdf:type ontology:Q14660 }
Eritrea
action filter_type
action find
entity Eritrea
relation flag
type flag
['Eritrea', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?r WHERE { resource:Eritrea property:flag ?r . ?r rdf:type ontology:flag }
[]
flag
Q170555
SYSTEM
Flag of Eritrea
Q170555
(Q986,P163,c(Q14660))
action filter_type
action find
entity Q986
relation P163
type Q14660
[ANSWER]
['Q986', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?r WHERE { resource:Q986 property:P163 ?r . ?r rdf:type ontology:Q14660 }
Flag of Eritrea
Flag of Eritrea
action filter_type
action find
entity Eritrea
relation flag
type flag
['Eritrea', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?r WHERE { resource:Eritrea property:flag ?r . ?r rdf:type ontology:flag }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P1001
Q56061 Q14660
USER
Which flags have jurisdiction over around the same number of administrative territories as that flag ?
(c(Q14660),P1001,c(Q56061))
action approx
action find_tuple_counts
relation P1001
type Q14660
type Q56061
action count
action filter_type
action find
entity Q170555
relation P1001
type Q14660
[{'concept': 'Q14660'}, 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?d ) WHERE { ?p property:P1001 ?s . ?p rdf:type ontology:Q14660 . ?s rdf:type ontology:Q56061 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ontology:Q14660 . resource:Q170555 property:P1001 ?n } } . FILTER ( ?d = ?y ) }
action approx
action find_tuple_counts
relation applies to jurisdiction
type flag
type administrative territorial entity
action count
action filter_type
action find
entity Flag of Eritrea
relation applies to jurisdiction
type flag
[{'concept': 'flag'}, 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?d ) WHERE { ?p property:applies_to_jurisdiction ?s . ?p rdf:type ontology:flag . ?s rdf:type ontology:administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ontology:flag . resource:Flag_of_Eritrea property:applies_to_jurisdiction ?n } } . FILTER ( ?d = ?y ) }
[]
administrative territorial entity flag
Q82194 Q81676 Q185271
SYSTEM
flag of Brazil, flag of Australia, Flag of Papua New Guinea
Q102939 Q279667 Q83392 Q211579 Q42436 Q168935 Q42537 Q46835 Q102944 Q185273 Q147776 Q182514 Q171124 Q185285 Q26491 Q103084 Q24701084 Q219726 Q33037 Q3039133 Q127974 Q495469 Q133022 Q42876 Q103019 Q134885 Q578054 Q60149 Q169907 Q132633 Q169903 Q104351 Q135014 Q523638 Q164584 Q105643 Q633087 Q81952 Q201987 Q520966 Q43175 Q188072 Q127296 Q162980 Q59070 Q134252 Q160242 Q79874 Q82205 Q601391 Q103055 Q165775 Q82194 Q188477 Q616325 Q41673 Q199621 Q33213 Q1426630 Q19000 Q131650 Q4575 Q174487 Q245213 Q160425 Q188609 Q168711 Q43192 Q225360 Q102977 Q163333 Q101472 Q160861 Q130481 Q637134 Q492541 Q15962374 Q191731 Q190648 Q171117 Q245269 Q248102 Q93335 Q127179 Q492546 Q221881 Q204678 Q159538 Q184596 Q1064042 Q1856088 Q18993 Q234956 Q45136 Q165811 Q173535 Q270377 Q159872 Q370111 Q238759 Q131204 Q24701080 Q170543 Q599323 Q484249 Q156564 Q181120 Q103447 Q163832 Q168925 Q46008 Q122462 Q102993 Q130458 Q258262 Q392167 Q29074 Q524824 Q129132 Q102198 Q912854 Q317660 Q80110 Q12990 Q30768 Q328895 Q169192 Q128812 Q119605 Q47891 Q124020 Q160255 Q160250 Q103046 Q134247 Q170465 Q165542 Q165545 Q102392 Q1418784 Q24577771 Q663111 Q497997 Q131147 Q202189 Q185271 Q48160 Q185277 Q162699 Q101769 Q102960 Q285418 Q170814 Q102967 Q160872 Q160877 Q383109 Q47214 Q159746 Q159741 Q148199 Q601206 Q171103 Q173554 Q594095 Q130811 Q81477 Q81471 Q209963 Q184584 Q134933 Q18983 Q209219 Q165538 Q81970 Q1074327 Q204143 Q4633 Q134521 Q266618 Q645967 Q165500 Q252995 Q462918 Q235445 Q302382 Q209060 Q172517 Q104969 Q134627 Q160260 Q41327 Q658355 Q24701074 Q83278 Q170554 Q170555 Q283772 Q103037 Q36005 Q235846 Q168912 Q168917 Q336328 Q462498 Q543471 Q652088 Q124329 Q102987 Q550083 Q483774 Q130442 Q462674 Q121688 Q102184 Q126622 Q524521 Q165872 Q134874 Q369833 Q46585 Q435309 Q163753 Q117347 Q673117 Q184268 Q184265 Q167119 Q81286 Q128347 Q499127 Q130449 Q19373 Q19374 Q19379 Q232591 Q135034 Q165552 Q676623 Q165550 Q103070 Q189612 Q82236 Q301628 Q525410 Q590821 Q16611 Q636719 Q609337 Q165230 Q103414 Q184283 Q159986 Q613188 Q1426379 Q170809 Q182782 Q102953 Q165822 Q12188 Q178179 Q83149 Q375554 Q173548 Q200260 Q162068 Q128480 Q103001 Q133015 Q130774 Q130807 Q642998 Q204120 Q163008 Q75374 Q207518 Q330517 Q165905 Q567838 Q190064 Q235475 Q19427 Q162999 Q170795 Q530665 Q173201 Q369618 Q605195 Q48409 Q390593 Q162781 Q162789 Q208671 Q19016 Q193693 Q512175 Q169441 Q558375 Q492524 Q154823 Q167584 Q117758 Q34599 Q81526 Q131469 Q188839 Q162033 Q1122078 Q180725 Q170064 Q284396 Q604735 Q617649 Q170289 Q159865 Q165641 Q103064 Q586585 Q168941 Q189604 Q632491 Q127155 Q81676 Q186226 Q172530 Q172533 Q179383 Q160676 Q160124 Q329280
(c(Q14660),P1001,c(Q56061))
action approx
action find_tuple_counts
relation P1001
type Q14660
type Q56061
action count
action filter_type
action find
entity Q170555
relation P1001
type Q14660
[ANSWERS] have jurisdiction over around the same number of administrative territories as that flag
[{'concept': 'Q14660'}, 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?d ) WHERE { ?p property:P1001 ?s . ?p rdf:type ontology:Q14660 . ?s rdf:type ontology:Q56061 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ontology:Q14660 . resource:Q170555 property:P1001 ?n } } . FILTER ( ?d = ?y ) }
Flag of Honduras Flag of the Republic of Adygea Flag of Algeria Flag of Saint Helena Flag of Poland Flag of Malaysia flag of the United States of America flag of Austria flag of Cape Verde Flag of the Falkland Islands Flag of the Komi Republic Flag of Fiji Flag of Guyana Flag of Vanuatu Flag of Georgia Flag of Burundi flag of the Russian Soviet Federative Socialist Republic Flag of Hawaii Flag of Gibraltar Flag of Rhodesia Flag of Ukraine flag of Lower Saxony flag of Luxembourg Flag of Italy Flag of Madagascar flag of Thailand Flag of Karachay-Cherkessia Flag of Denmark Flag of São Tomé and Príncipe flag of Belarus Flag of Mali Flag of Barbados Flag of the Gambia Flag of Kalmykia Flag of the Democratic Republic of the Congo Flag of Tuvalu Flag of Montana flag of Turkey Flag of Somaliland Flag of Rhode Island Flag of Japan Flag of Tonga Flag of South Korea Flag of Montenegro Flag of the Republic of Mordovia Flag of Burkina Faso flag of Botswana flag of Afghanistan flag of Ireland flag of Castile-La Mancha flag of Liechtenstein Flag of the Central African Republic flag of Brazil flag of Samoa Flag of Rio Grande do Sul flag of India Flag of Abkhazia flag of Armenia Flag of Nunavut Flag of Texas flag of Kazakhstan Flag of the Faroe Islands flag of the Cayman Islands Flag of South Georgia and the South Sandwich Islands flag of Colombia Flag of Palau flag of Kosovo Flag of France Flag of Bulgaria Flag of Mauritania Flag of the Republic of the Congo Flag of Indonesia Flag of Slovakia Flag of Bahrain flag of British Columbia flag of Iowa flag of the German Empire Palestinian flag Flag of the Federated States of Micronesia flag of England flag of Montserrat Flag of New Hampshire Flag of Iceland flag of Bangladesh Flag of Colorado Flag of Massachusetts Flag of Nagorno-Karabakh Flag of Somalia Flag of Saint Lucia flag of New South Wales Flag of Rotterdam Flag of Virginia Flag of Saint Pierre and Miquelon Flag of Syria flag of Chad Flag of the Republic of China Flag of Tokelau Flag of Cameroon Flag of the Federation of Bosnia and Herzegovina Flag of Macau Flag of Vietnam flag of the Russian Soviet Federative Socialist Republic flag of Rwanda flag of the Northern Territory Flag of Mozambique flag of Alaska Flag of Saint Kitts and Nevis Flag of the Bahamas Flag of Serbia Flag of San Marino flag of Laos flag of Mexico Flag of Swaziland flag of Egypt Flag of Oklahoma flag of Quebec Flag of the Latvian Soviet Socialist Republic Flag of Vermont flag of Greece Flag of Sudan flag of South Australia Flag of Wallis and Futuna flag of Canada flag of Belgium flag of East Timor Flag of the Cocos (Keeling) Islands flag of Belize Flag of Portugal Flag of New Jersey Flag of Finland flag of Switzerland flag of Peru flag of South Africa Flag of Niger Flag of the United Arab Emirates flag of Paraguay flag of Ecuador flag of Kuwait Flag of Scotland Flag of New Brunswick flag of the People's Republic of Benin flag of Mecklenburg-Vorpommern Flag of Alabama Flag of the People's Republic of China Flag of Niue Flag of Papua New Guinea flag of Germany Flag of Nauru Flag of Yemen Flag of Gabon Flag of Nigeria Flag of Michigan Flag of Zambia Flag of Ivory Coast flag of Chile Flag of Saudi Arabia Flag of Queensland flag of the Russian Soviet Federative Socialist Republic Flag of Monaco flag of Nepal Flag of Thuringia Flag of Tuva Flag of Uruguay flag of El Salvador flag of Sverdlovsk Oblast Flag of Romania Flag of Lithuania Flag of Estonia Flag of the Netherlands Antilles Flag of Saint Vincent and the Grenadines Flag of Senegal Flag of Pennsylvania Flag of Martinique flag of Venezuela flag of Hungary flag of Tasmania Flag of the Turks and Caicos Islands Flag of Cyprus Flag of Bhutan Flag of Prince Edward Island flag of Hamburg Flag of Guinea flag of the Australian Capital Territory Flag of Vojvodina Flag of Norfolk Island Flag of Kabardino-Balkaria flag of South Ossetia Flag of Jamaica Flag of Lesotho flag of the Philippines flag of New Zealand flag of Turkmenistan flag of Tyumen Oblast flag of the Russian Soviet Federative Socialist Republic flag of the United Kingdom flag of Equatorial Guinea Flag of Eritrea Flag of Gagauzia Flag of Uganda flag of Lebanon flag of the Pitcairn Islands Flag of Sierra Leone Flag of Comoros Flag of Christmas Island Flag of Tatarstan Flag of the Region of Murcia Flag of Krasnodar Krai Flag of Angola Flag of Haiti Flag of Biafra Flag of Uzbekistan flag of Benin Flag of Transvaal flag of Spain Flag of Djibouti Flag of Iran flag of the Romani people Flag of Brunei Flag of Bolivia Flag of Arkansas flag of the Netherlands Flag of Republika Srpska Flag of Burma Flag of Ulster Flag of Indiana flag of Greenland Flag of Dominican Republic Flag of the Republic of Macedonia flag of Sweden Flag of Pakistan Flag of Maine Flag of Latvia Flag of South Carolina Flag of Louisiana Flag of North Carolina Flag of French Polynesia Flag of Antigua and Barbuda Flag of Mongolia Flag of Georgia Flag of Oman Flag of Togo Flag of Jersey Flag of Azerbaijan Flag of Mississippi Flag of Réunion Flag of Kentucky flag of Russia Flag of Newfoundland and Labrador Flag of Chechnya flag of the Soviet Union Flag of Grenada Flag of Trinidad and Tobago Flag of Zimbabwe Flag of the Chuvash Republic Flag of Amsterdam Flag of Tanzania Flag of South Sudan Flag of Guinea-Bissau flag of Namibia flag of Brittany Flag of Guatemala flag of Norway Flag of Western Sahara Flag of Mauritius Flag of the Marshall Islands Flag of Ethiopia flag of Israel Flag of Malawi Flag of Croatia flag of Argentina flag of Slovenia Flag of New Mexico Flag of the British Virgin Islands Flag of Cuba Flag of the Solomon Islands flag of Northern Cyprus Flag of California flag of Kenya flag of South Dakota Flag of Bermuda Ikurriña flag of Oregon Flag of Cambodia Flag of Liberia flag of Orkney Flag of the Seychelles flag of Shetland Flag of Tennessee flag of Albania Flag of Guadeloupe flag of Iraq Flag of Tunisia Flag of Iraqi Kurdistan flag of New York Flag of the Cook Islands Flag of Manitoba Flag of the Maldives flag of Brandenburg Flag of Wyoming Flag of Sri Lanka Flag of Moldova Flag of Kiribati Flag of Libya flag of Andorra flag of Malta Flag of Aruba flag of Bosnia and Herzegovina Flag of Alberta Flag of Suriname Flag of Jordan Flag of Kansas Flag of Sint Maarten flag of Wallonia Flag of Costa Rica Flag of Morocco flag of Kyrgyzstan Flag of North Korea Flag of Buenos Aires flag of Panama Flag of Anguilla Flag of Arizona flag of the Czech Republic flag of Australia flag of the Isle of Man flag of Qatar flag of Nicaragua Flag of Dominica Flag of Ghana Flag of Tajikistan Flag of the British Indian Ocean Territory
Flag of Brazil, flag of Australia and Flag of Papua New Guinea have jurisdiction over around the same number of administrative territories as that flag
flag of Brazil flag of Australia Flag of Papua New Guinea
action approx
action find_tuple_counts
relation applies to jurisdiction
type flag
type administrative territorial entity
action count
action filter_type
action find
entity Flag of Eritrea
relation applies to jurisdiction
type flag
[{'concept': 'flag'}, 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?d ) WHERE { ?p property:applies_to_jurisdiction ?s . ?p rdf:type ontology:flag . ?s rdf:type ontology:administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ontology:flag . resource:Flag_of_Eritrea property:applies_to_jurisdiction ?n } } . FILTER ( ?d = ?y ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P163
Q14660 Q515 Q13220204
USER
How many flags have greater number of cities or administrative country subdivisions as their flag than that flag ?
(c(Q515)|c(Q13220204),P163,c(Q14660))
[[{'concept': 'Q515'}, {'concept': 'Q13220204'}], 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:Q14660 ?y } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q14660 . ?x rdf:type ontology:Q13220204 }
[[{'concept': 'city'}, {'concept': 'second-level administrative country subdivision'}], 'flag', {'concept': 'flag'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:flag ?y } . ?z rdf:type ontology:city . ?y rdf:type ontology:flag . ?x rdf:type ontology:second-level_administrative_country_subdivision }
[]
flag city second-level administrative country subdivision
Comparative|Count over More/Less|Mult. entity type|Clarification
Q82194
SYSTEM
Did you mean flag of Brazil ?
(c(Q515)|c(Q13220204),P163,c(Q14660))
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q13220204'}], 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:Q14660 ?y } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q14660 . ?x rdf:type ontology:Q13220204 }
Did you mean flag of Brazil ?
flag of Brazil
[[{'concept': 'city'}, {'concept': 'second-level administrative country subdivision'}], 'flag', {'concept': 'flag'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:flag ?y } . ?z rdf:type ontology:city . ?y rdf:type ontology:flag . ?x rdf:type ontology:second-level_administrative_country_subdivision }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q515)|c(Q13220204),P163,c(Q14660))
[[{'concept': 'Q515'}, {'concept': 'Q13220204'}], 'P163', {'concept': 'Q14660'}]
[[{'concept': 'city'}, {'concept': 'second-level administrative country subdivision'}], 'flag', {'concept': 'flag'}]
[]
SYSTEM
5
Q543471 Q586585 Q33037 Q159746 Q1426379
(c(Q515)|c(Q13220204),P163,c(Q14660))
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q13220204'}], 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:Q14660 ?y } UNION { ?x property:Q14660 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q14660 . ?x rdf:type ontology:Q13220204 }
Flag of the Region of Murcia Flag of Buenos Aires Flag of Gibraltar Flag of Monaco Flag of Amsterdam
5
[[{'concept': 'city'}, {'concept': 'second-level administrative country subdivision'}], 'flag', {'concept': 'flag'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:flag ?y } UNION { ?x property:flag ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:flag . ?x rdf:type ontology:second-level_administrative_country_subdivision }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2793379 Q55
P530 P495
Q15617994
USER
Which administrative territories holds diplomatic relationship with Netherlands and are the origins of Pestalozzi's Mountain ?
AND((Q55,P530,c(Q15617994)), (Q2793379,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q55
relation P530
action find
entity Q2793379
relation P495
type Q15617994
{'AND': [['Q55', 'P530', {'concept': 'Q15617994'}], ['Q2793379', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { resource:Q55 property:P530 ?p . resource:Q2793379 property:P495 ?p . ?p rdf:type ontology:Q15617994 }
Pestalozzi's Mountain Netherlands
action filter_type
action intersection
action find
entity Netherlands
relation diplomatic relation
action find
entity Pestalozzi's Mountain
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ["Pestalozzi's Mountain", 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { resource:Netherlands property:diplomatic_relation ?p . resource:Pestalozzi's_Mountain property:country_of_origin ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
AND((Q55,P530,c(Q15617994)), (Q2793379,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q55
relation P530
action find
entity Q2793379
relation P495
type Q15617994
[ANSWER] holds diplomatic relationship with Netherlands and are the origins of Pestalozzi's Mountain
{'AND': [['Q55', 'P530', {'concept': 'Q15617994'}], ['Q2793379', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { resource:Q55 property:P530 ?p . resource:Q2793379 property:P495 ?p . ?p rdf:type ontology:Q15617994 }
Italy
Italy holds diplomatic relationship with Netherlands and are the origins of Pestalozzi's Mountain
Italy
action filter_type
action intersection
action find
entity Netherlands
relation diplomatic relation
action find
entity Pestalozzi's Mountain
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ["Pestalozzi's Mountain", 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { resource:Netherlands property:diplomatic_relation ?p . resource:Pestalozzi's_Mountain property:country_of_origin ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P85
Q484692 Q7725634 Q15617994
USER
Which administrative territories have max number of hymns or literary works as their anthem ?
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action argmax
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?k WHERE { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) ?y WHERE { { ?y property:P85 ?g . ?g rdf:type ontology:Q484692 . ?y rdf:type ontology:Q15617994 } UNION { ?y property:P85 ?g . ?g rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 } } GROUP BY ?y } . FILTER ( ?e = ?f ) }
action argmax
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?k WHERE { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:hymn ) ( ontology:literary_work ) } } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) ?y WHERE { { ?y property:anthem ?g . ?g rdf:type ontology:hymn . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?y property:anthem ?g . ?g rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?y } . FILTER ( ?e = ?f ) }
[]
hymn literary work designation for an administrative territorial entity
Q159 Q242 Q1045
SYSTEM
Russia, Belize, Somalia
Q159 Q242 Q1045
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action argmax
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
[ANSWERS] have max number of hymns or literary works as their anthem
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?k WHERE { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) ?y WHERE { { ?y property:P85 ?g . ?g rdf:type ontology:Q484692 . ?y rdf:type ontology:Q15617994 } UNION { ?y property:P85 ?g . ?g rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 } } GROUP BY ?y } . FILTER ( ?e = ?f ) }
Russia Belize Somalia
Russia, Belize and Somalia have max number of hymns or literary works as their anthem
Russia Belize Somalia
action argmax
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?k WHERE { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:hymn ) ( ontology:literary_work ) } } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) ?y WHERE { { ?y property:anthem ?g . ?g rdf:type ontology:hymn . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?y property:anthem ?g . ?g rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?y } . FILTER ( ?e = ?f ) }
[]